1 2019-03-25 Martin Sebor <msebor@redhat.com>
4 * c-common.c (check_user_alignment): Rename local. Correct maximum
5 alignment in diagnostic. Avoid assuming argument fits in SHWI,
6 convert it to UHWI when it fits.
8 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
11 * dwarf2out.c (premark_used_variables): New function.
12 (prune_unused_types_walk): Do not mark not premarked external
14 (prune_unused_types): Call premark_used_variables.
16 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
18 PR rtl-optimization/89676
19 * lra-constraints.c (curr_insn_transform): Do match reload for
20 early clobbers when the match was successful only for different
23 2019-03-25 Martin Sebor <msebor@redhat.com>
25 * doc/extend.texi (Common Type Attributes): Document vector_size.
26 (Common Variable Attributes): Mention size constraint. Correct
28 (Vector Extensions): Use @dfn when defining bas type. Clarify
29 base type and size constraints.
31 2019-03-25 Richard Biener <rguenther@suse.de>
33 PR tree-optimization/89789
34 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
35 changes from non-undefined back to undefined.
37 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
39 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
40 heap string and a gc string, but since this variable is unknown to
41 ggc the gc string might get reused and corrupted. Fixed by always
44 2019-03-25 Richard Biener <rguenther@suse.de>
46 PR tree-optimization/89779
47 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
48 to remove IV defs, delay actual removal.
49 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
50 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
51 very end, properly also reset loop control IV information.
53 2019-03-25 Richard Biener <rguenther@suse.de>
55 PR tree-optimization/89802
56 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
57 move EH data to folded stmt.
59 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
61 * config/s390/s390-builtin-types.def: Remove few unused types and
62 fix sort order for others.
64 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
66 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
67 expected and found types with -mdebug during builtin matching.
69 2019-03-25 Richard Biener <rguenther@suse.de>
72 * fold-const.c (operand_equal_p): Revert last change with
75 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
77 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
78 notes for the result of the __tls_get_addr calls.
79 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
81 2019-03-24 Jeff Law <law@redhat.com>
83 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
85 PR rtl-optimization/87761
86 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
87 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
89 (pass_cprop_hardreg::execute): Add df note problem and defer insn
90 rescans. Reprocess blocks as needed, calling df_analyze before
91 reprocessing. Always call df_analyze before fixing up debug bind
94 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
96 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
99 2019-03-22 Andrew Pinski <apinski@marvell.com>
101 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
104 2019-03-26 Jeff Law <law@redhat.com>
106 PR rtl-optimization/87761
107 * config/mips/mips-protos.h (mips_split_move): Add new argument.
108 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
109 (mips_split_move): Accept new INSN argument. Try to forward SRC
110 into the next instruction.
111 (mips_split_move_insn): Pass INSN through to mips_split_move.
113 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
115 PR rtl-optimization/89676
116 * lra-constraints.c (curr_insn_transform): Do match reload for
117 early clobbers even if the match was successful.
119 2019-03-22 Jakub Jelinek <jakub@redhat.com>
122 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
124 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
126 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
128 2019-03-22 Jakub Jelinek <jakub@redhat.com>
130 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
131 <avx512>_fmsub_<mode>_mask3<round_name>,
132 <avx512>_fnmadd_<mode>_mask3<round_name>,
133 <avx512>_fnmsub_<mode>_mask3<round_name>,
134 avx512f_vmfmadd_<mode>_mask3<round_name>,
135 avx512f_vmfmsub_<mode>_mask3<round_name>,
136 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
137 instead of register_operand and %v instead of v for match_operand 1.
138 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
139 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
140 <round_nimm_predicate> instead of register_operand and %v instead of v
143 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
144 <avx512>_fmadd_<mode>_mask3<round_name>,
145 <avx512>_fmsub_<mode>_mask<round_name>,
146 <avx512>_fmsub_<mode>_mask3<round_name>,
147 <avx512>_fnmadd_<mode>_mask<round_name>,
148 <avx512>_fnmadd_<mode>_mask3<round_name>,
149 <avx512>_fnmsub_<mode>_mask<round_name>,
150 <avx512>_fnmsub_<mode>_mask3<round_name>,
151 <avx512>_fmaddsub_<mode>_mask<round_name>,
152 <avx512>_fmaddsub_<mode>_mask3<round_name>,
153 <avx512>_fmsubadd_<mode>_mask<round_name>,
154 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
155 <round_nimm_predicate> instead of nonimmediate_operand.
156 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
157 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
158 Use register_operand instead of <round_nimm_predicate> for the
159 operand that needs to match output.
160 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
161 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
162 Likewise. Formatting fixes.
165 * config/i386/i386.c (enum ix86_builtins): Remove
166 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
167 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
168 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
169 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
170 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
171 __builtin_ia32_vfmsubss3_mask3): New builtins.
172 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
173 avx512f_vmfmadd_<mode>_mask3<round_name>,
174 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
175 *avx512f_vmfmsub_<mode>_mask<round_name>,
176 avx512f_vmfmsub_<mode>_mask3<round_name>,
177 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
178 *avx512f_vmfnmadd_<mode>_mask<round_name>,
179 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
180 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
181 *avx512f_vmfnmsub_<mode>_mask<round_name>,
182 avx512f_vmfnmsub_<mode>_mask3<round_name>,
183 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
184 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
185 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
186 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
187 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
188 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
189 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
190 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
191 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
192 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
193 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
194 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
195 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
196 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
197 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
198 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
199 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
200 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
201 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
202 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
203 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
204 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
206 2019-03-21 Martin Sebor <msebor@redhat.com>
208 PR tree-optimization/89350
209 * builtins.c (compute_objsize): Also ignore offsets whose upper
211 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
212 (builtin_memref::builtin_memref): Initialize new member.
213 Allow EXPR to be null.
214 (builtin_memref::extend_offset_range): Replace local with a member.
215 Avoid assuming pointer offsets are unsigned.
216 (builtin_memref::set_base_and_offset): Determine base object
217 before computing offset range.
218 (builtin_access::builtin_access): Handle memset.
219 (builtin_access::generic_overlap): Replace local with a member.
220 (builtin_access::strcat_overlap): Same.
221 (builtin_access::overlap): Same.
222 (maybe_diag_overlap): Same.
223 (maybe_diag_access_bounds): Same.
224 (wrestrict_dom_walker::check_call): Handle memset.
225 (check_bounds_or_overlap): Same.
227 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
228 Jakub Jelinek <jakub@redhat.com>
231 * tree.c (fld_type_variant, fld_incomplete_type_of,
232 fld_process_array_type): Call fld->pset.add and don't call
233 add_tree_to_fld_list if it returns true.
234 (free_lang_data_in_type): Similarly with self-recursive call. Purge
235 non-marked types from TYPE_NEXT_VARIANT list.
236 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
238 2019-03-21 Jakub Jelinek <jakub@redhat.com>
240 * hash-table.h (hash_table): Add Lazy template parameter defaulted
241 to false, if true, don't alloc_entries during construction, but defer
242 it to the first method that needs m_entries allocated.
243 (hash_table::hash_table, hash_table::~hash_table,
244 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
245 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
246 hash_table::clear_slot, hash_table::traverse_noresize,
247 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
248 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
250 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
251 NO_INSERT instead of find_with_hash.
252 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
253 hash_set::m_table): Add Lazy to template params of hash_table.
254 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
255 * attribs.c (test_attribute_exclusions): Likewise.
256 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
257 hash_set. Add tests for hash_set with Lazy = true.
259 2019-03-21 Richard Biener <rguenther@suse.de>
261 PR tree-optimization/89779
262 * tree.c (tree_nop_conversion): Consolidate and fix defensive
263 checks with respect to released SSA names now having error_mark_node
265 * fold-const.c (operand_equal_p): Likewise.
267 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
270 * config/s390/s390.c (global_not_special_regno_p): Move to make it
272 (s390_optimize_register_info): Use global_not_special_regno_p to
273 check for global regs.
275 2019-03-20 Jakub Jelinek <jakub@redhat.com>
278 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
279 update this_alternative nor this_alternative_set.
281 2019-03-19 Jim Wilson <jimw@sifive.com>
284 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
285 align, size, offset. Use them to handle a BLKmode reference. Update
287 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
289 2019-03-19 Jakub Jelinek <jakub@redhat.com>
291 PR rtl-optimization/89768
292 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
294 (unroll_loop_runtime_iterations): Likewise.
296 2019-03-19 Martin Sebor <msebor@redhat.com>
298 PR tree-optimization/89644
299 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
300 rather than endptr as an indicator of nul-termination.
302 PR tree-optimization/89644
303 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
304 arrays in determining sequence sizes in strncpy and stpncpy.
306 2019-03-19 Martin Liska <mliska@suse.cz>
309 * predict.c (combine_predictions_for_bb): Empty likely_edges and
310 unlikely_edges if there's an edge that belongs to both these sets.
312 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
315 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
316 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
317 go via a stack temporary.
319 2019-03-19 Jakub Jelinek <jakub@redhat.com>
322 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
323 instead of gen_rtx_SUBREG.
324 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
326 2019-03-19 Richard Biener <rguenther@suse.de>
329 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
331 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
335 * tree.c (free_lang_data_in_decl): Do not free context of C++
338 2019-03-19 Jakub Jelinek <jakub@redhat.com>
341 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
342 subs for the first alternative except when operands[3] is 1.
345 * gimplify.c (gimplify_asm_expr): For output argument with
346 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
349 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
351 PR rtl-optimization/89753
352 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
353 explicit unrolling factor even more robust.
355 2019-03-19 Jakub Jelinek <jakub@redhat.com>
358 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
359 compensation use x2 += 1 instead of x2 -= -1 and when honoring
360 signed zeros, do another copysign after the compensation.
362 2019-03-18 Martin Sebor <msebor@redhat.com>
364 PR tree-optimization/89720
365 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
366 more conservatively, the same as anti-range.
368 2019-03-18 Richard Biener <rguenther@suse.de>
371 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
372 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
373 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
374 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
376 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
378 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
379 Extend queue to 1024 entries.
380 Add "consumed" field.
381 (gomp_print_output): Remove print_index parameter.
383 Change limit to unsigned.
384 Use consumed field to implement circular buffer.
385 Detect interrupted print in final pass.
386 Flush output at the end.
387 (run): Update gomp_print_output usage.
388 (main): Initialize kernargs->output_data.consumed.
390 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
392 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
393 calculation of the minimum number of scalar iterations for
394 fully-predicated loops.
396 2019-03-18 Martin Jambor <mjambor@suse.cz>
398 PR tree-optimization/89546
399 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
400 any propagation to its children took place.
402 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
405 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
406 parameter, and make use of it.
407 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
409 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
411 * config/arc/arc.opt (mcode-density-frame): Get the inital value
412 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
413 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
414 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
415 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
416 match what the ops is doing.
417 (push_multi_fp_blink): Likewise.
418 * config/arc/arc.c (arc_override_options): Enable enter/leave when
419 compiling for size and elf target.
420 (arc_save_callee_enter): Adjust note to match what enter/leave
423 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
425 * config/arc/arc.md (tst_movb): Fix constraint.
427 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
429 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
431 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
433 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
434 * config/arc/arc.c (arc_conditional_register_usage): Remove all
435 reg_alloc_order references.
436 (size_alloc_order): Define.
437 (arc_adjust_reg_alloc_order): New function.
438 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
440 (ADJUST_REG_ALLOC_ORDER): Define.
441 (HONOR_REG_ALLOC_ORDER): Likewise.
443 2019-03-18 Richard Biener <rguenther@suse.de>
446 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
447 loads and stores a bit more.
449 2019-03-18 Richard Biener <rguenther@suse.de>
452 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
453 load pessimization to stores as well.
455 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
458 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
459 successor, use NULL as its av set.
461 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
463 PR rtl-optimization/89721
464 * lra-constraints (invariant_p): Return false if side_effects_p holds.
466 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
469 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
470 When handling vec_extract, use modular arithmetic to allow
471 constant selectors greater than vector length.
472 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
473 V1TImode vectors to have constant selector values greater than 0.
474 Use modular arithmetic to compute vector index.
475 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
476 index for in-memory vectors. Correct code generation for
478 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
481 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
485 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
488 2019-03-15 Jakub Jelinek <jakub@redhat.com>
491 * tree.c (inchash::add_expr): Strip any location wrappers.
492 * fold-const.c (operand_equal_p): Move stripping of location wrapper
493 after hash verification.
496 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
497 SIGN_EXTEND and ZERO_EXTEND.
499 2019-03-14 Jason Merrill <jason@redhat.com>
500 Jakub Jelinek <jakub@redhat.com>
502 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
503 than if is_empty (*slot).
504 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
505 existing elt and for elt removal.
506 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
507 of already removed elt.
509 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
512 * config/i386/i386.c (remove_partial_avx_dependency): Handle
515 2019-03-14 Martin Liska <mliska@suse.cz>
518 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
520 2019-03-14 Richard Biener <rguenther@suse.de>
523 * config/i386/i386.c (make_resolver_func): Properly set
524 DECL_CONTEXT on the RESULT_DECL.
525 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
527 2019-03-14 Richard Biener <rguenther@suse.de>
529 * gimple-pretty-print.c: Include cfgloop.h.
530 (dump_gimple_phi): Adjust.
531 (dump_gimple_bb_header): Dump loop header for GIMPLE.
532 (pp_cfg_jump): Adjust.
533 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
534 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
535 (lower_phi_internal_fn): Remove.
536 (verify_gimple_call): Remove IFN_PHI special-casing.
537 (dump_function_to_file): Dump IL state.
538 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
539 done to deal with PHI nodes being present in non-SSA state.
541 2019-03-14 Jakub Jelinek <jakub@redhat.com>
544 * multiple_target.c (create_dispatcher_calls): Change
545 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
546 In the node->iterate_referring loop, push *ref rather than ref, call
547 ref->remove_reference () and always pass 0 to iterate_referring.
549 PR rtl-optimization/89679
550 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
551 would contain a paradoxical SUBREG.
553 2019-03-14 Richard Biener <rguenther@suse.de>
555 PR tree-optimization/89710
556 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
559 2019-03-14 Martin Liska <mliska@suse.cz>
561 * coverage.c (coverage_begin_function): Stream also
563 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
564 documentation about function declaration location.
565 * gcov-dump.c (tag_function): Print whole range
566 of function declaration.
567 * gcov.c (struct function_info): Add end_column field.
568 (function_info::function_info): Initialize it.
569 (output_json_intermediate_file): Output {start,end}_column
571 (read_graph_file): Read end_column.
573 2019-03-14 Richard Biener <rguenther@suse.de>
576 * fold-const.c (operand_equal_p): For INDIRECT_REF check
577 that the access types are similar.
579 2019-03-14 Jakub Jelinek <jakub@redhat.com>
581 PR tree-optimization/89703
582 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
583 aren't compatible also with builtin_decl_explicit. Check pure
584 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
585 and BUILT_IN_STPNCPY{,_CHK}.
587 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
590 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
591 addr32 prefix to VSIB address for X32.
592 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
594 (*avx512pf_gatherpf<mode>df_mask): Likewise.
595 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
596 (*avx512pf_scatterpf<mode>df_mask): Likewise.
597 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
598 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
599 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
600 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
601 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
602 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
603 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
604 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
605 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
606 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
607 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
608 (*avx512f_scatterdi<mode>): Likewise.
610 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
613 * lra-constraints.c (inherit_in_ebb): Update
614 potential_reload_hard_regs along with live_hard_regs.
616 2019-03-13 Jakub Jelinek <jakub@redhat.com>
619 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
621 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
623 2019-03-13 Martin Sebor <msebor@redhat.com>
625 PR tree-optimization/89662
626 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
629 2019-03-13 Richard Biener <rguenther@suse.de>
632 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
633 throw FP expressions at tree-affine.
635 2019-03-14 Richard Biener <rguenther@suse.de>
637 * tree-pretty-print.c (dump_generic_node): For -gimple properly
638 dump negative integer constants using _Literal (type) -num.
640 2019-03-13 Jakub Jelinek <jakub@redhat.com>
642 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
643 nonlocal_value member.
646 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
647 (ipa_simd_modify_function_body): Handle PHIs.
649 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
651 * config/s390/s390.c (s390_option_override_internal): Use more
652 aggressive inlining parameters.
654 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
656 * config/s390/3906.md: New file.
657 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
658 (LONGRUNNING_THRESHOLD): Remove.
659 (MAX_SCHED_MIX_SCORE): Decrease.
660 (MAX_SCHED_MIX_DISTANCE): Decrease.
661 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
662 (struct s390_sched_state): New struct to hold scheduling state.
663 (S390_SCHED_STATE_NORMAL): Remove.
664 (S390_SCHED_STATE_CRACKED): Remove.
665 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
666 (s390_get_sched_attrmask): Use new attribute.
667 (s390_get_unit_mask): Use new units.
668 (s390_is_fpd): New function.
669 (s390_is_fxd): New function.
670 (s390_is_longrunning): New function.
671 (s390_sched_score): Use new functions.
672 (s390_sched_reorder): Likewise.
673 (s390_sched_variable_issue): Rework and use new functions.
674 (s390_sched_init): Use new functions.
675 * config/s390/s390.h (s390_tune_attr): Add z14.
676 * config/s390/s390.md: Add z14.
678 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
680 * config/s390/2964.md: Update pipeline description.
681 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
682 (LONGRUNNING_THRESHOLD): Remove.
683 (LATENCY_FACTOR): Remove.
684 (s390_get_unit_mask): Add unit.
685 (s390_sched_score): Use fxd/fpd.
686 (s390_sched_variable_issue): Use fxd/fpd.
688 2019-03-12 Martin Liska <mliska@suse.cz>
690 * config/i386/i386.c: Reword an error message.
692 2019-03-12 Martin Jambor <mjambor@suse.cz>
694 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
695 terminate with newline.
697 2019-03-12 Jakub Jelinek <jakub@redhat.com>
700 * config/s390/s390.md (tabort): Use %wd instead of
701 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
703 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
704 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
708 * builtins.c (expand_builtin_int_roundingfn,
709 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
710 gcc_unreachable if validate_arglist fails.
712 2019-03-12 Richard Biener <rguenther@suse.de>
714 PR tree-optimization/89664
715 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
716 free the occurance tree after the early out.
718 2019-03-11 Jakub Jelinek <jakub@redhat.com>
722 * vr-values.c (vr_values::update_value_range): If
723 old_vr->varying_p (), don't update it, make new_vr also VARYING
726 2019-03-11 Martin Liska <mliska@suse.cz>
728 * config/aarch64/aarch64.c (aarch64_override_options_internal):
729 Fix double string quoting.
731 2019-03-11 Martin Liska <mliska@suse.cz>
733 * collect-utils.c (collect_wait): Wrap apostrophes
734 in gcc internal format with %'.
735 * collect2.c (main): Likewise.
736 (scan_prog_file): Likewise.
737 (scan_libraries): Likewise.
738 * config/i386/i386.c (ix86_expand_call): Likewise.
739 (ix86_handle_interrupt_attribute): Likewise.
740 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
741 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
742 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
743 * lto-wrapper.c (find_crtoffloadtable): Likewise.
744 * symtab.c (symtab_node::verify_base): Likewise.
745 * tree-cfg.c (verify_gimple_label): Likewise.
746 * tree.c (verify_type_variant): Likewise.
748 2019-03-11 Martin Liska <mliska@suse.cz>
750 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
751 in a string format message and fix GNU coding style.
752 (expand_builtin_set_thread_pointer): Likewise.
753 * common/config/aarch64/aarch64-common.c (aarch64_rewrite_selected_cpu): Likewise.
754 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
755 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
756 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
757 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
758 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
759 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
760 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
761 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
762 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
763 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option): Likewise.
764 * common/config/riscv/riscv-common.c (riscv_subset_list::parsing_subset_version): Likewise.
765 (riscv_subset_list::parse_std_ext): Likewise.
766 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
767 (riscv_subset_list::parse): Likewise.
768 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
769 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
770 (aarch64_override_options_internal): Likewise.
771 (aarch64_validate_mcpu): Likewise.
772 (aarch64_validate_march): Likewise.
773 (aarch64_validate_mtune): Likewise.
774 (aarch64_override_options): Likewise.
775 * config/alpha/alpha.c (alpha_option_override): Likewise.
776 * config/arc/arc.c (arc_init): Likewise.
777 (parse_mrgf_banked_regs_option): Likewise.
778 (arc_override_options): Likewise.
779 (arc_expand_builtin_aligned): Likewise.
780 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
781 (arm_expand_builtin): Likewise.
782 * config/arm/arm.c (arm_option_check_internal): Likewise.
783 (arm_configure_build_target): Likewise.
784 (arm_option_override): Likewise.
785 (arm_options_perform_arch_sanity_checks): Likewise.
786 (arm_handle_cmse_nonsecure_entry): Likewise.
787 (arm_handle_cmse_nonsecure_call): Likewise.
788 (arm_tls_referenced_p): Likewise.
789 (thumb1_expand_prologue): Likewise.
790 * config/avr/avr.c (avr_option_override): Likewise.
791 * config/bfin/bfin.c (bfin_option_override): Likewise.
792 * config/c6x/c6x.c (c6x_option_override): Likewise.
793 * config/cr16/cr16.c (cr16_override_options): Likewise.
794 * config/cris/cris.c (cris_option_override): Likewise.
795 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
796 * config/darwin-c.c (macosx_version_as_macro): Likewise.
797 * config/darwin.c (darwin_override_options): Likewise.
798 * config/frv/frv.c (frv_expand_builtin): Likewise.
799 * config/h8300/h8300.c (h8300_option_override): Likewise.
800 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
801 (ix86_option_override_internal): Likewise.
802 (warn_once_call_ms2sysv_xlogues): Likewise.
803 (ix86_expand_prologue): Likewise.
804 (split_stack_prologue_scratch_regno): Likewise.
805 (ix86_warn_parameter_passing_abi): Likewise.
806 * config/ia64/ia64.c (fix_range): Likewise.
807 * config/m68k/m68k.c (m68k_option_override): Likewise.
808 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
809 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
810 (mips_set_compression_mode): Likewise.
811 * config/mmix/mmix.c (mmix_option_override): Likewise.
812 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
813 * config/msp430/msp430.c (msp430_option_override): Likewise.
814 * config/nds32/nds32.c (nds32_option_override): Likewise.
815 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
816 (nios2_option_override): Likewise.
817 (nios2_expand_custom_builtin): Likewise.
818 * config/nvptx/mkoffload.c (main): Likewise.
819 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
820 * config/pa/pa.c (fix_range): Likewise.
821 (pa_option_override): Likewise.
822 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
823 (riscv_option_override): Likewise.
824 * config/rl78/rl78.c (rl78_option_override): Likewise.
825 * config/rs6000/aix61.h: Likewise.
826 * config/rs6000/aix71.h: Likewise.
827 * config/rs6000/aix72.h: Likewise.
828 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
829 * config/rs6000/freebsd64.h: Likewise.
830 * config/rs6000/linux64.h: Likewise.
831 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
832 (rs6000_expand_zeroop_builtin): Likewise.
833 (rs6000_expand_mtfsb_builtin): Likewise.
834 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
835 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
836 (rs6000_invalid_builtin): Likewise.
837 (rs6000_expand_split_stack_prologue): Likewise.
838 * config/rs6000/rtems.h: Likewise.
839 * config/rx/rx.c (valid_psw_flag): Likewise.
840 (rx_expand_builtin): Likewise.
841 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
842 * config/s390/s390.c (s390_expand_builtin): Likewise.
843 (s390_function_profiler): Likewise.
844 (s390_option_override_internal): Likewise.
845 (s390_option_override): Likewise.
846 * config/sh/sh.c (sh_option_override): Likewise.
847 (sh_builtin_saveregs): Likewise.
848 (sh_fix_range): Likewise.
849 * config/sh/vxworks.h: Likewise.
850 * config/sparc/sparc.c (sparc_option_override): Likewise.
851 * config/spu/spu.c (spu_option_override): Likewise.
852 (fix_range): Likewise.
853 * config/visium/visium.c (visium_option_override): Likewise.
854 (visium_handle_interrupt_attr): Likewise.
855 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
856 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
857 (dbg_cnt_process_opt): Likewise.
858 * dwarf2out.c (output_dwarf_version): Likewise.
859 * except.c (expand_eh_return): Likewise.
860 * gcc.c (defined): Likewise.
861 (driver_handle_option): Likewise.
862 (process_command): Likewise.
863 (compare_files): Likewise.
864 (driver::prepare_infiles): Likewise.
865 (driver::do_spec_on_infiles): Likewise.
866 (driver::maybe_run_linker): Likewise.
867 * omp-offload.c (oacc_parse_default_dims): Likewise.
868 * opts-global.c (handle_common_deferred_options): Likewise.
869 * opts.c (parse_sanitizer_options): Likewise.
870 (common_handle_option): Likewise.
871 (enable_warning_as_error): Likewise.
872 * passes.c (enable_disable_pass): Likewise.
873 * plugin.c (parse_plugin_arg_opt): Likewise.
874 (default_plugin_dir_name): Likewise.
875 * targhooks.c (default_expand_builtin_saveregs): Likewise.
876 (default_pch_valid_p): Likewise.
877 * toplev.c (init_asm_output): Likewise.
878 (process_options): Likewise.
879 (toplev::run_self_tests): Likewise.
880 * tree-cfg.c (verify_gimple_call): Likewise.
881 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
882 (tree_inlinable_function_p): Likewise.
883 * var-tracking.c (vt_find_locations): Likewise.
885 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
887 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
888 only on the else branch.
890 2019-03-11 Martin Liska <mliska@suse.cz>
892 * gcov.c (output_intermediate_json_line): Print function
894 (output_json_intermediate_file): Add new argument.
895 * doc/gcov.texi: Document the change.
897 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
899 PR rtl-optimization/89588
900 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
901 explicit unrolling factor more robust.
903 2019-03-11 Richard Biener <rguenther@suse.de>
905 PR tree-optimization/89649
906 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
907 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
908 on the prolog and epilog loops.
909 (vect_loop_versioning): Return copy of loop.
910 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
911 on the non-vectorized version of the loop.
913 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
916 * config/i386/sse.md (*vec_extractv2di_0_sse):
917 Add (=r,x) alternative and corresponding splitter.
919 2019-03-10 Martin Jambor <mjambor@suse.cz>
921 PR tree-optimization/85762
922 PR tree-optimization/87008
923 PR tree-optimization/85459
924 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
925 it points to if there is a type changing MEM_REF. Adjust all callers.
926 (build_accesses_from_assign): Disable total scalarization if
927 contains_vce_or_bfcref_p returns true through the new parameter, for
930 2019-03-09 Jakub Jelinek <jakub@redhat.com>
933 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
934 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
937 * common.opt (fdiagnostics-show-labels,
938 fdiagnostics-show-line-numbers, fdiagnostics-format=,
939 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
940 gas-locview-support, ginline-points, ginternal-reset-location-views):
941 Terminate description text with a dot.
942 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
943 * config/mcore/mcore.opt (m210, m340): Likewise.
944 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
945 mnops=): Start description text with a capital letter.
946 * config/arc/arc.opt (msize-level=): Likewise.
947 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
948 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
950 * config/ft32/ft32.opt (msim): Likewise.
951 (mft32b, mcompress): Likewise. Terminate description text with a dot.
952 (mnodiv, mnopm): Terminate description text with a dot.
953 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
955 * config/i386/i386.opt (prefer_vector_width, instrument_return):
957 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
960 PR rtl-optimization/89634
961 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
962 are modified in BB_END (e->src) instruction.
964 2019-03-08 David Malcolm <dmalcolm@redhat.com>
967 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
968 messages more amenable to translation, and improve wording.
970 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
972 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
973 ud- and du-chains between phases.
975 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
978 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
979 instead of POLY_INT_CST.
981 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
983 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
986 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
991 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
992 (_mm_storeu_si64): Ditto.
994 2019-03-08 Martin Liska <mliska@suse.cz>
997 * config/i386/i386.c (ix86_option_override_internal): Disable
998 jump tables when retpolines are used.
1000 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
1003 * ipa-split.c (execute_split_functions): Do not split
1004 'noinline' or 'section' function.
1006 2019-03-08 Jakub Jelinek <jakub@redhat.com>
1009 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
1010 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
1011 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
1014 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
1015 from diagnostics. Formatting fixes.
1018 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
1019 warn_odr diagnostics.
1022 * lra-constraints.c (process_alt_operands): Avoid one space before
1023 " at the end of line and another after " on another line in a string
1025 * attribs.c (handle_dll_attribute): Likewise.
1026 * config/avr/avr-devices.c (avr_texinfo): Likewise.
1028 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
1029 warning_at or inform messages in G_() if there is no ?:.
1031 PR tree-optimization/89550
1032 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
1033 returned true. Formatting fixes.
1034 (expand_builtin_strnlen): Formatting fixes.
1035 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
1036 if warning_at returned true.
1037 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
1039 2019-03-08 Richard Biener <rguenther@suse.de>
1042 * cfgloop.h (struct loop): Add owned_clique field.
1043 * cfgloopmanip.c (copy_loop_info): Copy it.
1044 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
1046 * tree-inline.c (copy_loops): Remap owned_clique.
1047 * lto-streamer-in.c (input_cfg): Stream owned_clique.
1048 * lto-streamer-out.c (output_cfg): Likewise.
1050 2019-03-08 Jakub Jelinek <jakub@redhat.com>
1053 * config/darwin.c: Include intl.h.
1054 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
1055 composing the message out of two separate parts.
1057 2019-03-07 Jakub Jelinek <jakub@redhat.com>
1060 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
1061 doesn't start with a capital letter and doesn't end with a dot.
1062 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
1063 with a capital letter.
1064 (ix86_mangle_function_version_assembler_name): Likewise.
1065 (ix86_generate_version_dispatcher_body): Likewise.
1066 (fold_builtin_cpu): Likewise.
1067 (get_builtin_code_for_version): Likewise. Remove extraneous space.
1068 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
1069 translators, wrap full type name in %qs.
1071 PR translation/79999
1072 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
1073 depend clause with source (or sink) modifier.
1074 * omp-expand.c (expand_omp_ordered_sink): Likewise.
1077 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
1078 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
1079 (avx512f_load<mode>_mask): New define_expand.
1080 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
1081 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
1082 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
1083 __builtin_ia32_movess_mask): New builtins.
1084 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
1085 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
1086 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
1087 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
1089 2019-03-07 Martin Jambor <mjambor@suse.cz>
1092 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
1093 for extern inline functions.
1095 2019-03-07 Martin Jambor <mjambor@suse.cz>
1098 * cgraph.h (cgraph_node): New inline method former_thunk_p.
1099 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
1100 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
1101 have multiple callees. At the end check if declarations match as
1102 opposed to cgraph_nodes.
1104 2019-03-07 Martin Liska <mliska@suse.cz>
1106 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
1107 which is equivalent to searching for this in clones chain.
1108 * symtab.c (symtab_node::verify_base): Similarly compare ASM
1109 names with a neighbour and special case first node in a chain.
1111 2019-01-25 Jason Merrill <jason@redhat.com>
1113 PR c++/80916 - spurious "static but not defined" warning.
1114 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
1115 for an internal symbol with DECL_EXTERNAL.
1117 2019-04-07 Richard Biener <rguenther@suse.de>
1120 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
1121 * tree-inline.c (copy_loops): Simplify.
1123 2019-03-07 Martin Liska <mliska@suse.cz>
1125 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
1127 2019-03-07 Richard Biener <rguenther@suse.de>
1129 PR tree-optimization/89595
1130 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
1131 stmt iterator as reference, take boolean output parameter to
1132 indicate whether the stmt was removed and thus the iterator
1134 (dom_opt_dom_walker::before_dom_children): Re-iterate over
1135 stmts created by folding.
1137 2019-03-07 Jakub Jelinek <jakub@redhat.com>
1140 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
1143 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
1145 PR rtl-optimization/88845
1146 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
1148 * lra.c (remove_scratches_1): New function.
1149 (remove_scratches): Use it.
1150 (lra_emit_move): Likewise.
1152 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
1154 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
1155 unaligned_access variable.
1156 * config/arc/arc.c (arc_override_options): Set unaligned access
1157 default on for HS CPUs.
1158 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
1160 2019-03-06 Martin Liska <mliska@suse.cz>
1162 PR gcov-profile/89577
1163 * doc/gcov.texi: Prefer to use --coverage.
1164 * doc/sourcebuild.texi: Likewise.
1166 2019-03-02 Jason Merrill <jason@redhat.com>
1168 PR c++/86485 - -Wmaybe-unused with empty class ?:
1169 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
1171 2019-03-05 Jakub Jelinek <jakub@redhat.com>
1174 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
1178 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
1179 exactly one argument.
1181 2019-03-05 Jakub Jelinek <jakub@redhat.com>
1182 Richard Sandiford <richard.sandiford@arm.com>
1184 PR tree-optimization/89570
1185 * match.pd (vec_cond into cond_op simplification): Don't use
1186 get_conditional_internal_fn, use as_internal_fn (cond_op).
1188 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
1191 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
1192 to decide when to split off a non-zero offset from a symbol.
1193 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
1194 in function symbols.
1196 2019-03-05 Richard Biener <rguenther@suse.de>
1198 PR tree-optimization/89594
1199 * tree-if-conv.c (pass_if_conversion::execute): Handle
1200 case where .LOOP_VECTORIZED_FUNCTION was removed.
1202 2019-03-05 Jakub Jelinek <jakub@redhat.com>
1205 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
1206 instead alloca it only when needed with the needed size.
1208 PR tree-optimization/89570
1209 * match.pd (vec_cond into cond_op simplification): Guard with
1210 vectorized_internal_fn_supported_p test and #if GIMPLE.
1212 PR tree-optimization/89566
1213 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
1214 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
1215 Punt if get_user_idx_format succeeds, but idx_format argument is
1216 not provided or doesn't have pointer type, or if idx_args is above
1217 number of provided arguments.
1219 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
1221 PR tree-optimization/89437
1222 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
1224 2019-03-04 Richard Biener <rguenther@suse.de>
1227 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
1230 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
1232 PR tree-optimization/89487
1233 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
1234 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
1235 (distribute_loop): Don't do runtime alias check if there is non-
1236 addressable data reference.
1237 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
1238 is a register variable.
1240 2019-03-02 Jakub Jelinek <jakub@redhat.com>
1243 * config/arm/arm.md (cmpsi2_addneg): Use
1244 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
1245 If operands[2] is 0 or INT_MIN, force use of subs.
1246 (*compare_scc splitter): Use gen_int_mode.
1247 (*negscc): Likewise.
1248 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
1250 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
1251 Monk Chiang <sh.chiang04@gmail.com>
1253 * common/config/riscv/riscv-common.c: Include sstream.
1254 (riscv_subset_list::to_string): New.
1255 (riscv_arch_str): Likewise.
1256 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
1258 * config/riscv/riscv-protos.h (riscv_arch_str): New.
1259 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
1260 (riscv_emit_attribute): New.
1261 (riscv_file_start): Emit attribute if needed.
1262 (riscv_option_override): Init riscv_emit_attribute_p.
1263 * config/riscv/riscv.opt (mriscv-attribute): New option.
1264 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
1266 * doc/install.texi: Document --with-riscv-attribute.
1267 * doc/invoke.texi: Document -mriscv-attribute.
1269 * common/config/riscv/riscv-common.c:
1270 Include config/riscv/riscv-protos.h.
1271 (INCLUDE_STRING): Defined.
1272 (RISCV_DONT_CARE_VERSION): Defined.
1273 (riscv_subset_t): Declare.
1274 (riscv_subset_t::riscv_subset_t): New.
1275 (riscv_subset_list): Declare.
1276 (riscv_subset_list::riscv_subset_list): New.
1277 (riscv_subset_list::~riscv_subset_list): Likewise.
1278 (riscv_subset_list::parsing_subset_version): Likewise.
1279 (riscv_subset_list::parse_std_ext): Likewise.
1280 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1281 (riscv_subset_list::add): Likewise.
1282 (riscv_subset_list::lookup): Likewise.
1283 (riscv_subset_list::xlen): Likewise.
1284 (riscv_subset_list::parse): Likewise.
1285 (riscv_supported_std_ext): Likewise.
1286 (current_subset_list): Likewise.
1287 (riscv_parse_arch_string): Using riscv_subset_list::parse to
1290 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
1292 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1293 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
1294 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
1296 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
1298 PR rtl-optimization/85899
1299 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
1300 fallthru edges leading to the exit block.
1302 2019-03-01 Tamar Christina <tamar.christina@arm.com>
1305 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
1306 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
1308 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
1310 PR tree-optimization/89535
1311 * tree-vect-stmts.c (vectorizable_call): Record the vector types
1312 for each operand. Calculate the fallback choice for mask operands
1313 and pass it to vect_get_vec_def_for_operand.
1315 2019-03-01 Richard Biener <rguenther@suse.de>
1318 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
1319 get virtual operands.
1320 (get_expr_operands): Handle CONST_DECL like other decls.
1322 2019-03-01 Jakub Jelinek <jakub@redhat.com>
1325 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
1326 on DECL_P and EXPR_P.
1328 2019-03-01 Richard Biener <rguenther@suse.de>
1331 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
1332 argument, defaulted to zero.
1333 * passes.c (execute_function_todo): Pass down SSA update flags
1334 to cleanup_tree_cfg.
1335 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
1336 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
1338 (cleanup_tree_cfg): Get and pass down SSA update flags.
1340 2019-03-01 Jakub Jelinek <jakub@redhat.com>
1343 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
1344 early_lto_debug argument.
1346 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
1348 PR tree-optimization/89536
1349 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
1350 only whether bit #0 of the value is 0 instead of the entire value.
1352 2019-02-28 Marek Polacek <polacek@redhat.com>
1354 PR c++/87068 - missing diagnostic with fallthrough statement.
1355 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
1356 at the end of a seq, save its location to walk_stmt_info.
1357 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
1360 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
1363 * tree.c (find_atomic_core_type): Move ahead in file.
1364 (check_base_type): Correctly compare alignments of atomic types.
1366 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
1369 * config/i386/i386.c (get_builtin_code_for_version): Identify
1370 Westmere from PCLMUL, instead of AES.
1372 2019-02-28 Jakub Jelinek <jakub@redhat.com>
1375 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
1376 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
1379 2019-02-28 Tamar Christina <tamar.christina@arm.com>
1382 * config/aarch64/aarch64-option-extensions.def: Document it.
1383 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
1386 2019-02-28 Jakub Jelinek <jakub@redhat.com>
1389 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
1390 builtins if they don't have a single scalar floating point argument.
1393 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
1395 PR rtl-optimization/89490
1396 * varasm.c (get_block_for_section): Bail out for mergeable sections.
1397 (default_use_anchors_for_symbol_p, output_object_block): Assert the
1398 block section is not mergeable.
1400 2019-02-27 Jakub Jelinek <jakub@redhat.com>
1403 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
1404 old define_insn to ...
1405 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
1406 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
1407 Rename old define_insn to ...
1408 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
1409 (thumb2_casesi_internal_pic): New define_expand. Rename old
1411 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
1412 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
1413 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
1415 2019-02-27 Richard Biener <rguenther@suse.de>
1418 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
1420 2019-02-27 Richard Biener <rguenther@suse.de>
1422 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
1425 2019-02-27 Richard Biener <rguenther@suse.de>
1428 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
1429 parameter, prefix section name with .gnu.debuglto_ if true.
1430 (dwarf2out_finish): Pass false to output_comdat_type_unit.
1431 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
1433 2019-02-27 Richard Biener <rguenther@suse.de>
1436 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
1437 rather than on use_debug_types, doing what output_die does.
1438 (value_format): Likewise.
1440 2019-02-27 Martin Jambor <mjambor@suse.cz>
1441 Martin Sebor <msebor@redhat.com>
1443 * doc/invoke.texi (Warning Options): Reword description of
1444 -Wno-absolute-value.
1446 2019-02-27 Jakub Jelinek <jakub@redhat.com>
1448 PR tree-optimization/89280
1449 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
1450 builtin_setjmp_setup_bb): New functions.
1451 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
1452 When visiting __builtin_setjmp_setup block, queue in special
1453 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
1454 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
1455 from visited after the loop if they don't have any visited successor
1458 2018-02-26 Steve Ellcey <sellcey@marvell.com>
1460 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
1462 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
1464 2019-02-26 Jakub Jelinek <jakub@redhat.com>
1467 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
1468 with types other than sizetype/ssizetype.
1470 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
1472 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
1473 (enum sparc_processor_type): ...this.
1474 (enum sparc_code_model_type): New enumeration type.
1475 (enum sparc_memory_model_type): Tweak comments.
1476 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
1478 (mcmodel): Use sparc_code_model enumeration and variable.
1479 (sparc_code_model): New enumeration.
1480 (mdebug): Add Undocumented marker.
1481 * config/sparc/sparc.h (enum cmodel): Delete.
1482 (sparc_cmodel): Likewise.
1483 (TARGET_CM_MEDLOW): Adjust to above renaming.
1484 (TARGET_CM_MEDMID): Likewise.
1485 (TARGET_CM_MEDANY): Likewise.
1486 (TARGET_CM_EMBMEDANY): Likewise.
1487 * config/sparc/sparc.c (sparc_cmodel): Delete.
1488 (sparc_option_override): Remove string/value mapping support for the
1489 code model. Move code and memory model support to after the handling
1490 of target flags. Do private machine setup last.
1491 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
1492 (sparc_legitimize_reload_address): Likewise.
1493 (sparc_output_mi_thunk): Likewise.
1494 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
1496 2019-02-26 Jakub Jelinek <jakub@redhat.com>
1498 PR tree-optimization/89500
1499 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
1500 (handle_builtin_strlen): Remove noncst_bound variable. Always
1501 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
1502 cst if the first cst bytes starting at x are known to be non-zero,
1503 even if the string is not zero terminated. Don't try to modify
1504 *si for strnlen. Update strlen_to_stridx only for strlen or if
1505 we can prove strnlen returns the same value as strlen would.
1507 2019-02-26 Martin Liska <mliska@suse.cz>
1509 * alloc-pool.h (struct pool_usage): Remove extra
1511 * bitmap.h (struct bitmap_usage): Likewise.
1512 * ggc-common.c (struct ggc_usage): Likewise.
1513 * mem-stats.h (struct mem_usage): Likewise.
1514 (mem_alloc_description::dump): Print dash lines
1515 here and repeat header at the end of a table report.
1516 It's then more readable.
1517 * tree-phinodes.c (phinodes_print_statistics): Make
1518 horizontal alignment.
1519 * tree-ssanames.c (ssanames_print_statistics): Likewise.
1520 * vec.c (struct vec_usage): Remove extra print_dash_line.
1521 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
1523 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
1525 * doc/extend.texi (__builtin_object_size):
1526 Use @pxref instead of @xref inside parenthesis.
1527 (__builtin_has_attribute): Add missing comma after @xref.
1528 (__builtin_object_size): Ditto.
1529 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
1530 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
1533 2019-02-26 Jeff Law <law@redhat.com>
1535 PR rtl-optimization/87761
1536 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
1537 detect obviously dead insns and delete them.
1539 2019-02-26 Richard Biener <rguenther@suse.de>
1541 PR tree-optimization/89505
1542 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
1543 to handle restrict pointed-to vars with multiple subvars
1546 2019-02-26 Richard Biener <rguenther@suse.de>
1548 PR tree-optimization/89489
1549 * tree-parloops.c (create_loop_fn): Copy over last_clique.
1551 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
1553 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
1554 and move around comment.
1555 <BIT_AND_EXPR>: Likewise.
1556 <BIT_NOT_EXPR>: Add specific handling for boolean types.
1558 2019-02-26 Jakub Jelinek <jakub@redhat.com>
1561 * config/i386/i386.c (remove_partial_avx_dependency): Call
1562 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
1563 after changing possibly many instructions to use that pseudo. Fix up
1564 insertion of v4sf_const0 setter at the start of bb.
1566 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
1569 * doc/extend.texi (Variadic Pointer Args): New section.
1571 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
1572 Martin Sebor <msebor@gmail.com>
1574 * common.opt (Wattribute-alias): Likewise.
1575 * doc/invoke.texi (Option Summary): List general form of
1576 -Wattribute-alias=. List positive form of -Wmissing-attributes.
1577 (-Wmissing-attributes): Invert entry, rewrite and correct default.
1578 Add cross-references.
1579 (-Wattribute-alias): Rewrite and correct default. Mention
1580 considered attributes (same as for -Wmissing-attributes).
1582 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
1584 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
1585 (_mm_cvtpd_ps): Likewise.
1586 (_mm_cvttpd_epi32): Likewise.
1589 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
1590 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
1593 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
1595 2019-02-25 Tamar Christina <tamar.christina@arm.com>
1598 * common/config/aarch64/aarch64-common.c
1599 (struct aarch64_option_extension): Add is_synthetic.
1600 (all_extensions): Use it.
1601 (TARGET_OPTION_INIT_STRUCT): Define hook.
1602 (struct gcc_targetm_common): Moved to end.
1603 (all_extensions_by_on): New.
1604 (opt_ext_cmp, typedef opt_ext): New.
1605 (aarch64_option_init_struct): New.
1606 (aarch64_contains_opt): New.
1607 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
1608 * config/aarch64/aarch64-option-extensions.def
1609 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
1610 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
1611 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
1612 Set is_synthetic to false.
1613 (crypto): Set is_synthetic to true.
1614 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
1617 2019-02-25 Tamar Christina <tamar.christina@arm.com>
1619 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
1620 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
1621 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
1622 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
1623 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
1624 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
1625 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
1626 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
1628 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
1629 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
1630 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
1631 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
1632 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
1633 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
1634 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
1635 vfmlsl_laneq_high_f16): ... To this.
1636 * config/arm/neon.md: Update comments.
1638 2019-02-25 Tamar Christina <tamar.christina@arm.com>
1640 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
1641 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
1642 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
1643 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
1644 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
1645 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
1646 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
1647 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
1649 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
1650 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
1651 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
1652 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
1653 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
1654 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
1655 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
1656 vfmlslq_laneq_high_f16): ... To this.
1658 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
1660 PR rtl-optimization/86096
1661 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
1662 comparing mw_order values.
1664 2019-02-25 Jakub Jelinek <jakub@redhat.com>
1667 * config/arm/arm.md (*subsi3_carryin_const): Use
1668 arm_neg_immediate_operand predicate instead of
1669 arm_not_immediate_operand, "L" constraint instead of "K" and
1670 print it using %n2 instead of %B2.
1671 (*subsi3_carryin_const0): New define_insn.
1672 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
1673 instead of arm_not_operand and "I" constraint instead of "K" and
1674 print it using %n3 instead of %B2. Instead of using match_dup 2 add
1675 another match_operand and in the condition check that it is negation
1677 (*subsi3_carryin_compare_const0): New define_ins.
1678 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
1679 *subsi3_carryin_const.
1680 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
1681 split into *subsi3_carryin_compare_const0 if the highpart is zero.
1684 * config/arm.vfp.md (*negdf2_vfp): Use
1685 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
1686 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
1688 2019-02-24 Jakub Jelinek <jakub@redhat.com>
1690 PR rtl-optimization/89445
1691 * simplify-rtx.c (simplify_ternary_operation): Don't use
1692 simplify_merge_mask on operands that may trap.
1693 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
1694 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
1695 second operand is CONST_VECTOR, check if any element could be zero.
1696 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
1697 their operands can trap.
1699 2019-02-23 Martin Sebor <msebor@redhat.com>
1701 * gimple-ssa-sprintf.c (target_strtol): Rename...
1702 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
1703 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
1704 check for range error.
1706 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
1709 * opts-common.c (prune_options): Also prune joined switches
1710 with Negative and RejectNegative.
1711 * config/i386/i386.opt (march=): Add Negative(march=).
1712 (mtune=): Add Negative(mtune=).
1713 * doc/options.texi: Document Negative used together with Joined
1716 2019-02-22 Martin Sebor <msebor@redhat.com>
1718 * doc/extend.texi (Other Builtins): Add
1719 __builtin_is_constant_evaluated.
1721 2019-02-22 Richard Biener <rguenther@suse.de>
1723 PR tree-optimization/87609
1724 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
1726 2019-02-22 Jeff Law <law@redhat.com>
1728 PR rtl-optimization/87761
1729 * config/mips/mips.md: Add new combiner pattern to recognize
1730 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
1732 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
1735 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
1736 destination register in peepholes generating patterns for ADDS/SUBS.
1737 (add<mode>3_compare0,
1738 *addsi3_compare0_uxtw, add<mode>3_compareC,
1739 add<mode>3_compareV_imm, add<mode>3_compareV,
1740 *adds_<optab><ALLX:mode>_<GPI:mode>,
1741 *subs_<optab><ALLX:mode>_<GPI:mode>,
1742 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
1743 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
1744 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
1745 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
1746 sub<mode>3_compare1): Allow stack pointer for source register.
1747 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
1749 2019-02-22 Martin Sebor <msebor@redhat.com>
1751 PR tree-optimization/88993
1752 PR tree-optimization/88853
1753 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
1755 (sprintf_dom_walker::call_info::is_string_func): New helper.
1756 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
1757 for formatted string functions.
1758 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
1760 2019-02-22 Martin Sebor <msebor@redhat.com>
1763 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
1764 unreachable subexpressions.
1766 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
1767 Hongtao Liu <hongtao.liu@intel.com>
1768 Sunil K Pandey <sunil.k.pandey@intel.com>
1771 * config/i386/i386-passes.def: Add
1772 pass_remove_partial_avx_dependency.
1773 * config/i386/i386-protos.h
1774 (make_pass_remove_partial_avx_dependency): New.
1775 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
1777 (pass_data_remove_partial_avx_dependency): New.
1778 (pass_remove_partial_avx_dependency): Likewise.
1779 (make_pass_remove_partial_avx_dependency): Likewise.
1780 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
1781 (*extendsfdf2): Add avx_partial_xmm_update.
1782 (truncdfsf2): Likewise.
1783 (*float<SWI48:mode><MODEF:mode>2): Likewise.
1784 (SF/DF conversion splitters): Disabled for TARGET_AVX.
1786 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
1789 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
1792 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
1795 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
1796 (PTA_SKYLAKE): Add PTA_AES.
1797 (PTA_GOLDMONT): Likewise.
1799 2019-02-22 Sudakshina Das <sudi.das@arm.com>
1801 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
1802 instruction if enabled.
1803 (aarch64_override_options): Remove reference to return address key.
1805 2019-02-22 Richard Biener <rguenther@suse.de>
1807 PR tree-optimization/89440
1808 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
1809 not necessary assert.
1811 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1814 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
1815 (oacc_replace_fn_attrib_attr): ... this new function.
1816 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
1817 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
1819 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1821 * config/arm/arm-cpus.in (ares): Rename to...
1822 (neoverse-n1): ... This. Add ares as alias.
1823 * config/arm/arm-tables.opt: Regenerate.
1824 * config/arm/arm-tune.md: Likewise.
1825 * doc/invoke.txt (ARM Options): Document neoverse-n1.
1827 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1829 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
1830 * config/aarch64/aarch64-tune.md: Regenerate.
1831 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
1833 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1835 * config/aarch64/aarch64.c (ares_tunings): Rename to...
1836 (neoversen1_tunings): ... This.
1837 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
1838 (neoverse-n1): New CPU.
1839 * config/aarch64/aarch64-tune.md: Regenerate.
1840 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
1842 2019-02-22 Richard Biener <rguenther@suse.de>
1845 * cfghooks.h (dependence_hash): New typedef.
1846 (struct copy_bb_data): New type.
1847 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
1848 (duplicate_block): Likewise.
1849 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
1850 (copy_bbs): Create and pass down copy_bb_data.
1851 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
1852 (rtl_duplicate_bb): Likewise.
1853 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
1854 remap dependence info.
1856 2019-02-22 Richard Biener <rguenther@suse.de>
1858 PR tree-optimization/87609
1859 * tree-core.h (tree_base): Document special clique values.
1860 * tree-inline.c (remap_dependence_clique): Do not use the
1861 special clique value of one.
1862 (maybe_set_dependence_info): Use clique one.
1863 (clear_dependence_clique): New callback.
1864 (compute_dependence_clique): Clear clique one from all refs
1865 before assigning it (again).
1867 2019-02-21 Martin Sebor <msebor@redhat.com>
1869 * doc/extend.texi (__clear_cache): Correct signature.
1871 2019-02-21 Ian Lance Taylor <iant@golang.org>
1874 * varasm.c (decode_addr_const): Call lookup_constant_def rather
1875 than output_constant_def.
1876 (add_constant_to_table): New static function.
1877 (output_constant_def): Call add_constant_to_table.
1878 (tree_output_constant_def): Likewise.
1880 2019-02-21 Jakub Jelinek <jakub@redhat.com>
1883 * builtins.c (fold_builtin_arith_overflow): If first two args are
1884 INTEGER_CSTs, set intres and ovfres to constants rather than calls
1887 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
1890 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
1891 error for -mindirect-branch/-mfunction-return with incompatible
1894 2019-02-21 Jakub Jelinek <jakub@redhat.com>
1897 * constraints.md (q): Remove.
1898 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
1901 2019-02-21 Martin Jambor <mjambor@suse.cz>
1904 * omp-general.c (omp_extract_for_data): Removed a duplicate call
1905 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
1906 (omp_adjust_for_condition): ...here. Added necessary parameters.
1907 * omp-general.h (omp_adjust_for_condition): Updated declaration.
1908 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
1909 proper values to new parameters of omp_adjust_for_condition.
1911 2019-02-20 Jakub Jelinek <jakub@redhat.com>
1914 * expr.c (expand_assignment): If result is a MEM, use change_address
1915 instead of simplify_gen_subreg.
1917 2019-02-20 Jakub Jelinek <jakub@redhat.com>
1918 David Malcolm <dmalcolm@redhat.com>
1921 * fold-const.c (decode_field_reference): Return NULL_TREE if
1922 lang_hooks.types.type_for_size returns NULL. Check it before
1923 overwriting *exp_. Use return NULL_TREE instead of return 0.
1925 2019-02-20 Jakub Jelinek <jakub@redhat.com>
1929 * toplev.c (do_compile): Double the emin/emax exponents to workaround
1932 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
1935 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
1936 TARGET_SSE in addition to TARGET_SSE_MATH.
1938 (ix86_excess_precision): Ditto.
1939 (ix86_float_exceptions_rounding_supported_p): Ditto.
1940 (use_rsqrt_p): Ditto.
1941 * config/i386/sse.md (rsqrt<mode>2): Ditto.
1943 2019-02-20 David Malcolm <dmalcolm@redhat.com>
1946 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
1947 linenum_arith_t when determining if two adjacent line spans are
1948 close enough to merge.
1949 (diagnostic_show_locus): Use linenum_arith_t when iterating over
1950 lines within each line_span.
1952 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
1955 * lra-constraints.c(uses_hard_regs_p): Fix handling of
1956 paradoxical SUBREGS.
1958 2019-02-20 Li Jia He <helijia@linux.ibm.com>
1961 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
1962 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
1963 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
1966 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
1968 * config/gcn/gcn.c (print_operand): Fix typo.
1970 2019-02-19 Richard Biener <rguenther@suse.de>
1973 * toplev.c (do_compile): Initialize mpfr's exponent range
1974 based on available float modes.
1976 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
1978 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
1979 as long as the epilogue isn't completed.
1981 2019-02-18 Martin Sebor <msebor@redhat.com>
1983 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
1984 __has_cpp_attribute, and __has_include.
1986 2019-02-18 Martin Sebor <msebor@redhat.com>
1988 * doc/invoke.texi (-Wreturn-type): Correct and expand.
1990 2019-02-18 Martin Sebor <msebor@redhat.com>
1993 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
1995 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
1997 2019-02-18 Richard Biener <rguenther@suse.de>
1999 PR tree-optimization/89296
2000 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
2001 of no-warning flag to cases that might emit the bogus warning.
2003 2019-02-18 Jakub Jelinek <jakub@redhat.com>
2006 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
2008 * config/arm/vfp.md (*movdi_vfp): Likewise.
2009 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
2010 "q" constraint for operands[0].
2013 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
2014 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
2015 pattern in a temporary buffer.
2016 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
2017 than 64-operands[2].
2020 * config/s390/s390.c (s390_indirect_branch_attrvalue,
2021 s390_indirect_branch_settings): Define unconditionally.
2022 (s390_set_current_function): Likewise, but guard the whole body except
2023 the s390_indirect_branch_settings call with
2024 #if S390_USE_TARGET_ATTRIBUTE.
2025 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
2027 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
2028 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
2029 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
2030 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
2031 HOST_WIDE_INT_1U instead of 1ULL.
2032 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
2033 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
2034 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
2035 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
2037 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
2040 2019-02-18 Martin Jambor <mjambor@suse.cz>
2042 PR tree-optimization/89209
2043 * tree-sra.c (create_access_replacement): New optional parameter
2044 reg_tree. Use it as a type if non-NULL and access type is not of
2046 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
2047 to create_access_replacement.
2048 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
2049 Check lacc is non-NULL before attempting to re-create it on the RHS.
2051 2019-02-18 Martin Liska <mliska@suse.cz>
2054 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
2056 (symbol_table::free_edge): Recycle m_summary_id.
2057 * cgraph.h (get_summary_id): New.
2058 (symbol_table::release_symbol): Set m_summary_id to -1
2060 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
2061 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
2062 function_summary to fast_function_summary.
2063 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
2064 * ipa-pure-const.c (class funct_state_summary_t):
2065 Switch from function_summary to fast_function_summary.
2066 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
2067 (class ipa_ref_opt_summary_t): Switch from function_summary
2068 to fast_function_summary.
2069 * symbol-summary.h (class function_summary_base): New class
2070 that is created from base of former function_summary.
2071 (function_summary_base::unregister_hooks): New.
2072 (class function_summary): Inherit from function_summary_base.
2073 (class call_summary_base): New class
2074 that is created from base of former call_summary.
2075 (class call_summary): Inherit from call_summary_base.
2076 (struct is_same): New.
2077 (class fast_function_summary): New summary class.
2078 (class fast_call_summary): New summary class.
2079 * vec.h (vec_safe_grow_cleared): New function.
2081 2019-02-18 Martin Liska <mliska@suse.cz>
2083 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
2084 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
2085 * doc/tm.texi: Document new target hook.
2086 * doc/tm.texi.in: Likewise.
2087 * target.def: Add new target macro.
2088 * gcc.c (find_fortran_preinclude_file): Do not search multilib
2091 2019-02-17 Alan Modra <amodra@gmail.com>
2094 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
2095 output reg on add insn.
2096 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
2098 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
2101 * config/i386/sse.md (ssedoublemode): Remove V4HI.
2102 (PMULHRSW): Likewise.
2103 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
2105 (ssse3_pmulhrswv4hi3): New expander.
2107 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
2109 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
2110 MMX. Add isa attribute.
2112 2019-02-16 Jakub Jelinek <jakub@redhat.com>
2114 PR rtl-optimization/66152
2115 * builtins.h (c_readstr): Declare.
2116 * builtins.c (c_readstr): Remove forward declaration. Add
2117 null_terminated_p argument, if false, read all bytes from the
2118 string instead of stopping after '\0'.
2119 * expr.c (string_cst_read_str): New function.
2120 (store_expr): Use string_cst_read_str instead of
2121 builtin_strncpy_read_str. Try to store by pieces the whole
2122 exp_len first, and only if that fails, split it up into
2123 store by pieces followed by clear_storage. Formatting fix.
2125 * config/i386/i386.md (*movqi_internal): Remove static from
2126 buf variable. Use output_asm_insn (buf, operands); return "";
2127 instead of return buf;.
2128 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
2129 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
2130 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
2132 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
2134 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
2135 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
2136 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
2137 (CC1_SPEC): Likewise.
2138 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
2140 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
2142 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
2143 the base address on 64-bit strict-alignment platforms.
2145 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
2147 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
2149 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
2151 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
2153 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
2155 PR rtl-optimization/88308
2156 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
2157 on copied instruction.
2159 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
2161 * final.c (insn_current_reference_address): Replace test on JUMP_P
2162 with test on jump_to_label_p.
2163 * config/visium/visium-passes.def: New file.
2164 * config/visium/t-visium (PASSES_EXTRA): Define.
2165 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
2166 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
2167 (TRAMPOLINE_ALIGNMENT): Define.
2168 * config/visium/visium.c (visium_option_override): Do not register
2169 the machine-specific reorg pass here.
2170 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
2172 (output_branch): Adjust threshold for long branch instruction.
2173 * config/visium/visium.md (cpu): Move around.
2174 (length): Adjust for the GR6.
2176 2019-02-15 Richard Biener <rguenther@suse.de>
2177 Jakub Jelinek <jakub@redhat.com>
2179 PR tree-optimization/89278
2180 * tree-loop-distribution.c: Include tree-eh.h.
2181 (generate_memset_builtin, generate_memcpy_builtin): Call
2182 rewrite_to_non_trapping_overflow on builtin->size before passing it
2183 to force_gimple_operand_gsi.
2185 2019-02-15 Jakub Jelinek <jakub@redhat.com>
2188 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
2190 * opth-gen.awk: Likewise.
2192 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
2194 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
2195 Enable MMX, SSE and SSE2 by default.
2196 * config/i386/i386.c (ix86_option_override_internal): Do not
2197 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
2199 2019-02-14 Jakub Jelinek <jakub@redhat.com>
2201 PR rtl-optimization/89354
2202 * combine.c (make_extraction): Punt if extraction_mode is narrower
2205 2019-02-14 Maya Rashish <coypu@sdf.org>
2207 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
2208 * config/netbsd-d.c: New file.
2209 * config/t-netbsd: Add netbsd-d.o
2211 2018-02-14 Steve Ellcey <sellcey@marvell.com>
2213 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
2214 affects_type_identity to true for aarch64_vector_pcs.
2215 (aarch64_comp_type_attributes): New function.
2216 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
2218 2019-02-14 Tamar Christina <tamar.christina@arm.com>
2221 * config/arm/iterators.md (ANY64): Add V4HF.
2223 2019-02-14 Martin Liska <mliska@suse.cz>
2225 PR rtl-optimization/89242
2226 * dce.c (delete_unmarked_insns): Call free_dominance_info we
2227 process a transformation.
2229 2019-02-14 Jakub Jelinek <jakub@redhat.com>
2231 PR tree-optimization/89314
2232 * fold-const.c (fold_binary_loc): Cast strlen argument to
2233 const char * before dereferencing it. Formatting fixes.
2236 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
2238 2019-02-13 Ian Lance Taylor <iant@golang.org>
2240 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
2241 and set current index for other optimizations.
2243 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
2245 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
2246 nonimmediate_operand as operand 2 predicate.
2247 (vec_set<VF2_512_256:mode>_0): Ditto.
2248 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
2249 (*vec_concatv2si): Remove alternative 2.
2250 (*vec_concatv4si_0): Use vm constraint for alternative 0.
2251 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
2252 (vec_concatv2di): Split alternatives 4,5,6 to ...
2253 (*vec_concatv2di_0) ... new pattern.
2255 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
2258 * config/arm/arm.c (ldm_stm_operation_p) Set
2259 addr_reg_in_reglist correctly for first register.
2260 (load_multiple_sequence): Remove dead base check.
2261 (gen_ldm_seq): Correctly set write_back for Thumb-1.
2263 2019-02-13 Tamar Christina <tamar.christina@arm.com>
2266 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
2267 Expose as @aarch64_pred_mov.
2268 * config/aarch64/aarch64.c (aarch64_classify_address):
2269 Use expand_insn which legitimizes operands.
2271 2019-02-13 Martin Liska <mliska@suse.cz>
2273 * builtins.h (expand_builtin_with_bounds): Remove declaration.
2274 * calls.c (struct arg_data): Remove special_slot, pointer_arg
2275 and pointer_offset fields.
2276 (initialize_argument_information): Remove usage of dead
2278 * cgraph.h (struct cgraph_thunk_info): Remove
2279 add_pointer_bounds_args.
2280 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
2282 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
2284 * config/i386/i386.c (ix86_function_arg_advance): Remove
2286 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
2287 (def_builtin): Remove usage of dead
2289 (ix86_add_new_builtins): Likewise.
2290 * ipa-fnsummary.c (compute_fn_summary): Likewise.
2291 * ipa-icf.c (sem_function::equals_wpa): Likewise.
2292 (sem_function::init): Likewise.
2293 (sem_variable::merge): Likewise.
2294 * ipa-visibility.c (function_and_variable_visibility): Likewise.
2295 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
2296 * lto-cgraph.c (lto_output_node): Likewise.
2297 (lto_output_varpool_node): Likewise.
2298 (input_node): Likewise.
2299 (input_varpool_node): Likewise.
2300 * lto-streamer-out.c (lto_output): Likewise.
2301 * tree-inline.c (expand_call_inline): Remove usage of
2303 * tree-inline.h (struct copy_body_data): Likewise.
2304 * varpool.c (varpool_node::dump): Likewise.
2306 2019-02-13 Jakub Jelinek <jakub@redhat.com>
2309 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
2310 into pt->vars_contains_escaped_heap instead of setting
2311 pt->vars_contains_escaped_heap to it.
2314 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
2315 INTVAL (size), compare it to GET_MODE_MASK instead of
2316 1 << GET_MODE_BITSIZE.
2319 * config/i386/predicates.md (x86_64_immediate_operand): Allow
2320 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
2323 2019-02-13 Martin Liska <mliska@suse.cz>
2326 * cfgrtl.c (remove_barriers_from_footer): New function.
2327 (try_redirect_by_replacing_jump): Use it.
2328 (cfg_layout_redirect_edge_and_branch): Likewise.
2330 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
2332 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
2333 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
2334 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
2335 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
2336 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
2337 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
2339 * config/rs6000/rs6000.c (builtin_function_type)
2340 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
2341 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
2342 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
2343 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
2344 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
2346 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
2348 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
2349 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
2351 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
2354 * config/i386/i386.md (*movoi_internal_avx): Revert revision
2355 268678 and revision 268657.
2356 (*movti_internal): Likewise.
2358 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
2361 * config/s390/s390.c (s390_decompose_address): Update comment.
2362 (s390_check_qrst_address): Reject invalid address forms after
2365 2019-02-12 Martin Liska <mliska@suse.cz>
2368 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
2369 we need default values of funct_state for a function that
2372 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
2374 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
2375 the object to pick the size of stores on strict-alignment platforms.
2377 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
2378 (*movdi_insn_sp32): Likewise.
2379 (*movdi_insn_sp64): Likewise.
2381 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
2384 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
2385 types that needs constructiong.
2386 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
2388 2019-02-12 Richard Biener <rguenther@suse.de>
2390 PR tree-optimization/89253
2391 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
2394 2019-02-11 David Malcolm <dmalcolm@redhat.com>
2397 * input.c (selftest::test_line_offset_overflow): New selftest.
2398 (selftest::input_c_tests): Call it.
2400 2019-02-11 Martin Sebor <msebor@redhat.com>
2402 PR tree-optimization/88771
2403 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
2404 when -Wstringop-overflow is set.
2405 (builtin_memref::builtin_memref): Adjust excessive upper bound
2406 only when lower bound is not excessive.
2407 (maybe_diag_overlap): Detect and diagnose excessive bounds via
2408 -Wstringop-ovefflow.
2409 (maybe_diag_offset_bounds): Rename...
2410 (maybe_diag_access_bounds): ...to this.
2411 (check_bounds_or_overlap): Adjust for name change above.
2413 2019-02-11 Martin Sebor <msebor@redhat.com>
2416 * builtins.c (max_object_size): Move from here...
2417 * builtins.h (max_object_size): ...and here...
2418 * tree.c (max_object_size): ...to here...
2419 * tree.h (max_object_size): ...and here.
2421 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
2423 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
2424 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
2425 for correct semantics.
2427 2019-02-11 Alan Modra <amodra@gmail.com>
2429 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
2430 -mlongcall and -mpltseq.
2431 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
2432 (RS/6000 and PowerPC Options <-mpltseq>): Document.
2433 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
2434 * config/rs6000/sysv4.opt (mpltseq): New option.
2435 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
2436 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
2437 support is lacking. Don't allow -mpltseq with -mbss-plt.
2438 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
2439 -mpltseq given for ELFv1.
2440 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
2441 Only use UNSPEC_PLTSEQ for inline PLT calls.
2442 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
2443 use UNSPEC_PLTSEQ for inline PLT calls.
2444 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
2445 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
2446 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
2447 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
2448 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
2449 (pltseq_mtctr_<mode>): Likewise.
2451 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2453 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
2455 * configure: Regenerate.
2457 2019-02-11 Jakub Jelinek <jakub@redhat.com>
2460 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
2463 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
2465 * function.c (assign_parm_setup_block): Use the stored
2466 size, not the passed size, when allocating stack-space,
2467 also for a parameter with alignment larger than
2468 MAX_SUPPORTED_STACK_ALIGNMENT.
2470 2019-02-11 Martin Liska <mliska@suse.cz>
2473 * ipa-cp.c (build_toporder_info): Remove usage of a param.
2474 * ipa-inline.c (inline_small_functions): Likewise.
2475 * ipa-pure-const.c (propagate_pure_const): Likewise.
2476 (propagate_nothrow): Likewise.
2477 * ipa-reference.c (propagate): Likewise.
2478 * ipa-utils.c (struct searchc_env): Remove unused field.
2479 (searchc): Always search across AVAIL_INTERPOSABLE.
2480 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
2481 the only called IPA pure const can properly not propagate
2482 across interposable boundary.
2483 * ipa-utils.h (ipa_reduced_postorder): Remove param.
2485 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
2487 * config/nds32/nds32.md (call_internal, call_value_internal,
2488 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
2490 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
2492 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
2495 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
2497 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
2500 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
2502 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
2504 2019-02-10 Jakub Jelinek <jakub@redhat.com>
2506 PR tree-optimization/89268
2507 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
2508 if preds is non-NULL.
2510 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2513 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
2516 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
2518 * config/nds32/nds32.md (trap): New pattern.
2520 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
2522 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
2525 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
2527 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
2530 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2532 * ipa-visibility.c (localize_node): Also do not localize
2533 LDPR_PREVAILING_DEF_IRONLY_EXP.
2535 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2538 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
2539 instead of type_with_linkage.
2541 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2544 * params.def (uninlined-function-insns, uninlined-function-time,
2545 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
2546 bound so we don't get overflows.
2548 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
2550 * config/rs6000/rs6000-string.c (expand_compare_loop,
2551 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
2554 2019-02-09 Jakub Jelinek <jakub@redhat.com>
2557 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2558 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
2559 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
2561 2019-02-09 Alan Modra <amodra@gmail.com>
2564 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
2565 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
2568 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
2571 * lra-constraints.c (process_alt_operands): Don't increase reject
2572 for memory when offset memory is required.
2574 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
2576 * config/s390/vector.md: Implement vector copysign.
2578 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
2580 * expr.c (expand_constructor): Correct indentations.
2582 2019-02-08 Richard Biener <rguenther@suse.de>
2584 PR tree-optimization/89247
2585 * tree-if-conv.c: Include tree-cfgcleanup.h.
2586 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
2587 (tree_if_conversion): Pass through predicate vector.
2588 (pass_if_conversion::execute): Do CFG cleanup and SSA update
2589 inline, see if any if-converted loops we refrece in
2590 LOOP_VECTORIZED calls vanished and fixup.
2591 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
2593 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
2595 * config/s390/constraints.md (jdd): New constraint.
2597 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
2600 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
2601 upper 16 vector registers without TARGET_AVX512VL.
2602 (*movti_internal): Likewise.
2604 2019-02-08 Jakub Jelinek <jakub@redhat.com>
2606 PR rtl-optimization/89234
2607 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
2608 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
2609 (copy_reg_eh_region_note_backward): Likewise.
2611 2019-02-08 Richard Biener <rguenther@suse.de>
2614 * tree-data-ref.c (initialize_matrix_A): Fail if constant
2616 (analyze_subscript_affine_affine): Handle failure from
2617 initialize_matrix_A.
2619 2019-02-08 Jakub Jelinek <jakub@redhat.com>
2621 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
2624 2019-02-07 David Malcolm <dmalcolm@redhat.com>
2626 PR tree-optimization/86637
2627 PR tree-optimization/89235
2628 * tree-vect-loop.c (optimize_mask_stores): Add an
2629 auto_purge_vect_location sentinel to ensure that vect_location is
2632 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
2633 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
2634 to ensure that vect_location is purged on exit.
2635 (pass_slp_vectorize::execute): Likewise, replacing the manual
2637 * tree-vectorizer.h (class auto_purge_vect_location): New class.
2639 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2641 * config/aarch64/iterators.md (max_opp): New code_attr.
2642 (USMAX): New code iterator.
2643 * config/aarch64/predicates.md (aarch64_smin): New predicate.
2644 (aarch64_smax): Likewise.
2645 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
2646 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
2649 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
2652 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
2653 for TARGET_AVX512VL.
2654 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
2656 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
2658 * config/s390/s390-builtin-types.def: Add new types.
2659 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
2660 (s390_vec_xlw4): Make the memory operand into a const pointer.
2661 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
2663 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
2664 a new vector type with the alignment of the scalar memory operand.
2666 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
2667 Jakub Jelinek <jakub@redhat.com>
2670 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
2671 arm_count_ldrdstrd_insns): New declarations.
2672 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
2674 (valid_operands_ldrd_strd): New function.
2675 (arm_count_ldrdstrd_insns): New function.
2676 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
2677 sets instead of single DImode set and define new insns to match this.
2679 2019-02-07 Tamar Christina <tamar.christina@arm.com>
2681 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
2682 Make it a C initializer.
2684 2019-02-07 Tamar Christina <tamar.christina@arm.com>
2687 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
2689 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2691 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
2692 Use neon_dot<q> for type.
2693 (neon_<sup>dot_lane<vsi2qi>): Likewise.
2695 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2697 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
2698 Use neon_dot<q> for type.
2699 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
2700 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
2702 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
2704 PR rtl-optimization/89225
2705 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
2708 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
2710 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
2711 after restoring registers saved to allocate the frame on Windows.
2713 2019-02-06 Richard Biener <rguenther@suse.de>
2715 PR tree-optimization/89182
2716 * graphite.h (cached_scalar_evolution_in_region): Declare.
2717 * graphite.c (struct seir_cache_key): New.
2718 (struct sese_scev_hash): Likewise.
2719 (seir_cache): New global.
2720 (cached_scalar_evolution_in_region): New function.
2721 (graphite_transform_loops): Allocate and release seir_cache.
2722 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
2723 cached_scalar_evolution_in_region.
2724 * graphite-scop-detection.c (scop_detection::can_represent_loop):
2726 (scop_detection::graphite_can_represent_expr: Use
2727 cached_scalar_evolution_in_region.
2728 (scop_detection::stmt_simple_for_scop_p): Likewise.
2729 (find_params_in_bb): Likewise.
2730 (gather_bbs::before_dom_children): Likewise.
2731 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
2732 (add_loop_constraints): Likewise.
2734 2019-02-06 Jakub Jelinek <jakub@redhat.com>
2737 * fold-const-call.c (fold_const_vec_convert): Pass true as last
2738 operand to new_unary_operation only if both element types are integral
2739 and it isn't a widening conversion. Return NULL_TREE if
2740 new_unary_operation failed.
2742 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
2745 * config/s390/s390.md: Remove load and test FP splitter.
2747 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
2750 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
2751 expand_compare_loop, expand_block_compare_gpr,
2752 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
2753 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
2754 #include "profile-count.h" and "predict.h" for types and functions
2755 needed to work with REG_BR_PROB notes.
2757 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
2760 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
2761 for the long branch case.
2763 2019-02-05 Jakub Jelinek <jakub@redhat.com>
2766 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
2767 can throw, non-call exceptions are enabled and we can't delete
2768 dead exceptions or alter cfg. Set must_clean if
2769 delete_insn_and_edges returns true, don't set it blindly for calls.
2770 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
2772 PR rtl-optimization/89195
2773 * combine.c (make_extraction): For MEMs, don't extract bytes outside
2774 of the original MEM.
2776 2019-02-05 Martin Liska <mliska@suse.cz>
2778 PR gcov-profile/89000
2779 * gcov.c (function_summary): Remove argument.
2780 (file_summary): New function.
2781 (print_usage): Replace tabs with spaces.
2782 (generate_results): Use new function file_summary.
2784 2019-02-05 Jakub Jelinek <jakub@redhat.com>
2787 * optabs.c (prepare_cmp_insn): Pass x and y to
2788 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
2790 2019-02-05 Richard Biener <rguenther@suse.de>
2793 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
2794 (struct bitmap_element): Drop chain_prev so we properly recurse on
2795 the prev member, supporting tree views.
2796 (struct bitmap_head): GTY skip the obstack member.
2798 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
2801 * doc/extend.texi (Vector Extensions): Add an example of using vector
2802 types together with x86 intrinsics.
2804 2019-02-04 Alan Modra <amodra@gmail.com>
2806 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
2807 str[] size to 160, and comment.
2809 2019-02-04 Alan Modra <amodra@gmail.com>
2811 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
2812 (rs6000_pltseq_template): Guard output of TLS markers with
2814 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
2815 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
2816 to use inline PLT sequences.
2817 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
2818 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
2819 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
2821 2019-02-04 Martin Liska <mliska@suse.cz>
2824 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
2825 out when ipa_fn_summaries does not contain entry for callee.
2827 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
2829 * config/sparc/sparc.h: Remove superfluous blank lines.
2830 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
2831 (got_register_rtx): ...this.
2832 (sparc_got): Adjust to above renaming.
2833 (sparc_tls_got): Likewise.
2834 (sparc_delegitimize_address): Likewise.
2835 (sparc_output_mi_thunk): Likewise.
2836 (sparc_init_pic_reg): Likewise.
2837 (save_local_or_in_reg_p): Fix test on the GOT register.
2838 (USE_HIDDEN_LINKONCE): Move around.
2839 (get_pc_thunk_name): Likewise.
2840 (gen_load_pcrel_sym): Likewise.
2841 (load_got_register): Likewise.
2843 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
2845 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
2846 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
2848 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
2850 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
2853 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
2855 * config.gcc (with_nds32_lib, glibc):
2856 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
2857 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
2858 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
2860 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
2863 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
2864 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
2865 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
2866 (*rcpsf2_sse): Ditto.
2867 (*rsqrtsf2_sse): Ditto.
2868 (sse4_1_round<mode<2): Ditto.
2870 2019-02-03 Richard Biener <rguenther@suse.de>
2873 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
2876 2019-02-02 Jakub Jelinek <jakub@redhat.com>
2879 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2880 Punt with warning on aggregate return or argument types. Ignore
2881 type/mode checking for uniform arguments.
2883 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
2885 * combine.c (try_combine): Do not print "Can't combine" messages unless
2886 printing failed combination attempts.
2888 2019-02-01 Martin Jambor <mjambor@suse.cz>
2891 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
2892 segment and global segment variables before making them static.
2894 2019-02-01 Martin Jambor <mjambor@suse.cz>
2896 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
2897 missed optimization dump with dump_enabled_p.
2899 2019-02-01 Richard Biener <rguenther@suse.de>
2902 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
2903 the instantiate cache.
2904 (instantiate_scev_binary): Elide second operand procesing
2905 if equal to the first.
2906 * tree-chrec.c (chrec_contains_symbols): Add visited set.
2907 (chrec_contains_undetermined): Likewise.
2908 (tree_contains_chrecs): Likewise.
2910 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
2912 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
2914 2019-02-01 Jakub Jelinek <jakub@redhat.com>
2916 PR tree-optimization/89143
2917 * wide-int-range.h (wide_int_range_absu): Declare.
2918 * wide-int-range.cc (wide_int_range_absu): New function.
2919 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
2921 PR tree-optimization/88107
2922 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
2923 instead of assertion that eh_region_outermost is non-NULL, if it
2924 is NULL, set *ALL to true and return NULL.
2925 (move_sese_region_to_fn): Adjust caller, if all is set, call
2926 duplicate_eh_regions with NULL region.
2928 2019-02-01 Richard Biener <rguenth@suse.de>
2930 PR rtl-optimization/88593
2931 * mode-switching.c (optimize_mode_switching): Free dominators before
2932 calling cleanup_cfg.
2934 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
2936 PR tree-optimization/88932
2937 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
2939 2019-01-31 Jakub Jelinek <jakub@redhat.com>
2942 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
2943 bogus clang warning.
2945 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
2948 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
2949 alternative to avoid partial SSE register stall for TARGET_AVX.
2950 (truncdfsf2): Ditto.
2951 (sse4_1_round<mode>2): Ditto.
2953 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
2955 PR tree-optimization/89008
2956 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
2957 process anything of the form X * 0.
2959 2019-01-31 Richard Biener <rguenther@suse.de>
2961 PR tree-optimization/89135
2962 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
2963 with abnormal preds.
2965 2019-01-31 Jakub Jelinek <jakub@redhat.com>
2968 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
2969 always_inline callees into no_sanitize_address callers.
2971 2019-01-31 Richard Biener <rguenther@suse.de>
2973 PR rtl-optimization/89115
2974 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
2976 2019-01-30 Martin Sebor <msebor@redhat.com>
2979 * doc/extend.texi (cast to a union): Correct and expand.
2981 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
2983 PR rtl-optimization/87246
2984 * lra-constraints.c (simplify_operand_subreg): Reload memory
2985 in subreg if the address became invalid.
2987 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
2990 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
2991 Disable for little-endian.
2993 2019-01-30 Richard Biener <rguenther@suse.de>
2995 PR rtl-optimization/89115
2996 * opts.c (default_options_optimization): Reduce
2997 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
2998 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
3001 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
3003 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
3004 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
3005 type of vector element when vec_extract is implemented by direct
3008 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
3010 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
3012 2019-01-30 Richard Biener <rguenther@suse.de>
3014 PR tree-optimization/89111
3015 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
3016 canonicalization to appropriately sized access types.
3018 2019-01-30 Jakub Jelinek <jakub@redhat.com>
3021 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
3022 for arguments to functions that are TU-local and shouldn't be
3023 referenced by assembly.
3025 2019-01-30 Ulrich Drepper <drepper@redhat.com>
3027 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
3030 2019-01-29 Martin Sebor <msebor@redhat.com>
3033 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
3035 2019-01-29 Jakub Jelinek <jakub@redhat.com>
3039 * omp-simd-clone.c (simd_clone_clauses_extract)
3040 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
3041 OMP_CLAUSE_ALIGNED_ALIGNMENT.
3043 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
3045 * config.gcc: Force .init_array for ARC.
3047 2019-01-29 Richard Biener <rguenther@suse.de>
3050 * dwarf2out.c (collect_skeleton_dies): New helper.
3051 (copy_decls_for_unworthy_types): Call it.
3052 (build_abbrev_table): Assert we do not try to replace
3053 DW_AT_signature refs with local refs.
3055 2019-01-28 Jakub Jelinek <jakub@redhat.com>
3058 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
3059 for lastprivate/linear IV, push gimplify context around gimplify_assign
3060 and, if it needed any temporaries, pop it into a gimple bind around the
3063 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
3065 * common.opt (-Wattribute-alias): Remove "no-" from name.
3066 Make -Wattribute-alias command line option and
3067 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
3069 2019-01-28 Jakub Jelinek <jakub@redhat.com>
3072 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
3073 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
3075 (bmi2): Add missing @opindex.
3076 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
3077 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
3078 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
3079 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
3080 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
3081 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
3082 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
3083 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
3084 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
3085 xsavec, xsaveopt and xsaves options.
3087 2019-01-28 Richard Biener <rguenther@suse.de>
3090 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
3093 2019-01-28 Richard Biener <rguenther@suse.de>
3095 PR tree-optimization/88739
3096 * tree-cfg.c (verify_types_in_gimple_reference): Verify
3097 BIT_FIELD_REFs only are applied to mode-precision operands
3098 when they are integral.
3099 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
3100 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
3101 BIT_FIELD_REFs of non-mode-precision integral operands.
3103 2019-01-27 Jakub Jelinek <jakub@redhat.com>
3106 * config/i386/sse.md
3107 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
3108 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
3109 first constants in pairs are multiples of 2. Formatting fixes.
3110 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
3111 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
3112 first constants in each quadruple are multiples of 4. Formatting fixes.
3114 2019-01-26 Martin Jambor <mjambor@suse.cz>
3117 * tree-inline.c: Include tree-cfgcleanup.h.
3118 (delete_unreachable_blocks_update_callgraph): Move...
3119 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
3120 ...here, make externally visible, make second argument bool, adjust
3122 * tree-cfgcleanup.c: Include cgraph.h.
3123 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
3125 * ipa-prop.c: Include tree-cfgcleanup.h.
3126 (ipcp_transform_function): Call
3127 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
3129 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
3131 PR rtl-optimization/88846
3132 * ira.c (process_set_for_memref_referenced_p): New.
3133 (memref_referenced_p): Add new param. Use
3134 process_set_for_memref_referenced_p. Add new switch cases.
3135 (memref_used_between_p): Pass new arg to memref_referenced_p.
3137 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
3140 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
3141 argument ABI_BREAK. Set to true if the calculated alignment has
3142 changed in gcc-9. Check bit-fields for their base type alignment.
3143 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
3144 (aarch64_function_arg_boundary): Likewise.
3145 (aarch64_gimplify_va_arg_expr): Likewise.
3147 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
3150 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
3151 instead of accessing TREE_INT_CST_ELT directly.
3153 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
3155 * doc/sourcebuild.texi (Environment attributes): Add fenv and
3156 fenv_exceptions description.
3158 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
3160 PR rtl-optimization/87763
3161 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
3162 Allow SUBREG when matching CC_NZmode compare.
3164 2019-01-25 Richard Biener <rguenther@suse.de>
3166 PR tree-optimization/89049
3167 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3168 Look at the pattern stmt to determine if the stmt is vectorized.
3170 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
3172 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
3173 (pred_mov<mode>): Handle all-register forms using both a new
3174 alternative and a split.
3176 2019-01-25 Richard Biener <rguenther@suse.de>
3178 PR tree-optimization/86865
3179 * graphite-scop-detection.c (scop_detection::can_represent_loop):
3180 Reject non-do-while loops.
3182 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
3184 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
3185 * config/rs6000/constraints.md (Q constraint): Use REG_P.
3186 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
3187 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
3188 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
3189 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3190 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
3191 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
3192 vlogical_operand, gpc_reg_operand, int_reg_operand,
3193 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
3194 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
3195 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
3196 (save_world_operation, restore_world_operation, lmw_operation,
3197 stmw_operation): Use MEM_P and REG_P.
3198 (tie_operand): Use MEM_P.
3199 (vrsave_operation, crsave_operation): Use REG_P.
3200 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
3201 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
3202 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
3203 (call_operand): Use HARD_REGISTER_P.
3204 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
3206 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
3207 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
3208 quad_aligned_load_p, replace_swapped_aligned_store,
3209 recombine_lvx_pattern, replace_swapped_aligned_load,
3210 recombine_stvx_pattern): Use MEM_P.
3211 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
3212 Use MEM_P and SYMBOL_REF_P.
3213 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
3214 (insn_is_swappable_p): Use REG_P and MEM_P.
3215 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
3216 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
3218 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
3220 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
3222 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
3223 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
3224 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
3225 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
3227 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
3228 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
3229 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
3230 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
3231 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
3232 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
3233 rs6000_split_logical_di): Use CONST_INT_P.
3234 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
3235 REG_P and SYMBOL_REF_P.
3236 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
3237 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
3238 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
3239 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
3240 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
3241 (small_data_operand, print_operand_address): Use CONST_INT_P and
3243 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
3244 (rs6000_init_hard_regno_mode_ok, direct_move_p):
3245 Use HARD_REGISTER_NUM_P.
3246 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
3247 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
3248 SUBREG_P and SYMBOL_REF_P.
3249 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
3250 and HARD_REGISTER_NUM_P.
3251 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
3253 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
3254 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
3256 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
3257 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
3258 find_addr_reg): Use REG_P.
3259 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
3260 (rs6000_emit_le_vsx_move): Use SUBREG_P.
3261 (offsettable_ok_by_alignment, constant_pool_expr_p,
3262 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
3263 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
3264 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
3265 rs6000_assemble_integer, create_TOC_reference,
3266 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
3267 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
3268 (rs6000_split_vec_extract_var): Use reg_or_subregno.
3269 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
3270 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
3271 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3272 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3273 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
3274 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
3275 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
3276 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
3277 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
3278 and cbranch<mode>4): Use CONST_INT_P.
3279 (multiple define_splits): Use REG_P and SUBREG_P.
3280 (define_expands call, call_value): Use MEM_P.
3281 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
3282 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
3283 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
3284 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
3285 and HARD_REGISTER_NUM_P.
3286 (multiple define_splits): Use HARD_REGISTER_NUM_P.
3288 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3290 PR rtl-optimization/88948
3291 * rtl.h (prepare_copy_insn): New prototype.
3292 * gcse.c (prepare_copy_insn): New function, split out from
3293 process_insert_insn.
3294 (process_insert_insn): Use prepare_copy_insn.
3295 * store-motion.c (replace_store_insn): Use prepare_copy_insn
3296 instead of gen_move_insn.
3298 2019-01-24 Jakub Jelinek <jakub@redhat.com>
3301 * config/i386/i386.c (ix86_pic_register_p): Return true for
3304 PR tree-optimization/88964
3305 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
3306 punt if HONOR_SNANS (chrec).
3309 * tree-nested.c (convert_nonlocal_reference_stmt,
3310 convert_local_reference_stmt, convert_tramp_reference_stmt,
3311 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
3312 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
3315 PR tree-optimization/89027
3316 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
3317 for "omp simd array" variables.
3319 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
3322 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
3323 force the alignment of m_val.
3325 2019-01-24 Richard Biener <rguenther@suse.de>
3328 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
3329 When in "legacy" debug mode make sure to reset self-origins.
3331 2019-01-24 Martin Liska <mliska@suse.cz>
3333 PR gcov-profile/88994
3334 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
3335 result will be always smaller or equal to the original.
3336 * gcov.c (mangle_name): Fix else branch where we should
3337 also copy to PTR and shift the pointer.
3339 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
3341 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
3342 * vr-values.c (find_case_label_ranges): Fix a comment typo.
3344 2019-01-23 Bin Cheng <bin.cheng@arm.com>
3345 Steve Ellcey <sellcey@marvell.com>
3348 * recog.c (address_operand): Return false on wrong mode for address.
3349 (constrain_operands): Check for mode with 'p' constraint.
3351 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
3354 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
3355 Disparage MMX alternative.
3356 (sse2_cvtpd2pi): Ditto.
3357 (sse2_cvttpd2pi): Ditto.
3359 2019-01-23 David Malcolm <dmalcolm@redhat.com>
3362 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
3363 use-after-free of the result of
3364 aarch64_get_extension_string_for_isa_flags.
3366 2019-01-23 Jakub Jelinek <jakub@redhat.com>
3369 * doc/extend.texi: Document break and continue behavior in
3370 statement expressions.
3372 2019-01-23 Richard Biener <rguenther@suse.de>
3374 PR tree-optimization/89008
3375 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
3376 not leave another stray operand.
3378 2019-01-23 Jakub Jelinek <jakub@redhat.com>
3380 * BASE-VER: Bump to 9.0.1.
3382 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
3384 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
3385 thunk that returns by reference, use the type of the return object
3386 of the thunk instead of that of the alias to build the dereference.
3388 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
3390 * config/arc/atomic.md: Add operand to DMB instruction.
3392 2019-01-23 Jakub Jelinek <jakub@redhat.com>
3394 PR tree-optimization/88964
3395 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
3396 build_zero_cst instead of build_int_cst. Return false for loop
3397 invariants which honor signed zeros.
3399 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
3401 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
3403 2019-01-22 Jakub Jelinek <jakub@redhat.com>
3406 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
3407 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
3408 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
3411 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
3412 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
3415 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
3416 Disable for little endian.
3418 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
3421 * config/arm/arm.c (arm_needs_double_word_align): Check
3422 DECL_BIT_FIELD_TYPE.
3424 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
3425 H.J. Lu <hongjiu.lu@intel.com>
3428 * config/i386/i386-builtin.def: Add mask2 to all builtin
3429 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
3431 * config/i386/i386.c (BDESC): Add mask2 to the definition.
3432 (BDESC_FIRST): Likewise.
3433 (define_builtin): Add an argument for mask2. Updated to handle
3434 both ix86_isa_flags and ix86_isa_flags2.
3435 (define_builtin_const): Likewise.
3436 (define_builtin_pure): Likewise.
3437 (define_builtin2): Deleted.
3438 (define_builtin_const2): Likewise.
3439 (builtin_description): Add a member, mask2.
3440 (bdesc_*): Add mask2 to builtin initializations.
3441 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
3442 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
3444 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
3446 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
3449 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
3452 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
3455 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
3456 alignment is dominated by a bitfield with 64-bit aligned base type.
3457 (arm_function_arg): Emit a warning if the alignment has changed since
3458 earlier GCC releases.
3459 (arm_function_arg_boundary): Likewise.
3460 (arm_setup_incoming_varargs): Likewise.
3462 2019-01-22 Richard Biener <rguenther@suse.de>
3464 PR tree-optimization/88862
3465 * graphite-scop-detection.c
3466 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
3468 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
3470 * doc/extend.tex (AMD GCN Function Attributes): New section.
3471 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
3472 * doc/invoke.texi (AMD GCN Options): New section.
3473 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
3475 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
3477 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
3478 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
3480 2019-01-22 Jakub Jelinek <jakub@redhat.com>
3482 PR tree-optimization/88044
3483 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
3484 is false in the first iteration, but !every_iteration, return false
3485 instead of true with niter->niter zero.
3487 PR rtl-optimization/88904
3488 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
3489 any nonequal registers before processing BB_END (b).
3492 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
3494 (expand_binop_directly, expand_doubleword_clz,
3495 expand_doubleword_popcount, expand_ctz, expand_ffs,
3496 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
3498 PR rtl-optimization/49429
3500 PR rtl-optimization/86334
3502 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
3503 addressable from here...
3504 (emit_block_op_via_libcall): ... to here.
3506 2019-01-22 Richard Biener <rguenther@suse.de>
3508 * tree-vect-loop.c (vect_analyze_loop_operations): Use
3509 auto_vec for cost vector to fix memleak.
3510 (vectorize_fold_left_reduction): Properly gather SLP defs.
3511 (vectorizable_comparison): Do not swap operands to properly
3514 2019-01-22 Alan Modra <amodra@gmail.com>
3517 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
3518 stays a reg. Allow a const_int.
3519 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
3520 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
3521 (IS_NOMARK_TLSGETADDR): Define.
3522 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
3523 (rs6000_output_tlsargs): New function.
3524 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
3525 __tls_get_addr call takes an arg.
3526 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
3527 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
3529 (call_value_nonlocal_sysv): ..or here, delete split.
3530 (tls_gdld_nomark): Delete.
3531 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
3532 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
3533 (call_value_nonlocal_sysv): Likewise.
3534 (call_value_nonlocal_sysv_secure): Likewise.
3535 (call_value_nonlocal_aix): Likewise.
3536 (call_value_indirect_aix): Likewise.
3537 (call_value_indirect_elfv2): Likewise.
3538 (call_value_local32, call_value_local64): Disable for no-mark tls.
3539 (call_value_local_aix): Likewise.
3541 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
3544 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
3545 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
3547 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
3549 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
3550 string contents as hash_map keys.
3552 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3555 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
3556 for rvalue context. Handle rvalues correctly. Use min_align_of_type
3557 instead of TYPE_ALIGN.
3558 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
3559 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
3560 pointer from TYPE_STUB_DECL.
3562 2019-01-21 Richard Biener <rguenther@suse.de>
3564 PR tree-optimization/88934
3565 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
3566 at the possibly non-constant operand.
3567 (vect_get_constant_vectors): Adjust.
3569 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3572 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
3573 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
3574 instead of _X86INTRIN_H_INCLUDED.
3575 * onfig/i386/clwbintrin.h: Likewise.
3576 * config/i386/pkuintrin.h: Likewise.
3577 * config/i386/prfchwintrin.h: Likewise.
3578 * config/i386/rdseedintrin.h: Likewise.
3579 * config/i386/wbnoinvdintrin.h: Likewise.
3580 * config/i386/xsavecintrin.h: Likewise.
3581 * config/i386/xsavesintrin.h: Likewise.
3582 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
3583 * config/i386/xsaveintrin.h: Likewise.
3584 * config/i386/xsaveoptintrin.h: Likewise.
3585 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
3586 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
3587 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
3588 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
3589 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
3590 * config/i386/immintrin.h: Here.
3592 2019-01-20 Martin Jambor <mjambor@suse.cz>
3595 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
3596 with aa_walk_budget.
3597 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
3598 aa_walk_budget_p parameter.
3599 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
3600 walk. Updated all callers.
3601 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
3602 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
3604 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
3605 parameter info. Extract info from fbi. Pass fbi to recursive calls
3606 and to unmodified_parm.
3607 (phi_result_unknown_predicate): New parameter fbi, removed parameter
3608 info, updated call to will_be_nonconstant_expr_predicate.
3609 (param_change_prob): New parameter fbi, limit AA walking.
3610 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
3611 calls to various above functions.
3612 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
3613 parameter. Use it to limit AA walking.
3614 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
3616 (detect_type_change): New parameter fbi, pass it on to
3617 detect_type_change_from_memory_writes.
3618 (detect_type_change_ssa): Likewise.
3619 (aa_overwalked): Removed.
3620 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
3621 accordingly, adjust to the neew AA limiting scheme.
3622 (parm_ref_data_preserved_p): Likewise.
3623 (ipa_compute_jump_functions_for_edge): Adjust call to
3625 (ipa_analyze_call_uses): Likewise.
3626 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
3627 (ipa_analyze_node): Initialize aa_walk_budget.
3628 (ipcp_transform_function): Likewise.
3629 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
3630 to get_dynamic_type.
3632 2019-01-19 Jakub Jelinek <jakub@redhat.com>
3634 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
3635 outside of #if CHECKING_P code.
3637 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
3639 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
3640 New function, split out from...
3641 (loop_versioning::analyze_stride): ...here.
3642 (loop_versioning::find_per_loop_multiplication): Use gassign.
3643 (loop_versioning::analyze_term_using_scevs): Return a success code.
3644 (loop_versioning::analyze_arbitrary_term): New function.
3645 (loop_versioning::analyze_address_fragment): Use
3646 analyze_arbitrary_term if all else fails.
3648 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
3651 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
3654 2019-01-18 Richard Biener <rguenther@suse.de>
3656 PR tree-optimization/88903
3657 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
3658 scalar stmts a SLP shift amount is composed of when detecting
3661 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
3664 * config/arm/arm-cpus.in (mp): New feature.
3666 (fgroup ARMv7ve): Add mp and sec features.
3667 (arch armv7-a): Add options to allow mp and sec extensions.
3668 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
3669 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
3670 extenstions to the base architecture.
3671 (cpu cortex-a8): Add sec extension to the base architecture.
3672 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
3673 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
3674 variants down to the base v7-a varaint.
3675 * config/arm/t-multilib (v7_a_arch_variants): New variable.
3676 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
3677 of permitted extensions for -march=armv7-a and for
3678 -mcpu=generic-armv7-a.
3680 2019-01-18 Martin Liska <mliska@suse.cz>
3682 * params.def: Fix comment.
3683 * tree-profile.c (gimple_init_gcov_profiler): Bump function
3685 (gimple_gen_ic_func_profiler): Likewise.
3687 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3689 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
3690 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
3691 and put in error checks for stack protector guard options.
3692 (aarch64_stack_protect_guard): New.
3693 (TARGET_STACK_PROTECT_GUARD): Define.
3694 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
3695 (reg_stack_protect_address<mode>): New.
3696 (stack_protect_set): Adjust for SSP_GLOBAL.
3697 (stack_protect_test): Likewise.
3698 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
3699 (-mstack-protector-guard): Likewise.
3700 (-mstack-protector-guard-offset): Likewise.
3702 2019-01-18 Jakub Jelinek <jakub@redhat.com>
3704 PR tree-optimization/86214
3705 * tree-inline.h (struct copy_body_data): Add
3706 add_clobbers_to_eh_landing_pads member.
3707 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
3708 (copy_edges_for_bb): Call it if EH edge destination is <
3709 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
3710 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
3711 if flag_stack_reuse != SR_NONE and clear it afterwards.
3713 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
3716 * doc/install.texi (with-multilib-list): Document for aarch64.
3718 2019-01-18 Jakub Jelinek <jakub@redhat.com>
3721 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
3722 (("..."))) with ("...").
3724 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
3726 * doc/extend.texi (Built-in Functions for Memory Model Aware
3727 Atomic Operations): Document atomic fetch and nand.
3729 2019-01-18 Martin Liska <mliska@suse.cz>
3730 Richard Biener <rguenther@suse.de>
3733 * cgraph.h (create_version_clone_with_body): Add new argument
3735 * cgraphclones.c (cgraph_node::create_version_clone): Add
3736 DECL_ATTRIBUTES to a newly created decl. And call
3737 valid_attribute_p so that proper cl_target_optimization_node
3738 is set for the newly created declaration.
3739 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
3741 (expand_target_clones): Do not call valid_attribute_p, it must
3743 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
3746 2019-01-17 Jakub Jelinek <jakub@redhat.com>
3749 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
3750 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
3751 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
3753 2019-01-17 Martin Sebor <msebor@redhat.com>
3756 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
3757 Handle anti-ranges the same as no range at all.
3759 2018-01-17 Steve Ellcey <sellcey@cavium.com>
3761 * config/aarch64/aarch64.c (cgraph.h): New include.
3762 (intl.h): New include.
3763 (supported_simd_type): New function.
3764 (currently_supported_simd_type): Ditto.
3765 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
3766 (aarch64_simd_clone_adjust): Ditto.
3767 (aarch64_simd_clone_usable): Ditto.
3768 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
3769 (TARGET_SIMD_CLONE_ADJUST): Ditto.
3770 (TARGET_SIMD_CLONE_USABLE): Ditto.
3771 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
3772 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
3775 2019-01-17 Martin Sebor <msebor@redhat.com>
3777 PR tree-optimization/88800
3778 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
3779 NO_WARNING bit here. Avoid folding out-of-bounds calls.
3780 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
3781 redundant argument. Add new argument and issue diagnostics under
3782 its control. Detect out-of-bounds access even with warnings
3784 (check_bounds_or_overlap): Change return type. Add argument.
3785 (wrestrict_dom_walker::check_call): Adjust.
3786 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
3787 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
3788 check_bounds_or_overlap's return value.
3789 (handle_builtin_stxncpy): Same.
3790 (handle_builtin_strcat): Same.
3792 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3793 Kwok Cheung Yeung <kcy@codesourcery.com>
3794 Julian Brown <julian@codesourcery.com>
3795 Tom de Vries <tom@codesourcery.com>
3797 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
3799 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3801 * doc/sourcebuild.texi: Document dg-require-effective-target
3802 llvm_binutils and offload_gcn.
3804 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3805 Kwok Cheung Yeung <kcy@codesourcery.com>
3806 Julian Brown <julian@codesourcery.com>
3807 Tom de Vries <tom@codesourcery.com>
3809 * doc/sourcebuild.texi: Document dg-required-effective-target
3812 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3813 Kwok Cheung Yeung <kcy@codesourcery.com>
3814 Julian Brown <julian@codesourcery.com>
3815 Tom de Vries <tom@codesourcery.com>
3816 Jan Hubicka <hubicka@ucw.cz>
3817 Martin Jambor <mjambor@suse.cz>
3819 * config.gcc: Add amdgcn*-*-amdhsa configuration.
3820 * configure.ac: Check for dlopen.
3821 * configure: Regenerate.
3823 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3824 Kwok Cheung Yeung <kcy@codesourcery.com>
3825 Julian Brown <julian@codesourcery.com>
3826 Tom de Vries <tom@codesourcery.com>
3827 Jan Hubicka <hubicka@ucw.cz>
3828 Martin Jambor <mjambor@suse.cz>
3830 * common/config/gcn/gcn-common.c: New file.
3831 * config/gcn/driver-gcn.c: New file.
3832 * config/gcn/gcn-builtins.def: New file.
3833 * config/gcn/gcn-hsa.h: New file.
3834 * config/gcn/gcn-modes.def: New file.
3835 * config/gcn/gcn-opts.h: New file.
3836 * config/gcn/gcn-passes.def: New file.
3837 * config/gcn/gcn-protos.h: New file.
3838 * config/gcn/gcn-run.c: New file.
3839 * config/gcn/gcn-tree.c: New file.
3840 * config/gcn/gcn.c: New file.
3841 * config/gcn/gcn.h: New file.
3842 * config/gcn/gcn.opt: New file.
3843 * config/gcn/t-gcn-hsa: New file.
3845 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3846 Kwok Cheung Yeung <kcy@codesourcery.com>
3847 Julian Brown <julian@codesourcery.com>
3848 Tom de Vries <tom@codesourcery.com>
3849 Jan Hubicka <hubicka@ucw.cz>
3850 Martin Jambor <mjambor@suse.cz>
3852 * config/gcn/constraints.md: New file.
3853 * config/gcn/gcn-valu.md: New file.
3854 * config/gcn/gcn.md: New file.
3855 * config/gcn/predicates.md: New file.
3857 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
3859 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
3860 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
3861 (stmt_uses_0_or_null_in_undefined_way): Likewise.
3862 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
3864 2019-01-17 Tamar Christina <tamar.christina@arm.com>
3867 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
3868 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
3869 it and document registers.
3871 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3873 * config/aarch64/aarch64.c (ares_tunings): Define.
3874 * config/aarch64/aarch64-cores.def (ares): Use the above.
3876 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
3880 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
3882 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
3883 (_mm512_fixupimm_round_pd): Update parameters and builtin.
3884 (_mm512_maskz_fixupimm_round_pd): Ditto.
3885 (_mm512_fixupimm_round_ps): Ditto.
3886 (_mm512_maskz_fixupimm_round_ps): Ditto.
3887 (_mm_fixupimm_round_sd): Ditto.
3888 (_mm_maskz_fixupimm_round_sd): Ditto.
3889 (_mm_fixupimm_round_ss): Ditto.
3890 (_mm_maskz_fixupimm_round_ss): Ditto.
3891 (_mm512_fixupimm_pd): Ditto.
3892 (_mm512_maskz_fixupimm_pd): Ditto.
3893 (_mm512_fixupimm_ps): Ditto.
3894 (_mm512_maskz_fixupimm_ps): Ditto.
3895 (_mm_fixupimm_sd): Ditto.
3896 (_mm_maskz_fixupimm_sd): Ditto.
3897 (_mm_fixupimm_ss): Ditto.
3898 (_mm_maskz_fixupimm_ss): Ditto.
3899 (_mm512_mask_fixupimm_round_pd): Update builtin.
3900 (_mm512_mask_fixupimm_round_ps): Ditto.
3901 (_mm_mask_fixupimm_round_sd): Ditto.
3902 (_mm_mask_fixupimm_round_ss): Ditto.
3903 (_mm512_mask_fixupimm_pd): Ditto.
3904 (_mm512_mask_fixupimm_ps): Ditto.
3905 (_mm_mask_fixupimm_sd): Ditto.
3906 (_mm_mask_fixupimm_ss): Ditto.
3907 * config/i386/avx512vlintrin.h:
3908 (_mm256_fixupimm_pd): Update parameters and builtin.
3909 (_mm256_maskz_fixupimm_pd): Ditto.
3910 (_mm256_fixupimm_ps): Ditto.
3911 (_mm256_maskz_fixupimm_ps): Ditto.
3912 (_mm_fixupimm_pd): Ditto.
3913 (_mm_maskz_fixupimm_pd): Ditto.
3914 (_mm_fixupimm_ps): Ditto.
3915 (_mm_maskz_fixupimm_ps): Ditto.
3916 (_mm256_mask_fixupimm_pd): Update builtin.
3917 (_mm256_mask_fixupimm_ps): Ditto.
3918 (_mm_mask_fixupimm_pd): Ditto.
3919 (_mm_mask_fixupimm_ps): Ditto.
3920 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
3921 * config/i386/i386-builtin.def: Update builtin definitions.
3922 * config/i386/i386.c: Handle new builtin types and remove useless ones.
3923 * config/i386/sse.md: Update VFIXUPIMM* patterns.
3924 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3925 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3926 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
3927 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3928 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3929 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
3930 * config/i386/subst.md:
3931 (round_saeonly_sd_mask_operand4): Add new subst_attr.
3932 (round_saeonly_sd_mask_op4): Ditto.
3933 (round_saeonly_expand_operand5): Ditto.
3934 (round_saeonly_expand): Update.
3936 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
3940 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
3942 * config/i386/sse.md: Combine VFIXUPIMM* patterns
3943 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3944 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3945 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
3946 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3947 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3948 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
3950 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
3954 2018-12-15 Jakub Jelinek <jakub@redhat.com>
3957 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
3958 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
3959 instead of UNSPEC_FIXUPIMM.
3961 2019-01-17 Richard Biener <rguenther@suse.de>
3964 * dwarf2out.c (want_pubnames): Never generate pubnames sections
3965 and friends for the LTO part of debug info.
3967 2019-01-17 Jakub Jelinek <jakub@redhat.com>
3969 PR tree-optimization/86214
3970 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
3973 PR rtl-optimization/88870
3974 * dce.c (deletable_insn_p): Never delete const/pure calls that can
3975 throw if we can't alter the cfg or delete dead exceptions.
3976 (mark_insn): Don't call find_call_stack_args for such calls.
3978 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
3980 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
3981 prototypes for vec_st.
3982 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
3983 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
3984 mainly on signed/unsigned long long and double.
3986 2019-01-16 David Malcolm <dmalcolm@redhat.com>
3989 * combine.c (delete_noop_moves): Convert to "bool" return,
3990 returning true if any edges are eliminated.
3991 (combine_instructions): Also return true if delete_noop_moves
3994 2019-01-16 Tamar Christina <tamar.christina@arm.com>
3996 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
3997 correct max nunits for endian swap.
3998 (aarch64_expand_fcmla_builtin): Correct subreg code.
3999 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
4000 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
4003 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
4005 * config/alpha/alpha.c (alpha_gimplify_va_arg):
4006 Handle split indirect COMPLEX_TYPE arguments.
4008 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
4011 * config/aarch64/aarch64-modes.def: Add comment about how the carry
4012 bit is set by add and compare.
4013 (CC_ADC): New CC_MODE.
4014 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
4015 to cache the code and mode of X. Adjust the shape of a CC_Cmode
4016 comparison. Add detection for CC_ADCmode.
4017 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
4019 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
4020 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
4021 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
4022 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
4023 to eliminate the need for zero-extending the operands.
4024 (add<mode>3_compareC_imm): Delete. Merge into ...
4025 (add<mode>3_compareC): ... this. Restructure the comparison to
4026 eliminate the need for zero-extending the operands.
4027 (add<mode>3_carryin): Use LTU for the overflow detection.
4028 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
4029 Reexpress comparison for overflow.
4030 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
4031 (add<mode>3_carryinC): Likewise.
4032 (add<mode>3_carryinV): Use LTU for carry between partials.
4033 * config/aarch64/predicates.md (aarch64_carry_operation): Update
4034 handling of CC_Cmode and add CC_ADCmode.
4035 (aarch64_borrow_operation): Likewise.
4037 2019-01-16 Tamar Christina <tamar.christina@arm.com>
4039 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
4040 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
4041 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
4042 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
4044 2019-01-16 Martin Liska <mliska@suse.cz>
4046 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
4048 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
4050 * gcc.c (add_sysrooted_hdrs_prefix): New function.
4051 (path_prefix_reset): Move up in the source file.
4052 (find_fortran_preinclude_file): Make complex search for the
4053 fortran header files.
4055 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
4057 * godump.c (go_output_typedef): When outputting a typedef, refer
4058 to the underlying type by its name and not its structure.
4060 2019-01-15 David Malcolm <dmalcolm@redhat.com>
4063 * tree.c (build_function_type): Assert that arg_types is not
4066 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
4069 * doc/extend.texi: Document that listing the stack pointer in the
4070 clobber list of an asm is a deprecated feature.
4071 * common.opt (Wdeprecated): Moved from c-family/c.opt.
4072 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
4073 warning instead of an error for clobbers of the stack pointer.
4074 Add a note explaining why.
4076 2019-01-15 Richard Biener <rguenther@suse.de>
4079 * dwarf2out.c (gen_member_die): Do not generate inheritance
4082 2019-01-15 Richard Biener <rguenther@suse.de>
4084 PR tree-optimization/88855
4085 * tree-if-conv.c (combine_blocks): Collect
4086 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
4088 2019-01-15 Tom de Vries <tdevries@suse.de>
4091 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
4092 lhs == NULL_TREE for gang-level reduction.
4094 2019-01-15 Richard Biener <rguenther@suse.de>
4095 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4098 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
4099 return true if SSA_NAME is already marked in visited bitmap.
4100 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
4102 2019-01-15 Jakub Jelinek <jakub@redhat.com>
4104 PR tree-optimization/88775
4105 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
4106 equal == 0 equality pointer comparisons some more if compared in
4107 integral types and either one points to an automatic var and the
4108 other to a global, or we can prove at least one points to the middle
4109 or both point to start or both point to end.
4111 2019-01-14 Andi Kleen <ak@linux.intel.com>
4113 * Makefile.in: Lower autofdo sampling rate by 10x.
4114 * Makefile.tpl: Dito.
4116 2019-01-14 Tom Honermann <tom@honermann.net>
4118 * defaults.h: Define CHAR8_TYPE.
4120 2019-01-14 Martin Sebor <msebor@redhat.com>
4123 * doc/extend.texi (Darwin Format Checks): Clarify.
4125 2019-01-14 Richard Biener <rguenther@suse.de>
4127 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
4128 whether we are in (simplify ...) or (match ...) context.
4130 2019-01-14 Jakub Jelinek <jakub@redhat.com>
4132 PR rtl-optimization/88796
4133 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
4134 * cfgexpand.c (stack_protect_prologue): Initialize
4135 crtl->stack_protect_guard_decl.
4136 * function.c (stack_protect_epilogue): Use it instead of calling
4137 targetm.stack_protect_guard again.
4138 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
4139 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
4140 crtl->stack_protect_guard_decl.
4141 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
4142 on the returned MEM_EXPR.
4144 2019-01-12 Tom de Vries <tdevries@suse.de>
4146 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
4147 vector length using -fopenacc-dim.
4149 2019-01-12 Tom de Vries <tdevries@suse.de>
4151 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
4152 lengths into account.
4154 2019-01-12 Svante Signell <svante.signell@gmail.com>
4156 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
4157 (TARGET_CAN_SPLIT_STACK): Define.
4158 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
4160 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4162 * params.def (inline-unit-growth): Set to 40.
4164 2019-01-12 Jakub Jelinek <jakub@redhat.com>
4166 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
4168 2019-01-12 Tom de Vries <tdevries@suse.de>
4170 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
4171 region calling vector-partitionable routine, set default_vector_length
4174 2019-01-12 Tom de Vries <tdevries@suse.de>
4176 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
4177 variable default_vector_length.
4179 2019-01-12 Tom de Vries <tdevries@suse.de>
4182 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
4183 from oacc_default_dims, as oacc_validate_dims would do it, and apply
4186 2019-01-12 Tom de Vries <tdevries@suse.de>
4188 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
4189 (nvptx_goacc_validate_dims): Add used parameter.
4190 * doc/tm.texi: Regenerate.
4191 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
4192 argument to call to targetm.goacc.validate_dims.
4193 (default_goacc_validate_dims): Add used
4195 * target.def (validate_dims): Add used parameter in DEFHOOK.
4196 * targhooks.h (default_goacc_validate_dims): Add used parameter.
4198 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4202 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
4204 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
4205 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
4206 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
4207 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
4209 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
4211 PR rtl-optimization/87305
4213 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
4214 for little endian pseudos used as paradoxical subreg.
4216 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4218 PR tree-optimization/88693
4219 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
4220 for STRING_CSTs that don't contain any NUL characters in the first
4221 TREE_STRING_LENGTH bytes.
4223 2019-01-11 Alan Modra <amodra@gmail.com>
4227 * genattrtab.c (min_fn): Don't translate values.
4228 (min_attr_value): Return INT_MAX when the value can't be calculated.
4229 Return minimum among any values that can be calculated.
4230 (max_attr_value): Adjust.
4232 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4234 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
4236 2019-01-11 Steve Ellcey <sellcey@marvell.com>
4238 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
4239 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
4240 (aarch64_return_call_with_max_clobbers): New function.
4241 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
4242 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
4244 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
4245 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
4246 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
4247 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
4248 * cselib.c (cselib_process_insn): Add argument to
4249 targetm.hard_regno_call_part_clobbered call.
4250 * ira-conflicts.c (ira_build_conflicts): Ditto.
4251 * ira-costs.c (ira_tune_allocno_costs): Ditto.
4252 * lra-constraints.c (inherit_reload_reg): Ditto.
4253 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
4254 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
4255 argument. Call targetm.return_call_with_max_clobbers.
4256 Add argument to targetm.hard_regno_call_part_clobbered call.
4257 (calls_have_same_clobbers_p): New function.
4258 (process_bb_lives): Add call_insn and last_call_insn variables.
4259 Pass call_insn to check_pseudos_live_through_calls.
4260 Modify if stmt to check targetm.return_call_with_max_clobbers.
4261 Update setting of flush variable.
4262 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
4264 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
4265 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
4266 targetm.hard_regno_call_part_clobbered call.
4267 * reginfo.c (choose_hard_reg_mode): Ditto.
4268 * regrename.c (check_new_reg_p): Ditto.
4269 * reload.c (find_equiv_reg): Ditto.
4270 * reload1.c (emit_reload_insns): Ditto.
4271 * sched-deps.c (deps_analyze_insn): Ditto.
4272 * sel-sched.c (init_regs_for_mode): Ditto.
4273 (mark_unavailable_hard_regs): Ditto.
4274 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
4275 * target.def (hard_regno_call_part_clobbered): Add insn argument.
4276 (return_call_with_max_clobbers): New target function.
4277 * doc/tm.texi: Regenerate.
4278 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
4279 * hooks.c (hook_bool_uint_mode_false): Change to
4280 hook_bool_insn_uint_mode_false.
4281 * hooks.h (hook_bool_uint_mode_false): Ditto.
4283 2019-01-11 Steve Ellcey <sellcey@marvell.com>
4285 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
4286 (aarch64_remove_extra_call_preserved_regs): New function.
4287 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
4288 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
4289 * doc/tm.texi: Regenerate.
4290 * final.c (get_call_reg_set_usage): Call new hook.
4291 * target.def (remove_extra_call_preserved_regs): New hook.
4292 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
4293 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
4295 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4298 * passes.c (finish_optimization_passes): Call print_combine_total_stats
4299 inside of pass_combine_1 dump rather than pass_profile_1.
4301 2019-01-11 Tom de Vries <tdevries@suse.de>
4303 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
4304 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
4305 (PTX_NUM_PER_WORKER_BARRIERS): Define.
4306 (nvptx_apply_dim_limits): Prevent vector_length 64 and
4309 2019-01-11 Tom de Vries <tdevries@suse.de>
4311 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
4313 2019-01-11 Jan Beulich <jbeulich@suse.com>
4315 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
4316 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
4317 sse2_cvtsi2sd): Add {l}.
4318 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
4321 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4324 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
4326 (*float<floatunssuffix>v2div2sf2): New define_insn.
4327 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
4328 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
4329 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
4330 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
4331 match_operands with "const0_operand" "C".
4333 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4335 * config/aarch64/aarch64-builtins.c
4336 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
4337 (aarch64_init_simd_builtins): ...Here
4339 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
4341 PR rtl-optimization/87305
4343 (setup_live_pseudos_and_spill_after_risky_transforms): Check
4344 allocation for big endian pseudos used as paradoxical subregs and
4345 spill them if it is wrong.
4346 * lra-constraints.c (lra_constraints): Add a comment.
4348 2019-01-10 Richard Biener <rguenther@suse.de>
4350 PR tree-optimization/88792
4351 * tree-ssa-pre.c (get_representative_for): Do not return a
4354 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4358 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
4359 (assign_parm_setup_block): Do the argument slot realignment here
4362 2019-01-10 Stefan Agner <stefan@agner.ch>
4365 * config/arm/arm.c (arm_option_override_internal): Force
4366 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
4368 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4371 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
4374 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4376 * config/arm/arm-builtins.c
4377 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
4378 (MAC_LANE_PAIR_QUALIFIERS): New.
4379 (arm_expand_builtin_args): Use it.
4380 (arm_expand_builtin_1): Likewise.
4381 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
4382 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
4383 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
4384 * config/arm/arm_neon.h:
4385 (vcadd_rot90_f16): New.
4386 (vcaddq_rot90_f16): New.
4387 (vcadd_rot270_f16): New.
4388 (vcaddq_rot270_f16): New.
4391 (vcmla_lane_f16): New.
4392 (vcmla_laneq_f16): New.
4393 (vcmlaq_lane_f16): New.
4394 (vcmlaq_laneq_f16): New.
4395 (vcmla_rot90_f16): New.
4396 (vcmlaq_rot90_f16): New.
4397 (vcmla_rot90_lane_f16): New.
4398 (vcmla_rot90_laneq_f16): New.
4399 (vcmlaq_rot90_lane_f16): New.
4400 (vcmlaq_rot90_laneq_f16): New.
4401 (vcmla_rot180_f16): New.
4402 (vcmlaq_rot180_f16): New.
4403 (vcmla_rot180_lane_f16): New.
4404 (vcmla_rot180_laneq_f16): New.
4405 (vcmlaq_rot180_lane_f16): New.
4406 (vcmlaq_rot180_laneq_f16): New.
4407 (vcmla_rot270_f16): New.
4408 (vcmlaq_rot270_f16): New.
4409 (vcmla_rot270_lane_f16): New.
4410 (vcmla_rot270_laneq_f16): New.
4411 (vcmlaq_rot270_lane_f16): New.
4412 (vcmlaq_rot270_laneq_f16): New.
4413 (vcadd_rot90_f32): New.
4414 (vcaddq_rot90_f32): New.
4415 (vcadd_rot270_f32): New.
4416 (vcaddq_rot270_f32): New.
4419 (vcmla_lane_f32): New.
4420 (vcmla_laneq_f32): New.
4421 (vcmlaq_lane_f32): New.
4422 (vcmlaq_laneq_f32): New.
4423 (vcmla_rot90_f32): New.
4424 (vcmlaq_rot90_f32): New.
4425 (vcmla_rot90_lane_f32): New.
4426 (vcmla_rot90_laneq_f32): New.
4427 (vcmlaq_rot90_lane_f32): New.
4428 (vcmlaq_rot90_laneq_f32): New.
4429 (vcmla_rot180_f32): New.
4430 (vcmlaq_rot180_f32): New.
4431 (vcmla_rot180_lane_f32): New.
4432 (vcmla_rot180_laneq_f32): New.
4433 (vcmlaq_rot180_lane_f32): New.
4434 (vcmlaq_rot180_laneq_f32): New.
4435 (vcmla_rot270_f32): New.
4436 (vcmlaq_rot270_f32): New.
4437 (vcmla_rot270_lane_f32): New.
4438 (vcmla_rot270_laneq_f32): New.
4439 (vcmlaq_rot270_lane_f32): New.
4440 (vcmlaq_rot270_laneq_f32): New.
4441 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
4442 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180, vcmla_lane270,
4443 vcmla_laneq0, vcmla_laneq90, vcmla_laneq180, vcmla_laneq270,
4444 vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180, vcmlaq_lane270): New.
4445 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
4446 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
4447 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
4448 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
4449 (arm_option_reconfigure_globals): Use them.
4450 * config/arm/iterators.md (VDF, VQ_HSF): New.
4451 (VCADD, VCMLA): New.
4452 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
4453 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>): New.
4454 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
4455 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
4457 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4459 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add qualifier_lane_pair_index.
4460 (emit-rtl.h): Include.
4461 (TYPES_QUADOP_LANE_PAIR): New.
4462 (aarch64_simd_expand_args): Use it.
4463 (aarch64_simd_expand_builtin): Likewise.
4464 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum): New.
4465 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
4466 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
4467 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
4468 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
4469 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
4470 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
4471 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
4472 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
4473 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
4474 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
4475 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add __ARM_FEATURE_COMPLEX.
4476 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0, fcmla90,
4477 fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180, fcmla_lane270,
4478 fcmla_laneq0, fcmla_laneq90, fcmla_laneq180, fcmla_laneq270,
4479 fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180, fcmlaq_lane270): New.
4480 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
4481 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,aarch64_fcadd<rot><mode>,
4482 aarch64_fcmla<rot><mode>): New.
4483 * config/aarch64/arm_neon.h:
4484 (vcadd_rot90_f16): New.
4485 (vcaddq_rot90_f16): New.
4486 (vcadd_rot270_f16): New.
4487 (vcaddq_rot270_f16): New.
4490 (vcmla_lane_f16): New.
4491 (vcmla_laneq_f16): New.
4492 (vcmlaq_lane_f16): New.
4493 (vcmlaq_rot90_lane_f16): New.
4494 (vcmla_rot90_laneq_f16): New.
4495 (vcmla_rot90_lane_f16): New.
4496 (vcmlaq_rot90_f16): New.
4497 (vcmla_rot90_f16): New.
4498 (vcmlaq_laneq_f16): New.
4499 (vcmla_rot180_laneq_f16): New.
4500 (vcmla_rot180_lane_f16): New.
4501 (vcmlaq_rot180_f16): New.
4502 (vcmla_rot180_f16): New.
4503 (vcmlaq_rot90_laneq_f16): New.
4504 (vcmlaq_rot270_laneq_f16): New.
4505 (vcmlaq_rot270_lane_f16): New.
4506 (vcmla_rot270_laneq_f16): New.
4507 (vcmlaq_rot270_f16): New.
4508 (vcmla_rot270_f16): New.
4509 (vcmlaq_rot180_laneq_f16): New.
4510 (vcmlaq_rot180_lane_f16): New.
4511 (vcmla_rot270_lane_f16): New.
4512 (vcadd_rot90_f32): New.
4513 (vcaddq_rot90_f32): New.
4514 (vcaddq_rot90_f64): New.
4515 (vcadd_rot270_f32): New.
4516 (vcaddq_rot270_f32): New.
4517 (vcaddq_rot270_f64): New.
4521 (vcmla_lane_f32): New.
4522 (vcmla_laneq_f32): New.
4523 (vcmlaq_lane_f32): New.
4524 (vcmlaq_laneq_f32): New.
4525 (vcmla_rot90_f32): New.
4526 (vcmlaq_rot90_f32): New.
4527 (vcmlaq_rot90_f64): New.
4528 (vcmla_rot90_lane_f32): New.
4529 (vcmla_rot90_laneq_f32): New.
4530 (vcmlaq_rot90_lane_f32): New.
4531 (vcmlaq_rot90_laneq_f32): New.
4532 (vcmla_rot180_f32): New.
4533 (vcmlaq_rot180_f32): New.
4534 (vcmlaq_rot180_f64): New.
4535 (vcmla_rot180_lane_f32): New.
4536 (vcmla_rot180_laneq_f32): New.
4537 (vcmlaq_rot180_lane_f32): New.
4538 (vcmlaq_rot180_laneq_f32): New.
4539 (vcmla_rot270_f32): New.
4540 (vcmlaq_rot270_f32): New.
4541 (vcmlaq_rot270_f64): New.
4542 (vcmla_rot270_lane_f32): New.
4543 (vcmla_rot270_laneq_f32): New.
4544 (vcmlaq_rot270_lane_f32): New.
4545 (vcmlaq_rot270_laneq_f32): New.
4546 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
4547 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
4548 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
4549 (FCADD, FCMLA): New.
4551 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
4553 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
4557 * config/pa/pa.c: Change "can not" to "cannot".
4558 * gimple-ssa-evrp-analyze.c: Likewise.
4559 * ipa-icf.c: Likewise.
4560 * ipa-polymorphic-call.c: Likewise.
4561 * ipa-pure-const.c: Likewise.
4562 * lra-constraints.c: Likewise.
4563 * lra-remat.c: Likewise.
4564 * reload1.c: Likewise.
4565 * reorg.c: Likewise.
4566 * tree-ssa-uninit.c: Likewise.
4568 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
4572 * Makefile.in: Mechanically replace "can not" with "cannot".
4573 * alias.c: Likewise.
4574 * builtins.c: Likewise.
4575 * calls.c: Likewise.
4576 * cgraph.c: Likewise.
4577 * cgraph.h: Likewise.
4578 * cgraphclones.c: Likewise.
4579 * cgraphunit.c: Likewise.
4580 * combine-stack-adj.c: Likewise.
4581 * combine.c: Likewise.
4582 * common/config/i386/i386-common.c: Likewise.
4583 * config/aarch64/aarch64.c: Likewise.
4584 * config/alpha/sync.md: Likewise.
4585 * config/arc/arc.c: Likewise.
4586 * config/arc/predicates.md: Likewise.
4587 * config/arm/arm-c.c: Likewise.
4588 * config/arm/arm.c: Likewise.
4589 * config/arm/arm.h: Likewise.
4590 * config/arm/arm.md: Likewise.
4591 * config/arm/cortex-r4f.md: Likewise.
4592 * config/csky/csky.c: Likewise.
4593 * config/csky/csky.h: Likewise.
4594 * config/darwin-f.c: Likewise.
4595 * config/epiphany/epiphany.md: Likewise.
4596 * config/i386/i386.c: Likewise.
4597 * config/i386/sol2.h: Likewise.
4598 * config/m68k/m68k.c: Likewise.
4599 * config/mcore/mcore.h: Likewise.
4600 * config/microblaze/microblaze.md: Likewise.
4601 * config/mips/20kc.md: Likewise.
4602 * config/mips/sb1.md: Likewise.
4603 * config/nds32/nds32.c: Likewise.
4604 * config/nds32/predicates.md: Likewise.
4605 * config/pa/pa.c: Likewise.
4606 * config/rs6000/e300c2c3.md: Likewise.
4607 * config/rs6000/rs6000.c: Likewise.
4608 * config/s390/s390.h: Likewise.
4609 * config/sh/sh.c: Likewise.
4610 * config/sh/sh.md: Likewise.
4611 * config/spu/vmx2spu.h: Likewise.
4612 * cprop.c: Likewise.
4613 * dbxout.c: Likewise.
4614 * df-scan.c: Likewise.
4615 * doc/cfg.texi: Likewise.
4616 * doc/extend.texi: Likewise.
4617 * doc/fragments.texi: Likewise.
4618 * doc/gty.texi: Likewise.
4619 * doc/invoke.texi: Likewise.
4620 * doc/lto.texi: Likewise.
4621 * doc/md.texi: Likewise.
4622 * doc/objc.texi: Likewise.
4623 * doc/rtl.texi: Likewise.
4624 * doc/tm.texi: Likewise.
4626 * emit-rtl.c: Likewise.
4627 * emit-rtl.h: Likewise.
4628 * except.c: Likewise.
4629 * expmed.c: Likewise.
4631 * fold-const.c: Likewise.
4632 * genautomata.c: Likewise.
4633 * gimple-fold.c: Likewise.
4634 * hard-reg-set.h: Likewise.
4635 * ifcvt.c: Likewise.
4636 * ipa-comdats.c: Likewise.
4637 * ipa-cp.c: Likewise.
4638 * ipa-devirt.c: Likewise.
4639 * ipa-fnsummary.c: Likewise.
4640 * ipa-icf.c: Likewise.
4641 * ipa-inline-transform.c: Likewise.
4642 * ipa-inline.c: Likewise.
4643 * ipa-polymorphic-call.c: Likewise.
4644 * ipa-profile.c: Likewise.
4645 * ipa-prop.c: Likewise.
4646 * ipa-pure-const.c: Likewise.
4647 * ipa-reference.c: Likewise.
4648 * ipa-split.c: Likewise.
4649 * ipa-visibility.c: Likewise.
4651 * ira-build.c: Likewise.
4652 * ira-color.c: Likewise.
4653 * ira-conflicts.c: Likewise.
4654 * ira-costs.c: Likewise.
4655 * ira-int.h: Likewise.
4656 * ira-lives.c: Likewise.
4659 * loop-invariant.c: Likewise.
4660 * loop-unroll.c: Likewise.
4661 * lower-subreg.c: Likewise.
4662 * lra-assigns.c: Likewise.
4663 * lra-constraints.c: Likewise.
4664 * lra-eliminations.c: Likewise.
4665 * lra-lives.c: Likewise.
4666 * lra-remat.c: Likewise.
4667 * lra-spills.c: Likewise.
4669 * lto-cgraph.c: Likewise.
4670 * lto-streamer-out.c: Likewise.
4671 * postreload-gcse.c: Likewise.
4672 * predict.c: Likewise.
4673 * profile-count.h: Likewise.
4674 * profile.c: Likewise.
4675 * recog.c: Likewise.
4677 * reload.c: Likewise.
4678 * reload1.c: Likewise.
4679 * reorg.c: Likewise.
4680 * resource.c: Likewise.
4681 * rtl.def: Likewise.
4683 * rtlanal.c: Likewise.
4684 * sched-deps.c: Likewise.
4685 * sched-ebb.c: Likewise.
4686 * sched-rgn.c: Likewise.
4687 * sel-sched-ir.c: Likewise.
4688 * sel-sched.c: Likewise.
4689 * shrink-wrap.c: Likewise.
4690 * simplify-rtx.c: Likewise.
4691 * symtab.c: Likewise.
4692 * target.def: Likewise.
4693 * toplev.c: Likewise.
4694 * tree-call-cdce.c: Likewise.
4695 * tree-cfg.c: Likewise.
4696 * tree-complex.c: Likewise.
4697 * tree-core.h: Likewise.
4698 * tree-eh.c: Likewise.
4699 * tree-inline.c: Likewise.
4700 * tree-loop-distribution.c: Likewise.
4701 * tree-nrv.c: Likewise.
4702 * tree-profile.c: Likewise.
4703 * tree-sra.c: Likewise.
4704 * tree-ssa-alias.c: Likewise.
4705 * tree-ssa-dce.c: Likewise.
4706 * tree-ssa-dom.c: Likewise.
4707 * tree-ssa-forwprop.c: Likewise.
4708 * tree-ssa-loop-im.c: Likewise.
4709 * tree-ssa-loop-ivcanon.c: Likewise.
4710 * tree-ssa-loop-ivopts.c: Likewise.
4711 * tree-ssa-loop-niter.c: Likewise.
4712 * tree-ssa-phionlycprop.c: Likewise.
4713 * tree-ssa-phiopt.c: Likewise.
4714 * tree-ssa-propagate.c: Likewise.
4715 * tree-ssa-threadedge.c: Likewise.
4716 * tree-ssa-threadupdate.c: Likewise.
4717 * tree-ssa-uninit.c: Likewise.
4718 * tree-ssanames.c: Likewise.
4719 * tree-streamer-out.c: Likewise.
4722 * vr-values.c: Likewise.
4724 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
4726 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
4727 (ix86_split_xorsign): Ditto.
4728 * config/i386/i386.c (ix86_expand_xorsign): New function.
4729 (ix86_split_xorsign): Ditto.
4730 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
4731 (xorsign<mode>3): New expander.
4732 (xorsign<mode>3_1): New insn_and_split pattern.
4733 * config/i386/sse.md (xorsign<mode>3): New expander.
4735 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
4737 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
4738 (*tablejump_sp64): Likewise.
4739 (*tablejump<P:mode>): ...this.
4740 (*call_address_sp32): Merge into...
4741 (*call_address_sp64): Likewise.
4742 (*call_address<P:mode>): ...this.
4743 (*call_symbolic_sp32): Merge into...
4744 (*call_symbolic_sp64): Likewise.
4745 (*call_symbolic<P:mode>): ...this.
4746 (call_value): Remove constraint and add predicate.
4747 (*call_value_address_sp32): Merge into...
4748 (*call_value_address_sp64): Likewise.
4749 (*call_value_address<P:mode>): ...this.
4750 (*call_value_symbolic_sp32): Merge into...
4751 (*call_value_symbolic_sp64): Likewise.
4752 (*call_value_symbolic<P:mode>): ...this.
4753 (*sibcall_symbolic_sp32): Merge into...
4754 (*sibcall_symbolic_sp64): Likewise.
4755 (*sibcall_symbolic<P:mode>): ...this.
4756 (sibcall_value): Remove constraint and add predicate.
4757 (*sibcall_value_symbolic_sp32): Merge into...
4758 (*sibcall_value_symbolic_sp64): Likewise.
4759 (*sibcall_value_symbolic<P:mode>): ...this.
4760 (window_save): Minor tweak.
4761 (*branch_sp32): Merge into...
4762 (*branch_sp64): Likewise.
4763 (*branch<P:mode>): ...this.
4765 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
4766 James Clarke <jrtc27@jrtc27.com>
4769 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
4770 consistently in TLS address generation and adjust code to the renaming
4771 of patterns. Mark calls to __tls_get_addr as const.
4772 * config/sparc/sparc.md (tgd_hi22): Turn into...
4773 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
4774 (tgd_lo10): Turn into...
4775 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
4776 (tgd_add32): Merge into...
4777 (tgd_add64): Likewise.
4778 (tgd_add<P:mode>): ...this and use Pmode throughout.
4779 (tldm_hi22): Turn into...
4780 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
4781 (tldm_lo10): Turn into...
4782 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
4783 (tldm_add32): Merge into...
4784 (tldm_add64): Likewise.
4785 (tldm_add<P:mode>): ...this and use Pmode throughout.
4786 (tldm_call32): Merge into...
4787 (tldm_call64): Likewise.
4788 (tldm_call<P:mode>): ...this and use Pmode throughout.
4789 (tldo_hix22): Turn into...
4790 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
4791 (tldo_lox10): Turn into...
4792 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
4793 (tldo_add32): Merge into...
4794 (tldo_add64): Likewise.
4795 (tldo_add<P:mode>): ...this and use Pmode throughout.
4796 (tie_hi22): Turn into...
4797 (tie_hi22<P:mode>): ...this and use Pmode throughout.
4798 (tie_lo10): Turn into...
4799 (tie_lo10<P:mode>): ...this and use Pmode throughout.
4800 (tie_ld64): Use DImode throughout.
4801 (tie_add32): Merge into...
4802 (tie_add64): Likewise.
4803 (tie_add<P:mode>): ...this and use Pmode throughout.
4804 (tle_hix22_sp32): Merge into...
4805 (tle_hix22_sp64): Likewise.
4806 (tle_hix22<P:mode>): ...this and use Pmode throughout.
4807 (tle_lox22_sp32): Merge into...
4808 (tle_lox22_sp64): Likewise.
4809 (tle_lox22<P:mode>): ...this and use Pmode throughout.
4810 (*tldo_ldub_sp32): Merge into...
4811 (*tldo_ldub_sp64): Likewise.
4812 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
4813 (*tldo_ldub1_sp32): Merge into...
4814 (*tldo_ldub1_sp64): Likewise.
4815 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
4816 (*tldo_ldub2_sp32): Merge into...
4817 (*tldo_ldub2_sp64): Likewise.
4818 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
4819 (*tldo_ldsb1_sp32): Merge into...
4820 (*tldo_ldsb1_sp64): Likewise.
4821 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
4822 (*tldo_ldsb2_sp32): Merge into...
4823 (*tldo_ldsb2_sp64): Likewise.
4824 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
4825 (*tldo_ldub3_sp64): Use DImode throughout.
4826 (*tldo_ldsb3_sp64): Likewise.
4827 (*tldo_lduh_sp32): Merge into...
4828 (*tldo_lduh_sp64): Likewise.
4829 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
4830 (*tldo_lduh1_sp32): Merge into...
4831 (*tldo_lduh1_sp64): Likewise.
4832 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
4833 (*tldo_ldsh1_sp32): Merge into...
4834 (*tldo_ldsh1_sp64): Likewise.
4835 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
4836 (*tldo_lduh2_sp64): Use DImode throughout.
4837 (*tldo_ldsh2_sp64): Likewise.
4838 (*tldo_lduw_sp32): Merge into...
4839 (*tldo_lduw_sp64): Likewise.
4840 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
4841 (*tldo_lduw1_sp64): Use DImode throughout.
4842 (*tldo_ldsw1_sp64): Likewise.
4843 (*tldo_ldx_sp64): Likewise.
4844 (*tldo_stb_sp32): Merge into...
4845 (*tldo_stb_sp64): Likewise.
4846 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
4847 (*tldo_sth_sp32): Merge into...
4848 (*tldo_sth_sp64): Likewise.
4849 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
4850 (*tldo_stw_sp32): Merge into...
4851 (*tldo_stw_sp64): Likewise.
4852 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
4853 (*tldo_stx_sp64): Use DImode throughout.
4855 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4857 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
4858 check configure option to set BTI and Return Address Signing.
4859 * configure.ac: Add --enable-standard-branch-protection and
4860 --disable-standard-branch-protection.
4861 * configure: Regenerated.
4862 * doc/install.texi: Document the same.
4864 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4865 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4867 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
4868 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
4869 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
4871 * config/aarch64/aarch64-bti-insert.c: New file.
4872 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
4874 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
4876 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
4877 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
4878 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
4879 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
4881 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4883 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
4884 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
4885 Disable bti for -mbranch-protection=none.
4886 (aarch64_handle_standard_branch_protection): Enable bti for
4887 -mbranch-protection=standard.
4888 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
4889 -mbranch-protection.
4890 (aarch64_bti_enabled): Check if bti is enabled.
4891 * config/aarch64/aarch64.opt: Declare target variable.
4892 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
4894 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4896 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
4897 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
4898 (aarch64_expand_epilogue): Likewise.
4899 (aarch64_output_mi_thunk): Likewise
4900 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
4901 TAILCALL_ADDR_REGS to x16 and x17.
4902 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
4904 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4906 * config/aarch64/aarch64-option-extensions.def: Define
4907 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
4908 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
4909 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
4910 (AARCH64_FL_PREDRES): New.
4911 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
4912 AARCH64_FL_PREDRES by default.
4913 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
4915 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4917 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
4919 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
4920 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
4921 * doc/invoke.texi: Document ARMv8.5-A.
4923 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
4925 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
4926 (xorsign<mode>3): Likewise.
4928 2019-01-09 Jelinek <jakub@redhat.com>
4931 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
4932 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
4934 PR rtl-optimization/88331
4935 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
4936 not currently_expanding_to_rtl.
4938 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
4940 * doc/invoke.texi (-Os): Remove trailing spaces.
4941 (-finline-functions): Remove reference to -O2.
4943 2019-01-08 Jakub Jelinek <jakub@redhat.com>
4945 PR rtl-optimization/79593
4946 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
4948 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
4949 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
4951 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
4954 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
4958 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
4959 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
4961 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
4964 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
4965 ix86_avx_u128_mode_entry.
4967 2019-01-08 Martin Liska <mliska@suse.cz>
4969 PR tree-optimization/88753
4970 * tree-switch-conversion.c (switch_conversion::build_one_array):
4971 Come up with local variable constructor. Convert first to
4972 type of constructor values.
4974 2019-01-08 Richard Biener <rguenther@suse.de>
4976 PR tree-optimization/86554
4977 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
4978 rpo_avail): Move earlier.
4979 (visit_nary_op): When value-numbering to expressions
4980 with different overflow behavior make sure there's an
4981 available expression on the path.
4983 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
4985 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
4986 aarch64_parse_branch_protection,
4987 struct aarch64_branch_protect_type,
4988 aarch64_handle_no_branch_protection,
4989 aarch64_handle_standard_branch_protection,
4990 aarch64_validate_mbranch_protection,
4991 aarch64_handle_pac_ret_protection,
4992 aarch64_handle_attr_branch_protection,
4993 accepted_branch_protection_string,
4994 aarch64_pac_ret_subtypes,
4995 aarch64_branch_protect_types,
4996 aarch64_handle_pac_ret_leaf): Define.
4997 (aarch64_override_options_after_change_1, aarch64_override_options):
4998 Add check for accepted_branch_protection_string.
4999 (aarch64_option_save): Save accepted_branch_protection_string.
5000 (aarch64_option_restore): Save accepted_branch_protection_string.
5001 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
5002 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
5003 msign-return-address.
5004 * doc/invoke.texi: Add mbranch-protection.
5006 2019-01-08 Alan Modra <amodra@gmail.com>
5009 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
5010 Delete "unknownp" parameter. Adjust callers. Handle
5011 CONST_INT, PLUS, MINUS, and MULT.
5012 (attr_value_aligned): Renamed from or_attr_value.
5013 (min_attr_value): Return INT_MIN for unhandled rtl case..
5014 (min_fn): ..and translate to INT_MAX here.
5015 (write_length_unit_log): Modify to cope without "unknown".
5016 (write_attr_value): Handle IF_THEN_ELSE.
5018 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5020 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
5021 optimization for masked stores.
5023 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5026 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
5027 output vector directly to duplicate_and_interleave instead of
5028 going through a temporary. Postpone insertion of ctor_seq to
5029 the end of the loop.
5031 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
5034 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
5035 unsigned_p. Handle signed and unsigned overflow correction as
5037 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
5039 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
5041 (add<mode>3_compareV_imm): Make this callable for expanding.
5042 (subv<GPI:mode>4): Use register_operand for operand 1. Use
5043 aarch64_plus_operand for operand 2.
5044 (subv<GPI:mode>_insn): New insn pattern.
5045 (subv<GPI:mode>_imm): Likewise.
5046 (negv<GPI:mode>3): New expand pattern.
5047 (negv<GPI:mode>_insn): New insn pattern.
5048 (negv<GPI:mode>_cmp_only): Likewise.
5049 (cmpv<GPI:mode>_insn): Likewise.
5050 (subvti4): Use register_operand for operand 1. Update call to
5051 aarch64_expand_subvti.
5052 (usubvti4): Likewise.
5053 (negvti3): New expand pattern.
5054 (negdi_carryout): New insn pattern.
5055 (negvdi_carryinV): New insn pattern.
5056 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
5057 version the named version.
5058 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
5060 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
5062 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
5064 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
5065 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
5066 (sub<mode>3_carryinCV): Delete.
5067 (sub<GPI:mode>3_carryinV): New expand pattern.
5068 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
5070 2019-01-07 Richard Biener <rguenther@suse.de>
5072 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
5073 of tree_operand_hash.
5075 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5077 PR tree-optimization/88598
5078 * tree.h (single_nonzero_element): Declare.
5079 * tree.c (single_nonzero_element): New function.
5080 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
5081 if I is the only nonzero element of CST.
5083 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5085 PR tree-optimization/88598
5086 * tree.h (initializer_each_zero_or_onep): Declare.
5087 * tree.c (initializer_each_zero_or_onep): New function.
5088 (signed_or_unsigned_type_for): Handle float types too.
5089 (unsigned_type_for, signed_type_for): Update comments accordingly.
5090 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
5091 x & { 0 or -1, 0 or -1, ... }.
5093 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
5095 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
5096 with x86_64-pc-linux-gnu.
5098 2019-01-07 Tom de Vries <tdevries@suse.de>
5101 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
5103 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
5106 2019-01-07 Jakub Jelinek <jakub@redhat.com>
5108 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
5109 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
5110 TARGET_AVX512F as condition.
5113 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
5114 const_not_ok_for_debug_p target hook.
5115 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
5116 on UNSPEC and subexpressions thereof if all subexpressions of the
5117 UNSPEC are CONSTANT_P.
5119 PR tree-optimization/88676
5120 * tree-ssa-phiopt.c (two_value_replacement): New function.
5121 (tree_ssa_phiopt_worker): Call it.
5124 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
5125 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
5128 * tree-vect-generic.c: Include insn-config.h and recog.h.
5129 (expand_vector_piecewise): Add defaulted ret_type argument,
5130 if non-NULL, use that in preference to type for the result type.
5131 (expand_vector_parallel): Formatting fix.
5132 (do_vec_conversion, do_vec_narrowing_conversion,
5133 expand_vector_conversion): New functions.
5134 (expand_vector_operations_1): Call expand_vector_conversion
5135 for VEC_CONVERT ifn calls.
5136 * internal-fn.def (VEC_CONVERT): New internal function.
5137 * internal-fn.c (expand_VEC_CONVERT): New function.
5138 * fold-const-call.c (fold_const_vec_convert): New function.
5139 (fold_const_call): Use it for CFN_VEC_CONVERT.
5140 * doc/extend.texi (__builtin_convertvector): Document.
5142 2019-01-07 Tom de Vries <tdevries@suse.de>
5144 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
5145 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
5146 vector_red_partition, vector_red_sym): New global variables.
5147 (nvptx_option_override): Initialize vector_red_sym.
5148 (nvptx_declare_function_name): Restore red_partition register.
5149 (nvptx_file_end): Emit code to declare the vector reduction variables.
5150 (nvptx_output_red_partition): New function.
5151 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
5152 large vector reductions.
5153 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
5154 (nvptx_init_builtins): Add VECTOR_ADDR.
5155 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
5156 Handle nvptx_expand_shared_addr.
5157 (nvptx_get_shared_red_addr): Add vector argument and handle large
5159 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
5161 (nvptx_goacc_reduction_init): Likewise.
5162 (nvptx_goacc_reduction_fini): Likewise.
5163 (nvptx_goacc_reduction_teardown): Likewise.
5164 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
5165 init,fini,teardown}.
5166 (nvptx_init_axis_predicate): Initialize vector_red_partition.
5167 (nvptx_set_current_function): Init vector_red_partition.
5168 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
5169 (nvptx_red_partition): New insn.
5170 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
5172 2019-01-07 Tom de Vries <tdevries@suse.de>
5175 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
5178 2019-01-07 Tom de Vries <tdevries@suse.de>
5180 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
5181 (nvptx_option_override): Init oacc_bcast_partition.
5182 (nvptx_init_oacc_workers): New function.
5183 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
5184 (nvptx_needs_shared_bcast): New function.
5185 (nvptx_find_par): Generalize to enable vectors to use shared-memory
5187 (nvptx_shared_propagate): Initialize vector bcast partition and
5188 synchronization state.
5189 (nvptx_single): Generalize to enable vectors to use shared-memory
5191 (nvptx_process_pars): Likewise.
5192 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
5193 * config/nvptx/nvptx.h (struct machine_function): Add
5194 bcast_partition and sync_bar members.
5196 2019-01-07 Tom de Vries <tdevries@suse.de>
5198 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
5199 (nvptx_apply_dim_limits): New function.
5200 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
5203 2019-01-07 Tom de Vries <tdevries@suse.de>
5205 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
5206 as late as possible.
5208 2019-01-07 Tom de Vries <tdevries@suse.de>
5210 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
5211 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
5212 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
5213 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
5214 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
5216 2019-01-07 Tom de Vries <tdevries@suse.de>
5218 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
5220 2019-01-07 Tom de Vries <tdevries@suse.de>
5222 * omp-offload.c (oacc_get_min_dim): New function.
5223 * omp-offload.h (oacc_get_min_dim): Declare.
5225 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
5228 * config/i386/i386.c (function_value_ms_64): Return small sturct in
5229 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
5231 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5235 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5237 * ipa-inline.c (edge_badness): Use inlined_time instead of
5238 inline_summaries->get.
5240 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5242 * opts.c (enable_fdo_optimizations): Enable
5243 version-loops-for-strides, loop-interchange, unrol-and-jam
5244 and tree-loop-distribution.
5245 * invoke.texi: Document newly enabled options.
5247 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5249 * doc/invoke.texi (max-inline-insns-small): New parameters.
5250 * ipa-inline.c (want_early_inline_function_p): simplify.
5251 (want_inline_small_function_p): Fix pasto from previous patch;
5252 use max-inline-insns-small bound.
5253 * params.def (max-inline-insns-small): New param.
5254 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
5255 variables correctly.
5257 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5259 * doc/invoke.texi: Document max-inline-insns-size,
5260 uninlined-function-insns, uninlined-function-time,
5261 uninlined-thunk-insns and uninlined-thunk-time.
5262 * params.def: Add max-inline-insns-size,
5263 uninlined-function-insns, uninlined-function-time,
5264 uninlined-thunk-insns and uninlined-thunk-time.
5265 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
5267 * ipa-inline.c (can_inline_edge_by_limits_p,
5268 want_inline_small_function_p): Use new parameters.
5270 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5272 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
5274 2019-01-05 Jakub Jelinek <jakub@redhat.com>
5278 * expr.c (expand_assignment): For calls returning VLA structures
5279 if to_rtx is not a MEM, force it into a stack temporary.
5282 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
5283 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
5284 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
5285 subexpressions of both operands.
5286 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
5287 subrtxes are CONSTANT_P.
5288 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
5291 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
5293 * params.def (hot-bb-count-ws-permille): Set to 990.
5295 2019-01-04 Martin Sebor <msebor@redhat.com>
5298 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
5301 2019-01-04 Martin Sebor <msebor@redhat.com>
5304 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
5306 2019-01-04 Jakub Jelinek <jakub@redhat.com>
5308 * gdbinit.in: Turn off pagination for the skip commands, restore
5309 it to previous state afterwards.
5311 2019-01-04 Jakub Jelinek <jakub@redhat.com>
5314 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
5315 of GET_MODE (opN) as modes of the libcall arguments.
5317 2019-01-04 Jan Beulich <jbeulich@suse.com>
5319 * config/i386/sse.md
5320 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
5321 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
5322 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
5323 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
5324 avx512f_vmcmp<mode>3<round_saeonly_name>,
5325 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
5326 avx512f_maskcmp<mode>3,
5327 <avx512>_cvt<ssemodesuffix>2mask<mode>,
5328 <avx512>_cvt<ssemodesuffix>2mask<mode>,
5329 *<avx512>_cvtmask2<ssemodesuffix><mode>,
5330 *<avx512>_cvtmask2<ssemodesuffix><mode>,
5331 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
5332 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
5333 <avx512>_gt<mode>3<mask_scalar_merge_name>,
5334 <avx512>_gt<mode>3<mask_scalar_merge_name>,
5335 <avx512>_testm<mode>3<mask_scalar_merge_name>,
5336 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
5337 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
5338 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
5339 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
5340 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
5341 avx512cd_maskb_vec_dup<mode>,
5342 avx512cd_maskw_vec_dup<mode>,
5343 avx512dq_fpclass<mode><mask_scalar_merge_name>,
5344 avx512dq_vmfpclass<mode>,
5345 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
5348 2019-01-03 Martin Sebor <msebor@redhat.com>
5350 PR tree-optimization/88659
5351 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
5353 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
5355 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
5356 unaligned vsx and avoid lxvd2x/stxvd2x.
5357 (gen_lvx_v4si_move): New function.
5359 2019-01-03 Tom de Vries <tdevries@suse.de>
5361 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
5362 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
5364 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
5366 2019-01-03 Tom de Vries <tdevries@suse.de>
5368 * config/nvptx/nvptx.c (struct offload_attrs): New.
5369 (populate_offload_attrs): New function. Factor mask extraction out of
5370 nvptx_reorg. Add extraction of dimensions.
5371 (nvptx_reorg): Use populate_offload_attrs.
5373 2019-01-03 Tom de Vries <tdevries@suse.de>
5375 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
5376 cases for oacc_min_dims_p and routine_p. Add asserts for
5377 oacc_default_dims_p and offload_region_p.
5379 2019-01-03 Tom de Vries <tdevries@suse.de>
5381 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
5383 (nvptx_goacc_validate_dims): ... here.
5385 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
5387 PR tree-optimization/85574
5388 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
5390 (struct ssa_equip_hash_traits): Declare.
5391 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
5393 2019-01-03 Jakub Jelinek <jakub@redhat.com>
5396 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
5397 change it to qualified_type.
5399 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
5401 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
5402 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
5404 2019-01-02 Martin Sebor <msebor@redhat.com>
5405 Jeff Law <law@redhat.com>
5407 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
5408 (get_range_strlen_tree): Update appropriately.
5410 * gimple-fold.h (get_range_strlen): Drop unused last argument.
5412 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
5413 rather than set_range_info.
5414 * tree-ssa-strlen.c (set_strlen_range): Extracted from
5415 maybe_set_strlen_range. Handle potentially boundary crossing
5416 cases more conservatively.
5417 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
5418 Call set_strlen_range.
5419 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
5422 * gimple-fold.c (get_range_strlen): Update prototype to no longer
5423 need the flexp argument.
5424 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
5425 from calls to get_range_strlen. Update comments. Just update
5426 VAL for an unterminated const char array and let the reset of the
5427 code handle it normally. No longer try to set *flexp. Adjust
5429 (get_range_strlen): Update for the new get_range_strlen API.
5430 (get_maxval_strlen): Similarly.
5431 (gimple_fold_builtin_strlen): Handle update meaning of return value
5432 from get_range_strlen.
5433 * gimple-ssa-sprintf.c (get_string_length): Update for the new
5434 get_range_strlen API.
5436 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
5439 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
5440 false at WPA time when body was removed.
5442 2019-01-02 Martin Liska <mliska@suse.cz>
5444 PR tree-optimization/88650
5445 * predict.c (set_even_probabilities): Calculate probability
5446 remainer only when really used.
5448 2019-01-02 Richard Biener <rguenther@suse.de>
5451 * tree-data-ref.c (analyze_subscript_affine_affine): Use
5452 widest_ints when mangling max_stmt_execution results.
5454 2019-01-02 Richard Biener <rguenther@suse.de>
5456 PR tree-optimization/88621
5457 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
5458 bitfields when canoncalizing.
5460 2019-01-02 Richard Biener <rguenther@suse.de>
5463 * config/i386/x86-tune-costs.h (intel_cost): Adjust
5464 cost of cheap SSE instruction.
5466 2019-01-02 Richard Biener <rguenther@suse.de>
5469 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
5470 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
5472 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
5473 set after UIDs before splitting them.
5475 2019-01-01 Martin Sebor <msebor@redhat.com>
5476 Jeff Law <law@redhat.com>
5478 * gimple-fold.c (get_range_strlen_tree): Record if the computed
5479 length is optimistic. If it is, then arrange to compute the
5480 conservative length as well.
5482 * gimple-fold.h (get_range_strlen): Update prototype.
5483 * builtins.c (check_access): Update call to get_range_strlen to use
5484 c_strlen_data pointer. Change various variable accesses to instead
5485 pull data from the c_strlen_data structure.
5486 (check_strncat_sizes, expand_builtin_strncat): Likewise.
5487 * calls.c (maybe_warn_nonstring_arg): Likewise.
5488 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
5489 minimum length if maximum lengh is unknown.
5490 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
5491 that used c_strlen, it's no longer needed. Restructure slightly.
5492 (format_string): Set unlikely range appropriately.
5493 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
5495 (get_range_strlen): Accept c_strlen_data pointer for external
5496 call sites as well. Pass through to call to internal get_range_strlen.
5497 Adjust minlen, maxlen and maxbound as needed.
5498 (get_maxval_strlen): Update comments.
5499 (gimple_fold_builtin_strlen): Update call to get_range_strlen
5500 to use c_strlen_data pointer. Change variable accesses to instead
5501 use c_strlen_data data members.
5503 * gimple-fold.c (get_range_strlen): Update prototype.
5504 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
5505 local variables. Use pdata to return information to caller.
5506 Update calls to get_range_strlen. Update pdata->maxbound.
5507 (get_range_strlen -- static version): Similarly.
5508 (get_range_strlen -- extern version): Update for internal
5509 get_range_strlen API change. Convert to external data format.
5510 (get_maxval_strlen): Similarly.
5512 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
5514 * coverage.c (get_coverage_counts): Use current_function_decl.
5515 * profile.c (read_thunk_profile): New function.
5516 (branch_prob): Add THUNK parameter.
5517 * tree-profile.c (tree_profiling): Handle thunks.
5518 * value-prof.c (init_node_map): Handle thunks.
5519 * value-prof.h (branch_prob): Upate prototype.
5520 (read_thunk_profile): Declare.
5522 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5524 Update copyright years.
5526 * gcc.c (process_command): Update copyright notice dates.
5527 * gcov-dump.c (print_version): Ditto.
5528 * gcov.c (print_version): Ditto.
5529 * gcov-tool.c (print_version): Ditto.
5530 * gengtype.c (create_file): Ditto.
5531 * doc/cpp.texi: Bump @copying's copyright year.
5532 * doc/cppinternals.texi: Ditto.
5533 * doc/gcc.texi: Ditto.
5534 * doc/gccint.texi: Ditto.
5535 * doc/gcov.texi: Ditto.
5536 * doc/install.texi: Ditto.
5537 * doc/invoke.texi: Ditto.
5539 Copyright (C) 2019 Free Software Foundation, Inc.
5541 Copying and distribution of this file, with or without modification,
5542 are permitted in any medium without royalty provided the copyright
5543 notice and this notice are preserved.