Fix POLY_INT_CST/CONST_POLY_INT typo (PR 89631)
[gcc.git] / gcc / ChangeLog
1 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
2
3 PR debug/89631
4 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
5 instead of POLY_INT_CST.
6
7 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
8
9 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
10 requirement.
11
12 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
13
14 PR target/68924
15 PR target/78782
16 PR target/87558
17 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
18 (_mm_storeu_si64): Ditto.
19
20 2019-03-08 Martin Liska <mliska@suse.cz>
21
22 PR target/86952
23 * config/i386/i386.c (ix86_option_override_internal): Disable
24 jump tables when retpolines are used.
25
26 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
27
28 PR go/63560
29 * ipa-split.c (execute_split_functions): Do not split
30 'noinline' or 'section' function.
31
32 2019-03-08 Jakub Jelinek <jakub@redhat.com>
33
34 PR target/79846
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.
38
39 PR ipa/80000
40 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
41 from diagnostics. Formatting fixes.
42
43 PR target/85665
44 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
45 warn_odr diagnostics.
46
47 PR other/80058
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
50 literal.
51 * attribs.c (handle_dll_attribute): Likewise.
52 * config/avr/avr-devices.c (avr_texinfo): Likewise.
53
54 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
55 warning_at or inform messages in G_() if there is no ?:.
56
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.
64
65 2019-03-08 Richard Biener <rguenther@suse.de>
66
67 PR middle-end/89578
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
71 cliques.
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.
75
76 2019-03-08 Jakub Jelinek <jakub@redhat.com>
77
78 PR target/80190
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.
82
83 2019-03-07 Jakub Jelinek <jakub@redhat.com>
84
85 PR target/80003
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.
96
97 PR translation/79999
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.
101
102 PR target/89602
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.
114
115 2019-03-07 Martin Jambor <mjambor@suse.cz>
116
117 PR lto/87525
118 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
119 for extern inline functions.
120
121 2019-03-07 Martin Jambor <mjambor@suse.cz>
122
123 PR ipa/88235
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.
129
130 2019-03-07 Martin Liska <mliska@suse.cz>
131
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.
136
137 2019-01-25 Jason Merrill <jason@redhat.com>
138
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.
142
143 2019-04-07 Richard Biener <rguenther@suse.de>
144
145 PR middle-end/89618
146 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
147 * tree-inline.c (copy_loops): Simplify.
148
149 2019-03-07 Martin Liska <mliska@suse.cz>
150
151 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
152
153 2019-03-07 Richard Biener <rguenther@suse.de>
154
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
159 already advanced.
160 (dom_opt_dom_walker::before_dom_children): Re-iterate over
161 stmts created by folding.
162
163 2019-03-07 Jakub Jelinek <jakub@redhat.com>
164
165 PR c++/89585
166 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
167 at toplevel.
168
169 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
170
171 PR rtl-optimization/88845
172 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
173 LRA.
174 * lra.c (remove_scratches_1): New function.
175 (remove_scratches): Use it.
176 (lra_emit_move): Likewise.
177
178 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
179
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.
185
186 2019-03-06 Martin Liska <mliska@suse.cz>
187
188 PR gcov-profile/89577
189 * doc/gcov.texi: Prefer to use --coverage.
190 * doc/sourcebuild.texi: Likewise.
191
192 2019-03-02 Jason Merrill <jason@redhat.com>
193
194 PR c++/86485 - -Wmaybe-unused with empty class ?:
195 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
196
197 2019-03-05 Jakub Jelinek <jakub@redhat.com>
198
199 PR target/89587
200 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
201 if_multiarch.
202
203 PR middle-end/89590
204 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
205 exactly one argument.
206
207 2019-03-05 Jakub Jelinek <jakub@redhat.com>
208 Richard Sandiford <richard.sandiford@arm.com>
209
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).
213
214 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
215
216 PR target/89222
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
220 in function symbols.
221
222 2019-03-05 Richard Biener <rguenther@suse.de>
223
224 PR tree-optimization/89594
225 * tree-if-conv.c (pass_if_conversion::execute): Handle
226 case where .LOOP_VECTORIZED_FUNCTION was removed.
227
228 2019-03-05 Jakub Jelinek <jakub@redhat.com>
229
230 PR bootstrap/89560
231 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
232 instead alloca it only when needed with the needed size.
233
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.
237
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.
244
245 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
246
247 PR tree-optimization/89437
248 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
249
250 2019-03-04 Richard Biener <rguenther@suse.de>
251
252 PR middle-end/89572
253 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
254 safe_dyn_cast.
255
256 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
257
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.
265
266 2019-03-02 Jakub Jelinek <jakub@redhat.com>
267
268 PR target/89506
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.
273 (*negscc): Likewise.
274 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
275
276 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
277 Monk Chiang <sh.chiang04@gmail.com>
278
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=
283 * config.in: Regen.
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
291 * configure: Regen.
292 * doc/install.texi: Document --with-riscv-attribute.
293 * doc/invoke.texi: Document -mriscv-attribute.
294
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
314 parse.
315
316 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
317
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.
321
322 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
323
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.
327
328 2019-03-01 Tamar Christina <tamar.christina@arm.com>
329
330 PR target/89517
331 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
332 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
333
334 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
335
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.
340
341 2019-03-01 Richard Biener <rguenther@suse.de>
342
343 PR middle-end/89541
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.
347
348 2019-03-01 Jakub Jelinek <jakub@redhat.com>
349
350 PR middle-end/89503
351 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
352 on DECL_P and EXPR_P.
353
354 2019-03-01 Richard Biener <rguenther@suse.de>
355
356 PR middle-end/89497
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
360 to cleanup_tree_cfg.
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
363 form if requested.
364 (cleanup_tree_cfg): Get and pass down SSA update flags.
365
366 2019-03-01 Jakub Jelinek <jakub@redhat.com>
367
368 PR bootstrap/89539
369 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
370 early_lto_debug argument.
371
372 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
373
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.
377
378 2019-02-28 Marek Polacek <polacek@redhat.com>
379
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
384 a switch.
385
386 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
387
388 PR lto/88585
389 * tree.c (find_atomic_core_type): Move ahead in file.
390 (check_base_type): Correctly compare alignments of atomic types.
391
392 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
393
394 PR target/89455
395 * config/i386/i386.c (get_builtin_code_for_version): Identify
396 Westmere from PCLMUL, instead of AES.
397
398 2019-02-28 Jakub Jelinek <jakub@redhat.com>
399
400 PR target/89434
401 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
402 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
403 -UINTVAL (...).
404
405 2019-02-28 Tamar Christina <tamar.christina@arm.com>
406
407 PR target/88530
408 * config/aarch64/aarch64-option-extensions.def: Document it.
409 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
410 if empty hwcaps.
411
412 2019-02-28 Jakub Jelinek <jakub@redhat.com>
413
414 PR c/89520
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.
417 Formatting fixes.
418
419 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
420
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.
425
426 2019-02-27 Jakub Jelinek <jakub@redhat.com>
427
428 PR target/70341
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
436 define_insn to ...
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.
440
441 2019-02-27 Richard Biener <rguenther@suse.de>
442
443 PR debug/88878
444 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
445
446 2019-02-27 Richard Biener <rguenther@suse.de>
447
448 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
449 building.
450
451 2019-02-27 Richard Biener <rguenther@suse.de>
452
453 PR debug/88878
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.
458
459 2019-02-27 Richard Biener <rguenther@suse.de>
460
461 PR debug/89514
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.
465
466 2019-02-27 Martin Jambor <mjambor@suse.cz>
467 Martin Sebor <msebor@redhat.com>
468
469 * doc/invoke.texi (Warning Options): Reword description of
470 -Wno-absolute-value.
471
472 2019-02-27 Jakub Jelinek <jakub@redhat.com>
473
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
482 blocks.
483
484 2018-02-26 Steve Ellcey <sellcey@marvell.com>
485
486 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
487 New function.
488 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
489
490 2019-02-26 Jakub Jelinek <jakub@redhat.com>
491
492 PR c++/89507
493 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
494 with types other than sizetype/ssizetype.
495
496 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
497
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.
503 (mtune): Likewise.
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.
521
522 2019-02-26 Jakub Jelinek <jakub@redhat.com>
523
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.
532
533 2019-02-26 Martin Liska <mliska@suse.cz>
534
535 * alloc-pool.h (struct pool_usage): Remove extra
536 print_dash_line.
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.
548
549 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
550
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
557 in the list.
558
559 2019-02-26 Jeff Law <law@redhat.com>
560
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.
564
565 2019-02-26 Richard Biener <rguenther@suse.de>
566
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
570 correctly.
571
572 2019-02-26 Richard Biener <rguenther@suse.de>
573
574 PR tree-optimization/89489
575 * tree-parloops.c (create_loop_fn): Copy over last_clique.
576
577 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
578
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.
583
584 2019-02-26 Jakub Jelinek <jakub@redhat.com>
585
586 PR target/89474
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.
591
592 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
593
594 PR c/80409
595 * doc/extend.texi (Variadic Pointer Args): New section.
596
597 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
598 Martin Sebor <msebor@gmail.com>
599
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).
607
608 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
609
610 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
611 (_mm_cvtpd_ps): Likewise.
612 (_mm_cvttpd_epi32): Likewise.
613
614 PR target/89338
615 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
616 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
617
618 PR target/89339
619 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
620
621 2019-02-25 Tamar Christina <tamar.christina@arm.com>
622
623 PR target/88530
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
641 SYNTHETIC.
642
643 2019-02-25 Tamar Christina <tamar.christina@arm.com>
644
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):
653 Rename ...
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.
663
664 2019-02-25 Tamar Christina <tamar.christina@arm.com>
665
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):
674 Rename ...
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.
683
684 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
685
686 PR rtl-optimization/86096
687 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
688 comparing mw_order values.
689
690 2019-02-25 Jakub Jelinek <jakub@redhat.com>
691
692 PR target/89434
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
702 of operands[2].
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.
708
709 PR target/89438
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.
713
714 2019-02-24 Jakub Jelinek <jakub@redhat.com>
715
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.
724
725 2019-02-23 Martin Sebor <msebor@redhat.com>
726
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.
731
732 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
733
734 PR driver/69471
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
740 and RejectNegative.
741
742 2019-02-22 Martin Sebor <msebor@redhat.com>
743
744 * doc/extend.texi (Other Builtins): Add
745 __builtin_is_constant_evaluated.
746
747 2019-02-22 Richard Biener <rguenther@suse.de>
748
749 PR tree-optimization/87609
750 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
751
752 2019-02-22 Jeff Law <law@redhat.com>
753
754 PR rtl-optimization/87761
755 * config/mips/mips.md: Add new combiner pattern to recognize
756 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
757
758 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
759
760 PR target/89324
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.
774
775 2019-02-22 Martin Sebor <msebor@redhat.com>
776
777 PR tree-optimization/88993
778 PR tree-optimization/88853
779 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
780 New helper.
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.
785
786 2019-02-22 Martin Sebor <msebor@redhat.com>
787
788 PR c/89425
789 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
790 unreachable subexpressions.
791
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>
795
796 PR target/87007
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):
802 New function.
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.
811
812 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
813
814 PR middle-end/85598
815 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
816 analysis for pass.
817
818 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
819
820 PR target/89444
821 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
822 (PTA_SKYLAKE): Add PTA_AES.
823 (PTA_GOLDMONT): Likewise.
824
825 2019-02-22 Sudakshina Das <sudi.das@arm.com>
826
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.
830
831 2019-02-22 Richard Biener <rguenther@suse.de>
832
833 PR tree-optimization/89440
834 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
835 not necessary assert.
836
837 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
838
839 PR fortran/72741
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.
844
845 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
846
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.
852
853 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
854
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.
858
859 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
860
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.
867
868 2019-02-22 Richard Biener <rguenther@suse.de>
869
870 PR middle-end/87609
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.
881
882 2019-02-22 Richard Biener <rguenther@suse.de>
883
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).
892
893 2019-02-21 Martin Sebor <msebor@redhat.com>
894
895 * doc/extend.texi (__clear_cache): Correct signature.
896
897 2019-02-21 Ian Lance Taylor <iant@golang.org>
898
899 PR go/89170
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.
905
906 2019-02-21 Jakub Jelinek <jakub@redhat.com>
907
908 PR c++/89285
909 * builtins.c (fold_builtin_arith_overflow): If first two args are
910 INTEGER_CSTs, set intres and ovfres to constants rather than calls
911 to ifn.
912
913 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
914
915 PR target/87412
916 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
917 error for -mindirect-branch/-mfunction-return with incompatible
918 -fcf-protection.
919
920 2019-02-21 Jakub Jelinek <jakub@redhat.com>
921
922 PR bootstrap/88714
923 * constraints.md (q): Remove.
924 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
925 instead of q.
926
927 2019-02-21 Martin Jambor <mjambor@suse.cz>
928
929 PR hsa/89302
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.
936
937 2019-02-20 Jakub Jelinek <jakub@redhat.com>
938
939 PR middle-end/89412
940 * expr.c (expand_assignment): If result is a MEM, use change_address
941 instead of simplify_gen_subreg.
942
943 2019-02-20 Jakub Jelinek <jakub@redhat.com>
944 David Malcolm <dmalcolm@redhat.com>
945
946 PR middle-end/89091
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.
950
951 2019-02-20 Jakub Jelinek <jakub@redhat.com>
952
953 PR middle-end/88074
954 PR middle-end/89415
955 * toplev.c (do_compile): Double the emin/emax exponents to workaround
956 buggy mpc_norm.
957
958 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
959
960 PR target/89397
961 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
962 TARGET_SSE in addition to TARGET_SSE_MATH.
963
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.
968
969 2019-02-20 David Malcolm <dmalcolm@redhat.com>
970
971 PR c/89410
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.
977
978 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
979
980 PR target/86487
981 * lra-constraints.c(uses_hard_regs_p): Fix handling of
982 paradoxical SUBREGS.
983
984 2019-02-20 Li Jia He <helijia@linux.ibm.com>
985
986 PR target/88100
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
990 range checking it.
991
992 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
993
994 * config/gcn/gcn.c (print_operand): Fix typo.
995
996 2019-02-19 Richard Biener <rguenther@suse.de>
997
998 PR middle-end/88074
999 * toplev.c (do_compile): Initialize mpfr's exponent range
1000 based on available float modes.
1001
1002 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
1003
1004 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
1005 as long as the epilogue isn't completed.
1006
1007 2019-02-18 Martin Sebor <msebor@redhat.com>
1008
1009 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
1010 __has_cpp_attribute, and __has_include.
1011
1012 2019-02-18 Martin Sebor <msebor@redhat.com>
1013
1014 * doc/invoke.texi (-Wreturn-type): Correct and expand.
1015
1016 2019-02-18 Martin Sebor <msebor@redhat.com>
1017
1018 PR middle-end/89294
1019 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
1020 expression.
1021 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
1022
1023 2019-02-18 Richard Biener <rguenther@suse.de>
1024
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.
1028
1029 2019-02-18 Jakub Jelinek <jakub@redhat.com>
1030
1031 PR bootstrap/88714
1032 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
1033 "q" constraint.
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].
1037
1038 PR target/89369
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].
1044
1045 PR target/89361
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.
1052
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
1062 instead of 1UL.
1063 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
1064 instead of 1ul.
1065
1066 2019-02-18 Martin Jambor <mjambor@suse.cz>
1067
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
1071 a register type.
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.
1076
1077 2019-02-18 Martin Liska <mliska@suse.cz>
1078
1079 PR ipa/89306
1080 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
1081 by default.
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
1085 by default.
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.
1106
1107 2019-02-18 Martin Liska <mliska@suse.cz>
1108
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
1115 suffixes.
1116
1117 2019-02-17 Alan Modra <amodra@gmail.com>
1118
1119 PR target/89271
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.
1123
1124 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
1125
1126 PR target/89372
1127 * config/i386/sse.md (ssedoublemode): Remove V4HI.
1128 (PMULHRSW): Likewise.
1129 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
1130 TARGET_AVX2.
1131 (ssse3_pmulhrswv4hi3): New expander.
1132
1133 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
1134
1135 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
1136 MMX. Add isa attribute.
1137
1138 2019-02-16 Jakub Jelinek <jakub@redhat.com>
1139
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.
1150
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.
1157
1158 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
1159
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.
1165
1166 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
1167
1168 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
1169 the base address on 64-bit strict-alignment platforms.
1170
1171 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
1172
1173 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
1174
1175 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
1176
1177 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
1178
1179 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
1180
1181 PR rtl-optimization/88308
1182 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
1183 on copied instruction.
1184
1185 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
1186
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
1197 for the GR6.
1198 (output_branch): Adjust threshold for long branch instruction.
1199 * config/visium/visium.md (cpu): Move around.
1200 (length): Adjust for the GR6.
1201
1202 2019-02-15 Richard Biener <rguenther@suse.de>
1203 Jakub Jelinek <jakub@redhat.com>
1204
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.
1210
1211 2019-02-15 Jakub Jelinek <jakub@redhat.com>
1212
1213 PR other/89342
1214 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
1215 optimize_debug.
1216 * opth-gen.awk: Likewise.
1217
1218 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
1219
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.
1224
1225 2019-02-14 Jakub Jelinek <jakub@redhat.com>
1226
1227 PR rtl-optimization/89354
1228 * combine.c (make_extraction): Punt if extraction_mode is narrower
1229 than len bits.
1230
1231 2019-02-14 Maya Rashish <coypu@sdf.org>
1232
1233 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
1234 * config/netbsd-d.c: New file.
1235 * config/t-netbsd: Add netbsd-d.o
1236
1237 2018-02-14 Steve Ellcey <sellcey@marvell.com>
1238
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.
1243
1244 2019-02-14 Tamar Christina <tamar.christina@arm.com>
1245
1246 PR target/88850
1247 * config/arm/iterators.md (ANY64): Add V4HF.
1248
1249 2019-02-14 Martin Liska <mliska@suse.cz>
1250
1251 PR rtl-optimization/89242
1252 * dce.c (delete_unmarked_insns): Call free_dominance_info we
1253 process a transformation.
1254
1255 2019-02-14 Jakub Jelinek <jakub@redhat.com>
1256
1257 PR tree-optimization/89314
1258 * fold-const.c (fold_binary_loc): Cast strlen argument to
1259 const char * before dereferencing it. Formatting fixes.
1260
1261 PR middle-end/89284
1262 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
1263
1264 2019-02-13 Ian Lance Taylor <iant@golang.org>
1265
1266 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
1267 and set current index for other optimizations.
1268
1269 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
1270
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.
1280
1281 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
1282
1283 PR target/89190
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.
1288
1289 2019-02-13 Tamar Christina <tamar.christina@arm.com>
1290
1291 PR target/88847
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.
1296
1297 2019-02-13 Martin Liska <mliska@suse.cz>
1298
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
1303 fields.
1304 * cgraph.h (struct cgraph_thunk_info): Remove
1305 add_pointer_bounds_args.
1306 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
1307 fields.
1308 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
1309 fields.
1310 * config/i386/i386.c (ix86_function_arg_advance): Remove
1311 unrelated comment.
1312 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
1313 (def_builtin): Remove usage of dead
1314 fields.
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
1328 assign_stmts.
1329 * tree-inline.h (struct copy_body_data): Likewise.
1330 * varpool.c (varpool_node::dump): Likewise.
1331
1332 2019-02-13 Jakub Jelinek <jakub@redhat.com>
1333
1334 PR middle-end/89303
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.
1338
1339 PR middle-end/89281
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.
1343
1344 PR target/89290
1345 * config/i386/predicates.md (x86_64_immediate_operand): Allow
1346 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
1347 -mcmodel=large.
1348
1349 2019-02-13 Martin Liska <mliska@suse.cz>
1350
1351 PR lto/88858
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.
1355
1356 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
1357
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):
1364 New BU_CRYPTO_2.
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.
1371
1372 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
1373
1374 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
1375 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
1376
1377 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
1378
1379 PR target/89229
1380 * config/i386/i386.md (*movoi_internal_avx): Revert revision
1381 268678 and revision 268657.
1382 (*movti_internal): Likewise.
1383
1384 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
1385
1386 PR target/89233
1387 * config/s390/s390.c (s390_decompose_address): Update comment.
1388 (s390_check_qrst_address): Reject invalid address forms after
1389 LRA.
1390
1391 2019-02-12 Martin Liska <mliska@suse.cz>
1392
1393 PR lto/88876
1394 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
1395 we need default values of funct_state for a function that
1396 is not optimized.
1397
1398 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
1399
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.
1402
1403 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
1404 (*movdi_insn_sp32): Likewise.
1405 (*movdi_insn_sp64): Likewise.
1406
1407 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
1408
1409 PR lto/88677
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.
1413
1414 2019-02-12 Richard Biener <rguenther@suse.de>
1415
1416 PR tree-optimization/89253
1417 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
1418 duplicate the loop.
1419
1420 2019-02-11 David Malcolm <dmalcolm@redhat.com>
1421
1422 PR lto/88147
1423 * input.c (selftest::test_line_offset_overflow): New selftest.
1424 (selftest::input_c_tests): Call it.
1425
1426 2019-02-11 Martin Sebor <msebor@redhat.com>
1427
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.
1438
1439 2019-02-11 Martin Sebor <msebor@redhat.com>
1440
1441 PR c++/87996
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.
1446
1447 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
1448
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.
1452
1453 2019-02-11 Alan Modra <amodra@gmail.com>
1454
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.
1476
1477 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1478
1479 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
1480 Solaris ld.
1481 * configure: Regenerate.
1482
1483 2019-02-11 Jakub Jelinek <jakub@redhat.com>
1484
1485 PR bootstrap/88714
1486 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
1487 instead of r.
1488
1489 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
1490
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.
1495
1496 2019-02-11 Martin Liska <mliska@suse.cz>
1497
1498 PR ipa/89009
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.
1510
1511 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
1512
1513 * config/nds32/nds32.md (call_internal, call_value_internal,
1514 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
1515
1516 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
1517
1518 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
1519 typo.
1520
1521 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
1522
1523 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
1524 in comments
1525
1526 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
1527
1528 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
1529
1530 2019-02-10 Jakub Jelinek <jakub@redhat.com>
1531
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.
1535
1536 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
1537
1538 PR lto/89272
1539 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
1540 polymorphic types.
1541
1542 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
1543
1544 * config/nds32/nds32.md (trap): New pattern.
1545
1546 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
1547
1548 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
1549 dwarf span.
1550
1551 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
1552
1553 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
1554 to split POST_INC.
1555
1556 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
1557
1558 * ipa-visibility.c (localize_node): Also do not localize
1559 LDPR_PREVAILING_DEF_IRONLY_EXP.
1560
1561 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
1562
1563 PR lto/87957
1564 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
1565 instead of type_with_linkage.
1566
1567 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
1568
1569 PR ipa/88755
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.
1573
1574 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
1575
1576 * config/rs6000/rs6000-string.c (expand_compare_loop,
1577 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
1578 memcmp/strncmp.
1579
1580 2019-02-09 Jakub Jelinek <jakub@redhat.com>
1581
1582 PR middle-end/89246
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.
1586
1587 2019-02-09 Alan Modra <amodra@gmail.com>
1588
1589 PR target/88343
1590 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
1591 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
1592 setup.
1593
1594 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
1595
1596 PR middle-end/88560
1597 * lra-constraints.c (process_alt_operands): Don't increase reject
1598 for memory when offset memory is required.
1599
1600 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
1601
1602 * config/s390/vector.md: Implement vector copysign.
1603
1604 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
1605
1606 * expr.c (expand_constructor): Correct indentations.
1607
1608 2019-02-08 Richard Biener <rguenther@suse.de>
1609
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.
1618
1619 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
1620
1621 * config/s390/constraints.md (jdd): New constraint.
1622
1623 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
1624
1625 PR target/89229
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.
1629
1630 2019-02-08 Jakub Jelinek <jakub@redhat.com>
1631
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.
1636
1637 2019-02-08 Richard Biener <rguenther@suse.de>
1638
1639 PR middle-end/89223
1640 * tree-data-ref.c (initialize_matrix_A): Fail if constant
1641 doesn't fit in HWI.
1642 (analyze_subscript_affine_affine): Handle failure from
1643 initialize_matrix_A.
1644
1645 2019-02-08 Jakub Jelinek <jakub@redhat.com>
1646
1647 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
1648 cfun everywhere.
1649
1650 2019-02-07 David Malcolm <dmalcolm@redhat.com>
1651
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
1656 purged on exit.
1657 * tree-vectorizer.c
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
1662 reset.
1663 * tree-vectorizer.h (class auto_purge_vect_location): New class.
1664
1665 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1666
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
1673 MINUS (MAX MIN).
1674
1675 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
1676
1677 PR target/89229
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.
1681
1682 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
1683
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
1688 float.
1689 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
1690 a new vector type with the alignment of the scalar memory operand.
1691
1692 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
1693 Jakub Jelinek <jakub@redhat.com>
1694
1695 PR bootstrap/88714
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
1699 MINUS.
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.
1704
1705 2019-02-07 Tamar Christina <tamar.christina@arm.com>
1706
1707 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
1708 Make it a C initializer.
1709
1710 2019-02-07 Tamar Christina <tamar.christina@arm.com>
1711
1712 PR/target 88850
1713 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
1714
1715 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1716
1717 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
1718 Use neon_dot<q> for type.
1719 (neon_<sup>dot_lane<vsi2qi>): Likewise.
1720
1721 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1722
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.
1727
1728 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
1729
1730 PR rtl-optimization/89225
1731 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
1732 sizes check.
1733
1734 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
1735
1736 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
1737 after restoring registers saved to allocate the frame on Windows.
1738
1739 2019-02-06 Richard Biener <rguenther@suse.de>
1740
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):
1751 Simplify.
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.
1759
1760 2019-02-06 Jakub Jelinek <jakub@redhat.com>
1761
1762 PR middle-end/89210
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.
1767
1768 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
1769
1770 PR target/88856
1771 * config/s390/s390.md: Remove load and test FP splitter.
1772
1773 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
1774
1775 PR target/89112
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.
1782
1783 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
1784
1785 PR target/89112
1786 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
1787 for the long branch case.
1788
1789 2019-02-05 Jakub Jelinek <jakub@redhat.com>
1790
1791 PR target/89188
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.
1797
1798 PR rtl-optimization/89195
1799 * combine.c (make_extraction): For MEMs, don't extract bytes outside
1800 of the original MEM.
1801
1802 2019-02-05 Martin Liska <mliska@suse.cz>
1803
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.
1809
1810 2019-02-05 Jakub Jelinek <jakub@redhat.com>
1811
1812 PR target/89186
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).
1815
1816 2019-02-05 Richard Biener <rguenther@suse.de>
1817
1818 PR middle-end/89150
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.
1823
1824 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
1825
1826 PR c/88698
1827 * doc/extend.texi (Vector Extensions): Add an example of using vector
1828 types together with x86 intrinsics.
1829
1830 2019-02-04 Alan Modra <amodra@gmail.com>
1831
1832 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
1833 str[] size to 160, and comment.
1834
1835 2019-02-04 Alan Modra <amodra@gmail.com>
1836
1837 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
1838 (rs6000_pltseq_template): Guard output of TLS markers with
1839 TARGET_TLS_MARKERS.
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.
1846
1847 2019-02-04 Martin Liska <mliska@suse.cz>
1848
1849 PR ipa/88985
1850 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
1851 out when ipa_fn_summaries does not contain entry for callee.
1852
1853 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
1854
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.
1868
1869 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
1870
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".
1873
1874 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
1875
1876 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
1877 into consideration.
1878
1879 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
1880
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.
1885
1886 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
1887
1888 PR target/89071
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.
1895
1896 2019-02-03 Richard Biener <rguenther@suse.de>
1897
1898 PR debug/87295
1899 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
1900 orig.
1901
1902 2019-02-02 Jakub Jelinek <jakub@redhat.com>
1903
1904 PR middle-end/87887
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.
1908
1909 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
1910
1911 * combine.c (try_combine): Do not print "Can't combine" messages unless
1912 printing failed combination attempts.
1913
1914 2019-02-01 Martin Jambor <mjambor@suse.cz>
1915
1916 PR hsa/87863
1917 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
1918 segment and global segment variables before making them static.
1919
1920 2019-02-01 Martin Jambor <mjambor@suse.cz>
1921
1922 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
1923 missed optimization dump with dump_enabled_p.
1924
1925 2019-02-01 Richard Biener <rguenther@suse.de>
1926
1927 PR middle-end/88597
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.
1935
1936 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
1937
1938 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
1939
1940 2019-02-01 Jakub Jelinek <jakub@redhat.com>
1941
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.
1946
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.
1953
1954 2019-02-01 Richard Biener <rguenth@suse.de>
1955
1956 PR rtl-optimization/88593
1957 * mode-switching.c (optimize_mode_switching): Free dominators before
1958 calling cleanup_cfg.
1959
1960 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
1961
1962 PR tree-optimization/88932
1963 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
1964
1965 2019-01-31 Jakub Jelinek <jakub@redhat.com>
1966
1967 PR middle-end/89137
1968 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
1969 bogus clang warning.
1970
1971 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
1972
1973 PR target/89071
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.
1978
1979 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
1980
1981 PR tree-optimization/89008
1982 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
1983 process anything of the form X * 0.
1984
1985 2019-01-31 Richard Biener <rguenther@suse.de>
1986
1987 PR tree-optimization/89135
1988 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
1989 with abnormal preds.
1990
1991 2019-01-31 Jakub Jelinek <jakub@redhat.com>
1992
1993 PR sanitizer/89124
1994 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
1995 always_inline callees into no_sanitize_address callers.
1996
1997 2019-01-31 Richard Biener <rguenther@suse.de>
1998
1999 PR rtl-optimization/89115
2000 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
2001
2002 2019-01-30 Martin Sebor <msebor@redhat.com>
2003
2004 PR other/89106
2005 * doc/extend.texi (cast to a union): Correct and expand.
2006
2007 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
2008
2009 PR rtl-optimization/87246
2010 * lra-constraints.c (simplify_operand_subreg): Reload memory
2011 in subreg if the address became invalid.
2012
2013 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
2014
2015 PR target/87064
2016 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
2017 Disable for little-endian.
2018
2019 2019-01-30 Richard Biener <rguenther@suse.de>
2020
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
2025 to the default.
2026
2027 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
2028
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
2032 move.
2033
2034 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
2035
2036 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
2037
2038 2019-01-30 Richard Biener <rguenther@suse.de>
2039
2040 PR tree-optimization/89111
2041 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
2042 canonicalization to appropriately sized access types.
2043
2044 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2045
2046 PR c++/89105
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.
2050
2051 2019-01-30 Ulrich Drepper <drepper@redhat.com>
2052
2053 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
2054 after '='.
2055
2056 2019-01-29 Martin Sebor <msebor@redhat.com>
2057
2058 PR c/88956
2059 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
2060
2061 2019-01-29 Jakub Jelinek <jakub@redhat.com>
2062
2063 PR c++/66676
2064 PR ipa/89104
2065 * omp-simd-clone.c (simd_clone_clauses_extract)
2066 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
2067 OMP_CLAUSE_ALIGNED_ALIGNMENT.
2068
2069 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
2070
2071 * config.gcc: Force .init_array for ARC.
2072
2073 2019-01-29 Richard Biener <rguenther@suse.de>
2074
2075 PR debug/87295
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.
2080
2081 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2082
2083 PR middle-end/89002
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
2087 sequence.
2088
2089 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
2090
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.
2094
2095 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2096
2097 PR target/89073
2098 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
2099 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
2100 x86 ISA options.
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.
2112
2113 2019-01-28 Richard Biener <rguenther@suse.de>
2114
2115 PR debug/89076
2116 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
2117 support removal.
2118
2119 2019-01-28 Richard Biener <rguenther@suse.de>
2120
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.
2128
2129 2019-01-27 Jakub Jelinek <jakub@redhat.com>
2130
2131 PR target/87214
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.
2139
2140 2019-01-26 Martin Jambor <mjambor@suse.cz>
2141
2142 PR ipa/88933
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
2147 all callers.
2148 * tree-cfgcleanup.c: Include cgraph.h.
2149 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
2150 Declare.
2151 * ipa-prop.c: Include tree-cfgcleanup.h.
2152 (ipcp_transform_function): Call
2153 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
2154
2155 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
2156
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.
2162
2163 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
2164
2165 PR target/88469
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.
2172
2173 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
2174
2175 PR middle-end/89037
2176 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
2177 instead of accessing TREE_INT_CST_ELT directly.
2178
2179 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
2180
2181 * doc/sourcebuild.texi (Environment attributes): Add fenv and
2182 fenv_exceptions description.
2183
2184 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
2185
2186 PR rtl-optimization/87763
2187 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
2188 Allow SUBREG when matching CC_NZmode compare.
2189
2190 2019-01-25 Richard Biener <rguenther@suse.de>
2191
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.
2195
2196 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
2197
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.
2201
2202 2019-01-25 Richard Biener <rguenther@suse.de>
2203
2204 PR tree-optimization/86865
2205 * graphite-scop-detection.c (scop_detection::can_represent_loop):
2206 Reject non-do-while loops.
2207
2208 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
2209
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):
2231 Use CONST_INT_P.
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):
2243 Use CONST_INT_P.
2244 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
2245 Use CONST_DOUBLE_P.
2246 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
2247 CONST_WIDE_INT_P.
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
2252 reg_or_subregno:
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
2268 SYMBOL_REF_P.
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
2278 reg_or_subregno.
2279 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
2280 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
2281 MEM_P and REG_P.
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.
2313
2314 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
2315
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.
2323
2324 2019-01-24 Jakub Jelinek <jakub@redhat.com>
2325
2326 PR debug/89006
2327 * config/i386/i386.c (ix86_pic_register_p): Return true for
2328 UNSPEC_SET_GOT too.
2329
2330 PR tree-optimization/88964
2331 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
2332 punt if HONOR_SNANS (chrec).
2333
2334 PR middle-end/89015
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
2339 or GIMPLE_OMP_TASK.
2340
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.
2344
2345 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
2346
2347 PR target/88469
2348 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
2349 force the alignment of m_val.
2350
2351 2019-01-24 Richard Biener <rguenther@suse.de>
2352
2353 PR lto/87187
2354 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
2355 When in "legacy" debug mode make sure to reset self-origins.
2356
2357 2019-01-24 Martin Liska <mliska@suse.cz>
2358
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.
2364
2365 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
2366
2367 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
2368 * vr-values.c (find_case_label_ranges): Fix a comment typo.
2369
2370 2019-01-23 Bin Cheng <bin.cheng@arm.com>
2371 Steve Ellcey <sellcey@marvell.com>
2372
2373 PR target/85711
2374 * recog.c (address_operand): Return false on wrong mode for address.
2375 (constrain_operands): Check for mode with 'p' constraint.
2376
2377 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
2378
2379 PR target/88998
2380 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
2381 Disparage MMX alternative.
2382 (sse2_cvtpd2pi): Ditto.
2383 (sse2_cvttpd2pi): Ditto.
2384
2385 2019-01-23 David Malcolm <dmalcolm@redhat.com>
2386
2387 PR driver/89014
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.
2391
2392 2019-01-23 Jakub Jelinek <jakub@redhat.com>
2393
2394 PR c/44715
2395 * doc/extend.texi: Document break and continue behavior in
2396 statement expressions.
2397
2398 2019-01-23 Richard Biener <rguenther@suse.de>
2399
2400 PR tree-optimization/89008
2401 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
2402 not leave another stray operand.
2403
2404 2019-01-23 Jakub Jelinek <jakub@redhat.com>
2405
2406 * BASE-VER: Bump to 9.0.1.
2407
2408 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
2409
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.
2413
2414 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
2415
2416 * config/arc/atomic.md: Add operand to DMB instruction.
2417
2418 2019-01-23 Jakub Jelinek <jakub@redhat.com>
2419
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.
2424
2425 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
2426
2427 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
2428
2429 2019-01-22 Jakub Jelinek <jakub@redhat.com>
2430
2431 PR target/88965
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.
2435
2436 PR middle-end/88968
2437 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
2438 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
2439
2440 PR target/87064
2441 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
2442 Disable for little endian.
2443
2444 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
2445
2446 PR target/88469
2447 * config/arm/arm.c (arm_needs_double_word_align): Check
2448 DECL_BIT_FIELD_TYPE.
2449
2450 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
2451 H.J. Lu <hongjiu.lu@intel.com>
2452
2453 PR target/88909
2454 * config/i386/i386-builtin.def: Add mask2 to all builtin
2455 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
2456 SPECIAL_ARGS.
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
2469 support.
2470 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
2471
2472 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
2473
2474 PR target/88954
2475 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
2476 noplt attribute.
2477
2478 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
2479
2480 PR target/88469
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.
2487
2488 2019-01-22 Richard Biener <rguenther@suse.de>
2489
2490 PR tree-optimization/88862
2491 * graphite-scop-detection.c
2492 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
2493
2494 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
2495
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.
2500
2501 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
2502
2503 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
2504 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
2505
2506 2019-01-22 Jakub Jelinek <jakub@redhat.com>
2507
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.
2512
2513 PR rtl-optimization/88904
2514 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
2515 any nonequal registers before processing BB_END (b).
2516
2517 PR target/88905
2518 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
2519 GET_MODE (op0).
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.
2523
2524 PR rtl-optimization/49429
2525 PR target/49454
2526 PR rtl-optimization/86334
2527 PR target/88906
2528 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
2529 addressable from here...
2530 (emit_block_op_via_libcall): ... to here.
2531
2532 2019-01-22 Richard Biener <rguenther@suse.de>
2533
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
2538 gather SLP defs.
2539
2540 2019-01-22 Alan Modra <amodra@gmail.com>
2541
2542 PR target/88614
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,
2554 delete split..
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.
2566
2567 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
2568
2569 PR target/88938
2570 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
2571 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
2572
2573 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
2574
2575 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
2576 string contents as hash_map keys.
2577
2578 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2579
2580 PR c/88928
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.
2587
2588 2019-01-21 Richard Biener <rguenther@suse.de>
2589
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.
2594
2595 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2596
2597 PR target/71659
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.
2617
2618 2019-01-20 Martin Jambor <mjambor@suse.cz>
2619
2620 PR ipa/87615
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
2629 unmodified_parm.
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
2641 fbi, limit AA walk.
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
2650 get_dynamic_type.
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.
2657
2658 2019-01-19 Jakub Jelinek <jakub@redhat.com>
2659
2660 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
2661 outside of #if CHECKING_P code.
2662
2663 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
2664
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.
2673
2674 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
2675
2676 PR target/88892
2677 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
2678 operands.
2679
2680 2019-01-18 Richard Biener <rguenther@suse.de>
2681
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
2685 shifts by scalars.
2686
2687 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
2688
2689 PR target/88799
2690 * config/arm/arm-cpus.in (mp): New feature.
2691 (sec): 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.
2705
2706 2019-01-18 Martin Liska <mliska@suse.cz>
2707
2708 * params.def: Fix comment.
2709 * tree-profile.c (gimple_init_gcov_profiler): Bump function
2710 name.
2711 (gimple_gen_ic_func_profiler): Likewise.
2712
2713 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2714
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.
2727
2728 2019-01-18 Jakub Jelinek <jakub@redhat.com>
2729
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.
2738
2739 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
2740
2741 PR target/85596
2742 * doc/install.texi (with-multilib-list): Document for aarch64.
2743
2744 2019-01-18 Jakub Jelinek <jakub@redhat.com>
2745
2746 PR target/88734
2747 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
2748 (("..."))) with ("...").
2749
2750 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
2751
2752 * doc/extend.texi (Built-in Functions for Memory Model Aware
2753 Atomic Operations): Document atomic fetch and nand.
2754
2755 2019-01-18 Martin Liska <mliska@suse.cz>
2756 Richard Biener <rguenther@suse.de>
2757
2758 PR middle-end/88587
2759 * cgraph.h (create_version_clone_with_body): Add new argument
2760 with attributes.
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
2766 for declaration.
2767 (expand_target_clones): Do not call valid_attribute_p, it must
2768 be already done.
2769 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
2770 vector types.
2771
2772 2019-01-17 Jakub Jelinek <jakub@redhat.com>
2773
2774 PR target/88734
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.
2778
2779 2019-01-17 Martin Sebor <msebor@redhat.com>
2780
2781 PR middle-end/88273
2782 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
2783 Handle anti-ranges the same as no range at all.
2784
2785 2018-01-17 Steve Ellcey <sellcey@cavium.com>
2786
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
2799 call.
2800
2801 2019-01-17 Martin Sebor <msebor@redhat.com>
2802
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
2809 disabled.
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.
2817
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>
2822
2823 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
2824
2825 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
2826
2827 * doc/sourcebuild.texi: Document dg-require-effective-target
2828 llvm_binutils and offload_gcn.
2829
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>
2834
2835 * doc/sourcebuild.texi: Document dg-required-effective-target
2836 exceptions.
2837
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>
2844
2845 * config.gcc: Add amdgcn*-*-amdhsa configuration.
2846 * configure.ac: Check for dlopen.
2847 * configure: Regenerate.
2848
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>
2855
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.
2870
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>
2877
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.
2882
2883 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
2884
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.
2889
2890 2019-01-17 Tamar Christina <tamar.christina@arm.com>
2891
2892 PR target/88851
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.
2896
2897 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2898
2899 * config/aarch64/aarch64.c (ares_tunings): Define.
2900 * config/aarch64/aarch64-cores.def (ares): Use the above.
2901
2902 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
2903
2904 PR target/88794
2905 Revert:
2906 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
2907
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.
2961
2962 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
2963
2964 PR target/88794
2965 Revert:
2966 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
2967
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.
2975
2976 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
2977
2978 PR target/88794
2979 Revert:
2980 2018-12-15 Jakub Jelinek <jakub@redhat.com>
2981
2982 PR target/88489
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.
2986
2987 2019-01-17 Richard Biener <rguenther@suse.de>
2988
2989 PR lto/86736
2990 * dwarf2out.c (want_pubnames): Never generate pubnames sections
2991 and friends for the LTO part of debug info.
2992
2993 2019-01-17 Jakub Jelinek <jakub@redhat.com>
2994
2995 PR tree-optimization/86214
2996 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
2997 if x == y.
2998
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.
3003
3004 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
3005
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.
3011
3012 2019-01-16 David Malcolm <dmalcolm@redhat.com>
3013
3014 PR target/88861
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
3018 returns true.
3019
3020 2019-01-16 Tamar Christina <tamar.christina@arm.com>
3021
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
3027 lane endianness.
3028
3029 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
3030
3031 * config/alpha/alpha.c (alpha_gimplify_va_arg):
3032 Handle split indirect COMPLEX_TYPE arguments.
3033
3034 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
3035
3036 PR target/86891
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
3044 CC_ADCmode.
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.
3062
3063 2019-01-16 Tamar Christina <tamar.christina@arm.com>
3064
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.
3069
3070 2019-01-16 Martin Liska <mliska@suse.cz>
3071
3072 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
3073 for GCC driver.
3074 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
3075 a new argument.
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.
3080
3081 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
3082
3083 * godump.c (go_output_typedef): When outputting a typedef, refer
3084 to the underlying type by its name and not its structure.
3085
3086 2019-01-15 David Malcolm <dmalcolm@redhat.com>
3087
3088 PR c++/88795
3089 * tree.c (build_function_type): Assert that arg_types is not
3090 error_mark_node.
3091
3092 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
3093
3094 PR inline-asm/52813
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.
3101
3102 2019-01-15 Richard Biener <rguenther@suse.de>
3103
3104 PR debug/88046
3105 * dwarf2out.c (gen_member_die): Do not generate inheritance
3106 DIEs late.
3107
3108 2019-01-15 Richard Biener <rguenther@suse.de>
3109
3110 PR tree-optimization/88855
3111 * tree-if-conv.c (combine_blocks): Collect
3112 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
3113
3114 2019-01-15 Tom de Vries <tdevries@suse.de>
3115
3116 PR target/80547
3117 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
3118 lhs == NULL_TREE for gang-level reduction.
3119
3120 2019-01-15 Richard Biener <rguenther@suse.de>
3121 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3122
3123 PR ipa/88788
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.
3127
3128 2019-01-15 Jakub Jelinek <jakub@redhat.com>
3129
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.
3136
3137 2019-01-14 Andi Kleen <ak@linux.intel.com>
3138
3139 * Makefile.in: Lower autofdo sampling rate by 10x.
3140 * Makefile.tpl: Dito.
3141
3142 2019-01-14 Tom Honermann <tom@honermann.net>
3143
3144 * defaults.h: Define CHAR8_TYPE.
3145
3146 2019-01-14 Martin Sebor <msebor@redhat.com>
3147
3148 PR target/88638
3149 * doc/extend.texi (Darwin Format Checks): Clarify.
3150
3151 2019-01-14 Richard Biener <rguenther@suse.de>
3152
3153 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
3154 whether we are in (simplify ...) or (match ...) context.
3155
3156 2019-01-14 Jakub Jelinek <jakub@redhat.com>
3157
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.
3169
3170 2019-01-12 Tom de Vries <tdevries@suse.de>
3171
3172 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
3173 vector length using -fopenacc-dim.
3174
3175 2019-01-12 Tom de Vries <tdevries@suse.de>
3176
3177 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
3178 lengths into account.
3179
3180 2019-01-12 Svante Signell <svante.signell@gmail.com>
3181
3182 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
3183 (TARGET_CAN_SPLIT_STACK): Define.
3184 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
3185
3186 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
3187
3188 * params.def (inline-unit-growth): Set to 40.
3189
3190 2019-01-12 Jakub Jelinek <jakub@redhat.com>
3191
3192 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
3193
3194 2019-01-12 Tom de Vries <tdevries@suse.de>
3195
3196 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
3197 region calling vector-partitionable routine, set default_vector_length
3198 to WARP_SIZE.
3199
3200 2019-01-12 Tom de Vries <tdevries@suse.de>
3201
3202 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
3203 variable default_vector_length.
3204
3205 2019-01-12 Tom de Vries <tdevries@suse.de>
3206
3207 PR middle-end/88703
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
3210 dimensions limits.
3211
3212 2019-01-12 Tom de Vries <tdevries@suse.de>
3213
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
3220 parameter.
3221 * target.def (validate_dims): Add used parameter in DEFHOOK.
3222 * targhooks.h (default_goacc_validate_dims): Add used parameter.
3223
3224 2019-01-11 Jakub Jelinek <jakub@redhat.com>
3225
3226 PR middle-end/85956
3227 PR lto/88733
3228 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
3229 field.
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.
3234
3235 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
3236
3237 PR rtl-optimization/87305
3238 * lra-assigns.c
3239 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
3240 for little endian pseudos used as paradoxical subreg.
3241
3242 2019-01-11 Jakub Jelinek <jakub@redhat.com>
3243
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.
3248
3249 2019-01-11 Alan Modra <amodra@gmail.com>
3250
3251 PR 88777
3252 PR 88614
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.
3257
3258 2019-01-11 Jakub Jelinek <jakub@redhat.com>
3259
3260 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
3261
3262 2019-01-11 Steve Ellcey <sellcey@marvell.com>
3263
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
3269 argument.
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
3289 to false.
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.
3308
3309 2019-01-11 Steve Ellcey <sellcey@marvell.com>
3310
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.
3320
3321 2019-01-11 Jakub Jelinek <jakub@redhat.com>
3322
3323 PR bootstrap/88714
3324 * passes.c (finish_optimization_passes): Call print_combine_total_stats
3325 inside of pass_combine_1 dump rather than pass_profile_1.
3326
3327 2019-01-11 Tom de Vries <tdevries@suse.de>
3328
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
3333 num_workers 16.
3334
3335 2019-01-11 Tom de Vries <tdevries@suse.de>
3336
3337 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
3338
3339 2019-01-11 Jan Beulich <jbeulich@suse.com>
3340
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
3345 syntax.
3346
3347 2019-01-10 Jakub Jelinek <jakub@redhat.com>
3348
3349 PR target/88785
3350 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
3351 define_expand.
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".
3358
3359 2019-01-10 Tamar Christina <tamar.christina@arm.com>
3360
3361 * config/aarch64/aarch64-builtins.c
3362 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
3363 (aarch64_init_simd_builtins): ...Here
3364
3365 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
3366
3367 PR rtl-optimization/87305
3368 * lra-assigns.c
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.
3373
3374 2019-01-10 Richard Biener <rguenther@suse.de>
3375
3376 PR tree-optimization/88792
3377 * tree-ssa-pre.c (get_representative_for): Do not return a
3378 value-number here.
3379
3380 2019-01-10 Jakub Jelinek <jakub@redhat.com>
3381
3382 PR middle-end/84877
3383 PR bootstrap/88450
3384 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
3385 (assign_parm_setup_block): Do the argument slot realignment here
3386 instead.
3387
3388 2019-01-10 Stefan Agner <stefan@agner.ch>
3389
3390 PR target/88648
3391 * config/arm/arm.c (arm_option_override_internal): Force
3392 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
3393
3394 2019-01-10 Jakub Jelinek <jakub@redhat.com>
3395
3396 PR c/88568
3397 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
3398 DECL_EXTERNAL.
3399
3400 2019-01-10 Tamar Christina <tamar.christina@arm.com>
3401
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.
3415 (vcmla_f16): New.
3416 (vcmlaq_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.
3443 (vcmla_f32): New.
3444 (vcmlaq_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.
3482
3483 2019-01-10 Tamar Christina <tamar.christina@arm.com>
3484
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.
3514 (vcmla_f16): New.
3515 (vcmlaq_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.
3544 (vcmla_f32): New.
3545 (vcmlaq_f32): New.
3546 (vcmlaq_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.
3576 (rot): New.
3577 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
3578
3579 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
3580
3581 PR other/16615
3582
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.
3593
3594 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
3595
3596 PR other/16615
3597
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.
3651 * dse.c: Likewise.
3652 * emit-rtl.c: Likewise.
3653 * emit-rtl.h: Likewise.
3654 * except.c: Likewise.
3655 * expmed.c: Likewise.
3656 * expr.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.
3676 * ipa.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.
3683 * ira.c: Likewise.
3684 * ira.h: 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.
3694 * lra.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.
3702 * ree.c: Likewise.
3703 * reload.c: Likewise.
3704 * reload1.c: Likewise.
3705 * reorg.c: Likewise.
3706 * resource.c: Likewise.
3707 * rtl.def: Likewise.
3708 * rtl.h: 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.
3746 * tree.c: Likewise.
3747 * tree.h: Likewise.
3748 * vr-values.c: Likewise.
3749
3750 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
3751
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.
3760
3761 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
3762
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.
3790
3791 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
3792 James Clarke <jrtc27@jrtc27.com>
3793
3794 PR target/84010
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.
3880
3881 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3882
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.
3889
3890 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3891 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3892
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
3896 if bti is enabled.
3897 * config/aarch64/aarch64-bti-insert.c: New file.
3898 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
3899 pass.
3900 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
3901 new bti pass.
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.
3906
3907 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3908
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.
3919
3920 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3921
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.
3929
3930 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3931
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.
3940
3941 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3942
3943 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
3944 ARMv8.5-A.
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.
3948
3949 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3950
3951 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
3952 (xorsign<mode>3): Likewise.
3953
3954 2019-01-09 Jelinek <jakub@redhat.com>
3955
3956 PR middle-end/88758
3957 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
3958 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
3959
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.
3963
3964 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
3965
3966 * doc/invoke.texi (-Os): Remove trailing spaces.
3967 (-finline-functions): Remove reference to -O2.
3968
3969 2019-01-08 Jakub Jelinek <jakub@redhat.com>
3970
3971 PR rtl-optimization/79593
3972 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
3973
3974 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
3975 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
3976
3977 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
3978
3979 PR bootstrap/88721
3980 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
3981 to -1 on entry.
3982
3983 PR debug/88723
3984 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
3985 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
3986
3987 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
3988
3989 PR target/88717
3990 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
3991 ix86_avx_u128_mode_entry.
3992
3993 2019-01-08 Martin Liska <mliska@suse.cz>
3994
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.
3999
4000 2019-01-08 Richard Biener <rguenther@suse.de>
4001
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.
4008
4009 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
4010
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.
4031
4032 2019-01-08 Alan Modra <amodra@gmail.com>
4033
4034 PR target/88614
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.
4043
4044 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4045
4046 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
4047 optimization for masked stores.
4048
4049 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4050
4051 PR middle-end/88567
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.
4056
4057 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
4058
4059 PR target/86891
4060 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
4061 unsigned_p. Handle signed and unsigned overflow correction as
4062 required.
4063 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
4064 prototype.
4065 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
4066 for operand 2.
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
4085 operands.
4086 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
4087 patterns.
4088 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
4089 patterns.
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.
4095
4096 2019-01-07 Richard Biener <rguenther@suse.de>
4097
4098 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
4099 of tree_operand_hash.
4100
4101 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4102
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.
4108
4109 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4110
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, ... }.
4118
4119 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
4120
4121 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
4122 with x86_64-pc-linux-gnu.
4123
4124 2019-01-07 Tom de Vries <tdevries@suse.de>
4125
4126 PR target/85486
4127 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
4128 function.
4129 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
4130 routines.
4131
4132 2019-01-07 Jakub Jelinek <jakub@redhat.com>
4133
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.
4137
4138 PR debug/88723
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.
4144
4145 PR tree-optimization/88676
4146 * tree-ssa-phiopt.c (two_value_replacement): New function.
4147 (tree_ssa_phiopt_worker): Call it.
4148
4149 PR sanitizer/88619
4150 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
4151 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
4152
4153 PR c++/85052
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.
4167
4168 2019-01-07 Tom de Vries <tdevries@suse.de>
4169
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
4184 vectors.
4185 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
4186 large vectors.
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.
4197
4198 2019-01-07 Tom de Vries <tdevries@suse.de>
4199
4200 PR target/85381
4201 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
4202 empty loops.
4203
4204 2019-01-07 Tom de Vries <tdevries@suse.de>
4205
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
4212 to propagate state.
4213 (nvptx_shared_propagate): Initialize vector bcast partition and
4214 synchronization state.
4215 (nvptx_single): Generalize to enable vectors to use shared-memory
4216 to propagate state.
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.
4221
4222 2019-01-07 Tom de Vries <tdevries@suse.de>
4223
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
4227 PTX_WARP_SIZE.
4228
4229 2019-01-07 Tom de Vries <tdevries@suse.de>
4230
4231 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
4232 as late as possible.
4233
4234 2019-01-07 Tom de Vries <tdevries@suse.de>
4235
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.
4241
4242 2019-01-07 Tom de Vries <tdevries@suse.de>
4243
4244 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
4245
4246 2019-01-07 Tom de Vries <tdevries@suse.de>
4247
4248 * omp-offload.c (oacc_get_min_dim): New function.
4249 * omp-offload.h (oacc_get_min_dim): Declare.
4250
4251 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
4252
4253 PR target/88521
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.
4256
4257 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4258
4259 PR tree-opt/86020
4260 Revert:
4261 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
4262
4263 * ipa-inline.c (edge_badness): Use inlined_time instead of
4264 inline_summaries->get.
4265
4266 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4267
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.
4272
4273 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4274
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.
4282
4283 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4284
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
4292 new parameters.
4293 * ipa-inline.c (can_inline_edge_by_limits_p,
4294 want_inline_small_function_p): Use new parameters.
4295
4296 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4297
4298 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
4299
4300 2019-01-05 Jakub Jelinek <jakub@redhat.com>
4301
4302 PR middle-end/82564
4303 PR target/88620
4304 * expr.c (expand_assignment): For calls returning VLA structures
4305 if to_rtx is not a MEM, force it into a stack temporary.
4306
4307 PR debug/88635
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
4315 2018-11-09 changes.
4316
4317 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
4318
4319 * params.def (hot-bb-count-ws-permille): Set to 990.
4320
4321 2019-01-04 Martin Sebor <msebor@redhat.com>
4322
4323 PR c/88546
4324 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
4325 leaf.
4326
4327 2019-01-04 Martin Sebor <msebor@redhat.com>
4328
4329 PR c/88363
4330 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
4331
4332 2019-01-04 Jakub Jelinek <jakub@redhat.com>
4333
4334 * gdbinit.in: Turn off pagination for the skip commands, restore
4335 it to previous state afterwards.
4336
4337 2019-01-04 Jakub Jelinek <jakub@redhat.com>
4338
4339 PR target/88594
4340 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
4341 of GET_MODE (opN) as modes of the libcall arguments.
4342
4343 2019-01-04 Jan Beulich <jbeulich@suse.com>
4344
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
4372 instead of =Yk.
4373
4374 2019-01-03 Martin Sebor <msebor@redhat.com>
4375
4376 PR tree-optimization/88659
4377 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
4378
4379 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
4380
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.
4384
4385 2019-01-03 Tom de Vries <tdevries@suse.de>
4386
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
4389 function.
4390 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
4391
4392 2019-01-03 Tom de Vries <tdevries@suse.de>
4393
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.
4398
4399 2019-01-03 Tom de Vries <tdevries@suse.de>
4400
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.
4404
4405 2019-01-03 Tom de Vries <tdevries@suse.de>
4406
4407 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
4408 factored out of ...
4409 (nvptx_goacc_validate_dims): ... here.
4410
4411 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
4412
4413 PR tree-optimization/85574
4414 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
4415 structure.
4416 (struct ssa_equip_hash_traits): Declare.
4417 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
4418
4419 2019-01-03 Jakub Jelinek <jakub@redhat.com>
4420
4421 PR debug/88644
4422 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
4423 change it to qualified_type.
4424
4425 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
4426
4427 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
4428 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
4429
4430 2019-01-02 Martin Sebor <msebor@redhat.com>
4431 Jeff Law <law@redhat.com>
4432
4433 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
4434 (get_range_strlen_tree): Update appropriately.
4435 (get_range_strlen)
4436 * gimple-fold.h (get_range_strlen): Drop unused last argument.
4437
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.
4446
4447 PR middle-end/88663
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
4454 return value.
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.
4461
4462 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
4463
4464 PR lto/88130
4465 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
4466 false at WPA time when body was removed.
4467
4468 2019-01-02 Martin Liska <mliska@suse.cz>
4469
4470 PR tree-optimization/88650
4471 * predict.c (set_even_probabilities): Calculate probability
4472 remainer only when really used.
4473
4474 2019-01-02 Richard Biener <rguenther@suse.de>
4475
4476 PR middle-end/88651
4477 * tree-data-ref.c (analyze_subscript_affine_affine): Use
4478 widest_ints when mangling max_stmt_execution results.
4479
4480 2019-01-02 Richard Biener <rguenther@suse.de>
4481
4482 PR tree-optimization/88621
4483 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
4484 bitfields when canoncalizing.
4485
4486 2019-01-02 Richard Biener <rguenther@suse.de>
4487
4488 PR target/87545
4489 * config/i386/x86-tune-costs.h (intel_cost): Adjust
4490 cost of cheap SSE instruction.
4491
4492 2019-01-02 Richard Biener <rguenther@suse.de>
4493
4494 PR ipa/85574
4495 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
4496 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
4497 function.
4498 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
4499 set after UIDs before splitting them.
4500
4501 2019-01-01 Martin Sebor <msebor@redhat.com>
4502 Jeff Law <law@redhat.com>
4503
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.
4507
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
4520 formatting issues.
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.
4528
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.
4537
4538 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
4539
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.
4547
4548 2019-01-01 Jakub Jelinek <jakub@redhat.com>
4549
4550 Update copyright years.
4551
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.
4564 \f
4565 Copyright (C) 2019 Free Software Foundation, Inc.
4566
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.