1 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
4 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
5 instead of POLY_INT_CST.
7 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
9 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
12 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
17 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
18 (_mm_storeu_si64): Ditto.
20 2019-03-08 Martin Liska <mliska@suse.cz>
23 * config/i386/i386.c (ix86_option_override_internal): Disable
24 jump tables when retpolines are used.
26 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
29 * ipa-split.c (execute_split_functions): Do not split
30 'noinline' or 'section' function.
32 2019-03-08 Jakub Jelinek <jakub@redhat.com>
35 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
36 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
37 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
40 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
41 from diagnostics. Formatting fixes.
44 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
48 * lra-constraints.c (process_alt_operands): Avoid one space before
49 " at the end of line and another after " on another line in a string
51 * attribs.c (handle_dll_attribute): Likewise.
52 * config/avr/avr-devices.c (avr_texinfo): Likewise.
54 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
55 warning_at or inform messages in G_() if there is no ?:.
57 PR tree-optimization/89550
58 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
59 returned true. Formatting fixes.
60 (expand_builtin_strnlen): Formatting fixes.
61 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
62 if warning_at returned true.
63 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
65 2019-03-08 Richard Biener <rguenther@suse.de>
68 * cfgloop.h (struct loop): Add owned_clique field.
69 * cfgloopmanip.c (copy_loop_info): Copy it.
70 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
72 * tree-inline.c (copy_loops): Remap owned_clique.
73 * lto-streamer-in.c (input_cfg): Stream owned_clique.
74 * lto-streamer-out.c (output_cfg): Likewise.
76 2019-03-08 Jakub Jelinek <jakub@redhat.com>
79 * config/darwin.c: Include intl.h.
80 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
81 composing the message out of two separate parts.
83 2019-03-07 Jakub Jelinek <jakub@redhat.com>
86 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
87 doesn't start with a capital letter and doesn't end with a dot.
88 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
89 with a capital letter.
90 (ix86_mangle_function_version_assembler_name): Likewise.
91 (ix86_generate_version_dispatcher_body): Likewise.
92 (fold_builtin_cpu): Likewise.
93 (get_builtin_code_for_version): Likewise. Remove extraneous space.
94 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
95 translators, wrap full type name in %qs.
98 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
99 depend clause with source (or sink) modifier.
100 * omp-expand.c (expand_omp_ordered_sink): Likewise.
103 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
104 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
105 (avx512f_load<mode>_mask): New define_expand.
106 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
107 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
108 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
109 __builtin_ia32_movess_mask): New builtins.
110 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
111 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
112 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
113 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
115 2019-03-07 Martin Jambor <mjambor@suse.cz>
118 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
119 for extern inline functions.
121 2019-03-07 Martin Jambor <mjambor@suse.cz>
124 * cgraph.h (cgraph_node): New inline method former_thunk_p.
125 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
126 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
127 have multiple callees. At the end check if declarations match as
128 opposed to cgraph_nodes.
130 2019-03-07 Martin Liska <mliska@suse.cz>
132 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
133 which is equivalent to searching for this in clones chain.
134 * symtab.c (symtab_node::verify_base): Similarly compare ASM
135 names with a neighbour and special case first node in a chain.
137 2019-01-25 Jason Merrill <jason@redhat.com>
139 PR c++/80916 - spurious "static but not defined" warning.
140 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
141 for an internal symbol with DECL_EXTERNAL.
143 2019-04-07 Richard Biener <rguenther@suse.de>
146 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
147 * tree-inline.c (copy_loops): Simplify.
149 2019-03-07 Martin Liska <mliska@suse.cz>
151 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
153 2019-03-07 Richard Biener <rguenther@suse.de>
155 PR tree-optimization/89595
156 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
157 stmt iterator as reference, take boolean output parameter to
158 indicate whether the stmt was removed and thus the iterator
160 (dom_opt_dom_walker::before_dom_children): Re-iterate over
161 stmts created by folding.
163 2019-03-07 Jakub Jelinek <jakub@redhat.com>
166 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
169 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
171 PR rtl-optimization/88845
172 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
174 * lra.c (remove_scratches_1): New function.
175 (remove_scratches): Use it.
176 (lra_emit_move): Likewise.
178 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
180 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
181 unaligned_access variable.
182 * config/arc/arc.c (arc_override_options): Set unaligned access
183 default on for HS CPUs.
184 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
186 2019-03-06 Martin Liska <mliska@suse.cz>
188 PR gcov-profile/89577
189 * doc/gcov.texi: Prefer to use --coverage.
190 * doc/sourcebuild.texi: Likewise.
192 2019-03-02 Jason Merrill <jason@redhat.com>
194 PR c++/86485 - -Wmaybe-unused with empty class ?:
195 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
197 2019-03-05 Jakub Jelinek <jakub@redhat.com>
200 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
204 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
205 exactly one argument.
207 2019-03-05 Jakub Jelinek <jakub@redhat.com>
208 Richard Sandiford <richard.sandiford@arm.com>
210 PR tree-optimization/89570
211 * match.pd (vec_cond into cond_op simplification): Don't use
212 get_conditional_internal_fn, use as_internal_fn (cond_op).
214 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
217 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
218 to decide when to split off a non-zero offset from a symbol.
219 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
222 2019-03-05 Richard Biener <rguenther@suse.de>
224 PR tree-optimization/89594
225 * tree-if-conv.c (pass_if_conversion::execute): Handle
226 case where .LOOP_VECTORIZED_FUNCTION was removed.
228 2019-03-05 Jakub Jelinek <jakub@redhat.com>
231 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
232 instead alloca it only when needed with the needed size.
234 PR tree-optimization/89570
235 * match.pd (vec_cond into cond_op simplification): Guard with
236 vectorized_internal_fn_supported_p test and #if GIMPLE.
238 PR tree-optimization/89566
239 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
240 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
241 Punt if get_user_idx_format succeeds, but idx_format argument is
242 not provided or doesn't have pointer type, or if idx_args is above
243 number of provided arguments.
245 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
247 PR tree-optimization/89437
248 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
250 2019-03-04 Richard Biener <rguenther@suse.de>
253 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
256 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
258 PR tree-optimization/89487
259 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
260 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
261 (distribute_loop): Don't do runtime alias check if there is non-
262 addressable data reference.
263 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
264 is a register variable.
266 2019-03-02 Jakub Jelinek <jakub@redhat.com>
269 * config/arm/arm.md (cmpsi2_addneg): Use
270 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
271 If operands[2] is 0 or INT_MIN, force use of subs.
272 (*compare_scc splitter): Use gen_int_mode.
274 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
276 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
277 Monk Chiang <sh.chiang04@gmail.com>
279 * common/config/riscv/riscv-common.c: Include sstream.
280 (riscv_subset_list::to_string): New.
281 (riscv_arch_str): Likewise.
282 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
284 * config/riscv/riscv-protos.h (riscv_arch_str): New.
285 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
286 (riscv_emit_attribute): New.
287 (riscv_file_start): Emit attribute if needed.
288 (riscv_option_override): Init riscv_emit_attribute_p.
289 * config/riscv/riscv.opt (mriscv-attribute): New option.
290 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
292 * doc/install.texi: Document --with-riscv-attribute.
293 * doc/invoke.texi: Document -mriscv-attribute.
295 * common/config/riscv/riscv-common.c:
296 Include config/riscv/riscv-protos.h.
297 (INCLUDE_STRING): Defined.
298 (RISCV_DONT_CARE_VERSION): Defined.
299 (riscv_subset_t): Declare.
300 (riscv_subset_t::riscv_subset_t): New.
301 (riscv_subset_list): Declare.
302 (riscv_subset_list::riscv_subset_list): New.
303 (riscv_subset_list::~riscv_subset_list): Likewise.
304 (riscv_subset_list::parsing_subset_version): Likewise.
305 (riscv_subset_list::parse_std_ext): Likewise.
306 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
307 (riscv_subset_list::add): Likewise.
308 (riscv_subset_list::lookup): Likewise.
309 (riscv_subset_list::xlen): Likewise.
310 (riscv_subset_list::parse): Likewise.
311 (riscv_supported_std_ext): Likewise.
312 (current_subset_list): Likewise.
313 (riscv_parse_arch_string): Using riscv_subset_list::parse to
316 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
318 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
319 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
320 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
322 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
324 PR rtl-optimization/85899
325 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
326 fallthru edges leading to the exit block.
328 2019-03-01 Tamar Christina <tamar.christina@arm.com>
331 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
332 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
334 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
336 PR tree-optimization/89535
337 * tree-vect-stmts.c (vectorizable_call): Record the vector types
338 for each operand. Calculate the fallback choice for mask operands
339 and pass it to vect_get_vec_def_for_operand.
341 2019-03-01 Richard Biener <rguenther@suse.de>
344 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
345 get virtual operands.
346 (get_expr_operands): Handle CONST_DECL like other decls.
348 2019-03-01 Jakub Jelinek <jakub@redhat.com>
351 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
352 on DECL_P and EXPR_P.
354 2019-03-01 Richard Biener <rguenther@suse.de>
357 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
358 argument, defaulted to zero.
359 * passes.c (execute_function_todo): Pass down SSA update flags
361 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
362 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
364 (cleanup_tree_cfg): Get and pass down SSA update flags.
366 2019-03-01 Jakub Jelinek <jakub@redhat.com>
369 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
370 early_lto_debug argument.
372 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
374 PR tree-optimization/89536
375 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
376 only whether bit #0 of the value is 0 instead of the entire value.
378 2019-02-28 Marek Polacek <polacek@redhat.com>
380 PR c++/87068 - missing diagnostic with fallthrough statement.
381 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
382 at the end of a seq, save its location to walk_stmt_info.
383 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
386 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
389 * tree.c (find_atomic_core_type): Move ahead in file.
390 (check_base_type): Correctly compare alignments of atomic types.
392 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
395 * config/i386/i386.c (get_builtin_code_for_version): Identify
396 Westmere from PCLMUL, instead of AES.
398 2019-02-28 Jakub Jelinek <jakub@redhat.com>
401 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
402 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
405 2019-02-28 Tamar Christina <tamar.christina@arm.com>
408 * config/aarch64/aarch64-option-extensions.def: Document it.
409 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
412 2019-02-28 Jakub Jelinek <jakub@redhat.com>
415 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
416 builtins if they don't have a single scalar floating point argument.
419 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
421 PR rtl-optimization/89490
422 * varasm.c (get_block_for_section): Bail out for mergeable sections.
423 (default_use_anchors_for_symbol_p, output_object_block): Assert the
424 block section is not mergeable.
426 2019-02-27 Jakub Jelinek <jakub@redhat.com>
429 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
430 old define_insn to ...
431 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
432 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
433 Rename old define_insn to ...
434 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
435 (thumb2_casesi_internal_pic): New define_expand. Rename old
437 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
438 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
439 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
441 2019-02-27 Richard Biener <rguenther@suse.de>
444 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
446 2019-02-27 Richard Biener <rguenther@suse.de>
448 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
451 2019-02-27 Richard Biener <rguenther@suse.de>
454 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
455 parameter, prefix section name with .gnu.debuglto_ if true.
456 (dwarf2out_finish): Pass false to output_comdat_type_unit.
457 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
459 2019-02-27 Richard Biener <rguenther@suse.de>
462 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
463 rather than on use_debug_types, doing what output_die does.
464 (value_format): Likewise.
466 2019-02-27 Martin Jambor <mjambor@suse.cz>
467 Martin Sebor <msebor@redhat.com>
469 * doc/invoke.texi (Warning Options): Reword description of
472 2019-02-27 Jakub Jelinek <jakub@redhat.com>
474 PR tree-optimization/89280
475 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
476 builtin_setjmp_setup_bb): New functions.
477 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
478 When visiting __builtin_setjmp_setup block, queue in special
479 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
480 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
481 from visited after the loop if they don't have any visited successor
484 2018-02-26 Steve Ellcey <sellcey@marvell.com>
486 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
488 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
490 2019-02-26 Jakub Jelinek <jakub@redhat.com>
493 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
494 with types other than sizetype/ssizetype.
496 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
498 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
499 (enum sparc_processor_type): ...this.
500 (enum sparc_code_model_type): New enumeration type.
501 (enum sparc_memory_model_type): Tweak comments.
502 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
504 (mcmodel): Use sparc_code_model enumeration and variable.
505 (sparc_code_model): New enumeration.
506 (mdebug): Add Undocumented marker.
507 * config/sparc/sparc.h (enum cmodel): Delete.
508 (sparc_cmodel): Likewise.
509 (TARGET_CM_MEDLOW): Adjust to above renaming.
510 (TARGET_CM_MEDMID): Likewise.
511 (TARGET_CM_MEDANY): Likewise.
512 (TARGET_CM_EMBMEDANY): Likewise.
513 * config/sparc/sparc.c (sparc_cmodel): Delete.
514 (sparc_option_override): Remove string/value mapping support for the
515 code model. Move code and memory model support to after the handling
516 of target flags. Do private machine setup last.
517 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
518 (sparc_legitimize_reload_address): Likewise.
519 (sparc_output_mi_thunk): Likewise.
520 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
522 2019-02-26 Jakub Jelinek <jakub@redhat.com>
524 PR tree-optimization/89500
525 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
526 (handle_builtin_strlen): Remove noncst_bound variable. Always
527 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
528 cst if the first cst bytes starting at x are known to be non-zero,
529 even if the string is not zero terminated. Don't try to modify
530 *si for strnlen. Update strlen_to_stridx only for strlen or if
531 we can prove strnlen returns the same value as strlen would.
533 2019-02-26 Martin Liska <mliska@suse.cz>
535 * alloc-pool.h (struct pool_usage): Remove extra
537 * bitmap.h (struct bitmap_usage): Likewise.
538 * ggc-common.c (struct ggc_usage): Likewise.
539 * mem-stats.h (struct mem_usage): Likewise.
540 (mem_alloc_description::dump): Print dash lines
541 here and repeat header at the end of a table report.
542 It's then more readable.
543 * tree-phinodes.c (phinodes_print_statistics): Make
544 horizontal alignment.
545 * tree-ssanames.c (ssanames_print_statistics): Likewise.
546 * vec.c (struct vec_usage): Remove extra print_dash_line.
547 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
549 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
551 * doc/extend.texi (__builtin_object_size):
552 Use @pxref instead of @xref inside parenthesis.
553 (__builtin_has_attribute): Add missing comma after @xref.
554 (__builtin_object_size): Ditto.
555 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
556 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
559 2019-02-26 Jeff Law <law@redhat.com>
561 PR rtl-optimization/87761
562 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
563 detect obviously dead insns and delete them.
565 2019-02-26 Richard Biener <rguenther@suse.de>
567 PR tree-optimization/89505
568 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
569 to handle restrict pointed-to vars with multiple subvars
572 2019-02-26 Richard Biener <rguenther@suse.de>
574 PR tree-optimization/89489
575 * tree-parloops.c (create_loop_fn): Copy over last_clique.
577 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
579 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
580 and move around comment.
581 <BIT_AND_EXPR>: Likewise.
582 <BIT_NOT_EXPR>: Add specific handling for boolean types.
584 2019-02-26 Jakub Jelinek <jakub@redhat.com>
587 * config/i386/i386.c (remove_partial_avx_dependency): Call
588 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
589 after changing possibly many instructions to use that pseudo. Fix up
590 insertion of v4sf_const0 setter at the start of bb.
592 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
595 * doc/extend.texi (Variadic Pointer Args): New section.
597 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
598 Martin Sebor <msebor@gmail.com>
600 * common.opt (Wattribute-alias): Likewise.
601 * doc/invoke.texi (Option Summary): List general form of
602 -Wattribute-alias=. List positive form of -Wmissing-attributes.
603 (-Wmissing-attributes): Invert entry, rewrite and correct default.
604 Add cross-references.
605 (-Wattribute-alias): Rewrite and correct default. Mention
606 considered attributes (same as for -Wmissing-attributes).
608 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
610 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
611 (_mm_cvtpd_ps): Likewise.
612 (_mm_cvttpd_epi32): Likewise.
615 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
616 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
619 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
621 2019-02-25 Tamar Christina <tamar.christina@arm.com>
624 * common/config/aarch64/aarch64-common.c
625 (struct aarch64_option_extension): Add is_synthetic.
626 (all_extensions): Use it.
627 (TARGET_OPTION_INIT_STRUCT): Define hook.
628 (struct gcc_targetm_common): Moved to end.
629 (all_extensions_by_on): New.
630 (opt_ext_cmp, typedef opt_ext): New.
631 (aarch64_option_init_struct): New.
632 (aarch64_contains_opt): New.
633 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
634 * config/aarch64/aarch64-option-extensions.def
635 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
636 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
637 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
638 Set is_synthetic to false.
639 (crypto): Set is_synthetic to true.
640 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
643 2019-02-25 Tamar Christina <tamar.christina@arm.com>
645 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
646 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
647 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
648 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
649 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
650 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
651 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
652 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
654 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
655 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
656 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
657 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
658 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
659 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
660 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
661 vfmlsl_laneq_high_f16): ... To this.
662 * config/arm/neon.md: Update comments.
664 2019-02-25 Tamar Christina <tamar.christina@arm.com>
666 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
667 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
668 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
669 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
670 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
671 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
672 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
673 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
675 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
676 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
677 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
678 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
679 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
680 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
681 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
682 vfmlslq_laneq_high_f16): ... To this.
684 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
686 PR rtl-optimization/86096
687 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
688 comparing mw_order values.
690 2019-02-25 Jakub Jelinek <jakub@redhat.com>
693 * config/arm/arm.md (*subsi3_carryin_const): Use
694 arm_neg_immediate_operand predicate instead of
695 arm_not_immediate_operand, "L" constraint instead of "K" and
696 print it using %n2 instead of %B2.
697 (*subsi3_carryin_const0): New define_insn.
698 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
699 instead of arm_not_operand and "I" constraint instead of "K" and
700 print it using %n3 instead of %B2. Instead of using match_dup 2 add
701 another match_operand and in the condition check that it is negation
703 (*subsi3_carryin_compare_const0): New define_ins.
704 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
705 *subsi3_carryin_const.
706 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
707 split into *subsi3_carryin_compare_const0 if the highpart is zero.
710 * config/arm.vfp.md (*negdf2_vfp): Use
711 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
712 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
714 2019-02-24 Jakub Jelinek <jakub@redhat.com>
716 PR rtl-optimization/89445
717 * simplify-rtx.c (simplify_ternary_operation): Don't use
718 simplify_merge_mask on operands that may trap.
719 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
720 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
721 second operand is CONST_VECTOR, check if any element could be zero.
722 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
723 their operands can trap.
725 2019-02-23 Martin Sebor <msebor@redhat.com>
727 * gimple-ssa-sprintf.c (target_strtol): Rename...
728 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
729 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
730 check for range error.
732 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
735 * opts-common.c (prune_options): Also prune joined switches
736 with Negative and RejectNegative.
737 * config/i386/i386.opt (march=): Add Negative(march=).
738 (mtune=): Add Negative(mtune=).
739 * doc/options.texi: Document Negative used together with Joined
742 2019-02-22 Martin Sebor <msebor@redhat.com>
744 * doc/extend.texi (Other Builtins): Add
745 __builtin_is_constant_evaluated.
747 2019-02-22 Richard Biener <rguenther@suse.de>
749 PR tree-optimization/87609
750 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
752 2019-02-22 Jeff Law <law@redhat.com>
754 PR rtl-optimization/87761
755 * config/mips/mips.md: Add new combiner pattern to recognize
756 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
758 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
761 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
762 destination register in peepholes generating patterns for ADDS/SUBS.
763 (add<mode>3_compare0,
764 *addsi3_compare0_uxtw, add<mode>3_compareC,
765 add<mode>3_compareV_imm, add<mode>3_compareV,
766 *adds_<optab><ALLX:mode>_<GPI:mode>,
767 *subs_<optab><ALLX:mode>_<GPI:mode>,
768 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
769 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
770 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
771 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
772 sub<mode>3_compare1): Allow stack pointer for source register.
773 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
775 2019-02-22 Martin Sebor <msebor@redhat.com>
777 PR tree-optimization/88993
778 PR tree-optimization/88853
779 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
781 (sprintf_dom_walker::call_info::is_string_func): New helper.
782 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
783 for formatted string functions.
784 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
786 2019-02-22 Martin Sebor <msebor@redhat.com>
789 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
790 unreachable subexpressions.
792 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
793 Hongtao Liu <hongtao.liu@intel.com>
794 Sunil K Pandey <sunil.k.pandey@intel.com>
797 * config/i386/i386-passes.def: Add
798 pass_remove_partial_avx_dependency.
799 * config/i386/i386-protos.h
800 (make_pass_remove_partial_avx_dependency): New.
801 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
803 (pass_data_remove_partial_avx_dependency): New.
804 (pass_remove_partial_avx_dependency): Likewise.
805 (make_pass_remove_partial_avx_dependency): Likewise.
806 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
807 (*extendsfdf2): Add avx_partial_xmm_update.
808 (truncdfsf2): Likewise.
809 (*float<SWI48:mode><MODEF:mode>2): Likewise.
810 (SF/DF conversion splitters): Disabled for TARGET_AVX.
812 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
815 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
818 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
821 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
822 (PTA_SKYLAKE): Add PTA_AES.
823 (PTA_GOLDMONT): Likewise.
825 2019-02-22 Sudakshina Das <sudi.das@arm.com>
827 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
828 instruction if enabled.
829 (aarch64_override_options): Remove reference to return address key.
831 2019-02-22 Richard Biener <rguenther@suse.de>
833 PR tree-optimization/89440
834 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
835 not necessary assert.
837 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
840 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
841 (oacc_replace_fn_attrib_attr): ... this new function.
842 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
843 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
845 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
847 * config/arm/arm-cpus.in (ares): Rename to...
848 (neoverse-n1): ... This. Add ares as alias.
849 * config/arm/arm-tables.opt: Regenerate.
850 * config/arm/arm-tune.md: Likewise.
851 * doc/invoke.txt (ARM Options): Document neoverse-n1.
853 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
855 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
856 * config/aarch64/aarch64-tune.md: Regenerate.
857 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
859 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
861 * config/aarch64/aarch64.c (ares_tunings): Rename to...
862 (neoversen1_tunings): ... This.
863 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
864 (neoverse-n1): New CPU.
865 * config/aarch64/aarch64-tune.md: Regenerate.
866 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
868 2019-02-22 Richard Biener <rguenther@suse.de>
871 * cfghooks.h (dependence_hash): New typedef.
872 (struct copy_bb_data): New type.
873 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
874 (duplicate_block): Likewise.
875 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
876 (copy_bbs): Create and pass down copy_bb_data.
877 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
878 (rtl_duplicate_bb): Likewise.
879 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
880 remap dependence info.
882 2019-02-22 Richard Biener <rguenther@suse.de>
884 PR tree-optimization/87609
885 * tree-core.h (tree_base): Document special clique values.
886 * tree-inline.c (remap_dependence_clique): Do not use the
887 special clique value of one.
888 (maybe_set_dependence_info): Use clique one.
889 (clear_dependence_clique): New callback.
890 (compute_dependence_clique): Clear clique one from all refs
891 before assigning it (again).
893 2019-02-21 Martin Sebor <msebor@redhat.com>
895 * doc/extend.texi (__clear_cache): Correct signature.
897 2019-02-21 Ian Lance Taylor <iant@golang.org>
900 * varasm.c (decode_addr_const): Call lookup_constant_def rather
901 than output_constant_def.
902 (add_constant_to_table): New static function.
903 (output_constant_def): Call add_constant_to_table.
904 (tree_output_constant_def): Likewise.
906 2019-02-21 Jakub Jelinek <jakub@redhat.com>
909 * builtins.c (fold_builtin_arith_overflow): If first two args are
910 INTEGER_CSTs, set intres and ovfres to constants rather than calls
913 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
916 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
917 error for -mindirect-branch/-mfunction-return with incompatible
920 2019-02-21 Jakub Jelinek <jakub@redhat.com>
923 * constraints.md (q): Remove.
924 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
927 2019-02-21 Martin Jambor <mjambor@suse.cz>
930 * omp-general.c (omp_extract_for_data): Removed a duplicate call
931 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
932 (omp_adjust_for_condition): ...here. Added necessary parameters.
933 * omp-general.h (omp_adjust_for_condition): Updated declaration.
934 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
935 proper values to new parameters of omp_adjust_for_condition.
937 2019-02-20 Jakub Jelinek <jakub@redhat.com>
940 * expr.c (expand_assignment): If result is a MEM, use change_address
941 instead of simplify_gen_subreg.
943 2019-02-20 Jakub Jelinek <jakub@redhat.com>
944 David Malcolm <dmalcolm@redhat.com>
947 * fold-const.c (decode_field_reference): Return NULL_TREE if
948 lang_hooks.types.type_for_size returns NULL. Check it before
949 overwriting *exp_. Use return NULL_TREE instead of return 0.
951 2019-02-20 Jakub Jelinek <jakub@redhat.com>
955 * toplev.c (do_compile): Double the emin/emax exponents to workaround
958 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
961 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
962 TARGET_SSE in addition to TARGET_SSE_MATH.
964 (ix86_excess_precision): Ditto.
965 (ix86_float_exceptions_rounding_supported_p): Ditto.
966 (use_rsqrt_p): Ditto.
967 * config/i386/sse.md (rsqrt<mode>2): Ditto.
969 2019-02-20 David Malcolm <dmalcolm@redhat.com>
972 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
973 linenum_arith_t when determining if two adjacent line spans are
974 close enough to merge.
975 (diagnostic_show_locus): Use linenum_arith_t when iterating over
976 lines within each line_span.
978 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
981 * lra-constraints.c(uses_hard_regs_p): Fix handling of
984 2019-02-20 Li Jia He <helijia@linux.ibm.com>
987 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
988 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
989 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
992 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
994 * config/gcn/gcn.c (print_operand): Fix typo.
996 2019-02-19 Richard Biener <rguenther@suse.de>
999 * toplev.c (do_compile): Initialize mpfr's exponent range
1000 based on available float modes.
1002 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
1004 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
1005 as long as the epilogue isn't completed.
1007 2019-02-18 Martin Sebor <msebor@redhat.com>
1009 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
1010 __has_cpp_attribute, and __has_include.
1012 2019-02-18 Martin Sebor <msebor@redhat.com>
1014 * doc/invoke.texi (-Wreturn-type): Correct and expand.
1016 2019-02-18 Martin Sebor <msebor@redhat.com>
1019 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
1021 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
1023 2019-02-18 Richard Biener <rguenther@suse.de>
1025 PR tree-optimization/89296
1026 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
1027 of no-warning flag to cases that might emit the bogus warning.
1029 2019-02-18 Jakub Jelinek <jakub@redhat.com>
1032 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
1034 * config/arm/vfp.md (*movdi_vfp): Likewise.
1035 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
1036 "q" constraint for operands[0].
1039 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
1040 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
1041 pattern in a temporary buffer.
1042 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
1043 than 64-operands[2].
1046 * config/s390/s390.c (s390_indirect_branch_attrvalue,
1047 s390_indirect_branch_settings): Define unconditionally.
1048 (s390_set_current_function): Likewise, but guard the whole body except
1049 the s390_indirect_branch_settings call with
1050 #if S390_USE_TARGET_ATTRIBUTE.
1051 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
1053 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
1054 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
1055 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
1056 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
1057 HOST_WIDE_INT_1U instead of 1ULL.
1058 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
1059 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
1060 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
1061 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
1063 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
1066 2019-02-18 Martin Jambor <mjambor@suse.cz>
1068 PR tree-optimization/89209
1069 * tree-sra.c (create_access_replacement): New optional parameter
1070 reg_tree. Use it as a type if non-NULL and access type is not of
1072 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
1073 to create_access_replacement.
1074 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
1075 Check lacc is non-NULL before attempting to re-create it on the RHS.
1077 2019-02-18 Martin Liska <mliska@suse.cz>
1080 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
1082 (symbol_table::free_edge): Recycle m_summary_id.
1083 * cgraph.h (get_summary_id): New.
1084 (symbol_table::release_symbol): Set m_summary_id to -1
1086 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
1087 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
1088 function_summary to fast_function_summary.
1089 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
1090 * ipa-pure-const.c (class funct_state_summary_t):
1091 Switch from function_summary to fast_function_summary.
1092 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
1093 (class ipa_ref_opt_summary_t): Switch from function_summary
1094 to fast_function_summary.
1095 * symbol-summary.h (class function_summary_base): New class
1096 that is created from base of former function_summary.
1097 (function_summary_base::unregister_hooks): New.
1098 (class function_summary): Inherit from function_summary_base.
1099 (class call_summary_base): New class
1100 that is created from base of former call_summary.
1101 (class call_summary): Inherit from call_summary_base.
1102 (struct is_same): New.
1103 (class fast_function_summary): New summary class.
1104 (class fast_call_summary): New summary class.
1105 * vec.h (vec_safe_grow_cleared): New function.
1107 2019-02-18 Martin Liska <mliska@suse.cz>
1109 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
1110 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
1111 * doc/tm.texi: Document new target hook.
1112 * doc/tm.texi.in: Likewise.
1113 * target.def: Add new target macro.
1114 * gcc.c (find_fortran_preinclude_file): Do not search multilib
1117 2019-02-17 Alan Modra <amodra@gmail.com>
1120 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
1121 output reg on add insn.
1122 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
1124 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
1127 * config/i386/sse.md (ssedoublemode): Remove V4HI.
1128 (PMULHRSW): Likewise.
1129 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
1131 (ssse3_pmulhrswv4hi3): New expander.
1133 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
1135 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
1136 MMX. Add isa attribute.
1138 2019-02-16 Jakub Jelinek <jakub@redhat.com>
1140 PR rtl-optimization/66152
1141 * builtins.h (c_readstr): Declare.
1142 * builtins.c (c_readstr): Remove forward declaration. Add
1143 null_terminated_p argument, if false, read all bytes from the
1144 string instead of stopping after '\0'.
1145 * expr.c (string_cst_read_str): New function.
1146 (store_expr): Use string_cst_read_str instead of
1147 builtin_strncpy_read_str. Try to store by pieces the whole
1148 exp_len first, and only if that fails, split it up into
1149 store by pieces followed by clear_storage. Formatting fix.
1151 * config/i386/i386.md (*movqi_internal): Remove static from
1152 buf variable. Use output_asm_insn (buf, operands); return "";
1153 instead of return buf;.
1154 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
1155 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
1156 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
1158 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
1160 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
1161 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
1162 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
1163 (CC1_SPEC): Likewise.
1164 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
1166 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
1168 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
1169 the base address on 64-bit strict-alignment platforms.
1171 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
1173 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
1175 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
1177 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
1179 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
1181 PR rtl-optimization/88308
1182 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
1183 on copied instruction.
1185 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
1187 * final.c (insn_current_reference_address): Replace test on JUMP_P
1188 with test on jump_to_label_p.
1189 * config/visium/visium-passes.def: New file.
1190 * config/visium/t-visium (PASSES_EXTRA): Define.
1191 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
1192 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
1193 (TRAMPOLINE_ALIGNMENT): Define.
1194 * config/visium/visium.c (visium_option_override): Do not register
1195 the machine-specific reorg pass here.
1196 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
1198 (output_branch): Adjust threshold for long branch instruction.
1199 * config/visium/visium.md (cpu): Move around.
1200 (length): Adjust for the GR6.
1202 2019-02-15 Richard Biener <rguenther@suse.de>
1203 Jakub Jelinek <jakub@redhat.com>
1205 PR tree-optimization/89278
1206 * tree-loop-distribution.c: Include tree-eh.h.
1207 (generate_memset_builtin, generate_memcpy_builtin): Call
1208 rewrite_to_non_trapping_overflow on builtin->size before passing it
1209 to force_gimple_operand_gsi.
1211 2019-02-15 Jakub Jelinek <jakub@redhat.com>
1214 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
1216 * opth-gen.awk: Likewise.
1218 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
1220 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
1221 Enable MMX, SSE and SSE2 by default.
1222 * config/i386/i386.c (ix86_option_override_internal): Do not
1223 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
1225 2019-02-14 Jakub Jelinek <jakub@redhat.com>
1227 PR rtl-optimization/89354
1228 * combine.c (make_extraction): Punt if extraction_mode is narrower
1231 2019-02-14 Maya Rashish <coypu@sdf.org>
1233 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
1234 * config/netbsd-d.c: New file.
1235 * config/t-netbsd: Add netbsd-d.o
1237 2018-02-14 Steve Ellcey <sellcey@marvell.com>
1239 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
1240 affects_type_identity to true for aarch64_vector_pcs.
1241 (aarch64_comp_type_attributes): New function.
1242 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
1244 2019-02-14 Tamar Christina <tamar.christina@arm.com>
1247 * config/arm/iterators.md (ANY64): Add V4HF.
1249 2019-02-14 Martin Liska <mliska@suse.cz>
1251 PR rtl-optimization/89242
1252 * dce.c (delete_unmarked_insns): Call free_dominance_info we
1253 process a transformation.
1255 2019-02-14 Jakub Jelinek <jakub@redhat.com>
1257 PR tree-optimization/89314
1258 * fold-const.c (fold_binary_loc): Cast strlen argument to
1259 const char * before dereferencing it. Formatting fixes.
1262 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
1264 2019-02-13 Ian Lance Taylor <iant@golang.org>
1266 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
1267 and set current index for other optimizations.
1269 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
1271 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
1272 nonimmediate_operand as operand 2 predicate.
1273 (vec_set<VF2_512_256:mode>_0): Ditto.
1274 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
1275 (*vec_concatv2si): Remove alternative 2.
1276 (*vec_concatv4si_0): Use vm constraint for alternative 0.
1277 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
1278 (vec_concatv2di): Split alternatives 4,5,6 to ...
1279 (*vec_concatv2di_0) ... new pattern.
1281 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
1284 * config/arm/arm.c (ldm_stm_operation_p) Set
1285 addr_reg_in_reglist correctly for first register.
1286 (load_multiple_sequence): Remove dead base check.
1287 (gen_ldm_seq): Correctly set write_back for Thumb-1.
1289 2019-02-13 Tamar Christina <tamar.christina@arm.com>
1292 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
1293 Expose as @aarch64_pred_mov.
1294 * config/aarch64/aarch64.c (aarch64_classify_address):
1295 Use expand_insn which legitimizes operands.
1297 2019-02-13 Martin Liska <mliska@suse.cz>
1299 * builtins.h (expand_builtin_with_bounds): Remove declaration.
1300 * calls.c (struct arg_data): Remove special_slot, pointer_arg
1301 and pointer_offset fields.
1302 (initialize_argument_information): Remove usage of dead
1304 * cgraph.h (struct cgraph_thunk_info): Remove
1305 add_pointer_bounds_args.
1306 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
1308 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
1310 * config/i386/i386.c (ix86_function_arg_advance): Remove
1312 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
1313 (def_builtin): Remove usage of dead
1315 (ix86_add_new_builtins): Likewise.
1316 * ipa-fnsummary.c (compute_fn_summary): Likewise.
1317 * ipa-icf.c (sem_function::equals_wpa): Likewise.
1318 (sem_function::init): Likewise.
1319 (sem_variable::merge): Likewise.
1320 * ipa-visibility.c (function_and_variable_visibility): Likewise.
1321 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
1322 * lto-cgraph.c (lto_output_node): Likewise.
1323 (lto_output_varpool_node): Likewise.
1324 (input_node): Likewise.
1325 (input_varpool_node): Likewise.
1326 * lto-streamer-out.c (lto_output): Likewise.
1327 * tree-inline.c (expand_call_inline): Remove usage of
1329 * tree-inline.h (struct copy_body_data): Likewise.
1330 * varpool.c (varpool_node::dump): Likewise.
1332 2019-02-13 Jakub Jelinek <jakub@redhat.com>
1335 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
1336 into pt->vars_contains_escaped_heap instead of setting
1337 pt->vars_contains_escaped_heap to it.
1340 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
1341 INTVAL (size), compare it to GET_MODE_MASK instead of
1342 1 << GET_MODE_BITSIZE.
1345 * config/i386/predicates.md (x86_64_immediate_operand): Allow
1346 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
1349 2019-02-13 Martin Liska <mliska@suse.cz>
1352 * cfgrtl.c (remove_barriers_from_footer): New function.
1353 (try_redirect_by_replacing_jump): Use it.
1354 (cfg_layout_redirect_edge_and_branch): Likewise.
1356 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
1358 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
1359 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
1360 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
1361 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
1362 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
1363 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
1365 * config/rs6000/rs6000.c (builtin_function_type)
1366 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
1367 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
1368 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
1369 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
1370 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
1372 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
1374 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
1375 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
1377 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
1380 * config/i386/i386.md (*movoi_internal_avx): Revert revision
1381 268678 and revision 268657.
1382 (*movti_internal): Likewise.
1384 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
1387 * config/s390/s390.c (s390_decompose_address): Update comment.
1388 (s390_check_qrst_address): Reject invalid address forms after
1391 2019-02-12 Martin Liska <mliska@suse.cz>
1394 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
1395 we need default values of funct_state for a function that
1398 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
1400 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
1401 the object to pick the size of stores on strict-alignment platforms.
1403 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
1404 (*movdi_insn_sp32): Likewise.
1405 (*movdi_insn_sp64): Likewise.
1407 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
1410 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
1411 types that needs constructiong.
1412 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
1414 2019-02-12 Richard Biener <rguenther@suse.de>
1416 PR tree-optimization/89253
1417 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
1420 2019-02-11 David Malcolm <dmalcolm@redhat.com>
1423 * input.c (selftest::test_line_offset_overflow): New selftest.
1424 (selftest::input_c_tests): Call it.
1426 2019-02-11 Martin Sebor <msebor@redhat.com>
1428 PR tree-optimization/88771
1429 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
1430 when -Wstringop-overflow is set.
1431 (builtin_memref::builtin_memref): Adjust excessive upper bound
1432 only when lower bound is not excessive.
1433 (maybe_diag_overlap): Detect and diagnose excessive bounds via
1434 -Wstringop-ovefflow.
1435 (maybe_diag_offset_bounds): Rename...
1436 (maybe_diag_access_bounds): ...to this.
1437 (check_bounds_or_overlap): Adjust for name change above.
1439 2019-02-11 Martin Sebor <msebor@redhat.com>
1442 * builtins.c (max_object_size): Move from here...
1443 * builtins.h (max_object_size): ...and here...
1444 * tree.c (max_object_size): ...to here...
1445 * tree.h (max_object_size): ...and here.
1447 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
1449 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
1450 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
1451 for correct semantics.
1453 2019-02-11 Alan Modra <amodra@gmail.com>
1455 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
1456 -mlongcall and -mpltseq.
1457 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
1458 (RS/6000 and PowerPC Options <-mpltseq>): Document.
1459 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
1460 * config/rs6000/sysv4.opt (mpltseq): New option.
1461 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
1462 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
1463 support is lacking. Don't allow -mpltseq with -mbss-plt.
1464 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
1465 -mpltseq given for ELFv1.
1466 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
1467 Only use UNSPEC_PLTSEQ for inline PLT calls.
1468 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
1469 use UNSPEC_PLTSEQ for inline PLT calls.
1470 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
1471 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
1472 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
1473 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
1474 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
1475 (pltseq_mtctr_<mode>): Likewise.
1477 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1479 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
1481 * configure: Regenerate.
1483 2019-02-11 Jakub Jelinek <jakub@redhat.com>
1486 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
1489 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
1491 * function.c (assign_parm_setup_block): Use the stored
1492 size, not the passed size, when allocating stack-space,
1493 also for a parameter with alignment larger than
1494 MAX_SUPPORTED_STACK_ALIGNMENT.
1496 2019-02-11 Martin Liska <mliska@suse.cz>
1499 * ipa-cp.c (build_toporder_info): Remove usage of a param.
1500 * ipa-inline.c (inline_small_functions): Likewise.
1501 * ipa-pure-const.c (propagate_pure_const): Likewise.
1502 (propagate_nothrow): Likewise.
1503 * ipa-reference.c (propagate): Likewise.
1504 * ipa-utils.c (struct searchc_env): Remove unused field.
1505 (searchc): Always search across AVAIL_INTERPOSABLE.
1506 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
1507 the only called IPA pure const can properly not propagate
1508 across interposable boundary.
1509 * ipa-utils.h (ipa_reduced_postorder): Remove param.
1511 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
1513 * config/nds32/nds32.md (call_internal, call_value_internal,
1514 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
1516 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
1518 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
1521 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
1523 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
1526 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
1528 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
1530 2019-02-10 Jakub Jelinek <jakub@redhat.com>
1532 PR tree-optimization/89268
1533 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
1534 if preds is non-NULL.
1536 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
1539 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
1542 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
1544 * config/nds32/nds32.md (trap): New pattern.
1546 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
1548 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
1551 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
1553 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
1556 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
1558 * ipa-visibility.c (localize_node): Also do not localize
1559 LDPR_PREVAILING_DEF_IRONLY_EXP.
1561 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
1564 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
1565 instead of type_with_linkage.
1567 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
1570 * params.def (uninlined-function-insns, uninlined-function-time,
1571 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
1572 bound so we don't get overflows.
1574 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
1576 * config/rs6000/rs6000-string.c (expand_compare_loop,
1577 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
1580 2019-02-09 Jakub Jelinek <jakub@redhat.com>
1583 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1584 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
1585 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
1587 2019-02-09 Alan Modra <amodra@gmail.com>
1590 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
1591 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
1594 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
1597 * lra-constraints.c (process_alt_operands): Don't increase reject
1598 for memory when offset memory is required.
1600 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
1602 * config/s390/vector.md: Implement vector copysign.
1604 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
1606 * expr.c (expand_constructor): Correct indentations.
1608 2019-02-08 Richard Biener <rguenther@suse.de>
1610 PR tree-optimization/89247
1611 * tree-if-conv.c: Include tree-cfgcleanup.h.
1612 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
1613 (tree_if_conversion): Pass through predicate vector.
1614 (pass_if_conversion::execute): Do CFG cleanup and SSA update
1615 inline, see if any if-converted loops we refrece in
1616 LOOP_VECTORIZED calls vanished and fixup.
1617 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
1619 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
1621 * config/s390/constraints.md (jdd): New constraint.
1623 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
1626 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
1627 upper 16 vector registers without TARGET_AVX512VL.
1628 (*movti_internal): Likewise.
1630 2019-02-08 Jakub Jelinek <jakub@redhat.com>
1632 PR rtl-optimization/89234
1633 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
1634 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
1635 (copy_reg_eh_region_note_backward): Likewise.
1637 2019-02-08 Richard Biener <rguenther@suse.de>
1640 * tree-data-ref.c (initialize_matrix_A): Fail if constant
1642 (analyze_subscript_affine_affine): Handle failure from
1643 initialize_matrix_A.
1645 2019-02-08 Jakub Jelinek <jakub@redhat.com>
1647 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
1650 2019-02-07 David Malcolm <dmalcolm@redhat.com>
1652 PR tree-optimization/86637
1653 PR tree-optimization/89235
1654 * tree-vect-loop.c (optimize_mask_stores): Add an
1655 auto_purge_vect_location sentinel to ensure that vect_location is
1658 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
1659 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
1660 to ensure that vect_location is purged on exit.
1661 (pass_slp_vectorize::execute): Likewise, replacing the manual
1663 * tree-vectorizer.h (class auto_purge_vect_location): New class.
1665 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1667 * config/aarch64/iterators.md (max_opp): New code_attr.
1668 (USMAX): New code iterator.
1669 * config/aarch64/predicates.md (aarch64_smin): New predicate.
1670 (aarch64_smax): Likewise.
1671 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
1672 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
1675 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
1678 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
1679 for TARGET_AVX512VL.
1680 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
1682 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
1684 * config/s390/s390-builtin-types.def: Add new types.
1685 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
1686 (s390_vec_xlw4): Make the memory operand into a const pointer.
1687 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
1689 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
1690 a new vector type with the alignment of the scalar memory operand.
1692 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
1693 Jakub Jelinek <jakub@redhat.com>
1696 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
1697 arm_count_ldrdstrd_insns): New declarations.
1698 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
1700 (valid_operands_ldrd_strd): New function.
1701 (arm_count_ldrdstrd_insns): New function.
1702 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
1703 sets instead of single DImode set and define new insns to match this.
1705 2019-02-07 Tamar Christina <tamar.christina@arm.com>
1707 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
1708 Make it a C initializer.
1710 2019-02-07 Tamar Christina <tamar.christina@arm.com>
1713 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
1715 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1717 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
1718 Use neon_dot<q> for type.
1719 (neon_<sup>dot_lane<vsi2qi>): Likewise.
1721 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1723 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
1724 Use neon_dot<q> for type.
1725 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
1726 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
1728 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
1730 PR rtl-optimization/89225
1731 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
1734 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
1736 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
1737 after restoring registers saved to allocate the frame on Windows.
1739 2019-02-06 Richard Biener <rguenther@suse.de>
1741 PR tree-optimization/89182
1742 * graphite.h (cached_scalar_evolution_in_region): Declare.
1743 * graphite.c (struct seir_cache_key): New.
1744 (struct sese_scev_hash): Likewise.
1745 (seir_cache): New global.
1746 (cached_scalar_evolution_in_region): New function.
1747 (graphite_transform_loops): Allocate and release seir_cache.
1748 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
1749 cached_scalar_evolution_in_region.
1750 * graphite-scop-detection.c (scop_detection::can_represent_loop):
1752 (scop_detection::graphite_can_represent_expr: Use
1753 cached_scalar_evolution_in_region.
1754 (scop_detection::stmt_simple_for_scop_p): Likewise.
1755 (find_params_in_bb): Likewise.
1756 (gather_bbs::before_dom_children): Likewise.
1757 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
1758 (add_loop_constraints): Likewise.
1760 2019-02-06 Jakub Jelinek <jakub@redhat.com>
1763 * fold-const-call.c (fold_const_vec_convert): Pass true as last
1764 operand to new_unary_operation only if both element types are integral
1765 and it isn't a widening conversion. Return NULL_TREE if
1766 new_unary_operation failed.
1768 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
1771 * config/s390/s390.md: Remove load and test FP splitter.
1773 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
1776 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
1777 expand_compare_loop, expand_block_compare_gpr,
1778 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
1779 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
1780 #include "profile-count.h" and "predict.h" for types and functions
1781 needed to work with REG_BR_PROB notes.
1783 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
1786 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
1787 for the long branch case.
1789 2019-02-05 Jakub Jelinek <jakub@redhat.com>
1792 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
1793 can throw, non-call exceptions are enabled and we can't delete
1794 dead exceptions or alter cfg. Set must_clean if
1795 delete_insn_and_edges returns true, don't set it blindly for calls.
1796 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
1798 PR rtl-optimization/89195
1799 * combine.c (make_extraction): For MEMs, don't extract bytes outside
1800 of the original MEM.
1802 2019-02-05 Martin Liska <mliska@suse.cz>
1804 PR gcov-profile/89000
1805 * gcov.c (function_summary): Remove argument.
1806 (file_summary): New function.
1807 (print_usage): Replace tabs with spaces.
1808 (generate_results): Use new function file_summary.
1810 2019-02-05 Jakub Jelinek <jakub@redhat.com>
1813 * optabs.c (prepare_cmp_insn): Pass x and y to
1814 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
1816 2019-02-05 Richard Biener <rguenther@suse.de>
1819 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
1820 (struct bitmap_element): Drop chain_prev so we properly recurse on
1821 the prev member, supporting tree views.
1822 (struct bitmap_head): GTY skip the obstack member.
1824 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
1827 * doc/extend.texi (Vector Extensions): Add an example of using vector
1828 types together with x86 intrinsics.
1830 2019-02-04 Alan Modra <amodra@gmail.com>
1832 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
1833 str[] size to 160, and comment.
1835 2019-02-04 Alan Modra <amodra@gmail.com>
1837 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
1838 (rs6000_pltseq_template): Guard output of TLS markers with
1840 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
1841 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
1842 to use inline PLT sequences.
1843 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
1844 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
1845 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
1847 2019-02-04 Martin Liska <mliska@suse.cz>
1850 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
1851 out when ipa_fn_summaries does not contain entry for callee.
1853 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
1855 * config/sparc/sparc.h: Remove superfluous blank lines.
1856 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
1857 (got_register_rtx): ...this.
1858 (sparc_got): Adjust to above renaming.
1859 (sparc_tls_got): Likewise.
1860 (sparc_delegitimize_address): Likewise.
1861 (sparc_output_mi_thunk): Likewise.
1862 (sparc_init_pic_reg): Likewise.
1863 (save_local_or_in_reg_p): Fix test on the GOT register.
1864 (USE_HIDDEN_LINKONCE): Move around.
1865 (get_pc_thunk_name): Likewise.
1866 (gen_load_pcrel_sym): Likewise.
1867 (load_got_register): Likewise.
1869 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
1871 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
1872 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
1874 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
1876 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
1879 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
1881 * config.gcc (with_nds32_lib, glibc):
1882 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
1883 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
1884 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
1886 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
1889 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
1890 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
1891 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
1892 (*rcpsf2_sse): Ditto.
1893 (*rsqrtsf2_sse): Ditto.
1894 (sse4_1_round<mode<2): Ditto.
1896 2019-02-03 Richard Biener <rguenther@suse.de>
1899 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
1902 2019-02-02 Jakub Jelinek <jakub@redhat.com>
1905 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1906 Punt with warning on aggregate return or argument types. Ignore
1907 type/mode checking for uniform arguments.
1909 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
1911 * combine.c (try_combine): Do not print "Can't combine" messages unless
1912 printing failed combination attempts.
1914 2019-02-01 Martin Jambor <mjambor@suse.cz>
1917 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
1918 segment and global segment variables before making them static.
1920 2019-02-01 Martin Jambor <mjambor@suse.cz>
1922 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
1923 missed optimization dump with dump_enabled_p.
1925 2019-02-01 Richard Biener <rguenther@suse.de>
1928 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
1929 the instantiate cache.
1930 (instantiate_scev_binary): Elide second operand procesing
1931 if equal to the first.
1932 * tree-chrec.c (chrec_contains_symbols): Add visited set.
1933 (chrec_contains_undetermined): Likewise.
1934 (tree_contains_chrecs): Likewise.
1936 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
1938 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
1940 2019-02-01 Jakub Jelinek <jakub@redhat.com>
1942 PR tree-optimization/89143
1943 * wide-int-range.h (wide_int_range_absu): Declare.
1944 * wide-int-range.cc (wide_int_range_absu): New function.
1945 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
1947 PR tree-optimization/88107
1948 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
1949 instead of assertion that eh_region_outermost is non-NULL, if it
1950 is NULL, set *ALL to true and return NULL.
1951 (move_sese_region_to_fn): Adjust caller, if all is set, call
1952 duplicate_eh_regions with NULL region.
1954 2019-02-01 Richard Biener <rguenth@suse.de>
1956 PR rtl-optimization/88593
1957 * mode-switching.c (optimize_mode_switching): Free dominators before
1958 calling cleanup_cfg.
1960 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
1962 PR tree-optimization/88932
1963 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
1965 2019-01-31 Jakub Jelinek <jakub@redhat.com>
1968 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
1969 bogus clang warning.
1971 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
1974 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
1975 alternative to avoid partial SSE register stall for TARGET_AVX.
1976 (truncdfsf2): Ditto.
1977 (sse4_1_round<mode>2): Ditto.
1979 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
1981 PR tree-optimization/89008
1982 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
1983 process anything of the form X * 0.
1985 2019-01-31 Richard Biener <rguenther@suse.de>
1987 PR tree-optimization/89135
1988 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
1989 with abnormal preds.
1991 2019-01-31 Jakub Jelinek <jakub@redhat.com>
1994 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
1995 always_inline callees into no_sanitize_address callers.
1997 2019-01-31 Richard Biener <rguenther@suse.de>
1999 PR rtl-optimization/89115
2000 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
2002 2019-01-30 Martin Sebor <msebor@redhat.com>
2005 * doc/extend.texi (cast to a union): Correct and expand.
2007 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
2009 PR rtl-optimization/87246
2010 * lra-constraints.c (simplify_operand_subreg): Reload memory
2011 in subreg if the address became invalid.
2013 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
2016 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
2017 Disable for little-endian.
2019 2019-01-30 Richard Biener <rguenther@suse.de>
2021 PR rtl-optimization/89115
2022 * opts.c (default_options_optimization): Reduce
2023 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
2024 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
2027 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
2029 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
2030 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
2031 type of vector element when vec_extract is implemented by direct
2034 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
2036 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
2038 2019-01-30 Richard Biener <rguenther@suse.de>
2040 PR tree-optimization/89111
2041 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
2042 canonicalization to appropriately sized access types.
2044 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2047 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
2048 for arguments to functions that are TU-local and shouldn't be
2049 referenced by assembly.
2051 2019-01-30 Ulrich Drepper <drepper@redhat.com>
2053 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
2056 2019-01-29 Martin Sebor <msebor@redhat.com>
2059 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
2061 2019-01-29 Jakub Jelinek <jakub@redhat.com>
2065 * omp-simd-clone.c (simd_clone_clauses_extract)
2066 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
2067 OMP_CLAUSE_ALIGNED_ALIGNMENT.
2069 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
2071 * config.gcc: Force .init_array for ARC.
2073 2019-01-29 Richard Biener <rguenther@suse.de>
2076 * dwarf2out.c (collect_skeleton_dies): New helper.
2077 (copy_decls_for_unworthy_types): Call it.
2078 (build_abbrev_table): Assert we do not try to replace
2079 DW_AT_signature refs with local refs.
2081 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2084 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
2085 for lastprivate/linear IV, push gimplify context around gimplify_assign
2086 and, if it needed any temporaries, pop it into a gimple bind around the
2089 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
2091 * common.opt (-Wattribute-alias): Remove "no-" from name.
2092 Make -Wattribute-alias command line option and
2093 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
2095 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2098 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
2099 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
2101 (bmi2): Add missing @opindex.
2102 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
2103 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
2104 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
2105 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
2106 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
2107 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
2108 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
2109 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
2110 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
2111 xsavec, xsaveopt and xsaves options.
2113 2019-01-28 Richard Biener <rguenther@suse.de>
2116 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
2119 2019-01-28 Richard Biener <rguenther@suse.de>
2121 PR tree-optimization/88739
2122 * tree-cfg.c (verify_types_in_gimple_reference): Verify
2123 BIT_FIELD_REFs only are applied to mode-precision operands
2124 when they are integral.
2125 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
2126 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
2127 BIT_FIELD_REFs of non-mode-precision integral operands.
2129 2019-01-27 Jakub Jelinek <jakub@redhat.com>
2132 * config/i386/sse.md
2133 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
2134 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
2135 first constants in pairs are multiples of 2. Formatting fixes.
2136 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
2137 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
2138 first constants in each quadruple are multiples of 4. Formatting fixes.
2140 2019-01-26 Martin Jambor <mjambor@suse.cz>
2143 * tree-inline.c: Include tree-cfgcleanup.h.
2144 (delete_unreachable_blocks_update_callgraph): Move...
2145 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
2146 ...here, make externally visible, make second argument bool, adjust
2148 * tree-cfgcleanup.c: Include cgraph.h.
2149 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
2151 * ipa-prop.c: Include tree-cfgcleanup.h.
2152 (ipcp_transform_function): Call
2153 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
2155 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
2157 PR rtl-optimization/88846
2158 * ira.c (process_set_for_memref_referenced_p): New.
2159 (memref_referenced_p): Add new param. Use
2160 process_set_for_memref_referenced_p. Add new switch cases.
2161 (memref_used_between_p): Pass new arg to memref_referenced_p.
2163 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
2166 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
2167 argument ABI_BREAK. Set to true if the calculated alignment has
2168 changed in gcc-9. Check bit-fields for their base type alignment.
2169 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
2170 (aarch64_function_arg_boundary): Likewise.
2171 (aarch64_gimplify_va_arg_expr): Likewise.
2173 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
2176 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
2177 instead of accessing TREE_INT_CST_ELT directly.
2179 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
2181 * doc/sourcebuild.texi (Environment attributes): Add fenv and
2182 fenv_exceptions description.
2184 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
2186 PR rtl-optimization/87763
2187 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
2188 Allow SUBREG when matching CC_NZmode compare.
2190 2019-01-25 Richard Biener <rguenther@suse.de>
2192 PR tree-optimization/89049
2193 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
2194 Look at the pattern stmt to determine if the stmt is vectorized.
2196 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
2198 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
2199 (pred_mov<mode>): Handle all-register forms using both a new
2200 alternative and a split.
2202 2019-01-25 Richard Biener <rguenther@suse.de>
2204 PR tree-optimization/86865
2205 * graphite-scop-detection.c (scop_detection::can_represent_loop):
2206 Reject non-do-while loops.
2208 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
2210 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
2211 * config/rs6000/constraints.md (Q constraint): Use REG_P.
2212 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
2213 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
2214 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
2215 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
2216 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
2217 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
2218 vlogical_operand, gpc_reg_operand, int_reg_operand,
2219 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
2220 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
2221 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
2222 (save_world_operation, restore_world_operation, lmw_operation,
2223 stmw_operation): Use MEM_P and REG_P.
2224 (tie_operand): Use MEM_P.
2225 (vrsave_operation, crsave_operation): Use REG_P.
2226 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
2227 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
2228 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
2229 (call_operand): Use HARD_REGISTER_P.
2230 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
2232 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
2233 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
2234 quad_aligned_load_p, replace_swapped_aligned_store,
2235 recombine_lvx_pattern, replace_swapped_aligned_load,
2236 recombine_stvx_pattern): Use MEM_P.
2237 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
2238 Use MEM_P and SYMBOL_REF_P.
2239 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
2240 (insn_is_swappable_p): Use REG_P and MEM_P.
2241 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
2242 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
2244 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
2246 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
2248 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
2249 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
2250 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
2251 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
2253 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
2254 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
2255 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
2256 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
2257 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
2258 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
2259 rs6000_split_logical_di): Use CONST_INT_P.
2260 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
2261 REG_P and SYMBOL_REF_P.
2262 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
2263 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
2264 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
2265 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
2266 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
2267 (small_data_operand, print_operand_address): Use CONST_INT_P and
2269 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
2270 (rs6000_init_hard_regno_mode_ok, direct_move_p):
2271 Use HARD_REGISTER_NUM_P.
2272 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
2273 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
2274 SUBREG_P and SYMBOL_REF_P.
2275 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
2276 and HARD_REGISTER_NUM_P.
2277 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
2279 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
2280 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
2282 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
2283 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
2284 find_addr_reg): Use REG_P.
2285 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
2286 (rs6000_emit_le_vsx_move): Use SUBREG_P.
2287 (offsettable_ok_by_alignment, constant_pool_expr_p,
2288 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
2289 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
2290 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
2291 rs6000_assemble_integer, create_TOC_reference,
2292 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
2293 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
2294 (rs6000_split_vec_extract_var): Use reg_or_subregno.
2295 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
2296 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
2297 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
2298 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
2299 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
2300 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
2301 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
2302 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
2303 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
2304 and cbranch<mode>4): Use CONST_INT_P.
2305 (multiple define_splits): Use REG_P and SUBREG_P.
2306 (define_expands call, call_value): Use MEM_P.
2307 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
2308 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
2309 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
2310 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
2311 and HARD_REGISTER_NUM_P.
2312 (multiple define_splits): Use HARD_REGISTER_NUM_P.
2314 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
2316 PR rtl-optimization/88948
2317 * rtl.h (prepare_copy_insn): New prototype.
2318 * gcse.c (prepare_copy_insn): New function, split out from
2319 process_insert_insn.
2320 (process_insert_insn): Use prepare_copy_insn.
2321 * store-motion.c (replace_store_insn): Use prepare_copy_insn
2322 instead of gen_move_insn.
2324 2019-01-24 Jakub Jelinek <jakub@redhat.com>
2327 * config/i386/i386.c (ix86_pic_register_p): Return true for
2330 PR tree-optimization/88964
2331 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
2332 punt if HONOR_SNANS (chrec).
2335 * tree-nested.c (convert_nonlocal_reference_stmt,
2336 convert_local_reference_stmt, convert_tramp_reference_stmt,
2337 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
2338 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
2341 PR tree-optimization/89027
2342 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
2343 for "omp simd array" variables.
2345 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
2348 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
2349 force the alignment of m_val.
2351 2019-01-24 Richard Biener <rguenther@suse.de>
2354 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
2355 When in "legacy" debug mode make sure to reset self-origins.
2357 2019-01-24 Martin Liska <mliska@suse.cz>
2359 PR gcov-profile/88994
2360 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
2361 result will be always smaller or equal to the original.
2362 * gcov.c (mangle_name): Fix else branch where we should
2363 also copy to PTR and shift the pointer.
2365 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
2367 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
2368 * vr-values.c (find_case_label_ranges): Fix a comment typo.
2370 2019-01-23 Bin Cheng <bin.cheng@arm.com>
2371 Steve Ellcey <sellcey@marvell.com>
2374 * recog.c (address_operand): Return false on wrong mode for address.
2375 (constrain_operands): Check for mode with 'p' constraint.
2377 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
2380 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
2381 Disparage MMX alternative.
2382 (sse2_cvtpd2pi): Ditto.
2383 (sse2_cvttpd2pi): Ditto.
2385 2019-01-23 David Malcolm <dmalcolm@redhat.com>
2388 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
2389 use-after-free of the result of
2390 aarch64_get_extension_string_for_isa_flags.
2392 2019-01-23 Jakub Jelinek <jakub@redhat.com>
2395 * doc/extend.texi: Document break and continue behavior in
2396 statement expressions.
2398 2019-01-23 Richard Biener <rguenther@suse.de>
2400 PR tree-optimization/89008
2401 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
2402 not leave another stray operand.
2404 2019-01-23 Jakub Jelinek <jakub@redhat.com>
2406 * BASE-VER: Bump to 9.0.1.
2408 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
2410 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
2411 thunk that returns by reference, use the type of the return object
2412 of the thunk instead of that of the alias to build the dereference.
2414 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
2416 * config/arc/atomic.md: Add operand to DMB instruction.
2418 2019-01-23 Jakub Jelinek <jakub@redhat.com>
2420 PR tree-optimization/88964
2421 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
2422 build_zero_cst instead of build_int_cst. Return false for loop
2423 invariants which honor signed zeros.
2425 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
2427 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
2429 2019-01-22 Jakub Jelinek <jakub@redhat.com>
2432 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
2433 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
2434 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
2437 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
2438 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
2441 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
2442 Disable for little endian.
2444 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
2447 * config/arm/arm.c (arm_needs_double_word_align): Check
2448 DECL_BIT_FIELD_TYPE.
2450 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
2451 H.J. Lu <hongjiu.lu@intel.com>
2454 * config/i386/i386-builtin.def: Add mask2 to all builtin
2455 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
2457 * config/i386/i386.c (BDESC): Add mask2 to the definition.
2458 (BDESC_FIRST): Likewise.
2459 (define_builtin): Add an argument for mask2. Updated to handle
2460 both ix86_isa_flags and ix86_isa_flags2.
2461 (define_builtin_const): Likewise.
2462 (define_builtin_pure): Likewise.
2463 (define_builtin2): Deleted.
2464 (define_builtin_const2): Likewise.
2465 (builtin_description): Add a member, mask2.
2466 (bdesc_*): Add mask2 to builtin initializations.
2467 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
2468 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
2470 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
2472 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
2475 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
2478 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
2481 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
2482 alignment is dominated by a bitfield with 64-bit aligned base type.
2483 (arm_function_arg): Emit a warning if the alignment has changed since
2484 earlier GCC releases.
2485 (arm_function_arg_boundary): Likewise.
2486 (arm_setup_incoming_varargs): Likewise.
2488 2019-01-22 Richard Biener <rguenther@suse.de>
2490 PR tree-optimization/88862
2491 * graphite-scop-detection.c
2492 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
2494 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
2496 * doc/extend.tex (AMD GCN Function Attributes): New section.
2497 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
2498 * doc/invoke.texi (AMD GCN Options): New section.
2499 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
2501 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
2503 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
2504 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
2506 2019-01-22 Jakub Jelinek <jakub@redhat.com>
2508 PR tree-optimization/88044
2509 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
2510 is false in the first iteration, but !every_iteration, return false
2511 instead of true with niter->niter zero.
2513 PR rtl-optimization/88904
2514 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
2515 any nonequal registers before processing BB_END (b).
2518 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
2520 (expand_binop_directly, expand_doubleword_clz,
2521 expand_doubleword_popcount, expand_ctz, expand_ffs,
2522 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
2524 PR rtl-optimization/49429
2526 PR rtl-optimization/86334
2528 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
2529 addressable from here...
2530 (emit_block_op_via_libcall): ... to here.
2532 2019-01-22 Richard Biener <rguenther@suse.de>
2534 * tree-vect-loop.c (vect_analyze_loop_operations): Use
2535 auto_vec for cost vector to fix memleak.
2536 (vectorize_fold_left_reduction): Properly gather SLP defs.
2537 (vectorizable_comparison): Do not swap operands to properly
2540 2019-01-22 Alan Modra <amodra@gmail.com>
2543 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
2544 stays a reg. Allow a const_int.
2545 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
2546 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
2547 (IS_NOMARK_TLSGETADDR): Define.
2548 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
2549 (rs6000_output_tlsargs): New function.
2550 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
2551 __tls_get_addr call takes an arg.
2552 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
2553 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
2555 (call_value_nonlocal_sysv): ..or here, delete split.
2556 (tls_gdld_nomark): Delete.
2557 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
2558 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
2559 (call_value_nonlocal_sysv): Likewise.
2560 (call_value_nonlocal_sysv_secure): Likewise.
2561 (call_value_nonlocal_aix): Likewise.
2562 (call_value_indirect_aix): Likewise.
2563 (call_value_indirect_elfv2): Likewise.
2564 (call_value_local32, call_value_local64): Disable for no-mark tls.
2565 (call_value_local_aix): Likewise.
2567 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
2570 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
2571 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
2573 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
2575 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
2576 string contents as hash_map keys.
2578 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2581 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
2582 for rvalue context. Handle rvalues correctly. Use min_align_of_type
2583 instead of TYPE_ALIGN.
2584 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
2585 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
2586 pointer from TYPE_STUB_DECL.
2588 2019-01-21 Richard Biener <rguenther@suse.de>
2590 PR tree-optimization/88934
2591 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
2592 at the possibly non-constant operand.
2593 (vect_get_constant_vectors): Adjust.
2595 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2598 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
2599 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
2600 instead of _X86INTRIN_H_INCLUDED.
2601 * onfig/i386/clwbintrin.h: Likewise.
2602 * config/i386/pkuintrin.h: Likewise.
2603 * config/i386/prfchwintrin.h: Likewise.
2604 * config/i386/rdseedintrin.h: Likewise.
2605 * config/i386/wbnoinvdintrin.h: Likewise.
2606 * config/i386/xsavecintrin.h: Likewise.
2607 * config/i386/xsavesintrin.h: Likewise.
2608 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
2609 * config/i386/xsaveintrin.h: Likewise.
2610 * config/i386/xsaveoptintrin.h: Likewise.
2611 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
2612 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
2613 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
2614 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
2615 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
2616 * config/i386/immintrin.h: Here.
2618 2019-01-20 Martin Jambor <mjambor@suse.cz>
2621 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
2622 with aa_walk_budget.
2623 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
2624 aa_walk_budget_p parameter.
2625 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
2626 walk. Updated all callers.
2627 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
2628 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
2630 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
2631 parameter info. Extract info from fbi. Pass fbi to recursive calls
2632 and to unmodified_parm.
2633 (phi_result_unknown_predicate): New parameter fbi, removed parameter
2634 info, updated call to will_be_nonconstant_expr_predicate.
2635 (param_change_prob): New parameter fbi, limit AA walking.
2636 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
2637 calls to various above functions.
2638 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
2639 parameter. Use it to limit AA walking.
2640 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
2642 (detect_type_change): New parameter fbi, pass it on to
2643 detect_type_change_from_memory_writes.
2644 (detect_type_change_ssa): Likewise.
2645 (aa_overwalked): Removed.
2646 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
2647 accordingly, adjust to the neew AA limiting scheme.
2648 (parm_ref_data_preserved_p): Likewise.
2649 (ipa_compute_jump_functions_for_edge): Adjust call to
2651 (ipa_analyze_call_uses): Likewise.
2652 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
2653 (ipa_analyze_node): Initialize aa_walk_budget.
2654 (ipcp_transform_function): Likewise.
2655 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
2656 to get_dynamic_type.
2658 2019-01-19 Jakub Jelinek <jakub@redhat.com>
2660 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
2661 outside of #if CHECKING_P code.
2663 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
2665 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
2666 New function, split out from...
2667 (loop_versioning::analyze_stride): ...here.
2668 (loop_versioning::find_per_loop_multiplication): Use gassign.
2669 (loop_versioning::analyze_term_using_scevs): Return a success code.
2670 (loop_versioning::analyze_arbitrary_term): New function.
2671 (loop_versioning::analyze_address_fragment): Use
2672 analyze_arbitrary_term if all else fails.
2674 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
2677 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
2680 2019-01-18 Richard Biener <rguenther@suse.de>
2682 PR tree-optimization/88903
2683 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
2684 scalar stmts a SLP shift amount is composed of when detecting
2687 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
2690 * config/arm/arm-cpus.in (mp): New feature.
2692 (fgroup ARMv7ve): Add mp and sec features.
2693 (arch armv7-a): Add options to allow mp and sec extensions.
2694 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
2695 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
2696 extenstions to the base architecture.
2697 (cpu cortex-a8): Add sec extension to the base architecture.
2698 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
2699 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
2700 variants down to the base v7-a varaint.
2701 * config/arm/t-multilib (v7_a_arch_variants): New variable.
2702 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
2703 of permitted extensions for -march=armv7-a and for
2704 -mcpu=generic-armv7-a.
2706 2019-01-18 Martin Liska <mliska@suse.cz>
2708 * params.def: Fix comment.
2709 * tree-profile.c (gimple_init_gcov_profiler): Bump function
2711 (gimple_gen_ic_func_profiler): Likewise.
2713 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2715 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
2716 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
2717 and put in error checks for stack protector guard options.
2718 (aarch64_stack_protect_guard): New.
2719 (TARGET_STACK_PROTECT_GUARD): Define.
2720 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
2721 (reg_stack_protect_address<mode>): New.
2722 (stack_protect_set): Adjust for SSP_GLOBAL.
2723 (stack_protect_test): Likewise.
2724 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
2725 (-mstack-protector-guard): Likewise.
2726 (-mstack-protector-guard-offset): Likewise.
2728 2019-01-18 Jakub Jelinek <jakub@redhat.com>
2730 PR tree-optimization/86214
2731 * tree-inline.h (struct copy_body_data): Add
2732 add_clobbers_to_eh_landing_pads member.
2733 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
2734 (copy_edges_for_bb): Call it if EH edge destination is <
2735 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
2736 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
2737 if flag_stack_reuse != SR_NONE and clear it afterwards.
2739 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
2742 * doc/install.texi (with-multilib-list): Document for aarch64.
2744 2019-01-18 Jakub Jelinek <jakub@redhat.com>
2747 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
2748 (("..."))) with ("...").
2750 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
2752 * doc/extend.texi (Built-in Functions for Memory Model Aware
2753 Atomic Operations): Document atomic fetch and nand.
2755 2019-01-18 Martin Liska <mliska@suse.cz>
2756 Richard Biener <rguenther@suse.de>
2759 * cgraph.h (create_version_clone_with_body): Add new argument
2761 * cgraphclones.c (cgraph_node::create_version_clone): Add
2762 DECL_ATTRIBUTES to a newly created decl. And call
2763 valid_attribute_p so that proper cl_target_optimization_node
2764 is set for the newly created declaration.
2765 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
2767 (expand_target_clones): Do not call valid_attribute_p, it must
2769 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
2772 2019-01-17 Jakub Jelinek <jakub@redhat.com>
2775 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
2776 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
2777 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
2779 2019-01-17 Martin Sebor <msebor@redhat.com>
2782 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
2783 Handle anti-ranges the same as no range at all.
2785 2018-01-17 Steve Ellcey <sellcey@cavium.com>
2787 * config/aarch64/aarch64.c (cgraph.h): New include.
2788 (intl.h): New include.
2789 (supported_simd_type): New function.
2790 (currently_supported_simd_type): Ditto.
2791 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
2792 (aarch64_simd_clone_adjust): Ditto.
2793 (aarch64_simd_clone_usable): Ditto.
2794 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
2795 (TARGET_SIMD_CLONE_ADJUST): Ditto.
2796 (TARGET_SIMD_CLONE_USABLE): Ditto.
2797 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
2798 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
2801 2019-01-17 Martin Sebor <msebor@redhat.com>
2803 PR tree-optimization/88800
2804 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
2805 NO_WARNING bit here. Avoid folding out-of-bounds calls.
2806 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
2807 redundant argument. Add new argument and issue diagnostics under
2808 its control. Detect out-of-bounds access even with warnings
2810 (check_bounds_or_overlap): Change return type. Add argument.
2811 (wrestrict_dom_walker::check_call): Adjust.
2812 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
2813 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
2814 check_bounds_or_overlap's return value.
2815 (handle_builtin_stxncpy): Same.
2816 (handle_builtin_strcat): Same.
2818 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
2819 Kwok Cheung Yeung <kcy@codesourcery.com>
2820 Julian Brown <julian@codesourcery.com>
2821 Tom de Vries <tom@codesourcery.com>
2823 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
2825 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
2827 * doc/sourcebuild.texi: Document dg-require-effective-target
2828 llvm_binutils and offload_gcn.
2830 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
2831 Kwok Cheung Yeung <kcy@codesourcery.com>
2832 Julian Brown <julian@codesourcery.com>
2833 Tom de Vries <tom@codesourcery.com>
2835 * doc/sourcebuild.texi: Document dg-required-effective-target
2838 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
2839 Kwok Cheung Yeung <kcy@codesourcery.com>
2840 Julian Brown <julian@codesourcery.com>
2841 Tom de Vries <tom@codesourcery.com>
2842 Jan Hubicka <hubicka@ucw.cz>
2843 Martin Jambor <mjambor@suse.cz>
2845 * config.gcc: Add amdgcn*-*-amdhsa configuration.
2846 * configure.ac: Check for dlopen.
2847 * configure: Regenerate.
2849 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
2850 Kwok Cheung Yeung <kcy@codesourcery.com>
2851 Julian Brown <julian@codesourcery.com>
2852 Tom de Vries <tom@codesourcery.com>
2853 Jan Hubicka <hubicka@ucw.cz>
2854 Martin Jambor <mjambor@suse.cz>
2856 * common/config/gcn/gcn-common.c: New file.
2857 * config/gcn/driver-gcn.c: New file.
2858 * config/gcn/gcn-builtins.def: New file.
2859 * config/gcn/gcn-hsa.h: New file.
2860 * config/gcn/gcn-modes.def: New file.
2861 * config/gcn/gcn-opts.h: New file.
2862 * config/gcn/gcn-passes.def: New file.
2863 * config/gcn/gcn-protos.h: New file.
2864 * config/gcn/gcn-run.c: New file.
2865 * config/gcn/gcn-tree.c: New file.
2866 * config/gcn/gcn.c: New file.
2867 * config/gcn/gcn.h: New file.
2868 * config/gcn/gcn.opt: New file.
2869 * config/gcn/t-gcn-hsa: New file.
2871 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
2872 Kwok Cheung Yeung <kcy@codesourcery.com>
2873 Julian Brown <julian@codesourcery.com>
2874 Tom de Vries <tom@codesourcery.com>
2875 Jan Hubicka <hubicka@ucw.cz>
2876 Martin Jambor <mjambor@suse.cz>
2878 * config/gcn/constraints.md: New file.
2879 * config/gcn/gcn-valu.md: New file.
2880 * config/gcn/gcn.md: New file.
2881 * config/gcn/predicates.md: New file.
2883 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
2885 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
2886 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
2887 (stmt_uses_0_or_null_in_undefined_way): Likewise.
2888 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
2890 2019-01-17 Tamar Christina <tamar.christina@arm.com>
2893 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
2894 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
2895 it and document registers.
2897 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2899 * config/aarch64/aarch64.c (ares_tunings): Define.
2900 * config/aarch64/aarch64-cores.def (ares): Use the above.
2902 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
2906 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
2908 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
2909 (_mm512_fixupimm_round_pd): Update parameters and builtin.
2910 (_mm512_maskz_fixupimm_round_pd): Ditto.
2911 (_mm512_fixupimm_round_ps): Ditto.
2912 (_mm512_maskz_fixupimm_round_ps): Ditto.
2913 (_mm_fixupimm_round_sd): Ditto.
2914 (_mm_maskz_fixupimm_round_sd): Ditto.
2915 (_mm_fixupimm_round_ss): Ditto.
2916 (_mm_maskz_fixupimm_round_ss): Ditto.
2917 (_mm512_fixupimm_pd): Ditto.
2918 (_mm512_maskz_fixupimm_pd): Ditto.
2919 (_mm512_fixupimm_ps): Ditto.
2920 (_mm512_maskz_fixupimm_ps): Ditto.
2921 (_mm_fixupimm_sd): Ditto.
2922 (_mm_maskz_fixupimm_sd): Ditto.
2923 (_mm_fixupimm_ss): Ditto.
2924 (_mm_maskz_fixupimm_ss): Ditto.
2925 (_mm512_mask_fixupimm_round_pd): Update builtin.
2926 (_mm512_mask_fixupimm_round_ps): Ditto.
2927 (_mm_mask_fixupimm_round_sd): Ditto.
2928 (_mm_mask_fixupimm_round_ss): Ditto.
2929 (_mm512_mask_fixupimm_pd): Ditto.
2930 (_mm512_mask_fixupimm_ps): Ditto.
2931 (_mm_mask_fixupimm_sd): Ditto.
2932 (_mm_mask_fixupimm_ss): Ditto.
2933 * config/i386/avx512vlintrin.h:
2934 (_mm256_fixupimm_pd): Update parameters and builtin.
2935 (_mm256_maskz_fixupimm_pd): Ditto.
2936 (_mm256_fixupimm_ps): Ditto.
2937 (_mm256_maskz_fixupimm_ps): Ditto.
2938 (_mm_fixupimm_pd): Ditto.
2939 (_mm_maskz_fixupimm_pd): Ditto.
2940 (_mm_fixupimm_ps): Ditto.
2941 (_mm_maskz_fixupimm_ps): Ditto.
2942 (_mm256_mask_fixupimm_pd): Update builtin.
2943 (_mm256_mask_fixupimm_ps): Ditto.
2944 (_mm_mask_fixupimm_pd): Ditto.
2945 (_mm_mask_fixupimm_ps): Ditto.
2946 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
2947 * config/i386/i386-builtin.def: Update builtin definitions.
2948 * config/i386/i386.c: Handle new builtin types and remove useless ones.
2949 * config/i386/sse.md: Update VFIXUPIMM* patterns.
2950 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
2951 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
2952 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
2953 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
2954 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
2955 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
2956 * config/i386/subst.md:
2957 (round_saeonly_sd_mask_operand4): Add new subst_attr.
2958 (round_saeonly_sd_mask_op4): Ditto.
2959 (round_saeonly_expand_operand5): Ditto.
2960 (round_saeonly_expand): Update.
2962 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
2966 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
2968 * config/i386/sse.md: Combine VFIXUPIMM* patterns
2969 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
2970 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
2971 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
2972 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
2973 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
2974 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
2976 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
2980 2018-12-15 Jakub Jelinek <jakub@redhat.com>
2983 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
2984 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
2985 instead of UNSPEC_FIXUPIMM.
2987 2019-01-17 Richard Biener <rguenther@suse.de>
2990 * dwarf2out.c (want_pubnames): Never generate pubnames sections
2991 and friends for the LTO part of debug info.
2993 2019-01-17 Jakub Jelinek <jakub@redhat.com>
2995 PR tree-optimization/86214
2996 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
2999 PR rtl-optimization/88870
3000 * dce.c (deletable_insn_p): Never delete const/pure calls that can
3001 throw if we can't alter the cfg or delete dead exceptions.
3002 (mark_insn): Don't call find_call_stack_args for such calls.
3004 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
3006 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
3007 prototypes for vec_st.
3008 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
3009 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
3010 mainly on signed/unsigned long long and double.
3012 2019-01-16 David Malcolm <dmalcolm@redhat.com>
3015 * combine.c (delete_noop_moves): Convert to "bool" return,
3016 returning true if any edges are eliminated.
3017 (combine_instructions): Also return true if delete_noop_moves
3020 2019-01-16 Tamar Christina <tamar.christina@arm.com>
3022 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
3023 correct max nunits for endian swap.
3024 (aarch64_expand_fcmla_builtin): Correct subreg code.
3025 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
3026 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
3029 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
3031 * config/alpha/alpha.c (alpha_gimplify_va_arg):
3032 Handle split indirect COMPLEX_TYPE arguments.
3034 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
3037 * config/aarch64/aarch64-modes.def: Add comment about how the carry
3038 bit is set by add and compare.
3039 (CC_ADC): New CC_MODE.
3040 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
3041 to cache the code and mode of X. Adjust the shape of a CC_Cmode
3042 comparison. Add detection for CC_ADCmode.
3043 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
3045 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
3046 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
3047 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
3048 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
3049 to eliminate the need for zero-extending the operands.
3050 (add<mode>3_compareC_imm): Delete. Merge into ...
3051 (add<mode>3_compareC): ... this. Restructure the comparison to
3052 eliminate the need for zero-extending the operands.
3053 (add<mode>3_carryin): Use LTU for the overflow detection.
3054 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
3055 Reexpress comparison for overflow.
3056 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
3057 (add<mode>3_carryinC): Likewise.
3058 (add<mode>3_carryinV): Use LTU for carry between partials.
3059 * config/aarch64/predicates.md (aarch64_carry_operation): Update
3060 handling of CC_Cmode and add CC_ADCmode.
3061 (aarch64_borrow_operation): Likewise.
3063 2019-01-16 Tamar Christina <tamar.christina@arm.com>
3065 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
3066 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
3067 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
3068 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
3070 2019-01-16 Martin Liska <mliska@suse.cz>
3072 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
3074 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
3076 * gcc.c (add_sysrooted_hdrs_prefix): New function.
3077 (path_prefix_reset): Move up in the source file.
3078 (find_fortran_preinclude_file): Make complex search for the
3079 fortran header files.
3081 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
3083 * godump.c (go_output_typedef): When outputting a typedef, refer
3084 to the underlying type by its name and not its structure.
3086 2019-01-15 David Malcolm <dmalcolm@redhat.com>
3089 * tree.c (build_function_type): Assert that arg_types is not
3092 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
3095 * doc/extend.texi: Document that listing the stack pointer in the
3096 clobber list of an asm is a deprecated feature.
3097 * common.opt (Wdeprecated): Moved from c-family/c.opt.
3098 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
3099 warning instead of an error for clobbers of the stack pointer.
3100 Add a note explaining why.
3102 2019-01-15 Richard Biener <rguenther@suse.de>
3105 * dwarf2out.c (gen_member_die): Do not generate inheritance
3108 2019-01-15 Richard Biener <rguenther@suse.de>
3110 PR tree-optimization/88855
3111 * tree-if-conv.c (combine_blocks): Collect
3112 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
3114 2019-01-15 Tom de Vries <tdevries@suse.de>
3117 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
3118 lhs == NULL_TREE for gang-level reduction.
3120 2019-01-15 Richard Biener <rguenther@suse.de>
3121 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3124 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
3125 return true if SSA_NAME is already marked in visited bitmap.
3126 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
3128 2019-01-15 Jakub Jelinek <jakub@redhat.com>
3130 PR tree-optimization/88775
3131 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
3132 equal == 0 equality pointer comparisons some more if compared in
3133 integral types and either one points to an automatic var and the
3134 other to a global, or we can prove at least one points to the middle
3135 or both point to start or both point to end.
3137 2019-01-14 Andi Kleen <ak@linux.intel.com>
3139 * Makefile.in: Lower autofdo sampling rate by 10x.
3140 * Makefile.tpl: Dito.
3142 2019-01-14 Tom Honermann <tom@honermann.net>
3144 * defaults.h: Define CHAR8_TYPE.
3146 2019-01-14 Martin Sebor <msebor@redhat.com>
3149 * doc/extend.texi (Darwin Format Checks): Clarify.
3151 2019-01-14 Richard Biener <rguenther@suse.de>
3153 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
3154 whether we are in (simplify ...) or (match ...) context.
3156 2019-01-14 Jakub Jelinek <jakub@redhat.com>
3158 PR rtl-optimization/88796
3159 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
3160 * cfgexpand.c (stack_protect_prologue): Initialize
3161 crtl->stack_protect_guard_decl.
3162 * function.c (stack_protect_epilogue): Use it instead of calling
3163 targetm.stack_protect_guard again.
3164 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
3165 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
3166 crtl->stack_protect_guard_decl.
3167 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
3168 on the returned MEM_EXPR.
3170 2019-01-12 Tom de Vries <tdevries@suse.de>
3172 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
3173 vector length using -fopenacc-dim.
3175 2019-01-12 Tom de Vries <tdevries@suse.de>
3177 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
3178 lengths into account.
3180 2019-01-12 Svante Signell <svante.signell@gmail.com>
3182 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
3183 (TARGET_CAN_SPLIT_STACK): Define.
3184 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
3186 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
3188 * params.def (inline-unit-growth): Set to 40.
3190 2019-01-12 Jakub Jelinek <jakub@redhat.com>
3192 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
3194 2019-01-12 Tom de Vries <tdevries@suse.de>
3196 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
3197 region calling vector-partitionable routine, set default_vector_length
3200 2019-01-12 Tom de Vries <tdevries@suse.de>
3202 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
3203 variable default_vector_length.
3205 2019-01-12 Tom de Vries <tdevries@suse.de>
3208 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
3209 from oacc_default_dims, as oacc_validate_dims would do it, and apply
3212 2019-01-12 Tom de Vries <tdevries@suse.de>
3214 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
3215 (nvptx_goacc_validate_dims): Add used parameter.
3216 * doc/tm.texi: Regenerate.
3217 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
3218 argument to call to targetm.goacc.validate_dims.
3219 (default_goacc_validate_dims): Add used
3221 * target.def (validate_dims): Add used parameter in DEFHOOK.
3222 * targhooks.h (default_goacc_validate_dims): Add used parameter.
3224 2019-01-11 Jakub Jelinek <jakub@redhat.com>
3228 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
3230 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
3231 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
3232 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
3233 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
3235 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
3237 PR rtl-optimization/87305
3239 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
3240 for little endian pseudos used as paradoxical subreg.
3242 2019-01-11 Jakub Jelinek <jakub@redhat.com>
3244 PR tree-optimization/88693
3245 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
3246 for STRING_CSTs that don't contain any NUL characters in the first
3247 TREE_STRING_LENGTH bytes.
3249 2019-01-11 Alan Modra <amodra@gmail.com>
3253 * genattrtab.c (min_fn): Don't translate values.
3254 (min_attr_value): Return INT_MAX when the value can't be calculated.
3255 Return minimum among any values that can be calculated.
3256 (max_attr_value): Adjust.
3258 2019-01-11 Jakub Jelinek <jakub@redhat.com>
3260 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
3262 2019-01-11 Steve Ellcey <sellcey@marvell.com>
3264 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
3265 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
3266 (aarch64_return_call_with_max_clobbers): New function.
3267 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
3268 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
3270 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
3271 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
3272 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
3273 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
3274 * cselib.c (cselib_process_insn): Add argument to
3275 targetm.hard_regno_call_part_clobbered call.
3276 * ira-conflicts.c (ira_build_conflicts): Ditto.
3277 * ira-costs.c (ira_tune_allocno_costs): Ditto.
3278 * lra-constraints.c (inherit_reload_reg): Ditto.
3279 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
3280 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
3281 argument. Call targetm.return_call_with_max_clobbers.
3282 Add argument to targetm.hard_regno_call_part_clobbered call.
3283 (calls_have_same_clobbers_p): New function.
3284 (process_bb_lives): Add call_insn and last_call_insn variables.
3285 Pass call_insn to check_pseudos_live_through_calls.
3286 Modify if stmt to check targetm.return_call_with_max_clobbers.
3287 Update setting of flush variable.
3288 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
3290 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
3291 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
3292 targetm.hard_regno_call_part_clobbered call.
3293 * reginfo.c (choose_hard_reg_mode): Ditto.
3294 * regrename.c (check_new_reg_p): Ditto.
3295 * reload.c (find_equiv_reg): Ditto.
3296 * reload1.c (emit_reload_insns): Ditto.
3297 * sched-deps.c (deps_analyze_insn): Ditto.
3298 * sel-sched.c (init_regs_for_mode): Ditto.
3299 (mark_unavailable_hard_regs): Ditto.
3300 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
3301 * target.def (hard_regno_call_part_clobbered): Add insn argument.
3302 (return_call_with_max_clobbers): New target function.
3303 * doc/tm.texi: Regenerate.
3304 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
3305 * hooks.c (hook_bool_uint_mode_false): Change to
3306 hook_bool_insn_uint_mode_false.
3307 * hooks.h (hook_bool_uint_mode_false): Ditto.
3309 2019-01-11 Steve Ellcey <sellcey@marvell.com>
3311 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
3312 (aarch64_remove_extra_call_preserved_regs): New function.
3313 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
3314 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
3315 * doc/tm.texi: Regenerate.
3316 * final.c (get_call_reg_set_usage): Call new hook.
3317 * target.def (remove_extra_call_preserved_regs): New hook.
3318 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
3319 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
3321 2019-01-11 Jakub Jelinek <jakub@redhat.com>
3324 * passes.c (finish_optimization_passes): Call print_combine_total_stats
3325 inside of pass_combine_1 dump rather than pass_profile_1.
3327 2019-01-11 Tom de Vries <tdevries@suse.de>
3329 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
3330 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
3331 (PTX_NUM_PER_WORKER_BARRIERS): Define.
3332 (nvptx_apply_dim_limits): Prevent vector_length 64 and
3335 2019-01-11 Tom de Vries <tdevries@suse.de>
3337 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
3339 2019-01-11 Jan Beulich <jbeulich@suse.com>
3341 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
3342 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
3343 sse2_cvtsi2sd): Add {l}.
3344 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
3347 2019-01-10 Jakub Jelinek <jakub@redhat.com>
3350 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
3352 (*float<floatunssuffix>v2div2sf2): New define_insn.
3353 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
3354 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
3355 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
3356 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
3357 match_operands with "const0_operand" "C".
3359 2019-01-10 Tamar Christina <tamar.christina@arm.com>
3361 * config/aarch64/aarch64-builtins.c
3362 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
3363 (aarch64_init_simd_builtins): ...Here
3365 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
3367 PR rtl-optimization/87305
3369 (setup_live_pseudos_and_spill_after_risky_transforms): Check
3370 allocation for big endian pseudos used as paradoxical subregs and
3371 spill them if it is wrong.
3372 * lra-constraints.c (lra_constraints): Add a comment.
3374 2019-01-10 Richard Biener <rguenther@suse.de>
3376 PR tree-optimization/88792
3377 * tree-ssa-pre.c (get_representative_for): Do not return a
3380 2019-01-10 Jakub Jelinek <jakub@redhat.com>
3384 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
3385 (assign_parm_setup_block): Do the argument slot realignment here
3388 2019-01-10 Stefan Agner <stefan@agner.ch>
3391 * config/arm/arm.c (arm_option_override_internal): Force
3392 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
3394 2019-01-10 Jakub Jelinek <jakub@redhat.com>
3397 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
3400 2019-01-10 Tamar Christina <tamar.christina@arm.com>
3402 * config/arm/arm-builtins.c
3403 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
3404 (MAC_LANE_PAIR_QUALIFIERS): New.
3405 (arm_expand_builtin_args): Use it.
3406 (arm_expand_builtin_1): Likewise.
3407 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
3408 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
3409 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
3410 * config/arm/arm_neon.h:
3411 (vcadd_rot90_f16): New.
3412 (vcaddq_rot90_f16): New.
3413 (vcadd_rot270_f16): New.
3414 (vcaddq_rot270_f16): New.
3417 (vcmla_lane_f16): New.
3418 (vcmla_laneq_f16): New.
3419 (vcmlaq_lane_f16): New.
3420 (vcmlaq_laneq_f16): New.
3421 (vcmla_rot90_f16): New.
3422 (vcmlaq_rot90_f16): New.
3423 (vcmla_rot90_lane_f16): New.
3424 (vcmla_rot90_laneq_f16): New.
3425 (vcmlaq_rot90_lane_f16): New.
3426 (vcmlaq_rot90_laneq_f16): New.
3427 (vcmla_rot180_f16): New.
3428 (vcmlaq_rot180_f16): New.
3429 (vcmla_rot180_lane_f16): New.
3430 (vcmla_rot180_laneq_f16): New.
3431 (vcmlaq_rot180_lane_f16): New.
3432 (vcmlaq_rot180_laneq_f16): New.
3433 (vcmla_rot270_f16): New.
3434 (vcmlaq_rot270_f16): New.
3435 (vcmla_rot270_lane_f16): New.
3436 (vcmla_rot270_laneq_f16): New.
3437 (vcmlaq_rot270_lane_f16): New.
3438 (vcmlaq_rot270_laneq_f16): New.
3439 (vcadd_rot90_f32): New.
3440 (vcaddq_rot90_f32): New.
3441 (vcadd_rot270_f32): New.
3442 (vcaddq_rot270_f32): New.
3445 (vcmla_lane_f32): New.
3446 (vcmla_laneq_f32): New.
3447 (vcmlaq_lane_f32): New.
3448 (vcmlaq_laneq_f32): New.
3449 (vcmla_rot90_f32): New.
3450 (vcmlaq_rot90_f32): New.
3451 (vcmla_rot90_lane_f32): New.
3452 (vcmla_rot90_laneq_f32): New.
3453 (vcmlaq_rot90_lane_f32): New.
3454 (vcmlaq_rot90_laneq_f32): New.
3455 (vcmla_rot180_f32): New.
3456 (vcmlaq_rot180_f32): New.
3457 (vcmla_rot180_lane_f32): New.
3458 (vcmla_rot180_laneq_f32): New.
3459 (vcmlaq_rot180_lane_f32): New.
3460 (vcmlaq_rot180_laneq_f32): New.
3461 (vcmla_rot270_f32): New.
3462 (vcmlaq_rot270_f32): New.
3463 (vcmla_rot270_lane_f32): New.
3464 (vcmla_rot270_laneq_f32): New.
3465 (vcmlaq_rot270_lane_f32): New.
3466 (vcmlaq_rot270_laneq_f32): New.
3467 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
3468 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180, vcmla_lane270,
3469 vcmla_laneq0, vcmla_laneq90, vcmla_laneq180, vcmla_laneq270,
3470 vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180, vcmlaq_lane270): New.
3471 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
3472 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
3473 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
3474 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
3475 (arm_option_reconfigure_globals): Use them.
3476 * config/arm/iterators.md (VDF, VQ_HSF): New.
3477 (VCADD, VCMLA): New.
3478 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
3479 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>): New.
3480 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
3481 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
3483 2019-01-10 Tamar Christina <tamar.christina@arm.com>
3485 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add qualifier_lane_pair_index.
3486 (emit-rtl.h): Include.
3487 (TYPES_QUADOP_LANE_PAIR): New.
3488 (aarch64_simd_expand_args): Use it.
3489 (aarch64_simd_expand_builtin): Likewise.
3490 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum): New.
3491 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
3492 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
3493 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
3494 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
3495 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
3496 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
3497 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
3498 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
3499 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
3500 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
3501 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add __ARM_FEATURE_COMPLEX.
3502 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0, fcmla90,
3503 fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180, fcmla_lane270,
3504 fcmla_laneq0, fcmla_laneq90, fcmla_laneq180, fcmla_laneq270,
3505 fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180, fcmlaq_lane270): New.
3506 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
3507 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,aarch64_fcadd<rot><mode>,
3508 aarch64_fcmla<rot><mode>): New.
3509 * config/aarch64/arm_neon.h:
3510 (vcadd_rot90_f16): New.
3511 (vcaddq_rot90_f16): New.
3512 (vcadd_rot270_f16): New.
3513 (vcaddq_rot270_f16): New.
3516 (vcmla_lane_f16): New.
3517 (vcmla_laneq_f16): New.
3518 (vcmlaq_lane_f16): New.
3519 (vcmlaq_rot90_lane_f16): New.
3520 (vcmla_rot90_laneq_f16): New.
3521 (vcmla_rot90_lane_f16): New.
3522 (vcmlaq_rot90_f16): New.
3523 (vcmla_rot90_f16): New.
3524 (vcmlaq_laneq_f16): New.
3525 (vcmla_rot180_laneq_f16): New.
3526 (vcmla_rot180_lane_f16): New.
3527 (vcmlaq_rot180_f16): New.
3528 (vcmla_rot180_f16): New.
3529 (vcmlaq_rot90_laneq_f16): New.
3530 (vcmlaq_rot270_laneq_f16): New.
3531 (vcmlaq_rot270_lane_f16): New.
3532 (vcmla_rot270_laneq_f16): New.
3533 (vcmlaq_rot270_f16): New.
3534 (vcmla_rot270_f16): New.
3535 (vcmlaq_rot180_laneq_f16): New.
3536 (vcmlaq_rot180_lane_f16): New.
3537 (vcmla_rot270_lane_f16): New.
3538 (vcadd_rot90_f32): New.
3539 (vcaddq_rot90_f32): New.
3540 (vcaddq_rot90_f64): New.
3541 (vcadd_rot270_f32): New.
3542 (vcaddq_rot270_f32): New.
3543 (vcaddq_rot270_f64): New.
3547 (vcmla_lane_f32): New.
3548 (vcmla_laneq_f32): New.
3549 (vcmlaq_lane_f32): New.
3550 (vcmlaq_laneq_f32): New.
3551 (vcmla_rot90_f32): New.
3552 (vcmlaq_rot90_f32): New.
3553 (vcmlaq_rot90_f64): New.
3554 (vcmla_rot90_lane_f32): New.
3555 (vcmla_rot90_laneq_f32): New.
3556 (vcmlaq_rot90_lane_f32): New.
3557 (vcmlaq_rot90_laneq_f32): New.
3558 (vcmla_rot180_f32): New.
3559 (vcmlaq_rot180_f32): New.
3560 (vcmlaq_rot180_f64): New.
3561 (vcmla_rot180_lane_f32): New.
3562 (vcmla_rot180_laneq_f32): New.
3563 (vcmlaq_rot180_lane_f32): New.
3564 (vcmlaq_rot180_laneq_f32): New.
3565 (vcmla_rot270_f32): New.
3566 (vcmlaq_rot270_f32): New.
3567 (vcmlaq_rot270_f64): New.
3568 (vcmla_rot270_lane_f32): New.
3569 (vcmla_rot270_laneq_f32): New.
3570 (vcmlaq_rot270_lane_f32): New.
3571 (vcmlaq_rot270_laneq_f32): New.
3572 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
3573 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
3574 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
3575 (FCADD, FCMLA): New.
3577 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
3579 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
3583 * config/pa/pa.c: Change "can not" to "cannot".
3584 * gimple-ssa-evrp-analyze.c: Likewise.
3585 * ipa-icf.c: Likewise.
3586 * ipa-polymorphic-call.c: Likewise.
3587 * ipa-pure-const.c: Likewise.
3588 * lra-constraints.c: Likewise.
3589 * lra-remat.c: Likewise.
3590 * reload1.c: Likewise.
3591 * reorg.c: Likewise.
3592 * tree-ssa-uninit.c: Likewise.
3594 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
3598 * Makefile.in: Mechanically replace "can not" with "cannot".
3599 * alias.c: Likewise.
3600 * builtins.c: Likewise.
3601 * calls.c: Likewise.
3602 * cgraph.c: Likewise.
3603 * cgraph.h: Likewise.
3604 * cgraphclones.c: Likewise.
3605 * cgraphunit.c: Likewise.
3606 * combine-stack-adj.c: Likewise.
3607 * combine.c: Likewise.
3608 * common/config/i386/i386-common.c: Likewise.
3609 * config/aarch64/aarch64.c: Likewise.
3610 * config/alpha/sync.md: Likewise.
3611 * config/arc/arc.c: Likewise.
3612 * config/arc/predicates.md: Likewise.
3613 * config/arm/arm-c.c: Likewise.
3614 * config/arm/arm.c: Likewise.
3615 * config/arm/arm.h: Likewise.
3616 * config/arm/arm.md: Likewise.
3617 * config/arm/cortex-r4f.md: Likewise.
3618 * config/csky/csky.c: Likewise.
3619 * config/csky/csky.h: Likewise.
3620 * config/darwin-f.c: Likewise.
3621 * config/epiphany/epiphany.md: Likewise.
3622 * config/i386/i386.c: Likewise.
3623 * config/i386/sol2.h: Likewise.
3624 * config/m68k/m68k.c: Likewise.
3625 * config/mcore/mcore.h: Likewise.
3626 * config/microblaze/microblaze.md: Likewise.
3627 * config/mips/20kc.md: Likewise.
3628 * config/mips/sb1.md: Likewise.
3629 * config/nds32/nds32.c: Likewise.
3630 * config/nds32/predicates.md: Likewise.
3631 * config/pa/pa.c: Likewise.
3632 * config/rs6000/e300c2c3.md: Likewise.
3633 * config/rs6000/rs6000.c: Likewise.
3634 * config/s390/s390.h: Likewise.
3635 * config/sh/sh.c: Likewise.
3636 * config/sh/sh.md: Likewise.
3637 * config/spu/vmx2spu.h: Likewise.
3638 * cprop.c: Likewise.
3639 * dbxout.c: Likewise.
3640 * df-scan.c: Likewise.
3641 * doc/cfg.texi: Likewise.
3642 * doc/extend.texi: Likewise.
3643 * doc/fragments.texi: Likewise.
3644 * doc/gty.texi: Likewise.
3645 * doc/invoke.texi: Likewise.
3646 * doc/lto.texi: Likewise.
3647 * doc/md.texi: Likewise.
3648 * doc/objc.texi: Likewise.
3649 * doc/rtl.texi: Likewise.
3650 * doc/tm.texi: Likewise.
3652 * emit-rtl.c: Likewise.
3653 * emit-rtl.h: Likewise.
3654 * except.c: Likewise.
3655 * expmed.c: Likewise.
3657 * fold-const.c: Likewise.
3658 * genautomata.c: Likewise.
3659 * gimple-fold.c: Likewise.
3660 * hard-reg-set.h: Likewise.
3661 * ifcvt.c: Likewise.
3662 * ipa-comdats.c: Likewise.
3663 * ipa-cp.c: Likewise.
3664 * ipa-devirt.c: Likewise.
3665 * ipa-fnsummary.c: Likewise.
3666 * ipa-icf.c: Likewise.
3667 * ipa-inline-transform.c: Likewise.
3668 * ipa-inline.c: Likewise.
3669 * ipa-polymorphic-call.c: Likewise.
3670 * ipa-profile.c: Likewise.
3671 * ipa-prop.c: Likewise.
3672 * ipa-pure-const.c: Likewise.
3673 * ipa-reference.c: Likewise.
3674 * ipa-split.c: Likewise.
3675 * ipa-visibility.c: Likewise.
3677 * ira-build.c: Likewise.
3678 * ira-color.c: Likewise.
3679 * ira-conflicts.c: Likewise.
3680 * ira-costs.c: Likewise.
3681 * ira-int.h: Likewise.
3682 * ira-lives.c: Likewise.
3685 * loop-invariant.c: Likewise.
3686 * loop-unroll.c: Likewise.
3687 * lower-subreg.c: Likewise.
3688 * lra-assigns.c: Likewise.
3689 * lra-constraints.c: Likewise.
3690 * lra-eliminations.c: Likewise.
3691 * lra-lives.c: Likewise.
3692 * lra-remat.c: Likewise.
3693 * lra-spills.c: Likewise.
3695 * lto-cgraph.c: Likewise.
3696 * lto-streamer-out.c: Likewise.
3697 * postreload-gcse.c: Likewise.
3698 * predict.c: Likewise.
3699 * profile-count.h: Likewise.
3700 * profile.c: Likewise.
3701 * recog.c: Likewise.
3703 * reload.c: Likewise.
3704 * reload1.c: Likewise.
3705 * reorg.c: Likewise.
3706 * resource.c: Likewise.
3707 * rtl.def: Likewise.
3709 * rtlanal.c: Likewise.
3710 * sched-deps.c: Likewise.
3711 * sched-ebb.c: Likewise.
3712 * sched-rgn.c: Likewise.
3713 * sel-sched-ir.c: Likewise.
3714 * sel-sched.c: Likewise.
3715 * shrink-wrap.c: Likewise.
3716 * simplify-rtx.c: Likewise.
3717 * symtab.c: Likewise.
3718 * target.def: Likewise.
3719 * toplev.c: Likewise.
3720 * tree-call-cdce.c: Likewise.
3721 * tree-cfg.c: Likewise.
3722 * tree-complex.c: Likewise.
3723 * tree-core.h: Likewise.
3724 * tree-eh.c: Likewise.
3725 * tree-inline.c: Likewise.
3726 * tree-loop-distribution.c: Likewise.
3727 * tree-nrv.c: Likewise.
3728 * tree-profile.c: Likewise.
3729 * tree-sra.c: Likewise.
3730 * tree-ssa-alias.c: Likewise.
3731 * tree-ssa-dce.c: Likewise.
3732 * tree-ssa-dom.c: Likewise.
3733 * tree-ssa-forwprop.c: Likewise.
3734 * tree-ssa-loop-im.c: Likewise.
3735 * tree-ssa-loop-ivcanon.c: Likewise.
3736 * tree-ssa-loop-ivopts.c: Likewise.
3737 * tree-ssa-loop-niter.c: Likewise.
3738 * tree-ssa-phionlycprop.c: Likewise.
3739 * tree-ssa-phiopt.c: Likewise.
3740 * tree-ssa-propagate.c: Likewise.
3741 * tree-ssa-threadedge.c: Likewise.
3742 * tree-ssa-threadupdate.c: Likewise.
3743 * tree-ssa-uninit.c: Likewise.
3744 * tree-ssanames.c: Likewise.
3745 * tree-streamer-out.c: Likewise.
3748 * vr-values.c: Likewise.
3750 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
3752 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
3753 (ix86_split_xorsign): Ditto.
3754 * config/i386/i386.c (ix86_expand_xorsign): New function.
3755 (ix86_split_xorsign): Ditto.
3756 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
3757 (xorsign<mode>3): New expander.
3758 (xorsign<mode>3_1): New insn_and_split pattern.
3759 * config/i386/sse.md (xorsign<mode>3): New expander.
3761 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
3763 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
3764 (*tablejump_sp64): Likewise.
3765 (*tablejump<P:mode>): ...this.
3766 (*call_address_sp32): Merge into...
3767 (*call_address_sp64): Likewise.
3768 (*call_address<P:mode>): ...this.
3769 (*call_symbolic_sp32): Merge into...
3770 (*call_symbolic_sp64): Likewise.
3771 (*call_symbolic<P:mode>): ...this.
3772 (call_value): Remove constraint and add predicate.
3773 (*call_value_address_sp32): Merge into...
3774 (*call_value_address_sp64): Likewise.
3775 (*call_value_address<P:mode>): ...this.
3776 (*call_value_symbolic_sp32): Merge into...
3777 (*call_value_symbolic_sp64): Likewise.
3778 (*call_value_symbolic<P:mode>): ...this.
3779 (*sibcall_symbolic_sp32): Merge into...
3780 (*sibcall_symbolic_sp64): Likewise.
3781 (*sibcall_symbolic<P:mode>): ...this.
3782 (sibcall_value): Remove constraint and add predicate.
3783 (*sibcall_value_symbolic_sp32): Merge into...
3784 (*sibcall_value_symbolic_sp64): Likewise.
3785 (*sibcall_value_symbolic<P:mode>): ...this.
3786 (window_save): Minor tweak.
3787 (*branch_sp32): Merge into...
3788 (*branch_sp64): Likewise.
3789 (*branch<P:mode>): ...this.
3791 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
3792 James Clarke <jrtc27@jrtc27.com>
3795 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
3796 consistently in TLS address generation and adjust code to the renaming
3797 of patterns. Mark calls to __tls_get_addr as const.
3798 * config/sparc/sparc.md (tgd_hi22): Turn into...
3799 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
3800 (tgd_lo10): Turn into...
3801 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
3802 (tgd_add32): Merge into...
3803 (tgd_add64): Likewise.
3804 (tgd_add<P:mode>): ...this and use Pmode throughout.
3805 (tldm_hi22): Turn into...
3806 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
3807 (tldm_lo10): Turn into...
3808 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
3809 (tldm_add32): Merge into...
3810 (tldm_add64): Likewise.
3811 (tldm_add<P:mode>): ...this and use Pmode throughout.
3812 (tldm_call32): Merge into...
3813 (tldm_call64): Likewise.
3814 (tldm_call<P:mode>): ...this and use Pmode throughout.
3815 (tldo_hix22): Turn into...
3816 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
3817 (tldo_lox10): Turn into...
3818 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
3819 (tldo_add32): Merge into...
3820 (tldo_add64): Likewise.
3821 (tldo_add<P:mode>): ...this and use Pmode throughout.
3822 (tie_hi22): Turn into...
3823 (tie_hi22<P:mode>): ...this and use Pmode throughout.
3824 (tie_lo10): Turn into...
3825 (tie_lo10<P:mode>): ...this and use Pmode throughout.
3826 (tie_ld64): Use DImode throughout.
3827 (tie_add32): Merge into...
3828 (tie_add64): Likewise.
3829 (tie_add<P:mode>): ...this and use Pmode throughout.
3830 (tle_hix22_sp32): Merge into...
3831 (tle_hix22_sp64): Likewise.
3832 (tle_hix22<P:mode>): ...this and use Pmode throughout.
3833 (tle_lox22_sp32): Merge into...
3834 (tle_lox22_sp64): Likewise.
3835 (tle_lox22<P:mode>): ...this and use Pmode throughout.
3836 (*tldo_ldub_sp32): Merge into...
3837 (*tldo_ldub_sp64): Likewise.
3838 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
3839 (*tldo_ldub1_sp32): Merge into...
3840 (*tldo_ldub1_sp64): Likewise.
3841 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
3842 (*tldo_ldub2_sp32): Merge into...
3843 (*tldo_ldub2_sp64): Likewise.
3844 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
3845 (*tldo_ldsb1_sp32): Merge into...
3846 (*tldo_ldsb1_sp64): Likewise.
3847 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
3848 (*tldo_ldsb2_sp32): Merge into...
3849 (*tldo_ldsb2_sp64): Likewise.
3850 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
3851 (*tldo_ldub3_sp64): Use DImode throughout.
3852 (*tldo_ldsb3_sp64): Likewise.
3853 (*tldo_lduh_sp32): Merge into...
3854 (*tldo_lduh_sp64): Likewise.
3855 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
3856 (*tldo_lduh1_sp32): Merge into...
3857 (*tldo_lduh1_sp64): Likewise.
3858 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
3859 (*tldo_ldsh1_sp32): Merge into...
3860 (*tldo_ldsh1_sp64): Likewise.
3861 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
3862 (*tldo_lduh2_sp64): Use DImode throughout.
3863 (*tldo_ldsh2_sp64): Likewise.
3864 (*tldo_lduw_sp32): Merge into...
3865 (*tldo_lduw_sp64): Likewise.
3866 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
3867 (*tldo_lduw1_sp64): Use DImode throughout.
3868 (*tldo_ldsw1_sp64): Likewise.
3869 (*tldo_ldx_sp64): Likewise.
3870 (*tldo_stb_sp32): Merge into...
3871 (*tldo_stb_sp64): Likewise.
3872 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
3873 (*tldo_sth_sp32): Merge into...
3874 (*tldo_sth_sp64): Likewise.
3875 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
3876 (*tldo_stw_sp32): Merge into...
3877 (*tldo_stw_sp64): Likewise.
3878 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
3879 (*tldo_stx_sp64): Use DImode throughout.
3881 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3883 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
3884 check configure option to set BTI and Return Address Signing.
3885 * configure.ac: Add --enable-standard-branch-protection and
3886 --disable-standard-branch-protection.
3887 * configure: Regenerated.
3888 * doc/install.texi: Document the same.
3890 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3891 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3893 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
3894 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
3895 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
3897 * config/aarch64/aarch64-bti-insert.c: New file.
3898 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
3900 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
3902 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
3903 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
3904 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
3905 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
3907 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3909 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
3910 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
3911 Disable bti for -mbranch-protection=none.
3912 (aarch64_handle_standard_branch_protection): Enable bti for
3913 -mbranch-protection=standard.
3914 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
3915 -mbranch-protection.
3916 (aarch64_bti_enabled): Check if bti is enabled.
3917 * config/aarch64/aarch64.opt: Declare target variable.
3918 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
3920 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3922 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
3923 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
3924 (aarch64_expand_epilogue): Likewise.
3925 (aarch64_output_mi_thunk): Likewise
3926 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
3927 TAILCALL_ADDR_REGS to x16 and x17.
3928 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
3930 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3932 * config/aarch64/aarch64-option-extensions.def: Define
3933 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
3934 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
3935 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
3936 (AARCH64_FL_PREDRES): New.
3937 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
3938 AARCH64_FL_PREDRES by default.
3939 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
3941 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3943 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
3945 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
3946 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
3947 * doc/invoke.texi: Document ARMv8.5-A.
3949 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3951 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
3952 (xorsign<mode>3): Likewise.
3954 2019-01-09 Jelinek <jakub@redhat.com>
3957 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
3958 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
3960 PR rtl-optimization/88331
3961 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
3962 not currently_expanding_to_rtl.
3964 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
3966 * doc/invoke.texi (-Os): Remove trailing spaces.
3967 (-finline-functions): Remove reference to -O2.
3969 2019-01-08 Jakub Jelinek <jakub@redhat.com>
3971 PR rtl-optimization/79593
3972 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
3974 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
3975 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
3977 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
3980 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
3984 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
3985 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
3987 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
3990 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
3991 ix86_avx_u128_mode_entry.
3993 2019-01-08 Martin Liska <mliska@suse.cz>
3995 PR tree-optimization/88753
3996 * tree-switch-conversion.c (switch_conversion::build_one_array):
3997 Come up with local variable constructor. Convert first to
3998 type of constructor values.
4000 2019-01-08 Richard Biener <rguenther@suse.de>
4002 PR tree-optimization/86554
4003 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
4004 rpo_avail): Move earlier.
4005 (visit_nary_op): When value-numbering to expressions
4006 with different overflow behavior make sure there's an
4007 available expression on the path.
4009 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
4011 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
4012 aarch64_parse_branch_protection,
4013 struct aarch64_branch_protect_type,
4014 aarch64_handle_no_branch_protection,
4015 aarch64_handle_standard_branch_protection,
4016 aarch64_validate_mbranch_protection,
4017 aarch64_handle_pac_ret_protection,
4018 aarch64_handle_attr_branch_protection,
4019 accepted_branch_protection_string,
4020 aarch64_pac_ret_subtypes,
4021 aarch64_branch_protect_types,
4022 aarch64_handle_pac_ret_leaf): Define.
4023 (aarch64_override_options_after_change_1, aarch64_override_options):
4024 Add check for accepted_branch_protection_string.
4025 (aarch64_option_save): Save accepted_branch_protection_string.
4026 (aarch64_option_restore): Save accepted_branch_protection_string.
4027 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
4028 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
4029 msign-return-address.
4030 * doc/invoke.texi: Add mbranch-protection.
4032 2019-01-08 Alan Modra <amodra@gmail.com>
4035 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
4036 Delete "unknownp" parameter. Adjust callers. Handle
4037 CONST_INT, PLUS, MINUS, and MULT.
4038 (attr_value_aligned): Renamed from or_attr_value.
4039 (min_attr_value): Return INT_MIN for unhandled rtl case..
4040 (min_fn): ..and translate to INT_MAX here.
4041 (write_length_unit_log): Modify to cope without "unknown".
4042 (write_attr_value): Handle IF_THEN_ELSE.
4044 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4046 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
4047 optimization for masked stores.
4049 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4052 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
4053 output vector directly to duplicate_and_interleave instead of
4054 going through a temporary. Postpone insertion of ctor_seq to
4055 the end of the loop.
4057 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
4060 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
4061 unsigned_p. Handle signed and unsigned overflow correction as
4063 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
4065 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
4067 (add<mode>3_compareV_imm): Make this callable for expanding.
4068 (subv<GPI:mode>4): Use register_operand for operand 1. Use
4069 aarch64_plus_operand for operand 2.
4070 (subv<GPI:mode>_insn): New insn pattern.
4071 (subv<GPI:mode>_imm): Likewise.
4072 (negv<GPI:mode>3): New expand pattern.
4073 (negv<GPI:mode>_insn): New insn pattern.
4074 (negv<GPI:mode>_cmp_only): Likewise.
4075 (cmpv<GPI:mode>_insn): Likewise.
4076 (subvti4): Use register_operand for operand 1. Update call to
4077 aarch64_expand_subvti.
4078 (usubvti4): Likewise.
4079 (negvti3): New expand pattern.
4080 (negdi_carryout): New insn pattern.
4081 (negvdi_carryinV): New insn pattern.
4082 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
4083 version the named version.
4084 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
4086 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
4088 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
4090 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
4091 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
4092 (sub<mode>3_carryinCV): Delete.
4093 (sub<GPI:mode>3_carryinV): New expand pattern.
4094 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
4096 2019-01-07 Richard Biener <rguenther@suse.de>
4098 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
4099 of tree_operand_hash.
4101 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4103 PR tree-optimization/88598
4104 * tree.h (single_nonzero_element): Declare.
4105 * tree.c (single_nonzero_element): New function.
4106 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
4107 if I is the only nonzero element of CST.
4109 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4111 PR tree-optimization/88598
4112 * tree.h (initializer_each_zero_or_onep): Declare.
4113 * tree.c (initializer_each_zero_or_onep): New function.
4114 (signed_or_unsigned_type_for): Handle float types too.
4115 (unsigned_type_for, signed_type_for): Update comments accordingly.
4116 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
4117 x & { 0 or -1, 0 or -1, ... }.
4119 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
4121 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
4122 with x86_64-pc-linux-gnu.
4124 2019-01-07 Tom de Vries <tdevries@suse.de>
4127 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
4129 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
4132 2019-01-07 Jakub Jelinek <jakub@redhat.com>
4134 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
4135 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
4136 TARGET_AVX512F as condition.
4139 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
4140 const_not_ok_for_debug_p target hook.
4141 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
4142 on UNSPEC and subexpressions thereof if all subexpressions of the
4143 UNSPEC are CONSTANT_P.
4145 PR tree-optimization/88676
4146 * tree-ssa-phiopt.c (two_value_replacement): New function.
4147 (tree_ssa_phiopt_worker): Call it.
4150 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
4151 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
4154 * tree-vect-generic.c: Include insn-config.h and recog.h.
4155 (expand_vector_piecewise): Add defaulted ret_type argument,
4156 if non-NULL, use that in preference to type for the result type.
4157 (expand_vector_parallel): Formatting fix.
4158 (do_vec_conversion, do_vec_narrowing_conversion,
4159 expand_vector_conversion): New functions.
4160 (expand_vector_operations_1): Call expand_vector_conversion
4161 for VEC_CONVERT ifn calls.
4162 * internal-fn.def (VEC_CONVERT): New internal function.
4163 * internal-fn.c (expand_VEC_CONVERT): New function.
4164 * fold-const-call.c (fold_const_vec_convert): New function.
4165 (fold_const_call): Use it for CFN_VEC_CONVERT.
4166 * doc/extend.texi (__builtin_convertvector): Document.
4168 2019-01-07 Tom de Vries <tdevries@suse.de>
4170 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
4171 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
4172 vector_red_partition, vector_red_sym): New global variables.
4173 (nvptx_option_override): Initialize vector_red_sym.
4174 (nvptx_declare_function_name): Restore red_partition register.
4175 (nvptx_file_end): Emit code to declare the vector reduction variables.
4176 (nvptx_output_red_partition): New function.
4177 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
4178 large vector reductions.
4179 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
4180 (nvptx_init_builtins): Add VECTOR_ADDR.
4181 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
4182 Handle nvptx_expand_shared_addr.
4183 (nvptx_get_shared_red_addr): Add vector argument and handle large
4185 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
4187 (nvptx_goacc_reduction_init): Likewise.
4188 (nvptx_goacc_reduction_fini): Likewise.
4189 (nvptx_goacc_reduction_teardown): Likewise.
4190 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
4191 init,fini,teardown}.
4192 (nvptx_init_axis_predicate): Initialize vector_red_partition.
4193 (nvptx_set_current_function): Init vector_red_partition.
4194 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
4195 (nvptx_red_partition): New insn.
4196 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
4198 2019-01-07 Tom de Vries <tdevries@suse.de>
4201 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
4204 2019-01-07 Tom de Vries <tdevries@suse.de>
4206 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
4207 (nvptx_option_override): Init oacc_bcast_partition.
4208 (nvptx_init_oacc_workers): New function.
4209 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
4210 (nvptx_needs_shared_bcast): New function.
4211 (nvptx_find_par): Generalize to enable vectors to use shared-memory
4213 (nvptx_shared_propagate): Initialize vector bcast partition and
4214 synchronization state.
4215 (nvptx_single): Generalize to enable vectors to use shared-memory
4217 (nvptx_process_pars): Likewise.
4218 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
4219 * config/nvptx/nvptx.h (struct machine_function): Add
4220 bcast_partition and sync_bar members.
4222 2019-01-07 Tom de Vries <tdevries@suse.de>
4224 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
4225 (nvptx_apply_dim_limits): New function.
4226 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
4229 2019-01-07 Tom de Vries <tdevries@suse.de>
4231 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
4232 as late as possible.
4234 2019-01-07 Tom de Vries <tdevries@suse.de>
4236 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
4237 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
4238 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
4239 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
4240 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
4242 2019-01-07 Tom de Vries <tdevries@suse.de>
4244 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
4246 2019-01-07 Tom de Vries <tdevries@suse.de>
4248 * omp-offload.c (oacc_get_min_dim): New function.
4249 * omp-offload.h (oacc_get_min_dim): Declare.
4251 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
4254 * config/i386/i386.c (function_value_ms_64): Return small sturct in
4255 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
4257 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4261 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
4263 * ipa-inline.c (edge_badness): Use inlined_time instead of
4264 inline_summaries->get.
4266 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4268 * opts.c (enable_fdo_optimizations): Enable
4269 version-loops-for-strides, loop-interchange, unrol-and-jam
4270 and tree-loop-distribution.
4271 * invoke.texi: Document newly enabled options.
4273 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4275 * doc/invoke.texi (max-inline-insns-small): New parameters.
4276 * ipa-inline.c (want_early_inline_function_p): simplify.
4277 (want_inline_small_function_p): Fix pasto from previous patch;
4278 use max-inline-insns-small bound.
4279 * params.def (max-inline-insns-small): New param.
4280 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
4281 variables correctly.
4283 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4285 * doc/invoke.texi: Document max-inline-insns-size,
4286 uninlined-function-insns, uninlined-function-time,
4287 uninlined-thunk-insns and uninlined-thunk-time.
4288 * params.def: Add max-inline-insns-size,
4289 uninlined-function-insns, uninlined-function-time,
4290 uninlined-thunk-insns and uninlined-thunk-time.
4291 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
4293 * ipa-inline.c (can_inline_edge_by_limits_p,
4294 want_inline_small_function_p): Use new parameters.
4296 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4298 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
4300 2019-01-05 Jakub Jelinek <jakub@redhat.com>
4304 * expr.c (expand_assignment): For calls returning VLA structures
4305 if to_rtx is not a MEM, force it into a stack temporary.
4308 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
4309 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
4310 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
4311 subexpressions of both operands.
4312 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
4313 subrtxes are CONSTANT_P.
4314 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
4317 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
4319 * params.def (hot-bb-count-ws-permille): Set to 990.
4321 2019-01-04 Martin Sebor <msebor@redhat.com>
4324 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
4327 2019-01-04 Martin Sebor <msebor@redhat.com>
4330 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
4332 2019-01-04 Jakub Jelinek <jakub@redhat.com>
4334 * gdbinit.in: Turn off pagination for the skip commands, restore
4335 it to previous state afterwards.
4337 2019-01-04 Jakub Jelinek <jakub@redhat.com>
4340 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
4341 of GET_MODE (opN) as modes of the libcall arguments.
4343 2019-01-04 Jan Beulich <jbeulich@suse.com>
4345 * config/i386/sse.md
4346 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
4347 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
4348 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
4349 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
4350 avx512f_vmcmp<mode>3<round_saeonly_name>,
4351 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
4352 avx512f_maskcmp<mode>3,
4353 <avx512>_cvt<ssemodesuffix>2mask<mode>,
4354 <avx512>_cvt<ssemodesuffix>2mask<mode>,
4355 *<avx512>_cvtmask2<ssemodesuffix><mode>,
4356 *<avx512>_cvtmask2<ssemodesuffix><mode>,
4357 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
4358 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
4359 <avx512>_gt<mode>3<mask_scalar_merge_name>,
4360 <avx512>_gt<mode>3<mask_scalar_merge_name>,
4361 <avx512>_testm<mode>3<mask_scalar_merge_name>,
4362 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
4363 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
4364 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
4365 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
4366 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
4367 avx512cd_maskb_vec_dup<mode>,
4368 avx512cd_maskw_vec_dup<mode>,
4369 avx512dq_fpclass<mode><mask_scalar_merge_name>,
4370 avx512dq_vmfpclass<mode>,
4371 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
4374 2019-01-03 Martin Sebor <msebor@redhat.com>
4376 PR tree-optimization/88659
4377 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
4379 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
4381 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
4382 unaligned vsx and avoid lxvd2x/stxvd2x.
4383 (gen_lvx_v4si_move): New function.
4385 2019-01-03 Tom de Vries <tdevries@suse.de>
4387 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
4388 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
4390 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
4392 2019-01-03 Tom de Vries <tdevries@suse.de>
4394 * config/nvptx/nvptx.c (struct offload_attrs): New.
4395 (populate_offload_attrs): New function. Factor mask extraction out of
4396 nvptx_reorg. Add extraction of dimensions.
4397 (nvptx_reorg): Use populate_offload_attrs.
4399 2019-01-03 Tom de Vries <tdevries@suse.de>
4401 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
4402 cases for oacc_min_dims_p and routine_p. Add asserts for
4403 oacc_default_dims_p and offload_region_p.
4405 2019-01-03 Tom de Vries <tdevries@suse.de>
4407 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
4409 (nvptx_goacc_validate_dims): ... here.
4411 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
4413 PR tree-optimization/85574
4414 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
4416 (struct ssa_equip_hash_traits): Declare.
4417 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
4419 2019-01-03 Jakub Jelinek <jakub@redhat.com>
4422 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
4423 change it to qualified_type.
4425 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
4427 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
4428 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
4430 2019-01-02 Martin Sebor <msebor@redhat.com>
4431 Jeff Law <law@redhat.com>
4433 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
4434 (get_range_strlen_tree): Update appropriately.
4436 * gimple-fold.h (get_range_strlen): Drop unused last argument.
4438 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
4439 rather than set_range_info.
4440 * tree-ssa-strlen.c (set_strlen_range): Extracted from
4441 maybe_set_strlen_range. Handle potentially boundary crossing
4442 cases more conservatively.
4443 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
4444 Call set_strlen_range.
4445 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
4448 * gimple-fold.c (get_range_strlen): Update prototype to no longer
4449 need the flexp argument.
4450 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
4451 from calls to get_range_strlen. Update comments. Just update
4452 VAL for an unterminated const char array and let the reset of the
4453 code handle it normally. No longer try to set *flexp. Adjust
4455 (get_range_strlen): Update for the new get_range_strlen API.
4456 (get_maxval_strlen): Similarly.
4457 (gimple_fold_builtin_strlen): Handle update meaning of return value
4458 from get_range_strlen.
4459 * gimple-ssa-sprintf.c (get_string_length): Update for the new
4460 get_range_strlen API.
4462 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
4465 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
4466 false at WPA time when body was removed.
4468 2019-01-02 Martin Liska <mliska@suse.cz>
4470 PR tree-optimization/88650
4471 * predict.c (set_even_probabilities): Calculate probability
4472 remainer only when really used.
4474 2019-01-02 Richard Biener <rguenther@suse.de>
4477 * tree-data-ref.c (analyze_subscript_affine_affine): Use
4478 widest_ints when mangling max_stmt_execution results.
4480 2019-01-02 Richard Biener <rguenther@suse.de>
4482 PR tree-optimization/88621
4483 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
4484 bitfields when canoncalizing.
4486 2019-01-02 Richard Biener <rguenther@suse.de>
4489 * config/i386/x86-tune-costs.h (intel_cost): Adjust
4490 cost of cheap SSE instruction.
4492 2019-01-02 Richard Biener <rguenther@suse.de>
4495 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
4496 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
4498 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
4499 set after UIDs before splitting them.
4501 2019-01-01 Martin Sebor <msebor@redhat.com>
4502 Jeff Law <law@redhat.com>
4504 * gimple-fold.c (get_range_strlen_tree): Record if the computed
4505 length is optimistic. If it is, then arrange to compute the
4506 conservative length as well.
4508 * gimple-fold.h (get_range_strlen): Update prototype.
4509 * builtins.c (check_access): Update call to get_range_strlen to use
4510 c_strlen_data pointer. Change various variable accesses to instead
4511 pull data from the c_strlen_data structure.
4512 (check_strncat_sizes, expand_builtin_strncat): Likewise.
4513 * calls.c (maybe_warn_nonstring_arg): Likewise.
4514 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
4515 minimum length if maximum lengh is unknown.
4516 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
4517 that used c_strlen, it's no longer needed. Restructure slightly.
4518 (format_string): Set unlikely range appropriately.
4519 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
4521 (get_range_strlen): Accept c_strlen_data pointer for external
4522 call sites as well. Pass through to call to internal get_range_strlen.
4523 Adjust minlen, maxlen and maxbound as needed.
4524 (get_maxval_strlen): Update comments.
4525 (gimple_fold_builtin_strlen): Update call to get_range_strlen
4526 to use c_strlen_data pointer. Change variable accesses to instead
4527 use c_strlen_data data members.
4529 * gimple-fold.c (get_range_strlen): Update prototype.
4530 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
4531 local variables. Use pdata to return information to caller.
4532 Update calls to get_range_strlen. Update pdata->maxbound.
4533 (get_range_strlen -- static version): Similarly.
4534 (get_range_strlen -- extern version): Update for internal
4535 get_range_strlen API change. Convert to external data format.
4536 (get_maxval_strlen): Similarly.
4538 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
4540 * coverage.c (get_coverage_counts): Use current_function_decl.
4541 * profile.c (read_thunk_profile): New function.
4542 (branch_prob): Add THUNK parameter.
4543 * tree-profile.c (tree_profiling): Handle thunks.
4544 * value-prof.c (init_node_map): Handle thunks.
4545 * value-prof.h (branch_prob): Upate prototype.
4546 (read_thunk_profile): Declare.
4548 2019-01-01 Jakub Jelinek <jakub@redhat.com>
4550 Update copyright years.
4552 * gcc.c (process_command): Update copyright notice dates.
4553 * gcov-dump.c (print_version): Ditto.
4554 * gcov.c (print_version): Ditto.
4555 * gcov-tool.c (print_version): Ditto.
4556 * gengtype.c (create_file): Ditto.
4557 * doc/cpp.texi: Bump @copying's copyright year.
4558 * doc/cppinternals.texi: Ditto.
4559 * doc/gcc.texi: Ditto.
4560 * doc/gccint.texi: Ditto.
4561 * doc/gcov.texi: Ditto.
4562 * doc/install.texi: Ditto.
4563 * doc/invoke.texi: Ditto.
4565 Copyright (C) 2019 Free Software Foundation, Inc.
4567 Copying and distribution of this file, with or without modification,
4568 are permitted in any medium without royalty provided the copyright
4569 notice and this notice are preserved.