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