1 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
3 * config/darwin.c (darwin_override_options): Make the check for
4 Objective-C ABI version more specific for 64bit code.
6 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
8 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9 indicate that the new symbol is an indirection.
10 (machopic_indirect_call_target): Likewise.
11 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
12 (MACHO_SYMBOL_INDIRECTION_P): New.
13 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
15 2019-10-08 Jason Merrill <jason@redhat.com>
17 * doc/invoke.texi: Document -fconcepts-ts.
19 2019-10-09 Richard Biener <rguenther@suse.de>
21 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
22 allow stmts other than GIMPLE_ASSIGN in nested cycles.
24 2019-10-08 Richard Biener <rguenther@suse.de>
26 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
27 (_stmt_vec_info::force_single_cycle): Likewise.
28 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
29 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
30 * tree-vect-loop.c (vectorizable_reduction): Set
31 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
32 (vect_transform_reduction): Use them to remove redundant code.
33 (vect_transform_cycle_phi): Likewise.
35 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
37 PR tree-optimization/90836
38 * gcc/match.pd (popcount): New pattern.
40 2019-10-08 Martin Sebor <msebor@redhat.com>
44 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
45 again once nbytes has been set. Set the access size when not yet set.
47 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
49 * config/darwin.c (machopic_select_section): Remove dead code for
50 old Objective-C section selection method, replace with unreachable.
52 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
54 * config/darwin.c (machopic_indirect_data_reference): Check for
55 required indirections before making direct access to defined
57 (machopic_output_indirection): Place the indirected pointes for
58 required indirections into the non-lazy symbol pointers section.
59 (darwin_encode_section_info):
60 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
61 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
63 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
66 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
67 instead of ALL_SSE_REG to check if function call preserves some
68 256-bit SSE registers.
70 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
72 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
73 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
74 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
76 2019-10-08 Richard Biener <rguenther@suse.de>
78 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
79 (_stmt_vec_info::is_reduc_info): Add.
80 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
81 (vectorizable_condition): Remove.
82 (vectorizable_shift): Likewise.
83 (vectorizable_reduction): Adjust.
84 (info_for_reduction): New.
85 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
86 (vect_analyze_scalar_cycles_1): ... here.
87 (vect_analyze_loop_operations): Adjust.
88 (needs_fold_left_reduction_p): Simplify for single caller.
89 (vect_is_simple_reduction): Likewise. Remove stmt restriction
90 for nested cycles not part of double reductions.
91 (vect_model_reduction_cost): Pass in the reduction type.
92 (info_for_reduction): New function.
93 (vect_create_epilog_for_reduction): Use it, access reduction
94 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
95 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
96 (vectorize_fold_left_reduction): Remove pointless assert.
97 (vectorizable_reduction): Analyze the full reduction when
98 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
99 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
100 stmt code-generation to vectorizable_* in most cases. Verify
101 code-generation only for cases handled by
102 vect_transform_reductuon.
103 (vect_transform_reduction): Use info_for_reduction to get at
104 reduction meta. Simplify.
105 (vect_transform_cycle_phi): Likewise.
106 (vectorizable_live_operation): Likewise.
107 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
108 at the PHI node for STMT_VINFO_REDUC_TYPE.
109 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
110 longer necessary code.
111 * tree-vect-stmts.c (vectorizable_shift): Make static again.
112 (vectorizable_condition): Likewise. Get at reduction related
113 info via info_for_reduction.
114 (vect_analyze_stmt): Adjust.
115 (vect_transform_stmt): Likewise.
116 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
117 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
119 2019-10-08 Joseph Myers <joseph@codesourcery.com>
121 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
122 -fno-fp-int-builtin-inexact default for C2X.
124 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
125 Richard Biener <rguenther@suse.de>
127 PR tree-optimization/91532
128 * tree-if-conv.c: Include tree-ssa-dse.h.
129 (ifcvt_local_dce): Change param from bb to loop,
130 and call dse_classify_store.
131 (tree_if_conversion): Pass loop instead of loop->header as arg
133 * tree-ssa-dse.c: Include tree-ssa-dse.h.
134 (delete_dead_or_redundant_assignment): Remove static qualifier from
135 declaration, and add prototype in tree-ssa-dse.h.
136 (dse_store_status): Move to tree-ssa-dse.h.
137 (dse_classify_store): Remove static qualifier and add new tree param
138 stop_at_vuse, and add prototype in tree-ssa-dse.h.
139 * tree-ssa-dse.h: New header.
141 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
143 * config/darwin.c (machopic_output_indirection): Don't put
144 hidden symbol indirections into the .data section, use the
145 non-lazy symbol pointers section as normal.
146 (darwin_encode_section_info): Record if a symbol is hidden.
147 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
148 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
150 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
152 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
153 predicates instead of accessing bits directly.
154 (machopic_indirect_call_target): Likewise.
155 (machopic_output_indirection): Likewise.
156 (darwin_encode_section_info): Improve description. Use renamed
157 symbol flags. Use predicate macros for variables and functions.
159 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
160 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
161 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
162 (MACHO_SYMBOL_VARIABLE_P): New.
163 (MACHO_SYMBOL_DEFINED_P):New.
164 (MACHO_SYMBOL_STATIC_P): New.
165 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
166 (SYMBOL_FLAG_SUBT_DEP): New.
167 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
169 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
171 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
172 (msp430_expand_epilogue): Likewise.
173 * config/msp430/predicates.md: Likewise.
174 * config/msp430/msp430.md: Likewise.
175 Replace blocks of 8 spaces with tabs.
177 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
179 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
180 * config/msp430/msp430.c (msp430_split_addsi): New.
181 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
182 a block of C code for splitting addsi.
184 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
186 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
187 ix86_expand_rounddf_32): Reorder functions.
188 * config/i386/i386-protos.h: Update.
190 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
192 * config.in: Regenerate.
193 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
194 Add new "Yx" constraint.
195 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
197 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
199 * config/msp430/msp430.c (msp430_option_override): Allow the lower
200 code/data region to be selected in the small memory model.
201 (msp430_section_attr): Don't warn if the "section" and "lower"
202 attributes are used together.
203 (msp430_handle_generic_attribute): Likewise.
204 (msp430_var_in_low_mem): New function.
205 (TARGET_ENCODE_SECTION_INFO): Define.
206 (msp430_encode_section_info): New function.
207 (gen_prefix): Return early in the small memory model.
208 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
209 ".lower" prefix if -m{code,data}-region=lower have been passed.
210 (msp430_output_aligned_decl_common): Emit common symbols when
211 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
213 (TARGET_ASM_FILE_END): Define.
214 (msp430_file_end): New function.
215 (msp430_do_not_relax_short_jumps): Allow relaxation when
216 function will be in the lower region.
217 (msp430_op_not_in_high_mem): New function.
218 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
219 the 'X' operand selector.
220 Clarify comment for 'x' operand selector.
221 * config/msp430/msp430.h (LINK_SPEC): Propagate
222 -m{code,data}-region to the linker via spec function
223 msp430_propagate_region_opt.
224 (msp430_propagate_region_opt): New prototype.
225 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
226 (SYMBOL_FLAG_LOW_MEM): Define.
227 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
229 (zero_extendqihi2): Fix operand number used by "%X" selector.
230 (zero_extendqisi2): Likewise.
231 (zero_extendhisi2): Likewise.
232 (movqi): Use "Yx" constraint in place of "%X" operand selector.
237 (addhi3_cy): Likewise.
238 (addchi4_cy): Likewise.
242 (bic<mode>3): Likewise.
243 (and<mode>3): Likewise.
244 (ior<mode>3): Likewise.
245 (xor<mode>3): Likewise.
246 (slli_1): Add missing "%X" operand selector.
254 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
256 (cbranchhi4_real): Likewise.
257 (cbranchqi4_reversed): Likewise.
258 (cbranchhi4_reversed): Likewise.
259 (*bitbranch<mode>4): Likewise.
260 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
261 * config/msp430/msp430.opt (mcode-region=): Set default to
262 MSP430_REGION_LOWER. Improve docstring.
263 (mdata-region=): Likewise.
264 (muse-lower-region-prefix): New option.
265 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
266 mdata-region=none multilib.
267 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
268 mdata-region=none multilib.
269 MULTILIB_EXCEPTIONS: Remove.
270 MULTILIB_REQUIRED: Define.
271 * configure: Regenerate.
272 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
273 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
274 * doc/extend.texi: Clarify comment for {upper,lower,either}
276 Add separate description for "lower" variable attribute.
278 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
281 * optabs-tree.c (vcond_icode_p): New function.
282 (vcond_eq_icode_p): Likewise.
283 (expand_vec_cond_expr_p): Use vcond_icode_p and
285 * optabs.c (can_vcond_compare_p): New function.
286 * optabs.h (can_vcond_compare_p): Likewise.
288 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
291 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
292 caller passes a non-trapping condition.
293 (is_gimple_condexpr): Allow trapping conditions.
294 (is_gimple_condexpr_1): New helper function.
295 (is_gimple_condexpr_for_cond): New function, acts like old
297 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
298 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
299 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
300 * gimplify.c (gimplify_cond_expr): Use
301 is_gimple_condexpr_for_cond.
302 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
303 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
305 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
306 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
307 is_gimple_condexpr_for_cond, remove pointless tmp check
308 (forward_propagate_into_cond): Remove pointless tmp check.
310 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
312 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
313 match that of other gsi_next_* functions. Adjust the comment.
314 (gsi_start_nonvirtual_phis): New function.
315 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
316 gsi_next_nonvirtual_phi accordingly. (No functional change.)
318 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
320 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
321 setjmp situation here. Fix a verb's ending: "the exact variables or
322 elements for which there are warnings depends" -> "... depend".
324 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
326 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
328 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
330 * ipa-prop.c (ipa_vr::nonzero_p): New.
331 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
333 * ipa-prop.h (class ipa_vr): Add nonzero_p.
334 * tree-vrp.c (range_has_numeric_bounds_p): New.
335 (range_int_cst_p): Use range_has_numeric_bounds_p.
336 (get_range_op_handler): New.
337 (supported_types_p): New.
338 (defined_ranges_p): New.
339 (drop_undefines_to_varying): New.
340 (range_fold_binary_symbolics_p): New.
341 (range_fold_unary_symbolics_p): New.
342 (range_fold_unary_expr): Extract out into above functions.
343 (range_fold_binary_expr): Same.
344 (value_range_base::normalize_addresses): New.
345 (value_range_base::normalize_symbolics): Normalize addresses.
346 * tree-vrp.h (class value_range_base): Add normalize_addresses.
348 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
350 * tree-vrp.c (value_range_base::singleton_p): Use
351 value_range_base::num_pairs instead of vrp_val_is* to check
352 if a range has one sub-range.
354 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
356 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
357 DEF is not a true earlyclobber but is tied to a specific input
358 operand, and so is effectively earlyclobber wrt inputs that have
360 (make_early_clobber_and_input_conflicts): Pass this case to the above.
362 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
364 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
365 (pod_mode): Mark operators likewise.
366 (scalar_int_mode): Mark non-default constructors and
367 operators with CONSTEXPR.
368 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
369 (fixed_size_mode): Likewise.
371 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
374 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
375 and wrap the unspec_volatile in a parallel.
376 (*avx_vzeroupper): New define_insn. Use a match_parallel around
378 * config/i386/predicates.md (vzeroupper_pattern): Expect the
379 unspec_volatile to be wrapped in a parallel.
380 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
381 (ix86_add_reg_usage_to_vzerouppers): New functions.
382 (rest_of_handle_insert_vzeroupper): Use them to add register
383 usage information to the vzeroupper instructions.
385 2019-10-07 Richard Biener <rguenther@suse.de>
387 PR tree-optimization/91975
388 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
391 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
393 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
394 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
396 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
398 * config/darwin.c (darwin_override_options): Adjust objective-c
399 ABI version error messages to avoid punctuation and contracted
402 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
404 * ipa-inline.c: Fix type; compute size rather than self_size
405 for size of caller function.
407 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
410 * config/darwin.c (darwin_rodata_section): Add relocation flag,
411 choose const_data section for constants with relocations.
412 (machopic_select_section): Pass relocation flag to
413 darwin_rodata_section ().
415 2019-10-05 Jakub Jelinek <jakub@redhat.com>
417 PR tree-optimization/91734
418 * generic-match-head.c: Include fold-const-call.h.
419 * match.pd (sqrt(x) cmp c): Check the boundary value and
420 in case inexact computation of c*c affects comparison of the boundary,
421 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
422 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
423 for -frounding-math. For c2, try the next smaller or larger floating
424 point constant depending on comparison code and if it has the same
425 sqrt as c2, use it instead of c2.
427 2019-10-04 Martin Sebor <msebor@redhat.com>
430 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
431 MEM_REF right operand. Avoid failing for MEM_REF assignments from
432 uninitialized objects.
434 2019-10-04 Martin Sebor <msebor@redhat.com>
436 * builtins.c (compute_objsize): Add an argument.
437 * tree-object-size.c (addr_object_size): Same.
438 (compute_builtin_object_size): Same.
439 * tree-object-size.h (compute_builtin_object): Same.
441 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
443 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
445 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
447 * match.pd (sinh (x) / cosh (x)): New simplification rule.
449 2019-10-04 Martin Jambor <mjambor@suse.cz>
451 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
452 fntype when switching to calling memcpy instead of memset.
454 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
456 * hash-table.h (hash_table::empty_slow): Don't assign
457 size_t values to int variables.
459 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
461 * expr.c (convert_mode_scalar): Remove shadowing local var.
462 (emit_block_move): Rename local vars.
463 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
464 (emit_push_insn): Rename local vars.
465 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
466 shadowing local vars.
467 (store_constructor): Remove shadowing local vars. Rename local var.
468 (store_field, expand_cond_expr_using_cmove,
469 expand_expr_real_2): Remove shadowing local vars.
471 do_store_flag): Remove shadowing local vars. Rename local vars.
473 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
475 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
477 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
479 * genmatch.c (commutate): Rename local var.
480 (lower_cond): Reuse local var.
481 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
482 dt_operand::gen, dt_operand::gen_gimple_expr,
483 dt_simplify::gen): Add a param. Rename generated vars.
484 (decision_tree::insert_operand,
485 (capture_info::walk_match, capture_info::walk_result,
486 capture_info::walk_c_expr): Rename local vars.
487 (expr::gen_transform): Rename generated vars.
488 Use snprintf. Rename local vars.
489 (capture::gen_transform, dt_operand::get_name,
490 dt_operand::gen_opname): Rename generated vars.
491 (write_predicate): Adjust call to gen_kids.
492 (parser::get_internal_capture_id): Rename generated vars.
493 (parser::parse_expr): Rename local vars.
494 (parser::parse_if): Remove local var.
495 (parser::parse_pattern, add_operator): Rename local vars.
497 2019-10-04 Joseph Myers <joseph@codesourcery.com>
499 * builtins.def (DEF_C2X_BUILTIN): New macro.
500 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
501 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
502 (strndup): Use DEF_C2X_BUILTIN.
503 * coretypes.h (enum function_class): Add function_c2x_misc.
505 2019-10-04 Maya Rashish <coypu@sdf.org>
507 * ira-color.c (update_costs_from_allocno): Call
508 ira_init_register_move_cost_if_necessary.
510 2019-10-04 Jeff Law <law@redhat.com>
512 * config/h8300/h8300.md (cpymemsi): Disable.
513 (movmd, movmd_internal_<mode>, movstr, movsd):
514 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
515 (movmd splitter, movsd splitter): Likewise.
517 * range-op.cc (range_tests): Avoid two tests when ints and
518 shorts are the same size.
520 2019-10-04 Richard Biener <rguenther@suse.de>
523 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
526 2019-10-04 Richard Biener <rguenther@suse.de>
528 PR tree-optimization/91982
529 * tree-vect-loop.c (vectorizable_live_operation): Also guard
530 against EXTRACT_LAST_REDUCTION.
531 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
533 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
535 * range-op.o (value_range_from_overflowed_bounds): Rename from
536 adjust_overflow_bound.
537 (value_range_with_overflow): Rename from
538 create_range_with_overflow.
539 (create_possibly_reversed_range): Adjusted for above renames.
540 (operator_*::wi_fold): Same.
541 (cross_product_operator::wi_cross_productor): Same.
543 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
545 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
546 -Wshadow=compatible-local): Fix description.
547 Add an example where -Wshadow=compatible-local does not
550 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
552 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
554 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
555 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
557 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
559 * expr.c (emit_block_move_hints): Slightly cleaner fix to
560 can_move_by_pieces issue.
562 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
565 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
566 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
567 is available and the user has not set one on the command line.
569 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
572 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
573 instead of REGNO equality check on addr.reg.
575 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
577 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
578 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
579 * doc/invoke.texi (inline-heuristics-hint-percent,
580 inline-heuristics-hint-percent-O2): Document.
581 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
583 (can_inline_edge_by_limits_p): Use it.
585 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
587 * config/arm/arm.c (arm_print_value): Use real_to_decimal
588 to print CONST_DOUBLEs.
590 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
592 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
593 * ipa-prop.c (ipcp_free_transformation_sum): New function.
594 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
596 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
598 * Makefile.in (OBJS): Add range.o and range-op.o.
599 Remove wide-int-range.o.
600 * function-tests.c (test_ranges): New.
601 (function_tests_c_tests): Call test_ranges.
602 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
603 range_fold_unary_expr instead of extract_range_from_unary_expr.
604 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
605 * range-op.cc: New file.
606 * range-op.h: New file.
607 * range.cc: New file.
609 * selftest.h (range_tests): New prototype.
610 * ssa.h: Include range.h.
611 * tree-vrp.c (value_range_base::value_range_base): New
613 (value_range_base::singleton_p): Do not call
614 ranges_from_anti_range until sure we will need to.
615 (value_range_base::type): Rename gcc_assert to
617 (vrp_val_is_max): New argument.
618 (vrp_val_is_min): Same.
619 (wide_int_range_set_zero_nonzero_bits): Move from
621 (extract_range_into_wide_ints): Remove.
622 (extract_range_from_multiplicative_op): Remove.
623 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
624 from extract_range_from_binary_expr.
625 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
626 from extract_range_from_binary_expr.
627 (extract_range_from_binary_expr): Remove.
628 (normalize_for_range_ops): New.
629 (range_fold_binary_expr): New.
630 (range_fold_unary_expr): New.
631 (value_range_base::num_pairs): New.
632 (value_range_base::lower_bound): New.
633 (value_range_base::upper_bound): New.
634 (value_range_base::upper_bound): New.
635 (value_range_base::contains_p): New.
636 (value_range_base::invert): New.
637 (value_range_base::union_): New.
638 (value_range_base::intersect): New.
639 (range_compatible_p): New.
640 (value_range_base::operator==): New.
641 (determine_value_range_1): Call range_fold_*expr instead of
642 extract_range_from_*expr.
643 * tree-vrp.h (class value_range_base): Add new constructors.
644 Add methods for union_, intersect, operator==, contains_p,
645 num_pairs, lower_bound, upper_bound, invert.
646 (vrp_val_is_min): Add handle_pointers argument.
647 (vrp_val_is_max): Same.
648 (extract_range_from_unary_expr): Remove.
649 (extract_range_from_binary_expr): Remove.
650 (range_fold_unary_expr): New.
651 (range_fold_binary_expr): New.
652 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
653 range_fold_binary_expr instead of extract_range_from_binary_expr.
654 (vr_values::extract_range_basic): Same.
655 (vr_values::extract_range_from_unary_expr): Call
656 range_fold_unary_expr instead of extract_range_from_unary_expr.
657 * wide-int-range.cc: Remove.
658 * wide-int-range.h: Remove.
660 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
662 * config/rs6000/rs6000.c (mem_operand_gpr): Use
663 SIGNED_16BIT_OFFSET_EXTRA_P macro.
664 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
665 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
668 2019-10-02 Joseph Myers <joseph@codesourcery.com>
670 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
671 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
672 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
673 * glimits.h: Likewise.
675 2019-10-03 Jakub Jelinek <jakub@redhat.com>
677 PR rtl-optimization/91976
678 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
679 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
680 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
682 2019-10-02 Martin Sebor <msebor@redhat.com>
684 PR tree-optimization/80936
685 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
687 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
689 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
690 instead of reg_class_contents[ALL_REGS].
692 2019-09-30 Jason Merrill <jason@redhat.com>
694 Add some hash_map_safe_* functions like vec_safe_*.
695 * hash-map.h (default_hash_map_size): New variable.
696 (create_ggc): Use it as default argument.
697 (hash_map_maybe_create, hash_map_safe_get)
698 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
700 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
702 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
703 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
704 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
705 (can_inline_edge_by_limits_p): Use it.
706 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
707 (want_inline_small_function_p): Use O2 bounds.
708 (edge_badness): LIkewise.
709 * opts.c (default_options): Add OPT_finline_functions.
710 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
711 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
713 * doc/invoke.texi (-finline-functions): Update documentation.
714 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
715 inline-min-speedup-O2): Document.
716 (early-inlining-insns-O2): Simplify docs.
718 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
720 PR rtl-optimization/87047
721 * ifcvt.c (average_cost): New static function. Use it...
722 (noce_process_if_block): ... here.
724 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
726 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
727 * config/rs6000/rs6000-string.c (expand_block_move): Add
729 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
730 (cpymemsi): Add might_overlap parm to expand_block_move() call.
732 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
734 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
735 (expand_builtin_memcpy): Use might_overlap parm.
736 (expand_builtin_mempcpy_args): Use might_overlap parm.
737 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
738 (expand_builtin_memory_copy_args): Add might_overlap parm.
739 * expr.c (emit_block_move_via_cpymem): Rename to
740 emit_block_move_via_pattern, add might_overlap parm, use cpymem
741 or movmem optab as appropriate.
742 (emit_block_move_hints): Add might_overlap parm, do the right
743 thing for might_overlap==true.
744 * expr.h (emit_block_move_hints): Update prototype.
746 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
748 * tree-eh.h (unsplit_eh_edges): Declare.
749 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
750 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
751 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
752 (struct store_immediate_info): Add lp_nr field.
753 (store_immediate_info::store_immediate_info): Add NR2 parameter and
754 initialize lp_nr with it.
755 (struct merged_store_group): Add lp_nr and only_constants fields.
756 (merged_store_group::merged_store_group): Initialize them.
757 (merged_store_group::can_be_merged_into): Deal with them.
758 (pass_store_merging): Rename terminate_and_release_chain into
759 terminate_and_process_chain.
760 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
761 renaming and remove useless assertions.
762 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
763 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
764 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
765 instead of always recomputing it and compare lp_nr.
766 (imm_store_chain_info::output_merged_store): If the group is in an
767 active EH region, register new stores if they can throw. Moreover,
768 if the insertion has created new basic blocks, adjust the PHI nodes
769 of the post landing pad.
770 (imm_store_chain_info::output_merged_stores): If the original stores
771 are in an active EH region, deregister them.
772 (lhs_valid_for_store_merging_p): Prettify.
773 (adjust_bit_pos): New function extracted from...
774 (mem_valid_for_store_merging): ...here. Use it for the base address
775 and also for the offset if it is the addition of a constant.
776 (lp_nr_for_store): New function.
777 (pass_store_merging::process_store): Change return type to bool.
778 Call lp_nr_for_store to initialize the store info. Propagate the
779 return status of various called functions to the return value.
780 (store_valid_for_store_merging_p): New predicate.
781 (enum basic_block_status): New enumeration.
782 (get_status_for_store_merging): New function.
783 (pass_store_merging::execute): If the function can throw and catch
784 non-call exceptions, unsplit the EH edges on entry and clean up the
785 CFG on exit if something changed. Call get_status_for_store_merging
786 for every basic block and keep the chains open across basic blocks
787 when possible. Terminate and process open chains at the end, if any.
789 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
791 * reginfo.c (globalize_reg): Fix shadowed variable in
794 2019-10-02 Martin Jambor <mjambor@suse.cz>
796 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
797 do not compute some stuff when set.
798 (cgraph_node::create_edge): Likewise.
799 (cgraph_node::create_indirect_edge): Renamed last parameter to
800 coning_p and flipped its meaning, don't even calculate
801 inline_failed when set.
802 * cgraph.h (cgraph_node::create_edge): Add new parameter.
803 (symbol_table::::create_edge): Likewise.
804 (cgraph_node::create_indirect_edge): Rename last parameter, flip
806 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
807 call graph edge creating functions.
809 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
812 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
815 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
817 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
819 2019-10-02 Richard Biener <rguenther@suse.de>
821 * tree-vectorizer.h (vect_transform_reduction): Declare.
822 * tree-vect-stmts.c (vect_transform_stmt): Use it.
823 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
824 stmt transform to ...
825 (vect_transform_reduction): ... this.
827 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
829 * omp-low.c (lower_omp_target): Dereference optional argument
830 to work with the right pointer.
832 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
834 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
836 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
837 * langhooks.h (omp_is_optional_argument): New hook.
838 * omp-general.c (omp_is_optional_argument): New.
839 * omp-general.h (omp_is_optional_argument): New declaration.
840 * omp-low.c (lower_omp_target): Create temporary for received value
841 and take the address for new_var if the original variable was a
842 DECL_BY_REFERENCE. Use size of referenced object when a
843 pass-by-reference optional argument used as argument to firstprivate.
845 2019-10-02 Jakub Jelinek <jakub@redhat.com>
847 PR tree-optimization/91940
848 * tree-vect-patterns.c: Include tree-vector-builder.h and
850 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
851 unpromoting the argument back to uint16_t, or by converting into a
852 rotate, or into shifts plus ior.
854 2019-10-02 Richard Biener <rguenther@suse.de>
856 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
858 (vect_transform_cycle_phi): Declare.
859 * tree-vect-stmts.c (vect_transform_stmt): Call
860 vect_transform_cycle_phi.
861 * tree-vect-loop.c (vectorizable_reduction): Split out
862 PHI transformation stage to ...
863 (vect_transform_cycle_phi): ... here.
865 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
868 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
869 eliminable registers.
870 (make_hard_regno_live): Likewise, and don't make them live.
872 2019-10-01 David Malcolm <dmalcolm@redhat.com>
874 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
876 (layout::print_source_line): Likewise.
877 (layout::start_annotation_line): Likewise.
878 (diagnostic_show_locus): Remove call to temporarily clear the
880 (selftest::test_one_liner_fixit_remove): Add test coverage for the
881 interaction of pp_set_prefix with rulers and fix-it hints.
882 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
883 prefix when calling diagnostic_show_locus, rather than destroying
885 (print_parseable_fixits): Temporarily clear prefix.
886 * pretty-print.c (pp_format): Save and restore line_length, rather
887 than assuming it is zero.
888 (pp_output_formatted_text): Remove assertion that line_length is
891 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
893 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
895 (nonoverlapping_refs_since_match_p): ... this; handle also
897 (alias_stats): Update stats.
898 (dump_alias_stats): Likewise.
899 (cheap_array_ref_low_bound): New function.
900 (aliasing_matching_component_refs_p): Add partial_overlap
902 pass it to nonoverlapping_refs_since_match_p.
903 (aliasing_component_refs_walk): Update call of
904 aliasing_matching_component_refs_p
905 (nonoverlapping_array_refs_p): New function.
906 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
907 indirect_refs_may_alias_p): Update calls of
908 nonoverlapping_refs_since_match_p.
910 2019-10-01 Maya Rashish <coypu@sdf.org>
913 * ira-color.c (allocno_copy_cost_saving): Call
914 ira_init_register_move_cost_if_necessary.
916 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
918 * Makefile.in (gnat_install_lib): New variable.
919 * configure.ac: Substitute it.
920 * configure: Regenerate.
922 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
925 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
926 is matched with non-C++ type
928 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
930 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
933 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
935 * doc/invoke.texi (early-inlining-insns-O2): Document.
936 (early-inlining-insns): Update.
937 * params.def (early-inlining-insns-O2): New bound.
938 (early-inlining-insns): Update docs.
939 * ipa-inline.c (want_early_inline_function_p): Use new bound.
941 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
944 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
945 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
946 a memory access insn.
948 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
950 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
953 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
956 * config/s390/s390.c (s390_expand_vec_compare): Use
957 gen_vec_cmpordered and gen_vec_cmpunordered.
958 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
959 vec_unordered): Delete.
960 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
961 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
962 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
963 (vec_cmp<code>): Generic dispatcher.
965 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
968 * config/s390/vector.md (V_HW): Add V1TI in order to make
969 vcond$a$b generate vcondv1tiv1tf.
971 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
973 PR rtl-optimization/91948
974 * ira-build.c (ira_create_allocno): Initialize
975 ALLOCNO_CROSSED_CALLS_ABIS.
976 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
977 than regno to ira_need_caller_save_p.
979 2019-10-01 Alexandre Oliva <oliva@adacore.com>
981 * config/i386/i386-options.c
982 (ix86_recompute_optlev_based_flags): New, moved out of...
983 (ix86_option_override_internal): ... this. Call it.
984 (ix86_override_options_after_change): Call it here too.
987 * dwarf2out.c (override_type_for_decl_p): New.
988 (gen_variable_die): Use it.
990 2019-10-01 Richard Biener <rguenther@suse.de>
992 * tree-vect-loop.c (vectorizable_reduction): Move variables
993 to where they are used.
995 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
997 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
998 (build_def_use): Use PC instead of CC0 in a comment.
1000 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1002 * rtl.def (CLOBBER_HIGH): Delete.
1003 * doc/rtl.texi (clobber_high): Remove documentation.
1004 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1005 (reg_is_clobbered_by_clobber_high): Delete.
1006 (gen_hard_reg_clobber_high): Likewise.
1007 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1008 * cfgexpand.c (expand_gimple_stmt): Likewise.
1009 * combine-stack-adj.c (single_set_for_csa): Likewise.
1010 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1011 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1012 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1013 * cse.c (invalidate_reg): Remove clobber_high parameter.
1014 (invalidate): Update call accordingly.
1015 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1016 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1017 (count_reg_usage, insn_live_p): Likewise.
1018 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1019 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1020 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1021 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1022 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1023 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1024 (mark_nonreg_stores_2): Likewise.
1025 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1026 (df_get_call_refs): Likewise.
1027 * dwarf2out.c (mem_loc_descriptor): Likewise.
1028 * emit-rtl.c (verify_rtx_sharing): Likewise.
1029 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1030 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1031 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1032 * genemit.c (gen_exp, gen_insn): Likewise.
1033 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1034 * haifa-sched.c (haifa_classify_rtx): Likewise.
1035 * ira-build.c (create_insn_allocnos): Likewise.
1036 * ira-costs.c (scan_one_insn): Likewise.
1037 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1038 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1039 * jump.c (mark_jump_label_1): Likewise.
1040 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1041 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1043 (mark_not_eliminable): Likewise.
1044 * lra-lives.c (process_bb_lives): Likewise.
1045 * lra.c (new_insn_reg): Remove clobber_high parameter.
1046 (collect_non_operand_hard_regs): Likewise. Update call to new
1047 insn_reg. Remove CLOBBER_HIGH handling.
1048 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1049 to collect_non_operand_hard_regs.
1050 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1051 Update call to new_insn_reg.
1052 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1053 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1054 (move2add_note_store): Likewise.
1055 * print-rtl.c (print_pattern): Likewise.
1056 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1057 (if_test_bypass_p): Likewise.
1058 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1059 * reginfo.c (reg_scan_mark_refs): Likewise.
1060 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1061 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1062 (forget_old_reloads_1): Likewise.
1063 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1064 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1065 (dbr_schedule): Likewise.
1066 * resource.c (update_live_status, mark_referenced_resources)
1067 (mark_set_resources): Likewise.
1068 * rtl.c (copy_rtx): Likewise.
1069 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1070 (note_pattern_stores): Likewise.
1071 (reg_is_clobbered_by_clobber_high): Delete.
1072 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1073 CLOBBER_HIGH handling.
1075 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1078 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1079 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1080 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1081 Handle ARM_PCS_TLSDESC.
1082 (aarch64_tlsdesc_abi_id): New function.
1083 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1084 rtx instead of a list of clobbers and clobber_highs.
1085 (tlsdesc_small_<mode>): Update accordingly.
1087 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1089 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1090 extra callee_abi argument.
1091 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1092 Insert a CALLEE_ABI unspec into the call pattern as the second
1093 element in the PARALLEL.
1094 (aarch64_simd_call_p): Delete.
1095 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1096 the new CALLEE_ABI element of the PARALLEL.
1097 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1098 from the function type, if given.
1099 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1100 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1101 when passed the function_arg_info end marker.
1102 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1103 final argument of gen_sibcall.
1104 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1105 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1106 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1108 (call_value): Likewise operand 3.
1109 (sibcall): Likewise operand 2. Place the unspec before rather than
1111 (sibcall_value): Likewise operand 3.
1112 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1113 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1114 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1116 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1118 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1120 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1121 choose_hard_reg_mode.
1122 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1124 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1126 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1127 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1128 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1130 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1132 * diagnostic-show-locus.c (line_label::line_label): Initialize
1134 (line_label::comparator): Reverse the sort order by m_state_idx,
1135 so that when the list is walked backwards the labels appear in
1136 order of insertion into the rich_location.
1137 (line_label::m_has_vbar): New field.
1138 (layout::print_any_labels): When dealing with multiple labels at
1139 the same line and column, only print vertical bars for the one
1140 with the highest label_line.
1141 (selftest::test_one_liner_labels): Update test for multiple labels
1142 to expect the labels to be in the order of insertion into the
1143 rich_location. Add a test for many such labels, where the column
1144 numbers are out-of-order relative to the insertion order.
1146 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1148 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1149 (ix86_frame::expensive_count): Likewise.
1150 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1151 of use_fast_prologue_epilogue robust against incidental changes
1154 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1157 * config/s390/vector.md (vec_unordered<mode>): Call
1158 gen_vec_ordered<mode>.
1160 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1162 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1163 New pattern for ASRD.
1164 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1165 * internal-fn.def (IFN_DIV_POW2): New internal function.
1166 * optabs.def (sdiv_pow2_optab): New optab.
1167 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1168 Modify pattern to support new operation.
1169 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1170 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1171 Document new target selector.
1173 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1175 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1176 to test whether we're compiling a vector PCS function and to test
1177 whether the function needs to save a particular register.
1178 Remove the vector PCS handling of df_set_regs_ever_live.
1179 (aarch64_components_for_bb): Use crtl->abi to test whether
1180 the function needs to save a particular register.
1181 (aarch64_process_components): Use crtl->abi to test whether
1182 we're compiling a vector PCS function.
1183 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1184 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1186 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1188 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1190 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1191 whether the block calls a function that clobbers more registers
1192 than the current function is allowed to.
1193 (aarch64_use_simple_return_insn_p): Delete.
1194 * config/aarch64/aarch64.md (simple_return): Remove condition.
1196 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1198 * function-abi.h (function_abi_aggregator): New class.
1199 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1201 * ira.c (update_equiv_regs_prescan): New function. Call
1202 set_paradoxical_subreg here rather than...
1203 (update_equiv_regs): ...here.
1204 (ira): Call update_equiv_regs_prescan.
1206 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1208 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1210 (call_used_or_fixed_regs): Likewise.
1211 (call_used_or_fixed_reg_p): Likewise.
1212 * reginfo.c (regs_invalidated_by_call): New macro.
1214 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1216 * shrink-wrap.c: Include function-abi.h.
1217 (requires_stack_frame_p): Use crtl->abi to test whether the
1218 current function can use a register without saving it first.
1220 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1222 * sel-sched-ir.h (_def::crosses_call): Replace with...
1223 (_def::crossed_call_abis): ..this new field.
1224 (def_list_add): Take a mask of ABIs instead of a crosses_call
1226 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1227 of _def accordingly.
1228 * sel-sched.c: Include function-abi.h.
1229 (hard_regs_data::regs_for_call_clobbered): Delete.
1230 (reg_rename::crosses_call): Replace with...
1231 (reg_rename::crossed_call_abis): ...this new field.
1232 (fur_static_params::crosses_call): Replace with...
1233 (fur_static_params::crossed_call_abis): ...this new field.
1234 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1235 (init_hard_regs_data): Use crtl->abi to test which registers the
1236 current function would need to save before it uses them.
1237 (mark_unavailable_hard_regs): Update handling of call-clobbered
1238 registers, using call_clobbers_in_region to find out which registers
1239 might be call-clobbered (but without taking -fipa-ra into account
1240 for now). Remove separate handling of partially call-clobbered
1242 (verify_target_availability): Use crossed_call_abis instead of
1244 (get_spec_check_type_for_insn, find_used_regs): Likewise.
1245 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1247 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1249 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1250 function to test whether a register is fully or partly clobbered.
1252 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1254 * rtlanal.c: Include function-abi.h.
1255 (reg_set_p): Use insn_callee_abi to get the ABI of the called
1256 function and clobbers_reg_p to test whether the register
1258 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
1259 to get the ABI of the called function and full_reg_clobbers to
1260 get the set of fully call-clobbered registers. Warn about the
1261 pitfalls of using this mode.
1263 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1265 * reload.c: Include function-abi.h.
1266 (find_equiv_reg): Use clobbers_reg_p to test whether either
1267 of the equivalent registers is clobbered by a call.
1268 * reload1.c: Include function-abi.h.
1269 (reg_reloaded_call_part_clobbered): Delete.
1270 (reload): Use crtl->abi to test which registers would need
1271 saving in the prologue before use.
1272 (find_reg): Likewise.
1273 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
1274 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
1275 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
1277 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1279 * regrename.h (du_head::call_clobber_mask): New field.
1280 (du_head::need_caller_save_reg): Replace with...
1281 (du_head::call_abis): ...this new field.
1282 * regrename.c: Include function-abi.h.
1283 (call_clobbered_in_chain_p): New function.
1284 (check_new_reg_p): Use crtl->abi when deciding whether a register
1285 is free for use after RA. Use call_clobbered_in_chain_p to test
1286 whether a candidate register would be clobbered by a call.
1287 (find_rename_reg): Don't add call-clobber conflicts here.
1288 (rename_chains): Check call_abis instead of need_caller_save_reg.
1289 (merge_chains): Update for changes to du_head.
1290 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
1291 target. Record the ABI identifier in call_abis and the set of
1292 fully or partially clobbered registers in call_clobber_mask.
1293 Add fully-clobbered registers to hard_conflicts here rather
1294 than in find_rename_reg.
1295 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
1296 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
1297 * config/aarch64/falkor-tag-collision-avoidance.c: Include
1299 * config/c6x/c6x.c: Likewise.
1301 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1303 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
1304 mode of the register when deciding whether it is no longer
1305 available after a call.
1307 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1309 * recog.c: Include function-abi.h.
1310 (peep2_find_free_register): Use crtl->abi when deciding whether
1311 a register is free for use after RA.
1313 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1315 * postreload-gcse.c: Include regs.h and function-abi.h.
1316 (record_opr_changes): Use insn_callee_abi to get the ABI of the
1317 call insn target. Conservatively assume that partially-clobbered
1318 registers are altered.
1320 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1322 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
1323 when deciding whether a register is free for use after RA.
1324 (reload_combine): Remove unnecessary use of fixed_reg_set.
1325 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
1326 call insn target. Use reg_mode when testing whether a register
1327 is no longer available.
1329 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1331 * target.def (return_call_with_max_clobbers): Delete.
1332 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1333 * doc/tm.texi: Regenerate.
1334 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
1335 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1336 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
1337 (lra_reg::call_insn): Delete.
1338 * lra.c: Include function-abi.h.
1339 (initialize_lra_reg_info_element): Don't initialize the fields above.
1340 (lra): Use crtl->abi to test whether the current function needs to
1341 save a register in the prologue. Remove special pre-inheritance
1342 lra_create_live_ranges pass for flag_ipa_ra.
1343 * lra-assigns.c: Include function-abi.h
1344 (find_hard_regno_for_1): Use crtl->abi to test whether the current
1345 function needs to save a register in the prologue.
1346 (lra_assign): Assert that registers aren't allocated to a
1347 conflicting register, rather than checking only for overlaps
1348 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
1349 and for registers that are not live across a call.
1350 * lra-constraints.c (last_call_for_abi): New variable.
1351 (full_and_partial_call_clobbers): Likewise.
1352 (setup_next_usage_insn): Remove the register from
1353 full_and_partial_call_clobbers.
1354 (need_for_call_save_p): Use call_clobbered_in_region_p to test
1355 whether the register needs a caller save.
1356 (need_for_split_p): Use full_and_partial_reg_clobbers instead
1357 of call_used_or_fixed_regs.
1358 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
1359 full_and_partial_call_clobbers.
1360 * lra-lives.c (check_pseudos_live_through_calls): Replace
1361 last_call_used_reg_set and call_insn arguments with an abi argument.
1362 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
1363 as the set of conflicting registers.
1364 (calls_have_same_clobbers_p): Delete.
1365 (process_bb_lives): Track the ABI of the last call instead of an
1366 insn/HARD_REG_SET pair. Update calls to
1367 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
1368 the set of registers that could be clobbered by an EH edge.
1369 Include partially-clobbered as well as fully-clobbered registers.
1370 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
1371 * lra-remat.c: Include function-abi.h.
1372 (call_used_regs_arr_len, call_used_regs_arr): Delete.
1373 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
1374 registers and bitmap_view to combine them into dead_regs.
1375 (call_used_input_regno_present_p): Take a function_abi argument
1376 and use it to test whether a register is call-clobbered.
1377 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
1378 call insn target. Update tje call to call_used_input_regno_present_p.
1379 (do_remat): Likewise.
1380 (lra_remat): Remove the initialization of call_used_regs_arr_len
1381 and call_used_regs_arr.
1383 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1385 * loop-iv.c: Include regs.h and function-abi.h.
1386 (simplify_using_initial_values): Use insn_callee_abi to get the
1387 ABI of the call insn target. Conservatively assume that
1388 partially-clobbered registers are altered.
1390 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1392 * function-abi.h (call_clobbers_in_region): Declare.
1393 (call_clobbered_in_region_p): New function.
1394 * function-abi.cc (call_clobbers_in_region): Likewise.
1395 * ira-int.h: Include function-abi.h.
1396 (ira_allocno::crossed_calls_abis): New field.
1397 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
1398 (ira_need_caller_save_regs): New function.
1399 (ira_need_caller_save_p): Likewise.
1400 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
1401 of call_used_or_fixed_regs.
1402 (do_reload): Use crtl->abi to test whether the current function
1403 needs to save a register in the prologue. Count registers that
1404 need to be saved rather than registers that don't.
1405 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
1406 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1407 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
1408 (propagate_some_info_from_allocno): Likewise.
1409 (copy_info_to_removed_store_destinations): Likewise.
1410 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
1411 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
1412 (ira_build): Use ira_need_caller_save_regs instead of
1413 call_used_or_fixed_regs.
1414 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
1415 whether the current function would need to save a register
1417 (calculate_spill_cost): Likewise.
1418 (allocno_reload_assign): Use ira_need_caller_save_regs and
1419 ira_need_caller_save_p instead of call_used_or_fixed_regs.
1420 * ira-conflicts.c (ira_build_conflicts): Use
1421 ira_need_caller_save_regs rather than call_used_or_fixed_regs
1422 as the set of call-clobbered registers. Remove the
1423 call_used_or_fixed_regs mask from the calculation of
1424 temp_hard_reg_set and mask its use instead. Remove special
1425 handling of partially-clobbered registers.
1426 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
1427 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
1428 calculate the set of conflicting registers for calls that
1429 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
1430 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
1431 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1432 Use eh_edge_abi to calculate the set of registers that could
1433 be clobbered by an EH edge. Include partially-clobbered as
1434 well as fully-clobbered registers.
1436 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1438 * haifa-sched.c: Include function-abi.h.
1439 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
1440 the function would need to save a register before using it.
1442 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1444 * gcse.c: Include function-abi.h.
1445 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
1446 the call insn target. Invalidate partially call-clobbered
1447 registers as well as fully call-clobbered ones.
1449 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1451 * function.c (aggregate_value_p): Work out which ABI the
1452 function is using before testing which registers are at least
1453 partly preserved by a call.
1455 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1457 * early-remat.c: Include regs.h and function-abi.h.
1458 (early_remat::maybe_add_candidate): Don't check for call-clobbered
1460 (early_remat::restrict_remat_for_unavail_regs): New function.
1461 (early_remat::restrict_remat_for_call): Likewise.
1462 (early_remat::process_block): Before calling emit_remat_insns
1463 for a previous call in the block, invalidate any candidates
1464 that would clobber call-preserved registers.
1465 (early_remat::emit_remat_insns_for_block): Likewise for the
1466 final call in a block. Do the same thing for live-in registers
1467 when calling emit_remat_insns at the head of a block.
1469 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1471 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
1472 whether the current function needs to save at least part of a
1473 register before using it.
1474 (df_get_exit_block_use_set): Likewise for epilogue restores.
1476 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1478 * df-problems.c: Include regs.h and function-abi.h.
1479 (df_rd_problem_data): Rename sparse_invalidated_by_call to
1480 sparse_invalidated_by_eh and dense_invalidated_by_call to
1481 dense_invalidated_by_eh.
1482 (df_print_bb_index): Update accordingly.
1483 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
1484 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
1485 that are clobbered by an EH edge. Clobber partially-clobbered
1486 registers as well as fully-clobbered ones.
1487 (df_md_confluence_n): Likewise.
1488 (df_rd_local_compute): Likewise. Update for changes to
1490 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
1491 of registers that are clobbered by an EH edge. Includde partially-
1492 clobbered registers as well as fully-clobbered ones.
1494 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1496 * cselib.c (cselib_process_insn): If we know what mode a
1497 register was set in, check whether it is clobbered in that
1498 mode by a call. Only fall back to reg_raw_mode if that fails.
1500 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1502 * cse.c: Include regs.h and function-abi.h.
1503 (invalidate_for_call): Take the call insn as an argument.
1504 Use insn_callee_abi to get the ABI of the call and invalidate
1505 partially clobbered registers as well as fully clobbered ones.
1506 (cse_insn): Update call accordingly.
1508 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1510 * combine.c: Include function-abi.h.
1511 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
1512 of the target of call insns. Invalidate partially-clobbered
1513 registers as well as fully-clobbered ones.
1515 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1517 * cfgloopanal.c: Include regs.h and function-abi.h.
1518 (init_set_costs): Use default_function_abi to test whether
1519 a general register is call-clobbered.
1521 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1523 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
1524 instead of the call-clobbered sets.
1526 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1528 * caller-save.c (setup_save_areas): Remove redundant |s of
1530 (save_call_clobbered_regs): Likewise. Use the call ABI rather
1531 than call_used_or_fixed_regs to decide whether a REG_RETURNED
1534 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1536 * rtl.h (predefined_function_abi): Declare.
1537 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
1538 instead of a boolean call_save flag.
1539 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
1541 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1542 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1543 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
1544 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1545 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1546 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
1547 * reginfo.c (init_reg_modes_target): Likewise.
1548 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
1549 instead of a boolean call_save flag.
1550 * targhooks.c: Include function-abi.h.
1551 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
1552 using eh_edge_abi to choose the mode.
1554 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1556 * target.def (hard_regno_call_part_clobbered): Take an ABI
1557 identifier instead of an rtx_insn.
1558 * doc/tm.texi: Regenerate.
1559 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
1560 (hook_bool_uint_uint_mode_false): New function.
1561 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
1562 (hook_bool_uint_uint_mode_false): New function.
1563 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1564 Take an ABI identifier instead of an rtx_insn.
1565 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
1566 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
1567 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
1568 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
1569 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
1571 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
1572 * cselib.c: Include function-abi.h.
1573 (cselib_process_insn): Update call to
1574 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
1575 to get the appropriate ABI identifier.
1576 * function-abi.cc (predefined_function_abi::initialize): Update call
1577 to targetm.hard_regno_call_part_clobbered.
1578 * ira-conflicts.c (ira_build_conflicts): Likewise.
1579 * ira-costs.c (ira_tune_allocno_costs): Likewise.
1580 * lra-constraints.c: Include function-abi.h.
1581 (need_for_call_save_p): Update call to
1582 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
1583 to get the appropriate ABI identifier.
1584 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
1585 * regcprop.c (copyprop_hardreg_forward_1): Update call
1586 to targetm.hard_regno_call_part_clobbered.
1587 * reginfo.c (choose_hard_reg_mode): Likewise.
1588 * regrename.c (check_new_reg_p): Likewise.
1589 * reload.c (find_equiv_reg): Likewise.
1590 * reload1.c (emit_reload_insns): Likewise.
1591 * sched-deps.c: Include function-abi.h.
1592 (deps_analyze_insn): Update call to
1593 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
1594 to get the appropriate ABI identifier.
1595 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
1596 call to targetm.hard_regno_call_part_clobbered.
1597 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
1599 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1601 * config/i386/i386.c: Include function-abi.h.
1602 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
1603 if they preserve some 256-bit or 512-bit SSE registers.
1605 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1607 * target.def (insn_callee_abi): New hook.
1608 (remove_extra_call_preserved_regs): Delete.
1609 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
1610 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
1611 * doc/tm.texi: Regenerate.
1612 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
1613 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
1614 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
1616 (aarch64_remove_extra_call_preserved_regs): Delete.
1617 (aarch64_insn_callee_abi): New function.
1618 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
1619 (TARGET_INSN_CALLEE_ABI): New macro.
1620 * rtl.h (get_call_fndecl): Declare.
1621 (cgraph_rtl_info): Fix formatting. Tweak comment for
1622 function_used_regs. Remove function_used_regs_valid.
1623 * rtlanal.c (get_call_fndecl): Moved from final.c
1624 * function-abi.h (insn_callee_abi): Declare.
1625 (target_function_abi_info): Mention insn_callee_abi.
1626 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
1627 way to get_call_reg_set_usage did.
1628 (insn_callee_abi): New function.
1629 * regs.h (get_call_reg_set_usage): Delete.
1630 * final.c: Include function-abi.h.
1631 (collect_fn_hard_reg_usage): Add fixed and stack registers to
1632 function_used_regs before the main loop rather than afterwards.
1633 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
1634 if function_used_regs ends up not being useful.
1635 (get_call_fndecl): Move to rtlanal.c
1636 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
1637 * caller-save.c: Include function-abi.h.
1638 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
1639 instead of get_call_reg_set_usage.
1640 * cfgcleanup.c: Include function-abi.h.
1641 (old_insns_match_p): Use insn_callee_abi instead of
1642 get_call_reg_set_usage.
1643 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
1645 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
1647 * df-scan.c: Include function-abi.h.
1648 (df_get_call_refs): Use insn_callee_abi instead of
1649 get_call_reg_set_usage.
1650 * ira-lives.c: Include function-abi.h.
1651 (process_bb_node_lives): Use insn_callee_abi instead of
1652 get_call_reg_set_usage.
1653 * lra-lives.c: Include function-abi.h.
1654 (process_bb_lives): Use insn_callee_abi instead of
1655 get_call_reg_set_usage.
1656 * postreload.c: Include function-abi.h.
1657 (reload_combine): Use insn_callee_abi instead of
1658 get_call_reg_set_usage.
1659 * regcprop.c: Include function-abi.h.
1660 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
1661 get_call_reg_set_usage.
1662 * resource.c: Include function-abi.h.
1663 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
1664 instead of get_call_reg_set_usage.
1665 * var-tracking.c: Include function-abi.h.
1666 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
1667 get_call_reg_set_usage.
1669 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1671 * target.def (fntype_abi): New target hook.
1672 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
1673 * doc/tm.texi: Regenerate.
1674 * target.h (predefined_function_abi): Declare.
1675 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
1677 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
1678 * config/aarch64/aarch64.c: Include function-abi.h.
1679 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
1680 (TARGET_FNTYPE_ABI): Define.
1682 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1684 * Makefile.in (OBJS): Add function-abi.o.
1685 (GTFILES): Add function-abi.h.
1686 * function-abi.cc: New file.
1687 * function-abi.h: Likewise.
1688 * emit-rtl.h (rtl_data::abi): New field.
1689 * function.c: Include function-abi.h.
1690 (prepare_function_start): Initialize crtl->abi.
1691 * read-rtl-function.c: Include regs.h and function-abi.h.
1692 (read_rtl_function_body): Initialize crtl->abi.
1693 (read_rtl_function_body_from_file_range): Likewise.
1694 * reginfo.c: Include function-abi.h.
1695 (init_reg_sets_1): Initialize default_function_abi.
1696 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
1697 when making a register global.
1698 * target-globals.h (this_target_function_abi_info): Declare.
1699 (target_globals::function_abi_info): New field.
1700 (restore_target_globals): Copy it.
1701 * target-globals.c: Include function-abi.h.
1702 (default_target_globals): Initialize the function_abi_info field.
1703 (target_globals): Allocate it.
1704 (save_target_globals): Free it.
1706 2019-09-30 Nick Clifton <nickc@redhat.com>
1709 * config/frv/frv.c (frv_register_move_cost): Add break statements
1710 to avoid falling through to the wrong cases. Tidy code.
1712 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1714 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1715 For multi-registers modes, test how big each register part is.
1717 2019-09-30 Nick Clifton <nickc@redhat.com>
1720 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
1721 (TARGET_ASM_SELECT_SECTION): Remove definition.
1722 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
1724 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1726 * emit-rtl.c (init_raw_REG): New function.
1727 (gen_raw_REG): Use init_raw_REG.
1728 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
1730 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
1731 * rtl.h (rtx_init): New function.
1732 (rtx_alloca): New function.
1733 (init_raw_REG): New function.
1734 (alloca_raw_REG): New macro.
1736 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
1738 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
1739 (pcrel_local_address): Replace pcrel_address predicate, use the
1740 new function address_to_insn_form.
1741 (pcrel_external_address): Replace with new implementation using
1742 address_to_insn_form..
1743 (prefixed_mem_operand): Delete predicate which is now unused.
1744 (pcrel_external_mem_operand): Delete predicate which is now
1746 * config/rs6000/rs6000-protos.h (enum insn_form): New
1748 (enum non_prefixed_form): New enumeration.
1749 (address_to_insn_form): New declaration.
1750 (prefixed_load_p): New declaration.
1751 (prefixed_store_p): New declaration.
1752 (prefixed_paddi_p): New declaration.
1753 (rs6000_asm_output_opcode): New declaration.
1754 (rs6000_final_prescan_insn): Move declaration and update calling
1756 (address_is_prefixed): New helper inline function.
1757 * config/rs6000/rs6000.c(print_operand_address): Check for either
1758 PC-relative local symbols or PC-relative external symbols.
1759 (rs6000_emit_move): Support loading PC-relative addresses.
1760 (mode_supports_prefixed_address_p): Delete, no longer used.
1761 (rs6000_prefixed_address_mode_p): Delete, no longer used.
1762 (address_to_insn_form): New function to decode an address format.
1763 (reg_to_non_prefixed): New function to identify what the
1764 non-prefixed memory instruction format is for a register.
1765 (prefixed_load_p): New function to identify prefixed loads.
1766 (prefixed_store_p): New function to identify prefixed stores.
1767 (prefixed_paddi_p): New function to identify prefixed load
1769 (next_insn_prefixed_p): New static state variable.
1770 (rs6000_final_prescan_insn): New function to determine if an insn
1771 uses a prefixed instruction.
1772 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
1773 prefixed instruction.
1774 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
1775 (ASM_OUTPUT_OPCODE): New target hook.
1776 * config/rs6000/rs6000.md (prefixed): New insn attribute for
1777 prefixed instructions.
1778 (prefixed_length): New insn attribute for the size of prefixed
1780 (non_prefixed_length): New insn attribute for the size of
1781 non-prefixed instructions.
1782 (pcrel_local_addr): New insn to load up a local PC-relative
1784 (pcrel_extern_addr): New insn to load up an external PC-relative
1786 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
1787 GPR and loading a 128-bit floating point type to a GPR.
1789 2019-09-30 Richard Biener <rguenther@suse.de>
1791 * gimple.c (gimple_get_lhs): For PHIs return the result.
1792 * tree-vectorizer.h (vectorizable_live_operation): Also get the
1793 SLP instance as argument.
1794 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
1795 double-reduction PHIs with vectorizable_lc_phi.
1796 (vect_analyze_loop_operations): Adjust.
1797 (vect_create_epilog_for_reduction): Remove all code not dealing
1798 with reduction LC PHI or epilogue generation.
1799 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
1800 for live stmts of reductions.
1801 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
1802 do not handle defs that are not vect_internal_def.
1803 (can_vectorize_live_stmts): Adjust.
1804 (vect_analyze_stmt): When the vectorized stmt defined a value
1805 used on backedges adjust the backedge uses of vectorized PHIs.
1807 2019-09-30 Martin Jambor <mjambor@suse.cz>
1810 * tree-inline.c (force_value_to_type): New function.
1811 (setup_one_parameter): Use force_value_to_type to convert type.
1812 * tree-inline.c (force_value_to_type): Declare.
1813 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
1814 with register type mismatches.
1816 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
1818 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
1820 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
1821 * config/rs6000/t-freebsd64: Make use of the above define and build
1822 the 32-bit libraries with secure-plt.
1824 2019-09-30 Jakub Jelinek <jakub@redhat.com>
1827 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
1828 gen_int_mode instead of GEN_INT.
1830 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
1832 * config/darwin.c (gen_macho_low): Amend to include the mode
1834 (machopic_indirect_data_reference): Amend gen_macho_low call
1835 to include mode argument
1836 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
1837 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
1838 the macho_high expander and two define_insn entries.
1840 2019-09-29 Jakub Jelinek <jakub@redhat.com>
1843 * optc-save-gen.awk: Fix up printing string option differences.
1845 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
1847 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
1848 vec_perm cost to 1 for non-Power7 VSX architectures.
1850 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
1852 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
1853 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
1854 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
1856 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
1858 * config/darwin.c (gen_macho_high): Amend to include the mode
1860 (machopic_indirect_data_reference): Amend gen_macho_high call
1861 to include mode argument.
1862 (machopic_legitimize_pic_address): Likewise.
1863 * config/rs6000/rs6000.c (rs6000_legitimize_address):
1864 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
1865 the macho_high expander and two define_insn entries.
1867 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
1870 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
1872 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
1875 * config/sh/sh.c (parse_validate_atomic_model_option): Use
1876 std::string::compare instead of std::string::find.
1878 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1880 * configure: Regenerate.
1882 2019-09-27 Jakub Jelinek <jakub@redhat.com>
1885 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
1886 variables as shared.
1888 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
1890 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
1891 replaces the expander and two define_insn entries.
1892 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
1894 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
1896 2019-09-27 David Malcolm <dmalcolm@redhat.com>
1898 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
1899 (fibonacci_heap::nodes): Likewise.
1900 (fibonacci_heap::min_key): Likewise.
1901 (fibonacci_heap::min): Likewise.
1903 2019-09-27 David Malcolm <dmalcolm@redhat.com>
1905 * cgraph.c (cgraph_node::get_fun): Make const.
1906 * cgraph.h (cgraph_node::get_fun): Likewise.
1908 2019-09-27 Jakub Jelinek <jakub@redhat.com>
1911 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
1914 2019-09-27 Richard Biener <rguenther@suse.de>
1916 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
1917 (STMT_VINFO_REDUC_FN): Likewise.
1918 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
1919 STMT_VINFO_REDUC_FN.
1920 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
1921 for condition reductions.
1922 (vect_create_epilog_for_reduction): Compute all required state
1923 from the stmt to be vectorized.
1924 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
1925 invocation and remove then dead code. For single def-use chains
1926 record only a single vector stmt.
1928 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
1930 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
1931 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
1932 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
1933 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
1934 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
1935 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
1936 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
1937 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
1938 (aarch64_general_builtin_rsqrt): Declare.
1939 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
1941 (aarch64_mangle_builtin_type): Rename to...
1942 (aarch64_general_mangle_builtin_type): ...this.
1943 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
1944 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
1945 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
1946 aarch64_general_add_builtin instead of add_builtin_function.
1947 (aarch64_init_builtins): Rename to...
1948 (aarch64_general_init_builtins): ...this. Use
1949 aarch64_general_add_builtin instead of add_builtin_function.
1950 (aarch64_builtin_decl): Rename to...
1951 (aarch64_general_builtin_decl): ...this and remove the unused
1953 (aarch64_expand_builtin): Rename to...
1954 (aarch64_general_expand_builtin): ...this and remove the unused
1956 (aarch64_builtin_rsqrt): Rename to...
1957 (aarch64_general_builtin_rsqrt): ...this.
1958 (aarch64_fold_builtin): Rename to...
1959 (aarch64_general_fold_builtin): ...this. Take the function subcode
1960 and return type as arguments. Remove the "ignored" argument.
1961 (aarch64_gimple_fold_builtin): Rename to...
1962 (aarch64_general_gimple_fold_builtin): ...this. Take the function
1963 subcode and gcall as arguments, and return the new function call.
1964 * config/aarch64/aarch64.c (aarch64_init_builtins)
1965 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
1966 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
1967 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
1968 instead of aarch64_builtin_rsqrt.
1969 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
1970 instead of aarch64_mangle_builtin_type.
1972 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
1974 * target.def (check_builtin_call): New target hook.
1975 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
1976 * doc/tm.texi: Regenerate.
1978 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
1980 PR tree-optimization/91909
1981 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
1982 reduc_index parameter. When handling COND_REDUCTION, make sure
1983 that the reduction phi operand is in the correct arm of the
1985 (vectorizable_reduction): Pass reduc_index to the above.
1987 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
1989 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
1990 New combine pattern.
1992 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
1994 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
1995 loop instruction into new basic block before the loop when basic
1996 block that precedes the loop is empty.
1998 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2000 * function.c (gimplify_parameters): Use build_clobber function.
2001 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2002 * tree-inline.c (expand_call_inline): Likewise.
2003 * tree-sra.c (clobber_subtree): Likewise.
2004 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2005 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2006 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2007 lower_omp_target): Likewise.
2008 * omp-expand.c (expand_omp_for_generic): Likewise.
2009 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2011 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2013 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2014 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2015 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2016 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2017 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2018 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2019 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2020 LD_ELEMREV_V16QI): Use the PURE attribute.
2022 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2024 * config/rs6000/darwin.md: Replace the expanders for
2025 load_macho_picbase and reload_macho_picbase with use of '@'
2026 and <mode> in their respective define_insns.
2027 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2028 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2029 Pmode to gen_load_macho_picbase.
2030 * config/rs6000/rs6000.md: Likewise.
2032 2019-09-25 Richard Biener <rguenther@suse.de>
2034 PR tree-optimization/91896
2035 * tree-vect-loop.c (vectorizable_reduction): The single
2036 def-use cycle optimization cannot apply when there's more
2037 than one pattern stmt involved.
2039 2019-09-26 Richard Biener <rguenther@suse.de>
2041 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2042 loop-closed PHIs that are vect_internal_def.
2043 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2045 (vectorizable_lc_phi): New.
2046 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2047 (vect_transform_stmt): Likewise.
2048 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2049 (vectorizable_lc_phi): Declare.
2051 2019-09-26 Richard Biener <rguenther@suse.de>
2053 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2054 vectorizable_reduction for vect_double_reduction_def.
2055 (vect_transform_loop): Likewise.
2056 (vect_create_epilog_for_reduction): Move double-reduction
2057 PHI creation and preheader argument setting of PHIs ...
2058 (vectorizable_reduction): ... here. Also process
2059 vect_double_reduction_def PHIs, creating the vectorized
2060 PHI nodes, remembering the scalar adjustment computed for
2061 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2062 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2063 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2064 Initialize STMT_VINFO_REDUC_CODE.
2065 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2066 (_stmt_vec_info::reduc_code): Likewise.
2067 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2068 (STMT_VINFO_REDUC_CODE): Likewise.
2070 2019-09-26 Matt Turner <mattst88@gmail.com>
2073 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2074 (mtune=): Add Negative(mtune=).
2075 (mcpu=): Add Negative(mcpu=).
2076 * config/arm/arm.opt: Likewise.
2078 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2080 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2081 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2083 * config/arm/arm_acle.h: Define builtins for the above.
2084 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2085 (simd32_op): Handle the above.
2086 * config/arm/unspecs.md: Define unspecs for the above.
2088 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2090 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2091 (arm_<sup>xtb16): Likewise.
2092 (arm_usada8): Likewise.
2093 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2094 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2095 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2096 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2097 __sxtb16, __uxtab16, __uxtb16): Define.
2098 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2099 * config/arm/unspecs.md: Define unspecs for the above.
2100 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2101 (USXTB16): Likewise.
2102 (simd32_op): New int_attribute.
2103 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2104 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2106 2019-09-26 Martin Jambor <mjambor@suse.cz>
2108 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2111 2019-09-26 Martin Jambor <mjambor@suse.cz>
2113 * ipa-sra.c (process_scan_results): Fix continue condition.
2115 2019-09-26 Martin Liska <mliska@suse.cz>
2117 PR tree-optimization/91885
2118 * tree-vectorizer.c (try_vectorize_loop_1): Add
2119 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2121 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2123 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2124 aarch64_plus_immediate rather than aarch64_uimm12_shift
2125 to test for valid PLUS immediates.
2127 2019-09-25 Martin Jambor <mjambor@suse.cz>
2129 * tree-sra.c (no_accesses_p): Remove.
2130 (no_accesses_representant): Likewise.
2132 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2134 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2136 (vaba_s16): Likewise.
2137 (vaba_s32): Likewise.
2138 (vaba_u8): Likewise.
2139 (vaba_u16): Likewise.
2140 (vaba_u32): Likewise.
2141 (vabal_high_s8): Likewise.
2142 (vabal_high_s16): Likewise.
2143 (vabal_high_s32): Likewise.
2144 (vabal_high_u8): Likewise.
2145 (vabal_high_u16): Likewise.
2146 (vabal_high_u32): Likewise.
2147 (vabal_s8): Likewise.
2148 (vabal_s16): Likewise.
2149 (vabal_s32): Likewise.
2150 (vabal_u8): Likewise.
2151 (vabal_u16): Likewise.
2152 (vabal_u32): Likewise.
2153 (vabaq_s8): Likewise.
2154 (vabaq_s16): Likewise.
2155 (vabaq_s32): Likewise.
2156 (vabaq_u8): Likewise.
2157 (vabaq_u16): Likewise.
2158 (vabaq_u32): Likewise.
2159 (vabd_s8): Likewise.
2160 (vabd_s16): Likewise.
2161 (vabd_s32): Likewise.
2162 (vabd_u8): Likewise.
2163 (vabd_u16): Likewise.
2164 (vabd_u32): Likewise.
2165 (vabdl_high_s8): Likewise.
2166 (vabdl_high_s16): Likewise.
2167 (vabdl_high_s32): Likewise.
2168 (vabdl_high_u8): Likewise.
2169 (vabdl_high_u16): Likewise.
2170 (vabdl_high_u32): Likewise.
2171 (vabdl_s8): Likewise.
2172 (vabdl_s16): Likewise.
2173 (vabdl_s32): Likewise.
2174 (vabdl_u8): Likewise.
2175 (vabdl_u16): Likewise.
2176 (vabdl_u32): Likewise.
2177 (vabdq_s8): Likewise.
2178 (vabdq_s16): Likewise.
2179 (vabdq_s32): Likewise.
2180 (vabdq_u8): Likewise.
2181 (vabdq_u16): Likewise.
2182 (vabdq_u32): Likewise.
2183 (vaddlv_s8): Likewise.
2184 (vaddlv_s16): Likewise.
2185 (vaddlv_u8): Likewise.
2186 (vaddlv_u16): Likewise.
2187 (vaddlvq_s8): Likewise.
2188 (vaddlvq_s16): Likewise.
2189 (vaddlvq_s32): Likewise.
2190 (vaddlvq_u8): Likewise.
2191 (vaddlvq_u16): Likewise.
2192 (vaddlvq_u32): Likewise.
2193 (vcvtx_f32_f64): Likewise.
2194 (vcvtx_high_f32_f64): Likewise.
2195 (vcvtxd_f32_f64): Likewise.
2196 (vmla_n_f32): Likewise.
2197 (vmla_n_s16): Likewise.
2198 (vmla_n_s32): Likewise.
2199 (vmla_n_u16): Likewise.
2200 (vmla_n_u32): Likewise.
2201 (vmla_s8): Likewise.
2202 (vmla_s16): Likewise.
2203 (vmla_s32): Likewise.
2204 (vmla_u8): Likewise.
2205 (vmla_u16): Likewise.
2206 (vmla_u32): Likewise.
2207 (vmlal_high_n_s16): Likewise.
2208 (vmlal_high_n_s32): Likewise.
2209 (vmlal_high_n_u16): Likewise.
2210 (vmlal_high_n_u32): Likewise.
2211 (vmlal_high_s8): Likewise.
2212 (vmlal_high_s16): Likewise.
2213 (vmlal_high_s32): Likewise.
2214 (vmlal_high_u8): Likewise.
2215 (vmlal_high_u16): Likewise.
2216 (vmlal_high_u32): Likewise.
2217 (vmlal_n_s16): Likewise.
2218 (vmlal_n_s32): Likewise.
2219 (vmlal_n_u16): Likewise.
2220 (vmlal_n_u32): Likewise.
2221 (vmlal_s8): Likewise.
2222 (vmlal_s16): Likewise.
2223 (vmlal_s32): Likewise.
2224 (vmlal_u8): Likewise.
2225 (vmlal_u16): Likewise.
2226 (vmlal_u32): Likewise.
2227 (vmlaq_n_f32): Likewise.
2228 (vmlaq_n_s16): Likewise.
2229 (vmlaq_n_s32): Likewise.
2230 (vmlaq_n_u16): Likewise.
2231 (vmlaq_n_u32): Likewise.
2232 (vmlaq_s8): Likewise.
2233 (vmlaq_s16): Likewise.
2234 (vmlaq_s32): Likewise.
2235 (vmlaq_u8): Likewise.
2236 (vmlaq_u16): Likewise.
2237 (vmlaq_u32): Likewise.
2238 (vmls_n_f32): Likewise.
2239 (vmls_n_s16): Likewise.
2240 (vmls_n_s32): Likewise.
2241 (vmls_n_u16): Likewise.
2242 (vmls_n_u32): Likewise.
2243 (vmls_s8): Likewise.
2244 (vmls_s16): Likewise.
2245 (vmls_s32): Likewise.
2246 (vmls_u8): Likewise.
2247 (vmls_u16): Likewise.
2248 (vmls_u32): Likewise.
2249 (vmlsl_high_n_s16): Likewise.
2250 (vmlsl_high_n_s32): Likewise.
2251 (vmlsl_high_n_u16): Likewise.
2252 (vmlsl_high_n_u32): Likewise.
2253 (vmlsl_high_s8): Likewise.
2254 (vmlsl_high_s16): Likewise.
2255 (vmlsl_high_s32): Likewise.
2256 (vmlsl_high_u8): Likewise.
2257 (vmlsl_high_u16): Likewise.
2258 (vmlsl_high_u32): Likewise.
2259 (vmlsl_n_s16): Likewise.
2260 (vmlsl_n_s32): Likewise.
2261 (vmlsl_n_u16): Likewise.
2262 (vmlsl_n_u32): Likewise.
2263 (vmlsl_s8): Likewise.
2264 (vmlsl_s16): Likewise.
2265 (vmlsl_s32): Likewise.
2266 (vmlsl_u8): Likewise.
2267 (vmlsl_u16): Likewise.
2268 (vmlsl_u32): Likewise.
2269 (vmlsq_n_f32): Likewise.
2270 (vmlsq_n_s16): Likewise.
2271 (vmlsq_n_s32): Likewise.
2272 (vmlsq_n_u16): Likewise.
2273 (vmlsq_n_u32): Likewise.
2274 (vmlsq_s8): Likewise.
2275 (vmlsq_s16): Likewise.
2276 (vmlsq_s32): Likewise.
2277 (vmlsq_u8): Likewise.
2278 (vmlsq_u16): Likewise.
2279 (vmlsq_u32): Likewise.
2280 (vmovl_high_s8): Likewise.
2281 (vmovl_high_s16): Likewise.
2282 (vmovl_high_s32): Likewise.
2283 (vmovl_high_u8): Likewise.
2284 (vmovl_high_u16): Likewise.
2285 (vmovl_high_u32): Likewise.
2286 (vmovl_s8): Likewise.
2287 (vmovl_s16): Likewise.
2288 (vmovl_s32): Likewise.
2289 (vmovl_u8): Likewise.
2290 (vmovl_u16): Likewise.
2291 (vmovl_u32): Likewise.
2292 (vmovn_high_s16): Likewise.
2293 (vmovn_high_s32): Likewise.
2294 (vmovn_high_s64): Likewise.
2295 (vmovn_high_u16): Likewise.
2296 (vmovn_high_u32): Likewise.
2297 (vmovn_high_u64): Likewise.
2298 (vmovn_s16): Likewise.
2299 (vmovn_s32): Likewise.
2300 (vmovn_s64): Likewise.
2301 (vmovn_u16): Likewise.
2302 (vmovn_u32): Likewise.
2303 (vmovn_u64): Likewise.
2304 (vmull_high_n_s16): Likewise.
2305 (vmull_high_n_s32): Likewise.
2306 (vmull_high_n_u16): Likewise.
2307 (vmull_high_n_u32): Likewise.
2308 (vmull_high_p8): Likewise.
2309 (vmull_high_s8): Likewise.
2310 (vmull_high_s16): Likewise.
2311 (vmull_high_s32): Likewise.
2312 (vmull_high_u8): Likewise.
2313 (vmull_high_u16): Likewise.
2314 (vmull_high_u32): Likewise.
2315 (vmull_n_s16): Likewise.
2316 (vmull_n_s32): Likewise.
2317 (vmull_n_u16): Likewise.
2318 (vmull_n_u32): Likewise.
2319 (vmull_p8): Likewise.
2320 (vmull_s8): Likewise.
2321 (vmull_s16): Likewise.
2322 (vmull_s32): Likewise.
2323 (vmull_u8): Likewise.
2324 (vmull_u16): Likewise.
2325 (vmull_u32): Likewise.
2326 (vpadal_s8): Likewise.
2327 (vpadal_s16): Likewise.
2328 (vpadal_s32): Likewise.
2329 (vpadal_u8): Likewise.
2330 (vpadal_u16): Likewise.
2331 (vpadal_u32): Likewise.
2332 (vpadalq_s8): Likewise.
2333 (vpadalq_s16): Likewise.
2334 (vpadalq_s32): Likewise.
2335 (vpadalq_u8): Likewise.
2336 (vpadalq_u16): Likewise.
2337 (vpadalq_u32): Likewise.
2338 (vpaddl_s8): Likewise.
2339 (vpaddl_s16): Likewise.
2340 (vpaddl_s32): Likewise.
2341 (vpaddl_u8): Likewise.
2342 (vpaddl_u16): Likewise.
2343 (vpaddl_u32): Likewise.
2344 (vpaddlq_s8): Likewise.
2345 (vpaddlq_s16): Likewise.
2346 (vpaddlq_s32): Likewise.
2347 (vpaddlq_u8): Likewise.
2348 (vpaddlq_u16): Likewise.
2349 (vpaddlq_u32): Likewise.
2350 (vpaddq_s8): Likewise.
2351 (vpaddq_s16): Likewise.
2352 (vpaddq_s32): Likewise.
2353 (vpaddq_s64): Likewise.
2354 (vpaddq_u8): Likewise.
2355 (vpaddq_u16): Likewise.
2356 (vpaddq_u32): Likewise.
2357 (vpaddq_u64): Likewise.
2358 (vqdmulh_n_s16): Likewise.
2359 (vqdmulh_n_s32): Likewise.
2360 (vqdmulhq_n_s16): Likewise.
2361 (vqdmulhq_n_s32): Likewise.
2362 (vqmovn_high_s16): Likewise.
2363 (vqmovn_high_s32): Likewise.
2364 (vqmovn_high_s64): Likewise.
2365 (vqmovn_high_u16): Likewise.
2366 (vqmovn_high_u32): Likewise.
2367 (vqmovn_high_u64): Likewise.
2368 (vqmovun_high_s16): Likewise.
2369 (vqmovun_high_s32): Likewise.
2370 (vqmovun_high_s64): Likewise.
2371 (vqrdmulh_n_s16): Likewise.
2372 (vqrdmulh_n_s32): Likewise.
2373 (vqrdmulhq_n_s16): Likewise.
2374 (vqrdmulhq_n_s32): Likewise.
2375 (vrsqrte_u32): Likewise.
2376 (vrsqrteq_u32): Likewise.
2377 (vtst_p8): Likewise.
2378 (vtst_p16): Likewise.
2379 (vtst_p64): Likewise.
2380 (vtstq_p8): Likewise.
2381 (vtstq_p16): Likewise.
2382 (vtstq_p64): Likewise.
2383 (vaddlv_s32): Likewise.
2384 (vaddlv_u32): Likewise.
2385 (vqtbl1_p8): Likewise.
2386 (vqtbl1_s8): Likewise.
2387 (vqtbl1_u8): Likewise.
2388 (vqtbl1q_p8): Likewise.
2389 (vqtbl1q_s8): Likewise.
2390 (vqtbl1q_u8): Likewise.
2391 (vqtbx1_s8): Likewise.
2392 (vqtbx1_u8): Likewise.
2393 (vqtbx1_p8): Likewise.
2394 (vqtbx1q_s8): Likewise.
2395 (vqtbx1q_u8): Likewise.
2396 (vqtbx1q_p8): Likewise.
2397 (vtbl1_s8): Likewise.
2398 (vtbl1_u8): Likewise.
2399 (vtbl1_p8): Likewise.
2400 (vtbl2_s8): Likewise.
2401 (vtbl2_u8): Likewise.
2402 (vtbl2_p8): Likewise.
2403 (vtbl3_s8): Likewise.
2404 (vtbl3_u8): Likewise.
2405 (vtbl3_p8): Likewise.
2406 (vtbl4_s8): Likewise.
2407 (vtbl4_u8): Likewise.
2408 (vtbl4_p8): Likewise.
2409 (vtbx2_s8): Likewise.
2410 (vtbx2_u8): Likewise.
2411 (vtbx2_p8): Likewise.
2412 (vld1_f32): Likewise.
2413 (vld1_f64): Likewise.
2414 (vld1_p8): Likewise.
2415 (vld1_p16): Likewise.
2416 (vld1_p64): Likewise.
2417 (vld1_s8): Likewise.
2418 (vld1_s16): Likewise.
2419 (vld1_s32): Likewise.
2420 (vld1_s64): Likewise.
2421 (vld1_u8): Likewise.
2422 (vld1_u16): Likewise.
2423 (vld1_u32): Likewise.
2424 (vld1_u64): Likewise.
2425 (vld1q_f32): Likewise.
2426 (vld1q_f64): Likewise.
2427 (vld1q_p8): Likewise.
2428 (vld1q_p16): Likewise.
2429 (vld1q_p64): Likewise.
2430 (vld1q_s8): Likewise.
2431 (vld1q_s16): Likewise.
2432 (vld1q_s32): Likewise.
2433 (vld1q_s64): Likewise.
2434 (vld1q_u8): Likewise.
2435 (vld1q_u16): Likewise.
2436 (vld1q_u32): Likewise.
2437 (vld1q_u64): Likewise.
2438 (vpmax_s8): Likewise.
2439 (vpmax_s16): Likewise.
2440 (vpmax_s32): Likewise.
2441 (vpmax_u8): Likewise.
2442 (vpmax_u16): Likewise.
2443 (vpmax_u32): Likewise.
2444 (vpmaxq_s8): Likewise.
2445 (vpmaxq_s16): Likewise.
2446 (vpmaxq_s32): Likewise.
2447 (vpmaxq_u8): Likewise.
2448 (vpmaxq_u16): Likewise.
2449 (vpmaxq_u32): Likewise.
2450 (vpmax_f32): Likewise.
2451 (vpmaxq_f32): Likewise.
2452 (vpmaxq_f64): Likewise.
2453 (vpmaxqd_f64): Likewise.
2454 (vpmaxs_f32): Likewise.
2455 (vpmaxnm_f32): Likewise.
2456 (vpmaxnmq_f32): Likewise.
2457 (vpmaxnmq_f64): Likewise.
2458 (vpmaxnmqd_f64): Likewise.
2459 (vpmaxnms_f32): Likewise.
2460 (vpmin_s8): Likewise.
2461 (vpmin_s16): Likewise.
2462 (vpmin_s32): Likewise.
2463 (vpmin_u8): Likewise.
2464 (vpmin_u16): Likewise.
2465 (vpmin_u32): Likewise.
2466 (vpminq_s8): Likewise.
2467 (vpminq_s16): Likewise.
2468 (vpminq_s32): Likewise.
2469 (vpminq_u8): Likewise.
2470 (vpminq_u16): Likewise.
2471 (vpminq_u32): Likewise.
2472 (vpmin_f32): Likewise.
2473 (vpminq_f32): Likewise.
2474 (vpminq_f64): Likewise.
2475 (vpminqd_f64): Likewise.
2476 (vpmins_f32): Likewise.
2477 (vpminnm_f32): Likewise.
2478 (vpminnmq_f32): Likewise.
2479 (vpminnmq_f64): Likewise.
2480 (vpminnmqd_f64): Likewise.
2481 (vpminnms_f32): Likewise.
2482 (vmla_f32): Likewise.
2483 (vmlaq_f32): Likewise.
2484 (vmlaq_f64): Likewise.
2485 (vmls_f32): Likewise.
2486 (vmlsq_f32): Likewise.
2487 (vmlsq_f64): Likewise.
2488 (vqtbl2_s8): Likewise.
2489 (vqtbl2_u8): Likewise.
2490 (vqtbl2_p8): Likewise.
2491 (vqtbl2q_s8): Likewise.
2492 (vqtbl2q_u8): Likewise.
2493 (vqtbl2q_p8): Likewise.
2494 (vqtbl3_s8): Likewise.
2495 (vqtbl3_u8): Likewise.
2496 (vqtbl3_p8): Likewise.
2497 (vqtbl3q_s8): Likewise.
2498 (vqtbl3q_u8): Likewise.
2499 (vqtbl3q_p8): Likewise.
2500 (vqtbl4_s8): Likewise.
2501 (vqtbl4_u8): Likewise.
2502 (vqtbl4_p8): Likewise.
2503 (vqtbl4q_s8): Likewise.
2504 (vqtbl4q_u8): Likewise.
2505 (vqtbl4q_p8): Likewise.
2506 (vqtbx2_s8): Likewise.
2507 (vqtbx2_u8): Likewise.
2508 (vqtbx2_p8): Likewise.
2509 (vqtbx2q_s8): Likewise.
2510 (vqtbx2q_u8): Likewise.
2511 (vqtbx2q_p8): Likewise.
2512 (vqtbx3_s8): Likewise.
2513 (vqtbx3_u8): Likewise.
2514 (vqtbx3_p8): Likewise.
2515 (vqtbx3q_s8): Likewise.
2516 (vqtbx3q_u8): Likewise.
2517 (vqtbx3q_p8): Likewise.
2518 (vqtbx4_s8): Likewise.
2519 (vqtbx4_u8): Likewise.
2520 (vqtbx4_p8): Likewise.
2521 (vqtbx4q_s8): Likewise.
2522 (vqtbx4q_u8): Likewise.
2523 (vqtbx4q_p8): Likewise.
2524 (vrev16_p8): Likewise.
2525 (vrev16_s8): Likewise.
2526 (vrev16_u8): Likewise.
2527 (vrev16q_p8): Likewise.
2528 (vrev16q_s8): Likewise.
2529 (vrev16q_u8): Likewise.
2530 (vrev32_p8): Likewise.
2531 (vrev32_p16): Likewise.
2532 (vrev32_s8): Likewise.
2533 (vrev32_s16): Likewise.
2534 (vrev32_u8): Likewise.
2535 (vrev32_u16): Likewise.
2536 (vrev32q_p8): Likewise.
2537 (vrev32q_p16): Likewise.
2538 (vrev32q_s8): Likewise.
2539 (vrev32q_s16): Likewise.
2540 (vrev32q_u8): Likewise.
2541 (vrev32q_u16): Likewise.
2542 (vrev64_f32): Likewise.
2543 (vrev64_p8): Likewise.
2544 (vrev64_p16): Likewise.
2545 (vrev64_s8): Likewise.
2546 (vrev64_s16): Likewise.
2547 (vrev64_s32): Likewise.
2548 (vrev64_u8): Likewise.
2549 (vrev64_u16): Likewise.
2550 (vrev64_u32): Likewise.
2551 (vrev64q_f32): Likewise.
2552 (vrev64q_p8): Likewise.
2553 (vrev64q_p16): Likewise.
2554 (vrev64q_s8): Likewise.
2555 (vrev64q_s16): Likewise.
2556 (vrev64q_s32): Likewise.
2557 (vrev64q_u8): Likewise.
2558 (vrev64q_u16): Likewise.
2559 (vrev64q_u32): Likewise.
2560 (vsha1cq_u32): Likewise.
2561 (vsha1mq_u32): Likewise.
2562 (vsha1pq_u32): Likewise.
2563 (vsha1h_u32): Likewise.
2564 (vsha1su0q_u32): Likewise.
2565 (vsha1su1q_u32): Likewise.
2566 (vsha256hq_u32): Likewise.
2567 (vsha256h2q_u32): Likewise.
2568 (vsha256su0q_u32): Likewise.
2569 (vsha256su1q_u32): Likewise.
2570 (vmull_p64): Likewise.
2571 (vmull_high_p64): Likewise.
2572 (vsqrt_f32): Likewise.
2573 (vsqrtq_f32): Likewise.
2574 (vsqrt_f64): Likewise.
2575 (vsqrtq_f64): Likewise.
2576 (vst1_f32): Likewise.
2577 (vst1_f64): Likewise.
2578 (vst1_p8): Likewise.
2579 (vst1_p16): Likewise.
2580 (vst1_p64): Likewise.
2581 (vst1_s8): Likewise.
2582 (vst1_s16): Likewise.
2583 (vst1_s32): Likewise.
2584 (vst1_s64): Likewise.
2585 (vst1_u8): Likewise.
2586 (vst1_u16): Likewise.
2587 (vst1_u32): Likewise.
2588 (vst1_u64): Likewise.
2589 (vst1q_f32): Likewise.
2590 (vst1q_f64): Likewise.
2591 (vst1q_p8): Likewise.
2592 (vst1q_p16): Likewise.
2593 (vst1q_p64): Likewise.
2594 (vst1q_s8): Likewise.
2595 (vst1q_s16): Likewise.
2596 (vst1q_s32): Likewise.
2597 (vst1q_s64): Likewise.
2598 (vst1q_u8): Likewise.
2599 (vst1q_u16): Likewise.
2600 (vst1q_u32): Likewise.
2601 (vst1q_u64): Likewise.
2602 (vst1_s64_x2): Likewise.
2603 (vst1_u64_x2): Likewise.
2604 (vst1_f64_x2): Likewise.
2605 (vst1_s8_x2): Likewise.
2606 (vst1_p8_x2): Likewise.
2607 (vst1_s16_x2): Likewise.
2608 (vst1_p16_x2): Likewise.
2609 (vst1_s32_x2): Likewise.
2610 (vst1_u8_x2): Likewise.
2611 (vst1_u16_x2): Likewise.
2612 (vst1_u32_x2): Likewise.
2613 (vst1_f16_x2): Likewise.
2614 (vst1_f32_x2): Likewise.
2615 (vst1_p64_x2): Likewise.
2616 (vst1q_s8_x2): Likewise.
2617 (vst1q_p8_x2): Likewise.
2618 (vst1q_s16_x2): Likewise.
2619 (vst1q_p16_x2): Likewise.
2620 (vst1q_s32_x2): Likewise.
2621 (vst1q_s64_x2): Likewise.
2622 (vst1q_u8_x2): Likewise.
2623 (vst1q_u16_x2): Likewise.
2624 (vst1q_u32_x2): Likewise.
2625 (vst1q_u64_x2): Likewise.
2626 (vst1q_f16_x2): Likewise.
2627 (vst1q_f32_x2): Likewise.
2628 (vst1q_f64_x2): Likewise.
2629 (vst1q_p64_x2): Likewise.
2630 (vst1_s64_x3): Likewise.
2631 (vst1_u64_x3): Likewise.
2632 (vst1_f64_x3): Likewise.
2633 (vst1_s8_x3): Likewise.
2634 (vst1_p8_x3): Likewise.
2635 (vst1_s16_x3): Likewise.
2636 (vst1_p16_x3): Likewise.
2637 (vst1_s32_x3): Likewise.
2638 (vst1_u8_x3): Likewise.
2639 (vst1_u16_x3): Likewise.
2640 (vst1_u32_x3): Likewise.
2641 (vst1_f16_x3): Likewise.
2642 (vst1_f32_x3): Likewise.
2643 (vst1_p64_x3): Likewise.
2644 (vst1q_s8_x3): Likewise.
2645 (vst1q_p8_x3): Likewise.
2646 (vst1q_s16_x3): Likewise.
2647 (vst1q_p16_x3): Likewise.
2648 (vst1q_s32_x3): Likewise.
2649 (vst1q_s64_x3): Likewise.
2650 (vst1q_u8_x3): Likewise.
2651 (vst1q_u16_x3): Likewise.
2652 (vst1q_u32_x3): Likewise.
2653 (vst1q_u64_x3): Likewise.
2654 (vst1q_f16_x3): Likewise.
2655 (vst1q_f32_x3): Likewise.
2656 (vst1q_f64_x3): Likewise.
2657 (vst1q_p64_x3): Likewise.
2658 (vst2_s64): Likewise.
2659 (vst2_u64): Likewise.
2660 (vst2_f64): Likewise.
2661 (vst2_s8): Likewise.
2662 (vst2_p8): Likewise.
2663 (vst2_s16): Likewise.
2664 (vst2_p16): Likewise.
2665 (vst2_s32): Likewise.
2666 (vst2_u8): Likewise.
2667 (vst2_u16): Likewise.
2668 (vst2_u32): Likewise.
2669 (vst2_f16): Likewise.
2670 (vst2_f32): Likewise.
2671 (vst2_p64): Likewise.
2672 (vst2q_s8): Likewise.
2673 (vst2q_p8): Likewise.
2674 (vst2q_s16): Likewise.
2675 (vst2q_p16): Likewise.
2676 (vst2q_s32): Likewise.
2677 (vst2q_s64): Likewise.
2678 (vst2q_u8): Likewise.
2679 (vst2q_u16): Likewise.
2680 (vst2q_u32): Likewise.
2681 (vst2q_u64): Likewise.
2682 (vst2q_f16): Likewise.
2683 (vst2q_f32): Likewise.
2684 (vst2q_f64): Likewise.
2685 (vst2q_p64): Likewise.
2686 (vst3_s64): Likewise.
2687 (vst3_u64): Likewise.
2688 (vst3_f64): Likewise.
2689 (vst3_s8): Likewise.
2690 (vst3_p8): Likewise.
2691 (vst3_s16): Likewise.
2692 (vst3_p16): Likewise.
2693 (vst3_s32): Likewise.
2694 (vst3_u8): Likewise.
2695 (vst3_u16): Likewise.
2696 (vst3_u32): Likewise.
2697 (vst3_f16): Likewise.
2698 (vst3_f32): Likewise.
2699 (vst3_p64): Likewise.
2700 (vst3q_s8): Likewise.
2701 (vst3q_p8): Likewise.
2702 (vst3q_s16): Likewise.
2703 (vst3q_p16): Likewise.
2704 (vst3q_s32): Likewise.
2705 (vst3q_s64): Likewise.
2706 (vst3q_u8): Likewise.
2707 (vst3q_u16): Likewise.
2708 (vst3q_u32): Likewise.
2709 (vst3q_u64): Likewise.
2710 (vst3q_f16): Likewise.
2711 (vst3q_f32): Likewise.
2712 (vst3q_f64): Likewise.
2713 (vst3q_p64): Likewise.
2714 (vst4_s64): Likewise.
2715 (vst4_u64): Likewise.
2716 (vst4_f64): Likewise.
2717 (vst4_s8): Likewise.
2718 (vst4_p8): Likewise.
2719 (vst4_s16): Likewise.
2720 (vst4_p16): Likewise.
2721 (vst4_s32): Likewise.
2722 (vst4_u8): Likewise.
2723 (vst4_u16): Likewise.
2724 (vst4_u32): Likewise.
2725 (vst4_f16): Likewise.
2726 (vst4_f32): Likewise.
2727 (vst4_p64): Likewise.
2728 (vst4q_s8): Likewise.
2729 (vst4q_p8): Likewise.
2730 (vst4q_s16): Likewise.
2731 (vst4q_p16): Likewise.
2732 (vst4q_s32): Likewise.
2733 (vst4q_s64): Likewise.
2734 (vst4q_u8): Likewise.
2735 (vst4q_u16): Likewise.
2736 (vst4q_u32): Likewise.
2737 (vst4q_u64): Likewise.
2738 (vst4q_f16): Likewise.
2739 (vst4q_f32): Likewise.
2740 (vst4q_f64): Likewise.
2741 (vst4q_p64): Likewise.
2742 (vtbx4_s8): Likewise.
2743 (vtbx4_u8): Likewise.
2744 (vtbx4_p8): Likewise.
2745 (vtrn_f32): Likewise.
2746 (vtrn_p8): Likewise.
2747 (vtrn_p16): Likewise.
2748 (vtrn_s8): Likewise.
2749 (vtrn_s16): Likewise.
2750 (vtrn_s32): Likewise.
2751 (vtrn_u8): Likewise.
2752 (vtrn_u16): Likewise.
2753 (vtrn_u32): Likewise.
2754 (vtrnq_f32): Likewise.
2755 (vtrnq_p8): Likewise.
2756 (vtrnq_p16): Likewise.
2757 (vtrnq_s8): Likewise.
2758 (vtrnq_s16): Likewise.
2759 (vtrnq_s32): Likewise.
2760 (vtrnq_u8): Likewise.
2761 (vtrnq_u16): Likewise.
2762 (vtrnq_u32): Likewise.
2763 (vrsqrte_f16): Likewise.
2764 (vrsqrteq_f16): Likewise.
2765 (vsqrt_f16): Likewise.
2766 (vsqrtq_f16): Likewise.
2767 (vabd_f16): Likewise.
2768 (vabdq_f16): Likewise.
2769 (vpadd_f16): Likewise.
2770 (vpaddq_f16): Likewise.
2771 (vpmax_f16): Likewise.
2772 (vpmaxq_f16): Likewise.
2773 (vpmaxnm_f16): Likewise.
2774 (vpmaxnmq_f16): Likewise.
2775 (vpmin_f16): Likewise.
2776 (vpminq_f16): Likewise.
2777 (vpminnm_f16): Likewise.
2778 (vpminnmq_f16): Likewise.
2779 (vrsqrts_f16): Likewise.
2780 (vrsqrtsq_f16): Likewise.
2782 2019-09-25 Richard Biener <rguenther@suse.de>
2784 PR tree-optimization/91896
2785 * tree-vect-loop.c (vectorizable_reduction): The single
2786 def-use cycle optimization cannot apply when there's more
2787 than one pattern stmt involved.
2789 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
2791 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
2792 the 'P' mode iterator, replacing the (removed) SI and DI variants.
2793 (reload_macho_picbase_<mode>): Likewise.
2795 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
2797 * config/rs6000/rs6000.md: Move darwin.md include until
2798 after the definition of the mode iterators.
2800 2019-09-23 Martin Sebor <msebor@redhat.com>
2802 PR tree-optimization/91570
2803 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
2804 non-constant minlen, maxlen and maxbound.
2806 2019-09-24 Richard Biener <rguenther@suse.de>
2808 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
2810 (_stmt_vec_info::cond_reduc_code): ... this.
2811 (_stmt_vec_info::induc_cond_initial_val): Add.
2812 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
2813 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
2814 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
2815 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
2816 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
2818 (vect_create_epilog_for_reduction): Drop special
2819 induction condition reduction params, pass in reduction code
2821 (vectorizable_reduction): Perform condition reduction kind
2822 selection only at analysis time. Adjust passing on state.
2824 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2826 * config/aarch64/aarch64.md (mov<mode>): Don't call
2827 aarch64_split_dimode_const_store on volatile MEM.
2829 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
2831 * config/aarch64/aarch64-option-extensions.def (fp16fml):
2832 Update hwcap string for fp16fml.
2834 2019-09-24 Jakub Jelinek <jakub@redhat.com>
2837 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
2838 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
2840 2019-09-24 Martin Liska <mliska@suse.cz>
2842 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
2843 instead of if-elseif-elseif-...
2844 * gimple-expr.c (extract_ops_from_tree): Likewise.
2845 * gimple.c (get_gimple_rhs_num_ops): Likewise.
2846 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
2848 2019-09-24 Martin Jambor <mjambor@suse.cz>
2851 * ipa-param-manipulation.c (carry_over_param): Make a method of
2852 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
2853 in case of a context mismatch.
2854 (ipa_param_body_adjustments::common_initialization): Adjust call to
2856 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
2857 private method carry_over_param.
2859 2019-09-24 Martin Jambor <mjambor@suse.cz>
2862 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
2864 2019-09-24 Richard Biener <rguenther@suse.de>
2866 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
2869 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2871 * config/arm/t-arm (arm-builtins.o): Add dependency on
2872 arm_acle_builtins.def.
2874 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
2877 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
2878 canonical CONST_INTs. Use gen_rtvec.
2880 2019-09-23 Richard Biener <rguenther@suse.de>
2882 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
2883 avoid adjusting by + 0 or * 1.
2884 (vect_create_epilog_for_reduction): Get reduction code only
2885 when necessary. Deal with adjustment_def only when necessary.
2887 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
2889 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
2892 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2895 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
2898 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
2900 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
2901 code. Merge code blocks with common conditionals. Use declared
2902 macro instead of a magic number for PIC level.
2904 2019-09-21 Martin Sebor <msebor@redhat.com>
2907 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
2908 Simplify computation of the offset of the referenced subobject.
2910 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
2912 * config/darwin.c (machopic_legitimize_pic_address): Check
2915 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
2917 * ira-conflicts.c (can_use_same_reg_p): New function.
2918 (process_reg_shuffles): Take an insn parameter. Ignore cases
2919 in which input operand op_num could seemingly never be allocated
2920 to the same register as the destination.
2921 (add_insn_allocno_copies): Update call to process_reg_shuffles.
2923 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
2925 * simplify-rtx.c (neg_const_int): Replace with...
2926 (neg_poly_int_rtx): ...this new function.
2927 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
2928 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
2929 (simplify_plus_minus): Likewise for constant terms here.
2931 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
2933 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
2934 HOST_WIDE_PRINT_UNSIGNED.
2936 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
2938 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
2941 2019-09-20 Maya Rashish <coypu@sdf.org>
2944 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
2945 Define to speculation_safe_value_not_needed.
2947 2019-09-20 Richard Biener <rguenther@suse.de>
2948 Uros Bizjak <ubizjak@gmail.com>
2951 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
2953 (general_scalar_chain::convert_op): Force not suitable memory
2954 operands to a register.
2956 2019-09-20 Richard Biener <rguenther@suse.de>
2958 PR tree-optimization/91821
2959 * tree-vect-loop.c (check_reduction_path): Check we can compute
2961 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
2962 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
2963 operands in canonical order.
2964 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2965 STMT_VINFO_REDUC_IDX.
2966 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
2967 (STMT_VINFO_REDUC_IDX): Likewise.
2969 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
2972 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
2974 2019-09-20 Richard Biener <rguenther@suse.de>
2976 PR tree-optimization/91822
2977 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
2979 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
2980 for reduc_index in nested cycles, adjust vectorizable_condition
2982 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
2984 (vect_analyze_stmt): Adjust.
2985 (vect_transform_stmt): Likewise.
2987 2019-09-20 Richard Biener <rguenther@suse.de>
2990 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
2991 Ensure there's a sequence point between allocating the new register
2992 and passing a reference to a reg via regno_reg_rtx.
2994 2019-09-20 Martin Jambor <mjambor@suse.cz>
2996 * coretypes.h (cgraph_edge): Declare.
2997 * ipa-param-manipulation.c: Rewrite.
2998 * ipa-param-manipulation.h: Likewise.
2999 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3000 (OBJS): Added ipa-sra.o.
3001 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3002 and ref_p, added fields param_adjustments and performed_splits.
3003 (struct cgraph_clone_info): Remove ags_to_skip and
3004 combined_args_to_skip, new field param_adjustments.
3005 (cgraph_node::create_clone): Changed parameters to use
3006 ipa_param_adjustments.
3007 (cgraph_node::create_virtual_clone): Likewise.
3008 (cgraph_node::create_virtual_clone_with_body): Likewise.
3009 (tree_function_versioning): Likewise.
3010 (cgraph_build_function_type_skip_args): Removed.
3011 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3012 using ipa_param_adjustments.
3013 (clone_of_p): Likewise.
3014 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3015 (build_function_decl_skip_args): Likewise.
3016 (duplicate_thunk_for_node): Adjust parameters using
3017 ipa_param_body_adjustments, copy param_adjustments instead of
3019 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3020 (cgraph_node::create_virtual_clone): Likewise.
3021 (cgraph_node::create_version_clone_with_body): Likewise.
3022 (cgraph_materialize_clone): Likewise.
3023 (symbol_table::materialize_all_clones): Likewise.
3024 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3025 ipa_replace_map check.
3026 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3027 (initialize_node_lattices): Make aware that some parameters might have
3028 already been removed.
3029 (want_remove_some_param_p): New function.
3030 (create_specialized_node): Convert to using ipa_param_adjustments and
3031 deal with possibly pre-existing adjustments.
3032 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3033 (output_node_opt_summary): Do not stream removed fields. Stream
3034 parameter adjustments instead of argumetns to skip.
3035 (input_node_opt_summary): Likewise.
3036 (input_node_opt_summary): Likewise.
3037 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3038 * lto-streamer.h (lto_section_type): Likewise.
3039 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3041 (copy_decl_to_var): Declare.
3042 * tree-inline.c (update_clone_info): Do not remap old_tree.
3043 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3044 statements, walk all extra generated statements and remap their
3046 (redirect_all_calls): Add killed SSA names to a hash set.
3047 (remap_ssa_name): Do not remap killed SSA names.
3048 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3049 half of functionality moved to ipa_param_body_adjustments.
3050 (copy_decl_to_var): Make exported.
3051 (copy_body): Destroy killed_new_ssa_names hash set.
3052 (expand_call_inline): Remap performed splits.
3053 (update_clone_info): Likewise.
3054 (tree_function_versioning): Simplify tree_map processing. Updated to
3055 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3056 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3057 for the new interface.
3058 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3059 (simd_clone_compute_base_data_type): Likewise.
3060 (simd_clone_init_simd_arrays): Adjust for the new interface.
3061 (simd_clone_adjust_argument_types): Likewise.
3062 (struct modify_stmt_info): Likewise.
3063 (ipa_simd_modify_stmt_ops): Likewise.
3064 (ipa_simd_modify_function_body): Likewise.
3065 (simd_clone_adjust): Likewise.
3066 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3067 (type_internals_preclude_sra_p): Make public.
3068 * tree-sra.h: New file.
3069 * ipa-inline-transform.c (save_inline_function_body): Update to
3070 refelct new tree_function_versioning signature.
3071 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3072 ipa_param_adjustments to get current parameter indices.
3073 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3074 (ipcp_update_bits): Likewise.
3075 (ipcp_update_vr): Likewise.
3076 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3077 * ipa-sra.c: New file.
3078 * multiple_target.c (create_target_clone): Update to reflet new type
3079 of create_version_clone_with_body.
3080 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3081 tree_function_versioning.
3082 (modify_function): Update to reflect new type of
3083 tree_function_versioning.
3084 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3085 * passes.def: Remove old IPA-SRA and add new one.
3086 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3087 (make_pass_ipa_sra): Declare.
3088 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3090 * doc/invoke.texi (ipa-sra-max-replacements): New.
3092 2019-09-19 Martin Sebor <msebor@redhat.com>
3095 * builtins.c (component_size): Correct trailing array computation,
3096 rename to component_ref_size and move...
3097 (compute_objsize): Adjust.
3098 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3099 (builtin_access::strict): Do not consider memmove.
3100 (builtin_access::write_off): New function.
3101 (builtin_memref::builtin_memref): Initialize refsize.
3102 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3104 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3106 (builtin_access::builtin_access): Initialize dstoff to destination
3107 refeence offset here instead of in maybe_diag_overlap. Adjust
3108 referencess even to unrelated objects. Adjust sizrange of bounded
3109 string functions to reflect bound. For strcat, adjust destination
3110 sizrange by that of source.
3111 (builtin_access::strcat_overlap): Adjust offsets and sizes
3112 to reflect the increase in destination sizrange above.
3113 (builtin_access::overlap): Do not set dstoff here but instead
3114 in builtin_access::builtin_access.
3115 (check_bounds_or_overlap): Use builtin_access::write_off.
3116 (maybe_diag_access_bounds): Add argument. Add informational notes.
3117 (dump_builtin_memref, dump_builtin_access): New functions.
3118 * tree.c (component_ref_size): ...to here.
3119 * tree.h (component_ref_size): Declare.
3120 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3121 nul in the size of the source string.
3123 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3126 * doc/cpp.texi: Document support for extended characters in
3128 * doc/cppopts.texi: Likewise.
3130 2019-09-19 Richard Biener <rguenther@suse.de>
3132 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3133 (check_reduction_path): New overload having the path as result.
3134 (vect_is_simple_reduction): From the detected reduction
3135 path build a SLP reduction chain if possible.
3137 2019-09-19 Richard Biener <rguenther@suse.de>
3140 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3141 Force operand to a register if it isn't nonimmediate_operand.
3143 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3145 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3146 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3147 (logical_op): Remove code attribute.
3148 (logical_OP): Likewise.
3150 2019-09-19 Martin Liska <mliska@suse.cz>
3152 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3155 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3157 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3160 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3161 for NE comparison of TImode values.
3162 (aarch64_emit_load_exclusive): Add support for TImode.
3163 (aarch64_emit_store_exclusive): Likewise.
3164 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3165 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3166 Change iterator from ALLI to ALLI_TI.
3167 (@atomic_compare_and_swap<JUST_TI>): New.
3168 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3169 (aarch64_load_exclusive_pair): New.
3170 (aarch64_store_exclusive_pair): New.
3171 * config/aarch64/iterators.md (JUST_TI): New.
3173 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3174 strong_zero_p for aarch64_track_speculation; unify some code paths;
3175 use aarch64_gen_compare_reg instead of open-coding.
3177 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3178 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3179 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3180 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3181 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3182 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3183 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3184 (atomic_<atomic_op><ALLI>): Likewise.
3185 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3186 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3187 * doc/invoke.texi: Document -moutline-atomics.
3189 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3191 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3192 trivial predicate for condition branch.
3193 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3195 (compute_bb_predicates): Update predicate based on post-dominating
3197 (analyze_function_body): Calculate post-dominating information.
3199 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3201 * tree-vectorizer.h (vectorizable_condition): Take an int
3202 reduction index instead of a boolean flag.
3203 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3204 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3205 reductions if the reduction accumulator is the "then" rather
3206 than the "else" value.
3207 (vect_analyze_stmt): Update call accordingly.
3208 (vect_transform_stmt): Likewise.
3209 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3210 asserting that the index is > 0.
3212 2019-09-19 Martin Liska <mliska@suse.cz>
3214 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3215 (sort_congruence_classes_by_decl_uid): Likewise.
3216 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3218 (sem_item_optimizer::merge_classes): Likewise.
3220 2019-09-19 Richard Biener <rguenther@suse.de>
3222 PR tree-optimization/91812
3223 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3226 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3228 * defaults.h (TARGET_UNIT): New macro.
3229 (target_unit): New type.
3230 * rtl.h (native_encode_rtx, native_decode_rtx)
3231 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3232 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3233 * rtlanal.c (subreg_lsb_1): Delete.
3234 (subreg_size_lsb): New function.
3235 * simplify-rtx.c: Include rtx-vector-builder.h
3236 (simplify_immed_subreg): Delete.
3237 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3238 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3240 (simplify_subreg): Use them.
3241 (test_vector_subregs_modes, test_vector_subregs_repeating)
3242 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3243 (test_vector_subregs): New functions.
3244 (test_vector_ops): Call test_vector_subregs for integer vector
3245 modes with at least 2 elements.
3247 2019-09-19 Richard Biener <rguenther@suse.de>
3249 * tree-parloops.c (parloops_is_slp_reduction): Do not set
3250 LOOP_VINFO_OPERANDS_SWAPPED.
3251 (parloops_is_simple_reduction): Likewise.
3252 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
3253 initialize operands_swapped.
3254 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
3255 (vect_is_slp_reduction): Do not swap operands.
3256 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
3257 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
3259 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
3262 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
3263 Add avx_partial_xmm_update.
3265 2019-09-18 Jim Wilson <jimw@sifive.com>
3268 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
3269 (riscv_move_integer): Likewise.
3270 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
3271 riscv_move_integer arg.
3272 (riscv_legitimize_move): Likewise.
3273 (riscv_force_temporary): New parameter in_splitter. Don't call
3275 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
3277 (riscv_add_offset): Likewise.
3278 (riscv_split_symbol): New parameter in_splitter. Pass to
3279 riscv_force_temporary.
3280 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
3282 (riscv_move_integer): New parameter in_splitter. New local
3283 can_create_psuedo. Don't call riscv_split_integer or force_reg when
3285 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
3286 riscv_split_symbol, and riscv_force_temporary args.
3287 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
3288 riscv_move_integer arg.
3289 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
3291 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3294 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
3295 hard register store cost to 6.
3297 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3300 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
3301 pseudo register store cost from 3 to 6 to make it the same as
3304 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3307 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
3308 (one_cmpldi2): Likewise.
3309 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
3310 of the constant parts is simple.
3311 * config/arm/iterators.md (LOGICAL): Add new code iterator.
3312 (logical_op): Add new code attribute.
3313 (logical_OP): Likewise.
3314 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
3315 (arm_iordi_operand): Add predicate.
3316 (arm_xordi_operand): Add predicate.
3318 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3320 * config/arm/arm.md (maddsidi4): Remove expander.
3321 (mulsidi3adddi): Remove pattern.
3322 (mulsidi3adddi_v6): Likewise.
3323 (mulsidi3_nov6): Likewise.
3324 (mulsidi3_v6): Likewise.
3325 (umulsidi3): Remove expander.
3326 (umulsidi3_nov6): Remove pattern.
3327 (umulsidi3_v6): Likewise.
3328 (umulsidi3adddi): Likewise.
3329 (umulsidi3adddi_v6): Likewise.
3330 (<Us>mulsidi3): Add combined expander.
3331 (<Us>maddsidi4): Likewise.
3332 (<US>mull): Add combined umull and smull pattern.
3333 (<US>mlal): Likewise.
3334 * config/arm/iterators.md (Us): Add new iterator.
3336 2019-09-18 Richard Biener <rguenther@suse.de>
3338 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
3340 (vectorize_fold_left_reduction): Remove assert.
3341 (vectorizable_reduction): Also expect COND_EXPR non-reduction
3342 operand in position 2. Remove assert.
3344 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3346 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
3347 (smulsi3_highpart_nov6): Remove pattern.
3348 (smulsi3_highpart_v6): Likewise.
3349 (umulsi3_highpart): Likewise.
3350 (umulsi3_highpart_nov6): Likewise.
3351 (umulsi3_highpart_v6): Likewise.
3352 (<US>mull_high): Add new combined multiply pattern.
3354 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3356 * config/arm/arm.md (arm_mulsi3): Remove pattern.
3357 (arm_mulsi3_v6): Likewise.
3358 (mulsi3addsi_v6): Likewise.
3359 (mulsi3subsi): Likewise.
3360 (mul): Add new multiply pattern.
3364 2019-09-18 Richard Biener <rguenther@suse.de>
3366 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
3367 (parloops_valid_reduction_input_p): Copy from
3368 valid_reduction_input_p.
3369 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
3370 (parloops_needs_fold_left_reduction_p): Copy from
3371 needs_fold_left_reduction_p.
3372 (parloops_is_simple_reduction): Copy from
3373 vect_is_simple_reduction.
3374 (parloops_force_simple_reduction): Copy from
3375 vect_force_simple_reduction.
3376 (gather_scalar_reductions): Adjust.
3377 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
3378 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
3380 2019-09-18 Richard Biener <rguenther@suse.de>
3382 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
3383 * tree-vect-loop.c (get_initial_def_for_reduction): Make
3385 (vect_create_epilog_for_reduction): Remove dead code.
3387 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3389 * varasm.c (assemble_real): Generate canonical const_ints.
3391 2019-09-18 Richard Biener <rguenther@suse.de>
3394 * lto-streamer-in.c (input_eh_regions): Move EH init to
3395 lto_materialize_function.
3396 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3399 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3401 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
3404 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3406 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
3407 of checking specifically for INTEGER_CST.
3409 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3411 * stor-layout.c (compute_record_mode): Operate on poly_uint64
3412 sizes instead of uhwi sizes.
3414 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3416 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
3417 (add_const_value_attribute): Handle CONST_POLY_INT.
3419 2019-09-18 Martin Liska <mliska@suse.cz>
3421 * dbgcnt.def (store_merging): New counter.
3422 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
3423 Use it in store merging.
3425 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3427 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
3429 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3430 * config/arm/arm.c (arm_sched_variable_issue): New function.
3431 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3433 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3435 * config/arm/types.md (no_reservation): New reservation.
3436 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
3438 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
3439 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
3440 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
3441 * config/arm/arm1020e.md (1020alu_op): Likewise.
3442 * config/arm/arm1026ejs.md (alu_op): Likewise.
3443 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
3444 * config/arm/arm926ejs.md (9_alu_op): Likewise.
3445 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
3446 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
3447 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
3448 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
3449 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
3450 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
3451 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
3452 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
3453 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
3454 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
3455 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
3456 * config/arm/fa526.md (526_alu_op): Likewise.
3457 * config/arm/fa606te.md (606te_alu_op): Likewise.
3458 * config/arm/fa626te.md (626te_alu_op): Likewise.
3459 * config/arm/fa726te.md (726te_alu_op): Likewise.
3460 * config/arm/xgene1.md (xgene1_nop): Likewise.
3462 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3464 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
3465 "no_insn" to "branch".
3467 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3469 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
3471 2019-09-17 Richard Biener <rguenther@suse.de>
3474 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
3475 was missing generate locations only once.
3477 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
3480 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
3482 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
3483 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
3484 for switch default case using range analysis information.
3486 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
3489 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
3490 mode attributed is supported by FDPIC.
3492 2019-09-17 Richard Biener <rguenther@suse.de>
3494 PR tree-optimization/91790
3495 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
3496 use the correct DR for setting up realignment.
3498 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
3501 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
3502 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
3503 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
3504 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
3506 2019-09-16 Jason Merrill <jason@redhat.com>
3508 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
3510 2019-09-16 Martin Liska <mliska@suse.cz>
3512 * gimple-fold.c (or_comparisons_1): Remove rules moved
3514 * match.pd: ... here.
3516 2019-09-16 Martin Liska <mliska@suse.cz>
3518 * gimple-fold.c (or_comparisons_1): Remove rules
3520 * match.pd: ... here.
3522 2019-09-16 Martin Liska <mliska@suse.cz>
3524 * genmatch.c (dt_node::append_simplify): Do not print
3525 warning when we have duplicate patterns belonging
3526 to a same simplify rule.
3527 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
3528 (maybe_fold_comparisons_from_match_pd): Handle
3529 tcc_comparison as a results.
3530 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
3532 2019-09-16 Li Jia He <helijia@linux.ibm.com>
3533 Qi Feng <ffengqi@linux.ibm.com>
3536 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
3537 (x > y && x == XXX_MIN): Optimize into 'false'.
3538 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
3539 (x < y && x != XXX_MAX): Optimize into 'x < y'.
3540 (x < y && x == XXX_MAX): Optimize into 'false'.
3541 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
3542 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
3543 (x <= y || x != XXX_MIN): Optimize into 'true'.
3544 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
3545 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
3546 (x >= y || x != XXX_MAX): Optimize into 'true'.
3547 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
3549 2019-09-16 Li Jia He <helijia@linux.ibm.com>
3550 Martin Liska <mliska@suse.cz>
3552 * gimple-fold.c (and_comparisons_1): Add type as first
3554 (and_var_with_comparison): Likewise.
3555 (and_var_with_comparison_1): Likewise.
3556 (or_comparisons_1): Likewise.
3557 (or_var_with_comparison): Likewise.
3558 (or_var_with_comparison_1): Likewise.
3559 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
3560 (maybe_fold_or_comparisons): Likewise.
3561 (maybe_fold_comparisons_from_match_pd): New.
3562 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
3563 (maybe_fold_or_comparisons): Likewise.
3564 * gimple.c (gimple_size): Make it public and add num_ops argument.
3565 (gimple_init): New function.
3566 (gimple_alloc): Call gimple_init.
3567 * gimple.h (gimple_size): New.
3568 (gimple_init): Likewise.
3569 * tree-if-conv.c (fold_or_predicates): Pass type.
3570 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3571 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
3572 (optimize_vec_cond_expr): Likewise.
3573 (ovce_extract_ops): Return type of conditional expression.
3574 * tree-ssanames.c (init_ssa_name_imm_use): New.
3575 (make_ssa_name_fn): Use init_ssa_name_imm_use.
3576 * tree-ssanames.h (init_ssa_name_imm_use): New.
3578 2019-09-16 Richard Biener <rguenther@suse.de>
3580 PR tree-optimization/91756
3581 PR tree-optimization/87132
3582 * tree-ssa-alias.h (enum translate_flags): New.
3583 (get_continuation_for_phi): Use it instead of simple bool flag.
3584 (walk_non_aliased_vuses): Likewise.
3585 * tree-ssa-alias.c (maybe_skip_until): Adjust.
3586 (get_continuation_for_phi): When looking across backedges only
3587 disallow valueization.
3588 (walk_non_aliased_vuses): Adjust.
3589 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
3592 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
3595 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
3596 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
3597 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
3598 * target.def (have_count_reg_decr_p): New hook.
3599 (doloop_cost_for_generic): Likewise.
3600 (doloop_cost_for_address): Likewise.
3601 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
3602 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
3603 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
3604 * doc/tm.texi: Regenerate.
3605 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
3607 (record_group): Init doloop_p.
3608 (add_candidate_1): Add optional argument doloop, change the handlings
3610 (add_candidate): Likewise.
3611 (generic_predict_doloop_p): Update attribute.
3612 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
3613 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
3614 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
3616 (get_computation_cost): Update for doloop IV cand extra cost.
3617 (determine_group_iv_cost_cond): Update for doloop IV cand.
3618 (determine_iv_cost): Likewise.
3619 (ivopts_estimate_reg_pressure): Likewise.
3620 (may_eliminate_iv): Update handlings for doloop IV cand.
3621 (add_iv_candidate_for_doloop): New function.
3622 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
3623 (iv_ca_set_no_cp): Update for doloop IV cand.
3624 (iv_ca_set_cp): Likewise.
3625 (iv_ca_dump): Dump register cost.
3626 (find_doloop_use): New function.
3627 (analyze_and_mark_doloop_use): Likewise.
3628 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
3630 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
3633 * cse.c (cse_insn): Do not replace anything with a
3636 2019-09-13 Ian Lance Taylor <iant@golang.org>
3638 * doc/invoke.texi (Optimize Options): Fix typo.
3640 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
3642 PR tree-optimization/89386
3643 * config/i386/sse.md (smulhrs<mode>3): New expander.
3644 (smulhrsv4hi3): Ditto.
3646 2019-09-12 Richard Biener <rguenther@suse.de>
3648 PR tree-optimization/91750
3649 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
3650 in the type of the evolution.
3652 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
3654 PR tree-optimization/89386
3655 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
3656 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
3657 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
3658 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
3659 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
3660 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
3661 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
3662 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
3663 (su, r): Handle the unspecs above.
3664 (bt): New int attribute.
3665 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
3666 * internal-fn.c (first_commutative_argument): Commutativity info for
3668 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
3669 (umulhrs_optab): New optabs.
3670 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
3671 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
3672 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
3674 (vect_vect_recog_func_ptrs): Add it.
3676 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
3678 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
3681 2019-09-11 Nathan Sidwell <nathan@acm.org>
3683 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
3684 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
3686 2019-09-11 Richard Biener <rguenther@suse.de>
3688 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
3689 * lto-wrapper.c (merge_and_complain): Pick up -g.
3690 (append_compiler_options): Likewise.
3691 (run_gcc): Re-instantiate handling -g0 at link-time.
3692 * doc/invoke.texi (flto): Document debug info generation.
3694 2019-09-11 Richard Biener <rguenther@suse.de>
3696 PR tree-optimization/90387
3697 * vr-values.c (vr_values::extract_range_basic): After inlining
3698 simplify non-constant __builtin_constant_p to false.
3700 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
3702 PR rtl-optimization/89795
3703 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
3704 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
3706 2019-09-11 Jakub Jelinek <jakub@redhat.com>
3708 PR tree-optimization/91723
3709 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
3710 instead of pointer equality when checking if argument vectypes are
3714 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
3715 of get_nonzero_bits, only call it for integral types.
3717 2019-09-11 Richard Biener <rguenther@suse.de>
3720 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
3722 * match.pd: Add flag_unsafe_math_optimizations check
3723 before deciding on the widest type in a binary math operation.
3725 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3727 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
3728 and CALL_REALLY_USED_REGISTERS must be defined, and that
3729 CALL_REALLY_USED_REGISTERS is preferred.
3730 * doc/tm.texi: Regenerate.
3731 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
3732 (call_really_used_regs): Likewise.
3733 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
3734 CALL_REALLY_USED_REGISTERS are defined.
3735 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
3736 initial value if defined.
3737 (initial_call_really_used_regs): Delete.
3738 (saved_call_really_used_regs): Likewise.
3739 (CALL_REALLY_USED_REGNO_P): Likewise.
3740 (init_reg_sets): Remove handling of call_really_used_regs.
3741 (save_register_info, restore_register_info, globalize_reg): Likewise.
3742 (init_reg_sets_1): Likewise. Use call_used_regs instead of
3743 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
3744 outside operand_reg_set.
3745 (fix_register): Don't change call_used_regs if
3746 CALL_REALLY_USED_REGISTERS is defined.
3747 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
3748 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
3749 instead of call_really_used_regs.
3750 (csky_conditional_register_usage): Remove the old handling of
3751 call_used_regs and change the handling of call_really_used_regs
3752 to use call_used_regs instead.
3753 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
3754 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
3755 making a register fixed.
3756 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
3757 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
3758 instead of call_really_used_regs.
3759 (m32r_conditional_register_usage): Don't set call_used_regs when
3760 making a register fixed.
3761 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
3762 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
3763 instead of call_really_used_regs.
3764 (mips_interrupt_extra_call_saved_reg_p): Likewise.
3765 (mips_cfun_call_saved_reg_p): Likewise.
3766 (mips_swap_registers): Remove the old handling of call_used_regs
3767 and change the handling of call_really_used_regs to use call_used_regs
3769 (mips_conditional_register_usage): Likewise.
3770 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
3771 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
3772 instead of call_really_used_regs.
3773 (mn10300_get_live_callee_saved_regs): Likewise.
3774 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
3775 (mn10300_conditional_register_usage): Don't set call_used_regs when
3776 making a register fixed.
3777 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
3778 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
3779 Remove the old handling of call_used_regs and change the handling
3780 of call_really_used_regs to use call_used_regs instead.
3781 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
3782 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
3783 instead of call_really_used_regs.
3784 (s390_register_info_gprtofpr, s390_register_info): Likewise.
3785 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
3786 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
3787 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
3788 (s390_conditional_register_usage): Remove the old handling of
3789 call_used_regs and change the handling of call_really_used_regs
3790 to use call_used_regs instead.
3791 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
3792 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
3793 (sh_fix_range, reg_unused_after): Likewise.
3794 (sh_conditional_register_usage): Remove the old handling of
3795 call_used_regs and change the handling of call_really_used_regs
3796 to use call_used_regs instead.
3797 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
3798 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
3799 call_used_regs when making a register fixed.
3800 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
3801 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
3802 call_used_regs when making a register fixed.
3803 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
3804 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
3805 set call_used_regs when making a register fixed.
3806 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
3807 * config/visium/visium.c (visium_conditional_register_usage): Remove
3808 the old handling of call_used_regs and change the handling of
3809 call_really_used_regs to use call_used_regs instead.
3811 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3813 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
3814 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
3815 * reginfo.c (call_used_regs): New macro.
3817 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3819 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
3821 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
3822 (bpf_expand_epilogue): Likewise.
3823 * config/c6x/c6x.c (c6x_save_reg): Likewise.
3824 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
3825 (ft32_expand_epilogue): Likewise.
3826 * config/i386/i386.c (ix86_save_reg): Likewise.
3827 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
3828 (moxie_expand_epilogue): Likewise.
3829 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
3830 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
3831 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
3833 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3835 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
3836 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
3837 instead of testing call_used_regs directly.
3838 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
3839 (aarch64_components_for_bb): Likewise.
3840 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
3841 * config/arc/arc.c (arc_must_save_register): Likewise.
3842 (arc_epilogue_uses): Likewise.
3843 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
3844 (legitimize_pic_address, callee_saved_reg_p): Likewise.
3845 (arm_compute_save_reg0_reg12_mask): Likewise.
3846 (arm_compute_save_core_reg_mask): Likewise.
3847 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
3848 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
3849 (cmse_nonsecure_entry_clear_before_return): Likewise.
3850 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
3851 (arm_expand_epilogue): Likewise.
3852 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
3853 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
3854 (_reg_unused_after): Likewise.
3855 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
3856 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
3857 (add_to_reg, hwloop_optimize): Likewise.
3858 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
3859 (bpf_expand_epilogue): Likewise.
3860 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
3861 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
3862 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
3863 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
3864 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
3865 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
3866 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
3867 * config/frv/frv.c (frv_stack_info): Likewise.
3868 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
3869 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
3870 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
3871 (move_callee_saved_registers): Likewise.
3872 * config/h8300/h8300.c (byte_reg): Likewise.
3873 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
3874 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
3875 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
3876 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
3877 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
3878 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
3879 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
3880 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
3881 * config/m32c/m32c.c (need_to_save): Likewise.
3882 * config/m68k/m68k.c (m68k_save_reg): Likewise.
3883 * config/mcore/mcore.c (calc_live_regs): Likewise.
3884 * config/microblaze/microblaze.c (microblaze_must_save_register):
3886 * config/mmix/mmix.c (mmix_local_regno): Likewise.
3887 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
3888 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
3889 (mmix_expand_epilogue): Likewise.
3890 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
3891 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
3892 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
3893 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
3894 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
3895 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
3896 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
3897 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
3898 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
3899 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
3900 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
3901 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
3902 * config/rl78/rl78.c (need_to_save): Likewise.
3903 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
3904 (rs6000_stack_info, generate_set_vrsave): Likewise.
3905 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
3906 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
3907 * config/rx/rx.c (rx_get_stack_layout): Likewise.
3908 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
3909 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
3910 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
3911 (save_local_or_in_reg_p): Likewise.
3912 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
3913 (xstormy16_epilogue_uses): Likewise.
3914 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
3915 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
3916 * config/v850/v850.c (compute_register_save_size): Likewise.
3917 * config/vax/vax.c (vax_expand_prologue): Likewise.
3918 * config/visium/visium.c (visium_save_reg_p): Likewise.
3919 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
3920 * cselib.c (cselib_process_insn): Likewise.
3921 * df-scan.c (df_get_entry_block_def_set): Likewise.
3922 * function.c (aggregate_value_p): Likewise.
3923 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
3924 * ira-lives.c (process_bb_node_lives): Likewise.
3925 * ira.c (do_reload): Likewise.
3926 * lra-lives.c (process_bb_lives): Likewise.
3927 * lra-remat.c (lra_remat): Likewise.
3928 * lra.c (lra): Likewise.
3929 * postreload.c (reload_combine_recognize_pattern): Likewise.
3930 (reload_cse_move2add): Likewise.
3931 * recog.c (peep2_find_free_register): Likewise.
3932 * regrename.c (check_new_reg_p): Likewise.
3933 * reload.c (find_equiv_reg): Likewise.
3934 * reload1.c (reload, find_reg): Likewise.
3935 * sel-sched.c (init_hard_regs_data): Likewise.
3937 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3939 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
3940 regs_invalidated_by_call & ~fixed_reg_set instead of
3941 call_used_or_fixed_regs & ~fixed_reg_set.
3942 * config/sh/sh.c (output_stack_adjust): Likewise.
3944 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3946 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
3947 (call_used_reg_set): Delete.
3948 (call_used_or_fixed_regs): New macro.
3949 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
3950 of call_used_reg_set.
3951 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
3952 instead of call_used_regs.
3953 (save_call_clobbered_regs): Likewise.
3954 * cfgcleanup.c (old_insns_match_p): Likewise.
3955 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
3956 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
3958 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
3959 * config/sh/sh.c (output_stack_adjust): Likewise.
3960 * final.c (collect_fn_hard_reg_usage): Likewise.
3961 * ira-build.c (ira_build): Likewise.
3962 * ira-color.c (calculate_saved_nregs): Likewise.
3963 (allocno_reload_assign, calculate_spill_cost): Likewise.
3964 * ira-conflicts.c (ira_build_conflicts): Likewise.
3965 * ira-costs.c (ira_tune_allocno_costs): Likewise.
3966 * ira-lives.c (process_bb_node_lives): Likewise.
3967 * ira.c (setup_reg_renumber): Likewise.
3968 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
3969 * lra-constraints.c (need_for_call_save_p): Likewise.
3970 (need_for_split_p, inherit_in_ebb): Likewise.
3971 * lra-lives.c (process_bb_lives): Likewise.
3972 * lra-remat.c (call_used_input_regno_present_p): Likewise.
3973 * postreload.c (reload_combine): Likewise.
3974 * regrename.c (find_rename_reg): Likewise.
3975 * reload1.c (reload_as_needed): Likewise.
3976 * rtlanal.c (find_all_hard_reg_sets): Likewise.
3977 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3978 * shrink-wrap.c (requires_stack_frame_p): Likewise.
3980 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3982 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
3983 (no_caller_save_reg_set): Delete.
3984 * caller-save.c (init_caller_save): Don't initialize it.
3985 * ira-conflicts.c (ira_build_conflicts): Calculate
3986 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
3988 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3990 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
3991 (target_hard_regs::x_savable_regs): New field.
3992 (call_fixed_reg_set): Delete.
3993 (savable_regs): New macro,
3994 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
3995 (init_reg_sets_1): Likewise. Initialize savable_regs.
3996 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
3997 for all registers. Set savable_regs instead of call_fixed_reg_set.
3998 (setup_save_areas, save_call_clobbered_regs): Replace uses of
3999 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4000 * config/sh/sh.c (output_stack_adjust): Likewise.
4002 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4004 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4005 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4006 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4008 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4010 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4011 * rtlanal.c (get_call_rtx_from): Likewise.
4012 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4013 than the pattern to get_call_rtx_from.
4014 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4015 an rtx_insn * instead of an rtx.
4016 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4018 2019-09-10 Martin Liska <mliska@suse.cz>
4020 * common.opt: Use newly added WarnRemoved.
4021 * config/aarch64/aarch64.opt: Likewise.
4022 * config/arm/arm.opt: Likewise.
4023 * config/i386/i386.opt: Likewise.
4024 * config/ia64/ia64.opt: Likewise.
4025 * config/rs6000/rs6000.opt: Likewise.
4026 * doc/options.texi: Document WarnRemoved properly.
4027 * dwarf2out.c (gen_producer_string): Handle renamed
4028 OPT_SPECIAL_warn_removed.
4029 * lto-opts.c (lto_write_options): Likewise.
4030 * lto-wrapper.c (merge_and_complain): Likewise.
4031 * opts-common.c (decode_cmdline_option): Likewise.
4032 (prune_options): Likewise.
4033 (read_cmdline_option): Likewise.
4034 (control_warning_option): Likewise.
4035 * opts.c (print_filtered_help): Likewise.
4036 * optc-gen.awk: Parse for WarnRemoved and make usage
4037 of Deprecated an error.
4038 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4040 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4042 * doc/install.texi: Fix syntax for html generation.
4044 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4047 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4048 the shift type to type.
4050 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4052 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4054 (stack_protect_combined_test_insn): Likewise.
4056 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4057 Mickaël Guêné <mickael.guene@st.com>
4059 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4060 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4061 (load_tp_soft_fdpic): New pattern.
4062 (load_tp_soft): Disable in FDPIC mode.
4064 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4065 Mickaël Guêné <mickael.guene@st.com>
4067 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4068 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4069 (arm_call_tls_get_addr): Add FDPIC support.
4070 (legitimize_tls_address): Likewise.
4071 (arm_emit_tls_decoration): Likewise.
4073 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4074 Mickaël Guêné <mickael.guene@st.com>
4076 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4078 (arm_trampoline_init): Likewise.
4079 (arm_trampoline_adjust_address): Likewise.
4080 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4082 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4083 Mickaël Guêné <mickael.guene@st.com>
4085 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4086 (legitimize_pic_address): Enforce binding rules on function
4087 pointers in FDPIC mode.
4088 (arm_assemble_integer): Likewise.
4090 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4091 Mickaël Guêné <mickael.guene@st.com>
4093 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4094 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4097 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4098 Mickaël Guêné <mickael.guene@st.com>
4100 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4103 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4104 Mickaël Guêné <mickael.guene@st.com>
4106 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4108 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4110 * config/arm/arm.c (arm_option_override): Define pic register to
4112 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4113 have no decl or go through PLT.
4114 (calculate_pic_address_constant): New function.
4115 (legitimize_pic_address): Call calculate_pic_address_constant.
4116 (arm_load_pic_register): Handle TARGET_FDPIC.
4117 (arm_is_segment_info_known): New function.
4118 (arm_pic_static_addr): Add support for FDPIC.
4119 (arm_load_function_descriptor): New function.
4120 (arm_emit_call_insn): Add support for FDPIC.
4121 (arm_assemble_integer): Add support for FDPIC.
4122 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4123 Define. (FDPIC_REGNUM): New define.
4124 * config/arm/arm.md (call): Add support for FDPIC.
4125 (call_value): Likewise.
4126 (restore_pic_register_after_call): New pattern.
4127 (untyped_call): Disable if FDPIC.
4128 (untyped_return): Likewise.
4129 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4131 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4132 Mickaël Guêné <mickael.guene@st.com>
4134 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4135 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4136 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4137 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4138 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4139 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4140 * config/arm/uclinuxfdpiceabi.h: New file.
4142 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4144 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4146 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4147 Mickaël Guêné <mickael.guene@st.com>
4149 * config/arm/arm.opt: Add -mfdpic option.
4150 * doc/invoke.texi: Add documentation for -mfdpic.
4152 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4154 * expmed.c (extract_bit_field): Update function comment
4156 * expr.c (expand_expr_real): Update function comment
4158 (expand_misaligned_mem_ref): New helper function.
4159 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4160 Remove duplicate assignment to "base" at case MEM_REF.
4161 Remove a shadowed variable "unsignedp" at case VCE.
4163 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4165 * regset.h (regs_invalidated_by_call_regset): Delete.
4166 (fixed_reg_set_regset): Likewise.
4167 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4168 (fixed_reg_set_regset, persistent_obstack): Likewise.
4169 (init_reg_sets_1, globalize_reg): Update accordingly.
4170 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4171 instead of a bitmap.
4172 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4173 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4174 instead of regs_invalidated_by_call_regset.
4175 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4176 * df-scan.c (df_scan_start_dump): Likewise.
4177 * dse.c (copy_fixed_regs): Likewise.
4178 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4180 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4182 * array-traits.h: New file.
4183 * coretypes.h (array_traits, bitmap_view): New types.
4184 * bitmap.h: Include "array-traits.h"
4185 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4186 (base_bitmap_view, bitmap_view): New classes.
4187 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4188 * hard-reg-set.h: Include array-traits.h.
4189 (array_traits<HARD_REG_SET>): New struct.
4190 * regset.h (IOR_REG_SET_HRS): New macro.
4191 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4192 rather than iterating over each hard register.
4193 * sched-deps.c (sched_analyze_insn): Likewise.
4194 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4196 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4198 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4199 instead of a HARD_REG_SET *.
4200 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4201 (ira_build): Update call accordingly.
4202 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4204 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4206 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4207 (HARD_REG_SET::operator!=): Likewise.
4208 (hard_reg_set_equal_p): Delete.
4209 * cfgcleanup.c (old_insns_match_p): Use == instead of
4210 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4211 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4212 (add_allocno_hard_regs_to_forest): Likewise.
4213 (setup_allocno_available_regs_num): Likewise.
4214 * ira.c (setup_pressure_classes): Likewise.
4215 (setup_allocno_and_important_classes): Likewise.
4216 (setup_reg_class_relations): Likewise.
4217 * lra-lives.c (process_bb_lives): Likewise.
4218 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4220 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4222 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4223 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4224 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4225 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4227 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4228 * ira.c (setup_reg_renumber): Likewise.
4229 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4230 * regrename.c (regrename_find_superclass): Likewise.
4231 * reload1.c (find_reg): Likewise.
4233 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4235 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4236 * caller-save.c (setup_save_areas): Use "&~" instead of
4237 AND_COMPL_HARD_REG_SET.
4238 (save_call_clobbered_regs): Likewise.
4239 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4241 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4242 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4243 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4244 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4245 (mips_conditional_register_usage): Likewise.
4246 * config/sh/sh.c (output_stack_adjust): Likewise.
4247 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4248 (setup_profitable_hard_regs): Likewise.
4249 (get_conflict_and_start_profitable_regs): Likewise.
4250 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4251 (ira_build_conflicts): Likewise.
4252 * ira-costs.c (restrict_cost_classes): Likewise.
4253 (setup_regno_cost_classes_by_aclass): Likewise.
4254 * ira-lives.c (process_bb_node_lives): Likewise.
4255 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
4256 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
4257 (setup_allocno_and_important_classes, setup_class_translate_array)
4258 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
4260 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4261 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4262 (process_alt_operands, inherit_in_ebb): Likewise.
4263 * lra-eliminations.c (update_reg_eliminate): Likewise.
4264 * lra-lives.c (process_bb_lives): Likewise.
4265 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
4266 * resource.c (find_dead_or_set_registers): Likewise.
4267 (mark_target_live_regs): Likewise.
4268 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
4269 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4270 (implicit_clobber_conflict_p): Likewise.
4271 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4272 (try_shrink_wrapping): Likewise.
4274 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4276 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
4277 (HARD_REG_SET::operator|=): Likewise.
4278 (IOR_HARD_REG_SET): Delete.
4279 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
4281 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4282 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
4283 * final.c (collect_fn_hard_reg_usage): Likewise.
4284 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
4285 * ira-build.c (merge_hard_reg_conflicts): Likewise.
4286 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
4287 (propagate_some_info_from_allocno): Likewise.
4288 (copy_info_to_removed_store_destinations): Likewise.
4289 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
4290 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
4291 (fast_allocation): Likewise.
4292 * ira-conflicts.c (ira_build_conflicts): Likewise.
4293 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
4294 (process_bb_node_lives): Likewise.
4295 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
4296 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4297 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4298 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
4299 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
4300 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
4301 (process_bb_lives): Likewise.
4302 * lra-spills.c (assign_spill_hard_regs): Likewise.
4303 * postreload.c (reload_combine): Likewise.
4304 * reginfo.c (init_reg_sets_1): Likewise.
4305 * regrename.c (merge_overlapping_regs, find_rename_reg)
4306 (merge_chains): Likewise.
4307 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
4308 (find_reload_regs, finish_spills, choose_reload_regs_init)
4309 (emit_reload_insns): Likewise.
4310 * reorg.c (redundant_insn): Likewise.
4311 * resource.c (find_dead_or_set_registers, mark_set_resources)
4312 (mark_target_live_regs): Likewise.
4313 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4314 * sched-deps.c (sched_analyze_insn): Likewise.
4315 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4316 (find_best_reg_for_expr): Likewise.
4317 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4319 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4321 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
4322 (HARD_REG_SET::operator&): Likewise.
4323 (AND_HARD_REG_SET): Delete.
4324 * caller-save.c (setup_save_areas): Use "&" instead of
4326 (save_call_clobbered_regs): Likewise.
4327 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4328 * config/m32c/m32c.c (reduce_class): Likewise.
4329 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4330 * final.c (get_call_reg_set_usage): Likewise.
4331 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
4332 (setup_left_conflict_sizes_p): Likewise.
4333 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4334 (ira_build_conflicts): Likewise.
4335 * ira-costs.c (restrict_cost_classes): Likewise.
4336 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
4337 (setup_reg_class_relations): Likewise.
4338 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
4339 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
4340 * resource.c (find_dead_or_set_registers): Likewise.
4341 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4343 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4345 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
4346 (COMPL_HARD_REG_SET): Delete.
4347 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
4348 of COMPL_HARD_REG_SET.
4349 (try_rename_operands): Likewise.
4350 * config/sh/sh.c (push_regs): Likewise.
4351 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4352 * lra-constraints.c (contains_reg_p): Likewise.
4353 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
4355 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4357 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
4358 * caller-save.c (save_call_clobbered_regs): Use assignment instead
4359 of COPY_HARD_REG_SET.
4360 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
4361 (epiphany_conditional_register_usage): Likewise.
4362 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4363 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4364 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
4365 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4366 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
4367 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4368 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
4369 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4370 * config/sh/sh.c (output_stack_adjust): Likewise.
4371 * final.c (collect_fn_hard_reg_usage): Likewise.
4372 (get_call_reg_set_usage): Likewise.
4373 * ira-build.c (ira_create_object, remove_low_level_allocnos)
4374 (ira_flattening): Likewise.
4375 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
4376 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
4377 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
4378 (ira_reassign_pseudos): Likewise.
4379 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4380 (ira_build_conflicts): Likewise.
4381 * ira-costs.c (restrict_cost_classes): Likewise.
4382 (setup_regno_cost_classes_by_aclass): Likewise.
4383 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
4384 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
4385 (setup_stack_reg_pressure_class, setup_pressure_classes)
4386 (setup_allocno_and_important_classes, setup_class_translate_array)
4387 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
4388 (ira_setup_eliminable_regset): Likewise.
4389 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4390 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4391 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4392 (process_alt_operands, inherit_in_ebb): Likewise.
4393 * lra-lives.c (process_bb_lives): Likewise.
4394 * lra-spills.c (assign_spill_hard_regs): Likewise.
4395 * lra.c (lra): Likewise.
4396 * mode-switching.c (new_seginfo): Likewise.
4397 * postreload.c (reload_combine): Likewise.
4398 * reg-stack.c (straighten_stack): Likewise.
4399 * reginfo.c (save_register_info, restore_register_info): Likewise.
4400 (init_reg_sets_1, record_subregs_of_mode): Likewise
4401 * regrename.c (create_new_chain, rename_chains): Likewise.
4402 * reload1.c (order_regs_for_reload, find_reg): Likewise.
4403 (find_reload_regs): Likewise.
4404 * resource.c (find_dead_or_set_registers): Likewise.
4405 (mark_target_live_regs): Likewise.
4406 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4408 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4410 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
4411 (note_pattern_stores): Declare.
4412 (note_stores): Take an rtx_insn *.
4413 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
4414 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
4415 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
4416 (note_stores): Take an rtx_insn * as argument and process
4417 CALL_INSN_FUNCTION_USAGE. Rename old function to...
4418 (note_pattern_stores): ...this.
4419 (find_first_parameter_load): Pass the insn rather than
4420 its pattern to note_stores.
4421 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
4422 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
4423 (insert_one_insn): Likewise.
4424 * combine.c (combine_instructions): Likewise.
4425 (likely_spilled_retval_p): Likewise.
4426 (try_combine): Use note_pattern_stores instead of note_stores.
4427 (record_dead_and_set_regs): Pass the insn rather than its pattern
4429 (reg_dead_at_p): Likewise.
4430 * config/bfin/bfin.c (workaround_speculation): Likewise.
4431 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
4433 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
4434 instead of note_stores.
4435 (frv_optimize_membar_local): Pass the insn rather than its pattern
4437 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4438 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
4439 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
4440 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
4441 (mips_reorg_process_insns): Likewise.
4442 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
4443 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
4445 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
4446 its pattern to note_stores.
4447 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
4449 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
4450 the insn to note_stores.
4451 (prescan_insns_for_dce): Update call accordingly.
4452 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
4454 * df-problems.c (can_move_insns_across): Likewise.
4455 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
4456 * function.c (assign_parm_setup_reg): Likewise.
4457 * gcse-common.c (record_last_mem_set_info_common): Likewise.
4458 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
4459 (single_set_gcse): Likewise.
4460 * ira.c (validate_equiv_mem): Likewise.
4461 (update_equiv_regs): Use note_pattern_stores rather than note_stores
4463 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
4464 pattern to note_stores.
4465 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4466 * loop-iv.c (simplify_using_initial_values): Likewise.
4467 * mode-switching.c (optimize_mode_switching): Likewise.
4468 * optabs.c (emit_libcall_block_1): Likewise.
4469 (expand_atomic_compare_and_swap): Likewise.
4470 * postreload-gcse.c (load_killed_in_block_p): Likewise.
4471 (record_opr_changes): Likewise. Remove explicit handling of
4472 CALL_INSN_FUNCTION_USAGE.
4473 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
4474 * regcprop.c (kill_clobbered_values): Likewise.
4475 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
4477 * regrename.c (build_def_use): Likewise.
4478 * reload1.c (reload): Use note_pattern_stores instead of note_stores
4479 for mark_not_eliminable.
4480 (reload_as_needed): Pass the insn rather than its pattern
4482 (emit_output_reload_insns): Likewise.
4483 * resource.c (mark_target_live_regs): Likewise.
4484 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4485 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
4486 instead of note_stores.
4487 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
4488 its pattern to note_stores.
4489 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
4490 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
4492 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4494 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
4495 than a #define. Use a structure rather than an array as the
4496 fallback definition. Remove special cases for low array sizes.
4497 (const_hard_reg_set): New typedef.
4498 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
4499 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
4500 (hard_reg_set_empty_p): Likewise.
4501 (SET_HARD_REG_BIT): Use a function rather than a macro to
4502 handle the case in which HARD_REG_SET is a structure.
4503 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
4504 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4505 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4506 (IOR_COMPL_HARD_REG_SET): Likewise.
4507 (hard_reg_set_iterator::pset): Constify the pointer target.
4508 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
4509 of a "const HARD_REG_SET". Update the handling of non-integer
4511 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
4512 * reload.h: Likewise.
4513 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
4514 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
4515 of a "const HARD_REG_SET".
4516 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
4517 (range_in_hard_reg_set_p): Likewise.
4518 * ira-costs.c (restrict_cost_classes): Likewise.
4519 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
4520 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
4521 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
4522 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
4523 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
4524 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
4525 take an unsigned int and open-code the HARD_REG_SET operations.
4527 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4529 * Makefile.in (OBJS): Remove bt-load.o.
4530 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
4531 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
4532 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
4533 document that the option no longer does anything.
4534 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
4535 * target.def (branch_target_register_class): Delete.
4536 (branch_target_register_callee_saved): Likewise.
4537 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
4538 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
4539 * doc/tm.texi: Regenerate.
4540 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
4541 (make_pass_branch_target_load_optimize2): Likewise.
4542 * passes.def (pass_branch_target_load_optimize1): Likewise.
4543 (pass_branch_target_load_optimize2): Likewise.
4544 * targhooks.h (default_branch_target_register_class): Likewise.
4545 * targhooks.c (default_branch_target_register_class): Likewise.
4546 * opt-suggestions.c (test_completion_valid_options): Remove
4547 -fbtr-bb-exclusive from the list of test options.
4548 * bt-load.c: Remove.
4550 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4552 * match.pd: Add flag_unsafe_math_optimizations check
4553 before deciding on the widest type in a binary math operation.
4555 2019-09-09 Martin Liska <mliska@suse.cz>
4557 * config/i386/i386.opt: Update comment of removed
4558 options that are preserved only for backward
4561 2019-09-09 Jakub Jelinek <jakub@redhat.com>
4564 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
4568 * config/i386/avxintrin.h (__v32qs): New typedef.
4569 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
4572 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4574 * doc/invoke.texi (Option Summary): Cover eBPF.
4575 (eBPF Options): New section.
4576 * doc/extend.texi (BPF Built-in Functions): Likewise.
4577 (BPF Kernel Helpers): Likewise.
4579 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4581 * config.gcc: Support for bpf-*-* targets.
4582 * common/config/bpf/bpf-common.c: New file.
4583 * config/bpf/t-bpf: Likewise.
4584 * config/bpf/predicates.md: Likewise.
4585 * config/bpf/constraints.md: Likewise.
4586 * config/bpf/bpf.opt: Likewise.
4587 * config/bpf/bpf.md: Likewise.
4588 * config/bpf/bpf.h: Likewise.
4589 * config/bpf/bpf.c: Likewise.
4590 * config/bpf/bpf-protos.h: Likewise.
4591 * config/bpf/bpf-opts.h: Likewise.
4592 * config/bpf/bpf-helpers.h: Likewise.
4593 * config/bpf/bpf-helpers.def: Likewise.
4595 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4597 * doc/sourcebuild.texi (Effective-Target Keywords): Document
4600 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4602 * opt-functions.awk (integer_range_info): Make sure values are in
4603 numeric context before operating with them.
4605 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
4607 * genemit.c (gen_split): Print the filename and line number where the
4608 splitter (or peephole2) was defined, to the dump file.
4610 2019-09-07 Jakub Jelinek <jakub@redhat.com>
4612 PR tree-optimization/91665
4613 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
4614 incompatible with the type of PHI result.
4616 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
4619 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
4620 gen_unaligned_storedi for 4-byte aligned addresses.
4622 2019-09-06 Jim Wilson <jimw@sifive.com>
4624 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
4627 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
4629 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
4631 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
4633 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
4634 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
4636 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
4639 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
4640 cost of SSE->integer and integer->SSE moves from 2 to 6.
4643 2019-09-06 Jakub Jelinek <jakub@redhat.com>
4645 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
4646 before testing TYPE_TRANSPARENT_AGGR.
4647 * calls.c (initialize_argument_information, load_register_parameters):
4650 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
4652 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
4654 (cmp_ior): Likewise.
4656 2019-09-06 Martin Liska <mliska@suse.cz>
4658 * doc/match-and-simplify.texi: Separate tuples with ;.
4660 2019-09-06 Martin Liska <mliska@suse.cz>
4663 * Makefile.in: Remove tlink.o.
4664 * collect2.c (do_link): New function isolated
4667 * collect2.h (do_tlink): Remove declaration of do_tlink.
4668 * doc/extend.texi: Remove documentation of -frepo.
4669 * doc/invoke.texi: Likewise.
4670 * doc/sourcebuild.texi: Remove cleanup-repo-files.
4673 2019-09-05 Jakub Jelinek <jakub@redhat.com>
4674 Jim Wilson <jimw@sifive.com>
4677 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
4678 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
4679 paradoxical_subreg_p (operands[0]).
4680 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
4681 use as intermediate value.
4683 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
4685 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
4686 (sync_compare_and_swap<mode>_insn): Likewise.
4688 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
4691 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
4692 without movmisalign optab.
4694 2019-09-05 Jakub Jelinek <jakub@redhat.com>
4699 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
4700 types, use type of their first field instead of type of
4703 2019-09-05 Richard Biener <rguenther@suse.de>
4705 PR rtl-optimization/91656
4706 * postreload-gcse.c (record_last_mem_set_info): Revert addition
4709 2019-09-05 Richard Biener <rguenther@suse.de>
4712 * tree-inline.c (declare_return_variable): Mark the return
4713 slot as addressable after building an address of it.
4715 2019-09-05 Arnaud Charlet <charlet@adacore.com>
4717 * doc/install.texi: Update and clarify requirements to build GNAT.
4719 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
4722 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
4723 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
4724 call to be in memory.
4725 (pass_expand::execute): Call discover_nonconstant_array_refs before
4726 setting currently_expanding_to_rtl.
4728 2019-09-04 Caroline Tice <cmtice@google.com>
4730 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
4733 2019-09-04 Marek Polacek <polacek@redhat.com>
4735 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
4737 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
4740 * config/i386/i386.c (inline_secondary_memory_needed): Return true
4741 for QI and HImode moves between SSE and general registers.
4743 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4746 * doc/invoke.texi: Document -Wenum-conversion.
4748 2019-09-04 Richard Biener <rguenther@suse.de>
4750 PR rtl-optimization/36262
4751 * postreload-gcse.c: Include intl.h and gcse.h.
4752 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
4753 to avoid linear list walk.
4754 (record_last_mem_set_info): Gate off if not computing transparentness.
4755 (get_bb_avail_insn): If transparentness isn't computed give up
4757 (gcse_after_reload_main): Skip compute_transp and extended PRE
4758 if gcse_or_cprop_is_too_expensive says so.
4760 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4762 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
4764 (msp430_select_section): Handle decls with the "noinit" attribute with
4765 default_elf_select_section.
4766 Handle SECCAT_RODATA_MERGE_* section types with
4767 default_elf_select_section.
4768 Add comments about handling of unsupported section types.
4769 (msp430_section_type_flags): Remove handling of the noinit section.
4771 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4773 * config/msp430/msp430.c (msp430_attr): Remove warnings about
4774 conflicting msp430-specific attributes.
4775 (msp430_section_attr): Likewise.
4776 Add warnings about conflicts with generic "noinit" and "section"
4778 Fix grammar in -mlarge error message.
4779 (msp430_data_attr): Rename to msp430_persist_attr.
4780 Add warnings about conflicts with generic "noinit" and "section"
4782 Add warning for when variable is not initialized.
4783 Chain conditionals which prevent the attribute being added.
4784 (ATTR_EXCL): New helper.
4785 (attr_reent_exclusions): New exclusion table.
4786 (attr_naked_exclusions): Likewise.
4787 (attr_crit_exclusions): Likewise.
4788 (attr_lower_exclusions): Likewise.
4789 (attr_upper_exclusions): Likewise.
4790 (attr_either_exclusions): Likewise.
4791 (attr_persist_exclusions): Likewise.
4792 (msp430_attribute_table): Update with exclusion rules.
4793 (msp430_output_aligned_decl_common): Don't output common symbol if decl
4796 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4798 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
4799 (msp430_handle_generic_attribute): New function.
4800 * doc/tm.texi: Regenerate.
4801 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
4802 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
4803 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
4804 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
4806 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
4808 PR tree-optimization/91504
4809 * match.pd: Add ((~a & b) ^a) --> (a | b).
4811 2019-09-03 Jakub Jelinek <jakub@redhat.com>
4814 * config/i386/i386-expand.c (split_double_mode): If there is more than
4815 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
4816 already split matching MEM operand instead of calling adjust_address
4819 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
4821 * config.gcc: Obsolete spu target. Remove references to spu.
4822 * configure.ac: Remove references to spu.
4823 * configure: Regenerate.
4824 * config/spu/: Remove directory.
4825 * common/config/spu/: Remove directory.
4827 * doc/extend.texi: Remove references to spu.
4828 * doc/invoke.texi: Likewise.
4829 * doc/md.texi: Likewise.
4830 * doc/sourcebuild.texi: Likewise.
4832 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
4837 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
4838 and SSA_NAME referring to CONSTANT_P correctly.
4840 2019-09-03 Richard Biener <rguenther@suse.de>
4842 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
4843 (vn_nary_op_insert): Likewise.
4844 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
4845 (vn_nary_op_lookup): Likewise.
4846 (vn_nary_op_insert): Likewise.
4848 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
4850 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
4851 (*op0, 1) instead of XEXP (*op1, 0).
4853 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4855 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
4856 (aarch64_fjcvtzs): New define_insn.
4857 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
4858 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
4860 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
4861 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
4862 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
4863 __ARM_FEATURE_JCVT where appropriate.
4864 * config/aarch64/arm_acle.h (__jcvt): Define.
4866 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4868 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
4869 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
4870 (aarch64_<frintnzs_op><mode>): New define_insn.
4871 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
4872 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
4873 __ARM_FEATURE_FRINT when appropriate.
4874 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
4875 frint32x, frint64z, frint64x.
4876 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
4877 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
4878 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
4879 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
4880 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
4881 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
4882 * config/aarch64/iterators.md (VSFDF): Define.
4883 (FRINTNZX): Likewise.
4884 (frintnzs_op): Likewise.
4886 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
4888 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
4889 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
4891 * config/aarch64/aarch64-tune.md: Regenerated.
4892 * doc/invoke.texi: Document the new processors.
4894 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4896 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
4900 (sve2-sm4): Likewise.
4902 (svesha3): Likewise.
4903 (svebitperm): Likewise.
4905 2019-09-03 Jakub Jelinek <jakub@redhat.com>
4906 Richard Biener <rguenther@suse.de>
4908 PR tree-optimization/91597
4909 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
4910 BIT_AND_EXPR optimization for pointers, even if both operand
4911 ranges don't include NULL, the result can be NULL.
4913 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4916 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
4917 (non_mem_decl_p): ...this.
4918 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
4919 (expand_assignment): Call mem_ref_referes_to_non_mem_p
4920 unconditionally as before.
4922 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
4925 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
4926 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
4927 * tree.def (LTGT_EXPR): Likewise.
4928 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
4930 2019-09-02 Jakub Jelinek <jakub@redhat.com>
4933 * fold-const.c (range_check_type): For enumeral and boolean
4934 type, pass 1 to type_for_size langhook instead of
4935 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
4936 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
4937 (build_range_check): Don't call unsigned_type_for for pointer types.
4938 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
4939 range_check_type result.
4941 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
4943 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
4944 (replace_ref): Do not replace a chain of only two candidates which are
4945 valid memory references.
4947 2019-09-02 Martin Liska <mliska@suse.cz>
4949 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
4950 Bail out when we'll end up with the same number of clusters as
4952 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
4953 (jump_table_cluster::can_be_handled): Remove the guard
4954 as it's already handled in ::is_enabled. Allocate output
4955 after early bail out.
4957 2019-09-02 Martin Liska <mliska@suse.cz>
4959 PR gcov-profile/91601
4960 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
4961 (path_contains_zero_or_negative_cycle_arc): ... this and handle
4962 also negative edges.
4963 (circuit): Handle also negative edges as they can happen
4966 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
4969 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
4970 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
4971 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
4973 2019-09-01 Jakub Jelinek <jakub@redhat.com>
4976 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
4977 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
4978 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
4982 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
4983 GIMPLE_ASM TREE_LIST operands.
4985 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
4987 * doc/generic.texi (Unary and Binary Expressions): Mark up
4988 an instance of TYPE_MIN.
4990 2019-08-31 Stafford Horne <shorne@gmail.com>
4992 * config/or1k/constraints.md (t): New constraint.
4993 * config/or1k/or1k.h (GOT_REGS): New register class.
4994 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
4996 2019-08-30 Jim Wilson <jimw@sifive.com>
4998 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
4999 and -fpic and -mplt then disable -msave-restore and warn.
5001 2019-08-30 Martin Sebor <msebor@redhat.com>
5004 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5005 the statement doesn't have one.
5006 * gimple-pretty-print.c (percent_G_format): Same.
5009 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5010 before using them to validate MEM_REF offset.
5012 2019-08-30 Marek Polacek <polacek@redhat.com>
5014 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5016 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5018 * config/arm/arm.md (unaligned_loaddi,
5019 unaligned_storedi): New unspec insn patterns.
5020 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5021 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5022 and unaligned_storedi for 4-byte aligned memory.
5023 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5024 4-byte aligned memory.
5026 2019-08-30 Martin Jambor <mjambor@suse.cz>
5028 tree-optimization/91579
5029 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5030 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5032 (arg_needs_copy_p): Removed.
5033 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5035 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5037 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5039 * config/i386/i386-features.c
5040 (general_scalar_chain::compute_convert_gain):
5041 Correct cost for double-word shifts.
5042 (general_scalar_to_vector_candidate_p): Reject count operands
5043 greater or equal to mode bitsize.
5045 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5047 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5048 for moves between SSE and non-general registers and between
5049 mask and non-general registers.
5050 (ix86_register_move_cost): Remove stalled comment.
5052 2019-08-29 Richard Biener <rguenther@suse.de>
5054 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5055 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5057 2019-08-29 Richard Biener <rguenther@suse.de>
5060 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5061 Do not emit scalar copies for debug-insns, instead replace
5062 their uses with the reg copy used in the chain or reset them
5063 if there is a reaching definition outside of the chain as well.
5065 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5068 * config/i386/i386-expand.c (expand_vec_perm_movs,
5069 expand_vec_perm_blend, expand_vec_perm_vpermil,
5070 expand_vec_perm_pshufb, expand_vec_perm_1,
5071 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5072 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5073 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5074 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5075 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5076 comments - replace ix86_expand_vec_perm_builtin_1 with
5077 ix86_expand_vec_perm_const_1.
5078 (expand_vec_perm2_vperm2f128_vblend): New function.
5079 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5080 expand_vec_perm2_vperm2f128_vblend as last resort.
5081 (canonicalize_perm): Formatting fix.
5083 PR tree-optimization/91351
5084 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5086 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5087 range_check_type returns NULL.
5088 * tree-switch-conversion.c (switch_conversion::build_one_array):
5089 Use range_check_type instead of unsigned_type_for, don't perform
5090 linear opt if it returns NULL.
5091 (bit_test_cluster::find_bit_tests): Formatting fix.
5092 (bit_test_cluster::emit): Use range_check_type instead of
5094 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5097 2019-08-29 Richard Biener <rguenther@suse.de>
5099 PR tree-optimization/91568
5100 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5101 (vect_update_max_nunits): Add overload for poly_uint64.
5102 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5103 (vect_build_slp_tree): Record max_nunits into the subtree
5104 and merge it upwards.
5105 (vect_print_slp_tree): Print max_nunits.
5107 2019-08-28 Marek Polacek <polacek@redhat.com>
5109 Implement P1152R4: Deprecating some uses of volatile.
5111 * doc/invoke.texi: Document -Wvolatile.
5113 2019-08-28 Marek Polacek <polacek@redhat.com>
5115 PR c++/91360 - Implement C++20 P1143R2: constinit.
5116 * doc/invoke.texi: Document -Wc++20-compat.
5118 2019-08-28 Martin Sebor <msebor@redhat.com>
5120 PR tree-optimization/91457
5121 * builtins.c (component_size): New function.
5122 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5123 * builtins.h (compute_objsize): Add argument.
5124 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5125 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5126 (vrp_prop::check_mem_ref): Same.
5127 (vrp_prop::search_for_addr_array): Set no-warning bit.
5128 (check_array_bounds): Same.
5130 2019-08-28 Martin Sebor <msebor@redhat.com>
5133 * opts-common.c (option_enabled): Correct checking for language
5136 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5138 * config/i386/i386.c (ix86_register_move_cost): Do not
5139 limit the cost of moves to/from XMM register to minimum 8.
5141 2019-08-28 Martin Jambor <mjambor@suse.cz>
5144 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5145 checking assert a normal assert to test it really is redundant.
5146 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5148 (update_jump_functions_after_inlining): Removed combining unary
5149 arithmetic operations with an ancestor jump function.
5150 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5153 2019-08-28 Richard Biener <rguenther@suse.de>
5155 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5158 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5159 Richard Biener <rguenther@suse.de>
5161 * expr.c (expand_assignment): Handle misaligned DECLs.
5162 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5163 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5165 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5166 * varasm.c (build_constant_desc): Align constants of misaligned types.
5167 * config/arm/predicates.md (aligned_operand): New predicate.
5168 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5169 aligned_operand to check restrictions on memory addresses.
5170 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5171 * config/arm/vec-common.md (mov<VALL>): Likewise.
5173 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5176 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5177 V_128 iterator instead of VI_128.
5179 2019-08-28 Martin Liska <mliska@suse.cz>
5181 PR tree-optimization/90970
5182 * builtins.c (check_access): Remove assignment to maxread
5183 as it hasn't been used since when it was introduced in r255755.
5185 2019-08-27 Martin Sebor <msebor@redhat.com>
5187 PR tree-optimization/91567
5188 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5190 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5193 2019-08-27 Jeff Law <law@redhat.com>
5195 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5196 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5198 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5201 * config/i386/i386-features.c (convert_scalars_to_vector):
5202 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5203 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5204 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5205 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5207 2019-08-27 Richard Biener <rguenther@suse.de>
5209 * config/i386/i386-features.h
5210 (general_scalar_chain::~general_scalar_chain): Add.
5211 (general_scalar_chain::insns_conv): New bitmap.
5212 (general_scalar_chain::n_sse_to_integer): New.
5213 (general_scalar_chain::n_integer_to_sse): Likewise.
5214 (general_scalar_chain::make_vector_copies): Adjust signature.
5215 * config/i386/i386-features.c
5216 (general_scalar_chain::general_scalar_chain): Outline,
5217 initialize new members.
5218 (general_scalar_chain::~general_scalar_chain): New.
5219 (general_scalar_chain::mark_dual_mode_def): Record insns
5220 we need to insert conversions at and count them.
5221 (general_scalar_chain::compute_convert_gain): Account
5222 for conversion instructions at chain boundary.
5223 (general_scalar_chain::make_vector_copies): Generate a single
5224 copy for a def by a specific insn.
5225 (general_scalar_chain::convert_registers): First populate
5226 defs_map, then make copies at out-of chain insns.
5228 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5230 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5232 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5234 2019-08-27 Martin Liska <mliska@suse.cz>
5236 * cgraph.c (cgraph_node::remove): Remove dead assignment before
5238 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5239 Enclose in anonymous namespace.
5240 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5241 hard_register initialization in braces.
5242 * tree-vrp.h (value_range_base::supports_type_p): Return false
5243 for function with boolean return type.
5245 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
5247 * config/i386/i386.c (emit_i387_cw_initialization)
5248 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5250 2019-08-26 Martin Sebor <msebor@redhat.com>
5253 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
5254 (sprintf_dom_walker): Remove class.
5255 (get_int_range): Make argument const.
5256 (directive::fmtfunc, directive::set_precision): Same.
5257 (format_none): Same.
5258 (build_intmax_type_nodes): Same.
5259 (adjust_range_for_overflow): Same.
5260 (format_floating): Same.
5261 (format_character): Same.
5262 (format_string): Same.
5263 (format_plain): Same.
5264 (get_int_range): Cast away constness.
5265 (format_integer): Same.
5266 (get_string_length): Call get_range_strlen_dynamic. Handle
5267 null lendata.maxbound.
5268 (should_warn_p): Adjust argument scope qualifier.
5270 (format_directive): Same.
5271 (parse_directive): Same.
5272 (is_call_safe): Same.
5273 (try_substitute_return_value): Same.
5274 (sprintf_dom_walker::handle_printf_call): Rename...
5275 (handle_printf_call): ...to this. Initialize target to host charmap
5276 here instead of in pass_sprintf_length::execute.
5277 (struct call_info): Make global.
5278 (sprintf_dom_walker::compute_format_length): Make global.
5279 (sprintf_dom_walker::handle_gimple_call): Same.
5280 * passes.def (pass_sprintf_length): Replace with pass_strlen.
5281 * print-rtl.c (print_pattern): Reduce the number of spaces to
5282 avoid -Wformat-truncation.
5283 * tree-pass.h (make_pass_warn_printf): New function.
5284 * tree-ssa-strlen.c (strlen_optimize): New variable.
5285 (get_string_length): Add comments.
5286 (get_range_strlen_dynamic): New function.
5287 (check_and_optimize_call): New function.
5288 (handle_integral_assign): New function.
5289 (strlen_check_and_optimize_stmt): Factor code out into
5290 strlen_check_and_optimize_call and handle_integral_assign.
5291 (strlen_dom_walker::evrp): New member.
5292 (strlen_dom_walker::before_dom_children): Use evrp member.
5293 (strlen_dom_walker::after_dom_children): Use evrp member.
5294 (printf_strlen_execute): New function.
5295 (pass_strlen::gate): Update to handle printf calls.
5296 (dump_strlen_info): New function.
5297 (pass_data_warn_printf): New variable.
5298 (pass_warn_printf): New class.
5299 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
5300 (handle_printf_call): Same.
5301 * tree-vrp.c (value_range_base::type): Adjust assertion.
5302 * vr-values.c (vr_values::update_value_range): Use type of the first
5303 argument rather than the second.
5305 2019-08-26 Richard Biener <rguenther@suse.de>
5307 * config/i386/i386-features.c (general_remove_non_convertible_regs):
5309 (convert_scalars_to_vector): Do not call it.
5311 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5312 Uros Bizjak <ubizjak@gmail.com>
5314 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
5315 CASE_MATHFN_FLOATN for roundeven.
5316 * config/i386/i386.c (ix86_i387_mode_needed): Add case
5318 (ix86_mode_needed): Likewise.
5319 (ix86_mode_after): Likewise.
5320 (ix86_mode_entry): Likewise.
5321 (ix86_mode_exit): Likewise.
5322 (ix86_emit_mode_set): Likewise.
5323 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
5324 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
5325 (ix86_entity): Add I387_ROUNDEVEN.
5326 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
5327 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
5328 (define_int_iterator): Likewise.
5329 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
5330 (define_constant): Define ROUND_ROUNDEVEN mode.
5331 (define_attr): Add roundeven mode for i387_cw.
5332 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
5333 * internal-fn.def (ROUNDEVEN): New builtin function.
5334 * optabs.def (roundeven_optab): New optab.
5336 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5338 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
5340 * builtins.def: Added function definitions for roundeven function
5342 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
5343 function call. Adjust condition for floor, ceil, trunc and round.
5344 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
5345 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
5346 (integer_valued_real_call_p): Added case for roundeven function.
5347 * real.c (is_even): New function. Returns true if real number is even,
5348 otherwise returns false.
5349 (is_halfway_below): New function. Returns true if real number is
5350 halfway between two integers, else return false.
5351 (real_roundeven): New function. Round real number to nearest integer,
5352 rounding halfway cases towards even.
5353 * real.h (real_value): Added descriptive comments. Added function
5354 declaration for roundeven function.
5355 * doc/extend.texi (Other Builtins): List roundeven variants among
5356 functions which can be handled as builtins.
5358 2019-08-26 Richard Biener <rguenther@suse.de>
5362 * config/i386/i386-features.h (general_scalar_chain::defs_map):
5364 (general_scalar_chain::replace_with_subreg): Remove.
5365 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5366 (general_scalar_chain::convert_reg): Adjust signature.
5367 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
5368 iterate over all defs of a reg.
5369 (general_scalar_chain::replace_with_subreg): Remove.
5370 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5371 (general_scalar_chain::make_vector_copies): Populate defs_map,
5372 place copy only after defs that are used as vectors in the chain.
5373 (general_scalar_chain::convert_reg): Emit a copy for a specific
5374 def in a specific instruction.
5375 (general_scalar_chain::convert_op): All reg uses are converted here.
5376 (general_scalar_chain::convert_insn): Emit copies for scalar
5377 uses of defs here. Replace uses with the copies we created.
5378 Replace and convert the def. Adjust REG_DEAD notes, remove
5379 REG_EQUIV/EQUAL notes.
5380 (general_scalar_chain::convert_registers): Only handle copies
5381 into the chain here.
5383 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5385 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
5387 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5389 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
5390 Add nop_convert case.
5391 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
5392 Fold all statements if requested.
5393 * tree-ssa-propagate.h (class substitute_and_fold_engine):
5394 Allow to fold all statements.
5395 * tree-vrp.c (class vrp_folder):
5396 Let substitute_and_fold_engine fold all statements.
5398 2019-08-26 Richard Biener <rguenther@suse.de>
5400 PR tree-optimization/91526
5401 * passes.def: Note that after late FRE we do TODO_update_address_taken.
5402 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
5403 TODO_update_address_taken.
5405 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
5407 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
5410 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5412 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
5413 machine mode for unspec_volatile operand.
5415 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
5417 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
5418 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
5419 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
5420 (prefer_neon_for_64bits): Remove.
5421 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
5422 (tune_params): Remove PREF_NEON_64_FALSE uses.
5423 (arm_option_override): Remove prefer_neon selection code.
5424 (arm_print_tune_info): Remove prefer_neon_for_64bits.
5425 * gcc/config/arm/arm-protos.h (tune_params): Remove
5426 prefer_neon_for_64bits.
5427 (prefer_neon_for_64bits): Remove.
5429 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
5432 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
5433 and issue any diagnostics needed before collecting the pre-PCH
5436 2019-08-23 Jakub Jelinek <jakub@redhat.com>
5439 * common.opt (fexcess-precision=): Add Optimization flag. Use
5440 flag_excess_precision variable instead of
5441 flag_excess_precision_cmdline.
5442 * flags.h (class target_flag_state): Remove x_flag_excess_precision
5444 (flag_excess_precision): Don't define.
5445 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
5446 flag_excess_precision_cmdline. Remove comment.
5447 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
5448 and x_flag_excess_precision instead of
5449 frontend_set_flag_excess_precision_cmdline and
5450 x_flag_excess_precision_cmdline.
5451 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
5452 x_flag_excess_precision_cmdline.
5453 * toplev.c (init_excess_precision): Remove.
5454 (lang_dependent_init_target): Don't call it.
5456 2019-08-23 Martin Liska <mliska@suse.cz>
5458 * lto-wrapper.c (run_gcc): When setting jobserver
5459 set also parallel to 1. This was done so before r273908.
5461 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
5463 * config/arm/arm-cpus.in (cortex-m35p): New entry.
5464 (cortex-a76ae): Likewise.
5465 (cortex-a77): Likewise
5466 * config/arm/arm-tables.opt: Regenerate.
5467 * config/arm/arm-tune.md: Likewise.
5468 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
5469 cortex-a77 CPU options.
5471 2019-08-23 Martin Liska <mliska@suse.cz>
5473 * profile.c (instrument_values): Do not set
5475 * tree-profile.c (gimple_gen_interval_profiler): Remove
5477 (gimple_gen_pow2_profiler): Likewise.
5478 (gimple_gen_topn_values_profiler): Likewise.
5479 (gimple_gen_ic_profiler): Likewise.
5480 (gimple_gen_time_profiler): Likewise.
5481 (gimple_gen_average_profiler): Likewise.
5482 (gimple_gen_ior_profiler): Likewise.
5483 * value-prof.c (dump_histogram_value): Use default
5484 in switch statement instead of HIST_TYPE_MAX.
5485 (stream_in_histogram_value): Likewise.
5486 (gimple_duplicate_stmt_histograms): Do not
5487 use NULL for implicitly set arguments.
5488 (gimple_divmod_values_to_profile): Do not use
5490 (gimple_indirect_call_to_profile): Likewise.
5491 (gimple_find_values_to_profile): Use implicit
5492 function call arguments.
5493 * value-prof.h (gimple_alloc_histogram_value):
5495 (gimple_gen_interval_profiler): Remove last argument.
5496 (gimple_gen_pow2_profiler): Likewise.
5497 (gimple_gen_topn_values_profiler): Likewise.
5498 (gimple_gen_ic_profiler): Likewise.
5499 (gimple_gen_time_profiler): Likewise.
5500 (gimple_gen_average_profiler): Likewise.
5501 (gimple_gen_ior_profiler): Likewise.
5503 2019-08-22 Martin Sebor <msebor@redhat.com>
5506 * builtins.c (c_strlen): Rename argument and introduce new local.
5507 Set no-warning bit on original argument.
5508 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
5509 Fold empty and zero constructors into empty strings.
5510 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
5511 for missing initializers.
5512 * tree.c (build_string_literal): Handle optional argument.
5513 * tree.h (build_string_literal): Add defaulted argument.
5514 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
5515 no-warning bit on original expression.
5517 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
5520 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
5521 and UNSPEC_DARN_RAW.
5522 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
5524 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
5525 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
5526 (darn): Use an unspec_volatile, and UNSPECV_DARN.
5528 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
5530 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
5531 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
5532 * config/rs6000/rs6000.md (unspec): ... here.
5533 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
5534 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
5535 cmpeqb, *cmpeqb_internal): Delete, move to...
5536 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
5537 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
5538 cmpeqb, *cmpeqb_internal): ... here.
5540 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5542 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
5543 intrinsics if __ARM_FP.
5544 Use __ARM_FEATURE_CRC32 ifdef guard.
5546 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5548 * config/arm/arm.md (neon_for_64bits): Remove.
5549 (avoid_neon_for_64bits): Remove.
5550 (arm_adddi3): Always split early.
5551 (arm_subdi3): Always split early.
5552 (negdi2): Remove Neon expansion.
5553 (split zero_extend): Split before reload.
5554 (split sign_extend): Split before reload.
5556 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5558 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
5559 (qhs_extenddi_cstr): Likewise.
5560 * config/arm/arm.md (ashldi3): Always expand early.
5561 (ashlsi3): Likewise.
5562 (ashrsi3): Likewise.
5563 (zero_extend<mode>di2): Remove Neon variants.
5564 (extend<mode>di2): Likewise.
5565 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
5566 (signed_shift_di3_neon): Likewise.
5567 (unsigned_shift_di3_neon): Likewise.
5568 (ashrdi3_neon_imm_noclobber): Likewise.
5569 (lshrdi3_neon_imm_noclobber): Likewise.
5570 (<shift>di3_neon): Likewise.
5571 (split extend): Remove DI extend split patterns.
5573 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5575 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
5576 (split not): Add DImode not splitter.
5577 (anddi3): Remove pattern.
5578 (anddi3_insn): Likewise.
5579 (anddi_zesidi_di): Likewise.
5580 (anddi_sesdi_di): Likewise.
5581 (anddi_notdi_di): Likewise.
5582 (anddi_notzesidi_di): Likewise.
5583 (anddi_notsesidi_di): Likewise.
5585 (iordi3_insn): Likewise.
5586 (iordi_zesidi_di): Likewise.
5587 (iordi_sesidi_di): Likewise.
5589 (xordi3_insn): Likewise.
5590 (xordi_sesidi_di): Likewise.
5591 (xordi_zesidi_di): Likewise.
5592 (one_cmpldi2): Likewise.
5593 (one_cmpldi2_insn): Likewise.
5594 * config/arm/constraints.md: Remove De, Df, Dg constraints.
5595 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
5597 (iwmmxt_xordi3): Likewise.
5598 (iwmmxt_anddi3): Likewise.
5599 * config/arm/neon.md (orndi3_neon): Remove pattern.
5600 (anddi_notdi_di): Likewise.
5601 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
5602 (arm_iordi_operand_neon): Likewise.
5603 (arm_xordi_operand_neon): Likewise.
5604 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
5605 (iordi_notzesidi_di): Likewise.
5606 (iordi_notdi_zesidi): Likewise.
5607 (iordi_notsesidi_di): Likewise.
5609 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
5611 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
5613 (iorsi3_compare0_scratch): Likewise.
5615 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
5617 * config/aarch64/aarch64-simd-builtins.def:
5620 * config/aarch64/aarch64-simd.md:
5621 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
5622 (aarch64_st1x4<VALLDIF:mode>): Likewise.
5623 (aarch64_ld1_x4_<mode>): Likewise.
5624 (aarch64_st1_x4_<mode>): Likewise.
5625 * config/aarch64/arm_neon.h:
5626 (vld1_s8_x4): New function.
5627 (vld1q_s8_x4): Likewise.
5628 (vld1_s16_x4): Likewise.
5629 (vld1q_s16_x4): Likewise.
5630 (vld1_s32_x4): Likewise.
5631 (vld1q_s32_x4): Likewise.
5632 (vld1_u8_x4): Likewise.
5633 (vld1q_u8_x4): Likewise.
5634 (vld1_u16_x4): Likewise.
5635 (vld1q_u16_x4): Likewise.
5636 (vld1_u32_x4): Likewise.
5637 (vld1q_u32_x4): Likewise.
5638 (vld1_f16_x4): Likewise.
5639 (vld1q_f16_x4): Likewise.
5640 (vld1_f32_x4): Likewise.
5641 (vld1q_f32_x4): Likewise.
5642 (vld1_p8_x4): Likewise.
5643 (vld1q_p8_x4): Likewise.
5644 (vld1_p16_x4): Likewise.
5645 (vld1q_p16_x4): Likewise.
5646 (vld1_s64_x4): Likewise.
5647 (vld1_u64_x4): Likewise.
5648 (vld1_p64_x4): Likewise.
5649 (vld1q_s64_x4): Likewise.
5650 (vld1q_u64_x4): Likewise.
5651 (vld1q_p64_x4): Likewise.
5652 (vld1_f64_x4): Likewise.
5653 (vld1q_f64_x4): Likewise.
5654 (vst1_s8_x4): Likewise.
5655 (vst1q_s8_x4): Likewise.
5656 (vst1_s16_x4): Likewise.
5657 (vst1q_s16_x4): Likewise.
5658 (vst1_s32_x4): Likewise.
5659 (vst1q_s32_x4): Likewise.
5660 (vst1_u8_x4): Likewise.
5661 (vst1q_u8_x4): Likewise.
5662 (vst1_u16_x4): Likewise.
5663 (vst1q_u16_x4): Likewise.
5664 (vst1_u32_x4): Likewise.
5665 (vst1q_u32_x4): Likewise.
5666 (vst1_f16_x4): Likewise.
5667 (vst1q_f16_x4): Likewise.
5668 (vst1_f32_x4): Likewise.
5669 (vst1q_f32_x4): Likewise.
5670 (vst1_p8_x4): Likewise.
5671 (vst1q_p8_x4): Likewise.
5672 (vst1_p16_x4): Likewise.
5673 (vst1q_p16_x4): Likewise.
5674 (vst1_s64_x4): Likewise.
5675 (vst1_u64_x4): Likewise.
5676 (vst1_p64_x4): Likewise.
5677 (vst1q_s64_x4): Likewise.
5678 (vst1q_u64_x4): Likewise.
5679 (vst1q_p64_x4): Likewise.
5680 (vst1_f64_x4): Likewise.
5681 (vst1q_f64_x4): Likewise.
5683 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5685 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
5687 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5688 Richard Sandiford <richard.sandiford@arm.com>
5691 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
5692 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
5694 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5697 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
5698 in reg if it fails aarch64_plus_operand predicate.
5700 2019-08-21 Richard Biener <rguenther@suse.de>
5702 PR tree-optimization/91482
5703 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
5704 BUILT_IN_ASSUME_ALIGNED calls.
5706 2019-08-21 Richard Biener <rguenther@suse.de>
5710 * config/i386/i386-features.c
5711 (general_scalar_chain::make_vector_copies): Copy stack temporary
5712 rtx when using it multiple times.
5713 (general_scalar_chain::convert_reg): Likewise.
5715 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5717 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
5719 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
5721 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
5722 catch more redundant zero initialization cases.
5723 (dse_dom_walker::dse_optimize_stmt): Likewise.
5725 2019-08-20 Richard Biener <rguenther@suse.de>
5728 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
5729 by collect2 when targetm.have_ctors_dtors which avoids dragging
5730 in temporary filenames from LTO input objects.
5732 2019-08-20 Richard Biener <rguenther@suse.de>
5734 PR tree-optimization/37242
5735 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
5736 to (T)a + (T)b if we know that a + b does not overflow.
5738 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
5740 PR rtl-optimization/91347
5741 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
5742 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
5744 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5746 * calls.h (function_arg_info): Add a pass_by_reference field,
5747 defaulting to false.
5748 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
5749 when applying pass-by-reference semantics.
5750 (initialize_argument_information): Likewise.
5751 (emit_library_call_value_1): Likewise.
5752 * function.c (assign_parm_data_one): Remove passed_pointer field.
5753 (assign_parm_find_data_types): Don't set it.
5754 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
5755 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
5756 arg.pass_by_reference instead of passed_pointer.
5758 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5760 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
5761 into a single function_arg_info, updating its fields when we
5762 apply pass-by-reference and promotion semantics. Use the
5763 function_arg_info to track the mode rather than keeping it in
5764 a separate local variable.
5765 (initialize_argument_information): Likewise. Base the final
5766 arg_to_skip on this new function_arg_info rather than creating
5767 a new one from scratch.
5769 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5771 * function.c (assign_parm_data_one): Replace passed_type,
5772 promoted_mode and named_arg with a function_arg_info field.
5773 (assign_parm_find_data_types): Remove local variables and
5774 assign directly to "data". Make data->passed_mode shadow
5775 data->arg.mode until promotion, then assign the promoted
5776 mode to data->arg.mode.
5777 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
5778 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
5779 (assign_parm_remove_parallels, assign_parm_setup_block_p)
5780 (assign_parm_setup_block, assign_parm_setup_reg)
5781 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
5782 arg.mode instead of promoted_mode, arg.type instead of passed_type
5783 and arg.named instead of named_arg. Use data->arg for
5784 function_arg_info structures that had the field values passed_type,
5785 promoted_mode and named_arg. Base other function_arg_infos on
5786 data->arg, changing the necessary properties.
5788 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5790 * calls.h (apply_pass_by_reference_rules): Declare.
5791 * calls.c (apply_pass_by_reference_rules): New function.
5792 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
5793 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
5794 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
5795 * function.c (assign_parm_find_data_types): Likewise.
5796 * var-tracking.c (prepare_call_arguments): Likewise.
5798 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5800 * target.def (must_pass_in_stack): Take a function_arg_info instead
5801 of a mode and a type.
5802 * doc/tm.texi: Regenerate.
5803 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
5804 instead of a mode and a type.
5805 (must_pass_in_stack_var_size_or_pad): Likewise.
5806 * calls.c (must_pass_in_stack_var_size): Likewise.
5807 (must_pass_in_stack_var_size_or_pad): Likewise.
5808 (initialize_argument_information): Update call to
5809 targetm.calls.must_pass_in_stack.
5810 (must_pass_va_arg_on_stack): Likewise.
5811 * function.c (assign_parm_find_entry_rtl): Likewise.
5812 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
5813 * config/alpha/alpha.c (alpha_function_arg): Likewise.
5814 (alpha_function_arg_advance): Likewise.
5815 * config/cr16/cr16.c (cr16_function_arg): Likewise.
5816 (cr16_function_arg_advance): Likewise.
5817 * config/cris/cris.c (cris_pass_by_reference): Likewise.
5818 (cris_arg_partial_bytes): Likewise.
5819 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
5820 * config/lm32/lm32.c (lm32_function_arg): Likewise.
5821 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
5822 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
5823 * config/mips/mips.c (mips_pass_by_reference): Likewise.
5824 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
5825 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
5826 * config/sh/sh.c (sh_pass_by_reference): Likewise.
5827 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
5828 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
5829 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
5830 instead of a mode and a type.
5831 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
5832 (fr30_num_arg_regs): Likewise.
5833 (fr30_setup_incoming_varargs): Update calls accordingly.
5834 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
5835 (fr30_function_arg_advance): Likewise.
5836 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
5837 instead of a mode and a type.
5838 * config/gcn/gcn.c (num_arg_regs): Likewise.
5839 (gcn_function_arg, gcn_function_arg_advance): Update calls to
5840 num_arg_regs and targetm.calls.must_pass_in_stack.
5841 (gcn_arg_partial_bytes): Likewise.
5842 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
5843 function_arg_info instead of a mode and a type.
5844 (classify_argument): Update call accordingly.
5845 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
5846 function_arg_info instead of a mode and a type.
5847 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
5849 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
5850 (rs6000_parm_needs_stack): Update call accordingly.
5851 (setup_incoming_varargs): Likewise.
5853 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5855 * target.def (callee_copies): Take a function_arg_info instead
5856 of a mode, type and named flag.
5857 * doc/tm.texi: Regenerate.
5858 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
5859 instead of a mode, type and named flag.
5860 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
5861 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
5862 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
5863 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
5864 instead of a mode, type and named flag.
5865 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
5866 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
5867 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
5868 * calls.h (reference_callee_copied): Take a function_arg_info
5869 instead of a mode, type and named flag.
5870 * calls.c (reference_callee_copied): Likewise.
5871 (initialize_argument_information): Update call accordingly.
5872 (emit_library_call_value_1): Likewise.
5873 * function.c (gimplify_parameters): Likewise.
5874 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
5875 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
5876 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
5877 * config/c6x/c6x.c (c6x_callee_copies): Delete.
5878 (TARGET_CALLEE_COPIES): Define to
5879 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
5880 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
5881 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
5882 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
5883 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
5884 instead of a mode, type and named flag.
5885 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
5886 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
5887 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
5888 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
5889 * config/msp430/msp430.c (msp430_callee_copies): Delete.
5890 (TARGET_CALLEE_COPIES): Define to
5891 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
5892 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
5893 instead of a mode, type and named flag.
5894 * config/sh/sh.c (sh_callee_copies): Likewise.
5895 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
5896 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
5897 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
5899 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5901 * target.def (function_arg_advance): Take a function_arg_info instead
5902 of a mode, type and named flag.
5903 * doc/tm.texi: Regenerate.
5904 * targhooks.h (default_function_arg_advance): Take a function_arg_info
5905 instead of a mode, type and named flag.
5906 * targhooks.c (default_function_arg_advance): Likewise.
5907 * calls.c (initialize_argument_information): Update call to
5908 targetm.calls.function_arg_advance.
5909 (emit_library_call_value_1): Likewise.
5910 * dse.c (get_call_args): Likewise.
5911 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5912 * function.c (assign_parms, gimplify_parameters): Likewise.
5913 * var-tracking.c (prepare_call_arguments): Likewise.
5914 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
5915 function_arg_info instead of a mode, type and named flag.
5916 (aarch64_setup_incoming_varargs): Update call accordingly.
5917 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
5918 function_arg_info instead of a mode, type and named flag.
5919 (alpha_setup_incoming_varargs): Update call accordingly.
5920 * config/arc/arc.c (arc_function_arg_advance): Take a
5921 function_arg_info instead of a mode, type and named flag.
5922 (arc_setup_incoming_varargs): Update call accordingly.
5923 * config/arm/arm.c (arm_function_arg_advance): Take a
5924 function_arg_info instead of a mode, type and named flag.
5925 (cmse_func_args_or_return_in_stack): Update call accordingly.
5926 (arm_function_ok_for_sibcall): Likewise.
5927 (cmse_nonsecure_call_clear_caller_saved): Likewise.
5928 * config/avr/avr.c (avr_function_arg_advance): Take a
5929 function_arg_info instead of a mode, type and named flag.
5930 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
5931 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
5932 (c6x_call_saved_register_used): Update call accordingly.
5933 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
5934 function_arg_info instead of a mode, type and named flag.
5935 * config/cris/cris.c (cris_function_arg_advance): Likewise.
5936 * config/csky/csky.c (csky_function_arg_advance): Likewise.
5937 (csky_setup_incoming_varargs): Update call accordingly.
5938 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
5939 function_arg_info instead of a mode, type and named flag.
5940 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
5941 * config/frv/frv.c (frv_function_arg_advance): Likewise.
5942 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
5943 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
5944 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
5945 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
5946 (ix86_setup_incoming_varargs): Update call accordingly.
5947 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
5948 function_arg_info instead of a mode, type and named flag.
5949 (ia64_setup_incoming_varargs): Update call accordingly.
5950 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
5951 function_arg_info instead of a mode, type and named flag.
5952 (iq2000_expand_prologue): Update call accordingly.
5953 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
5954 function_arg_info instead of a mode, type and named flag.
5955 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
5956 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
5957 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
5958 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
5959 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
5961 (microblaze_expand_prologue): Update call accordingly.
5962 * config/mips/mips.c (mips_function_arg_advance): Take a
5963 function_arg_info instead of a mode, type and named flag.
5964 (mips_setup_incoming_varargs): Update call accordingly.
5965 (mips_output_args_xfer): Likewise.
5966 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
5967 function_arg_info instead of a mode, type and named flag.
5968 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
5969 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
5970 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
5971 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
5972 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
5973 (nios2_setup_incoming_varargs): Update call accordingly.
5974 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
5975 function_arg_info instead of a mode, type and named flag.
5976 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
5977 * config/pa/pa.c (pa_function_arg_advance): Likewise.
5978 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
5979 * config/pru/pru.c (pru_function_arg_advance): Likewise.
5980 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
5981 (riscv_setup_incoming_varargs): Update call accordingly.
5982 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
5983 function_arg_info instead of a mode, type and named flag.
5984 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
5986 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
5987 (rs6000_parm_needs_stack): Update call accordingly.
5988 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
5989 instead of a mode, type and named flag.
5990 * config/s390/s390.c (s390_function_arg_advance): Likewise.
5991 (s390_call_saved_register_used): Update call accordingly.
5992 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
5993 instead of a mode, type and named flag.
5994 (sh_output_mi_thunk): Update call accordingly.
5995 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
5996 function_arg_info instead of a mode, type and named flag.
5997 * config/spu/spu.c (spu_function_arg_advance): Likewise.
5998 (spu_setup_incoming_varargs): Update call accordingly.
5999 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6000 function_arg_info instead of a mode, type and named flag.
6001 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6002 (tilegx_setup_incoming_varargs): Update call accordingly.
6003 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6004 function_arg_info instead of a mode, type and named flag.
6005 (tilegx_setup_incoming_varargs): Update call accordingly.
6006 * config/v850/v850.c (v850_function_arg_advance): Take a
6007 function_arg_info instead of a mode, type and named flag.
6008 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6009 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6010 (visium_setup_incoming_varargs): Update call accordingly.
6011 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6012 function_arg_info instead of a mode, type and named flag.
6014 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6016 * target.def (function_arg, function_incoming_arg): Take a
6017 function_arg_info instead of a mode, tree and named flag.
6018 * doc/tm.texi: Regenerate.
6019 * targhooks.h (default_function_arg): Take a function_arg_info
6020 instead of a mode, tree and named flag.
6021 (default_function_incoming_arg): Likewise.
6022 * targhooks.c (default_function_arg): Likewise.
6023 (default_function_incoming_arg): Likewise.
6024 * calls.h (function_arg_info::end_marker_p): New function.
6025 (function_arg_info::end_marker): Likewise.
6026 * calls.c (prepare_call_address, initialize_argument_information)
6027 (expand_call, emit_library_call_value_1): Update calls to
6028 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6029 * dse.c: Include calls.h.
6030 (get_call_args): Update call to targetm.calls.function_arg.
6031 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6032 * var-tracking.c (prepare_call_arguments): Likewise.
6033 * function.c (assign_parm_find_entry_rtl): Update call to
6034 targetm.calls.function_incoming_arg.
6035 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6036 function_arg_info instead of a mode, tree and named flag.
6037 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6038 * config/arc/arc.c (arc_function_arg): Likewise.
6039 * config/arm/arm.c (arm_function_arg): Likewise.
6040 (cmse_func_args_or_return_in_stack): Update call accordingly.
6041 (arm_function_ok_for_sibcall): Likewise.
6042 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6043 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6044 instead of a mode, tree and named flag.
6045 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6046 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6047 (c6x_call_saved_register_used): Update call accordingly.
6048 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6049 instead of a mode, tree and named flag.
6050 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6051 (cris_function_arg_1): Likewise.
6052 * config/csky/csky.c (csky_function_arg): Likewise.
6053 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6054 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6055 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6056 (frv_function_arg_1): Likewise.
6057 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6058 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6059 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6060 * config/i386/i386.c (ix86_function_arg): Likewise.
6061 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6062 (ia64_function_arg_1): Likewise.
6063 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6064 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6066 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6067 instead of a mode, tree and named flag.
6068 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6069 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6070 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6071 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6072 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6073 (microblaze_expand_prologue): Update call accordingly.
6074 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6075 instead of a mode, tree and named flag.
6076 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6077 (mmix_function_arg_1): Likewise.
6078 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6079 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6080 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6081 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6082 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6083 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6084 (nvptx_function_incoming_arg): Likewise.
6085 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6086 * config/pa/pa.c (pa_function_arg): Likewise.
6087 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6088 * config/pru/pru.c (pru_function_arg): Likewise.
6089 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6090 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6091 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6092 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6093 (rs6000_parm_needs_stack): Update call accordingly.
6094 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6095 instead of a mode, tree and named flag.
6096 * config/s390/s390.c (s390_function_arg): Likewise.
6097 (s390_call_saved_register_used): Update call accordingly.
6098 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6099 instead of a mode, tree and named flag.
6100 (sh_output_mi_thunk): Update call accordingly.
6101 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6102 (sparc_function_incoming_arg): Take a function_arg_info instead of
6103 a mode, tree and named flag.
6104 * config/spu/spu.c (spu_function_arg): Likewise.
6105 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6106 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6107 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6108 * config/v850/v850.c (v850_function_arg): Likewise.
6109 * config/vax/vax.c (vax_function_arg): Likewise.
6110 * config/visium/visium.c (visium_function_arg): Likewise.
6111 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6112 (xtensa_function_incoming_arg): Likewise.
6114 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6116 * target.def (setup_incoming_varargs): Take a function_arg_info
6117 instead of a mode and tree.
6118 * doc/tm.texi: Regenerate.
6119 * targhooks.h (default_setup_incoming_varargs): Take a
6120 function_arg_info instead of a mode and tree.
6121 * targhooks.c (default_setup_incoming_varargs): Likewise.
6122 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6123 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6124 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6125 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6126 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6127 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6128 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6129 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6131 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6132 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6133 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6134 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6135 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6136 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6137 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6138 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6139 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6140 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6141 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6142 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6143 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6144 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6145 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6146 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6147 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6148 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6149 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6150 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6151 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6152 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6153 * function.c (assign_parms_setup_varargs): Update call to
6154 targetm.calls.setup_incoming_varargs.
6156 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6158 * target.def (pass_by_reference): Take a function_arg_info instead
6159 of a mode, type and named flag.
6160 * doc/tm.texi: Regenerate.
6161 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6163 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6164 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6165 function_arg_info instead of a mode, type and named flag.
6166 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6167 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6168 mode, type and named flag.
6169 * calls.c (pass_by_reference): Likewise.
6170 (pass_va_arg_by_reference): Update call accordingly.
6171 (initialize_argument_information): Likewise.
6172 (emit_library_call_value_1): Likewise.
6173 * function.c (assign_parm_find_data_types): Likewise.
6174 * var-tracking.c (prepare_call_arguments): Likewise.
6175 * stor-layout.c: Include calls.h.
6176 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6177 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6178 function_arg_info instead of a mode, type and named flag.
6179 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6180 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6181 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6182 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6183 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6184 (c6x_call_saved_register_used): Update call to pass_by_reference.
6185 * config/cris/cris.c (cris_pass_by_reference): Take a
6186 function_arg_info instead of a mode, type and named flag.
6187 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6188 function_arg_info instead of a mode, type and named flag.
6189 (epiphany_arg_partial_bytes): Update call accordingly.
6190 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6191 function_arg_info instead of a mode, type and named flag.
6192 (ft32_arg_partial_bytes): Update call accordingly.
6193 * config/i386/i386.c (ix86_pass_by_reference): Take a
6194 function_arg_info instead of a mode, type and named flag.
6195 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6196 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6197 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6198 (m32r_return_in_memory): Update call accordingly.
6199 * config/mips/mips.c (mips_pass_by_reference): Take a
6200 function_arg_info instead of a mode, type and named flag.
6201 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6202 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6203 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6204 (moxie_arg_partial_bytes): Update call accordingly.
6205 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6206 function_arg_info instead of a mode, type and named flag.
6207 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6208 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6209 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6210 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6211 (riscv_return_in_memory): Update call accordingly.
6212 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6213 function_arg_info instead of a mode, type and named flag.
6214 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6215 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6216 * config/s390/s390.c (s390_pass_by_reference): Take a
6217 function_arg_info instead of a mode, type and named flag.
6218 (s390_call_saved_register_used): Update call accordingly.
6219 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6220 instead of a mode, type and named flag.
6221 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6222 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6223 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6224 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6225 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6226 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6228 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6230 * target.def (arg_partial_bytes): Take a function_arg_info instead
6231 of a mode, type and named flag.
6232 * doc/tm.texi: Regenerate.
6233 * target.h (function_arg_info): Declare.
6234 * calls.h (function_arg_info): New class.
6235 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6236 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6237 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6238 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6239 * calls.c (initialize_argument_information): Update call to
6240 targetm.calls.partial_bytes.
6241 (emit_library_call_value_1): Likewise.
6242 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6243 * function.c (assign_parm_find_entry_rtl): Likewise.
6244 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6245 function_arg_info instead of a mode, type and named flag.
6246 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6247 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6248 (cmse_func_args_or_return_in_stack): Update accordingly.
6249 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6250 function_arg_info instead of a mode, type and named flag.
6251 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6252 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
6253 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
6254 * config/fr30/fr30.c: Include calls.h.
6255 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
6256 type and named flag.
6257 * config/frv/frv.c: Include calls.h.
6258 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
6259 type and named flag.
6260 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
6261 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
6262 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
6263 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
6264 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
6265 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
6266 * config/microblaze/microblaze.c (function_arg_partial_bytes):
6268 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
6269 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
6270 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
6271 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
6272 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
6273 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
6274 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
6275 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
6276 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
6277 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
6278 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
6279 (rs6000_parm_needs_stack): Update call accordingly.
6280 * config/sh/sh.c (sh_arg_partial_bytes): Take a
6281 function_arg_info instead of a mode, type and named flag.
6282 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
6283 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
6285 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6287 * calls.h (must_pass_va_arg_in_stack): Declare.
6288 * calls.c (must_pass_va_arg_in_stack): New function.
6289 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
6290 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
6291 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
6293 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6295 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6297 * calls.h (pass_va_arg_by_reference): Declare.
6298 * calls.c (pass_va_arg_by_reference): New function.
6299 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
6300 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
6301 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
6302 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6303 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6304 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
6305 (mips_gimplify_va_arg_expr): Likewise.
6306 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
6307 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6308 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
6309 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
6310 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6311 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
6312 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
6313 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
6314 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
6315 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6316 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6318 2019-08-20 Richard Biener <rguenther@suse.de>
6321 * config/i386/i386-features.c (general_scalar_chain::convert_op):
6322 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
6323 (convert_scalars_to_vector): Add timode_p parameter and use it
6324 to guard TImode-only operation.
6325 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
6326 (pass_stv::execute): Pass down timode_p.
6328 2019-08-20 Lili Cui <lili.cui@intel.com>
6330 * common/config/i386/i386-common.c
6331 (processor_names): Add tigerlake and cooperlake.
6332 (processor_alias_table): Add tigerlake and cooperlake.
6333 * config.gcc: Add -march=tigerlake and cooperlake.
6334 * config/i386/driver-i386.c
6335 (host_detect_local_cpu): Detect tigerlake and cooperlake.
6336 Add "has_avx" to classify processor.
6337 * config/i386/i386-builtins.c (processor_model) :
6338 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
6339 (arch_names_table): Add tigerlake and cooperlake.
6340 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
6341 and PROCESSOR_COOPERLAKE.
6342 * config/i386/i386-c.c
6343 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
6344 * config/i386/i386-options.c
6345 (m_TIGERLAKE) : Define.
6346 (m_COOPERLAKE) : Ditto.
6347 (m_CORE_AVX512): Ditto.
6348 (processor_cost_table): Add cascadelake.
6349 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
6350 * config/i386/i386.h
6351 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
6352 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6353 (PTA_MOVDIRI): Ditto.
6354 (PTA_MOVDIR64B): Ditto.
6355 (PTA_COOPERLAKE) : Ditto.
6356 (PTA_TIGERLAKE) : Ditto.
6357 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6358 * doc/extend.texi: Add tigerlake and cooperlake.
6359 * doc/invoke.texi: Add tigerlake and cooperlake.
6361 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
6363 * doc/install.texi (Specific, alpha): Remove note to use
6364 binutils 2.11.2 or later.
6366 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6369 * function.c (assign_parm_find_stack_rtl): Use larger alignment
6372 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
6374 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
6375 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
6376 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
6377 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
6378 * config/aarch64/constraints.md (Dt): New constraint
6379 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
6381 2019-08-19 Richard Biener <rguenther@suse.de>
6383 PR tree-optimization/91403
6384 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
6385 cases we can handle with tail-recursion...
6386 (follow_ssa_edge_expr): ... here. Do so.
6388 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
6391 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
6392 implemented for -fsanitize=kernel-address, and merge check logic
6393 with -fsanitize=address.
6395 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
6397 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
6398 for cpu and machine. Factor 64/32b builtins.
6400 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
6402 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
6403 gone, point to sourceforge.net.
6405 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6407 * doc/ux.texi (User Experience Guidelines): Update reference.
6409 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6411 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
6414 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
6416 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
6417 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
6419 2019-08-16 Martin Sebor <msebor@redhat.com>
6421 * tree.def (TYPE_SIZE): Clarify.
6422 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
6424 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
6426 PR tree-optimization/91109
6427 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
6428 * lra.c (lra): Use lra_need_for_scratch_reg_p.
6429 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
6431 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
6433 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
6434 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
6435 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
6436 (uavg<mode>3_ceil): New expander.
6437 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
6438 mode iterator when creating CONST1_RTX.
6439 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
6440 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
6441 mode iterator for const1_operand predicate.
6443 2019-08-16 Richard Biener <rguenther@suse.de>
6445 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
6446 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
6448 (follow_ssa_edge_in_condition_phi_branch): Likewise.
6449 (analyze_evolution_in_loop): Likewise.
6450 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
6451 (follow_ssa_edge_expr): ... here. Refactor code.
6453 2019-08-16 Richard Biener <rguenther@suse.de>
6456 * config/i386/i386-features.c
6457 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
6459 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6462 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
6463 only if subst_name matches curr_attr string.
6465 2019-08-16 Richard Biener <rguenther@suse.de>
6467 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
6468 stmt at gsi_p, instead replace it with a NOP removed later.
6469 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
6470 that became dead because of that.
6472 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
6474 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
6475 for which we can't represent a range.
6476 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
6478 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
6479 Set VR_UNDEFINED if type is not supported.
6480 * tree-ssanames.c (get_range_info): Pass type to set_varying.
6481 * tree-vrp.c (value_range_base::check): Assert that a varying has
6483 (value_range_base::equal_p): Early bail for undefines.
6484 (value_range_base::set_varying): Accept a type.
6485 (value_range::set_varying): Same.
6486 (value_range_base::type): VARYING can have a type, while UNDEFINE
6488 (value_range_base::dump): Print type for VARYING nodes.
6489 (value_range_base::set): Add type to VARYING.
6490 (extract_range_from_multiplicative_op): Pass type to set_varying.
6491 (extract_range_from_binary_expr): Same.
6492 (value_range_base::intersect_helper): Same.
6493 (value_range_base::union_helper): Same.
6494 (value_range_base::normalize_symbolics): Same.
6495 (determine_value_range_1): Same.
6496 * tree-vrp.h (class value_range_base): Add type to set_varying.
6497 Add prototype for dump(void).
6498 Add prototype for supports_type_p.
6499 (class value_range): Add type to set_varying.
6500 Add prototype for dump(void).
6501 * vr-values.c (set_value_range_to_truthvalue): Pass type to
6503 (vr_values::get_lattice_entry): Set varying even if propagation
6505 Pass type to set_varying.
6506 (vr_values::get_value_range): Remove vr_const_varying.
6507 Reallocate the lattice if needed.
6508 (vr_values::update_value_range): Pass type to set_varying.
6509 (vr_values::extract_range_for_var_from_comparison_expr): Same.
6510 (vr_values::extract_range_from_binary_expr): Same.
6511 (vr_values::extract_range_from_unary_expr): Same.
6512 (vr_values::extract_range_from_cond_expr): Same.
6513 (vr_values::check_for_binary_op_overflow): Same.
6514 (vr_values::extract_range_basic): Same.
6515 (vr_values::extract_range_from_assignment): Same.
6516 (vr_values::vr_values): Increase size of num_vr_values.
6517 (vr_values::extract_range_from_phi_node): Pass type to
6520 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
6523 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
6524 for costs of hard register moves.
6525 (ix86_register_move_cost): Likewise.
6526 * config/i386/i386.h (processor_costs): Move costs of hard
6527 register moves to hard_register. Add int_load, int_store,
6528 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
6529 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
6530 for costs of RTL expressions.
6531 * config/i386/x86-tune-costs.h: Move costs of hard register
6532 moves to hard_register. Duplicate int_load, int_store,
6533 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
6534 sse_load, sse_store for costs of RTL expressions.
6536 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6538 * target.def (setup_incoming_vararg_bounds): Remove.
6539 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
6540 * doc/tm.texi: Regenerate.
6541 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
6542 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
6543 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
6544 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
6546 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6548 MSP430: Fix lines over 80 characters long in
6549 config/msp430/*.{c,h} files
6551 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
6552 specifier in string.
6553 (msp430_select_hwmult_lib): Split line more than 80 characters long.
6554 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
6555 redundant old comment.
6556 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
6557 Split line more than 80 characters long.
6558 * config/msp430/msp430.c (msp430_option_override): Likewise.
6559 (msp430_return_in_memory): Likewise.
6560 (msp430_gimplify_va_arg_expr): Likewise.
6561 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
6562 (msp430_legitimate_constant): Likewise.
6563 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
6564 (msp430_attr): Likewise.
6565 (msp430_data_attr): Likewise.
6566 (msp430_start_function): Likewise.
6567 (gen_prefix): Likewise.
6568 (msp430_init_sections): Likewise.
6569 (msp430_select_section): Likewise.
6570 (msp430_function_section): Likewise.
6571 (msp430_unique_section): Likewise.
6572 (msp430_output_aligned_decl_common): Likewise.
6573 (msp430_do_not_relax_short_jumps): Likewise.
6574 (msp430_init_builtins): Likewise.
6575 (msp430_expand_delay_cycles): Likewise.
6576 (msp430_expand_prologue): Likewise.
6577 (msp430_expand_epilogue): Likewise.
6578 (msp430_expand_helper): Likewise.
6579 (msp430_split_movsi): Likewise.
6580 (msp430_print_operand): Likewise.
6581 (msp430_return_addr_rtx): Likewise.
6582 (msp430x_extendhisi): Likewise.
6583 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
6584 (ASM_SPEC): Likewise.
6585 Remove very obvious comments.
6586 (LIB_SPEC): Split line more than 80 characters long.
6587 (EH_RETURN_HANDLER_RTX): Likewise.
6588 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6590 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6592 MSP430: Fix whitespace errors and incorrect indentation in
6593 config/msp430/*.{c,h} files
6595 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
6596 (msp430_select_hwmult_lib): Likewise.
6597 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
6598 (msp430_extract_mcu_data): Likewise.
6599 (struct t_msp430_mcu_data): Likewise.
6600 * config/msp430/msp430.c (struct machine_function): Remove whitespace
6601 before left square bracket.
6602 (msp430_option_override): Fix indentation.
6603 (msp430_hard_regno_nregs_with_padding): Likewise.
6604 (msp430_initial_elimination_offset): Likewise.
6605 (msp430_special_register_convention_p): Remove whitespace before left
6606 square bracket and after exclamation mark.
6607 (msp430_evaluate_arg): Likewise.
6608 (msp430_callee_copies): Fix indentation.
6609 (msp430_gimplify_va_arg_expr): Likewise.
6610 (msp430_function_arg_advance): Remove whitespace before left square
6612 (reg_ok_for_addr): Likewise.
6613 (msp430_preserve_reg_p): Likewise.
6614 (msp430_compute_frame_info): Likewise.
6615 (msp430_asm_output_addr_const_extra): Add space between function name
6616 and open parenthesis.
6617 (has_section_name): Fix indentation.
6618 (msp430_attr): Remove trailing whitespace.
6619 (msp430_section_attr): Likewise.
6620 (msp430_data_attr): Likewise.
6621 (struct msp430_attribute_table): Fix comment and whitespace.
6622 (msp430_start_function): Remove whitespace before left square bracket.
6623 Add space between function name and open parenthesis.
6624 (msp430_select_section): Remove trailing whitespace.
6625 (msp430_section_type_flags): Remove trailing whitespace.
6626 (msp430_unique_section): Remove space before closing parenthesis.
6627 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
6628 (msp430_builtins): Remove whitespace before left square bracket.
6629 (msp430_init_builtins): Fix indentation.
6630 (msp430_expand_prologue): Remove whitespace before left square bracket.
6631 Remove space before closing parenthesis.
6632 (msp430_expand_epilogue): Remove whitespace before left square bracket.
6633 (msp430_split_movsi): Remove space before closing parenthesis.
6634 (helper_function_name_mappings): Fix indentation.
6635 (msp430_use_f5_series_hwmult): Fix whitespace.
6636 (use_32bit_hwmult): Likewise.
6637 (msp430_no_hwmult): Likewise.
6638 (msp430_output_labelref): Remove whitespace before left square bracket.
6639 (msp430_print_operand_raw): Likewise.
6640 (msp430_print_operand_addr): Likewise.
6641 (msp430_print_operand): Add two spaces after '.' in comment.
6642 Fix trailing whitespace.
6643 (msp430x_extendhisi): Fix indentation.
6644 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
6646 (PC_REGNUM): Likewise.
6647 (STACK_POINTER_REGNUM): Likewise.
6648 (CC_REGNUM): Likewise.
6650 2019-08-15 Richard Biener <rguenther@suse.de>
6653 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
6655 (general_scalar_chain::make_vector_copies): Use it.
6657 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
6659 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
6661 2019-08-15 Martin Liska <mliska@suse.cz>
6663 * tree-ssa-dce.c (propagate_necessity): We can't reach now
6664 operators with no arguments.
6665 (eliminate_unnecessary_stmts): Likewise here.
6667 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
6669 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
6670 <case COMPARE>: Revert 2019-08-14 change.
6671 (convertible_comparison_p): Revert 2019-08-14 change. Return false
6672 for (TARGET_64BIT || mode != DImode).
6674 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
6676 * tree-vrp.c (value_range_base::set): Merge in code from
6677 value_range_base::set_and_canonicalize.
6678 Enforce canonicalization at set time.
6679 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
6680 (value_range_base::set_undefined): Inline call to set().
6681 (value_range_base::set_varying): Same.
6682 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
6683 (vrp_val_max): New argument handle_pointers.
6684 (vrp_val_min): Same.
6685 (ranges_from_anti_range): Same.
6686 (extract_range_into_wide_ints): Use tree argument instead of sign
6688 (extract_range_from_multiplicative_op): Take in tree type instead
6689 of precision and sign. Adapt function for canonicalized ranges.
6690 (extract_range_from_binary_expr): Pass type to
6691 extract_range_from_multiplicative_op.
6692 Adapt for canonicalized ranges.
6693 (extract_range_from_unary_expr): Same.
6694 (value_range_base::intersect_helper): Adjust for canonicalized
6696 (value_range_base::union_helper): Same.
6697 (value_range_base::normalize_symbolics): New.
6698 * tree-vrp.h (class value_range_base): Remove
6699 set_and_canonicalize.
6700 New prototype for normalize_symbolics.
6701 (class value_range): Remove set_and_canonicalize.
6702 (vrp_val_min): Adjust prototype.
6703 (vrp_val_max): Same.
6705 (vr_values::extract_range_for_var_from_comparison_expr): Call set
6706 instead of set_and_canonicalize.
6708 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6711 * tree-vect-stmts.c (vectorizable_call): Check that the function
6712 is a BUILT_IN_MD function before passing it to
6713 targetm.vectorize.builtin_md_vectorized_function.
6715 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6717 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
6718 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
6719 (aarch64_select_early_remat_modes): Use it.
6721 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6723 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
6724 16 for SVE predicates even if they are fixed-length.
6726 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6728 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
6729 operand order match the MOV /Z alias.
6731 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6733 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
6734 the vector pattern as an aarch64_svpattern argument. Update the
6735 overloaded caller accordingly.
6736 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
6737 (aarch64_output_sve_vector_inc_dec): Likewise.
6739 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6741 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
6742 multiplication case, try to compute VG * (lowest set bit) directly
6743 rather than always basing the multiplication on VG. Use
6744 expand_mult for the multiplication if we can.
6746 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6748 * config/aarch64/aarch64-protos.h
6749 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
6750 (aarch64_sve_inc_dec_immediate_p): Rename to...
6751 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
6752 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
6753 (aarch64_output_sve_scalar_inc_dec): Declare.
6754 (aarch64_output_sve_inc_dec_immediate): Rename to...
6755 (aarch64_output_sve_vector_inc_dec): ...this.
6756 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
6757 (aarch64_output_sve_scalar_inc_dec): New functions.
6758 (aarch64_output_sve_addvl_addpl): Remove the base and offset
6759 arguments. Only handle true ADDVL and ADDPL instructions;
6760 don't emit an INC or DEC.
6761 (aarch64_sve_inc_dec_immediate_p): Rename to...
6762 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
6763 (aarch64_output_sve_inc_dec_immediate): Rename to...
6764 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
6765 aarch64_sve_vector_inc_dec_immediate_p.
6766 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
6767 (aarch64_sve_plus_immediate): New predicates.
6768 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
6769 rather than aarch64_sve_addvl_addpl_immediate.
6770 (aarch64_sve_inc_dec_immediate): Rename to...
6771 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
6772 aarch64_sve_vector_inc_dec_immediate_p.
6773 (aarch64_sve_add_operand): Update accordingly.
6774 * config/aarch64/constraints.md (Uai): New constraint.
6775 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
6776 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
6777 operand into a register if it satisfies aarch64_sve_plus_immediate.
6778 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
6779 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
6780 * config/aarch64/aarch64-sve.md (add<mode>3): Call
6781 aarch64_output_sve_vector_inc_dec instead of
6782 aarch64_output_sve_inc_dec_immediate.
6784 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6786 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
6787 (UNSPEC_REVW): New constants.
6788 (elem_bits): New mode attribute.
6789 (SVE_INT_UNARY): New int iterator.
6790 (optab): Handle UNSPEC_REV[BHW].
6791 (sve_int_op): New int attribute.
6792 (min_elem_bits): Handle VNx16QI and the predicate modes.
6793 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
6794 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
6795 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
6796 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
6797 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
6798 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
6799 unspecs based on the total width of the reversed data.
6800 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
6801 reinterpret followed by a subreg on big-endian targets.
6803 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6804 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6806 * config/aarch64/aarch64-sve.md
6807 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
6808 alternatives in which one of the inputs is in the same register
6811 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6813 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
6814 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
6816 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6818 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
6819 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
6821 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6822 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6824 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
6825 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
6826 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
6828 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6829 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6831 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
6832 Add an alternative that uses reversed shifts.
6834 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6836 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
6839 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6841 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
6842 a commutativity marker.
6844 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6845 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6847 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
6848 (aarch64_prepare_sve_cond_int_fma): Declare.
6849 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
6850 (aarch64_prepare_sve_int_fma): New functions.
6851 (aarch64_prepare_sve_cond_int_fma): Likewise.
6852 * config/aarch64/aarch64-sve.md
6853 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
6854 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
6855 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
6856 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
6857 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
6858 (*madd<mode>): Rename to...
6859 (*fma<mode>4): ...this.
6860 (*msub<mode>): Rename to...
6861 (*fnma<mode>4): ...this.
6863 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6864 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6866 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
6867 Print 2.0 naturally.
6868 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
6869 * config/aarch64/predicates.md
6870 (aarch64_sve_float_negated_arith_immediate): New predicate,
6871 renamed from aarch64_sve_float_arith_with_sub_immediate.
6872 (aarch64_sve_float_arith_with_sub_immediate): Test for both
6873 positive and negative constants.
6874 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
6875 or an aarch64_sve_float_arith_with_sub_immediate.
6876 * config/aarch64/constraints.md (vsN): Use
6877 aarch64_sve_float_negated_arith_immediate.
6878 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
6880 (sve_pred_fp_rhs2_immediate): New int attribute.
6881 * config/aarch64/aarch64-sve.md
6882 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
6883 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
6884 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
6885 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
6886 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
6887 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
6889 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6890 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6892 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
6893 (*aarch64_cond_abd<SVE_F:mode>_3)
6894 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
6896 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6897 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6899 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
6900 (*aarch64_cond_<su>abd<mode>_any): New patterns.
6902 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6903 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6905 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
6906 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
6907 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
6908 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
6910 * optabs.h (create_convert_operand_from): Expand comment.
6911 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
6912 when mapping scalar rtxes to vector operands.
6913 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
6914 ashiftrt and lshiftrt.
6915 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
6916 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
6917 (*cond_<optab><mode>_any_const): New patterns.
6919 2019-08-15 Martin Liska <mliska@suse.cz>
6922 * cgraph.c (cgraph_node::remove): When setting
6923 n->origin = NULL for all nested functions, reset
6926 2019-08-15 Martin Liska <mliska@suse.cz>
6928 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
6931 2019-08-15 Martin Liska <mliska@suse.cz>
6934 * passes.c (order): Remove.
6935 (uid_hash_t): Likewise).
6936 (remove_cgraph_node_from_order): Remove from set
6937 of pointers (cgraph_node *).
6938 (insert_cgraph_node_to_order): New.
6939 (duplicate_cgraph_node_to_order): New.
6940 (do_per_function_toporder): Register all 3 cgraph hooks.
6941 Skip removed_nodes now as we know about all of them.
6943 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
6945 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
6946 <case E_V8QImode>: Use vector_set path for
6947 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6948 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
6949 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6951 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6953 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
6955 2019-08-14 Martin Sebor <msebor@redhat.com>
6957 PR tree-optimization/91294
6958 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
6959 source length as exact.
6961 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
6963 * doc/extend.texi: Add "noinit" attribute documentation.
6964 * doc/sourcebuild.texi: Add noinit effective target documentation.
6965 * varasm.c (default_section_type_flags): Add support for "noinit"
6967 (default_elf_select_section): Add support for "noinit" attribute.
6968 * config/msp430/msp430.c (msp430_attribute_table): Remove
6971 2019-08-14 Richard Biener <rguenther@suse.de>
6972 Uroš Bizjak <ubizjak@gmail.com>
6975 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
6977 (scalar_chain::smode): New member.
6978 (scalar_chain::vmode): Likewise.
6979 (dimode_scalar_chain): Rename to...
6980 (general_scalar_chain): ... this.
6981 (general_scalar_chain::general_scalar_chain): Take mode arguments.
6982 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
6983 base with TImode and V1TImode.
6984 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
6985 (general_scalar_chain::vector_const_cost): Adjust for SImode
6987 (general_scalar_chain::compute_convert_gain): Likewise. Add
6988 {S,U}{MIN,MAX} support.
6989 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
6990 (general_scalar_chain::make_vector_copies): Likewise. Handle
6991 non-DImode chains appropriately.
6992 (general_scalar_chain::convert_reg): Likewise.
6993 (general_scalar_chain::convert_op): Likewise.
6994 (general_scalar_chain::convert_insn): Likewise. Add
6995 fatal_insn_not_found if the result is not recognized.
6996 (convertible_comparison_p): Pass in the scalar mode and use that.
6997 (general_scalar_to_vector_candidate_p): Likewise. Rename from
6998 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
6999 (scalar_to_vector_candidate_p): Remove by inlining into single
7001 (general_remove_non_convertible_regs): Rename from
7002 dimode_remove_non_convertible_regs.
7003 (remove_non_convertible_regs): Remove by inlining into single caller.
7004 (convert_scalars_to_vector): Handle SImode and DImode chains
7005 in addition to TImode chains.
7006 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7007 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7008 (*<maxmin>di3_doubleword): Likewise.
7010 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7011 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7013 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7014 (*cond_bic<mode>_any): New patterns.
7016 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7018 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7019 take the equivalent mask, as well as a bit count.
7020 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7021 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7022 (aarch64_sve_pred_and_operand): New predicates.
7023 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7025 * config/aarch64/aarch64-sve.md
7026 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7027 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7029 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7031 * config/aarch64/aarch64-sve.md
7032 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7033 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7036 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7037 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7039 * config/aarch64/aarch64-sve.md
7040 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7041 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7043 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7044 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7046 * config/aarch64/aarch64-sve.md
7047 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7048 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7050 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7052 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7053 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7056 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7057 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7059 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7061 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7062 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7064 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7065 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7066 (aarch64_print_operand): Add support for %I.
7067 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7068 Bitcast floating-point constants to the corresponding integer constant.
7069 (aarch64_float_const_representable_p): Handle vectors as well
7071 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7072 for the new vcond_mask_<mode><vpred> expander.
7073 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7074 test aarch64_float_const_representable_p.
7075 (aarch64_sve_reg_or_dup_imm): New predicate.
7076 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7077 gen_vcond_mask_<mode><vpred> instead of
7078 gen_aarch64_sve_dup<mode>_const.
7079 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7080 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7081 for operands 1 and 2 respectively. Force operand 2 into a
7082 register if operand 1 is a register. Fold old define_insn...
7083 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7084 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7085 floating-point constants that can be moved as integers. Add
7086 alternatives for MOV /M and FMOV /M.
7087 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7088 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7089 1 and 2 respectively.
7090 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7092 (vss): New constraint.
7094 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7096 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7097 (aarch64_sve_float_maxmin_operand): New predicates.
7098 * config/aarch64/constraints.md (vsB): New constraint.
7100 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7101 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7103 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7104 Use aarch64_sve_float_maxmin_operand for operand 2.
7105 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7106 Add alternatives for the constant forms.
7108 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7110 * config/aarch64/constraints.md (vsb): New constraint.
7111 (vsm): Generalize description.
7112 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7114 (sve_imm_con): Handle smax, smin, umax and umin.
7115 (sve_imm_prefix): New code attribute.
7116 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7117 (aarch64_sve_vsb_operand): New predicates.
7118 (aarch64_sve_mul_immediate): Rename to...
7119 (aarch64_sve_vsm_immediate): ...this.
7120 (aarch64_sve_mul_operand): Rename to...
7121 (aarch64_sve_vsm_operand): ...this.
7122 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7123 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7124 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7125 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7126 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7127 add movprfx support for the immediate alternatives.
7128 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7130 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7133 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7135 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7136 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7137 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7139 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7141 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7142 (optab, sve_int_op): Handle them.
7143 * config/aarch64/aarch64-sve.md: Expand comment.
7145 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7147 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7148 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7149 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7151 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7153 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7154 (aarch64_expand_sve_const_pred_trn): New functions.
7155 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7156 use the above functions when the parameter is true.
7157 (aarch64_expand_sve_const_pred): Update call accordingly.
7158 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7160 (@aarch64_sve_<perm_insn><mode>): ...this.
7162 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7164 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7166 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7167 (aarch64_sve_emit_int_cmp): New functions.
7168 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7169 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7170 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7171 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7172 (UNSPEC_PRED_Z): New unspec.
7173 (set_clobber_cc_nzc): Delete.
7174 * config/aarch64/aarch64-sve.md: Add a block comment about
7176 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7177 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7178 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7180 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7181 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7182 check for compatible predicates.
7183 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7184 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7185 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7188 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7190 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7191 * config/aarch64/aarch64-sve.md: Add a section describing it.
7192 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7193 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7194 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7195 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7196 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7197 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7198 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7199 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7200 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7201 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7202 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7203 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7204 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7205 (aarch64_evpc_rev_local): Update accordingly.
7207 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7209 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7211 (SVE_BHSI, SVE_SDI): Tweak comment.
7212 (SVE_HSDI): Likewise. Fix definition.
7213 (SVE_SDF): New mode iterator.
7214 (elem_bits): New mode attribute.
7215 (SVE_COND_FCVT): New int iterator.
7216 * config/aarch64/aarch64-sve.md
7217 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7218 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7219 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7220 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7221 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7222 ...these new patterns.
7223 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7224 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7225 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7227 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7228 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7229 ...these new patterns.
7230 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7231 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7232 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7233 ...this new pattern.
7234 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7235 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7236 ...this new pattern.
7237 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7239 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7241 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7242 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7243 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7245 (optab, su): Handle them.
7246 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7247 * config/aarch64/aarch64-sve.md
7248 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7249 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7250 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7251 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7252 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
7253 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
7254 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
7255 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
7256 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
7258 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
7259 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
7260 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
7261 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
7262 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
7263 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
7264 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
7265 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
7266 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
7267 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
7268 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
7269 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
7270 of UNSPEC_FLOAT_CONVERT.
7271 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
7272 aarch64_sve_extend<mode><Vwide>2.
7274 2019-08-14 Richard Biener <rguenther@suse.de>
7277 * config/i386/i386-features.c
7278 (dimode_scalar_chain::compute_convert_gain): Compute and dump
7279 individual instruction gain. Fix reg-reg copy GRP cost. Use
7280 ix86_cost->sse_op for vector instruction costs.
7282 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7284 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
7285 (cmp_op): Handle it.
7286 (SVE_COND_FP_CMP): Rename to...
7287 (SVE_COND_FP_CMP_I0): ...this.
7288 (SVE_FP_CMP): Remove.
7289 * config/aarch64/aarch64-sve.md
7290 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
7291 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
7292 using unspecs to represent the comparison.
7293 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
7294 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
7296 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
7297 (aarch64_unspec_cond_code): Move after integer code. Handle
7299 (aarch64_emit_sve_predicated_cond): Replace with...
7300 (aarch64_emit_sve_fp_cond): ...this new function.
7301 (aarch64_emit_sve_or_conds): Replace with...
7302 (aarch64_emit_sve_or_fp_conds): ...this new function.
7303 (aarch64_emit_sve_inverted_cond): Replace with...
7304 (aarch64_emit_sve_invert_fp_cond): ...this new function.
7305 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
7307 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7309 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
7310 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
7311 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
7312 SVE_HSD instead of SVE_SD.
7314 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7315 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7317 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
7319 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
7321 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
7322 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
7323 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
7324 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
7325 (*div<SVE_F:mode>3): Generalize to...
7326 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
7328 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7329 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7331 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
7333 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
7335 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
7337 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
7339 * config/aarch64/aarch64-sve.md: Add a block comment about the
7340 handling of predicated FP operations.
7341 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
7342 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
7343 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7344 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
7345 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
7347 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
7348 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
7350 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
7351 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
7352 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
7353 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
7354 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
7355 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7356 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
7357 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
7358 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
7359 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
7360 strictness operands. Use aarch64_sve_pred_dominates_p to check
7361 whether the predicate on the conditional operation is suitable
7362 for merging. Split patterns into the canonical equal-predicate form.
7363 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
7364 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
7366 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7367 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7369 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
7370 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
7371 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
7373 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
7374 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
7377 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7378 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7380 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
7381 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
7382 actually has, rather than relying on REG_EQUAL notes.
7383 Make the insn operand order match the SVE operand order.
7384 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
7385 the SVE operand order.
7387 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7389 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
7390 (aarch64_emit_set_immediate): Likewise.
7391 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
7392 (aarch64_pfalse_reg): Likewise.
7393 (aarch64_convert_sve_data_to_pred): New function.
7394 (aarch64_sve_move_pred_via_while): Take an optional target register
7395 and the required register mode.
7396 (aarch64_expand_sve_const_pred_1): New function.
7397 (aarch64_expand_sve_const_pred): Likewise.
7398 (aarch64_expand_mov_immediate): Build an all-true predicate
7399 if the significant bits of the immediate are all true. Use
7400 aarch64_expand_sve_const_pred for all compile-time predicate constants.
7401 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
7402 before register allocation.
7403 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
7404 a VNx16BI PTRUE when splitting the memory alternative.
7405 (vec_duplicate<mode>): Update accordingly.
7406 (*pred_cmp<cmp_op><mode>): Rename to...
7407 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
7409 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7411 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
7412 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
7413 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
7414 (UNSPEC_PTEST): New unspec.
7415 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
7416 * config/aarch64/iterators.md (data_bytes): New mode attribute.
7417 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
7418 * config/aarch64/aarch64-sve.md: Add a new section describing the
7419 handling of UNSPEC_PTEST.
7420 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
7421 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
7422 (ptest_ptrue<mode>): Replace with...
7423 (aarch64_ptest<mode>): ...this new pattern.
7424 (cbranch<mode>4): Update after above changes.
7425 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
7427 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
7428 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
7429 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
7431 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
7434 * builtins.c (builtin_with_linkage_p): New function.
7435 * builtins.h (builtin_with_linkage_p): New function.
7436 * symtab.c (write_symbol): Remove redundant assert.
7437 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
7438 Remove FIXME and use builtin_with_linkage_p.
7440 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7443 * tree-core.h (function_decl::function_code): Change type to
7445 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
7446 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
7447 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
7448 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
7450 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
7451 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
7452 (fndecl_built_in_p): Change the type of the "name" argument to
7454 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
7455 after check for DECL_BUILT_IN_CLASS.
7456 * cgraphclones.c (build_function_decl_skip_args): Use
7457 set_decl_built_in_function.
7458 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
7459 * ipa-split.c (split_function): Likewise.
7460 * langhooks.c (add_builtin_function_common): Likewise.
7461 * omp-simd-clone.c (simd_clone_create): Likewise.
7462 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
7463 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
7464 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
7466 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
7467 instead of DECL_FUNCTION_CODE.
7468 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
7469 instead of DECL_FUNCTION_CODE.
7470 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
7471 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
7472 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
7473 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
7474 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
7475 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
7476 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
7477 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
7478 (alpha_gimple_fold_builtin): Likewise.
7479 * config/arc/arc.c (arc_expand_builtin): Likewise.
7480 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
7481 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
7482 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
7483 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
7484 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
7485 * config/frv/frv.c (frv_expand_builtin): Likewise.
7486 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
7487 (gcn_expand_builtin): Likewise.
7488 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
7489 (fold_builtin_cpu): Likewise.
7490 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
7491 * config/i386/i386.c (ix86_fold_builtin): Likewise.
7492 (ix86_gimple_fold_builtin): Likewise.
7493 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
7494 (ia64_expand_builtin): Likewise.
7495 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
7496 * config/mips/mips.c (mips_expand_builtin): Likewise.
7497 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
7498 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
7499 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
7500 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
7501 * config/pa/pa.c (pa_expand_builtin): Likewise.
7502 * config/pru/pru.c (pru_expand_builtin): Likewise.
7503 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
7504 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7506 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
7507 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
7508 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
7509 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
7510 (rs6000_builtin_reciprocal): Likewise.
7511 * config/rx/rx.c (rx_expand_builtin): Likewise.
7512 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
7513 * config/s390/s390.c (s390_expand_builtin): Likewise.
7514 * config/sh/sh.c (sh_expand_builtin): Likewise.
7515 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
7516 (sparc_fold_builtin): Likewise.
7517 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
7518 * config/spu/spu.c (spu_expand_builtin): Likewise.
7519 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
7520 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
7521 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
7522 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
7523 (xtensa_expand_builtin): Likewise.
7525 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7528 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
7529 before the DECL_FUNCTION_CODE.
7530 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
7531 to check for a BUILT_IN_ALLOCA call.
7532 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
7533 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
7534 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
7535 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7536 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
7537 for BUILT_IN_NORMAL functions.
7538 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
7539 test for BUILT_IN_TM_ABORT.
7540 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
7541 to check for a BUILT_IN_STACK_RESTORE call.
7542 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
7543 * tree-ssa-threadedge.c
7544 (record_temporary_equivalences_from_stmts_at_dest): Check for a
7545 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
7546 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
7547 test for a BUILT_IN_NORMAL call instead of a negative test for
7548 an internal function call.
7550 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7552 * tree.h (build_vector_a_then_b): Declare.
7553 * tree.c (build_vector_a_then_b): New function.
7554 * fold-const-call.c (fold_while_ult): Likewise.
7555 (fold_const_call): Use it to handle IFN_WHILE_ULT.
7556 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
7557 (aarch64_svpattern): New enum.
7558 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
7559 constants through aarch64_expand_mov_immediate.
7560 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
7561 than general_operand as the predicate for operand 1.
7562 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
7563 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
7565 (simd_immediate_info::simd_immediate_info): New overload that
7566 takes a scalar_int_mode and an svpattern.
7567 (simd_immediate_info::u): Add a "pattern" field.
7568 (svpattern_token): New function.
7569 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
7570 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
7571 (aarch64_sve_move_pred_via_while): New functions.
7572 (aarch64_expand_mov_immediate): Try using
7573 aarch64_sve_move_pred_via_while for predicates that contain N ones
7574 followed by M zeros but that do not correspond to a VLnnn pattern.
7575 (aarch64_sve_pred_valid_immediate): New function.
7576 (aarch64_simd_valid_immediate): Use it instead of dealing directly
7577 with PTRUE and PFALSE.
7578 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
7581 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
7583 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
7585 (darwin_override_options): Likewise.
7586 * config/darwin.h: Likewise.
7587 * config/darwin.opt: Likewise.
7588 * config/i386/i386.c (output_pic_addr_const): Likewise.
7589 * config/rs6000/darwin.h: Likewise.
7590 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
7591 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
7592 ... this TARGET_MACHO_SYMBOL_STUBS.
7593 (FUNCTION_PROFILER):Likewise.
7594 * config/i386/i386.h: Likewise.
7596 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
7598 * config/i386/i386-expand.c (ix86_expand_vector_extract)
7599 <case E_V2SImode>: Use vec_extr path for
7600 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7601 <case E_V8QImode>: Ditto.
7602 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
7603 Use SWI48 mode iterator. Use %k to output operand 0.
7604 (*mmx_pextrw): New insn pattern.
7605 (*mmx_pextrb): Ditto.
7606 (*mmx_pextrb_zext): Ditto.
7608 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
7610 * target.def (libc_has_function, libc_has_fast_function): Improve
7611 documentation strings.
7612 * doc/tm.texi: Regenerate.
7614 2019-08-13 Caroline Tice <cmtice@google.com>
7617 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
7618 vtv_end.o or vtv_end_preinit.o files if !static.
7620 2019-08-13 Olivier Hainque <hainque@adacore.com>
7622 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
7624 2019-08-13 Olivier Hainque <hainque@adacore.com>
7626 * rtlanal.c (tablejump_casesi_pattern): New function, to
7627 determine if a tablejump insn is a casesi dispatcher. Extracted
7628 from patch_jump_insn.
7629 * rtl.h (tablejump_casesi_pattern): Declare.
7630 * cfgrtl.c (patch_jump_insn): Use it.
7631 * dwarf2cfi.c (create_trace_edges): Use it.
7633 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
7636 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
7637 operand is larger than a long int.
7639 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7641 * machmode.h (opt_mode::else_mode): New function.
7642 (opt_mode::else_blk): Use it.
7643 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
7644 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
7645 (aarch64_gen_stepped_int_parallel): Likewise.
7646 (aarch64_stepped_int_parallel_p): Likewise.
7647 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
7649 * config/aarch64/aarch64.c
7650 (aarch64_expand_sve_widened_duplicate): Delete.
7651 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
7652 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
7653 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
7654 argument. Use early returns in the !CONST_INT_P handling.
7655 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
7656 than handling some inline.
7657 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
7659 (aarch64_simd_container_mode): ...here.
7660 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
7661 (aarch64_sve_ld1rq_operand_p): New functions.
7662 * config/aarch64/predicates.md (descending_int_parallel)
7663 (aarch64_sve_ld1rq_operand): New predicates.
7664 * config/aarch64/constraints.md (UtQ): New constraint.
7665 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
7666 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
7667 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
7668 (@aarch64_sve_reinterpret<mode>): New expander.
7669 (*aarch64_sve_reinterpret<mode>): New pattern.
7670 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
7671 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
7672 (*sve_ld1rq<Vesize>): Replace with...
7673 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
7675 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
7677 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
7680 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7682 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
7683 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
7684 (msp430_check_path_for_devices): New.
7685 (parse_devices_csv_1): New.
7686 (parse_devices_csv): New.
7687 (msp430_extract_mcu_data): Try to find devices.csv and search for the
7688 MCU data in devices.csv before using the hard-coded data.
7689 Warn if devices.csv isn't found and the MCU wasn't found in the
7690 hard-coded data either.
7691 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
7692 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
7693 Search for devices.csv on -I and -L paths.
7694 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
7695 msp430_set_driver_var.
7696 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
7698 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
7699 searched for devices.csv.
7700 (mwarn-devices-csv): Document option.
7702 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7704 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
7705 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
7706 Use a single Dn alternative instead of separate Dz and Dm
7707 alternatives. Use aarch64_output_sve_move_immediate.
7708 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
7710 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
7712 (aarch64_output_sve_mov_immediate): Handle predicate modes.
7713 (aarch64_output_ptrue): Delete.
7715 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7717 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
7719 (simd_immediate_info::value, simd_immediate_info::step)
7720 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
7722 (simd_immediate_info::u): ...this new union.
7723 (simd_immediate_info::simd_immediate_info): Update accordingly.
7724 (aarch64_output_simd_mov_immediate): Likewise.
7725 (aarch64_output_sve_mov_immediate): Likewise.
7727 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7729 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
7731 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
7732 (msp430_select_cpu): New spec function.
7733 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
7735 * config/msp430/msp430-devices.c: New file.
7736 * config/msp430/msp430-devices.h: New file.
7737 * config/msp430/msp430.c: Remove msp430_mcu_data.
7738 (msp430_option_override): Use msp430_extract_mcu_data to extract
7740 (msp430_use_f5_series_hwmult): Likewise.
7741 (use_32bit_hwmult): Likewise.
7742 (msp430_no_hwmult): Likewise.
7743 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
7745 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
7747 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
7748 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
7749 Remove hard-coded MCU multilib data.
7751 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7753 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
7754 based on the mode instead of testing properties of it.
7756 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7758 * doc/md.texi: Document the x and y constraints for AArch64.
7759 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
7760 (FP_LO8_REGS): New reg_class.
7761 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
7762 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
7763 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
7764 * config/aarch64/predicates.md (aarch64_simd_register): Use
7765 FP_REGNUM_P instead of checking the classes manually.
7766 * config/aarch64/constraints.md (y): New constraint.
7768 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7770 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
7771 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
7772 * config/aarch64/aarch64-simd.md
7773 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
7774 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
7775 from the asm template.
7776 * config/aarch64/aarch64-sve.md
7777 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
7778 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
7779 from the asm template.
7780 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
7781 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
7782 from the asm template.
7783 * config/aarch64/aarch64-simd-builtins.def: Update comment.
7785 2019-08-13 Martin Liska <mliska@suse.cz>
7787 * value-prof.c (gimple_ic_transform): Add new line.
7788 Print details with MSG_NOTE.
7790 2019-08-13 Martin Liska <mliska@suse.cz>
7792 * doc/invoke.texi: Document automatic detection of jobserver.
7793 * lto-wrapper.c (run_gcc): Detect jobserver always.
7795 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
7797 * config/i386/i386-expand.c (ix86_expand_vector_set)
7798 <case E_V2SImode>: Use vec_merge path for
7799 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7800 <case E_V8QImode>: Ditto.
7801 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
7802 (*mmx_pinsrb): Ditto.
7804 2019-08-12 Jakub Jelinek <jakub@redhat.com>
7808 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
7809 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
7810 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
7811 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
7812 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
7814 2019-08-12 Richard Biener <rguenther@suse.de>
7817 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
7820 2019-08-12 Richard Biener <rguenther@suse.de>
7823 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
7824 lang_mask option, always use CL_DRIVER.
7825 (get_options_from_collect_gcc_options): Adjust.
7826 (find_and_merge_options): Likewise.
7827 (run_gcc): Likewise.
7829 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7831 * ipa-predicate.c (add_condition): Restore inverted test.
7833 2019-08-10 Jakub Jelinek <jakub@redhat.com>
7835 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
7836 (enum omp_clause_device_type_kind): New enum.
7837 (struct tree_omp_clause): Add subcode.device_type_kind.
7838 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
7839 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
7840 for device_type clause.
7841 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
7842 * tree-pretty-print.c (dump_omp_clause): Likewise.
7845 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
7848 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
7850 * reload1.c (finish_spills): Do not check ira_conflicts_p when
7851 handling spilled pseudos.
7853 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
7856 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
7857 to preserve the contents of the original insns.
7859 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
7861 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
7862 (addsi3_compare_op2): Likewise.
7864 2019-08-09 Martin Liska <mliska@suse.cz>
7866 * alias.c (alias_ptr_types_compatible_p): Strengten
7867 type comparison in LTO mode.
7869 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
7872 * tree-tailcall.c (find_tail_calls): Reject calls that might
7873 read from an escaped RESULT_DECL.
7875 2019-08-09 Martin Liska <mliska@suse.cz>
7877 * doc/invoke.texi: Document the option value.
7878 * lto-wrapper.c (run_gcc): Set auto_parallel
7879 only with -flto=auto.
7881 2019-08-09 Martin Liska <mliska@suse.cz>
7883 * opts.c (common_handle_option): Error for an invalid argument
7886 2019-08-09 Martin Liska <mliska@suse.cz>
7888 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
7889 use dump_printf to report optimization.
7890 (sem_variable::merge): Likwise.
7891 (sem_item_optimizer::merge_classes): Use dump_printf to report
7894 2019-08-09 Martin Liska <mliska@suse.cz>
7896 * value-prof.c (gimple_divmod_fixed_value_transform):
7897 Use dump_printf_loc.
7898 (gimple_mod_pow2_value_transform): Likewise.
7899 (gimple_mod_subtract_transform): Likewise.
7900 (init_node_map): Likewise.
7901 (gimple_ic_transform): Likewise.
7902 (gimple_stringops_transform): Likewise.
7904 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7906 * doc/extend.texi: Add const qualifier to ld intrinsics.
7908 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
7910 * config/rs6000/dfp.md (D64_D128): Rename to ...
7911 (DDTD): ... this, throughout.
7912 (dfp_suffix): Rename to ...
7913 (q): ... this, throughout.
7915 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
7917 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
7918 (dfp_suffix): Ditto.
7919 (adddd3, addtd3): Merge to ...
7920 (add<mode>3 for D64_D128): ... this.
7921 (subdd3, subtd3): Merge to ...
7922 (sub<mode>3 for D64_D128): ... this.
7923 (muldd3, multd3): Merge to ...
7924 (mul<mode>3 for D64_D128): ... this.
7925 (divdd3, divtd3): Merge to ...
7926 (div<mode>3 for D64_D128): ... this.
7927 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
7928 (*cmp<mode>_internal1 for D64_D128): ... this.
7929 (ftruncdd2, ftrunctd2): Merge to ...
7930 (ftrunc<mode>2 for D64_D128): ... this.
7931 (fixdddi2, fixtddi2): Merge to ...
7932 (fix<mode>di2 for D64_D128): ... this.
7934 2019-08-08 Jim Wilson <jimw@sifive.com>
7937 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
7938 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
7939 Pass into recursive call.
7940 (riscv_flatten_aggregate_argument): New arg. Pass to
7941 riscv_flatten_aggregate_field.
7942 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
7943 riscv_flatten_aggregate_argument twice, with false and true as last
7944 arg. Process result twice. Compare results and warn if different.
7945 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
7947 2019-08-08 Martin Liska <mliska@suse.cz>
7950 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
7951 * lto-wrapper.c (jobserver_active_p): Likewise.
7953 2019-08-08 Martin Liska <mliska@suse.cz>
7955 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
7956 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
7957 (create_version_clone_with_body): Likewise.
7959 2019-08-08 Jakub Jelinek <jakub@redhat.com>
7961 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
7962 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
7963 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
7964 GOVD_EXPLICIT flags.
7965 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
7966 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
7967 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
7968 call install_var_field with mask 11 instead of 3.
7969 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
7970 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
7972 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7974 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
7975 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
7977 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7979 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
7980 MOVPRFX alternatives. Make the GPR alternatives more expensive
7983 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7985 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
7986 Disparage the GPR alternative relative to the FPR one.
7987 Fix handling of 8-bit and 16-bit FPR values.
7989 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7991 * config/aarch64/iterators.md (BITWISEV): Delete.
7992 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
7993 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
7994 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
7995 UNSPEC_FMINNMV, UNSPEC_FMINV.
7996 (bit_reduc_op): Delete.
7997 (sve_int_op): New int attribute.
7998 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
7999 UNSPEC_FMINNMV, UNSPEC_FMINV.
8000 * config/aarch64/aarch64-sve.md
8001 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8002 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8003 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8004 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8005 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8006 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8008 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8009 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8010 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8011 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8012 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8015 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8017 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8018 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8019 (fms<mode>4, *fms<mode>4): Replace with...
8020 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8021 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8022 Use unspecs instead of rtx codes.
8023 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8024 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8026 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8028 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8030 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8031 * config/aarch64/aarch64-sve.md
8032 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8033 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8034 use a single unspec for the rhs.
8035 (*<su><maxmin><mode>3): Delete.
8036 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8038 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8040 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8041 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8042 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8043 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8044 (optab, sve_fp_op): Handle them.
8045 (SVE_FP_UNARY): Delete.
8046 (optab): Remove sqrt entry.
8047 (sve_fp_op): Remove neg, abs and sqrt entries.
8048 (SVE_COND_FP_UNARY): New int iterator.
8049 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8050 (*<frint_pattern><mode>2): Delete.
8051 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8052 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8053 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8054 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8056 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8058 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8060 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8062 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8063 (UNSPEC_COND_FADD): ...this.
8064 (UNSPEC_COND_SUB): Rename to...
8065 (UNSPEC_COND_FSUB): ...this.
8066 (UNSPEC_COND_MUL): Rename to...
8067 (UNSPEC_COND_FMUL): ...this.
8068 (UNSPEC_COND_DIV): Rename to...
8069 (UNSPEC_COND_FDIV): ...this.
8070 (UNSPEC_COND_MAX): Rename to...
8071 (UNSPEC_COND_FMAXNM): ...this.
8072 (UNSPEC_COND_MIN): Rename to...
8073 (UNSPEC_COND_FMINNM): ...this.
8074 (UNSPEC_COND_LT): Rename to...
8075 (UNSPEC_COND_FCMLT): ...this.
8076 (UNSPEC_COND_LE): Rename to...
8077 (UNSPEC_COND_FCMLE): ...this.
8078 (UNSPEC_COND_EQ): Rename to...
8079 (UNSPEC_COND_FCMEQ): ...this.
8080 (UNSPEC_COND_NE): Rename to...
8081 (UNSPEC_COND_FCMNE): ...this.
8082 (UNSPEC_COND_GE): Rename to...
8083 (UNSPEC_COND_FCMGE): ...this.
8084 (UNSPEC_COND_GT): Rename to...
8085 (UNSPEC_COND_FCMGT): ...this.
8086 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8087 (sve_fp_op_rev): Update accordingly.
8088 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8090 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8092 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8094 * config/aarch64/check-sve-md.awk: New file.
8095 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8096 (insn-conditions.md): Depend on it.
8098 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8101 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8102 (*negsi2_cmpz_zext): Ditto.
8104 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8106 * config/aarch64/iterators.md (commutative): Remove.
8108 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8111 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8112 processing COLLECT_GCC_OPTIONS.
8113 (run_gcc): Likewise.
8115 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8117 PR tree-optimization/91109
8118 * lra-remat.c (update_scratch_ops): Remove assignment of the
8121 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8123 * data-streamer.h (streamer_write_poly_uint64): Declare.
8124 (streamer_read_poly_uint64): Likewise.
8125 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8126 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8127 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8128 (add_condition): Take a poly_int64 size.
8129 * ipa-predicate.c (add_condition): Likewise.
8130 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8131 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8132 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8133 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8134 condition::size as a poly_int64.
8135 (unmodified_parm_1): Take a poly_int64 size pointer.
8136 (unmodified_parm): Likewise.
8137 (unmodified_parm_or_parm_agg_item): Likewise.
8138 (set_cond_stmt_execution_predicate): Update accordingly.
8139 (set_switch_stmt_execution_predicate): Likewise.
8140 (will_be_nonconstant_expr_predicate): Likewise.
8141 (will_be_nonconstant_predicate): Likewise.
8142 (inline_read_section): Stream condition::size as a poly_int.
8143 (ipa_fn_summary_write): Likewise.
8145 2019-08-07 Martin Liska <mliska@suse.cz>
8147 * fold-const.c (twoval_comparison_p): Replace int
8148 with bool as a return type.
8149 (simple_operand_p): Likewise.
8150 (operand_equal_p): Replace int with bool as a return type.
8151 * fold-const.h (operand_equal_p): Likewise.
8153 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8155 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8156 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8157 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8158 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8159 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8160 * tree-pretty-print.c (dump_omp_clause): Likewise.
8161 * tree-nested.c (convert_nonlocal_omp_clauses,
8162 convert_local_omp_clauses): Likewise.
8163 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8165 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8166 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8167 clause with array or reference to array types, no matter what type
8168 except for reference it has.
8170 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8172 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8174 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8176 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8177 (arch_canonicalize): Support rv32g and rv64g and fix error
8180 2019-08-06 Martin Liska <mliska@suse.cz>
8182 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8183 and DECL_IS_OPERATOR_DELETE_P.
8185 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8187 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8188 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8189 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8190 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8191 (gimplify_omp_for): Don't do C++ random access iterator clause
8192 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8193 don't predetermine the artificial iterator in case of C++ random
8194 access iterators as lastprivate, but private. For OMP_LOOP, force
8195 bind expr around simd body and force for_pre_body before the
8196 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8197 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8198 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8199 diff var of C++ random access iterators. Handle
8200 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8201 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8202 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8203 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8204 * omp-low.c (lower_rec_input_clauses): For
8205 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8206 variables instead of default constructing them.
8207 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8208 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8209 is_taskloop_ctx check from the assert to the guarding condition.
8211 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8213 * config/riscv/multilib-generator: (canonical_order): New.
8214 (arch_canonicalize): Dito.
8215 Apply arch_canonicalize for alts.
8217 2019-08-05 Martin Sebor <msebor@redhat.com>
8219 * doc/extend.texi (Common Variable Attributes): Document alias
8222 2019-08-05 Marek Polacek <polacek@redhat.com>
8224 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8225 * doc/invoke.texi: Document -Wcomma-subscript.
8227 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8229 * tree-core.h (tree_function_decl): Make function_code an
8230 independent field. Group the remaining bitfields into bytes
8231 and move decl_type so that it contines to be at a byte boundary.
8232 Leave 12 bits for future expansion.
8234 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8236 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8237 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8238 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8241 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8243 * gimple.h (gimple_move_vops): Declare.
8244 * gimple.c (gimple_move_vops): New function
8245 * gimple-fold.c (replace_call_with_call_and_fold)
8246 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8247 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8248 (gimple_fold_call): Use it.
8249 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8250 * tree-call-cdce.c (use_internal_fn): Likewise.
8251 * tree-if-conv.c (predicate_load_or_store): Likewise.
8252 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8253 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8254 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
8255 (update_call_from_tree): Likewise.
8256 * tree-vect-stmts.c (vectorizable_load): Likewise.
8257 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
8259 2019-08-05 Martin Liska <mliska@suse.cz>
8262 * tree-ssa-dce.c (propagate_necessity): Handle new operators
8264 (eliminate_unnecessary_stmts): Likewise.
8266 2019-08-05 Richard Biener <rguenther@suse.de>
8269 * fold-const.c (get_array_ctor_element_at_index): Create
8270 offset_ints according to the sign of the index type and treat
8271 that as signed if it is obviously so.
8273 2019-08-05 Jakub Jelinek <jakub@redhat.com>
8276 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
8277 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
8278 _mm256_storeu2_m128i): New function.
8280 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
8282 * config/riscv/riscv.c (riscv_promote_function_mode): New.
8283 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
8285 2019-08-05 Alan Modra <amodra@gmail.com>
8288 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
8289 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
8291 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
8293 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
8294 bug that was fixed in Tcl 8.6.1.
8296 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
8298 * config/rs6000/future.md: New file.
8299 * config/rs6000/rs6000.md: Include future.md.
8300 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
8302 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
8304 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
8305 check to use targetm.slow_unaligned_access instead.
8307 * function.c (assign_param_data_one): Remove unused data members.
8309 2019-08-02 Steve Ellcey <sellcey@marvell.com>
8311 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
8312 build_distinct_type_copy.
8313 (simd_clone_adjust_argument_types): Ditto.
8314 (simd_clone_adjust): Call build_distinct_type_copy here.
8315 (expand_simd_clones): Ditto.
8317 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8320 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
8322 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
8324 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
8325 from 'const void *'.
8326 (sort_locs_in_loop_postorder_cmp): Likewise.
8328 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
8330 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
8331 (hot-bb-count-ws-permille): Likewise.
8332 (hot-bb-frequency-fraction): Likewise.
8333 (unlikely-bb-count-fraction): Likewise.
8334 * params.def (hot-bb-count-fraction): Rework description.
8335 (hot-bb-count-ws-permille): Likewise.
8336 (hot-bb-frequency-fraction): Likewise.
8337 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
8338 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
8340 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8343 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
8346 2019-08-02 Richard Biener <rguenther@suse.de>
8348 * vec.h (vec::sort): Add gcc_qsort_r support.
8349 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
8350 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
8351 to gcc_qsort_r style callback.
8352 (sort_locs_in_loop_postorder_cmp): Likewise.
8353 (analyze_memory_references): Use gcc_sort_r interfaces.
8354 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
8356 2019-08-02 Martin Liska <mliska@suse.cz>
8359 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
8360 to detect working job server.
8361 (driver::detect_jobserver): Test whether jobserver
8362 is active from GCC driver. That will prevent situation where
8363 GCC is invoked from a LD plugin and the linker already uses
8364 file descriptors suggested by make. That leads to a wrong
8366 * gcc.h (driver): Add detect_jobserver.
8367 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
8368 not scanning for --jobserver-auth prefix.
8370 2019-08-02 Jakub Jelinek <jakub@redhat.com>
8372 PR tree-optimization/91201
8373 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
8374 V16QImode extraction without sse4.1 try to use V4SImode lowpart
8377 2019-08-01 Martin Sebor <msebor@redhat.com>
8380 * tree.c (type_initializer_zero_p): Define.
8381 * tree.h (type_initializer_zero_p): New function.
8383 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8385 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
8387 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8389 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
8390 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
8391 * predict.c (maybe_hot_count_p): Likewise.
8392 (maybe_hot_bb_p): Tweak comment.
8393 (maybe_hot_edge_p): Likewise.
8394 (probably_never_executed): Likewise. Minor tweak.
8395 (probably_never_executed_bb_p): Likewise.
8396 (unlikely_executed_edge_p): Likewise.
8397 (probably_never_executed_edge_p): Likewise.
8398 (optimize_function_for_size_p): Likewise.
8399 (optimize_function_for_speed_p): Likewise.
8400 (function_optimization_type): Likewise.
8401 (optimize_bb_for_size_p): Likewise.
8402 (optimize_bb_for_speed_p): Likewise.
8403 (bb_optimization_type): Likewise.
8404 (optimize_edge_for_size_p): Likewise.
8405 (optimize_edge_for_speed_p): Likewise.
8406 (optimize_insn_for_size_p): Likewise.
8407 (optimize_insn_for_speed_p): Likewise.
8408 (optimize_loop_for_size_p): Likewise.
8409 (optimize_loop_for_speed_p): Likewise.
8410 (optimize_loop_nest_for_speed_p): Likewise.
8411 (optimize_loop_nest_for_size_p): Likewise.
8412 (predictable_edge_p): Likewise.
8413 (handle_missing_profiles): Minor tweak.
8415 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
8417 * config/rs6000/predicates.md (pcrel_external_address): Update
8420 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8423 * config/i386/mmx.md (usadv8qi): New expander.
8425 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
8428 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
8429 with reserved names that are in a system header.
8431 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8433 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
8434 (*vec_extractv2si_0_zext_sse4): New insn pattern.
8435 (*vec_extractv2si_0_zext): Ditto.
8436 (*vec_extractv2si_1): Add (rm,x) alternative.
8437 (*vec_extractv2si_1_zext): New insn pattern.
8438 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
8441 2019-08-01 Richard Biener <rguenther@suse.de>
8443 * domwalk.c (bb_postorder): Remove static variable.
8444 (cmp_bb_postorder): Adjust.
8445 (sort_bbs_postorder): Adjust and use gcc_sort_r.
8446 (dom_walker::walk): Adjust.
8448 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
8450 * sort.cc (sort_r_ctx): New struct.
8451 (reorder23): Make templated on context type.
8453 (cmp1): Ditto. Adjust signature.
8456 [CHECKING_P] (cmp2to3): New static function. Use it...
8457 (gcc_qsort) [CHECKING_P]: ...here.
8458 (gcc_sort_r): New function.
8459 * system.h (sort_r_cmp_fn): New function typedef.
8460 (qsort_chk): Adjust signature.
8461 (gcc_sort_r): Declare.
8462 * vec.c (qsort_chk_error): Adjust.
8463 (qsort_chk): Adjust.
8465 2019-08-01 Richard Biener <rguenther@suse.de>
8467 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
8468 (compute_antic): Localize it here.
8470 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
8472 * common/config/riscv/riscv-common.c: Check -march string ends
8475 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
8477 * ipa-devirt.c (type_warning_cmp): Make static.
8478 (decl_warning_cmp): Ditto.
8480 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
8483 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
8484 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
8485 use of deleted rs6000_dejagnu_cpu_index variable.
8486 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
8487 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8488 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
8489 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
8490 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
8491 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8493 2019-07-31 Richard Biener <rguenther@suse.de>
8495 PR tree-optimization/91280
8496 * tree-ssa-structalias.c (get_constraint_for_component_ref):
8497 Decompose MEM_REF manually for offset handling.
8499 2019-07-31 Richard Biener <rguenther@suse.de>
8501 PR tree-optimization/91293
8502 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
8505 2019-07-31 Matt Thomas <matt@3am-software.com>
8506 Nick Hudson <nick@nthcliff.demon.co.uk>
8507 Matthew Green <mrg@eterna.com.au>
8508 Maya Rashish <coypu@sdf.org>
8510 * config.gcc (hppa*-*-netbsd*): New target.
8511 * config/pa/pa-netbsd.h: New file.
8512 * config/pa/pa32-netbsd.h: New file.
8514 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8516 PR tree-optimization/91201
8517 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
8519 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
8521 * config/gcn/gcn-valu.md
8522 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
8523 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
8524 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
8525 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
8526 struct ilist. Add nops for delayeduse insns.
8527 * config/gcn/gcn.md (delayeduse): New attribute.
8528 (*movbi): Remove s_waitcnt from stores.
8529 (*mov<mode>_insn): Likewise.
8530 (*movti_insn): Likewise. Add delayeduse attribute.
8531 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
8532 (atomic_store<mode>): Remove or adjust s_waitcnt.
8534 2019-07-31 Richard Biener <rguenther@suse.de>
8536 * vr-values.h (vr_values::swap_vr_value): New.
8537 (vr_values::free_value_range): likewise.
8538 * vr-values.c (vr_values::swap_vr_value): Implement.
8539 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
8540 Do not return a range or take a var.
8541 (evrp_range_analyzer::stack): Change back to recording a non-const
8543 * gimple-ssa-evrp-analyze.c
8544 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
8546 (evrp_range_analyzer::pop_to_marker): Adjust.
8547 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
8548 (evrp_range_analyzer::pop_value_range): Likewise. Free the
8549 no longer needed value-range.
8551 2019-07-31 Martin Liska <mliska@suse.cz>
8553 * tree-ssa-dce.c (propagate_necessity): Delete operator can
8554 have size and (or) alignment as 2nd and later arguments.
8555 Mark all of them as necessary.
8557 2019-07-31 Richard Biener <rguenther@suse.de>
8559 PR tree-optimization/91178
8560 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8563 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8565 PR tree-optimization/91201
8566 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
8567 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
8569 (reduc_plus_scal_<mode>): Improve formatting by introducing
8572 2019-07-31 Sudakshina Das <sudi.das@arm.com>
8574 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
8575 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
8576 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
8577 (aarch64_init_tme_builtins): New.
8578 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
8579 (aarch64_expand_builtin_tme): New.
8580 (aarch64_expand_builtin): Handle TME builtins.
8581 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8582 __ARM_FEATURE_TME when enabled.
8583 * config/aarch64/aarch64-option-extensions.def: Add "tme".
8584 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
8586 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
8587 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
8589 (tstart, ttest, tcommit, tcancel): New instructions.
8590 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
8591 (__tcancel, __ttest): New.
8592 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
8593 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
8594 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
8595 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
8596 * config/arm/types.md: Add new tme type attr.
8597 * doc/invoke.texi: Document "tme".
8599 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
8601 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
8602 warn_unused_result attribute.
8603 (cmse_check_address_range): Add warn_unused_result attribute.
8605 2019-07-31 Richard Biener <rguenther@suse.de>
8607 PR tree-optimization/91257
8608 * tree-vrp.c (union_ranges): Unify equality and less tests
8609 by using compare_values. Re-order cheap tests first.
8611 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8614 * gimplify.c (gimplify_omp_for): If for class iterator on
8615 distribute parallel for there is no data sharing clause
8616 on inner_for_stmt, look for private clause on combined
8617 parallel too and if found, move it to inner_for_stmt.
8619 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
8621 * lra-int.h (lra_operand_data): Remove early_clobber field.
8622 (lra_insn_reg): Likewise.
8623 * lra.c (debug_operand_data): Update accordingly.
8624 (setup_operand_alternative): Likewise.
8625 (new_insn_reg): Likewise. Remove early_clobber parameter.
8626 (collect_non_operand_hard_regs): Update call accordingly.
8627 Don't assign to lra_insn_reg::early_clobber.
8628 (add_regs_to_insn_regno_info): Remove early_clobber parameter
8629 and update calls to new_insn_reg.
8630 (lra_update_insn_regno_info): Update calls accordingly.
8631 * lra-constraints.c (update_and_check_small_class_inputs): Take the
8632 alternative number as a parameter and test whether the operand
8633 is earlyclobbered in that particular alternative.
8634 (process_alt_operands): Update call accordingly. Use per-alternative
8635 checks for earyclobber here too.
8636 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
8637 against zero for IRA_UNKNOWN_ALT.
8639 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
8641 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
8643 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
8645 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
8646 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
8648 2019-07-30 Martin Liska <mliska@suse.cz>
8651 * cgraph.c (cgraph_edge::make_direct): Use
8652 edge->indirect_unknown_callee as edge->resolve_speculation can
8653 deallocate edge which is this pointer.
8655 2019-07-30 Richard Biener <rguenther@suse.de>
8657 PR tree-optimization/91257
8658 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
8660 2019-07-30 Martin Liska <mliska@suse.cz>
8662 * doc/invoke.texi: Document new behavior.
8663 * lto-wrapper.c (cpuset_popcount): New function
8664 is a copy of libgomp/config/linux/proc.c.
8665 (init_num_threads): Likewise.
8666 (run_gcc): Automatically detect core count for -flto.
8667 (jobserver_active_p): New function.
8669 2019-07-30 Richard Biener <rguenther@suse.de>
8671 PR tree-optimization/91257
8672 * bitmap.h (bitmap_ior_into_and_free): Declare.
8673 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
8674 whether to add the unliked element to the freelist.
8675 (bitmap_list_insert_element_after): Add defaulted param for
8676 an already allocated element.
8677 (bitmap_ior_into_and_free): New function.
8678 * tree-ssa-structalias.c (condense_visit): Reduce the
8679 ponts-to and edge bitmaps of the SCC members in a
8680 logarithmic fashion rather than all to one.
8682 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
8684 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
8685 parameter. When nonnull, make sure that the addition or subtraction
8686 has the same condition.
8687 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
8688 for CFN_COND_MUL too.
8690 2019-07-30 Richard Biener <rguenther@suse.de>
8692 PR tree-optimization/91291
8693 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
8696 2019-07-30 Jakub Jelinek <jakub@redhat.com>
8699 * omp-low.c (global_nonaddressable_vars): New variable.
8700 (use_pointer_for_field): For global decls, if they are non-addressable,
8701 remember it in the global_nonaddressable_vars bitmap, if they are
8702 addressable and in the global_nonaddressable_vars bitmap, ignore their
8703 TREE_ADDRESSABLE bit.
8704 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
8705 vars in global_nonaddressable_vars bitmap.
8706 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
8709 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
8710 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
8711 comparison to unsigned HOST_WIDE_INT before shifting it left.
8713 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
8715 * config/i386/i386.md (movstrict<mode>): Use register_operand
8716 predicate for operand 0. Add expander condition. Assert that
8717 operand 0 is a SUBREG RTX.
8718 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
8719 Update operand constraints and insn condition.
8720 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
8721 (zero_extendqihi2_and): Do not call gen_movstrictqi.
8722 (*setcc_qi_slp): Use register_operand predicate for operand 0.
8723 Update operand 0 constraints.
8724 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
8726 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8728 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
8729 when -m{code,data}-region are used without -mlarge.
8730 * config/msp430/msp430.c (msp430_option_override): Error when a
8731 non-default code or data region is used without -mlarge.
8732 (msp430_section_attr): Emit a warning and do not add upper/lower/either
8733 attributes when they are used without -mlarge.
8735 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8738 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
8740 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
8743 * wide-int.h (generic_wide_int::sext_elt): New function.
8744 * inchash.h (hash::add_wide_int): Use it instead of elt.
8746 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8748 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
8750 * config/arm/arm.md (<crc_variant>): Rename to...
8751 (arm_<crc_variant>): ... This.
8752 (<cdp>): Rename to...
8753 (arm_<cdp>): ... This.
8754 (<ldc>): Rename to...
8755 (arm_<ldc>): ... This.
8756 (<stc>): Rename to...
8757 (arm_<stc>): ... This.
8758 (<mcr>): Rename to...
8759 (arm_<mcr>): ... This.
8760 (<mrc>): Rename to...
8761 (arm_<mrc>): ... This.
8762 (<mcrr>): Rename to...
8763 (arm_<mcrr>): ... This.
8764 (<mrrc>): Rename to...
8765 (arm_<mrrc>): ... This.
8767 2019-07-29 Richard Biener <rguenther@suse.de>
8769 PR tree-optimization/91257
8770 * tree-ssa-sccvn.h (struct vn_avail): New.
8771 (struct vn_ssa_aux): Add avail member.
8772 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
8773 member, add m_avail_freelist one.
8774 (rpo_elim::~rpo_elim): Remove.
8775 (rpo_elim::eliminate_avail): Adjust to new avail tracking
8777 (rpo_elim::eliminate_push_avail): Likewise.
8778 (do_unwind): Likewise.
8779 (do_rpo_vn): Likewise.
8781 2019-07-29 Richard Biener <rguenther@suse.de>
8783 PR tree-optimization/91257
8784 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
8785 most cases, instead call compare_values which handles the
8786 symbolic ranges we handle specially.
8787 (compare_values_warnv): Do not call operand_less_p but open-code
8788 the effective fold calls. Avoid converting so much.
8790 2019-07-29 Martin Liska <mliska@suse.cz>
8792 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
8793 remove LHS of operator new call. It's handled latter.
8795 2019-07-29 Richard Biener <rguenther@suse.de>
8797 PR tree-optimization/91267
8798 * vr-values.c (vr_values::update_value_range): Add early return
8799 for effectively VARYING lattice entry.
8801 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
8804 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
8805 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
8806 necessary if keep_all_vdefs_p is true.
8807 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
8808 that keep_all_vdefs_p is false.
8809 (mark_all_reaching_defs_necessary): Likewise.
8810 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
8812 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
8814 * common.opt (Og): Change the initial value of flag_dse to 0.
8815 * opts.c (default_options_table): Move OPT_ftree_dse from
8816 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
8817 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
8818 entry before the OPT_ftree_sra entry.
8819 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
8820 of flags disabled by Og.
8822 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
8824 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
8827 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
8829 * doc/sourcebuild.texi (check-function-bodies): Document.
8831 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
8833 * simplify-rtx.c (simplify_const_unary_operation): Fold a
8834 VEC_DUPLICATE of a fixed-length vector even if the result
8835 is variable-length. Likewise fold a duplicate of a
8836 variable-length vector if the variable-length vector is
8837 itself a duplicate of a fixed-length sequence.
8838 (test_vector_ops_duplicate): Test more cases.
8840 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
8842 * vector-builder.h (vector_builder): Add a shape template parameter.
8843 (vector_builder::new_unary_operation): New function, generalizing
8844 the old tree_vector_builder function.
8845 (vector_builder::new_binary_operation): Likewise.
8846 (vector_builder::binary_encoded_nelts): Likewise.
8847 * int-vector-builder.h (int_vector_builder): Update template
8848 parameters to vector_builder.
8849 (int_vector_builder::shape_nelts): New function.
8850 * rtx-vector-builder.h (rtx_vector_builder): Update template
8851 parameters to vector_builder.
8852 (rtx_vector_builder::shape_nelts): New function.
8853 (rtx_vector_builder::nelts_of): Likewise.
8854 (rtx_vector_builder::npatterns_of): Likewise.
8855 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
8856 * tree-vector-builder.h (tree_vector_builder): Update template
8857 parameters to vector_builder.
8858 (tree_vector_builder::shape_nelts): New function.
8859 (tree_vector_builder::nelts_of): Likewise.
8860 (tree_vector_builder::npatterns_of): Likewise.
8861 (tree_vector_builder::nelts_per_pattern_of): Likewise.
8862 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
8863 (tree_vector_builder::new_binary_operation): Delete.
8864 (tree_vector_builder::binary_encoded_nelts): Likewise.
8865 * simplify-rtx.c: Include rtx-vector-builder.h.
8866 (distributes_over_addition_p): New function.
8867 (simplify_const_unary_operation)
8868 (simplify_const_binary_operation): Generalize handling of vector
8869 constants to include variable-length vectors.
8870 (test_vector_ops_series): Add more tests.
8872 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
8875 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
8876 than INDENTIFIER_POINTER.
8878 2019-07-28 Martin Liska <mliska@suse.cz>
8881 * cgraph.c (symbol_table::create_edge): Always allocate
8883 (symbol_table::free_edge): Store summary_id to
8884 edge_released_summary_ids if != -1;
8885 * cgraph.h (NEXT_FREE_NODE): Remove.
8886 (SET_NEXT_FREE_NODE): Likewise.
8887 (NEXT_FREE_EDGE): Likewise.
8888 (symbol_table::release_symbol): Store summary_id to
8889 cgraph_released_summary_ids if != -1;
8890 (symbol_table::allocate_cgraph_symbol): Always allocate
8893 2019-07-28 Alan Modra <amodra@gmail.com>
8895 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
8898 2019-07-28 Alan Modra <amodra@gmail.com>
8901 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
8903 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
8904 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
8905 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
8907 2019-07-28 Alan Modra <amodra@gmail.com>
8910 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
8911 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
8912 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
8913 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
8914 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
8915 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
8916 in asm_default spec.
8917 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
8918 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
8920 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
8922 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
8924 2019-07-26 Tamar Christina <tamar.christina@arm.com>
8927 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
8928 * config/aarch64/aarch64-option-extensions.def: Add new comments
8929 and restore easier to read options.
8931 2019-07-26 Tamar Christina <tamar.christina@arm.com>
8933 * convert.c (convert_to_real_1): Move part of conversion code...
8934 * match.pd: ...To here.
8936 2019-07-26 Martin Jambor <mjambor@suse.cz>
8939 * ipa-inline-transform.c (check_speculations_1): New function.
8940 (push_all_edges_in_set_to_vec): Likewise.
8941 (check_speculations): Use check_speculations_1, new parameter
8943 (inline_call): Pass new_edges to check_speculations.
8944 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
8946 (speculation_useful_p): Early return true if edge is inlined, remove
8947 later checks for inline_failed.
8949 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
8951 PR rtl-optimization/91223
8952 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
8953 matching with INOUT operand.
8955 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
8957 * stmt.c (expand_case): Try to narrow the index type if it's larger
8958 than a word. Tidy up.
8960 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
8962 * cif-code.def (NEVER_CALL): New code.
8963 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
8964 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
8966 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
8968 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
8969 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
8971 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
8973 * ipa-devirt.c (add_type_duplicate): Fix return value.
8975 2019-07-25 Richard Biener <rguenther@suse.de>
8977 * tree-vrp.c (extract_range_from_multiplicative_op): Add
8978 type parameter and use it instead of guessing expression
8979 type from the first operand.
8980 (extract_range_from_binary_expr): Pass expr_type down.
8982 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8984 * config/arm/arm.md (SATrev): Change to code attribute.
8985 (*satsi_<SAT:code>): Adjust for the above.
8986 (*satsi_<SAT:code>_shift): Likewise.
8988 2019-07-25 Richard Biener <rguenther@suse.de>
8990 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
8991 Make value_range * temporary const.
8992 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
8994 (evrp_range_analyzer::record_ranges_from_): Likewise.
8995 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
8996 deal with having recorded a const one.
8997 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
8998 Return a const value_range *.
8999 (evrp_range_analyzer::pop_value_range): Likewise.
9000 (evrp_range_analyzer::stack): Record const value_range *s.
9001 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9003 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9004 (format_integer): Likewise.
9005 (sprintf_dom_walker::handle_gimple_call): Likewise.
9006 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9007 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9008 (vrp_prop::get_value_range): Adjust.
9009 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9010 modifying the lattice in-place.
9011 (vrp_prop::visit_stmt): Likewise.
9012 * vr-values.c (vr_values::get_lattice_entry): New private method.
9013 (vr_values::get_value_range): Wrap it and return a const
9015 (vr_values::set_def_to_varying): New.
9016 (vr_values::set_defs_to_varying): Use it.
9017 (vr_values::update_value_range): Likewise.
9018 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9019 (values::op_with_constant_singleton_va): Likewise.
9020 (vr_values::extract_range_for_var_from_co): Likewise.
9021 (vr_values::extract_range_from_ssa_name): Likewise.
9022 (vr_values::extract_range_from_cond_expr): Likewise.
9023 (vr_values::extract_range_basic): Likewise.
9024 (compare_ranges): Take const value_range *, adjust.
9025 (compare_range_with_value): Likewise.
9026 (vrp_valueize): Adjust.
9027 (vrp_valueize_1): Likewise.
9028 (vr_values::get_vr_for_comparison): Return a const value_range *.
9029 (vr_values::compare_name_with_value): Adjust.
9030 (vr_values::compare_names): Likewise.
9031 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9033 (vr_values::vrp_evaluate_conditional): Likewise.
9034 (find_case_label_ranges): Take a const value_range *.
9035 (vr_values::vrp_visit_switch_stmt): Adjust.
9036 (vr_values::extract_range_from_phi_node): Likewise.
9037 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9038 (vr_values::simplify_abs_using_ranges): Likewise.
9039 (test_for_singularity): Take a const value_range *.
9040 (range_fits_type_p): Likewise.
9041 (vr_values::simplify_cond_using_ranges_1): Adjust.
9042 (vr_values::simplify_cond_using_ranges_2): Likewise.
9043 (vr_values::simplify_switch_using_ranges): Likewise.
9044 (vr_values::simplify_float_conversion_usi): Likewise.
9045 (vr_values::two_valued_val_range_p): Likewise.
9046 * vr-values.h (vr_values::get_value_range): Return a const
9048 (vr_values::set_def_to_varying): New.
9049 (vr_values::get_lattice_entry): New private method.
9050 (vr_values::get_vr_for_comparison): Return a const value_range *.
9052 2019-07-25 Martin Liska <mliska@suse.cz>
9053 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9056 * common.opt: Add -fallocation-dce
9057 * gimple.c (gimple_call_operator_delete_p): New.
9058 * gimple.h (gimple_call_operator_delete_p): Likewise.
9059 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9060 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9061 DECL_IS_OPERATOR_DELETE_P.
9062 (mark_all_reaching_defs_necessary_1): Likewise.
9063 (propagate_necessity): Likewise.
9064 (eliminate_unnecessary_stmts): Handle
9065 gimple_call_operator_delete_p.
9066 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9067 Add packing of OPERATOR_DELETE.
9068 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9070 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9071 (DECL_SET_IS_OPERATOR_DELETE): New.
9072 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9074 2019-07-25 Martin Liska <mliska@suse.cz>
9076 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9077 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9078 * coverage.c (coverage_begin_function): Likewise.
9079 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9080 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9081 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9082 (sem_item::hash_referenced_symbol_properties): Likewise.
9083 * lto-streamer-out.c (hash_tree): Likewise.
9084 * predict.c (expr_expected_value_1): Likewise.
9085 * tree-inline.c (expand_call_inline): Likewise.
9086 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9087 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9088 * tree-core.h (enum function_decl_type): New enum.
9089 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9090 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9091 (set_function_decl_type): Likewise.
9092 (DECL_IS_OPERATOR_NEW_P): New.
9093 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9094 (DECL_LAMBDA_FUNCTION): Likewise.
9095 (DECL_LAMBDA_FUNCTION_P): Likewise.
9096 (DECL_IS_OPERATOR_NEW): Remove.
9097 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9099 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9101 * ipa-profile.c (get_most_common_single_value): Use
9102 get_nth_most_common_value.
9103 * profile.c (sort_hist_value): New function.
9104 (compute_value_histograms): Call sort_hist_value to sort the
9105 values after loading from disk.
9106 * value-prof.c (get_most_common_single_value): Rename to ...
9107 get_nth_most_common_value. Add input params n, return
9108 the n_th value and count.
9109 (gimple_divmod_fixed_value_transform): Use
9110 get_nth_most_common_value.
9111 (gimple_ic_transform): Likewise.
9112 (gimple_stringops_transform): Likewise.
9113 * value-prof.h (get_most_common_single_value): Add input params
9116 2019-07-25 Richard Biener <rguenther@suse.de>
9118 PR tree-optimization/91236
9119 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9120 size of CONSTRUCTOR write. Fix buffer size we pass to
9123 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9125 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9126 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9129 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9131 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9132 explicitly disabled with --disable-initfini-array.
9134 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9136 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9139 2019-07-24 Martin Sebor <msebor@redhat.com>
9141 PR tree-optimization/91183
9142 PR tree-optimization/86688
9143 * builtins.c (compute_objsize): Handle MEM_REF.
9144 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9145 (get_min_string_length): Remove.
9146 (count_nonzero_bytes): New function.
9147 (handle_char_store): Rename...
9148 (handle_store): to this. Handle multibyte stores via integer types.
9149 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9152 2019-07-24 Martin Sebor <msebor@redhat.com>
9155 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9156 (diagnostic_report_diagnostic): Same.
9157 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9158 (diagnostic_context::lang_mask): New data member.
9159 * ipa-pure-const.c (suggest_attribute): Use
9160 lang_hooks.option_lang_mask ().
9161 * opts-common.c (option_enabled): Handle new argument.
9162 (get_option_state): Pass an additional argument.
9163 * opts.c (print_filtered_help): Print supported languages for
9164 unsupported options. Adjust printing of current state.
9165 * opts.h (option_enabled): Add argument.
9166 * toplev.c (print_switch_values): Use lang_mask.
9167 (general_init): Set global_dc->lang_mask.
9169 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9172 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9174 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9176 * cgraphunit.c (symbol_table::compile): Start and stop
9177 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9178 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9180 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9182 * gimplify.c (flag_instrument_functions_exclude_p): Include
9183 namespace/class information in the printable name.
9184 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9185 to tokens entered into the vector.
9187 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9189 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9190 (get_static_chain): Call it instead of build_simple_mem_ref.
9191 (get_frame_field): Likewise.
9192 (get_nonlocal_debug_decl): Likewise.
9193 (convert_nonlocal_reference_op): Likewise.
9195 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9197 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9199 (arc_compute_frame_size): Millicode is disabled when compiling
9201 (arc_return_address_register): Likewise.
9202 (arc_compute_function_type): Likewise.
9203 (arc_compute_frame_size): Likewise.
9204 (secondary_reload_info): Likewise.
9205 (arc_get_unalign): Likewise.
9206 (arc_can_use_return_insn): Declare.
9207 * config/arc/arc.c (AUX_LP_START): Define
9208 (AUX_LP_END): Likewise.
9209 (arc_frame_info): Update gmask member to 64-bit datum.
9210 (GMASK_LEN): Update.
9211 (arc_compute_function_type): Make it static, move it forward.
9212 (arc_must_save_register): Update, consider the extra regs.
9213 (arc_compute_millicode_save_restore_regs): Update to use the 64
9215 (arc_compute_frame_size): Likewise.
9216 (arc_enter_leave_p): Likewise.
9217 (arc_save_callee_saves): Likewise.
9218 (arc_restore_callee_saves): Likewise.
9219 (arc_save_callee_enter): Likewise.
9220 (arc_restore_callee_leave): Likewise.
9221 (arc_save_callee_milli): Likewise.
9222 (arc_restore_callee_milli): Likewise.
9223 (arc_expand_prologue): Add new interrupt handling.
9224 (arc_return_address_register): Make it static, move it forward.
9225 (arc_expand_epilogue): Add new interrupt handling.
9226 (arc_get_unalign): Delete.
9227 (arc_epilogue_uses): Make sure we do not remove the extra
9228 saved/restored registers when interrupt.
9229 (arc_can_use_return_insn): New function.
9230 (push_reg): Likewise.
9231 (pop_reg): Likewise.
9232 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9234 (arc_restore_callee_saves): Likewise, but restoring.
9235 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9236 (R33_REG): Likewise.
9237 (R34_REG): Likewise.
9238 (R35_REG): Likewise.
9239 (R36_REG): Likewise.
9240 (R37_REG): Likewise.
9241 (R38_REG): Likewise.
9242 (R39_REG): Likewise.
9243 (R45_REG): Likewise.
9244 (R46_REG): Likewise.
9245 (R47_REG): Likewise.
9246 (R48_REG): Likewise.
9247 (R49_REG): Likewise.
9248 (R50_REG): Likewise.
9249 (R51_REG): Likewise.
9250 (R52_REG): Likewise.
9251 (R53_REG): Likewise.
9252 (R54_REG): Likewise.
9253 (R55_REG): Likewise.
9254 (R56_REG): Likewise.
9255 (R58_REG): Likewise.
9256 (type): Add rtie attribute.
9257 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
9258 (movsi_insn): Accept moves to lp_count.
9259 (rtie): Update pattern.
9260 (simple_return): Simplify it, don't use this pattern as a return
9262 (arc600_rtie): New pattern.
9263 (p_return_i): Clean up.
9265 * config/arc/builtins.def (rtie): Only available for non ARC6xx
9267 * config/arc/predicates.md (move_src_operand): Consider lp_count
9270 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
9272 * config/s390/predicates.md (addv_const_operand): New predicate.
9273 * config/s390/s390-modes.def (CCO): New condition code mode.
9274 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
9275 (s390_branch_condition_mask): Likewise.
9276 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
9277 ("mulv<mode>4"): New expanders.
9278 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
9279 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
9280 pattern definitions.
9282 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9285 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
9286 (define_predicates): Add entry for uniform_vector_p.
9287 (vec_same_elem_p): New match pattern.
9289 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9292 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
9293 * config/i386/darwin32-biarch.h .. to here.
9294 * config/i386/darwin64-biarch.h: Adjust comments.
9295 * config/rs6000/darwin32-biarch.h: Likewise.
9296 * config/rs6000/darwin64-biarch.h: Likewise.
9297 * config.gcc: Missed commit from r273746
9298 (*-*-darwin*): Don't include CPU t-darwin here.
9299 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9300 an error message if i686-darwin configuration is attempted for
9303 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
9306 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
9307 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9308 an error message if i686-darwin configuration is attempted for
9310 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
9311 (powerpc-*-darwin*): Use biarch files where needed.
9312 (powerpc64-*-darwin*): Likewise.
9313 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
9314 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9316 * config/i386/darwin32-biarch.h: New.
9317 * config/i386/darwin64.h: Rename.
9318 * config/i386/darwin64-biarch.h: To this.
9319 * config/i386/t-darwin: Rename.
9320 * config/i386/t-darwin32-biarch: To this.
9321 * config/i386/t-darwin64: Rename.
9322 * config/i386/t-darwin64-biarch: To this.
9323 * config/rs6000/darwin32-biarch.h: New.
9324 * config/rs6000/darwin64.h: Rename.
9325 * config/rs6000/darwin64-biarch.h: To this.
9326 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9328 * config/rs6000/t-darwin8: Rename.
9329 * config/rs6000/t-darwin32-biarch: To this.
9330 * config/rs6000/t-darwin64 Rename.
9331 * config/rs6000/t-darwin64-biarch: To this.
9333 2019-07-23 Martin Sebor <msebor@redhat.com>
9335 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
9337 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9339 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
9340 (rh): New alias for it.
9342 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9344 * gdbhooks.py: Pass replace=True to
9345 gdb.printing.register_pretty_printer.
9347 2019-07-23 Richard Biener <rguenther@suse.de>
9350 * lto-streamer-in.c (input_function): Drop inline-entry markers
9351 that ended up with an unknown location block.
9353 2019-07-23 Richard Biener <rguenther@suse.de>
9355 PR tree-optimization/83518
9356 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
9357 init from a constant even when partial defs are already recorded.
9359 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9361 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
9362 * config/i386/znver1.md: Enable patterns for znver2 and add store
9363 variants which use extra AGU unit.
9365 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9367 * config/i386/i386-options.c (ix86_option_override_internal): Default
9368 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
9369 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
9372 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9374 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
9375 (znver2_costs): Update 256 bit SSE costs and multiplication.
9377 2019-07-23 Jan Beulich <jbeulich@suse.com>
9379 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
9380 Require only AVX512F.
9381 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
9382 alternative expanding to vpternlog.
9384 2019-07-23 Martin Liska <mliska@suse.cz>
9386 * dwarf2out.c (gen_producer_string): Canonize -flto=N
9387 to -flto in dwarf producer string.
9389 2019-07-23 Richard Biener <rguenther@suse.de>
9391 * tree-cfg.c (label_for_bb): Remove global var.
9392 (main_block_label): Take label_for_bb as argument.
9393 (cleanup_dead_labels_eh): Likewise, adjust.
9394 (cleanup_dead_labels): Adjust.
9396 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9398 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
9399 Configurations): Add documentation for __builtin_mtfsf.
9401 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
9403 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
9404 * config/riscv/riscv.c (riscv_constant_alignment): Use
9405 riscv_align_data_type.
9406 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
9407 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9408 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9409 * config/riscv/riscv.opt (malign-data): New.
9410 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
9412 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
9414 * cgraph.c (dump_graphviz): New function.
9415 * cgraph.h (dump_graphviz): New function.
9416 * symtab.c (dump_graphviz): New function.
9418 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
9420 * config/aarch64/aarch64-simd.md
9421 (*aarch64_simd_sra<mode>): New.
9422 * config/aarch64/iterators.md
9423 (SHIFTRT): New iterator.
9424 (sra_op): New attribute.
9426 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9428 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
9429 callee-saved regs R4->R10 in an interrupt function that calls another
9432 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9434 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
9435 (_mm_blendv_epi8): New.
9437 2019-07-22 Richard Biener <rguenther@suse.de>
9439 PR tree-optimization/91221
9440 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
9441 restrict partial-def handling of empty constructors and
9442 memset to refs with known offset.
9444 2019-07-22 Jan Beulich <jbeulich@suse.com>
9446 * config/i386/sse.md (ternlogsuffix): New.
9447 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
9449 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
9451 2019-07-22 Martin Liska <mliska@suse.cz>
9453 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
9455 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
9457 2019-07-22 Martin Liska <mliska@suse.cz>
9459 * lto-section-in.c (lto_get_section_data):
9460 Use new function get_compression.
9461 * lto-streamer-out.c (produce_lto_section): Use
9462 set_compression to encode compression algorithm.
9463 * lto-streamer.h (struct lto_section): Do not
9464 use bitfields in the format.
9466 2019-07-22 Martin Liska <mliska@suse.cz>
9469 * opts-common.c (decode_cmdline_option): Decode
9470 argument of -Werror and check it for a wrong language.
9471 * opts-global.c (complain_wrong_lang): Remove such case.
9473 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
9475 * config/arc/arc.c (prepare_move_operands): Always use an
9476 intermediate register when storing a TLS symbols.
9478 2019-07-22 Stafford Horne <shorne@gmail.com>
9480 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
9483 2019-07-22 Stafford Horne <shorne@gmail.com>
9485 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
9486 and munordered-float validations.
9487 * config/or1k/constraints.md (d): New register constraint.
9488 * config/or1k/predicates.md (fp_comparison_operator): New.
9489 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
9491 (or1k_expand_compare): Normalize unordered comparisons.
9492 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
9493 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
9494 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
9495 * config/or1k/or1k.md (type): Add fpu.
9496 (fpu): New instruction reservation.
9497 (F, f, fr, fi, FI, FOP, fop): New.
9498 (<fop><F:mode>3): New ALU instruction definition.
9499 (float<fi><F:mode>2): New conversion instruction definition.
9500 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
9501 (fpcmpcc): New code iterator.
9502 (*sf_fp_insn): New instruction definition.
9503 (cstore<F:mode>4): New expand definition.
9504 (cbranch<F:mode>4): New expand definition.
9505 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
9506 munordered-float): New options.
9507 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
9510 2019-07-22 Stafford Horne <shorne@gmail.com>
9512 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
9513 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
9514 documenation to be more clear.
9515 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
9517 * config/or1k/or1k.opt (mrori): New option.
9518 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
9519 msfimm, mshftimm): Rewrite documentation to be more clear.
9520 * config/or1k/or1k.md (insn_support): Add ror and rori.
9521 (enabled): Add conditions for ror and rori.
9522 (rotrsi3): Replace condition for shftimm with ror and rori.
9524 2019-07-22 Stafford Horne <shorne@gmail.com>
9527 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
9528 (extend<mode>si2): Update predicate.
9529 * config/or1k/predicates.md (volatile_mem_operand): New.
9530 (reg_or_mem_operand): New.
9532 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
9534 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
9535 * config/rs6000/rs6000-call.c: ... to here.
9537 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9539 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
9542 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9544 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
9546 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9548 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
9550 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9552 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
9553 (any_memory_operand): New predicate.
9554 (reg_or_mem_operand): Use it.
9556 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9559 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
9561 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
9563 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
9564 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
9566 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9568 * tree.def (OMP_LOOP): New tree code.
9569 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
9570 (enum omp_clause_bind_kind): New enum.
9571 (struct tree_omp_clause): Add subcode.bind_kind.
9572 * tree.h (OMP_LOOP_CHECK): Rename to ...
9573 (OMP_LOOPING_CHECK): ... this.
9574 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
9575 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
9576 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
9577 (OMP_CLAUSE_BIND_KIND): Define.
9578 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9579 bind clause entries.
9580 (walk_tree_1): Handle OMP_CLAUSE_BIND.
9581 * tree-pretty-print.c (dump_omp_clause): Likewise.
9582 (dump_generic_node): Handle OMP_LOOP.
9583 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
9584 (in_omp_construct): New variable.
9585 (is_gimple_stmt): Handle OMP_LOOP.
9586 (gimplify_scan_omp_clauses): For lastprivate don't set
9587 check_non_private if code == OMP_LOOP. For reduction clause
9588 on OMP_LOOP combined with parallel or teams propagate as shared
9589 on the combined construct. Handle OMP_CLAUSE_BIND.
9590 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
9591 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
9592 for constructs from a loop construct to gimplify_scan_omp_clauses.
9593 Don't predetermine iterator linear on OMP_SIMD from loop construct.
9594 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
9595 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
9596 to match the implicit ORT_TARGET construct around whole body.
9597 Temporarily clear in_omp_construct when processing body.
9598 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
9599 etc. temporarily set in_omp_construct when processing body.
9600 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
9601 * omp-low.c (struct omp_context): Add loop_p.
9602 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
9603 in that the original var might be private.
9604 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
9605 (check_omp_nesting_restrictions): Adjust nesting restrictions for
9606 addition of loop construct.
9607 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
9609 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
9610 lastprivate non-addressable iterator of a collapse(1) simd.
9612 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
9614 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
9617 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
9619 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
9620 refer to default conditions. Warn for the 'y' spec which is ignored
9623 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
9625 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
9626 cpu_supports_info, builtin_hash_struct, builtin_hasher,
9627 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
9628 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
9629 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
9630 init_cumulative_args, rs6000_promote_function_mode,
9631 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
9632 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
9633 rs6000_function_arg_boundary, rs6000_parm_offset,
9634 rs6000_parm_start, rs6000_arg_size,
9635 rs6000_darwin64_record_arg_advance_flush,
9636 rs6000_darwin64_record_arg_advance_recurse,
9637 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
9638 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
9639 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
9640 rs6000_mixed_function_arg, rs6000_psave_function_arg,
9641 rs6000_finish_function_arg, rs6000_function_arg,
9642 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
9643 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
9644 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
9645 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
9646 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
9647 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
9648 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
9649 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
9650 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
9651 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
9652 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
9653 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
9654 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
9655 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
9656 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
9657 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
9658 get_element_number, altivec_expand_vec_set_builtin,
9659 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
9660 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
9661 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
9662 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
9663 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
9664 rs6000_expand_builtin, rs6000_vector_type,
9665 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
9666 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
9667 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
9669 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
9670 cpu_supports_info, builtin_hash_struct, builtin_hasher,
9671 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
9672 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
9673 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
9674 init_cumulative_args, rs6000_promote_function_mode,
9675 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
9676 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
9677 rs6000_function_arg_boundary, rs6000_parm_offset,
9678 rs6000_parm_start, rs6000_arg_size,
9679 rs6000_darwin64_record_arg_advance_flush,
9680 rs6000_darwin64_record_arg_advance_recurse,
9681 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
9682 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
9683 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
9684 rs6000_mixed_function_arg, rs6000_psave_function_arg,
9685 rs6000_finish_function_arg, rs6000_function_arg,
9686 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
9687 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
9688 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
9689 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
9690 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
9691 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
9692 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
9693 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
9694 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
9695 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
9696 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
9697 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
9698 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
9699 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
9700 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
9701 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
9702 get_element_number, altivec_expand_vec_set_builtin,
9703 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
9704 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
9705 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
9706 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
9707 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
9708 rs6000_expand_builtin, rs6000_vector_type,
9709 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
9710 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
9711 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
9712 to here from rs6000.c.
9713 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
9714 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
9715 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
9716 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
9717 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
9718 rs6000_return_in_memory, rs6000_return_in_msb,
9719 rs6000_pass_by_reference, setup_incoming_varargs,
9720 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
9721 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
9722 rs6000_function_arg_padding, rs6000_function_arg,
9723 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
9724 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
9725 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
9726 rs6000_passes_long_double, rs6000_passes_vector,
9727 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
9728 altivec_builtin_mask_for_load) Add declarations.
9729 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
9730 * config/config.gcc: Add new source file rs6000-call.c to garbage
9731 collector and extra_objs.
9733 2019-07-19 Jeff Law <law@redhat.com>
9735 PR tree-optimization/86061
9736 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
9737 strncpy. Drop some trivial dead code.
9738 (maybe_trim_memstar_call): Handle strncpy.
9740 2019-07-19 Richard Biener <rguenther@suse.de>
9742 PR tree-optimization/91211
9743 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9744 memset encoding size.
9746 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
9749 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
9751 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
9754 * ipa-inline.c (recursive_inlining): Fix limits check.
9756 2019-07-19 Richard Biener <rguenther@suse.de>
9758 PR tree-optimization/91200
9759 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
9760 no PHI nodes in middle-bb.
9762 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
9764 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
9766 * config/aarch64/aarch64-option-extensions.def: Likewise.
9768 2019-07-19 Jakub Jelinek <jakub@redhat.com>
9771 * function.c (insert_temp_slot_address): Store into the hash table
9772 a copy of address to avoid RTL sharing issues.
9774 2019-07-19 Richard Biener <rguenther@suse.de>
9776 PR tree-optimization/91207
9778 2019-07-17 Richard Biener <rguenther@suse.de>
9780 PR tree-optimization/91178
9781 * tree-vect-stmts.c (get_group_load_store_type): For SLP
9782 loads with a gap larger than the vector size always use
9784 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
9785 avoid loading vectors that are only contained in the gap
9786 and thus are not needed.
9788 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
9790 * config/i386/i386.md (*addqi_2_slp): Remove.
9791 (*<code>qi_2_slp): Ditto.
9793 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
9795 * config/rs6000/predicates.md (prefixed_mem_operand): Call
9796 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
9797 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
9798 Rename function from rs6000_prefixed_address.
9799 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
9801 (TARGET_TOC): Likewise.
9802 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
9804 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
9806 (TARGET_TOC): Likewise.
9807 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
9809 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
9811 (TARGET_TOC): Likewise.
9812 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
9813 check to require -mcmodel=medium for pc-relative addressing.
9814 (create_TOC_reference): Add assertion for TARGET_TOC.
9815 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
9817 (rs6000_emit_move): Likewise.
9818 (TOC_alias_set): Rename TOC alias set static variable from 'set'
9820 (get_TOC_alias_set): Likewise.
9821 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
9823 (rs6000_can_eliminate): Likewise.
9824 (rs6000_prefixed_address_mode_p): Rename function from
9825 rs6000_prefixed_address.
9826 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
9827 TARGET_HAS_TOC and not pc-relative.
9828 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
9829 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
9831 (TARGET_TOC): Likewise.
9832 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
9835 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
9838 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
9839 for operand 0. Do not use (match_dup) to match operand 1 with
9840 operand 0. Add check in insn constraint that either input operand
9841 matches operand 0. Use SWI12 mode iterator to also handle
9843 (*and<mode>_1_slp): Ditto.
9844 (*<code>qi_1_slp): Ditto.
9845 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
9846 Do not use (match_dup) to match operand 1 with operand 0. Add
9847 check in insn constraint that operand 1 matches operand 0.
9848 Use SWI12 mode iterator to also handle HImode operands.
9849 (*ashl<mode>3_1_slp): Ditto.
9850 (*<shift_insn><mode>3_1_slp): Ditto.
9851 (*<rotate_insn><mode>3_1_slp): Ditto.
9853 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
9855 * config/arm/arm-builtins.c
9856 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
9857 (arm_expand_unop_builtin): Likewise.
9858 * config/arm/crypto.md
9859 (crypto_sha1h): Convert from define_insn to define_expand.
9860 (crypto_<crypto_pattern>): Likewise.
9861 (crypto_sha1h_lb): New define_insn.
9862 (crypto_<crypto_pattern>_lb): Likewise.
9864 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
9867 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
9868 (vsha1cq_u32): Likewise.
9869 (vsha1pq_u32): Likewise.
9870 (vsha1mq_u32): Likewise.
9871 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
9873 (crypto_sha1c): Correct vec select.
9874 (crypto_sha1m): Likewise.
9875 (crypto_sha1p): Likewise.
9877 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
9879 * config/arm/predicates.md (arm_borrow_operation): New predicate.
9880 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
9881 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
9882 (subdi_zesidi_zesidi): Likewise.
9883 (negdi2_compare, negdi2_insn): Likewise.
9884 (negdi_extensidi): Likewise.
9885 (negdi_zero_extendsidi): Likewise.
9886 (arm_cmpdi_insn): Likewise.
9887 (subsi3_carryin): Use arm_borrow_operation.
9888 (subsi3_carryin_const): Likewise.
9889 (subsi3_carryin_const0): Likewise.
9890 (subsi3_carryin_compare): Likewise.
9891 (subsi3_carryin_compare_const): Likewise.
9892 (subsi3_carryin_compare_const0): Likewise.
9893 (subsi3_carryin_shift): Likewise.
9894 (rsbsi3_carryin_shift): Likewise.
9895 (negsi2_carryin_compare): Likewise.
9897 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
9899 PR tree-optimization/91137
9900 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
9901 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
9902 Init, use and fini the above new field.
9903 (determine_base_object_1): New function.
9904 (determine_base_object): Reimplement using walk_tree.
9906 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
9908 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
9909 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
9910 CLEANUP_FORCE_FAST_DCE is set.
9911 * ifcvt.c (rest_of_handle_if_conversion): Pass
9912 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
9913 if-conversion succeeded.
9915 2019-07-18 Richard Biener <rguenther@suse.de>
9917 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
9918 branches to make code less indented.
9920 2019-07-17 Alexandre Oliva <oliva@adacore.com>
9923 * attribs.c (decls_mismatched_attributes): Simplify the logic
9924 that avoids duplicates and false positives.
9926 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
9928 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
9929 data into data section when generating PIC code.
9930 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
9931 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
9932 generating code for SOM targets earlier than HP-UX 11. Otherwise,
9933 return 2 for SOM and 0 for other targets.
9935 2019-07-17 Jeff Law <law@redhat.com>
9937 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
9938 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
9939 avoid unexpected switch statement fallthru.
9941 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
9943 * config/i386/i386.md (*add<dwi>3_doubleword):
9944 Remove redundant constraints.
9945 (*add<mode>_1): Ditto.
9948 (*addqi_1_slp): Ditto.
9949 (*add<mode>_2): Ditto.
9950 (*addv<mode>4): Ditto.
9951 (*sub<dwi>3_doubleword): Ditto.
9952 (*sub<mode>_1): Ditto.
9953 (*subqi_1_slp): Ditto.
9954 (*sub<mode>_2): Ditto.
9955 (*subv<mode>4): Ditto.
9956 (*sub<mode>_3): Ditto.
9957 (@add<mode>3_carry): Ditto.
9958 (@sub<mode>3_carry): Ditto.
9959 (*add<mode>3_cc_overflow_1): Ditto.
9960 (*add<mode>3_zext_cc_overflow_2): Ditto.
9962 (*and<mode>_1): Ditto.
9964 (*andqi_1_slp): Ditto.
9966 (*andqi_2_maybe_si): Ditto.
9967 (*and<mode>_2): Ditto.
9968 (*andqi_2_slp): Ditto.
9969 (*<code><mode>_1): Ditto.
9970 (*<code>qi_1): Ditto.
9971 (*<code>qi_1_slp): Ditto.
9972 (*<code><mode>_2): Ditto.
9973 (*<code>qi_2_slp): Ditto.
9975 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
9977 * alias.c (record_component_aliases): Do not simplify pointed-to
9980 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
9982 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
9983 partial reg stall on alternative 2.
9985 2019-07-17 Richard Biener <rguenther@suse.de>
9987 PR tree-optimization/91178
9988 * tree-ssa.c (release_defs_bitset): Iterate from higher to
9989 lower SSA names to avoid quadratic behavior in the common case.
9990 * tree-data-ref.c (split_constant_offset): Add limit argument
9991 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
9992 (split_constant_offset_1): Add limit argument and use it to
9993 limit SSA def walking. Optimize the common plus/minus case.
9995 2019-07-17 Richard Biener <rguenther@suse.de>
9997 PR tree-optimization/91178
9998 * tree-vect-stmts.c (get_group_load_store_type): For SLP
9999 loads with a gap larger than the vector size always use
10001 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10002 avoid loading vectors that are only contained in the gap
10003 and thus are not needed.
10005 2019-07-17 Richard Biener <rguenther@suse.de>
10007 PR tree-optimization/91180
10008 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10009 computation for memset partial defs.
10011 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10013 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10014 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10015 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10016 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10017 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10018 * omp-grid.c (grid_process_grid_body,
10019 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10020 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10021 == GF_OMP_FOR_KIND_SIMD.
10022 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10023 check_omp_nesting_restrictions, scan_omp_1_stmt,
10024 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10025 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10026 omp_find_scan): Likewise.
10027 * omp-expand.c (expand_omp_for): Likewise.
10028 * omp-general.c (omp_extract_for_data): Likewise.
10030 PR tree-optimization/91157
10031 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10032 a vector boolean with scalar mode.
10033 (expand_vector_condition): Handle first operand being a vector boolean
10035 (expand_vector_operations_1): For comparisons, don't bail out early
10036 if the return type is vector boolean with scalar mode, but comparison
10037 operand type is not.
10039 2019-07-17 Richard Biener <rguenther@suse.de>
10041 PR tree-optimization/91181
10042 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10043 IFN_LOADs as calls.
10045 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10047 * config/i386/i386.md (*testdi_1): Match CCZmode for
10048 constants that might have the SImode sign bit set.
10049 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10050 Use correct constraints for pentium pairing.
10051 (*test<mode>_1): Ditto.
10053 2019-07-16 Jeff Law <law@redhat.com>
10055 PR rtl-optimization/91173
10056 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10057 SSA_NAME with a constant value, fold its value into the offset
10058 and clear the base before calling gen_addr_rtx.
10060 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10062 PR rtl-optimization/91164
10063 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10064 invalidate dominance info.
10066 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10068 * read-md.h (md_reader::record_potential_iterator_use): Add a
10069 file_location parameter.
10070 * read-rtl.c (attribute_use::loc): New field.
10071 (map_attr_string): Take a file_location parameter. Report cases
10072 in which attributes map to multiple distinct values.
10073 (apply_attribute_uses): Update call accordingly.
10074 (md_reader::handle_overloaded_name): Likewise.
10075 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10077 (record_attribute_use): Take a file_location parameter.
10078 Initialize attribute_use::loc.
10079 (md_reader::record_potential_iterator_use): Take a file_location
10080 parameter. Update call to record_attribute_use.
10081 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10082 (rtx_reader::read_rtx_code): Likewise.
10083 (rtx_reader::read_rtx_operand): Likewise. Record a location
10084 for implicitly-expanded empty strings.
10086 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10088 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10089 Use file_location instead of separate fields.
10090 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10091 separate filename and line number.
10092 * read-md.c (ptr_loc): As above.
10093 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10094 (md_reader::fprint_md_ptr_loc): Likewise.
10095 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10096 instead of a separate filename and line number.
10097 (md_reader::read_string): Update call accordingly.
10099 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10101 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10102 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10103 leaving the choice between SFDF and P implicit.
10104 (*mov<mode>_update2): Likewise.
10105 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10106 rather than leaving the choice betweem IBM128 and GPR implicit.
10107 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10108 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10110 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10111 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10112 * config/rs6000/vsx.md
10113 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10114 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10115 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10116 and VSX_EXTRACT_I implicit.
10118 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10120 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10121 Explicitly use <MOVEP1:MODE> for the mode attribute.
10123 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10126 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10128 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10131 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10132 .machine directive.
10134 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10136 * config/i386/i386.md (@test<mode>_ccno_1):
10137 Rename from test<mode>_ccno_1.
10138 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10139 (*testqi_1_maybe_si): Remove modrm attribute.
10140 (*test<mode>_1): Ditto.
10141 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10142 gen_test_ccno_1 and gen_extend_insn.
10144 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10146 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10149 2019-07-15 Richard Biener <rguenther@suse.de>
10151 PR middle-end/91162
10152 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10153 node make sure to replace all uses with something valid.
10155 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10157 PR tree-optimization/88497
10158 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10159 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10160 function undistribute_bitref_for_vector.
10161 (undistribute_bitref_for_vector): New function.
10162 (cleanup_vinfo_map): Likewise.
10163 (sort_by_mach_mode): Likewise.
10165 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10167 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10168 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10169 and testdi_ccno_1 using SWI48 mode attribute.
10170 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10171 x86_64_szext_general_operand.
10172 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10173 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10174 instead of genera_operand mode attribute.
10176 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10178 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10179 fopen and fclose to their respective types.
10180 (DotFn.invoke): Ditto.
10182 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10184 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10185 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10186 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10187 (array_index_predicate): Remove.
10188 (analyze_function_body): Account cost for variable ofsetted array
10190 (estimate_node_size_and_time): Do not compute array index hint.
10191 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10192 (inline_read_section): Do not read array index hint.
10193 (ipa_fn_summary_write): Do not write array index hint.
10194 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10195 * ipa-cp.c (hint_time_bonus): Remove.
10196 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10197 (ipa_fnsummary): Remove array_index.
10198 * ipa-inline.c (want_inline_small_function_p): Do not use
10200 (edge_badness): Likewise.
10201 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10203 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10206 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10207 superfluous "builtin function" phrasing.
10209 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10211 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10213 (aliasing_component_refs_walk): Break out from ...
10214 (aliasing_component_refs_p): ... here.
10216 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10219 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10220 "builtin function" phrasing.
10222 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10225 * recog.h (temporary_volatile_ok): New class.
10226 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10227 volatile_ok temporarily to true using temporary_volatile_ok.
10228 * expr.c (emit_block_move_via_cpymem): Likewise.
10229 * optabs.c (maybe_legitimize_operand): Likewise.
10231 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10233 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10234 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10235 uses inside of order(concurrent) constructs.
10236 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10237 OMP_CLAUSE_ORDER is seen.
10238 * omp-low.c (struct omp_context): Add order_concurrent member.
10239 (scan_sharing_clauses): Set ctx->order_concurrent if
10240 OMP_CLAUSE_ORDER is seen.
10241 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10242 of simd order(concurrent). Diagnose constructs not allowed inside of
10243 for order(concurrent).
10244 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10245 complaining about static double setjmp (double); or class static
10246 methods or non-global namespace setjmps.
10247 (omp_runtime_api_call): New function.
10248 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10249 order(concurrent) loops.
10251 2019-07-12 Martin Sebor <msebor@redhat.com>
10253 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
10254 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
10255 * tree-vrp.c (vrp_prop::check_mem_ref): Use
10256 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10258 2019-07-12 Jan Hubicka <jh@suse.cz>
10260 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
10261 (indirect_refs_may_alias_p): ... here.
10262 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
10263 mem refs in the access paths.
10265 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
10267 PR tree-optimization/89430
10268 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
10269 store elimination for local variable without address escape.
10271 2019-07-12 Jeff Law <law@redhat.com>
10273 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
10274 for the ".far" section.
10276 2019-07-12 Richard Biener <rguenther@suse.de>
10278 PR tree-optimization/91145
10279 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
10282 2019-07-12 Alexandre Oliva <oliva@adacore.com>
10284 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
10285 rather than this_state as the lowering context for the ELSE
10286 seq in a GIMPLE_EH_ELSE.
10288 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10290 * vector-builder.h (vector_builder::elt): Allow already-supplied
10291 elements to be read back before building is complete.
10293 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10295 PR rtl-optimization/91136
10296 * df-core.c (ACCESSING REFS): Fix typos in comment.
10297 * resource.c (mark_target_live_reg): Add artificial defs that occur at
10298 the beginning of the block to the initial set of live registers.
10300 2019-07-12 Richard Biener <rguenther@suse.de>
10302 * fold-const.h (get_array_ctor_element_at_index): Adjust.
10303 * fold-const.c (get_array_ctor_element_at_index): Add
10304 ctor_idx output parameter informing the caller where in
10305 the constructor the element was (not) found. Add early exit
10306 for when the ctor is sorted.
10307 * gimple-fold.c (fold_array_ctor_reference): Support constant
10308 folding across multiple array elements.
10310 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10312 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
10313 doesn't have location, set the current location to the function's end.
10315 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10317 * config/aarch64/aarch64.md (*compare_condjump<mode>)
10318 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
10319 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
10320 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
10321 * config/aarch64/aarch64-simd.md
10322 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10323 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
10324 * config/aarch64/aarch64-sve.md
10325 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
10326 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
10328 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10330 * doc/md.texi: Document that @ patterns can have different
10331 numbers of operands.
10332 * genemit.c (handle_overloaded_gen): Handle this case.
10333 * genopinit.c (handle_overloaded_gen): Likewise.
10334 * gensupport.c (replace_operands_with_dups): Iterate over
10335 the new rtx's format rather than the old one's.
10337 2019-07-12 Jakub Jelinek <jakub@redhat.com>
10339 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
10340 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10341 order clause entries.
10342 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
10343 * tree-pretty-print.c (dump_omp_clause): Likewise.
10344 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
10346 * omp-low.c (scan_sharing_clauses): Likewise.
10347 * tree-nested.c (convert_nonlocal_omp_clauses,
10348 convert_local_omp_clauses): Likewise.
10350 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
10352 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
10353 fallthrough target of current basic block isn't the placed
10356 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
10359 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
10360 (_mm512_storeu_epi64): Likewise.
10361 (_mm512_loadu_epi32): Likewise.
10362 (_mm512_storeu_epi32): Likewise.
10363 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
10364 (_mm_storeu_epi64): Likewise.
10365 (_mm256_storeu_epi32): Likewise.
10366 (_mm_storeu_epi32): Likewise.
10368 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10370 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
10372 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10374 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
10377 2019-07-11 Jakub Jelinek <jakub@redhat.com>
10380 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
10381 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10382 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
10383 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
10384 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
10385 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
10387 (ufix_truncv2dfv2si2<mask_name>): Change into ...
10388 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
10389 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
10391 (sse2_cvttpd2dq<mask_name>): Change into ...
10392 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
10393 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
10394 (*sse2_cvtpd2dq<mask_name>): Change into ...
10395 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10396 Add "C" constraint to const0_operand.
10397 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
10398 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
10402 * config/i386/i386-builtin-types.def
10403 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
10404 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
10405 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
10406 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
10407 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
10408 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
10409 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
10410 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
10411 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
10412 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
10413 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
10414 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
10415 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
10416 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
10417 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
10418 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
10419 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
10420 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
10421 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
10422 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
10423 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
10424 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
10425 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
10426 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
10427 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
10428 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
10429 __builtin_ia32_vpdpbusd_v4si_maskz,
10430 __builtin_ia32_vpdpbusds_v16si_mask,
10431 __builtin_ia32_vpdpbusds_v16si_maskz,
10432 __builtin_ia32_vpdpbusds_v8si_mask,
10433 __builtin_ia32_vpdpbusds_v8si_maskz,
10434 __builtin_ia32_vpdpbusds_v4si_mask,
10435 __builtin_ia32_vpdpbusds_v4si_maskz,
10436 __builtin_ia32_vpdpwssd_v16si_mask,
10437 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
10438 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
10439 __builtin_ia32_vpdpwssd_v4si_maskz,
10440 __builtin_ia32_vpdpwssds_v16si_mask,
10441 __builtin_ia32_vpdpwssds_v16si_maskz,
10442 __builtin_ia32_vpdpwssds_v8si_mask,
10443 __builtin_ia32_vpdpwssds_v8si_maskz,
10444 __builtin_ia32_vpdpwssds_v4si_mask,
10445 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
10446 suffixed types rather than *_INT.
10447 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
10448 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
10449 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
10450 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
10451 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
10452 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
10454 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
10456 * tree-vrp.c (intersect_ranges): If we know the intersection is
10457 empty, there is no need to conservatively add anything else to
10460 2019-07-11 Richard Biener <rguenther@suse.de>
10462 PR middle-end/91131
10463 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
10464 when the object is volatile and we have not cleared it even though
10465 there are no nonzero elements.
10467 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
10469 * config/rs6000/predicates.md (cint34_operand): Update
10470 SIGNED_34BIT_OFFSET_P call.
10471 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
10472 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
10473 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
10474 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
10475 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
10477 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
10478 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
10479 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
10480 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
10481 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
10483 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
10485 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
10486 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
10487 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
10488 (DEF_MIN_OSX_VERSION): New.
10490 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
10492 * fold-const.c (fold_relational_const): Fix folding of
10493 vector-to-scalar NE_EXPRs.
10494 (test_vector_folding): Add more tests.
10496 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
10499 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
10500 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
10501 (vec_setv2di_internal): Reexpress as...
10502 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
10503 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
10504 rather than gen_neon_vset_lane<mode>.
10506 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
10509 * lra-constraints.c (process_alt_operands): Don't match user
10510 defined regs only if they are early clobbers.
10512 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
10514 * wide-int.h (wi::lshift): Reject negative values for the fast path.
10516 2019-07-10 Richard Biener <rguenther@suse.de>
10518 PR tree-optimization/91126
10519 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
10520 native encoding offset for BYTES_BIG_ENDIAN.
10521 (vn_reference_lookup_3): Likewise.
10523 2019-07-10 Richard Biener <rguenther@suse.de>
10525 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
10526 LHS whenever possible.
10528 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
10530 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
10531 from ...; work also on duplicated types.
10532 (nonoverlapping_component_refs_since_match): ... here
10533 (ncr_type_uid): Break out from ...
10534 (ncr_compar): ... here; look for TYPE_UID of canonical type if
10536 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
10537 the types and nonoverlapping_component_refs_p_1 to disambiguate.
10539 2019-07-09 Martin Sebor <msebor@redhat.com>
10541 PR tree-optimization/90989
10542 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
10543 optimization to just single character stores.
10545 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
10547 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
10548 Swap operands only once.
10550 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10552 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
10553 for both call instructions.
10555 2019-07-09 John Darrington <john@darrington.wattle.id.au>
10557 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
10558 rather than GET_MODE_BITSIZE to better handle partial integer modes.
10560 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
10562 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
10563 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
10564 function from rs6000-logue.c back to rs6000.c.
10565 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
10567 2019-07-09 Martin Sebor <msebor@redhat.com>
10570 * auto-profile.c: Change class-key of PODs to struct and others
10572 * basic-block.h: Same.
10573 * bitmap.c (bitmap_alloc): Same.
10575 * builtins.c (expand_builtin_prefetch): Same.
10576 (expand_builtin_interclass_mathfn): Same.
10577 (expand_builtin_strlen): Same.
10578 (expand_builtin_mempcpy_args): Same.
10579 (expand_cmpstr): Same.
10580 (expand_builtin___clear_cache): Same.
10581 (expand_ifn_atomic_bit_test_and): Same.
10582 (expand_builtin_thread_pointer): Same.
10583 (expand_builtin_set_thread_pointer): Same.
10584 * caller-save.c (setup_save_areas): Same.
10585 (replace_reg_with_saved_mem): Same.
10586 (insert_restore): Same.
10587 (insert_save): Same.
10588 (add_used_regs): Same.
10589 * cfg.c (get_bb_copy): Same.
10590 (set_loop_copy): Same.
10593 * cfgexpand.c (alloc_stack_frame_space): Same.
10594 (add_stack_var): Same.
10595 (add_stack_var_conflict): Same.
10596 (add_scope_conflicts_1): Same.
10597 (update_alias_info_with_stack_vars): Same.
10598 (expand_used_vars): Same.
10599 * cfghooks.c (redirect_edge_and_branch_force): Same.
10600 (delete_basic_block): Same.
10601 (split_edge): Same.
10602 (make_forwarder_block): Same.
10603 (force_nonfallthru): Same.
10604 (duplicate_block): Same.
10605 (lv_flush_pending_stmts): Same.
10606 * cfghooks.h: Same.
10607 * cfgloop.c (flow_loops_cfg_dump): Same.
10608 (flow_loop_nested_p): Same.
10609 (superloop_at_depth): Same.
10610 (get_loop_latch_edges): Same.
10611 (flow_loop_dump): Same.
10612 (flow_loops_dump): Same.
10613 (flow_loops_free): Same.
10614 (flow_loop_nodes_find): Same.
10615 (establish_preds): Same.
10616 (flow_loop_tree_node_add): Same.
10617 (flow_loop_tree_node_remove): Same.
10618 (flow_loops_find): Same.
10619 (find_subloop_latch_edge_by_profile): Same.
10620 (find_subloop_latch_edge_by_ivs): Same.
10621 (mfb_redirect_edges_in_set): Same.
10622 (form_subloop): Same.
10623 (merge_latch_edges): Same.
10624 (disambiguate_multiple_latches): Same.
10625 (disambiguate_loops_with_multiple_latches): Same.
10626 (flow_bb_inside_loop_p): Same.
10627 (glb_enum_p): Same.
10628 (get_loop_body_with_size): Same.
10629 (get_loop_body): Same.
10630 (fill_sons_in_loop): Same.
10631 (get_loop_body_in_dom_order): Same.
10632 (get_loop_body_in_custom_order): Same.
10633 (release_recorded_exits): Same.
10634 (get_loop_exit_edges): Same.
10635 (num_loop_branches): Same.
10636 (remove_bb_from_loops): Same.
10637 (find_common_loop): Same.
10638 (delete_loop): Same.
10639 (cancel_loop): Same.
10640 (verify_loop_structure): Same.
10641 (loop_preheader_edge): Same.
10642 (loop_exit_edge_p): Same.
10643 (single_exit): Same.
10644 (loop_exits_to_bb_p): Same.
10645 (loop_exits_from_bb_p): Same.
10646 (get_loop_location): Same.
10647 (record_niter_bound): Same.
10648 (get_estimated_loop_iterations_int): Same.
10649 (max_stmt_executions_int): Same.
10650 (likely_max_stmt_executions_int): Same.
10651 (get_estimated_loop_iterations): Same.
10652 (get_max_loop_iterations): Same.
10653 (get_max_loop_iterations_int): Same.
10654 (get_likely_max_loop_iterations): Same.
10655 * cfgloop.h (simple_loop_desc): Same.
10657 (loop_depth): Same.
10658 (loop_outer): Same.
10659 (loop_iterator::next): Same.
10660 (loop_outermost): Same.
10661 * cfgloopanal.c (mark_irreducible_loops): Same.
10662 (num_loop_insns): Same.
10663 (average_num_loop_insns): Same.
10664 (expected_loop_iterations_unbounded): Same.
10665 (expected_loop_iterations): Same.
10666 (mark_loop_exit_edges): Same.
10667 (single_likely_exit): Same.
10668 * cfgloopmanip.c (fix_bb_placement): Same.
10669 (fix_bb_placements): Same.
10670 (remove_path): Same.
10671 (place_new_loop): Same.
10673 (scale_loop_frequencies): Same.
10674 (scale_loop_profile): Same.
10675 (create_empty_if_region_on_edge): Same.
10676 (create_empty_loop_on_edge): Same.
10679 (fix_loop_placements): Same.
10680 (copy_loop_info): Same.
10681 (duplicate_loop): Same.
10682 (duplicate_subloops): Same.
10683 (loop_redirect_edge): Same.
10684 (can_duplicate_loop_p): Same.
10685 (duplicate_loop_to_header_edge): Same.
10686 (mfb_keep_just): Same.
10687 (has_preds_from_loop): Same.
10688 (create_preheader): Same.
10689 (create_preheaders): Same.
10690 (lv_adjust_loop_entry_edge): Same.
10691 (loop_version): Same.
10692 * cfgloopmanip.h: Same.
10694 * cgraphbuild.c: Same.
10695 * combine.c (make_extraction): Same.
10696 * config/i386/i386-features.c: Same.
10697 * config/i386/i386-features.h: Same.
10698 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
10699 (ix86_emit_outlined_ms2sysv_restore): Same.
10700 (ix86_noce_conversion_profitable_p): Same.
10701 (ix86_init_cost): Same.
10702 (ix86_simd_clone_usable): Same.
10703 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
10705 * coretypes.h: Same.
10706 * data-streamer-in.c (string_for_index): Change class-key of PODs
10707 to struct and others to class.
10708 (streamer_read_indexed_string): Same.
10709 (streamer_read_string): Same.
10710 (bp_unpack_indexed_string): Same.
10711 (bp_unpack_string): Same.
10712 (streamer_read_uhwi): Same.
10713 (streamer_read_hwi): Same.
10714 (streamer_read_gcov_count): Same.
10715 (streamer_read_wide_int): Same.
10716 * data-streamer.h (streamer_write_bitpack): Same.
10717 (bp_unpack_value): Same.
10718 (streamer_write_char_stream): Same.
10719 (streamer_write_hwi_in_range): Same.
10720 (streamer_write_record_start): Same.
10721 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
10722 (add_cross_iteration_register_deps): Same.
10723 (build_intra_loop_deps): Same.
10724 * df-core.c (df_analyze): Same.
10725 (loop_post_order_compute): Same.
10726 (loop_inverted_post_order_compute): Same.
10727 * df-problems.c (df_rd_alloc): Same.
10728 (df_rd_simulate_one_insn): Same.
10729 (df_rd_local_compute): Same.
10730 (df_rd_init_solution): Same.
10731 (df_rd_confluence_n): Same.
10732 (df_rd_transfer_function): Same.
10733 (df_rd_free): Same.
10734 (df_rd_dump_defs_set): Same.
10735 (df_rd_top_dump): Same.
10736 (df_lr_alloc): Same.
10737 (df_lr_reset): Same.
10738 (df_lr_local_compute): Same.
10739 (df_lr_init): Same.
10740 (df_lr_confluence_n): Same.
10741 (df_lr_free): Same.
10742 (df_lr_top_dump): Same.
10743 (df_lr_verify_transfer_functions): Same.
10744 (df_live_alloc): Same.
10745 (df_live_reset): Same.
10746 (df_live_init): Same.
10747 (df_live_confluence_n): Same.
10748 (df_live_finalize): Same.
10749 (df_live_free): Same.
10750 (df_live_top_dump): Same.
10751 (df_live_verify_transfer_functions): Same.
10752 (df_mir_alloc): Same.
10753 (df_mir_reset): Same.
10754 (df_mir_init): Same.
10755 (df_mir_confluence_n): Same.
10756 (df_mir_free): Same.
10757 (df_mir_top_dump): Same.
10758 (df_word_lr_alloc): Same.
10759 (df_word_lr_reset): Same.
10760 (df_word_lr_init): Same.
10761 (df_word_lr_confluence_n): Same.
10762 (df_word_lr_free): Same.
10763 (df_word_lr_top_dump): Same.
10764 (df_md_alloc): Same.
10765 (df_md_simulate_one_insn): Same.
10766 (df_md_reset): Same.
10767 (df_md_init): Same.
10768 (df_md_free): Same.
10769 (df_md_top_dump): Same.
10770 * df-scan.c (df_insn_delete): Same.
10771 (df_insn_rescan): Same.
10772 (df_notes_rescan): Same.
10773 (df_sort_and_compress_mws): Same.
10774 (df_install_mws): Same.
10775 (df_refs_add_to_chains): Same.
10776 (df_ref_create_structure): Same.
10777 (df_ref_record): Same.
10778 (df_def_record_1): Same.
10779 (df_find_hard_reg_defs): Same.
10780 (df_uses_record): Same.
10781 (df_get_conditional_uses): Same.
10782 (df_get_call_refs): Same.
10783 (df_recompute_luids): Same.
10784 (df_get_entry_block_def_set): Same.
10785 (df_entry_block_defs_collect): Same.
10786 (df_get_exit_block_use_set): Same.
10787 (df_exit_block_uses_collect): Same.
10788 (df_mws_verify): Same.
10789 (df_bb_verify): Same.
10790 * df.h (df_scan_get_bb_info): Same.
10791 * doc/tm.texi: Same.
10792 * dse.c (record_store): Same.
10793 * dumpfile.h: Same.
10794 * emit-rtl.c (const_fixed_hasher::equal): Same.
10795 (set_mem_attributes_minus_bitpos): Same.
10796 (change_address): Same.
10797 (adjust_address_1): Same.
10798 (offset_address): Same.
10799 * emit-rtl.h: Same.
10800 * except.c (dw2_build_landing_pads): Same.
10801 (sjlj_emit_dispatch_table): Same.
10802 * explow.c (allocate_dynamic_stack_space): Same.
10803 (emit_stack_probe): Same.
10804 (probe_stack_range): Same.
10805 * expmed.c (store_bit_field_using_insv): Same.
10806 (store_bit_field_1): Same.
10807 (store_integral_bit_field): Same.
10808 (extract_bit_field_using_extv): Same.
10809 (extract_bit_field_1): Same.
10810 (emit_cstore): Same.
10811 * expr.c (emit_block_move_via_cpymem): Same.
10812 (expand_cmpstrn_or_cmpmem): Same.
10813 (set_storage_via_setmem): Same.
10814 (emit_single_push_insn_1): Same.
10815 (expand_assignment): Same.
10816 (store_constructor): Same.
10817 (expand_expr_real_2): Same.
10818 (expand_expr_real_1): Same.
10819 (try_casesi): Same.
10821 * function.c (try_fit_stack_local): Same.
10822 (assign_stack_local_1): Same.
10823 (assign_stack_local): Same.
10824 (cut_slot_from_list): Same.
10825 (insert_slot_to_list): Same.
10826 (max_slot_level): Same.
10827 (move_slot_to_level): Same.
10828 (temp_address_hasher::equal): Same.
10829 (remove_unused_temp_slot_addresses): Same.
10830 (assign_temp): Same.
10831 (combine_temp_slots): Same.
10832 (update_temp_slot_address): Same.
10833 (preserve_temp_slots): Same.
10834 * function.h: Same.
10836 * gcc-rich-location.h: Same.
10838 * genattrtab.c (check_attr_test): Same.
10839 (check_attr_value): Same.
10840 (convert_set_attr_alternative): Same.
10841 (convert_set_attr): Same.
10842 (check_defs): Same.
10843 (copy_boolean): Same.
10844 (get_attr_value): Same.
10845 (expand_delays): Same.
10846 (make_length_attrs): Same.
10848 (make_alternative_compare): Same.
10849 (simplify_test_exp): Same.
10850 (tests_attr_p): Same.
10851 (get_attr_order): Same.
10852 (clear_struct_flag): Same.
10854 (compares_alternatives_p): Same.
10857 (find_attrs_to_cache): Same.
10858 (write_test_expr): Same.
10859 (walk_attr_value): Same.
10860 (write_attr_get): Same.
10861 (eliminate_known_true): Same.
10862 (write_insn_cases): Same.
10863 (write_attr_case): Same.
10864 (write_attr_valueq): Same.
10865 (write_attr_value): Same.
10866 (write_dummy_eligible_delay): Same.
10867 (next_comma_elt): Same.
10869 (make_internal_attr): Same.
10870 (copy_rtx_unchanging): Same.
10871 (gen_insn_reserv): Same.
10872 (check_tune_attr): Same.
10873 (make_automaton_attrs): Same.
10874 (handle_arg): Same.
10875 * genextract.c (gen_insn): Same.
10876 (VEC_char_to_string): Same.
10877 * genmatch.c (print_operand): Same.
10879 (parser::parse_operation): Same.
10880 (parser::parse_capture): Same.
10881 (parser::parse_c_expr): Same.
10882 (parser::parse_simplify): Same.
10884 * genoutput.c (output_operand_data): Same.
10885 (output_get_insn_name): Same.
10886 (compare_operands): Same.
10887 (place_operands): Same.
10888 (process_template): Same.
10889 (validate_insn_alternatives): Same.
10890 (validate_insn_operands): Same.
10891 (gen_expand): Same.
10892 (note_constraint): Same.
10893 * genpreds.c (write_one_predicate_function): Same.
10894 (add_constraint): Same.
10895 (process_define_register_constraint): Same.
10896 (write_lookup_constraint_1): Same.
10897 (write_lookup_constraint_array): Same.
10898 (write_insn_constraint_len): Same.
10899 (write_reg_class_for_constraint_1): Same.
10900 (write_constraint_satisfied_p_array): Same.
10901 * genrecog.c (optimize_subroutine_group): Same.
10902 * gensupport.c (process_define_predicate): Same.
10903 (queue_pattern): Same.
10904 (remove_from_queue): Same.
10905 (process_rtx): Same.
10906 (is_predicable): Same.
10907 (change_subst_attribute): Same.
10908 (subst_pattern_match): Same.
10909 (alter_constraints): Same.
10910 (alter_attrs_for_insn): Same.
10911 (shift_output_template): Same.
10912 (alter_output_for_subst_insn): Same.
10913 (process_one_cond_exec): Same.
10915 (process_define_cond_exec): Same.
10916 (mnemonic_htab_callback): Same.
10917 (gen_mnemonic_attr): Same.
10918 (read_md_rtx): Same.
10919 * ggc-page.c: Same.
10920 * gimple-loop-interchange.cc (dump_reduction): Same.
10921 (dump_induction): Same.
10922 (loop_cand::~loop_cand): Same.
10923 (free_data_refs_with_aux): Same.
10924 (tree_loop_interchange::interchange_loops): Same.
10925 (tree_loop_interchange::map_inductions_to_loop): Same.
10926 (tree_loop_interchange::move_code_to_inner_loop): Same.
10927 (compute_access_stride): Same.
10928 (compute_access_strides): Same.
10929 (proper_loop_form_for_interchange): Same.
10930 (tree_loop_interchange_compute_ddrs): Same.
10931 (prune_datarefs_not_in_loop): Same.
10932 (prepare_data_references): Same.
10933 (pass_linterchange::execute): Same.
10934 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
10935 (unroll_jam_possible_p): Same.
10936 (fuse_loops): Same.
10937 (adjust_unroll_factor): Same.
10938 (tree_loop_unroll_and_jam): Same.
10939 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
10940 (loop_versioning::expensive_stmt_p): Same.
10941 (loop_versioning::version_for_unity): Same.
10942 (loop_versioning::dump_inner_likelihood): Same.
10943 (loop_versioning::find_per_loop_multiplication): Same.
10944 (loop_versioning::analyze_term_using_scevs): Same.
10945 (loop_versioning::record_address_fragment): Same.
10946 (loop_versioning::analyze_expr): Same.
10947 (loop_versioning::analyze_blocks): Same.
10948 (loop_versioning::prune_conditions): Same.
10949 (loop_versioning::merge_loop_info): Same.
10950 (loop_versioning::add_loop_to_queue): Same.
10951 (loop_versioning::decide_whether_loop_is_versionable): Same.
10952 (loop_versioning::make_versioning_decisions): Same.
10953 (loop_versioning::implement_versioning_decisions): Same.
10954 * gimple-ssa-evrp-analyze.c
10955 (evrp_range_analyzer::record_ranges_from_phis): Same.
10956 * gimple-ssa-store-merging.c (split_store::split_store): Same.
10957 (count_multiple_uses): Same.
10958 (split_group): Same.
10959 (imm_store_chain_info::output_merged_store): Same.
10960 (pass_store_merging::process_store): Same.
10961 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
10962 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
10964 (alloca_call_type): Same.
10965 (pass_walloca::execute): Same.
10966 * gimple-streamer-in.c (input_phi): Same.
10967 (input_gimple_stmt): Same.
10968 * gimple-streamer.h: Same.
10969 * godump.c (go_force_record_alignment): Same.
10970 (go_format_type): Same.
10971 (go_output_type): Same.
10972 (go_output_fndecl): Same.
10973 (go_output_typedef): Same.
10974 (keyword_hash_init): Same.
10975 (find_dummy_types): Same.
10976 * graph.c (draw_cfg_nodes_no_loops): Same.
10977 (draw_cfg_nodes_for_loop): Same.
10978 * hard-reg-set.h (hard_reg_set_iter_next): Same.
10979 * hsa-brig.c: Same.
10980 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
10981 * hsa-dump.c (dump_hsa_cfun): Same.
10982 * hsa-gen.c (gen_function_def_parameters): Same.
10983 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
10984 * input.c (dump_line_table_statistics): Same.
10985 (test_lexer): Same.
10987 * internal-fn.c (get_multi_vector_move): Same.
10988 (expand_load_lanes_optab_fn): Same.
10989 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
10990 (expand_GOMP_SIMT_EXIT): Same.
10991 (expand_GOMP_SIMT_LAST_LANE): Same.
10992 (expand_GOMP_SIMT_ORDERED_PRED): Same.
10993 (expand_GOMP_SIMT_VOTE_ANY): Same.
10994 (expand_GOMP_SIMT_XCHG_BFLY): Same.
10995 (expand_GOMP_SIMT_XCHG_IDX): Same.
10996 (expand_addsub_overflow): Same.
10997 (expand_neg_overflow): Same.
10998 (expand_mul_overflow): Same.
10999 (expand_call_mem_ref): Same.
11000 (expand_mask_load_optab_fn): Same.
11001 (expand_scatter_store_optab_fn): Same.
11002 (expand_gather_load_optab_fn): Same.
11003 * ipa-cp.c (ipa_get_parm_lattices): Same.
11004 (print_all_lattices): Same.
11005 (ignore_edge_p): Same.
11006 (build_toporder_info): Same.
11007 (free_toporder_info): Same.
11008 (push_node_to_stack): Same.
11009 (ipcp_lattice<valtype>::set_contains_variable): Same.
11010 (set_agg_lats_to_bottom): Same.
11011 (ipcp_bits_lattice::meet_with): Same.
11012 (set_single_call_flag): Same.
11013 (initialize_node_lattices): Same.
11014 (ipa_get_jf_ancestor_result): Same.
11015 (ipcp_verify_propagated_values): Same.
11016 (propagate_scalar_across_jump_function): Same.
11017 (propagate_context_across_jump_function): Same.
11018 (propagate_bits_across_jump_function): Same.
11019 (ipa_vr_operation_and_type_effects): Same.
11020 (propagate_vr_across_jump_function): Same.
11021 (set_check_aggs_by_ref): Same.
11022 (set_chain_of_aglats_contains_variable): Same.
11023 (merge_aggregate_lattices): Same.
11024 (agg_pass_through_permissible_p): Same.
11025 (propagate_aggs_across_jump_function): Same.
11026 (call_passes_through_thunk_p): Same.
11027 (propagate_constants_across_call): Same.
11028 (devirtualization_time_bonus): Same.
11029 (good_cloning_opportunity_p): Same.
11030 (context_independent_aggregate_values): Same.
11031 (gather_context_independent_values): Same.
11032 (perform_estimation_of_a_value): Same.
11033 (estimate_local_effects): Same.
11034 (value_topo_info<valtype>::add_val): Same.
11035 (add_all_node_vals_to_toposort): Same.
11036 (value_topo_info<valtype>::propagate_effects): Same.
11037 (ipcp_propagate_stage): Same.
11038 (ipcp_discover_new_direct_edges): Same.
11039 (same_node_or_its_all_contexts_clone_p): Same.
11040 (cgraph_edge_brings_value_p): Same.
11041 (gather_edges_for_value): Same.
11042 (create_specialized_node): Same.
11043 (find_more_scalar_values_for_callers_subset): Same.
11044 (find_more_contexts_for_caller_subset): Same.
11045 (copy_plats_to_inter): Same.
11046 (intersect_aggregates_with_edge): Same.
11047 (find_aggregate_values_for_callers_subset): Same.
11048 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11049 (decide_about_value): Same.
11050 (decide_whether_version_node): Same.
11051 (spread_undeadness): Same.
11052 (identify_dead_nodes): Same.
11053 (ipcp_store_vr_results): Same.
11054 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11055 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11056 (redirect_to_unreachable): Same.
11057 (edge_set_predicate): Same.
11058 (evaluate_conditions_for_known_args): Same.
11059 (evaluate_properties_for_edge): Same.
11060 (ipa_fn_summary_t::duplicate): Same.
11061 (ipa_call_summary_t::duplicate): Same.
11062 (dump_ipa_call_summary): Same.
11063 (ipa_dump_fn_summary): Same.
11064 (eliminated_by_inlining_prob): Same.
11065 (set_cond_stmt_execution_predicate): Same.
11066 (set_switch_stmt_execution_predicate): Same.
11067 (compute_bb_predicates): Same.
11068 (will_be_nonconstant_expr_predicate): Same.
11069 (phi_result_unknown_predicate): Same.
11070 (analyze_function_body): Same.
11071 (compute_fn_summary): Same.
11072 (estimate_edge_devirt_benefit): Same.
11073 (estimate_edge_size_and_time): Same.
11074 (estimate_calls_size_and_time): Same.
11075 (estimate_node_size_and_time): Same.
11076 (remap_edge_change_prob): Same.
11077 (remap_edge_summaries): Same.
11078 (ipa_merge_fn_summary_after_inlining): Same.
11079 (ipa_fn_summary_generate): Same.
11080 (inline_read_section): Same.
11081 (ipa_fn_summary_read): Same.
11082 (ipa_fn_summary_write): Same.
11083 * ipa-fnsummary.h: Same.
11084 * ipa-hsa.c (ipa_hsa_read_section): Same.
11085 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11086 * ipa-icf.c (sem_function::param_used_p): Same.
11087 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11088 * ipa-inline.c (edge_badness): Same.
11089 (inline_small_functions): Same.
11090 * ipa-polymorphic-call.c
11091 (ipa_polymorphic_call_context::stream_out): Same.
11092 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11093 (predicate::remap_after_inlining): Same.
11094 (predicate::stream_out): Same.
11095 * ipa-predicate.h: Same.
11096 * ipa-profile.c (ipa_profile_read_summary): Same.
11097 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11098 (count_formal_params): Same.
11099 (ipa_dump_param): Same.
11100 (ipa_alloc_node_params): Same.
11101 (ipa_print_node_jump_functions_for_edge): Same.
11102 (ipa_print_node_jump_functions): Same.
11103 (ipa_load_from_parm_agg): Same.
11104 (get_ancestor_addr_info): Same.
11105 (ipa_compute_jump_functions_for_edge): Same.
11106 (ipa_analyze_virtual_call_uses): Same.
11107 (ipa_analyze_stmt_uses): Same.
11108 (ipa_analyze_params_uses_in_bb): Same.
11109 (update_jump_functions_after_inlining): Same.
11110 (try_decrement_rdesc_refcount): Same.
11111 (ipa_impossible_devirt_target): Same.
11112 (update_indirect_edges_after_inlining): Same.
11113 (combine_controlled_uses_counters): Same.
11114 (ipa_edge_args_sum_t::duplicate): Same.
11115 (ipa_write_jump_function): Same.
11116 (ipa_write_indirect_edge_info): Same.
11117 (ipa_write_node_info): Same.
11118 (ipa_read_edge_info): Same.
11119 (ipa_prop_read_section): Same.
11120 (read_replacements_section): Same.
11121 * ipa-prop.h (ipa_get_param_count): Same.
11122 (ipa_get_param): Same.
11123 (ipa_get_type): Same.
11124 (ipa_get_param_move_cost): Same.
11125 (ipa_set_param_used): Same.
11126 (ipa_get_controlled_uses): Same.
11127 (ipa_set_controlled_uses): Same.
11128 (ipa_get_cs_argument_count): Same.
11129 * ipa-pure-const.c (analyze_function): Same.
11130 (pure_const_read_summary): Same.
11132 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11133 * ipa-split.c (test_nonssa_use): Same.
11134 (dump_split_point): Same.
11135 (dominated_by_forbidden): Same.
11136 (split_part_set_ssa_name_p): Same.
11137 (find_split_points): Same.
11138 * ira-build.c (finish_loop_tree_nodes): Same.
11139 (low_pressure_loop_node_p): Same.
11140 * ira-color.c (ira_reuse_stack_slot): Same.
11142 * ira.c (setup_reg_equiv): Same.
11143 (print_insn_chain): Same.
11145 * loop-doloop.c (doloop_condition_get): Same.
11147 (record_reg_sets): Same.
11148 (doloop_optimize): Same.
11149 * loop-init.c (loop_optimizer_init): Same.
11150 (fix_loop_structure): Same.
11151 * loop-invariant.c (merge_identical_invariants): Same.
11152 (compute_always_reached): Same.
11153 (find_exits): Same.
11154 (may_assign_reg_p): Same.
11155 (find_invariants_bb): Same.
11156 (find_invariants_body): Same.
11157 (replace_uses): Same.
11158 (can_move_invariant_reg): Same.
11159 (free_inv_motion_data): Same.
11160 (move_single_loop_invariants): Same.
11161 (change_pressure): Same.
11162 (mark_ref_regs): Same.
11163 (calculate_loop_reg_pressure): Same.
11164 * loop-iv.c (biv_entry_hasher::equal): Same.
11165 (iv_extend_to_rtx_code): Same.
11166 (check_iv_ref_table_size): Same.
11167 (clear_iv_info): Same.
11168 (latch_dominating_def): Same.
11169 (iv_get_reaching_def): Same.
11170 (iv_constant): Same.
11176 (get_biv_step): Same.
11178 (analyzed_for_bivness_p): Same.
11179 (record_biv): Same.
11180 (iv_analyze_biv): Same.
11181 (iv_analyze_expr): Same.
11182 (iv_analyze_def): Same.
11183 (iv_analyze_op): Same.
11184 (iv_analyze): Same.
11185 (iv_analyze_result): Same.
11187 (eliminate_implied_conditions): Same.
11188 (simplify_using_initial_values): Same.
11189 (shorten_into_mode): Same.
11190 (canonicalize_iv_subregs): Same.
11191 (determine_max_iter): Same.
11192 (check_simple_exit): Same.
11193 (find_simple_exit): Same.
11194 (get_simple_loop_desc): Same.
11195 * loop-unroll.c (report_unroll): Same.
11196 (decide_unrolling): Same.
11197 (unroll_loops): Same.
11198 (loop_exit_at_end_p): Same.
11199 (decide_unroll_constant_iterations): Same.
11200 (unroll_loop_constant_iterations): Same.
11201 (compare_and_jump_seq): Same.
11202 (unroll_loop_runtime_iterations): Same.
11203 (decide_unroll_stupid): Same.
11204 (unroll_loop_stupid): Same.
11205 (referenced_in_one_insn_in_loop_p): Same.
11206 (reset_debug_uses_in_loop): Same.
11207 (analyze_iv_to_split_insn): Same.
11208 * lra-eliminations.c (lra_debug_elim_table): Same.
11209 (setup_can_eliminate): Same.
11211 (lra_get_elimination_hard_regno): Same.
11212 (lra_eliminate_regs_1): Same.
11213 (eliminate_regs_in_insn): Same.
11214 (update_reg_eliminate): Same.
11215 (init_elimination): Same.
11216 (lra_eliminate): Same.
11218 * lra-lives.c (initiate_live_solver): Same.
11219 * lra-remat.c (create_remat_bb_data): Same.
11220 * lra-spills.c (lra_spill): Same.
11221 * lra.c (lra_set_insn_recog_data): Same.
11222 (lra_set_used_insn_alternative_by_uid): Same.
11223 (init_reg_info): Same.
11224 (expand_reg_info): Same.
11225 * lto-cgraph.c (output_symtab): Same.
11226 (read_identifier): Same.
11227 (get_alias_symbol): Same.
11228 (input_node): Same.
11229 (input_varpool_node): Same.
11231 (input_edge): Same.
11232 (input_cgraph_1): Same.
11233 (input_refs): Same.
11234 (input_symtab): Same.
11235 (input_offload_tables): Same.
11236 (output_cgraph_opt_summary): Same.
11237 (input_edge_opt_summary): Same.
11238 (input_cgraph_opt_section): Same.
11239 * lto-section-in.c (lto_free_raw_section_data): Same.
11240 (lto_create_simple_input_block): Same.
11241 (lto_free_function_in_decl_state_for_node): Same.
11242 * lto-streamer-in.c (lto_tag_check_set): Same.
11243 (lto_location_cache::revert_location_cache): Same.
11244 (lto_location_cache::input_location): Same.
11245 (lto_input_location): Same.
11246 (stream_input_location_now): Same.
11247 (lto_input_tree_ref): Same.
11248 (lto_input_eh_catch_list): Same.
11249 (input_eh_region): Same.
11250 (lto_init_eh): Same.
11251 (make_new_block): Same.
11253 (fixup_call_stmt_edges): Same.
11254 (input_struct_function_base): Same.
11255 (input_function): Same.
11256 (lto_read_body_or_constructor): Same.
11257 (lto_read_tree_1): Same.
11258 (lto_read_tree): Same.
11259 (lto_input_scc): Same.
11260 (lto_input_tree_1): Same.
11261 (lto_input_toplevel_asms): Same.
11262 (lto_input_mode_table): Same.
11263 (lto_reader_init): Same.
11264 (lto_data_in_create): Same.
11265 * lto-streamer-out.c (output_cfg): Same.
11266 * lto-streamer.h: Same.
11267 * modulo-sched.c (duplicate_insns_of_cycles): Same.
11268 (generate_prolog_epilog): Same.
11269 (mark_loop_unsched): Same.
11270 (dump_insn_location): Same.
11271 (loop_canon_p): Same.
11272 (sms_schedule): Same.
11273 * omp-expand.c (expand_omp_for_ordered_loops): Same.
11274 (expand_omp_for_generic): Same.
11275 (expand_omp_for_static_nochunk): Same.
11276 (expand_omp_for_static_chunk): Same.
11277 (expand_omp_simd): Same.
11278 (expand_omp_taskloop_for_inner): Same.
11279 (expand_oacc_for): Same.
11280 (expand_omp_atomic_pipeline): Same.
11281 (mark_loops_in_oacc_kernels_region): Same.
11282 * omp-offload.c (oacc_xform_loop): Same.
11283 * omp-simd-clone.c (simd_clone_adjust): Same.
11284 * optabs-query.c (get_traditional_extraction_insn): Same.
11285 * optabs.c (expand_vector_broadcast): Same.
11286 (expand_binop_directly): Same.
11287 (expand_twoval_unop): Same.
11288 (expand_twoval_binop): Same.
11289 (expand_unop_direct): Same.
11290 (emit_indirect_jump): Same.
11291 (emit_conditional_move): Same.
11292 (emit_conditional_neg_or_complement): Same.
11293 (emit_conditional_add): Same.
11294 (vector_compare_rtx): Same.
11295 (expand_vec_perm_1): Same.
11296 (expand_vec_perm_const): Same.
11297 (expand_vec_cond_expr): Same.
11298 (expand_vec_series_expr): Same.
11299 (maybe_emit_atomic_exchange): Same.
11300 (maybe_emit_sync_lock_test_and_set): Same.
11301 (expand_atomic_compare_and_swap): Same.
11302 (expand_atomic_load): Same.
11303 (expand_atomic_store): Same.
11304 (maybe_emit_op): Same.
11305 (valid_multiword_target_p): Same.
11306 (create_integer_operand): Same.
11307 (maybe_legitimize_operand_same_code): Same.
11308 (maybe_legitimize_operand): Same.
11309 (create_convert_operand_from_type): Same.
11310 (can_reuse_operands_p): Same.
11311 (maybe_legitimize_operands): Same.
11312 (maybe_gen_insn): Same.
11313 (maybe_expand_insn): Same.
11314 (maybe_expand_jump_insn): Same.
11315 (expand_insn): Same.
11316 * optabs.h (create_expand_operand): Same.
11317 (create_fixed_operand): Same.
11318 (create_output_operand): Same.
11319 (create_input_operand): Same.
11320 (create_convert_operand_to): Same.
11321 (create_convert_operand_from): Same.
11323 * poly-int.h: Same.
11324 * predict.c (optimize_insn_for_speed_p): Same.
11325 (optimize_loop_for_size_p): Same.
11326 (optimize_loop_for_speed_p): Same.
11327 (optimize_loop_nest_for_speed_p): Same.
11328 (get_base_value): Same.
11329 (predicted_by_loop_heuristics_p): Same.
11330 (predict_extra_loop_exits): Same.
11331 (predict_loops): Same.
11332 (predict_paths_for_bb): Same.
11333 (predict_paths_leading_to): Same.
11334 (propagate_freq): Same.
11335 (pass_profile::execute): Same.
11337 * profile-count.c (profile_count::differs_from_p): Same.
11338 (profile_probability::differs_lot_from_p): Same.
11339 * profile-count.h: Same.
11340 * profile.c (branch_prob): Same.
11341 * regrename.c (free_chain_data): Same.
11342 (mark_conflict): Same.
11343 (create_new_chain): Same.
11344 (merge_overlapping_regs): Same.
11345 (init_rename_info): Same.
11346 (merge_chains): Same.
11347 (regrename_analyze): Same.
11348 (regrename_do_replace): Same.
11349 (scan_rtx_reg): Same.
11350 (record_out_operands): Same.
11351 (build_def_use): Same.
11352 * regrename.h: Same.
11354 * reload1.c (init_reload): Same.
11355 (maybe_fix_stack_asms): Same.
11356 (copy_reloads): Same.
11357 (count_pseudo): Same.
11358 (count_spilled_pseudo): Same.
11360 (find_reload_regs): Same.
11361 (select_reload_regs): Same.
11362 (spill_hard_reg): Same.
11363 (fixup_eh_region_note): Same.
11364 (set_reload_reg): Same.
11365 (allocate_reload_reg): Same.
11366 (compute_reload_subreg_offset): Same.
11367 (reload_adjust_reg_for_icode): Same.
11368 (emit_input_reload_insns): Same.
11369 (emit_output_reload_insns): Same.
11370 (do_input_reload): Same.
11371 (inherit_piecemeal_p): Same.
11373 * sanopt.c (maybe_get_dominating_check): Same.
11374 (maybe_optimize_ubsan_ptr_ifn): Same.
11375 (can_remove_asan_check): Same.
11376 (maybe_optimize_asan_check_ifn): Same.
11377 (sanopt_optimize_walker): Same.
11378 * sched-deps.c (add_dependence_list): Same.
11379 (chain_to_prev_insn): Same.
11380 (add_insn_mem_dependence): Same.
11381 (create_insn_reg_set): Same.
11382 (maybe_extend_reg_info_p): Same.
11383 (sched_analyze_reg): Same.
11384 (sched_analyze_1): Same.
11385 (get_implicit_reg_pending_clobbers): Same.
11386 (chain_to_prev_insn_p): Same.
11387 (deps_analyze_insn): Same.
11388 (deps_start_bb): Same.
11389 (sched_free_deps): Same.
11391 (init_deps_reg_last): Same.
11393 * sched-ebb.c: Same.
11394 * sched-int.h: Same.
11395 * sched-rgn.c (add_branch_dependences): Same.
11396 (concat_insn_mem_list): Same.
11398 (sched_rgn_compute_dependencies): Same.
11399 * sel-sched-ir.c (reset_target_context): Same.
11400 (copy_deps_context): Same.
11401 (init_id_from_df): Same.
11402 (has_dependence_p): Same.
11403 (change_loops_latches): Same.
11404 (bb_top_order_comparator): Same.
11405 (make_region_from_loop_preheader): Same.
11406 (sel_init_pipelining): Same.
11407 (get_loop_nest_for_rgn): Same.
11408 (make_regions_from_the_rest): Same.
11409 (sel_is_loop_preheader_p): Same.
11410 * sel-sched-ir.h (inner_loop_header_p): Same.
11411 (get_all_loop_exits): Same.
11412 * selftest.h: Same.
11413 * sese.c (sese_build_liveouts): Same.
11414 (sese_insert_phis_for_liveouts): Same.
11415 * sese.h (defined_in_sese_p): Same.
11416 * sreal.c (sreal::stream_out): Same.
11418 * streamer-hooks.h: Same.
11419 * target-globals.c (save_target_globals): Same.
11420 * target-globals.h: Same.
11421 * target.def: Same.
11423 * targhooks.c (default_has_ifunc_p): Same.
11424 (default_empty_mask_is_expensive): Same.
11425 (default_init_cost): Same.
11426 * targhooks.h: Same.
11428 * tree-affine.c (aff_combination_mult): Same.
11429 (aff_combination_expand): Same.
11430 (aff_combination_constant_multiple_p): Same.
11431 * tree-affine.h: Same.
11432 * tree-cfg.c (build_gimple_cfg): Same.
11433 (replace_loop_annotate_in_block): Same.
11434 (replace_uses_by): Same.
11436 (dump_cfg_stats): Same.
11437 (gimple_duplicate_sese_region): Same.
11438 (gimple_duplicate_sese_tail): Same.
11439 (move_block_to_fn): Same.
11440 (replace_block_vars_by_duplicates): Same.
11441 (move_sese_region_to_fn): Same.
11442 (print_loops_bb): Same.
11443 (print_loop): Same.
11444 (print_loops): Same.
11446 (debug_loops): Same.
11447 * tree-cfg.h: Same.
11448 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
11449 (chrec_fold_multiply_poly_poly): Same.
11450 (chrec_evaluate): Same.
11451 (chrec_component_in_loop_num): Same.
11452 (reset_evolution_in_loop): Same.
11453 (is_multivariate_chrec): Same.
11454 (chrec_contains_symbols): Same.
11455 (nb_vars_in_chrec): Same.
11456 (chrec_convert_1): Same.
11457 (chrec_convert_aggressive): Same.
11458 * tree-chrec.h: Same.
11459 * tree-core.h: Same.
11460 * tree-data-ref.c (dump_data_dependence_relation): Same.
11461 (canonicalize_base_object_address): Same.
11462 (data_ref_compare_tree): Same.
11463 (prune_runtime_alias_test_list): Same.
11464 (get_segment_min_max): Same.
11465 (create_intersect_range_checks): Same.
11466 (conflict_fn_no_dependence): Same.
11467 (object_address_invariant_in_loop_p): Same.
11468 (analyze_ziv_subscript): Same.
11469 (analyze_siv_subscript_cst_affine): Same.
11470 (analyze_miv_subscript): Same.
11471 (analyze_overlapping_iterations): Same.
11472 (build_classic_dist_vector_1): Same.
11473 (add_other_self_distances): Same.
11474 (same_access_functions): Same.
11475 (build_classic_dir_vector): Same.
11476 (subscript_dependence_tester_1): Same.
11477 (subscript_dependence_tester): Same.
11478 (access_functions_are_affine_or_constant_p): Same.
11479 (get_references_in_stmt): Same.
11480 (loop_nest_has_data_refs): Same.
11481 (graphite_find_data_references_in_stmt): Same.
11482 (find_data_references_in_bb): Same.
11483 (get_base_for_alignment): Same.
11484 (find_loop_nest_1): Same.
11485 (find_loop_nest): Same.
11486 * tree-data-ref.h (dr_alignment): Same.
11487 (ddr_dependence_level): Same.
11488 * tree-if-conv.c (fold_build_cond_expr): Same.
11489 (add_to_predicate_list): Same.
11490 (add_to_dst_predicate_list): Same.
11491 (phi_convertible_by_degenerating_args): Same.
11492 (idx_within_array_bound): Same.
11493 (all_preds_critical_p): Same.
11494 (pred_blocks_visited_p): Same.
11495 (predicate_bbs): Same.
11496 (build_region): Same.
11497 (if_convertible_loop_p_1): Same.
11498 (is_cond_scalar_reduction): Same.
11499 (predicate_scalar_phi): Same.
11500 (remove_conditions_and_labels): Same.
11501 (combine_blocks): Same.
11502 (version_loop_for_if_conversion): Same.
11503 (versionable_outer_loop_p): Same.
11504 (ifcvt_local_dce): Same.
11505 (tree_if_conversion): Same.
11506 (pass_if_conversion::gate): Same.
11507 * tree-if-conv.h: Same.
11508 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
11509 * tree-loop-distribution.c (bb_top_order_cmp): Same.
11511 (stmt_has_scalar_dependences_outside_loop): Same.
11512 (copy_loop_before): Same.
11513 (create_bb_after_loop): Same.
11514 (const_with_all_bytes_same): Same.
11515 (generate_memset_builtin): Same.
11516 (generate_memcpy_builtin): Same.
11517 (destroy_loop): Same.
11518 (build_rdg_partition_for_vertex): Same.
11519 (compute_access_range): Same.
11520 (data_ref_segment_size): Same.
11521 (latch_dominated_by_data_ref): Same.
11522 (compute_alias_check_pairs): Same.
11523 (fuse_memset_builtins): Same.
11524 (finalize_partitions): Same.
11525 (find_seed_stmts_for_distribution): Same.
11526 (prepare_perfect_loop_nest): Same.
11527 * tree-parloops.c (lambda_transform_legal_p): Same.
11528 (loop_parallel_p): Same.
11529 (reduc_stmt_res): Same.
11530 (add_field_for_name): Same.
11531 (create_call_for_reduction_1): Same.
11532 (replace_uses_in_bb_by): Same.
11533 (transform_to_exit_first_loop_alt): Same.
11534 (try_transform_to_exit_first_loop_alt): Same.
11535 (transform_to_exit_first_loop): Same.
11537 (gen_parallel_loop): Same.
11538 (gather_scalar_reductions): Same.
11539 (get_omp_data_i_param): Same.
11540 (try_create_reduction_list): Same.
11541 (oacc_entry_exit_single_gang): Same.
11542 (parallelize_loops): Same.
11543 * tree-pass.h: Same.
11544 * tree-predcom.c (determine_offset): Same.
11545 (last_always_executed_block): Same.
11546 (split_data_refs_to_components): Same.
11547 (suitable_component_p): Same.
11548 (valid_initializer_p): Same.
11549 (find_looparound_phi): Same.
11550 (insert_looparound_copy): Same.
11551 (add_looparound_copies): Same.
11552 (determine_roots_comp): Same.
11553 (predcom_tmp_var): Same.
11554 (initialize_root_vars): Same.
11555 (initialize_root_vars_store_elim_1): Same.
11556 (initialize_root_vars_store_elim_2): Same.
11557 (finalize_eliminated_stores): Same.
11558 (initialize_root_vars_lm): Same.
11559 (remove_stmt): Same.
11560 (determine_unroll_factor): Same.
11561 (execute_pred_commoning_cbck): Same.
11562 (base_names_in_chain_on): Same.
11563 (combine_chains): Same.
11564 (pcom_stmt_dominates_stmt_p): Same.
11565 (try_combine_chains): Same.
11566 (prepare_initializers_chain_store_elim): Same.
11567 (prepare_initializers_chain): Same.
11568 (prepare_initializers): Same.
11569 (prepare_finalizers_chain): Same.
11570 (prepare_finalizers): Same.
11571 (insert_init_seqs): Same.
11572 * tree-scalar-evolution.c (loop_phi_node_p): Same.
11573 (compute_overall_effect_of_inner_loop): Same.
11574 (add_to_evolution_1): Same.
11575 (add_to_evolution): Same.
11576 (follow_ssa_edge_binary): Same.
11577 (follow_ssa_edge_expr): Same.
11578 (backedge_phi_arg_p): Same.
11579 (follow_ssa_edge_in_condition_phi_branch): Same.
11580 (follow_ssa_edge_in_condition_phi): Same.
11581 (follow_ssa_edge_inner_loop_phi): Same.
11582 (follow_ssa_edge): Same.
11583 (analyze_evolution_in_loop): Same.
11584 (analyze_initial_condition): Same.
11585 (interpret_loop_phi): Same.
11586 (interpret_condition_phi): Same.
11587 (interpret_rhs_expr): Same.
11588 (interpret_expr): Same.
11589 (interpret_gimple_assign): Same.
11590 (analyze_scalar_evolution_1): Same.
11591 (analyze_scalar_evolution): Same.
11592 (analyze_scalar_evolution_for_address_of): Same.
11593 (get_instantiated_value_entry): Same.
11594 (loop_closed_phi_def): Same.
11595 (instantiate_scev_name): Same.
11596 (instantiate_scev_poly): Same.
11597 (instantiate_scev_binary): Same.
11598 (instantiate_scev_convert): Same.
11599 (instantiate_scev_not): Same.
11600 (instantiate_scev_r): Same.
11601 (instantiate_scev): Same.
11602 (resolve_mixers): Same.
11603 (initialize_scalar_evolutions_analyzer): Same.
11604 (scev_reset_htab): Same.
11605 (scev_reset): Same.
11606 (derive_simple_iv_with_niters): Same.
11607 (simple_iv_with_niters): Same.
11608 (expression_expensive_p): Same.
11609 (final_value_replacement_loop): Same.
11610 * tree-scalar-evolution.h (block_before_loop): Same.
11611 * tree-ssa-address.h: Same.
11612 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
11613 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
11614 (record_edge_info): Same.
11615 * tree-ssa-live.c (var_map_base_fini): Same.
11616 (remove_unused_locals): Same.
11617 * tree-ssa-live.h: Same.
11618 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
11619 (pass_ch_vect::execute): Same.
11620 (pass_ch::process_loop_p): Same.
11621 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
11622 (movement_possibility): Same.
11623 (outermost_invariant_loop): Same.
11625 (determine_max_movement): Same.
11626 (invariantness_dom_walker::before_dom_children): Same.
11627 (move_computations): Same.
11628 (may_move_till): Same.
11629 (force_move_till_op): Same.
11630 (force_move_till): Same.
11631 (memref_free): Same.
11632 (record_mem_ref_loc): Same.
11633 (set_ref_stored_in_loop): Same.
11634 (mark_ref_stored): Same.
11635 (sort_bbs_in_loop_postorder_cmp): Same.
11636 (sort_locs_in_loop_postorder_cmp): Same.
11637 (analyze_memory_references): Same.
11638 (mem_refs_may_alias_p): Same.
11639 (find_ref_loc_in_loop_cmp): Same.
11640 (rewrite_mem_ref_loc::operator): Same.
11641 (first_mem_ref_loc_1::operator): Same.
11642 (sm_set_flag_if_changed::operator): Same.
11643 (execute_sm_if_changed_flag_set): Same.
11644 (execute_sm): Same.
11645 (hoist_memory_references): Same.
11646 (ref_always_accessed::operator): Same.
11647 (refs_independent_p): Same.
11648 (record_dep_loop): Same.
11649 (ref_indep_loop_p_1): Same.
11650 (ref_indep_loop_p): Same.
11651 (can_sm_ref_p): Same.
11652 (find_refs_for_sm): Same.
11653 (loop_suitable_for_sm): Same.
11654 (store_motion_loop): Same.
11655 (store_motion): Same.
11656 (fill_always_executed_in): Same.
11657 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
11658 (estimated_unrolled_size): Same.
11659 (loop_edge_to_cancel): Same.
11660 (remove_exits_and_undefined_stmts): Same.
11661 (remove_redundant_iv_tests): Same.
11662 (unloop_loops): Same.
11663 (estimated_peeled_sequence_size): Same.
11664 (try_peel_loop): Same.
11665 (canonicalize_loop_induction_variables): Same.
11666 (canonicalize_induction_variables): Same.
11667 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
11669 (stmt_after_inc_pos): Same.
11670 (contains_abnormal_ssa_name_p): Same.
11671 (niter_for_exit): Same.
11674 (find_givs_in_bb): Same.
11675 (find_induction_variables): Same.
11676 (find_interesting_uses_cond): Same.
11677 (outermost_invariant_loop_for_expr): Same.
11678 (idx_find_step): Same.
11679 (add_candidate_1): Same.
11680 (add_iv_candidate_derived_from_uses): Same.
11681 (alloc_use_cost_map): Same.
11682 (prepare_decl_rtl): Same.
11683 (generic_predict_doloop_p): Same.
11684 (computation_cost): Same.
11685 (determine_common_wider_type): Same.
11686 (get_computation_aff_1): Same.
11687 (get_use_type): Same.
11688 (determine_group_iv_cost_address): Same.
11690 (difference_cannot_overflow_p): Same.
11691 (may_eliminate_iv): Same.
11692 (determine_set_costs): Same.
11693 (cheaper_cost_pair): Same.
11694 (compare_cost_pair): Same.
11695 (iv_ca_cand_for_group): Same.
11696 (iv_ca_recount_cost): Same.
11697 (iv_ca_set_remove_invs): Same.
11698 (iv_ca_set_no_cp): Same.
11699 (iv_ca_set_add_invs): Same.
11700 (iv_ca_set_cp): Same.
11701 (iv_ca_add_group): Same.
11702 (iv_ca_cost): Same.
11703 (iv_ca_compare_deps): Same.
11704 (iv_ca_delta_reverse): Same.
11705 (iv_ca_delta_commit): Same.
11706 (iv_ca_cand_used_p): Same.
11707 (iv_ca_delta_free): Same.
11709 (iv_ca_free): Same.
11710 (iv_ca_dump): Same.
11711 (iv_ca_extend): Same.
11712 (iv_ca_narrow): Same.
11713 (iv_ca_prune): Same.
11714 (cheaper_cost_with_cand): Same.
11715 (iv_ca_replace): Same.
11716 (try_add_cand_for): Same.
11717 (get_initial_solution): Same.
11718 (try_improve_iv_set): Same.
11719 (find_optimal_iv_set_1): Same.
11720 (create_new_iv): Same.
11721 (rewrite_use_compare): Same.
11722 (remove_unused_ivs): Same.
11723 (determine_scaling_factor): Same.
11724 * tree-ssa-loop-ivopts.h: Same.
11725 * tree-ssa-loop-manip.c (create_iv): Same.
11726 (compute_live_loop_exits): Same.
11727 (add_exit_phi): Same.
11728 (add_exit_phis): Same.
11729 (find_uses_to_rename_use): Same.
11730 (find_uses_to_rename_def): Same.
11731 (find_uses_to_rename_in_loop): Same.
11732 (rewrite_into_loop_closed_ssa): Same.
11733 (check_loop_closed_ssa_bb): Same.
11734 (split_loop_exit_edge): Same.
11735 (ip_end_pos): Same.
11736 (ip_normal_pos): Same.
11737 (copy_phi_node_args): Same.
11738 (gimple_duplicate_loop_to_header_edge): Same.
11739 (can_unroll_loop_p): Same.
11740 (determine_exit_conditions): Same.
11741 (scale_dominated_blocks_in_loop): Same.
11742 (niter_for_unrolled_loop): Same.
11743 (tree_transform_and_unroll_loop): Same.
11744 (rewrite_all_phi_nodes_with_iv): Same.
11745 * tree-ssa-loop-manip.h: Same.
11746 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
11747 (number_of_iterations_ne): Same.
11748 (assert_no_overflow_lt): Same.
11749 (assert_loop_rolls_lt): Same.
11750 (number_of_iterations_lt): Same.
11751 (adjust_cond_for_loop_until_wrap): Same.
11752 (tree_simplify_using_condition): Same.
11753 (simplify_using_initial_conditions): Same.
11754 (simplify_using_outer_evolutions): Same.
11755 (loop_only_exit_p): Same.
11756 (ssa_defined_by_minus_one_stmt_p): Same.
11757 (number_of_iterations_popcount): Same.
11758 (number_of_iterations_exit): Same.
11759 (find_loop_niter): Same.
11760 (finite_loop_p): Same.
11761 (chain_of_csts_start): Same.
11762 (get_val_for): Same.
11763 (loop_niter_by_eval): Same.
11764 (derive_constant_upper_bound_ops): Same.
11765 (do_warn_aggressive_loop_optimizations): Same.
11766 (record_estimate): Same.
11767 (get_cst_init_from_scev): Same.
11768 (record_nonwrapping_iv): Same.
11769 (idx_infer_loop_bounds): Same.
11770 (infer_loop_bounds_from_ref): Same.
11771 (infer_loop_bounds_from_array): Same.
11772 (infer_loop_bounds_from_pointer_arith): Same.
11773 (infer_loop_bounds_from_signedness): Same.
11774 (bound_index): Same.
11775 (discover_iteration_bound_by_body_walk): Same.
11776 (maybe_lower_iteration_bound): Same.
11777 (estimate_numbers_of_iterations): Same.
11778 (estimated_loop_iterations): Same.
11779 (estimated_loop_iterations_int): Same.
11780 (max_loop_iterations): Same.
11781 (max_loop_iterations_int): Same.
11782 (likely_max_loop_iterations): Same.
11783 (likely_max_loop_iterations_int): Same.
11784 (estimated_stmt_executions_int): Same.
11785 (max_stmt_executions): Same.
11786 (likely_max_stmt_executions): Same.
11787 (estimated_stmt_executions): Same.
11788 (stmt_dominates_stmt_p): Same.
11789 (nowrap_type_p): Same.
11790 (loop_exits_before_overflow): Same.
11791 (scev_var_range_cant_overflow): Same.
11792 (scev_probably_wraps_p): Same.
11793 (free_numbers_of_iterations_estimates): Same.
11794 * tree-ssa-loop-niter.h: Same.
11795 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
11796 (idx_analyze_ref): Same.
11797 (analyze_ref): Same.
11798 (gather_memory_references_ref): Same.
11799 (mark_nontemporal_store): Same.
11800 (emit_mfence_after_loop): Same.
11801 (may_use_storent_in_loop_p): Same.
11802 (mark_nontemporal_stores): Same.
11803 (should_unroll_loop_p): Same.
11804 (volume_of_dist_vector): Same.
11805 (add_subscript_strides): Same.
11806 (self_reuse_distance): Same.
11807 (insn_to_prefetch_ratio_too_small_p): Same.
11808 * tree-ssa-loop-split.c (split_at_bb_p): Same.
11809 (patch_loop_exit): Same.
11810 (find_or_create_guard_phi): Same.
11811 (easy_exit_values): Same.
11812 (connect_loop_phis): Same.
11813 (connect_loops): Same.
11814 (compute_new_first_bound): Same.
11815 (split_loop): Same.
11816 (tree_ssa_split_loops): Same.
11817 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
11818 (is_maybe_undefined): Same.
11819 (tree_may_unswitch_on): Same.
11820 (simplify_using_entry_checks): Same.
11821 (tree_unswitch_single_loop): Same.
11822 (tree_unswitch_loop): Same.
11823 (tree_unswitch_outer_loop): Same.
11824 (empty_bb_without_guard_p): Same.
11825 (used_outside_loop_p): Same.
11826 (get_vop_from_header): Same.
11827 (hoist_guard): Same.
11828 * tree-ssa-loop.c (gate_oacc_kernels): Same.
11829 (get_lsm_tmp_name): Same.
11830 * tree-ssa-loop.h: Same.
11831 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
11832 (build_and_add_sum): Same.
11833 (no_side_effect_bb): Same.
11835 (linearize_expr): Same.
11836 (should_break_up_subtract): Same.
11837 (linearize_expr_tree): Same.
11838 * tree-ssa-scopedtables.c: Same.
11839 * tree-ssa-scopedtables.h: Same.
11840 * tree-ssa-structalias.c (condense_visit): Same.
11841 (label_visit): Same.
11842 (dump_pred_graph): Same.
11843 (perform_var_substitution): Same.
11844 (move_complex_constraints): Same.
11845 (remove_preds_and_fake_succs): Same.
11846 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
11847 (determine_bb_domination_status): Same.
11848 (duplicate_thread_path): Same.
11849 (thread_through_all_blocks): Same.
11850 * tree-ssa-threadupdate.h: Same.
11851 * tree-streamer-in.c (streamer_read_string_cst): Same.
11852 (input_identifier): Same.
11853 (unpack_ts_type_common_value_fields): Same.
11854 (unpack_ts_block_value_fields): Same.
11855 (unpack_ts_translation_unit_decl_value_fields): Same.
11856 (unpack_ts_omp_clause_value_fields): Same.
11857 (streamer_read_tree_bitfields): Same.
11858 (streamer_alloc_tree): Same.
11859 (lto_input_ts_common_tree_pointers): Same.
11860 (lto_input_ts_vector_tree_pointers): Same.
11861 (lto_input_ts_poly_tree_pointers): Same.
11862 (lto_input_ts_complex_tree_pointers): Same.
11863 (lto_input_ts_decl_minimal_tree_pointers): Same.
11864 (lto_input_ts_decl_common_tree_pointers): Same.
11865 (lto_input_ts_decl_non_common_tree_pointers): Same.
11866 (lto_input_ts_decl_with_vis_tree_pointers): Same.
11867 (lto_input_ts_field_decl_tree_pointers): Same.
11868 (lto_input_ts_function_decl_tree_pointers): Same.
11869 (lto_input_ts_type_common_tree_pointers): Same.
11870 (lto_input_ts_type_non_common_tree_pointers): Same.
11871 (lto_input_ts_list_tree_pointers): Same.
11872 (lto_input_ts_vec_tree_pointers): Same.
11873 (lto_input_ts_exp_tree_pointers): Same.
11874 (lto_input_ts_block_tree_pointers): Same.
11875 (lto_input_ts_binfo_tree_pointers): Same.
11876 (lto_input_ts_constructor_tree_pointers): Same.
11877 (lto_input_ts_omp_clause_tree_pointers): Same.
11878 (streamer_read_tree_body): Same.
11879 * tree-streamer.h: Same.
11880 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
11881 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
11882 (vect_analyze_possibly_independent_ddr): Same.
11883 (vect_analyze_data_ref_dependence): Same.
11884 (vect_compute_data_ref_alignment): Same.
11885 (vect_enhance_data_refs_alignment): Same.
11886 (vect_analyze_data_ref_access): Same.
11887 (vect_check_gather_scatter): Same.
11888 (vect_find_stmt_data_reference): Same.
11889 (vect_create_addr_base_for_vector_ref): Same.
11890 (vect_setup_realignment): Same.
11891 (vect_supportable_dr_alignment): Same.
11892 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
11893 (adjust_phi_and_debug_stmts): Same.
11894 (vect_set_loop_mask): Same.
11895 (add_preheader_seq): Same.
11896 (vect_maybe_permute_loop_masks): Same.
11897 (vect_set_loop_masks_directly): Same.
11898 (vect_set_loop_condition_masked): Same.
11899 (vect_set_loop_condition_unmasked): Same.
11900 (slpeel_duplicate_current_defs_from_edges): Same.
11901 (slpeel_add_loop_guard): Same.
11902 (slpeel_can_duplicate_loop_p): Same.
11903 (create_lcssa_for_virtual_phi): Same.
11905 (vect_update_ivs_after_vectorizer): Same.
11906 (vect_gen_vector_loop_niters_mult_vf): Same.
11907 (slpeel_update_phi_nodes_for_loops): Same.
11908 (slpeel_update_phi_nodes_for_guard1): Same.
11909 (find_guard_arg): Same.
11910 (slpeel_update_phi_nodes_for_guard2): Same.
11911 (slpeel_update_phi_nodes_for_lcssa): Same.
11912 (vect_do_peeling): Same.
11913 (vect_create_cond_for_alias_checks): Same.
11914 (vect_loop_versioning): Same.
11915 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
11916 (vect_inner_phi_in_double_reduction_p): Same.
11917 (vect_analyze_scalar_cycles_1): Same.
11918 (vect_fixup_scalar_cycles_with_patterns): Same.
11919 (vect_get_loop_niters): Same.
11920 (bb_in_loop_p): Same.
11921 (vect_get_max_nscalars_per_iter): Same.
11922 (vect_verify_full_masking): Same.
11923 (vect_compute_single_scalar_iteration_cost): Same.
11924 (vect_analyze_loop_form_1): Same.
11925 (vect_analyze_loop_form): Same.
11926 (vect_active_double_reduction_p): Same.
11927 (vect_analyze_loop_operations): Same.
11928 (neutral_op_for_slp_reduction): Same.
11929 (vect_is_simple_reduction): Same.
11930 (vect_model_reduction_cost): Same.
11931 (get_initial_def_for_reduction): Same.
11932 (get_initial_defs_for_reduction): Same.
11933 (vect_create_epilog_for_reduction): Same.
11934 (vectorize_fold_left_reduction): Same.
11935 (vectorizable_reduction): Same.
11936 (vectorizable_induction): Same.
11937 (vectorizable_live_operation): Same.
11938 (loop_niters_no_overflow): Same.
11939 (vect_get_loop_mask): Same.
11940 (vect_transform_loop_stmt): Same.
11941 (vect_transform_loop): Same.
11942 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
11943 (vect_determine_precisions): Same.
11944 (vect_pattern_recog_1): Same.
11945 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
11946 * tree-vect-stmts.c (stmt_vectype): Same.
11947 (process_use): Same.
11948 (vect_init_vector_1): Same.
11949 (vect_truncate_gather_scatter_offset): Same.
11950 (get_group_load_store_type): Same.
11951 (vect_build_gather_load_calls): Same.
11952 (vect_get_strided_load_store_ops): Same.
11953 (vectorizable_simd_clone_call): Same.
11954 (vectorizable_store): Same.
11955 (permute_vec_elements): Same.
11956 (vectorizable_load): Same.
11957 (vect_transform_stmt): Same.
11958 (supportable_widening_operation): Same.
11959 * tree-vectorizer.c (vec_info::replace_stmt): Same.
11960 (vec_info::free_stmt_vec_info): Same.
11961 (vect_free_loop_info_assumptions): Same.
11962 (vect_loop_vectorized_call): Same.
11963 (set_uid_loop_bbs): Same.
11964 (vectorize_loops): Same.
11965 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
11966 * tree.c (add_tree_to_fld_list): Same.
11967 (fld_type_variant_equal_p): Same.
11968 (fld_decl_context): Same.
11969 (fld_incomplete_type_of): Same.
11970 (free_lang_data_in_binfo): Same.
11971 (need_assembler_name_p): Same.
11972 (find_decls_types_r): Same.
11973 (get_eh_types_for_runtime): Same.
11974 (find_decls_types_in_eh_region): Same.
11975 (find_decls_types_in_node): Same.
11976 (assign_assembler_name_if_needed): Same.
11977 * value-prof.c (stream_out_histogram_value): Same.
11978 * value-prof.h: Same.
11979 * var-tracking.c (use_narrower_mode): Same.
11980 (prepare_call_arguments): Same.
11981 (vt_expand_loc_callback): Same.
11982 (resolve_expansions_pending_recursion): Same.
11983 (vt_expand_loc): Same.
11984 * varasm.c (const_hash_1): Same.
11985 (compare_constant): Same.
11986 (tree_output_constant_def): Same.
11987 (simplify_subtraction): Same.
11988 (get_pool_constant): Same.
11989 (output_constant_pool_2): Same.
11990 (output_constant_pool_1): Same.
11991 (mark_constants_in_pattern): Same.
11992 (mark_constant_pool): Same.
11993 (get_section_anchor): Same.
11994 * vr-values.c (compare_range_with_value): Same.
11995 (vr_values::extract_range_from_phi_node): Same.
11996 * vr-values.h: Same.
11997 * web.c (unionfind_union): Same.
11998 * wide-int.h: Same.
12000 2019-07-09 Martin Sebor <msebor@redhat.com>
12003 * align.h: Change class-key from class to struct and vice versa
12004 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12005 * alloc-pool.h: Same.
12006 * asan.c (shadow_mem_size): Same.
12007 * auto-profile.c: Same.
12008 * basic-block.h: Same.
12010 * cfgexpand.c (set_rtl): Same.
12011 (expand_one_stack_var_at): Same.
12012 * cfghooks.h: Same.
12015 * config/i386/i386.h: Same.
12016 * df-problems.c (df_print_bb_index): Same.
12018 * df.h (df_single_use): Same.
12019 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12020 (layout::annotation_line_showed_range_p): Same.
12021 (get_printed_columns): Same.
12022 (correction::ensure_terminated): Same.
12023 (line_corrections::~line_corrections): Same.
12026 * dump-context.h: Same.
12027 * dumpfile.h: Same.
12028 * dwarf2out.c: Same.
12029 * edit-context.c: Same.
12030 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12032 * function.c (assign_stack_local): Same.
12033 * function.h: Same.
12035 * gcov.c (block_info::block_info): Same.
12036 * genattrtab.c: Same.
12037 * genextract.c: Same.
12038 * genmatch.c (comparison_code_p): Same.
12039 (id_base::id_base): Same.
12040 (decision_tree::print): Same.
12041 * genoutput.c: Same.
12042 * genpreds.c (write_one_predicate_function): Same.
12043 * genrecog.c (validate_pattern): Same.
12044 (find_operand_positions): Same.
12045 (optimize_subroutine_group): Same.
12046 (merge_pattern_transition::merge_pattern_transition): Same.
12047 (merge_pattern_info::merge_pattern_info): Same.
12048 (merge_state_result::merge_state_result): Same.
12049 (merge_into_state): Same.
12050 * gensupport.c: Same.
12051 * gensupport.h: Same.
12052 * ggc-common.c (init_ggc_heuristics): Same.
12053 * ggc-tests.c (test_union): Same.
12054 * gimple-loop-interchange.cc (dump_induction): Same.
12055 * gimple-loop-versioning.cc: Same.
12056 * gimple-match.h (gimple_match_cond::any_else): Same.
12057 * gimple-ssa-backprop.c: Same.
12058 * gimple-ssa-sprintf.c: Same.
12059 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12061 (store_immediate_info::store_immediate_info): Same.
12062 (merged_store_group::apply_stores): Same.
12063 (get_location_for_stmts): Same.
12064 * gimple-ssa-strength-reduction.c: Same.
12065 * gimple-ssa-warn-alloca.c: Same.
12066 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12067 * godump.c (go_type_decl): Same.
12068 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12069 * hash-map.h: Same.
12070 * hash-set-tests.c (test_set_of_strings): Same.
12071 * hsa-brig.c: Same.
12072 * hsa-common.h: Same.
12073 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12074 * input.c (assert_loceq): Same.
12077 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12078 * ipa-fnsummary.h: Same.
12079 * ipa-inline.h: Same.
12080 * ipa-prop.h: Same.
12081 * ipa-split.c (visit_bb): Same.
12082 * ira-int.h (minmax_set_iter_next): Same.
12083 * loop-invariant.c: Same.
12085 * lra-eliminations.c: Same.
12087 * lra-lives.c (mark_regno_dead): Same.
12088 * lra-remat.c: Same.
12089 * lra-spills.c: Same.
12090 * lto-streamer.h: Same.
12091 * mem-stats.h: Same.
12092 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12093 * omp-low.c (omp_clause_aligned_alignment): Same.
12094 * optabs-query.h (get_vcond_eq_icode): Same.
12096 * opts.c (wrap_help): Same.
12097 * poly-int.h: Same.
12098 * predict.c (predict_paths_leading_to_edge): Same.
12099 * pretty-print.h: Same.
12100 * profile-count.h: Same.
12102 * read-rtl-function.c: Same.
12105 * regrename.c: Same.
12106 * regrename.h: Same.
12108 * rtl-iter.h: Same.
12109 * rtl.h (costs_add_n_insns): Same.
12111 * sched-int.h: Same.
12112 * sel-sched-ir.h: Same.
12113 * selftest.h: Same.
12114 * sese.h (vec_find): Same.
12116 * target-globals.h: Same.
12117 * tree-affine.c (aff_combination_find_elt): Same.
12118 * tree-affine.h: Same.
12119 * tree-data-ref.h: Same.
12120 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12121 * tree-predcom.c: Same.
12122 * tree-scalar-evolution.c (find_var_scev_info): Same.
12123 * tree-ssa-alias.h: Same.
12124 * tree-ssa-ccp.c: Same.
12125 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12126 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12127 (rewrite_mem_refs): Same.
12128 (execute_sm_if_changed): Same.
12129 (hoist_memory_references): Same.
12130 * tree-ssa-loop-ivopts.c (operator<=): Same.
12131 * tree-ssa-loop.h: Same.
12132 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12133 * tree-ssa-structalias.c: Same.
12134 * tree-switch-conversion.h (cluster::cluster): Same.
12135 (simple_cluster::simple_cluster): Same.
12136 * tree-vect-patterns.c (type_conversion_p): Same.
12137 * tree-vectorizer.c (dump_stmt_cost): Same.
12138 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12139 * tree.c (protected_set_expr_location): Same.
12140 * tree.h (desired_pro_or_demotion_p): Same.
12141 (fndecl_built_in_p): Same.
12142 * unique-ptr-tests.cc: Same.
12143 * var-tracking.c (delete_variable_part): Same.
12144 * varasm.c (assemble_real): Same.
12145 (tree_output_constant_def): Same.
12147 * wide-int-bitmask.h: Same.
12148 * wide-int.h (decompose): Same.
12150 2019-07-09 Richard Biener <rguenther@suse.de>
12152 PR tree-optimization/91114
12153 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12154 find a vector type isn't fatal.
12156 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12158 * config/aarch64/aarch64-simd.md
12159 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12160 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12161 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12162 (*aarch64_crypto_aese_fused,
12163 *aarch64_crypto_aesd_fused): Update to new definition.
12164 * config/aarch64/aarch64.c
12165 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12167 2019-07-09 Richard Biener <rguenther@suse.de>
12169 * gimple-match.h (gimple_match_op::resimplify): New.
12170 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12171 gimple_resimplify4, gimple_resimplify5): Remove.
12172 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12173 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12175 (gimple_match_op::resimplify): New.
12176 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12177 according to availability. Use gimple_match_op::resimplify.
12179 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12181 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12183 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12185 * config/arm/crypto.md:
12186 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12187 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12188 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12189 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12191 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12192 * config/arm/aarch-common-protos.h
12193 (aarch_crypto_can_dual_issue): Remove.
12194 * config/arm/aarch-common.c
12195 (aarch_crypto_can_dual_issue): Likewise.
12196 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12197 * config/arm/cortex-a53.md: Likewise.
12198 * config/arm/cortex-a57.md: Likewise.
12199 * config/arm/iterators.md:
12200 (CRYPTO_BINARY): Redefine.
12201 (CRYPTO_UNARY): Removed.
12202 (CRYPTO_AES, CRYPTO_AESMC): New.
12204 2019-07-09 Richard Biener <rguenther@suse.de>
12206 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12207 (vn_reference_lookup_3): If the main ref has no access path recorded
12208 but orig_ref has use it to do access-path based disambiguation.
12209 (vn_reference_lookup_pieces): Adjust.
12210 (vn_reference_lookup): Pass down original ref if we valueized.
12212 2019-07-09 Martin Liska <mliska@suse.cz>
12214 * doc/extend.texi: Document influence on loop
12217 2019-07-09 Martin Liska <mliska@suse.cz>
12219 * lto-compress.c (lto_normalized_zstd_level): Do not use
12220 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12221 of libzstd. One can use 0 as a default compression level.
12223 2019-07-09 Martin Liska <mliska@suse.cz>
12225 * doc/invoke.texi: Add link from -fprofile-dir option.
12226 Use better wording for 'gcno filename'.
12228 2019-07-08 Martin Sebor <msebor@redhat.com>
12230 PR middle-end/71924
12231 PR middle-end/90549
12232 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12234 (args_loc_t): New type.
12235 (args_loc_t, locmap_t): same.
12236 (diag_returned_locals): New function.
12237 (is_addr_local): Same.
12238 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12239 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12240 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12242 2019-07-08 Jakub Jelinek <jakub@redhat.com>
12244 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12245 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
12246 and casts in offset when different, both through gimple stmts
12247 and through trees. Rewritten using loops to minimize code duplication
12250 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
12252 * emit-rtl.c (set_insn_locations): New function moved from...
12253 * function.c (set_insn_locations): ...here.
12254 * ira-emit.c (emit_moves): Propagate location of the first instruction
12255 to the inserted move instructions.
12256 * reg-stack.c (compensate_edge): Set the location if the sequence is
12257 inserted on the edge.
12258 * rtl.h (set_insn_locations): Declare.
12260 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12262 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
12263 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
12266 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12268 PR rtl-optimization/88233
12269 * common.opt (fsplit-wide-types-early): New option.
12270 * common/config/rs6000/rs6000-common.c
12271 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
12273 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
12274 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
12275 flag_split_wide_types_early.
12276 (pass_data_lower_subreg3): New.
12277 (pass_lower_subreg3): New.
12278 (make_pass_lower_subreg3): New.
12279 * passes.def (pass_lower_subreg2): Move after the loop passes.
12280 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
12281 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
12282 the pass pipeline; its previous place is taken by ...
12283 (make_pass_lower_subreg3): ... this.
12285 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12287 * config/s390/s390.c (s390_shift_truncation_mask): Define.
12288 (TARGET_SHIFT_TRUNCATION_MASK): Define.
12290 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12292 * config/s390/constraints.md: Add new jsc constraint.
12293 * config/s390/predicates.md: New predicates.
12294 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
12295 * config/s390/s390.c (s390_valid_shift_count): New function.
12296 (print_shift_count_operand): Use s390_valid_shift_count.
12297 (print_operand): Likewise.
12298 * config/s390/s390.md: Use new predicate.
12299 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
12300 * config/s390/vector.md: Use new predicate.
12302 2019-07-08 Andrew Waterman <andrew@sifive.com>
12303 Jim Wilson <jimw@sifive.com>
12305 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
12306 bitsize instead of BITS_PER_WORD.
12308 2019-07-08 Martin Liska <mliska@suse.cz>
12310 * collect2.c (defined): Revert to before r254460.
12311 (scan_prog_file): Revert to before r254460.
12313 2019-07-08 Richard Biener <rguenther@suse.de>
12315 PR tree-optimization/83518
12316 * tree-ssa-sccvn.c: Include splay-tree.h.
12317 (struct pd_range, struct pd_data): New.
12318 (struct vn_walk_cb_data): Add data to track partial definitions.
12319 (vn_walk_cb_data::~vn_walk_cb_data): New.
12320 (vn_walk_cb_data::push_partial_def): New.
12321 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
12322 (vn_reference_lookup_2): When partial defs are registered give up.
12323 (vn_reference_lookup_3): Track partial defs for memset and
12324 constructor zeroing and for defs from constants.
12326 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12328 * doc/install.texi (bootstrap-Og): Document.
12330 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12332 * config/riscv/pic.md (*local_pic_load_s<mode>)
12333 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
12334 referenced by <mode>, giving...
12335 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
12336 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
12337 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
12338 use <X:MODE> for the mode attribute.
12340 2019-07-07 Jeff Law <law@redhat.com>
12342 PR tree-optimization/91090
12343 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
12344 in handling of ranges to simplify switch statements.
12346 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12348 * config/darwin.c (darwin_override_options): Make a final check on PIC
12351 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12353 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
12354 on for kernel code.
12356 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12359 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
12360 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
12361 instead of matching them to "l" output operands.
12363 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12365 * config/mips/mips.c (mips_split_move): Zero-initialize addr
12366 and check whether addr.reg is nonnull before using it.
12368 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12370 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
12371 ctx->for_simd_scan_phase simd copy the outer var to the privatized
12372 variable(s). For conditional lastprivate look through outer
12373 GIMPLE_OMP_SCAN context.
12374 (lower_omp_1): For conditional lastprivate look through outer
12375 GIMPLE_OMP_SCAN context.
12377 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
12378 member to combined_into_simd_safelen1.
12379 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
12380 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
12381 clauses if ctx->combined_into_simd_safelen1 put statements after the
12382 predicate conditionalized block rather than into it.
12384 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12386 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
12388 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
12389 Make the choice of <mode> explicit, giving...
12390 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
12392 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12394 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
12395 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
12397 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
12398 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
12399 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
12400 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
12401 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
12402 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
12403 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
12404 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
12405 (*avx512f_scatterdi<mode>): Likewise.
12406 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
12408 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12410 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
12411 specify the mode iterator referenced by <mode>, giving...
12412 (*push1_h8300hs_<QHI:mode>): ...this.
12414 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12416 * config/gcn/gcn-valu.md
12417 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
12418 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
12419 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
12420 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
12421 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
12422 but using the _exec comparison patterns.
12423 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
12424 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
12425 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
12426 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
12427 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
12428 but using the _exec comparison patterns.
12430 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12432 * config/arm/sync.md
12433 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
12434 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
12435 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
12436 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
12437 <SIDI:cas_cmp_str>.
12439 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12441 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
12442 (maybe_lookup_ctx): Add forward declaration.
12443 (omp_find_scan): Likewise. Walk into body of simd if composited
12444 with worksharing loop.
12445 (scan_omp_simd_scan): New function.
12446 (scan_omp_1_stmt): Call it.
12447 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
12448 ctx->for_simd_scan_phase.
12449 (lower_rec_input_clauses): Do much less work for inscan reductions
12450 in ctx->for_simd_scan_phase is_simd regions.
12451 (lower_omp_scan): Set is_simd also on simd constructs composited
12452 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
12453 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
12454 emit their body after in simd constructs composited with worksharing
12456 (lower_omp_for_scan): Handle worksharing loop composited with simd.
12458 * omp-low.c (omp_find_scan): Make static.
12459 (lower_omp_for_scan): Fix order of merge arguments in input phase of
12460 the second loop, var2 represents the first partial sum and so needs
12461 to go before rprivb[ivar].
12463 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
12465 * config/rs6000/rs6000-logue.c: Remove unused code.
12467 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12469 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
12471 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
12474 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
12475 check with a frame laid out check.
12477 2019-07-05 Richard Biener <rguenther@suse.de>
12479 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
12480 when comparing against a store with possibly the same value.
12482 2019-07-05 Richard Biener <rguenther@suse.de>
12484 PR tree-optimization/91091
12485 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
12486 (walk_non_aliased_vuses): Likewise.
12487 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
12488 (get_continuation_for_phi): New tbaa_p parameter and pass
12490 (walk_non_aliased_vuses): Likewise.
12491 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
12492 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
12493 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
12495 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
12496 (adjust_offsets_for_equal_base_address): New function.
12497 (vn_reference_lookup_3): Use it to catch more base equivalences.
12498 Handle and pass down tbaa_p flag.
12499 (vn_reference_lookup_pieces): Adjust.
12500 (vn_reference_lookup): Remove alias-set altering, instead pass
12501 down false as tbaa_p.
12503 2019-07-05 Richard Biener <rguenther@suse.de>
12505 PR tree-optimization/91091
12506 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
12507 accesses can happen with -fno-strict-aliasing.
12509 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
12511 * tree-ssa-alias.c (alias_stats): Add
12512 nonoverlapping_component_refs_since_match_p_must_overlap.
12513 (dump_alias_stats): Print it.
12514 (nonoverlapping_component_refs_since_match_p): Add early exit.
12515 (nonoverlapping_component_refs_p): Do not account early exit.
12517 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12519 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
12520 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
12521 (emit_eh_dispatch): Delete.
12522 (lower_catch): Emit the eh_dispatch manually and set the location of
12523 the first catch statement onto it.
12524 (lower_eh_filter): Emit the eh_dispatch manually and set location.
12525 (lower_eh_dispatch): Propagate location.
12526 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
12527 (eliminate_build): Likewise.
12529 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12531 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
12532 phi nodes if possible.
12533 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
12534 location info on the newly created statement.
12535 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
12536 newly created increment if needed.
12538 2019-07-04 Jakub Jelinek <jakub@redhat.com>
12540 PR middle-end/78884
12541 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
12542 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
12543 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
12544 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
12545 ctx->add_safelen1 is set.
12547 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
12548 GOMP_loop_start at the start of second worksharing loop in a scan.
12549 For nowait, don't emit GOMP_loop_end_nowait at the end of first
12550 worksharing loop in a scan even if there are conditional lastprivates,
12551 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
12553 2019-07-04 Jan Hubicka <jh@suse.cz>
12555 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
12556 Fix check for match in the ref walk.
12558 2019-07-04 Martin Liska <mliska@suse.cz>
12560 * tree-ssa-loop-niter.c
12561 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
12562 (estimate_numbers_of_iterations):
12563 Support __builtin_expect_with_probability for analysis
12564 of # of loop iterations.
12566 2019-07-04 Alexandre Oliva <oliva@adacore.com>
12568 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
12569 * except.c: Likewise.
12570 * expr.c (expand_expr_real_1): Reject it.
12571 * gimplify.c (gimplify_expr): Gimplify it, within
12573 * tree-dump.c (dequeue_and_dump): Dump it.
12574 * tree-pretty-print.c (dump_generic_node): Likewise.
12575 * tree.c (block_may_fallthru): Handle it.
12576 * tree.def (EH_ELSE_EXPR): Introduce it.
12577 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
12578 with GIMPLE_EH_ELSE as try/finally/else.
12580 2019-07-04 Richard Biener <rguenther@suse.de>
12583 * tree-pass.h (execute_all_ipa_transforms): Add a flag
12584 parameter whether to disable GC collection.
12585 * passes.c (execute_one_ipa_transform_pass): Likewise, and
12587 (execute_all_ipa_transforms): Likewise and pass it down.
12588 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
12589 collection from applying IPA transforms.
12590 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
12591 from applying IPA transforms.
12593 2019-07-04 Richard Biener <rguenther@suse.de>
12595 PR tree-optimization/90911
12596 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
12597 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
12598 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
12599 scalar_loop_scaling.
12600 (vect_transform_loop): Scale scalar loop profile if needed.
12601 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
12602 the loop copy from if-conversion adjust edge probabilities
12603 and scale the vectorized loop body profile, queue the scalar
12604 profile for updating after peeling.
12606 2019-07-04 Jan Hubicka <jh@suse.cz>
12608 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
12609 parameters; return early for must-alias.
12610 (indirect_ref_may_alias_decl_p): Likewise; when establishing
12611 outer types match, try nonoverlapping_component_refs
12612 if must-alias is not obvious.
12613 (indirect_refs_may_alias_p): Likewise.
12614 (refs_may_alias_p_2): Likewise.
12616 2019-07-04 Richard Biener <rguenther@suse.de>
12618 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
12620 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
12622 (struct vn_walk_cb_data): New callback data struct.
12623 (vn_reference_lookup_2): Adjust.
12624 (vn_reference_lookup_3): Likewise.
12625 (vn_reference_lookup_pieces): Likewise.
12626 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
12627 (visit_reference_op_load): Adjust.
12629 2019-07-04 Jakub Jelinek <jakub@redhat.com>
12631 PR tree-optimization/91063
12632 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
12633 stmt from stmts sequence before calling vect_init_vector_1.
12636 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12639 * fwprop.c (reg_single_def_p): New function.
12640 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
12641 (forward_propagate_into): New parameter reg_prop_only
12642 with default value false.
12643 Propagate def's src into loop only if SET_SRC and SET_DEST
12644 of def_set have single definitions.
12645 Likewise if reg_prop_only is set to true.
12646 (fwprop): New param fwprop_addr_p.
12647 Integrate fwprop_addr into fwprop.
12648 (fwprop_addr): Remove.
12649 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
12651 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
12652 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
12653 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
12655 2019-07-04 Jakub Jelinek <jakub@redhat.com>
12657 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
12658 in worksharing loop scans.
12660 PR tree-optimization/91074
12661 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
12664 PR rtl-optimization/90756
12665 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
12668 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
12670 * config/aarch64/aarch64.md: Remove redundant constraints from
12671 define_expand but keep some patterns untouched if they are
12672 specially selected by TARGET_SECONDARY_RELOAD hook.
12673 * config/aarch64/aarch64-sve.md: Likewise.
12674 * config/aarch64/atomics.md: Remove redundant constraints from
12676 * config/aarch64/aarch64-simd.md: Likewise.
12678 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
12680 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
12681 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
12682 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
12684 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
12687 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
12689 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
12690 (STARTFILE_SPEC): Split crt3 into a separate spec.
12691 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
12692 (DARWIN_CRT2_SPEC): New.
12693 (DARWIN_CRT3_SPEC): New.
12694 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
12695 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
12696 (DARWIN_CRT3_SPEC): New.
12698 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
12700 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
12701 Change the RTL attribute "length" from "4" to "*" to allow the
12702 length attribute to be adjusted automatically for prefixed load,
12703 store, and add immediate instructions.
12704 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
12706 (extendsi<mode>2, EXTSI iterator): Likewise.
12707 (movsi_internal1): Likewise.
12708 (movsi_from_sf): Likewise.
12709 (movdi_from_sf_zero_ext): Likewise.
12710 (mov<mode>_internal): Likewise.
12711 (movcc_internal1, QHI iterator): Likewise.
12712 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
12713 (movsf_from_si): Likewise.
12714 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
12715 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
12716 (mov<mode>, FMOVE128 iterator): Likewise.
12717 (movdi_internal64): Likewise.
12718 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
12720 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
12721 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
12722 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
12723 (vsx_splat_v4sf): Likewise.
12725 2019-07-03 Mark Wielaard <mark@klomp.org>
12728 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
12729 DW_AT_addr_base if there is actually a .debug_addr section with
12731 (output_addr_table): Add DWARF5 table header generation here after
12732 checking there are actually any addresses from...
12733 (dwarf2out_finish): ...here.
12735 2019-07-03 Richard Biener <rguenther@suse.de>
12737 PR middle-end/91069
12738 * match.pd (vec_perm -> bit_insert): Fix element read from
12741 2019-07-03 Martin Liska <mliska@suse.cz>
12743 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
12744 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
12746 * generic-match-head.c: Include dbgcnt.h.
12747 * gimple-match-head.c: Likewise.
12749 2019-07-03 Martin Liska <mliska@suse.cz>
12751 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
12752 (GCOV_COUNTER_V_TOPN): New.
12753 (GCOV_COUNTER_V_INDIR): Use _topn.
12754 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
12755 (GCOV_TOPN_VALUES): New.
12756 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
12757 (GCOV_TOPN_VALUES_COUNTERS): New.
12758 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
12760 (gimple_init_gcov_profiler): Rename variables from one_value
12762 (gimple_gen_one_value_profiler): Remove.
12763 (gimple_gen_topn_values_profiler): New function.
12764 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
12765 names instead of SINGLE_VALUE.
12766 (stream_out_histogram_value): Likewise.
12767 (stream_in_histogram_value): Likewise.
12768 (get_most_common_single_value): Likewise.
12769 (gimple_divmod_fixed_value_transform): Likewise.
12770 (gimple_stringops_transform): Likewise.
12771 (gimple_divmod_values_to_profile): Likewise.
12772 (gimple_stringops_values_to_profile): Likewise.
12773 (gimple_find_values_to_profile): Likewise.
12774 * value-prof.h (enum hist_type): Rename to TOPN.
12775 (gimple_gen_one_value_profiler): Remove.
12776 (gimple_gen_topn_values_profiler): New.
12778 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
12780 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
12781 if it has the DW_AT_data_member_location attribute.
12783 2019-07-03 Richard Biener <rguenther@suse.de>
12785 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
12788 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
12790 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
12791 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
12792 (tlsdesc_small_sve_<mode>): Likewise.
12794 2019-07-03 Martin Liska <mliska@suse.cz>
12796 * Makefile.in: Define ZSTD_LIB.
12797 * common.opt: Adjust compression level
12798 to support also zstd levels.
12799 * config.in: Regenerate.
12800 * configure: Likewise.
12801 * configure.ac: Add --with-zstd and --with-zstd-include options
12803 * doc/install.texi: Mention zstd dependency.
12804 * gcc.c: Print supported LTO compression algorithms.
12805 * lto-compress.c (lto_normalized_zstd_level): Likewise.
12806 (lto_compression_zstd): Likewise.
12807 (lto_uncompression_zstd): Likewise.
12808 (lto_end_compression): Dispatch in between zlib and zstd.
12809 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
12810 (lto_uncompression_zlib): Make it static.
12811 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
12812 * lto-section-in.c (lto_get_section_data): Pass info
12813 about used compression.
12814 * lto-streamer-out.c: By default use zstd when possible.
12815 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
12816 (TV_IPA_LTO_COMPRESS): Likewise for compression.
12818 2019-07-03 Martin Liska <mliska@suse.cz>
12820 * lto-section-in.c (lto_get_section_data): Add "lto" section.
12821 * lto-section-out.c (lto_destroy_simple_output_block): Never
12822 compress LTO_section_lto section.
12823 * lto-streamer-out.c (produce_asm): Do not set major_version
12825 (lto_output_toplevel_asms): Likewise.
12826 (produce_lto_section): New function.
12827 (lto_output): Call produce_lto_section.
12828 (lto_write_mode_table): Do not set major_version and
12830 (produce_asm_for_decls): Likewise.
12831 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
12833 (struct lto_header): Remove.
12834 (struct lto_section): New struct.
12835 (struct lto_simple_header): Do not inherit from lto_header.
12836 (struct lto_file_decl_data): Add lto_section_header field.
12838 2019-07-03 Martin Liska <mliska@suse.cz>
12840 * lra-eliminations.c (eliminate_regs_in_insn): Remove
12842 * reg-stack.c (check_asm_stack_operands): Likewise.
12843 * tree-ssa-structalias.c (create_function_info_for): Likewise.
12844 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
12845 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
12846 force_expand_binop.
12848 2019-07-03 Martin Liska <mliska@suse.cz>
12850 PR tree-optimization/90892
12851 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
12852 in string constants.
12854 2019-07-03 Martin Liska <mliska@suse.cz>
12856 PR middle-end/90899
12857 * multiple_target.c (create_dispatcher_calls): Add to comdat
12858 group only if set for ifunc.
12860 2019-07-03 Martin Liska <mliska@suse.cz>
12863 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
12864 Define local_object_name in outer scope in order to handle
12865 use-after-scope issue.
12867 2019-07-03 Martin Liska <mliska@suse.cz>
12869 * common.opt: Add fprofile-note.
12870 * coverage.c (coverage_init): Append the option
12872 * doc/invoke.texi: Document -fprofile-note.
12874 2019-07-03 Jakub Jelinek <jakub@redhat.com>
12876 PR tree-optimization/91033
12877 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
12878 vect_analyze_data_refs): Add bool * arguments.
12879 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
12880 if failure is due to scatter/gather, set *fatal to false if non-NULL.
12881 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
12882 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
12883 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
12884 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
12885 vect_analyze_data_refs caller.
12887 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
12889 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
12890 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
12891 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
12892 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
12893 OMP_CLAUSE__SCANTEMP_ entry.
12894 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
12895 * tree-pretty-print.c (dump_omp_clause): Likewise.
12896 * tree-nested.c (convert_nonlocal_omp_clauses,
12897 convert_local_omp_clauses): Likewise.
12898 * omp-general.h (struct omp_for_data): Add have_scantemp and
12899 have_nonctrl_scantemp members.
12900 * omp-general.c (omp_extract_for_data): Initialize them.
12901 * omp-low.c (struct omp_context): Add scan_exclusive member.
12902 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
12903 result again with GF_OMP_FOR_KIND_MASK. Initialize also
12904 ctx->scan_exclusive.
12905 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
12906 of !ctx->scan_inclusive.
12907 (lower_rec_input_clauses): Simplify gimplification of dtors using
12908 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
12909 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
12910 loops. Don't add barrier for reduction_omp_orig_ref if
12911 ctx->scan_??xclusive.
12912 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
12913 (lower_omp_scan): Use ctx->scan_exclusive instead
12914 of !ctx->scan_inclusive. Handle worksharing loops with inscan
12915 reductions. Use new_vard != new_var instead of repeated
12916 omp_is_reference calls.
12917 (omp_find_scan, lower_omp_for_scan): New functions.
12918 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
12920 * omp-expand.c (expand_omp_scantemp_alloc): New function.
12921 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
12922 and fd->have_scantemp.
12924 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
12925 on worksharing loop propagate it as shared clause to containing
12928 * omp-expand.c (expand_omp_for_static_nochunk,
12929 expand_omp_for_static_chunk): For nowait worksharing loop with
12930 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
12933 2019-07-02 qing zhao <qing.zhao@oracle.com>
12935 PR preprocessor/90581
12936 * doc/cppopts.texi: Add document for -fmax-include-depth.
12937 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
12939 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
12941 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
12942 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
12943 (mmx_packssdw): Ditto.
12944 (mmx_punpckhbw): Ditto.
12945 (mmx_punpcklbw): Ditto.
12946 (mmx_punpckhwd): Ditto.
12947 (mmx_punpcklwd): Ditto.
12948 (mmx_punpckhdq): Ditto.
12949 (mmx_punpckldq): Ditto.
12950 (*vec_dupv4hi): Ditto.
12951 (*vec_dupv2si): Ditto.
12952 (mmx_pmovmskb): Ditto.
12953 * config/i386/sse.md (sse_cvtpi2ps): Use
12954 TARGET_SSE2 && SSE_REG_P in split condition.
12955 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
12956 TARGET_SSSE3 && SSE_REGNO_P in split condition.
12957 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
12958 (ssse3_pshufbv8qi3): Ditto.
12959 (ssse3_palignrdi): Ditto.
12961 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
12963 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
12964 with inlined save and restore.
12966 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
12968 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
12969 to be inserted on single successor edge of the entry block. Then call
12970 commit_edge_insertions instead of inserting the instructions manually.
12971 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
12972 RTL expansion and rebuild jump labels chain.
12974 2019-07-02 Richard Biener <rguenther@suse.de>
12976 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
12978 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
12980 * tree.c (build_common_tree_nodes): Initialize them.
12981 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
12982 Make declarations comments.
12983 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
12984 chrec_known): Remove definitions.
12985 (initialize_scalar_evolutions_analyzer): Remove.
12986 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
12987 * tree-streamer.c (preload_common_nodes): Do not preload
12988 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
12990 2019-07-02 Jan Hubicka <jh@suse.cz>
12992 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
12995 2019-07-02 Jan Hubicka <jh@suse.cz>
12997 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
12999 (nonoverlapping_component_refs_since_match_p): ... this one;
13000 handle also non-decl bases; return -1 if search gave up.
13001 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13002 nonoverlapping_component_refs_of_decl_p_no_alias to
13003 nonoverlapping_component_refs_since_match_p_may_alias,
13004 nonoverlapping_component_refs_since_match_p_no_alias.
13005 (dump_alias_stats): Update dumping.
13006 (aliasing_matching_component_refs_p): Break out from ...;
13007 dispatch to nonoverlapping_component_refs_for_decl_p
13008 and nonoverlapping_component_refs_since_match_p.
13009 (aliasing_component_refs_p): ... here; call
13010 nonoverlapping_component_refs_p in scenarios where we can not
13011 precisely determine base match.
13012 (decl_refs_may_alias_p): Use
13013 nonoverlapping_component_refs_since_match_p.
13014 (indirect_ref_may_alias_decl_p): Do not call
13015 nonoverlapping_component_refs_p.
13016 (indirect_refs_may_alias_p): Likewise.
13018 2019-07-02 Jan Hubicka <jh@suse.cz>
13020 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13021 to clobber of return value.
13023 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13025 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13026 for is_neon_type instructions that have not already been categorized.
13028 2019-07-02 Richard Biener <rguenther@suse.de>
13030 PR tree-optimization/58483
13031 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13032 for MEM_REF base hashing.
13033 (equal_mem_array_ref_p): Likewise for base comparison.
13035 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13037 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13038 parameterized name.
13039 (signbit<mode>2): Use that name. Simplify.
13041 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13043 PR middle-end/66726
13044 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13045 Tune heuristic from PR71016 to allow MIN / MAX.
13047 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13049 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13050 parameterized name.
13051 (abs<mode>2): Use that name. Simplify.
13053 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13055 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13056 parameterized name.
13057 (neg<mode>2): Use that name. Simplify.
13059 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13061 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13063 (abs<mode>2): Use that name. Simplify.
13065 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13067 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13069 (neg<mode>2): Use that name. Simplify.
13071 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13073 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13074 ("enabled" attribute): Handle sse_noavx isa attribute.
13075 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13076 Use TARGET_SSE && SSE_REGNO_P in split condition.
13077 (*vec_dupv2sf): Ditto.
13079 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13081 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13083 (floatsi<mode>2): Use that name. Simplify.
13085 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13087 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13088 parameterized name.
13089 (extenddf<mode>2_vsx): Make this a parameterized name.
13090 (extenddf<mode>2): Use those names. Simplify.
13092 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13094 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13096 (eh_return): Use that name. Simplify.
13098 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13100 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13101 (doloop_end): Use that name. Simplify.
13103 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13105 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13106 parameterized name.
13107 (indirect_jump): Use that name. Simplify.
13109 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13111 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13112 parameterized name.
13113 (abs<mode>2): Use that name. Simplify.
13115 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13117 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13118 parameterized name.
13119 (fix_trunc<mode>si2): Use that name. Simplify.
13121 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13123 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13124 (allocate_stack): Use that name. Simplify.
13126 2019-07-01 Martin Sebor <msebor@redhat.com>
13128 PR middle-end/90923
13129 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13130 (hash_map::get_or_insert): Same. Reformat comment.
13131 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13132 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13133 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13134 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13135 (hash_table::hash_table (const hash_table&)): Use copy ctor
13136 instead of assignment to copy elements.
13138 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13139 John David Anglin <danglin@gcc.gnu.org>
13142 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13143 using saved frame pointer.
13145 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13147 PR middle-end/64242
13148 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13149 Add frame clobber and schedule blockage.
13151 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13153 * doc/invoke.texi (Link Options): Further editorial changes to
13154 -flinker-output docs.
13156 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13158 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13159 Load both operands of a PLUS into registers separately.
13161 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13163 * config/s390/vector.md: Fix shift count operand printing.
13165 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13167 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13169 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13171 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13172 Use recog_data to test for an output operand.
13174 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13176 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13177 exclude any others that are disparaged or that are bound to need
13179 (ira_get_dup_out_num): Expand comment.
13181 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13183 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13184 constraint string for each operand/alternative combo. Only handle
13185 '%' at the start of constraint strings, and look for it outside
13188 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13190 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13191 alternative_mask instead of HARD_REG_SET to represent a
13192 bitmask of alternatives.
13193 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13194 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13196 2019-07-01 Martin Liska <mliska@suse.cz>
13198 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13199 use () for a constructor call.
13200 (test_applying_fixits_line_out_of_range): Likewise.
13201 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13203 (free_page): Likewise.
13205 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13207 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13208 parameter names to match usage (no functional change).
13209 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13211 2019-07-01 Richard Biener <rguenther@suse.de>
13213 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13215 (pass_fre::execute): Honor it.
13216 * passes.def: Adjust pass_fre invocations to allow iterating,
13217 add non-iterating pass_fre before late threading/dom.
13219 2019-07-01 Richard Biener <rguenther@suse.de>
13221 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13222 TARGET_MEM_REF handling to also handle address-taken ones.
13224 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13226 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13227 hardware attributes): Document avx512vp2intersect.
13229 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13231 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13232 (abs<mode>2): New expander.
13233 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13234 Use CODE_FOR_ssse3_absv8qi2.
13235 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13236 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13238 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13240 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13241 to sse, sse_noavx and avx. Update all uses.
13243 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13245 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13246 (*mmx_<plusminus_insn><mode>3): Ditto.
13247 (*mmx_mulv4hi3"): Ditto.
13248 (*mmx_smulv4hi3_highpart): Ditto.
13249 (*mmx_umulv4hi3_highpart): Ditto.
13250 (*mmx_pmaddwd): Ditto.
13251 (*sse2_umulv1siv1di3): Ditto.
13252 (*mmx_<code>v4hi3): Ditto.
13253 (*mmx_<code>v8qi3): Ditto.
13254 (mmx_ashr<mode>3): Ditto.
13255 ("mmx_<shift_insn><mode>3): Ditto.
13256 (*mmx_eq<mode>3): Ditto.
13257 (mmx_gt<mode>3): Ditto.
13258 (mmx_andnot<mode>3): Ditto.
13259 (*mmx_<code><mode>3): Ditto.
13260 (*mmx_pinsrw): Ditto.
13261 (*mmx_pextrw): Ditto.
13262 (mmx_pshufw_1): Ditto.
13263 (*mmx_uavgv8qi3): Ditto.
13264 (*mmx_uavgv4hi3): Ditto.
13265 ("mmx_psadbw): Ditto.
13266 * config/i386/sse.md (sse_cvtps2pi): Ditto.
13267 (sse_cvttps2pi): Ditto.
13268 (ssse3_pmaddubsw): Ditto.
13269 (*ssse3_pmulhrswv4hi3): Ditto.
13270 (ssse3_psign<mode>3): Ditto.
13272 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
13274 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
13275 adjustment for bit-fields to all aggregate types.
13277 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
13279 * config/rs6000/predicates.md (pcrel_address): Use
13280 SYMBOL_REF_LOCAL_P to determine if a label is local.
13281 (pcrel_external_address): New predicate.
13282 (non_prefixed_mem_operand): Delete, predicate not used.
13283 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
13284 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
13286 (SYMBOL_REF_PCREL_P): Likewise.
13289 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
13291 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
13292 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
13293 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
13295 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13297 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
13298 override on extra_headers.
13300 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13302 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
13303 * config/darwin-driver.c (darwin_default_min_version): Remove newline
13305 (darwin_driver_init): Likewise.
13307 2019-06-28 Jan Beulich <jbeulich@suse.com>
13309 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13310 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
13311 Eliminate redundant alternative.
13313 2019-06-28 Jan Beulich <jbeulich@suse.com>
13315 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13316 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
13317 Use vector_operand.
13319 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
13321 * config/arc/arc.c (arc_rtx_costs): All short instructions are
13322 having a lower cost regardless of the speed option.
13324 2019-06-28 Jan Beulich <jbeulich@suse.com>
13326 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
13327 vector_operand plus, on both alternatives, "Bm" constraint.
13329 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
13331 * config/arm/arm.md: Remove redundant constraints from
13332 define_expand but leave reload_inm and reload_outm patterns
13333 untouched since they need special constraints to work.
13334 * config/arm/arm-fixed.md: Remove redundant constraints from
13336 * config/arm/iwmmxt.md: Likewise.
13337 * config/arm/neon.md: Likewise.
13338 * config/arm/sync.md: Likewise.
13339 * config/arm/thumb1.md: Likewise.
13340 * config/arm/vec-common.md: Likewise.
13342 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
13344 * doc/install.texi: Document --disable-tm-clone-registry.
13346 2019-06-27 Jakub Jelinek <jakub@redhat.com>
13349 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
13352 PR tree-optimization/91010
13353 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
13354 return true. Otherwise, don't call operand_equal_p if offset1 or
13355 offset2 is NULL and just return false.
13357 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13359 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
13360 user-specified float mode choice for kernel mode code.
13362 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13364 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
13367 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13369 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
13370 use longcall for 64b code.
13372 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
13374 * builtins.c (get_memory_rtx): Fix comment.
13375 * optabs.def (movmem_optab): Change to cpymem_optab.
13376 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
13377 (emit_block_move_hints): Change movmem to cpymem.
13378 * defaults.h: Change movmem to cpymem.
13379 * targhooks.c (get_move_ratio): Change movmem to cpymem.
13380 (default_use_by_pieces_infrastructure_p): Ditto.
13381 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
13382 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
13384 * config/aarch64/aarch64.h: Change movmem to cpymem.
13385 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
13386 * config/alpha/alpha.h: Change movmem to cpymem in comment.
13387 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
13389 * config/arc/arc-protos.h: Change movmem to cpymem.
13390 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
13391 * config/arc/arc.h: Change movmem to cpymem in comment.
13392 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
13393 * config/arm/arm-protos.h: Change movmem to cpymem in names.
13394 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
13395 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
13396 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
13397 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
13398 * config/avr/avr-protos.h: Change movmem to cpymem.
13399 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
13400 avr_out_movmem): Change movmem to cpymem.
13401 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
13402 Change movmem to cpymem.
13403 * config/bfin/bfin-protos.h: Change movmem to cpymem.
13404 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
13405 Change movmem to cpymem.
13406 * config/bfin/bfin.h: Change movmem to cpymem in comment.
13407 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
13408 * config/c6x/c6x-protos.h: Change movmem to cpymem.
13409 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
13410 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
13411 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
13412 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
13413 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
13414 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
13415 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
13416 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
13417 expand_small_cpymem_or_setmem,
13418 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
13419 expand_set_or_cpymem_constant_prologue,
13420 ix86_expand_set_or_cpymem): Change movmem to cpymem.
13421 * config/i386/i386-protos.h: Change movmem to cpymem.
13422 * config/i386/i386.h: Change movmem to cpymem in comment.
13423 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
13424 (setmem<mode>): Change expansion function name.
13425 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
13426 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
13427 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
13428 * config/m32c/m32c-protos.h: Change movmem to cpymem.
13429 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
13430 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
13431 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
13433 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
13434 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
13435 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
13436 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
13437 Change movmem to cpymem.
13438 * config/mips/mips.h: Change movmem to cpymem.
13439 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
13440 * config/nds32/nds32-memory-manipulation.c
13441 (nds32_expand_movmemsi_loop_unknown_size,
13442 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
13443 nds32_expand_movmemsi_unroll,
13444 nds32_expand_movmemsi): Change movmem to cpymem.
13445 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
13446 * config/nds32/nds32-protos.h: Change movmem to cpymem.
13447 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
13448 (pa_adjust_insn_length): Change call to compute_movmem_length.
13449 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
13450 movmemdi, movmemdi_prereload,
13451 movmemdi_postreload): Change movmem to cpymem.
13452 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
13453 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
13454 * config/riscv/riscv.c: Change movmem to cpymem in comment.
13455 * config/riscv/riscv.h: Change movmem to cpymem.
13456 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
13457 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
13458 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
13460 * config/s390/s390-protos.h: Change movmem to cpymem.
13461 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
13462 s390_expand_insv): Change movmem to cpymem.
13463 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
13464 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
13465 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
13466 * config/sparc/sparc.h: Change movmem to cpymem in comment.
13467 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
13468 for nonexistent function.
13469 * config/vax/vax.h: Change movmem to cpymem in comment.
13470 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
13471 * config/visium/visium.h: Change movmem to cpymem in comment.
13472 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
13473 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
13474 * doc/md.texi: Change movmem to cpymem and update description to match.
13475 * doc/rtl.texi: Change movmem to cpymem.
13476 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
13477 * doc/tm.texi: Regenerate.
13479 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
13481 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
13482 -fvariable-expansion-in-unroller by default.
13483 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
13486 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
13489 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
13490 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
13492 * config.gcc(rs6000-*-*): Define target_gtfiles.
13494 2019-06-27 Jan Hubicka <jh@suse.cz>
13496 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
13497 (add_type_duplicate): When odr hash is not allocated, to nothing.
13498 (odr_based_tbaa_p): New function.
13499 (set_type_canonical_for_odr_type): New function.
13500 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
13501 set_type_canonical_for_odr_type): New.
13502 * tree.c (gimple_canonical_types_compatible_p): ODR types with
13503 ODR based TBAA are not equivalent to non-ODR types.
13505 2019-06-27 Martin Liska <mliska@suse.cz>
13507 PR tree-optimization/90974
13508 PR rtl-optimization/90975
13509 PR rtl-optimization/90976
13511 PR tree-optimization/91017
13512 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
13514 * lra.c (lra_set_insn_recog_data): Remove a leftover from
13515 initial commit of IRA.
13516 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
13518 * tree-vect-loop.c (vect_create_epilog_for_reduction):
13519 Remove unused mode1.
13520 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
13523 2019-06-27 Jakub Jelinek <jakub@redhat.com>
13526 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
13527 instead of register_operand for operands[1], add m to its constraints
13528 if operands[2] uses "C" constraint. Ensure in condition that if
13529 operands[2] is not 0, then operands[1] is not a MEM. For last two
13530 alternatives, use unaligned loads instead of aligned if operands[1] is
13531 misaligned_operand.
13533 2019-06-27 Martin Liska <mliska@suse.cz>
13535 * asan.c (asan_emit_allocas_unpoison): Remove obviously
13537 * bt-load.c (move_btr_def): Likewise.
13538 * builtins.c (expand_builtin_apply_args_1): Likewise.
13539 (expand_builtin_apply): Likewise.
13540 * cfgexpand.c (expand_asm_stmt): Likewise.
13541 (construct_init_block): Likewise.
13542 * cfghooks.c (verify_flow_info): Likewise.
13543 * cfgloopmanip.c (remove_path): Likewise.
13544 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
13545 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
13546 * combine.c (simplify_if_then_else): Likewise.
13547 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
13548 (choose_basereg): Likewise.
13549 (ix86_expand_prologue): Likewise.
13550 (ix86_preferred_output_reload_class): Likewise.
13551 * cselib.c (cselib_record_sets): Likewise.
13552 * df-scan.c (df_scan_alloc): Likewise.
13553 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
13554 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
13555 * emit-rtl.c (try_split): Likewise.
13556 * graphite-scop-detection.c (assign_parameter_index_in_region):
13558 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
13559 * ira-color.c (setup_profitable_hard_regs): Likewise.
13560 * ira.c (rtx_moveable_p): Likewise.
13561 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
13562 * read-rtl.c (read_subst_mapping): Likewise.
13563 * regrename.c (scan_rtx): Likewise.
13564 * reorg.c (fill_slots_from_thread): Likewise.
13565 * tree-inline.c (tree_function_versioning): Likewise.
13566 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
13567 * tree-ssa-sink.c (statement_sink_location): Likewise.
13568 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
13569 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
13570 (vect_create_epilog_for_reduction): Likewise.
13571 * tree.c (build_nonstandard_integer_type): Likewise.
13573 2019-06-27 Richard Biener <rguenther@suse.de>
13575 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
13577 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
13579 PR tree-optimization/89772
13580 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
13581 out-of-bound accesses checking.
13583 2019-06-27 Martin Liska <mliska@suse.cz>
13585 PR tree-optimization/91014
13586 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
13587 when LHS is NULL_TREE.
13589 2019-06-27 Martin Liska <mliska@suse.cz>
13591 * symbol-summary.h (traverse): Pass
13592 argument a to the call of callback.
13593 (gt_ggc_mx): Mark arguments as unused.
13594 (gt_pch_nx): Likewise.
13596 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
13599 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
13602 2019-06-26 Jeff Law <law@redhat.com>
13604 PR tree-optimization/90883
13605 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
13606 (delete_dead_or_redundant_assignment): Likewise.
13608 PR tree-optimization/90883
13609 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
13610 * tree-ssa-dse.c: Update various comments to distinguish between
13611 dead and redundant stores.
13612 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
13613 (dse_optimize_redundant_stores): New function.
13614 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
13615 Distinguish between dead and redundant calls in dump output. All
13617 (delete_dead_or_redundant_assignment): Similarly for assignments.
13618 (dse_optimize_stmt): Handle _CHK variants. For statements which
13619 store 0 into multiple memory locations, try to prove a subsequent
13620 store is redundant.
13622 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
13625 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
13626 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
13628 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
13630 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
13631 (branch_islands): New extern.
13632 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
13633 * config/rs6000/rs6000.c: .. here.
13635 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
13637 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
13638 (powerpc*-*-*) ... to here.
13640 2019-06-26 Jeff Law <law@redhat.com>
13642 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
13643 memcpy, memmove and memset builtins.
13644 (maybe_trim_memstar_call): Likewise.
13646 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
13648 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
13650 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
13652 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
13654 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
13656 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
13658 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
13660 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
13663 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
13665 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
13667 2019-06-26 Richard Biener <rguenther@suse.de>
13670 * tree-inline.c (remap_ssa_name): Copy SSA range info.
13672 2019-06-26 Richard Biener <rguenther@suse.de>
13674 * lto-streamer.h (lto_bitmap_alloc): Remove.
13675 (lto_bitmap_free): Likewise.
13676 * lto-streamer.c (lto_bitmap_alloc): Remove.
13677 (lto_bitmap_free): Likewise.
13678 (lto_obstack): Likewise.
13679 (lto_obstack_initialized): Likewise.
13680 * lto-streamer-out.c (lto_output): Use own obstack for local
13681 bitmap, free it consistently.
13683 2019-06-26 Jakub Jelinek <jakub@redhat.com>
13686 * config/i386/sse.md
13687 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
13688 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
13689 insns if operands[2] is misaligned_operand.
13691 2019-06-26 Li Jia He <helijia@linux.ibm.com>
13693 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
13695 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
13698 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
13700 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
13702 2019-06-26 Martin Liska <mliska@suse.cz>
13704 PR tree-optimization/90973
13705 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
13706 epilogue_cost_vec instead of prologue_cost_vec for
13709 2019-06-26 Martin Liska <mliska@suse.cz>
13711 * bb-reorder.c (connect_better_edge_p): Add missing else
13712 statement in the middle of if-else statements.
13714 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
13715 H.J. Lu <hongjiu.lu@intel.com>
13716 Olga Makhotina <olga.makhotina@intel.com>
13718 * common/config/i386/i386-common.c
13719 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
13720 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
13721 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
13722 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
13723 (ix86_handle_option): Handle -mavx512vp2intersect.
13724 * config/i386/avx512vp2intersectintrin.h: New.
13725 * config/i386/avx512vp2intersectvlintrin.h: New.
13726 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
13727 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13728 AVX512VP2INTERSECT.
13729 * config/i386/i386-builtin-types.def: Add new types.
13730 * config/i386/i386-builtin.def: Add new builtins.
13731 * config/i386/i386-builtins.c: (enum processor_features): Add
13732 F_AVX512VP2INTERSECT.
13733 (static const _isa_names_table isa_names_table): Ditto.
13734 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13735 __AVX512VP2INTERSECT__.
13736 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
13737 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
13738 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
13739 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
13740 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
13741 * config/i386/i386-options.c (ix86_target_string): Add
13742 -mavx512vp2intersect.
13743 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
13744 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
13745 P2HImode and P2QImode.
13746 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
13747 number for P2QImode and P2HImode.
13748 (ix86_regmode_natural_size): New function.
13749 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
13750 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
13751 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
13752 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
13753 * config/i386/i386.opt: Add -mavx512vp2intersect.
13754 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
13755 avx512vp2intersectvlintrin.h.
13756 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
13757 (define_mode_iterator VI48_AVX512VP2VL): New.
13758 (avx512vp2intersect_2intersect<mode>,
13759 avx512vp2intersect_2intersectv16si): New define_insn patterns.
13760 * config.gcc: Add avx512vp2intersectvlintrin.h and
13761 avx512vp2intersectintrin.h to extra_headers.
13762 * doc/invoke.texi: Document -mavx512vp2intersect.
13764 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
13766 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
13768 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
13770 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
13771 savres_routine_syms, savres_routine_name, morestack_ref,
13772 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
13773 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
13774 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
13775 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
13776 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
13777 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
13778 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
13779 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
13780 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
13781 get_stack_clash_protection_probe_interval,
13782 get_stack_clash_protection_guard_size,
13783 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
13784 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
13785 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
13786 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
13787 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
13788 gen_frame_mem_offset, rs6000_savres_routine_name,
13789 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
13790 ptr_regno_for_savres, rs6000_emit_savres_rtx,
13791 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
13792 rs6000_global_entry_point_prologue_needed_p,
13793 rs6000_get_separate_components, rs6000_components_for_bb,
13794 rs6000_disqualify_components, rs6000_emit_prologue_components,
13795 rs6000_emit_epilogue_components, rs6000_set_handled_components,
13796 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
13797 rs6000_output_savres_externs, rs6000_output_function_prologue,
13798 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
13799 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
13800 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
13801 rs6000_output_function_epilogue, gen_add3_const,
13802 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
13803 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
13805 (machine_function): Moved to rs6000.h.
13806 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
13808 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
13809 savres_routine_syms, savres_routine_name, morestack_ref,
13810 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
13811 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
13812 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
13813 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
13814 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
13815 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
13816 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
13817 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
13818 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
13819 get_stack_clash_protection_probe_interval,
13820 get_stack_clash_protection_guard_size,
13821 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
13822 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
13823 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
13824 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
13825 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
13826 gen_frame_mem_offset, rs6000_savres_routine_name,
13827 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
13828 ptr_regno_for_savres, rs6000_emit_savres_rtx,
13829 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
13830 rs6000_global_entry_point_prologue_needed_p,
13831 rs6000_get_separate_components, rs6000_components_for_bb,
13832 rs6000_disqualify_components, rs6000_emit_prologue_components,
13833 rs6000_emit_epilogue_components, rs6000_set_handled_components,
13834 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
13835 rs6000_output_savres_externs, rs6000_output_function_prologue,
13836 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
13837 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
13838 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
13839 rs6000_output_function_epilogue, gen_add3_const,
13840 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
13841 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
13842 to here from rs6000.c.
13843 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
13844 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
13845 quad_address_offset_p) Moved to here from rs6000.c.
13846 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
13847 * config/config.gcc: Add new source file rs6000-logue.c to garbage
13850 2019-06-25 Martin Liska <mliska@suse.cz>
13852 * hash-table.c (hashtab_chk_error): Move here from ...
13853 * hash-table.h (hashtab_chk_error): ... here.
13855 2019-06-25 Martin Liska <mliska@suse.cz>
13857 PR tree-optimization/90978
13858 * df-scan.c (df_update_entry_block_defs): Remove dead else
13860 (df_update_exit_block_uses): Likewise.
13862 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
13863 Andrew Stubbs <ams@codesourcery.com>
13865 * config.gcc (thread_file): Set to gcn for AMD GCN.
13866 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
13867 (TARGET_EMUTLS_VAR_INIT): New hook.
13869 2019-06-25 Martin Jambor <mjambor@suse.cz>
13872 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
13874 2019-06-25 Richard Biener <rguenther@suse.de>
13876 PR tree-optimization/90930
13877 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
13878 into parallel form in the last pass instance.
13880 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
13882 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
13883 (arc_legitimize_pic_address): Simplify and cleanup the function.
13884 (SYMBOLIC_CONST): Remove.
13885 (prepare_pic_move): Likewise.
13886 (prepare_move_operands): Handle complex mov cases here.
13887 (arc_legitimize_address_0): Remove call to
13888 arc_legitimize_pic_address.
13889 (arc_legitimize_address): Remove call to
13890 arc_legitimize_tls_address.
13891 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
13892 (movhi_insn): Likewise.
13894 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13896 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
13898 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
13899 format of "__intN" types for UINTMAX_TYPE.
13900 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
13901 format of "__intN" types for SIZETYPE.
13902 * tree.c (build_common_tree_nodes): Accept "__intN__"
13903 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
13904 * doc/invoke.texi: Document that __intN__ disables pedantic
13907 2019-06-25 Jan Hubicka <jh@suse.cz>
13909 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
13910 base2_alias_set is non-zero before doing TBAA based disambiguation.
13912 2019-06-25 Martin Liska <mliska@suse.cz>
13914 PR tree-optimization/90973
13915 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
13916 of prologue and epilogue.
13918 2019-06-24 Jan Hubicka <jh@suse.cz>
13920 * ipa-utils.h (type_with_linkage_p): Verify that type is
13922 (odr_type_p): Remove extra return.
13923 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
13924 hash STRING_FLAG only for arrays and integers.
13925 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
13926 Update analogously.
13927 * tree-streamer-out.c (pack_ts_type_common_value_fields):
13929 * print-tree.c (print_node): Print cxx-odr-p
13931 * tree.c (need_assembler_name_p): Also check that type
13933 (verify_type_variant): Update verification of SRING_FLAG;
13934 also check CXX_ODR_P.
13935 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
13936 (TYPE_STRING_FLAG): Use it.
13937 (TYPE_CXX_ODR_P): New macro.
13938 * dwarf2out.c (gen_array_type_die): First check that type
13939 is an array and then test string flag.
13941 2019-06-24 Richard Biener <rguenther@suse.de>
13943 PR tree-optimization/90972
13944 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
13945 in common code, dealing with STRING_CST properly.
13947 2019-06-24 Richard Biener <rguenther@suse.de>
13949 PR tree-optimization/90930
13950 PR tree-optimization/90316
13951 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
13952 decrement of limit.
13954 2019-06-24 Martin Sebor <msebor@redhat.com>
13956 * tree-pretty-print.h: Remove unnecessary punctuation characters
13958 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
13960 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
13962 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
13963 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
13964 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
13966 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
13968 * config/rs6000/darwin.h: Handle GCC target pragma.
13970 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
13972 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
13974 2019-06-22 Jeff Law <law@redhat.com>
13976 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13978 2019-06-22 Jan Hubicka <jh@suse.cz>
13980 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
13981 give up on bitfields; continue searching for different refs
13984 2019-06-21 Jakub Jelinek <jakub@redhat.com>
13986 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
13987 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
13988 containing the offset as possible simd lane access. Look through
13989 widening conversion. Move the
13990 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
13992 2019-06-21 Richard Biener <rguenther@suse.de>
13994 PR tree-optimization/90930
13995 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
13996 flag on new stmts to avoid re-processing them.
13998 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14000 PR c++/90875 - added -Wswitch-outside-range option
14001 * doc/invoke.texi (Wswitch-outside-range): Document.
14003 2019-06-21 Jeff Law <law@redhat.com>
14005 PR tree-optimization/90949
14006 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14007 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14009 2019-06-21 Richard Biener <rguenther@suse.de>
14012 * dwarf2out.c (prune_unused_types_walk): Always consider
14013 function-local extern declarations as used.
14015 2019-06-21 Richard Biener <rguenther@suse.de>
14017 PR tree-optimization/90913
14018 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14019 the scalar variant of if-conversion versioning.
14021 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14023 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14024 create another "omp scan inscan exclusive" array if
14025 !ctx->scan_inclusive.
14026 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14027 (lower_omp_scan): Likewise.
14028 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14029 2-bit bitfield for simd_lane_access_p member.
14030 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14031 aux == (void *)-4 as simd lane access.
14032 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14033 comment with permutations to show the canonical permutation order.
14034 (vectorizable_scan_store): Handle exclusive scan.
14035 (vectorizable_store): Call vectorizable_scan_store even for
14036 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14038 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14039 "omp simd array" arrays with one byte elements.
14041 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14043 * config/alpha/alpha.md (@unaligned_store<mode>):
14044 Rename from unaligned_store<mode>.
14045 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14046 * config/alpha/sync.md (@load_locked_<mode>): Rename
14047 from load_locked_<mode>.
14048 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14049 (@atomic_compare_and_swap<mode>_1): Rename
14050 from atomic_compare_and_swap<mode>_1.
14051 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14052 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14053 Use gen_reload_in_aligned and gen_unaligned_store.
14054 (emit_load_locked): Remove.
14055 (emit_store_conditional): Ditto.
14056 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14057 (alpha_split_compare_and_swap): Ditto.
14058 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14059 (alpha_split_compare_and_swap_12): Use gen_load_locked
14060 and gen_store_conditional.
14061 (alpha_split_atomic_exchange): Ditto.
14062 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14063 (alpha_split_atomic_exchange_12): Use gen_load_locked
14064 and gen_store_conditional.
14066 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14068 * config/aarch64/aarch64-errata.h: New file.
14069 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14070 (CA53_ERR_843419_SPEC): Delete.
14071 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14072 * config/aarch64/aarch64-linux.h: Likewise.
14073 * config/aarch64/aarch64-netbsd.h: Likewise.
14074 * config/aarch64/aarch64-freebsd.h: Likewise.
14076 2019-06-20 Marek Polacek <polacek@redhat.com>
14078 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14080 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14082 * config/rs6000/rs6000.md (isa attribute): Add support for
14083 for a future processor.
14085 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14088 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14089 standard scalar operation pattern for V2DF.
14090 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14091 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14092 (*ieee_<ieee_maxmin><mode>3): Likewise.
14093 (vec_setv2df_0): Likewise.
14095 2019-06-20 Jan Hubicka <jh@suse.cz>
14097 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14098 parameter; it has no use in gimple memory model.
14099 (indirect_ref_may_alias_decl_p): Update.
14101 2019-06-20 Martin Liska <mliska@suse.cz>
14103 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14106 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14108 * tree-vect-stmts.c (enum scan_store_kind): New type.
14109 (scan_store_can_perm_p): Change last argument from int * to
14110 vec<enum scan_store_kind> *, record precisely which permutations
14111 need whole vector left shift or that plus VEC_COND_EXPR.
14112 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14113 and additional VEC_COND_EXPR only for those iterations that need it.
14115 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14117 * config.gcc: Fix ARM --with-fpu checking and error message.
14119 2019-06-19 Marek Polacek <polacek@redhat.com>
14121 PR c++/60364 - noreturn after first decl not diagnosed.
14122 * attribs.c (get_attribute_namespace): No longer static.
14123 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14125 (attr_noreturn_exclusions): Make it extern.
14126 * attribs.h (get_attribute_namespace): Declare.
14127 * tree-inline.c (function_attribute_inlinable_p): Use
14128 get_attribute_name.
14130 2019-06-19 Martin Sebor <msebor@redhat.com>
14132 PR tree-optimization/90626
14133 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14135 PR tree-optimization/90626
14136 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14137 (handle_builtin_string_cmp): Call it.
14139 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14141 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14142 and DARWIN_NOPIE_SPEC.
14143 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14144 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14145 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14146 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14147 (DARWIN_EXPORT_DYNAMIC): Delete.
14148 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14149 and pie options processing to darwin.h.
14150 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14152 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14154 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14155 in computing the number of options to be moved.
14157 2019-06-19 Maya Rashish <coypu@sdf.org>
14159 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14160 (CLEAR_INSN_CACHE) Use it.
14162 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14164 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14166 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14168 PR middle-end/84521
14169 * builtins.c (expand_builtin_setjmp_setup): Save
14170 hard_frame_pointer_rtx.
14171 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14173 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14175 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14177 (remove_reg_equal_offset_note): Remove unused function.
14178 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14180 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14181 (arc_builtin_setjmp_frame_value): Remove function.
14182 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14183 (avr_builtin_setjmp_frame_value): Remove function.
14184 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14185 (ix86_builtin_setjmp_frame_value): Remove function.
14186 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14187 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14188 (sparc_builtin_setjmp_frame_value): Remove function.
14189 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14190 (vax_builtin_setjmp_frame_value): Remove function.
14191 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14192 pointer if has_nonlocal_label.
14194 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14196 * doc/md.texi: Document vec_shl_<mode> pattern.
14197 * optabs.def (vec_shl_optab): New optab.
14198 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14199 argument, if == vec_shl_optab, check for left whole vector shift
14200 pattern rather than right shift.
14201 (expand_vec_perm_const): Add vec_shl_optab support.
14202 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14204 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14205 can be handled by vec_shl_optab.
14206 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14207 (check_scan_store): Use it.
14208 (vectorizable_scan_store): If target can't do normal permutations,
14209 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14211 * config/i386/sse.md (vec_shl_<mode>): New expander.
14213 * omp-low.c (lower_rec_input_clauses): Handle references properly
14215 (lower_omp_scan): Likewise.
14217 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14219 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14220 mem_mode is BLKmode.
14222 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14225 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14226 pointer adjustment for the case of no callee-saved registers and
14227 stack frame bigger than 128 bytes.
14229 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14231 PR middle-end/90862
14232 * omp-low.c (check_omp_nesting_restrictions): Handle
14233 GF_OMP_TARGET_KIND_OACC_DECLARE.
14235 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
14237 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14238 (@add<mode>3_carry): Rename from add<mode>3_carry.
14239 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14240 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14241 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14242 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14243 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14244 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14245 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14246 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14247 (cmpstrnsi): Use gen_cmp_1.
14248 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14249 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14250 (@umonitor_<mode>): Rename from umonitor_<mode>.
14251 * config/i386/i386-expand.c (ix86_expand_copysign):
14252 Use gen_copysign3_const and gen_copysign3_var.
14253 (ix86_expand_xorsign): Use gen_xorsign3_1.
14254 (ix86_expand_branch): Use gen_sub3_carry_ccc,
14255 gen_sub3_carry_ccgz and gen_cmp1.
14256 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
14257 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
14258 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
14259 (ix86_split_lshr): Ditto.
14260 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
14262 2019-06-18 Jason Merrill <jason@redhat.com>
14264 * tree.c (build_constructor): Add MEM_STAT_DECL.
14266 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14268 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
14269 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
14270 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
14271 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
14272 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
14273 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
14274 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
14275 Use CC_NZC instead of CC.
14276 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
14277 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
14278 (aarch64_print_operand): Handle E_CC_NZCmode.
14279 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
14280 of gen_set_clobber_cc.
14282 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14284 * config/aarch64/aarch64-sve.md: Tabify file.
14286 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14288 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
14289 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
14290 * config/aarch64/aarch64-sve.md: Use it.
14292 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14294 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
14295 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
14296 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
14297 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
14298 (aarch64_expand_sve_vec_cmp_int): Use it.
14299 (aarch64_expand_sve_vec_cmp_float): Likewise.
14300 * config/aarch64/aarch64-sve.md: Likewise throughout.
14302 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14303 Kugan Vivekanandarajah <kuganv@linaro.org>
14305 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
14306 (*cond_<optab><mode>_z): Fold into...
14307 (*cond_<optab><mode>_any): ...here. Also handle cases in which
14308 operand 4 can be tied to operand 0 (either inherently or via RA).
14310 2019-06-18 Richard Biener <rguenther@suse.de>
14313 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
14314 as if optimized away.
14316 2019-06-18 Tom de Vries <tdevries@suse.de>
14318 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
14319 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
14320 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
14322 (define_insn "@set_softstack_<mode>"): ... this.
14323 (define_insn "omp_simt_enter_<mode>"): Rename to ...
14324 (define_insn "@omp_simt_enter_<mode>"): ... this.
14325 (define_insn "omp_simt_exit_<mode>"): Rename to ...
14326 (define_insn "@omp_simt_exit_<mode>"): ... this.
14328 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14330 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
14331 vf parameter. Restore the previous iv step of nscalars_step,
14332 but give it iv_type rather than compare_type. Tweak code order
14333 to match the comments.
14334 (vect_set_loop_condition_masked): Update accordingly.
14335 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
14336 for iv_precision. Tweak comment formatting.
14338 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14340 * config/darwin.c: Strip trailing whitespace.
14342 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14344 * config/darwin.c (darwin_emit_unwind_label): New default to false.
14345 (darwin_override_options): Set darwin_emit_unwind_label as needed.
14347 2019-06-18 Martin Jambor <mjambor@suse.cz>
14350 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
14351 caller does not have flag_ipa_cp set.
14353 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14355 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
14356 from "*fold_left_plus_<mode>", updated operands order.
14357 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
14358 * internal-fn.c (mask_fold_left_direct): New define.
14359 (expand_mask_fold_left_optab_fn): Likewise.
14360 (direct_mask_fold_left_optab_supported_p): Likewise.
14361 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
14362 * optabs.def (mask_fold_left_plus_optab): New optab.
14363 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
14364 masked internal_fn for a reduction ifn.
14365 (vectorize_fold_left_reduction): Add support for masking reductions.
14367 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
14369 PR middle-end/80791
14370 * target.def (predict_doloop_p): New hook.
14371 * targhooks.h (default_predict_doloop_p): New declaration.
14372 * targhooks.c (default_predict_doloop_p): New function.
14373 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
14374 * doc/tm.texi: Regenerate.
14375 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
14376 (TARGET_PREDICT_DOLOOP_P): New macro.
14377 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
14379 2019-06-17 Jakub Jelinek <jakub@redhat.com>
14381 * omp-low.c (struct omp_context): Add scan_inclusive field.
14382 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
14384 (struct omplow_simd_context): Add lastlane member.
14385 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
14386 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
14388 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
14389 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
14390 (lower_omp_scan): New function.
14391 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
14392 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
14393 check 3rd argument if present rather than 2nd.
14394 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
14395 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
14397 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
14398 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
14400 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
14401 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
14402 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
14404 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
14405 IFN_GOMP_SIMD_LANE argument.
14406 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
14407 encoded ->aux value.
14408 * tree-vect-stmts.c: Include attribs.h.
14409 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
14410 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
14412 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
14413 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
14415 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
14418 * config/i386/i386.md (*nabstf2_1): New insn pattern.
14419 (*nabs<mode>2_1): Ditto.
14420 (nabs sse-reg splitter): New splitter.
14421 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
14423 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14425 PR bootstrap/90873.
14426 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14429 2019-06-17 Tom de Vries <tdevries@suse.de>
14431 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
14432 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
14433 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
14435 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
14437 (define_insn "omp_simt_enter_insn"): Rename to ...
14438 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
14439 match_operand 0, 1 and 2, as well as the unspec_volatile result.
14440 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
14441 gen_omp_simt_enter_si.
14442 (define_expand "omp_simt_exit"): New.
14443 (define_insn "omp_simt_exit"): Rename to ...
14444 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
14447 2019-06-17 Matthew Green <mrg@eterna.com.au>
14448 Maya Rashish <coypu@sdf.org>
14450 * config.gcc (aarch64*-*-netbsd*): New target.
14451 * config/aarch64/aarch64-netbsd.h: New file.
14452 * config/aarch64/t-aarch64-netbsd: Likewise.
14454 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14456 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
14457 the access path from base to first VIEW_CONVERT_EXPR or
14460 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14462 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
14463 access path on BIT_FIELD_REFs.
14465 2019-06-17 Martin Liska <mliska@suse.cz>
14468 * ipa-utils.h (odr_type_p): Remove dead code.
14470 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14472 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
14473 alternative Solaris 11.4 format.
14474 * configure: Regenerate.
14476 2019-06-17 Tom de Vries <tdevries@suse.de>
14478 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
14479 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
14481 (define_insn "call_value_insn"): Rename to ...
14482 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
14484 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
14487 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
14489 PR middle-end/64242
14490 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
14491 frame clobbers and schedule block.
14492 (builtin_longjmp): Likewise.
14494 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14496 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
14497 describe how to perform MSPABI compliant 64-bit shift.
14498 * config/msp430/msp430.md (ashldi3): New define_expand.
14499 (ashrdi3): New define_expand.
14500 (lshrdi3): New define_expand.
14502 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14504 * doc/sourcebuild.texi: Document new effective target keyword
14507 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
14509 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
14510 indirect_refs_may_alias_p): Revert accidental commits.
14512 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
14513 at the end of structures.
14515 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
14517 * config/darwin.c (machopic_indirect_call_target): Use renamed
14518 darwin_picsymbol_stubs to decide on output.
14519 (darwin_override_options): Handle darwin_picsymbol_stubs.
14520 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
14521 (LD64_VERSION): Revise default.
14522 * config/darwin.opt: (mpic-symbol-stubs): New option.
14523 (darwin_picsymbol_stubs): New variable.
14524 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
14525 rename to TARGET_MACHO_PICSYM_STUBS.
14526 * config/i386/i386.c (output_pic_addr_const): Likewise.
14527 * config/i386/i386.h Likewise.
14528 * config/rs6000/darwin.h: Likewise.
14529 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
14530 darwin_picsymbol_stubs.
14532 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
14534 * config/darwin.opt (prebind, noprebind, seglinkedit,
14535 noseglinkedit): Add RejectNegative.
14537 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
14539 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
14540 in my previous patch.
14542 2019-06-16 Tom de Vries <tdevries@suse.de>
14544 PR tree-optimization/89376
14545 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
14547 2019-06-15 Maya Rashish <coypu@sdf.org>
14549 * doc/invoke.texi (Spec Files): Update location of the
14552 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
14554 * doc/extend.texi (Common Function Attributes): Clarify
14555 no_sanitize. Fix grammar.
14557 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
14559 * tree-ssa-alias.c (alias_stats): Add
14560 nonoverlapping_component_refs_p_may_alias,
14561 nonoverlapping_component_refs_p_no_alias,
14562 nonoverlapping_component_refs_of_decl_p_may_alias,
14563 nonoverlapping_component_refs_of_decl_p_no_alias.
14564 (dump_alias_stats): Dump them.
14565 (nonoverlapping_component_refs_of_decl_p): Add stats.
14566 (nonoverlapping_component_refs_p): Add stats; do not stop on first
14569 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
14571 * config/i386/i386.md (and<mode>3): Generate zero-extends for
14572 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
14574 (*anddi3_doubleword): Split before reload. Merge with
14575 anddi->zext pre-reload splitter.
14576 (*andndi3_doubleword): Split before reload.
14577 (*<code>di3_doubleword): Ditto.
14578 (*one_cmpldi2_doubleword): Ditto.
14580 2019-06-15 Jakub Jelinek <jakub@redhat.com>
14582 PR middle-end/90779
14583 * gimplify.c: Include omp-offload.h and context.h.
14584 (gimplify_bind_expr): Add "omp declare target" attributes
14585 to static block scope variables inside of target region or target
14588 2019-06-15 Tom de Vries <tdevries@suse.de>
14590 PR tree-optimization/90009
14591 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
14592 Return NULL if bb contains IFN_UNIQUE.
14594 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
14596 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
14597 (un): New define_mode_attr.
14598 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
14599 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
14600 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
14602 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
14604 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
14606 * config/darwin.opt: Add RejectNegative where needed, reorder
14607 and add minimal functional descriptions.
14609 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
14611 PR rtl-optimization/90765
14612 * calls.c (update_stack_alignment_for_call): New function.
14613 (expand_call): Call update_stack_alignment_for_call when
14614 outgoing parameter is passed in the stack.
14615 (emit_library_call_value_1): Likewise.
14616 * function.c (locate_and_pad_parm): Don't update
14617 stack_alignment_needed and preferred_stack_boundary.
14619 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
14622 * config/i386/i386-features.c
14623 (dimode_scalar_chain::compute_convert_gain): Replace
14624 mmxsse_to_integer with sse_to_integer.
14625 * config/i386/i386.c (ix86_register_move_cost): Verify that
14626 moves between MMX and non-MMX units require secondary memory.
14627 Correct costs of moves between SSE and integer units.
14628 * config/i386/i386.h (processor_costs): Rename cost of moving
14629 SSE register to integer to sse_to_integer. Rename cost of
14631 2019-06-14 Matt Thomas <matt@3am-software.com>
14632 Matthew Green <mrg@eterna.com.au>
14633 Nick Hudson <skrll@netbsd.org>
14634 Maya Rashish <coypu@sdf.org>
14635 Richard Earnshaw <rearnsha@arm.com>
14637 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
14638 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
14639 * config/arm/netbsd-eabi.h: New file.
14640 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
14642 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
14643 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
14644 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
14645 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
14647 2019-06-14 Richard Biener <rguenther@suse.de>
14649 * tree-loop-distribution.c (classify_partition): Return
14650 whether a reduction appeared in all partitions and do not
14651 stop builtin detection because of this.
14652 (distribute_loop): Sort a non-builtin partition last if
14653 there's a reduction in all partitions and make sure the
14654 partition prevailing as last is not a builtin.
14656 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
14659 * ipa-prop.c (add_to_agg_contents_list): New function.
14660 (clobber_by_agg_contents_list_p): Likewise.
14661 (extract_mem_content): Likewise.
14662 (get_place_in_agg_contents_list): Delete.
14663 (determine_known_aggregate_parts): Renamed from
14664 determine_locally_known_aggregate_parts. New parameter
14667 2019-06-13 Martin Sebor <msebor@redhat.com>
14669 PR tree-optimization/90662
14670 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
14673 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
14676 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
14677 dbase is not TARGET_MEM_REF.
14679 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
14681 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
14683 (and<mode>3): Use gen_extend_insn instead of indirect functions.
14684 Do not generate DImode extends for 32bit targets.
14685 (and->zext post-reload splitter): Use gen_extend_insn
14686 instead of indirect functions.
14687 (anddi->zext pre-reload splitter): New.
14688 (*zext<mode>_doubleword_and): Remove.
14689 (*zext<mode>_doubleword): Ditto.
14690 (*zextsi_doubleword): Dittto.
14692 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
14694 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
14695 Use gen_sub3_insn instead of indirect function.
14696 (ix86_expand_ashl_const): Use gen_add2_insn instead of
14698 (ix86_adjust_counter): Ditto.
14700 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
14701 Lijia He <helijia@linux.ibm.com>
14703 PR tree-optimization/77820
14704 * tree-ssa-threadedge.c
14705 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
14707 (thread_across_edge): Add call to
14708 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
14710 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
14712 * config/darwin-driver.c (validate_macosx_version_min): New.
14713 (darwin_default_min_version): Cleanup and validate supplied version.
14714 (darwin_driver_init): Likewise and push cleaned version into opts.
14716 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
14718 PR tree-optimization/90869
14719 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
14720 converts in MEM_REF referencing decl rather than view converts
14721 from decl type to MEM_REF type.
14723 2019-06-13 Richard Biener <rguenther@suse.de>
14725 PR tree-optimization/90856
14726 * tree-sra.c (build_ref_for_model): Only use
14727 build_reconstructed_reference when address-spaces are the same.
14729 2019-06-13 Jakub Jelinek <jakub@redhat.com>
14731 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
14732 wrap ei variable name in the declaration in ()s.
14733 (nvptx_single): Actually use mode_label variable. Formatting fix.
14735 2019-06-13 Richard Biener <rguenther@suse.de>
14737 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
14738 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
14739 also return the condition stmt.
14740 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
14741 loop we can version and version that, reusing the loop version
14742 created by if-conversion instead of versioning again.
14744 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
14746 * gimple-loop-versioning.cc (prune_loop_conditions): Use
14748 * tree-vrp (value_range_base::may_contain_p): Call into
14749 value_inside_range.
14750 (value_inside_range): Make private inside value_range_base class.
14751 Take min/max from *this.
14752 (range_includes_p): Remove.
14753 * tree-vrp.h (value_range_base): Add value_inside_range.
14754 (range_includes_p): Remove.
14755 (range_includes_zero_p): Call may_contain_p.
14756 * vr-values.c (compare_range_with_value): Same.
14758 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
14760 * doc/extend.texi (ARC Function Attributes): Update info.
14762 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
14764 PR tree-optimization/89713
14765 * doc/invoke.texi (-ffinite-loops): Document new option.
14766 * common.opt (-ffinite-loops): New option.
14767 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
14768 IFN_GOACC_LOOP calls as necessary.
14769 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
14771 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
14772 IFN_GOACC_LOOP call is not used.
14773 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
14775 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14778 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
14779 compare_type is not with Pmode size, we will create an IV with
14780 Pmode size with truncated use (i.e. converted to the correct type).
14781 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
14782 (vect_iv_limit_for_full_masking): New. Factored out of
14783 vect_set_loop_condition_masked.
14784 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
14785 (vect_iv_limit_for_full_masking): Declare.
14787 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14790 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
14791 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
14792 (get_alias_ptr_type_for_ptr_address): Likewise.
14793 (add_iv_candidate_for_use): Add scaled index candidate if useful.
14794 * tree-ssa-address.c (preferred_mem_scale_factor): New.
14795 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
14798 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14800 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
14802 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
14804 * common/config/pru/pru-common.c: New file.
14805 * config.gcc: Add PRU target.
14806 * config/pru/alu-zext.md: New file.
14807 * config/pru/constraints.md: New file.
14808 * config/pru/predicates.md: New file.
14809 * config/pru/pru-opts.h: New file.
14810 * config/pru/pru-passes.c: New file.
14811 * config/pru/pru-pragma.c: New file.
14812 * config/pru/pru-protos.h: New file.
14813 * config/pru/pru.c: New file.
14814 * config/pru/pru.h: New file.
14815 * config/pru/pru.md: New file.
14816 * config/pru/pru.opt: New file.
14817 * config/pru/t-pru: New file.
14818 * doc/extend.texi: Document PRU pragmas.
14819 * doc/invoke.texi: Document PRU-specific options.
14820 * doc/md.texi: Document PRU asm constraints.
14822 2019-06-12 Martin Sebor <msebor@redhat.com>
14824 PR middle-end/90676
14825 * tree-pretty-print.c (dump_mem_ref): New function. Include
14826 MEM_REF type in output when different size than operand.
14827 (dump_generic_node): Move code to dump_mem_ref and call it.
14829 2019-06-12 Martin Sebor <msebor@redhat.com>
14831 PR tree-optimization/90662
14832 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
14835 2019-06-12 Tom de Vries <tdevries@suse.de>
14837 PR tree-optimization/90009
14838 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
14840 2019-06-12 Martin Liska <mliska@suse.cz>
14842 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
14844 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
14845 * mem-stats.h (mem_alloc_description::mem_alloc_description):
14846 Do not sanitize created maps.
14848 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
14850 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
14851 value_range::singleton_p.
14852 * tree-vrp.c (value_range_constant_singleton): Remove.
14853 * tree-vrp.h (value_range_constant_singleton): Remove.
14854 * vr-values.c (vr_values::singleton): Use
14855 value_range::singleton_p.
14857 2019-06-12 Jakub Jelinek <jakub@redhat.com>
14860 * cfgexpand.c (align_local_variable): Add really_expand argument,
14861 don't SET_DECL_ALIGN if it is false.
14862 (add_stack_var): Add really_expand argument, pass it through to
14863 align_local_variable.
14864 (expand_one_stack_var_1): Pass true as really_expand to
14865 align_local_variable.
14866 (expand_one_ssa_partition): Pass true as really_expand to
14868 (expand_one_var): Pass really_expand through to add_stack_var.
14870 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
14872 * config/arm/iterators.md (VABAL): New int iterator.
14873 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
14874 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
14875 UNSPEC_VABAL_U values.
14877 2019-06-12 Martin Liska <mliska@suse.cz>
14879 * value-prof.c (stream_out_histogram_value): Only first value
14882 2019-06-12 Jakub Jelinek <jakub@redhat.com>
14885 * symtab.c (symtab_node::set_section): Allow being called on aliases
14886 as long as they aren't analyzed yet.
14888 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
14890 * config/mips/mips.c (mips_final_postscan_insn): Modify call
14891 to `mips_set_text_contents_type' to indicate whether a
14892 non-debug insn follows.
14894 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
14896 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
14897 enabling -mpcrel by default.
14898 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
14899 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
14900 that the test against -mcpu=future is done first. Then test if
14901 -mprefixed-addr is on for -mpcrel.
14902 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
14904 2019-06-11 Jakub Jelinek <jakub@redhat.com>
14907 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
14908 instead of and.u%d.
14910 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
14912 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
14914 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
14916 PR c++/90449 - add -Winaccessible-base option.
14917 * doc/invoke.texi (Winaccessible-base): Document.
14919 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
14921 PR tree-optimization/62041
14922 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
14924 2019-06-11 Jason Merrill <jason@redhat.com>
14926 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
14927 * tree.c (get_tree_code_name): Likewise.
14928 * print-tree.c (print_node): Only briefly print a node with an
14931 2019-06-11 Jakub Jelinek <jakub@redhat.com>
14934 * trans-mem.c (tm_memopt_compute_available): Add assertion
14935 that blocks is not empty. Formatting fix.
14937 2019-06-11 Martin Liska <mliska@suse.cz>
14940 * hash-table.h: Extend create_gcc, add one parameter
14941 that is passed into hash_table::hash_table.
14943 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
14945 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
14947 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
14948 Emit clobber also for non-sse operations.
14949 (ix86_split_fp_absneg_operator): New function.
14950 * config/i386/i386.md (SSEMODEF): New mode iterator.
14951 (ssevecmodef): New mode attribute.
14952 (<code>tf2): Use absneg code iterator.
14953 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
14954 Add three-operand AVX alternatives.
14955 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
14956 Use absneg code iterator and X87MODEF mode iterator.
14957 (absneg fp_reg non-sse splitter): Call absneg code iterator
14958 and X87MODEF mode iterator.
14959 (absneg general_reg non-sse splitter): Use absneg code iterator
14960 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
14961 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
14962 code iterator. Add three-operand AVX alternative.
14963 (absneg sse_reg splitter): Use absneg code iterator
14964 and SSEMODEF mode iterator. Handle AVX operands.
14965 (absneg fp_reg splitter): Use absneg code iterator
14966 and MODEF mode iterator.
14967 (absneg general_reg splitter): Merge splitters using MODEF mode
14968 iterator. Use absneg code iterator. Call
14969 ix86_split_fp_absneg_operator.
14970 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
14971 Do not enable for non-sse modes before reload.
14972 (CSGNMODE): Remove.
14973 (CSGNVMODE): Ditto.
14974 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
14975 ssevecmodef mode attribute instaed of CSGNVMODE.
14976 (copysign<mode>3_const): Ditto.
14977 (copysign<mode>3_var): Ditto.
14978 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
14979 Use absneg code iterator. Simplify code using std::swap.
14980 * config/i386/predicates.md (absneg_operator): Remove.
14982 2019-06-10 Martin Sebor <msebor@redhat.com>
14984 * gimple-fold.c (get_range_strlen): Update comment that didn't
14985 make it into r267503 or related commits.
14987 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
14989 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
14990 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
14992 2019-06-10 Jakub Jelinek <jakub@redhat.com>
14994 * tree.def (OMP_SCAN): New tree code.
14995 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
14996 OMP_CLAUSE_EXCLUSIVE.
14997 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
14998 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
14999 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15000 OMP_CLAUSE_{IN,EX}CLUSIVE.
15001 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15002 * tree-nested.c (convert_nonlocal_reference_stmt,
15003 convert_local_reference_stmt, convert_gimple_call): Handle
15005 * tree-pretty-print.c (dump_omp_clause): Handle
15006 OMP_CLAUSE_{IN,EX}CLUSIVE.
15007 (dump_generic_node): Handle OMP_SCAN.
15008 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15009 * gimple.h (gomp_scan): New type.
15010 (is_a_helper <gomp_scan *>::test,
15011 is_a_helper <const gomp_scan *>::test): New templates.
15012 (gimple_build_omp_scan): Declare.
15013 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15014 gimple_omp_scan_set_clauses): New inline functions.
15015 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15016 * gimple.c (gimple_build_omp_scan): New function.
15017 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15018 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15019 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15020 GIMPLE_OMP_TASKGROUP.
15021 (dump_gimple_omp_scan): New function.
15022 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15023 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15024 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15025 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15026 (is_gimple_stmt): Handle OMP_SCAN.
15027 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15028 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15029 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15030 mentioned in nested #pragma omp scan. Handle
15031 OMP_CLAUSE_{IN,EX}CLUSIVE.
15032 (gimplify_expr): Handle OMP_SCAN.
15033 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15034 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15036 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15039 2019-06-10 Martin Liska <mliska@suse.cz>
15041 * ipa-cp.c (ignore_edge_p): New function.
15042 (build_toporder_info): Use it.
15043 * ipa-inline.c (ignore_edge_p): New function.
15044 (inline_small_functions): Use it.
15045 * ipa-pure-const.c (ignore_edge_for_nothrow):
15046 Verify opt_for_fn for caller and callee.
15047 (ignore_edge_for_pure_const): Likewise.
15048 * ipa-reference.c (ignore_edge_p): Extend to check
15050 * ipa-utils.c (searchc): Refactor.
15051 * ipa-utils.h: Fix coding style.
15053 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15055 * config/arc/arc.c (arc_rtx_costs): Update costs.
15057 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15059 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15060 (arc_split_ior): Likewise.
15061 (arc_check_mov_const): Likewise.
15062 (arc_split_mov_const): Likewise.
15063 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15064 (arc_rtx_costs): Replace check Crr with Cax constraint.
15065 (prepare_move_operands): Cleanup, remove unused code.
15066 (arc_split_ior): New function.
15067 (arc_check_ior_const): Likewise.
15068 (arc_split_mov_const): Likewise.
15069 (arc_check_mov_const): Likewise.
15070 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15071 in define_insn_and_split pattern.
15072 (iorsi3): Likewise.
15073 (mulsi3_v2): Add new matching variant.
15074 (andsi3_i): Cleanup pattern.
15075 (rotrsi3_cnt1): Update pattern.
15076 (rotrsi3_cnt8): New pattern.
15077 (ashlsi2_cnt8): Likewise.
15078 (ashlsi2_cnt16): Likewise.
15079 * config/arc/constraints.md (C0p): Update constraint.
15081 (C0x): New pattern.
15082 (Cax): New pattern.
15084 2019-06-10 Martin Liska <mliska@suse.cz>
15086 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15087 Update coding style.
15088 (sem_item_optimizer::dump_cong_classes):
15089 Print how many items are in a non-singular class. Improve
15092 2019-06-10 Martin Liska <mliska@suse.cz>
15094 * value-prof.c (dump_histogram_value): Change dump format.
15095 (gimple_mod_subtract_transform): Remove legacy comment.
15097 2019-06-10 Martin Liska <mliska@suse.cz>
15099 * value-prof.c (dump_histogram_value): Print histogram values
15102 2019-06-10 Martin Liska <mliska@suse.cz>
15104 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15105 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15106 * ipa-profile.c (ipa_profile_generate_summary):
15107 Use get_most_common_single_value.
15108 * tree-profile.c (gimple_init_gcov_profiler):
15109 Instrument with __gcov_one_value_profiler_v2
15110 and __gcov_indirect_call_profiler_v4.
15111 * value-prof.c (dump_histogram_value):
15112 Print all values for HIST_TYPE_SINGLE_VALUE.
15113 (stream_out_histogram_value): Update assert for
15115 (stream_in_histogram_value): Set number of
15116 counters for HIST_TYPE_SINGLE_VALUE.
15117 (get_most_common_single_value): New.
15118 (gimple_divmod_fixed_value_transform):
15119 Use get_most_common_single_value.
15120 (gimple_ic_transform): Likewise.
15121 (gimple_stringops_transform): Likewise.
15122 (gimple_find_values_to_profile): Set number
15123 of counters for HIST_TYPE_SINGLE_VALUE.
15124 * value-prof.h (get_most_common_single_value): New.
15126 2019-06-10 Martin Liska <mliska@suse.cz>
15128 * hash-map.h: Pass default value to hash_table ctor.
15129 * hash-table.h: Add default value to call of a ctor.
15131 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15133 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15134 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15136 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15139 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15140 Call pa_output_function_label.
15141 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15142 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15143 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15145 (pa_linux_output_function_prologue): Declare.
15146 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15147 (pa_output_function_label): New.
15148 (pa_output_function_prologue): Revise to use pa_output_function_label.
15149 (pa_linux_output_function_prologue): New.
15150 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15152 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15154 * tree-vrp.h (value_range_base::intersect): New.
15155 (value_range::intersect_helper): Move from here...
15156 (value_range_base::intersect_helper): ...to here.
15157 * tree-vrp.c (value_range::intersect_helper): Rename to...
15158 (value_range_base::intersect_helper): ...this, and rewrite to
15159 return a value instead of modifying THIS in place.
15160 Also, move equivalence handling...
15161 (value_range::intersect): ...here, while calling intersect_helper.
15162 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15164 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15166 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15168 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15170 * Makefile.in (genprogerr): Add condmd.
15171 (genprog): Remove it here.
15173 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15175 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15177 2019-06-07 Richard Biener <rguenther@suse.de>
15180 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15181 that appear after user labels.
15183 2019-06-07 Martin Liska <mliska@suse.cz>
15185 * cselib.c (cselib_init): Disable hash table
15187 * hash-set.h: Pass new default argument to m_table.
15188 * hash-table.c: Add global variable with hash table
15189 sanitization limit.
15190 * hash-table.h (Allocator>::hash_table): Add new argument
15192 (hashtab_chk_error): New.
15193 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15194 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15195 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15197 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15199 * common.opt (flto-odr-type-merging): Ignore.
15200 * invoke.texi (-flto-odr-type-merging): Remove.
15201 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15202 (can_be_vtable_hashed_p): Remove.
15203 (hash_odr_vtable): Remove.
15204 (odr_vtable_hasher::hash): Remove.
15205 (types_same_for_odr): Remove.
15206 (types_odr_comparable): Remove.
15207 (odr_vtable_hasher::equal): Remove.
15208 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15209 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15210 (get_odr_type): Do not use vtable hash.
15211 (dump_odr_type): Remove commented out code.
15212 (build_type_inheritance_graph): Do not allocate vtable hash.
15213 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15214 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15215 (odr_type_p): Likewise.
15216 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15219 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15221 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15222 immediately after same_types_for_tbaa_p returns -1 and continue
15223 looking for possible exact match; if matching types are arrays
15224 watch for partial overlaps.
15225 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15226 (indirect_refs_may_alias_p): Do type based disambiguation first;
15229 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15231 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15233 2019-06-07 Martin Liska <mliska@suse.cz>
15235 * doc/invoke.texi: Remove param.
15236 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15238 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15239 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15240 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15241 * profile.c (instrument_values): Remove
15242 HIST_TYPE_INDIR_CALL_TOPN.
15243 * tree-profile.c (init_ic_make_global_vars):
15244 Always build __gcov_indirect_call only.
15245 (gimple_init_gcov_profiler): Remove usage
15246 of PARAM_INDIR_CALL_TOPN_PROFILE.
15247 (gimple_gen_ic_profiler): Likewise.
15248 * value-prof.c (dump_histogram_value): Likewise.
15249 (stream_in_histogram_value): Likewise.
15250 (gimple_indirect_call_to_profile): Likewise.
15251 (gimple_find_values_to_profile): Likewise.
15252 * value-prof.h (enum hist_type): Likewise.
15254 2019-06-07 Martin Liska <mliska@suse.cz>
15256 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
15259 2019-06-07 Martin Liska <mliska@suse.cz>
15261 PR tree-optimization/78902
15262 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
15263 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
15264 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15265 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15266 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
15267 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15268 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
15269 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
15270 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15271 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15272 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15273 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
15274 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
15276 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
15277 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
15278 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
15279 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15280 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15281 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
15282 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15283 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15284 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
15285 warn_unused_result attribute.
15286 (BUILT_IN_STRDUP): Likewise.
15287 (BUILT_IN_STRNDUP): Likewise.
15288 (BUILT_IN_ALLOCA): Likewise.
15289 (BUILT_IN_CALLOC): Likewise.
15290 (BUILT_IN_MALLOC): Likewise.
15291 (BUILT_IN_REALLOC): Likewise.
15293 2019-06-06 Jim Wilson <jimw@sifive.com>
15296 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
15297 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
15298 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
15300 2019-06-06 Martin Sebor <msebor@redhat.com>
15302 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
15303 (handle_builtin_malloc): Remove trailing spaces.
15304 (handle_builtin_memset): Same.
15305 (handle_builtin_memcmp): Same.
15306 (compute_string_length): Same.
15307 (determine_min_objsize): Same.
15308 (handle_builtin_string_cmp): Same.
15309 (handle_char_store): Same. Break up excessively long line.
15311 2019-06-06 Martin Jambor <mjambor@suse.cz>
15313 * tree-sra.c (build_reconstructed_reference): Drop the alignment
15316 2019-06-06 Martin Jambor <mjambor@suse.cz>
15318 * tree-sra.c (struct access): New field grp_same_access_path.
15319 (dump_access): Dump it.
15320 (build_reconstructed_reference): New function.
15321 (build_ref_for_model): Use it if possible.
15322 (path_comparable_for_same_access): New function.
15323 (same_access_path_p): Likewise.
15324 (sort_and_splice_var_accesses): Set the new flag.
15325 (analyze_access_subtree): Likewise.
15326 (propagate_subaccesses_across_link): Propagate zero value of the new
15327 flag down the access tree.
15329 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
15331 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
15332 * config/gcn/gcn.opt (gpu_type): Add gfx906.
15333 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
15334 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
15337 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15339 PR tree-optimization/90332
15340 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
15341 Handle VALS containing two vectors.
15342 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
15344 (@aarch64_combinez<mode>): ... This.
15345 (*aarch64_combinez_be<mode>): Rename to...
15346 (@aarch64_combinez_be<mode>): ... This.
15347 (vec_init<mode><Vhalf>): New define_expand.
15348 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
15350 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15352 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
15353 library functions only when not optimizing for size.
15354 (ashlsi3): Likewise.
15355 (ashrhi3): Likewise.
15356 (ashrsi3): Likewise.
15357 (lshrhi3): Likewise.
15358 (lshrsi3): Likewise.
15360 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
15362 PR rtl-optimization/88751
15363 * ira.c (ira): Use the number of the actually referenced registers
15364 when calculating the threshold.
15366 2019-06-06 Jakub Jelinek <jakub@redhat.com>
15368 * configure: Regenerate.
15370 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15372 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
15373 register if it is in memory, so the shift can be emulated with a rotate
15375 (ashrhi3): Likewise.
15376 (lshrhi3): Likewise.
15378 2019-06-06 Martin Liska <mliska@suse.cz>
15380 PR tree-optimization/87954
15381 * match.pd: Simplify mult where both arguments are 0 or 1.
15383 2019-06-06 Richard Biener <rguenther@suse.de>
15385 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
15386 put equivalences on UNDEFINED ranges.
15387 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15388 Make sure to drop defs of stmts added during simplification
15391 2019-06-06 Richard Biener <rguenther@suse.de>
15393 * tree-ssa-structalias.c: Include tree-cfg.h.
15394 (make_heapvar): Do not make heap vars artificial.
15395 (find_func_aliases_for_builtin_call): Handle stack allocation
15397 (find_func_aliases): Delay processing of simple enough returns
15399 (set_uids_in_ptset): Adjust.
15400 (find_what_var_points_to): Likewise.
15401 (solve_constraints): Do not dump points-to sets here.
15402 (compute_points_to_sets): Post-process return statements,
15403 amending the escaped solution. Dump points-to sets afterwards.
15404 (ipa_pta_execute): Dump points-to sets.
15406 2019-06-06 Martin Liska <mliska@suse.cz>
15409 * doc/install.texi: Fix HTML headers and
15410 titles for 'Installing GCC' pages.
15412 2019-06-06 Martin Liska <mliska@suse.cz>
15414 * ipa-icf-gimple.h (dump_message_1): Remove.
15415 (dump_message): Likewise.
15416 (return_false_with_message_1): Print also file.
15417 (return_false_with_msg): Likewise.
15418 (return_with_result): Likewise.
15419 (return_with_debug): Likewise.
15420 * ipa-icf.c (sem_function::equals_private): Remove call
15423 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
15425 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
15426 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
15427 memory operand for it.
15428 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
15430 2019-06-05 Martin Sebor <msebor@redhat.com>
15432 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
15433 Adjust quoting and hyphenation.
15434 * convert.c (convert_to_real_1): Same.
15435 * gcc.c (driver_wrong_lang_callback): Same.
15436 (driver::handle_unrecognized_options): Same.
15437 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
15438 * opts-common.c (cmdline_handle_error): Same.
15439 (read_cmdline_option): Same.
15440 * opts-global.c (complain_wrong_lang): Same.
15441 (print_ignored_options): Same.
15442 (handle_common_deferred_options): Same.
15443 * pretty-print.h: Same.
15444 * print-rtl.c (debug_bb_n_slim): Same.
15445 * sched-rgn.c (make_pass_sched_fusion): Same.
15446 * tree-cfg.c (verify_gimple_assign_unary): Same.
15447 (verify_gimple_label): Same.
15448 * tree-ssa-operands.c (verify_ssa_operands): Same.
15449 * varasm.c (do_assemble_alias): Same.
15450 (assemble_alias): Same.
15452 2019-06-05 Richard Henderson <rth@twiddle.net>
15454 * config/alpha/alpha.c (direct_return): Move down after
15455 struct machine_function definition; use saved frame_size;
15457 (struct machine_function): Add sa_mask, sa_size, frame_size.
15458 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
15459 (alpha_compute_frame_layout): ... new function.
15460 (TARGET_COMPUTE_FRAME_LAYOUT): New.
15461 (alpha_initial_elimination_offset): Use saved sa_size.
15462 (alpha_vms_initial_elimination_offset): Likewise.
15463 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
15464 (alpha_expand_prologue): Use saved frame data. Merge integer
15465 and fp register save loops.
15466 (alpha_expand_epilogue): Likewise.
15467 (alpha_start_function): Use saved frame data.
15468 * config/alpha/alpha-protos.h (direct_return): Update.
15469 (alpha_sa_size): Remove.
15471 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
15473 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
15474 multiplication by a power-of-two value.
15475 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
15476 and turn the modulo operation into a masking operation.
15478 2019-06-05 Jakub Jelinek <jakub@redhat.com>
15481 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
15482 with VOIDmode inner operands.
15484 2019-06-05 Richard Biener <rguenther@suse.de>
15486 PR middle-end/90726
15487 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
15488 turn an expression graph into a tree.
15490 2019-06-05 Jakub Jelinek <jakub@redhat.com>
15492 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
15494 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
15495 treat it like explicit monotonic schedule modifier.
15496 (expand_omp_for): Initialize has_lastprivate_conditional.
15497 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
15500 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
15501 references, lookup in in hash map MEM_REF operand instead of the
15503 (lower_omp_1): When looking for lastprivate conditional assignments,
15504 handle MEM_REFs with REFERENCE_TYPE operands.
15506 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
15507 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
15508 and references a VLA. Handle references to non-VLAs if is_simd
15509 all privatization clauses like reductions.
15510 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
15511 If omp_is_reference, use always omp simd arrays and set
15512 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
15513 fails, emit reference initialization.
15515 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
15518 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
15519 _mm_mask_fpclass_sd_mask): New intrinsics.
15520 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
15521 * config/i386/i386-builtin.def
15522 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
15524 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
15525 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
15526 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
15527 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
15528 case QI_FTYPE_V2SF_INT): Ditto.
15529 * config/i386/sse.md
15530 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
15531 Extended to insnstructions with mask operands.
15533 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15535 * config/rs6000/constraints.md (define_register_constraint "wp"):
15537 (define_register_constraint "wq"): Delete.
15538 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15539 (rs6000_init_hard_regno_mode_ok): Adjust.
15540 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15541 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
15542 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
15543 (define_mode_attr VSa): Delete.
15544 (define_mode_attr VSisa): New.
15545 (rest of file): Adjust.
15546 * doc/md.texi (Machine Constraints): Adjust.
15548 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15550 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
15551 (define_attr "enabled"): Handle those new isa values.
15553 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15555 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
15556 (define_mode_attr VSr5): Delete.
15557 (define_mode_attr VStype_sqrt): Delete.
15558 (define_mode_iterator VSX_SPDP): Delete.
15559 (define_mode_attr VS_spdp_res): Delete.
15560 (define_mode_attr VS_spdp_insn): Delete.
15561 (define_mode_attr VS_spdp_type): Delete.
15562 (*vsx_sqrt<mode>2): Adjust.
15563 (vsx_<VS_spdp_insn>): Delete, split to...
15564 (vsx_xscvdpsp): ... this. New. And...
15565 (vsx_xvcvspdp): ... this. New. And...
15566 (vsx_xvcvdpsp): ... this. New.
15568 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15570 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
15572 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
15573 (rest of file): Adjust.
15575 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15577 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
15578 (vsx_extract_<mode>_var): Ditto.
15580 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15582 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
15585 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15587 * config/rs6000/constraints.md (define_register_constraint "ww"):
15589 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15590 (rs6000_init_hard_regno_mode_ok): Adjust.
15591 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15592 RS6000_CONSTRAINT_ww.
15593 * config/rs6000/rs6000.md: Adjust.
15594 * config/rs6000/vsx.md: Adjust.
15595 * doc/md.texi (Machine Constraints): Adjust.
15597 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15599 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
15600 (define_mode_attr sd): New.
15601 (define_mode_attr s): New.
15602 (define_mode_attr Ftrad): Delete.
15603 (define_mode_attr Fvsx): Delete.
15604 (define_mode_attr Fs): Delete.
15605 (rest of file): Use the new mode attributes.
15606 * config.rs6000/vsx.md: Use the new mode attributes.
15608 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15610 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
15613 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15615 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
15616 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
15617 used with VSX_B, VSX_D, or VSX_F, with just "wa".
15619 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
15622 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
15623 C++ with strict ANSI requirements.
15625 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
15627 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
15628 computations when step is 1.
15630 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15632 * config/rs6000/constraints.md (define_register_constraint "wf"):
15634 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15635 (rs6000_init_hard_regno_mode_ok): Adjust.
15636 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15637 RS6000_CONSTRAINT_wf.
15638 * config/rs6000/rs6000.md: Adjust.
15639 * config/rs6000/vsx.md: Adjust.
15640 * doc/md.texi (Machine Constraints): Adjust.
15642 2019-06-04 Andrew Pinski <apinski@marvell.com>
15644 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
15647 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15649 * config/rs6000/constraints.md (define_register_constraint "wd"):
15651 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15652 (rs6000_init_hard_regno_mode_ok): Adjust.
15653 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15654 RS6000_CONSTRAINT_wd.
15655 * config/rs6000/rs6000.md: Adjust.
15656 * config/rs6000/vsx.md: Adjust.
15657 * doc/md.texi (Machine Constraints): Adjust.
15659 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15661 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
15662 (rest of file): Adjust.
15664 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15666 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
15667 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
15668 (vsx_splat_<mode>_reg): Adjust.
15670 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15672 * config/rs6000/constraints.md (define_register_constraint "ws"):
15674 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15675 (rs6000_init_hard_regno_mode_ok): Adjust.
15676 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15677 RS6000_CONSTRAINT_ws.
15678 * config/rs6000/rs6000.md: Adjust.
15679 * config/rs6000/vsx.md: Adjust.
15680 * doc/md.texi (Machine Constraints): Adjust.
15682 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15684 * config/rs6000/constraints.md (define_register_constraint "wv"):
15686 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15687 (rs6000_init_hard_regno_mode_ok): Adjust.
15688 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15689 RS6000_CONSTRAINT_wv.
15690 * config/rs6000/rs6000.md: Adjust.
15691 * config/rs6000/vsx.md: Adjust.
15692 * doc/md.texi (Machine Constraints): Adjust.
15694 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15696 * config/rs6000/constraints.md (define_register_constraint "wi"):
15698 (define_register_constraint "wt"): Delete.
15699 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15700 (rs6000_init_hard_regno_mode_ok): Adjust.
15701 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15702 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
15703 * config/rs6000/rs6000.md: Adjust.
15704 * config/rs6000/vsx.md: Adjust.
15705 * doc/md.texi (Machine Constraints): Adjust.
15707 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
15709 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
15711 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
15712 default_elf_asm_output_external.
15714 2019-06-04 Martin Liska <mliska@suse.cz>
15716 * ipa-icf.c (INCLUDE_LIST): Remove.
15717 (sem_item_optimizer::execute): Remove call to init_wpa.
15718 * ipa-icf.h (init_wpa): Remove.
15720 2019-06-04 Jakub Jelinek <jakub@redhat.com>
15722 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
15723 conditional on combined for simd.
15724 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
15726 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
15727 constructs, don't remove lastprivate_conditional_map, but instead set
15728 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
15729 to parent construct temporaries.
15730 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
15731 like !ctx->lastprivate_conditional_map.
15732 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
15733 use up->outer context instead of up.
15734 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
15735 gimple_omp_for_combined_p.
15736 (expand_omp_for_static_nochunk): Likewise.
15737 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
15738 probably moved over into expand_omp_for_generic rather than being copied
15741 2019-06-04 Martin Liska <mliska@suse.cz>
15743 * value-prof.c (dump_histogram_value): Fix typo.
15744 (gimple_mod_subtract_transform): Likewise.
15746 2019-06-04 Richard Biener <rguenther@suse.de>
15748 PR middle-end/90726
15749 * tree-chrec.c (chrec_contains_symbols): Add to visited.
15750 (tree_contains_chrecs): Likewise.
15751 (chrec_contains_symbols_defined_in_loop): Move here and avoid
15752 exponential behaivor from ...
15753 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
15755 (expression_expensive_p): Avoid exponential behavior and compute
15756 expanded size, rejecting any expansion.
15757 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
15758 (idx_contains_abnormal_ssa_name_p): Likewise.
15759 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
15760 (contains_abnormal_ssa_name_p): Simplify and use
15761 walk_tree_without_duplicates.
15763 2019-06-04 Richard Biener <rguenther@suse.de>
15765 PR tree-optimization/90738
15767 2019-06-03 Richard Biener <rguenther@suse.de>
15769 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
15770 full reference tree and record in ref->ref.
15771 (vn_reference_lookup_3): Pass in original ref to
15772 ao_ref_init_from_vn_reference.
15773 (vn_reference_lookup): Likewise.
15774 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
15775 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15776 Handle non-decl bases in the original reference.
15778 2019-06-04 Martin Liska <mliska@suse.cz>
15780 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
15781 number of references.
15782 (sem_item_optimizer::do_congruence_step):
15783 (sem_item_optimizer::worklist_push): Dump how references
15785 (sem_item_optimizer::worklist_pop): Use heap.
15786 (sem_item_optimizer::process_cong_reduction): Likewise.
15787 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
15789 2019-06-04 Martin Liska <mliska@suse.cz>
15791 * ipa-icf.h (struct sem_usage_pair_hash): New.
15792 (sem_usage_pair_hash::hash): Likewise.
15793 (sem_usage_pair_hash::equal): Likewise.
15794 (struct sem_usage_hash): Likewise.
15795 * ipa-icf.c (sem_item::sem_item): Initialize
15796 referenced_by_count.
15797 (sem_item::add_reference): Register a reference
15798 in ref_map and not in target->usages.
15799 (sem_item::setup): Remove initialization of
15801 (sem_item::~sem_item): Remove usage of dead vectors.
15802 (sem_item::dump): Remove dump of references.
15803 (sem_item_optimizer::sem_item_optimizer): Initialize
15805 (sem_item_optimizer::read_section): Remove useless
15807 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
15808 (sem_item_optimizer::build_graph): Pass m_references
15809 to ::add_reference.
15810 (sem_item_optimizer::verify_classes): Remove usage of dead
15812 (sem_item_optimizer::traverse_congruence_split): Return true
15813 when a class is split.
15814 (sem_item_optimizer::do_congruence_step_for_index): Use
15815 hash_map for look up of (sem_item *, index). That brings
15816 significant speed up.
15817 (sem_item_optimizer::do_congruence_step): Return true
15818 when a split is done.
15819 (congruence_class::is_class_used): Use referenced_by_count.
15821 2019-06-04 Alan Modra <amodra@gmail.com>
15824 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
15827 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
15829 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
15830 * config/rs6000/rs6000.c (direct_move_p): Adjust.
15831 (rs6000_secondary_reload_simple_move): Adjust.
15832 (rs6000_opt_masks): Neuter the "mfpgpr" option.
15833 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
15834 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
15837 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
15838 (floatunssi<mode>2_lfiwzx): Adjust.
15839 (fix_trunc<mode>si2_stfiwx): Adjust.
15840 (fixuns_trunc<mode>si2_stfiwx): Adjust.
15841 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
15842 (mfpgpr): Mark as deprecated.
15843 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
15844 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
15845 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
15847 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
15849 * config/rs6000/constraints.md (define_register_constraint "wg"):
15851 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15852 RS6000_CONSTRAINT_wg.
15853 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15854 (rs6000_init_hard_regno_mode_ok): Adjust.
15855 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
15856 Delete "wg" alternatives.
15857 * doc/md.texi (Machine Constraints): Adjust.
15859 2019-06-03 Alan Modra <amodra@gmail.com>
15861 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
15862 (get_uncond_jump_length): Assert length less than INT_MAX and
15865 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
15867 PR middle-end/64242
15868 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
15870 (expand_builtin_nonlocal_goto): Likewise.
15872 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
15874 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
15875 (aarch64_asm_output_external): Declare.
15876 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
15877 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
15878 (aarch64_asm_output_alias): New.
15879 (aarch64_asm_output_external): New.
15880 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
15881 (ASM_OUTPUT_EXTERNAL): Define.
15883 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
15884 * tree-vrp.h (value_range_base::nonzero_p): New.
15885 (value_range_base::set_nonnull): Rename to...
15886 (value_range_base::set_nonzero): ...this.
15887 (value_range_base::set_null): Rename to...
15888 (value_range_base::set_zero): ...this.
15889 (value_range::set_nonnull): Remove.
15890 (value_range::set_null): Remove.
15891 * tree-vrp.c (range_is_null): Remove.
15892 (range_is_nonnull): Remove.
15893 (extract_range_from_binary_expr): Use value_range_base::*zero_p
15894 instead of range_is_*null.
15895 (extract_range_from_unary_expr): Same.
15896 (value_range_base::set_nonnull): Rename to...
15897 (value_range_base::set_nonzero): ...this.
15898 (value_range::set_nonnull): Remove.
15899 (value_range_base::set_null): Rename to...
15900 (value_range_base::set_zero): ...this.
15901 (value_range::set_null): Remove.
15902 (extract_range_from_binary_expr): Rename set_*null uses to
15904 (extract_range_from_unary_expr): Same.
15905 (union_helper): Same.
15906 * vr-values.c (get_value_range): Use set_*zero instead of
15908 (vr_values::extract_range_from_binary_expr): Same.
15909 (vr_values::extract_range_basic): Same.
15911 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
15914 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
15916 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15918 * config/aarch64/iterators.md (MAX_OPP): New code attr.
15919 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
15921 (aarch64_<su>abd<mode>_3): ... This.
15922 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
15924 2019-06-03 Richard Biener <rguenther@suse.de>
15926 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
15927 full reference tree and record in ref->ref.
15928 (vn_reference_lookup_3): Pass in original ref to
15929 ao_ref_init_from_vn_reference.
15930 (vn_reference_lookup): Likewise.
15931 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
15932 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15933 Handle non-decl bases in the original reference.
15935 2019-06-03 Martin Liska <mliska@suse.cz>
15937 * doc/generic.texi: Remove Java Trees.
15939 2019-06-03 Martin Liska <mliska@suse.cz>
15941 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
15942 returns 0 when operands are equal.
15944 2019-06-03 Richard Biener <rguenther@suse.de>
15946 PR tree-optimization/90716
15947 * tree-loop-distribution.c (destroy_loop): Process blocks in
15950 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15953 * vector-builder.h (vector_builder::count_dups): New method.
15954 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
15956 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
15957 (vec_init<mode><Vel>): New pattern.
15958 * config/aarch64/aarch64.c (emit_insr): New function.
15959 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
15960 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
15961 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
15962 (aarch64_sve_expand_vector_init): Define two overloaded functions.
15964 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15966 PR tree-optimization/90681
15967 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
15968 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
15969 special case for SLP, but fail on non-groupped loads.
15971 2019-06-03 Martin Liska <mliska@suse.cz>
15973 * cfg.c (debug): Use TDF_DETAILS for debug and
15974 print edge info only once.
15976 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
15979 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
15981 2019-06-01 Martin Sebor <msebor@redhat.com>
15983 PR middle-end/90694
15984 * tree-pretty-print.c (dump_generic_node): Add parentheses.
15986 2019-05-31 Jan Hubicka <jh@suse.cz>
15988 * alias.c: Include ipa-utils.h.
15989 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
15990 * ipa-devirt.c (prevailing_odr_type): New.
15991 * ipa-utils.h (previaling_odr_type): Declare.
15993 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
15994 Hongtao Liu <hongtao.liu@intel.com>
15997 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
15998 NOTE_INSN_DELETED_LABEL check.
16000 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16001 Robert Suchanek <robert.suchanek@mips.com>
16003 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16004 and 3rd operands of the fmadd/fmsub/maddv builtin.
16006 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16008 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16009 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16010 on OMP_SIMD if not nested inside of worksharing loop that also has
16011 lastprivate conditional clause for the same decl.
16012 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16013 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16015 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16017 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16019 (lower_lastprivate_clauses): Likewise.
16020 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16021 calling lower_rec_input_clauses.
16022 (lower_omp_for): Likewise.
16023 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16024 clause on simd construct.
16025 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16026 OMP_CLAUSE__CONDTEMP_ clause is present.
16028 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16031 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16034 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16035 TEX_D32, TEX_D64 or TEX_D128.
16037 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16039 * match.pd (~(vec?cst1:cst2)): New transformation.
16041 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16043 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16044 ((size_t)(A /[ex] B) CMP C): New transformation.
16046 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16048 * doc/md.texi: Document define_insn_and_rewrite.
16049 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16050 * gensupport.c (queue_elem): Update comment.
16051 (replace_operands_with_dups): New function.
16052 (gen_rewrite_sequence): Likewise.
16053 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16054 * read-rtl.c (apply_subst_iterator): Likewise.
16055 (add_condition_to_rtx, named_rtx_p): Likewise.
16056 (rtx_reader::read_rtx_operand): Likewise.
16057 * config/aarch64/aarch64-sve.md
16058 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16059 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16060 define_insn_and_rewrite.
16061 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16062 Remove separate define_split.
16064 2019-05-31 Jan Hubicka <jh@suse.cz>
16066 * tree-ssa-alias.c (type_has_components_p): New function.
16067 (aliasing_component_refs_p): Use it.
16069 2019-05-31 Martin Liska <mliska@suse.cz>
16071 * gdbhooks.py: Add const_tree to TreePrinter.
16073 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16076 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16077 * doc/invoke.texi (Debugging Options): Document new default of
16078 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16080 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16082 PR tree-optimization/90671
16083 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16084 template_block used to be empty on the first call, don't use
16085 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16086 seq with bb_seq and set it with set_bb_seq.
16088 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16090 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16092 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16093 Michael Meissner <meissner@linux.ibm.com>
16095 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16096 (prefixed_mem_operand): Likewise.
16097 (non_prefixed_mem_operand): Likewise.
16098 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16100 * config/rs6000/rs6000.c (print_operand_address): Handle
16101 PC-relative addresses.
16102 (mode_supports_prefixed_address_p): New function.
16103 (rs6000_prefixed_address): New function.
16104 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16105 (SYMBOL_REF_PCREL_P): Likewise.
16107 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16109 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16110 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16111 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16112 is nested inside of parallel region, add _condtemp_ clause to both.
16113 * tree-nested.c (convert_nonlocal_omp_clauses,
16114 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16116 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16118 * omp-general.c (omp_extract_for_data): Compute it.
16119 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16120 (lower_rec_input_clauses): Likewise.
16121 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16122 clause is already present, just add one further one after it.
16123 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16124 (lower_send_shared_vars): Clear _condtemp_ vars.
16125 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16126 or section or taskgroup.
16127 * omp-expand.c (determine_parallel_type): Disallow combining only if
16128 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16129 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16130 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16131 expand_omp_for_static_chunk, expand_omp_for): Use
16132 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16133 determine if a special set of API routines are needed and if condtemp
16134 needs to be initialized, while always initialize cond_var if
16135 fd->lastprivate_conditional is non-zero.
16137 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16138 Michael Meissner <meissner@linux.ibm.com>
16140 * config/rs6000/constraints.md (eI): New constraint.
16141 * config/rs6000/predicates.md (cint34_operand): New predicate.
16142 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16143 (SIGNED_34BIT_OFFSET_P): Likewise.
16144 * doc/md.texi (eI): Document constraint.
16146 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16148 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16150 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16151 Michael Meissner <meissner@linux.ibm.com>
16153 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16154 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16155 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16156 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16157 (OTHER_FUTURE_MASKS): Likewise.
16158 (POWERPC_MASKS): Likewise.
16159 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16160 specified without -mprefixed-addr or -mcpu=future. Error if
16161 -mprefixed-addr is specified without -mcpu=future.
16162 (rs6000_opt_masks): Add entry for prefixed-addr.
16163 * rs6000.opt (mprefixed-addr): New option.
16165 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16167 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16168 cfun->is_thunk check.
16170 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16172 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16175 2019-05-30 Martin Liska <mliska@suse.cz>
16177 * gdbinit.in: Fix 'ptc' command. Add trt
16178 that prints TREE_TYPE($).
16180 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16181 Alan Modra <amodra@gmail.com>
16183 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16185 (rs6000_indirect_call_template_1): ...and here.
16186 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16187 plt16_ha, plt16_lo, mtctr indirect calls. Use
16188 rs6000_pltseq_enum.
16189 (rs6000_decl_ok_for_sibcall): New function.
16190 (rs6000_function_ok_for_sibcall): Refactor.
16191 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16192 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16193 when pcrel. Reorganize.
16194 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16195 * rs6000.h (rs6000_pltseq_enum): New enum.
16196 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16197 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16198 (*pltseq_plt16_ha): Likewise.
16199 (*pltseq_plt16_lo): Likewise.
16200 (*pltseq_mtctr): Likewise.
16201 (*pltseq_plt_pcrel): New insn.
16202 (*call_local_aix): Handle @notoc calls.
16203 (*call_value_local_aix): Likewise.
16204 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16205 (*call_value_nonlocal_aix): Likewise.
16206 (*call_indirect_pcrel): New insn.
16207 (*call_value_indirect_pcrel): Likewise.
16209 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16211 * config/i386/sse.md (*save_multiple<mode>): Rename from
16212 save_multiple<mode>.
16213 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16214 (*restore_multiple_and_return<mode>): Rename from
16215 restore_multiple_and_return<mode>.
16216 (*restore_multiple_leave_return<mode>): Rename from
16217 restore_multiple_leave_return<mode>.
16219 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16221 * config.gcc (rx-*-linux*): New target.
16222 * config/rx/elf.opt: New file.
16223 * config/rx/linux.h: Likewise.
16224 * config/rx/t-linux: Likewise.
16225 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16227 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16228 (ASM_APP_OFF): Likewise.
16229 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16232 2019-05-29 Jan Hubicka <jh@suse.cz>
16234 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16235 variants are pointer equivalent.
16237 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16239 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16240 * config/aarch64/aarch64-sve2.md: New file.
16241 (<u>avg<mode>3_floor): New pattern.
16242 (<u>avg<mode>3_ceil): Likewise.
16243 (*<sur>h<addsub><mode>): Likewise.
16244 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16245 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16247 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16250 * optc-save-gen.awk: In cl_optimization_print, use correct condition
16251 for var_opt_string printing. In cl_optimization_print_diff, print
16252 (null) instead of invoking undefined behavior if one of the
16253 var_opt_string pointers is NULL and use && instead of first || in the
16254 guarding condition. For var_target_other options, handle const char *
16255 target variables similarly to const char * optimize node variables.
16257 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
16259 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
16260 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
16261 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
16262 Add autib1716 and pacib1716 initialisation.
16263 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
16264 for autib1716 and pacib1716.
16265 * config/aarch64/aarch64-protos.h (aarch64_key_type,
16266 aarch64_post_cfi_startproc): Define.
16267 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
16268 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
16269 aarch64_handle_pac_ret_protection): Set default sign key to A.
16270 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
16271 aarch64_expand_prologue): Add check for b-key.
16272 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
16273 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
16274 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
16275 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
16276 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
16277 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
16278 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16279 * config/aarch64/aarch64.md (do_return): Add check for b-key.
16280 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
16281 pauth_hint_num_a with pauth_hint_num.
16282 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
16283 pauth_hint_num_a with pauth_hint_num.
16284 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
16285 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
16286 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16287 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
16288 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
16289 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
16290 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
16291 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16292 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
16293 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
16294 UNSPEC_AUTIA1716 respectively.
16295 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
16296 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
16297 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
16298 * doc/invoke.texi (-mbranch-protection): Add b-key type.
16299 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
16300 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
16302 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16304 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
16305 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
16306 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
16307 explicit clause on combined parallel into implicit shared clause.
16308 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
16309 and firstprivate if the decl has one too from combined parallel to
16310 the worksharing construct.
16312 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
16313 Michael Meissner <meissner@linux.ibm.com>
16315 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
16317 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
16319 * rtl.h (LABEL_REF_P): New #define.
16321 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
16323 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
16325 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16327 * internal-fn.c: Marked mask_load_direct as vectorizable.
16328 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
16329 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
16330 combined even if masks different with allow_slp_p param.
16331 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
16332 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
16333 dissolve SLP-only vectorizable groups when SLP has been discarded.
16334 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
16335 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
16337 (vect_build_slp_tree_1): Fixed comment typo.
16338 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
16339 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
16340 loads for SLP only.
16341 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
16343 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
16345 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16347 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
16348 Remove obsolete use_thunk reference.
16349 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16350 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16351 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
16352 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
16353 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16354 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16355 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16356 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16357 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16359 2019-05-28 Nathan Sidwell <nathan@acm.org>
16361 * tree.h (IDENTIFIER_ANON_P): New.
16362 (anon_aggrname_format, anon_aggname_p): Don't declare.
16363 (make_anon_name): Declare.
16364 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
16365 (hash_tree): Likewise.
16366 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
16367 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
16368 (anon_cnt, make_anon_name): New.
16370 2019-05-28 Martin Liska <mliska@suse.cz>
16373 * opts-global.c (decode_options): Print help for all
16374 help_option_arguments.
16375 * opts.c (print_help): Add new argument.
16376 (common_handle_option): Remember all values into
16377 help_option_arguments.
16378 * opts.h (print_help): Add new argument.
16380 2019-05-28 Martin Liska <mliska@suse.cz>
16383 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
16384 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
16385 (func_checker::compare_bb): Call compare_loops.
16387 2019-05-27 Jakub Jelinek <jakub@redhat.com>
16389 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16390 on sections construct.
16391 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
16393 (lower_omp_sections): Handle lastprivate conditional.
16394 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
16395 lastprivate_conditional_map.
16396 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
16398 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
16399 critical, taskgroup and section regions when looking for a region
16400 with non-NULL lastprivate_conditional_map.
16402 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16404 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
16405 (*ix86_gen_sub3): Ditto.
16406 (*ix86_gen_sub3_carry): Ditto.
16407 (*ix86_gen_one_cmpl2): Ditto.
16408 (*ix86_gen_andsp): Ditto.
16409 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
16410 (gen_and2_insn): New static function.
16411 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
16412 Use gen_add3_insn instead of ix86_gen_add3.
16413 (ix86_expand_split_stack_prologue): Use gen_add2_insn
16414 instead of ix86_gen_add3.
16415 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
16416 Use gen_sub3_insn instead of ix86_gen_sub3.
16417 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
16418 instead of ix86_gen_add3.
16419 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
16420 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
16421 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
16422 * config/i386/i386-options.c (ix86_option_override_internal):
16423 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
16424 ix86_gen_one_cmpl2 and ix86_gen_andsp.
16426 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
16428 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
16429 and DW_OP_GNU_const_index opcodes.
16431 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16433 * config/i386/i386.h (STACK_SIZE_MODE): Define.
16435 2019-05-27 Richard Biener <rguenther@suse.de>
16437 PR tree-optimization/90637
16438 * tree-ssa-sink.c (statement_sink_location): Honor the
16439 computed sink location for single-uses.
16441 2019-05-27 Richard Biener <rguenther@suse.de>
16443 PR middle-end/90610
16444 * match.pd (vec_perm): Avoid clobbering op0 when not generating
16447 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16449 * config/i386/i386.md (@sub<mode>3_carry): Rename
16450 from sub<mode>3_carry.
16451 (@leave_<mode>): New expander.
16452 (*leave): Rename from leave.
16453 (*leave_rex64): Rename from leave_rex64.
16454 (@monitorx_<mode>): Rename from monitorx_<mode>.
16455 (@clzero_<mode>): Rename from clzero_<mode>.
16456 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
16457 from sse3_monitor_<mode>.
16458 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
16459 (*ix86_gen_leave): Ditto.
16460 (*ix86_gen_monitor): Ditto.
16461 (*ix86_gen_monitorx): Ditto.
16462 (*ix86_gen_clzero): Ditto.
16463 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
16464 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
16465 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
16466 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
16467 Use gen_sse3_monitor instead of ix86_gen_monitor.
16468 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
16469 instead of ix86_gen_monitorx.
16470 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
16471 instead of ix86_gen_clzero.
16472 * config/i386/i386-options.c (ix86_option_override_internal):
16473 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
16474 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
16476 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16478 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
16479 Rename from tls_global_dynamic_64_<mode>.
16480 (@tls_local_dynamic_base_64_<mode>): Rename from
16481 tls_local_dynamic_base_64_<mode>.
16482 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
16483 Remove indirect function.
16484 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
16485 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
16486 instead of ix86_gen_tls_global_dynamic_64.
16487 Use gen_tls_local_dynamic_base_64 instead of
16488 ix86_gen_tls_local_dynamic_base_64.
16489 * config/i386/i386-options.c (ix86_option_override_internal):
16490 Do not initialize ix86_gen_tls_global_dynamic_64 and
16491 ix86_gen_tls_local_dynamic_base_64.
16493 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16495 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
16496 Rename from pro_epilogue_adjust_stack_<mode>_add.
16497 (@pro_epilogue_adjust_stack_sub_<mode>)
16498 Rename from pro_epilogue_adjust_stack_<mode>_sub.
16499 (@allocate_stack_worker_probe_<mode>):
16500 Rename from allocate_stack_worker_probe_<mode>.
16501 (allocate_stack): Use gen_allocate_stack_worker_probe.
16502 (probe_stack): Use gen_probe_stack_1.
16503 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
16504 (@adjust_stack_and_probe_<mode>): Rename from
16505 adjust_stack_and_probe<mode>.
16506 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
16507 (stack_protect_set): Use gen_stack_protect_set_1.
16508 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
16509 (stack_protect_test): Use gen_stack_protect_test_1.
16510 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
16511 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
16512 Remove indirect function.
16513 (*ix86_gen_adjust_stack_and_probe): Ditto.
16514 (*ix86_gen_probe_stack_range): Ditto.
16515 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
16516 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
16517 (ix86_adjust_stack_and_probe_stack_clash): Use
16518 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
16519 (ix86_adjust_stack_and_probe): Ditto.
16520 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
16521 of ix86_gen_probe_stack_range.
16522 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
16523 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
16524 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
16525 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
16526 CODE_FOR_stack_protect_test_{si,di}.
16527 * config/i386/i386-options.c (ix86_option_override_internal):
16528 Do not initialize ix86_gen_allocate_stack_worker,
16529 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
16531 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
16533 * doc/invoke.texi (Link Options): Many editorial changes around
16536 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16538 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
16539 pre-Solaris 11 referene and most Studio compiler details.
16541 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
16544 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
16545 DImode to SImode in floating-point registers on 64-bit target.
16546 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
16547 register_operand in xmpyu patterns.
16549 2019-05-24 Jakub Jelinek <jakub@redhat.com>
16551 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
16552 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
16553 OMP_CLAUSE__REDUCTEMP_.
16554 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16555 OMP_CLAUSE__CONDTEMP_.
16556 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
16557 * tree-pretty-print.c (dump_omp_clause): Likewise.
16558 * tree-nested.c (convert_nonlocal_omp_clauses,
16559 convert_local_omp_clauses): Likewise.
16560 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
16561 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
16562 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
16564 (gimplify_omp_for): Warn and disable conditional modifier from
16565 lastprivate on loop iterators.
16566 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
16568 * omp-general.c (omp_extract_for_data): Initialize it.
16569 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
16571 (delete_omp_context): Delete it.
16572 (lower_lastprivate_conditional_clauses): New function.
16573 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
16574 handle lastprivate conditional clauses.
16575 (lower_reduction_clauses): Add CLIST argument, emit it into
16576 the critical section if any.
16577 (lower_omp_sections): Adjust lower_lastprivate_clauses and
16578 lower_reduction_clauses callers.
16579 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
16580 to lower_lastprivate_clauses.
16581 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
16582 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
16583 clist into a critical section if not emitted there already by
16584 lower_reduction_clauses.
16585 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
16587 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
16588 conditional variables.
16589 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
16591 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16592 expand_omp_for_static_chunk): Handle lastprivate conditional.
16593 (expand_omp_for): Handle fd.lastprivate_conditional like
16596 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
16598 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
16599 kernel does not exit cleanly.
16600 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
16602 2019-05-24 Jason Merrill <jason@redhat.com>
16605 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
16607 2019-05-24 Richard Biener <rguenther@suse.de>
16610 * tree-loop-distribution.c (struct partition): Add location
16612 (partition_alloc): Initialize all fields.
16613 (generate_memset_builtin): Use the location recorded in the
16614 partition for the generated call.
16615 (generate_memcpy_builtin): Likewise.
16616 (classify_partition): Record the location of a single store
16617 as location for the partition.
16619 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
16621 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
16624 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
16627 * common/config/aarch64/aarch64-common.c
16628 (aarch64_rewrite_selected_cpu): Change local temporary variable
16629 type from unsigned long to uint64_t.
16630 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
16631 aarch64_get_extension_string_for_isa_flags): Change declaration to
16632 match new definition by replacing unsigned long with uint64_t.
16634 2019-05-24 Jakub Jelinek <jakub@redhat.com>
16637 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
16638 gen_attr_type just once instead of 4-7 times. Formatting fixes.
16639 Handle stack_protect_test_<mode> codegen similarly to corresponding
16642 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
16644 * config/i386/darwin.h: Reject -mfentry*.
16645 * doc/sourcebuild.texi: Document mfentry target support.
16647 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
16649 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
16650 Rename to rs6000_global_entry_point_prologue_needed_p. Return
16651 false for PC-relative functions.
16652 (rs6000_output_function_prologue): Change called function name to
16653 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
16654 name,1" for PC-relative functions.
16655 (rs6000_elf_declare_function_name): Change called function name to
16656 rs6000_global_entry_point_prologue_needed_p.
16658 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
16661 * config/i386/i386.c (gen_rtx_cost):
16662 Use ix86_tune_cost instead of ix86_cost.
16664 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
16665 Michael Meissner <meissner@linux.ibm.com>
16666 Segher Boessenkool <segher@kernel.crashing.org>
16668 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
16670 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
16671 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
16672 (rs6000_fndecl_pcrel_p): Likewise.
16673 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
16674 error if -mpcrel is requested without -mcpu=future.
16675 (rs6000_opt_masks): Add entry for pcrel.
16676 (rs6000_fndecl_pcrel_p): New function.
16677 (rs6000_pcrel_p): Likewise.
16678 * config/rs6000/rs6000.opt (mpcrel): New option.
16679 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
16681 2019-05-23 Jan Hubicka <jh@suse.cz>
16682 Martin Liska <mliska@suse.cz>
16684 PR tree-optimization/90576
16685 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
16687 (aliasing_component_refs_p): Fix three way size compare conditional;
16688 give up earlier in case we can not decide on equivalence.
16690 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
16691 Michael Meissner <meissner@linux.ibm.com>
16692 Segher Boessenkool <segher@kernel.crashing.org>
16694 * config.gcc: Add future cpu.
16695 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
16696 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
16698 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
16699 (RS6000_CPU): New instantiation for future cpu.
16700 * config/rs6000/rs6000-opts.h (enum processor_type): Add
16702 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
16703 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
16704 * config/rs6000/rs6000-tables.opt: Regenerate.
16705 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
16706 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
16707 (rs6000_machine_from_flags): Handle future cpu.
16708 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
16709 PROCESSOR_POWER9 for now.
16710 (rs6000_adjust_cost): Likewise.
16711 (rs6000_issue_rate): Likewise.
16712 (rs6000_register_move_cost): Likewise.
16713 (rs6000_opt_masks): Add entry for future.
16714 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
16715 (MASK_FUTURE): New #define.
16716 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
16717 * config/rs6000/rs6000.opt (mfuture): New target option.
16718 * doc/invoke.texi (mcpu): Add future cpu.
16720 2019-05-23 Martin Liska <mliska@suse.cz>
16723 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
16724 operation points to a temporary (pointed via tree_to_wide_ref)
16725 that is out of scope after the &.
16727 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
16730 * doc/extend.texi (Function Names): Add missing word.
16732 2019-05-23 Richard Biener <rguenther@suse.de>
16734 PR tree-optimization/88440
16735 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
16737 * tree-loop-distribution.c (generate_memset_builtin): Fold the
16739 (generate_memcpy_builtin): Likewise.
16740 (distribute_loop): Pass in whether to only distribute patterns.
16741 (prepare_perfect_loop_nest): Also allow size optimization.
16742 (pass_loop_distribution::execute): When optimizing a loop
16743 nest for size allow pattern replacement.
16745 2019-05-23 Jakub Jelinek <jakub@redhat.com>
16748 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
16751 2019-05-23 Martin Liska <mliska@suse.cz>
16754 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
16755 expression similarly to gimplify_decl_expr.
16757 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16759 * cse.c (cse_dump_path): s/dump_file/f.
16761 2019-05-22 David Malcolm <dmalcolm@redhat.com>
16764 * diagnostic-format-json.cc: Include "selftest.h".
16765 (json_from_expanded_location): Only add "file" key for non-NULL
16767 (json_from_location_range): Don't add "start" and "finish"
16768 children if they are UNKNOWN_LOCATION.
16769 (selftest::test_unknown_location): New selftest.
16770 (selftest::test_bad_endpoints): New selftest.
16771 (selftest::diagnostic_format_json_cc_tests): New function.
16772 * json.cc (json::object::get): New function.
16773 (selftest::test_object_get): New selftest.
16774 (selftest::json_cc_tests): Call it.
16775 * json.h (json::object::get): New decl.
16776 * selftest-run-tests.c (selftest::run_tests): Call
16777 selftest::diagnostic_format_json_cc_tests.
16778 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
16781 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16782 Andrew Stubbs <amd@codesourcery.com>
16784 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
16785 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
16786 (kernel): Rename to...
16787 (main_kernel): ... this.
16788 (load_image): Load _init_array and _fini_array kernels.
16789 (run): Add argument for kernel to run.
16790 (main): Run init_array_kernel before main_kernel, and
16791 fini_array_kernel after.
16792 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
16793 amdgpu_hsa_kernel attribute on functions.
16794 (gcn_disable_constructors): Delete.
16795 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
16796 * config/gcn/crt0.c (size_t): Define.
16797 (_init_array, _fini_array): New.
16798 (__preinit_array_start, __preinit_array_end,
16799 __init_array_start, __init_array_end,
16800 __fini_array_start, __fini_array_end): Declare weak references.
16802 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
16804 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
16806 2019-05-22 Jason Merrill <jason@redhat.com>
16808 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
16810 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
16813 * config/i386/i386-options.c (ix86_init_machine_status): Set
16814 stack_frame_required to true.
16815 * config/i386/i386.c (ix86_get_frame_size): New function.
16816 (ix86_frame_pointer_required): Replace get_frame_size with
16817 ix86_get_frame_size.
16818 (ix86_compute_frame_layout): Likewise.
16819 (ix86_find_max_used_stack_alignment): Changed to void. Set
16820 stack_frame_required.
16821 (ix86_finalize_stack_frame_flags): Always call
16822 ix86_find_max_used_stack_alignment. Replace get_frame_size with
16823 ix86_get_frame_size.
16824 * config/i386/i386.h (machine_function): Add stack_frame_required.
16826 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
16828 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
16830 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
16832 * common/config/aarch64/aarch64-common.c
16833 (struct aarch64_option_extension, struct processor_name_to_arch,
16834 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
16835 aarch64_contains_opt,
16836 aarch64_get_extension_string_for_isa_flags): Change type of
16837 variables storing flags to uint64_t.
16838 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
16839 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
16840 * config/aarch64/aarch64.c (struct processor,
16841 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
16842 aarch64_validate_march, aarch64_override_options,
16843 aarch64_option_print, aarch64_handle_attr_isa_flags,
16844 aarch64_declare_function_name, aarch64_start_file): Make flag
16845 variables uint64_t.
16846 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
16847 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
16848 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
16849 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
16850 * config/aarch64/driver-aarch64.c
16851 (struct aarch64_arch_extension, struct aarch64_core_data,
16852 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
16853 flag variables uint64_t.
16854 * doc/invoke.texi: Add documentation for new arguments.
16856 2019-05-22 Richard Biener <rguenther@suse.de>
16858 * alias.c (ao_ref_from_mem): Move stack-slot sharing
16860 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
16862 2019-05-22 Martin Liska <mliska@suse.cz>
16865 * doc/extend.texi: Document the change.
16867 2019-05-22 Richard Biener <rguenther@suse.de>
16869 PR tree-optimization/90450
16870 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
16871 (mem_ref_hasher::equal): Check it.
16872 (mem_ref_alloc): Initialize it.
16873 (gather_mem_refs_stmt): Set it.
16875 2019-05-22 Richard Biener <rguenther@suse.de>
16877 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
16879 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
16882 2019-05-22 Alan Modra <amodra@gmail.com>
16884 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
16885 (ASM_CPU_SPEC): Conditionally add -many.
16886 * config/rs6000/rs6000.c (rs6000_machine): New static var.
16887 (rs6000_machine_from_flags, emit_asm_machine): New functions..
16888 (rs6000_file_start): ..extracted from here, and modified to
16890 (rs6000_output_function_prologue): Emit .machine as necessary.
16892 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
16894 PR middle-end/90553
16895 * ira-lives.c (process_bb_node_lives): Consider defs
16896 for a call insn to be die before the call, not after.
16898 * function.c (assign_parm_setup_block): Raise alignment of
16899 stacked parameter only for STRICT_ALIGNMENT targets.
16901 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
16903 * config/rs6000/constraints.md (define_register_constraint "wz"):
16905 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16906 RS6000_CONSTRAINT_wz.
16907 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16908 (rs6000_init_hard_regno_mode_ok): Adjust.
16909 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
16910 * doc/md.texi (Machine Constraints): Adjust.
16912 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
16914 * config/rs6000/constraints.md (define_register_constraint "wl"):
16916 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16917 RS6000_CONSTRAINT_wl.
16918 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16919 (rs6000_init_hard_regno_mode_ok): Adjust.
16920 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
16921 * doc/md.texi (Machine Constraints): Adjust.
16923 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
16925 * config/rs6000/constraints.md (define_register_constraint "wm"):
16927 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16928 RS6000_CONSTRAINT_wm.
16929 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16930 (rs6000_init_hard_regno_mode_ok): Adjust.
16931 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
16932 * doc/md.texi (Machine Constraints): Adjust.
16934 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
16936 * config/rs6000/constraints.md (define_register_constraint "wk"):
16938 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16939 RS6000_CONSTRAINT_wk.
16940 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16941 (rs6000_init_hard_regno_mode_ok): Adjust.
16942 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
16943 * doc/md.texi (Machine Constraints): Adjust.
16945 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
16947 * config/rs6000/constraints.md (define_register_constraint "wj"):
16949 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16950 RS6000_CONSTRAINT_wj.
16951 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16952 (rs6000_init_hard_regno_mode_ok): Adjust.
16953 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
16955 * config/rs6000/vsx.md: Ditto.
16956 * doc/md.texi (Machine Constraints): Adjust.
16958 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
16960 * config/rs6000/constraints.md (define_register_constraint "wh"):
16962 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16963 RS6000_CONSTRAINT_wh.
16964 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16965 (rs6000_init_hard_regno_mode_ok): Adjust.
16966 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
16967 * doc/md.texi (Machine Constraints): Adjust.
16969 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
16972 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
16973 Avoid calling gen_lowpart with CONST operand.
16975 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
16977 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
16978 field template_last_to_copy.
16979 (ssa_create_duplicates): Set it, and use it. Attempt to
16980 preserve more debug stmts.
16982 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
16984 * config/i386/sse.md (VF1_AVX2): New mode iterator.
16985 (signbit<mode>2): New expander
16987 2019-05-21 James Clarke <jrtc27@jrtc27.com>
16990 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
16991 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
16993 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
16995 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
16996 %ebx and %ecx bafore calling cpuid with leaf 1 or
16997 non-constant leaf argument.
16999 2019-05-21 Alan Modra <amodra@gmail.com>
17002 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17003 power9 direct move cost.
17005 2019-05-21 Richard Biener <rguenther@suse.de>
17007 PR middle-end/90510
17008 * fold-const.c (fold_read_from_vector): New function.
17009 * fold-const.h (fold_read_from_vector): Declare.
17010 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17011 single-element insert permutations. Canonicalize selector
17012 further and fix issue with last commit.
17014 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17016 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17017 parameter with default value false to declaration.
17018 (split_edges_for_insertion): New inline function. Wrapper for
17019 split_critical_edges with for_edge_insertion_p = true.
17020 * tree-cfg.c (split_critical_edges): Don't split non-critical
17021 edges if for_edge_insertion_p is false. Fix whitespace.
17022 * tree-ssa-pre.c (pass_pre::execute): Call
17023 split_edges_for_insertion instead of split_critical_edges.
17024 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17025 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17026 (pass_data_sink_code): Update function name in the comment.
17028 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17030 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17031 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17032 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17033 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17036 2019-05-21 Martin Liska <mliska@suse.cz>
17038 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17040 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17041 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17043 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17045 (rs6000_function_arg): Likewise.
17046 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17047 (rs6000_expand_ternop_builtin): Use interval syntax.
17048 (get_element_number): Likewise.
17049 (altivec_expand_builtin): Likewise.
17050 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17052 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17056 * function.h (struct function): Add calls_eh_return member.
17057 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17058 gimplifying __builtin_eh_return call.
17059 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17061 (expand_call_inline): Or in src_cfun->calls_eh_return into
17062 dst_cfun->calls_eh_return.
17063 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17064 cfun->calls_eh_return.
17065 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17066 * lto-streamer-out.c (output_struct_function_base): Write
17069 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17071 PR rtl-optimization/43147
17072 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17073 IX86_BUILTIN_SHUFPD.
17075 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17077 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17078 (refs_may_alias_p_1): ... here; update stats.
17079 (refs_may_alias_p): Do not update stats here.
17081 2019-05-20 Richard Biener <rguenther@suse.de>
17083 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17084 doesn't produce pointers.
17085 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17086 the first operand points to.
17088 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17090 * tree-ssa-alias.c (compare_sizes): New function.
17091 (sompare_type_sizes): New function
17092 (aliasing_component_refs_p): Use it.
17093 (indirect_ref_may_alias_decl_p): Likewise.
17095 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17097 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17099 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17101 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17102 (LIBLSAN_EARLY_SPEC): Likewise.
17103 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17105 2019-05-20 Martin Liska <mliska@suse.cz>
17107 * config/i386/i386.c (ix86_libc_has_fast_function):
17108 Add ATTRIBUTE_UNUSED for the argument.
17110 2019-05-20 Richard Biener <rguenther@suse.de>
17112 * gimple-match-head.c: Include vec-perm-indices.h.
17113 * generic-match-head.c: Likewise.
17114 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17116 * fold-const.c (fold_vec_perm): Export.
17117 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17118 (match.pd): ...here.
17120 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17122 * cfgloop.h (struct loop): Add simdlen member.
17123 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17124 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17125 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17126 as new argument to autovectorize_vector_sizes target hook. If
17127 loop->simdlen, pick up vector size where the vectorization factor
17128 is equal to loop->simd, and if there is none, fall back to the first
17130 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17132 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17133 * omp-general.c (omp_max_vf): Likewise.
17134 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17135 * tree-vect-slp.c (vect_slp_bb): Likewise.
17136 * target.def (autovectorize_vector_sizes): Add ALL argument and
17138 * doc/tm.texi: Adjust documentation.
17139 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17140 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17141 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17143 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17144 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17145 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17146 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17147 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17148 preferred vector size is not 512-bit or 256-bit, just put those
17149 unpreferred ones last.
17151 2019-05-20 Martin Liska <mliska@suse.cz>
17153 * targhooks.c (default_libc_has_fast_function): New function.
17154 * targhooks.h (default_libc_has_fast_function): Likewise.
17156 2019-05-20 Martin Liska <mliska@suse.cz>
17158 PR middle-end/90263
17159 * builtins.c (expand_builtin_memory_copy_args): When having a
17160 target with fast mempcpy implementation do now use memcpy.
17161 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17162 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17163 * doc/tm.texi: Likewise.
17164 * doc/tm.texi.in: Likewise.
17166 * expr.c (emit_block_move_hints): Add 2 new arguments.
17167 * expr.h (emit_block_move_hints): Bail out when libcall
17168 to memcpy would be used.
17170 2019-05-20 Martin Liska <mliska@suse.cz>
17172 * profile-count.c: Add vertical spacing in order
17173 to separate functions.
17174 * profile-count.h: Likewise.
17176 2019-05-20 Martin Liska <mliska@suse.cz>
17178 * profile-count.h: Do not use full qualified
17180 * profile-count.c (profile_count::to_frequency): Likewise.
17182 2019-05-20 Martin Liska <mliska@suse.cz>
17184 * profile-count.h (enum profile_quality): Use capital letters
17185 for enum value names. Use the adjusted names.
17186 * profile-count.c: Use the adjusted names.
17188 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17190 * config/rs6000/constraints.md (define_register_constraint "wH"):
17192 (define_register_constraint "wI"): Delete.
17193 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17194 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17195 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17196 (rs6000_init_hard_regno_mode_ok): Adjust.
17197 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17198 resp. "d", or with "wa" as appropriate, all with "p8v".
17199 * config/rs6000/vsx.md: Ditto.
17200 * doc/md.texi (Machine Constraints): Adjust.
17202 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17204 * config/rs6000/constraints.md (define_register_constraint "wy"):
17206 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17207 RS6000_CONSTRAINT_wy.
17208 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17209 (rs6000_init_hard_regno_mode_ok): Adjust.
17210 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17211 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17212 (define_mode_attr Fisa): New.
17213 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17214 * doc/md.texi (Machine Constraints): Adjust.
17216 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17218 * config/rs6000/constraints.md (define_register_constraint "wu"):
17220 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17221 RS6000_CONSTRAINT_wu.
17222 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17223 (rs6000_init_hard_regno_mode_ok): Adjust.
17224 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17226 (define_mode_attr Fa): Delete.
17227 * config/rs6000/vsx.md: Ditto.
17228 * doc/md.texi (Machine Constraints): Adjust.
17230 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17232 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17234 (define_register_constraint "wK"): Delete.
17235 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17236 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17237 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17238 (rs6000_init_hard_regno_mode_ok): Adjust.
17239 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17240 Replace "wK" constraint by "wH" with "p9v".
17241 * config/rs6000/vsx.md: Ditto.
17242 * doc/md.texi (Machine Constraints): Adjust.
17244 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17246 * config/rs6000/constraints.md (define_register_constraint "wb"):
17248 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17249 RS6000_CONSTRAINT_wb.
17250 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17251 (rs6000_init_hard_regno_mode_ok): Adjust.
17252 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
17253 * config/rs6000/vsx.md: Ditto.
17254 * doc/md.texi (Machine Constraints): Adjust.
17256 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17258 * config/rs6000/constraints.md (define_register_constraint "wo"):
17260 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17261 RS6000_CONSTRAINT_wo.
17262 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17263 (rs6000_init_hard_regno_mode_ok): Adjust.
17264 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
17265 * config/rs6000/altivec.md: Ditto.
17266 * doc/md.texi (Machine Constraints): Adjust.
17268 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17270 * config/darwin-c.c (darwin_register_objc_includes): Do not
17271 prepend the sysroot when building gnu-runtime header search
17274 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17276 * config/darwin.c (darwin_file_end): Use switch_to_section ()
17277 instead of direct output of the asm.
17279 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17281 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
17282 argument to be type bool (was int before).
17283 (rs6000_emit_epilogue): Simplify some code. Declare some variables
17284 at first use. Use type bool for some variables. Fix a theoretical
17285 eh_return bug for svr4.
17287 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17289 * config/rs6000/rs6000.md (isa): New attribute.
17290 (enabled): New attribute.
17292 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
17294 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
17295 assemble_start_function and assemble_end_function.
17297 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
17299 PR middle-end/89433
17300 * omp-general.c (oacc_verify_routine_clauses): Change formal
17301 parameters. Add checking if already marked with an OpenACC
17302 'routine' directive. Adjust all users.
17304 PR middle-end/89433
17305 * omp-general.c (oacc_build_routine_dims): Move some of its
17307 (oacc_verify_routine_clauses): ... this new function.
17308 * omp-general.h (oacc_verify_routine_clauses): New prototype.
17310 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17312 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
17313 formating of picbase labels to match other ports.
17315 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17317 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
17318 in the generated code.
17320 2019-05-16 Martin Sebor <msebor@redhat.com>
17322 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
17323 identifiers, keywords, operators, and types in diagnostics. Correct
17324 quoting, spelling, and sentence capitalization issues.
17325 (expand_builtin_atomic_is_lock_free): Same.
17326 (fold_builtin_next_arg): Same.
17327 * cfgexpand.c (expand_one_var): Same.
17328 (tree_conflicts_with_clobbers_p): Same.
17329 (expand_asm_stmt): Same.
17330 (verify_loop_structure): Same.
17331 * cgraphunit.c (process_function_and_variable_attributes): Same.
17332 * collect-utils.c (collect_execute): Same.
17333 * collect2.c (maybe_run_lto_and_relink): Same.
17334 (is_lto_object_file): Same.
17335 (scan_prog_file): Same.
17336 * convert.c (convert_to_real_1): Same.
17337 * dwarf2out.c (dwarf2out_begin_prologue): Same.
17338 * except.c (verify_eh_tree): Same.
17339 * gcc.c (execute): Same.
17340 (eval_spec_function): Same.
17341 (run_attempt): Same.
17342 (driver::set_up_specs): Same.
17343 (compare_debug_auxbase_opt_spec_function): Same.
17344 * gcov-tool.c (unlink_gcda_file): Same.
17346 (do_rewrite): Same.
17347 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
17348 * gimplify.c (gimplify_asm_expr): Same.
17349 (gimplify_adjust_omp_clauses): Same.
17350 * hsa-gen.c (gen_hsa_addr_insns): Same.
17351 (gen_hsa_insns_for_load): Same.
17352 (gen_hsa_cmp_insn_from_gimple): Same.
17353 (gen_hsa_insns_for_operation_assignment): Same.
17354 (gen_get_level): Same.
17355 (gen_hsa_alloca): Same.
17356 (omp_simple_builtin::generate): Same.
17357 (gen_hsa_atomic_for_builtin): Same.
17358 (gen_hsa_insns_for_call): Same.
17359 * input.c (dump_location_info): Same.
17360 * ipa-devirt.c (compare_virtual_tables): Same.
17361 * ira.c (ira_setup_eliminable_regset): Same.
17362 * lra-assigns.c (lra_assign): Same.
17363 * lra-constraints.c (lra_constraints): Same.
17364 * lto-streamer-in.c (lto_input_mode_table): Same.
17365 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
17366 (merge_and_complain): Same.
17367 (compile_offload_image): Same.
17368 (compile_images_for_offload_targets): Same.
17369 (debug_objcopy): Same.
17372 * opts.c (print_specific_help): Same.
17373 (parse_no_sanitize_attribute): Same.
17374 (print_help): Same.
17375 (handle_param): Same.
17376 * plugin.c (add_new_plugin): Same.
17377 (parse_plugin_arg_opt): Same.
17378 (try_init_one_plugin): Same.
17379 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
17380 operators, and types in diagnostics. Correct quoting and spelling
17382 * read-rtl-function.c (parse_edge_flag_token): Same.
17383 (function_reader::parse_enum_value): Same.
17384 * reg-stack.c (check_asm_stack_operands): Same.
17385 * regcprop.c (validate_value_data): Same.
17386 * sched-rgn.c (make_pass_sched_fusion): Same.
17387 * stmt.c (check_unique_operand_names): Same.
17388 * targhooks.c (default_target_option_pragma_parse): Same.
17389 * tlink.c (recompile_files): Same.
17390 * toplev.c (process_options): Same.
17391 (do_compile): Same.
17392 * trans-mem.c (diagnose_tm_1): Same.
17393 (ipa_tm_scan_irr_block): Same.
17394 (ipa_tm_diagnose_transaction): Same.
17395 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
17396 format a tree code name in a diagnostic.
17397 (verify_types_in_gimple_min_lval): Same.
17398 (verify_types_in_gimple_reference): Same.
17399 (verify_gimple_call): Same.
17400 (verify_gimple_assign_unary): Same.
17401 (verify_gimple_assign_binary): Same.
17402 (verify_gimple_assign_ternary): Same.
17403 (verify_gimple_assign_single): Same.
17404 (verify_gimple_switch): Same.
17405 (verify_gimple_label): Same.
17406 (verify_gimple_phi): Same.
17407 (verify_gimple_in_seq): Same.
17408 (verify_eh_throw_stmt_node): Same.
17409 (collect_subblocks): Same.
17410 (gimple_verify_flow_info): Same.
17411 (do_warn_unused_result): Same.
17412 * tree-inline.c (expand_call_inline): Same.
17413 * tree-into-ssa.c (update_ssa): Same.
17414 * tree.c (tree_int_cst_elt_check_failed): Same.
17415 (tree_vec_elt_check_failed): Same.
17416 (omp_clause_operand_check_failed): Same.
17417 (verify_type_variant): Same.
17418 (verify_type): Same.
17419 * value-prof.c (verify_histograms): Same.
17420 * varasm.c (assemble_start_function): Same.
17422 2019-05-16 Martin Sebor <msebor@redhat.com>
17424 * config/i386/i386-expand.c (get_element_number): Quote keywords
17425 and other internal names in diagnostics. Adjust other diagnostic
17426 formatting issues noted by -Wformat-diag.
17427 * config/i386/i386-features.c
17428 (ix86_mangle_function_version_assembler_name): Same.
17429 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
17430 * config/i386/i386.c (ix86_function_type_abi): Same.
17431 (ix86_function_ms_hook_prologue): Same.
17432 (classify_argument): Same.
17433 (ix86_expand_prologue): Same.
17434 (ix86_md_asm_adjust): Same.
17435 (ix86_memmodel_check): Same.
17437 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
17439 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
17440 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
17443 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
17446 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
17447 intrinsics without SSE/SSE2/SSSE3.
17448 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
17450 (*mmx_uavgv8qi3): Likewise.
17452 2019-05-17 Richard Biener <rguenther@suse.de>
17454 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
17455 VEC_PERM_EXPR as __VEC_PERM with -gimple.
17457 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
17459 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
17460 vec_sldw insn pattern.
17462 2019-05-17 Richard Biener <rguenther@suse.de>
17464 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
17466 2019-05-17 Martin Liska <mliska@suse.cz>
17469 * toplev.c (output_stack_usage): With LTO and sanitizer it
17470 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
17471 has no file location.
17473 2019-05-16 Jakub Jelinek <jakub@redhat.com>
17476 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
17477 sz0 is equal to sz1, instead return false in that case.
17479 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
17480 has non-constant expression, force sctx.lane and use two
17481 argument IFN_GOMP_SIMD_LANE instead of single argument.
17482 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
17483 two argument IFN_GOMP_SIMD_LANE without lhs.
17484 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
17486 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
17488 (LOOP_REQUIRES_VERSIONING): Or in
17489 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
17490 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
17492 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
17493 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
17494 from simd if clause if needed.
17496 2019-05-16 Richard Biener <rguenther@suse.de>
17498 * tree-affine.c (expr_to_aff_combination): New function split
17500 (tree_to_aff_combination): ... here.
17501 (aff_combination_expand): Avoid building a GENERIC tree.
17503 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
17505 * cgraphunit.c (cgraph_node::expand_thunk): Remove
17506 assemble_start_function and assemble_end_function calls.
17507 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
17508 assemble_start_function and assemble_end_function.
17509 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
17510 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
17511 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
17512 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
17513 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
17514 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
17515 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
17516 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
17517 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17518 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17519 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
17520 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
17522 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
17523 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
17524 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
17525 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
17526 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17527 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17528 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
17529 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
17530 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17531 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
17532 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17533 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17534 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
17535 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
17537 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17538 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17539 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
17541 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
17543 * tree-ssa-alias.c (alias_stats): Add
17544 aliasing_component_refs_p_may_alias and
17545 aliasing_component_refs_p_no_alias.
17546 (dump_alias_stats): Print aliasing_component_refs_p stats.
17547 (aliasing_component_refs_p): Update stats.
17549 2019-05-16 Martin Liska <mliska@suse.cz>
17552 * multiple_target.c (expand_target_clones): Do not allow
17553 target_clones being used with a symbol that is an alias.
17555 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
17557 PR tree-optimization/90394
17558 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
17559 positives rather than ICE for cases where (code2 == NE_EXPR
17560 && code1 == BIT_AND_EXPR).
17562 2019-05-16 Jakub Jelinek <jakub@redhat.com>
17565 * tree-core.h (struct tree_decl_common): Document
17566 decl_nonshareable_flag for PARM_DECLs.
17567 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
17568 * calls.c (expand_call): Don't try tail call if caller
17569 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
17570 passed on the stack and callee needs to pass any arguments on the
17572 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
17573 else if instead of series of mutually exclusive ifs. Handle
17574 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
17575 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17577 * lto-streamer.h (LTO_major_version): Bump to 9.
17579 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
17581 PR tree-optimization/90106
17582 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
17583 new parameter as new internal function call, also move it to new
17585 (use_internal_fn): Pass internal function call to
17586 shrink_wrap_one_built_in_call_with_conds.
17588 2019-05-15 Jakub Jelinek <jakub@redhat.com>
17590 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
17592 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
17593 safelen_int and set loop->dont_vectorize.
17595 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17598 * config/i386/i386-builtin.def: Enable MMX intrinsics with
17600 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
17602 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
17603 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
17604 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
17607 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17610 * config/i386/mmx.md (*vec_dupv2sf): Changed to
17611 define_insn_and_split to support SSE emulation.
17612 (*vec_extractv2sf_0): Likewise.
17613 (*vec_extractv2sf_1): Likewise.
17614 (*vec_extractv2si_0): Likewise.
17615 (*vec_extractv2si_1): Likewise.
17616 (*vec_extractv2si_zext_mem): Likewise.
17617 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
17618 (vec_extractv2sf_1 splitter): Likewise.
17619 (vec_extractv2sfsf): Likewise.
17620 (vec_setv2si): Likewise.
17621 (vec_extractv2si_1 splitter): Likewise.
17622 (vec_extractv2sisi): Likewise.
17623 (vec_setv4hi): Likewise.
17624 (vec_extractv4hihi): Likewise.
17625 (vec_setv8qi): Likewise.
17626 (vec_extractv8qiqi): Likewise.
17627 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
17628 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
17629 (vec_extractv2sisi): Likewise.
17630 (vec_extractv4hihi): Likewise.
17631 (vec_extractv8qiqi): Likewise.
17632 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
17633 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
17634 (vec_initv2sisi): Likewise.
17635 (vec_initv4hihi): Likewise.
17636 (vec_initv8qiqi): Likewise.
17637 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
17638 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
17639 (vec_setv4hi): Likewise.
17640 (vec_setv8qi): Likewise.
17642 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17645 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
17646 TARGET_MMX_WITH_SSE.
17647 (MMXMODE:*mov<mode>_internal): Likewise.
17648 (MMXMODE:movmisalign<mode>): Likewise.
17650 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
17653 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
17654 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
17655 (sse2_cvtpd2pi): Ditto.
17656 (sse2_cvttpd2pi): Ditto.
17657 (*vec_concatv2sf_sse4_1): Ditto.
17658 (*vec_concatv2sf_sse): Ditto.
17659 (*vec_concatv2si_sse4_1): Ditto.
17660 (*vec_concatv2si): Ditto.
17661 (*vec_concatv4si_0): Ditto.
17662 (*vec_concatv2di_0): Ditto.
17664 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17667 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
17669 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17672 * config/i386/sse.md (ssse3_palignrdi): Changed to
17673 define_insn_and_split to support SSE emulation.
17675 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17678 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
17680 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17683 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
17684 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
17687 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17690 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
17691 or TARGET_MMX_WITH_SSE.
17692 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
17694 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17697 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
17699 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17702 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
17703 Changed to define_insn_and_split to support SSE emulation.
17705 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17708 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
17709 Changed to define_insn_and_split to support SSE emulation.
17711 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17714 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
17715 (*mmx_<emms>): This.
17716 (mmx_<emms>): New expander.
17718 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17721 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
17723 (*sse2_umulv1siv1di3): Add SSE2 emulation.
17725 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17728 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
17730 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17733 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
17735 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17738 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
17739 TARGET_MMX_WITH_SSE.
17740 (*mmx_uavgv4hi3): Add SSE emulation.
17742 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17745 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
17746 and TARGET_MMX_WITH_SSE.
17747 (*mmx_uavgv8qi3): Add SSE emulation.
17749 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17752 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
17753 maskmovdqu for __MMX_WITH_SSE__.
17755 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17758 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
17759 TARGET_MMX and TARGET_MMX_WITH_SSE.
17760 (*mmx_umulv4hi3_highpart): Add SSE emulation.
17762 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17765 * config/i386/mmx.md (mmx_pmovmskb): Changed to
17766 define_insn_and_split to support SSE emulation.
17768 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17771 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
17772 and TARGET_MMX_WITH_SSE.
17773 (mmx_<code>v8qi3): Likewise.
17774 (smaxmin:<code>v4hi3): New.
17775 (umaxmin:<code>v8qi3): Likewise.
17776 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
17777 (umaxmin:*mmx_<code>v8qi3): Likewise.
17779 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17782 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
17783 TARGET_MMX_WITH_SSE.
17784 (*mmx_pinsrw): Add SSE emulation.
17786 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17789 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
17791 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17794 * config/i386/sse.md (sse_cvtpi2ps): Changed to
17795 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
17798 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17801 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
17802 (sse_cvttps2pi): Likewise.
17804 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17807 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
17808 TARGET_MMX_WITH_SSE.
17809 (mmx_pshufw_1): Add SSE emulation.
17810 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
17811 TARGET_MMX_WITH_SSE to support SSE emulation.
17813 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17816 * config/i386/constraints.md (Yw): New constraint.
17817 * config/i386/mmx.md (*vec_dupv2si): Changed to
17818 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
17819 support SSE emulation.
17821 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17824 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
17825 TARGET_MMX_WITH_SSE.
17826 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
17828 (mmx_gt<mode>3): Likewise.
17830 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17833 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
17834 TARGET_MMX_WITH_SSE. Add SSE support.
17836 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17839 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
17840 TARGET_MMX_WITH_SSE.
17841 (any_logic:<code><mode>3): New.
17842 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
17845 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17848 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
17849 TARGET_MMX_WITH_SSE. Add SSE emulation.
17850 (mmx_<shift_insn><mode>3): Likewise.
17851 (ashr<mode>3): New.
17852 (<shift_insn><mode>3): Likewise.
17854 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17857 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
17858 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
17860 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17863 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
17864 TARGET_MMX_WITH_SSE.
17865 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
17868 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17871 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
17872 TARGET_MMX_WITH_SSE.
17874 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
17877 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17880 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
17881 (plusminus:mmx_<plusminus_insn><mode>3): Check
17882 TARGET_MMX_WITH_SSE.
17883 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
17884 (<plusminus_insn><mode>3): New.
17885 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
17886 (*mmx_<plusminus_insn><mode>3): Likewise.
17888 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17891 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
17892 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
17894 * config/i386/mmx.m (mmx_punpckhbw): Changed to
17895 define_insn_and_split to support SSE emulation.
17896 (mmx_punpcklbw): Likewise.
17897 (mmx_punpckhwd): Likewise.
17898 (mmx_punpcklwd): Likewise.
17899 (mmx_punpckhdq): Likewise.
17900 (mmx_punpckldq): Likewise.
17902 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17903 Uros Bizjak <ubizjak@gmail.com>
17906 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
17908 (ix86_split_mmx_pack): Likewise.
17909 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
17911 (ix86_split_mmx_pack): Likewise.
17912 * config/i386/i386.md (mmx_isa): New.
17913 (enabled): Also check mmx_isa.
17914 * config/i386/mmx.md (any_s_truncate): New code iterator.
17915 (s_trunsuffix): New code attr.
17916 (mmx_packsswb): Removed.
17917 (mmx_packssdw): Likewise.
17918 (mmx_packuswb): Likewise.
17919 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
17920 MMX packsswb/packuswb with SSE2.
17921 (mmx_packssdw): Likewise.
17922 * config/i386/predicates.md (register_mmxmem_operand): New.
17924 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17927 * config/i386/i386-c.c (ix86_target_macros_internal): Define
17928 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
17929 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
17930 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
17931 (ix86_vector_mode_supported_p): Likewise.
17932 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
17934 2019-05-15 Martin Liska <mliska@suse.cz>
17936 PR middle-end/90478
17937 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
17938 Check for overflow.
17940 2019-05-15 Richard Biener <rguenther@suse.de>
17942 * tree-into-ssa.c (pass_build_ssa::execute): Run
17943 update_address_taken before going into SSA.
17945 2019-05-15 Richard Biener <rguenther@suse.de>
17947 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
17948 as __BIT_FIELD_REF with type with -gimple.
17950 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
17952 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
17953 semantically equivalent branches (left over after prior refactorings).
17955 2019-05-15 Richard Biener <rguenther@suse.de>
17957 PR tree-optimization/88828
17958 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
17961 2019-05-14 Richard Biener <rguenther@suse.de>
17963 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
17964 as __VIEW_CONVERT with -gimple.
17966 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
17969 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
17972 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
17974 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
17975 define_split to become a define_insn_and_split.
17977 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
17979 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
17981 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
17982 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
17983 (sibcall_epilogue): Adjust.
17984 (epilogue): Adjust.
17986 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17988 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
17989 to unsupported ones.
17990 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
17991 * config.host: Likewise.
17992 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
17993 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
17994 __svr4__]: Remove "brand" fallback.
17995 [!KSTAT_DATA_STRING]: Remove.
17996 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
17998 (comdat_group): Likewise.
17999 (set_have_as_tls): Likewise.
18000 (gcc_cv_target_dl_iterate_phdr): Likewise.
18001 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18002 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18003 * configure: Regenerate.
18004 * doc/install.texi: Simplify Solaris target triplets.
18005 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18006 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18007 Remove Solaris 10 references.
18008 Remove obsolete Solaris bug reference.
18009 (Specific, sparc-sun-solaris2.10): Remove.
18011 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18013 * config/i386/i386.md (any_div): New code iterator.
18014 (paired_mod): New code attribute.
18015 (sgnprefix): Handle DIV and UDIV RTXes.
18017 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18018 and udivmod<mode>4 patterns using any_div code iterator.
18019 (divmod splitters): Macroize splitters using any_div code iterator.
18020 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18021 (*udivmodsi4_pow2_zext_2): Ditto.
18022 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18023 and *udivmod<mode>4_noext patterns using any_div code iterator.
18024 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18025 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18026 patterns using any_div code iterator.
18027 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18028 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18029 patterns using any_div code iterator.
18030 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18031 udivmodhiqi3 patterns using any_extend code iterator.
18033 2019-05-14 Richard Biener <rguenther@suse.de>
18034 H.J. Lu <hongjiu.lu@intel.com>
18036 PR tree-optimization/88828
18037 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18038 permuting in a single non-constant element not extracted
18041 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18043 * internal-fn.def (SIGNBIT): New.
18044 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18046 (signbitv4sf2): Likewise.
18048 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18051 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18052 next insn when the SRC reg is dead.
18054 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18056 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18057 (alloc_cand_and_find_basis): Ditto.
18058 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18059 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18060 (create_add_imm_cand, slsr_process_cast): Ditto.
18061 (slsr_process_copy, replace_mult_candidate): Ditto.
18062 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18063 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18064 (pass_strength_reduction::execute): Init the first NULL element.
18066 2019-05-13 Nathan Sidwell <nathan@acm.org>
18068 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18069 (run_attempt): Reformat line break.
18071 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18074 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18075 data registers in sibcall epilogues.
18076 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18078 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18081 * configure.ac (--enable-frame-pointer):
18082 Disable by default for cygwin and mingw.
18083 * configure: Regenerate.
18085 2019-05-13 Nathan Sidwell <nathan@acm.org>
18087 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18089 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18090 (gen_member_die): Move abstract origin check earlier. Only VARs
18091 can be static_inline_p. Simplify splicing control flow.
18093 2019-05-13 Richard Biener <rguenther@suse.de>
18095 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18097 (vect_build_slp_tree_1): Likewise.
18099 2019-05-13 Richard Biener <rguenther@suse.de>
18101 PR tree-optimization/90402
18102 * tree-if-conv.c (tree_if_conversion): Value number only
18103 the loop body by making the latch an exit of the region
18105 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18107 (do_rpo_vn): Deal with multiple edges into the entry block
18108 that are not backedges inside the region by skipping PHIs
18109 of the entry block.
18111 2019-05-13 Richard Biener <rguenther@suse.de>
18113 PR tree-optimization/90316
18114 * tree-ssa-pre.c (insert_aux): Fold into ...
18115 (insert): ... this function. Use a RPO walk to reduce the
18116 number of required iterations.
18118 2019-05-13 Martin Liska <mliska@suse.cz>
18120 PR tree-optimization/90416
18121 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18122 string instead of passing the second part as va_arg argument.
18124 2019-05-13 Martin Liska <mliska@suse.cz>
18126 PR gcov-profile/90380
18127 * gcov.c (handle_cycle): Do not support zero cycle count,
18128 it should not be possible.
18129 (path_contains_zero_cycle_arc): New function.
18130 (circuit): Ignore zero cycle arc counts.
18132 2019-05-13 Martin Liska <mliska@suse.cz>
18134 PR gcov-profile/90380
18135 * gcov.c (enum loop_type): Remove the enum and
18137 (handle_cycle): Assert that we should not reach
18139 (circuit): Use loop_found instead of a tri-state loop_type.
18140 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18143 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18146 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18147 (ix86_output_indirect_branch_via_reg): Use output mechanism
18148 accounting for __USER_LABEL_PREFIX__.
18149 (ix86_output_indirect_branch_via_push): Likewise.
18150 (ix86_output_function_return): Likewise.
18151 (ix86_output_indirect_function_return): Likewise.
18153 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18155 * doc/md.texi: Document use of code attributes in rtx patterns.
18156 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18157 * read-rtl.c (find_code): Split out search loops into...
18158 (maybe_find_code): ...this new function.
18159 (check_code_iterator): Make the error message more informative.
18160 (check_code_attribute): New function.
18161 (rtx_reader::rtx_alloc_for_name): Likewise.
18162 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18163 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18164 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18165 <max_opp> directly as an rtx code instead of via a match_operator.
18166 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18167 (<su>abd<mode>_3): Update accordingly.
18169 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18171 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18172 is given, print the state of the EH "save world" computation for
18175 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18178 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18179 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18181 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18183 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18184 Use pinsrd for TARGET_SSE4_1.
18185 * config/i386/sse.md (movdi_to_sse): Ditto.
18187 2019-05-10 Richard Biener <rguenther@suse.de>
18189 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18190 (do_rpo_vn): Initialize next_value_id.
18192 2019-05-10 Martin Liska <mliska@suse.cz>
18194 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18197 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18199 PR tree-optimization/90385
18200 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18201 arguments of the exit phis.
18204 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18205 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18207 (copy_tree_body_r): Likewise.
18208 (copy_fn): Set id.do_not_fold to true.
18210 2019-05-10 Martin Liska <mliska@suse.cz>
18212 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18213 Reapply changes from r269790.
18215 2019-05-10 Martin Liska <mliska@suse.cz>
18217 PR middle-end/90340
18218 * doc/invoke.texi: New params.
18219 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18220 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18221 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18223 * tree-switch-conversion.h (struct jump_table_cluster):
18226 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18228 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18230 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18232 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18234 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
18236 PR rtl-optimization/88879
18237 * sel-sched.c (sel_target_adjust_priority): Remove assert.
18239 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
18242 * config/arm/arm.c (callee_saved_reg_p): Move before
18243 thumb_find_work_register.
18244 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18245 thumb_find_work_register. Only call df_get_live_out once.
18246 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18247 (thumb_find_work_register): Use
18248 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18249 algorithms to locate a spare call clobbered reg.
18251 2019-05-09 Martin Liska <mliska@suse.cz>
18253 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
18254 and MAX_EXPR in GIMPLE FE format.
18256 2019-05-09 Martin Liska <mliska@suse.cz>
18258 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
18259 * gimple-pretty-print.c (dump_gimple_bb_header):
18261 (pp_cfg_jump): Dump edge probability.
18262 * profile-count.c (profile_quality_as_string): Simplify
18263 with a static array.
18264 (parse_profile_quality): New function.
18265 (profile_count::dump): Simplify with a static array.
18266 (profile_count::from_gcov_type): Add new argument.
18267 * profile-count.h (parse_profile_quality): Likewise.
18268 * predict.h (set_hot_bb_threshold): New.
18269 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18271 * predict.c (get_hot_bb_threshold): Set from the new param.
18272 (set_hot_bb_threshold): New.
18274 2019-05-09 Richard Biener <rguenther@suse.de>
18276 PR tree-optimization/90395
18277 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
18278 rewrite vector stores that throw internally.
18280 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
18282 * cif-code.def (CHKP): Remove.
18285 * configure.ac (--enable-frame-pointer): Disable by default for
18287 * configure: Regenerate.
18289 2019-05-09 Alan Modra <amodra@gmail.com>
18292 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
18293 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
18294 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
18295 cost for general <-> vsx when direct moves are available.
18296 Cost union classes at minimal cost for any reg in the class.
18297 Correct calculation for moves between vsx, float, and altivec.
18298 Don't return a low cost for moves between special regs. Don't
18299 use hard coded register numbers.
18300 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
18301 (rs6000_ira_change_pseudo_allocno_class): New function.
18302 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
18303 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
18305 (movsi_internal1): Don't disparage vector alternatives.
18306 (mov<mode>_internal): Likewise, excepting alternative that
18308 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
18309 we <- b alternative.
18311 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18314 PR tree-optimization/89060
18315 * tree-ssa-live.h (live_vars_map): New typedef.
18316 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
18317 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
18318 (struct compute_live_vars_data): New type.
18319 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
18320 live_vars_at_stmt, destroy_live_vars): New functions.
18321 * tree-tailcall.c: Include tree-ssa-live.h.
18322 (live_vars, live_vars_vec): New global variables.
18323 (find_tail_calls): Perform variable life analysis before punting.
18324 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
18325 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
18327 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
18328 Perform variable life analysis to select variables that really need
18330 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
18331 instead set id->eh_landing_pad_dest and assert it is the same.
18332 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
18334 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
18335 Richard Earnshaw <rearnsha@arm.com>
18338 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
18340 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
18341 (thumb1_compute_save_core_reg_mask): Don't force a spare work
18342 register if both the epilogue and prologue can use call-clobbered
18344 (thumb1_unexpanded_epilogue): Use
18345 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
18346 picking temporaries for restoring high regs to match that of the
18347 prologue where possible.
18348 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
18349 the list of work registers. Detect if the return address is still live
18350 at the end of the prologue and avoid using it for a work register if so.
18351 If the return address is not live, add LR to the list of pushable regs
18352 after the first pass.
18354 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18356 PR tree-optimization/90078
18357 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
18358 (INFTY): Increase the value for infinite cost.
18359 (struct comp_cost): Promote type of members to int64_t.
18360 (infinite_cost): Don't set complexity in initialization.
18361 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
18362 overflows to infinite_cost.
18363 (adjust_setup_cost): Promote type of parameter and cost computation
18365 (struct ainc_cost_data, struct iv_ca): Promote type of member to
18367 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
18368 cost computation to int64_t.
18369 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
18370 int64_t's format specifier in dump.
18372 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18374 PR tree-optimization/90240
18375 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
18376 with respect to scaling factor pre-computed for each basic block.
18377 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
18378 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
18379 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
18380 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
18381 live range for array of loop's basic blocks. Cleanup aux field of
18382 loop's basic blocks.
18384 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18386 PR tree-optimization/90356
18387 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
18389 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
18391 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
18392 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
18393 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
18394 (ix86_handle_option): Handle -mavx512bf16.
18395 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
18397 * config/i386/avx512bf16vlintrin.h: New.
18398 * config/i386/avx512bf16intrin.h: New.
18399 * config/i386/cpuid.h (bit_AVX512BF16): New.
18400 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
18401 * config/i386/i386-builtin-types.def: Add new types.
18402 * config/i386/i386-builtin.def: Add new builtins.
18403 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18405 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
18406 (ix86_option_override_internal): Handle BF16.
18407 (ix86_valid_target_attribute_inner_p): Ditto.
18408 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
18409 * config/i386/i386-builtin.c (enum processor_features): Add
18411 (static const _isa_names_table isa_names_table): Ditto.
18412 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
18413 (PTA_AVX512BF16): Ditto.
18414 * config/i386/i386.opt: Add -mavx512bf16.
18415 * config/i386/immintrin.h: Include avx512bf16intrin.h
18416 and avx512bf16vlintrin.h.
18417 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
18418 avx512f_cvtneps2bf16_<mode><mask_name>,
18419 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
18420 * config/i386/subst.md (mask_half): Add new subst.
18421 * doc/invoke.texi: Document -mavx512bf16.
18423 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18425 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
18426 Delete declaration.
18427 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
18428 (rs6000_debug_legitimize_reload_address): Delete.
18429 (rs6000_legitimize_reload_address_ptr): Delete.
18430 (rs6000_option_override_internal): Adjust.
18431 (mem_operand_gpr): Adjust comment.
18432 (legitimate_lo_sum_address_p): Ditto.
18433 (rs6000_legitimize_reload_address): Delete.
18434 (rs6000_debug_legitimize_reload_address): Delete.
18435 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
18437 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
18440 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18441 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
18442 to compute vector element selector for both constant and variable
18445 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
18447 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
18448 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
18449 ashrdi3_cvt using SWI48 mode iterator.
18451 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18453 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
18454 (aarch64_<su>abd<mode>_3): Likewise.
18455 (*aarch64_<su>abd<mode>_3): New define_insn.
18456 (<sur>sad<vsi2qi>): New define_expand.
18457 * config/aarch64/iterators.md: Added MAX_OPP attribute.
18458 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
18459 (build_vect_cond_expr): Likewise.
18461 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
18463 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
18464 clobbers outside of accessible_reg_set.
18465 * config/i386/i386.c (ix86_conditional_register_usage):
18466 Disable register sets by clearing corresponding bits in
18467 accessible_reg_set. Do not set corresponding bits in fixed_regs,
18468 call_used_regs and don't clear corresponding reg_names array members.
18470 2019-05-07 Richard Biener <rguenther@suse.de>
18472 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
18473 not specified still compute a comp_vectype for invariant
18476 2019-05-07 Richard Biener <rguenther@suse.de>
18478 PR tree-optimization/90316
18479 * tree-ssa-pre.c (translate_vuse_through_block): When
18480 same_valid is NULL do not bother to search for a virtual
18482 (phi_translate_1): When operands changed we cannot keep
18483 the same value-number so do not bother to ask whether
18484 that's possible from translate_vuse_through_block.
18486 2019-05-07 Martin Liska <mliska@suse.cz>
18488 * bitmap.c (bitmap_register): Come up with
18489 alloc_descriptor_max_uid and assign it for
18491 (register_overhead): Use get_descriptor as
18493 (release_overhead): New.
18494 (bitmap_elem_to_freelist): Call it.
18495 (bitmap_elt_clear_from): Likewise.
18496 (bitmap_obstack_free): Likewise.
18497 (bitmap_move): Sensitively release memory.
18498 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
18499 (bitmap_initialize): Initialize alloc_descriptor to zero.
18500 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
18502 2019-05-07 Richard Biener <rguenther@suse.de>
18504 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
18505 we build a SLP node. Remove max_size and limiting.
18506 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
18508 2019-05-07 Richard Biener <rguenther@suse.de>
18510 PR tree-optimization/90316
18511 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
18512 limit by reference.
18513 (walk_non_aliased_vuses): Take walking limit argument.
18514 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
18515 walking if it is reached instead of just counting.
18516 (get_continuation_for_phi): Likewise.
18517 (walk_non_aliased_vuses): Likewise, instead of leaving counter
18518 limiting to the callback.
18519 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
18520 (vn_reference_lookup_3): Likewise.
18521 (vn_reference_lookup_pieces): Likewise.
18522 (vn_reference_lookup): Likewise.
18523 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
18524 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
18525 (avail_exprs_stack::lookup_avail_expr): Likewise.
18527 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
18529 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
18530 for comparaible types in the second direction even if first one
18531 hits incomparable type.
18533 2019-05-07 Richard Biener <rguenther@suse.de>
18536 * lto-wrapper.c (debug_objcopy): Use the original filename
18537 including archive offset for the filename used for -save-temps.
18539 2019-05-07 Li Jia He <helijia@linux.ibm.com>
18541 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
18544 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
18545 Hongtao Liu <hongtao.liu@intel.com>
18549 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
18550 Modified, original implementation isn't correct.
18552 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18554 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
18555 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
18556 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
18557 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
18558 (FRAME_POINTER_REGNUM): Change numbering.
18559 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
18560 (alt_reg_names): Adjust.
18561 (rs6000_conditional_register_usage): Don't mark hard register 64 as
18563 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
18564 (DWARF_FRAME_REGISTERS): Delete.
18565 (DWARF2_FRAME_REG_OUT): Fix whitespace.
18566 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
18568 (REG_ALLOC_ORDER): Adjust.
18569 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
18570 (REG_CLASS_CONTENTS): Adjust.
18571 (RETURN_ADDR_RTX): Change comment.
18572 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
18574 (REGISTER_NAMES): Adjust.
18575 (ADDITIONAL_REGISTER_NAMES): Adjust.
18576 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
18578 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18580 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
18582 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
18583 (DWARF_FRAME_REGISTERS): Adjust.
18584 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
18586 (REG_ALLOC_ORDER): Adjust.
18587 (enum reg_class): Delete SPR_REGS.
18588 (REG_CLASS_NAMES): Delete SPR_REGS.
18589 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
18590 (REGISTER_NAMES): Adjust.
18591 (ADDITIONAL_REGISTER_NAMES): Adjust.
18592 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
18593 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
18594 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
18595 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
18596 (htm_spr_regno): Delete.
18597 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
18599 (rs6000_dbx_register_number): Adjust.
18601 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18603 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
18605 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18607 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
18608 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
18610 2019-05-06 Jakub Jelinek <jakub@redhat.com>
18612 PR tree-optimization/88709
18613 PR tree-optimization/90271
18614 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
18615 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
18616 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
18618 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
18619 of the store merging group is larger than
18620 PARAM_STORE_MERGING_MAX_SIZE parameter.
18621 (split_group): Add bzero_first argument. If set, always emit first
18622 the first store which must be = {} of the whole area and then for the
18623 rest of the stores consider all zero bytes as paddings.
18624 (imm_store_chain_info::output_merged_store): Check if first store
18625 is = {} of the whole area and if yes, determine which setting of
18626 bzero_first for split_group gives smaller number of stores. Adjust
18627 split_group callers.
18628 (lhs_valid_for_store_merging_p): Allow decls.
18629 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
18631 (pass_store_merging::process_store): Likewise.
18633 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
18636 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18637 handling of V1TImode.
18639 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
18642 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
18643 and enable_frame_pointer ...
18644 * configure.ac: ... here. Update help strings for
18645 --enable-frame-pointer.
18646 * configure: Regenerate.
18647 * config/i386/i386-options.c (ix86_option_override_internal): Remove
18648 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
18649 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
18650 (USE_X86_64_FRAME_POINTER): Ditto.
18652 2019-05-06 Martin Liska <mliska@suse.cz>
18654 * config.gcc: Append to target_gtfiles and fix indentation.
18656 2019-05-06 Richard Biener <rguenther@suse.de>
18658 PR tree-optimization/90358
18659 * tree-vect-stmts.c (get_group_load_store_type): Properly
18660 detect unused upper half of load.
18661 (vectorizable_load): Likewise.
18663 2019-05-06 Richard Biener <rguenther@suse.de>
18665 PR tree-optimization/88828
18666 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
18667 (simplify_vector_constructor): ...here. Handle constants in
18670 2019-05-06 Richard Biener <rguenther@suse.de>
18672 PR tree-optimization/90328
18673 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
18674 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
18675 is valid in the loop nest before using it.
18676 (initialize_data_dependence_relation): Adjust.
18677 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
18678 loop as loop-nest to dr_may_alias_p.
18680 2019-05-06 Richard Biener <rguenther@suse.de>
18682 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
18684 2019-05-06 Richard Biener <rguenther@suse.de>
18686 PR tree-optimization/90316
18687 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
18688 compute target on demand.
18689 (get_continuation_for_phi): Remove code walking stmts to
18690 get to a target virtual operand which could end up being
18693 2019-05-06 Martin Liska <mliska@suse.cz>
18696 * config/i386/i386-options.c (ix86_option_override_internal): Error only
18697 when -mabi is selected to a non-default version.
18699 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
18700 Martin Liska <mliska@suse.cz>
18702 * Makefile.in: Add lto-dump.texi.
18703 * cgraph.h: Add new functions get_visibility_string and
18704 get_symtab_type_string.
18705 * doc/gcc.texi: Include lto-dump section.
18706 * doc/lto-dump.texi: New file.
18707 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
18708 (parse_dump_option): Factor out this function.
18709 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
18710 (parse_dump_option): Export the function.
18711 * symtab.c (symtab_node::get_visibility_string): New function.
18712 (symtab_node::get_symtab_type_string): Likewise.
18714 2019-05-06 Martin Liska <mliska@suse.cz>
18716 * config/i386/i386-builtins.c: New file.
18717 * config/i386/i386-builtins.h: New file.
18718 * config/i386/i386-expand.c: New file.
18719 * config/i386/i386-expand.h: New file.
18720 * config/i386/i386-features.c: New file.
18721 * config/i386/i386-features.h: New file.
18722 * config/i386/i386-options.c: New file.
18723 * config/i386/i386-options.h: New file.
18724 * config.gcc: Add new files into extra_objs and
18726 * config/i386/i386.c: Split content of the file
18727 into newly introduced files.
18728 * config/i386/i386.h: Declare common variables
18730 * config/i386/t-i386: Define dependencies for new files.
18732 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
18735 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
18736 Restrict 'all' variant to 32-bit configurations.
18737 (unaligned_loadhiu): Likewise.
18738 (unaligned_storehi): Likewise.
18739 (unaligned_storesi): Likewise.
18740 (unaligned_loadhis): Disable when compiling for thumb1.
18742 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
18744 PR tree-optimization/90269
18745 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
18748 2019-05-03 Martin Liska <mliska@suse.cz>
18750 * hash-map.h: Add is_empty function.
18751 * hash-set.h: Likewise.
18752 * hash-table.h: Likewise.
18753 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
18754 elements () == 0 (and similar usages).
18755 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
18756 * gimplify.c (gimplify_bind_expr): Likewise.
18757 (gimplify_switch_expr): Likewise.
18758 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
18759 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
18760 * postreload-gcse.c (dump_hash_table): Likewise.
18761 (gcse_after_reload_main): Likewise.
18762 * predict.c (combine_predictions_for_bb): Likewise.
18763 * tree-parloops.c (reduction_phi): Likewise.
18764 (separate_decls_in_region): Likewise.
18765 (transform_to_exit_first_loop): Likewise.
18766 (gen_parallel_loop): Likewise.
18767 (gather_scalar_reductions): Likewise.
18768 (try_create_reduction_list): Likewise.
18769 * var-tracking.c (dump_vars): Likewise.
18770 (emit_notes_for_changes): Likewise.
18771 (vt_emit_notes): Likewise.
18773 2019-05-03 Richard Biener <rguenther@suse.de>
18775 PR tree-optimization/90316
18776 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
18779 2019-05-03 Richard Biener <rguenther@suse.de>
18781 * tree-vect-stmts.c (get_group_load_store_type): Avoid
18782 peeling for gaps by loading only lower halves of vectors
18784 (vectorizable_load): Likewise.
18786 2019-05-03 Richard Biener <rguenther@suse.de>
18788 PR middle-end/89518
18789 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
18791 2019-05-03 Richard Biener <rguenther@suse.de>
18793 PR middle-end/87314
18794 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
18795 Handle STRING_CST vs DECL or STRING_CST.
18797 2019-05-03 Richard Biener <rguenther@suse.de>
18799 PR tree-optimization/88963
18800 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
18801 vector loads feeding only BIT_FIELD_REFs to component
18802 loads. Rewrite stores fed by CONSTRUCTORs to component
18805 2019-05-03 Jakub Jelinek <jakub@redhat.com>
18807 * opts.h (finish_options): Remove lang_mask argument.
18808 (print_help, help_option_argument): Declare.
18809 * opts.c (print_help): Remove forward declaration, no longer static.
18810 (finish_options): Remove lang_mask argument, don't call print_help
18812 * opts-global.c (decode_options): Adjust finish_option caller, call
18815 PR tree-optimization/90303
18816 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
18817 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
18819 2019-05-03 Richard Biener <rguenther@suse.de>
18821 PR tree-optimization/89698
18822 * gimple-fold.c (canonicalize_constructor_val): Early out
18823 for constants, handle unfolded INTEGER_CSTs as they appear in
18824 C++ virtual table ctors.
18826 2019-05-03 Richard Biener <rguenther@suse.de>
18828 * passes.c (execute_function_todo): Remove dead code.
18830 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
18832 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
18833 the internal register number, for any "real" register.
18835 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
18837 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
18838 correct numbers for TFHAR, TFIAR, TEXASR.
18840 2019-05-02 Richard Biener <rguenther@suse.de>
18842 PR tree-optimization/89653
18843 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
18844 update-address-taken before the pass.
18845 * passes.def (pass_tree_loop_init): Put comment before it.
18847 2019-05-02 Richard Biener <rguenther@suse.de>
18849 PR tree-optimization/89509
18850 * tree-ssa-structalias.c (compute_dependence_clique): Look
18851 at the first subvar when determining whether it is restrict.
18853 2019-05-02 Richard Biener <rguenther@suse.de>
18855 PR tree-optimization/90273
18856 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
18857 useless debug stmts.
18859 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18861 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
18863 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
18865 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
18866 VEC_COND_EXPR be inserted to emulate a conditional internal function.
18867 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
18868 (vectorizable_reduction): Use the functions above to vectorize in a
18869 fully masked loop codes that don't have a conditional internal
18872 2019-05-02 Martin Liska <mliska@suse.cz>
18874 * cgraphclones.c: Call valid_attribute_p with 1 for
18876 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
18877 it's for target attribute.
18878 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
18879 Add new boolean argument.
18880 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
18882 (ix86_valid_target_attribute_tree): Pass target_clone_attr
18883 to ix86_valid_target_attribute_inner_p.
18884 (ix86_valid_target_attribute_p): Pass flags argument to
18885 ix86_valid_target_attribute_inner_p.
18886 (get_builtin_code_for_version): Use 0 as it's target attribute.
18888 2019-05-02 Martin Liska <mliska@suse.cz>
18890 * gcc.c (process_command): Add dummy file only
18892 * opts-global.c (decode_options): Pass lang_mask.
18893 * opts.c (print_help): New function.
18894 (finish_options): Print --help if help_option_argument
18896 (common_handle_option): Factor out content of OPT__help_
18898 * opts.h (finish_options): Add new argument.
18900 2019-05-02 Martin Liska <mliska@suse.cz>
18903 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
18904 With -minline-all-stringops use inline expansion using 4B loop.
18905 * doc/invoke.texi: Document the change of
18906 -minline-all-stringops.
18908 2019-05-01 Jeff Law <law@redhat.com>
18910 PR tree-optimization/88797
18911 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
18912 PHI feeds a conditional on the RHS of an assignment.
18914 2019-04-30 Andrew Waterman <andrew@sifive.com>
18915 Jim Wilson <jimw@sifive.com>
18917 * config/riscv/constraints.md (L): New.
18918 * config/riscv/predicates.md (lui_operand): New.
18919 (sfb_alu_operand): New.
18920 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
18921 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
18922 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
18923 * config/riscv/risc.md (type): Add sfb_alu.
18924 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
18925 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
18926 (branch_zero<mode>): Delete.
18927 (mov<mode>cc): New.
18928 (mov<GPR:mode><X:mode>cc): Likewise.
18929 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
18931 2019-04-30 Nathan Sidwell <nathan@acm.org>
18933 * tree.h (MARK_TS_EXP): New.
18935 2019-04-30 Martin Liska <mliska@suse.cz>
18937 * opts.c (enable_warning_as_error): Provide hints
18938 for unknown options.
18940 2019-04-30 Martin Liska <mliska@suse.cz>
18943 * doc/invoke.texi: Add missing dash for gas-locview-support
18944 and gno-as-locview-support.
18946 2019-04-30 Jakub Jelinek <jakub@redhat.com>
18949 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
18950 whitespace at the start of target attribute string.
18952 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18955 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
18956 Define __ARM_FEATURE_ATOMICS.
18958 2019-04-30 Martin Liska <mliska@suse.cz>
18960 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
18961 into built_in_function enum. Remove code for endp == 2 and
18962 use BUILT_IN_* constants.
18963 (gimple_fold_builtin): Call the function with fcode.
18965 2019-04-30 Martin Liska <mliska@suse.cz>
18967 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
18968 DECL_FUNCTION_CODE into ix86_builtins enum before
18969 the switch statement.
18971 2019-04-30 Jakub Jelinek <jakub@redhat.com>
18973 PR tree-optimization/89475
18974 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
18977 2019-04-30 Martin Liska <mliska@suse.cz>
18979 PR translation/90274
18980 * opts.c (print_filtered_help): Wrap string in _(...).
18982 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
18984 PR tree-optimization/90240
18986 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
18988 PR tree-optimization/90078
18989 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
18990 checks for infinite_cost overflow.
18992 2019-04-29 Jeff Law <law@redhat.com>
18994 * passes.def: Move -Wrestrict pass after copy propagation.
18996 2019-04-29 Maya Rashish <coypu@sdf.org>
18998 * config.gcc (default_gnu_indirect_function): Default to yes
18999 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19000 sparc*-*-netbsd*, x86_64-*-netbsd*.
19002 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19004 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19005 where cond2 is NE_EXPR.
19006 (is_value_included_in): Update comment.
19008 2019-04-29 Richard Biener <rguenther@suse.de>
19010 PR tree-optimization/90278
19011 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19012 EH on comparison simplification.
19014 2019-04-29 Jason Merrill <jason@redhat.com>
19016 PR c++/82081 - tail call optimization breaks noexcept
19017 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19018 nothrow function to a might-throw function into a tail call.
19020 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19022 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19023 (DDR_INNER_LOOP): Likewise.
19024 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19025 (initialize_data_dependence_relation): Likewise.
19026 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19028 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19030 PR rtl-optimization/90257
19031 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19035 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19039 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19042 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19045 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19047 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19049 2019-04-29 Richard Biener <rguenther@suse.de>
19051 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19054 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19056 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19057 varasm.h, and netbsd-protos.h.
19059 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19062 * config/i386/i386-protos.h (ix86_data_alignment): Change
19063 the second argument type to unsigned int.
19064 * config/i386/i386.c (ix86_data_alignment): Change "align"
19065 argument type to unsigned int.
19067 2019-04-27 Martin Liska <mliska@suse.cz>
19069 PR middle-end/90258
19070 * opt-suggestions.c (option_proposer::build_option_suggestions):
19071 When get_valid_option_values returns empty values, add the
19072 misspelling candidate.
19074 2019-04-26 Jim Wilson <jimw@sifive.com>
19076 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19078 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19079 Pass orig_mode to riscv_build_integer.
19080 (riscv_split_integer): Pass mode to riscv_move_integer.
19081 (riscv_legitimize_const_move): Likewise.
19082 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19083 promoted_mode. Replace force_reg call with code to load constant into
19084 promoted reg and then subreg it for the store.
19085 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19086 riscv_move_integer.
19088 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19090 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19093 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19095 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19096 commentary about the encoding of precision.
19098 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19100 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19101 * config/i386/t-freebsd64: New file.
19102 * config.gcc: Add the t-freebsd64 for multilib support.
19104 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19106 * doc/extend.texi (vector_size): Add missing comma after @xref.
19108 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19110 * BASE-VER: Set to 10.0.0.
19112 2019-04-25 Richard Biener <rguenther@suse.de>
19114 PR middle-end/89765
19115 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19116 VIEW_CONVERT_EXPR into one operating on an rvalue.
19118 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19121 * config/i386/i386.c (feature_priority): Moved to file scope.
19122 (processor_features): Likewise.
19123 (processor_model): Likewise.
19124 (_arch_names_table): Likewise.
19125 (arch_names_table): Likewise.
19126 (_feature_list): Removed.
19127 (feature_list): Likewise.
19128 (_isa_names_table): Moved to file scope. Add priority.
19129 (isa_names_table): Likewise.
19130 (get_builtin_code_for_version): Replace feature_list with
19131 isa_names_table. Update error message for P_ZERO priority.
19133 2019-04-25 Richard Biener <rguenther@suse.de>
19135 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19136 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19138 2019-04-24 Jeff Law <law@redhat.com>
19140 PR tree-optimization/90037
19141 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19142 * passes.def: Replace all instance of phi-only cprop with the
19143 lattice propagator. Move propagation pass from after erroneous
19144 path isolation to before erroneous path isolation.
19145 * tree-ssa-phionlycprop.c: Remove.
19147 2019-04-24 Richard Biener <rguenther@suse.de>
19149 PR middle-end/90213
19150 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19151 by size and BITS_PER_UNIT on poly-wide-ints.
19153 2019-04-25 Richard Biener <rguenther@suse.de>
19155 PR middle-end/90194
19156 * match.pd: Add pattern to simplify view-conversion of an
19159 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19161 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19162 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19163 for Go on 32 bit AIX.
19164 * config/rs6000/aix72.h: Likewise.
19166 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19169 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19170 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19172 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19175 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19176 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19177 for restored hard frame pointer.
19178 (s390_sched_dependencies_evaluation): Implement new target hook.
19179 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19181 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19183 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19184 * config/arc/arc.c (arc_init): Cleanup warning message.
19185 (arc_override_options): Likewise.
19187 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19190 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19191 a register if both if_true and if_false are MEMs.
19193 PR tree-optimization/90208
19194 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19195 after labels of new_bb, not before them.
19197 PR tree-optimization/90211
19198 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19199 which are not SSA_NAMEs.
19201 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19203 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19205 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19207 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19209 PR rtl-optimization/87979
19210 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19213 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19215 PR rtl-optimization/84032
19216 * modulo-sched.c (ps_insn_find_column): Change condition so that
19217 branch will always be the last insn in a row inside partial
19220 2019-04-23 Richard Biener <rguenther@suse.de>
19223 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19224 dest_single_pred_p argument.
19225 (remove_forwarder_block): Adjust.
19226 (remove_forwarder_block_with_phi): Likewise.
19228 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19229 Bernd Edlinger <bernd.edlinger@hotmail.de>
19230 Jakub Jelinek <jakub@redhat.com>
19233 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19234 if used with general-regs-only.
19235 (arm_conditional_register_usage): Don't add non-general regs if
19237 (arm_valid_target_attribute_rec): Handle general-regs-only.
19238 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19240 (TARGET_HARD_FLOAT_SUB): Define.
19241 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19242 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19243 (TARGET_REALLY_IWMMXT2): Likewise.
19244 * config/arm/arm.opt: Add -mgeneral-regs-only.
19245 * doc/extend.texi: Document ARM general-regs-only target.
19246 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19248 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19250 PR tree-optimization/90078
19251 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19252 checks for infinite_cost overflow.
19254 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19256 PR tree-optimization/90021
19257 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
19258 and check univariate against it.
19259 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
19260 * tree-data-ref.c (add_other_self_distances): Pass new argument.
19262 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19266 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19269 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19272 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19274 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19276 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
19278 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
19279 names using operand format, rather than hard-wired.
19280 (speculation_barrier): Likewise.
19282 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
19284 PR tree-optimization/88055
19285 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
19286 (gen_one_condition): Use it if !HONOR_NANS.
19288 2019-04-19 Jakub Jelinek <jakub@redhat.com>
19290 PR middle-end/90139
19291 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
19292 assign_temp instead of gen_reg_rtx.
19294 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
19296 PR translation/90118
19297 * config/aarch64/aarch64.c (aarch64_override_options_internal):
19298 Add missing space before %<.
19300 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
19302 PR rtl-optimization/87871
19303 * ira-lives.c (make_object_dead): Don't add conflicts to
19304 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
19306 2019-04-18 Martin Sebor <msebor@redhat.com>
19308 PR middle-end/89797
19309 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
19310 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
19311 assuming type size fits in SHWI.
19313 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
19316 * ipa-inline.c (flatten_function): New parameter UPDATE.
19317 (ipa_inline, early_inliner): Use it.
19319 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19321 * fold-const.c (int_const_binop): Return early on failure.
19323 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19325 PR middle-end/85164
19326 * combine.c (force_int_to_mode): Cast the argument rather than
19327 the result of known_alignment.
19328 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
19330 2019-04-18 Richard Biener <rguenther@suse.de>
19333 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
19335 (remove_forwarder_block): ... here.
19336 (remove_forwarder_block_with_phi): Also move debug stmts here.
19338 2019-04-18 Jakub Jelinek <jakub@redhat.com>
19340 PR translation/79183
19341 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
19342 inform where appropriate.
19344 2019-04-18 Richard Biener <rguenther@suse.de>
19346 * tree.c (get_qualified_type): Put found type variants at the
19347 head of the variant list.
19349 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19351 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
19353 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
19356 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
19357 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
19358 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
19359 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
19360 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
19362 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
19364 * ira-conflicts.c (print_allocno_conflicts): Always print something,
19365 even for allocno's with no conflicts.
19366 (print_conflicts): Print an extra newline.
19368 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19370 * auto-inc-dec.c (attempt_change): Set the alignment of the
19371 temporary memory to that of the original.
19373 2019-04-17 Joao Moreira <jmoreira@suse.de>
19375 * targhooks.c (default_print_patchable_function_entry): Emit
19376 __patchable_function_entries section with writable flags to allow
19377 relocation resolution.
19379 2019-04-17 Jonny Grant <jg@jguk.org>
19381 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
19383 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19385 PR middle-end/90095
19386 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
19387 on lowpart SUBREGs.
19389 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
19391 * config/arc/arc.c (arc_init): Format diagnostic string.
19392 (arc_override_options): Likewise.
19393 (check_if_valid_regno_const): Likewise.
19394 (arc_reorg): Likewise.
19396 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19399 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
19401 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
19403 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
19404 (*movdi_update1): Use Pmode.
19405 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
19406 (movdi_<mode>_update_stack): Rename to ...
19407 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
19409 (*movsi_update1): Use Pmode.
19410 (*movsi_update2): Use Pmode.
19411 (movsi_update): Rename to ...
19412 (movsi_<mode>_update): ... this. Use Pmode.
19413 (movsi_update_stack): Fix condition.
19414 (*movhi_update1): Use Pmode. Fix argument to
19415 avoiding_indexed_address_p.
19416 (*movhi_update2): Ditto.
19417 (*movhi_update3): Ditto.
19418 (*movhi_update4): Ditto.
19419 (*movqi_update1): Ditto.
19420 (*movqi_update2): Ditto.
19421 (*movqi_update3): Ditto.
19422 (*movsf_update1, *movdf_update1): Merge, rename to...
19423 (*mov<mode>_update1): This. Use Pmode. Fix argument to
19424 avoiding_indexed_address_p. Add "size" attribute.
19425 (*movsf_update2, *movdf_update2): Merge, rename to...
19426 (*mov<mode>_update2): This. Ditto.
19427 (*movsf_update3): Use Pmode. Fix argument to
19428 avoiding_indexed_address_p.
19429 (*movsf_update4): Ditto.
19430 (allocate_stack): Simplify condition. Adjust pattern names.
19432 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19435 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
19436 whitespace at the start of target attribute string.
19438 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
19441 * config/rs6000/power9.md: Add store forwarding bypass.
19443 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
19446 * valtrack.c (dead_debug_insert_temp): Reset debug references
19447 to the return value of a call being removed.
19449 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19451 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
19452 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
19453 implement target hook.
19454 (arc_memory_move_cost): New function.
19455 (TARGET_REGISTER_MOVE_COST): Define.
19456 (TARGET_MEMORY_MOVE_COST): Likewise.
19457 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
19458 (MEMORY_MOVE_COST): Likewise.
19460 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19462 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
19463 (sibcall_value_insn): Likewise.
19464 * config/arc/constraints.md (Rs5): Remove.
19466 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19468 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
19469 for last two fake registers.
19470 (arc_conditional_register_usage): Make sure fake frame and arg
19471 pointer regs are in general regs class.
19472 (FRAME_POINTER_MASK): Remove.
19473 (RETURN_ADDR_MASK): Remove.
19474 (arc_must_save_register): Use hard frame regnum.
19475 (frame_restore_reg): Use hard_frame_pointer_rtx.
19476 (arc_save_callee_saves): Likewise.
19477 (arc_restore_callee_saves): Likewise.
19478 (arc_save_callee_enter): Likewise.
19479 (arc_restore_callee_leave): Likewise.
19480 (arc_save_callee_milli): Likewise.
19481 (arc_eh_return_address_location): Likewise.
19482 (arc_check_multi): Use hard frame regnum.
19483 (arc_can_eliminate): Likewise.
19484 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
19485 for register allocator.
19486 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
19487 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
19488 (FRAME_POINTER_REGNUM): Change it to a fake register.
19489 (HARD_FRAME_POINTER_REGNUM): Defined.
19490 (ARG_POINTER_REGNUM): Change it to a new fake register.
19491 (ELIMINABLE_REGS): Update.
19492 (REGISTER_NAMES): Update names.
19493 * config/arc/arc.md (LP_START): Remove.
19494 (LP_END): Likewise.
19495 (shift_si3_loop): Update pattern.
19497 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19499 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
19500 to avoid delay slot scheduling.
19501 (arc_must_save_register): Don't save SP.
19502 * config/arc/arc.md (stack_tie): Remove.
19503 (UNSPEC_ARC_STKTIE): Likewise.
19505 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
19506 Shiva Chen <shiva0217@gmail.com>
19508 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
19509 code gen with large shift amount.
19511 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
19513 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
19516 2019-04-16 Jakub Jelinek <jakub@redhat.com>
19519 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
19520 print -m64/-mx32/-m32 if it is true.
19521 (ix86_debug_options, ix86_function_specific_print): Pass true as
19522 ADD_ABI_P to ix86_target_string.
19523 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
19524 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
19525 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
19527 PR rtl-optimization/90082
19528 * dce.c (can_delete_call): New function.
19529 (deletable_insn_p, mark_insn): Use it.
19531 PR tree-optimization/90090
19532 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
19534 (is_division_by_square): Likewise. Formatting fix.
19536 2019-04-16 Richard Biener <rguenther@suse.de>
19538 PR tree-optimization/56049
19539 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
19540 equality check if alias-set zero will prevail.
19542 2019-04-15 Jeff Law <law@redhat.com>
19544 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
19545 size and alignment as unsigned.
19547 2019-04-15 Richard Biener <rguenther@suse.de>
19550 * tree-loop-distribution.c (destroy_loop): Preserve correct
19553 2019-04-15 Richard Biener <rguenther@suse.de>
19555 PR tree-optimization/90071
19556 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
19557 abnormal operands from def stmts.
19559 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
19561 PR rtl-optimization/89794
19562 * combine.c (count_auto_inc): New function.
19563 (try_combine): Count how many auto_inc expressions there were in the
19564 original instructions. Ensure we have the same number in the new
19565 instructions. Remove the code that tried to ensure auto_inc side
19566 effects on i1 and i0 are not lost.
19568 2019-04-15 Richard Biener <rguenther@suse.de>
19571 * tree.h (auto_var_p): Declare.
19572 * tree.c (auto_var_p): New function, split out from ...
19573 (auto_var_in_fn_p): ... here.
19574 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
19576 (new_var_info): Initialize it.
19577 (set_uids_in_ptset): Also set the shadow variable uid if required.
19578 (ipa_pta_execute): Postprocess points-to solutions assigning
19579 shadow variable uids for locals that may reach their containing
19580 function recursively.
19581 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
19582 assert but instead check whether the points-to solution is
19585 2019-04-15 Martin Jambor <mjambor@suse.cz>
19588 * cgraph.c (clone_of_p): Loop over clone chain for each step in
19591 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
19593 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
19595 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
19596 Kito Cheng <kito.cheng@gmail.com>
19597 Shiva Chen <shiva0217@gmail.com>
19599 * config/nds32/nds32-md-auxiliary.c
19600 (nds32_legitimize_pic_address): Use new PIC pattern.
19601 (nds32_legitimize_tls_address): Use new TLS pattern.
19602 (nds32_output_symrel): New.
19603 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
19604 (nds32_alloc_relax_group_id): Ditto.
19605 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
19606 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
19608 (nds32_group_tls_insn): Ditto.
19609 (nds32_group_float_insns): Ditto.
19610 * config/nds32/nds32.md (tls_le): New.
19613 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
19615 * configure: Add nds32 target for dwarf2 debug_line checking.
19616 * configure.ac: Regenerated.
19618 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
19621 * ipa-devirt.c (skip_in_fields_list_p): New.
19622 (odr_types_equivalent_p): Use it.
19624 2019-04-13 Jakub Jelinek <jakub@redhat.com>
19627 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
19628 instead of strncmp when checking for thumb and arm. Formatting fixes.
19630 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
19632 * doc/install.texi: Document --with-target-system-zlib.
19634 2019-04-12 Martin Sebor <msebor@redhat.com>
19640 * targhooks.c (default_vector_alignment): Avoid assuming
19641 argument fits in SHWI.
19642 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
19643 a shift expression.
19644 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
19646 2019-04-12 Jakub Jelinek <jakub@redhat.com>
19648 PR rtl-optimization/89965
19649 * dce.c: Include rtl-iter.h.
19650 (struct check_argument_load_data): New type.
19651 (check_argument_load): New function.
19652 (find_call_stack_args): Check for loads from stack slots still tracked
19653 in sp_bytes and punt if any is found.
19655 * config/mips/loongson-mmiintrin.h: Fix up #error message.
19657 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
19659 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
19660 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
19662 2019-04-12 Martin Liska <mliska@suse.cz>
19664 PR middle-end/89970
19665 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
19667 (separate_attrs): Handle multiple 'default's.
19668 (expand_target_clones): Rework error handling code.
19670 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
19673 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
19674 mode of vector rather than mode of destination for move instruction.
19675 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
19676 Use QI inner mode with V16QI vector mode.
19678 2019-04-12 Jakub Jelinek <jakub@redhat.com>
19681 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
19682 "invalid %%t operand" in output_operand_lossage message.
19684 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
19686 * config/s390/predicates.md (permute_pattern_operand): New
19688 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
19689 operand for the permute pattern.
19690 ("*vec_perm<mode>"): New insn definition.
19691 ("bswap<mode>"): Generate the permute pattern operand in the
19692 expander and perform the operand reloads for pre arch13 level
19694 ("*bswap<mode>_emu"): Rename to ...
19695 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
19696 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
19697 Add the USE operand for the permute pattern.
19698 ("*vec_set_bswap_vec<mode>"): Likewise.
19700 2019-04-12 Jakub Jelinek <jakub@redhat.com>
19703 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
19704 and gcc_unreachable if it fails, just call tree_to_uhwi which
19705 verifies that too. Test TREE_CHAIN instead of list_length > 1.
19706 Start warning message with a lower-case letter. Formatting fixes.
19708 PR rtl-optimization/90026
19709 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
19710 successors, look for BARRIERs inside of the whole BB_FOOTER chain
19711 rather than just at the start of it. If e->src BB_FOOTER is not NULL
19712 in cfglayout mode, use emit_barrier_after_bb.
19714 2018-04-11 Steve Ellcey <sellcey@marvell.com>
19716 PR rtl-optimization/87763
19717 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
19720 2019-04-11 Tom de Vries <tdevries@suse.de>
19722 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
19723 max macro using statement expression.
19725 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
19727 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
19728 * xcoffout.c (xcoff_private_rodata_section_name): Define.
19729 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
19730 read_only_private_data_section using xcoff_private_rodata_section_name.
19731 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
19733 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
19736 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
19738 2019-04-11 Jakub Jelinek <jakub@redhat.com>
19740 PR rtl-optimization/89965
19741 * dce.c (sp_based_mem_offset): New function.
19742 (find_call_stack_args): Use sp_based_mem_offset.
19744 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
19746 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
19748 2019-04-11 Richard Biener <rguenther@suse.de>
19750 PR tree-optimization/90020
19751 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
19752 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
19753 * tree-ssa-pre.c (compute_avail): Use it to not put
19754 possibly trapping references after a call that might not
19755 return into EXP_GEN.
19756 * gcse.c (compute_hash_table_work): Do not elide
19757 marking a block containing a call if the call might not
19760 2019-04-11 Richard Biener <rguenther@suse.de>
19762 PR tree-optimization/90018
19763 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
19764 Test both SLP and interleaving variants.
19766 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
19768 * config/s390/8561.md: New file.
19769 * config/s390/driver-native.c (s390_host_detect_local_cpu):
19770 Add arch13 cpu model.
19771 * config/s390/s390-opts.h (enum processor_type): Likewise.
19772 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
19773 (s390_get_unit_mask): Likewise.
19774 (s390_is_fpd): Likewise.
19775 (s390_is_fxd): Likewise.
19776 * config/s390/s390.h (s390_tune_attr): Likewise.
19777 * config/s390/s390.md: Include arch13 pipeline description.
19778 * config/s390/s390.opt: Add arch13.
19780 2018-04-10 Steve Ellcey <sellcey@marvell.com>
19782 PR rtl-optimization/87763
19783 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
19785 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
19787 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
19789 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
19790 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
19791 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
19792 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
19794 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
19796 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
19797 "Although" in -fipa-icf documentation.
19799 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
19800 of using multiple -g options.
19802 2019-04-10 Martin Liska <mliska@suse.cz>
19804 PR gcov-profile/89959
19805 * doc/gcov.texi: Make documentation of -x option
19808 2019-04-10 Richard Biener <rguenther@suse.de>
19810 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
19812 (DR_GROUP_SAME_DR_STMT): Remove.
19813 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
19814 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
19815 replace with assert.
19816 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
19817 (vect_record_grouped_load_vectors): Remove unreachable code.
19819 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
19822 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
19823 obsolete reference to N.
19825 2019-04-10 Jakub Jelinek <jakub@redhat.com>
19827 PR middle-end/90025
19828 * expr.c (store_expr): Set properly size on the MEM passed to
19832 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
19833 with strlen in between hostsz-3 and hostsz-1 inclusive when no
19834 translation is needed, and when translation is needed, only append
19835 ... if the string length is hostsz or more bytes long. Avoid using
19838 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
19841 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
19842 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
19844 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
19845 differences directly.
19846 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
19848 2019-04-09 Jakub Jelinek <jakub@redhat.com>
19850 PR translation/90011
19851 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
19853 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
19855 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
19856 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
19857 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
19858 trailing space from -gsplit-dwarf diagnostics.
19860 PR tree-optimization/89998
19861 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
19862 instead of integer_type_node if possible, don't add ranges if return
19863 type is not compatible with int.
19864 * gimple-fold.c (gimple_fold_builtin_sprintf,
19865 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
19868 2019-04-09 Martin Liska <mliska@suse.cz>
19870 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
19871 * doc/install.texi: Document the new config.
19873 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
19875 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
19876 use gimple_expr_type for load and store calls. Skip over the
19877 condition argument in a conditional internal function.
19878 Protect use of TREE_INT_CST_LOW.
19880 2019-04-09 Jakub Jelinek <jakub@redhat.com>
19883 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
19884 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
19885 trailing period from it too.
19887 2019-04-08 wu yuan <wuyuan5@huawei.com>
19889 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
19890 * config/aarch64/aarch64.md : Add "tsv110.md"
19891 * config/aarch64/tsv110.md: New file.
19893 2019-04-08 Richard Biener <rguenther@suse.de>
19895 PR tree-optimization/90006
19896 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
19899 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
19902 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
19904 (fma_root_node): Likewise.
19905 (func_fma_steering): Likewise.
19907 2019-04-08 Jakub Jelinek <jakub@redhat.com>
19909 PR rtl-optimization/89865
19910 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
19912 PR rtl-optimization/89865
19913 * config/i386/i386.md
19914 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
19915 numbers not to clash with the additional operands[4].
19916 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
19917 with extra register copy in the middle.
19919 2019-04-08 Martin Liska <mliska@suse.cz>
19921 PR gcov-profile/89961
19922 * doc/gcov.texi: Document data_file.
19923 * gcov.c (generate_results): Add data_info into JSON output.
19925 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
19927 PR tree-optimization/89725
19928 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
19929 loop's chrec as invariant symbol.
19930 * tree-chrec.h (chrec_contains_symbols): New parameter.
19931 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
19932 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
19933 function of loops not in DDR's loop_nest.
19934 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
19936 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
19939 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
19942 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
19945 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
19946 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
19948 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
19950 * sched-deps.c (sched_macro_fuse_insns): Check return value of
19951 targetm.fixed_condition_code_regs.
19953 2019-04-05 Richard Biener <rguenther@suse.de>
19957 * tree-cfgcleanup.c (remove_forwarder_block): Always move
19958 debug bind stmts but reset them if they are not valid at the
19961 2019-04-05 Martin Liska <mliska@suse.cz>
19963 PR translation/89936
19964 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
19965 order to wrap keywords or arguments.
19966 * collect2.c (main): Likewise.
19967 (scan_prog_file): Likewise.
19968 (scan_libraries): Likewise.
19969 * common/config/riscv/riscv-common.c
19970 (riscv_subset_list::parsing_subset_version): Likewise.
19971 (riscv_subset_list::parse_std_ext): Likewise.
19972 * config/aarch64/aarch64.c (aarch64_override_options_internal):
19974 * config/arm/arm.c (arm_option_override): Likewise.
19975 * config/cris/cris.c (cris_print_operand): Likewise.
19976 * config/darwin-c.c (darwin_pragma_options): Likewise.
19977 (darwin_pragma_unused): Likewise.
19978 (darwin_pragma_ms_struct): Likewise.
19979 * config/ft32/ft32.c (ft32_print_operand): Likewise.
19980 * config/i386/i386.c (print_reg): Likewise.
19981 (ix86_print_operand): Likewise.
19982 * config/i386/xm-djgpp.h: Likewise.
19983 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
19984 * config/m32c/m32c.c (m32c_option_override): Likewise.
19985 * config/msp430/msp430.c (msp430_option_override): Likewise.
19986 * config/nds32/nds32.c (nds32_option_override): Likewise.
19987 * config/nvptx/mkoffload.c (main): Likewise.
19988 * config/rx/rx.c (rx_print_operand): Likewise.
19989 (valid_psw_flag): Likewise.
19990 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
19991 (vms_pragma_nomember_alignment): Likewise.
19992 (vms_pragma_extern_model): Likewise.
19993 * lto-wrapper.c (compile_offload_image): Likewise.
19994 * omp-offload.c (oacc_parse_default_dims): Likewise.
19995 * symtab.c (symtab_node::verify_base): Likewise.
19996 * tlink.c (recompile_files): Likewise.
19997 (start_tweaking): Likewise.
19998 * tree-profile.c (parse_profile_filter): Likewise.
20000 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20002 PR tree-optimization/89956
20003 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20004 multiple negates of the same value.
20006 2019-04-04 Martin Sebor <msebor@redhat.com>
20008 PR middle-end/89957
20009 PR middle-end/89911
20010 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20011 have the same precision since the function crashes otherwise.
20012 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20013 has non-zero arguments.
20015 2019-04-04 Martin Sebor <msebor@redhat.com>
20017 PR middle-end/89934
20018 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20019 out if the number of arguments is less than expected.
20021 2019-04-04 Jeff Law <law@redhat.com>
20023 PR rtl-optimization/89399
20024 * ree.c (combine_set_extension): Use single_set rather than
20025 digging into PATTERN for items on the candidate list.
20026 (combine_reaching_defs): Likewise.
20028 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20030 PR rtl-optimization/46590
20031 * loop-invariant.c (find_defs): Move df_remove_problem and
20032 df_process_deferred_rescans to move_invariants.
20033 Move df_live_add_problem and df_live_set_all_dirty calls
20034 to move_invariants.
20035 (move_invariants): Likewise.
20036 (move_loop_invariants): Likewise, making the df_live calls
20037 conditional on -O. Remove the problem again if we added it
20040 2019-04-03 qing zhao <qing.zhao@oracle.com>
20042 PR tree-optimization/89730
20043 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20044 -flive-patching=inline-only-static.
20045 (can_inline_edge_by_limits_p): Add the checking for
20046 -flive-patching=inline-only-static and grant always_inline
20047 even when -flive-patching=inline-only-static is specified.
20049 2019-04-03 Jeff Law <law@redhat.com>
20051 PR rtl-optimization/81025
20052 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20054 2019-04-03 Richard Biener <rguenther@suse.de>
20056 PR tree-optimization/84101
20057 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20058 regs.h for hard_regno_nregs.
20059 (cfun_returns): New helper.
20060 (vect_model_store_cost): When vectorizing a store to a decl
20061 we return and the function ABI returns in a multi-reg location
20062 account for the possible spilling that will happen.
20064 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20066 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20067 displacement addresses for vector mode operands.
20069 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20071 * config/arc/arc.c (GMASK_LEN): Define.
20072 (arc_restore_callee_saves): Restore first blink when
20075 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20077 * doc/extend.texi: Add deprecated comment on sign-return-address
20078 function attribute and add mbranch-protection.
20079 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20081 2019-04-03 Richard Biener <rguenther@suse.de>
20084 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20085 the all target phony.
20087 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20091 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20092 Return false for variable DImode shifts.
20093 (dimode_scalar_chain::compute_convert_gain): Do not handle
20094 register count operand in variable DImode shifts.
20095 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20096 count argument of a variable shift instruction to a vector register.
20097 (dimode_scalar_chain::convert_reg): Remove support to convert
20098 count argument of a variable shift instruction.
20100 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20102 PR rtl-optimization/84206
20103 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20104 iterating over loop headers.
20106 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20108 PR rtl-optimization/85876
20109 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20110 beyond the original fence.
20112 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20114 * config.gcc: Mark spu* targets as deprecated/obsolete.
20116 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20118 * config/s390/s390-builtin-types.def: New builtin function type
20119 definitions. Remove unused types.
20120 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20121 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20122 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20123 overloaded builtins.
20124 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20125 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20126 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20127 (vec_double, vec_signed, vec_unsigned): Define to use the new
20128 overloaded builtins.
20129 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20132 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20134 * config/s390/s390-builtin-types.def: New builtin function type
20136 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20137 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20138 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20139 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20140 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20141 constant definitions.
20142 * config/s390/vecintrin.h (vec_search_string_cc)
20143 (vec_search_string_until_zero_cc): New builtin name definitions.
20144 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20146 ("vec_vstrs<mode>"): New insn definition.
20148 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20150 * config/s390/s390-builtin-types.def: Add new builtin function
20152 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20153 New overloaded builtins.
20154 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20156 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20157 (UNSPEC_VEC_SLDBYTE): ... this.
20158 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20159 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20161 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20162 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20163 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20165 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20167 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20168 New insn definition.
20169 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20170 * config/s390/vector.md (V_HW_HSD): ... here.
20172 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20174 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20175 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20176 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20177 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20178 New insn definitions.
20180 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20182 * config/s390/s390-builtin-types.def: Add new builtin function type.
20183 * config/s390/s390-builtins.def: Add overloaded builtin
20184 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20185 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20186 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20187 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20188 ("eltswap<mode>"): New expander.
20189 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20192 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20194 * config/s390/s390-builtin-types.def: Add new builtin function types.
20195 * config/s390/s390-builtins.def: Add overloaded builtin
20196 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20198 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20199 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20200 ("bswap<mode>"): New expander.
20201 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20203 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20205 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20206 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20207 vector builtin version number in __VEC__.
20209 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20211 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20213 (SFSI): New mode attribute.
20214 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20215 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20217 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20218 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20219 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20220 ("floatsi<mode>2"): Add wcefb instruction.
20222 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20224 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20225 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20227 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20228 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20229 support 32 bit fp-int conversions. Rename to ...
20230 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20231 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20232 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20233 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20236 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20238 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20239 if-then-else constructs if we can use the select instruction.
20240 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20242 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20244 * config/s390/s390.md ("*popcountdi_arch13_cc")
20245 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20247 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20248 Append _z196 to make it ...
20249 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20250 ("popcounthi2_z196"): ... this.
20251 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20252 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
20254 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20256 * config/s390/s390.c (s390_canonicalize_comparison): Convert
20257 certain compares for arch13 in order to make use of the condition
20258 code result produced by the new instructions.
20259 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
20260 nxrk, and nxgrk instruction patterns.
20261 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
20262 (inv_no): Add new code iterator together with some attributes.
20263 ("*andc_split_<mode>"): Disable splitter for arch13.
20264 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
20265 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
20266 ("*<ANDOR:bitops_name>c<GPR:mode>")
20267 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
20268 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
20269 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
20270 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
20272 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20274 * common/config/s390/s390-common.c (processor_flags_table): New
20276 * config.gcc: Support arch13 with the --with-arch= configure flag.
20277 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20278 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
20279 * config/s390/s390.c (s390_get_sched_attrmask)
20280 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
20281 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
20282 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
20283 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
20284 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
20286 * config/s390/s390.opt: Support arch13 as processor type in
20287 command line options.
20289 2019-04-02 Martin Liska <mliska@suse.cz>
20291 PR translation/89912
20292 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
20293 Fix param description of graphite-max-arrays-per-scop.
20295 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
20297 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
20298 (ASAN_CC1_SPEC): Use it in 64-bit mode.
20299 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
20301 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20303 PR rtl-optimization/85412
20304 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
20305 sel_sched_region_1, not after.
20307 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20309 PR rtl-optimization/86928
20310 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
20311 compute_live if necessary.
20312 (sel_redirect_edge_and_branch): Likewise.
20314 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
20316 PR rtl-optimization/89865
20317 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
20318 register if it is a part of small class.
20320 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20322 PR rtl-optimization/87273
20323 * sel-sched-ir.c (merge_fences): Remove assert.
20325 2019-04-01 Richard Biener <rguenther@suse.de>
20327 PR tree-optimization/46590
20328 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
20329 (dom_walker::m_reachability): Add in place of...
20330 (dom_walker::m_skip_unreachable_blocks): ...this.
20331 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
20332 Move complex initialization ...
20333 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
20334 lazily and initialize edge flags on each invocation.
20335 (dom_walker::bb_reachable): Use m_reachability.
20337 2019-04-01 Martin Liska <mliska@suse.cz>
20340 * opt-suggestions.c (option_proposer::build_option_suggestions):
20341 Add variant without any argument in order to provide better
20344 2019-04-01 Richard Biener <rguenther@suse.de>
20347 * gimple.c: Include langhooks.h.
20348 (gimple_get_alias_set): Treat enumeral types as the underlying
20351 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
20352 Eric Botcazou <ebotcazou@adacore.com>
20354 PR rtl-optimization/89862
20355 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
20356 that operates on the full registers for WORD_REGISTER_OPERATIONS
20359 2019-03-29 Jim Wilson <jimw@sifive.com>
20361 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
20362 Clear MASK_RVC and then set if C subset supported.
20364 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20367 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
20368 non-addressable complit into its initializer if it is volatile.
20370 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
20372 * opts-common.c (integral_argument): Set errno properly in one case.
20374 2019-03-29 Martin Liska <mliska@suse.cz>
20376 * doc/invoke.texi: Remove -Wchkp from documentation.
20378 2019-03-29 Martin Liska <mliska@suse.cz>
20380 * dbgcnt.c (print_limit_reach): New function.
20383 2019-03-29 Martin Liska <mliska@suse.cz>
20385 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
20386 (dbg_cnt_process_opt): Parse first tokens aas
20387 dbg_cnt_process_single_pair is also using strtok.
20389 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20391 PR rtl-optimization/87485
20392 * function.c (expand_function_end): Move stack_protect_epilogue
20393 before loading of return value into hard register(s).
20395 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20397 PR middle-end/89621
20398 * tree-inline.h (struct copy_body_data): Add
20399 dont_remap_vla_if_no_change flag.
20400 * tree-inline.c (remap_type_3, remap_type_2): New functions.
20401 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
20402 and remap_type_2 returns false.
20403 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
20404 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
20405 only from where it is copied to nested contexts.
20407 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20410 * config/i386/i386.md (RMW operation with LEA peephole):
20411 Use LEAMODE mode attribute instead of SWI mode iterator for
20414 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20417 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
20418 Also process XEXP (src, 0) of a shift insn.
20420 2019-03-28 David Malcolm <dmalcolm@redhat.com>
20422 PR middle-end/89725
20423 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
20424 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
20426 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20428 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
20430 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
20431 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
20432 immediately after first one with df_analyze in between, but rather
20433 process all bbs, queueing ones that need second pass in a worklist,
20434 df_analyze, process queued debug insn changes and if second pass is
20435 needed, process bbs from worklist, df_analyze, process queued debug
20438 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
20439 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
20440 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
20442 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
20445 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
20448 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
20451 * config/i386/i386.c (ix86_function_value_1): Call the newly added
20452 function for 32-bit MS_ABI.
20453 (function_value_ms_32): New function.
20455 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
20457 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
20458 (movdi): Call gen_movdi_symbol_save_scc.
20459 (gen_movdi_symbol_save_scc): New insn and split.
20461 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
20463 PR rtl-optimization/89313
20464 * function.c (matching_constraint_num): New static function.
20465 (match_asm_constraints_1): Use it. Fixup white space and comment.
20466 Don't replace inputs with non-matching constraints which conflict
20467 with early clobber outputs.
20469 2019-03-27 Jeff Law <law@redhat.com>
20471 PR rtl-optimization/87761
20472 PR rtl-optimization/89826
20473 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
20475 (pass_cprop_hardreg::execute): Call df_analyze after adding the
20476 note problem to get REG_DEAD/REG_UNUSED notes updated.
20478 2019-03-27 Richard Biener <rguenther@suse.de>
20480 PR tree-optimization/89463
20481 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
20482 queue edges to remove.
20483 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
20484 dead stmts. Delay edge removal until PHIs are removed to
20485 make debug-stmt creation not confused by seemingly degenerate
20488 2019-03-27 Alan Modra <amodra@gmail.com>
20490 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
20492 * config/rs6000/darwin.h: Likewise.
20493 * config/rs6000/rs6000.c: Likewise.
20495 2019-03-27 Alan Modra <amodra@gmail.com>
20497 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
20498 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
20500 2019-03-26 Andrew Waterman <andrew@sifive.com>
20501 Jim Wilson <jimw@sifive.com>
20503 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
20504 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
20505 (generic_idivdi, generic_fmul_single, generic_fmul_double)
20506 (generic_fdiv, generic_fsqrt): Add check for generic tune.
20507 (generic_alu): Add auipc to type list.
20508 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
20509 (riscv_microarchitecture): Declare.
20510 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
20511 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
20513 (riscv_microarchitecture): New.
20514 (sifive_7_tune_info): New.
20515 (riscv_cpu_info_table): Add microarchitecture value for rocket and
20516 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
20518 (riscv_store_data_bypass_p): New.
20519 (riscv_option_override): Set riscv_microarchitecture from
20520 cpu->microarchitecture.
20521 * config/riscv/riscv.md: Include sifive-7.md.
20524 (auipc<mode>): Change type to auipc.
20525 (restore_stack_nonlocal): New.
20526 * config/riscv/sifive-7.md: New.
20527 * doc/invoke.texi (RISC-V Options): Update mtune docs.
20529 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
20532 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
20533 Also process XEXP (src, 0) of a shift insn.
20535 2019-03-26 Richard Biener <rguenther@suse.de>
20537 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
20538 (copy_debug_stmt): Likewise.
20539 (expand_call_inline): Likewise.
20540 (copy_bb): Avoid redundant lookup & set of gimple_block.
20541 * gimple-low.c (lower_gimple_return): Likewise.
20542 (lower_builtin_setjmp): Likewise.
20544 2019-03-26 Jakub Jelinek <jakub@redhat.com>
20546 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
20547 is constant 0, turn into static const data member initialized to false.
20548 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
20549 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
20551 2019-03-26 Jason Merrill <jason@redhat.com>
20552 Jakub Jelinek <jakub@redhat.com>
20554 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
20556 (mem_alloc_description::release_object_overhead): Fix comment typos.
20557 * hash-table.h (hash_table::~hash_table): Call
20558 release_instance_overhead only if m_entries is non-NULL, otherwise
20559 call unregister_descriptor.
20561 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
20563 PR tree-optimization/81740
20564 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
20565 In case of outer loop vectorization, check for backward dependence
20566 at the inner loop if outer loop dependence is reversed.
20568 2019-03-26 Alan Modra <amodra@gmail.com>
20570 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
20571 rs6000_vector_mem init. Correct wI and wJ comment.
20573 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
20575 PR rtl-optimization/88347
20576 PR rtl-optimization/88423
20577 * sched-deps.c (sched_analyze_insn): Take into account that for
20578 tablejumps the barrier appears after a label and a jump_table_data.
20580 2019-03-25 Martin Sebor <msebor@redhat.com>
20583 * c-common.c (check_user_alignment): Rename local. Correct maximum
20584 alignment in diagnostic. Avoid assuming argument fits in SHWI,
20585 convert it to UHWI when it fits.
20587 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
20590 * dwarf2out.c (premark_used_variables): New function.
20591 (prune_unused_types_walk): Do not mark not premarked external
20593 (prune_unused_types): Call premark_used_variables.
20595 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
20597 PR rtl-optimization/89676
20598 * lra-constraints.c (curr_insn_transform): Do match reload for
20599 early clobbers when the match was successful only for different
20602 2019-03-25 Martin Sebor <msebor@redhat.com>
20604 * doc/extend.texi (Common Type Attributes): Document vector_size.
20605 (Common Variable Attributes): Mention size constraint. Correct
20607 (Vector Extensions): Use @dfn when defining bas type. Clarify
20608 base type and size constraints.
20610 2019-03-25 Richard Biener <rguenther@suse.de>
20612 PR tree-optimization/89789
20613 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
20614 changes from non-undefined back to undefined.
20616 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
20618 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
20619 heap string and a gc string, but since this variable is unknown to
20620 ggc the gc string might get reused and corrupted. Fixed by always
20621 using a heap string.
20623 2019-03-25 Richard Biener <rguenther@suse.de>
20625 PR tree-optimization/89779
20626 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
20627 to remove IV defs, delay actual removal.
20628 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
20629 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
20630 very end, properly also reset loop control IV information.
20632 2019-03-25 Richard Biener <rguenther@suse.de>
20634 PR tree-optimization/89802
20635 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
20636 move EH data to folded stmt.
20638 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
20640 * config/s390/s390-builtin-types.def: Remove few unused types and
20641 fix sort order for others.
20643 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
20645 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
20646 expected and found types with -mdebug during builtin matching.
20648 2019-03-25 Richard Biener <rguenther@suse.de>
20650 PR middle-end/89790
20651 * fold-const.c (operand_equal_p): Revert last change with
20654 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
20656 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
20657 notes for the result of the __tls_get_addr calls.
20658 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
20660 2019-03-24 Jeff Law <law@redhat.com>
20662 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
20664 PR rtl-optimization/87761
20665 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
20666 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
20668 (pass_cprop_hardreg::execute): Add df note problem and defer insn
20669 rescans. Reprocess blocks as needed, calling df_analyze before
20670 reprocessing. Always call df_analyze before fixing up debug bind
20673 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
20675 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
20678 2019-03-22 Andrew Pinski <apinski@marvell.com>
20680 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
20681 attrribute for uxtw.
20683 2019-03-26 Jeff Law <law@redhat.com>
20685 PR rtl-optimization/87761
20686 * config/mips/mips-protos.h (mips_split_move): Add new argument.
20687 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
20688 (mips_split_move): Accept new INSN argument. Try to forward SRC
20689 into the next instruction.
20690 (mips_split_move_insn): Pass INSN through to mips_split_move.
20692 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
20694 PR rtl-optimization/89676
20695 * lra-constraints.c (curr_insn_transform): Do match reload for
20696 early clobbers even if the match was successful.
20698 2019-03-22 Jakub Jelinek <jakub@redhat.com>
20701 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
20703 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
20705 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
20707 2019-03-22 Jakub Jelinek <jakub@redhat.com>
20709 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
20710 <avx512>_fmsub_<mode>_mask3<round_name>,
20711 <avx512>_fnmadd_<mode>_mask3<round_name>,
20712 <avx512>_fnmsub_<mode>_mask3<round_name>,
20713 avx512f_vmfmadd_<mode>_mask3<round_name>,
20714 avx512f_vmfmsub_<mode>_mask3<round_name>,
20715 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
20716 instead of register_operand and %v instead of v for match_operand 1.
20717 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
20718 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
20719 <round_nimm_predicate> instead of register_operand and %v instead of v
20720 for match_operand 1.
20722 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
20723 <avx512>_fmadd_<mode>_mask3<round_name>,
20724 <avx512>_fmsub_<mode>_mask<round_name>,
20725 <avx512>_fmsub_<mode>_mask3<round_name>,
20726 <avx512>_fnmadd_<mode>_mask<round_name>,
20727 <avx512>_fnmadd_<mode>_mask3<round_name>,
20728 <avx512>_fnmsub_<mode>_mask<round_name>,
20729 <avx512>_fnmsub_<mode>_mask3<round_name>,
20730 <avx512>_fmaddsub_<mode>_mask<round_name>,
20731 <avx512>_fmaddsub_<mode>_mask3<round_name>,
20732 <avx512>_fmsubadd_<mode>_mask<round_name>,
20733 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
20734 <round_nimm_predicate> instead of nonimmediate_operand.
20735 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
20736 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
20737 Use register_operand instead of <round_nimm_predicate> for the
20738 operand that needs to match output.
20739 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
20740 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
20741 Likewise. Formatting fixes.
20744 * config/i386/i386.c (enum ix86_builtins): Remove
20745 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
20746 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
20747 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
20748 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
20749 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
20750 __builtin_ia32_vfmsubss3_mask3): New builtins.
20751 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
20752 avx512f_vmfmadd_<mode>_mask3<round_name>,
20753 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
20754 *avx512f_vmfmsub_<mode>_mask<round_name>,
20755 avx512f_vmfmsub_<mode>_mask3<round_name>,
20756 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
20757 *avx512f_vmfnmadd_<mode>_mask<round_name>,
20758 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
20759 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
20760 *avx512f_vmfnmsub_<mode>_mask<round_name>,
20761 avx512f_vmfnmsub_<mode>_mask3<round_name>,
20762 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
20763 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
20764 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
20765 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
20766 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
20767 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
20768 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
20769 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
20770 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
20771 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
20772 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
20773 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
20774 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
20775 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
20776 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
20777 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
20778 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
20779 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
20780 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
20781 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
20782 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
20783 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
20785 2019-03-21 Martin Sebor <msebor@redhat.com>
20787 PR tree-optimization/89350
20788 * builtins.c (compute_objsize): Also ignore offsets whose upper
20790 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
20791 (builtin_memref::builtin_memref): Initialize new member.
20792 Allow EXPR to be null.
20793 (builtin_memref::extend_offset_range): Replace local with a member.
20794 Avoid assuming pointer offsets are unsigned.
20795 (builtin_memref::set_base_and_offset): Determine base object
20796 before computing offset range.
20797 (builtin_access::builtin_access): Handle memset.
20798 (builtin_access::generic_overlap): Replace local with a member.
20799 (builtin_access::strcat_overlap): Same.
20800 (builtin_access::overlap): Same.
20801 (maybe_diag_overlap): Same.
20802 (maybe_diag_access_bounds): Same.
20803 (wrestrict_dom_walker::check_call): Handle memset.
20804 (check_bounds_or_overlap): Same.
20806 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
20807 Jakub Jelinek <jakub@redhat.com>
20810 * tree.c (fld_type_variant, fld_incomplete_type_of,
20811 fld_process_array_type): Call fld->pset.add and don't call
20812 add_tree_to_fld_list if it returns true.
20813 (free_lang_data_in_type): Similarly with self-recursive call. Purge
20814 non-marked types from TYPE_NEXT_VARIANT list.
20815 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
20817 2019-03-21 Jakub Jelinek <jakub@redhat.com>
20819 * hash-table.h (hash_table): Add Lazy template parameter defaulted
20820 to false, if true, don't alloc_entries during construction, but defer
20821 it to the first method that needs m_entries allocated.
20822 (hash_table::hash_table, hash_table::~hash_table,
20823 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
20824 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
20825 hash_table::clear_slot, hash_table::traverse_noresize,
20826 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
20827 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
20829 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
20830 NO_INSERT instead of find_with_hash.
20831 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
20832 hash_set::m_table): Add Lazy to template params of hash_table.
20833 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
20834 * attribs.c (test_attribute_exclusions): Likewise.
20835 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
20836 hash_set. Add tests for hash_set with Lazy = true.
20838 2019-03-21 Richard Biener <rguenther@suse.de>
20840 PR tree-optimization/89779
20841 * tree.c (tree_nop_conversion): Consolidate and fix defensive
20842 checks with respect to released SSA names now having error_mark_node
20844 * fold-const.c (operand_equal_p): Likewise.
20846 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
20849 * config/s390/s390.c (global_not_special_regno_p): Move to make it
20851 (s390_optimize_register_info): Use global_not_special_regno_p to
20852 check for global regs.
20854 2019-03-20 Jakub Jelinek <jakub@redhat.com>
20857 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
20858 update this_alternative nor this_alternative_set.
20860 2019-03-19 Jim Wilson <jimw@sifive.com>
20863 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
20864 align, size, offset. Use them to handle a BLKmode reference. Update
20866 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
20868 2019-03-19 Jakub Jelinek <jakub@redhat.com>
20870 PR rtl-optimization/89768
20871 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
20872 instead of GEN_INT.
20873 (unroll_loop_runtime_iterations): Likewise.
20875 2019-03-19 Martin Sebor <msebor@redhat.com>
20877 PR tree-optimization/89644
20878 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
20879 rather than endptr as an indicator of nul-termination.
20881 PR tree-optimization/89644
20882 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
20883 arrays in determining sequence sizes in strncpy and stpncpy.
20885 2019-03-19 Martin Liska <mliska@suse.cz>
20887 PR middle-end/89737
20888 * predict.c (combine_predictions_for_bb): Empty likely_edges and
20889 unlikely_edges if there's an edge that belongs to both these sets.
20891 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
20894 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
20895 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
20896 go via a stack temporary.
20898 2019-03-19 Jakub Jelinek <jakub@redhat.com>
20901 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
20902 instead of gen_rtx_SUBREG.
20903 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
20905 2019-03-19 Richard Biener <rguenther@suse.de>
20908 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
20910 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
20914 * tree.c (free_lang_data_in_decl): Do not free context of C++
20917 2019-03-19 Jakub Jelinek <jakub@redhat.com>
20920 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
20921 subs for the first alternative except when operands[3] is 1.
20924 * gimplify.c (gimplify_asm_expr): For output argument with
20925 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
20928 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
20930 PR rtl-optimization/89753
20931 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
20932 explicit unrolling factor even more robust.
20934 2019-03-19 Jakub Jelinek <jakub@redhat.com>
20937 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
20938 compensation use x2 += 1 instead of x2 -= -1 and when honoring
20939 signed zeros, do another copysign after the compensation.
20941 2019-03-18 Martin Sebor <msebor@redhat.com>
20943 PR tree-optimization/89720
20944 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
20945 more conservatively, the same as anti-range.
20947 2019-03-18 Richard Biener <rguenther@suse.de>
20949 PR middle-end/88945
20950 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
20951 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
20952 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
20953 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
20955 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
20957 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
20958 Extend queue to 1024 entries.
20959 Add "consumed" field.
20960 (gomp_print_output): Remove print_index parameter.
20961 Add final parameter.
20962 Change limit to unsigned.
20963 Use consumed field to implement circular buffer.
20964 Detect interrupted print in final pass.
20965 Flush output at the end.
20966 (run): Update gomp_print_output usage.
20967 (main): Initialize kernargs->output_data.consumed.
20969 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
20971 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
20972 calculation of the minimum number of scalar iterations for
20973 fully-predicated loops.
20975 2019-03-18 Martin Jambor <mjambor@suse.cz>
20977 PR tree-optimization/89546
20978 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
20979 any propagation to its children took place.
20981 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
20984 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
20985 parameter, and make use of it.
20986 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
20988 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
20990 * config/arc/arc.opt (mcode-density-frame): Get the inital value
20991 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
20992 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
20993 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
20994 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
20995 match what the ops is doing.
20996 (push_multi_fp_blink): Likewise.
20997 * config/arc/arc.c (arc_override_options): Enable enter/leave when
20998 compiling for size and elf target.
20999 (arc_save_callee_enter): Adjust note to match what enter/leave
21002 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21004 * config/arc/arc.md (tst_movb): Fix constraint.
21006 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21008 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21010 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21012 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21013 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21014 reg_alloc_order references.
21015 (size_alloc_order): Define.
21016 (arc_adjust_reg_alloc_order): New function.
21017 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21019 (ADJUST_REG_ALLOC_ORDER): Define.
21020 (HONOR_REG_ALLOC_ORDER): Likewise.
21022 2019-03-18 Richard Biener <rguenther@suse.de>
21025 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21026 loads and stores a bit more.
21028 2019-03-18 Richard Biener <rguenther@suse.de>
21031 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21032 load pessimization to stores as well.
21034 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21036 PR middle-end/86979
21037 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21038 successor, use NULL as its av set.
21040 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21042 PR rtl-optimization/89721
21043 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21045 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21048 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21049 When handling vec_extract, use modular arithmetic to allow
21050 constant selectors greater than vector length.
21051 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21052 V1TImode vectors to have constant selector values greater than 0.
21053 Use modular arithmetic to compute vector index.
21054 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21055 index for in-memory vectors. Correct code generation for
21056 in-register vectors.
21057 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21060 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21064 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21067 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21070 * tree.c (inchash::add_expr): Strip any location wrappers.
21071 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21072 after hash verification.
21075 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21076 SIGN_EXTEND and ZERO_EXTEND.
21078 2019-03-14 Jason Merrill <jason@redhat.com>
21079 Jakub Jelinek <jakub@redhat.com>
21081 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21082 than if is_empty (*slot).
21083 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21084 existing elt and for elt removal.
21085 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21086 of already removed elt.
21088 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21091 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21092 REG_EH_REGION note.
21094 2019-03-14 Martin Liska <mliska@suse.cz>
21097 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21099 2019-03-14 Richard Biener <rguenther@suse.de>
21102 * config/i386/i386.c (make_resolver_func): Properly set
21103 DECL_CONTEXT on the RESULT_DECL.
21104 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21106 2019-03-14 Richard Biener <rguenther@suse.de>
21108 * gimple-pretty-print.c: Include cfgloop.h.
21109 (dump_gimple_phi): Adjust.
21110 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21111 (pp_cfg_jump): Adjust.
21112 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21113 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21114 (lower_phi_internal_fn): Remove.
21115 (verify_gimple_call): Remove IFN_PHI special-casing.
21116 (dump_function_to_file): Dump IL state.
21117 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21118 done to deal with PHI nodes being present in non-SSA state.
21120 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21123 * multiple_target.c (create_dispatcher_calls): Change
21124 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21125 In the node->iterate_referring loop, push *ref rather than ref, call
21126 ref->remove_reference () and always pass 0 to iterate_referring.
21128 PR rtl-optimization/89679
21129 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21130 would contain a paradoxical SUBREG.
21132 2019-03-14 Richard Biener <rguenther@suse.de>
21134 PR tree-optimization/89710
21135 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21138 2019-03-14 Martin Liska <mliska@suse.cz>
21140 * coverage.c (coverage_begin_function): Stream also
21142 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21143 documentation about function declaration location.
21144 * gcov-dump.c (tag_function): Print whole range
21145 of function declaration.
21146 * gcov.c (struct function_info): Add end_column field.
21147 (function_info::function_info): Initialize it.
21148 (output_json_intermediate_file): Output {start,end}_column
21150 (read_graph_file): Read end_column.
21152 2019-03-14 Richard Biener <rguenther@suse.de>
21154 PR middle-end/89698
21155 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21156 that the access types are similar.
21158 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21160 PR tree-optimization/89703
21161 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21162 aren't compatible also with builtin_decl_explicit. Check pure
21163 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21164 and BUILT_IN_STPNCPY{,_CHK}.
21166 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21169 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21170 addr32 prefix to VSIB address for X32.
21171 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21173 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21174 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21175 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21176 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21177 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21178 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21179 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21180 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21181 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21182 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21183 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21184 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21185 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21186 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21187 (*avx512f_scatterdi<mode>): Likewise.
21189 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21192 * lra-constraints.c (inherit_in_ebb): Update
21193 potential_reload_hard_regs along with live_hard_regs.
21195 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21198 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21200 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21202 2019-03-13 Martin Sebor <msebor@redhat.com>
21204 PR tree-optimization/89662
21205 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21208 2019-03-13 Richard Biener <rguenther@suse.de>
21210 PR middle-end/89677
21211 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21212 throw FP expressions at tree-affine.
21214 2019-03-14 Richard Biener <rguenther@suse.de>
21216 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21217 dump negative integer constants using _Literal (type) -num.
21219 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21221 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21222 nonlocal_value member.
21224 PR middle-end/88588
21225 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21226 (ipa_simd_modify_function_body): Handle PHIs.
21228 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21230 * config/s390/s390.c (s390_option_override_internal): Use more
21231 aggressive inlining parameters.
21233 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21235 * config/s390/3906.md: New file.
21236 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21237 (LONGRUNNING_THRESHOLD): Remove.
21238 (MAX_SCHED_MIX_SCORE): Decrease.
21239 (MAX_SCHED_MIX_DISTANCE): Decrease.
21240 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21241 (struct s390_sched_state): New struct to hold scheduling state.
21242 (S390_SCHED_STATE_NORMAL): Remove.
21243 (S390_SCHED_STATE_CRACKED): Remove.
21244 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21245 (s390_get_sched_attrmask): Use new attribute.
21246 (s390_get_unit_mask): Use new units.
21247 (s390_is_fpd): New function.
21248 (s390_is_fxd): New function.
21249 (s390_is_longrunning): New function.
21250 (s390_sched_score): Use new functions.
21251 (s390_sched_reorder): Likewise.
21252 (s390_sched_variable_issue): Rework and use new functions.
21253 (s390_sched_init): Use new functions.
21254 * config/s390/s390.h (s390_tune_attr): Add z14.
21255 * config/s390/s390.md: Add z14.
21257 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21259 * config/s390/2964.md: Update pipeline description.
21260 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21261 (LONGRUNNING_THRESHOLD): Remove.
21262 (LATENCY_FACTOR): Remove.
21263 (s390_get_unit_mask): Add unit.
21264 (s390_sched_score): Use fxd/fpd.
21265 (s390_sched_variable_issue): Use fxd/fpd.
21267 2019-03-12 Martin Liska <mliska@suse.cz>
21269 * config/i386/i386.c: Reword an error message.
21271 2019-03-12 Martin Jambor <mjambor@suse.cz>
21273 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
21274 terminate with newline.
21276 2019-03-12 Jakub Jelinek <jakub@redhat.com>
21279 * config/s390/s390.md (tabort): Use %wd instead of
21280 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
21281 letters and periods.
21282 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
21283 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
21286 PR middle-end/89663
21287 * builtins.c (expand_builtin_int_roundingfn,
21288 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
21289 gcc_unreachable if validate_arglist fails.
21291 2019-03-12 Richard Biener <rguenther@suse.de>
21293 PR tree-optimization/89664
21294 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
21295 free the occurance tree after the early out.
21297 2019-03-11 Jakub Jelinek <jakub@redhat.com>
21299 PR middle-end/89655
21301 * vr-values.c (vr_values::update_value_range): If
21302 old_vr->varying_p (), don't update it, make new_vr also VARYING
21305 2019-03-11 Martin Liska <mliska@suse.cz>
21307 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21308 Fix double string quoting.
21310 2019-03-11 Martin Liska <mliska@suse.cz>
21312 * collect-utils.c (collect_wait): Wrap apostrophes
21313 in gcc internal format with %'.
21314 * collect2.c (main): Likewise.
21315 (scan_prog_file): Likewise.
21316 (scan_libraries): Likewise.
21317 * config/i386/i386.c (ix86_expand_call): Likewise.
21318 (ix86_handle_interrupt_attribute): Likewise.
21319 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
21320 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21321 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
21322 * lto-wrapper.c (find_crtoffloadtable): Likewise.
21323 * symtab.c (symtab_node::verify_base): Likewise.
21324 * tree-cfg.c (verify_gimple_label): Likewise.
21325 * tree.c (verify_type_variant): Likewise.
21327 2019-03-11 Martin Liska <mliska@suse.cz>
21329 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
21330 in a string format message and fix GNU coding style.
21331 (expand_builtin_set_thread_pointer): Likewise.
21332 * common/config/aarch64/aarch64-common.c
21333 (aarch64_rewrite_selected_cpu): Likewise.
21334 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
21335 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
21336 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
21337 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
21338 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
21339 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
21340 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
21341 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
21342 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
21343 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
21345 * common/config/riscv/riscv-common.c
21346 (riscv_subset_list::parsing_subset_version): Likewise.
21347 (riscv_subset_list::parse_std_ext): Likewise.
21348 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
21349 (riscv_subset_list::parse): Likewise.
21350 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
21351 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
21352 (aarch64_override_options_internal): Likewise.
21353 (aarch64_validate_mcpu): Likewise.
21354 (aarch64_validate_march): Likewise.
21355 (aarch64_validate_mtune): Likewise.
21356 (aarch64_override_options): Likewise.
21357 * config/alpha/alpha.c (alpha_option_override): Likewise.
21358 * config/arc/arc.c (arc_init): Likewise.
21359 (parse_mrgf_banked_regs_option): Likewise.
21360 (arc_override_options): Likewise.
21361 (arc_expand_builtin_aligned): Likewise.
21362 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
21363 (arm_expand_builtin): Likewise.
21364 * config/arm/arm.c (arm_option_check_internal): Likewise.
21365 (arm_configure_build_target): Likewise.
21366 (arm_option_override): Likewise.
21367 (arm_options_perform_arch_sanity_checks): Likewise.
21368 (arm_handle_cmse_nonsecure_entry): Likewise.
21369 (arm_handle_cmse_nonsecure_call): Likewise.
21370 (arm_tls_referenced_p): Likewise.
21371 (thumb1_expand_prologue): Likewise.
21372 * config/avr/avr.c (avr_option_override): Likewise.
21373 * config/bfin/bfin.c (bfin_option_override): Likewise.
21374 * config/c6x/c6x.c (c6x_option_override): Likewise.
21375 * config/cr16/cr16.c (cr16_override_options): Likewise.
21376 * config/cris/cris.c (cris_option_override): Likewise.
21377 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
21378 * config/darwin-c.c (macosx_version_as_macro): Likewise.
21379 * config/darwin.c (darwin_override_options): Likewise.
21380 * config/frv/frv.c (frv_expand_builtin): Likewise.
21381 * config/h8300/h8300.c (h8300_option_override): Likewise.
21382 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
21383 (ix86_option_override_internal): Likewise.
21384 (warn_once_call_ms2sysv_xlogues): Likewise.
21385 (ix86_expand_prologue): Likewise.
21386 (split_stack_prologue_scratch_regno): Likewise.
21387 (ix86_warn_parameter_passing_abi): Likewise.
21388 * config/ia64/ia64.c (fix_range): Likewise.
21389 * config/m68k/m68k.c (m68k_option_override): Likewise.
21390 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
21391 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
21392 (mips_set_compression_mode): Likewise.
21393 * config/mmix/mmix.c (mmix_option_override): Likewise.
21394 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
21395 * config/msp430/msp430.c (msp430_option_override): Likewise.
21396 * config/nds32/nds32.c (nds32_option_override): Likewise.
21397 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
21398 (nios2_option_override): Likewise.
21399 (nios2_expand_custom_builtin): Likewise.
21400 * config/nvptx/mkoffload.c (main): Likewise.
21401 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
21402 * config/pa/pa.c (fix_range): Likewise.
21403 (pa_option_override): Likewise.
21404 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
21405 (riscv_option_override): Likewise.
21406 * config/rl78/rl78.c (rl78_option_override): Likewise.
21407 * config/rs6000/aix61.h: Likewise.
21408 * config/rs6000/aix71.h: Likewise.
21409 * config/rs6000/aix72.h: Likewise.
21410 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
21411 * config/rs6000/freebsd64.h: Likewise.
21412 * config/rs6000/linux64.h: Likewise.
21413 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
21414 (rs6000_expand_zeroop_builtin): Likewise.
21415 (rs6000_expand_mtfsb_builtin): Likewise.
21416 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
21417 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
21418 (rs6000_invalid_builtin): Likewise.
21419 (rs6000_expand_split_stack_prologue): Likewise.
21420 * config/rs6000/rtems.h: Likewise.
21421 * config/rx/rx.c (valid_psw_flag): Likewise.
21422 (rx_expand_builtin): Likewise.
21423 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
21424 * config/s390/s390.c (s390_expand_builtin): Likewise.
21425 (s390_function_profiler): Likewise.
21426 (s390_option_override_internal): Likewise.
21427 (s390_option_override): Likewise.
21428 * config/sh/sh.c (sh_option_override): Likewise.
21429 (sh_builtin_saveregs): Likewise.
21430 (sh_fix_range): Likewise.
21431 * config/sh/vxworks.h: Likewise.
21432 * config/sparc/sparc.c (sparc_option_override): Likewise.
21433 * config/spu/spu.c (spu_option_override): Likewise.
21434 (fix_range): Likewise.
21435 * config/visium/visium.c (visium_option_override): Likewise.
21436 (visium_handle_interrupt_attr): Likewise.
21437 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
21438 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
21439 (dbg_cnt_process_opt): Likewise.
21440 * dwarf2out.c (output_dwarf_version): Likewise.
21441 * except.c (expand_eh_return): Likewise.
21442 * gcc.c (defined): Likewise.
21443 (driver_handle_option): Likewise.
21444 (process_command): Likewise.
21445 (compare_files): Likewise.
21446 (driver::prepare_infiles): Likewise.
21447 (driver::do_spec_on_infiles): Likewise.
21448 (driver::maybe_run_linker): Likewise.
21449 * omp-offload.c (oacc_parse_default_dims): Likewise.
21450 * opts-global.c (handle_common_deferred_options): Likewise.
21451 * opts.c (parse_sanitizer_options): Likewise.
21452 (common_handle_option): Likewise.
21453 (enable_warning_as_error): Likewise.
21454 * passes.c (enable_disable_pass): Likewise.
21455 * plugin.c (parse_plugin_arg_opt): Likewise.
21456 (default_plugin_dir_name): Likewise.
21457 * targhooks.c (default_expand_builtin_saveregs): Likewise.
21458 (default_pch_valid_p): Likewise.
21459 * toplev.c (init_asm_output): Likewise.
21460 (process_options): Likewise.
21461 (toplev::run_self_tests): Likewise.
21462 * tree-cfg.c (verify_gimple_call): Likewise.
21463 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
21464 (tree_inlinable_function_p): Likewise.
21465 * var-tracking.c (vt_find_locations): Likewise.
21467 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
21469 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
21470 only on the else branch.
21472 2019-03-11 Martin Liska <mliska@suse.cz>
21474 * gcov.c (output_intermediate_json_line): Print function
21476 (output_json_intermediate_file): Add new argument.
21477 * doc/gcov.texi: Document the change.
21479 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
21481 PR rtl-optimization/89588
21482 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21483 explicit unrolling factor more robust.
21485 2019-03-11 Richard Biener <rguenther@suse.de>
21487 PR tree-optimization/89649
21488 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
21489 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
21490 on the prolog and epilog loops.
21491 (vect_loop_versioning): Return copy of loop.
21492 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
21493 on the non-vectorized version of the loop.
21495 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
21498 * config/i386/sse.md (*vec_extractv2di_0_sse):
21499 Add (=r,x) alternative and corresponding splitter.
21501 2019-03-10 Martin Jambor <mjambor@suse.cz>
21503 PR tree-optimization/85762
21504 PR tree-optimization/87008
21505 PR tree-optimization/85459
21506 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
21507 it points to if there is a type changing MEM_REF. Adjust all callers.
21508 (build_accesses_from_assign): Disable total scalarization if
21509 contains_vce_or_bfcref_p returns true through the new parameter, for
21512 2019-03-09 Jakub Jelinek <jakub@redhat.com>
21515 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
21516 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
21519 * common.opt (fdiagnostics-show-labels,
21520 fdiagnostics-show-line-numbers, fdiagnostics-format=,
21521 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
21522 gas-locview-support, ginline-points, ginternal-reset-location-views):
21523 Terminate description text with a dot.
21524 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
21525 * config/mcore/mcore.opt (m210, m340): Likewise.
21526 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
21527 mnops=): Start description text with a capital letter.
21528 * config/arc/arc.opt (msize-level=): Likewise.
21529 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
21530 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
21531 mnewlib): Likewise.
21532 * config/ft32/ft32.opt (msim): Likewise.
21533 (mft32b, mcompress): Likewise. Terminate description text with a dot.
21534 (mnodiv, mnopm): Terminate description text with a dot.
21535 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
21537 * config/i386/i386.opt (prefer_vector_width, instrument_return):
21539 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
21542 PR rtl-optimization/89634
21543 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
21544 are modified in BB_END (e->src) instruction.
21546 2019-03-08 David Malcolm <dmalcolm@redhat.com>
21549 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
21550 messages more amenable to translation, and improve wording.
21552 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
21554 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
21555 ud- and du-chains between phases.
21557 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
21560 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
21561 instead of POLY_INT_CST.
21563 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
21565 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
21568 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
21573 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
21574 (_mm_storeu_si64): Ditto.
21576 2019-03-08 Martin Liska <mliska@suse.cz>
21579 * config/i386/i386.c (ix86_option_override_internal): Disable
21580 jump tables when retpolines are used.
21582 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
21585 * ipa-split.c (execute_split_functions): Do not split
21586 'noinline' or 'section' function.
21588 2019-03-08 Jakub Jelinek <jakub@redhat.com>
21591 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
21592 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
21593 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
21596 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
21597 from diagnostics. Formatting fixes.
21600 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
21601 warn_odr diagnostics.
21604 * lra-constraints.c (process_alt_operands): Avoid one space before
21605 " at the end of line and another after " on another line in a string
21607 * attribs.c (handle_dll_attribute): Likewise.
21608 * config/avr/avr-devices.c (avr_texinfo): Likewise.
21610 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
21611 warning_at or inform messages in G_() if there is no ?:.
21613 PR tree-optimization/89550
21614 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
21615 returned true. Formatting fixes.
21616 (expand_builtin_strnlen): Formatting fixes.
21617 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
21618 if warning_at returned true.
21619 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
21621 2019-03-08 Richard Biener <rguenther@suse.de>
21623 PR middle-end/89578
21624 * cfgloop.h (struct loop): Add owned_clique field.
21625 * cfgloopmanip.c (copy_loop_info): Copy it.
21626 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
21628 * tree-inline.c (copy_loops): Remap owned_clique.
21629 * lto-streamer-in.c (input_cfg): Stream owned_clique.
21630 * lto-streamer-out.c (output_cfg): Likewise.
21632 2019-03-08 Jakub Jelinek <jakub@redhat.com>
21635 * config/darwin.c: Include intl.h.
21636 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
21637 composing the message out of two separate parts.
21639 2019-03-07 Jakub Jelinek <jakub@redhat.com>
21642 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
21643 doesn't start with a capital letter and doesn't end with a dot.
21644 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
21645 with a capital letter.
21646 (ix86_mangle_function_version_assembler_name): Likewise.
21647 (ix86_generate_version_dispatcher_body): Likewise.
21648 (fold_builtin_cpu): Likewise.
21649 (get_builtin_code_for_version): Likewise. Remove extraneous space.
21650 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
21651 translators, wrap full type name in %qs.
21653 PR translation/79999
21654 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
21655 depend clause with source (or sink) modifier.
21656 * omp-expand.c (expand_omp_ordered_sink): Likewise.
21659 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
21660 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
21661 (avx512f_load<mode>_mask): New define_expand.
21662 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
21663 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
21664 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
21665 __builtin_ia32_movess_mask): New builtins.
21666 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
21667 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
21668 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
21669 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
21671 2019-03-07 Martin Jambor <mjambor@suse.cz>
21674 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
21675 for extern inline functions.
21677 2019-03-07 Martin Jambor <mjambor@suse.cz>
21680 * cgraph.h (cgraph_node): New inline method former_thunk_p.
21681 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
21682 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
21683 have multiple callees. At the end check if declarations match as
21684 opposed to cgraph_nodes.
21686 2019-03-07 Martin Liska <mliska@suse.cz>
21688 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
21689 which is equivalent to searching for this in clones chain.
21690 * symtab.c (symtab_node::verify_base): Similarly compare ASM
21691 names with a neighbour and special case first node in a chain.
21693 2019-01-25 Jason Merrill <jason@redhat.com>
21695 PR c++/80916 - spurious "static but not defined" warning.
21696 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
21697 for an internal symbol with DECL_EXTERNAL.
21699 2019-04-07 Richard Biener <rguenther@suse.de>
21701 PR middle-end/89618
21702 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
21703 * tree-inline.c (copy_loops): Simplify.
21705 2019-03-07 Martin Liska <mliska@suse.cz>
21707 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
21709 2019-03-07 Richard Biener <rguenther@suse.de>
21711 PR tree-optimization/89595
21712 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
21713 stmt iterator as reference, take boolean output parameter to
21714 indicate whether the stmt was removed and thus the iterator
21716 (dom_opt_dom_walker::before_dom_children): Re-iterate over
21717 stmts created by folding.
21719 2019-03-07 Jakub Jelinek <jakub@redhat.com>
21722 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
21725 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
21727 PR rtl-optimization/88845
21728 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
21730 * lra.c (remove_scratches_1): New function.
21731 (remove_scratches): Use it.
21732 (lra_emit_move): Likewise.
21734 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
21736 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
21737 unaligned_access variable.
21738 * config/arc/arc.c (arc_override_options): Set unaligned access
21739 default on for HS CPUs.
21740 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
21742 2019-03-06 Martin Liska <mliska@suse.cz>
21744 PR gcov-profile/89577
21745 * doc/gcov.texi: Prefer to use --coverage.
21746 * doc/sourcebuild.texi: Likewise.
21748 2019-03-02 Jason Merrill <jason@redhat.com>
21750 PR c++/86485 - -Wmaybe-unused with empty class ?:
21751 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
21753 2019-03-05 Jakub Jelinek <jakub@redhat.com>
21756 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
21759 PR middle-end/89590
21760 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
21761 exactly one argument.
21763 2019-03-05 Jakub Jelinek <jakub@redhat.com>
21764 Richard Sandiford <richard.sandiford@arm.com>
21766 PR tree-optimization/89570
21767 * match.pd (vec_cond into cond_op simplification): Don't use
21768 get_conditional_internal_fn, use as_internal_fn (cond_op).
21770 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
21773 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
21774 to decide when to split off a non-zero offset from a symbol.
21775 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
21776 in function symbols.
21778 2019-03-05 Richard Biener <rguenther@suse.de>
21780 PR tree-optimization/89594
21781 * tree-if-conv.c (pass_if_conversion::execute): Handle
21782 case where .LOOP_VECTORIZED_FUNCTION was removed.
21784 2019-03-05 Jakub Jelinek <jakub@redhat.com>
21787 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
21788 instead alloca it only when needed with the needed size.
21790 PR tree-optimization/89570
21791 * match.pd (vec_cond into cond_op simplification): Guard with
21792 vectorized_internal_fn_supported_p test and #if GIMPLE.
21794 PR tree-optimization/89566
21795 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
21796 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
21797 Punt if get_user_idx_format succeeds, but idx_format argument is
21798 not provided or doesn't have pointer type, or if idx_args is above
21799 number of provided arguments.
21801 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
21803 PR tree-optimization/89437
21804 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
21806 2019-03-04 Richard Biener <rguenther@suse.de>
21808 PR middle-end/89572
21809 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
21812 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
21814 PR tree-optimization/89487
21815 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
21816 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
21817 (distribute_loop): Don't do runtime alias check if there is non-
21818 addressable data reference.
21819 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
21820 is a register variable.
21822 2019-03-02 Jakub Jelinek <jakub@redhat.com>
21825 * config/arm/arm.md (cmpsi2_addneg): Use
21826 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
21827 If operands[2] is 0 or INT_MIN, force use of subs.
21828 (*compare_scc splitter): Use gen_int_mode.
21829 (*negscc): Likewise.
21830 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
21832 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
21833 Monk Chiang <sh.chiang04@gmail.com>
21835 * common/config/riscv/riscv-common.c: Include sstream.
21836 (riscv_subset_list::to_string): New.
21837 (riscv_arch_str): Likewise.
21838 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
21839 * config.in: Regen.
21840 * config/riscv/riscv-protos.h (riscv_arch_str): New.
21841 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
21842 (riscv_emit_attribute): New.
21843 (riscv_file_start): Emit attribute if needed.
21844 (riscv_option_override): Init riscv_emit_attribute_p.
21845 * config/riscv/riscv.opt (mriscv-attribute): New option.
21846 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
21847 * configure: Regen.
21848 * doc/install.texi: Document --with-riscv-attribute.
21849 * doc/invoke.texi: Document -mriscv-attribute.
21851 * common/config/riscv/riscv-common.c:
21852 Include config/riscv/riscv-protos.h.
21853 (INCLUDE_STRING): Defined.
21854 (RISCV_DONT_CARE_VERSION): Defined.
21855 (riscv_subset_t): Declare.
21856 (riscv_subset_t::riscv_subset_t): New.
21857 (riscv_subset_list): Declare.
21858 (riscv_subset_list::riscv_subset_list): New.
21859 (riscv_subset_list::~riscv_subset_list): Likewise.
21860 (riscv_subset_list::parsing_subset_version): Likewise.
21861 (riscv_subset_list::parse_std_ext): Likewise.
21862 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
21863 (riscv_subset_list::add): Likewise.
21864 (riscv_subset_list::lookup): Likewise.
21865 (riscv_subset_list::xlen): Likewise.
21866 (riscv_subset_list::parse): Likewise.
21867 (riscv_supported_std_ext): Likewise.
21868 (current_subset_list): Likewise.
21869 (riscv_parse_arch_string): Using riscv_subset_list::parse to
21872 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
21874 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21875 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
21876 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
21878 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
21880 PR rtl-optimization/85899
21881 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
21882 fallthru edges leading to the exit block.
21884 2019-03-01 Tamar Christina <tamar.christina@arm.com>
21887 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
21888 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
21890 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
21892 PR tree-optimization/89535
21893 * tree-vect-stmts.c (vectorizable_call): Record the vector types
21894 for each operand. Calculate the fallback choice for mask operands
21895 and pass it to vect_get_vec_def_for_operand.
21897 2019-03-01 Richard Biener <rguenther@suse.de>
21899 PR middle-end/89541
21900 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
21901 get virtual operands.
21902 (get_expr_operands): Handle CONST_DECL like other decls.
21904 2019-03-01 Jakub Jelinek <jakub@redhat.com>
21906 PR middle-end/89503
21907 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
21908 on DECL_P and EXPR_P.
21910 2019-03-01 Richard Biener <rguenther@suse.de>
21912 PR middle-end/89497
21913 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
21914 argument, defaulted to zero.
21915 * passes.c (execute_function_todo): Pass down SSA update flags
21916 to cleanup_tree_cfg.
21917 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
21918 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
21920 (cleanup_tree_cfg): Get and pass down SSA update flags.
21922 2019-03-01 Jakub Jelinek <jakub@redhat.com>
21925 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
21926 early_lto_debug argument.
21928 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
21930 PR tree-optimization/89536
21931 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
21932 only whether bit #0 of the value is 0 instead of the entire value.
21934 2019-02-28 Marek Polacek <polacek@redhat.com>
21936 PR c++/87068 - missing diagnostic with fallthrough statement.
21937 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
21938 at the end of a seq, save its location to walk_stmt_info.
21939 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
21942 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
21945 * tree.c (find_atomic_core_type): Move ahead in file.
21946 (check_base_type): Correctly compare alignments of atomic types.
21948 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
21951 * config/i386/i386.c (get_builtin_code_for_version): Identify
21952 Westmere from PCLMUL, instead of AES.
21954 2019-02-28 Jakub Jelinek <jakub@redhat.com>
21957 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
21958 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
21961 2019-02-28 Tamar Christina <tamar.christina@arm.com>
21964 * config/aarch64/aarch64-option-extensions.def: Document it.
21965 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
21968 2019-02-28 Jakub Jelinek <jakub@redhat.com>
21971 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
21972 builtins if they don't have a single scalar floating point argument.
21975 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
21977 PR rtl-optimization/89490
21978 * varasm.c (get_block_for_section): Bail out for mergeable sections.
21979 (default_use_anchors_for_symbol_p, output_object_block): Assert the
21980 block section is not mergeable.
21982 2019-02-27 Jakub Jelinek <jakub@redhat.com>
21985 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
21986 old define_insn to ...
21987 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
21988 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
21989 Rename old define_insn to ...
21990 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
21991 (thumb2_casesi_internal_pic): New define_expand. Rename old
21993 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
21994 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
21995 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
21997 2019-02-27 Richard Biener <rguenther@suse.de>
22000 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22002 2019-02-27 Richard Biener <rguenther@suse.de>
22004 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22007 2019-02-27 Richard Biener <rguenther@suse.de>
22010 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22011 parameter, prefix section name with .gnu.debuglto_ if true.
22012 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22013 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22015 2019-02-27 Richard Biener <rguenther@suse.de>
22018 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22019 rather than on use_debug_types, doing what output_die does.
22020 (value_format): Likewise.
22022 2019-02-27 Martin Jambor <mjambor@suse.cz>
22023 Martin Sebor <msebor@redhat.com>
22025 * doc/invoke.texi (Warning Options): Reword description of
22026 -Wno-absolute-value.
22028 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22030 PR tree-optimization/89280
22031 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22032 builtin_setjmp_setup_bb): New functions.
22033 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22034 When visiting __builtin_setjmp_setup block, queue in special
22035 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22036 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22037 from visited after the loop if they don't have any visited successor
22040 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22042 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22044 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22046 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22049 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22050 with types other than sizetype/ssizetype.
22052 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22054 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22055 (enum sparc_processor_type): ...this.
22056 (enum sparc_code_model_type): New enumeration type.
22057 (enum sparc_memory_model_type): Tweak comments.
22058 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22060 (mcmodel): Use sparc_code_model enumeration and variable.
22061 (sparc_code_model): New enumeration.
22062 (mdebug): Add Undocumented marker.
22063 * config/sparc/sparc.h (enum cmodel): Delete.
22064 (sparc_cmodel): Likewise.
22065 (TARGET_CM_MEDLOW): Adjust to above renaming.
22066 (TARGET_CM_MEDMID): Likewise.
22067 (TARGET_CM_MEDANY): Likewise.
22068 (TARGET_CM_EMBMEDANY): Likewise.
22069 * config/sparc/sparc.c (sparc_cmodel): Delete.
22070 (sparc_option_override): Remove string/value mapping support for the
22071 code model. Move code and memory model support to after the handling
22072 of target flags. Do private machine setup last.
22073 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22074 (sparc_legitimize_reload_address): Likewise.
22075 (sparc_output_mi_thunk): Likewise.
22076 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22078 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22080 PR tree-optimization/89500
22081 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22082 (handle_builtin_strlen): Remove noncst_bound variable. Always
22083 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22084 cst if the first cst bytes starting at x are known to be non-zero,
22085 even if the string is not zero terminated. Don't try to modify
22086 *si for strnlen. Update strlen_to_stridx only for strlen or if
22087 we can prove strnlen returns the same value as strlen would.
22089 2019-02-26 Martin Liska <mliska@suse.cz>
22091 * alloc-pool.h (struct pool_usage): Remove extra
22093 * bitmap.h (struct bitmap_usage): Likewise.
22094 * ggc-common.c (struct ggc_usage): Likewise.
22095 * mem-stats.h (struct mem_usage): Likewise.
22096 (mem_alloc_description::dump): Print dash lines
22097 here and repeat header at the end of a table report.
22098 It's then more readable.
22099 * tree-phinodes.c (phinodes_print_statistics): Make
22100 horizontal alignment.
22101 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22102 * vec.c (struct vec_usage): Remove extra print_dash_line.
22103 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22105 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22107 * doc/extend.texi (__builtin_object_size):
22108 Use @pxref instead of @xref inside parenthesis.
22109 (__builtin_has_attribute): Add missing comma after @xref.
22110 (__builtin_object_size): Ditto.
22111 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22113 2019-02-26 Jeff Law <law@redhat.com>
22115 PR rtl-optimization/87761
22116 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22117 detect obviously dead insns and delete them.
22119 2019-02-26 Richard Biener <rguenther@suse.de>
22121 PR tree-optimization/89505
22122 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22123 to handle restrict pointed-to vars with multiple subvars
22126 2019-02-26 Richard Biener <rguenther@suse.de>
22128 PR tree-optimization/89489
22129 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22131 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22133 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22134 and move around comment.
22135 <BIT_AND_EXPR>: Likewise.
22136 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22138 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22141 * config/i386/i386.c (remove_partial_avx_dependency): Call
22142 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22143 after changing possibly many instructions to use that pseudo. Fix up
22144 insertion of v4sf_const0 setter at the start of bb.
22146 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22149 * doc/extend.texi (Variadic Pointer Args): New section.
22151 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22152 Martin Sebor <msebor@gmail.com>
22154 * common.opt (Wattribute-alias): Likewise.
22155 * doc/invoke.texi (Option Summary): List general form of
22156 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22157 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22158 Add cross-references.
22159 (-Wattribute-alias): Rewrite and correct default. Mention
22160 considered attributes (same as for -Wmissing-attributes).
22162 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22164 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22165 (_mm_cvtpd_ps): Likewise.
22166 (_mm_cvttpd_epi32): Likewise.
22169 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22170 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22173 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22175 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22178 * common/config/aarch64/aarch64-common.c
22179 (struct aarch64_option_extension): Add is_synthetic.
22180 (all_extensions): Use it.
22181 (TARGET_OPTION_INIT_STRUCT): Define hook.
22182 (struct gcc_targetm_common): Moved to end.
22183 (all_extensions_by_on): New.
22184 (opt_ext_cmp, typedef opt_ext): New.
22185 (aarch64_option_init_struct): New.
22186 (aarch64_contains_opt): New.
22187 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22188 * config/aarch64/aarch64-option-extensions.def
22189 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22190 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22191 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22192 Set is_synthetic to false.
22193 (crypto): Set is_synthetic to true.
22194 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22197 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22199 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22200 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22201 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22202 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22203 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22204 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22205 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22206 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22208 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22209 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22210 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22211 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22212 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22213 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22214 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22215 vfmlsl_laneq_high_f16): ... To this.
22216 * config/arm/neon.md: Update comments.
22218 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22220 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22221 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22222 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22223 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22224 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22225 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22226 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22227 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22229 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22230 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22231 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22232 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22233 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22234 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22235 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22236 vfmlslq_laneq_high_f16): ... To this.
22238 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
22240 PR rtl-optimization/86096
22241 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22242 comparing mw_order values.
22244 2019-02-25 Jakub Jelinek <jakub@redhat.com>
22247 * config/arm/arm.md (*subsi3_carryin_const): Use
22248 arm_neg_immediate_operand predicate instead of
22249 arm_not_immediate_operand, "L" constraint instead of "K" and
22250 print it using %n2 instead of %B2.
22251 (*subsi3_carryin_const0): New define_insn.
22252 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
22253 instead of arm_not_operand and "I" constraint instead of "K" and
22254 print it using %n3 instead of %B2. Instead of using match_dup 2 add
22255 another match_operand and in the condition check that it is negation
22257 (*subsi3_carryin_compare_const0): New define_ins.
22258 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
22259 *subsi3_carryin_const.
22260 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
22261 split into *subsi3_carryin_compare_const0 if the highpart is zero.
22264 * config/arm.vfp.md (*negdf2_vfp): Use
22265 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
22266 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
22268 2019-02-24 Jakub Jelinek <jakub@redhat.com>
22270 PR rtl-optimization/89445
22271 * simplify-rtx.c (simplify_ternary_operation): Don't use
22272 simplify_merge_mask on operands that may trap.
22273 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
22274 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
22275 second operand is CONST_VECTOR, check if any element could be zero.
22276 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
22277 their operands can trap.
22279 2019-02-23 Martin Sebor <msebor@redhat.com>
22281 * gimple-ssa-sprintf.c (target_strtol): Rename...
22282 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
22283 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
22284 check for range error.
22286 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
22289 * opts-common.c (prune_options): Also prune joined switches
22290 with Negative and RejectNegative.
22291 * config/i386/i386.opt (march=): Add Negative(march=).
22292 (mtune=): Add Negative(mtune=).
22293 * doc/options.texi: Document Negative used together with Joined
22294 and RejectNegative.
22296 2019-02-22 Martin Sebor <msebor@redhat.com>
22298 * doc/extend.texi (Other Builtins): Add
22299 __builtin_is_constant_evaluated.
22301 2019-02-22 Richard Biener <rguenther@suse.de>
22303 PR tree-optimization/87609
22304 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
22306 2019-02-22 Jeff Law <law@redhat.com>
22308 PR rtl-optimization/87761
22309 * config/mips/mips.md: Add new combiner pattern to recognize
22310 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
22312 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
22315 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
22316 destination register in peepholes generating patterns for ADDS/SUBS.
22317 (add<mode>3_compare0,
22318 *addsi3_compare0_uxtw, add<mode>3_compareC,
22319 add<mode>3_compareV_imm, add<mode>3_compareV,
22320 *adds_<optab><ALLX:mode>_<GPI:mode>,
22321 *subs_<optab><ALLX:mode>_<GPI:mode>,
22322 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
22323 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
22324 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
22325 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
22326 sub<mode>3_compare1): Allow stack pointer for source register.
22327 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
22329 2019-02-22 Martin Sebor <msebor@redhat.com>
22331 PR tree-optimization/88993
22332 PR tree-optimization/88853
22333 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
22335 (sprintf_dom_walker::call_info::is_string_func): New helper.
22336 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
22337 for formatted string functions.
22338 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
22340 2019-02-22 Martin Sebor <msebor@redhat.com>
22343 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
22344 unreachable subexpressions.
22346 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
22347 Hongtao Liu <hongtao.liu@intel.com>
22348 Sunil K Pandey <sunil.k.pandey@intel.com>
22351 * config/i386/i386-passes.def: Add
22352 pass_remove_partial_avx_dependency.
22353 * config/i386/i386-protos.h
22354 (make_pass_remove_partial_avx_dependency): New.
22355 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
22357 (pass_data_remove_partial_avx_dependency): New.
22358 (pass_remove_partial_avx_dependency): Likewise.
22359 (make_pass_remove_partial_avx_dependency): Likewise.
22360 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
22361 (*extendsfdf2): Add avx_partial_xmm_update.
22362 (truncdfsf2): Likewise.
22363 (*float<SWI48:mode><MODEF:mode>2): Likewise.
22364 (SF/DF conversion splitters): Disabled for TARGET_AVX.
22366 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
22368 PR middle-end/85598
22369 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
22372 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
22375 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
22376 (PTA_SKYLAKE): Add PTA_AES.
22377 (PTA_GOLDMONT): Likewise.
22379 2019-02-22 Sudakshina Das <sudi.das@arm.com>
22381 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
22382 instruction if enabled.
22383 (aarch64_override_options): Remove reference to return address key.
22385 2019-02-22 Richard Biener <rguenther@suse.de>
22387 PR tree-optimization/89440
22388 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
22389 not necessary assert.
22391 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
22394 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
22395 (oacc_replace_fn_attrib_attr): ... this new function.
22396 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
22397 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
22399 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22401 * config/arm/arm-cpus.in (ares): Rename to...
22402 (neoverse-n1): ... This. Add ares as alias.
22403 * config/arm/arm-tables.opt: Regenerate.
22404 * config/arm/arm-tune.md: Likewise.
22405 * doc/invoke.txt (ARM Options): Document neoverse-n1.
22407 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22409 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
22410 * config/aarch64/aarch64-tune.md: Regenerate.
22411 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
22413 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22415 * config/aarch64/aarch64.c (ares_tunings): Rename to...
22416 (neoversen1_tunings): ... This.
22417 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
22418 (neoverse-n1): New CPU.
22419 * config/aarch64/aarch64-tune.md: Regenerate.
22420 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
22422 2019-02-22 Richard Biener <rguenther@suse.de>
22424 PR middle-end/87609
22425 * cfghooks.h (dependence_hash): New typedef.
22426 (struct copy_bb_data): New type.
22427 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
22428 (duplicate_block): Likewise.
22429 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
22430 (copy_bbs): Create and pass down copy_bb_data.
22431 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
22432 (rtl_duplicate_bb): Likewise.
22433 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
22434 remap dependence info.
22436 2019-02-22 Richard Biener <rguenther@suse.de>
22438 PR tree-optimization/87609
22439 * tree-core.h (tree_base): Document special clique values.
22440 * tree-inline.c (remap_dependence_clique): Do not use the
22441 special clique value of one.
22442 (maybe_set_dependence_info): Use clique one.
22443 (clear_dependence_clique): New callback.
22444 (compute_dependence_clique): Clear clique one from all refs
22445 before assigning it (again).
22447 2019-02-21 Martin Sebor <msebor@redhat.com>
22449 * doc/extend.texi (__clear_cache): Correct signature.
22451 2019-02-21 Ian Lance Taylor <iant@golang.org>
22454 * varasm.c (decode_addr_const): Call lookup_constant_def rather
22455 than output_constant_def.
22456 (add_constant_to_table): New static function.
22457 (output_constant_def): Call add_constant_to_table.
22458 (tree_output_constant_def): Likewise.
22460 2019-02-21 Jakub Jelinek <jakub@redhat.com>
22463 * builtins.c (fold_builtin_arith_overflow): If first two args are
22464 INTEGER_CSTs, set intres and ovfres to constants rather than calls
22467 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
22470 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
22471 error for -mindirect-branch/-mfunction-return with incompatible
22474 2019-02-21 Jakub Jelinek <jakub@redhat.com>
22477 * constraints.md (q): Remove.
22478 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
22481 2019-02-21 Martin Jambor <mjambor@suse.cz>
22484 * omp-general.c (omp_extract_for_data): Removed a duplicate call
22485 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
22486 (omp_adjust_for_condition): ...here. Added necessary parameters.
22487 * omp-general.h (omp_adjust_for_condition): Updated declaration.
22488 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
22489 proper values to new parameters of omp_adjust_for_condition.
22491 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22493 PR middle-end/89412
22494 * expr.c (expand_assignment): If result is a MEM, use change_address
22495 instead of simplify_gen_subreg.
22497 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22498 David Malcolm <dmalcolm@redhat.com>
22500 PR middle-end/89091
22501 * fold-const.c (decode_field_reference): Return NULL_TREE if
22502 lang_hooks.types.type_for_size returns NULL. Check it before
22503 overwriting *exp_. Use return NULL_TREE instead of return 0.
22505 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22507 PR middle-end/88074
22508 PR middle-end/89415
22509 * toplev.c (do_compile): Double the emin/emax exponents to workaround
22512 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
22515 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
22516 TARGET_SSE in addition to TARGET_SSE_MATH.
22518 (ix86_excess_precision): Ditto.
22519 (ix86_float_exceptions_rounding_supported_p): Ditto.
22520 (use_rsqrt_p): Ditto.
22521 * config/i386/sse.md (rsqrt<mode>2): Ditto.
22523 2019-02-20 David Malcolm <dmalcolm@redhat.com>
22526 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
22527 linenum_arith_t when determining if two adjacent line spans are
22528 close enough to merge.
22529 (diagnostic_show_locus): Use linenum_arith_t when iterating over
22530 lines within each line_span.
22532 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
22535 * lra-constraints.c(uses_hard_regs_p): Fix handling of
22536 paradoxical SUBREGS.
22538 2019-02-20 Li Jia He <helijia@linux.ibm.com>
22541 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
22542 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
22543 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
22546 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
22548 * config/gcn/gcn.c (print_operand): Fix typo.
22550 2019-02-19 Richard Biener <rguenther@suse.de>
22552 PR middle-end/88074
22553 * toplev.c (do_compile): Initialize mpfr's exponent range
22554 based on available float modes.
22556 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
22558 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
22559 as long as the epilogue isn't completed.
22561 2019-02-18 Martin Sebor <msebor@redhat.com>
22563 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
22564 __has_cpp_attribute, and __has_include.
22566 2019-02-18 Martin Sebor <msebor@redhat.com>
22568 * doc/invoke.texi (-Wreturn-type): Correct and expand.
22570 2019-02-18 Martin Sebor <msebor@redhat.com>
22572 PR middle-end/89294
22573 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
22575 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
22577 2019-02-18 Richard Biener <rguenther@suse.de>
22579 PR tree-optimization/89296
22580 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
22581 of no-warning flag to cases that might emit the bogus warning.
22583 2019-02-18 Jakub Jelinek <jakub@redhat.com>
22586 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
22588 * config/arm/vfp.md (*movdi_vfp): Likewise.
22589 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
22590 "q" constraint for operands[0].
22593 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
22594 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
22595 pattern in a temporary buffer.
22596 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
22597 than 64-operands[2].
22600 * config/s390/s390.c (s390_indirect_branch_attrvalue,
22601 s390_indirect_branch_settings): Define unconditionally.
22602 (s390_set_current_function): Likewise, but guard the whole body except
22603 the s390_indirect_branch_settings call with
22604 #if S390_USE_TARGET_ATTRIBUTE.
22605 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
22607 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
22608 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
22609 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
22610 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
22611 HOST_WIDE_INT_1U instead of 1ULL.
22612 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
22613 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
22614 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
22615 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
22617 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
22620 2019-02-18 Martin Jambor <mjambor@suse.cz>
22622 PR tree-optimization/89209
22623 * tree-sra.c (create_access_replacement): New optional parameter
22624 reg_tree. Use it as a type if non-NULL and access type is not of
22626 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
22627 to create_access_replacement.
22628 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
22629 Check lacc is non-NULL before attempting to re-create it on the RHS.
22631 2019-02-18 Martin Liska <mliska@suse.cz>
22634 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
22636 (symbol_table::free_edge): Recycle m_summary_id.
22637 * cgraph.h (get_summary_id): New.
22638 (symbol_table::release_symbol): Set m_summary_id to -1
22640 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
22641 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
22642 function_summary to fast_function_summary.
22643 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
22644 * ipa-pure-const.c (class funct_state_summary_t):
22645 Switch from function_summary to fast_function_summary.
22646 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
22647 (class ipa_ref_opt_summary_t): Switch from function_summary
22648 to fast_function_summary.
22649 * symbol-summary.h (class function_summary_base): New class
22650 that is created from base of former function_summary.
22651 (function_summary_base::unregister_hooks): New.
22652 (class function_summary): Inherit from function_summary_base.
22653 (class call_summary_base): New class
22654 that is created from base of former call_summary.
22655 (class call_summary): Inherit from call_summary_base.
22656 (struct is_same): New.
22657 (class fast_function_summary): New summary class.
22658 (class fast_call_summary): New summary class.
22659 * vec.h (vec_safe_grow_cleared): New function.
22661 2019-02-18 Martin Liska <mliska@suse.cz>
22663 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
22664 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
22665 * doc/tm.texi: Document new target hook.
22666 * doc/tm.texi.in: Likewise.
22667 * target.def: Add new target macro.
22668 * gcc.c (find_fortran_preinclude_file): Do not search multilib
22671 2019-02-17 Alan Modra <amodra@gmail.com>
22674 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
22675 output reg on add insn.
22676 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
22678 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
22681 * config/i386/sse.md (ssedoublemode): Remove V4HI.
22682 (PMULHRSW): Likewise.
22683 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
22685 (ssse3_pmulhrswv4hi3): New expander.
22687 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
22689 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
22690 MMX. Add isa attribute.
22692 2019-02-16 Jakub Jelinek <jakub@redhat.com>
22694 PR rtl-optimization/66152
22695 * builtins.h (c_readstr): Declare.
22696 * builtins.c (c_readstr): Remove forward declaration. Add
22697 null_terminated_p argument, if false, read all bytes from the
22698 string instead of stopping after '\0'.
22699 * expr.c (string_cst_read_str): New function.
22700 (store_expr): Use string_cst_read_str instead of
22701 builtin_strncpy_read_str. Try to store by pieces the whole
22702 exp_len first, and only if that fails, split it up into
22703 store by pieces followed by clear_storage. Formatting fix.
22705 * config/i386/i386.md (*movqi_internal): Remove static from
22706 buf variable. Use output_asm_insn (buf, operands); return "";
22707 instead of return buf;.
22708 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
22709 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
22710 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
22712 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
22714 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
22715 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
22716 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
22717 (CC1_SPEC): Likewise.
22718 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
22720 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
22722 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
22723 the base address on 64-bit strict-alignment platforms.
22725 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
22727 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
22729 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
22731 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
22733 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
22735 PR rtl-optimization/88308
22736 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
22737 on copied instruction.
22739 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
22741 * final.c (insn_current_reference_address): Replace test on JUMP_P
22742 with test on jump_to_label_p.
22743 * config/visium/visium-passes.def: New file.
22744 * config/visium/t-visium (PASSES_EXTRA): Define.
22745 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
22746 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
22747 (TRAMPOLINE_ALIGNMENT): Define.
22748 * config/visium/visium.c (visium_option_override): Do not register
22749 the machine-specific reorg pass here.
22750 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
22752 (output_branch): Adjust threshold for long branch instruction.
22753 * config/visium/visium.md (cpu): Move around.
22754 (length): Adjust for the GR6.
22756 2019-02-15 Richard Biener <rguenther@suse.de>
22757 Jakub Jelinek <jakub@redhat.com>
22759 PR tree-optimization/89278
22760 * tree-loop-distribution.c: Include tree-eh.h.
22761 (generate_memset_builtin, generate_memcpy_builtin): Call
22762 rewrite_to_non_trapping_overflow on builtin->size before passing it
22763 to force_gimple_operand_gsi.
22765 2019-02-15 Jakub Jelinek <jakub@redhat.com>
22768 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
22770 * opth-gen.awk: Likewise.
22772 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
22774 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
22775 Enable MMX, SSE and SSE2 by default.
22776 * config/i386/i386.c (ix86_option_override_internal): Do not
22777 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
22779 2019-02-14 Jakub Jelinek <jakub@redhat.com>
22781 PR rtl-optimization/89354
22782 * combine.c (make_extraction): Punt if extraction_mode is narrower
22785 2019-02-14 Maya Rashish <coypu@sdf.org>
22787 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
22788 * config/netbsd-d.c: New file.
22789 * config/t-netbsd: Add netbsd-d.o
22791 2018-02-14 Steve Ellcey <sellcey@marvell.com>
22793 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
22794 affects_type_identity to true for aarch64_vector_pcs.
22795 (aarch64_comp_type_attributes): New function.
22796 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
22798 2019-02-14 Tamar Christina <tamar.christina@arm.com>
22801 * config/arm/iterators.md (ANY64): Add V4HF.
22803 2019-02-14 Martin Liska <mliska@suse.cz>
22805 PR rtl-optimization/89242
22806 * dce.c (delete_unmarked_insns): Call free_dominance_info we
22807 process a transformation.
22809 2019-02-14 Jakub Jelinek <jakub@redhat.com>
22811 PR tree-optimization/89314
22812 * fold-const.c (fold_binary_loc): Cast strlen argument to
22813 const char * before dereferencing it. Formatting fixes.
22815 PR middle-end/89284
22816 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
22818 2019-02-13 Ian Lance Taylor <iant@golang.org>
22820 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
22821 and set current index for other optimizations.
22823 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
22825 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
22826 nonimmediate_operand as operand 2 predicate.
22827 (vec_set<VF2_512_256:mode>_0): Ditto.
22828 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
22829 (*vec_concatv2si): Remove alternative 2.
22830 (*vec_concatv4si_0): Use vm constraint for alternative 0.
22831 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
22832 (vec_concatv2di): Split alternatives 4,5,6 to ...
22833 (*vec_concatv2di_0) ... new pattern.
22835 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
22838 * config/arm/arm.c (ldm_stm_operation_p) Set
22839 addr_reg_in_reglist correctly for first register.
22840 (load_multiple_sequence): Remove dead base check.
22841 (gen_ldm_seq): Correctly set write_back for Thumb-1.
22843 2019-02-13 Tamar Christina <tamar.christina@arm.com>
22846 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
22847 Expose as @aarch64_pred_mov.
22848 * config/aarch64/aarch64.c (aarch64_classify_address):
22849 Use expand_insn which legitimizes operands.
22851 2019-02-13 Martin Liska <mliska@suse.cz>
22853 * builtins.h (expand_builtin_with_bounds): Remove declaration.
22854 * calls.c (struct arg_data): Remove special_slot, pointer_arg
22855 and pointer_offset fields.
22856 (initialize_argument_information): Remove usage of dead
22858 * cgraph.h (struct cgraph_thunk_info): Remove
22859 add_pointer_bounds_args.
22860 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
22862 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
22864 * config/i386/i386.c (ix86_function_arg_advance): Remove
22866 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
22867 (def_builtin): Remove usage of dead fields.
22868 (ix86_add_new_builtins): Likewise.
22869 * ipa-fnsummary.c (compute_fn_summary): Likewise.
22870 * ipa-icf.c (sem_function::equals_wpa): Likewise.
22871 (sem_function::init): Likewise.
22872 (sem_variable::merge): Likewise.
22873 * ipa-visibility.c (function_and_variable_visibility): Likewise.
22874 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
22875 * lto-cgraph.c (lto_output_node): Likewise.
22876 (lto_output_varpool_node): Likewise.
22877 (input_node): Likewise.
22878 (input_varpool_node): Likewise.
22879 * lto-streamer-out.c (lto_output): Likewise.
22880 * tree-inline.c (expand_call_inline): Remove usage of
22882 * tree-inline.h (struct copy_body_data): Likewise.
22883 * varpool.c (varpool_node::dump): Likewise.
22885 2019-02-13 Jakub Jelinek <jakub@redhat.com>
22887 PR middle-end/89303
22888 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
22889 into pt->vars_contains_escaped_heap instead of setting
22890 pt->vars_contains_escaped_heap to it.
22892 PR middle-end/89281
22893 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
22894 INTVAL (size), compare it to GET_MODE_MASK instead of
22895 1 << GET_MODE_BITSIZE.
22898 * config/i386/predicates.md (x86_64_immediate_operand): Allow
22899 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
22902 2019-02-13 Martin Liska <mliska@suse.cz>
22905 * cfgrtl.c (remove_barriers_from_footer): New function.
22906 (try_redirect_by_replacing_jump): Use it.
22907 (cfg_layout_redirect_edge_and_branch): Likewise.
22909 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
22911 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
22912 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
22913 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
22914 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
22915 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
22916 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
22918 * config/rs6000/rs6000.c (builtin_function_type)
22919 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
22920 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
22921 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
22922 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
22923 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
22925 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
22927 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
22928 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
22930 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
22933 * config/i386/i386.md (*movoi_internal_avx): Revert revision
22934 268678 and revision 268657.
22935 (*movti_internal): Likewise.
22937 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
22940 * config/s390/s390.c (s390_decompose_address): Update comment.
22941 (s390_check_qrst_address): Reject invalid address forms after
22944 2019-02-12 Martin Liska <mliska@suse.cz>
22947 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
22948 we need default values of funct_state for a function that
22951 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
22953 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
22954 the object to pick the size of stores on strict-alignment platforms.
22956 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
22957 (*movdi_insn_sp32): Likewise.
22958 (*movdi_insn_sp64): Likewise.
22960 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
22963 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
22964 types that needs constructiong.
22965 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
22967 2019-02-12 Richard Biener <rguenther@suse.de>
22969 PR tree-optimization/89253
22970 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
22971 duplicate the loop.
22973 2019-02-11 David Malcolm <dmalcolm@redhat.com>
22976 * input.c (selftest::test_line_offset_overflow): New selftest.
22977 (selftest::input_c_tests): Call it.
22979 2019-02-11 Martin Sebor <msebor@redhat.com>
22981 PR tree-optimization/88771
22982 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
22983 when -Wstringop-overflow is set.
22984 (builtin_memref::builtin_memref): Adjust excessive upper bound
22985 only when lower bound is not excessive.
22986 (maybe_diag_overlap): Detect and diagnose excessive bounds via
22987 -Wstringop-ovefflow.
22988 (maybe_diag_offset_bounds): Rename...
22989 (maybe_diag_access_bounds): ...to this.
22990 (check_bounds_or_overlap): Adjust for name change above.
22992 2019-02-11 Martin Sebor <msebor@redhat.com>
22995 * builtins.c (max_object_size): Move from here...
22996 * builtins.h (max_object_size): ...and here...
22997 * tree.c (max_object_size): ...to here...
22998 * tree.h (max_object_size): ...and here.
23000 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23002 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23003 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23004 for correct semantics.
23006 2019-02-11 Alan Modra <amodra@gmail.com>
23008 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23009 -mlongcall and -mpltseq.
23010 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23011 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23012 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23013 * config/rs6000/sysv4.opt (mpltseq): New option.
23014 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23015 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23016 support is lacking. Don't allow -mpltseq with -mbss-plt.
23017 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23018 -mpltseq given for ELFv1.
23019 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23020 Only use UNSPEC_PLTSEQ for inline PLT calls.
23021 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23022 use UNSPEC_PLTSEQ for inline PLT calls.
23023 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23024 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23025 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23026 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23027 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23028 (pltseq_mtctr_<mode>): Likewise.
23030 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23032 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23034 * configure: Regenerate.
23036 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23039 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23042 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23044 * function.c (assign_parm_setup_block): Use the stored
23045 size, not the passed size, when allocating stack-space,
23046 also for a parameter with alignment larger than
23047 MAX_SUPPORTED_STACK_ALIGNMENT.
23049 2019-02-11 Martin Liska <mliska@suse.cz>
23052 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23053 * ipa-inline.c (inline_small_functions): Likewise.
23054 * ipa-pure-const.c (propagate_pure_const): Likewise.
23055 (propagate_nothrow): Likewise.
23056 * ipa-reference.c (propagate): Likewise.
23057 * ipa-utils.c (struct searchc_env): Remove unused field.
23058 (searchc): Always search across AVAIL_INTERPOSABLE.
23059 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23060 the only called IPA pure const can properly not propagate
23061 across interposable boundary.
23062 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23064 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23066 * config/nds32/nds32.md (call_internal, call_value_internal,
23067 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23069 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23071 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23074 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23076 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23079 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23081 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23083 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23085 PR tree-optimization/89268
23086 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23087 if preds is non-NULL.
23089 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23092 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23095 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23097 * config/nds32/nds32.md (trap): New pattern.
23099 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23101 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23104 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23106 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23109 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23111 * ipa-visibility.c (localize_node): Also do not localize
23112 LDPR_PREVAILING_DEF_IRONLY_EXP.
23114 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23117 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23118 instead of type_with_linkage.
23120 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23123 * params.def (uninlined-function-insns, uninlined-function-time,
23124 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23125 bound so we don't get overflows.
23127 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23129 * config/rs6000/rs6000-string.c (expand_compare_loop,
23130 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23133 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23135 PR middle-end/89246
23136 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23137 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23138 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23140 2019-02-09 Alan Modra <amodra@gmail.com>
23143 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23144 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23147 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23149 PR middle-end/88560
23150 * lra-constraints.c (process_alt_operands): Don't increase reject
23151 for memory when offset memory is required.
23153 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23155 * config/s390/vector.md: Implement vector copysign.
23157 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23159 * expr.c (expand_constructor): Correct indentations.
23161 2019-02-08 Richard Biener <rguenther@suse.de>
23163 PR tree-optimization/89247
23164 * tree-if-conv.c: Include tree-cfgcleanup.h.
23165 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23166 (tree_if_conversion): Pass through predicate vector.
23167 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23168 inline, see if any if-converted loops we refrece in
23169 LOOP_VECTORIZED calls vanished and fixup.
23170 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23172 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23174 * config/s390/constraints.md (jdd): New constraint.
23176 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23179 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23180 upper 16 vector registers without TARGET_AVX512VL.
23181 (*movti_internal): Likewise.
23183 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23185 PR rtl-optimization/89234
23186 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23187 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23188 (copy_reg_eh_region_note_backward): Likewise.
23190 2019-02-08 Richard Biener <rguenther@suse.de>
23192 PR middle-end/89223
23193 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23194 doesn't fit in HWI.
23195 (analyze_subscript_affine_affine): Handle failure from
23196 initialize_matrix_A.
23198 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23200 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23203 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23205 PR tree-optimization/86637
23206 PR tree-optimization/89235
23207 * tree-vect-loop.c (optimize_mask_stores): Add an
23208 auto_purge_vect_location sentinel to ensure that vect_location is
23210 * tree-vectorizer.c
23211 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23212 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23213 to ensure that vect_location is purged on exit.
23214 (pass_slp_vectorize::execute): Likewise, replacing the manual
23216 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23218 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23220 * config/aarch64/iterators.md (max_opp): New code_attr.
23221 (USMAX): New code iterator.
23222 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23223 (aarch64_smax): Likewise.
23224 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23225 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23228 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23231 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23232 for TARGET_AVX512VL.
23233 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23235 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
23237 * config/s390/s390-builtin-types.def: Add new types.
23238 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23239 (s390_vec_xlw4): Make the memory operand into a const pointer.
23240 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23242 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23243 a new vector type with the alignment of the scalar memory operand.
23245 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
23246 Jakub Jelinek <jakub@redhat.com>
23249 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23250 arm_count_ldrdstrd_insns): New declarations.
23251 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
23253 (valid_operands_ldrd_strd): New function.
23254 (arm_count_ldrdstrd_insns): New function.
23255 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
23256 sets instead of single DImode set and define new insns to match this.
23258 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23260 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
23261 Make it a C initializer.
23263 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23266 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
23268 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23270 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
23271 Use neon_dot<q> for type.
23272 (neon_<sup>dot_lane<vsi2qi>): Likewise.
23274 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23276 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
23277 Use neon_dot<q> for type.
23278 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
23279 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
23281 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
23283 PR rtl-optimization/89225
23284 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
23287 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
23289 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
23290 after restoring registers saved to allocate the frame on Windows.
23292 2019-02-06 Richard Biener <rguenther@suse.de>
23294 PR tree-optimization/89182
23295 * graphite.h (cached_scalar_evolution_in_region): Declare.
23296 * graphite.c (struct seir_cache_key): New.
23297 (struct sese_scev_hash): Likewise.
23298 (seir_cache): New global.
23299 (cached_scalar_evolution_in_region): New function.
23300 (graphite_transform_loops): Allocate and release seir_cache.
23301 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
23302 cached_scalar_evolution_in_region.
23303 * graphite-scop-detection.c (scop_detection::can_represent_loop):
23305 (scop_detection::graphite_can_represent_expr: Use
23306 cached_scalar_evolution_in_region.
23307 (scop_detection::stmt_simple_for_scop_p): Likewise.
23308 (find_params_in_bb): Likewise.
23309 (gather_bbs::before_dom_children): Likewise.
23310 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
23311 (add_loop_constraints): Likewise.
23313 2019-02-06 Jakub Jelinek <jakub@redhat.com>
23315 PR middle-end/89210
23316 * fold-const-call.c (fold_const_vec_convert): Pass true as last
23317 operand to new_unary_operation only if both element types are integral
23318 and it isn't a widening conversion. Return NULL_TREE if
23319 new_unary_operation failed.
23321 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
23324 * config/s390/s390.md: Remove load and test FP splitter.
23326 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23329 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
23330 expand_compare_loop, expand_block_compare_gpr,
23331 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
23332 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
23333 #include "profile-count.h" and "predict.h" for types and functions
23334 needed to work with REG_BR_PROB notes.
23336 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23339 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
23340 for the long branch case.
23342 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23345 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
23346 can throw, non-call exceptions are enabled and we can't delete
23347 dead exceptions or alter cfg. Set must_clean if
23348 delete_insn_and_edges returns true, don't set it blindly for calls.
23349 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
23351 PR rtl-optimization/89195
23352 * combine.c (make_extraction): For MEMs, don't extract bytes outside
23353 of the original MEM.
23355 2019-02-05 Martin Liska <mliska@suse.cz>
23357 PR gcov-profile/89000
23358 * gcov.c (function_summary): Remove argument.
23359 (file_summary): New function.
23360 (print_usage): Replace tabs with spaces.
23361 (generate_results): Use new function file_summary.
23363 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23366 * optabs.c (prepare_cmp_insn): Pass x and y to
23367 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
23369 2019-02-05 Richard Biener <rguenther@suse.de>
23371 PR middle-end/89150
23372 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
23373 (struct bitmap_element): Drop chain_prev so we properly recurse on
23374 the prev member, supporting tree views.
23375 (struct bitmap_head): GTY skip the obstack member.
23377 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
23380 * doc/extend.texi (Vector Extensions): Add an example of using vector
23381 types together with x86 intrinsics.
23383 2019-02-04 Alan Modra <amodra@gmail.com>
23385 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
23386 str[] size to 160, and comment.
23388 2019-02-04 Alan Modra <amodra@gmail.com>
23390 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
23391 (rs6000_pltseq_template): Guard output of TLS markers with
23392 TARGET_TLS_MARKERS.
23393 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
23394 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
23395 to use inline PLT sequences.
23396 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23397 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23398 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
23400 2019-02-04 Martin Liska <mliska@suse.cz>
23403 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
23404 out when ipa_fn_summaries does not contain entry for callee.
23406 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
23408 * config/sparc/sparc.h: Remove superfluous blank lines.
23409 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
23410 (got_register_rtx): ...this.
23411 (sparc_got): Adjust to above renaming.
23412 (sparc_tls_got): Likewise.
23413 (sparc_delegitimize_address): Likewise.
23414 (sparc_output_mi_thunk): Likewise.
23415 (sparc_init_pic_reg): Likewise.
23416 (save_local_or_in_reg_p): Fix test on the GOT register.
23417 (USE_HIDDEN_LINKONCE): Move around.
23418 (get_pc_thunk_name): Likewise.
23419 (gen_load_pcrel_sym): Likewise.
23420 (load_got_register): Likewise.
23422 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
23424 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
23425 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
23427 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23429 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
23430 into consideration.
23432 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23434 * config.gcc (with_nds32_lib, glibc):
23435 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
23436 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
23437 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
23439 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
23442 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
23443 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
23444 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
23445 (*rcpsf2_sse): Ditto.
23446 (*rsqrtsf2_sse): Ditto.
23447 (sse4_1_round<mode<2): Ditto.
23449 2019-02-03 Richard Biener <rguenther@suse.de>
23452 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
23455 2019-02-02 Jakub Jelinek <jakub@redhat.com>
23457 PR middle-end/87887
23458 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23459 Punt with warning on aggregate return or argument types. Ignore
23460 type/mode checking for uniform arguments.
23462 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
23464 * combine.c (try_combine): Do not print "Can't combine" messages unless
23465 printing failed combination attempts.
23467 2019-02-01 Martin Jambor <mjambor@suse.cz>
23470 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
23471 segment and global segment variables before making them static.
23473 2019-02-01 Martin Jambor <mjambor@suse.cz>
23475 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
23476 missed optimization dump with dump_enabled_p.
23478 2019-02-01 Richard Biener <rguenther@suse.de>
23480 PR middle-end/88597
23481 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
23482 the instantiate cache.
23483 (instantiate_scev_binary): Elide second operand procesing
23484 if equal to the first.
23485 * tree-chrec.c (chrec_contains_symbols): Add visited set.
23486 (chrec_contains_undetermined): Likewise.
23487 (tree_contains_chrecs): Likewise.
23489 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
23491 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
23493 2019-02-01 Jakub Jelinek <jakub@redhat.com>
23495 PR tree-optimization/89143
23496 * wide-int-range.h (wide_int_range_absu): Declare.
23497 * wide-int-range.cc (wide_int_range_absu): New function.
23498 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
23500 PR tree-optimization/88107
23501 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
23502 instead of assertion that eh_region_outermost is non-NULL, if it
23503 is NULL, set *ALL to true and return NULL.
23504 (move_sese_region_to_fn): Adjust caller, if all is set, call
23505 duplicate_eh_regions with NULL region.
23507 2019-02-01 Richard Biener <rguenth@suse.de>
23509 PR rtl-optimization/88593
23510 * mode-switching.c (optimize_mode_switching): Free dominators before
23511 calling cleanup_cfg.
23513 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
23515 PR tree-optimization/88932
23516 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
23518 2019-01-31 Jakub Jelinek <jakub@redhat.com>
23520 PR middle-end/89137
23521 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
23522 bogus clang warning.
23524 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
23527 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
23528 alternative to avoid partial SSE register stall for TARGET_AVX.
23529 (truncdfsf2): Ditto.
23530 (sse4_1_round<mode>2): Ditto.
23532 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
23534 PR tree-optimization/89008
23535 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
23536 process anything of the form X * 0.
23538 2019-01-31 Richard Biener <rguenther@suse.de>
23540 PR tree-optimization/89135
23541 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
23542 with abnormal preds.
23544 2019-01-31 Jakub Jelinek <jakub@redhat.com>
23547 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
23548 always_inline callees into no_sanitize_address callers.
23550 2019-01-31 Richard Biener <rguenther@suse.de>
23552 PR rtl-optimization/89115
23553 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
23555 2019-01-30 Martin Sebor <msebor@redhat.com>
23558 * doc/extend.texi (cast to a union): Correct and expand.
23560 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
23562 PR rtl-optimization/87246
23563 * lra-constraints.c (simplify_operand_subreg): Reload memory
23564 in subreg if the address became invalid.
23566 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
23569 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
23570 Disable for little-endian.
23572 2019-01-30 Richard Biener <rguenther@suse.de>
23574 PR rtl-optimization/89115
23575 * opts.c (default_options_optimization): Reduce
23576 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
23577 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
23580 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
23582 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
23583 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
23584 type of vector element when vec_extract is implemented by direct
23587 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
23589 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
23591 2019-01-30 Richard Biener <rguenther@suse.de>
23593 PR tree-optimization/89111
23594 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
23595 canonicalization to appropriately sized access types.
23597 2019-01-30 Jakub Jelinek <jakub@redhat.com>
23600 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
23601 for arguments to functions that are TU-local and shouldn't be
23602 referenced by assembly.
23604 2019-01-30 Ulrich Drepper <drepper@redhat.com>
23606 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
23609 2019-01-29 Martin Sebor <msebor@redhat.com>
23612 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
23614 2019-01-29 Jakub Jelinek <jakub@redhat.com>
23618 * omp-simd-clone.c (simd_clone_clauses_extract)
23619 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
23620 OMP_CLAUSE_ALIGNED_ALIGNMENT.
23622 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
23624 * config.gcc: Force .init_array for ARC.
23626 2019-01-29 Richard Biener <rguenther@suse.de>
23629 * dwarf2out.c (collect_skeleton_dies): New helper.
23630 (copy_decls_for_unworthy_types): Call it.
23631 (build_abbrev_table): Assert we do not try to replace
23632 DW_AT_signature refs with local refs.
23634 2019-01-28 Jakub Jelinek <jakub@redhat.com>
23636 PR middle-end/89002
23637 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
23638 for lastprivate/linear IV, push gimplify context around gimplify_assign
23639 and, if it needed any temporaries, pop it into a gimple bind around the
23642 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
23644 * common.opt (-Wattribute-alias): Remove "no-" from name.
23645 Make -Wattribute-alias command line option and
23646 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
23648 2019-01-28 Jakub Jelinek <jakub@redhat.com>
23651 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
23652 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
23654 (bmi2): Add missing @opindex.
23655 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
23656 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
23657 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
23658 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
23659 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
23660 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
23661 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
23662 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
23663 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
23664 xsavec, xsaveopt and xsaves options.
23666 2019-01-28 Richard Biener <rguenther@suse.de>
23669 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
23672 2019-01-28 Richard Biener <rguenther@suse.de>
23674 PR tree-optimization/88739
23675 * tree-cfg.c (verify_types_in_gimple_reference): Verify
23676 BIT_FIELD_REFs only are applied to mode-precision operands
23677 when they are integral.
23678 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
23679 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
23680 BIT_FIELD_REFs of non-mode-precision integral operands.
23682 2019-01-27 Jakub Jelinek <jakub@redhat.com>
23685 * config/i386/sse.md
23686 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
23687 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
23688 first constants in pairs are multiples of 2. Formatting fixes.
23689 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
23690 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
23691 first constants in each quadruple are multiples of 4. Formatting fixes.
23693 2019-01-26 Martin Jambor <mjambor@suse.cz>
23696 * tree-inline.c: Include tree-cfgcleanup.h.
23697 (delete_unreachable_blocks_update_callgraph): Move...
23698 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
23699 ...here, make externally visible, make second argument bool, adjust
23701 * tree-cfgcleanup.c: Include cgraph.h.
23702 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
23704 * ipa-prop.c: Include tree-cfgcleanup.h.
23705 (ipcp_transform_function): Call
23706 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
23708 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
23710 PR rtl-optimization/88846
23711 * ira.c (process_set_for_memref_referenced_p): New.
23712 (memref_referenced_p): Add new param. Use
23713 process_set_for_memref_referenced_p. Add new switch cases.
23714 (memref_used_between_p): Pass new arg to memref_referenced_p.
23716 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
23719 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
23720 argument ABI_BREAK. Set to true if the calculated alignment has
23721 changed in gcc-9. Check bit-fields for their base type alignment.
23722 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
23723 (aarch64_function_arg_boundary): Likewise.
23724 (aarch64_gimplify_va_arg_expr): Likewise.
23726 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
23728 PR middle-end/89037
23729 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
23730 instead of accessing TREE_INT_CST_ELT directly.
23732 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
23734 * doc/sourcebuild.texi (Environment attributes): Add fenv and
23735 fenv_exceptions description.
23737 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
23739 PR rtl-optimization/87763
23740 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
23741 Allow SUBREG when matching CC_NZmode compare.
23743 2019-01-25 Richard Biener <rguenther@suse.de>
23745 PR tree-optimization/89049
23746 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
23747 Look at the pattern stmt to determine if the stmt is vectorized.
23749 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
23751 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
23752 (pred_mov<mode>): Handle all-register forms using both a new
23753 alternative and a split.
23755 2019-01-25 Richard Biener <rguenther@suse.de>
23757 PR tree-optimization/86865
23758 * graphite-scop-detection.c (scop_detection::can_represent_loop):
23759 Reject non-do-while loops.
23761 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
23763 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
23764 * config/rs6000/constraints.md (Q constraint): Use REG_P.
23765 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
23766 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
23767 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
23768 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
23769 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
23770 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
23771 vlogical_operand, gpc_reg_operand, int_reg_operand,
23772 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
23773 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
23774 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
23775 (save_world_operation, restore_world_operation, lmw_operation,
23776 stmw_operation): Use MEM_P and REG_P.
23777 (tie_operand): Use MEM_P.
23778 (vrsave_operation, crsave_operation): Use REG_P.
23779 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
23780 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
23781 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
23782 (call_operand): Use HARD_REGISTER_P.
23783 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
23785 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
23786 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
23787 quad_aligned_load_p, replace_swapped_aligned_store,
23788 recombine_lvx_pattern, replace_swapped_aligned_load,
23789 recombine_stvx_pattern): Use MEM_P.
23790 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
23791 Use MEM_P and SYMBOL_REF_P.
23792 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
23793 (insn_is_swappable_p): Use REG_P and MEM_P.
23794 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
23795 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
23797 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
23798 Use CONST_DOUBLE_P.
23799 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
23801 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
23802 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
23803 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
23804 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
23806 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
23807 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
23808 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
23809 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
23810 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
23811 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
23812 rs6000_split_logical_di): Use CONST_INT_P.
23813 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
23814 REG_P and SYMBOL_REF_P.
23815 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
23816 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
23817 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
23818 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
23819 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
23820 (small_data_operand, print_operand_address): Use CONST_INT_P and
23822 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
23823 (rs6000_init_hard_regno_mode_ok, direct_move_p):
23824 Use HARD_REGISTER_NUM_P.
23825 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
23826 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
23827 SUBREG_P and SYMBOL_REF_P.
23828 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
23829 and HARD_REGISTER_NUM_P.
23830 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
23832 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
23833 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
23835 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
23836 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
23837 find_addr_reg): Use REG_P.
23838 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
23839 (rs6000_emit_le_vsx_move): Use SUBREG_P.
23840 (offsettable_ok_by_alignment, constant_pool_expr_p,
23841 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
23842 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
23843 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
23844 rs6000_assemble_integer, create_TOC_reference,
23845 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
23846 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
23847 (rs6000_split_vec_extract_var): Use reg_or_subregno.
23848 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
23849 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
23850 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
23851 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
23852 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
23853 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
23854 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
23855 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
23856 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
23857 and cbranch<mode>4): Use CONST_INT_P.
23858 (multiple define_splits): Use REG_P and SUBREG_P.
23859 (define_expands call, call_value): Use MEM_P.
23860 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
23861 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
23862 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
23863 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
23864 and HARD_REGISTER_NUM_P.
23865 (multiple define_splits): Use HARD_REGISTER_NUM_P.
23867 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
23869 PR rtl-optimization/88948
23870 * rtl.h (prepare_copy_insn): New prototype.
23871 * gcse.c (prepare_copy_insn): New function, split out from
23872 process_insert_insn.
23873 (process_insert_insn): Use prepare_copy_insn.
23874 * store-motion.c (replace_store_insn): Use prepare_copy_insn
23875 instead of gen_move_insn.
23877 2019-01-24 Jakub Jelinek <jakub@redhat.com>
23880 * config/i386/i386.c (ix86_pic_register_p): Return true for
23881 UNSPEC_SET_GOT too.
23883 PR tree-optimization/88964
23884 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
23885 punt if HONOR_SNANS (chrec).
23887 PR middle-end/89015
23888 * tree-nested.c (convert_nonlocal_reference_stmt,
23889 convert_local_reference_stmt, convert_tramp_reference_stmt,
23890 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
23891 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
23892 or GIMPLE_OMP_TASK.
23894 PR tree-optimization/89027
23895 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
23896 for "omp simd array" variables.
23898 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
23901 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
23902 force the alignment of m_val.
23904 2019-01-24 Richard Biener <rguenther@suse.de>
23907 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
23908 When in "legacy" debug mode make sure to reset self-origins.
23910 2019-01-24 Martin Liska <mliska@suse.cz>
23912 PR gcov-profile/88994
23913 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
23914 result will be always smaller or equal to the original.
23915 * gcov.c (mangle_name): Fix else branch where we should
23916 also copy to PTR and shift the pointer.
23918 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23920 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
23921 * vr-values.c (find_case_label_ranges): Fix a comment typo.
23923 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
23925 * common/config/i386/i386-common.c
23926 (OPTION_MASK_ISA_ENQCMD_SET,
23927 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
23928 (ix86_handle_option): Handle -menqcmd.
23929 * config.gcc (enqcmdintrin.h): New header file.
23930 * config/i386/cpuid.h (bit_ENQCMD): New bit.
23931 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
23933 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
23935 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
23936 __builtin_ia32_enqcmds): New builtins.
23937 * config/i386/i386-c.c (__ENQCMD__): New macro.
23938 * config/i386/i386-option.c (ix86_target_string): Add
23940 (ix86_valid_target_attribute_inner_p): Likewise.
23941 * config/i386/i386-expand.c
23942 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
23943 IX86_BUILTIN_ENQCMDS.
23944 * config/i386/i386.h (TARGET_ENQCMD): New.
23945 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
23946 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
23947 (movdir64b_<mode>): Parameterize to enable share expansion code
23948 with ENQCMD in function ix86_expand_builtin.
23949 * config/i386/i386.opt: Add -menqcmd.
23950 * config/i386/immintrin.h: Include enqcmdintrin.h.
23951 * config/i386/enqcmdintrin.h: New intrinsic file.
23952 * doc/invoke.texi: Add -menqcmd.
23954 2019-01-23 Bin Cheng <bin.cheng@arm.com>
23955 Steve Ellcey <sellcey@marvell.com>
23958 * recog.c (address_operand): Return false on wrong mode for address.
23959 (constrain_operands): Check for mode with 'p' constraint.
23961 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
23964 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
23965 Disparage MMX alternative.
23966 (sse2_cvtpd2pi): Ditto.
23967 (sse2_cvttpd2pi): Ditto.
23969 2019-01-23 David Malcolm <dmalcolm@redhat.com>
23972 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
23973 use-after-free of the result of
23974 aarch64_get_extension_string_for_isa_flags.
23976 2019-01-23 Jakub Jelinek <jakub@redhat.com>
23979 * doc/extend.texi: Document break and continue behavior in
23980 statement expressions.
23982 2019-01-23 Richard Biener <rguenther@suse.de>
23984 PR tree-optimization/89008
23985 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
23986 not leave another stray operand.
23988 2019-01-23 Jakub Jelinek <jakub@redhat.com>
23990 * BASE-VER: Bump to 9.0.1.
23992 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
23994 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
23995 thunk that returns by reference, use the type of the return object
23996 of the thunk instead of that of the alias to build the dereference.
23998 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24000 * config/arc/atomic.md: Add operand to DMB instruction.
24002 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24004 PR tree-optimization/88964
24005 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24006 build_zero_cst instead of build_int_cst. Return false for loop
24007 invariants which honor signed zeros.
24009 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24011 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24013 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24016 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24017 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24018 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24020 PR middle-end/88968
24021 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24022 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24025 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24026 Disable for little endian.
24028 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24031 * config/arm/arm.c (arm_needs_double_word_align): Check
24032 DECL_BIT_FIELD_TYPE.
24034 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24035 H.J. Lu <hongjiu.lu@intel.com>
24038 * config/i386/i386-builtin.def: Add mask2 to all builtin
24039 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24041 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24042 (BDESC_FIRST): Likewise.
24043 (define_builtin): Add an argument for mask2. Updated to handle
24044 both ix86_isa_flags and ix86_isa_flags2.
24045 (define_builtin_const): Likewise.
24046 (define_builtin_pure): Likewise.
24047 (define_builtin2): Deleted.
24048 (define_builtin_const2): Likewise.
24049 (builtin_description): Add a member, mask2.
24050 (bdesc_*): Add mask2 to builtin initializations.
24051 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24052 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24054 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24056 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24059 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24062 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24065 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24066 alignment is dominated by a bitfield with 64-bit aligned base type.
24067 (arm_function_arg): Emit a warning if the alignment has changed since
24068 earlier GCC releases.
24069 (arm_function_arg_boundary): Likewise.
24070 (arm_setup_incoming_varargs): Likewise.
24072 2019-01-22 Richard Biener <rguenther@suse.de>
24074 PR tree-optimization/88862
24075 * graphite-scop-detection.c
24076 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24078 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24080 * doc/extend.tex (AMD GCN Function Attributes): New section.
24081 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24082 * doc/invoke.texi (AMD GCN Options): New section.
24083 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24085 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24087 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24088 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24090 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24092 PR tree-optimization/88044
24093 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24094 is false in the first iteration, but !every_iteration, return false
24095 instead of true with niter->niter zero.
24097 PR rtl-optimization/88904
24098 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24099 any nonequal registers before processing BB_END (b).
24102 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24104 (expand_binop_directly, expand_doubleword_clz,
24105 expand_doubleword_popcount, expand_ctz, expand_ffs,
24106 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24108 PR rtl-optimization/49429
24110 PR rtl-optimization/86334
24112 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24113 addressable from here...
24114 (emit_block_op_via_libcall): ... to here.
24116 2019-01-22 Richard Biener <rguenther@suse.de>
24118 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24119 auto_vec for cost vector to fix memleak.
24120 (vectorize_fold_left_reduction): Properly gather SLP defs.
24121 (vectorizable_comparison): Do not swap operands to properly
24124 2019-01-22 Alan Modra <amodra@gmail.com>
24127 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24128 stays a reg. Allow a const_int.
24129 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24130 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24131 (IS_NOMARK_TLSGETADDR): Define.
24132 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24133 (rs6000_output_tlsargs): New function.
24134 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24135 __tls_get_addr call takes an arg.
24136 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24137 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24139 (call_value_nonlocal_sysv): ..or here, delete split.
24140 (tls_gdld_nomark): Delete.
24141 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24142 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24143 (call_value_nonlocal_sysv): Likewise.
24144 (call_value_nonlocal_sysv_secure): Likewise.
24145 (call_value_nonlocal_aix): Likewise.
24146 (call_value_indirect_aix): Likewise.
24147 (call_value_indirect_elfv2): Likewise.
24148 (call_value_local32, call_value_local64): Disable for no-mark tls.
24149 (call_value_local_aix): Likewise.
24151 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24154 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24155 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24157 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24159 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24160 string contents as hash_map keys.
24162 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24165 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24166 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24167 instead of TYPE_ALIGN.
24168 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24169 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24170 pointer from TYPE_STUB_DECL.
24172 2019-01-21 Richard Biener <rguenther@suse.de>
24174 PR tree-optimization/88934
24175 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24176 at the possibly non-constant operand.
24177 (vect_get_constant_vectors): Adjust.
24179 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24182 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24183 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24184 instead of _X86INTRIN_H_INCLUDED.
24185 * onfig/i386/clwbintrin.h: Likewise.
24186 * config/i386/pkuintrin.h: Likewise.
24187 * config/i386/prfchwintrin.h: Likewise.
24188 * config/i386/rdseedintrin.h: Likewise.
24189 * config/i386/wbnoinvdintrin.h: Likewise.
24190 * config/i386/xsavecintrin.h: Likewise.
24191 * config/i386/xsavesintrin.h: Likewise.
24192 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24193 * config/i386/xsaveintrin.h: Likewise.
24194 * config/i386/xsaveoptintrin.h: Likewise.
24195 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24196 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24197 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24198 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24199 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24200 * config/i386/immintrin.h: Here.
24202 2019-01-20 Martin Jambor <mjambor@suse.cz>
24205 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24206 with aa_walk_budget.
24207 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24208 aa_walk_budget_p parameter.
24209 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24210 walk. Updated all callers.
24211 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24212 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24214 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24215 parameter info. Extract info from fbi. Pass fbi to recursive calls
24216 and to unmodified_parm.
24217 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24218 info, updated call to will_be_nonconstant_expr_predicate.
24219 (param_change_prob): New parameter fbi, limit AA walking.
24220 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24221 calls to various above functions.
24222 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24223 parameter. Use it to limit AA walking.
24224 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24225 fbi, limit AA walk.
24226 (detect_type_change): New parameter fbi, pass it on to
24227 detect_type_change_from_memory_writes.
24228 (detect_type_change_ssa): Likewise.
24229 (aa_overwalked): Removed.
24230 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24231 accordingly, adjust to the neew AA limiting scheme.
24232 (parm_ref_data_preserved_p): Likewise.
24233 (ipa_compute_jump_functions_for_edge): Adjust call to
24235 (ipa_analyze_call_uses): Likewise.
24236 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24237 (ipa_analyze_node): Initialize aa_walk_budget.
24238 (ipcp_transform_function): Likewise.
24239 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24240 to get_dynamic_type.
24242 2019-01-19 Jakub Jelinek <jakub@redhat.com>
24244 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24245 outside of #if CHECKING_P code.
24247 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
24249 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24250 New function, split out from...
24251 (loop_versioning::analyze_stride): ...here.
24252 (loop_versioning::find_per_loop_multiplication): Use gassign.
24253 (loop_versioning::analyze_term_using_scevs): Return a success code.
24254 (loop_versioning::analyze_arbitrary_term): New function.
24255 (loop_versioning::analyze_address_fragment): Use
24256 analyze_arbitrary_term if all else fails.
24258 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
24261 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
24264 2019-01-18 Richard Biener <rguenther@suse.de>
24266 PR tree-optimization/88903
24267 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
24268 scalar stmts a SLP shift amount is composed of when detecting
24271 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
24274 * config/arm/arm-cpus.in (mp): New feature.
24275 (sec): New feature.
24276 (fgroup ARMv7ve): Add mp and sec features.
24277 (arch armv7-a): Add options to allow mp and sec extensions.
24278 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
24279 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
24280 extenstions to the base architecture.
24281 (cpu cortex-a8): Add sec extension to the base architecture.
24282 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
24283 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
24284 variants down to the base v7-a varaint.
24285 * config/arm/t-multilib (v7_a_arch_variants): New variable.
24286 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
24287 of permitted extensions for -march=armv7-a and for
24288 -mcpu=generic-armv7-a.
24290 2019-01-18 Martin Liska <mliska@suse.cz>
24292 * params.def: Fix comment.
24293 * tree-profile.c (gimple_init_gcov_profiler): Bump function
24295 (gimple_gen_ic_func_profiler): Likewise.
24297 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24299 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
24300 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
24301 and put in error checks for stack protector guard options.
24302 (aarch64_stack_protect_guard): New.
24303 (TARGET_STACK_PROTECT_GUARD): Define.
24304 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
24305 (reg_stack_protect_address<mode>): New.
24306 (stack_protect_set): Adjust for SSP_GLOBAL.
24307 (stack_protect_test): Likewise.
24308 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
24309 (-mstack-protector-guard): Likewise.
24310 (-mstack-protector-guard-offset): Likewise.
24312 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24314 PR tree-optimization/86214
24315 * tree-inline.h (struct copy_body_data): Add
24316 add_clobbers_to_eh_landing_pads member.
24317 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
24318 (copy_edges_for_bb): Call it if EH edge destination is <
24319 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
24320 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
24321 if flag_stack_reuse != SR_NONE and clear it afterwards.
24323 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
24326 * doc/install.texi (with-multilib-list): Document for aarch64.
24328 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24331 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
24332 (("..."))) with ("...").
24334 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
24336 * doc/extend.texi (Built-in Functions for Memory Model Aware
24337 Atomic Operations): Document atomic fetch and nand.
24339 2019-01-18 Martin Liska <mliska@suse.cz>
24340 Richard Biener <rguenther@suse.de>
24342 PR middle-end/88587
24343 * cgraph.h (create_version_clone_with_body): Add new argument
24345 * cgraphclones.c (cgraph_node::create_version_clone): Add
24346 DECL_ATTRIBUTES to a newly created decl. And call
24347 valid_attribute_p so that proper cl_target_optimization_node
24348 is set for the newly created declaration.
24349 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
24351 (expand_target_clones): Do not call valid_attribute_p, it must
24353 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
24356 2019-01-17 Jakub Jelinek <jakub@redhat.com>
24359 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
24360 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
24361 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
24363 2019-01-17 Martin Sebor <msebor@redhat.com>
24365 PR middle-end/88273
24366 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
24367 Handle anti-ranges the same as no range at all.
24369 2018-01-17 Steve Ellcey <sellcey@cavium.com>
24371 * config/aarch64/aarch64.c (cgraph.h): New include.
24372 (intl.h): New include.
24373 (supported_simd_type): New function.
24374 (currently_supported_simd_type): Ditto.
24375 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
24376 (aarch64_simd_clone_adjust): Ditto.
24377 (aarch64_simd_clone_usable): Ditto.
24378 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
24379 (TARGET_SIMD_CLONE_ADJUST): Ditto.
24380 (TARGET_SIMD_CLONE_USABLE): Ditto.
24381 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
24382 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
24385 2019-01-17 Martin Sebor <msebor@redhat.com>
24387 PR tree-optimization/88800
24388 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
24389 NO_WARNING bit here. Avoid folding out-of-bounds calls.
24390 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
24391 redundant argument. Add new argument and issue diagnostics under
24392 its control. Detect out-of-bounds access even with warnings
24394 (check_bounds_or_overlap): Change return type. Add argument.
24395 (wrestrict_dom_walker::check_call): Adjust.
24396 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
24397 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
24398 check_bounds_or_overlap's return value.
24399 (handle_builtin_stxncpy): Same.
24400 (handle_builtin_strcat): Same.
24402 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24403 Kwok Cheung Yeung <kcy@codesourcery.com>
24404 Julian Brown <julian@codesourcery.com>
24405 Tom de Vries <tom@codesourcery.com>
24407 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
24409 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24411 * doc/sourcebuild.texi: Document dg-require-effective-target
24412 llvm_binutils and offload_gcn.
24414 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24415 Kwok Cheung Yeung <kcy@codesourcery.com>
24416 Julian Brown <julian@codesourcery.com>
24417 Tom de Vries <tom@codesourcery.com>
24419 * doc/sourcebuild.texi: Document dg-required-effective-target
24422 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24423 Kwok Cheung Yeung <kcy@codesourcery.com>
24424 Julian Brown <julian@codesourcery.com>
24425 Tom de Vries <tom@codesourcery.com>
24426 Jan Hubicka <hubicka@ucw.cz>
24427 Martin Jambor <mjambor@suse.cz>
24429 * config.gcc: Add amdgcn*-*-amdhsa configuration.
24430 * configure.ac: Check for dlopen.
24431 * configure: Regenerate.
24433 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24434 Kwok Cheung Yeung <kcy@codesourcery.com>
24435 Julian Brown <julian@codesourcery.com>
24436 Tom de Vries <tom@codesourcery.com>
24437 Jan Hubicka <hubicka@ucw.cz>
24438 Martin Jambor <mjambor@suse.cz>
24440 * common/config/gcn/gcn-common.c: New file.
24441 * config/gcn/driver-gcn.c: New file.
24442 * config/gcn/gcn-builtins.def: New file.
24443 * config/gcn/gcn-hsa.h: New file.
24444 * config/gcn/gcn-modes.def: New file.
24445 * config/gcn/gcn-opts.h: New file.
24446 * config/gcn/gcn-passes.def: New file.
24447 * config/gcn/gcn-protos.h: New file.
24448 * config/gcn/gcn-run.c: New file.
24449 * config/gcn/gcn-tree.c: New file.
24450 * config/gcn/gcn.c: New file.
24451 * config/gcn/gcn.h: New file.
24452 * config/gcn/gcn.opt: New file.
24453 * config/gcn/t-gcn-hsa: New file.
24455 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24456 Kwok Cheung Yeung <kcy@codesourcery.com>
24457 Julian Brown <julian@codesourcery.com>
24458 Tom de Vries <tom@codesourcery.com>
24459 Jan Hubicka <hubicka@ucw.cz>
24460 Martin Jambor <mjambor@suse.cz>
24462 * config/gcn/constraints.md: New file.
24463 * config/gcn/gcn-valu.md: New file.
24464 * config/gcn/gcn.md: New file.
24465 * config/gcn/predicates.md: New file.
24467 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
24469 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
24470 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
24471 (stmt_uses_0_or_null_in_undefined_way): Likewise.
24472 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
24474 2019-01-17 Tamar Christina <tamar.christina@arm.com>
24477 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
24478 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
24479 it and document registers.
24481 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24483 * config/aarch64/aarch64.c (ares_tunings): Define.
24484 * config/aarch64/aarch64-cores.def (ares): Use the above.
24486 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24490 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
24492 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
24493 (_mm512_fixupimm_round_pd): Update parameters and builtin.
24494 (_mm512_maskz_fixupimm_round_pd): Ditto.
24495 (_mm512_fixupimm_round_ps): Ditto.
24496 (_mm512_maskz_fixupimm_round_ps): Ditto.
24497 (_mm_fixupimm_round_sd): Ditto.
24498 (_mm_maskz_fixupimm_round_sd): Ditto.
24499 (_mm_fixupimm_round_ss): Ditto.
24500 (_mm_maskz_fixupimm_round_ss): Ditto.
24501 (_mm512_fixupimm_pd): Ditto.
24502 (_mm512_maskz_fixupimm_pd): Ditto.
24503 (_mm512_fixupimm_ps): Ditto.
24504 (_mm512_maskz_fixupimm_ps): Ditto.
24505 (_mm_fixupimm_sd): Ditto.
24506 (_mm_maskz_fixupimm_sd): Ditto.
24507 (_mm_fixupimm_ss): Ditto.
24508 (_mm_maskz_fixupimm_ss): Ditto.
24509 (_mm512_mask_fixupimm_round_pd): Update builtin.
24510 (_mm512_mask_fixupimm_round_ps): Ditto.
24511 (_mm_mask_fixupimm_round_sd): Ditto.
24512 (_mm_mask_fixupimm_round_ss): Ditto.
24513 (_mm512_mask_fixupimm_pd): Ditto.
24514 (_mm512_mask_fixupimm_ps): Ditto.
24515 (_mm_mask_fixupimm_sd): Ditto.
24516 (_mm_mask_fixupimm_ss): Ditto.
24517 * config/i386/avx512vlintrin.h:
24518 (_mm256_fixupimm_pd): Update parameters and builtin.
24519 (_mm256_maskz_fixupimm_pd): Ditto.
24520 (_mm256_fixupimm_ps): Ditto.
24521 (_mm256_maskz_fixupimm_ps): Ditto.
24522 (_mm_fixupimm_pd): Ditto.
24523 (_mm_maskz_fixupimm_pd): Ditto.
24524 (_mm_fixupimm_ps): Ditto.
24525 (_mm_maskz_fixupimm_ps): Ditto.
24526 (_mm256_mask_fixupimm_pd): Update builtin.
24527 (_mm256_mask_fixupimm_ps): Ditto.
24528 (_mm_mask_fixupimm_pd): Ditto.
24529 (_mm_mask_fixupimm_ps): Ditto.
24530 * config/i386/i386-builtin-types.def: Add new types and remove
24532 * config/i386/i386-builtin.def: Update builtin definitions.
24533 * config/i386/i386.c: Handle new builtin types and remove useless ones.
24534 * config/i386/sse.md: Update VFIXUPIMM* patterns.
24535 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24536 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24537 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
24538 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24539 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24540 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
24541 * config/i386/subst.md:
24542 (round_saeonly_sd_mask_operand4): Add new subst_attr.
24543 (round_saeonly_sd_mask_op4): Ditto.
24544 (round_saeonly_expand_operand5): Ditto.
24545 (round_saeonly_expand): Update.
24547 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24551 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
24553 * config/i386/sse.md: Combine VFIXUPIMM* patterns
24554 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24555 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24556 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
24557 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24558 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24559 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
24561 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24565 2018-12-15 Jakub Jelinek <jakub@redhat.com>
24568 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
24569 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
24570 instead of UNSPEC_FIXUPIMM.
24572 2019-01-17 Richard Biener <rguenther@suse.de>
24575 * dwarf2out.c (want_pubnames): Never generate pubnames sections
24576 and friends for the LTO part of debug info.
24578 2019-01-17 Jakub Jelinek <jakub@redhat.com>
24580 PR tree-optimization/86214
24581 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
24584 PR rtl-optimization/88870
24585 * dce.c (deletable_insn_p): Never delete const/pure calls that can
24586 throw if we can't alter the cfg or delete dead exceptions.
24587 (mark_insn): Don't call find_call_stack_args for such calls.
24589 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
24591 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
24592 prototypes for vec_st.
24593 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
24594 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
24595 mainly on signed/unsigned long long and double.
24597 2019-01-16 David Malcolm <dmalcolm@redhat.com>
24600 * combine.c (delete_noop_moves): Convert to "bool" return,
24601 returning true if any edges are eliminated.
24602 (combine_instructions): Also return true if delete_noop_moves
24605 2019-01-16 Tamar Christina <tamar.christina@arm.com>
24607 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
24608 correct max nunits for endian swap.
24609 (aarch64_expand_fcmla_builtin): Correct subreg code.
24610 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
24611 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
24614 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
24616 * config/alpha/alpha.c (alpha_gimplify_va_arg):
24617 Handle split indirect COMPLEX_TYPE arguments.
24619 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
24622 * config/aarch64/aarch64-modes.def: Add comment about how the carry
24623 bit is set by add and compare.
24624 (CC_ADC): New CC_MODE.
24625 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
24626 to cache the code and mode of X. Adjust the shape of a CC_Cmode
24627 comparison. Add detection for CC_ADCmode.
24628 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
24630 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
24631 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
24632 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
24633 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
24634 to eliminate the need for zero-extending the operands.
24635 (add<mode>3_compareC_imm): Delete. Merge into ...
24636 (add<mode>3_compareC): ... this. Restructure the comparison to
24637 eliminate the need for zero-extending the operands.
24638 (add<mode>3_carryin): Use LTU for the overflow detection.
24639 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
24640 Reexpress comparison for overflow.
24641 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
24642 (add<mode>3_carryinC): Likewise.
24643 (add<mode>3_carryinV): Use LTU for carry between partials.
24644 * config/aarch64/predicates.md (aarch64_carry_operation): Update
24645 handling of CC_Cmode and add CC_ADCmode.
24646 (aarch64_borrow_operation): Likewise.
24648 2019-01-16 Tamar Christina <tamar.christina@arm.com>
24650 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
24651 Remove patternmode.
24652 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
24653 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
24654 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
24655 Remove endianness conversion.
24657 2019-01-16 Martin Liska <mliska@suse.cz>
24659 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
24661 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
24663 * gcc.c (add_sysrooted_hdrs_prefix): New function.
24664 (path_prefix_reset): Move up in the source file.
24665 (find_fortran_preinclude_file): Make complex search for the
24666 fortran header files.
24668 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
24670 * godump.c (go_output_typedef): When outputting a typedef, refer
24671 to the underlying type by its name and not its structure.
24673 2019-01-15 David Malcolm <dmalcolm@redhat.com>
24676 * tree.c (build_function_type): Assert that arg_types is not
24679 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
24681 PR inline-asm/52813
24682 * doc/extend.texi: Document that listing the stack pointer in the
24683 clobber list of an asm is a deprecated feature.
24684 * common.opt (Wdeprecated): Moved from c-family/c.opt.
24685 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
24686 warning instead of an error for clobbers of the stack pointer.
24687 Add a note explaining why.
24689 2019-01-15 Richard Biener <rguenther@suse.de>
24692 * dwarf2out.c (gen_member_die): Do not generate inheritance
24695 2019-01-15 Richard Biener <rguenther@suse.de>
24697 PR tree-optimization/88855
24698 * tree-if-conv.c (combine_blocks): Collect
24699 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
24701 2019-01-15 Tom de Vries <tdevries@suse.de>
24704 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
24705 lhs == NULL_TREE for gang-level reduction.
24707 2019-01-15 Richard Biener <rguenther@suse.de>
24708 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24711 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
24712 return true if SSA_NAME is already marked in visited bitmap.
24713 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
24715 2019-01-15 Jakub Jelinek <jakub@redhat.com>
24717 PR tree-optimization/88775
24718 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
24719 equal == 0 equality pointer comparisons some more if compared in
24720 integral types and either one points to an automatic var and the
24721 other to a global, or we can prove at least one points to the middle
24722 or both point to start or both point to end.
24724 2019-01-14 Andi Kleen <ak@linux.intel.com>
24726 * Makefile.in: Lower autofdo sampling rate by 10x.
24727 * Makefile.tpl: Dito.
24729 2019-01-14 Tom Honermann <tom@honermann.net>
24731 * defaults.h: Define CHAR8_TYPE.
24733 2019-01-14 Martin Sebor <msebor@redhat.com>
24736 * doc/extend.texi (Darwin Format Checks): Clarify.
24738 2019-01-14 Richard Biener <rguenther@suse.de>
24740 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
24741 whether we are in (simplify ...) or (match ...) context.
24743 2019-01-14 Jakub Jelinek <jakub@redhat.com>
24745 PR rtl-optimization/88796
24746 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
24747 * cfgexpand.c (stack_protect_prologue): Initialize
24748 crtl->stack_protect_guard_decl.
24749 * function.c (stack_protect_epilogue): Use it instead of calling
24750 targetm.stack_protect_guard again.
24751 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
24752 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
24753 crtl->stack_protect_guard_decl.
24754 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
24755 on the returned MEM_EXPR.
24757 2019-01-12 Tom de Vries <tdevries@suse.de>
24759 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
24760 vector length using -fopenacc-dim.
24762 2019-01-12 Tom de Vries <tdevries@suse.de>
24764 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
24765 lengths into account.
24767 2019-01-12 Svante Signell <svante.signell@gmail.com>
24769 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
24770 (TARGET_CAN_SPLIT_STACK): Define.
24771 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
24773 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24775 * params.def (inline-unit-growth): Set to 40.
24777 2019-01-12 Jakub Jelinek <jakub@redhat.com>
24779 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
24781 2019-01-12 Tom de Vries <tdevries@suse.de>
24783 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
24784 region calling vector-partitionable routine, set default_vector_length
24787 2019-01-12 Tom de Vries <tdevries@suse.de>
24789 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
24790 variable default_vector_length.
24792 2019-01-12 Tom de Vries <tdevries@suse.de>
24794 PR middle-end/88703
24795 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
24796 from oacc_default_dims, as oacc_validate_dims would do it, and apply
24799 2019-01-12 Tom de Vries <tdevries@suse.de>
24801 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
24802 (nvptx_goacc_validate_dims): Add used parameter.
24803 * doc/tm.texi: Regenerate.
24804 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
24805 argument to call to targetm.goacc.validate_dims.
24806 (default_goacc_validate_dims): Add used
24808 * target.def (validate_dims): Add used parameter in DEFHOOK.
24809 * targhooks.h (default_goacc_validate_dims): Add used parameter.
24811 2019-01-11 Jakub Jelinek <jakub@redhat.com>
24813 PR middle-end/85956
24815 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
24817 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
24818 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
24819 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
24820 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
24822 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
24824 PR rtl-optimization/87305
24826 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
24827 for little endian pseudos used as paradoxical subreg.
24829 2019-01-11 Jakub Jelinek <jakub@redhat.com>
24831 PR tree-optimization/88693
24832 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
24833 for STRING_CSTs that don't contain any NUL characters in the first
24834 TREE_STRING_LENGTH bytes.
24836 2019-01-11 Alan Modra <amodra@gmail.com>
24840 * genattrtab.c (min_fn): Don't translate values.
24841 (min_attr_value): Return INT_MAX when the value can't be calculated.
24842 Return minimum among any values that can be calculated.
24843 (max_attr_value): Adjust.
24845 2019-01-11 Jakub Jelinek <jakub@redhat.com>
24847 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
24849 2019-01-11 Steve Ellcey <sellcey@marvell.com>
24851 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
24852 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
24853 (aarch64_return_call_with_max_clobbers): New function.
24854 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
24855 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
24857 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
24858 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
24859 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
24860 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
24861 * cselib.c (cselib_process_insn): Add argument to
24862 targetm.hard_regno_call_part_clobbered call.
24863 * ira-conflicts.c (ira_build_conflicts): Ditto.
24864 * ira-costs.c (ira_tune_allocno_costs): Ditto.
24865 * lra-constraints.c (inherit_reload_reg): Ditto.
24866 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
24867 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
24868 argument. Call targetm.return_call_with_max_clobbers.
24869 Add argument to targetm.hard_regno_call_part_clobbered call.
24870 (calls_have_same_clobbers_p): New function.
24871 (process_bb_lives): Add call_insn and last_call_insn variables.
24872 Pass call_insn to check_pseudos_live_through_calls.
24873 Modify if stmt to check targetm.return_call_with_max_clobbers.
24874 Update setting of flush variable.
24875 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
24877 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
24878 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
24879 targetm.hard_regno_call_part_clobbered call.
24880 * reginfo.c (choose_hard_reg_mode): Ditto.
24881 * regrename.c (check_new_reg_p): Ditto.
24882 * reload.c (find_equiv_reg): Ditto.
24883 * reload1.c (emit_reload_insns): Ditto.
24884 * sched-deps.c (deps_analyze_insn): Ditto.
24885 * sel-sched.c (init_regs_for_mode): Ditto.
24886 (mark_unavailable_hard_regs): Ditto.
24887 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
24888 * target.def (hard_regno_call_part_clobbered): Add insn argument.
24889 (return_call_with_max_clobbers): New target function.
24890 * doc/tm.texi: Regenerate.
24891 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
24892 * hooks.c (hook_bool_uint_mode_false): Change to
24893 hook_bool_insn_uint_mode_false.
24894 * hooks.h (hook_bool_uint_mode_false): Ditto.
24896 2019-01-11 Steve Ellcey <sellcey@marvell.com>
24898 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
24899 (aarch64_remove_extra_call_preserved_regs): New function.
24900 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
24901 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
24902 * doc/tm.texi: Regenerate.
24903 * final.c (get_call_reg_set_usage): Call new hook.
24904 * target.def (remove_extra_call_preserved_regs): New hook.
24905 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
24906 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
24908 2019-01-11 Jakub Jelinek <jakub@redhat.com>
24911 * passes.c (finish_optimization_passes): Call print_combine_total_stats
24912 inside of pass_combine_1 dump rather than pass_profile_1.
24914 2019-01-11 Tom de Vries <tdevries@suse.de>
24916 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
24917 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
24918 (PTX_NUM_PER_WORKER_BARRIERS): Define.
24919 (nvptx_apply_dim_limits): Prevent vector_length 64 and
24922 2019-01-11 Tom de Vries <tdevries@suse.de>
24924 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
24926 2019-01-11 Jan Beulich <jbeulich@suse.com>
24928 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
24929 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
24930 sse2_cvtsi2sd): Add {l}.
24931 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
24934 2019-01-10 Jakub Jelinek <jakub@redhat.com>
24937 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
24939 (*float<floatunssuffix>v2div2sf2): New define_insn.
24940 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
24941 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
24942 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
24943 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
24944 match_operands with "const0_operand" "C".
24946 2019-01-10 Tamar Christina <tamar.christina@arm.com>
24948 * config/aarch64/aarch64-builtins.c
24949 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
24950 (aarch64_init_simd_builtins): ...Here
24952 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
24954 PR rtl-optimization/87305
24956 (setup_live_pseudos_and_spill_after_risky_transforms): Check
24957 allocation for big endian pseudos used as paradoxical subregs and
24958 spill them if it is wrong.
24959 * lra-constraints.c (lra_constraints): Add a comment.
24961 2019-01-10 Richard Biener <rguenther@suse.de>
24963 PR tree-optimization/88792
24964 * tree-ssa-pre.c (get_representative_for): Do not return a
24967 2019-01-10 Jakub Jelinek <jakub@redhat.com>
24969 PR middle-end/84877
24971 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
24972 (assign_parm_setup_block): Do the argument slot realignment here
24975 2019-01-10 Stefan Agner <stefan@agner.ch>
24978 * config/arm/arm.c (arm_option_override_internal): Force
24979 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
24981 2019-01-10 Jakub Jelinek <jakub@redhat.com>
24984 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
24987 2019-01-10 Tamar Christina <tamar.christina@arm.com>
24989 * config/arm/arm-builtins.c
24990 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
24991 (MAC_LANE_PAIR_QUALIFIERS): New.
24992 (arm_expand_builtin_args): Use it.
24993 (arm_expand_builtin_1): Likewise.
24994 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
24995 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
24996 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
24997 * config/arm/arm_neon.h:
24998 (vcadd_rot90_f16): New.
24999 (vcaddq_rot90_f16): New.
25000 (vcadd_rot270_f16): New.
25001 (vcaddq_rot270_f16): New.
25004 (vcmla_lane_f16): New.
25005 (vcmla_laneq_f16): New.
25006 (vcmlaq_lane_f16): New.
25007 (vcmlaq_laneq_f16): New.
25008 (vcmla_rot90_f16): New.
25009 (vcmlaq_rot90_f16): New.
25010 (vcmla_rot90_lane_f16): New.
25011 (vcmla_rot90_laneq_f16): New.
25012 (vcmlaq_rot90_lane_f16): New.
25013 (vcmlaq_rot90_laneq_f16): New.
25014 (vcmla_rot180_f16): New.
25015 (vcmlaq_rot180_f16): New.
25016 (vcmla_rot180_lane_f16): New.
25017 (vcmla_rot180_laneq_f16): New.
25018 (vcmlaq_rot180_lane_f16): New.
25019 (vcmlaq_rot180_laneq_f16): New.
25020 (vcmla_rot270_f16): New.
25021 (vcmlaq_rot270_f16): New.
25022 (vcmla_rot270_lane_f16): New.
25023 (vcmla_rot270_laneq_f16): New.
25024 (vcmlaq_rot270_lane_f16): New.
25025 (vcmlaq_rot270_laneq_f16): New.
25026 (vcadd_rot90_f32): New.
25027 (vcaddq_rot90_f32): New.
25028 (vcadd_rot270_f32): New.
25029 (vcaddq_rot270_f32): New.
25032 (vcmla_lane_f32): New.
25033 (vcmla_laneq_f32): New.
25034 (vcmlaq_lane_f32): New.
25035 (vcmlaq_laneq_f32): New.
25036 (vcmla_rot90_f32): New.
25037 (vcmlaq_rot90_f32): New.
25038 (vcmla_rot90_lane_f32): New.
25039 (vcmla_rot90_laneq_f32): New.
25040 (vcmlaq_rot90_lane_f32): New.
25041 (vcmlaq_rot90_laneq_f32): New.
25042 (vcmla_rot180_f32): New.
25043 (vcmlaq_rot180_f32): New.
25044 (vcmla_rot180_lane_f32): New.
25045 (vcmla_rot180_laneq_f32): New.
25046 (vcmlaq_rot180_lane_f32): New.
25047 (vcmlaq_rot180_laneq_f32): New.
25048 (vcmla_rot270_f32): New.
25049 (vcmlaq_rot270_f32): New.
25050 (vcmla_rot270_lane_f32): New.
25051 (vcmla_rot270_laneq_f32): New.
25052 (vcmlaq_rot270_lane_f32): New.
25053 (vcmlaq_rot270_laneq_f32): New.
25054 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25055 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25056 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25057 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25058 vcmlaq_lane270): New.
25059 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25060 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25061 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25062 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25063 (arm_option_reconfigure_globals): Use them.
25064 * config/arm/iterators.md (VDF, VQ_HSF): New.
25065 (VCADD, VCMLA): New.
25066 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25067 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25069 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25070 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25072 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25074 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25075 Add qualifier_lane_pair_index.
25076 (emit-rtl.h): Include.
25077 (TYPES_QUADOP_LANE_PAIR): New.
25078 (aarch64_simd_expand_args): Use it.
25079 (aarch64_simd_expand_builtin): Likewise.
25080 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25082 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25083 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25084 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25085 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25086 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25087 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25088 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25089 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25090 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25091 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25092 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25093 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25094 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25095 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25096 Add __ARM_FEATURE_COMPLEX.
25097 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25098 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25099 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25100 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25101 fcmlaq_lane270): New.
25102 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25103 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25104 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25105 * config/aarch64/arm_neon.h:
25106 (vcadd_rot90_f16): New.
25107 (vcaddq_rot90_f16): New.
25108 (vcadd_rot270_f16): New.
25109 (vcaddq_rot270_f16): New.
25112 (vcmla_lane_f16): New.
25113 (vcmla_laneq_f16): New.
25114 (vcmlaq_lane_f16): New.
25115 (vcmlaq_rot90_lane_f16): New.
25116 (vcmla_rot90_laneq_f16): New.
25117 (vcmla_rot90_lane_f16): New.
25118 (vcmlaq_rot90_f16): New.
25119 (vcmla_rot90_f16): New.
25120 (vcmlaq_laneq_f16): New.
25121 (vcmla_rot180_laneq_f16): New.
25122 (vcmla_rot180_lane_f16): New.
25123 (vcmlaq_rot180_f16): New.
25124 (vcmla_rot180_f16): New.
25125 (vcmlaq_rot90_laneq_f16): New.
25126 (vcmlaq_rot270_laneq_f16): New.
25127 (vcmlaq_rot270_lane_f16): New.
25128 (vcmla_rot270_laneq_f16): New.
25129 (vcmlaq_rot270_f16): New.
25130 (vcmla_rot270_f16): New.
25131 (vcmlaq_rot180_laneq_f16): New.
25132 (vcmlaq_rot180_lane_f16): New.
25133 (vcmla_rot270_lane_f16): New.
25134 (vcadd_rot90_f32): New.
25135 (vcaddq_rot90_f32): New.
25136 (vcaddq_rot90_f64): New.
25137 (vcadd_rot270_f32): New.
25138 (vcaddq_rot270_f32): New.
25139 (vcaddq_rot270_f64): New.
25143 (vcmla_lane_f32): New.
25144 (vcmla_laneq_f32): New.
25145 (vcmlaq_lane_f32): New.
25146 (vcmlaq_laneq_f32): New.
25147 (vcmla_rot90_f32): New.
25148 (vcmlaq_rot90_f32): New.
25149 (vcmlaq_rot90_f64): New.
25150 (vcmla_rot90_lane_f32): New.
25151 (vcmla_rot90_laneq_f32): New.
25152 (vcmlaq_rot90_lane_f32): New.
25153 (vcmlaq_rot90_laneq_f32): New.
25154 (vcmla_rot180_f32): New.
25155 (vcmlaq_rot180_f32): New.
25156 (vcmlaq_rot180_f64): New.
25157 (vcmla_rot180_lane_f32): New.
25158 (vcmla_rot180_laneq_f32): New.
25159 (vcmlaq_rot180_lane_f32): New.
25160 (vcmlaq_rot180_laneq_f32): New.
25161 (vcmla_rot270_f32): New.
25162 (vcmlaq_rot270_f32): New.
25163 (vcmlaq_rot270_f64): New.
25164 (vcmla_rot270_lane_f32): New.
25165 (vcmla_rot270_laneq_f32): New.
25166 (vcmlaq_rot270_lane_f32): New.
25167 (vcmlaq_rot270_laneq_f32): New.
25168 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25169 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25170 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25171 (FCADD, FCMLA): New.
25173 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25175 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25179 * config/pa/pa.c: Change "can not" to "cannot".
25180 * gimple-ssa-evrp-analyze.c: Likewise.
25181 * ipa-icf.c: Likewise.
25182 * ipa-polymorphic-call.c: Likewise.
25183 * ipa-pure-const.c: Likewise.
25184 * lra-constraints.c: Likewise.
25185 * lra-remat.c: Likewise.
25186 * reload1.c: Likewise.
25187 * reorg.c: Likewise.
25188 * tree-ssa-uninit.c: Likewise.
25190 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25194 * Makefile.in: Mechanically replace "can not" with "cannot".
25195 * alias.c: Likewise.
25196 * builtins.c: Likewise.
25197 * calls.c: Likewise.
25198 * cgraph.c: Likewise.
25199 * cgraph.h: Likewise.
25200 * cgraphclones.c: Likewise.
25201 * cgraphunit.c: Likewise.
25202 * combine-stack-adj.c: Likewise.
25203 * combine.c: Likewise.
25204 * common/config/i386/i386-common.c: Likewise.
25205 * config/aarch64/aarch64.c: Likewise.
25206 * config/alpha/sync.md: Likewise.
25207 * config/arc/arc.c: Likewise.
25208 * config/arc/predicates.md: Likewise.
25209 * config/arm/arm-c.c: Likewise.
25210 * config/arm/arm.c: Likewise.
25211 * config/arm/arm.h: Likewise.
25212 * config/arm/arm.md: Likewise.
25213 * config/arm/cortex-r4f.md: Likewise.
25214 * config/csky/csky.c: Likewise.
25215 * config/csky/csky.h: Likewise.
25216 * config/darwin-f.c: Likewise.
25217 * config/epiphany/epiphany.md: Likewise.
25218 * config/i386/i386.c: Likewise.
25219 * config/i386/sol2.h: Likewise.
25220 * config/m68k/m68k.c: Likewise.
25221 * config/mcore/mcore.h: Likewise.
25222 * config/microblaze/microblaze.md: Likewise.
25223 * config/mips/20kc.md: Likewise.
25224 * config/mips/sb1.md: Likewise.
25225 * config/nds32/nds32.c: Likewise.
25226 * config/nds32/predicates.md: Likewise.
25227 * config/pa/pa.c: Likewise.
25228 * config/rs6000/e300c2c3.md: Likewise.
25229 * config/rs6000/rs6000.c: Likewise.
25230 * config/s390/s390.h: Likewise.
25231 * config/sh/sh.c: Likewise.
25232 * config/sh/sh.md: Likewise.
25233 * config/spu/vmx2spu.h: Likewise.
25234 * cprop.c: Likewise.
25235 * dbxout.c: Likewise.
25236 * df-scan.c: Likewise.
25237 * doc/cfg.texi: Likewise.
25238 * doc/extend.texi: Likewise.
25239 * doc/fragments.texi: Likewise.
25240 * doc/gty.texi: Likewise.
25241 * doc/invoke.texi: Likewise.
25242 * doc/lto.texi: Likewise.
25243 * doc/md.texi: Likewise.
25244 * doc/objc.texi: Likewise.
25245 * doc/rtl.texi: Likewise.
25246 * doc/tm.texi: Likewise.
25248 * emit-rtl.c: Likewise.
25249 * emit-rtl.h: Likewise.
25250 * except.c: Likewise.
25251 * expmed.c: Likewise.
25252 * expr.c: Likewise.
25253 * fold-const.c: Likewise.
25254 * genautomata.c: Likewise.
25255 * gimple-fold.c: Likewise.
25256 * hard-reg-set.h: Likewise.
25257 * ifcvt.c: Likewise.
25258 * ipa-comdats.c: Likewise.
25259 * ipa-cp.c: Likewise.
25260 * ipa-devirt.c: Likewise.
25261 * ipa-fnsummary.c: Likewise.
25262 * ipa-icf.c: Likewise.
25263 * ipa-inline-transform.c: Likewise.
25264 * ipa-inline.c: Likewise.
25265 * ipa-polymorphic-call.c: Likewise.
25266 * ipa-profile.c: Likewise.
25267 * ipa-prop.c: Likewise.
25268 * ipa-pure-const.c: Likewise.
25269 * ipa-reference.c: Likewise.
25270 * ipa-split.c: Likewise.
25271 * ipa-visibility.c: Likewise.
25273 * ira-build.c: Likewise.
25274 * ira-color.c: Likewise.
25275 * ira-conflicts.c: Likewise.
25276 * ira-costs.c: Likewise.
25277 * ira-int.h: Likewise.
25278 * ira-lives.c: Likewise.
25281 * loop-invariant.c: Likewise.
25282 * loop-unroll.c: Likewise.
25283 * lower-subreg.c: Likewise.
25284 * lra-assigns.c: Likewise.
25285 * lra-constraints.c: Likewise.
25286 * lra-eliminations.c: Likewise.
25287 * lra-lives.c: Likewise.
25288 * lra-remat.c: Likewise.
25289 * lra-spills.c: Likewise.
25291 * lto-cgraph.c: Likewise.
25292 * lto-streamer-out.c: Likewise.
25293 * postreload-gcse.c: Likewise.
25294 * predict.c: Likewise.
25295 * profile-count.h: Likewise.
25296 * profile.c: Likewise.
25297 * recog.c: Likewise.
25299 * reload.c: Likewise.
25300 * reload1.c: Likewise.
25301 * reorg.c: Likewise.
25302 * resource.c: Likewise.
25303 * rtl.def: Likewise.
25305 * rtlanal.c: Likewise.
25306 * sched-deps.c: Likewise.
25307 * sched-ebb.c: Likewise.
25308 * sched-rgn.c: Likewise.
25309 * sel-sched-ir.c: Likewise.
25310 * sel-sched.c: Likewise.
25311 * shrink-wrap.c: Likewise.
25312 * simplify-rtx.c: Likewise.
25313 * symtab.c: Likewise.
25314 * target.def: Likewise.
25315 * toplev.c: Likewise.
25316 * tree-call-cdce.c: Likewise.
25317 * tree-cfg.c: Likewise.
25318 * tree-complex.c: Likewise.
25319 * tree-core.h: Likewise.
25320 * tree-eh.c: Likewise.
25321 * tree-inline.c: Likewise.
25322 * tree-loop-distribution.c: Likewise.
25323 * tree-nrv.c: Likewise.
25324 * tree-profile.c: Likewise.
25325 * tree-sra.c: Likewise.
25326 * tree-ssa-alias.c: Likewise.
25327 * tree-ssa-dce.c: Likewise.
25328 * tree-ssa-dom.c: Likewise.
25329 * tree-ssa-forwprop.c: Likewise.
25330 * tree-ssa-loop-im.c: Likewise.
25331 * tree-ssa-loop-ivcanon.c: Likewise.
25332 * tree-ssa-loop-ivopts.c: Likewise.
25333 * tree-ssa-loop-niter.c: Likewise.
25334 * tree-ssa-phionlycprop.c: Likewise.
25335 * tree-ssa-phiopt.c: Likewise.
25336 * tree-ssa-propagate.c: Likewise.
25337 * tree-ssa-threadedge.c: Likewise.
25338 * tree-ssa-threadupdate.c: Likewise.
25339 * tree-ssa-uninit.c: Likewise.
25340 * tree-ssanames.c: Likewise.
25341 * tree-streamer-out.c: Likewise.
25342 * tree.c: Likewise.
25343 * tree.h: Likewise.
25344 * vr-values.c: Likewise.
25346 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
25348 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
25349 (ix86_split_xorsign): Ditto.
25350 * config/i386/i386.c (ix86_expand_xorsign): New function.
25351 (ix86_split_xorsign): Ditto.
25352 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
25353 (xorsign<mode>3): New expander.
25354 (xorsign<mode>3_1): New insn_and_split pattern.
25355 * config/i386/sse.md (xorsign<mode>3): New expander.
25357 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25359 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
25360 (*tablejump_sp64): Likewise.
25361 (*tablejump<P:mode>): ...this.
25362 (*call_address_sp32): Merge into...
25363 (*call_address_sp64): Likewise.
25364 (*call_address<P:mode>): ...this.
25365 (*call_symbolic_sp32): Merge into...
25366 (*call_symbolic_sp64): Likewise.
25367 (*call_symbolic<P:mode>): ...this.
25368 (call_value): Remove constraint and add predicate.
25369 (*call_value_address_sp32): Merge into...
25370 (*call_value_address_sp64): Likewise.
25371 (*call_value_address<P:mode>): ...this.
25372 (*call_value_symbolic_sp32): Merge into...
25373 (*call_value_symbolic_sp64): Likewise.
25374 (*call_value_symbolic<P:mode>): ...this.
25375 (*sibcall_symbolic_sp32): Merge into...
25376 (*sibcall_symbolic_sp64): Likewise.
25377 (*sibcall_symbolic<P:mode>): ...this.
25378 (sibcall_value): Remove constraint and add predicate.
25379 (*sibcall_value_symbolic_sp32): Merge into...
25380 (*sibcall_value_symbolic_sp64): Likewise.
25381 (*sibcall_value_symbolic<P:mode>): ...this.
25382 (window_save): Minor tweak.
25383 (*branch_sp32): Merge into...
25384 (*branch_sp64): Likewise.
25385 (*branch<P:mode>): ...this.
25387 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25388 James Clarke <jrtc27@jrtc27.com>
25391 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
25392 consistently in TLS address generation and adjust code to the renaming
25393 of patterns. Mark calls to __tls_get_addr as const.
25394 * config/sparc/sparc.md (tgd_hi22): Turn into...
25395 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
25396 (tgd_lo10): Turn into...
25397 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
25398 (tgd_add32): Merge into...
25399 (tgd_add64): Likewise.
25400 (tgd_add<P:mode>): ...this and use Pmode throughout.
25401 (tldm_hi22): Turn into...
25402 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
25403 (tldm_lo10): Turn into...
25404 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
25405 (tldm_add32): Merge into...
25406 (tldm_add64): Likewise.
25407 (tldm_add<P:mode>): ...this and use Pmode throughout.
25408 (tldm_call32): Merge into...
25409 (tldm_call64): Likewise.
25410 (tldm_call<P:mode>): ...this and use Pmode throughout.
25411 (tldo_hix22): Turn into...
25412 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
25413 (tldo_lox10): Turn into...
25414 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
25415 (tldo_add32): Merge into...
25416 (tldo_add64): Likewise.
25417 (tldo_add<P:mode>): ...this and use Pmode throughout.
25418 (tie_hi22): Turn into...
25419 (tie_hi22<P:mode>): ...this and use Pmode throughout.
25420 (tie_lo10): Turn into...
25421 (tie_lo10<P:mode>): ...this and use Pmode throughout.
25422 (tie_ld64): Use DImode throughout.
25423 (tie_add32): Merge into...
25424 (tie_add64): Likewise.
25425 (tie_add<P:mode>): ...this and use Pmode throughout.
25426 (tle_hix22_sp32): Merge into...
25427 (tle_hix22_sp64): Likewise.
25428 (tle_hix22<P:mode>): ...this and use Pmode throughout.
25429 (tle_lox22_sp32): Merge into...
25430 (tle_lox22_sp64): Likewise.
25431 (tle_lox22<P:mode>): ...this and use Pmode throughout.
25432 (*tldo_ldub_sp32): Merge into...
25433 (*tldo_ldub_sp64): Likewise.
25434 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
25435 (*tldo_ldub1_sp32): Merge into...
25436 (*tldo_ldub1_sp64): Likewise.
25437 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
25438 (*tldo_ldub2_sp32): Merge into...
25439 (*tldo_ldub2_sp64): Likewise.
25440 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
25441 (*tldo_ldsb1_sp32): Merge into...
25442 (*tldo_ldsb1_sp64): Likewise.
25443 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
25444 (*tldo_ldsb2_sp32): Merge into...
25445 (*tldo_ldsb2_sp64): Likewise.
25446 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
25447 (*tldo_ldub3_sp64): Use DImode throughout.
25448 (*tldo_ldsb3_sp64): Likewise.
25449 (*tldo_lduh_sp32): Merge into...
25450 (*tldo_lduh_sp64): Likewise.
25451 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
25452 (*tldo_lduh1_sp32): Merge into...
25453 (*tldo_lduh1_sp64): Likewise.
25454 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
25455 (*tldo_ldsh1_sp32): Merge into...
25456 (*tldo_ldsh1_sp64): Likewise.
25457 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
25458 (*tldo_lduh2_sp64): Use DImode throughout.
25459 (*tldo_ldsh2_sp64): Likewise.
25460 (*tldo_lduw_sp32): Merge into...
25461 (*tldo_lduw_sp64): Likewise.
25462 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
25463 (*tldo_lduw1_sp64): Use DImode throughout.
25464 (*tldo_ldsw1_sp64): Likewise.
25465 (*tldo_ldx_sp64): Likewise.
25466 (*tldo_stb_sp32): Merge into...
25467 (*tldo_stb_sp64): Likewise.
25468 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
25469 (*tldo_sth_sp32): Merge into...
25470 (*tldo_sth_sp64): Likewise.
25471 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
25472 (*tldo_stw_sp32): Merge into...
25473 (*tldo_stw_sp64): Likewise.
25474 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
25475 (*tldo_stx_sp64): Use DImode throughout.
25477 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25479 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
25480 check configure option to set BTI and Return Address Signing.
25481 * configure.ac: Add --enable-standard-branch-protection and
25482 --disable-standard-branch-protection.
25483 * configure: Regenerated.
25484 * doc/install.texi: Document the same.
25486 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25487 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25489 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
25490 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
25491 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
25493 * config/aarch64/aarch64-bti-insert.c: New file.
25494 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
25496 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
25498 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
25499 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
25500 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
25501 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
25503 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25505 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
25506 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
25507 Disable bti for -mbranch-protection=none.
25508 (aarch64_handle_standard_branch_protection): Enable bti for
25509 -mbranch-protection=standard.
25510 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
25511 -mbranch-protection.
25512 (aarch64_bti_enabled): Check if bti is enabled.
25513 * config/aarch64/aarch64.opt: Declare target variable.
25514 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
25516 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25518 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
25519 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
25520 (aarch64_expand_epilogue): Likewise.
25521 (aarch64_output_mi_thunk): Likewise.
25522 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
25523 TAILCALL_ADDR_REGS to x16 and x17.
25524 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
25526 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25528 * config/aarch64/aarch64-option-extensions.def: Define
25529 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
25530 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
25531 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
25532 (AARCH64_FL_PREDRES): New.
25533 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
25534 AARCH64_FL_PREDRES by default.
25535 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
25537 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25539 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
25541 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
25542 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
25543 * doc/invoke.texi: Document ARMv8.5-A.
25545 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25547 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
25548 (xorsign<mode>3): Likewise.
25550 2019-01-09 Jelinek <jakub@redhat.com>
25552 PR middle-end/88758
25553 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
25554 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
25556 PR rtl-optimization/88331
25557 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
25558 not currently_expanding_to_rtl.
25560 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25562 * doc/invoke.texi (-Os): Remove trailing spaces.
25563 (-finline-functions): Remove reference to -O2.
25565 2019-01-08 Jakub Jelinek <jakub@redhat.com>
25567 PR rtl-optimization/79593
25568 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
25570 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
25571 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
25573 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
25576 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
25580 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
25581 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
25583 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
25586 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
25587 ix86_avx_u128_mode_entry.
25589 2019-01-08 Martin Liska <mliska@suse.cz>
25591 PR tree-optimization/88753
25592 * tree-switch-conversion.c (switch_conversion::build_one_array):
25593 Come up with local variable constructor. Convert first to
25594 type of constructor values.
25596 2019-01-08 Richard Biener <rguenther@suse.de>
25598 PR tree-optimization/86554
25599 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
25600 rpo_avail): Move earlier.
25601 (visit_nary_op): When value-numbering to expressions
25602 with different overflow behavior make sure there's an
25603 available expression on the path.
25605 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
25607 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
25608 aarch64_parse_branch_protection,
25609 struct aarch64_branch_protect_type,
25610 aarch64_handle_no_branch_protection,
25611 aarch64_handle_standard_branch_protection,
25612 aarch64_validate_mbranch_protection,
25613 aarch64_handle_pac_ret_protection,
25614 aarch64_handle_attr_branch_protection,
25615 accepted_branch_protection_string,
25616 aarch64_pac_ret_subtypes,
25617 aarch64_branch_protect_types,
25618 aarch64_handle_pac_ret_leaf): Define.
25619 (aarch64_override_options_after_change_1, aarch64_override_options):
25620 Add check for accepted_branch_protection_string.
25621 (aarch64_option_save): Save accepted_branch_protection_string.
25622 (aarch64_option_restore): Save accepted_branch_protection_string.
25623 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
25624 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
25625 msign-return-address.
25626 * doc/invoke.texi: Add mbranch-protection.
25628 2019-01-08 Alan Modra <amodra@gmail.com>
25631 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
25632 Delete "unknownp" parameter. Adjust callers. Handle
25633 CONST_INT, PLUS, MINUS, and MULT.
25634 (attr_value_aligned): Renamed from or_attr_value.
25635 (min_attr_value): Return INT_MIN for unhandled rtl case..
25636 (min_fn): ..and translate to INT_MAX here.
25637 (write_length_unit_log): Modify to cope without "unknown".
25638 (write_attr_value): Handle IF_THEN_ELSE.
25640 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
25642 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
25643 optimization for masked stores.
25645 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
25647 PR middle-end/88567
25648 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
25649 output vector directly to duplicate_and_interleave instead of
25650 going through a temporary. Postpone insertion of ctor_seq to
25651 the end of the loop.
25653 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
25656 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
25657 unsigned_p. Handle signed and unsigned overflow correction as
25659 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
25661 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
25663 (add<mode>3_compareV_imm): Make this callable for expanding.
25664 (subv<GPI:mode>4): Use register_operand for operand 1. Use
25665 aarch64_plus_operand for operand 2.
25666 (subv<GPI:mode>_insn): New insn pattern.
25667 (subv<GPI:mode>_imm): Likewise.
25668 (negv<GPI:mode>3): New expand pattern.
25669 (negv<GPI:mode>_insn): New insn pattern.
25670 (negv<GPI:mode>_cmp_only): Likewise.
25671 (cmpv<GPI:mode>_insn): Likewise.
25672 (subvti4): Use register_operand for operand 1. Update call to
25673 aarch64_expand_subvti.
25674 (usubvti4): Likewise.
25675 (negvti3): New expand pattern.
25676 (negdi_carryout): New insn pattern.
25677 (negvdi_carryinV): New insn pattern.
25678 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
25679 version the named version.
25680 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
25682 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
25684 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
25686 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
25687 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
25688 (sub<mode>3_carryinCV): Delete.
25689 (sub<GPI:mode>3_carryinV): New expand pattern.
25690 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
25692 2019-01-07 Richard Biener <rguenther@suse.de>
25694 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
25695 of tree_operand_hash.
25697 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
25699 PR tree-optimization/88598
25700 * tree.h (single_nonzero_element): Declare.
25701 * tree.c (single_nonzero_element): New function.
25702 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
25703 if I is the only nonzero element of CST.
25705 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
25707 PR tree-optimization/88598
25708 * tree.h (initializer_each_zero_or_onep): Declare.
25709 * tree.c (initializer_each_zero_or_onep): New function.
25710 (signed_or_unsigned_type_for): Handle float types too.
25711 (unsigned_type_for, signed_type_for): Update comments accordingly.
25712 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
25713 x & { 0 or -1, 0 or -1, ... }.
25715 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
25717 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
25718 with x86_64-pc-linux-gnu.
25720 2019-01-07 Tom de Vries <tdevries@suse.de>
25723 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
25725 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
25728 2019-01-07 Jakub Jelinek <jakub@redhat.com>
25730 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
25731 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
25732 TARGET_AVX512F as condition.
25735 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
25736 const_not_ok_for_debug_p target hook.
25737 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
25738 on UNSPEC and subexpressions thereof if all subexpressions of the
25739 UNSPEC are CONSTANT_P.
25741 PR tree-optimization/88676
25742 * tree-ssa-phiopt.c (two_value_replacement): New function.
25743 (tree_ssa_phiopt_worker): Call it.
25746 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
25747 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
25750 * tree-vect-generic.c: Include insn-config.h and recog.h.
25751 (expand_vector_piecewise): Add defaulted ret_type argument,
25752 if non-NULL, use that in preference to type for the result type.
25753 (expand_vector_parallel): Formatting fix.
25754 (do_vec_conversion, do_vec_narrowing_conversion,
25755 expand_vector_conversion): New functions.
25756 (expand_vector_operations_1): Call expand_vector_conversion
25757 for VEC_CONVERT ifn calls.
25758 * internal-fn.def (VEC_CONVERT): New internal function.
25759 * internal-fn.c (expand_VEC_CONVERT): New function.
25760 * fold-const-call.c (fold_const_vec_convert): New function.
25761 (fold_const_call): Use it for CFN_VEC_CONVERT.
25762 * doc/extend.texi (__builtin_convertvector): Document.
25764 2019-01-07 Tom de Vries <tdevries@suse.de>
25766 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
25767 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
25768 vector_red_partition, vector_red_sym): New global variables.
25769 (nvptx_option_override): Initialize vector_red_sym.
25770 (nvptx_declare_function_name): Restore red_partition register.
25771 (nvptx_file_end): Emit code to declare the vector reduction variables.
25772 (nvptx_output_red_partition): New function.
25773 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
25774 large vector reductions.
25775 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
25776 (nvptx_init_builtins): Add VECTOR_ADDR.
25777 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
25778 Handle nvptx_expand_shared_addr.
25779 (nvptx_get_shared_red_addr): Add vector argument and handle large
25781 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
25783 (nvptx_goacc_reduction_init): Likewise.
25784 (nvptx_goacc_reduction_fini): Likewise.
25785 (nvptx_goacc_reduction_teardown): Likewise.
25786 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
25787 init,fini,teardown}.
25788 (nvptx_init_axis_predicate): Initialize vector_red_partition.
25789 (nvptx_set_current_function): Init vector_red_partition.
25790 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
25791 (nvptx_red_partition): New insn.
25792 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
25794 2019-01-07 Tom de Vries <tdevries@suse.de>
25797 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
25800 2019-01-07 Tom de Vries <tdevries@suse.de>
25802 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
25803 (nvptx_option_override): Init oacc_bcast_partition.
25804 (nvptx_init_oacc_workers): New function.
25805 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
25806 (nvptx_needs_shared_bcast): New function.
25807 (nvptx_find_par): Generalize to enable vectors to use shared-memory
25808 to propagate state.
25809 (nvptx_shared_propagate): Initialize vector bcast partition and
25810 synchronization state.
25811 (nvptx_single): Generalize to enable vectors to use shared-memory
25812 to propagate state.
25813 (nvptx_process_pars): Likewise.
25814 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
25815 * config/nvptx/nvptx.h (struct machine_function): Add
25816 bcast_partition and sync_bar members.
25818 2019-01-07 Tom de Vries <tdevries@suse.de>
25820 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
25821 (nvptx_apply_dim_limits): New function.
25822 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
25825 2019-01-07 Tom de Vries <tdevries@suse.de>
25827 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
25828 as late as possible.
25830 2019-01-07 Tom de Vries <tdevries@suse.de>
25832 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
25833 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
25834 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
25835 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
25836 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
25838 2019-01-07 Tom de Vries <tdevries@suse.de>
25840 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
25842 2019-01-07 Tom de Vries <tdevries@suse.de>
25844 * omp-offload.c (oacc_get_min_dim): New function.
25845 * omp-offload.h (oacc_get_min_dim): Declare.
25847 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
25850 * config/i386/i386.c (function_value_ms_64): Return small sturct in
25851 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
25853 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25857 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
25859 * ipa-inline.c (edge_badness): Use inlined_time instead of
25860 inline_summaries->get.
25862 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25864 * opts.c (enable_fdo_optimizations): Enable
25865 version-loops-for-strides, loop-interchange, unrol-and-jam
25866 and tree-loop-distribution.
25867 * invoke.texi: Document newly enabled options.
25869 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25871 * doc/invoke.texi (max-inline-insns-small): New parameters.
25872 * ipa-inline.c (want_early_inline_function_p): simplify.
25873 (want_inline_small_function_p): Fix pasto from previous patch;
25874 use max-inline-insns-small bound.
25875 * params.def (max-inline-insns-small): New param.
25876 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
25877 variables correctly.
25879 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25881 * doc/invoke.texi: Document max-inline-insns-size,
25882 uninlined-function-insns, uninlined-function-time,
25883 uninlined-thunk-insns and uninlined-thunk-time.
25884 * params.def: Add max-inline-insns-size,
25885 uninlined-function-insns, uninlined-function-time,
25886 uninlined-thunk-insns and uninlined-thunk-time.
25887 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
25889 * ipa-inline.c (can_inline_edge_by_limits_p,
25890 want_inline_small_function_p): Use new parameters.
25892 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25894 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
25896 2019-01-05 Jakub Jelinek <jakub@redhat.com>
25898 PR middle-end/82564
25900 * expr.c (expand_assignment): For calls returning VLA structures
25901 if to_rtx is not a MEM, force it into a stack temporary.
25904 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
25905 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
25906 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
25907 subexpressions of both operands.
25908 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
25909 subrtxes are CONSTANT_P.
25910 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
25911 2018-11-09 changes.
25913 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
25915 * params.def (hot-bb-count-ws-permille): Set to 990.
25917 2019-01-04 Martin Sebor <msebor@redhat.com>
25920 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
25923 2019-01-04 Martin Sebor <msebor@redhat.com>
25926 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
25928 2019-01-04 Jakub Jelinek <jakub@redhat.com>
25930 * gdbinit.in: Turn off pagination for the skip commands, restore
25931 it to previous state afterwards.
25933 2019-01-04 Jakub Jelinek <jakub@redhat.com>
25936 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
25937 of GET_MODE (opN) as modes of the libcall arguments.
25939 2019-01-04 Jan Beulich <jbeulich@suse.com>
25941 * config/i386/sse.md
25942 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
25943 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
25944 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
25945 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
25946 avx512f_vmcmp<mode>3<round_saeonly_name>,
25947 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
25948 avx512f_maskcmp<mode>3,
25949 <avx512>_cvt<ssemodesuffix>2mask<mode>,
25950 <avx512>_cvt<ssemodesuffix>2mask<mode>,
25951 *<avx512>_cvtmask2<ssemodesuffix><mode>,
25952 *<avx512>_cvtmask2<ssemodesuffix><mode>,
25953 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
25954 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
25955 <avx512>_gt<mode>3<mask_scalar_merge_name>,
25956 <avx512>_gt<mode>3<mask_scalar_merge_name>,
25957 <avx512>_testm<mode>3<mask_scalar_merge_name>,
25958 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
25959 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
25960 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
25961 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
25962 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
25963 avx512cd_maskb_vec_dup<mode>,
25964 avx512cd_maskw_vec_dup<mode>,
25965 avx512dq_fpclass<mode><mask_scalar_merge_name>,
25966 avx512dq_vmfpclass<mode>,
25967 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
25970 2019-01-03 Martin Sebor <msebor@redhat.com>
25972 PR tree-optimization/88659
25973 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
25975 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
25977 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
25978 unaligned vsx and avoid lxvd2x/stxvd2x.
25979 (gen_lvx_v4si_move): New function.
25981 2019-01-03 Tom de Vries <tdevries@suse.de>
25983 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
25984 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
25986 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
25988 2019-01-03 Tom de Vries <tdevries@suse.de>
25990 * config/nvptx/nvptx.c (struct offload_attrs): New.
25991 (populate_offload_attrs): New function. Factor mask extraction out of
25992 nvptx_reorg. Add extraction of dimensions.
25993 (nvptx_reorg): Use populate_offload_attrs.
25995 2019-01-03 Tom de Vries <tdevries@suse.de>
25997 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
25998 cases for oacc_min_dims_p and routine_p. Add asserts for
25999 oacc_default_dims_p and offload_region_p.
26001 2019-01-03 Tom de Vries <tdevries@suse.de>
26003 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26004 factored out of ...
26005 (nvptx_goacc_validate_dims): ... here.
26007 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26009 PR tree-optimization/85574
26010 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26012 (struct ssa_equip_hash_traits): Declare.
26013 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26015 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26018 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26019 change it to qualified_type.
26021 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26023 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26024 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26026 2019-01-02 Martin Sebor <msebor@redhat.com>
26027 Jeff Law <law@redhat.com>
26029 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26030 (get_range_strlen_tree): Update appropriately.
26032 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26034 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26035 rather than set_range_info.
26036 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26037 maybe_set_strlen_range. Handle potentially boundary crossing
26038 cases more conservatively.
26039 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26040 Call set_strlen_range.
26041 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26043 PR middle-end/88663
26044 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26045 need the flexp argument.
26046 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26047 from calls to get_range_strlen. Update comments. Just update
26048 VAL for an unterminated const char array and let the reset of the
26049 code handle it normally. No longer try to set *flexp. Adjust
26051 (get_range_strlen): Update for the new get_range_strlen API.
26052 (get_maxval_strlen): Similarly.
26053 (gimple_fold_builtin_strlen): Handle update meaning of return value
26054 from get_range_strlen.
26055 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26056 get_range_strlen API.
26058 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26061 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26062 false at WPA time when body was removed.
26064 2019-01-02 Martin Liska <mliska@suse.cz>
26066 PR tree-optimization/88650
26067 * predict.c (set_even_probabilities): Calculate probability
26068 remainer only when really used.
26070 2019-01-02 Richard Biener <rguenther@suse.de>
26072 PR middle-end/88651
26073 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26074 widest_ints when mangling max_stmt_execution results.
26076 2019-01-02 Richard Biener <rguenther@suse.de>
26078 PR tree-optimization/88621
26079 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26080 bitfields when canoncalizing.
26082 2019-01-02 Richard Biener <rguenther@suse.de>
26085 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26086 cost of cheap SSE instruction.
26088 2019-01-02 Richard Biener <rguenther@suse.de>
26091 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26092 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26094 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26095 set after UIDs before splitting them.
26097 2019-01-01 Martin Sebor <msebor@redhat.com>
26098 Jeff Law <law@redhat.com>
26100 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26101 length is optimistic. If it is, then arrange to compute the
26102 conservative length as well.
26104 * gimple-fold.h (get_range_strlen): Update prototype.
26105 * builtins.c (check_access): Update call to get_range_strlen to use
26106 c_strlen_data pointer. Change various variable accesses to instead
26107 pull data from the c_strlen_data structure.
26108 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26109 * calls.c (maybe_warn_nonstring_arg): Likewise.
26110 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26111 minimum length if maximum lengh is unknown.
26112 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26113 that used c_strlen, it's no longer needed. Restructure slightly.
26114 (format_string): Set unlikely range appropriately.
26115 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26117 (get_range_strlen): Accept c_strlen_data pointer for external
26118 call sites as well. Pass through to call to internal get_range_strlen.
26119 Adjust minlen, maxlen and maxbound as needed.
26120 (get_maxval_strlen): Update comments.
26121 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26122 to use c_strlen_data pointer. Change variable accesses to instead
26123 use c_strlen_data data members.
26125 * gimple-fold.c (get_range_strlen): Update prototype.
26126 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26127 local variables. Use pdata to return information to caller.
26128 Update calls to get_range_strlen. Update pdata->maxbound.
26129 (get_range_strlen -- static version): Similarly.
26130 (get_range_strlen -- extern version): Update for internal
26131 get_range_strlen API change. Convert to external data format.
26132 (get_maxval_strlen): Similarly.
26134 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26136 * coverage.c (get_coverage_counts): Use current_function_decl.
26137 * profile.c (read_thunk_profile): New function.
26138 (branch_prob): Add THUNK parameter.
26139 * tree-profile.c (tree_profiling): Handle thunks.
26140 * value-prof.c (init_node_map): Handle thunks.
26141 * value-prof.h (branch_prob): Upate prototype.
26142 (read_thunk_profile): Declare.
26144 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26146 Update copyright years.
26148 * gcc.c (process_command): Update copyright notice dates.
26149 * gcov-dump.c (print_version): Ditto.
26150 * gcov.c (print_version): Ditto.
26151 * gcov-tool.c (print_version): Ditto.
26152 * gengtype.c (create_file): Ditto.
26153 * doc/cpp.texi: Bump @copying's copyright year.
26154 * doc/cppinternals.texi: Ditto.
26155 * doc/gcc.texi: Ditto.
26156 * doc/gccint.texi: Ditto.
26157 * doc/gcov.texi: Ditto.
26158 * doc/install.texi: Ditto.
26159 * doc/invoke.texi: Ditto.
26161 Copyright (C) 2019 Free Software Foundation, Inc.
26163 Copying and distribution of this file, with or without modification,
26164 are permitted in any medium without royalty provided the copyright
26165 notice and this notice are preserved.