]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Documentation hyperlinks for [-Wname-of-option] (PR 87488)
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
2
3 PR target/77918
4 * config/s390/vector.md (vcond_comparison_operator): New
5 predicate.
6 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
7
8 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9
10 PR 87488
11 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
12 -D.
13 * configure.ac (--with-documentation-root-url): New option.
14 * configure: Regenerate.
15 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
16 option URL, add it as a new string field of the diagnostic option.
17 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
18 (print_option_information): If get_option_url is non-NULL, call
19 it, and if the result is non-NULL, potentially emit an escape
20 sequence to markup the option text with the resulting URL.
21 * diagnostic.h (diagnostic_context::get_option_url): New callback.
22 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
23 example of JSON output.
24 * opts-diagnostic.h (get_option_url): New decl.
25 * opts.c (get_option_url): New function.
26 * toplev.c (general_init): Initialize the get_option_url callback.
27
28 2019-10-10 David Malcolm <dmalcolm@redhat.com>
29
30 PR 87488
31 * common.opt (fdiagnostics-urls=): New option.
32 (diagnostic-url.h): Add SourceInclude.
33 (diagnostic_url_rule): New enum.
34 * diagnostic-color.c: Include "diagnostic-url.h".
35 (diagnostic_urls_enabled_p): New function.
36 * diagnostic-url.h: New file.
37 * diagnostic.c: Include "diagnostic-url.h".
38 (diagnostic_urls_init): New function.
39 * diagnostic.h (diagnostic_urls_init): New decl.
40 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
41 -fdiagnostics-urls to the list.
42 (-fdiagnostics-urls): New option.
43 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
44 (driver::global_initializations): Call diagnostic_urls_init.
45 * opts-global.c (init_options_once): Likewise.
46 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
47 * pretty-print.c (pretty_printer::pretty_printer): Initialize
48 show_urls.
49 (pp_begin_url): New function.
50 (pp_end_url): New function.
51 (selftest::test_urls): New selftest.
52 (selftest::pretty_print_c_tests): Call it.
53 * pretty-print.h (pretty_printer::show_urls): New field.
54 (pp_begin_url): New decl.
55 (pp_end_url): New decl.
56
57 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
58
59 PR target/92022
60 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
61
62 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
63
64 PR target/88630
65 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
66 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
67 also for TARGET_FPU_SH4_300.
68 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
69 TARGET_SH4_300.
70 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
71 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
72 (*negsf2_i): Split into ...
73 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
74 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
75 (**abssf2_i): Split into ...
76 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
77 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
78 (*negdf2_i): Split into ...
79 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
80 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
81 (**abssf2_i): Split into ...
82 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
83
84 2019-10-10 Richard Biener <rguenther@suse.de>
85
86 PR middle-end/92046
87 * opts.c (finish_options): Do not influence global --params
88 from options that are adjustable per function.
89 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
90 Apply --param adjustment based on active cost-model.
91 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
92 further store-sinking when vectorization or if-conversion
93 are not enabled.
94
95 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
96
97 PR middle-end/92037
98 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
99 rather than ggc_alloc_cleared to alloc symbol table.
100 * toplev.c (general_init): Likewise.
101 * cgraph.h (symbol_table): Explicitly construct every field.
102
103 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
104
105 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
106 (PF_Z15): ... this.
107 * config.gcc: Add z15 as option for --with-arch and --with-tune
108 configure switches.
109 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
110 error reporting for unsupported builtins.
111 * config/s390/s390-opts.h (enum processor_type): Rename
112 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
113 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
114 * config/s390/driver-native.c (s390_host_detect_local_cpu):
115 Likewise.
116 * config/s390/s390-builtins.def: Likewise.
117 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
118 (s390_expand_builtin): Add missing check for unsupported builtins.
119 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
120 (s390_rtx_costs): Likewise.
121 (s390_get_sched_attrmask): Rename arch13 to z15.
122 (s390_get_unit_mask): Likewise.
123 (s390_is_fpd): Likewise.
124 (s390_is_fxd): Likewise.
125 * config/s390/s390.h (enum processor_flags): Likewise.
126 * config/s390/s390.md: Likewise.
127 * config/s390/vector.md: Likewise.
128 * config/s390/vx-builtins.md: Likewise.
129 * config/s390/s390.opt: Add z15 to processor_type value.
130
131 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
132
133 PR target/91035
134 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
135 prototype.
136 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
137 ("split_stack_data", "split_stack_call")
138 ("split_stack_call_<mode>", "split_stack_cond_call")
139 ("split_stack_cond_call_<mode>"): Remove.
140 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
141 insn definition.
142 * config/s390/s390.c (s390_output_split_stack_data): New function.
143 (s390_expand_split_stack_prologue): Use the merged expander.
144
145 2019-10-09 Martin Sebor <msebor@redhat.com>
146
147 PR tree-optimization/90879
148 * builtins.c (check_access): Avoid using maxbound when null.
149 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
150 * doc/invoke.texi (-Wstring-compare): Document new warning option.
151 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
152 conditional.
153 (get_range_strlen): Overwrite initial maxbound when non-null.
154 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
155 changes.
156 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
157 (used_only_for_zero_equality): New function.
158 (handle_builtin_memcmp): Call it.
159 (determine_min_objsize): Return an integer instead of tree.
160 (get_len_or_size, strxcmp_eqz_result): New functions.
161 (maybe_warn_pointless_strcmp): New function.
162 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
163 between a longer string and a smaller array.
164 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
165
166 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
167
168 * config/darwin.c (darwin_override_options): Make the check for
169 Objective-C ABI version more specific for 64bit code.
170
171 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
172
173 * config/darwin.c (machopic_indirect_data_reference): Set flag to
174 indicate that the new symbol is an indirection.
175 (machopic_indirect_call_target): Likewise.
176 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
177 (MACHO_SYMBOL_INDIRECTION_P): New.
178 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
179
180 2019-10-08 Jason Merrill <jason@redhat.com>
181
182 * doc/invoke.texi: Document -fconcepts-ts.
183
184 2019-10-09 Richard Biener <rguenther@suse.de>
185
186 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
187 allow stmts other than GIMPLE_ASSIGN in nested cycles.
188
189 2019-10-08 Richard Biener <rguenther@suse.de>
190
191 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
192 (_stmt_vec_info::force_single_cycle): Likewise.
193 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
194 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
195 * tree-vect-loop.c (vectorizable_reduction): Set
196 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
197 (vect_transform_reduction): Use them to remove redundant code.
198 (vect_transform_cycle_phi): Likewise.
199
200 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
201
202 PR tree-optimization/90836
203 * gcc/match.pd (popcount): New pattern.
204
205 2019-10-08 Martin Sebor <msebor@redhat.com>
206
207 PR middle-end/92026
208 PR middle-end/92014
209 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
210 again once nbytes has been set. Set the access size when not yet set.
211
212 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
213
214 * config/darwin.c (machopic_select_section): Remove dead code for
215 old Objective-C section selection method, replace with unreachable.
216
217 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
218
219 * config/darwin.c (machopic_indirect_data_reference): Check for
220 required indirections before making direct access to defined
221 values.
222 (machopic_output_indirection): Place the indirected pointes for
223 required indirections into the non-lazy symbol pointers section.
224 (darwin_encode_section_info):
225 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
226 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
227
228 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
229
230 PR target/91994
231 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
232 instead of ALL_SSE_REG to check if function call preserves some
233 256-bit SSE registers.
234
235 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
236
237 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
238 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
239 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
240
241 2019-10-08 Richard Biener <rguenther@suse.de>
242
243 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
244 (_stmt_vec_info::is_reduc_info): Add.
245 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
246 (vectorizable_condition): Remove.
247 (vectorizable_shift): Likewise.
248 (vectorizable_reduction): Adjust.
249 (info_for_reduction): New.
250 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
251 (vect_analyze_scalar_cycles_1): ... here.
252 (vect_analyze_loop_operations): Adjust.
253 (needs_fold_left_reduction_p): Simplify for single caller.
254 (vect_is_simple_reduction): Likewise. Remove stmt restriction
255 for nested cycles not part of double reductions.
256 (vect_model_reduction_cost): Pass in the reduction type.
257 (info_for_reduction): New function.
258 (vect_create_epilog_for_reduction): Use it, access reduction
259 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
260 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
261 (vectorize_fold_left_reduction): Remove pointless assert.
262 (vectorizable_reduction): Analyze the full reduction when
263 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
264 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
265 stmt code-generation to vectorizable_* in most cases. Verify
266 code-generation only for cases handled by
267 vect_transform_reductuon.
268 (vect_transform_reduction): Use info_for_reduction to get at
269 reduction meta. Simplify.
270 (vect_transform_cycle_phi): Likewise.
271 (vectorizable_live_operation): Likewise.
272 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
273 at the PHI node for STMT_VINFO_REDUC_TYPE.
274 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
275 longer necessary code.
276 * tree-vect-stmts.c (vectorizable_shift): Make static again.
277 (vectorizable_condition): Likewise. Get at reduction related
278 info via info_for_reduction.
279 (vect_analyze_stmt): Adjust.
280 (vect_transform_stmt): Likewise.
281 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
282 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
283
284 2019-10-08 Joseph Myers <joseph@codesourcery.com>
285
286 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
287 -fno-fp-int-builtin-inexact default for C2X.
288
289 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
290 Richard Biener <rguenther@suse.de>
291
292 PR tree-optimization/91532
293 * tree-if-conv.c: Include tree-ssa-dse.h.
294 (ifcvt_local_dce): Change param from bb to loop,
295 and call dse_classify_store.
296 (tree_if_conversion): Pass loop instead of loop->header as arg
297 to ifcvt_local_dce.
298 * tree-ssa-dse.c: Include tree-ssa-dse.h.
299 (delete_dead_or_redundant_assignment): Remove static qualifier from
300 declaration, and add prototype in tree-ssa-dse.h.
301 (dse_store_status): Move to tree-ssa-dse.h.
302 (dse_classify_store): Remove static qualifier and add new tree param
303 stop_at_vuse, and add prototype in tree-ssa-dse.h.
304 * tree-ssa-dse.h: New header.
305
306 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
307
308 * config/darwin.c (machopic_output_indirection): Don't put
309 hidden symbol indirections into the .data section, use the
310 non-lazy symbol pointers section as normal.
311 (darwin_encode_section_info): Record if a symbol is hidden.
312 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
313 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
314
315 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
316
317 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
318 predicates instead of accessing bits directly.
319 (machopic_indirect_call_target): Likewise.
320 (machopic_output_indirection): Likewise.
321 (darwin_encode_section_info): Improve description. Use renamed
322 symbol flags. Use predicate macros for variables and functions.
323 * config/darwin.h:
324 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
325 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
326 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
327 (MACHO_SYMBOL_VARIABLE_P): New.
328 (MACHO_SYMBOL_DEFINED_P):New.
329 (MACHO_SYMBOL_STATIC_P): New.
330 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
331 (SYMBOL_FLAG_SUBT_DEP): New.
332 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
333
334 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
335
336 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
337 (msp430_expand_epilogue): Likewise.
338 * config/msp430/predicates.md: Likewise.
339 * config/msp430/msp430.md: Likewise.
340 Replace blocks of 8 spaces with tabs.
341
342 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
343
344 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
345 * config/msp430/msp430.c (msp430_split_addsi): New.
346 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
347 a block of C code for splitting addsi.
348
349 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
350
351 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
352 ix86_expand_rounddf_32): Reorder functions.
353 * config/i386/i386-protos.h: Update.
354
355 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
356
357 * config.in: Regenerate.
358 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
359 Add new "Yx" constraint.
360 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
361 function.
362 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
363 prototype.
364 * config/msp430/msp430.c (msp430_option_override): Allow the lower
365 code/data region to be selected in the small memory model.
366 (msp430_section_attr): Don't warn if the "section" and "lower"
367 attributes are used together.
368 (msp430_handle_generic_attribute): Likewise.
369 (msp430_var_in_low_mem): New function.
370 (TARGET_ENCODE_SECTION_INFO): Define.
371 (msp430_encode_section_info): New function.
372 (gen_prefix): Return early in the small memory model.
373 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
374 ".lower" prefix if -m{code,data}-region=lower have been passed.
375 (msp430_output_aligned_decl_common): Emit common symbols when
376 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
377 set.
378 (TARGET_ASM_FILE_END): Define.
379 (msp430_file_end): New function.
380 (msp430_do_not_relax_short_jumps): Allow relaxation when
381 function will be in the lower region.
382 (msp430_op_not_in_high_mem): New function.
383 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
384 the 'X' operand selector.
385 Clarify comment for 'x' operand selector.
386 * config/msp430/msp430.h (LINK_SPEC): Propagate
387 -m{code,data}-region to the linker via spec function
388 msp430_propagate_region_opt.
389 (msp430_propagate_region_opt): New prototype.
390 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
391 (SYMBOL_FLAG_LOW_MEM): Define.
392 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
393 selector.
394 (zero_extendqihi2): Fix operand number used by "%X" selector.
395 (zero_extendqisi2): Likewise.
396 (zero_extendhisi2): Likewise.
397 (movqi): Use "Yx" constraint in place of "%X" operand selector.
398 (movhi): Likewise.
399 (addqi3): Likewise.
400 (addhi3): Likewise.
401 (addsi3): Likewise.
402 (addhi3_cy): Likewise.
403 (addchi4_cy): Likewise.
404 (subqi3): Likewise.
405 (subhi3): Likewise.
406 (subsi3): Likewise.
407 (bic<mode>3): Likewise.
408 (and<mode>3): Likewise.
409 (ior<mode>3): Likewise.
410 (xor<mode>3): Likewise.
411 (slli_1): Add missing "%X" operand selector.
412 (slll_1): Likewise.
413 (slll_2): Likewise.
414 (srai_1): Likewise.
415 (sral_1): Likewise.
416 (sral_2): Likewise.
417 (srli_1): Likewise.
418 (srll_1): Likewise.
419 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
420 selector.
421 (cbranchhi4_real): Likewise.
422 (cbranchqi4_reversed): Likewise.
423 (cbranchhi4_reversed): Likewise.
424 (*bitbranch<mode>4): Likewise.
425 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
426 * config/msp430/msp430.opt (mcode-region=): Set default to
427 MSP430_REGION_LOWER. Improve docstring.
428 (mdata-region=): Likewise.
429 (muse-lower-region-prefix): New option.
430 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
431 mdata-region=none multilib.
432 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
433 mdata-region=none multilib.
434 MULTILIB_EXCEPTIONS: Remove.
435 MULTILIB_REQUIRED: Define.
436 * configure: Regenerate.
437 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
438 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
439 * doc/extend.texi: Clarify comment for {upper,lower,either}
440 function attributes.
441 Add separate description for "lower" variable attribute.
442
443 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
444
445 PR target/77918
446 * optabs-tree.c (vcond_icode_p): New function.
447 (vcond_eq_icode_p): Likewise.
448 (expand_vec_cond_expr_p): Use vcond_icode_p and
449 vcond_eq_icode_p.
450 * optabs.c (can_vcond_compare_p): New function.
451 * optabs.h (can_vcond_compare_p): Likewise.
452
453 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
454
455 PR target/77918
456 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
457 caller passes a non-trapping condition.
458 (is_gimple_condexpr): Allow trapping conditions.
459 (is_gimple_condexpr_1): New helper function.
460 (is_gimple_condexpr_for_cond): New function, acts like old
461 is_gimple_condexpr.
462 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
463 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
464 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
465 * gimplify.c (gimplify_cond_expr): Use
466 is_gimple_condexpr_for_cond.
467 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
468 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
469 VEC_COND_EXPR.
470 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
471 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
472 is_gimple_condexpr_for_cond, remove pointless tmp check
473 (forward_propagate_into_cond): Remove pointless tmp check.
474
475 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
476
477 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
478 match that of other gsi_next_* functions. Adjust the comment.
479 (gsi_start_nonvirtual_phis): New function.
480 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
481 gsi_next_nonvirtual_phi accordingly. (No functional change.)
482
483 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
484
485 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
486 setjmp situation here. Fix a verb's ending: "the exact variables or
487 elements for which there are warnings depends" -> "... depend".
488
489 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
490
491 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
492
493 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
494
495 * ipa-prop.c (ipa_vr::nonzero_p): New.
496 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
497 non-zero range.
498 * ipa-prop.h (class ipa_vr): Add nonzero_p.
499 * tree-vrp.c (range_has_numeric_bounds_p): New.
500 (range_int_cst_p): Use range_has_numeric_bounds_p.
501 (get_range_op_handler): New.
502 (supported_types_p): New.
503 (defined_ranges_p): New.
504 (drop_undefines_to_varying): New.
505 (range_fold_binary_symbolics_p): New.
506 (range_fold_unary_symbolics_p): New.
507 (range_fold_unary_expr): Extract out into above functions.
508 (range_fold_binary_expr): Same.
509 (value_range_base::normalize_addresses): New.
510 (value_range_base::normalize_symbolics): Normalize addresses.
511 * tree-vrp.h (class value_range_base): Add normalize_addresses.
512
513 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
514
515 * tree-vrp.c (value_range_base::singleton_p): Use
516 value_range_base::num_pairs instead of vrp_val_is* to check
517 if a range has one sub-range.
518
519 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
520
521 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
522 DEF is not a true earlyclobber but is tied to a specific input
523 operand, and so is effectively earlyclobber wrt inputs that have
524 different values.
525 (make_early_clobber_and_input_conflicts): Pass this case to the above.
526
527 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
528
529 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
530 (pod_mode): Mark operators likewise.
531 (scalar_int_mode): Mark non-default constructors and
532 operators with CONSTEXPR.
533 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
534 (fixed_size_mode): Likewise.
535
536 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
537
538 PR target/91994
539 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
540 and wrap the unspec_volatile in a parallel.
541 (*avx_vzeroupper): New define_insn. Use a match_parallel around
542 the unspec_volatile.
543 * config/i386/predicates.md (vzeroupper_pattern): Expect the
544 unspec_volatile to be wrapped in a parallel.
545 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
546 (ix86_add_reg_usage_to_vzerouppers): New functions.
547 (rest_of_handle_insert_vzeroupper): Use them to add register
548 usage information to the vzeroupper instructions.
549
550 2019-10-07 Richard Biener <rguenther@suse.de>
551
552 PR tree-optimization/91975
553 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
554 handle invariants.
555
556 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
557
558 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
559 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
560
561 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
562
563 * config/darwin.c (darwin_override_options): Adjust objective-c
564 ABI version error messages to avoid punctuation and contracted
565 negations.
566
567 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
568
569 * ipa-inline.c: Fix type; compute size rather than self_size
570 for size of caller function.
571
572 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
573
574 PR target/59888
575 * config/darwin.c (darwin_rodata_section): Add relocation flag,
576 choose const_data section for constants with relocations.
577 (machopic_select_section): Pass relocation flag to
578 darwin_rodata_section ().
579
580 2019-10-05 Jakub Jelinek <jakub@redhat.com>
581
582 PR tree-optimization/91734
583 * generic-match-head.c: Include fold-const-call.h.
584 * match.pd (sqrt(x) cmp c): Check the boundary value and
585 in case inexact computation of c*c affects comparison of the boundary,
586 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
587 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
588 for -frounding-math. For c2, try the next smaller or larger floating
589 point constant depending on comparison code and if it has the same
590 sqrt as c2, use it instead of c2.
591
592 2019-10-04 Martin Sebor <msebor@redhat.com>
593
594 PR middle-end/91977
595 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
596 MEM_REF right operand. Avoid failing for MEM_REF assignments from
597 uninitialized objects.
598
599 2019-10-04 Martin Sebor <msebor@redhat.com>
600
601 * builtins.c (compute_objsize): Add an argument.
602 * tree-object-size.c (addr_object_size): Same.
603 (compute_builtin_object_size): Same.
604 * tree-object-size.h (compute_builtin_object): Same.
605
606 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
607
608 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
609
610 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
611
612 * match.pd (sinh (x) / cosh (x)): New simplification rule.
613
614 2019-10-04 Martin Jambor <mjambor@suse.cz>
615
616 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
617 fntype when switching to calling memcpy instead of memset.
618
619 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
620
621 * hash-table.h (hash_table::empty_slow): Don't assign
622 size_t values to int variables.
623
624 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
625
626 * expr.c (convert_mode_scalar): Remove shadowing local var.
627 (emit_block_move): Rename local vars.
628 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
629 (emit_push_insn): Rename local vars.
630 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
631 shadowing local vars.
632 (store_constructor): Remove shadowing local vars. Rename local var.
633 (store_field, expand_cond_expr_using_cmove,
634 expand_expr_real_2): Remove shadowing local vars.
635 (expand_expr_real_1,
636 do_store_flag): Remove shadowing local vars. Rename local vars.
637
638 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
639
640 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
641
642 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
643
644 * genmatch.c (commutate): Rename local var.
645 (lower_cond): Reuse local var.
646 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
647 dt_operand::gen, dt_operand::gen_gimple_expr,
648 dt_simplify::gen): Add a param. Rename generated vars.
649 (decision_tree::insert_operand,
650 (capture_info::walk_match, capture_info::walk_result,
651 capture_info::walk_c_expr): Rename local vars.
652 (expr::gen_transform): Rename generated vars.
653 Use snprintf. Rename local vars.
654 (capture::gen_transform, dt_operand::get_name,
655 dt_operand::gen_opname): Rename generated vars.
656 (write_predicate): Adjust call to gen_kids.
657 (parser::get_internal_capture_id): Rename generated vars.
658 (parser::parse_expr): Rename local vars.
659 (parser::parse_if): Remove local var.
660 (parser::parse_pattern, add_operator): Rename local vars.
661
662 2019-10-04 Joseph Myers <joseph@codesourcery.com>
663
664 * builtins.def (DEF_C2X_BUILTIN): New macro.
665 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
666 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
667 (strndup): Use DEF_C2X_BUILTIN.
668 * coretypes.h (enum function_class): Add function_c2x_misc.
669
670 2019-10-04 Maya Rashish <coypu@sdf.org>
671
672 * ira-color.c (update_costs_from_allocno): Call
673 ira_init_register_move_cost_if_necessary.
674
675 2019-10-04 Jeff Law <law@redhat.com>
676
677 * config/h8300/h8300.md (cpymemsi): Disable.
678 (movmd, movmd_internal_<mode>, movstr, movsd):
679 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
680 (movmd splitter, movsd splitter): Likewise.
681
682 * range-op.cc (range_tests): Avoid two tests when ints and
683 shorts are the same size.
684
685 2019-10-04 Richard Biener <rguenther@suse.de>
686
687 PR lto/91968
688 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
689 BLOCK_VARS.
690
691 2019-10-04 Richard Biener <rguenther@suse.de>
692
693 PR tree-optimization/91982
694 * tree-vect-loop.c (vectorizable_live_operation): Also guard
695 against EXTRACT_LAST_REDUCTION.
696 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
697
698 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
699
700 * range-op.o (value_range_from_overflowed_bounds): Rename from
701 adjust_overflow_bound.
702 (value_range_with_overflow): Rename from
703 create_range_with_overflow.
704 (create_possibly_reversed_range): Adjusted for above renames.
705 (operator_*::wi_fold): Same.
706 (cross_product_operator::wi_cross_productor): Same.
707
708 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
709
710 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
711 -Wshadow=compatible-local): Fix description.
712 Add an example where -Wshadow=compatible-local does not
713 warn.
714
715 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
716
717 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
718
719 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
720 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
721
722 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
723
724 * expr.c (emit_block_move_hints): Slightly cleaner fix to
725 can_move_by_pieces issue.
726
727 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
728
729 PR target/87243
730 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
731 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
732 is available and the user has not set one on the command line.
733
734 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
735
736 PR target/91769
737 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
738 instead of REGNO equality check on addr.reg.
739
740 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
741
742 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
743 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
744 * doc/invoke.texi (inline-heuristics-hint-percent,
745 inline-heuristics-hint-percent-O2): Document.
746 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
747 hint attribute.
748 (can_inline_edge_by_limits_p): Use it.
749
750 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
751
752 * config/arm/arm.c (arm_print_value): Use real_to_decimal
753 to print CONST_DOUBLEs.
754
755 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
756
757 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
758 * ipa-prop.c (ipcp_free_transformation_sum): New function.
759 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
760
761 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
762
763 * Makefile.in (OBJS): Add range.o and range-op.o.
764 Remove wide-int-range.o.
765 * function-tests.c (test_ranges): New.
766 (function_tests_c_tests): Call test_ranges.
767 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
768 range_fold_unary_expr instead of extract_range_from_unary_expr.
769 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
770 * range-op.cc: New file.
771 * range-op.h: New file.
772 * range.cc: New file.
773 * range.h: New file.
774 * selftest.h (range_tests): New prototype.
775 * ssa.h: Include range.h.
776 * tree-vrp.c (value_range_base::value_range_base): New
777 constructors.
778 (value_range_base::singleton_p): Do not call
779 ranges_from_anti_range until sure we will need to.
780 (value_range_base::type): Rename gcc_assert to
781 gcc_checking_assert.
782 (vrp_val_is_max): New argument.
783 (vrp_val_is_min): Same.
784 (wide_int_range_set_zero_nonzero_bits): Move from
785 wide-int-range.cc.
786 (extract_range_into_wide_ints): Remove.
787 (extract_range_from_multiplicative_op): Remove.
788 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
789 from extract_range_from_binary_expr.
790 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
791 from extract_range_from_binary_expr.
792 (extract_range_from_binary_expr): Remove.
793 (normalize_for_range_ops): New.
794 (range_fold_binary_expr): New.
795 (range_fold_unary_expr): New.
796 (value_range_base::num_pairs): New.
797 (value_range_base::lower_bound): New.
798 (value_range_base::upper_bound): New.
799 (value_range_base::upper_bound): New.
800 (value_range_base::contains_p): New.
801 (value_range_base::invert): New.
802 (value_range_base::union_): New.
803 (value_range_base::intersect): New.
804 (range_compatible_p): New.
805 (value_range_base::operator==): New.
806 (determine_value_range_1): Call range_fold_*expr instead of
807 extract_range_from_*expr.
808 * tree-vrp.h (class value_range_base): Add new constructors.
809 Add methods for union_, intersect, operator==, contains_p,
810 num_pairs, lower_bound, upper_bound, invert.
811 (vrp_val_is_min): Add handle_pointers argument.
812 (vrp_val_is_max): Same.
813 (extract_range_from_unary_expr): Remove.
814 (extract_range_from_binary_expr): Remove.
815 (range_fold_unary_expr): New.
816 (range_fold_binary_expr): New.
817 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
818 range_fold_binary_expr instead of extract_range_from_binary_expr.
819 (vr_values::extract_range_basic): Same.
820 (vr_values::extract_range_from_unary_expr): Call
821 range_fold_unary_expr instead of extract_range_from_unary_expr.
822 * wide-int-range.cc: Remove.
823 * wide-int-range.h: Remove.
824
825 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
826
827 * config/rs6000/rs6000.c (mem_operand_gpr): Use
828 SIGNED_16BIT_OFFSET_EXTRA_P macro.
829 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
830 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
831 macro.
832
833 2019-10-02 Joseph Myers <joseph@codesourcery.com>
834
835 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
836 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
837 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
838 * glimits.h: Likewise.
839
840 2019-10-03 Jakub Jelinek <jakub@redhat.com>
841
842 PR rtl-optimization/91976
843 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
844 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
845 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
846
847 2019-10-02 Martin Sebor <msebor@redhat.com>
848
849 PR tree-optimization/80936
850 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
851
852 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
853
854 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
855 instead of reg_class_contents[ALL_REGS].
856
857 2019-09-30 Jason Merrill <jason@redhat.com>
858
859 Add some hash_map_safe_* functions like vec_safe_*.
860 * hash-map.h (default_hash_map_size): New variable.
861 (create_ggc): Use it as default argument.
862 (hash_map_maybe_create, hash_map_safe_get)
863 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
864
865 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
866
867 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
868 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
869 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
870 (can_inline_edge_by_limits_p): Use it.
871 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
872 (want_inline_small_function_p): Use O2 bounds.
873 (edge_badness): LIkewise.
874 * opts.c (default_options): Add OPT_finline_functions.
875 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
876 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
877 New parameters.
878 * doc/invoke.texi (-finline-functions): Update documentation.
879 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
880 inline-min-speedup-O2): Document.
881 (early-inlining-insns-O2): Simplify docs.
882
883 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
884
885 PR rtl-optimization/87047
886 * ifcvt.c (average_cost): New static function. Use it...
887 (noce_process_if_block): ... here.
888
889 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
890
891 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
892 * config/rs6000/rs6000-string.c (expand_block_move): Add
893 might_overlap parm.
894 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
895 (cpymemsi): Add might_overlap parm to expand_block_move() call.
896
897 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
898
899 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
900 (expand_builtin_memcpy): Use might_overlap parm.
901 (expand_builtin_mempcpy_args): Use might_overlap parm.
902 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
903 (expand_builtin_memory_copy_args): Add might_overlap parm.
904 * expr.c (emit_block_move_via_cpymem): Rename to
905 emit_block_move_via_pattern, add might_overlap parm, use cpymem
906 or movmem optab as appropriate.
907 (emit_block_move_hints): Add might_overlap parm, do the right
908 thing for might_overlap==true.
909 * expr.h (emit_block_move_hints): Update prototype.
910
911 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
912
913 * tree-eh.h (unsplit_eh_edges): Declare.
914 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
915 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
916 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
917 (struct store_immediate_info): Add lp_nr field.
918 (store_immediate_info::store_immediate_info): Add NR2 parameter and
919 initialize lp_nr with it.
920 (struct merged_store_group): Add lp_nr and only_constants fields.
921 (merged_store_group::merged_store_group): Initialize them.
922 (merged_store_group::can_be_merged_into): Deal with them.
923 (pass_store_merging): Rename terminate_and_release_chain into
924 terminate_and_process_chain.
925 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
926 renaming and remove useless assertions.
927 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
928 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
929 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
930 instead of always recomputing it and compare lp_nr.
931 (imm_store_chain_info::output_merged_store): If the group is in an
932 active EH region, register new stores if they can throw. Moreover,
933 if the insertion has created new basic blocks, adjust the PHI nodes
934 of the post landing pad.
935 (imm_store_chain_info::output_merged_stores): If the original stores
936 are in an active EH region, deregister them.
937 (lhs_valid_for_store_merging_p): Prettify.
938 (adjust_bit_pos): New function extracted from...
939 (mem_valid_for_store_merging): ...here. Use it for the base address
940 and also for the offset if it is the addition of a constant.
941 (lp_nr_for_store): New function.
942 (pass_store_merging::process_store): Change return type to bool.
943 Call lp_nr_for_store to initialize the store info. Propagate the
944 return status of various called functions to the return value.
945 (store_valid_for_store_merging_p): New predicate.
946 (enum basic_block_status): New enumeration.
947 (get_status_for_store_merging): New function.
948 (pass_store_merging::execute): If the function can throw and catch
949 non-call exceptions, unsplit the EH edges on entry and clean up the
950 CFG on exit if something changed. Call get_status_for_store_merging
951 for every basic block and keep the chains open across basic blocks
952 when possible. Terminate and process open chains at the end, if any.
953
954 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
955
956 * reginfo.c (globalize_reg): Fix shadowed variable in
957 function_abis walk.
958
959 2019-10-02 Martin Jambor <mjambor@suse.cz>
960
961 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
962 do not compute some stuff when set.
963 (cgraph_node::create_edge): Likewise.
964 (cgraph_node::create_indirect_edge): Renamed last parameter to
965 coning_p and flipped its meaning, don't even calculate
966 inline_failed when set.
967 * cgraph.h (cgraph_node::create_edge): Add new parameter.
968 (symbol_table::::create_edge): Likewise.
969 (cgraph_node::create_indirect_edge): Rename last parameter, flip
970 the default value.
971 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
972 call graph edge creating functions.
973
974 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
975
976 PR c++/91222
977 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
978 namespace types.
979
980 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
981
982 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
983
984 2019-10-02 Richard Biener <rguenther@suse.de>
985
986 * tree-vectorizer.h (vect_transform_reduction): Declare.
987 * tree-vect-stmts.c (vect_transform_stmt): Use it.
988 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
989 stmt transform to ...
990 (vect_transform_reduction): ... this.
991
992 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
993
994 * omp-low.c (lower_omp_target): Dereference optional argument
995 to work with the right pointer.
996
997 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
998
999 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1000 false.
1001 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1002 * langhooks.h (omp_is_optional_argument): New hook.
1003 * omp-general.c (omp_is_optional_argument): New.
1004 * omp-general.h (omp_is_optional_argument): New declaration.
1005 * omp-low.c (lower_omp_target): Create temporary for received value
1006 and take the address for new_var if the original variable was a
1007 DECL_BY_REFERENCE. Use size of referenced object when a
1008 pass-by-reference optional argument used as argument to firstprivate.
1009
1010 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1011
1012 PR tree-optimization/91940
1013 * tree-vect-patterns.c: Include tree-vector-builder.h and
1014 vec-perm-indices.h.
1015 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1016 unpromoting the argument back to uint16_t, or by converting into a
1017 rotate, or into shifts plus ior.
1018
1019 2019-10-02 Richard Biener <rguenther@suse.de>
1020
1021 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1022 New.
1023 (vect_transform_cycle_phi): Declare.
1024 * tree-vect-stmts.c (vect_transform_stmt): Call
1025 vect_transform_cycle_phi.
1026 * tree-vect-loop.c (vectorizable_reduction): Split out
1027 PHI transformation stage to ...
1028 (vect_transform_cycle_phi): ... here.
1029
1030 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1031
1032 PR middle-end/91957
1033 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1034 eliminable registers.
1035 (make_hard_regno_live): Likewise, and don't make them live.
1036
1037 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1038
1039 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1040 Call pp_emit_prefix.
1041 (layout::print_source_line): Likewise.
1042 (layout::start_annotation_line): Likewise.
1043 (diagnostic_show_locus): Remove call to temporarily clear the
1044 prefix.
1045 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1046 interaction of pp_set_prefix with rulers and fix-it hints.
1047 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1048 prefix when calling diagnostic_show_locus, rather than destroying
1049 it afterwards.
1050 (print_parseable_fixits): Temporarily clear prefix.
1051 * pretty-print.c (pp_format): Save and restore line_length, rather
1052 than assuming it is zero.
1053 (pp_output_formatted_text): Remove assertion that line_length is
1054 zero.
1055
1056 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1057
1058 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1059 Rename to ...
1060 (nonoverlapping_refs_since_match_p): ... this; handle also
1061 ARRAY_REFs.
1062 (alias_stats): Update stats.
1063 (dump_alias_stats): Likewise.
1064 (cheap_array_ref_low_bound): New function.
1065 (aliasing_matching_component_refs_p): Add partial_overlap
1066 argument;
1067 pass it to nonoverlapping_refs_since_match_p.
1068 (aliasing_component_refs_walk): Update call of
1069 aliasing_matching_component_refs_p
1070 (nonoverlapping_array_refs_p): New function.
1071 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1072 indirect_refs_may_alias_p): Update calls of
1073 nonoverlapping_refs_since_match_p.
1074
1075 2019-10-01 Maya Rashish <coypu@sdf.org>
1076
1077 PR target/85401
1078 * ira-color.c (allocno_copy_cost_saving): Call
1079 ira_init_register_move_cost_if_necessary.
1080
1081 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1082
1083 * Makefile.in (gnat_install_lib): New variable.
1084 * configure.ac: Substitute it.
1085 * configure: Regenerate.
1086
1087 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1088
1089 PR lto/91222
1090 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1091 is matched with non-C++ type
1092
1093 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1094
1095 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1096 after local CSE.
1097
1098 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1099
1100 * doc/invoke.texi (early-inlining-insns-O2): Document.
1101 (early-inlining-insns): Update.
1102 * params.def (early-inlining-insns-O2): New bound.
1103 (early-inlining-insns): Update docs.
1104 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1105
1106 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1107
1108 PR target/88562
1109 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1110 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1111 a memory access insn.
1112
1113 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1114
1115 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1116 vpmsumd.
1117
1118 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1119
1120 PR target/77918
1121 * config/s390/s390.c (s390_expand_vec_compare): Use
1122 gen_vec_cmpordered and gen_vec_cmpunordered.
1123 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1124 vec_unordered): Delete.
1125 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1126 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1127 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1128 (vec_cmp<code>): Generic dispatcher.
1129
1130 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1131
1132 PR target/77918
1133 * config/s390/vector.md (V_HW): Add V1TI in order to make
1134 vcond$a$b generate vcondv1tiv1tf.
1135
1136 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1137
1138 PR rtl-optimization/91948
1139 * ira-build.c (ira_create_allocno): Initialize
1140 ALLOCNO_CROSSED_CALLS_ABIS.
1141 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1142 than regno to ira_need_caller_save_p.
1143
1144 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1145
1146 * config/i386/i386-options.c
1147 (ix86_recompute_optlev_based_flags): New, moved out of...
1148 (ix86_option_override_internal): ... this. Call it.
1149 (ix86_override_options_after_change): Call it here too.
1150
1151 PR debug/91507
1152 * dwarf2out.c (override_type_for_decl_p): New.
1153 (gen_variable_die): Use it.
1154
1155 2019-10-01 Richard Biener <rguenther@suse.de>
1156
1157 * tree-vect-loop.c (vectorizable_reduction): Move variables
1158 to where they are used.
1159
1160 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1161
1162 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1163 (build_def_use): Use PC instead of CC0 in a comment.
1164
1165 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1166
1167 * rtl.def (CLOBBER_HIGH): Delete.
1168 * doc/rtl.texi (clobber_high): Remove documentation.
1169 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1170 (reg_is_clobbered_by_clobber_high): Delete.
1171 (gen_hard_reg_clobber_high): Likewise.
1172 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1173 * cfgexpand.c (expand_gimple_stmt): Likewise.
1174 * combine-stack-adj.c (single_set_for_csa): Likewise.
1175 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1176 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1177 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1178 * cse.c (invalidate_reg): Remove clobber_high parameter.
1179 (invalidate): Update call accordingly.
1180 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1181 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1182 (count_reg_usage, insn_live_p): Likewise.
1183 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1184 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1185 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1186 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1187 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1188 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1189 (mark_nonreg_stores_2): Likewise.
1190 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1191 (df_get_call_refs): Likewise.
1192 * dwarf2out.c (mem_loc_descriptor): Likewise.
1193 * emit-rtl.c (verify_rtx_sharing): Likewise.
1194 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1195 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1196 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1197 * genemit.c (gen_exp, gen_insn): Likewise.
1198 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1199 * haifa-sched.c (haifa_classify_rtx): Likewise.
1200 * ira-build.c (create_insn_allocnos): Likewise.
1201 * ira-costs.c (scan_one_insn): Likewise.
1202 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1203 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1204 * jump.c (mark_jump_label_1): Likewise.
1205 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1206 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1207 handling.
1208 (mark_not_eliminable): Likewise.
1209 * lra-lives.c (process_bb_lives): Likewise.
1210 * lra.c (new_insn_reg): Remove clobber_high parameter.
1211 (collect_non_operand_hard_regs): Likewise. Update call to new
1212 insn_reg. Remove CLOBBER_HIGH handling.
1213 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1214 to collect_non_operand_hard_regs.
1215 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1216 Update call to new_insn_reg.
1217 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1218 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1219 (move2add_note_store): Likewise.
1220 * print-rtl.c (print_pattern): Likewise.
1221 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1222 (if_test_bypass_p): Likewise.
1223 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1224 * reginfo.c (reg_scan_mark_refs): Likewise.
1225 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1226 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1227 (forget_old_reloads_1): Likewise.
1228 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1229 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1230 (dbr_schedule): Likewise.
1231 * resource.c (update_live_status, mark_referenced_resources)
1232 (mark_set_resources): Likewise.
1233 * rtl.c (copy_rtx): Likewise.
1234 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1235 (note_pattern_stores): Likewise.
1236 (reg_is_clobbered_by_clobber_high): Delete.
1237 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1238 CLOBBER_HIGH handling.
1239
1240 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1241
1242 PR target/91452
1243 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1244 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1245 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1246 Handle ARM_PCS_TLSDESC.
1247 (aarch64_tlsdesc_abi_id): New function.
1248 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1249 rtx instead of a list of clobbers and clobber_highs.
1250 (tlsdesc_small_<mode>): Update accordingly.
1251
1252 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1253
1254 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1255 extra callee_abi argument.
1256 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1257 Insert a CALLEE_ABI unspec into the call pattern as the second
1258 element in the PARALLEL.
1259 (aarch64_simd_call_p): Delete.
1260 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1261 the new CALLEE_ABI element of the PARALLEL.
1262 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1263 from the function type, if given.
1264 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1265 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1266 when passed the function_arg_info end marker.
1267 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1268 final argument of gen_sibcall.
1269 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1270 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1271 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1272 pattern.
1273 (call_value): Likewise operand 3.
1274 (sibcall): Likewise operand 2. Place the unspec before rather than
1275 after the return.
1276 (sibcall_value): Likewise operand 3.
1277 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1278 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1279 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1280 constraint strings.
1281 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1282
1283 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1284
1285 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1286 choose_hard_reg_mode.
1287 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1288
1289 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1290
1291 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1292 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1293 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1294
1295 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1296
1297 * diagnostic-show-locus.c (line_label::line_label): Initialize
1298 m_has_vbar.
1299 (line_label::comparator): Reverse the sort order by m_state_idx,
1300 so that when the list is walked backwards the labels appear in
1301 order of insertion into the rich_location.
1302 (line_label::m_has_vbar): New field.
1303 (layout::print_any_labels): When dealing with multiple labels at
1304 the same line and column, only print vertical bars for the one
1305 with the highest label_line.
1306 (selftest::test_one_liner_labels): Update test for multiple labels
1307 to expect the labels to be in the order of insertion into the
1308 rich_location. Add a test for many such labels, where the column
1309 numbers are out-of-order relative to the insertion order.
1310
1311 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1312
1313 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1314 (ix86_frame::expensive_count): Likewise.
1315 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1316 of use_fast_prologue_epilogue robust against incidental changes
1317 in function size.
1318
1319 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1320
1321 PR target/77918
1322 * config/s390/vector.md (vec_unordered<mode>): Call
1323 gen_vec_ordered<mode>.
1324
1325 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1326
1327 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1328 New pattern for ASRD.
1329 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1330 * internal-fn.def (IFN_DIV_POW2): New internal function.
1331 * optabs.def (sdiv_pow2_optab): New optab.
1332 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1333 Modify pattern to support new operation.
1334 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1335 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1336 Document new target selector.
1337
1338 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1339
1340 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1341 to test whether we're compiling a vector PCS function and to test
1342 whether the function needs to save a particular register.
1343 Remove the vector PCS handling of df_set_regs_ever_live.
1344 (aarch64_components_for_bb): Use crtl->abi to test whether
1345 the function needs to save a particular register.
1346 (aarch64_process_components): Use crtl->abi to test whether
1347 we're compiling a vector PCS function.
1348 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1349 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1350
1351 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1352
1353 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1354 Delete.
1355 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1356 whether the block calls a function that clobbers more registers
1357 than the current function is allowed to.
1358 (aarch64_use_simple_return_insn_p): Delete.
1359 * config/aarch64/aarch64.md (simple_return): Remove condition.
1360
1361 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1362
1363 * function-abi.h (function_abi_aggregator): New class.
1364 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1365 function.
1366 * ira.c (update_equiv_regs_prescan): New function. Call
1367 set_paradoxical_subreg here rather than...
1368 (update_equiv_regs): ...here.
1369 (ira): Call update_equiv_regs_prescan.
1370
1371 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1372
1373 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1374 IN_TARGET_CODE.
1375 (call_used_or_fixed_regs): Likewise.
1376 (call_used_or_fixed_reg_p): Likewise.
1377 * reginfo.c (regs_invalidated_by_call): New macro.
1378
1379 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1380
1381 * shrink-wrap.c: Include function-abi.h.
1382 (requires_stack_frame_p): Use crtl->abi to test whether the
1383 current function can use a register without saving it first.
1384
1385 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1386
1387 * sel-sched-ir.h (_def::crosses_call): Replace with...
1388 (_def::crossed_call_abis): ..this new field.
1389 (def_list_add): Take a mask of ABIs instead of a crosses_call
1390 boolean.
1391 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1392 of _def accordingly.
1393 * sel-sched.c: Include function-abi.h.
1394 (hard_regs_data::regs_for_call_clobbered): Delete.
1395 (reg_rename::crosses_call): Replace with...
1396 (reg_rename::crossed_call_abis): ...this new field.
1397 (fur_static_params::crosses_call): Replace with...
1398 (fur_static_params::crossed_call_abis): ...this new field.
1399 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1400 (init_hard_regs_data): Use crtl->abi to test which registers the
1401 current function would need to save before it uses them.
1402 (mark_unavailable_hard_regs): Update handling of call-clobbered
1403 registers, using call_clobbers_in_region to find out which registers
1404 might be call-clobbered (but without taking -fipa-ra into account
1405 for now). Remove separate handling of partially call-clobbered
1406 registers.
1407 (verify_target_availability): Use crossed_call_abis instead of
1408 crosses_call.
1409 (get_spec_check_type_for_insn, find_used_regs): Likewise.
1410 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1411
1412 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1413
1414 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1415 function to test whether a register is fully or partly clobbered.
1416
1417 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1418
1419 * rtlanal.c: Include function-abi.h.
1420 (reg_set_p): Use insn_callee_abi to get the ABI of the called
1421 function and clobbers_reg_p to test whether the register
1422 is call-clobbered.
1423 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
1424 to get the ABI of the called function and full_reg_clobbers to
1425 get the set of fully call-clobbered registers. Warn about the
1426 pitfalls of using this mode.
1427
1428 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1429
1430 * reload.c: Include function-abi.h.
1431 (find_equiv_reg): Use clobbers_reg_p to test whether either
1432 of the equivalent registers is clobbered by a call.
1433 * reload1.c: Include function-abi.h.
1434 (reg_reloaded_call_part_clobbered): Delete.
1435 (reload): Use crtl->abi to test which registers would need
1436 saving in the prologue before use.
1437 (find_reg): Likewise.
1438 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
1439 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
1440 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
1441
1442 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1443
1444 * regrename.h (du_head::call_clobber_mask): New field.
1445 (du_head::need_caller_save_reg): Replace with...
1446 (du_head::call_abis): ...this new field.
1447 * regrename.c: Include function-abi.h.
1448 (call_clobbered_in_chain_p): New function.
1449 (check_new_reg_p): Use crtl->abi when deciding whether a register
1450 is free for use after RA. Use call_clobbered_in_chain_p to test
1451 whether a candidate register would be clobbered by a call.
1452 (find_rename_reg): Don't add call-clobber conflicts here.
1453 (rename_chains): Check call_abis instead of need_caller_save_reg.
1454 (merge_chains): Update for changes to du_head.
1455 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
1456 target. Record the ABI identifier in call_abis and the set of
1457 fully or partially clobbered registers in call_clobber_mask.
1458 Add fully-clobbered registers to hard_conflicts here rather
1459 than in find_rename_reg.
1460 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
1461 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
1462 * config/aarch64/falkor-tag-collision-avoidance.c: Include
1463 function-abi.h.
1464 * config/c6x/c6x.c: Likewise.
1465
1466 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1467
1468 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
1469 mode of the register when deciding whether it is no longer
1470 available after a call.
1471
1472 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1473
1474 * recog.c: Include function-abi.h.
1475 (peep2_find_free_register): Use crtl->abi when deciding whether
1476 a register is free for use after RA.
1477
1478 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1479
1480 * postreload-gcse.c: Include regs.h and function-abi.h.
1481 (record_opr_changes): Use insn_callee_abi to get the ABI of the
1482 call insn target. Conservatively assume that partially-clobbered
1483 registers are altered.
1484
1485 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1486
1487 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
1488 when deciding whether a register is free for use after RA.
1489 (reload_combine): Remove unnecessary use of fixed_reg_set.
1490 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
1491 call insn target. Use reg_mode when testing whether a register
1492 is no longer available.
1493
1494 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1495
1496 * target.def (return_call_with_max_clobbers): Delete.
1497 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1498 * doc/tm.texi: Regenerate.
1499 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
1500 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1501 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
1502 (lra_reg::call_insn): Delete.
1503 * lra.c: Include function-abi.h.
1504 (initialize_lra_reg_info_element): Don't initialize the fields above.
1505 (lra): Use crtl->abi to test whether the current function needs to
1506 save a register in the prologue. Remove special pre-inheritance
1507 lra_create_live_ranges pass for flag_ipa_ra.
1508 * lra-assigns.c: Include function-abi.h
1509 (find_hard_regno_for_1): Use crtl->abi to test whether the current
1510 function needs to save a register in the prologue.
1511 (lra_assign): Assert that registers aren't allocated to a
1512 conflicting register, rather than checking only for overlaps
1513 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
1514 and for registers that are not live across a call.
1515 * lra-constraints.c (last_call_for_abi): New variable.
1516 (full_and_partial_call_clobbers): Likewise.
1517 (setup_next_usage_insn): Remove the register from
1518 full_and_partial_call_clobbers.
1519 (need_for_call_save_p): Use call_clobbered_in_region_p to test
1520 whether the register needs a caller save.
1521 (need_for_split_p): Use full_and_partial_reg_clobbers instead
1522 of call_used_or_fixed_regs.
1523 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
1524 full_and_partial_call_clobbers.
1525 * lra-lives.c (check_pseudos_live_through_calls): Replace
1526 last_call_used_reg_set and call_insn arguments with an abi argument.
1527 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
1528 as the set of conflicting registers.
1529 (calls_have_same_clobbers_p): Delete.
1530 (process_bb_lives): Track the ABI of the last call instead of an
1531 insn/HARD_REG_SET pair. Update calls to
1532 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
1533 the set of registers that could be clobbered by an EH edge.
1534 Include partially-clobbered as well as fully-clobbered registers.
1535 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
1536 * lra-remat.c: Include function-abi.h.
1537 (call_used_regs_arr_len, call_used_regs_arr): Delete.
1538 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
1539 registers and bitmap_view to combine them into dead_regs.
1540 (call_used_input_regno_present_p): Take a function_abi argument
1541 and use it to test whether a register is call-clobbered.
1542 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
1543 call insn target. Update tje call to call_used_input_regno_present_p.
1544 (do_remat): Likewise.
1545 (lra_remat): Remove the initialization of call_used_regs_arr_len
1546 and call_used_regs_arr.
1547
1548 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1549
1550 * loop-iv.c: Include regs.h and function-abi.h.
1551 (simplify_using_initial_values): Use insn_callee_abi to get the
1552 ABI of the call insn target. Conservatively assume that
1553 partially-clobbered registers are altered.
1554
1555 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1556
1557 * function-abi.h (call_clobbers_in_region): Declare.
1558 (call_clobbered_in_region_p): New function.
1559 * function-abi.cc (call_clobbers_in_region): Likewise.
1560 * ira-int.h: Include function-abi.h.
1561 (ira_allocno::crossed_calls_abis): New field.
1562 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
1563 (ira_need_caller_save_regs): New function.
1564 (ira_need_caller_save_p): Likewise.
1565 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
1566 of call_used_or_fixed_regs.
1567 (do_reload): Use crtl->abi to test whether the current function
1568 needs to save a register in the prologue. Count registers that
1569 need to be saved rather than registers that don't.
1570 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
1571 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1572 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
1573 (propagate_some_info_from_allocno): Likewise.
1574 (copy_info_to_removed_store_destinations): Likewise.
1575 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
1576 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
1577 (ira_build): Use ira_need_caller_save_regs instead of
1578 call_used_or_fixed_regs.
1579 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
1580 whether the current function would need to save a register
1581 before using it.
1582 (calculate_spill_cost): Likewise.
1583 (allocno_reload_assign): Use ira_need_caller_save_regs and
1584 ira_need_caller_save_p instead of call_used_or_fixed_regs.
1585 * ira-conflicts.c (ira_build_conflicts): Use
1586 ira_need_caller_save_regs rather than call_used_or_fixed_regs
1587 as the set of call-clobbered registers. Remove the
1588 call_used_or_fixed_regs mask from the calculation of
1589 temp_hard_reg_set and mask its use instead. Remove special
1590 handling of partially-clobbered registers.
1591 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
1592 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
1593 calculate the set of conflicting registers for calls that
1594 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
1595 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
1596 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1597 Use eh_edge_abi to calculate the set of registers that could
1598 be clobbered by an EH edge. Include partially-clobbered as
1599 well as fully-clobbered registers.
1600
1601 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1602
1603 * haifa-sched.c: Include function-abi.h.
1604 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
1605 the function would need to save a register before using it.
1606
1607 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1608
1609 * gcse.c: Include function-abi.h.
1610 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
1611 the call insn target. Invalidate partially call-clobbered
1612 registers as well as fully call-clobbered ones.
1613
1614 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1615
1616 * function.c (aggregate_value_p): Work out which ABI the
1617 function is using before testing which registers are at least
1618 partly preserved by a call.
1619
1620 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1621
1622 * early-remat.c: Include regs.h and function-abi.h.
1623 (early_remat::maybe_add_candidate): Don't check for call-clobbered
1624 registers here.
1625 (early_remat::restrict_remat_for_unavail_regs): New function.
1626 (early_remat::restrict_remat_for_call): Likewise.
1627 (early_remat::process_block): Before calling emit_remat_insns
1628 for a previous call in the block, invalidate any candidates
1629 that would clobber call-preserved registers.
1630 (early_remat::emit_remat_insns_for_block): Likewise for the
1631 final call in a block. Do the same thing for live-in registers
1632 when calling emit_remat_insns at the head of a block.
1633
1634 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1635
1636 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
1637 whether the current function needs to save at least part of a
1638 register before using it.
1639 (df_get_exit_block_use_set): Likewise for epilogue restores.
1640
1641 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1642
1643 * df-problems.c: Include regs.h and function-abi.h.
1644 (df_rd_problem_data): Rename sparse_invalidated_by_call to
1645 sparse_invalidated_by_eh and dense_invalidated_by_call to
1646 dense_invalidated_by_eh.
1647 (df_print_bb_index): Update accordingly.
1648 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
1649 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
1650 that are clobbered by an EH edge. Clobber partially-clobbered
1651 registers as well as fully-clobbered ones.
1652 (df_md_confluence_n): Likewise.
1653 (df_rd_local_compute): Likewise. Update for changes to
1654 df_rd_problem_data.
1655 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
1656 of registers that are clobbered by an EH edge. Includde partially-
1657 clobbered registers as well as fully-clobbered ones.
1658
1659 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1660
1661 * cselib.c (cselib_process_insn): If we know what mode a
1662 register was set in, check whether it is clobbered in that
1663 mode by a call. Only fall back to reg_raw_mode if that fails.
1664
1665 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1666
1667 * cse.c: Include regs.h and function-abi.h.
1668 (invalidate_for_call): Take the call insn as an argument.
1669 Use insn_callee_abi to get the ABI of the call and invalidate
1670 partially clobbered registers as well as fully clobbered ones.
1671 (cse_insn): Update call accordingly.
1672
1673 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1674
1675 * combine.c: Include function-abi.h.
1676 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
1677 of the target of call insns. Invalidate partially-clobbered
1678 registers as well as fully-clobbered ones.
1679
1680 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1681
1682 * cfgloopanal.c: Include regs.h and function-abi.h.
1683 (init_set_costs): Use default_function_abi to test whether
1684 a general register is call-clobbered.
1685
1686 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1687
1688 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
1689 instead of the call-clobbered sets.
1690
1691 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1692
1693 * caller-save.c (setup_save_areas): Remove redundant |s of
1694 fixed_reg_set.
1695 (save_call_clobbered_regs): Likewise. Use the call ABI rather
1696 than call_used_or_fixed_regs to decide whether a REG_RETURNED
1697 value is useful.
1698
1699 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1700
1701 * rtl.h (predefined_function_abi): Declare.
1702 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
1703 instead of a boolean call_save flag.
1704 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
1705 accordingly.
1706 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1707 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1708 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
1709 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1710 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1711 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
1712 * reginfo.c (init_reg_modes_target): Likewise.
1713 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
1714 instead of a boolean call_save flag.
1715 * targhooks.c: Include function-abi.h.
1716 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
1717 using eh_edge_abi to choose the mode.
1718
1719 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1720
1721 * target.def (hard_regno_call_part_clobbered): Take an ABI
1722 identifier instead of an rtx_insn.
1723 * doc/tm.texi: Regenerate.
1724 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
1725 (hook_bool_uint_uint_mode_false): New function.
1726 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
1727 (hook_bool_uint_uint_mode_false): New function.
1728 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1729 Take an ABI identifier instead of an rtx_insn.
1730 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
1731 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
1732 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
1733 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
1734 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
1735 Likewise.
1736 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
1737 * cselib.c: Include function-abi.h.
1738 (cselib_process_insn): Update call to
1739 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
1740 to get the appropriate ABI identifier.
1741 * function-abi.cc (predefined_function_abi::initialize): Update call
1742 to targetm.hard_regno_call_part_clobbered.
1743 * ira-conflicts.c (ira_build_conflicts): Likewise.
1744 * ira-costs.c (ira_tune_allocno_costs): Likewise.
1745 * lra-constraints.c: Include function-abi.h.
1746 (need_for_call_save_p): Update call to
1747 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
1748 to get the appropriate ABI identifier.
1749 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
1750 * regcprop.c (copyprop_hardreg_forward_1): Update call
1751 to targetm.hard_regno_call_part_clobbered.
1752 * reginfo.c (choose_hard_reg_mode): Likewise.
1753 * regrename.c (check_new_reg_p): Likewise.
1754 * reload.c (find_equiv_reg): Likewise.
1755 * reload1.c (emit_reload_insns): Likewise.
1756 * sched-deps.c: Include function-abi.h.
1757 (deps_analyze_insn): Update call to
1758 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
1759 to get the appropriate ABI identifier.
1760 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
1761 call to targetm.hard_regno_call_part_clobbered.
1762 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
1763
1764 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1765
1766 * config/i386/i386.c: Include function-abi.h.
1767 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
1768 if they preserve some 256-bit or 512-bit SSE registers.
1769
1770 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1771
1772 * target.def (insn_callee_abi): New hook.
1773 (remove_extra_call_preserved_regs): Delete.
1774 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
1775 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
1776 * doc/tm.texi: Regenerate.
1777 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
1778 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
1779 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
1780 insn argument.
1781 (aarch64_remove_extra_call_preserved_regs): Delete.
1782 (aarch64_insn_callee_abi): New function.
1783 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
1784 (TARGET_INSN_CALLEE_ABI): New macro.
1785 * rtl.h (get_call_fndecl): Declare.
1786 (cgraph_rtl_info): Fix formatting. Tweak comment for
1787 function_used_regs. Remove function_used_regs_valid.
1788 * rtlanal.c (get_call_fndecl): Moved from final.c
1789 * function-abi.h (insn_callee_abi): Declare.
1790 (target_function_abi_info): Mention insn_callee_abi.
1791 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
1792 way to get_call_reg_set_usage did.
1793 (insn_callee_abi): New function.
1794 * regs.h (get_call_reg_set_usage): Delete.
1795 * final.c: Include function-abi.h.
1796 (collect_fn_hard_reg_usage): Add fixed and stack registers to
1797 function_used_regs before the main loop rather than afterwards.
1798 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
1799 if function_used_regs ends up not being useful.
1800 (get_call_fndecl): Move to rtlanal.c
1801 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
1802 * caller-save.c: Include function-abi.h.
1803 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
1804 instead of get_call_reg_set_usage.
1805 * cfgcleanup.c: Include function-abi.h.
1806 (old_insns_match_p): Use insn_callee_abi instead of
1807 get_call_reg_set_usage.
1808 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
1809 a tree.
1810 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
1811 function_used_regs.
1812 * df-scan.c: Include function-abi.h.
1813 (df_get_call_refs): Use insn_callee_abi instead of
1814 get_call_reg_set_usage.
1815 * ira-lives.c: Include function-abi.h.
1816 (process_bb_node_lives): Use insn_callee_abi instead of
1817 get_call_reg_set_usage.
1818 * lra-lives.c: Include function-abi.h.
1819 (process_bb_lives): Use insn_callee_abi instead of
1820 get_call_reg_set_usage.
1821 * postreload.c: Include function-abi.h.
1822 (reload_combine): Use insn_callee_abi instead of
1823 get_call_reg_set_usage.
1824 * regcprop.c: Include function-abi.h.
1825 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
1826 get_call_reg_set_usage.
1827 * resource.c: Include function-abi.h.
1828 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
1829 instead of get_call_reg_set_usage.
1830 * var-tracking.c: Include function-abi.h.
1831 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
1832 get_call_reg_set_usage.
1833
1834 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1835
1836 * target.def (fntype_abi): New target hook.
1837 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
1838 * doc/tm.texi: Regenerate.
1839 * target.h (predefined_function_abi): Declare.
1840 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
1841 if defined.
1842 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
1843 * config/aarch64/aarch64.c: Include function-abi.h.
1844 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
1845 (TARGET_FNTYPE_ABI): Define.
1846
1847 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1848
1849 * Makefile.in (OBJS): Add function-abi.o.
1850 (GTFILES): Add function-abi.h.
1851 * function-abi.cc: New file.
1852 * function-abi.h: Likewise.
1853 * emit-rtl.h (rtl_data::abi): New field.
1854 * function.c: Include function-abi.h.
1855 (prepare_function_start): Initialize crtl->abi.
1856 * read-rtl-function.c: Include regs.h and function-abi.h.
1857 (read_rtl_function_body): Initialize crtl->abi.
1858 (read_rtl_function_body_from_file_range): Likewise.
1859 * reginfo.c: Include function-abi.h.
1860 (init_reg_sets_1): Initialize default_function_abi.
1861 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
1862 when making a register global.
1863 * target-globals.h (this_target_function_abi_info): Declare.
1864 (target_globals::function_abi_info): New field.
1865 (restore_target_globals): Copy it.
1866 * target-globals.c: Include function-abi.h.
1867 (default_target_globals): Initialize the function_abi_info field.
1868 (target_globals): Allocate it.
1869 (save_target_globals): Free it.
1870
1871 2019-09-30 Nick Clifton <nickc@redhat.com>
1872
1873 PR target/85978
1874 * config/frv/frv.c (frv_register_move_cost): Add break statements
1875 to avoid falling through to the wrong cases. Tidy code.
1876
1877 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1878
1879 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1880 For multi-registers modes, test how big each register part is.
1881
1882 2019-09-30 Nick Clifton <nickc@redhat.com>
1883
1884 PR target/59205
1885 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
1886 (TARGET_ASM_SELECT_SECTION): Remove definition.
1887 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
1888
1889 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1890
1891 * emit-rtl.c (init_raw_REG): New function.
1892 (gen_raw_REG): Use init_raw_REG.
1893 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
1894 macros.
1895 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
1896 * rtl.h (rtx_init): New function.
1897 (rtx_alloca): New function.
1898 (init_raw_REG): New function.
1899 (alloca_raw_REG): New macro.
1900
1901 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
1902
1903 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
1904 (pcrel_local_address): Replace pcrel_address predicate, use the
1905 new function address_to_insn_form.
1906 (pcrel_external_address): Replace with new implementation using
1907 address_to_insn_form..
1908 (prefixed_mem_operand): Delete predicate which is now unused.
1909 (pcrel_external_mem_operand): Delete predicate which is now
1910 unused.
1911 * config/rs6000/rs6000-protos.h (enum insn_form): New
1912 enumeration.
1913 (enum non_prefixed_form): New enumeration.
1914 (address_to_insn_form): New declaration.
1915 (prefixed_load_p): New declaration.
1916 (prefixed_store_p): New declaration.
1917 (prefixed_paddi_p): New declaration.
1918 (rs6000_asm_output_opcode): New declaration.
1919 (rs6000_final_prescan_insn): Move declaration and update calling
1920 signature.
1921 (address_is_prefixed): New helper inline function.
1922 * config/rs6000/rs6000.c(print_operand_address): Check for either
1923 PC-relative local symbols or PC-relative external symbols.
1924 (rs6000_emit_move): Support loading PC-relative addresses.
1925 (mode_supports_prefixed_address_p): Delete, no longer used.
1926 (rs6000_prefixed_address_mode_p): Delete, no longer used.
1927 (address_to_insn_form): New function to decode an address format.
1928 (reg_to_non_prefixed): New function to identify what the
1929 non-prefixed memory instruction format is for a register.
1930 (prefixed_load_p): New function to identify prefixed loads.
1931 (prefixed_store_p): New function to identify prefixed stores.
1932 (prefixed_paddi_p): New function to identify prefixed load
1933 immediates.
1934 (next_insn_prefixed_p): New static state variable.
1935 (rs6000_final_prescan_insn): New function to determine if an insn
1936 uses a prefixed instruction.
1937 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
1938 prefixed instruction.
1939 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
1940 (ASM_OUTPUT_OPCODE): New target hook.
1941 * config/rs6000/rs6000.md (prefixed): New insn attribute for
1942 prefixed instructions.
1943 (prefixed_length): New insn attribute for the size of prefixed
1944 instructions.
1945 (non_prefixed_length): New insn attribute for the size of
1946 non-prefixed instructions.
1947 (pcrel_local_addr): New insn to load up a local PC-relative
1948 address.
1949 (pcrel_extern_addr): New insn to load up an external PC-relative
1950 address.
1951 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
1952 GPR and loading a 128-bit floating point type to a GPR.
1953
1954 2019-09-30 Richard Biener <rguenther@suse.de>
1955
1956 * gimple.c (gimple_get_lhs): For PHIs return the result.
1957 * tree-vectorizer.h (vectorizable_live_operation): Also get the
1958 SLP instance as argument.
1959 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
1960 double-reduction PHIs with vectorizable_lc_phi.
1961 (vect_analyze_loop_operations): Adjust.
1962 (vect_create_epilog_for_reduction): Remove all code not dealing
1963 with reduction LC PHI or epilogue generation.
1964 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
1965 for live stmts of reductions.
1966 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
1967 do not handle defs that are not vect_internal_def.
1968 (can_vectorize_live_stmts): Adjust.
1969 (vect_analyze_stmt): When the vectorized stmt defined a value
1970 used on backedges adjust the backedge uses of vectorized PHIs.
1971
1972 2019-09-30 Martin Jambor <mjambor@suse.cz>
1973
1974 PR ipa/91853
1975 * tree-inline.c (force_value_to_type): New function.
1976 (setup_one_parameter): Use force_value_to_type to convert type.
1977 * tree-inline.c (force_value_to_type): Declare.
1978 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
1979 with register type mismatches.
1980
1981 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
1982
1983 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
1984 32-bit PowerPC.
1985 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
1986 * config/rs6000/t-freebsd64: Make use of the above define and build
1987 the 32-bit libraries with secure-plt.
1988
1989 2019-09-30 Jakub Jelinek <jakub@redhat.com>
1990
1991 PR target/91931
1992 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
1993 gen_int_mode instead of GEN_INT.
1994
1995 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
1996
1997 * config/darwin.c (gen_macho_low): Amend to include the mode
1998 argument.
1999 (machopic_indirect_data_reference): Amend gen_macho_low call
2000 to include mode argument
2001 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2002 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2003 the macho_high expander and two define_insn entries.
2004
2005 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2006
2007 PR bootstrap/90543
2008 * optc-save-gen.awk: Fix up printing string option differences.
2009
2010 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2011
2012 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2013 vec_perm cost to 1 for non-Power7 VSX architectures.
2014
2015 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2016
2017 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2018 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2019 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2020
2021 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2022
2023 * config/darwin.c (gen_macho_high): Amend to include the mode
2024 argument.
2025 (machopic_indirect_data_reference): Amend gen_macho_high call
2026 to include mode argument.
2027 (machopic_legitimize_pic_address): Likewise.
2028 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2029 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2030 the macho_high expander and two define_insn entries.
2031
2032 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2033
2034 PR target/86805
2035 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2036
2037 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2038
2039 PR target/80672
2040 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2041 std::string::compare instead of std::string::find.
2042
2043 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2044
2045 * configure: Regenerate.
2046
2047 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2048
2049 PR middle-end/91920
2050 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2051 variables as shared.
2052
2053 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2054
2055 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2056 replaces the expander and two define_insn entries.
2057 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2058 call.
2059 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2060
2061 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2062
2063 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2064 (fibonacci_heap::nodes): Likewise.
2065 (fibonacci_heap::min_key): Likewise.
2066 (fibonacci_heap::min): Likewise.
2067
2068 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2069
2070 * cgraph.c (cgraph_node::get_fun): Make const.
2071 * cgraph.h (cgraph_node::get_fun): Likewise.
2072
2073 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2074
2075 PR target/91919
2076 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2077 of SImode MULT.
2078
2079 2019-09-27 Richard Biener <rguenther@suse.de>
2080
2081 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2082 (STMT_VINFO_REDUC_FN): Likewise.
2083 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2084 STMT_VINFO_REDUC_FN.
2085 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2086 for condition reductions.
2087 (vect_create_epilog_for_reduction): Compute all required state
2088 from the stmt to be vectorized.
2089 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2090 invocation and remove then dead code. For single def-use chains
2091 record only a single vector stmt.
2092
2093 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2094
2095 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2096 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2097 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2098 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2099 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2100 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2101 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2102 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2103 (aarch64_general_builtin_rsqrt): Declare.
2104 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2105 New function.
2106 (aarch64_mangle_builtin_type): Rename to...
2107 (aarch64_general_mangle_builtin_type): ...this.
2108 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2109 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2110 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2111 aarch64_general_add_builtin instead of add_builtin_function.
2112 (aarch64_init_builtins): Rename to...
2113 (aarch64_general_init_builtins): ...this. Use
2114 aarch64_general_add_builtin instead of add_builtin_function.
2115 (aarch64_builtin_decl): Rename to...
2116 (aarch64_general_builtin_decl): ...this and remove the unused
2117 arguments.
2118 (aarch64_expand_builtin): Rename to...
2119 (aarch64_general_expand_builtin): ...this and remove the unused
2120 arguments.
2121 (aarch64_builtin_rsqrt): Rename to...
2122 (aarch64_general_builtin_rsqrt): ...this.
2123 (aarch64_fold_builtin): Rename to...
2124 (aarch64_general_fold_builtin): ...this. Take the function subcode
2125 and return type as arguments. Remove the "ignored" argument.
2126 (aarch64_gimple_fold_builtin): Rename to...
2127 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2128 subcode and gcall as arguments, and return the new function call.
2129 * config/aarch64/aarch64.c (aarch64_init_builtins)
2130 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2131 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2132 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2133 instead of aarch64_builtin_rsqrt.
2134 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2135 instead of aarch64_mangle_builtin_type.
2136
2137 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2138
2139 * target.def (check_builtin_call): New target hook.
2140 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2141 * doc/tm.texi: Regenerate.
2142
2143 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2144
2145 PR tree-optimization/91909
2146 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2147 reduc_index parameter. When handling COND_REDUCTION, make sure
2148 that the reduction phi operand is in the correct arm of the
2149 VEC_COND_EXPR.
2150 (vectorizable_reduction): Pass reduc_index to the above.
2151
2152 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2153
2154 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2155 New combine pattern.
2156
2157 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2158
2159 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2160 loop instruction into new basic block before the loop when basic
2161 block that precedes the loop is empty.
2162
2163 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2164
2165 * function.c (gimplify_parameters): Use build_clobber function.
2166 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2167 * tree-inline.c (expand_call_inline): Likewise.
2168 * tree-sra.c (clobber_subtree): Likewise.
2169 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2170 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2171 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2172 lower_omp_target): Likewise.
2173 * omp-expand.c (expand_omp_for_generic): Likewise.
2174 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2175
2176 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2177
2178 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2179 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2180 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2181 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2182 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2183 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2184 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2185 LD_ELEMREV_V16QI): Use the PURE attribute.
2186
2187 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2188
2189 * config/rs6000/darwin.md: Replace the expanders for
2190 load_macho_picbase and reload_macho_picbase with use of '@'
2191 and <mode> in their respective define_insns.
2192 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2193 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2194 Pmode to gen_load_macho_picbase.
2195 * config/rs6000/rs6000.md: Likewise.
2196
2197 2019-09-25 Richard Biener <rguenther@suse.de>
2198
2199 PR tree-optimization/91896
2200 * tree-vect-loop.c (vectorizable_reduction): The single
2201 def-use cycle optimization cannot apply when there's more
2202 than one pattern stmt involved.
2203
2204 2019-09-26 Richard Biener <rguenther@suse.de>
2205
2206 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2207 loop-closed PHIs that are vect_internal_def.
2208 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2209 Simplify.
2210 (vectorizable_lc_phi): New.
2211 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2212 (vect_transform_stmt): Likewise.
2213 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2214 (vectorizable_lc_phi): Declare.
2215
2216 2019-09-26 Richard Biener <rguenther@suse.de>
2217
2218 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2219 vectorizable_reduction for vect_double_reduction_def.
2220 (vect_transform_loop): Likewise.
2221 (vect_create_epilog_for_reduction): Move double-reduction
2222 PHI creation and preheader argument setting of PHIs ...
2223 (vectorizable_reduction): ... here. Also process
2224 vect_double_reduction_def PHIs, creating the vectorized
2225 PHI nodes, remembering the scalar adjustment computed for
2226 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2227 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2228 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2229 Initialize STMT_VINFO_REDUC_CODE.
2230 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2231 (_stmt_vec_info::reduc_code): Likewise.
2232 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2233 (STMT_VINFO_REDUC_CODE): Likewise.
2234
2235 2019-09-26 Matt Turner <mattst88@gmail.com>
2236
2237 PR driver/69471
2238 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2239 (mtune=): Add Negative(mtune=).
2240 (mcpu=): Add Negative(mcpu=).
2241 * config/arm/arm.opt: Likewise.
2242
2243 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2244
2245 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2246 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2247 Define.
2248 * config/arm/arm_acle.h: Define builtins for the above.
2249 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2250 (simd32_op): Handle the above.
2251 * config/arm/unspecs.md: Define unspecs for the above.
2252
2253 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2254
2255 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2256 (arm_<sup>xtb16): Likewise.
2257 (arm_usada8): Likewise.
2258 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2259 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2260 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2261 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2262 __sxtb16, __uxtab16, __uxtb16): Define.
2263 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2264 * config/arm/unspecs.md: Define unspecs for the above.
2265 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2266 (USXTB16): Likewise.
2267 (simd32_op): New int_attribute.
2268 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2269 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2270
2271 2019-09-26 Martin Jambor <mjambor@suse.cz>
2272
2273 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2274 internal_error.
2275
2276 2019-09-26 Martin Jambor <mjambor@suse.cz>
2277
2278 * ipa-sra.c (process_scan_results): Fix continue condition.
2279
2280 2019-09-26 Martin Liska <mliska@suse.cz>
2281
2282 PR tree-optimization/91885
2283 * tree-vectorizer.c (try_vectorize_loop_1): Add
2284 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2285
2286 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2287
2288 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2289 aarch64_plus_immediate rather than aarch64_uimm12_shift
2290 to test for valid PLUS immediates.
2291
2292 2019-09-25 Martin Jambor <mjambor@suse.cz>
2293
2294 * tree-sra.c (no_accesses_p): Remove.
2295 (no_accesses_representant): Likewise.
2296
2297 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2298
2299 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2300 consistenly.
2301 (vaba_s16): Likewise.
2302 (vaba_s32): Likewise.
2303 (vaba_u8): Likewise.
2304 (vaba_u16): Likewise.
2305 (vaba_u32): Likewise.
2306 (vabal_high_s8): Likewise.
2307 (vabal_high_s16): Likewise.
2308 (vabal_high_s32): Likewise.
2309 (vabal_high_u8): Likewise.
2310 (vabal_high_u16): Likewise.
2311 (vabal_high_u32): Likewise.
2312 (vabal_s8): Likewise.
2313 (vabal_s16): Likewise.
2314 (vabal_s32): Likewise.
2315 (vabal_u8): Likewise.
2316 (vabal_u16): Likewise.
2317 (vabal_u32): Likewise.
2318 (vabaq_s8): Likewise.
2319 (vabaq_s16): Likewise.
2320 (vabaq_s32): Likewise.
2321 (vabaq_u8): Likewise.
2322 (vabaq_u16): Likewise.
2323 (vabaq_u32): Likewise.
2324 (vabd_s8): Likewise.
2325 (vabd_s16): Likewise.
2326 (vabd_s32): Likewise.
2327 (vabd_u8): Likewise.
2328 (vabd_u16): Likewise.
2329 (vabd_u32): Likewise.
2330 (vabdl_high_s8): Likewise.
2331 (vabdl_high_s16): Likewise.
2332 (vabdl_high_s32): Likewise.
2333 (vabdl_high_u8): Likewise.
2334 (vabdl_high_u16): Likewise.
2335 (vabdl_high_u32): Likewise.
2336 (vabdl_s8): Likewise.
2337 (vabdl_s16): Likewise.
2338 (vabdl_s32): Likewise.
2339 (vabdl_u8): Likewise.
2340 (vabdl_u16): Likewise.
2341 (vabdl_u32): Likewise.
2342 (vabdq_s8): Likewise.
2343 (vabdq_s16): Likewise.
2344 (vabdq_s32): Likewise.
2345 (vabdq_u8): Likewise.
2346 (vabdq_u16): Likewise.
2347 (vabdq_u32): Likewise.
2348 (vaddlv_s8): Likewise.
2349 (vaddlv_s16): Likewise.
2350 (vaddlv_u8): Likewise.
2351 (vaddlv_u16): Likewise.
2352 (vaddlvq_s8): Likewise.
2353 (vaddlvq_s16): Likewise.
2354 (vaddlvq_s32): Likewise.
2355 (vaddlvq_u8): Likewise.
2356 (vaddlvq_u16): Likewise.
2357 (vaddlvq_u32): Likewise.
2358 (vcvtx_f32_f64): Likewise.
2359 (vcvtx_high_f32_f64): Likewise.
2360 (vcvtxd_f32_f64): Likewise.
2361 (vmla_n_f32): Likewise.
2362 (vmla_n_s16): Likewise.
2363 (vmla_n_s32): Likewise.
2364 (vmla_n_u16): Likewise.
2365 (vmla_n_u32): Likewise.
2366 (vmla_s8): Likewise.
2367 (vmla_s16): Likewise.
2368 (vmla_s32): Likewise.
2369 (vmla_u8): Likewise.
2370 (vmla_u16): Likewise.
2371 (vmla_u32): Likewise.
2372 (vmlal_high_n_s16): Likewise.
2373 (vmlal_high_n_s32): Likewise.
2374 (vmlal_high_n_u16): Likewise.
2375 (vmlal_high_n_u32): Likewise.
2376 (vmlal_high_s8): Likewise.
2377 (vmlal_high_s16): Likewise.
2378 (vmlal_high_s32): Likewise.
2379 (vmlal_high_u8): Likewise.
2380 (vmlal_high_u16): Likewise.
2381 (vmlal_high_u32): Likewise.
2382 (vmlal_n_s16): Likewise.
2383 (vmlal_n_s32): Likewise.
2384 (vmlal_n_u16): Likewise.
2385 (vmlal_n_u32): Likewise.
2386 (vmlal_s8): Likewise.
2387 (vmlal_s16): Likewise.
2388 (vmlal_s32): Likewise.
2389 (vmlal_u8): Likewise.
2390 (vmlal_u16): Likewise.
2391 (vmlal_u32): Likewise.
2392 (vmlaq_n_f32): Likewise.
2393 (vmlaq_n_s16): Likewise.
2394 (vmlaq_n_s32): Likewise.
2395 (vmlaq_n_u16): Likewise.
2396 (vmlaq_n_u32): Likewise.
2397 (vmlaq_s8): Likewise.
2398 (vmlaq_s16): Likewise.
2399 (vmlaq_s32): Likewise.
2400 (vmlaq_u8): Likewise.
2401 (vmlaq_u16): Likewise.
2402 (vmlaq_u32): Likewise.
2403 (vmls_n_f32): Likewise.
2404 (vmls_n_s16): Likewise.
2405 (vmls_n_s32): Likewise.
2406 (vmls_n_u16): Likewise.
2407 (vmls_n_u32): Likewise.
2408 (vmls_s8): Likewise.
2409 (vmls_s16): Likewise.
2410 (vmls_s32): Likewise.
2411 (vmls_u8): Likewise.
2412 (vmls_u16): Likewise.
2413 (vmls_u32): Likewise.
2414 (vmlsl_high_n_s16): Likewise.
2415 (vmlsl_high_n_s32): Likewise.
2416 (vmlsl_high_n_u16): Likewise.
2417 (vmlsl_high_n_u32): Likewise.
2418 (vmlsl_high_s8): Likewise.
2419 (vmlsl_high_s16): Likewise.
2420 (vmlsl_high_s32): Likewise.
2421 (vmlsl_high_u8): Likewise.
2422 (vmlsl_high_u16): Likewise.
2423 (vmlsl_high_u32): Likewise.
2424 (vmlsl_n_s16): Likewise.
2425 (vmlsl_n_s32): Likewise.
2426 (vmlsl_n_u16): Likewise.
2427 (vmlsl_n_u32): Likewise.
2428 (vmlsl_s8): Likewise.
2429 (vmlsl_s16): Likewise.
2430 (vmlsl_s32): Likewise.
2431 (vmlsl_u8): Likewise.
2432 (vmlsl_u16): Likewise.
2433 (vmlsl_u32): Likewise.
2434 (vmlsq_n_f32): Likewise.
2435 (vmlsq_n_s16): Likewise.
2436 (vmlsq_n_s32): Likewise.
2437 (vmlsq_n_u16): Likewise.
2438 (vmlsq_n_u32): Likewise.
2439 (vmlsq_s8): Likewise.
2440 (vmlsq_s16): Likewise.
2441 (vmlsq_s32): Likewise.
2442 (vmlsq_u8): Likewise.
2443 (vmlsq_u16): Likewise.
2444 (vmlsq_u32): Likewise.
2445 (vmovl_high_s8): Likewise.
2446 (vmovl_high_s16): Likewise.
2447 (vmovl_high_s32): Likewise.
2448 (vmovl_high_u8): Likewise.
2449 (vmovl_high_u16): Likewise.
2450 (vmovl_high_u32): Likewise.
2451 (vmovl_s8): Likewise.
2452 (vmovl_s16): Likewise.
2453 (vmovl_s32): Likewise.
2454 (vmovl_u8): Likewise.
2455 (vmovl_u16): Likewise.
2456 (vmovl_u32): Likewise.
2457 (vmovn_high_s16): Likewise.
2458 (vmovn_high_s32): Likewise.
2459 (vmovn_high_s64): Likewise.
2460 (vmovn_high_u16): Likewise.
2461 (vmovn_high_u32): Likewise.
2462 (vmovn_high_u64): Likewise.
2463 (vmovn_s16): Likewise.
2464 (vmovn_s32): Likewise.
2465 (vmovn_s64): Likewise.
2466 (vmovn_u16): Likewise.
2467 (vmovn_u32): Likewise.
2468 (vmovn_u64): Likewise.
2469 (vmull_high_n_s16): Likewise.
2470 (vmull_high_n_s32): Likewise.
2471 (vmull_high_n_u16): Likewise.
2472 (vmull_high_n_u32): Likewise.
2473 (vmull_high_p8): Likewise.
2474 (vmull_high_s8): Likewise.
2475 (vmull_high_s16): Likewise.
2476 (vmull_high_s32): Likewise.
2477 (vmull_high_u8): Likewise.
2478 (vmull_high_u16): Likewise.
2479 (vmull_high_u32): Likewise.
2480 (vmull_n_s16): Likewise.
2481 (vmull_n_s32): Likewise.
2482 (vmull_n_u16): Likewise.
2483 (vmull_n_u32): Likewise.
2484 (vmull_p8): Likewise.
2485 (vmull_s8): Likewise.
2486 (vmull_s16): Likewise.
2487 (vmull_s32): Likewise.
2488 (vmull_u8): Likewise.
2489 (vmull_u16): Likewise.
2490 (vmull_u32): Likewise.
2491 (vpadal_s8): Likewise.
2492 (vpadal_s16): Likewise.
2493 (vpadal_s32): Likewise.
2494 (vpadal_u8): Likewise.
2495 (vpadal_u16): Likewise.
2496 (vpadal_u32): Likewise.
2497 (vpadalq_s8): Likewise.
2498 (vpadalq_s16): Likewise.
2499 (vpadalq_s32): Likewise.
2500 (vpadalq_u8): Likewise.
2501 (vpadalq_u16): Likewise.
2502 (vpadalq_u32): Likewise.
2503 (vpaddl_s8): Likewise.
2504 (vpaddl_s16): Likewise.
2505 (vpaddl_s32): Likewise.
2506 (vpaddl_u8): Likewise.
2507 (vpaddl_u16): Likewise.
2508 (vpaddl_u32): Likewise.
2509 (vpaddlq_s8): Likewise.
2510 (vpaddlq_s16): Likewise.
2511 (vpaddlq_s32): Likewise.
2512 (vpaddlq_u8): Likewise.
2513 (vpaddlq_u16): Likewise.
2514 (vpaddlq_u32): Likewise.
2515 (vpaddq_s8): Likewise.
2516 (vpaddq_s16): Likewise.
2517 (vpaddq_s32): Likewise.
2518 (vpaddq_s64): Likewise.
2519 (vpaddq_u8): Likewise.
2520 (vpaddq_u16): Likewise.
2521 (vpaddq_u32): Likewise.
2522 (vpaddq_u64): Likewise.
2523 (vqdmulh_n_s16): Likewise.
2524 (vqdmulh_n_s32): Likewise.
2525 (vqdmulhq_n_s16): Likewise.
2526 (vqdmulhq_n_s32): Likewise.
2527 (vqmovn_high_s16): Likewise.
2528 (vqmovn_high_s32): Likewise.
2529 (vqmovn_high_s64): Likewise.
2530 (vqmovn_high_u16): Likewise.
2531 (vqmovn_high_u32): Likewise.
2532 (vqmovn_high_u64): Likewise.
2533 (vqmovun_high_s16): Likewise.
2534 (vqmovun_high_s32): Likewise.
2535 (vqmovun_high_s64): Likewise.
2536 (vqrdmulh_n_s16): Likewise.
2537 (vqrdmulh_n_s32): Likewise.
2538 (vqrdmulhq_n_s16): Likewise.
2539 (vqrdmulhq_n_s32): Likewise.
2540 (vrsqrte_u32): Likewise.
2541 (vrsqrteq_u32): Likewise.
2542 (vtst_p8): Likewise.
2543 (vtst_p16): Likewise.
2544 (vtst_p64): Likewise.
2545 (vtstq_p8): Likewise.
2546 (vtstq_p16): Likewise.
2547 (vtstq_p64): Likewise.
2548 (vaddlv_s32): Likewise.
2549 (vaddlv_u32): Likewise.
2550 (vqtbl1_p8): Likewise.
2551 (vqtbl1_s8): Likewise.
2552 (vqtbl1_u8): Likewise.
2553 (vqtbl1q_p8): Likewise.
2554 (vqtbl1q_s8): Likewise.
2555 (vqtbl1q_u8): Likewise.
2556 (vqtbx1_s8): Likewise.
2557 (vqtbx1_u8): Likewise.
2558 (vqtbx1_p8): Likewise.
2559 (vqtbx1q_s8): Likewise.
2560 (vqtbx1q_u8): Likewise.
2561 (vqtbx1q_p8): Likewise.
2562 (vtbl1_s8): Likewise.
2563 (vtbl1_u8): Likewise.
2564 (vtbl1_p8): Likewise.
2565 (vtbl2_s8): Likewise.
2566 (vtbl2_u8): Likewise.
2567 (vtbl2_p8): Likewise.
2568 (vtbl3_s8): Likewise.
2569 (vtbl3_u8): Likewise.
2570 (vtbl3_p8): Likewise.
2571 (vtbl4_s8): Likewise.
2572 (vtbl4_u8): Likewise.
2573 (vtbl4_p8): Likewise.
2574 (vtbx2_s8): Likewise.
2575 (vtbx2_u8): Likewise.
2576 (vtbx2_p8): Likewise.
2577 (vld1_f32): Likewise.
2578 (vld1_f64): Likewise.
2579 (vld1_p8): Likewise.
2580 (vld1_p16): Likewise.
2581 (vld1_p64): Likewise.
2582 (vld1_s8): Likewise.
2583 (vld1_s16): Likewise.
2584 (vld1_s32): Likewise.
2585 (vld1_s64): Likewise.
2586 (vld1_u8): Likewise.
2587 (vld1_u16): Likewise.
2588 (vld1_u32): Likewise.
2589 (vld1_u64): Likewise.
2590 (vld1q_f32): Likewise.
2591 (vld1q_f64): Likewise.
2592 (vld1q_p8): Likewise.
2593 (vld1q_p16): Likewise.
2594 (vld1q_p64): Likewise.
2595 (vld1q_s8): Likewise.
2596 (vld1q_s16): Likewise.
2597 (vld1q_s32): Likewise.
2598 (vld1q_s64): Likewise.
2599 (vld1q_u8): Likewise.
2600 (vld1q_u16): Likewise.
2601 (vld1q_u32): Likewise.
2602 (vld1q_u64): Likewise.
2603 (vpmax_s8): Likewise.
2604 (vpmax_s16): Likewise.
2605 (vpmax_s32): Likewise.
2606 (vpmax_u8): Likewise.
2607 (vpmax_u16): Likewise.
2608 (vpmax_u32): Likewise.
2609 (vpmaxq_s8): Likewise.
2610 (vpmaxq_s16): Likewise.
2611 (vpmaxq_s32): Likewise.
2612 (vpmaxq_u8): Likewise.
2613 (vpmaxq_u16): Likewise.
2614 (vpmaxq_u32): Likewise.
2615 (vpmax_f32): Likewise.
2616 (vpmaxq_f32): Likewise.
2617 (vpmaxq_f64): Likewise.
2618 (vpmaxqd_f64): Likewise.
2619 (vpmaxs_f32): Likewise.
2620 (vpmaxnm_f32): Likewise.
2621 (vpmaxnmq_f32): Likewise.
2622 (vpmaxnmq_f64): Likewise.
2623 (vpmaxnmqd_f64): Likewise.
2624 (vpmaxnms_f32): Likewise.
2625 (vpmin_s8): Likewise.
2626 (vpmin_s16): Likewise.
2627 (vpmin_s32): Likewise.
2628 (vpmin_u8): Likewise.
2629 (vpmin_u16): Likewise.
2630 (vpmin_u32): Likewise.
2631 (vpminq_s8): Likewise.
2632 (vpminq_s16): Likewise.
2633 (vpminq_s32): Likewise.
2634 (vpminq_u8): Likewise.
2635 (vpminq_u16): Likewise.
2636 (vpminq_u32): Likewise.
2637 (vpmin_f32): Likewise.
2638 (vpminq_f32): Likewise.
2639 (vpminq_f64): Likewise.
2640 (vpminqd_f64): Likewise.
2641 (vpmins_f32): Likewise.
2642 (vpminnm_f32): Likewise.
2643 (vpminnmq_f32): Likewise.
2644 (vpminnmq_f64): Likewise.
2645 (vpminnmqd_f64): Likewise.
2646 (vpminnms_f32): Likewise.
2647 (vmla_f32): Likewise.
2648 (vmlaq_f32): Likewise.
2649 (vmlaq_f64): Likewise.
2650 (vmls_f32): Likewise.
2651 (vmlsq_f32): Likewise.
2652 (vmlsq_f64): Likewise.
2653 (vqtbl2_s8): Likewise.
2654 (vqtbl2_u8): Likewise.
2655 (vqtbl2_p8): Likewise.
2656 (vqtbl2q_s8): Likewise.
2657 (vqtbl2q_u8): Likewise.
2658 (vqtbl2q_p8): Likewise.
2659 (vqtbl3_s8): Likewise.
2660 (vqtbl3_u8): Likewise.
2661 (vqtbl3_p8): Likewise.
2662 (vqtbl3q_s8): Likewise.
2663 (vqtbl3q_u8): Likewise.
2664 (vqtbl3q_p8): Likewise.
2665 (vqtbl4_s8): Likewise.
2666 (vqtbl4_u8): Likewise.
2667 (vqtbl4_p8): Likewise.
2668 (vqtbl4q_s8): Likewise.
2669 (vqtbl4q_u8): Likewise.
2670 (vqtbl4q_p8): Likewise.
2671 (vqtbx2_s8): Likewise.
2672 (vqtbx2_u8): Likewise.
2673 (vqtbx2_p8): Likewise.
2674 (vqtbx2q_s8): Likewise.
2675 (vqtbx2q_u8): Likewise.
2676 (vqtbx2q_p8): Likewise.
2677 (vqtbx3_s8): Likewise.
2678 (vqtbx3_u8): Likewise.
2679 (vqtbx3_p8): Likewise.
2680 (vqtbx3q_s8): Likewise.
2681 (vqtbx3q_u8): Likewise.
2682 (vqtbx3q_p8): Likewise.
2683 (vqtbx4_s8): Likewise.
2684 (vqtbx4_u8): Likewise.
2685 (vqtbx4_p8): Likewise.
2686 (vqtbx4q_s8): Likewise.
2687 (vqtbx4q_u8): Likewise.
2688 (vqtbx4q_p8): Likewise.
2689 (vrev16_p8): Likewise.
2690 (vrev16_s8): Likewise.
2691 (vrev16_u8): Likewise.
2692 (vrev16q_p8): Likewise.
2693 (vrev16q_s8): Likewise.
2694 (vrev16q_u8): Likewise.
2695 (vrev32_p8): Likewise.
2696 (vrev32_p16): Likewise.
2697 (vrev32_s8): Likewise.
2698 (vrev32_s16): Likewise.
2699 (vrev32_u8): Likewise.
2700 (vrev32_u16): Likewise.
2701 (vrev32q_p8): Likewise.
2702 (vrev32q_p16): Likewise.
2703 (vrev32q_s8): Likewise.
2704 (vrev32q_s16): Likewise.
2705 (vrev32q_u8): Likewise.
2706 (vrev32q_u16): Likewise.
2707 (vrev64_f32): Likewise.
2708 (vrev64_p8): Likewise.
2709 (vrev64_p16): Likewise.
2710 (vrev64_s8): Likewise.
2711 (vrev64_s16): Likewise.
2712 (vrev64_s32): Likewise.
2713 (vrev64_u8): Likewise.
2714 (vrev64_u16): Likewise.
2715 (vrev64_u32): Likewise.
2716 (vrev64q_f32): Likewise.
2717 (vrev64q_p8): Likewise.
2718 (vrev64q_p16): Likewise.
2719 (vrev64q_s8): Likewise.
2720 (vrev64q_s16): Likewise.
2721 (vrev64q_s32): Likewise.
2722 (vrev64q_u8): Likewise.
2723 (vrev64q_u16): Likewise.
2724 (vrev64q_u32): Likewise.
2725 (vsha1cq_u32): Likewise.
2726 (vsha1mq_u32): Likewise.
2727 (vsha1pq_u32): Likewise.
2728 (vsha1h_u32): Likewise.
2729 (vsha1su0q_u32): Likewise.
2730 (vsha1su1q_u32): Likewise.
2731 (vsha256hq_u32): Likewise.
2732 (vsha256h2q_u32): Likewise.
2733 (vsha256su0q_u32): Likewise.
2734 (vsha256su1q_u32): Likewise.
2735 (vmull_p64): Likewise.
2736 (vmull_high_p64): Likewise.
2737 (vsqrt_f32): Likewise.
2738 (vsqrtq_f32): Likewise.
2739 (vsqrt_f64): Likewise.
2740 (vsqrtq_f64): Likewise.
2741 (vst1_f32): Likewise.
2742 (vst1_f64): Likewise.
2743 (vst1_p8): Likewise.
2744 (vst1_p16): Likewise.
2745 (vst1_p64): Likewise.
2746 (vst1_s8): Likewise.
2747 (vst1_s16): Likewise.
2748 (vst1_s32): Likewise.
2749 (vst1_s64): Likewise.
2750 (vst1_u8): Likewise.
2751 (vst1_u16): Likewise.
2752 (vst1_u32): Likewise.
2753 (vst1_u64): Likewise.
2754 (vst1q_f32): Likewise.
2755 (vst1q_f64): Likewise.
2756 (vst1q_p8): Likewise.
2757 (vst1q_p16): Likewise.
2758 (vst1q_p64): Likewise.
2759 (vst1q_s8): Likewise.
2760 (vst1q_s16): Likewise.
2761 (vst1q_s32): Likewise.
2762 (vst1q_s64): Likewise.
2763 (vst1q_u8): Likewise.
2764 (vst1q_u16): Likewise.
2765 (vst1q_u32): Likewise.
2766 (vst1q_u64): Likewise.
2767 (vst1_s64_x2): Likewise.
2768 (vst1_u64_x2): Likewise.
2769 (vst1_f64_x2): Likewise.
2770 (vst1_s8_x2): Likewise.
2771 (vst1_p8_x2): Likewise.
2772 (vst1_s16_x2): Likewise.
2773 (vst1_p16_x2): Likewise.
2774 (vst1_s32_x2): Likewise.
2775 (vst1_u8_x2): Likewise.
2776 (vst1_u16_x2): Likewise.
2777 (vst1_u32_x2): Likewise.
2778 (vst1_f16_x2): Likewise.
2779 (vst1_f32_x2): Likewise.
2780 (vst1_p64_x2): Likewise.
2781 (vst1q_s8_x2): Likewise.
2782 (vst1q_p8_x2): Likewise.
2783 (vst1q_s16_x2): Likewise.
2784 (vst1q_p16_x2): Likewise.
2785 (vst1q_s32_x2): Likewise.
2786 (vst1q_s64_x2): Likewise.
2787 (vst1q_u8_x2): Likewise.
2788 (vst1q_u16_x2): Likewise.
2789 (vst1q_u32_x2): Likewise.
2790 (vst1q_u64_x2): Likewise.
2791 (vst1q_f16_x2): Likewise.
2792 (vst1q_f32_x2): Likewise.
2793 (vst1q_f64_x2): Likewise.
2794 (vst1q_p64_x2): Likewise.
2795 (vst1_s64_x3): Likewise.
2796 (vst1_u64_x3): Likewise.
2797 (vst1_f64_x3): Likewise.
2798 (vst1_s8_x3): Likewise.
2799 (vst1_p8_x3): Likewise.
2800 (vst1_s16_x3): Likewise.
2801 (vst1_p16_x3): Likewise.
2802 (vst1_s32_x3): Likewise.
2803 (vst1_u8_x3): Likewise.
2804 (vst1_u16_x3): Likewise.
2805 (vst1_u32_x3): Likewise.
2806 (vst1_f16_x3): Likewise.
2807 (vst1_f32_x3): Likewise.
2808 (vst1_p64_x3): Likewise.
2809 (vst1q_s8_x3): Likewise.
2810 (vst1q_p8_x3): Likewise.
2811 (vst1q_s16_x3): Likewise.
2812 (vst1q_p16_x3): Likewise.
2813 (vst1q_s32_x3): Likewise.
2814 (vst1q_s64_x3): Likewise.
2815 (vst1q_u8_x3): Likewise.
2816 (vst1q_u16_x3): Likewise.
2817 (vst1q_u32_x3): Likewise.
2818 (vst1q_u64_x3): Likewise.
2819 (vst1q_f16_x3): Likewise.
2820 (vst1q_f32_x3): Likewise.
2821 (vst1q_f64_x3): Likewise.
2822 (vst1q_p64_x3): Likewise.
2823 (vst2_s64): Likewise.
2824 (vst2_u64): Likewise.
2825 (vst2_f64): Likewise.
2826 (vst2_s8): Likewise.
2827 (vst2_p8): Likewise.
2828 (vst2_s16): Likewise.
2829 (vst2_p16): Likewise.
2830 (vst2_s32): Likewise.
2831 (vst2_u8): Likewise.
2832 (vst2_u16): Likewise.
2833 (vst2_u32): Likewise.
2834 (vst2_f16): Likewise.
2835 (vst2_f32): Likewise.
2836 (vst2_p64): Likewise.
2837 (vst2q_s8): Likewise.
2838 (vst2q_p8): Likewise.
2839 (vst2q_s16): Likewise.
2840 (vst2q_p16): Likewise.
2841 (vst2q_s32): Likewise.
2842 (vst2q_s64): Likewise.
2843 (vst2q_u8): Likewise.
2844 (vst2q_u16): Likewise.
2845 (vst2q_u32): Likewise.
2846 (vst2q_u64): Likewise.
2847 (vst2q_f16): Likewise.
2848 (vst2q_f32): Likewise.
2849 (vst2q_f64): Likewise.
2850 (vst2q_p64): Likewise.
2851 (vst3_s64): Likewise.
2852 (vst3_u64): Likewise.
2853 (vst3_f64): Likewise.
2854 (vst3_s8): Likewise.
2855 (vst3_p8): Likewise.
2856 (vst3_s16): Likewise.
2857 (vst3_p16): Likewise.
2858 (vst3_s32): Likewise.
2859 (vst3_u8): Likewise.
2860 (vst3_u16): Likewise.
2861 (vst3_u32): Likewise.
2862 (vst3_f16): Likewise.
2863 (vst3_f32): Likewise.
2864 (vst3_p64): Likewise.
2865 (vst3q_s8): Likewise.
2866 (vst3q_p8): Likewise.
2867 (vst3q_s16): Likewise.
2868 (vst3q_p16): Likewise.
2869 (vst3q_s32): Likewise.
2870 (vst3q_s64): Likewise.
2871 (vst3q_u8): Likewise.
2872 (vst3q_u16): Likewise.
2873 (vst3q_u32): Likewise.
2874 (vst3q_u64): Likewise.
2875 (vst3q_f16): Likewise.
2876 (vst3q_f32): Likewise.
2877 (vst3q_f64): Likewise.
2878 (vst3q_p64): Likewise.
2879 (vst4_s64): Likewise.
2880 (vst4_u64): Likewise.
2881 (vst4_f64): Likewise.
2882 (vst4_s8): Likewise.
2883 (vst4_p8): Likewise.
2884 (vst4_s16): Likewise.
2885 (vst4_p16): Likewise.
2886 (vst4_s32): Likewise.
2887 (vst4_u8): Likewise.
2888 (vst4_u16): Likewise.
2889 (vst4_u32): Likewise.
2890 (vst4_f16): Likewise.
2891 (vst4_f32): Likewise.
2892 (vst4_p64): Likewise.
2893 (vst4q_s8): Likewise.
2894 (vst4q_p8): Likewise.
2895 (vst4q_s16): Likewise.
2896 (vst4q_p16): Likewise.
2897 (vst4q_s32): Likewise.
2898 (vst4q_s64): Likewise.
2899 (vst4q_u8): Likewise.
2900 (vst4q_u16): Likewise.
2901 (vst4q_u32): Likewise.
2902 (vst4q_u64): Likewise.
2903 (vst4q_f16): Likewise.
2904 (vst4q_f32): Likewise.
2905 (vst4q_f64): Likewise.
2906 (vst4q_p64): Likewise.
2907 (vtbx4_s8): Likewise.
2908 (vtbx4_u8): Likewise.
2909 (vtbx4_p8): Likewise.
2910 (vtrn_f32): Likewise.
2911 (vtrn_p8): Likewise.
2912 (vtrn_p16): Likewise.
2913 (vtrn_s8): Likewise.
2914 (vtrn_s16): Likewise.
2915 (vtrn_s32): Likewise.
2916 (vtrn_u8): Likewise.
2917 (vtrn_u16): Likewise.
2918 (vtrn_u32): Likewise.
2919 (vtrnq_f32): Likewise.
2920 (vtrnq_p8): Likewise.
2921 (vtrnq_p16): Likewise.
2922 (vtrnq_s8): Likewise.
2923 (vtrnq_s16): Likewise.
2924 (vtrnq_s32): Likewise.
2925 (vtrnq_u8): Likewise.
2926 (vtrnq_u16): Likewise.
2927 (vtrnq_u32): Likewise.
2928 (vrsqrte_f16): Likewise.
2929 (vrsqrteq_f16): Likewise.
2930 (vsqrt_f16): Likewise.
2931 (vsqrtq_f16): Likewise.
2932 (vabd_f16): Likewise.
2933 (vabdq_f16): Likewise.
2934 (vpadd_f16): Likewise.
2935 (vpaddq_f16): Likewise.
2936 (vpmax_f16): Likewise.
2937 (vpmaxq_f16): Likewise.
2938 (vpmaxnm_f16): Likewise.
2939 (vpmaxnmq_f16): Likewise.
2940 (vpmin_f16): Likewise.
2941 (vpminq_f16): Likewise.
2942 (vpminnm_f16): Likewise.
2943 (vpminnmq_f16): Likewise.
2944 (vrsqrts_f16): Likewise.
2945 (vrsqrtsq_f16): Likewise.
2946
2947 2019-09-25 Richard Biener <rguenther@suse.de>
2948
2949 PR tree-optimization/91896
2950 * tree-vect-loop.c (vectorizable_reduction): The single
2951 def-use cycle optimization cannot apply when there's more
2952 than one pattern stmt involved.
2953
2954 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
2955
2956 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
2957 the 'P' mode iterator, replacing the (removed) SI and DI variants.
2958 (reload_macho_picbase_<mode>): Likewise.
2959
2960 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
2961
2962 * config/rs6000/rs6000.md: Move darwin.md include until
2963 after the definition of the mode iterators.
2964
2965 2019-09-23 Martin Sebor <msebor@redhat.com>
2966
2967 PR tree-optimization/91570
2968 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
2969 non-constant minlen, maxlen and maxbound.
2970
2971 2019-09-24 Richard Biener <rguenther@suse.de>
2972
2973 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
2974 Rename to...
2975 (_stmt_vec_info::cond_reduc_code): ... this.
2976 (_stmt_vec_info::induc_cond_initial_val): Add.
2977 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
2978 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
2979 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
2980 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
2981 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
2982 the reduction code.
2983 (vect_create_epilog_for_reduction): Drop special
2984 induction condition reduction params, pass in reduction code
2985 and simplify.
2986 (vectorizable_reduction): Perform condition reduction kind
2987 selection only at analysis time. Adjust passing on state.
2988
2989 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2990
2991 * config/aarch64/aarch64.md (mov<mode>): Don't call
2992 aarch64_split_dimode_const_store on volatile MEM.
2993
2994 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
2995
2996 * config/aarch64/aarch64-option-extensions.def (fp16fml):
2997 Update hwcap string for fp16fml.
2998
2999 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3000
3001 PR middle-end/91866
3002 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3003 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3004
3005 2019-09-24 Martin Liska <mliska@suse.cz>
3006
3007 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3008 instead of if-elseif-elseif-...
3009 * gimple-expr.c (extract_ops_from_tree): Likewise.
3010 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3011 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3012
3013 2019-09-24 Martin Jambor <mjambor@suse.cz>
3014
3015 PR ipa/91831
3016 * ipa-param-manipulation.c (carry_over_param): Make a method of
3017 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3018 in case of a context mismatch.
3019 (ipa_param_body_adjustments::common_initialization): Adjust call to
3020 carry_over_param.
3021 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3022 private method carry_over_param.
3023
3024 2019-09-24 Martin Jambor <mjambor@suse.cz>
3025
3026 PR ipa/91832
3027 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3028
3029 2019-09-24 Richard Biener <rguenther@suse.de>
3030
3031 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3032 base.
3033
3034 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3035
3036 * config/arm/t-arm (arm-builtins.o): Add dependency on
3037 arm_acle_builtins.def.
3038
3039 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3040
3041 PR target/91823
3042 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3043 canonical CONST_INTs. Use gen_rtvec.
3044
3045 2019-09-23 Richard Biener <rguenther@suse.de>
3046
3047 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3048 avoid adjusting by + 0 or * 1.
3049 (vect_create_epilog_for_reduction): Get reduction code only
3050 when necessary. Deal with adjustment_def only when necessary.
3051
3052 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3053
3054 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3055 memmodel index.
3056
3057 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3058
3059 PR ipa/91835
3060 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3061 "ipa-sra".
3062
3063 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3064
3065 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3066 code. Merge code blocks with common conditionals. Use declared
3067 macro instead of a magic number for PIC level.
3068
3069 2019-09-21 Martin Sebor <msebor@redhat.com>
3070
3071 PR middle-end/91830
3072 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3073 Simplify computation of the offset of the referenced subobject.
3074
3075 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3076
3077 * config/darwin.c (machopic_legitimize_pic_address): Check
3078 for lra not reload.
3079
3080 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3081
3082 * ira-conflicts.c (can_use_same_reg_p): New function.
3083 (process_reg_shuffles): Take an insn parameter. Ignore cases
3084 in which input operand op_num could seemingly never be allocated
3085 to the same register as the destination.
3086 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3087
3088 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3089
3090 * simplify-rtx.c (neg_const_int): Replace with...
3091 (neg_poly_int_rtx): ...this new function.
3092 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3093 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3094 (simplify_plus_minus): Likewise for constant terms here.
3095
3096 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3097
3098 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3099 HOST_WIDE_PRINT_UNSIGNED.
3100
3101 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3102
3103 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3104 character.
3105
3106 2019-09-20 Maya Rashish <coypu@sdf.org>
3107
3108 PR target/86811
3109 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3110 Define to speculation_safe_value_not_needed.
3111
3112 2019-09-20 Richard Biener <rguenther@suse.de>
3113 Uros Bizjak <ubizjak@gmail.com>
3114
3115 PR target/91814
3116 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3117 previous change.
3118 (general_scalar_chain::convert_op): Force not suitable memory
3119 operands to a register.
3120
3121 2019-09-20 Richard Biener <rguenther@suse.de>
3122
3123 PR tree-optimization/91821
3124 * tree-vect-loop.c (check_reduction_path): Check we can compute
3125 reduc_idx.
3126 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3127 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3128 operands in canonical order.
3129 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3130 STMT_VINFO_REDUC_IDX.
3131 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3132 (STMT_VINFO_REDUC_IDX): Likewise.
3133
3134 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3135
3136 PR target/91269
3137 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3138
3139 2019-09-20 Richard Biener <rguenther@suse.de>
3140
3141 PR tree-optimization/91822
3142 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3143 parameter.
3144 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3145 for reduc_index in nested cycles, adjust vectorizable_condition
3146 calls.
3147 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3148 parameter.
3149 (vect_analyze_stmt): Adjust.
3150 (vect_transform_stmt): Likewise.
3151
3152 2019-09-20 Richard Biener <rguenther@suse.de>
3153
3154 PR target/91767
3155 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3156 Ensure there's a sequence point between allocating the new register
3157 and passing a reference to a reg via regno_reg_rtx.
3158
3159 2019-09-20 Martin Jambor <mjambor@suse.cz>
3160
3161 * coretypes.h (cgraph_edge): Declare.
3162 * ipa-param-manipulation.c: Rewrite.
3163 * ipa-param-manipulation.h: Likewise.
3164 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3165 (OBJS): Added ipa-sra.o.
3166 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3167 and ref_p, added fields param_adjustments and performed_splits.
3168 (struct cgraph_clone_info): Remove ags_to_skip and
3169 combined_args_to_skip, new field param_adjustments.
3170 (cgraph_node::create_clone): Changed parameters to use
3171 ipa_param_adjustments.
3172 (cgraph_node::create_virtual_clone): Likewise.
3173 (cgraph_node::create_virtual_clone_with_body): Likewise.
3174 (tree_function_versioning): Likewise.
3175 (cgraph_build_function_type_skip_args): Removed.
3176 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3177 using ipa_param_adjustments.
3178 (clone_of_p): Likewise.
3179 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3180 (build_function_decl_skip_args): Likewise.
3181 (duplicate_thunk_for_node): Adjust parameters using
3182 ipa_param_body_adjustments, copy param_adjustments instead of
3183 args_to_skip.
3184 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3185 (cgraph_node::create_virtual_clone): Likewise.
3186 (cgraph_node::create_version_clone_with_body): Likewise.
3187 (cgraph_materialize_clone): Likewise.
3188 (symbol_table::materialize_all_clones): Likewise.
3189 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3190 ipa_replace_map check.
3191 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3192 (initialize_node_lattices): Make aware that some parameters might have
3193 already been removed.
3194 (want_remove_some_param_p): New function.
3195 (create_specialized_node): Convert to using ipa_param_adjustments and
3196 deal with possibly pre-existing adjustments.
3197 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3198 (output_node_opt_summary): Do not stream removed fields. Stream
3199 parameter adjustments instead of argumetns to skip.
3200 (input_node_opt_summary): Likewise.
3201 (input_node_opt_summary): Likewise.
3202 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3203 * lto-streamer.h (lto_section_type): Likewise.
3204 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3205 param_body_adjs.
3206 (copy_decl_to_var): Declare.
3207 * tree-inline.c (update_clone_info): Do not remap old_tree.
3208 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3209 statements, walk all extra generated statements and remap their
3210 operands.
3211 (redirect_all_calls): Add killed SSA names to a hash set.
3212 (remap_ssa_name): Do not remap killed SSA names.
3213 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3214 half of functionality moved to ipa_param_body_adjustments.
3215 (copy_decl_to_var): Make exported.
3216 (copy_body): Destroy killed_new_ssa_names hash set.
3217 (expand_call_inline): Remap performed splits.
3218 (update_clone_info): Likewise.
3219 (tree_function_versioning): Simplify tree_map processing. Updated to
3220 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3221 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3222 for the new interface.
3223 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3224 (simd_clone_compute_base_data_type): Likewise.
3225 (simd_clone_init_simd_arrays): Adjust for the new interface.
3226 (simd_clone_adjust_argument_types): Likewise.
3227 (struct modify_stmt_info): Likewise.
3228 (ipa_simd_modify_stmt_ops): Likewise.
3229 (ipa_simd_modify_function_body): Likewise.
3230 (simd_clone_adjust): Likewise.
3231 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3232 (type_internals_preclude_sra_p): Make public.
3233 * tree-sra.h: New file.
3234 * ipa-inline-transform.c (save_inline_function_body): Update to
3235 refelct new tree_function_versioning signature.
3236 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3237 ipa_param_adjustments to get current parameter indices.
3238 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3239 (ipcp_update_bits): Likewise.
3240 (ipcp_update_vr): Likewise.
3241 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3242 * ipa-sra.c: New file.
3243 * multiple_target.c (create_target_clone): Update to reflet new type
3244 of create_version_clone_with_body.
3245 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3246 tree_function_versioning.
3247 (modify_function): Update to reflect new type of
3248 tree_function_versioning.
3249 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3250 * passes.def: Remove old IPA-SRA and add new one.
3251 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3252 (make_pass_ipa_sra): Declare.
3253 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3254 ipa_sra_retvalues.
3255 * doc/invoke.texi (ipa-sra-max-replacements): New.
3256
3257 2019-09-19 Martin Sebor <msebor@redhat.com>
3258
3259 PR middle-end/91631
3260 * builtins.c (component_size): Correct trailing array computation,
3261 rename to component_ref_size and move...
3262 (compute_objsize): Adjust.
3263 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3264 (builtin_access::strict): Do not consider memmove.
3265 (builtin_access::write_off): New function.
3266 (builtin_memref::builtin_memref): Initialize refsize.
3267 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3268 refsize.
3269 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3270 Handle refsize.
3271 (builtin_access::builtin_access): Initialize dstoff to destination
3272 refeence offset here instead of in maybe_diag_overlap. Adjust
3273 referencess even to unrelated objects. Adjust sizrange of bounded
3274 string functions to reflect bound. For strcat, adjust destination
3275 sizrange by that of source.
3276 (builtin_access::strcat_overlap): Adjust offsets and sizes
3277 to reflect the increase in destination sizrange above.
3278 (builtin_access::overlap): Do not set dstoff here but instead
3279 in builtin_access::builtin_access.
3280 (check_bounds_or_overlap): Use builtin_access::write_off.
3281 (maybe_diag_access_bounds): Add argument. Add informational notes.
3282 (dump_builtin_memref, dump_builtin_access): New functions.
3283 * tree.c (component_ref_size): ...to here.
3284 * tree.h (component_ref_size): Declare.
3285 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3286 nul in the size of the source string.
3287
3288 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3289
3290 PR c/67224
3291 * doc/cpp.texi: Document support for extended characters in
3292 identifiers.
3293 * doc/cppopts.texi: Likewise.
3294
3295 2019-09-19 Richard Biener <rguenther@suse.de>
3296
3297 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3298 (check_reduction_path): New overload having the path as result.
3299 (vect_is_simple_reduction): From the detected reduction
3300 path build a SLP reduction chain if possible.
3301
3302 2019-09-19 Richard Biener <rguenther@suse.de>
3303
3304 PR target/91814
3305 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3306 Force operand to a register if it isn't nonimmediate_operand.
3307
3308 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3309
3310 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3311 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3312 (logical_op): Remove code attribute.
3313 (logical_OP): Likewise.
3314
3315 2019-09-19 Martin Liska <mliska@suse.cz>
3316
3317 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3318 Use proper casting.
3319
3320 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3321
3322 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3323 registers with %R.
3324
3325 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3326 for NE comparison of TImode values.
3327 (aarch64_emit_load_exclusive): Add support for TImode.
3328 (aarch64_emit_store_exclusive): Likewise.
3329 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3330 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3331 Change iterator from ALLI to ALLI_TI.
3332 (@atomic_compare_and_swap<JUST_TI>): New.
3333 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3334 (aarch64_load_exclusive_pair): New.
3335 (aarch64_store_exclusive_pair): New.
3336 * config/aarch64/iterators.md (JUST_TI): New.
3337
3338 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3339 strong_zero_p for aarch64_track_speculation; unify some code paths;
3340 use aarch64_gen_compare_reg instead of open-coding.
3341
3342 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3343 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3344 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3345 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3346 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3347 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3348 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3349 (atomic_<atomic_op><ALLI>): Likewise.
3350 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3351 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3352 * doc/invoke.texi: Document -moutline-atomics.
3353
3354 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3355
3356 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3357 trivial predicate for condition branch.
3358 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3359 for switch case.
3360 (compute_bb_predicates): Update predicate based on post-dominating
3361 relationship.
3362 (analyze_function_body): Calculate post-dominating information.
3363
3364 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3365
3366 * tree-vectorizer.h (vectorizable_condition): Take an int
3367 reduction index instead of a boolean flag.
3368 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3369 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3370 reductions if the reduction accumulator is the "then" rather
3371 than the "else" value.
3372 (vect_analyze_stmt): Update call accordingly.
3373 (vect_transform_stmt): Likewise.
3374 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3375 asserting that the index is > 0.
3376
3377 2019-09-19 Martin Liska <mliska@suse.cz>
3378
3379 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3380 (sort_congruence_classes_by_decl_uid): Likewise.
3381 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3382 easier sorting.
3383 (sem_item_optimizer::merge_classes): Likewise.
3384
3385 2019-09-19 Richard Biener <rguenther@suse.de>
3386
3387 PR tree-optimization/91812
3388 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3389 volatile loads.
3390
3391 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3392
3393 * defaults.h (TARGET_UNIT): New macro.
3394 (target_unit): New type.
3395 * rtl.h (native_encode_rtx, native_decode_rtx)
3396 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3397 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3398 * rtlanal.c (subreg_lsb_1): Delete.
3399 (subreg_size_lsb): New function.
3400 * simplify-rtx.c: Include rtx-vector-builder.h
3401 (simplify_immed_subreg): Delete.
3402 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3403 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3404 functions.
3405 (simplify_subreg): Use them.
3406 (test_vector_subregs_modes, test_vector_subregs_repeating)
3407 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3408 (test_vector_subregs): New functions.
3409 (test_vector_ops): Call test_vector_subregs for integer vector
3410 modes with at least 2 elements.
3411
3412 2019-09-19 Richard Biener <rguenther@suse.de>
3413
3414 * tree-parloops.c (parloops_is_slp_reduction): Do not set
3415 LOOP_VINFO_OPERANDS_SWAPPED.
3416 (parloops_is_simple_reduction): Likewise.
3417 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
3418 initialize operands_swapped.
3419 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
3420 (vect_is_slp_reduction): Do not swap operands.
3421 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
3422 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
3423
3424 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
3425
3426 PR target/87007
3427 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
3428 Add avx_partial_xmm_update.
3429
3430 2019-09-18 Jim Wilson <jimw@sifive.com>
3431
3432 PR target/91683
3433 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
3434 (riscv_move_integer): Likewise.
3435 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
3436 riscv_move_integer arg.
3437 (riscv_legitimize_move): Likewise.
3438 (riscv_force_temporary): New parameter in_splitter. Don't call
3439 force_reg if true.
3440 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
3441 arg.
3442 (riscv_add_offset): Likewise.
3443 (riscv_split_symbol): New parameter in_splitter. Pass to
3444 riscv_force_temporary.
3445 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
3446 arg.
3447 (riscv_move_integer): New parameter in_splitter. New local
3448 can_create_psuedo. Don't call riscv_split_integer or force_reg when
3449 in_splitter TRUE.
3450 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
3451 riscv_split_symbol, and riscv_force_temporary args.
3452 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
3453 riscv_move_integer arg.
3454 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
3455
3456 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3457
3458 PR target/90878
3459 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
3460 hard register store cost to 6.
3461
3462 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3463
3464 PR target/91446
3465 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
3466 pseudo register store cost from 3 to 6 to make it the same as
3467 QImode and HImode.
3468
3469 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3470
3471 PR target/91738
3472 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
3473 (one_cmpldi2): Likewise.
3474 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
3475 of the constant parts is simple.
3476 * config/arm/iterators.md (LOGICAL): Add new code iterator.
3477 (logical_op): Add new code attribute.
3478 (logical_OP): Likewise.
3479 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
3480 (arm_iordi_operand): Add predicate.
3481 (arm_xordi_operand): Add predicate.
3482
3483 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3484
3485 * config/arm/arm.md (maddsidi4): Remove expander.
3486 (mulsidi3adddi): Remove pattern.
3487 (mulsidi3adddi_v6): Likewise.
3488 (mulsidi3_nov6): Likewise.
3489 (mulsidi3_v6): Likewise.
3490 (umulsidi3): Remove expander.
3491 (umulsidi3_nov6): Remove pattern.
3492 (umulsidi3_v6): Likewise.
3493 (umulsidi3adddi): Likewise.
3494 (umulsidi3adddi_v6): Likewise.
3495 (<Us>mulsidi3): Add combined expander.
3496 (<Us>maddsidi4): Likewise.
3497 (<US>mull): Add combined umull and smull pattern.
3498 (<US>mlal): Likewise.
3499 * config/arm/iterators.md (Us): Add new iterator.
3500
3501 2019-09-18 Richard Biener <rguenther@suse.de>
3502
3503 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
3504 swapping.
3505 (vectorize_fold_left_reduction): Remove assert.
3506 (vectorizable_reduction): Also expect COND_EXPR non-reduction
3507 operand in position 2. Remove assert.
3508
3509 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3510
3511 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
3512 (smulsi3_highpart_nov6): Remove pattern.
3513 (smulsi3_highpart_v6): Likewise.
3514 (umulsi3_highpart): Likewise.
3515 (umulsi3_highpart_nov6): Likewise.
3516 (umulsi3_highpart_v6): Likewise.
3517 (<US>mull_high): Add new combined multiply pattern.
3518
3519 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3520
3521 * config/arm/arm.md (arm_mulsi3): Remove pattern.
3522 (arm_mulsi3_v6): Likewise.
3523 (mulsi3addsi_v6): Likewise.
3524 (mulsi3subsi): Likewise.
3525 (mul): Add new multiply pattern.
3526 (mla): Likewise.
3527 (mls): Likewise.
3528
3529 2019-09-18 Richard Biener <rguenther@suse.de>
3530
3531 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
3532 (parloops_valid_reduction_input_p): Copy from
3533 valid_reduction_input_p.
3534 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
3535 (parloops_needs_fold_left_reduction_p): Copy from
3536 needs_fold_left_reduction_p.
3537 (parloops_is_simple_reduction): Copy from
3538 vect_is_simple_reduction.
3539 (parloops_force_simple_reduction): Copy from
3540 vect_force_simple_reduction.
3541 (gather_scalar_reductions): Adjust.
3542 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
3543 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
3544
3545 2019-09-18 Richard Biener <rguenther@suse.de>
3546
3547 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
3548 * tree-vect-loop.c (get_initial_def_for_reduction): Make
3549 static.
3550 (vect_create_epilog_for_reduction): Remove dead code.
3551
3552 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3553
3554 * varasm.c (assemble_real): Generate canonical const_ints.
3555
3556 2019-09-18 Richard Biener <rguenther@suse.de>
3557
3558 PR lto/91763
3559 * lto-streamer-in.c (input_eh_regions): Move EH init to
3560 lto_materialize_function.
3561 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3562 Likewise.
3563
3564 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3565
3566 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
3567 are INTEGER_CSTs.
3568
3569 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3570
3571 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
3572 of checking specifically for INTEGER_CST.
3573
3574 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3575
3576 * stor-layout.c (compute_record_mode): Operate on poly_uint64
3577 sizes instead of uhwi sizes.
3578
3579 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3580
3581 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
3582 (add_const_value_attribute): Handle CONST_POLY_INT.
3583
3584 2019-09-18 Martin Liska <mliska@suse.cz>
3585
3586 * dbgcnt.def (store_merging): New counter.
3587 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
3588 Use it in store merging.
3589
3590 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3591
3592 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
3593 function.
3594 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3595 * config/arm/arm.c (arm_sched_variable_issue): New function.
3596 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3597
3598 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3599
3600 * config/arm/types.md (no_reservation): New reservation.
3601 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
3602 no_insn here.
3603 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
3604 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
3605 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
3606 * config/arm/arm1020e.md (1020alu_op): Likewise.
3607 * config/arm/arm1026ejs.md (alu_op): Likewise.
3608 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
3609 * config/arm/arm926ejs.md (9_alu_op): Likewise.
3610 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
3611 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
3612 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
3613 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
3614 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
3615 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
3616 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
3617 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
3618 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
3619 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
3620 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
3621 * config/arm/fa526.md (526_alu_op): Likewise.
3622 * config/arm/fa606te.md (606te_alu_op): Likewise.
3623 * config/arm/fa626te.md (626te_alu_op): Likewise.
3624 * config/arm/fa726te.md (726te_alu_op): Likewise.
3625 * config/arm/xgene1.md (xgene1_nop): Likewise.
3626
3627 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3628
3629 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
3630 "no_insn" to "branch".
3631
3632 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3633
3634 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
3635
3636 2019-09-17 Richard Biener <rguenther@suse.de>
3637
3638 PR debug/91772
3639 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
3640 was missing generate locations only once.
3641
3642 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
3643
3644 PR ipa/91089
3645 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
3646 option.
3647 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
3648 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
3649 for switch default case using range analysis information.
3650
3651 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
3652
3653 PR target/91749
3654 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
3655 mode attributed is supported by FDPIC.
3656
3657 2019-09-17 Richard Biener <rguenther@suse.de>
3658
3659 PR tree-optimization/91790
3660 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
3661 use the correct DR for setting up realignment.
3662
3663 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
3664
3665 PR target/91719
3666 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
3667 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
3668 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
3669 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
3670
3671 2019-09-16 Jason Merrill <jason@redhat.com>
3672
3673 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
3674
3675 2019-09-16 Martin Liska <mliska@suse.cz>
3676
3677 * gimple-fold.c (or_comparisons_1): Remove rules moved
3678 to ...
3679 * match.pd: ... here.
3680
3681 2019-09-16 Martin Liska <mliska@suse.cz>
3682
3683 * gimple-fold.c (or_comparisons_1): Remove rules
3684 moved to ...
3685 * match.pd: ... here.
3686
3687 2019-09-16 Martin Liska <mliska@suse.cz>
3688
3689 * genmatch.c (dt_node::append_simplify): Do not print
3690 warning when we have duplicate patterns belonging
3691 to a same simplify rule.
3692 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
3693 (maybe_fold_comparisons_from_match_pd): Handle
3694 tcc_comparison as a results.
3695 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
3696
3697 2019-09-16 Li Jia He <helijia@linux.ibm.com>
3698 Qi Feng <ffengqi@linux.ibm.com>
3699
3700 PR middle-end/88784
3701 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
3702 (x > y && x == XXX_MIN): Optimize into 'false'.
3703 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
3704 (x < y && x != XXX_MAX): Optimize into 'x < y'.
3705 (x < y && x == XXX_MAX): Optimize into 'false'.
3706 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
3707 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
3708 (x <= y || x != XXX_MIN): Optimize into 'true'.
3709 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
3710 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
3711 (x >= y || x != XXX_MAX): Optimize into 'true'.
3712 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
3713
3714 2019-09-16 Li Jia He <helijia@linux.ibm.com>
3715 Martin Liska <mliska@suse.cz>
3716
3717 * gimple-fold.c (and_comparisons_1): Add type as first
3718 argument.
3719 (and_var_with_comparison): Likewise.
3720 (and_var_with_comparison_1): Likewise.
3721 (or_comparisons_1): Likewise.
3722 (or_var_with_comparison): Likewise.
3723 (or_var_with_comparison_1): Likewise.
3724 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
3725 (maybe_fold_or_comparisons): Likewise.
3726 (maybe_fold_comparisons_from_match_pd): New.
3727 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
3728 (maybe_fold_or_comparisons): Likewise.
3729 * gimple.c (gimple_size): Make it public and add num_ops argument.
3730 (gimple_init): New function.
3731 (gimple_alloc): Call gimple_init.
3732 * gimple.h (gimple_size): New.
3733 (gimple_init): Likewise.
3734 * tree-if-conv.c (fold_or_predicates): Pass type.
3735 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3736 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
3737 (optimize_vec_cond_expr): Likewise.
3738 (ovce_extract_ops): Return type of conditional expression.
3739 * tree-ssanames.c (init_ssa_name_imm_use): New.
3740 (make_ssa_name_fn): Use init_ssa_name_imm_use.
3741 * tree-ssanames.h (init_ssa_name_imm_use): New.
3742
3743 2019-09-16 Richard Biener <rguenther@suse.de>
3744
3745 PR tree-optimization/91756
3746 PR tree-optimization/87132
3747 * tree-ssa-alias.h (enum translate_flags): New.
3748 (get_continuation_for_phi): Use it instead of simple bool flag.
3749 (walk_non_aliased_vuses): Likewise.
3750 * tree-ssa-alias.c (maybe_skip_until): Adjust.
3751 (get_continuation_for_phi): When looking across backedges only
3752 disallow valueization.
3753 (walk_non_aliased_vuses): Adjust.
3754 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
3755 if requested.
3756
3757 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
3758
3759 PR middle-end/80791
3760 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
3761 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
3762 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
3763 * target.def (have_count_reg_decr_p): New hook.
3764 (doloop_cost_for_generic): Likewise.
3765 (doloop_cost_for_address): Likewise.
3766 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
3767 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
3768 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
3769 * doc/tm.texi: Regenerate.
3770 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
3771 addend.
3772 (record_group): Init doloop_p.
3773 (add_candidate_1): Add optional argument doloop, change the handlings
3774 accordingly.
3775 (add_candidate): Likewise.
3776 (generic_predict_doloop_p): Update attribute.
3777 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
3778 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
3779 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
3780 MIN_EXPR.
3781 (get_computation_cost): Update for doloop IV cand extra cost.
3782 (determine_group_iv_cost_cond): Update for doloop IV cand.
3783 (determine_iv_cost): Likewise.
3784 (ivopts_estimate_reg_pressure): Likewise.
3785 (may_eliminate_iv): Update handlings for doloop IV cand.
3786 (add_iv_candidate_for_doloop): New function.
3787 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
3788 (iv_ca_set_no_cp): Update for doloop IV cand.
3789 (iv_ca_set_cp): Likewise.
3790 (iv_ca_dump): Dump register cost.
3791 (find_doloop_use): New function.
3792 (analyze_and_mark_doloop_use): Likewise.
3793 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
3794
3795 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
3796
3797 PR middle-end/91708
3798 * cse.c (cse_insn): Do not replace anything with a
3799 MEM.
3800
3801 2019-09-13 Ian Lance Taylor <iant@golang.org>
3802
3803 * doc/invoke.texi (Optimize Options): Fix typo.
3804
3805 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
3806
3807 PR tree-optimization/89386
3808 * config/i386/sse.md (smulhrs<mode>3): New expander.
3809 (smulhrsv4hi3): Ditto.
3810
3811 2019-09-12 Richard Biener <rguenther@suse.de>
3812
3813 PR tree-optimization/91750
3814 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
3815 in the type of the evolution.
3816
3817 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
3818
3819 PR tree-optimization/89386
3820 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
3821 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
3822 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
3823 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
3824 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
3825 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
3826 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
3827 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
3828 (su, r): Handle the unspecs above.
3829 (bt): New int attribute.
3830 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
3831 * internal-fn.c (first_commutative_argument): Commutativity info for
3832 above.
3833 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
3834 (umulhrs_optab): New optabs.
3835 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
3836 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
3837 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
3838 function.
3839 (vect_vect_recog_func_ptrs): Add it.
3840
3841 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
3842
3843 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
3844 code.
3845
3846 2019-09-11 Nathan Sidwell <nathan@acm.org>
3847
3848 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
3849 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
3850
3851 2019-09-11 Richard Biener <rguenther@suse.de>
3852
3853 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
3854 * lto-wrapper.c (merge_and_complain): Pick up -g.
3855 (append_compiler_options): Likewise.
3856 (run_gcc): Re-instantiate handling -g0 at link-time.
3857 * doc/invoke.texi (flto): Document debug info generation.
3858
3859 2019-09-11 Richard Biener <rguenther@suse.de>
3860
3861 PR tree-optimization/90387
3862 * vr-values.c (vr_values::extract_range_basic): After inlining
3863 simplify non-constant __builtin_constant_p to false.
3864
3865 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
3866
3867 PR rtl-optimization/89795
3868 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
3869 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
3870
3871 2019-09-11 Jakub Jelinek <jakub@redhat.com>
3872
3873 PR tree-optimization/91723
3874 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
3875 instead of pointer equality when checking if argument vectypes are
3876 the same.
3877
3878 PR middle-end/91725
3879 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
3880 of get_nonzero_bits, only call it for integral types.
3881
3882 2019-09-11 Richard Biener <rguenther@suse.de>
3883
3884 Revert
3885 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
3886
3887 * match.pd: Add flag_unsafe_math_optimizations check
3888 before deciding on the widest type in a binary math operation.
3889
3890 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3891
3892 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
3893 and CALL_REALLY_USED_REGISTERS must be defined, and that
3894 CALL_REALLY_USED_REGISTERS is preferred.
3895 * doc/tm.texi: Regenerate.
3896 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
3897 (call_really_used_regs): Likewise.
3898 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
3899 CALL_REALLY_USED_REGISTERS are defined.
3900 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
3901 initial value if defined.
3902 (initial_call_really_used_regs): Delete.
3903 (saved_call_really_used_regs): Likewise.
3904 (CALL_REALLY_USED_REGNO_P): Likewise.
3905 (init_reg_sets): Remove handling of call_really_used_regs.
3906 (save_register_info, restore_register_info, globalize_reg): Likewise.
3907 (init_reg_sets_1): Likewise. Use call_used_regs instead of
3908 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
3909 outside operand_reg_set.
3910 (fix_register): Don't change call_used_regs if
3911 CALL_REALLY_USED_REGISTERS is defined.
3912 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
3913 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
3914 instead of call_really_used_regs.
3915 (csky_conditional_register_usage): Remove the old handling of
3916 call_used_regs and change the handling of call_really_used_regs
3917 to use call_used_regs instead.
3918 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
3919 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
3920 making a register fixed.
3921 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
3922 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
3923 instead of call_really_used_regs.
3924 (m32r_conditional_register_usage): Don't set call_used_regs when
3925 making a register fixed.
3926 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
3927 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
3928 instead of call_really_used_regs.
3929 (mips_interrupt_extra_call_saved_reg_p): Likewise.
3930 (mips_cfun_call_saved_reg_p): Likewise.
3931 (mips_swap_registers): Remove the old handling of call_used_regs
3932 and change the handling of call_really_used_regs to use call_used_regs
3933 instead.
3934 (mips_conditional_register_usage): Likewise.
3935 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
3936 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
3937 instead of call_really_used_regs.
3938 (mn10300_get_live_callee_saved_regs): Likewise.
3939 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
3940 (mn10300_conditional_register_usage): Don't set call_used_regs when
3941 making a register fixed.
3942 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
3943 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
3944 Remove the old handling of call_used_regs and change the handling
3945 of call_really_used_regs to use call_used_regs instead.
3946 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
3947 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
3948 instead of call_really_used_regs.
3949 (s390_register_info_gprtofpr, s390_register_info): Likewise.
3950 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
3951 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
3952 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
3953 (s390_conditional_register_usage): Remove the old handling of
3954 call_used_regs and change the handling of call_really_used_regs
3955 to use call_used_regs instead.
3956 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
3957 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
3958 (sh_fix_range, reg_unused_after): Likewise.
3959 (sh_conditional_register_usage): Remove the old handling of
3960 call_used_regs and change the handling of call_really_used_regs
3961 to use call_used_regs instead.
3962 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
3963 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
3964 call_used_regs when making a register fixed.
3965 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
3966 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
3967 call_used_regs when making a register fixed.
3968 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
3969 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
3970 set call_used_regs when making a register fixed.
3971 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
3972 * config/visium/visium.c (visium_conditional_register_usage): Remove
3973 the old handling of call_used_regs and change the handling of
3974 call_really_used_regs to use call_used_regs instead.
3975
3976 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3977
3978 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
3979 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
3980 * reginfo.c (call_used_regs): New macro.
3981
3982 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3983
3984 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
3985 fixed_regs test.
3986 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
3987 (bpf_expand_epilogue): Likewise.
3988 * config/c6x/c6x.c (c6x_save_reg): Likewise.
3989 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
3990 (ft32_expand_epilogue): Likewise.
3991 * config/i386/i386.c (ix86_save_reg): Likewise.
3992 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
3993 (moxie_expand_epilogue): Likewise.
3994 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
3995 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
3996 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
3997
3998 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3999
4000 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4001 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4002 instead of testing call_used_regs directly.
4003 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4004 (aarch64_components_for_bb): Likewise.
4005 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4006 * config/arc/arc.c (arc_must_save_register): Likewise.
4007 (arc_epilogue_uses): Likewise.
4008 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4009 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4010 (arm_compute_save_reg0_reg12_mask): Likewise.
4011 (arm_compute_save_core_reg_mask): Likewise.
4012 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4013 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4014 (cmse_nonsecure_entry_clear_before_return): Likewise.
4015 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4016 (arm_expand_epilogue): Likewise.
4017 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4018 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4019 (_reg_unused_after): Likewise.
4020 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4021 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4022 (add_to_reg, hwloop_optimize): Likewise.
4023 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4024 (bpf_expand_epilogue): Likewise.
4025 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4026 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4027 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4028 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4029 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4030 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4031 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4032 * config/frv/frv.c (frv_stack_info): Likewise.
4033 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4034 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4035 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4036 (move_callee_saved_registers): Likewise.
4037 * config/h8300/h8300.c (byte_reg): Likewise.
4038 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4039 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4040 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4041 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4042 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4043 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4044 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4045 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4046 * config/m32c/m32c.c (need_to_save): Likewise.
4047 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4048 * config/mcore/mcore.c (calc_live_regs): Likewise.
4049 * config/microblaze/microblaze.c (microblaze_must_save_register):
4050 Likewise.
4051 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4052 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4053 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4054 (mmix_expand_epilogue): Likewise.
4055 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4056 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4057 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4058 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4059 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4060 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4061 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4062 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4063 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4064 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4065 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4066 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4067 * config/rl78/rl78.c (need_to_save): Likewise.
4068 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4069 (rs6000_stack_info, generate_set_vrsave): Likewise.
4070 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4071 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4072 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4073 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4074 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4075 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4076 (save_local_or_in_reg_p): Likewise.
4077 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4078 (xstormy16_epilogue_uses): Likewise.
4079 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4080 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4081 * config/v850/v850.c (compute_register_save_size): Likewise.
4082 * config/vax/vax.c (vax_expand_prologue): Likewise.
4083 * config/visium/visium.c (visium_save_reg_p): Likewise.
4084 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4085 * cselib.c (cselib_process_insn): Likewise.
4086 * df-scan.c (df_get_entry_block_def_set): Likewise.
4087 * function.c (aggregate_value_p): Likewise.
4088 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4089 * ira-lives.c (process_bb_node_lives): Likewise.
4090 * ira.c (do_reload): Likewise.
4091 * lra-lives.c (process_bb_lives): Likewise.
4092 * lra-remat.c (lra_remat): Likewise.
4093 * lra.c (lra): Likewise.
4094 * postreload.c (reload_combine_recognize_pattern): Likewise.
4095 (reload_cse_move2add): Likewise.
4096 * recog.c (peep2_find_free_register): Likewise.
4097 * regrename.c (check_new_reg_p): Likewise.
4098 * reload.c (find_equiv_reg): Likewise.
4099 * reload1.c (reload, find_reg): Likewise.
4100 * sel-sched.c (init_hard_regs_data): Likewise.
4101
4102 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4103
4104 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4105 regs_invalidated_by_call & ~fixed_reg_set instead of
4106 call_used_or_fixed_regs & ~fixed_reg_set.
4107 * config/sh/sh.c (output_stack_adjust): Likewise.
4108
4109 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4110
4111 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4112 (call_used_reg_set): Delete.
4113 (call_used_or_fixed_regs): New macro.
4114 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4115 of call_used_reg_set.
4116 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4117 instead of call_used_regs.
4118 (save_call_clobbered_regs): Likewise.
4119 * cfgcleanup.c (old_insns_match_p): Likewise.
4120 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4121 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4122 Likewise.
4123 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4124 * config/sh/sh.c (output_stack_adjust): Likewise.
4125 * final.c (collect_fn_hard_reg_usage): Likewise.
4126 * ira-build.c (ira_build): Likewise.
4127 * ira-color.c (calculate_saved_nregs): Likewise.
4128 (allocno_reload_assign, calculate_spill_cost): Likewise.
4129 * ira-conflicts.c (ira_build_conflicts): Likewise.
4130 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4131 * ira-lives.c (process_bb_node_lives): Likewise.
4132 * ira.c (setup_reg_renumber): Likewise.
4133 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4134 * lra-constraints.c (need_for_call_save_p): Likewise.
4135 (need_for_split_p, inherit_in_ebb): Likewise.
4136 * lra-lives.c (process_bb_lives): Likewise.
4137 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4138 * postreload.c (reload_combine): Likewise.
4139 * regrename.c (find_rename_reg): Likewise.
4140 * reload1.c (reload_as_needed): Likewise.
4141 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4142 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4143 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4144
4145 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4146
4147 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4148 (no_caller_save_reg_set): Delete.
4149 * caller-save.c (init_caller_save): Don't initialize it.
4150 * ira-conflicts.c (ira_build_conflicts): Calculate
4151 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4152
4153 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4154
4155 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4156 (target_hard_regs::x_savable_regs): New field.
4157 (call_fixed_reg_set): Delete.
4158 (savable_regs): New macro,
4159 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4160 (init_reg_sets_1): Likewise. Initialize savable_regs.
4161 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4162 for all registers. Set savable_regs instead of call_fixed_reg_set.
4163 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4164 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4165 * config/sh/sh.c (output_stack_adjust): Likewise.
4166
4167 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4168
4169 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4170 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4171 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4172
4173 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4174
4175 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4176 * rtlanal.c (get_call_rtx_from): Likewise.
4177 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4178 than the pattern to get_call_rtx_from.
4179 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4180 an rtx_insn * instead of an rtx.
4181 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4182
4183 2019-09-10 Martin Liska <mliska@suse.cz>
4184
4185 * common.opt: Use newly added WarnRemoved.
4186 * config/aarch64/aarch64.opt: Likewise.
4187 * config/arm/arm.opt: Likewise.
4188 * config/i386/i386.opt: Likewise.
4189 * config/ia64/ia64.opt: Likewise.
4190 * config/rs6000/rs6000.opt: Likewise.
4191 * doc/options.texi: Document WarnRemoved properly.
4192 * dwarf2out.c (gen_producer_string): Handle renamed
4193 OPT_SPECIAL_warn_removed.
4194 * lto-opts.c (lto_write_options): Likewise.
4195 * lto-wrapper.c (merge_and_complain): Likewise.
4196 * opts-common.c (decode_cmdline_option): Likewise.
4197 (prune_options): Likewise.
4198 (read_cmdline_option): Likewise.
4199 (control_warning_option): Likewise.
4200 * opts.c (print_filtered_help): Likewise.
4201 * optc-gen.awk: Parse for WarnRemoved and make usage
4202 of Deprecated an error.
4203 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4204
4205 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4206
4207 * doc/install.texi: Fix syntax for html generation.
4208
4209 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4210
4211 PR middle-end/91680
4212 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4213 the shift type to type.
4214
4215 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4216
4217 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4218 FDPIC mode.
4219 (stack_protect_combined_test_insn): Likewise.
4220
4221 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4222 Mickaël Guêné <mickael.guene@st.com>
4223
4224 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4225 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4226 (load_tp_soft_fdpic): New pattern.
4227 (load_tp_soft): Disable in FDPIC mode.
4228
4229 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4230 Mickaël Guêné <mickael.guene@st.com>
4231
4232 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4233 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4234 (arm_call_tls_get_addr): Add FDPIC support.
4235 (legitimize_tls_address): Likewise.
4236 (arm_emit_tls_decoration): Likewise.
4237
4238 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4239 Mickaël Guêné <mickael.guene@st.com>
4240
4241 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4242 support.
4243 (arm_trampoline_init): Likewise.
4244 (arm_trampoline_adjust_address): Likewise.
4245 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4246
4247 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4248 Mickaël Guêné <mickael.guene@st.com>
4249
4250 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4251 (legitimize_pic_address): Enforce binding rules on function
4252 pointers in FDPIC mode.
4253 (arm_assemble_integer): Likewise.
4254
4255 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4256 Mickaël Guêné <mickael.guene@st.com>
4257
4258 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4259 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4260 FDPIC.
4261
4262 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4263 Mickaël Guêné <mickael.guene@st.com>
4264
4265 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4266 field.
4267
4268 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4269 Mickaël Guêné <mickael.guene@st.com>
4270
4271 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4272 in FDPIC mode.
4273 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4274 new function.
4275 * config/arm/arm.c (arm_option_override): Define pic register to
4276 FDPIC_REGNUM.
4277 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4278 have no decl or go through PLT.
4279 (calculate_pic_address_constant): New function.
4280 (legitimize_pic_address): Call calculate_pic_address_constant.
4281 (arm_load_pic_register): Handle TARGET_FDPIC.
4282 (arm_is_segment_info_known): New function.
4283 (arm_pic_static_addr): Add support for FDPIC.
4284 (arm_load_function_descriptor): New function.
4285 (arm_emit_call_insn): Add support for FDPIC.
4286 (arm_assemble_integer): Add support for FDPIC.
4287 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4288 Define. (FDPIC_REGNUM): New define.
4289 * config/arm/arm.md (call): Add support for FDPIC.
4290 (call_value): Likewise.
4291 (restore_pic_register_after_call): New pattern.
4292 (untyped_call): Disable if FDPIC.
4293 (untyped_return): Likewise.
4294 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4295
4296 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4297 Mickaël Guêné <mickael.guene@st.com>
4298
4299 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4300 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4301 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4302 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4303 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4304 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4305 * config/arm/uclinuxfdpiceabi.h: New file.
4306
4307 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4308
4309 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4310
4311 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4312 Mickaël Guêné <mickael.guene@st.com>
4313
4314 * config/arm/arm.opt: Add -mfdpic option.
4315 * doc/invoke.texi: Add documentation for -mfdpic.
4316
4317 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4318
4319 * expmed.c (extract_bit_field): Update function comment
4320 regarding alt_rtl.
4321 * expr.c (expand_expr_real): Update function comment
4322 regarding alt_rtl.
4323 (expand_misaligned_mem_ref): New helper function.
4324 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4325 Remove duplicate assignment to "base" at case MEM_REF.
4326 Remove a shadowed variable "unsignedp" at case VCE.
4327
4328 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4329
4330 * regset.h (regs_invalidated_by_call_regset): Delete.
4331 (fixed_reg_set_regset): Likewise.
4332 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4333 (fixed_reg_set_regset, persistent_obstack): Likewise.
4334 (init_reg_sets_1, globalize_reg): Update accordingly.
4335 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4336 instead of a bitmap.
4337 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4338 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4339 instead of regs_invalidated_by_call_regset.
4340 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4341 * df-scan.c (df_scan_start_dump): Likewise.
4342 * dse.c (copy_fixed_regs): Likewise.
4343 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4344
4345 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4346
4347 * array-traits.h: New file.
4348 * coretypes.h (array_traits, bitmap_view): New types.
4349 * bitmap.h: Include "array-traits.h"
4350 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4351 (base_bitmap_view, bitmap_view): New classes.
4352 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4353 * hard-reg-set.h: Include array-traits.h.
4354 (array_traits<HARD_REG_SET>): New struct.
4355 * regset.h (IOR_REG_SET_HRS): New macro.
4356 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4357 rather than iterating over each hard register.
4358 * sched-deps.c (sched_analyze_insn): Likewise.
4359 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4360
4361 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4362
4363 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4364 instead of a HARD_REG_SET *.
4365 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4366 (ira_build): Update call accordingly.
4367 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4368
4369 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4370
4371 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4372 (HARD_REG_SET::operator!=): Likewise.
4373 (hard_reg_set_equal_p): Delete.
4374 * cfgcleanup.c (old_insns_match_p): Use == instead of
4375 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4376 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4377 (add_allocno_hard_regs_to_forest): Likewise.
4378 (setup_allocno_available_regs_num): Likewise.
4379 * ira.c (setup_pressure_classes): Likewise.
4380 (setup_allocno_and_important_classes): Likewise.
4381 (setup_reg_class_relations): Likewise.
4382 * lra-lives.c (process_bb_lives): Likewise.
4383 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4384
4385 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4386
4387 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4388 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4389 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4390 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4391 Likewise.
4392 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4393 * ira.c (setup_reg_renumber): Likewise.
4394 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4395 * regrename.c (regrename_find_superclass): Likewise.
4396 * reload1.c (find_reg): Likewise.
4397
4398 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4399
4400 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4401 * caller-save.c (setup_save_areas): Use "&~" instead of
4402 AND_COMPL_HARD_REG_SET.
4403 (save_call_clobbered_regs): Likewise.
4404 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4405 Likewise.
4406 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4407 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4408 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4409 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4410 (mips_conditional_register_usage): Likewise.
4411 * config/sh/sh.c (output_stack_adjust): Likewise.
4412 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4413 (setup_profitable_hard_regs): Likewise.
4414 (get_conflict_and_start_profitable_regs): Likewise.
4415 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4416 (ira_build_conflicts): Likewise.
4417 * ira-costs.c (restrict_cost_classes): Likewise.
4418 (setup_regno_cost_classes_by_aclass): Likewise.
4419 * ira-lives.c (process_bb_node_lives): Likewise.
4420 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
4421 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
4422 (setup_allocno_and_important_classes, setup_class_translate_array)
4423 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
4424 Likewise.
4425 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4426 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4427 (process_alt_operands, inherit_in_ebb): Likewise.
4428 * lra-eliminations.c (update_reg_eliminate): Likewise.
4429 * lra-lives.c (process_bb_lives): Likewise.
4430 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
4431 * resource.c (find_dead_or_set_registers): Likewise.
4432 (mark_target_live_regs): Likewise.
4433 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
4434 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4435 (implicit_clobber_conflict_p): Likewise.
4436 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4437 (try_shrink_wrapping): Likewise.
4438
4439 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4440
4441 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
4442 (HARD_REG_SET::operator|=): Likewise.
4443 (IOR_HARD_REG_SET): Delete.
4444 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
4445 IOR_HARD_REG_SET.
4446 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4447 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
4448 * final.c (collect_fn_hard_reg_usage): Likewise.
4449 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
4450 * ira-build.c (merge_hard_reg_conflicts): Likewise.
4451 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
4452 (propagate_some_info_from_allocno): Likewise.
4453 (copy_info_to_removed_store_destinations): Likewise.
4454 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
4455 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
4456 (fast_allocation): Likewise.
4457 * ira-conflicts.c (ira_build_conflicts): Likewise.
4458 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
4459 (process_bb_node_lives): Likewise.
4460 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
4461 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4462 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4463 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
4464 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
4465 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
4466 (process_bb_lives): Likewise.
4467 * lra-spills.c (assign_spill_hard_regs): Likewise.
4468 * postreload.c (reload_combine): Likewise.
4469 * reginfo.c (init_reg_sets_1): Likewise.
4470 * regrename.c (merge_overlapping_regs, find_rename_reg)
4471 (merge_chains): Likewise.
4472 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
4473 (find_reload_regs, finish_spills, choose_reload_regs_init)
4474 (emit_reload_insns): Likewise.
4475 * reorg.c (redundant_insn): Likewise.
4476 * resource.c (find_dead_or_set_registers, mark_set_resources)
4477 (mark_target_live_regs): Likewise.
4478 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4479 * sched-deps.c (sched_analyze_insn): Likewise.
4480 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4481 (find_best_reg_for_expr): Likewise.
4482 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4483
4484 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4485
4486 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
4487 (HARD_REG_SET::operator&): Likewise.
4488 (AND_HARD_REG_SET): Delete.
4489 * caller-save.c (setup_save_areas): Use "&" instead of
4490 AND_HARD_REG_SET.
4491 (save_call_clobbered_regs): Likewise.
4492 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4493 * config/m32c/m32c.c (reduce_class): Likewise.
4494 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4495 * final.c (get_call_reg_set_usage): Likewise.
4496 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
4497 (setup_left_conflict_sizes_p): Likewise.
4498 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4499 (ira_build_conflicts): Likewise.
4500 * ira-costs.c (restrict_cost_classes): Likewise.
4501 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
4502 (setup_reg_class_relations): Likewise.
4503 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
4504 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
4505 * resource.c (find_dead_or_set_registers): Likewise.
4506 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4507
4508 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4509
4510 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
4511 (COMPL_HARD_REG_SET): Delete.
4512 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
4513 of COMPL_HARD_REG_SET.
4514 (try_rename_operands): Likewise.
4515 * config/sh/sh.c (push_regs): Likewise.
4516 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4517 * lra-constraints.c (contains_reg_p): Likewise.
4518 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
4519
4520 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4521
4522 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
4523 * caller-save.c (save_call_clobbered_regs): Use assignment instead
4524 of COPY_HARD_REG_SET.
4525 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
4526 (epiphany_conditional_register_usage): Likewise.
4527 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4528 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4529 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
4530 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4531 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
4532 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4533 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
4534 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4535 * config/sh/sh.c (output_stack_adjust): Likewise.
4536 * final.c (collect_fn_hard_reg_usage): Likewise.
4537 (get_call_reg_set_usage): Likewise.
4538 * ira-build.c (ira_create_object, remove_low_level_allocnos)
4539 (ira_flattening): Likewise.
4540 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
4541 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
4542 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
4543 (ira_reassign_pseudos): Likewise.
4544 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4545 (ira_build_conflicts): Likewise.
4546 * ira-costs.c (restrict_cost_classes): Likewise.
4547 (setup_regno_cost_classes_by_aclass): Likewise.
4548 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
4549 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
4550 (setup_stack_reg_pressure_class, setup_pressure_classes)
4551 (setup_allocno_and_important_classes, setup_class_translate_array)
4552 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
4553 (ira_setup_eliminable_regset): Likewise.
4554 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4555 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4556 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4557 (process_alt_operands, inherit_in_ebb): Likewise.
4558 * lra-lives.c (process_bb_lives): Likewise.
4559 * lra-spills.c (assign_spill_hard_regs): Likewise.
4560 * lra.c (lra): Likewise.
4561 * mode-switching.c (new_seginfo): Likewise.
4562 * postreload.c (reload_combine): Likewise.
4563 * reg-stack.c (straighten_stack): Likewise.
4564 * reginfo.c (save_register_info, restore_register_info): Likewise.
4565 (init_reg_sets_1, record_subregs_of_mode): Likewise
4566 * regrename.c (create_new_chain, rename_chains): Likewise.
4567 * reload1.c (order_regs_for_reload, find_reg): Likewise.
4568 (find_reload_regs): Likewise.
4569 * resource.c (find_dead_or_set_registers): Likewise.
4570 (mark_target_live_regs): Likewise.
4571 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4572
4573 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4574
4575 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
4576 (note_pattern_stores): Declare.
4577 (note_stores): Take an rtx_insn *.
4578 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
4579 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
4580 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
4581 (note_stores): Take an rtx_insn * as argument and process
4582 CALL_INSN_FUNCTION_USAGE. Rename old function to...
4583 (note_pattern_stores): ...this.
4584 (find_first_parameter_load): Pass the insn rather than
4585 its pattern to note_stores.
4586 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
4587 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
4588 (insert_one_insn): Likewise.
4589 * combine.c (combine_instructions): Likewise.
4590 (likely_spilled_retval_p): Likewise.
4591 (try_combine): Use note_pattern_stores instead of note_stores.
4592 (record_dead_and_set_regs): Pass the insn rather than its pattern
4593 to note_stores.
4594 (reg_dead_at_p): Likewise.
4595 * config/bfin/bfin.c (workaround_speculation): Likewise.
4596 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
4597 rather than an rtx.
4598 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
4599 instead of note_stores.
4600 (frv_optimize_membar_local): Pass the insn rather than its pattern
4601 to note_stores.
4602 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4603 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
4604 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
4605 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
4606 (mips_reorg_process_insns): Likewise.
4607 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
4608 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
4609 rather than rtxes.
4610 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
4611 its pattern to note_stores.
4612 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
4613 of note_stores.
4614 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
4615 the insn to note_stores.
4616 (prescan_insns_for_dce): Update call accordingly.
4617 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
4618 to note_stores.
4619 * df-problems.c (can_move_insns_across): Likewise.
4620 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
4621 * function.c (assign_parm_setup_reg): Likewise.
4622 * gcse-common.c (record_last_mem_set_info_common): Likewise.
4623 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
4624 (single_set_gcse): Likewise.
4625 * ira.c (validate_equiv_mem): Likewise.
4626 (update_equiv_regs): Use note_pattern_stores rather than note_stores
4627 for no_equiv.
4628 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
4629 pattern to note_stores.
4630 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4631 * loop-iv.c (simplify_using_initial_values): Likewise.
4632 * mode-switching.c (optimize_mode_switching): Likewise.
4633 * optabs.c (emit_libcall_block_1): Likewise.
4634 (expand_atomic_compare_and_swap): Likewise.
4635 * postreload-gcse.c (load_killed_in_block_p): Likewise.
4636 (record_opr_changes): Likewise. Remove explicit handling of
4637 CALL_INSN_FUNCTION_USAGE.
4638 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
4639 * regcprop.c (kill_clobbered_values): Likewise.
4640 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
4641 to note_stores.
4642 * regrename.c (build_def_use): Likewise.
4643 * reload1.c (reload): Use note_pattern_stores instead of note_stores
4644 for mark_not_eliminable.
4645 (reload_as_needed): Pass the insn rather than its pattern
4646 to note_stores.
4647 (emit_output_reload_insns): Likewise.
4648 * resource.c (mark_target_live_regs): Likewise.
4649 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4650 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
4651 instead of note_stores.
4652 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
4653 its pattern to note_stores.
4654 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
4655 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
4656
4657 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4658
4659 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
4660 than a #define. Use a structure rather than an array as the
4661 fallback definition. Remove special cases for low array sizes.
4662 (const_hard_reg_set): New typedef.
4663 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
4664 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
4665 (hard_reg_set_empty_p): Likewise.
4666 (SET_HARD_REG_BIT): Use a function rather than a macro to
4667 handle the case in which HARD_REG_SET is a structure.
4668 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
4669 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4670 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4671 (IOR_COMPL_HARD_REG_SET): Likewise.
4672 (hard_reg_set_iterator::pset): Constify the pointer target.
4673 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
4674 of a "const HARD_REG_SET". Update the handling of non-integer
4675 HARD_REG_SETs.
4676 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
4677 * reload.h: Likewise.
4678 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
4679 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
4680 of a "const HARD_REG_SET".
4681 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
4682 (range_in_hard_reg_set_p): Likewise.
4683 * ira-costs.c (restrict_cost_classes): Likewise.
4684 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
4685 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
4686 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
4687 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
4688 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
4689 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
4690 take an unsigned int and open-code the HARD_REG_SET operations.
4691
4692 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4693
4694 * Makefile.in (OBJS): Remove bt-load.o.
4695 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
4696 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
4697 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
4698 document that the option no longer does anything.
4699 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
4700 * target.def (branch_target_register_class): Delete.
4701 (branch_target_register_callee_saved): Likewise.
4702 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
4703 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
4704 * doc/tm.texi: Regenerate.
4705 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
4706 (make_pass_branch_target_load_optimize2): Likewise.
4707 * passes.def (pass_branch_target_load_optimize1): Likewise.
4708 (pass_branch_target_load_optimize2): Likewise.
4709 * targhooks.h (default_branch_target_register_class): Likewise.
4710 * targhooks.c (default_branch_target_register_class): Likewise.
4711 * opt-suggestions.c (test_completion_valid_options): Remove
4712 -fbtr-bb-exclusive from the list of test options.
4713 * bt-load.c: Remove.
4714
4715 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4716
4717 * match.pd: Add flag_unsafe_math_optimizations check
4718 before deciding on the widest type in a binary math operation.
4719
4720 2019-09-09 Martin Liska <mliska@suse.cz>
4721
4722 * config/i386/i386.opt: Update comment of removed
4723 options that are preserved only for backward
4724 compatibility.
4725
4726 2019-09-09 Jakub Jelinek <jakub@redhat.com>
4727
4728 PR target/87853
4729 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
4730 instead of __v16qs.
4731
4732 PR target/91704
4733 * config/i386/avxintrin.h (__v32qs): New typedef.
4734 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
4735 instead of __v32qi.
4736
4737 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4738
4739 * doc/invoke.texi (Option Summary): Cover eBPF.
4740 (eBPF Options): New section.
4741 * doc/extend.texi (BPF Built-in Functions): Likewise.
4742 (BPF Kernel Helpers): Likewise.
4743
4744 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4745
4746 * config.gcc: Support for bpf-*-* targets.
4747 * common/config/bpf/bpf-common.c: New file.
4748 * config/bpf/t-bpf: Likewise.
4749 * config/bpf/predicates.md: Likewise.
4750 * config/bpf/constraints.md: Likewise.
4751 * config/bpf/bpf.opt: Likewise.
4752 * config/bpf/bpf.md: Likewise.
4753 * config/bpf/bpf.h: Likewise.
4754 * config/bpf/bpf.c: Likewise.
4755 * config/bpf/bpf-protos.h: Likewise.
4756 * config/bpf/bpf-opts.h: Likewise.
4757 * config/bpf/bpf-helpers.h: Likewise.
4758 * config/bpf/bpf-helpers.def: Likewise.
4759
4760 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4761
4762 * doc/sourcebuild.texi (Effective-Target Keywords): Document
4763 indirect_calls.
4764
4765 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4766
4767 * opt-functions.awk (integer_range_info): Make sure values are in
4768 numeric context before operating with them.
4769
4770 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
4771
4772 * genemit.c (gen_split): Print the filename and line number where the
4773 splitter (or peephole2) was defined, to the dump file.
4774
4775 2019-09-07 Jakub Jelinek <jakub@redhat.com>
4776
4777 PR tree-optimization/91665
4778 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
4779 incompatible with the type of PHI result.
4780
4781 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
4782
4783 PR target/91684
4784 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
4785 gen_unaligned_storedi for 4-byte aligned addresses.
4786
4787 2019-09-06 Jim Wilson <jimw@sifive.com>
4788
4789 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
4790 change.
4791
4792 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
4793
4794 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
4795
4796 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
4797
4798 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
4799 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
4800
4801 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
4802
4803 PR target/91654
4804 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
4805 cost of SSE->integer and integer->SSE moves from 2 to 6.
4806 (core_cost): Ditto.
4807
4808 2019-09-06 Jakub Jelinek <jakub@redhat.com>
4809
4810 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
4811 before testing TYPE_TRANSPARENT_AGGR.
4812 * calls.c (initialize_argument_information, load_register_parameters):
4813 Likewise.
4814
4815 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
4816
4817 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
4818 high regs.
4819 (cmp_ior): Likewise.
4820
4821 2019-09-06 Martin Liska <mliska@suse.cz>
4822
4823 * doc/match-and-simplify.texi: Separate tuples with ;.
4824
4825 2019-09-06 Martin Liska <mliska@suse.cz>
4826
4827 PR c++/91125
4828 * Makefile.in: Remove tlink.o.
4829 * collect2.c (do_link): New function isolated
4830 from do_tlink.
4831 (main): Use.
4832 * collect2.h (do_tlink): Remove declaration of do_tlink.
4833 * doc/extend.texi: Remove documentation of -frepo.
4834 * doc/invoke.texi: Likewise.
4835 * doc/sourcebuild.texi: Remove cleanup-repo-files.
4836 * tlink.c: Remove.
4837
4838 2019-09-05 Jakub Jelinek <jakub@redhat.com>
4839 Jim Wilson <jimw@sifive.com>
4840
4841 PR target/91635
4842 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
4843 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
4844 paradoxical_subreg_p (operands[0]).
4845 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
4846 use as intermediate value.
4847
4848 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
4849
4850 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
4851 (sync_compare_and_swap<mode>_insn): Likewise.
4852
4853 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
4854
4855 PR middle-end/91615
4856 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
4857 without movmisalign optab.
4858
4859 2019-09-05 Jakub Jelinek <jakub@redhat.com>
4860
4861 PR middle-end/91001
4862 PR middle-end/91105
4863 PR middle-end/91106
4864 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
4865 types, use type of their first field instead of type of
4866 args[i].tree_value.
4867
4868 2019-09-05 Richard Biener <rguenther@suse.de>
4869
4870 PR rtl-optimization/91656
4871 * postreload-gcse.c (record_last_mem_set_info): Revert addition
4872 of early out.
4873
4874 2019-09-05 Richard Biener <rguenther@suse.de>
4875
4876 PR middle-end/90501
4877 * tree-inline.c (declare_return_variable): Mark the return
4878 slot as addressable after building an address of it.
4879
4880 2019-09-05 Arnaud Charlet <charlet@adacore.com>
4881
4882 * doc/install.texi: Update and clarify requirements to build GNAT.
4883
4884 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
4885
4886 PR middle-end/91577
4887 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
4888 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
4889 call to be in memory.
4890 (pass_expand::execute): Call discover_nonconstant_array_refs before
4891 setting currently_expanding_to_rtl.
4892
4893 2019-09-04 Caroline Tice <cmtice@google.com>
4894
4895 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
4896 specified together.
4897
4898 2019-09-04 Marek Polacek <polacek@redhat.com>
4899
4900 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
4901
4902 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
4903
4904 PR target/32413
4905 * config/i386/i386.c (inline_secondary_memory_needed): Return true
4906 for QI and HImode moves between SSE and general registers.
4907
4908 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4909
4910 PR c/78736
4911 * doc/invoke.texi: Document -Wenum-conversion.
4912
4913 2019-09-04 Richard Biener <rguenther@suse.de>
4914
4915 PR rtl-optimization/36262
4916 * postreload-gcse.c: Include intl.h and gcse.h.
4917 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
4918 to avoid linear list walk.
4919 (record_last_mem_set_info): Gate off if not computing transparentness.
4920 (get_bb_avail_insn): If transparentness isn't computed give up
4921 early.
4922 (gcse_after_reload_main): Skip compute_transp and extended PRE
4923 if gcse_or_cprop_is_too_expensive says so.
4924
4925 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4926
4927 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
4928 noinit section.
4929 (msp430_select_section): Handle decls with the "noinit" attribute with
4930 default_elf_select_section.
4931 Handle SECCAT_RODATA_MERGE_* section types with
4932 default_elf_select_section.
4933 Add comments about handling of unsupported section types.
4934 (msp430_section_type_flags): Remove handling of the noinit section.
4935
4936 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4937
4938 * config/msp430/msp430.c (msp430_attr): Remove warnings about
4939 conflicting msp430-specific attributes.
4940 (msp430_section_attr): Likewise.
4941 Add warnings about conflicts with generic "noinit" and "section"
4942 attributes.
4943 Fix grammar in -mlarge error message.
4944 (msp430_data_attr): Rename to msp430_persist_attr.
4945 Add warnings about conflicts with generic "noinit" and "section"
4946 attributes.
4947 Add warning for when variable is not initialized.
4948 Chain conditionals which prevent the attribute being added.
4949 (ATTR_EXCL): New helper.
4950 (attr_reent_exclusions): New exclusion table.
4951 (attr_naked_exclusions): Likewise.
4952 (attr_crit_exclusions): Likewise.
4953 (attr_lower_exclusions): Likewise.
4954 (attr_upper_exclusions): Likewise.
4955 (attr_either_exclusions): Likewise.
4956 (attr_persist_exclusions): Likewise.
4957 (msp430_attribute_table): Update with exclusion rules.
4958 (msp430_output_aligned_decl_common): Don't output common symbol if decl
4959 has a section.
4960
4961 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4962
4963 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
4964 (msp430_handle_generic_attribute): New function.
4965 * doc/tm.texi: Regenerate.
4966 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
4967 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
4968 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
4969 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
4970
4971 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
4972
4973 PR tree-optimization/91504
4974 * match.pd: Add ((~a & b) ^a) --> (a | b).
4975
4976 2019-09-03 Jakub Jelinek <jakub@redhat.com>
4977
4978 PR target/91604
4979 * config/i386/i386-expand.c (split_double_mode): If there is more than
4980 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
4981 already split matching MEM operand instead of calling adjust_address
4982 again.
4983
4984 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
4985
4986 * config.gcc: Obsolete spu target. Remove references to spu.
4987 * configure.ac: Remove references to spu.
4988 * configure: Regenerate.
4989 * config/spu/: Remove directory.
4990 * common/config/spu/: Remove directory.
4991
4992 * doc/extend.texi: Remove references to spu.
4993 * doc/invoke.texi: Likewise.
4994 * doc/md.texi: Likewise.
4995 * doc/sourcebuild.texi: Likewise.
4996
4997 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
4998
4999 PR middle-end/91603
5000 PR middle-end/91612
5001 PR middle-end/91613
5002 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5003 and SSA_NAME referring to CONSTANT_P correctly.
5004
5005 2019-09-03 Richard Biener <rguenther@suse.de>
5006
5007 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5008 (vn_nary_op_insert): Likewise.
5009 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5010 (vn_nary_op_lookup): Likewise.
5011 (vn_nary_op_insert): Likewise.
5012
5013 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5014
5015 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5016 (*op0, 1) instead of XEXP (*op1, 0).
5017
5018 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5019
5020 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5021 (aarch64_fjcvtzs): New define_insn.
5022 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5023 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5024 Add AARCH64_JSCVT.
5025 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5026 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5027 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5028 __ARM_FEATURE_JCVT where appropriate.
5029 * config/aarch64/arm_acle.h (__jcvt): Define.
5030
5031 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5032
5033 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5034 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5035 (aarch64_<frintnzs_op><mode>): New define_insn.
5036 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5037 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5038 __ARM_FEATURE_FRINT when appropriate.
5039 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5040 frint32x, frint64z, frint64x.
5041 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5042 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5043 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5044 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5045 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5046 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5047 * config/aarch64/iterators.md (VSFDF): Define.
5048 (FRINTNZX): Likewise.
5049 (frintnzs_op): Likewise.
5050
5051 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5052
5053 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5054 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5055 Cortex-A34.
5056 * config/aarch64/aarch64-tune.md: Regenerated.
5057 * doc/invoke.texi: Document the new processors.
5058
5059 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5060
5061 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5062 string.
5063 (ssbs): Likewise.
5064 (sve2): Likewise.
5065 (sve2-sm4): Likewise.
5066 (sveaes): Likewise.
5067 (svesha3): Likewise.
5068 (svebitperm): Likewise.
5069
5070 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5071 Richard Biener <rguenther@suse.de>
5072
5073 PR tree-optimization/91597
5074 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5075 BIT_AND_EXPR optimization for pointers, even if both operand
5076 ranges don't include NULL, the result can be NULL.
5077
5078 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5079
5080 PR middle-end/91605
5081 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5082 (non_mem_decl_p): ...this.
5083 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5084 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5085 unconditionally as before.
5086
5087 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5088
5089 PR target/91323
5090 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5091 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5092 * tree.def (LTGT_EXPR): Likewise.
5093 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5094
5095 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5096
5097 PR go/91617
5098 * fold-const.c (range_check_type): For enumeral and boolean
5099 type, pass 1 to type_for_size langhook instead of
5100 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5101 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5102 (build_range_check): Don't call unsigned_type_for for pointer types.
5103 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5104 range_check_type result.
5105
5106 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5107
5108 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5109 (replace_ref): Do not replace a chain of only two candidates which are
5110 valid memory references.
5111
5112 2019-09-02 Martin Liska <mliska@suse.cz>
5113
5114 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5115 Bail out when we'll end up with the same number of clusters as
5116 at the beginning.
5117 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5118 (jump_table_cluster::can_be_handled): Remove the guard
5119 as it's already handled in ::is_enabled. Allocate output
5120 after early bail out.
5121
5122 2019-09-02 Martin Liska <mliska@suse.cz>
5123
5124 PR gcov-profile/91601
5125 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5126 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5127 also negative edges.
5128 (circuit): Handle also negative edges as they can happen
5129 in some situations.
5130
5131 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5132
5133 PR target/91472
5134 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5135 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5136 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5137
5138 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5139
5140 PR middle-end/91623
5141 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5142 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5143 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5144 zero vector.
5145
5146 PR lto/91572
5147 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5148 GIMPLE_ASM TREE_LIST operands.
5149
5150 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5151
5152 * doc/generic.texi (Unary and Binary Expressions): Mark up
5153 an instance of TYPE_MIN.
5154
5155 2019-08-31 Stafford Horne <shorne@gmail.com>
5156
5157 * config/or1k/constraints.md (t): New constraint.
5158 * config/or1k/or1k.h (GOT_REGS): New register class.
5159 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5160
5161 2019-08-30 Jim Wilson <jimw@sifive.com>
5162
5163 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5164 and -fpic and -mplt then disable -msave-restore and warn.
5165
5166 2019-08-30 Martin Sebor <msebor@redhat.com>
5167
5168 PR middle-end/91599
5169 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5170 the statement doesn't have one.
5171 * gimple-pretty-print.c (percent_G_format): Same.
5172
5173 PR middle-end/91584
5174 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5175 before using them to validate MEM_REF offset.
5176
5177 2019-08-30 Marek Polacek <polacek@redhat.com>
5178
5179 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5180
5181 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5182
5183 * config/arm/arm.md (unaligned_loaddi,
5184 unaligned_storedi): New unspec insn patterns.
5185 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5186 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5187 and unaligned_storedi for 4-byte aligned memory.
5188 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5189 4-byte aligned memory.
5190
5191 2019-08-30 Martin Jambor <mjambor@suse.cz>
5192
5193 tree-optimization/91579
5194 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5195 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5196 appropriate.
5197 (arg_needs_copy_p): Removed.
5198 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5199 arg_needs_copy_p.
5200 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5201
5202 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5203
5204 * config/i386/i386-features.c
5205 (general_scalar_chain::compute_convert_gain):
5206 Correct cost for double-word shifts.
5207 (general_scalar_to_vector_candidate_p): Reject count operands
5208 greater or equal to mode bitsize.
5209
5210 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5211
5212 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5213 for moves between SSE and non-general registers and between
5214 mask and non-general registers.
5215 (ix86_register_move_cost): Remove stalled comment.
5216
5217 2019-08-29 Richard Biener <rguenther@suse.de>
5218
5219 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5220 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5221
5222 2019-08-29 Richard Biener <rguenther@suse.de>
5223
5224 PR bootstrap/91580
5225 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5226 Do not emit scalar copies for debug-insns, instead replace
5227 their uses with the reg copy used in the chain or reset them
5228 if there is a reaching definition outside of the chain as well.
5229
5230 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5231
5232 PR target/91560
5233 * config/i386/i386-expand.c (expand_vec_perm_movs,
5234 expand_vec_perm_blend, expand_vec_perm_vpermil,
5235 expand_vec_perm_pshufb, expand_vec_perm_1,
5236 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5237 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5238 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5239 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5240 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5241 comments - replace ix86_expand_vec_perm_builtin_1 with
5242 ix86_expand_vec_perm_const_1.
5243 (expand_vec_perm2_vperm2f128_vblend): New function.
5244 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5245 expand_vec_perm2_vperm2f128_vblend as last resort.
5246 (canonicalize_perm): Formatting fix.
5247
5248 PR tree-optimization/91351
5249 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5250 unsigned_type_for.
5251 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5252 range_check_type returns NULL.
5253 * tree-switch-conversion.c (switch_conversion::build_one_array):
5254 Use range_check_type instead of unsigned_type_for, don't perform
5255 linear opt if it returns NULL.
5256 (bit_test_cluster::find_bit_tests): Formatting fix.
5257 (bit_test_cluster::emit): Use range_check_type instead of
5258 unsigned_type_for.
5259 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5260 returns NULL.
5261
5262 2019-08-29 Richard Biener <rguenther@suse.de>
5263
5264 PR tree-optimization/91568
5265 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5266 (vect_update_max_nunits): Add overload for poly_uint64.
5267 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5268 (vect_build_slp_tree): Record max_nunits into the subtree
5269 and merge it upwards.
5270 (vect_print_slp_tree): Print max_nunits.
5271
5272 2019-08-28 Marek Polacek <polacek@redhat.com>
5273
5274 Implement P1152R4: Deprecating some uses of volatile.
5275 PR c++/91361
5276 * doc/invoke.texi: Document -Wvolatile.
5277
5278 2019-08-28 Marek Polacek <polacek@redhat.com>
5279
5280 PR c++/91360 - Implement C++20 P1143R2: constinit.
5281 * doc/invoke.texi: Document -Wc++20-compat.
5282
5283 2019-08-28 Martin Sebor <msebor@redhat.com>
5284
5285 PR tree-optimization/91457
5286 * builtins.c (component_size): New function.
5287 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5288 * builtins.h (compute_objsize): Add argument.
5289 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5290 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5291 (vrp_prop::check_mem_ref): Same.
5292 (vrp_prop::search_for_addr_array): Set no-warning bit.
5293 (check_array_bounds): Same.
5294
5295 2019-08-28 Martin Sebor <msebor@redhat.com>
5296
5297 PR driver/80545
5298 * opts-common.c (option_enabled): Correct checking for language
5299 options.
5300
5301 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5302
5303 * config/i386/i386.c (ix86_register_move_cost): Do not
5304 limit the cost of moves to/from XMM register to minimum 8.
5305
5306 2019-08-28 Martin Jambor <mjambor@suse.cz>
5307
5308 PR ipa/91468
5309 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5310 checking assert a normal assert to test it really is redundant.
5311 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5312 redundant test.
5313 (update_jump_functions_after_inlining): Removed combining unary
5314 arithmetic operations with an ancestor jump function.
5315 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5316 instead of t.
5317
5318 2019-08-28 Richard Biener <rguenther@suse.de>
5319
5320 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5321 add the MD problem.
5322
5323 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5324 Richard Biener <rguenther@suse.de>
5325
5326 * expr.c (expand_assignment): Handle misaligned DECLs.
5327 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5328 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5329 too.
5330 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5331 * varasm.c (build_constant_desc): Align constants of misaligned types.
5332 * config/arm/predicates.md (aligned_operand): New predicate.
5333 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5334 aligned_operand to check restrictions on memory addresses.
5335 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5336 * config/arm/vec-common.md (mov<VALL>): Likewise.
5337
5338 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5339
5340 PR libgomp/91530
5341 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5342 V_128 iterator instead of VI_128.
5343
5344 2019-08-28 Martin Liska <mliska@suse.cz>
5345
5346 PR tree-optimization/90970
5347 * builtins.c (check_access): Remove assignment to maxread
5348 as it hasn't been used since when it was introduced in r255755.
5349
5350 2019-08-27 Martin Sebor <msebor@redhat.com>
5351
5352 PR tree-optimization/91567
5353 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5354 of unknown strings.
5355 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5356 to PTRDIFF_MAX - 2.
5357
5358 2019-08-27 Jeff Law <law@redhat.com>
5359
5360 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5361 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5362
5363 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5364
5365 PR target/91528
5366 * config/i386/i386-features.c (convert_scalars_to_vector):
5367 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5368 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5369 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5370 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5371
5372 2019-08-27 Richard Biener <rguenther@suse.de>
5373
5374 * config/i386/i386-features.h
5375 (general_scalar_chain::~general_scalar_chain): Add.
5376 (general_scalar_chain::insns_conv): New bitmap.
5377 (general_scalar_chain::n_sse_to_integer): New.
5378 (general_scalar_chain::n_integer_to_sse): Likewise.
5379 (general_scalar_chain::make_vector_copies): Adjust signature.
5380 * config/i386/i386-features.c
5381 (general_scalar_chain::general_scalar_chain): Outline,
5382 initialize new members.
5383 (general_scalar_chain::~general_scalar_chain): New.
5384 (general_scalar_chain::mark_dual_mode_def): Record insns
5385 we need to insert conversions at and count them.
5386 (general_scalar_chain::compute_convert_gain): Account
5387 for conversion instructions at chain boundary.
5388 (general_scalar_chain::make_vector_copies): Generate a single
5389 copy for a def by a specific insn.
5390 (general_scalar_chain::convert_registers): First populate
5391 defs_map, then make copies at out-of chain insns.
5392
5393 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5394
5395 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5396 comment.
5397 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5398
5399 2019-08-27 Martin Liska <mliska@suse.cz>
5400
5401 * cgraph.c (cgraph_node::remove): Remove dead assignment before
5402 loop.
5403 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5404 Enclose in anonymous namespace.
5405 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5406 hard_register initialization in braces.
5407 * tree-vrp.h (value_range_base::supports_type_p): Return false
5408 for function with boolean return type.
5409
5410 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
5411
5412 * config/i386/i386.c (emit_i387_cw_initialization)
5413 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5414
5415 2019-08-26 Martin Sebor <msebor@redhat.com>
5416
5417 PR c++/83431
5418 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
5419 (sprintf_dom_walker): Remove class.
5420 (get_int_range): Make argument const.
5421 (directive::fmtfunc, directive::set_precision): Same.
5422 (format_none): Same.
5423 (build_intmax_type_nodes): Same.
5424 (adjust_range_for_overflow): Same.
5425 (format_floating): Same.
5426 (format_character): Same.
5427 (format_string): Same.
5428 (format_plain): Same.
5429 (get_int_range): Cast away constness.
5430 (format_integer): Same.
5431 (get_string_length): Call get_range_strlen_dynamic. Handle
5432 null lendata.maxbound.
5433 (should_warn_p): Adjust argument scope qualifier.
5434 (maybe_warn): Same.
5435 (format_directive): Same.
5436 (parse_directive): Same.
5437 (is_call_safe): Same.
5438 (try_substitute_return_value): Same.
5439 (sprintf_dom_walker::handle_printf_call): Rename...
5440 (handle_printf_call): ...to this. Initialize target to host charmap
5441 here instead of in pass_sprintf_length::execute.
5442 (struct call_info): Make global.
5443 (sprintf_dom_walker::compute_format_length): Make global.
5444 (sprintf_dom_walker::handle_gimple_call): Same.
5445 * passes.def (pass_sprintf_length): Replace with pass_strlen.
5446 * print-rtl.c (print_pattern): Reduce the number of spaces to
5447 avoid -Wformat-truncation.
5448 * tree-pass.h (make_pass_warn_printf): New function.
5449 * tree-ssa-strlen.c (strlen_optimize): New variable.
5450 (get_string_length): Add comments.
5451 (get_range_strlen_dynamic): New function.
5452 (check_and_optimize_call): New function.
5453 (handle_integral_assign): New function.
5454 (strlen_check_and_optimize_stmt): Factor code out into
5455 strlen_check_and_optimize_call and handle_integral_assign.
5456 (strlen_dom_walker::evrp): New member.
5457 (strlen_dom_walker::before_dom_children): Use evrp member.
5458 (strlen_dom_walker::after_dom_children): Use evrp member.
5459 (printf_strlen_execute): New function.
5460 (pass_strlen::gate): Update to handle printf calls.
5461 (dump_strlen_info): New function.
5462 (pass_data_warn_printf): New variable.
5463 (pass_warn_printf): New class.
5464 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
5465 (handle_printf_call): Same.
5466 * tree-vrp.c (value_range_base::type): Adjust assertion.
5467 * vr-values.c (vr_values::update_value_range): Use type of the first
5468 argument rather than the second.
5469
5470 2019-08-26 Richard Biener <rguenther@suse.de>
5471
5472 * config/i386/i386-features.c (general_remove_non_convertible_regs):
5473 Remove.
5474 (convert_scalars_to_vector): Do not call it.
5475
5476 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5477 Uros Bizjak <ubizjak@gmail.com>
5478
5479 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
5480 CASE_MATHFN_FLOATN for roundeven.
5481 * config/i386/i386.c (ix86_i387_mode_needed): Add case
5482 I387_ROUNDEVEN.
5483 (ix86_mode_needed): Likewise.
5484 (ix86_mode_after): Likewise.
5485 (ix86_mode_entry): Likewise.
5486 (ix86_mode_exit): Likewise.
5487 (ix86_emit_mode_set): Likewise.
5488 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
5489 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
5490 (ix86_entity): Add I387_ROUNDEVEN.
5491 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
5492 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
5493 (define_int_iterator): Likewise.
5494 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
5495 (define_constant): Define ROUND_ROUNDEVEN mode.
5496 (define_attr): Add roundeven mode for i387_cw.
5497 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
5498 * internal-fn.def (ROUNDEVEN): New builtin function.
5499 * optabs.def (roundeven_optab): New optab.
5500
5501 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5502
5503 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
5504 for ROUNDEVEN.
5505 * builtins.def: Added function definitions for roundeven function
5506 variants.
5507 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
5508 function call. Adjust condition for floor, ceil, trunc and round.
5509 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
5510 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
5511 (integer_valued_real_call_p): Added case for roundeven function.
5512 * real.c (is_even): New function. Returns true if real number is even,
5513 otherwise returns false.
5514 (is_halfway_below): New function. Returns true if real number is
5515 halfway between two integers, else return false.
5516 (real_roundeven): New function. Round real number to nearest integer,
5517 rounding halfway cases towards even.
5518 * real.h (real_value): Added descriptive comments. Added function
5519 declaration for roundeven function.
5520 * doc/extend.texi (Other Builtins): List roundeven variants among
5521 functions which can be handled as builtins.
5522
5523 2019-08-26 Richard Biener <rguenther@suse.de>
5524
5525 PR target/91522
5526 PR target/91527
5527 * config/i386/i386-features.h (general_scalar_chain::defs_map):
5528 New member.
5529 (general_scalar_chain::replace_with_subreg): Remove.
5530 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5531 (general_scalar_chain::convert_reg): Adjust signature.
5532 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
5533 iterate over all defs of a reg.
5534 (general_scalar_chain::replace_with_subreg): Remove.
5535 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5536 (general_scalar_chain::make_vector_copies): Populate defs_map,
5537 place copy only after defs that are used as vectors in the chain.
5538 (general_scalar_chain::convert_reg): Emit a copy for a specific
5539 def in a specific instruction.
5540 (general_scalar_chain::convert_op): All reg uses are converted here.
5541 (general_scalar_chain::convert_insn): Emit copies for scalar
5542 uses of defs here. Replace uses with the copies we created.
5543 Replace and convert the def. Adjust REG_DEAD notes, remove
5544 REG_EQUIV/EQUAL notes.
5545 (general_scalar_chain::convert_registers): Only handle copies
5546 into the chain here.
5547
5548 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5549
5550 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
5551
5552 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5553
5554 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
5555 Add nop_convert case.
5556 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
5557 Fold all statements if requested.
5558 * tree-ssa-propagate.h (class substitute_and_fold_engine):
5559 Allow to fold all statements.
5560 * tree-vrp.c (class vrp_folder):
5561 Let substitute_and_fold_engine fold all statements.
5562
5563 2019-08-26 Richard Biener <rguenther@suse.de>
5564
5565 PR tree-optimization/91526
5566 * passes.def: Note that after late FRE we do TODO_update_address_taken.
5567 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
5568 TODO_update_address_taken.
5569
5570 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
5571
5572 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
5573 __STDC_HOSTED__.
5574
5575 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5576
5577 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
5578 machine mode for unspec_volatile operand.
5579
5580 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
5581
5582 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
5583 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
5584 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
5585 (prefer_neon_for_64bits): Remove.
5586 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
5587 (tune_params): Remove PREF_NEON_64_FALSE uses.
5588 (arm_option_override): Remove prefer_neon selection code.
5589 (arm_print_tune_info): Remove prefer_neon_for_64bits.
5590 * gcc/config/arm/arm-protos.h (tune_params): Remove
5591 prefer_neon_for_64bits.
5592 (prefer_neon_for_64bits): Remove.
5593
5594 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
5595
5596 PR pch/61250
5597 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
5598 and issue any diagnostics needed before collecting the pre-PCH
5599 state.
5600
5601 2019-08-23 Jakub Jelinek <jakub@redhat.com>
5602
5603 PR middle-end/91283
5604 * common.opt (fexcess-precision=): Add Optimization flag. Use
5605 flag_excess_precision variable instead of
5606 flag_excess_precision_cmdline.
5607 * flags.h (class target_flag_state): Remove x_flag_excess_precision
5608 member.
5609 (flag_excess_precision): Don't define.
5610 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
5611 flag_excess_precision_cmdline. Remove comment.
5612 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
5613 and x_flag_excess_precision instead of
5614 frontend_set_flag_excess_precision_cmdline and
5615 x_flag_excess_precision_cmdline.
5616 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
5617 x_flag_excess_precision_cmdline.
5618 * toplev.c (init_excess_precision): Remove.
5619 (lang_dependent_init_target): Don't call it.
5620
5621 2019-08-23 Martin Liska <mliska@suse.cz>
5622
5623 * lto-wrapper.c (run_gcc): When setting jobserver
5624 set also parallel to 1. This was done so before r273908.
5625
5626 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
5627
5628 * config/arm/arm-cpus.in (cortex-m35p): New entry.
5629 (cortex-a76ae): Likewise.
5630 (cortex-a77): Likewise
5631 * config/arm/arm-tables.opt: Regenerate.
5632 * config/arm/arm-tune.md: Likewise.
5633 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
5634 cortex-a77 CPU options.
5635
5636 2019-08-23 Martin Liska <mliska@suse.cz>
5637
5638 * profile.c (instrument_values): Do not set
5639 0 as last argument.
5640 * tree-profile.c (gimple_gen_interval_profiler): Remove
5641 last argument.
5642 (gimple_gen_pow2_profiler): Likewise.
5643 (gimple_gen_topn_values_profiler): Likewise.
5644 (gimple_gen_ic_profiler): Likewise.
5645 (gimple_gen_time_profiler): Likewise.
5646 (gimple_gen_average_profiler): Likewise.
5647 (gimple_gen_ior_profiler): Likewise.
5648 * value-prof.c (dump_histogram_value): Use default
5649 in switch statement instead of HIST_TYPE_MAX.
5650 (stream_in_histogram_value): Likewise.
5651 (gimple_duplicate_stmt_histograms): Do not
5652 use NULL for implicitly set arguments.
5653 (gimple_divmod_values_to_profile): Do not use
5654 reserve+quick_push.
5655 (gimple_indirect_call_to_profile): Likewise.
5656 (gimple_find_values_to_profile): Use implicit
5657 function call arguments.
5658 * value-prof.h (gimple_alloc_histogram_value):
5659 Set default values.
5660 (gimple_gen_interval_profiler): Remove last argument.
5661 (gimple_gen_pow2_profiler): Likewise.
5662 (gimple_gen_topn_values_profiler): Likewise.
5663 (gimple_gen_ic_profiler): Likewise.
5664 (gimple_gen_time_profiler): Likewise.
5665 (gimple_gen_average_profiler): Likewise.
5666 (gimple_gen_ior_profiler): Likewise.
5667
5668 2019-08-22 Martin Sebor <msebor@redhat.com>
5669
5670 PR middle-end/91490
5671 * builtins.c (c_strlen): Rename argument and introduce new local.
5672 Set no-warning bit on original argument.
5673 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
5674 Fold empty and zero constructors into empty strings.
5675 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
5676 for missing initializers.
5677 * tree.c (build_string_literal): Handle optional argument.
5678 * tree.h (build_string_literal): Add defaulted argument.
5679 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
5680 no-warning bit on original expression.
5681
5682 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
5683
5684 PR target/91481
5685 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
5686 and UNSPEC_DARN_RAW.
5687 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
5688 UNSPECV_DARN_RAW.
5689 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
5690 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
5691 (darn): Use an unspec_volatile, and UNSPECV_DARN.
5692
5693 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
5694
5695 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
5696 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
5697 * config/rs6000/rs6000.md (unspec): ... here.
5698 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
5699 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
5700 cmpeqb, *cmpeqb_internal): Delete, move to...
5701 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
5702 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
5703 cmpeqb, *cmpeqb_internal): ... here.
5704
5705 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5706
5707 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
5708 intrinsics if __ARM_FP.
5709 Use __ARM_FEATURE_CRC32 ifdef guard.
5710
5711 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5712
5713 * config/arm/arm.md (neon_for_64bits): Remove.
5714 (avoid_neon_for_64bits): Remove.
5715 (arm_adddi3): Always split early.
5716 (arm_subdi3): Always split early.
5717 (negdi2): Remove Neon expansion.
5718 (split zero_extend): Split before reload.
5719 (split sign_extend): Split before reload.
5720
5721 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5722
5723 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
5724 (qhs_extenddi_cstr): Likewise.
5725 * config/arm/arm.md (ashldi3): Always expand early.
5726 (ashlsi3): Likewise.
5727 (ashrsi3): Likewise.
5728 (zero_extend<mode>di2): Remove Neon variants.
5729 (extend<mode>di2): Likewise.
5730 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
5731 (signed_shift_di3_neon): Likewise.
5732 (unsigned_shift_di3_neon): Likewise.
5733 (ashrdi3_neon_imm_noclobber): Likewise.
5734 (lshrdi3_neon_imm_noclobber): Likewise.
5735 (<shift>di3_neon): Likewise.
5736 (split extend): Remove DI extend split patterns.
5737
5738 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5739
5740 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
5741 (split not): Add DImode not splitter.
5742 (anddi3): Remove pattern.
5743 (anddi3_insn): Likewise.
5744 (anddi_zesidi_di): Likewise.
5745 (anddi_sesdi_di): Likewise.
5746 (anddi_notdi_di): Likewise.
5747 (anddi_notzesidi_di): Likewise.
5748 (anddi_notsesidi_di): Likewise.
5749 (iordi3): Likewise.
5750 (iordi3_insn): Likewise.
5751 (iordi_zesidi_di): Likewise.
5752 (iordi_sesidi_di): Likewise.
5753 (xordi3): Likewise.
5754 (xordi3_insn): Likewise.
5755 (xordi_sesidi_di): Likewise.
5756 (xordi_zesidi_di): Likewise.
5757 (one_cmpldi2): Likewise.
5758 (one_cmpldi2_insn): Likewise.
5759 * config/arm/constraints.md: Remove De, Df, Dg constraints.
5760 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
5761 alternative.
5762 (iwmmxt_xordi3): Likewise.
5763 (iwmmxt_anddi3): Likewise.
5764 * config/arm/neon.md (orndi3_neon): Remove pattern.
5765 (anddi_notdi_di): Likewise.
5766 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
5767 (arm_iordi_operand_neon): Likewise.
5768 (arm_xordi_operand_neon): Likewise.
5769 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
5770 (iordi_notzesidi_di): Likewise.
5771 (iordi_notdi_zesidi): Likewise.
5772 (iordi_notsesidi_di): Likewise.
5773
5774 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
5775
5776 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
5777 insn.
5778 (iorsi3_compare0_scratch): Likewise.
5779
5780 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
5781
5782 * config/aarch64/aarch64-simd-builtins.def:
5783 (ld1x4): New.
5784 (st1x4): Likewise.
5785 * config/aarch64/aarch64-simd.md:
5786 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
5787 (aarch64_st1x4<VALLDIF:mode>): Likewise.
5788 (aarch64_ld1_x4_<mode>): Likewise.
5789 (aarch64_st1_x4_<mode>): Likewise.
5790 * config/aarch64/arm_neon.h:
5791 (vld1_s8_x4): New function.
5792 (vld1q_s8_x4): Likewise.
5793 (vld1_s16_x4): Likewise.
5794 (vld1q_s16_x4): Likewise.
5795 (vld1_s32_x4): Likewise.
5796 (vld1q_s32_x4): Likewise.
5797 (vld1_u8_x4): Likewise.
5798 (vld1q_u8_x4): Likewise.
5799 (vld1_u16_x4): Likewise.
5800 (vld1q_u16_x4): Likewise.
5801 (vld1_u32_x4): Likewise.
5802 (vld1q_u32_x4): Likewise.
5803 (vld1_f16_x4): Likewise.
5804 (vld1q_f16_x4): Likewise.
5805 (vld1_f32_x4): Likewise.
5806 (vld1q_f32_x4): Likewise.
5807 (vld1_p8_x4): Likewise.
5808 (vld1q_p8_x4): Likewise.
5809 (vld1_p16_x4): Likewise.
5810 (vld1q_p16_x4): Likewise.
5811 (vld1_s64_x4): Likewise.
5812 (vld1_u64_x4): Likewise.
5813 (vld1_p64_x4): Likewise.
5814 (vld1q_s64_x4): Likewise.
5815 (vld1q_u64_x4): Likewise.
5816 (vld1q_p64_x4): Likewise.
5817 (vld1_f64_x4): Likewise.
5818 (vld1q_f64_x4): Likewise.
5819 (vst1_s8_x4): Likewise.
5820 (vst1q_s8_x4): Likewise.
5821 (vst1_s16_x4): Likewise.
5822 (vst1q_s16_x4): Likewise.
5823 (vst1_s32_x4): Likewise.
5824 (vst1q_s32_x4): Likewise.
5825 (vst1_u8_x4): Likewise.
5826 (vst1q_u8_x4): Likewise.
5827 (vst1_u16_x4): Likewise.
5828 (vst1q_u16_x4): Likewise.
5829 (vst1_u32_x4): Likewise.
5830 (vst1q_u32_x4): Likewise.
5831 (vst1_f16_x4): Likewise.
5832 (vst1q_f16_x4): Likewise.
5833 (vst1_f32_x4): Likewise.
5834 (vst1q_f32_x4): Likewise.
5835 (vst1_p8_x4): Likewise.
5836 (vst1q_p8_x4): Likewise.
5837 (vst1_p16_x4): Likewise.
5838 (vst1q_p16_x4): Likewise.
5839 (vst1_s64_x4): Likewise.
5840 (vst1_u64_x4): Likewise.
5841 (vst1_p64_x4): Likewise.
5842 (vst1q_s64_x4): Likewise.
5843 (vst1q_u64_x4): Likewise.
5844 (vst1q_p64_x4): Likewise.
5845 (vst1_f64_x4): Likewise.
5846 (vst1q_f64_x4): Likewise.
5847
5848 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5849
5850 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
5851
5852 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5853 Richard Sandiford <richard.sandiford@arm.com>
5854
5855 PR target/88839
5856 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
5857 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
5858
5859 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5860
5861 PR target/90724
5862 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
5863 in reg if it fails aarch64_plus_operand predicate.
5864
5865 2019-08-21 Richard Biener <rguenther@suse.de>
5866
5867 PR tree-optimization/91482
5868 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
5869 BUILT_IN_ASSUME_ALIGNED calls.
5870
5871 2019-08-21 Richard Biener <rguenther@suse.de>
5872
5873 PR target/91498
5874 PR target/91503
5875 * config/i386/i386-features.c
5876 (general_scalar_chain::make_vector_copies): Copy stack temporary
5877 rtx when using it multiple times.
5878 (general_scalar_chain::convert_reg): Likewise.
5879
5880 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5881
5882 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
5883
5884 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
5885
5886 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
5887 catch more redundant zero initialization cases.
5888 (dse_dom_walker::dse_optimize_stmt): Likewise.
5889
5890 2019-08-20 Richard Biener <rguenther@suse.de>
5891
5892 PR lto/91307
5893 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
5894 by collect2 when targetm.have_ctors_dtors which avoids dragging
5895 in temporary filenames from LTO input objects.
5896
5897 2019-08-20 Richard Biener <rguenther@suse.de>
5898
5899 PR tree-optimization/37242
5900 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
5901 to (T)a + (T)b if we know that a + b does not overflow.
5902
5903 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
5904
5905 PR rtl-optimization/91347
5906 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
5907 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
5908
5909 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5910
5911 * calls.h (function_arg_info): Add a pass_by_reference field,
5912 defaulting to false.
5913 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
5914 when applying pass-by-reference semantics.
5915 (initialize_argument_information): Likewise.
5916 (emit_library_call_value_1): Likewise.
5917 * function.c (assign_parm_data_one): Remove passed_pointer field.
5918 (assign_parm_find_data_types): Don't set it.
5919 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
5920 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
5921 arg.pass_by_reference instead of passed_pointer.
5922
5923 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5924
5925 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
5926 into a single function_arg_info, updating its fields when we
5927 apply pass-by-reference and promotion semantics. Use the
5928 function_arg_info to track the mode rather than keeping it in
5929 a separate local variable.
5930 (initialize_argument_information): Likewise. Base the final
5931 arg_to_skip on this new function_arg_info rather than creating
5932 a new one from scratch.
5933
5934 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5935
5936 * function.c (assign_parm_data_one): Replace passed_type,
5937 promoted_mode and named_arg with a function_arg_info field.
5938 (assign_parm_find_data_types): Remove local variables and
5939 assign directly to "data". Make data->passed_mode shadow
5940 data->arg.mode until promotion, then assign the promoted
5941 mode to data->arg.mode.
5942 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
5943 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
5944 (assign_parm_remove_parallels, assign_parm_setup_block_p)
5945 (assign_parm_setup_block, assign_parm_setup_reg)
5946 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
5947 arg.mode instead of promoted_mode, arg.type instead of passed_type
5948 and arg.named instead of named_arg. Use data->arg for
5949 function_arg_info structures that had the field values passed_type,
5950 promoted_mode and named_arg. Base other function_arg_infos on
5951 data->arg, changing the necessary properties.
5952
5953 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5954
5955 * calls.h (apply_pass_by_reference_rules): Declare.
5956 * calls.c (apply_pass_by_reference_rules): New function.
5957 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
5958 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
5959 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
5960 * function.c (assign_parm_find_data_types): Likewise.
5961 * var-tracking.c (prepare_call_arguments): Likewise.
5962
5963 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5964
5965 * target.def (must_pass_in_stack): Take a function_arg_info instead
5966 of a mode and a type.
5967 * doc/tm.texi: Regenerate.
5968 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
5969 instead of a mode and a type.
5970 (must_pass_in_stack_var_size_or_pad): Likewise.
5971 * calls.c (must_pass_in_stack_var_size): Likewise.
5972 (must_pass_in_stack_var_size_or_pad): Likewise.
5973 (initialize_argument_information): Update call to
5974 targetm.calls.must_pass_in_stack.
5975 (must_pass_va_arg_on_stack): Likewise.
5976 * function.c (assign_parm_find_entry_rtl): Likewise.
5977 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
5978 * config/alpha/alpha.c (alpha_function_arg): Likewise.
5979 (alpha_function_arg_advance): Likewise.
5980 * config/cr16/cr16.c (cr16_function_arg): Likewise.
5981 (cr16_function_arg_advance): Likewise.
5982 * config/cris/cris.c (cris_pass_by_reference): Likewise.
5983 (cris_arg_partial_bytes): Likewise.
5984 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
5985 * config/lm32/lm32.c (lm32_function_arg): Likewise.
5986 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
5987 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
5988 * config/mips/mips.c (mips_pass_by_reference): Likewise.
5989 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
5990 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
5991 * config/sh/sh.c (sh_pass_by_reference): Likewise.
5992 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
5993 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
5994 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
5995 instead of a mode and a type.
5996 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
5997 (fr30_num_arg_regs): Likewise.
5998 (fr30_setup_incoming_varargs): Update calls accordingly.
5999 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6000 (fr30_function_arg_advance): Likewise.
6001 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6002 instead of a mode and a type.
6003 * config/gcn/gcn.c (num_arg_regs): Likewise.
6004 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6005 num_arg_regs and targetm.calls.must_pass_in_stack.
6006 (gcn_arg_partial_bytes): Likewise.
6007 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6008 function_arg_info instead of a mode and a type.
6009 (classify_argument): Update call accordingly.
6010 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6011 function_arg_info instead of a mode and a type.
6012 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6013 Likewise.
6014 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6015 (rs6000_parm_needs_stack): Update call accordingly.
6016 (setup_incoming_varargs): Likewise.
6017
6018 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6019
6020 * target.def (callee_copies): Take a function_arg_info instead
6021 of a mode, type and named flag.
6022 * doc/tm.texi: Regenerate.
6023 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6024 instead of a mode, type and named flag.
6025 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6026 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6027 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6028 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6029 instead of a mode, type and named flag.
6030 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6031 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6032 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6033 * calls.h (reference_callee_copied): Take a function_arg_info
6034 instead of a mode, type and named flag.
6035 * calls.c (reference_callee_copied): Likewise.
6036 (initialize_argument_information): Update call accordingly.
6037 (emit_library_call_value_1): Likewise.
6038 * function.c (gimplify_parameters): Likewise.
6039 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6040 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6041 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6042 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6043 (TARGET_CALLEE_COPIES): Define to
6044 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6045 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6046 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6047 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6048 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6049 instead of a mode, type and named flag.
6050 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6051 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6052 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6053 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6054 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6055 (TARGET_CALLEE_COPIES): Define to
6056 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6057 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6058 instead of a mode, type and named flag.
6059 * config/sh/sh.c (sh_callee_copies): Likewise.
6060 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6061 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6062 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6063
6064 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6065
6066 * target.def (function_arg_advance): Take a function_arg_info instead
6067 of a mode, type and named flag.
6068 * doc/tm.texi: Regenerate.
6069 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6070 instead of a mode, type and named flag.
6071 * targhooks.c (default_function_arg_advance): Likewise.
6072 * calls.c (initialize_argument_information): Update call to
6073 targetm.calls.function_arg_advance.
6074 (emit_library_call_value_1): Likewise.
6075 * dse.c (get_call_args): Likewise.
6076 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6077 * function.c (assign_parms, gimplify_parameters): Likewise.
6078 * var-tracking.c (prepare_call_arguments): Likewise.
6079 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6080 function_arg_info instead of a mode, type and named flag.
6081 (aarch64_setup_incoming_varargs): Update call accordingly.
6082 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6083 function_arg_info instead of a mode, type and named flag.
6084 (alpha_setup_incoming_varargs): Update call accordingly.
6085 * config/arc/arc.c (arc_function_arg_advance): Take a
6086 function_arg_info instead of a mode, type and named flag.
6087 (arc_setup_incoming_varargs): Update call accordingly.
6088 * config/arm/arm.c (arm_function_arg_advance): Take a
6089 function_arg_info instead of a mode, type and named flag.
6090 (cmse_func_args_or_return_in_stack): Update call accordingly.
6091 (arm_function_ok_for_sibcall): Likewise.
6092 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6093 * config/avr/avr.c (avr_function_arg_advance): Take a
6094 function_arg_info instead of a mode, type and named flag.
6095 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6096 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6097 (c6x_call_saved_register_used): Update call accordingly.
6098 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6099 function_arg_info instead of a mode, type and named flag.
6100 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6101 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6102 (csky_setup_incoming_varargs): Update call accordingly.
6103 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6104 function_arg_info instead of a mode, type and named flag.
6105 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6106 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6107 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6108 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6109 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6110 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6111 (ix86_setup_incoming_varargs): Update call accordingly.
6112 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6113 function_arg_info instead of a mode, type and named flag.
6114 (ia64_setup_incoming_varargs): Update call accordingly.
6115 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6116 function_arg_info instead of a mode, type and named flag.
6117 (iq2000_expand_prologue): Update call accordingly.
6118 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6119 function_arg_info instead of a mode, type and named flag.
6120 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6121 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6122 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6123 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6124 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6125 Likewise.
6126 (microblaze_expand_prologue): Update call accordingly.
6127 * config/mips/mips.c (mips_function_arg_advance): Take a
6128 function_arg_info instead of a mode, type and named flag.
6129 (mips_setup_incoming_varargs): Update call accordingly.
6130 (mips_output_args_xfer): Likewise.
6131 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6132 function_arg_info instead of a mode, type and named flag.
6133 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6134 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6135 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6136 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6137 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6138 (nios2_setup_incoming_varargs): Update call accordingly.
6139 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6140 function_arg_info instead of a mode, type and named flag.
6141 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6142 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6143 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6144 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6145 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6146 (riscv_setup_incoming_varargs): Update call accordingly.
6147 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6148 function_arg_info instead of a mode, type and named flag.
6149 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6150 Likewise.
6151 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6152 (rs6000_parm_needs_stack): Update call accordingly.
6153 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6154 instead of a mode, type and named flag.
6155 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6156 (s390_call_saved_register_used): Update call accordingly.
6157 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6158 instead of a mode, type and named flag.
6159 (sh_output_mi_thunk): Update call accordingly.
6160 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6161 function_arg_info instead of a mode, type and named flag.
6162 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6163 (spu_setup_incoming_varargs): Update call accordingly.
6164 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6165 function_arg_info instead of a mode, type and named flag.
6166 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6167 (tilegx_setup_incoming_varargs): Update call accordingly.
6168 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6169 function_arg_info instead of a mode, type and named flag.
6170 (tilegx_setup_incoming_varargs): Update call accordingly.
6171 * config/v850/v850.c (v850_function_arg_advance): Take a
6172 function_arg_info instead of a mode, type and named flag.
6173 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6174 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6175 (visium_setup_incoming_varargs): Update call accordingly.
6176 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6177 function_arg_info instead of a mode, type and named flag.
6178
6179 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6180
6181 * target.def (function_arg, function_incoming_arg): Take a
6182 function_arg_info instead of a mode, tree and named flag.
6183 * doc/tm.texi: Regenerate.
6184 * targhooks.h (default_function_arg): Take a function_arg_info
6185 instead of a mode, tree and named flag.
6186 (default_function_incoming_arg): Likewise.
6187 * targhooks.c (default_function_arg): Likewise.
6188 (default_function_incoming_arg): Likewise.
6189 * calls.h (function_arg_info::end_marker_p): New function.
6190 (function_arg_info::end_marker): Likewise.
6191 * calls.c (prepare_call_address, initialize_argument_information)
6192 (expand_call, emit_library_call_value_1): Update calls to
6193 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6194 * dse.c: Include calls.h.
6195 (get_call_args): Update call to targetm.calls.function_arg.
6196 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6197 * var-tracking.c (prepare_call_arguments): Likewise.
6198 * function.c (assign_parm_find_entry_rtl): Update call to
6199 targetm.calls.function_incoming_arg.
6200 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6201 function_arg_info instead of a mode, tree and named flag.
6202 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6203 * config/arc/arc.c (arc_function_arg): Likewise.
6204 * config/arm/arm.c (arm_function_arg): Likewise.
6205 (cmse_func_args_or_return_in_stack): Update call accordingly.
6206 (arm_function_ok_for_sibcall): Likewise.
6207 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6208 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6209 instead of a mode, tree and named flag.
6210 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6211 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6212 (c6x_call_saved_register_used): Update call accordingly.
6213 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6214 instead of a mode, tree and named flag.
6215 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6216 (cris_function_arg_1): Likewise.
6217 * config/csky/csky.c (csky_function_arg): Likewise.
6218 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6219 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6220 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6221 (frv_function_arg_1): Likewise.
6222 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6223 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6224 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6225 * config/i386/i386.c (ix86_function_arg): Likewise.
6226 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6227 (ia64_function_arg_1): Likewise.
6228 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6229 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6230 accordingly.
6231 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6232 instead of a mode, tree and named flag.
6233 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6234 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6235 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6236 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6237 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6238 (microblaze_expand_prologue): Update call accordingly.
6239 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6240 instead of a mode, tree and named flag.
6241 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6242 (mmix_function_arg_1): Likewise.
6243 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6244 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6245 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6246 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6247 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6248 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6249 (nvptx_function_incoming_arg): Likewise.
6250 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6251 * config/pa/pa.c (pa_function_arg): Likewise.
6252 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6253 * config/pru/pru.c (pru_function_arg): Likewise.
6254 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6255 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6256 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6257 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6258 (rs6000_parm_needs_stack): Update call accordingly.
6259 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6260 instead of a mode, tree and named flag.
6261 * config/s390/s390.c (s390_function_arg): Likewise.
6262 (s390_call_saved_register_used): Update call accordingly.
6263 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6264 instead of a mode, tree and named flag.
6265 (sh_output_mi_thunk): Update call accordingly.
6266 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6267 (sparc_function_incoming_arg): Take a function_arg_info instead of
6268 a mode, tree and named flag.
6269 * config/spu/spu.c (spu_function_arg): Likewise.
6270 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6271 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6272 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6273 * config/v850/v850.c (v850_function_arg): Likewise.
6274 * config/vax/vax.c (vax_function_arg): Likewise.
6275 * config/visium/visium.c (visium_function_arg): Likewise.
6276 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6277 (xtensa_function_incoming_arg): Likewise.
6278
6279 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6280
6281 * target.def (setup_incoming_varargs): Take a function_arg_info
6282 instead of a mode and tree.
6283 * doc/tm.texi: Regenerate.
6284 * targhooks.h (default_setup_incoming_varargs): Take a
6285 function_arg_info instead of a mode and tree.
6286 * targhooks.c (default_setup_incoming_varargs): Likewise.
6287 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6288 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6289 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6290 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6291 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6292 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6293 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6294 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6295 Likewise.
6296 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6297 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6298 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6299 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6300 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6301 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6302 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6303 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6304 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6305 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6306 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6307 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6308 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6309 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6310 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6311 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6312 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6313 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6314 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6315 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6316 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6317 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6318 * function.c (assign_parms_setup_varargs): Update call to
6319 targetm.calls.setup_incoming_varargs.
6320
6321 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6322
6323 * target.def (pass_by_reference): Take a function_arg_info instead
6324 of a mode, type and named flag.
6325 * doc/tm.texi: Regenerate.
6326 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6327 accordingly.
6328 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6329 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6330 function_arg_info instead of a mode, type and named flag.
6331 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6332 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6333 mode, type and named flag.
6334 * calls.c (pass_by_reference): Likewise.
6335 (pass_va_arg_by_reference): Update call accordingly.
6336 (initialize_argument_information): Likewise.
6337 (emit_library_call_value_1): Likewise.
6338 * function.c (assign_parm_find_data_types): Likewise.
6339 * var-tracking.c (prepare_call_arguments): Likewise.
6340 * stor-layout.c: Include calls.h.
6341 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6342 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6343 function_arg_info instead of a mode, type and named flag.
6344 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6345 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6346 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6347 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6348 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6349 (c6x_call_saved_register_used): Update call to pass_by_reference.
6350 * config/cris/cris.c (cris_pass_by_reference): Take a
6351 function_arg_info instead of a mode, type and named flag.
6352 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6353 function_arg_info instead of a mode, type and named flag.
6354 (epiphany_arg_partial_bytes): Update call accordingly.
6355 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6356 function_arg_info instead of a mode, type and named flag.
6357 (ft32_arg_partial_bytes): Update call accordingly.
6358 * config/i386/i386.c (ix86_pass_by_reference): Take a
6359 function_arg_info instead of a mode, type and named flag.
6360 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6361 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6362 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6363 (m32r_return_in_memory): Update call accordingly.
6364 * config/mips/mips.c (mips_pass_by_reference): Take a
6365 function_arg_info instead of a mode, type and named flag.
6366 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6367 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6368 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6369 (moxie_arg_partial_bytes): Update call accordingly.
6370 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6371 function_arg_info instead of a mode, type and named flag.
6372 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6373 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6374 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6375 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6376 (riscv_return_in_memory): Update call accordingly.
6377 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6378 function_arg_info instead of a mode, type and named flag.
6379 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6380 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6381 * config/s390/s390.c (s390_pass_by_reference): Take a
6382 function_arg_info instead of a mode, type and named flag.
6383 (s390_call_saved_register_used): Update call accordingly.
6384 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6385 instead of a mode, type and named flag.
6386 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6387 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6388 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6389 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6390 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6391 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6392
6393 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6394
6395 * target.def (arg_partial_bytes): Take a function_arg_info instead
6396 of a mode, type and named flag.
6397 * doc/tm.texi: Regenerate.
6398 * target.h (function_arg_info): Declare.
6399 * calls.h (function_arg_info): New class.
6400 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6401 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6402 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6403 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6404 * calls.c (initialize_argument_information): Update call to
6405 targetm.calls.partial_bytes.
6406 (emit_library_call_value_1): Likewise.
6407 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6408 * function.c (assign_parm_find_entry_rtl): Likewise.
6409 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6410 function_arg_info instead of a mode, type and named flag.
6411 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6412 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6413 (cmse_func_args_or_return_in_stack): Update accordingly.
6414 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6415 function_arg_info instead of a mode, type and named flag.
6416 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6417 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
6418 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
6419 * config/fr30/fr30.c: Include calls.h.
6420 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
6421 type and named flag.
6422 * config/frv/frv.c: Include calls.h.
6423 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
6424 type and named flag.
6425 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
6426 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
6427 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
6428 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
6429 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
6430 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
6431 * config/microblaze/microblaze.c (function_arg_partial_bytes):
6432 Likewise.
6433 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
6434 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
6435 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
6436 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
6437 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
6438 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
6439 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
6440 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
6441 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
6442 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
6443 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
6444 (rs6000_parm_needs_stack): Update call accordingly.
6445 * config/sh/sh.c (sh_arg_partial_bytes): Take a
6446 function_arg_info instead of a mode, type and named flag.
6447 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
6448 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
6449
6450 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6451
6452 * calls.h (must_pass_va_arg_in_stack): Declare.
6453 * calls.c (must_pass_va_arg_in_stack): New function.
6454 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
6455 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
6456 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
6457 Likewise.
6458 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6459
6460 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6461
6462 * calls.h (pass_va_arg_by_reference): Declare.
6463 * calls.c (pass_va_arg_by_reference): New function.
6464 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
6465 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
6466 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
6467 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6468 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6469 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
6470 (mips_gimplify_va_arg_expr): Likewise.
6471 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
6472 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6473 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
6474 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
6475 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6476 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
6477 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
6478 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
6479 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
6480 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6481 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6482
6483 2019-08-20 Richard Biener <rguenther@suse.de>
6484
6485 PR target/91498
6486 * config/i386/i386-features.c (general_scalar_chain::convert_op):
6487 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
6488 (convert_scalars_to_vector): Add timode_p parameter and use it
6489 to guard TImode-only operation.
6490 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
6491 (pass_stv::execute): Pass down timode_p.
6492
6493 2019-08-20 Lili Cui <lili.cui@intel.com>
6494
6495 * common/config/i386/i386-common.c
6496 (processor_names): Add tigerlake and cooperlake.
6497 (processor_alias_table): Add tigerlake and cooperlake.
6498 * config.gcc: Add -march=tigerlake and cooperlake.
6499 * config/i386/driver-i386.c
6500 (host_detect_local_cpu): Detect tigerlake and cooperlake.
6501 Add "has_avx" to classify processor.
6502 * config/i386/i386-builtins.c (processor_model) :
6503 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
6504 (arch_names_table): Add tigerlake and cooperlake.
6505 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
6506 and PROCESSOR_COOPERLAKE.
6507 * config/i386/i386-c.c
6508 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
6509 * config/i386/i386-options.c
6510 (m_TIGERLAKE) : Define.
6511 (m_COOPERLAKE) : Ditto.
6512 (m_CORE_AVX512): Ditto.
6513 (processor_cost_table): Add cascadelake.
6514 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
6515 * config/i386/i386.h
6516 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
6517 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6518 (PTA_MOVDIRI): Ditto.
6519 (PTA_MOVDIR64B): Ditto.
6520 (PTA_COOPERLAKE) : Ditto.
6521 (PTA_TIGERLAKE) : Ditto.
6522 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6523 * doc/extend.texi: Add tigerlake and cooperlake.
6524 * doc/invoke.texi: Add tigerlake and cooperlake.
6525
6526 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
6527
6528 * doc/install.texi (Specific, alpha): Remove note to use
6529 binutils 2.11.2 or later.
6530
6531 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6532
6533 PR middle-end/89544
6534 * function.c (assign_parm_find_stack_rtl): Use larger alignment
6535 when possible.
6536
6537 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
6538
6539 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
6540 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
6541 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
6542 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
6543 * config/aarch64/constraints.md (Dt): New constraint
6544 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
6545
6546 2019-08-19 Richard Biener <rguenther@suse.de>
6547
6548 PR tree-optimization/91403
6549 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
6550 cases we can handle with tail-recursion...
6551 (follow_ssa_edge_expr): ... here. Do so.
6552
6553 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
6554
6555 PR target/91441
6556 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
6557 implemented for -fsanitize=kernel-address, and merge check logic
6558 with -fsanitize=address.
6559
6560 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
6561
6562 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
6563 for cpu and machine. Factor 64/32b builtins.
6564
6565 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
6566
6567 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
6568 gone, point to sourceforge.net.
6569
6570 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6571
6572 * doc/ux.texi (User Experience Guidelines): Update reference.
6573
6574 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6575
6576 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
6577 not LGPL".
6578
6579 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
6580
6581 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
6582 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
6583
6584 2019-08-16 Martin Sebor <msebor@redhat.com>
6585
6586 * tree.def (TYPE_SIZE): Clarify.
6587 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
6588
6589 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
6590
6591 PR tree-optimization/91109
6592 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
6593 * lra.c (lra): Use lra_need_for_scratch_reg_p.
6594 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
6595
6596 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
6597
6598 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
6599 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
6600 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
6601 (uavg<mode>3_ceil): New expander.
6602 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
6603 mode iterator when creating CONST1_RTX.
6604 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
6605 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
6606 mode iterator for const1_operand predicate.
6607
6608 2019-08-16 Richard Biener <rguenther@suse.de>
6609
6610 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
6611 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
6612 follow_ssa_edge.
6613 (follow_ssa_edge_in_condition_phi_branch): Likewise.
6614 (analyze_evolution_in_loop): Likewise.
6615 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
6616 (follow_ssa_edge_expr): ... here. Refactor code.
6617
6618 2019-08-16 Richard Biener <rguenther@suse.de>
6619
6620 PR target/91469
6621 * config/i386/i386-features.c
6622 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
6623
6624 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6625
6626 PR other/91255
6627 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
6628 only if subst_name matches curr_attr string.
6629
6630 2019-08-16 Richard Biener <rguenther@suse.de>
6631
6632 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
6633 stmt at gsi_p, instead replace it with a NOP removed later.
6634 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
6635 that became dead because of that.
6636
6637 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
6638
6639 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
6640 for which we can't represent a range.
6641 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
6642 set_varying.
6643 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
6644 Set VR_UNDEFINED if type is not supported.
6645 * tree-ssanames.c (get_range_info): Pass type to set_varying.
6646 * tree-vrp.c (value_range_base::check): Assert that a varying has
6647 min/max set.
6648 (value_range_base::equal_p): Early bail for undefines.
6649 (value_range_base::set_varying): Accept a type.
6650 (value_range::set_varying): Same.
6651 (value_range_base::type): VARYING can have a type, while UNDEFINE
6652 is typeless.
6653 (value_range_base::dump): Print type for VARYING nodes.
6654 (value_range_base::set): Add type to VARYING.
6655 (extract_range_from_multiplicative_op): Pass type to set_varying.
6656 (extract_range_from_binary_expr): Same.
6657 (value_range_base::intersect_helper): Same.
6658 (value_range_base::union_helper): Same.
6659 (value_range_base::normalize_symbolics): Same.
6660 (determine_value_range_1): Same.
6661 * tree-vrp.h (class value_range_base): Add type to set_varying.
6662 Add prototype for dump(void).
6663 Add prototype for supports_type_p.
6664 (class value_range): Add type to set_varying.
6665 Add prototype for dump(void).
6666 * vr-values.c (set_value_range_to_truthvalue): Pass type to
6667 set_varying.
6668 (vr_values::get_lattice_entry): Set varying even if propagation
6669 finished.
6670 Pass type to set_varying.
6671 (vr_values::get_value_range): Remove vr_const_varying.
6672 Reallocate the lattice if needed.
6673 (vr_values::update_value_range): Pass type to set_varying.
6674 (vr_values::extract_range_for_var_from_comparison_expr): Same.
6675 (vr_values::extract_range_from_binary_expr): Same.
6676 (vr_values::extract_range_from_unary_expr): Same.
6677 (vr_values::extract_range_from_cond_expr): Same.
6678 (vr_values::check_for_binary_op_overflow): Same.
6679 (vr_values::extract_range_basic): Same.
6680 (vr_values::extract_range_from_assignment): Same.
6681 (vr_values::vr_values): Increase size of num_vr_values.
6682 (vr_values::extract_range_from_phi_node): Pass type to
6683 set_varying.
6684
6685 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
6686
6687 PR target/90878
6688 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
6689 for costs of hard register moves.
6690 (ix86_register_move_cost): Likewise.
6691 * config/i386/i386.h (processor_costs): Move costs of hard
6692 register moves to hard_register. Add int_load, int_store,
6693 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
6694 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
6695 for costs of RTL expressions.
6696 * config/i386/x86-tune-costs.h: Move costs of hard register
6697 moves to hard_register. Duplicate int_load, int_store,
6698 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
6699 sse_load, sse_store for costs of RTL expressions.
6700
6701 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6702
6703 * target.def (setup_incoming_vararg_bounds): Remove.
6704 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
6705 * doc/tm.texi: Regenerate.
6706 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
6707 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
6708 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
6709 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
6710
6711 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6712
6713 MSP430: Fix lines over 80 characters long in
6714 config/msp430/*.{c,h} files
6715
6716 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
6717 specifier in string.
6718 (msp430_select_hwmult_lib): Split line more than 80 characters long.
6719 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
6720 redundant old comment.
6721 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
6722 Split line more than 80 characters long.
6723 * config/msp430/msp430.c (msp430_option_override): Likewise.
6724 (msp430_return_in_memory): Likewise.
6725 (msp430_gimplify_va_arg_expr): Likewise.
6726 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
6727 (msp430_legitimate_constant): Likewise.
6728 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
6729 (msp430_attr): Likewise.
6730 (msp430_data_attr): Likewise.
6731 (msp430_start_function): Likewise.
6732 (gen_prefix): Likewise.
6733 (msp430_init_sections): Likewise.
6734 (msp430_select_section): Likewise.
6735 (msp430_function_section): Likewise.
6736 (msp430_unique_section): Likewise.
6737 (msp430_output_aligned_decl_common): Likewise.
6738 (msp430_do_not_relax_short_jumps): Likewise.
6739 (msp430_init_builtins): Likewise.
6740 (msp430_expand_delay_cycles): Likewise.
6741 (msp430_expand_prologue): Likewise.
6742 (msp430_expand_epilogue): Likewise.
6743 (msp430_expand_helper): Likewise.
6744 (msp430_split_movsi): Likewise.
6745 (msp430_print_operand): Likewise.
6746 (msp430_return_addr_rtx): Likewise.
6747 (msp430x_extendhisi): Likewise.
6748 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
6749 (ASM_SPEC): Likewise.
6750 Remove very obvious comments.
6751 (LIB_SPEC): Split line more than 80 characters long.
6752 (EH_RETURN_HANDLER_RTX): Likewise.
6753 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6754
6755 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6756
6757 MSP430: Fix whitespace errors and incorrect indentation in
6758 config/msp430/*.{c,h} files
6759
6760 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
6761 (msp430_select_hwmult_lib): Likewise.
6762 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
6763 (msp430_extract_mcu_data): Likewise.
6764 (struct t_msp430_mcu_data): Likewise.
6765 * config/msp430/msp430.c (struct machine_function): Remove whitespace
6766 before left square bracket.
6767 (msp430_option_override): Fix indentation.
6768 (msp430_hard_regno_nregs_with_padding): Likewise.
6769 (msp430_initial_elimination_offset): Likewise.
6770 (msp430_special_register_convention_p): Remove whitespace before left
6771 square bracket and after exclamation mark.
6772 (msp430_evaluate_arg): Likewise.
6773 (msp430_callee_copies): Fix indentation.
6774 (msp430_gimplify_va_arg_expr): Likewise.
6775 (msp430_function_arg_advance): Remove whitespace before left square
6776 bracket.
6777 (reg_ok_for_addr): Likewise.
6778 (msp430_preserve_reg_p): Likewise.
6779 (msp430_compute_frame_info): Likewise.
6780 (msp430_asm_output_addr_const_extra): Add space between function name
6781 and open parenthesis.
6782 (has_section_name): Fix indentation.
6783 (msp430_attr): Remove trailing whitespace.
6784 (msp430_section_attr): Likewise.
6785 (msp430_data_attr): Likewise.
6786 (struct msp430_attribute_table): Fix comment and whitespace.
6787 (msp430_start_function): Remove whitespace before left square bracket.
6788 Add space between function name and open parenthesis.
6789 (msp430_select_section): Remove trailing whitespace.
6790 (msp430_section_type_flags): Remove trailing whitespace.
6791 (msp430_unique_section): Remove space before closing parenthesis.
6792 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
6793 (msp430_builtins): Remove whitespace before left square bracket.
6794 (msp430_init_builtins): Fix indentation.
6795 (msp430_expand_prologue): Remove whitespace before left square bracket.
6796 Remove space before closing parenthesis.
6797 (msp430_expand_epilogue): Remove whitespace before left square bracket.
6798 (msp430_split_movsi): Remove space before closing parenthesis.
6799 (helper_function_name_mappings): Fix indentation.
6800 (msp430_use_f5_series_hwmult): Fix whitespace.
6801 (use_32bit_hwmult): Likewise.
6802 (msp430_no_hwmult): Likewise.
6803 (msp430_output_labelref): Remove whitespace before left square bracket.
6804 (msp430_print_operand_raw): Likewise.
6805 (msp430_print_operand_addr): Likewise.
6806 (msp430_print_operand): Add two spaces after '.' in comment.
6807 Fix trailing whitespace.
6808 (msp430x_extendhisi): Fix indentation.
6809 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
6810 tab.
6811 (PC_REGNUM): Likewise.
6812 (STACK_POINTER_REGNUM): Likewise.
6813 (CC_REGNUM): Likewise.
6814
6815 2019-08-15 Richard Biener <rguenther@suse.de>
6816
6817 PR target/91454
6818 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
6819 helper.
6820 (general_scalar_chain::make_vector_copies): Use it.
6821
6822 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
6823
6824 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
6825
6826 2019-08-15 Martin Liska <mliska@suse.cz>
6827
6828 * tree-ssa-dce.c (propagate_necessity): We can't reach now
6829 operators with no arguments.
6830 (eliminate_unnecessary_stmts): Likewise here.
6831
6832 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
6833
6834 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
6835 <case COMPARE>: Revert 2019-08-14 change.
6836 (convertible_comparison_p): Revert 2019-08-14 change. Return false
6837 for (TARGET_64BIT || mode != DImode).
6838
6839 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
6840
6841 * tree-vrp.c (value_range_base::set): Merge in code from
6842 value_range_base::set_and_canonicalize.
6843 Enforce canonicalization at set time.
6844 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
6845 (value_range_base::set_undefined): Inline call to set().
6846 (value_range_base::set_varying): Same.
6847 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
6848 (vrp_val_max): New argument handle_pointers.
6849 (vrp_val_min): Same.
6850 (ranges_from_anti_range): Same.
6851 (extract_range_into_wide_ints): Use tree argument instead of sign
6852 and precision.
6853 (extract_range_from_multiplicative_op): Take in tree type instead
6854 of precision and sign. Adapt function for canonicalized ranges.
6855 (extract_range_from_binary_expr): Pass type to
6856 extract_range_from_multiplicative_op.
6857 Adapt for canonicalized ranges.
6858 (extract_range_from_unary_expr): Same.
6859 (value_range_base::intersect_helper): Adjust for canonicalized
6860 ranges.
6861 (value_range_base::union_helper): Same.
6862 (value_range_base::normalize_symbolics): New.
6863 * tree-vrp.h (class value_range_base): Remove
6864 set_and_canonicalize.
6865 New prototype for normalize_symbolics.
6866 (class value_range): Remove set_and_canonicalize.
6867 (vrp_val_min): Adjust prototype.
6868 (vrp_val_max): Same.
6869 * vr-values.c
6870 (vr_values::extract_range_for_var_from_comparison_expr): Call set
6871 instead of set_and_canonicalize.
6872
6873 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6874
6875 PR middle-end/91444
6876 * tree-vect-stmts.c (vectorizable_call): Check that the function
6877 is a BUILT_IN_MD function before passing it to
6878 targetm.vectorize.builtin_md_vectorized_function.
6879
6880 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6881
6882 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
6883 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
6884 (aarch64_select_early_remat_modes): Use it.
6885
6886 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6887
6888 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
6889 16 for SVE predicates even if they are fixed-length.
6890
6891 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6892
6893 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
6894 operand order match the MOV /Z alias.
6895
6896 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6897
6898 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
6899 the vector pattern as an aarch64_svpattern argument. Update the
6900 overloaded caller accordingly.
6901 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
6902 (aarch64_output_sve_vector_inc_dec): Likewise.
6903
6904 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6905
6906 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
6907 multiplication case, try to compute VG * (lowest set bit) directly
6908 rather than always basing the multiplication on VG. Use
6909 expand_mult for the multiplication if we can.
6910
6911 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6912
6913 * config/aarch64/aarch64-protos.h
6914 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
6915 (aarch64_sve_inc_dec_immediate_p): Rename to...
6916 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
6917 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
6918 (aarch64_output_sve_scalar_inc_dec): Declare.
6919 (aarch64_output_sve_inc_dec_immediate): Rename to...
6920 (aarch64_output_sve_vector_inc_dec): ...this.
6921 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
6922 (aarch64_output_sve_scalar_inc_dec): New functions.
6923 (aarch64_output_sve_addvl_addpl): Remove the base and offset
6924 arguments. Only handle true ADDVL and ADDPL instructions;
6925 don't emit an INC or DEC.
6926 (aarch64_sve_inc_dec_immediate_p): Rename to...
6927 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
6928 (aarch64_output_sve_inc_dec_immediate): Rename to...
6929 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
6930 aarch64_sve_vector_inc_dec_immediate_p.
6931 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
6932 (aarch64_sve_plus_immediate): New predicates.
6933 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
6934 rather than aarch64_sve_addvl_addpl_immediate.
6935 (aarch64_sve_inc_dec_immediate): Rename to...
6936 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
6937 aarch64_sve_vector_inc_dec_immediate_p.
6938 (aarch64_sve_add_operand): Update accordingly.
6939 * config/aarch64/constraints.md (Uai): New constraint.
6940 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
6941 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
6942 operand into a register if it satisfies aarch64_sve_plus_immediate.
6943 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
6944 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
6945 * config/aarch64/aarch64-sve.md (add<mode>3): Call
6946 aarch64_output_sve_vector_inc_dec instead of
6947 aarch64_output_sve_inc_dec_immediate.
6948
6949 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6950
6951 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
6952 (UNSPEC_REVW): New constants.
6953 (elem_bits): New mode attribute.
6954 (SVE_INT_UNARY): New int iterator.
6955 (optab): Handle UNSPEC_REV[BHW].
6956 (sve_int_op): New int attribute.
6957 (min_elem_bits): Handle VNx16QI and the predicate modes.
6958 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
6959 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
6960 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
6961 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
6962 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
6963 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
6964 unspecs based on the total width of the reversed data.
6965 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
6966 reinterpret followed by a subreg on big-endian targets.
6967
6968 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6969 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6970
6971 * config/aarch64/aarch64-sve.md
6972 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
6973 alternatives in which one of the inputs is in the same register
6974 as the output.
6975
6976 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6977
6978 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
6979 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
6980
6981 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6982
6983 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
6984 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
6985
6986 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6987 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6988
6989 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
6990 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
6991 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
6992
6993 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6994 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6995
6996 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
6997 Add an alternative that uses reversed shifts.
6998
6999 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7000
7001 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7002 struct.
7003
7004 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7005
7006 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7007 a commutativity marker.
7008
7009 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7010 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7011
7012 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7013 (aarch64_prepare_sve_cond_int_fma): Declare.
7014 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7015 (aarch64_prepare_sve_int_fma): New functions.
7016 (aarch64_prepare_sve_cond_int_fma): Likewise.
7017 * config/aarch64/aarch64-sve.md
7018 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7019 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7020 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7021 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7022 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7023 (*madd<mode>): Rename to...
7024 (*fma<mode>4): ...this.
7025 (*msub<mode>): Rename to...
7026 (*fnma<mode>4): ...this.
7027
7028 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7029 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7030
7031 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7032 Print 2.0 naturally.
7033 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7034 * config/aarch64/predicates.md
7035 (aarch64_sve_float_negated_arith_immediate): New predicate,
7036 renamed from aarch64_sve_float_arith_with_sub_immediate.
7037 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7038 positive and negative constants.
7039 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7040 or an aarch64_sve_float_arith_with_sub_immediate.
7041 * config/aarch64/constraints.md (vsN): Use
7042 aarch64_sve_float_negated_arith_immediate.
7043 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7044 iterator.
7045 (sve_pred_fp_rhs2_immediate): New int attribute.
7046 * config/aarch64/aarch64-sve.md
7047 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7048 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7049 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7050 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7051 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7052 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7053
7054 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7055 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7056
7057 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7058 (*aarch64_cond_abd<SVE_F:mode>_3)
7059 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7060
7061 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7062 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7063
7064 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7065 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7066
7067 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7068 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7069
7070 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7071 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7072 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7073 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7074 optabs.
7075 * optabs.h (create_convert_operand_from): Expand comment.
7076 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7077 when mapping scalar rtxes to vector operands.
7078 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7079 ashiftrt and lshiftrt.
7080 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7081 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7082 (*cond_<optab><mode>_any_const): New patterns.
7083
7084 2019-08-15 Martin Liska <mliska@suse.cz>
7085
7086 PR ipa/91438
7087 * cgraph.c (cgraph_node::remove): When setting
7088 n->origin = NULL for all nested functions, reset
7089 also next_nested.
7090
7091 2019-08-15 Martin Liska <mliska@suse.cz>
7092
7093 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7094 and next_nested.
7095
7096 2019-08-15 Martin Liska <mliska@suse.cz>
7097
7098 PR ipa/91404
7099 * passes.c (order): Remove.
7100 (uid_hash_t): Likewise).
7101 (remove_cgraph_node_from_order): Remove from set
7102 of pointers (cgraph_node *).
7103 (insert_cgraph_node_to_order): New.
7104 (duplicate_cgraph_node_to_order): New.
7105 (do_per_function_toporder): Register all 3 cgraph hooks.
7106 Skip removed_nodes now as we know about all of them.
7107
7108 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7109
7110 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7111 <case E_V8QImode>: Use vector_set path for
7112 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7113 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7114 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7115
7116 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7117
7118 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7119
7120 2019-08-14 Martin Sebor <msebor@redhat.com>
7121
7122 PR tree-optimization/91294
7123 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7124 source length as exact.
7125
7126 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7127
7128 * doc/extend.texi: Add "noinit" attribute documentation.
7129 * doc/sourcebuild.texi: Add noinit effective target documentation.
7130 * varasm.c (default_section_type_flags): Add support for "noinit"
7131 section.
7132 (default_elf_select_section): Add support for "noinit" attribute.
7133 * config/msp430/msp430.c (msp430_attribute_table): Remove
7134 "noinit" entry.
7135
7136 2019-08-14 Richard Biener <rguenther@suse.de>
7137 Uroš Bizjak <ubizjak@gmail.com>
7138
7139 PR target/91154
7140 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7141 mode arguments.
7142 (scalar_chain::smode): New member.
7143 (scalar_chain::vmode): Likewise.
7144 (dimode_scalar_chain): Rename to...
7145 (general_scalar_chain): ... this.
7146 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7147 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7148 base with TImode and V1TImode.
7149 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7150 (general_scalar_chain::vector_const_cost): Adjust for SImode
7151 chains.
7152 (general_scalar_chain::compute_convert_gain): Likewise. Add
7153 {S,U}{MIN,MAX} support.
7154 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7155 (general_scalar_chain::make_vector_copies): Likewise. Handle
7156 non-DImode chains appropriately.
7157 (general_scalar_chain::convert_reg): Likewise.
7158 (general_scalar_chain::convert_op): Likewise.
7159 (general_scalar_chain::convert_insn): Likewise. Add
7160 fatal_insn_not_found if the result is not recognized.
7161 (convertible_comparison_p): Pass in the scalar mode and use that.
7162 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7163 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7164 (scalar_to_vector_candidate_p): Remove by inlining into single
7165 caller.
7166 (general_remove_non_convertible_regs): Rename from
7167 dimode_remove_non_convertible_regs.
7168 (remove_non_convertible_regs): Remove by inlining into single caller.
7169 (convert_scalars_to_vector): Handle SImode and DImode chains
7170 in addition to TImode chains.
7171 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7172 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7173 (*<maxmin>di3_doubleword): Likewise.
7174
7175 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7176 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7177
7178 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7179 (*cond_bic<mode>_any): New patterns.
7180
7181 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7182
7183 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7184 take the equivalent mask, as well as a bit count.
7185 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7186 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7187 (aarch64_sve_pred_and_operand): New predicates.
7188 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7189 code attribute.
7190 * config/aarch64/aarch64-sve.md
7191 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7192 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7193
7194 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7195
7196 * config/aarch64/aarch64-sve.md
7197 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7198 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7199 New patterns.
7200
7201 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7202 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7203
7204 * config/aarch64/aarch64-sve.md
7205 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7206 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7207
7208 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7209 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7210
7211 * config/aarch64/aarch64-sve.md
7212 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7213 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7214
7215 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7216
7217 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7218 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7219 New pattern.
7220
7221 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7222 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7223
7224 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7225
7226 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7227 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7228
7229 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7230 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7231 (aarch64_print_operand): Add support for %I.
7232 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7233 Bitcast floating-point constants to the corresponding integer constant.
7234 (aarch64_float_const_representable_p): Handle vectors as well
7235 as scalars.
7236 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7237 for the new vcond_mask_<mode><vpred> expander.
7238 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7239 test aarch64_float_const_representable_p.
7240 (aarch64_sve_reg_or_dup_imm): New predicate.
7241 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7242 gen_vcond_mask_<mode><vpred> instead of
7243 gen_aarch64_sve_dup<mode>_const.
7244 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7245 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7246 for operands 1 and 2 respectively. Force operand 2 into a
7247 register if operand 1 is a register. Fold old define_insn...
7248 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7249 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7250 floating-point constants that can be moved as integers. Add
7251 alternatives for MOV /M and FMOV /M.
7252 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7253 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7254 1 and 2 respectively.
7255 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7256 as scalars.
7257 (vss): New constraint.
7258
7259 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7260
7261 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7262 (aarch64_sve_float_maxmin_operand): New predicates.
7263 * config/aarch64/constraints.md (vsB): New constraint.
7264 (vsM): Fix typo.
7265 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7266 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7267 UNSPEC_COND_FMINNM.
7268 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7269 Use aarch64_sve_float_maxmin_operand for operand 2.
7270 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7271 Add alternatives for the constant forms.
7272
7273 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7274
7275 * config/aarch64/constraints.md (vsb): New constraint.
7276 (vsm): Generalize description.
7277 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7278 iterator.
7279 (sve_imm_con): Handle smax, smin, umax and umin.
7280 (sve_imm_prefix): New code attribute.
7281 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7282 (aarch64_sve_vsb_operand): New predicates.
7283 (aarch64_sve_mul_immediate): Rename to...
7284 (aarch64_sve_vsm_immediate): ...this.
7285 (aarch64_sve_mul_operand): Rename to...
7286 (aarch64_sve_vsm_operand): ...this.
7287 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7288 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7289 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7290 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7291 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7292 add movprfx support for the immediate alternatives.
7293 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7294 of the above.
7295 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7296 for operand 3.
7297
7298 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7299
7300 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7301 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7302 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7303
7304 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7305
7306 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7307 (optab, sve_int_op): Handle them.
7308 * config/aarch64/aarch64-sve.md: Expand comment.
7309
7310 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7311
7312 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7313 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7314 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7315
7316 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7317
7318 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7319 (aarch64_expand_sve_const_pred_trn): New functions.
7320 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7321 use the above functions when the parameter is true.
7322 (aarch64_expand_sve_const_pred): Update call accordingly.
7323 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7324 Rename to...
7325 (@aarch64_sve_<perm_insn><mode>): ...this.
7326
7327 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7328
7329 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7330 Declare.
7331 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7332 (aarch64_sve_emit_int_cmp): New functions.
7333 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7334 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7335 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7336 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7337 (UNSPEC_PRED_Z): New unspec.
7338 (set_clobber_cc_nzc): Delete.
7339 * config/aarch64/aarch64-sve.md: Add a block comment about
7340 UNSPEC_PRED_Z.
7341 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7342 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7343 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7344 UNSPEC_MERGE_PTRUE.
7345 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7346 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7347 check for compatible predicates.
7348 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7349 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7350 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7351 comparisons above.
7352
7353 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7354
7355 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7356 * config/aarch64/aarch64-sve.md: Add a section describing it.
7357 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7358 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7359 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7360 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7361 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7362 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7363 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7364 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7365 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7366 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7367 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7368 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7369 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7370 (aarch64_evpc_rev_local): Update accordingly.
7371
7372 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7373
7374 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7375 iterators.
7376 (SVE_BHSI, SVE_SDI): Tweak comment.
7377 (SVE_HSDI): Likewise. Fix definition.
7378 (SVE_SDF): New mode iterator.
7379 (elem_bits): New mode attribute.
7380 (SVE_COND_FCVT): New int iterator.
7381 * config/aarch64/aarch64-sve.md
7382 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7383 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7384 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7385 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7386 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7387 ...these new patterns.
7388 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7389 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7390 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7391 Merge into...
7392 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7393 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7394 ...these new patterns.
7395 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7396 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7397 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7398 ...this new pattern.
7399 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7400 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7401 ...this new pattern.
7402 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7403
7404 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7405
7406 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7407 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7408 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7409 unspecs.
7410 (optab, su): Handle them.
7411 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7412 * config/aarch64/aarch64-sve.md
7413 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7414 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7415 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7416 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7417 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
7418 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
7419 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
7420 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
7421 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
7422 FIXUORS.
7423 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
7424 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
7425 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
7426 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
7427 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
7428 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
7429 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
7430 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
7431 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
7432 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
7433 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
7434 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
7435 of UNSPEC_FLOAT_CONVERT.
7436 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
7437 aarch64_sve_extend<mode><Vwide>2.
7438
7439 2019-08-14 Richard Biener <rguenther@suse.de>
7440
7441 PR target/91154
7442 * config/i386/i386-features.c
7443 (dimode_scalar_chain::compute_convert_gain): Compute and dump
7444 individual instruction gain. Fix reg-reg copy GRP cost. Use
7445 ix86_cost->sse_op for vector instruction costs.
7446
7447 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7448
7449 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
7450 (cmp_op): Handle it.
7451 (SVE_COND_FP_CMP): Rename to...
7452 (SVE_COND_FP_CMP_I0): ...this.
7453 (SVE_FP_CMP): Remove.
7454 * config/aarch64/aarch64-sve.md
7455 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
7456 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
7457 using unspecs to represent the comparison.
7458 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
7459 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
7460 accordingly.
7461 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
7462 (aarch64_unspec_cond_code): Move after integer code. Handle
7463 UNORDERED.
7464 (aarch64_emit_sve_predicated_cond): Replace with...
7465 (aarch64_emit_sve_fp_cond): ...this new function.
7466 (aarch64_emit_sve_or_conds): Replace with...
7467 (aarch64_emit_sve_or_fp_conds): ...this new function.
7468 (aarch64_emit_sve_inverted_cond): Replace with...
7469 (aarch64_emit_sve_invert_fp_cond): ...this new function.
7470 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
7471
7472 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7473
7474 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
7475 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
7476 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
7477 SVE_HSD instead of SVE_SD.
7478
7479 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7480 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7481
7482 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
7483 iterator.
7484 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
7485 attributes.
7486 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
7487 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
7488 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
7489 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
7490 (*div<SVE_F:mode>3): Generalize to...
7491 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
7492
7493 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7494 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7495
7496 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
7497 constants.
7498 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
7499 predicate.
7500 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
7501 Declare.
7502 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
7503 function.
7504 * config/aarch64/aarch64-sve.md: Add a block comment about the
7505 handling of predicated FP operations.
7506 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
7507 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
7508 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7509 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
7510 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
7511 operand.
7512 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
7513 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
7514 operand.
7515 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
7516 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
7517 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
7518 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
7519 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
7520 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7521 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
7522 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
7523 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
7524 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
7525 strictness operands. Use aarch64_sve_pred_dominates_p to check
7526 whether the predicate on the conditional operation is suitable
7527 for merging. Split patterns into the canonical equal-predicate form.
7528 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
7529 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
7530
7531 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7532 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7533
7534 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
7535 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
7536 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
7537 rtx codes.
7538 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
7539 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
7540 unspecs.
7541
7542 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7543 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7544
7545 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
7546 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
7547 actually has, rather than relying on REG_EQUAL notes.
7548 Make the insn operand order match the SVE operand order.
7549 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
7550 the SVE operand order.
7551
7552 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7553
7554 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
7555 (aarch64_emit_set_immediate): Likewise.
7556 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
7557 (aarch64_pfalse_reg): Likewise.
7558 (aarch64_convert_sve_data_to_pred): New function.
7559 (aarch64_sve_move_pred_via_while): Take an optional target register
7560 and the required register mode.
7561 (aarch64_expand_sve_const_pred_1): New function.
7562 (aarch64_expand_sve_const_pred): Likewise.
7563 (aarch64_expand_mov_immediate): Build an all-true predicate
7564 if the significant bits of the immediate are all true. Use
7565 aarch64_expand_sve_const_pred for all compile-time predicate constants.
7566 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
7567 before register allocation.
7568 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
7569 a VNx16BI PTRUE when splitting the memory alternative.
7570 (vec_duplicate<mode>): Update accordingly.
7571 (*pred_cmp<cmp_op><mode>): Rename to...
7572 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
7573
7574 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7575
7576 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
7577 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
7578 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
7579 (UNSPEC_PTEST): New unspec.
7580 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
7581 * config/aarch64/iterators.md (data_bytes): New mode attribute.
7582 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
7583 * config/aarch64/aarch64-sve.md: Add a new section describing the
7584 handling of UNSPEC_PTEST.
7585 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
7586 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
7587 (ptest_ptrue<mode>): Replace with...
7588 (aarch64_ptest<mode>): ...this new pattern.
7589 (cbranch<mode>4): Update after above changes.
7590 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
7591 UNSPEC_PTEST_PTRUE.
7592 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
7593 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
7594 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
7595
7596 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
7597
7598 PR lto/91287
7599 * builtins.c (builtin_with_linkage_p): New function.
7600 * builtins.h (builtin_with_linkage_p): New function.
7601 * symtab.c (write_symbol): Remove redundant assert.
7602 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
7603 Remove FIXME and use builtin_with_linkage_p.
7604
7605 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7606
7607 PR middle-end/91421
7608 * tree-core.h (function_decl::function_code): Change type to
7609 unsigned int.
7610 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
7611 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
7612 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
7613 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
7614 is BUILT_IN_NORMAL.
7615 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
7616 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
7617 (fndecl_built_in_p): Change the type of the "name" argument to
7618 unsigned int.
7619 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
7620 after check for DECL_BUILT_IN_CLASS.
7621 * cgraphclones.c (build_function_decl_skip_args): Use
7622 set_decl_built_in_function.
7623 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
7624 * ipa-split.c (split_function): Likewise.
7625 * langhooks.c (add_builtin_function_common): Likewise.
7626 * omp-simd-clone.c (simd_clone_create): Likewise.
7627 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
7628 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
7629 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
7630 DECL_FUNCTION_CODE.
7631 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
7632 instead of DECL_FUNCTION_CODE.
7633 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
7634 instead of DECL_FUNCTION_CODE.
7635 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
7636 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
7637 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
7638 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
7639 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
7640 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
7641 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
7642 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
7643 (alpha_gimple_fold_builtin): Likewise.
7644 * config/arc/arc.c (arc_expand_builtin): Likewise.
7645 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
7646 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
7647 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
7648 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
7649 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
7650 * config/frv/frv.c (frv_expand_builtin): Likewise.
7651 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
7652 (gcn_expand_builtin): Likewise.
7653 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
7654 (fold_builtin_cpu): Likewise.
7655 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
7656 * config/i386/i386.c (ix86_fold_builtin): Likewise.
7657 (ix86_gimple_fold_builtin): Likewise.
7658 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
7659 (ia64_expand_builtin): Likewise.
7660 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
7661 * config/mips/mips.c (mips_expand_builtin): Likewise.
7662 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
7663 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
7664 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
7665 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
7666 * config/pa/pa.c (pa_expand_builtin): Likewise.
7667 * config/pru/pru.c (pru_expand_builtin): Likewise.
7668 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
7669 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7670 Likewise.
7671 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
7672 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
7673 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
7674 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
7675 (rs6000_builtin_reciprocal): Likewise.
7676 * config/rx/rx.c (rx_expand_builtin): Likewise.
7677 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
7678 * config/s390/s390.c (s390_expand_builtin): Likewise.
7679 * config/sh/sh.c (sh_expand_builtin): Likewise.
7680 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
7681 (sparc_fold_builtin): Likewise.
7682 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
7683 * config/spu/spu.c (spu_expand_builtin): Likewise.
7684 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
7685 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
7686 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
7687 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
7688 (xtensa_expand_builtin): Likewise.
7689
7690 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7691
7692 PR middle-end/91421
7693 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
7694 before the DECL_FUNCTION_CODE.
7695 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
7696 to check for a BUILT_IN_ALLOCA call.
7697 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
7698 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
7699 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
7700 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7701 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
7702 for BUILT_IN_NORMAL functions.
7703 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
7704 test for BUILT_IN_TM_ABORT.
7705 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
7706 to check for a BUILT_IN_STACK_RESTORE call.
7707 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
7708 * tree-ssa-threadedge.c
7709 (record_temporary_equivalences_from_stmts_at_dest): Check for a
7710 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
7711 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
7712 test for a BUILT_IN_NORMAL call instead of a negative test for
7713 an internal function call.
7714
7715 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7716
7717 * tree.h (build_vector_a_then_b): Declare.
7718 * tree.c (build_vector_a_then_b): New function.
7719 * fold-const-call.c (fold_while_ult): Likewise.
7720 (fold_const_call): Use it to handle IFN_WHILE_ULT.
7721 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
7722 (aarch64_svpattern): New enum.
7723 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
7724 constants through aarch64_expand_mov_immediate.
7725 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
7726 than general_operand as the predicate for operand 1.
7727 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
7728 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
7729 insn_type.
7730 (simd_immediate_info::simd_immediate_info): New overload that
7731 takes a scalar_int_mode and an svpattern.
7732 (simd_immediate_info::u): Add a "pattern" field.
7733 (svpattern_token): New function.
7734 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
7735 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
7736 (aarch64_sve_move_pred_via_while): New functions.
7737 (aarch64_expand_mov_immediate): Try using
7738 aarch64_sve_move_pred_via_while for predicates that contain N ones
7739 followed by M zeros but that do not correspond to a VLnnn pattern.
7740 (aarch64_sve_pred_valid_immediate): New function.
7741 (aarch64_simd_valid_immediate): Use it instead of dealing directly
7742 with PTRUE and PFALSE.
7743 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
7744 forms.
7745
7746 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
7747
7748 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
7749 flag.
7750 (darwin_override_options): Likewise.
7751 * config/darwin.h: Likewise.
7752 * config/darwin.opt: Likewise.
7753 * config/i386/i386.c (output_pic_addr_const): Likewise.
7754 * config/rs6000/darwin.h: Likewise.
7755 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
7756 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
7757 ... this TARGET_MACHO_SYMBOL_STUBS.
7758 (FUNCTION_PROFILER):Likewise.
7759 * config/i386/i386.h: Likewise.
7760
7761 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
7762
7763 * config/i386/i386-expand.c (ix86_expand_vector_extract)
7764 <case E_V2SImode>: Use vec_extr path for
7765 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7766 <case E_V8QImode>: Ditto.
7767 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
7768 Use SWI48 mode iterator. Use %k to output operand 0.
7769 (*mmx_pextrw): New insn pattern.
7770 (*mmx_pextrb): Ditto.
7771 (*mmx_pextrb_zext): Ditto.
7772
7773 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
7774
7775 * target.def (libc_has_function, libc_has_fast_function): Improve
7776 documentation strings.
7777 * doc/tm.texi: Regenerate.
7778
7779 2019-08-13 Caroline Tice <cmtice@google.com>
7780
7781 PR other/91396
7782 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
7783 vtv_end.o or vtv_end_preinit.o files if !static.
7784
7785 2019-08-13 Olivier Hainque <hainque@adacore.com>
7786
7787 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
7788
7789 2019-08-13 Olivier Hainque <hainque@adacore.com>
7790
7791 * rtlanal.c (tablejump_casesi_pattern): New function, to
7792 determine if a tablejump insn is a casesi dispatcher. Extracted
7793 from patch_jump_insn.
7794 * rtl.h (tablejump_casesi_pattern): Declare.
7795 * cfgrtl.c (patch_jump_insn): Use it.
7796 * dwarf2cfi.c (create_trace_edges): Use it.
7797
7798 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
7799
7800 PR target/81800
7801 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
7802 operand is larger than a long int.
7803
7804 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7805
7806 * machmode.h (opt_mode::else_mode): New function.
7807 (opt_mode::else_blk): Use it.
7808 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
7809 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
7810 (aarch64_gen_stepped_int_parallel): Likewise.
7811 (aarch64_stepped_int_parallel_p): Likewise.
7812 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
7813 argument.
7814 * config/aarch64/aarch64.c
7815 (aarch64_expand_sve_widened_duplicate): Delete.
7816 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
7817 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
7818 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
7819 argument. Use early returns in the !CONST_INT_P handling.
7820 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
7821 than handling some inline.
7822 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
7823 from...
7824 (aarch64_simd_container_mode): ...here.
7825 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
7826 (aarch64_sve_ld1rq_operand_p): New functions.
7827 * config/aarch64/predicates.md (descending_int_parallel)
7828 (aarch64_sve_ld1rq_operand): New predicates.
7829 * config/aarch64/constraints.md (UtQ): New constraint.
7830 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
7831 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
7832 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
7833 (@aarch64_sve_reinterpret<mode>): New expander.
7834 (*aarch64_sve_reinterpret<mode>): New pattern.
7835 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
7836 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
7837 (*sve_ld1rq<Vesize>): Replace with...
7838 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
7839
7840 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
7841
7842 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
7843 16:12.
7844
7845 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7846
7847 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
7848 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
7849 (msp430_check_path_for_devices): New.
7850 (parse_devices_csv_1): New.
7851 (parse_devices_csv): New.
7852 (msp430_extract_mcu_data): Try to find devices.csv and search for the
7853 MCU data in devices.csv before using the hard-coded data.
7854 Warn if devices.csv isn't found and the MCU wasn't found in the
7855 hard-coded data either.
7856 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
7857 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
7858 Search for devices.csv on -I and -L paths.
7859 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
7860 msp430_set_driver_var.
7861 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
7862 -mdevices-csv-loc=.
7863 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
7864 searched for devices.csv.
7865 (mwarn-devices-csv): Document option.
7866
7867 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7868
7869 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
7870 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
7871 Use a single Dn alternative instead of separate Dz and Dm
7872 alternatives. Use aarch64_output_sve_move_immediate.
7873 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
7874 function.
7875 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
7876 for predicates too.
7877 (aarch64_output_sve_mov_immediate): Handle predicate modes.
7878 (aarch64_output_ptrue): Delete.
7879
7880 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7881
7882 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
7883 INDEX.
7884 (simd_immediate_info::value, simd_immediate_info::step)
7885 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
7886 with...
7887 (simd_immediate_info::u): ...this new union.
7888 (simd_immediate_info::simd_immediate_info): Update accordingly.
7889 (aarch64_output_simd_mov_immediate): Likewise.
7890 (aarch64_output_sve_mov_immediate): Likewise.
7891
7892 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7893
7894 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
7895 extra_gcc_objs.
7896 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
7897 (msp430_select_cpu): New spec function.
7898 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
7899 MCU data.
7900 * config/msp430/msp430-devices.c: New file.
7901 * config/msp430/msp430-devices.h: New file.
7902 * config/msp430/msp430.c: Remove msp430_mcu_data.
7903 (msp430_option_override): Use msp430_extract_mcu_data to extract
7904 MCU data.
7905 (msp430_use_f5_series_hwmult): Likewise.
7906 (use_32bit_hwmult): Likewise.
7907 (msp430_no_hwmult): Likewise.
7908 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
7909 assembler.
7910 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
7911 and -mcpu option.
7912 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
7913 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
7914 Remove hard-coded MCU multilib data.
7915
7916 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7917
7918 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
7919 based on the mode instead of testing properties of it.
7920
7921 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7922
7923 * doc/md.texi: Document the x and y constraints for AArch64.
7924 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
7925 (FP_LO8_REGS): New reg_class.
7926 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
7927 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
7928 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
7929 * config/aarch64/predicates.md (aarch64_simd_register): Use
7930 FP_REGNUM_P instead of checking the classes manually.
7931 * config/aarch64/constraints.md (y): New constraint.
7932
7933 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7934
7935 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
7936 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
7937 * config/aarch64/aarch64-simd.md
7938 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
7939 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
7940 from the asm template.
7941 * config/aarch64/aarch64-sve.md
7942 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
7943 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
7944 from the asm template.
7945 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
7946 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
7947 from the asm template.
7948 * config/aarch64/aarch64-simd-builtins.def: Update comment.
7949
7950 2019-08-13 Martin Liska <mliska@suse.cz>
7951
7952 * value-prof.c (gimple_ic_transform): Add new line.
7953 Print details with MSG_NOTE.
7954
7955 2019-08-13 Martin Liska <mliska@suse.cz>
7956
7957 * doc/invoke.texi: Document automatic detection of jobserver.
7958 * lto-wrapper.c (run_gcc): Detect jobserver always.
7959
7960 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
7961
7962 * config/i386/i386-expand.c (ix86_expand_vector_set)
7963 <case E_V2SImode>: Use vec_merge path for
7964 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7965 <case E_V8QImode>: Ditto.
7966 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
7967 (*mmx_pinsrb): Ditto.
7968
7969 2019-08-12 Jakub Jelinek <jakub@redhat.com>
7970
7971 PR target/83250
7972 PR target/91340
7973 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
7974 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
7975 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
7976 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
7977 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
7978
7979 2019-08-12 Richard Biener <rguenther@suse.de>
7980
7981 PR lto/91375
7982 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
7983 flag_devirtualize.
7984
7985 2019-08-12 Richard Biener <rguenther@suse.de>
7986
7987 PR driver/91130
7988 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
7989 lang_mask option, always use CL_DRIVER.
7990 (get_options_from_collect_gcc_options): Adjust.
7991 (find_and_merge_options): Likewise.
7992 (run_gcc): Likewise.
7993
7994 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7995
7996 * ipa-predicate.c (add_condition): Restore inverted test.
7997
7998 2019-08-10 Jakub Jelinek <jakub@redhat.com>
7999
8000 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8001 (enum omp_clause_device_type_kind): New enum.
8002 (struct tree_omp_clause): Add subcode.device_type_kind.
8003 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8004 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8005 for device_type clause.
8006 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8007 * tree-pretty-print.c (dump_omp_clause): Likewise.
8008
8009 PR target/91408
8010 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8011 vector_operand.
8012
8013 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8014
8015 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8016 handling spilled pseudos.
8017
8018 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8019
8020 PR target/91386
8021 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8022 to preserve the contents of the original insns.
8023
8024 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8025
8026 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8027 (addsi3_compare_op2): Likewise.
8028
8029 2019-08-09 Martin Liska <mliska@suse.cz>
8030
8031 * alias.c (alias_ptr_types_compatible_p): Strengten
8032 type comparison in LTO mode.
8033
8034 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8035
8036 PR middle-end/90313
8037 * tree-tailcall.c (find_tail_calls): Reject calls that might
8038 read from an escaped RESULT_DECL.
8039
8040 2019-08-09 Martin Liska <mliska@suse.cz>
8041
8042 * doc/invoke.texi: Document the option value.
8043 * lto-wrapper.c (run_gcc): Set auto_parallel
8044 only with -flto=auto.
8045
8046 2019-08-09 Martin Liska <mliska@suse.cz>
8047
8048 * opts.c (common_handle_option): Error for an invalid argument
8049 to -flto=.
8050
8051 2019-08-09 Martin Liska <mliska@suse.cz>
8052
8053 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8054 use dump_printf to report optimization.
8055 (sem_variable::merge): Likwise.
8056 (sem_item_optimizer::merge_classes): Use dump_printf to report
8057 ICF hits.
8058
8059 2019-08-09 Martin Liska <mliska@suse.cz>
8060
8061 * value-prof.c (gimple_divmod_fixed_value_transform):
8062 Use dump_printf_loc.
8063 (gimple_mod_pow2_value_transform): Likewise.
8064 (gimple_mod_subtract_transform): Likewise.
8065 (init_node_map): Likewise.
8066 (gimple_ic_transform): Likewise.
8067 (gimple_stringops_transform): Likewise.
8068
8069 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8070
8071 * doc/extend.texi: Add const qualifier to ld intrinsics.
8072
8073 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8074
8075 * config/rs6000/dfp.md (D64_D128): Rename to ...
8076 (DDTD): ... this, throughout.
8077 (dfp_suffix): Rename to ...
8078 (q): ... this, throughout.
8079
8080 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8081
8082 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8083 (dfp_suffix): Ditto.
8084 (adddd3, addtd3): Merge to ...
8085 (add<mode>3 for D64_D128): ... this.
8086 (subdd3, subtd3): Merge to ...
8087 (sub<mode>3 for D64_D128): ... this.
8088 (muldd3, multd3): Merge to ...
8089 (mul<mode>3 for D64_D128): ... this.
8090 (divdd3, divtd3): Merge to ...
8091 (div<mode>3 for D64_D128): ... this.
8092 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8093 (*cmp<mode>_internal1 for D64_D128): ... this.
8094 (ftruncdd2, ftrunctd2): Merge to ...
8095 (ftrunc<mode>2 for D64_D128): ... this.
8096 (fixdddi2, fixtddi2): Merge to ...
8097 (fix<mode>di2 for D64_D128): ... this.
8098
8099 2019-08-08 Jim Wilson <jimw@sifive.com>
8100
8101 PR target/91229
8102 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8103 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8104 Pass into recursive call.
8105 (riscv_flatten_aggregate_argument): New arg. Pass to
8106 riscv_flatten_aggregate_field.
8107 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8108 riscv_flatten_aggregate_argument twice, with false and true as last
8109 arg. Process result twice. Compare results and warn if different.
8110 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8111
8112 2019-08-08 Martin Liska <mliska@suse.cz>
8113
8114 PR bootstrap/91352
8115 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8116 * lto-wrapper.c (jobserver_active_p): Likewise.
8117
8118 2019-08-08 Martin Liska <mliska@suse.cz>
8119
8120 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8121 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8122 (create_version_clone_with_body): Likewise.
8123
8124 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8125
8126 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8127 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8128 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8129 GOVD_EXPLICIT flags.
8130 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8131 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8132 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8133 call install_var_field with mask 11 instead of 3.
8134 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8135 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8136
8137 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8138
8139 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8140 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8141
8142 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8143
8144 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8145 MOVPRFX alternatives. Make the GPR alternatives more expensive
8146 than the FPR ones.
8147
8148 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8149
8150 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8151 Disparage the GPR alternative relative to the FPR one.
8152 Fix handling of 8-bit and 16-bit FPR values.
8153
8154 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8155
8156 * config/aarch64/iterators.md (BITWISEV): Delete.
8157 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8158 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8159 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8160 UNSPEC_FMINNMV, UNSPEC_FMINV.
8161 (bit_reduc_op): Delete.
8162 (sve_int_op): New int attribute.
8163 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8164 UNSPEC_FMINNMV, UNSPEC_FMINV.
8165 * config/aarch64/aarch64-sve.md
8166 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8167 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8168 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8169 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8170 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8171 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8172 new patterns.
8173 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8174 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8175 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8176 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8177 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8178 new patterns.
8179
8180 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8181
8182 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8183 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8184 (fms<mode>4, *fms<mode>4): Replace with...
8185 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8186 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8187 Use unspecs instead of rtx codes.
8188 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8189 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8190
8191 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8192
8193 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8194 int iterator.
8195 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8196 * config/aarch64/aarch64-sve.md
8197 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8198 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8199 use a single unspec for the rhs.
8200 (*<su><maxmin><mode>3): Delete.
8201 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8202
8203 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8204
8205 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8206 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8207 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8208 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8209 (optab, sve_fp_op): Handle them.
8210 (SVE_FP_UNARY): Delete.
8211 (optab): Remove sqrt entry.
8212 (sve_fp_op): Remove neg, abs and sqrt entries.
8213 (SVE_COND_FP_UNARY): New int iterator.
8214 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8215 (*<frint_pattern><mode>2): Delete.
8216 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8217 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8218 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8219 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8220
8221 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8222
8223 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8224
8225 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8226
8227 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8228 (UNSPEC_COND_FADD): ...this.
8229 (UNSPEC_COND_SUB): Rename to...
8230 (UNSPEC_COND_FSUB): ...this.
8231 (UNSPEC_COND_MUL): Rename to...
8232 (UNSPEC_COND_FMUL): ...this.
8233 (UNSPEC_COND_DIV): Rename to...
8234 (UNSPEC_COND_FDIV): ...this.
8235 (UNSPEC_COND_MAX): Rename to...
8236 (UNSPEC_COND_FMAXNM): ...this.
8237 (UNSPEC_COND_MIN): Rename to...
8238 (UNSPEC_COND_FMINNM): ...this.
8239 (UNSPEC_COND_LT): Rename to...
8240 (UNSPEC_COND_FCMLT): ...this.
8241 (UNSPEC_COND_LE): Rename to...
8242 (UNSPEC_COND_FCMLE): ...this.
8243 (UNSPEC_COND_EQ): Rename to...
8244 (UNSPEC_COND_FCMEQ): ...this.
8245 (UNSPEC_COND_NE): Rename to...
8246 (UNSPEC_COND_FCMNE): ...this.
8247 (UNSPEC_COND_GE): Rename to...
8248 (UNSPEC_COND_FCMGE): ...this.
8249 (UNSPEC_COND_GT): Rename to...
8250 (UNSPEC_COND_FCMGT): ...this.
8251 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8252 (sve_fp_op_rev): Update accordingly.
8253 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8254
8255 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8256
8257 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8258 banner comments.
8259 * config/aarch64/check-sve-md.awk: New file.
8260 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8261 (insn-conditions.md): Depend on it.
8262
8263 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8264
8265 PR target/91385
8266 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8267 (*negsi2_cmpz_zext): Ditto.
8268
8269 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8270
8271 * config/aarch64/iterators.md (commutative): Remove.
8272
8273 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8274
8275 PR driver/91130
8276 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8277 processing COLLECT_GCC_OPTIONS.
8278 (run_gcc): Likewise.
8279
8280 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8281
8282 PR tree-optimization/91109
8283 * lra-remat.c (update_scratch_ops): Remove assignment of the
8284 hard register.
8285
8286 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8287
8288 * data-streamer.h (streamer_write_poly_uint64): Declare.
8289 (streamer_read_poly_uint64): Likewise.
8290 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8291 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8292 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8293 (add_condition): Take a poly_int64 size.
8294 * ipa-predicate.c (add_condition): Likewise.
8295 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8296 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8297 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8298 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8299 condition::size as a poly_int64.
8300 (unmodified_parm_1): Take a poly_int64 size pointer.
8301 (unmodified_parm): Likewise.
8302 (unmodified_parm_or_parm_agg_item): Likewise.
8303 (set_cond_stmt_execution_predicate): Update accordingly.
8304 (set_switch_stmt_execution_predicate): Likewise.
8305 (will_be_nonconstant_expr_predicate): Likewise.
8306 (will_be_nonconstant_predicate): Likewise.
8307 (inline_read_section): Stream condition::size as a poly_int.
8308 (ipa_fn_summary_write): Likewise.
8309
8310 2019-08-07 Martin Liska <mliska@suse.cz>
8311
8312 * fold-const.c (twoval_comparison_p): Replace int
8313 with bool as a return type.
8314 (simple_operand_p): Likewise.
8315 (operand_equal_p): Replace int with bool as a return type.
8316 * fold-const.h (operand_equal_p): Likewise.
8317
8318 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8319
8320 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8321 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8322 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8323 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8324 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8325 * tree-pretty-print.c (dump_omp_clause): Likewise.
8326 * tree-nested.c (convert_nonlocal_omp_clauses,
8327 convert_local_omp_clauses): Likewise.
8328 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8329 Likewise.
8330 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8331 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8332 clause with array or reference to array types, no matter what type
8333 except for reference it has.
8334
8335 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8336
8337 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8338
8339 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8340
8341 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8342 (arch_canonicalize): Support rv32g and rv64g and fix error
8343 handling.
8344
8345 2019-08-06 Martin Liska <mliska@suse.cz>
8346
8347 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8348 and DECL_IS_OPERATOR_DELETE_P.
8349
8350 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8351
8352 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8353 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8354 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8355 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8356 (gimplify_omp_for): Don't do C++ random access iterator clause
8357 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8358 don't predetermine the artificial iterator in case of C++ random
8359 access iterators as lastprivate, but private. For OMP_LOOP, force
8360 bind expr around simd body and force for_pre_body before the
8361 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8362 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8363 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8364 diff var of C++ random access iterators. Handle
8365 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8366 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8367 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8368 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8369 * omp-low.c (lower_rec_input_clauses): For
8370 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8371 variables instead of default constructing them.
8372 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8373 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8374 is_taskloop_ctx check from the assert to the guarding condition.
8375
8376 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8377
8378 * config/riscv/multilib-generator: (canonical_order): New.
8379 (arch_canonicalize): Dito.
8380 Apply arch_canonicalize for alts.
8381
8382 2019-08-05 Martin Sebor <msebor@redhat.com>
8383
8384 * doc/extend.texi (Common Variable Attributes): Document alias
8385 attribute.
8386
8387 2019-08-05 Marek Polacek <polacek@redhat.com>
8388
8389 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8390 * doc/invoke.texi: Document -Wcomma-subscript.
8391
8392 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8393
8394 * tree-core.h (tree_function_decl): Make function_code an
8395 independent field. Group the remaining bitfields into bytes
8396 and move decl_type so that it contines to be at a byte boundary.
8397 Leave 12 bits for future expansion.
8398
8399 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8400
8401 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8402 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8403 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8404 IFN_MASK_STORE.
8405
8406 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8407
8408 * gimple.h (gimple_move_vops): Declare.
8409 * gimple.c (gimple_move_vops): New function
8410 * gimple-fold.c (replace_call_with_call_and_fold)
8411 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8412 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8413 (gimple_fold_call): Use it.
8414 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8415 * tree-call-cdce.c (use_internal_fn): Likewise.
8416 * tree-if-conv.c (predicate_load_or_store): Likewise.
8417 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8418 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8419 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
8420 (update_call_from_tree): Likewise.
8421 * tree-vect-stmts.c (vectorizable_load): Likewise.
8422 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
8423
8424 2019-08-05 Martin Liska <mliska@suse.cz>
8425
8426 PR c++/91334
8427 * tree-ssa-dce.c (propagate_necessity): Handle new operators
8428 with not arguments.
8429 (eliminate_unnecessary_stmts): Likewise.
8430
8431 2019-08-05 Richard Biener <rguenther@suse.de>
8432
8433 PR middle-end/91169
8434 * fold-const.c (get_array_ctor_element_at_index): Create
8435 offset_ints according to the sign of the index type and treat
8436 that as signed if it is obviously so.
8437
8438 2019-08-05 Jakub Jelinek <jakub@redhat.com>
8439
8440 PR target/91341
8441 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
8442 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
8443 _mm256_storeu2_m128i): New function.
8444
8445 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
8446
8447 * config/riscv/riscv.c (riscv_promote_function_mode): New.
8448 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
8449
8450 2019-08-05 Alan Modra <amodra@gmail.com>
8451
8452 PR target/91349
8453 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
8454 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
8455
8456 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
8457
8458 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
8459 bug that was fixed in Tcl 8.6.1.
8460
8461 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
8462
8463 * config/rs6000/future.md: New file.
8464 * config/rs6000/rs6000.md: Include future.md.
8465 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
8466
8467 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
8468
8469 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
8470 check to use targetm.slow_unaligned_access instead.
8471
8472 * function.c (assign_param_data_one): Remove unused data members.
8473
8474 2019-08-02 Steve Ellcey <sellcey@marvell.com>
8475
8476 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
8477 build_distinct_type_copy.
8478 (simd_clone_adjust_argument_types): Ditto.
8479 (simd_clone_adjust): Call build_distinct_type_copy here.
8480 (expand_simd_clones): Ditto.
8481
8482 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8483
8484 PR target/91201
8485 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
8486
8487 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
8488
8489 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
8490 from 'const void *'.
8491 (sort_locs_in_loop_postorder_cmp): Likewise.
8492
8493 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
8494
8495 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
8496 (hot-bb-count-ws-permille): Likewise.
8497 (hot-bb-frequency-fraction): Likewise.
8498 (unlikely-bb-count-fraction): Likewise.
8499 * params.def (hot-bb-count-fraction): Rework description.
8500 (hot-bb-count-ws-permille): Likewise.
8501 (hot-bb-frequency-fraction): Likewise.
8502 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
8503 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
8504
8505 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8506
8507 PR target/91323
8508 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
8509 Return false.
8510
8511 2019-08-02 Richard Biener <rguenther@suse.de>
8512
8513 * vec.h (vec::sort): Add gcc_qsort_r support.
8514 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
8515 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
8516 to gcc_qsort_r style callback.
8517 (sort_locs_in_loop_postorder_cmp): Likewise.
8518 (analyze_memory_references): Use gcc_sort_r interfaces.
8519 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
8520
8521 2019-08-02 Martin Liska <mliska@suse.cz>
8522
8523 PR lto/91313
8524 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
8525 to detect working job server.
8526 (driver::detect_jobserver): Test whether jobserver
8527 is active from GCC driver. That will prevent situation where
8528 GCC is invoked from a LD plugin and the linker already uses
8529 file descriptors suggested by make. That leads to a wrong
8530 detection.
8531 * gcc.h (driver): Add detect_jobserver.
8532 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
8533 not scanning for --jobserver-auth prefix.
8534
8535 2019-08-02 Jakub Jelinek <jakub@redhat.com>
8536
8537 PR tree-optimization/91201
8538 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
8539 V16QImode extraction without sse4.1 try to use V4SImode lowpart
8540 extraction.
8541
8542 2019-08-01 Martin Sebor <msebor@redhat.com>
8543
8544 PR c++/90947
8545 * tree.c (type_initializer_zero_p): Define.
8546 * tree.h (type_initializer_zero_p): New function.
8547
8548 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8549
8550 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
8551
8552 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8553
8554 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
8555 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
8556 * predict.c (maybe_hot_count_p): Likewise.
8557 (maybe_hot_bb_p): Tweak comment.
8558 (maybe_hot_edge_p): Likewise.
8559 (probably_never_executed): Likewise. Minor tweak.
8560 (probably_never_executed_bb_p): Likewise.
8561 (unlikely_executed_edge_p): Likewise.
8562 (probably_never_executed_edge_p): Likewise.
8563 (optimize_function_for_size_p): Likewise.
8564 (optimize_function_for_speed_p): Likewise.
8565 (function_optimization_type): Likewise.
8566 (optimize_bb_for_size_p): Likewise.
8567 (optimize_bb_for_speed_p): Likewise.
8568 (bb_optimization_type): Likewise.
8569 (optimize_edge_for_size_p): Likewise.
8570 (optimize_edge_for_speed_p): Likewise.
8571 (optimize_insn_for_size_p): Likewise.
8572 (optimize_insn_for_speed_p): Likewise.
8573 (optimize_loop_for_size_p): Likewise.
8574 (optimize_loop_for_speed_p): Likewise.
8575 (optimize_loop_nest_for_speed_p): Likewise.
8576 (optimize_loop_nest_for_size_p): Likewise.
8577 (predictable_edge_p): Likewise.
8578 (handle_missing_profiles): Minor tweak.
8579
8580 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
8581
8582 * config/rs6000/predicates.md (pcrel_external_address): Update
8583 comment.
8584
8585 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8586
8587 PR target/85693
8588 * config/i386/mmx.md (usadv8qi): New expander.
8589
8590 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
8591
8592 PR c++/90590
8593 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
8594 with reserved names that are in a system header.
8595
8596 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8597
8598 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
8599 (*vec_extractv2si_0_zext_sse4): New insn pattern.
8600 (*vec_extractv2si_0_zext): Ditto.
8601 (*vec_extractv2si_1): Add (rm,x) alternative.
8602 (*vec_extractv2si_1_zext): New insn pattern.
8603 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
8604 insn constraint.
8605
8606 2019-08-01 Richard Biener <rguenther@suse.de>
8607
8608 * domwalk.c (bb_postorder): Remove static variable.
8609 (cmp_bb_postorder): Adjust.
8610 (sort_bbs_postorder): Adjust and use gcc_sort_r.
8611 (dom_walker::walk): Adjust.
8612
8613 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
8614
8615 * sort.cc (sort_r_ctx): New struct.
8616 (reorder23): Make templated on context type.
8617 (reorder45): Ditto.
8618 (cmp1): Ditto. Adjust signature.
8619 (netsort): Ditto.
8620 (mergesort): Ditto.
8621 [CHECKING_P] (cmp2to3): New static function. Use it...
8622 (gcc_qsort) [CHECKING_P]: ...here.
8623 (gcc_sort_r): New function.
8624 * system.h (sort_r_cmp_fn): New function typedef.
8625 (qsort_chk): Adjust signature.
8626 (gcc_sort_r): Declare.
8627 * vec.c (qsort_chk_error): Adjust.
8628 (qsort_chk): Adjust.
8629
8630 2019-08-01 Richard Biener <rguenther@suse.de>
8631
8632 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
8633 (compute_antic): Localize it here.
8634
8635 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
8636
8637 * common/config/riscv/riscv-common.c: Check -march string ends
8638 with null.
8639
8640 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
8641
8642 * ipa-devirt.c (type_warning_cmp): Make static.
8643 (decl_warning_cmp): Ditto.
8644
8645 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
8646
8647 PR target/91050
8648 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
8649 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
8650 use of deleted rs6000_dejagnu_cpu_index variable.
8651 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
8652 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8653 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
8654 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
8655 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
8656 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8657
8658 2019-07-31 Richard Biener <rguenther@suse.de>
8659
8660 PR tree-optimization/91280
8661 * tree-ssa-structalias.c (get_constraint_for_component_ref):
8662 Decompose MEM_REF manually for offset handling.
8663
8664 2019-07-31 Richard Biener <rguenther@suse.de>
8665
8666 PR tree-optimization/91293
8667 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
8668 of reduction stmts.
8669
8670 2019-07-31 Matt Thomas <matt@3am-software.com>
8671 Nick Hudson <nick@nthcliff.demon.co.uk>
8672 Matthew Green <mrg@eterna.com.au>
8673 Maya Rashish <coypu@sdf.org>
8674
8675 * config.gcc (hppa*-*-netbsd*): New target.
8676 * config/pa/pa-netbsd.h: New file.
8677 * config/pa/pa32-netbsd.h: New file.
8678
8679 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8680
8681 PR tree-optimization/91201
8682 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
8683
8684 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
8685
8686 * config/gcn/gcn-valu.md
8687 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
8688 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
8689 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
8690 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
8691 struct ilist. Add nops for delayeduse insns.
8692 * config/gcn/gcn.md (delayeduse): New attribute.
8693 (*movbi): Remove s_waitcnt from stores.
8694 (*mov<mode>_insn): Likewise.
8695 (*movti_insn): Likewise. Add delayeduse attribute.
8696 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
8697 (atomic_store<mode>): Remove or adjust s_waitcnt.
8698
8699 2019-07-31 Richard Biener <rguenther@suse.de>
8700
8701 * vr-values.h (vr_values::swap_vr_value): New.
8702 (vr_values::free_value_range): likewise.
8703 * vr-values.c (vr_values::swap_vr_value): Implement.
8704 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
8705 Do not return a range or take a var.
8706 (evrp_range_analyzer::stack): Change back to recording a non-const
8707 value_range *.
8708 * gimple-ssa-evrp-analyze.c
8709 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
8710 value-range.
8711 (evrp_range_analyzer::pop_to_marker): Adjust.
8712 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
8713 (evrp_range_analyzer::pop_value_range): Likewise. Free the
8714 no longer needed value-range.
8715
8716 2019-07-31 Martin Liska <mliska@suse.cz>
8717
8718 * tree-ssa-dce.c (propagate_necessity): Delete operator can
8719 have size and (or) alignment as 2nd and later arguments.
8720 Mark all of them as necessary.
8721
8722 2019-07-31 Richard Biener <rguenther@suse.de>
8723
8724 PR tree-optimization/91178
8725 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8726 Use tail-recursion.
8727
8728 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8729
8730 PR tree-optimization/91201
8731 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
8732 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
8733 TARGET_AVX512F.
8734 (reduc_plus_scal_<mode>): Improve formatting by introducing
8735 a temporary.
8736
8737 2019-07-31 Sudakshina Das <sudi.das@arm.com>
8738
8739 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
8740 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
8741 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
8742 (aarch64_init_tme_builtins): New.
8743 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
8744 (aarch64_expand_builtin_tme): New.
8745 (aarch64_expand_builtin): Handle TME builtins.
8746 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8747 __ARM_FEATURE_TME when enabled.
8748 * config/aarch64/aarch64-option-extensions.def: Add "tme".
8749 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
8750 (TARGET_TME): New.
8751 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
8752 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
8753 UNSPECV_TCANCEL.
8754 (tstart, ttest, tcommit, tcancel): New instructions.
8755 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
8756 (__tcancel, __ttest): New.
8757 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
8758 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
8759 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
8760 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
8761 * config/arm/types.md: Add new tme type attr.
8762 * doc/invoke.texi: Document "tme".
8763
8764 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
8765
8766 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
8767 warn_unused_result attribute.
8768 (cmse_check_address_range): Add warn_unused_result attribute.
8769
8770 2019-07-31 Richard Biener <rguenther@suse.de>
8771
8772 PR tree-optimization/91257
8773 * tree-vrp.c (union_ranges): Unify equality and less tests
8774 by using compare_values. Re-order cheap tests first.
8775
8776 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8777
8778 PR middle-end/91301
8779 * gimplify.c (gimplify_omp_for): If for class iterator on
8780 distribute parallel for there is no data sharing clause
8781 on inner_for_stmt, look for private clause on combined
8782 parallel too and if found, move it to inner_for_stmt.
8783
8784 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
8785
8786 * lra-int.h (lra_operand_data): Remove early_clobber field.
8787 (lra_insn_reg): Likewise.
8788 * lra.c (debug_operand_data): Update accordingly.
8789 (setup_operand_alternative): Likewise.
8790 (new_insn_reg): Likewise. Remove early_clobber parameter.
8791 (collect_non_operand_hard_regs): Update call accordingly.
8792 Don't assign to lra_insn_reg::early_clobber.
8793 (add_regs_to_insn_regno_info): Remove early_clobber parameter
8794 and update calls to new_insn_reg.
8795 (lra_update_insn_regno_info): Update calls accordingly.
8796 * lra-constraints.c (update_and_check_small_class_inputs): Take the
8797 alternative number as a parameter and test whether the operand
8798 is earlyclobbered in that particular alternative.
8799 (process_alt_operands): Update call accordingly. Use per-alternative
8800 checks for earyclobber here too.
8801 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
8802 against zero for IRA_UNKNOWN_ALT.
8803
8804 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
8805
8806 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
8807
8808 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
8809
8810 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
8811 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
8812
8813 2019-07-30 Martin Liska <mliska@suse.cz>
8814
8815 PR ipa/89330
8816 * cgraph.c (cgraph_edge::make_direct): Use
8817 edge->indirect_unknown_callee as edge->resolve_speculation can
8818 deallocate edge which is this pointer.
8819
8820 2019-07-30 Richard Biener <rguenther@suse.de>
8821
8822 PR tree-optimization/91257
8823 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
8824
8825 2019-07-30 Martin Liska <mliska@suse.cz>
8826
8827 * doc/invoke.texi: Document new behavior.
8828 * lto-wrapper.c (cpuset_popcount): New function
8829 is a copy of libgomp/config/linux/proc.c.
8830 (init_num_threads): Likewise.
8831 (run_gcc): Automatically detect core count for -flto.
8832 (jobserver_active_p): New function.
8833
8834 2019-07-30 Richard Biener <rguenther@suse.de>
8835
8836 PR tree-optimization/91257
8837 * bitmap.h (bitmap_ior_into_and_free): Declare.
8838 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
8839 whether to add the unliked element to the freelist.
8840 (bitmap_list_insert_element_after): Add defaulted param for
8841 an already allocated element.
8842 (bitmap_ior_into_and_free): New function.
8843 * tree-ssa-structalias.c (condense_visit): Reduce the
8844 ponts-to and edge bitmaps of the SCC members in a
8845 logarithmic fashion rather than all to one.
8846
8847 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
8848
8849 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
8850 parameter. When nonnull, make sure that the addition or subtraction
8851 has the same condition.
8852 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
8853 for CFN_COND_MUL too.
8854
8855 2019-07-30 Richard Biener <rguenther@suse.de>
8856
8857 PR tree-optimization/91291
8858 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
8859 constant values.
8860
8861 2019-07-30 Jakub Jelinek <jakub@redhat.com>
8862
8863 PR middle-end/91216
8864 * omp-low.c (global_nonaddressable_vars): New variable.
8865 (use_pointer_for_field): For global decls, if they are non-addressable,
8866 remember it in the global_nonaddressable_vars bitmap, if they are
8867 addressable and in the global_nonaddressable_vars bitmap, ignore their
8868 TREE_ADDRESSABLE bit.
8869 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
8870 vars in global_nonaddressable_vars bitmap.
8871 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
8872
8873 PR target/91150
8874 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
8875 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
8876 comparison to unsigned HOST_WIDE_INT before shifting it left.
8877
8878 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
8879
8880 * config/i386/i386.md (movstrict<mode>): Use register_operand
8881 predicate for operand 0. Add expander condition. Assert that
8882 operand 0 is a SUBREG RTX.
8883 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
8884 Update operand constraints and insn condition.
8885 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
8886 (zero_extendqihi2_and): Do not call gen_movstrictqi.
8887 (*setcc_qi_slp): Use register_operand predicate for operand 0.
8888 Update operand 0 constraints.
8889 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
8890
8891 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8892
8893 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
8894 when -m{code,data}-region are used without -mlarge.
8895 * config/msp430/msp430.c (msp430_option_override): Error when a
8896 non-default code or data region is used without -mlarge.
8897 (msp430_section_attr): Emit a warning and do not add upper/lower/either
8898 attributes when they are used without -mlarge.
8899
8900 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8901
8902 PR target/70320
8903 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
8904
8905 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
8906
8907 PR middle-end/91242
8908 * wide-int.h (generic_wide_int::sext_elt): New function.
8909 * inchash.h (hash::add_wide_int): Use it instead of elt.
8910
8911 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8912
8913 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
8914 CODE_FOR_arm_##.
8915 * config/arm/arm.md (<crc_variant>): Rename to...
8916 (arm_<crc_variant>): ... This.
8917 (<cdp>): Rename to...
8918 (arm_<cdp>): ... This.
8919 (<ldc>): Rename to...
8920 (arm_<ldc>): ... This.
8921 (<stc>): Rename to...
8922 (arm_<stc>): ... This.
8923 (<mcr>): Rename to...
8924 (arm_<mcr>): ... This.
8925 (<mrc>): Rename to...
8926 (arm_<mrc>): ... This.
8927 (<mcrr>): Rename to...
8928 (arm_<mcrr>): ... This.
8929 (<mrrc>): Rename to...
8930 (arm_<mrrc>): ... This.
8931
8932 2019-07-29 Richard Biener <rguenther@suse.de>
8933
8934 PR tree-optimization/91257
8935 * tree-ssa-sccvn.h (struct vn_avail): New.
8936 (struct vn_ssa_aux): Add avail member.
8937 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
8938 member, add m_avail_freelist one.
8939 (rpo_elim::~rpo_elim): Remove.
8940 (rpo_elim::eliminate_avail): Adjust to new avail tracking
8941 data structure.
8942 (rpo_elim::eliminate_push_avail): Likewise.
8943 (do_unwind): Likewise.
8944 (do_rpo_vn): Likewise.
8945
8946 2019-07-29 Richard Biener <rguenther@suse.de>
8947
8948 PR tree-optimization/91257
8949 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
8950 most cases, instead call compare_values which handles the
8951 symbolic ranges we handle specially.
8952 (compare_values_warnv): Do not call operand_less_p but open-code
8953 the effective fold calls. Avoid converting so much.
8954
8955 2019-07-29 Martin Liska <mliska@suse.cz>
8956
8957 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
8958 remove LHS of operator new call. It's handled latter.
8959
8960 2019-07-29 Richard Biener <rguenther@suse.de>
8961
8962 PR tree-optimization/91267
8963 * vr-values.c (vr_values::update_value_range): Add early return
8964 for effectively VARYING lattice entry.
8965
8966 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
8967
8968 PR debug/86638
8969 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
8970 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
8971 necessary if keep_all_vdefs_p is true.
8972 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
8973 that keep_all_vdefs_p is false.
8974 (mark_all_reaching_defs_necessary): Likewise.
8975 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
8976
8977 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
8978
8979 * common.opt (Og): Change the initial value of flag_dse to 0.
8980 * opts.c (default_options_table): Move OPT_ftree_dse from
8981 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
8982 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
8983 entry before the OPT_ftree_sra entry.
8984 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
8985 of flags disabled by Og.
8986
8987 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
8988
8989 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
8990 variables for -Og.
8991
8992 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
8993
8994 * doc/sourcebuild.texi (check-function-bodies): Document.
8995
8996 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
8997
8998 * simplify-rtx.c (simplify_const_unary_operation): Fold a
8999 VEC_DUPLICATE of a fixed-length vector even if the result
9000 is variable-length. Likewise fold a duplicate of a
9001 variable-length vector if the variable-length vector is
9002 itself a duplicate of a fixed-length sequence.
9003 (test_vector_ops_duplicate): Test more cases.
9004
9005 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9006
9007 * vector-builder.h (vector_builder): Add a shape template parameter.
9008 (vector_builder::new_unary_operation): New function, generalizing
9009 the old tree_vector_builder function.
9010 (vector_builder::new_binary_operation): Likewise.
9011 (vector_builder::binary_encoded_nelts): Likewise.
9012 * int-vector-builder.h (int_vector_builder): Update template
9013 parameters to vector_builder.
9014 (int_vector_builder::shape_nelts): New function.
9015 * rtx-vector-builder.h (rtx_vector_builder): Update template
9016 parameters to vector_builder.
9017 (rtx_vector_builder::shape_nelts): New function.
9018 (rtx_vector_builder::nelts_of): Likewise.
9019 (rtx_vector_builder::npatterns_of): Likewise.
9020 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9021 * tree-vector-builder.h (tree_vector_builder): Update template
9022 parameters to vector_builder.
9023 (tree_vector_builder::shape_nelts): New function.
9024 (tree_vector_builder::nelts_of): Likewise.
9025 (tree_vector_builder::npatterns_of): Likewise.
9026 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9027 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9028 (tree_vector_builder::new_binary_operation): Delete.
9029 (tree_vector_builder::binary_encoded_nelts): Likewise.
9030 * simplify-rtx.c: Include rtx-vector-builder.h.
9031 (distributes_over_addition_p): New function.
9032 (simplify_const_unary_operation)
9033 (simplify_const_binary_operation): Generalize handling of vector
9034 constants to include variable-length vectors.
9035 (test_vector_ops_series): Add more tests.
9036
9037 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9038
9039 PR lto/91222
9040 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9041 than INDENTIFIER_POINTER.
9042
9043 2019-07-28 Martin Liska <mliska@suse.cz>
9044
9045 PR ipa/89330
9046 * cgraph.c (symbol_table::create_edge): Always allocate
9047 a cgraph_edge.
9048 (symbol_table::free_edge): Store summary_id to
9049 edge_released_summary_ids if != -1;
9050 * cgraph.h (NEXT_FREE_NODE): Remove.
9051 (SET_NEXT_FREE_NODE): Likewise.
9052 (NEXT_FREE_EDGE): Likewise.
9053 (symbol_table::release_symbol): Store summary_id to
9054 cgraph_released_summary_ids if != -1;
9055 (symbol_table::allocate_cgraph_symbol): Always allocate
9056 a cgraph_node.
9057
9058 2019-07-28 Alan Modra <amodra@gmail.com>
9059
9060 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9061 gen_sibcall.
9062
9063 2019-07-28 Alan Modra <amodra@gmail.com>
9064
9065 PR target/91135
9066 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9067 define.
9068 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9069 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9070 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9071
9072 2019-07-28 Alan Modra <amodra@gmail.com>
9073
9074 PR target/91050
9075 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9076 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9077 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9078 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9079 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9080 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9081 in asm_default spec.
9082 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9083 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9084
9085 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9086
9087 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9088
9089 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9090
9091 PR target/89517
9092 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9093 * config/aarch64/aarch64-option-extensions.def: Add new comments
9094 and restore easier to read options.
9095
9096 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9097
9098 * convert.c (convert_to_real_1): Move part of conversion code...
9099 * match.pd: ...To here.
9100
9101 2019-07-26 Martin Jambor <mjambor@suse.cz>
9102
9103 PR ipa/89330
9104 * ipa-inline-transform.c (check_speculations_1): New function.
9105 (push_all_edges_in_set_to_vec): Likewise.
9106 (check_speculations): Use check_speculations_1, new parameter
9107 new_edges.
9108 (inline_call): Pass new_edges to check_speculations.
9109 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9110 NULL.
9111 (speculation_useful_p): Early return true if edge is inlined, remove
9112 later checks for inline_failed.
9113
9114 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9115
9116 PR rtl-optimization/91223
9117 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9118 matching with INOUT operand.
9119
9120 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9121
9122 * stmt.c (expand_case): Try to narrow the index type if it's larger
9123 than a word. Tidy up.
9124
9125 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9126
9127 * cif-code.def (NEVER_CALL): New code.
9128 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9129 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9130
9131 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9132
9133 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9134 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9135
9136 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9137
9138 * ipa-devirt.c (add_type_duplicate): Fix return value.
9139
9140 2019-07-25 Richard Biener <rguenther@suse.de>
9141
9142 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9143 type parameter and use it instead of guessing expression
9144 type from the first operand.
9145 (extract_range_from_binary_expr): Pass expr_type down.
9146
9147 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9148
9149 * config/arm/arm.md (SATrev): Change to code attribute.
9150 (*satsi_<SAT:code>): Adjust for the above.
9151 (*satsi_<SAT:code>_shift): Likewise.
9152
9153 2019-07-25 Richard Biener <rguenther@suse.de>
9154
9155 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9156 Make value_range * temporary const.
9157 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9158 Likewise.
9159 (evrp_range_analyzer::record_ranges_from_): Likewise.
9160 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9161 deal with having recorded a const one.
9162 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9163 Return a const value_range *.
9164 (evrp_range_analyzer::pop_value_range): Likewise.
9165 (evrp_range_analyzer::stack): Record const value_range *s.
9166 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9167 Adjust.
9168 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9169 (format_integer): Likewise.
9170 (sprintf_dom_walker::handle_gimple_call): Likewise.
9171 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9172 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9173 (vrp_prop::get_value_range): Adjust.
9174 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9175 modifying the lattice in-place.
9176 (vrp_prop::visit_stmt): Likewise.
9177 * vr-values.c (vr_values::get_lattice_entry): New private method.
9178 (vr_values::get_value_range): Wrap it and return a const
9179 value_range *.
9180 (vr_values::set_def_to_varying): New.
9181 (vr_values::set_defs_to_varying): Use it.
9182 (vr_values::update_value_range): Likewise.
9183 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9184 (values::op_with_constant_singleton_va): Likewise.
9185 (vr_values::extract_range_for_var_from_co): Likewise.
9186 (vr_values::extract_range_from_ssa_name): Likewise.
9187 (vr_values::extract_range_from_cond_expr): Likewise.
9188 (vr_values::extract_range_basic): Likewise.
9189 (compare_ranges): Take const value_range *, adjust.
9190 (compare_range_with_value): Likewise.
9191 (vrp_valueize): Adjust.
9192 (vrp_valueize_1): Likewise.
9193 (vr_values::get_vr_for_comparison): Return a const value_range *.
9194 (vr_values::compare_name_with_value): Adjust.
9195 (vr_values::compare_names): Likewise.
9196 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9197 Likewise.
9198 (vr_values::vrp_evaluate_conditional): Likewise.
9199 (find_case_label_ranges): Take a const value_range *.
9200 (vr_values::vrp_visit_switch_stmt): Adjust.
9201 (vr_values::extract_range_from_phi_node): Likewise.
9202 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9203 (vr_values::simplify_abs_using_ranges): Likewise.
9204 (test_for_singularity): Take a const value_range *.
9205 (range_fits_type_p): Likewise.
9206 (vr_values::simplify_cond_using_ranges_1): Adjust.
9207 (vr_values::simplify_cond_using_ranges_2): Likewise.
9208 (vr_values::simplify_switch_using_ranges): Likewise.
9209 (vr_values::simplify_float_conversion_usi): Likewise.
9210 (vr_values::two_valued_val_range_p): Likewise.
9211 * vr-values.h (vr_values::get_value_range): Return a const
9212 value_range *.
9213 (vr_values::set_def_to_varying): New.
9214 (vr_values::get_lattice_entry): New private method.
9215 (vr_values::get_vr_for_comparison): Return a const value_range *.
9216
9217 2019-07-25 Martin Liska <mliska@suse.cz>
9218 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9219
9220 PR c++/23383
9221 * common.opt: Add -fallocation-dce
9222 * gimple.c (gimple_call_operator_delete_p): New.
9223 * gimple.h (gimple_call_operator_delete_p): Likewise.
9224 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9225 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9226 DECL_IS_OPERATOR_DELETE_P.
9227 (mark_all_reaching_defs_necessary_1): Likewise.
9228 (propagate_necessity): Likewise.
9229 (eliminate_unnecessary_stmts): Handle
9230 gimple_call_operator_delete_p.
9231 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9232 Add packing of OPERATOR_DELETE.
9233 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9234 Similarly here.
9235 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9236 (DECL_SET_IS_OPERATOR_DELETE): New.
9237 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9238
9239 2019-07-25 Martin Liska <mliska@suse.cz>
9240
9241 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9242 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9243 * coverage.c (coverage_begin_function): Likewise.
9244 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9245 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9246 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9247 (sem_item::hash_referenced_symbol_properties): Likewise.
9248 * lto-streamer-out.c (hash_tree): Likewise.
9249 * predict.c (expr_expected_value_1): Likewise.
9250 * tree-inline.c (expand_call_inline): Likewise.
9251 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9252 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9253 * tree-core.h (enum function_decl_type): New enum.
9254 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9255 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9256 (set_function_decl_type): Likewise.
9257 (DECL_IS_OPERATOR_NEW_P): New.
9258 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9259 (DECL_LAMBDA_FUNCTION): Likewise.
9260 (DECL_LAMBDA_FUNCTION_P): Likewise.
9261 (DECL_IS_OPERATOR_NEW): Remove.
9262 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9263
9264 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9265
9266 * ipa-profile.c (get_most_common_single_value): Use
9267 get_nth_most_common_value.
9268 * profile.c (sort_hist_value): New function.
9269 (compute_value_histograms): Call sort_hist_value to sort the
9270 values after loading from disk.
9271 * value-prof.c (get_most_common_single_value): Rename to ...
9272 get_nth_most_common_value. Add input params n, return
9273 the n_th value and count.
9274 (gimple_divmod_fixed_value_transform): Use
9275 get_nth_most_common_value.
9276 (gimple_ic_transform): Likewise.
9277 (gimple_stringops_transform): Likewise.
9278 * value-prof.h (get_most_common_single_value): Add input params
9279 n, default to 0.
9280
9281 2019-07-25 Richard Biener <rguenther@suse.de>
9282
9283 PR tree-optimization/91236
9284 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9285 size of CONSTRUCTOR write. Fix buffer size we pass to
9286 native_encode_expr.
9287
9288 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9289
9290 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9291 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9292 r273773.
9293
9294 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9295
9296 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9297 explicitly disabled with --disable-initfini-array.
9298
9299 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9300
9301 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9302 if-exists.
9303
9304 2019-07-24 Martin Sebor <msebor@redhat.com>
9305
9306 PR tree-optimization/91183
9307 PR tree-optimization/86688
9308 * builtins.c (compute_objsize): Handle MEM_REF.
9309 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9310 (get_min_string_length): Remove.
9311 (count_nonzero_bytes): New function.
9312 (handle_char_store): Rename...
9313 (handle_store): to this. Handle multibyte stores via integer types.
9314 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9315 function name.
9316
9317 2019-07-24 Martin Sebor <msebor@redhat.com>
9318
9319 PR driver/80545
9320 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9321 (diagnostic_report_diagnostic): Same.
9322 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9323 (diagnostic_context::lang_mask): New data member.
9324 * ipa-pure-const.c (suggest_attribute): Use
9325 lang_hooks.option_lang_mask ().
9326 * opts-common.c (option_enabled): Handle new argument.
9327 (get_option_state): Pass an additional argument.
9328 * opts.c (print_filtered_help): Print supported languages for
9329 unsupported options. Adjust printing of current state.
9330 * opts.h (option_enabled): Add argument.
9331 * toplev.c (print_switch_values): Use lang_mask.
9332 (general_init): Set global_dc->lang_mask.
9333
9334 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9335
9336 PR bootstrap/87030
9337 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9338
9339 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9340
9341 * cgraphunit.c (symbol_table::compile): Start and stop
9342 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9343 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9344
9345 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9346
9347 * gimplify.c (flag_instrument_functions_exclude_p): Include
9348 namespace/class information in the printable name.
9349 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9350 to tokens entered into the vector.
9351
9352 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9353
9354 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9355 (get_static_chain): Call it instead of build_simple_mem_ref.
9356 (get_frame_field): Likewise.
9357 (get_nonlocal_debug_decl): Likewise.
9358 (convert_nonlocal_reference_op): Likewise.
9359
9360 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9361
9362 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9363 declaration.
9364 (arc_compute_frame_size): Millicode is disabled when compiling
9365 ISR.
9366 (arc_return_address_register): Likewise.
9367 (arc_compute_function_type): Likewise.
9368 (arc_compute_frame_size): Likewise.
9369 (secondary_reload_info): Likewise.
9370 (arc_get_unalign): Likewise.
9371 (arc_can_use_return_insn): Declare.
9372 * config/arc/arc.c (AUX_LP_START): Define
9373 (AUX_LP_END): Likewise.
9374 (arc_frame_info): Update gmask member to 64-bit datum.
9375 (GMASK_LEN): Update.
9376 (arc_compute_function_type): Make it static, move it forward.
9377 (arc_must_save_register): Update, consider the extra regs.
9378 (arc_compute_millicode_save_restore_regs): Update to use the 64
9379 bit gmask.
9380 (arc_compute_frame_size): Likewise.
9381 (arc_enter_leave_p): Likewise.
9382 (arc_save_callee_saves): Likewise.
9383 (arc_restore_callee_saves): Likewise.
9384 (arc_save_callee_enter): Likewise.
9385 (arc_restore_callee_leave): Likewise.
9386 (arc_save_callee_milli): Likewise.
9387 (arc_restore_callee_milli): Likewise.
9388 (arc_expand_prologue): Add new interrupt handling.
9389 (arc_return_address_register): Make it static, move it forward.
9390 (arc_expand_epilogue): Add new interrupt handling.
9391 (arc_get_unalign): Delete.
9392 (arc_epilogue_uses): Make sure we do not remove the extra
9393 saved/restored registers when interrupt.
9394 (arc_can_use_return_insn): New function.
9395 (push_reg): Likewise.
9396 (pop_reg): Likewise.
9397 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9398 procedures.
9399 (arc_restore_callee_saves): Likewise, but restoring.
9400 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9401 (R33_REG): Likewise.
9402 (R34_REG): Likewise.
9403 (R35_REG): Likewise.
9404 (R36_REG): Likewise.
9405 (R37_REG): Likewise.
9406 (R38_REG): Likewise.
9407 (R39_REG): Likewise.
9408 (R45_REG): Likewise.
9409 (R46_REG): Likewise.
9410 (R47_REG): Likewise.
9411 (R48_REG): Likewise.
9412 (R49_REG): Likewise.
9413 (R50_REG): Likewise.
9414 (R51_REG): Likewise.
9415 (R52_REG): Likewise.
9416 (R53_REG): Likewise.
9417 (R54_REG): Likewise.
9418 (R55_REG): Likewise.
9419 (R56_REG): Likewise.
9420 (R58_REG): Likewise.
9421 (type): Add rtie attribute.
9422 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
9423 (movsi_insn): Accept moves to lp_count.
9424 (rtie): Update pattern.
9425 (simple_return): Simplify it, don't use this pattern as a return
9426 from an interrupt.
9427 (arc600_rtie): New pattern.
9428 (p_return_i): Clean up.
9429 (return): Likewise.
9430 * config/arc/builtins.def (rtie): Only available for non ARC6xx
9431 family CPUs.
9432 * config/arc/predicates.md (move_src_operand): Consider lp_count
9433 as a register.
9434
9435 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
9436
9437 * config/s390/predicates.md (addv_const_operand): New predicate.
9438 * config/s390/s390-modes.def (CCO): New condition code mode.
9439 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
9440 (s390_branch_condition_mask): Likewise.
9441 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
9442 ("mulv<mode>4"): New expanders.
9443 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
9444 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
9445 pattern definitions.
9446
9447 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9448
9449 PR middle-end/91166
9450 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
9451 (define_predicates): Add entry for uniform_vector_p.
9452 (vec_same_elem_p): New match pattern.
9453
9454 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9455
9456 PR bootstrap/87030
9457 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
9458 * config/i386/darwin32-biarch.h .. to here.
9459 * config/i386/darwin64-biarch.h: Adjust comments.
9460 * config/rs6000/darwin32-biarch.h: Likewise.
9461 * config/rs6000/darwin64-biarch.h: Likewise.
9462 * config.gcc: Missed commit from r273746
9463 (*-*-darwin*): Don't include CPU t-darwin here.
9464 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9465 an error message if i686-darwin configuration is attempted for
9466 Darwin >= 18.
9467
9468 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
9469
9470 PR bootstrap/87030
9471 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
9472 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9473 an error message if i686-darwin configuration is attempted for
9474 Darwin >= 18.
9475 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
9476 (powerpc-*-darwin*): Use biarch files where needed.
9477 (powerpc64-*-darwin*): Likewise.
9478 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
9479 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9480 arch case.
9481 * config/i386/darwin32-biarch.h: New.
9482 * config/i386/darwin64.h: Rename.
9483 * config/i386/darwin64-biarch.h: To this.
9484 * config/i386/t-darwin: Rename.
9485 * config/i386/t-darwin32-biarch: To this.
9486 * config/i386/t-darwin64: Rename.
9487 * config/i386/t-darwin64-biarch: To this.
9488 * config/rs6000/darwin32-biarch.h: New.
9489 * config/rs6000/darwin64.h: Rename.
9490 * config/rs6000/darwin64-biarch.h: To this.
9491 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9492 arch case.
9493 * config/rs6000/t-darwin8: Rename.
9494 * config/rs6000/t-darwin32-biarch: To this.
9495 * config/rs6000/t-darwin64 Rename.
9496 * config/rs6000/t-darwin64-biarch: To this.
9497
9498 2019-07-23 Martin Sebor <msebor@redhat.com>
9499
9500 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
9501
9502 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9503
9504 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
9505 (rh): New alias for it.
9506
9507 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9508
9509 * gdbhooks.py: Pass replace=True to
9510 gdb.printing.register_pretty_printer.
9511
9512 2019-07-23 Richard Biener <rguenther@suse.de>
9513
9514 PR debug/91231
9515 * lto-streamer-in.c (input_function): Drop inline-entry markers
9516 that ended up with an unknown location block.
9517
9518 2019-07-23 Richard Biener <rguenther@suse.de>
9519
9520 PR tree-optimization/83518
9521 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
9522 init from a constant even when partial defs are already recorded.
9523
9524 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9525
9526 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
9527 * config/i386/znver1.md: Enable patterns for znver2 and add store
9528 variants which use extra AGU unit.
9529
9530 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9531
9532 * config/i386/i386-options.c (ix86_option_override_internal): Default
9533 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
9534 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
9535 for ZNVER2.
9536
9537 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9538
9539 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
9540 (znver2_costs): Update 256 bit SSE costs and multiplication.
9541
9542 2019-07-23 Jan Beulich <jbeulich@suse.com>
9543
9544 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
9545 Require only AVX512F.
9546 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
9547 alternative expanding to vpternlog.
9548
9549 2019-07-23 Martin Liska <mliska@suse.cz>
9550
9551 * dwarf2out.c (gen_producer_string): Canonize -flto=N
9552 to -flto in dwarf producer string.
9553
9554 2019-07-23 Richard Biener <rguenther@suse.de>
9555
9556 * tree-cfg.c (label_for_bb): Remove global var.
9557 (main_block_label): Take label_for_bb as argument.
9558 (cleanup_dead_labels_eh): Likewise, adjust.
9559 (cleanup_dead_labels): Adjust.
9560
9561 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9562
9563 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
9564 Configurations): Add documentation for __builtin_mtfsf.
9565
9566 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
9567
9568 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
9569 * config/riscv/riscv.c (riscv_constant_alignment): Use
9570 riscv_align_data_type.
9571 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
9572 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9573 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9574 * config/riscv/riscv.opt (malign-data): New.
9575 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
9576
9577 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
9578
9579 * cgraph.c (dump_graphviz): New function.
9580 * cgraph.h (dump_graphviz): New function.
9581 * symtab.c (dump_graphviz): New function.
9582
9583 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
9584
9585 * config/aarch64/aarch64-simd.md
9586 (*aarch64_simd_sra<mode>): New.
9587 * config/aarch64/iterators.md
9588 (SHIFTRT): New iterator.
9589 (sra_op): New attribute.
9590
9591 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9592
9593 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
9594 callee-saved regs R4->R10 in an interrupt function that calls another
9595 function.
9596
9597 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9598
9599 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
9600 (_mm_blendv_epi8): New.
9601
9602 2019-07-22 Richard Biener <rguenther@suse.de>
9603
9604 PR tree-optimization/91221
9605 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
9606 restrict partial-def handling of empty constructors and
9607 memset to refs with known offset.
9608
9609 2019-07-22 Jan Beulich <jbeulich@suse.com>
9610
9611 * config/i386/sse.md (ternlogsuffix): New.
9612 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
9613 AVX512F is in use.
9614 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
9615
9616 2019-07-22 Martin Liska <mliska@suse.cz>
9617
9618 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
9619 comment.
9620 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
9621
9622 2019-07-22 Martin Liska <mliska@suse.cz>
9623
9624 * lto-section-in.c (lto_get_section_data):
9625 Use new function get_compression.
9626 * lto-streamer-out.c (produce_lto_section): Use
9627 set_compression to encode compression algorithm.
9628 * lto-streamer.h (struct lto_section): Do not
9629 use bitfields in the format.
9630
9631 2019-07-22 Martin Liska <mliska@suse.cz>
9632
9633 PR driver/91172
9634 * opts-common.c (decode_cmdline_option): Decode
9635 argument of -Werror and check it for a wrong language.
9636 * opts-global.c (complain_wrong_lang): Remove such case.
9637
9638 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
9639
9640 * config/arc/arc.c (prepare_move_operands): Always use an
9641 intermediate register when storing a TLS symbols.
9642
9643 2019-07-22 Stafford Horne <shorne@gmail.com>
9644
9645 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
9646 force_reg.
9647
9648 2019-07-22 Stafford Horne <shorne@gmail.com>
9649
9650 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
9651 and munordered-float validations.
9652 * config/or1k/constraints.md (d): New register constraint.
9653 * config/or1k/predicates.md (fp_comparison_operator): New.
9654 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
9655 operands.
9656 (or1k_expand_compare): Normalize unordered comparisons.
9657 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
9658 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
9659 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
9660 * config/or1k/or1k.md (type): Add fpu.
9661 (fpu): New instruction reservation.
9662 (F, f, fr, fi, FI, FOP, fop): New.
9663 (<fop><F:mode>3): New ALU instruction definition.
9664 (float<fi><F:mode>2): New conversion instruction definition.
9665 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
9666 (fpcmpcc): New code iterator.
9667 (*sf_fp_insn): New instruction definition.
9668 (cstore<F:mode>4): New expand definition.
9669 (cbranch<F:mode>4): New expand definition.
9670 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
9671 munordered-float): New options.
9672 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
9673 munordered-float.
9674
9675 2019-07-22 Stafford Horne <shorne@gmail.com>
9676
9677 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
9678 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
9679 documenation to be more clear.
9680 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
9681 more clear.
9682 * config/or1k/or1k.opt (mrori): New option.
9683 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
9684 msfimm, mshftimm): Rewrite documentation to be more clear.
9685 * config/or1k/or1k.md (insn_support): Add ror and rori.
9686 (enabled): Add conditions for ror and rori.
9687 (rotrsi3): Replace condition for shftimm with ror and rori.
9688
9689 2019-07-22 Stafford Horne <shorne@gmail.com>
9690
9691 PR target/90363
9692 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
9693 (extend<mode>si2): Update predicate.
9694 * config/or1k/predicates.md (volatile_mem_operand): New.
9695 (reg_or_mem_operand): New.
9696
9697 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
9698
9699 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
9700 * config/rs6000/rs6000-call.c: ... to here.
9701
9702 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9703
9704 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
9705 memory.
9706
9707 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9708
9709 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
9710
9711 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9712
9713 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
9714
9715 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9716
9717 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
9718 (any_memory_operand): New predicate.
9719 (reg_or_mem_operand): Use it.
9720
9721 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9722
9723 PR target/91204
9724 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
9725
9726 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
9727
9728 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
9729 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
9730
9731 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9732
9733 * tree.def (OMP_LOOP): New tree code.
9734 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
9735 (enum omp_clause_bind_kind): New enum.
9736 (struct tree_omp_clause): Add subcode.bind_kind.
9737 * tree.h (OMP_LOOP_CHECK): Rename to ...
9738 (OMP_LOOPING_CHECK): ... this.
9739 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
9740 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
9741 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
9742 (OMP_CLAUSE_BIND_KIND): Define.
9743 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9744 bind clause entries.
9745 (walk_tree_1): Handle OMP_CLAUSE_BIND.
9746 * tree-pretty-print.c (dump_omp_clause): Likewise.
9747 (dump_generic_node): Handle OMP_LOOP.
9748 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
9749 (in_omp_construct): New variable.
9750 (is_gimple_stmt): Handle OMP_LOOP.
9751 (gimplify_scan_omp_clauses): For lastprivate don't set
9752 check_non_private if code == OMP_LOOP. For reduction clause
9753 on OMP_LOOP combined with parallel or teams propagate as shared
9754 on the combined construct. Handle OMP_CLAUSE_BIND.
9755 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
9756 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
9757 for constructs from a loop construct to gimplify_scan_omp_clauses.
9758 Don't predetermine iterator linear on OMP_SIMD from loop construct.
9759 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
9760 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
9761 to match the implicit ORT_TARGET construct around whole body.
9762 Temporarily clear in_omp_construct when processing body.
9763 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
9764 etc. temporarily set in_omp_construct when processing body.
9765 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
9766 * omp-low.c (struct omp_context): Add loop_p.
9767 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
9768 in that the original var might be private.
9769 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
9770 (check_omp_nesting_restrictions): Adjust nesting restrictions for
9771 addition of loop construct.
9772 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
9773
9774 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
9775 lastprivate non-addressable iterator of a collapse(1) simd.
9776
9777 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
9778
9779 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
9780 as in rs6000.c.
9781
9782 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
9783
9784 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
9785 refer to default conditions. Warn for the 'y' spec which is ignored
9786 by current linkers.
9787
9788 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
9789
9790 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
9791 cpu_supports_info, builtin_hash_struct, builtin_hasher,
9792 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
9793 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
9794 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
9795 init_cumulative_args, rs6000_promote_function_mode,
9796 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
9797 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
9798 rs6000_function_arg_boundary, rs6000_parm_offset,
9799 rs6000_parm_start, rs6000_arg_size,
9800 rs6000_darwin64_record_arg_advance_flush,
9801 rs6000_darwin64_record_arg_advance_recurse,
9802 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
9803 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
9804 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
9805 rs6000_mixed_function_arg, rs6000_psave_function_arg,
9806 rs6000_finish_function_arg, rs6000_function_arg,
9807 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
9808 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
9809 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
9810 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
9811 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
9812 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
9813 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
9814 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
9815 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
9816 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
9817 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
9818 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
9819 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
9820 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
9821 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
9822 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
9823 get_element_number, altivec_expand_vec_set_builtin,
9824 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
9825 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
9826 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
9827 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
9828 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
9829 rs6000_expand_builtin, rs6000_vector_type,
9830 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
9831 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
9832 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
9833 to rs6000-call.c.
9834 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
9835 cpu_supports_info, builtin_hash_struct, builtin_hasher,
9836 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
9837 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
9838 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
9839 init_cumulative_args, rs6000_promote_function_mode,
9840 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
9841 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
9842 rs6000_function_arg_boundary, rs6000_parm_offset,
9843 rs6000_parm_start, rs6000_arg_size,
9844 rs6000_darwin64_record_arg_advance_flush,
9845 rs6000_darwin64_record_arg_advance_recurse,
9846 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
9847 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
9848 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
9849 rs6000_mixed_function_arg, rs6000_psave_function_arg,
9850 rs6000_finish_function_arg, rs6000_function_arg,
9851 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
9852 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
9853 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
9854 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
9855 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
9856 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
9857 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
9858 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
9859 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
9860 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
9861 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
9862 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
9863 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
9864 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
9865 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
9866 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
9867 get_element_number, altivec_expand_vec_set_builtin,
9868 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
9869 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
9870 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
9871 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
9872 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
9873 rs6000_expand_builtin, rs6000_vector_type,
9874 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
9875 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
9876 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
9877 to here from rs6000.c.
9878 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
9879 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
9880 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
9881 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
9882 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
9883 rs6000_return_in_memory, rs6000_return_in_msb,
9884 rs6000_pass_by_reference, setup_incoming_varargs,
9885 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
9886 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
9887 rs6000_function_arg_padding, rs6000_function_arg,
9888 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
9889 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
9890 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
9891 rs6000_passes_long_double, rs6000_passes_vector,
9892 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
9893 altivec_builtin_mask_for_load) Add declarations.
9894 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
9895 * config/config.gcc: Add new source file rs6000-call.c to garbage
9896 collector and extra_objs.
9897
9898 2019-07-19 Jeff Law <law@redhat.com>
9899
9900 PR tree-optimization/86061
9901 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
9902 strncpy. Drop some trivial dead code.
9903 (maybe_trim_memstar_call): Handle strncpy.
9904
9905 2019-07-19 Richard Biener <rguenther@suse.de>
9906
9907 PR tree-optimization/91211
9908 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9909 memset encoding size.
9910
9911 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
9912
9913 PR target/91204
9914 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
9915
9916 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
9917
9918 PR ipa/91194
9919 * ipa-inline.c (recursive_inlining): Fix limits check.
9920
9921 2019-07-19 Richard Biener <rguenther@suse.de>
9922
9923 PR tree-optimization/91200
9924 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
9925 no PHI nodes in middle-bb.
9926
9927 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
9928
9929 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
9930 to +sve-bitperm.
9931 * config/aarch64/aarch64-option-extensions.def: Likewise.
9932
9933 2019-07-19 Jakub Jelinek <jakub@redhat.com>
9934
9935 PR middle-end/91190
9936 * function.c (insert_temp_slot_address): Store into the hash table
9937 a copy of address to avoid RTL sharing issues.
9938
9939 2019-07-19 Richard Biener <rguenther@suse.de>
9940
9941 PR tree-optimization/91207
9942 Revert
9943 2019-07-17 Richard Biener <rguenther@suse.de>
9944
9945 PR tree-optimization/91178
9946 * tree-vect-stmts.c (get_group_load_store_type): For SLP
9947 loads with a gap larger than the vector size always use
9948 VMAT_STRIDED_SLP.
9949 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
9950 avoid loading vectors that are only contained in the gap
9951 and thus are not needed.
9952
9953 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
9954
9955 * config/i386/i386.md (*addqi_2_slp): Remove.
9956 (*<code>qi_2_slp): Ditto.
9957
9958 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
9959
9960 * config/rs6000/predicates.md (prefixed_mem_operand): Call
9961 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
9962 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
9963 Rename function from rs6000_prefixed_address.
9964 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
9965 TARGET_HAS_TOC.
9966 (TARGET_TOC): Likewise.
9967 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
9968 rs6000.h.
9969 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
9970 TARGET_HAS_TOC.
9971 (TARGET_TOC): Likewise.
9972 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
9973 rs6000.h.
9974 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
9975 TARGET_HAS_TOC.
9976 (TARGET_TOC): Likewise.
9977 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
9978 check to require -mcmodel=medium for pc-relative addressing.
9979 (create_TOC_reference): Add assertion for TARGET_TOC.
9980 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
9981 TARGET_NO_TOC.
9982 (rs6000_emit_move): Likewise.
9983 (TOC_alias_set): Rename TOC alias set static variable from 'set'
9984 to 'TOC_alias_set'.
9985 (get_TOC_alias_set): Likewise.
9986 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
9987 TARGET_NO_TOC.
9988 (rs6000_can_eliminate): Likewise.
9989 (rs6000_prefixed_address_mode_p): Rename function from
9990 rs6000_prefixed_address.
9991 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
9992 TARGET_HAS_TOC and not pc-relative.
9993 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
9994 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
9995 TARGET_HAS_TOC.
9996 (TARGET_TOC): Likewise.
9997 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
9998 rs6000.h.
9999
10000 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10001
10002 PR target/91188
10003 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10004 for operand 0. Do not use (match_dup) to match operand 1 with
10005 operand 0. Add check in insn constraint that either input operand
10006 matches operand 0. Use SWI12 mode iterator to also handle
10007 HImode operands.
10008 (*and<mode>_1_slp): Ditto.
10009 (*<code>qi_1_slp): Ditto.
10010 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10011 Do not use (match_dup) to match operand 1 with operand 0. Add
10012 check in insn constraint that operand 1 matches operand 0.
10013 Use SWI12 mode iterator to also handle HImode operands.
10014 (*ashl<mode>3_1_slp): Ditto.
10015 (*<shift_insn><mode>3_1_slp): Ditto.
10016 (*<rotate_insn><mode>3_1_slp): Ditto.
10017
10018 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10019
10020 * config/arm/arm-builtins.c
10021 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10022 (arm_expand_unop_builtin): Likewise.
10023 * config/arm/crypto.md
10024 (crypto_sha1h): Convert from define_insn to define_expand.
10025 (crypto_<crypto_pattern>): Likewise.
10026 (crypto_sha1h_lb): New define_insn.
10027 (crypto_<crypto_pattern>_lb): Likewise.
10028
10029 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10030
10031 PR target/90317
10032 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10033 (vsha1cq_u32): Likewise.
10034 (vsha1pq_u32): Likewise.
10035 (vsha1mq_u32): Likewise.
10036 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10037 vec select.
10038 (crypto_sha1c): Correct vec select.
10039 (crypto_sha1m): Likewise.
10040 (crypto_sha1p): Likewise.
10041
10042 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10043
10044 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10045 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10046 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10047 (subdi_zesidi_zesidi): Likewise.
10048 (negdi2_compare, negdi2_insn): Likewise.
10049 (negdi_extensidi): Likewise.
10050 (negdi_zero_extendsidi): Likewise.
10051 (arm_cmpdi_insn): Likewise.
10052 (subsi3_carryin): Use arm_borrow_operation.
10053 (subsi3_carryin_const): Likewise.
10054 (subsi3_carryin_const0): Likewise.
10055 (subsi3_carryin_compare): Likewise.
10056 (subsi3_carryin_compare_const): Likewise.
10057 (subsi3_carryin_compare_const0): Likewise.
10058 (subsi3_carryin_shift): Likewise.
10059 (rsbsi3_carryin_shift): Likewise.
10060 (negsi2_carryin_compare): Likewise.
10061
10062 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10063
10064 PR tree-optimization/91137
10065 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10066 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10067 Init, use and fini the above new field.
10068 (determine_base_object_1): New function.
10069 (determine_base_object): Reimplement using walk_tree.
10070
10071 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10072
10073 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10074 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10075 CLEANUP_FORCE_FAST_DCE is set.
10076 * ifcvt.c (rest_of_handle_if_conversion): Pass
10077 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10078 if-conversion succeeded.
10079
10080 2019-07-18 Richard Biener <rguenther@suse.de>
10081
10082 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10083 branches to make code less indented.
10084
10085 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10086
10087 PR middle-end/81824
10088 * attribs.c (decls_mismatched_attributes): Simplify the logic
10089 that avoids duplicates and false positives.
10090
10091 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10092
10093 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10094 data into data section when generating PIC code.
10095 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10096 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10097 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10098 return 2 for SOM and 0 for other targets.
10099
10100 2019-07-17 Jeff Law <law@redhat.com>
10101
10102 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10103 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10104 avoid unexpected switch statement fallthru.
10105
10106 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10107
10108 * config/i386/i386.md (*add<dwi>3_doubleword):
10109 Remove redundant constraints.
10110 (*add<mode>_1): Ditto.
10111 (*addhi_1): Ditto.
10112 (*addqi_1): Ditto.
10113 (*addqi_1_slp): Ditto.
10114 (*add<mode>_2): Ditto.
10115 (*addv<mode>4): Ditto.
10116 (*sub<dwi>3_doubleword): Ditto.
10117 (*sub<mode>_1): Ditto.
10118 (*subqi_1_slp): Ditto.
10119 (*sub<mode>_2): Ditto.
10120 (*subv<mode>4): Ditto.
10121 (*sub<mode>_3): Ditto.
10122 (@add<mode>3_carry): Ditto.
10123 (@sub<mode>3_carry): Ditto.
10124 (*add<mode>3_cc_overflow_1): Ditto.
10125 (*add<mode>3_zext_cc_overflow_2): Ditto.
10126 (*anddi_1): Ditto.
10127 (*and<mode>_1): Ditto.
10128 (*andqi_1): Ditto.
10129 (*andqi_1_slp): Ditto.
10130 (*anddi_2): Ditto.
10131 (*andqi_2_maybe_si): Ditto.
10132 (*and<mode>_2): Ditto.
10133 (*andqi_2_slp): Ditto.
10134 (*<code><mode>_1): Ditto.
10135 (*<code>qi_1): Ditto.
10136 (*<code>qi_1_slp): Ditto.
10137 (*<code><mode>_2): Ditto.
10138 (*<code>qi_2_slp): Ditto.
10139
10140 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10141
10142 * alias.c (record_component_aliases): Do not simplify pointed-to
10143 types of ODR types.
10144
10145 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10146
10147 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10148 partial reg stall on alternative 2.
10149
10150 2019-07-17 Richard Biener <rguenther@suse.de>
10151
10152 PR tree-optimization/91178
10153 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10154 lower SSA names to avoid quadratic behavior in the common case.
10155 * tree-data-ref.c (split_constant_offset): Add limit argument
10156 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10157 (split_constant_offset_1): Add limit argument and use it to
10158 limit SSA def walking. Optimize the common plus/minus case.
10159
10160 2019-07-17 Richard Biener <rguenther@suse.de>
10161
10162 PR tree-optimization/91178
10163 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10164 loads with a gap larger than the vector size always use
10165 VMAT_STRIDED_SLP.
10166 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10167 avoid loading vectors that are only contained in the gap
10168 and thus are not needed.
10169
10170 2019-07-17 Richard Biener <rguenther@suse.de>
10171
10172 PR tree-optimization/91180
10173 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10174 computation for memset partial defs.
10175
10176 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10177
10178 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10179 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10180 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10181 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10182 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10183 * omp-grid.c (grid_process_grid_body,
10184 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10185 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10186 == GF_OMP_FOR_KIND_SIMD.
10187 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10188 check_omp_nesting_restrictions, scan_omp_1_stmt,
10189 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10190 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10191 omp_find_scan): Likewise.
10192 * omp-expand.c (expand_omp_for): Likewise.
10193 * omp-general.c (omp_extract_for_data): Likewise.
10194
10195 PR tree-optimization/91157
10196 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10197 a vector boolean with scalar mode.
10198 (expand_vector_condition): Handle first operand being a vector boolean
10199 with scalar mode.
10200 (expand_vector_operations_1): For comparisons, don't bail out early
10201 if the return type is vector boolean with scalar mode, but comparison
10202 operand type is not.
10203
10204 2019-07-17 Richard Biener <rguenther@suse.de>
10205
10206 PR tree-optimization/91181
10207 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10208 IFN_LOADs as calls.
10209
10210 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10211
10212 * config/i386/i386.md (*testdi_1): Match CCZmode for
10213 constants that might have the SImode sign bit set.
10214 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10215 Use correct constraints for pentium pairing.
10216 (*test<mode>_1): Ditto.
10217
10218 2019-07-16 Jeff Law <law@redhat.com>
10219
10220 PR rtl-optimization/91173
10221 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10222 SSA_NAME with a constant value, fold its value into the offset
10223 and clear the base before calling gen_addr_rtx.
10224
10225 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10226
10227 PR rtl-optimization/91164
10228 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10229 invalidate dominance info.
10230
10231 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10232
10233 * read-md.h (md_reader::record_potential_iterator_use): Add a
10234 file_location parameter.
10235 * read-rtl.c (attribute_use::loc): New field.
10236 (map_attr_string): Take a file_location parameter. Report cases
10237 in which attributes map to multiple distinct values.
10238 (apply_attribute_uses): Update call accordingly.
10239 (md_reader::handle_overloaded_name): Likewise.
10240 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10241 nonnull strings.
10242 (record_attribute_use): Take a file_location parameter.
10243 Initialize attribute_use::loc.
10244 (md_reader::record_potential_iterator_use): Take a file_location
10245 parameter. Update call to record_attribute_use.
10246 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10247 (rtx_reader::read_rtx_code): Likewise.
10248 (rtx_reader::read_rtx_operand): Likewise. Record a location
10249 for implicitly-expanded empty strings.
10250
10251 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10252
10253 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10254 Use file_location instead of separate fields.
10255 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10256 separate filename and line number.
10257 * read-md.c (ptr_loc): As above.
10258 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10259 (md_reader::fprint_md_ptr_loc): Likewise.
10260 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10261 instead of a separate filename and line number.
10262 (md_reader::read_string): Update call accordingly.
10263
10264 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10265
10266 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10267 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10268 leaving the choice between SFDF and P implicit.
10269 (*mov<mode>_update2): Likewise.
10270 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10271 rather than leaving the choice betweem IBM128 and GPR implicit.
10272 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10273 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10274 QHSI implicit.
10275 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10276 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10277 * config/rs6000/vsx.md
10278 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10279 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10280 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10281 and VSX_EXTRACT_I implicit.
10282
10283 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10284
10285 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10286 Explicitly use <MOVEP1:MODE> for the mode attribute.
10287
10288 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10289
10290 PR bootstrap/91176
10291 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10292
10293 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10294
10295 PR target/91050
10296 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10297 .machine directive.
10298
10299 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10300
10301 * config/i386/i386.md (@test<mode>_ccno_1):
10302 Rename from test<mode>_ccno_1.
10303 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10304 (*testqi_1_maybe_si): Remove modrm attribute.
10305 (*test<mode>_1): Ditto.
10306 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10307 gen_test_ccno_1 and gen_extend_insn.
10308
10309 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10310
10311 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10312 to 0.
10313
10314 2019-07-15 Richard Biener <rguenther@suse.de>
10315
10316 PR middle-end/91162
10317 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10318 node make sure to replace all uses with something valid.
10319
10320 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10321
10322 PR tree-optimization/88497
10323 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10324 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10325 function undistribute_bitref_for_vector.
10326 (undistribute_bitref_for_vector): New function.
10327 (cleanup_vinfo_map): Likewise.
10328 (sort_by_mach_mode): Likewise.
10329
10330 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10331
10332 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10333 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10334 and testdi_ccno_1 using SWI48 mode attribute.
10335 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10336 x86_64_szext_general_operand.
10337 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10338 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10339 instead of genera_operand mode attribute.
10340
10341 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10342
10343 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10344 fopen and fclose to their respective types.
10345 (DotFn.invoke): Ditto.
10346
10347 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10348
10349 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10350 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10351 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10352 (array_index_predicate): Remove.
10353 (analyze_function_body): Account cost for variable ofsetted array
10354 indexing.
10355 (estimate_node_size_and_time): Do not compute array index hint.
10356 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10357 (inline_read_section): Do not read array index hint.
10358 (ipa_fn_summary_write): Do not write array index hint.
10359 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10360 * ipa-cp.c (hint_time_bonus): Remove.
10361 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10362 (ipa_fnsummary): Remove array_index.
10363 * ipa-inline.c (want_inline_small_function_p): Do not use
10364 array_index.
10365 (edge_badness): Likewise.
10366 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10367
10368 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10369
10370 PR target/91148
10371 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10372 superfluous "builtin function" phrasing.
10373
10374 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10375
10376 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10377 Break out from ...
10378 (aliasing_component_refs_walk): Break out from ...
10379 (aliasing_component_refs_p): ... here.
10380
10381 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10382
10383 PR target/91148
10384 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10385 "builtin function" phrasing.
10386
10387 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10388
10389 PR target/90723
10390 * recog.h (temporary_volatile_ok): New class.
10391 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10392 volatile_ok temporarily to true using temporary_volatile_ok.
10393 * expr.c (emit_block_move_via_cpymem): Likewise.
10394 * optabs.c (maybe_legitimize_operand): Likewise.
10395
10396 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10397
10398 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10399 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10400 uses inside of order(concurrent) constructs.
10401 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10402 OMP_CLAUSE_ORDER is seen.
10403 * omp-low.c (struct omp_context): Add order_concurrent member.
10404 (scan_sharing_clauses): Set ctx->order_concurrent if
10405 OMP_CLAUSE_ORDER is seen.
10406 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10407 of simd order(concurrent). Diagnose constructs not allowed inside of
10408 for order(concurrent).
10409 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10410 complaining about static double setjmp (double); or class static
10411 methods or non-global namespace setjmps.
10412 (omp_runtime_api_call): New function.
10413 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10414 order(concurrent) loops.
10415
10416 2019-07-12 Martin Sebor <msebor@redhat.com>
10417
10418 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
10419 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
10420 * tree-vrp.c (vrp_prop::check_mem_ref): Use
10421 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10422
10423 2019-07-12 Jan Hubicka <jh@suse.cz>
10424
10425 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
10426 (indirect_refs_may_alias_p): ... here.
10427 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
10428 mem refs in the access paths.
10429
10430 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
10431
10432 PR tree-optimization/89430
10433 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
10434 store elimination for local variable without address escape.
10435
10436 2019-07-12 Jeff Law <law@redhat.com>
10437
10438 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
10439 for the ".far" section.
10440
10441 2019-07-12 Richard Biener <rguenther@suse.de>
10442
10443 PR tree-optimization/91145
10444 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
10445 chain check.
10446
10447 2019-07-12 Alexandre Oliva <oliva@adacore.com>
10448
10449 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
10450 rather than this_state as the lowering context for the ELSE
10451 seq in a GIMPLE_EH_ELSE.
10452
10453 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10454
10455 * vector-builder.h (vector_builder::elt): Allow already-supplied
10456 elements to be read back before building is complete.
10457
10458 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10459
10460 PR rtl-optimization/91136
10461 * df-core.c (ACCESSING REFS): Fix typos in comment.
10462 * resource.c (mark_target_live_reg): Add artificial defs that occur at
10463 the beginning of the block to the initial set of live registers.
10464
10465 2019-07-12 Richard Biener <rguenther@suse.de>
10466
10467 * fold-const.h (get_array_ctor_element_at_index): Adjust.
10468 * fold-const.c (get_array_ctor_element_at_index): Add
10469 ctor_idx output parameter informing the caller where in
10470 the constructor the element was (not) found. Add early exit
10471 for when the ctor is sorted.
10472 * gimple-fold.c (fold_array_ctor_reference): Support constant
10473 folding across multiple array elements.
10474
10475 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10476
10477 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
10478 doesn't have location, set the current location to the function's end.
10479
10480 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10481
10482 * config/aarch64/aarch64.md (*compare_condjump<mode>)
10483 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
10484 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
10485 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
10486 * config/aarch64/aarch64-simd.md
10487 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10488 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
10489 * config/aarch64/aarch64-sve.md
10490 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
10491 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
10492
10493 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10494
10495 * doc/md.texi: Document that @ patterns can have different
10496 numbers of operands.
10497 * genemit.c (handle_overloaded_gen): Handle this case.
10498 * genopinit.c (handle_overloaded_gen): Likewise.
10499 * gensupport.c (replace_operands_with_dups): Iterate over
10500 the new rtx's format rather than the old one's.
10501
10502 2019-07-12 Jakub Jelinek <jakub@redhat.com>
10503
10504 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
10505 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10506 order clause entries.
10507 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
10508 * tree-pretty-print.c (dump_omp_clause): Likewise.
10509 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
10510 Likewise.
10511 * omp-low.c (scan_sharing_clauses): Likewise.
10512 * tree-nested.c (convert_nonlocal_omp_clauses,
10513 convert_local_omp_clauses): Likewise.
10514
10515 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
10516
10517 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
10518 fallthrough target of current basic block isn't the placed
10519 right next.
10520
10521 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
10522
10523 PR target/90980
10524 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
10525 (_mm512_storeu_epi64): Likewise.
10526 (_mm512_loadu_epi32): Likewise.
10527 (_mm512_storeu_epi32): Likewise.
10528 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
10529 (_mm_storeu_epi64): Likewise.
10530 (_mm256_storeu_epi32): Likewise.
10531 (_mm_storeu_epi32): Likewise.
10532
10533 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10534
10535 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
10536
10537 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10538
10539 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
10540 Handle Modula-2.
10541
10542 2019-07-11 Jakub Jelinek <jakub@redhat.com>
10543
10544 PR target/91124
10545 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
10546 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10547 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
10548 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
10549 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
10550 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
10551 define_insns.
10552 (ufix_truncv2dfv2si2<mask_name>): Change into ...
10553 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
10554 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
10555 define_insns.
10556 (sse2_cvttpd2dq<mask_name>): Change into ...
10557 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
10558 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
10559 (*sse2_cvtpd2dq<mask_name>): Change into ...
10560 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10561 Add "C" constraint to const0_operand.
10562 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
10563 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
10564 changes.
10565
10566 PR target/91124
10567 * config/i386/i386-builtin-types.def
10568 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
10569 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
10570 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
10571 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
10572 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
10573 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
10574 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
10575 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
10576 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
10577 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
10578 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
10579 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
10580 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
10581 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
10582 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
10583 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
10584 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
10585 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
10586 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
10587 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
10588 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
10589 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
10590 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
10591 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
10592 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
10593 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
10594 __builtin_ia32_vpdpbusd_v4si_maskz,
10595 __builtin_ia32_vpdpbusds_v16si_mask,
10596 __builtin_ia32_vpdpbusds_v16si_maskz,
10597 __builtin_ia32_vpdpbusds_v8si_mask,
10598 __builtin_ia32_vpdpbusds_v8si_maskz,
10599 __builtin_ia32_vpdpbusds_v4si_mask,
10600 __builtin_ia32_vpdpbusds_v4si_maskz,
10601 __builtin_ia32_vpdpwssd_v16si_mask,
10602 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
10603 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
10604 __builtin_ia32_vpdpwssd_v4si_maskz,
10605 __builtin_ia32_vpdpwssds_v16si_mask,
10606 __builtin_ia32_vpdpwssds_v16si_maskz,
10607 __builtin_ia32_vpdpwssds_v8si_mask,
10608 __builtin_ia32_vpdpwssds_v8si_maskz,
10609 __builtin_ia32_vpdpwssds_v4si_mask,
10610 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
10611 suffixed types rather than *_INT.
10612 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
10613 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
10614 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
10615 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
10616 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
10617 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
10618
10619 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
10620
10621 * tree-vrp.c (intersect_ranges): If we know the intersection is
10622 empty, there is no need to conservatively add anything else to
10623 the set.
10624
10625 2019-07-11 Richard Biener <rguenther@suse.de>
10626
10627 PR middle-end/91131
10628 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
10629 when the object is volatile and we have not cleared it even though
10630 there are no nonzero elements.
10631
10632 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
10633
10634 * config/rs6000/predicates.md (cint34_operand): Update
10635 SIGNED_34BIT_OFFSET_P call.
10636 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
10637 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
10638 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
10639 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
10640 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
10641 argument.
10642 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
10643 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
10644 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
10645 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
10646 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
10647
10648 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
10649
10650 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
10651 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
10652 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
10653 (DEF_MIN_OSX_VERSION): New.
10654
10655 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
10656
10657 * fold-const.c (fold_relational_const): Fix folding of
10658 vector-to-scalar NE_EXPRs.
10659 (test_vector_folding): Add more tests.
10660
10661 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
10662
10663 PR target/91060
10664 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
10665 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
10666 (vec_setv2di_internal): Reexpress as...
10667 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
10668 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
10669 rather than gen_neon_vset_lane<mode>.
10670
10671 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
10672
10673 PR target/91102
10674 * lra-constraints.c (process_alt_operands): Don't match user
10675 defined regs only if they are early clobbers.
10676
10677 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
10678
10679 * wide-int.h (wi::lshift): Reject negative values for the fast path.
10680
10681 2019-07-10 Richard Biener <rguenther@suse.de>
10682
10683 PR tree-optimization/91126
10684 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
10685 native encoding offset for BYTES_BIG_ENDIAN.
10686 (vn_reference_lookup_3): Likewise.
10687
10688 2019-07-10 Richard Biener <rguenther@suse.de>
10689
10690 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
10691 LHS whenever possible.
10692
10693 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
10694
10695 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
10696 from ...; work also on duplicated types.
10697 (nonoverlapping_component_refs_since_match): ... here
10698 (ncr_type_uid): Break out from ...
10699 (ncr_compar): ... here; look for TYPE_UID of canonical type if
10700 available.
10701 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
10702 the types and nonoverlapping_component_refs_p_1 to disambiguate.
10703
10704 2019-07-09 Martin Sebor <msebor@redhat.com>
10705
10706 PR tree-optimization/90989
10707 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
10708 optimization to just single character stores.
10709
10710 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
10711
10712 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
10713 Swap operands only once.
10714
10715 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10716
10717 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
10718 for both call instructions.
10719
10720 2019-07-09 John Darrington <john@darrington.wattle.id.au>
10721
10722 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
10723 rather than GET_MODE_BITSIZE to better handle partial integer modes.
10724
10725 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
10726
10727 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
10728 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
10729 function from rs6000-logue.c back to rs6000.c.
10730 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
10731
10732 2019-07-09 Martin Sebor <msebor@redhat.com>
10733
10734 PR c++/61339
10735 * auto-profile.c: Change class-key of PODs to struct and others
10736 to class.
10737 * basic-block.h: Same.
10738 * bitmap.c (bitmap_alloc): Same.
10739 * bitmap.h: Same.
10740 * builtins.c (expand_builtin_prefetch): Same.
10741 (expand_builtin_interclass_mathfn): Same.
10742 (expand_builtin_strlen): Same.
10743 (expand_builtin_mempcpy_args): Same.
10744 (expand_cmpstr): Same.
10745 (expand_builtin___clear_cache): Same.
10746 (expand_ifn_atomic_bit_test_and): Same.
10747 (expand_builtin_thread_pointer): Same.
10748 (expand_builtin_set_thread_pointer): Same.
10749 * caller-save.c (setup_save_areas): Same.
10750 (replace_reg_with_saved_mem): Same.
10751 (insert_restore): Same.
10752 (insert_save): Same.
10753 (add_used_regs): Same.
10754 * cfg.c (get_bb_copy): Same.
10755 (set_loop_copy): Same.
10756 * cfg.h: Same.
10757 * cfganal.h: Same.
10758 * cfgexpand.c (alloc_stack_frame_space): Same.
10759 (add_stack_var): Same.
10760 (add_stack_var_conflict): Same.
10761 (add_scope_conflicts_1): Same.
10762 (update_alias_info_with_stack_vars): Same.
10763 (expand_used_vars): Same.
10764 * cfghooks.c (redirect_edge_and_branch_force): Same.
10765 (delete_basic_block): Same.
10766 (split_edge): Same.
10767 (make_forwarder_block): Same.
10768 (force_nonfallthru): Same.
10769 (duplicate_block): Same.
10770 (lv_flush_pending_stmts): Same.
10771 * cfghooks.h: Same.
10772 * cfgloop.c (flow_loops_cfg_dump): Same.
10773 (flow_loop_nested_p): Same.
10774 (superloop_at_depth): Same.
10775 (get_loop_latch_edges): Same.
10776 (flow_loop_dump): Same.
10777 (flow_loops_dump): Same.
10778 (flow_loops_free): Same.
10779 (flow_loop_nodes_find): Same.
10780 (establish_preds): Same.
10781 (flow_loop_tree_node_add): Same.
10782 (flow_loop_tree_node_remove): Same.
10783 (flow_loops_find): Same.
10784 (find_subloop_latch_edge_by_profile): Same.
10785 (find_subloop_latch_edge_by_ivs): Same.
10786 (mfb_redirect_edges_in_set): Same.
10787 (form_subloop): Same.
10788 (merge_latch_edges): Same.
10789 (disambiguate_multiple_latches): Same.
10790 (disambiguate_loops_with_multiple_latches): Same.
10791 (flow_bb_inside_loop_p): Same.
10792 (glb_enum_p): Same.
10793 (get_loop_body_with_size): Same.
10794 (get_loop_body): Same.
10795 (fill_sons_in_loop): Same.
10796 (get_loop_body_in_dom_order): Same.
10797 (get_loop_body_in_custom_order): Same.
10798 (release_recorded_exits): Same.
10799 (get_loop_exit_edges): Same.
10800 (num_loop_branches): Same.
10801 (remove_bb_from_loops): Same.
10802 (find_common_loop): Same.
10803 (delete_loop): Same.
10804 (cancel_loop): Same.
10805 (verify_loop_structure): Same.
10806 (loop_preheader_edge): Same.
10807 (loop_exit_edge_p): Same.
10808 (single_exit): Same.
10809 (loop_exits_to_bb_p): Same.
10810 (loop_exits_from_bb_p): Same.
10811 (get_loop_location): Same.
10812 (record_niter_bound): Same.
10813 (get_estimated_loop_iterations_int): Same.
10814 (max_stmt_executions_int): Same.
10815 (likely_max_stmt_executions_int): Same.
10816 (get_estimated_loop_iterations): Same.
10817 (get_max_loop_iterations): Same.
10818 (get_max_loop_iterations_int): Same.
10819 (get_likely_max_loop_iterations): Same.
10820 * cfgloop.h (simple_loop_desc): Same.
10821 (get_loop): Same.
10822 (loop_depth): Same.
10823 (loop_outer): Same.
10824 (loop_iterator::next): Same.
10825 (loop_outermost): Same.
10826 * cfgloopanal.c (mark_irreducible_loops): Same.
10827 (num_loop_insns): Same.
10828 (average_num_loop_insns): Same.
10829 (expected_loop_iterations_unbounded): Same.
10830 (expected_loop_iterations): Same.
10831 (mark_loop_exit_edges): Same.
10832 (single_likely_exit): Same.
10833 * cfgloopmanip.c (fix_bb_placement): Same.
10834 (fix_bb_placements): Same.
10835 (remove_path): Same.
10836 (place_new_loop): Same.
10837 (add_loop): Same.
10838 (scale_loop_frequencies): Same.
10839 (scale_loop_profile): Same.
10840 (create_empty_if_region_on_edge): Same.
10841 (create_empty_loop_on_edge): Same.
10842 (loopify): Same.
10843 (unloop): Same.
10844 (fix_loop_placements): Same.
10845 (copy_loop_info): Same.
10846 (duplicate_loop): Same.
10847 (duplicate_subloops): Same.
10848 (loop_redirect_edge): Same.
10849 (can_duplicate_loop_p): Same.
10850 (duplicate_loop_to_header_edge): Same.
10851 (mfb_keep_just): Same.
10852 (has_preds_from_loop): Same.
10853 (create_preheader): Same.
10854 (create_preheaders): Same.
10855 (lv_adjust_loop_entry_edge): Same.
10856 (loop_version): Same.
10857 * cfgloopmanip.h: Same.
10858 * cgraph.h: Same.
10859 * cgraphbuild.c: Same.
10860 * combine.c (make_extraction): Same.
10861 * config/i386/i386-features.c: Same.
10862 * config/i386/i386-features.h: Same.
10863 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
10864 (ix86_emit_outlined_ms2sysv_restore): Same.
10865 (ix86_noce_conversion_profitable_p): Same.
10866 (ix86_init_cost): Same.
10867 (ix86_simd_clone_usable): Same.
10868 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
10869 Wstruct-not-pod.
10870 * coretypes.h: Same.
10871 * data-streamer-in.c (string_for_index): Change class-key of PODs
10872 to struct and others to class.
10873 (streamer_read_indexed_string): Same.
10874 (streamer_read_string): Same.
10875 (bp_unpack_indexed_string): Same.
10876 (bp_unpack_string): Same.
10877 (streamer_read_uhwi): Same.
10878 (streamer_read_hwi): Same.
10879 (streamer_read_gcov_count): Same.
10880 (streamer_read_wide_int): Same.
10881 * data-streamer.h (streamer_write_bitpack): Same.
10882 (bp_unpack_value): Same.
10883 (streamer_write_char_stream): Same.
10884 (streamer_write_hwi_in_range): Same.
10885 (streamer_write_record_start): Same.
10886 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
10887 (add_cross_iteration_register_deps): Same.
10888 (build_intra_loop_deps): Same.
10889 * df-core.c (df_analyze): Same.
10890 (loop_post_order_compute): Same.
10891 (loop_inverted_post_order_compute): Same.
10892 * df-problems.c (df_rd_alloc): Same.
10893 (df_rd_simulate_one_insn): Same.
10894 (df_rd_local_compute): Same.
10895 (df_rd_init_solution): Same.
10896 (df_rd_confluence_n): Same.
10897 (df_rd_transfer_function): Same.
10898 (df_rd_free): Same.
10899 (df_rd_dump_defs_set): Same.
10900 (df_rd_top_dump): Same.
10901 (df_lr_alloc): Same.
10902 (df_lr_reset): Same.
10903 (df_lr_local_compute): Same.
10904 (df_lr_init): Same.
10905 (df_lr_confluence_n): Same.
10906 (df_lr_free): Same.
10907 (df_lr_top_dump): Same.
10908 (df_lr_verify_transfer_functions): Same.
10909 (df_live_alloc): Same.
10910 (df_live_reset): Same.
10911 (df_live_init): Same.
10912 (df_live_confluence_n): Same.
10913 (df_live_finalize): Same.
10914 (df_live_free): Same.
10915 (df_live_top_dump): Same.
10916 (df_live_verify_transfer_functions): Same.
10917 (df_mir_alloc): Same.
10918 (df_mir_reset): Same.
10919 (df_mir_init): Same.
10920 (df_mir_confluence_n): Same.
10921 (df_mir_free): Same.
10922 (df_mir_top_dump): Same.
10923 (df_word_lr_alloc): Same.
10924 (df_word_lr_reset): Same.
10925 (df_word_lr_init): Same.
10926 (df_word_lr_confluence_n): Same.
10927 (df_word_lr_free): Same.
10928 (df_word_lr_top_dump): Same.
10929 (df_md_alloc): Same.
10930 (df_md_simulate_one_insn): Same.
10931 (df_md_reset): Same.
10932 (df_md_init): Same.
10933 (df_md_free): Same.
10934 (df_md_top_dump): Same.
10935 * df-scan.c (df_insn_delete): Same.
10936 (df_insn_rescan): Same.
10937 (df_notes_rescan): Same.
10938 (df_sort_and_compress_mws): Same.
10939 (df_install_mws): Same.
10940 (df_refs_add_to_chains): Same.
10941 (df_ref_create_structure): Same.
10942 (df_ref_record): Same.
10943 (df_def_record_1): Same.
10944 (df_find_hard_reg_defs): Same.
10945 (df_uses_record): Same.
10946 (df_get_conditional_uses): Same.
10947 (df_get_call_refs): Same.
10948 (df_recompute_luids): Same.
10949 (df_get_entry_block_def_set): Same.
10950 (df_entry_block_defs_collect): Same.
10951 (df_get_exit_block_use_set): Same.
10952 (df_exit_block_uses_collect): Same.
10953 (df_mws_verify): Same.
10954 (df_bb_verify): Same.
10955 * df.h (df_scan_get_bb_info): Same.
10956 * doc/tm.texi: Same.
10957 * dse.c (record_store): Same.
10958 * dumpfile.h: Same.
10959 * emit-rtl.c (const_fixed_hasher::equal): Same.
10960 (set_mem_attributes_minus_bitpos): Same.
10961 (change_address): Same.
10962 (adjust_address_1): Same.
10963 (offset_address): Same.
10964 * emit-rtl.h: Same.
10965 * except.c (dw2_build_landing_pads): Same.
10966 (sjlj_emit_dispatch_table): Same.
10967 * explow.c (allocate_dynamic_stack_space): Same.
10968 (emit_stack_probe): Same.
10969 (probe_stack_range): Same.
10970 * expmed.c (store_bit_field_using_insv): Same.
10971 (store_bit_field_1): Same.
10972 (store_integral_bit_field): Same.
10973 (extract_bit_field_using_extv): Same.
10974 (extract_bit_field_1): Same.
10975 (emit_cstore): Same.
10976 * expr.c (emit_block_move_via_cpymem): Same.
10977 (expand_cmpstrn_or_cmpmem): Same.
10978 (set_storage_via_setmem): Same.
10979 (emit_single_push_insn_1): Same.
10980 (expand_assignment): Same.
10981 (store_constructor): Same.
10982 (expand_expr_real_2): Same.
10983 (expand_expr_real_1): Same.
10984 (try_casesi): Same.
10985 * flags.h: Same.
10986 * function.c (try_fit_stack_local): Same.
10987 (assign_stack_local_1): Same.
10988 (assign_stack_local): Same.
10989 (cut_slot_from_list): Same.
10990 (insert_slot_to_list): Same.
10991 (max_slot_level): Same.
10992 (move_slot_to_level): Same.
10993 (temp_address_hasher::equal): Same.
10994 (remove_unused_temp_slot_addresses): Same.
10995 (assign_temp): Same.
10996 (combine_temp_slots): Same.
10997 (update_temp_slot_address): Same.
10998 (preserve_temp_slots): Same.
10999 * function.h: Same.
11000 * fwprop.c: Same.
11001 * gcc-rich-location.h: Same.
11002 * gcov.c: Same.
11003 * genattrtab.c (check_attr_test): Same.
11004 (check_attr_value): Same.
11005 (convert_set_attr_alternative): Same.
11006 (convert_set_attr): Same.
11007 (check_defs): Same.
11008 (copy_boolean): Same.
11009 (get_attr_value): Same.
11010 (expand_delays): Same.
11011 (make_length_attrs): Same.
11012 (min_fn): Same.
11013 (make_alternative_compare): Same.
11014 (simplify_test_exp): Same.
11015 (tests_attr_p): Same.
11016 (get_attr_order): Same.
11017 (clear_struct_flag): Same.
11018 (gen_attr): Same.
11019 (compares_alternatives_p): Same.
11020 (gen_insn): Same.
11021 (gen_delay): Same.
11022 (find_attrs_to_cache): Same.
11023 (write_test_expr): Same.
11024 (walk_attr_value): Same.
11025 (write_attr_get): Same.
11026 (eliminate_known_true): Same.
11027 (write_insn_cases): Same.
11028 (write_attr_case): Same.
11029 (write_attr_valueq): Same.
11030 (write_attr_value): Same.
11031 (write_dummy_eligible_delay): Same.
11032 (next_comma_elt): Same.
11033 (find_attr): Same.
11034 (make_internal_attr): Same.
11035 (copy_rtx_unchanging): Same.
11036 (gen_insn_reserv): Same.
11037 (check_tune_attr): Same.
11038 (make_automaton_attrs): Same.
11039 (handle_arg): Same.
11040 * genextract.c (gen_insn): Same.
11041 (VEC_char_to_string): Same.
11042 * genmatch.c (print_operand): Same.
11043 (lower): Same.
11044 (parser::parse_operation): Same.
11045 (parser::parse_capture): Same.
11046 (parser::parse_c_expr): Same.
11047 (parser::parse_simplify): Same.
11048 (main): Same.
11049 * genoutput.c (output_operand_data): Same.
11050 (output_get_insn_name): Same.
11051 (compare_operands): Same.
11052 (place_operands): Same.
11053 (process_template): Same.
11054 (validate_insn_alternatives): Same.
11055 (validate_insn_operands): Same.
11056 (gen_expand): Same.
11057 (note_constraint): Same.
11058 * genpreds.c (write_one_predicate_function): Same.
11059 (add_constraint): Same.
11060 (process_define_register_constraint): Same.
11061 (write_lookup_constraint_1): Same.
11062 (write_lookup_constraint_array): Same.
11063 (write_insn_constraint_len): Same.
11064 (write_reg_class_for_constraint_1): Same.
11065 (write_constraint_satisfied_p_array): Same.
11066 * genrecog.c (optimize_subroutine_group): Same.
11067 * gensupport.c (process_define_predicate): Same.
11068 (queue_pattern): Same.
11069 (remove_from_queue): Same.
11070 (process_rtx): Same.
11071 (is_predicable): Same.
11072 (change_subst_attribute): Same.
11073 (subst_pattern_match): Same.
11074 (alter_constraints): Same.
11075 (alter_attrs_for_insn): Same.
11076 (shift_output_template): Same.
11077 (alter_output_for_subst_insn): Same.
11078 (process_one_cond_exec): Same.
11079 (subst_dup): Same.
11080 (process_define_cond_exec): Same.
11081 (mnemonic_htab_callback): Same.
11082 (gen_mnemonic_attr): Same.
11083 (read_md_rtx): Same.
11084 * ggc-page.c: Same.
11085 * gimple-loop-interchange.cc (dump_reduction): Same.
11086 (dump_induction): Same.
11087 (loop_cand::~loop_cand): Same.
11088 (free_data_refs_with_aux): Same.
11089 (tree_loop_interchange::interchange_loops): Same.
11090 (tree_loop_interchange::map_inductions_to_loop): Same.
11091 (tree_loop_interchange::move_code_to_inner_loop): Same.
11092 (compute_access_stride): Same.
11093 (compute_access_strides): Same.
11094 (proper_loop_form_for_interchange): Same.
11095 (tree_loop_interchange_compute_ddrs): Same.
11096 (prune_datarefs_not_in_loop): Same.
11097 (prepare_data_references): Same.
11098 (pass_linterchange::execute): Same.
11099 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11100 (unroll_jam_possible_p): Same.
11101 (fuse_loops): Same.
11102 (adjust_unroll_factor): Same.
11103 (tree_loop_unroll_and_jam): Same.
11104 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11105 (loop_versioning::expensive_stmt_p): Same.
11106 (loop_versioning::version_for_unity): Same.
11107 (loop_versioning::dump_inner_likelihood): Same.
11108 (loop_versioning::find_per_loop_multiplication): Same.
11109 (loop_versioning::analyze_term_using_scevs): Same.
11110 (loop_versioning::record_address_fragment): Same.
11111 (loop_versioning::analyze_expr): Same.
11112 (loop_versioning::analyze_blocks): Same.
11113 (loop_versioning::prune_conditions): Same.
11114 (loop_versioning::merge_loop_info): Same.
11115 (loop_versioning::add_loop_to_queue): Same.
11116 (loop_versioning::decide_whether_loop_is_versionable): Same.
11117 (loop_versioning::make_versioning_decisions): Same.
11118 (loop_versioning::implement_versioning_decisions): Same.
11119 * gimple-ssa-evrp-analyze.c
11120 (evrp_range_analyzer::record_ranges_from_phis): Same.
11121 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11122 (count_multiple_uses): Same.
11123 (split_group): Same.
11124 (imm_store_chain_info::output_merged_store): Same.
11125 (pass_store_merging::process_store): Same.
11126 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11127 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11128 (is_max): Same.
11129 (alloca_call_type): Same.
11130 (pass_walloca::execute): Same.
11131 * gimple-streamer-in.c (input_phi): Same.
11132 (input_gimple_stmt): Same.
11133 * gimple-streamer.h: Same.
11134 * godump.c (go_force_record_alignment): Same.
11135 (go_format_type): Same.
11136 (go_output_type): Same.
11137 (go_output_fndecl): Same.
11138 (go_output_typedef): Same.
11139 (keyword_hash_init): Same.
11140 (find_dummy_types): Same.
11141 * graph.c (draw_cfg_nodes_no_loops): Same.
11142 (draw_cfg_nodes_for_loop): Same.
11143 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11144 * hsa-brig.c: Same.
11145 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11146 * hsa-dump.c (dump_hsa_cfun): Same.
11147 * hsa-gen.c (gen_function_def_parameters): Same.
11148 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11149 * input.c (dump_line_table_statistics): Same.
11150 (test_lexer): Same.
11151 * input.h: Same.
11152 * internal-fn.c (get_multi_vector_move): Same.
11153 (expand_load_lanes_optab_fn): Same.
11154 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11155 (expand_GOMP_SIMT_EXIT): Same.
11156 (expand_GOMP_SIMT_LAST_LANE): Same.
11157 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11158 (expand_GOMP_SIMT_VOTE_ANY): Same.
11159 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11160 (expand_GOMP_SIMT_XCHG_IDX): Same.
11161 (expand_addsub_overflow): Same.
11162 (expand_neg_overflow): Same.
11163 (expand_mul_overflow): Same.
11164 (expand_call_mem_ref): Same.
11165 (expand_mask_load_optab_fn): Same.
11166 (expand_scatter_store_optab_fn): Same.
11167 (expand_gather_load_optab_fn): Same.
11168 * ipa-cp.c (ipa_get_parm_lattices): Same.
11169 (print_all_lattices): Same.
11170 (ignore_edge_p): Same.
11171 (build_toporder_info): Same.
11172 (free_toporder_info): Same.
11173 (push_node_to_stack): Same.
11174 (ipcp_lattice<valtype>::set_contains_variable): Same.
11175 (set_agg_lats_to_bottom): Same.
11176 (ipcp_bits_lattice::meet_with): Same.
11177 (set_single_call_flag): Same.
11178 (initialize_node_lattices): Same.
11179 (ipa_get_jf_ancestor_result): Same.
11180 (ipcp_verify_propagated_values): Same.
11181 (propagate_scalar_across_jump_function): Same.
11182 (propagate_context_across_jump_function): Same.
11183 (propagate_bits_across_jump_function): Same.
11184 (ipa_vr_operation_and_type_effects): Same.
11185 (propagate_vr_across_jump_function): Same.
11186 (set_check_aggs_by_ref): Same.
11187 (set_chain_of_aglats_contains_variable): Same.
11188 (merge_aggregate_lattices): Same.
11189 (agg_pass_through_permissible_p): Same.
11190 (propagate_aggs_across_jump_function): Same.
11191 (call_passes_through_thunk_p): Same.
11192 (propagate_constants_across_call): Same.
11193 (devirtualization_time_bonus): Same.
11194 (good_cloning_opportunity_p): Same.
11195 (context_independent_aggregate_values): Same.
11196 (gather_context_independent_values): Same.
11197 (perform_estimation_of_a_value): Same.
11198 (estimate_local_effects): Same.
11199 (value_topo_info<valtype>::add_val): Same.
11200 (add_all_node_vals_to_toposort): Same.
11201 (value_topo_info<valtype>::propagate_effects): Same.
11202 (ipcp_propagate_stage): Same.
11203 (ipcp_discover_new_direct_edges): Same.
11204 (same_node_or_its_all_contexts_clone_p): Same.
11205 (cgraph_edge_brings_value_p): Same.
11206 (gather_edges_for_value): Same.
11207 (create_specialized_node): Same.
11208 (find_more_scalar_values_for_callers_subset): Same.
11209 (find_more_contexts_for_caller_subset): Same.
11210 (copy_plats_to_inter): Same.
11211 (intersect_aggregates_with_edge): Same.
11212 (find_aggregate_values_for_callers_subset): Same.
11213 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11214 (decide_about_value): Same.
11215 (decide_whether_version_node): Same.
11216 (spread_undeadness): Same.
11217 (identify_dead_nodes): Same.
11218 (ipcp_store_vr_results): Same.
11219 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11220 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11221 (redirect_to_unreachable): Same.
11222 (edge_set_predicate): Same.
11223 (evaluate_conditions_for_known_args): Same.
11224 (evaluate_properties_for_edge): Same.
11225 (ipa_fn_summary_t::duplicate): Same.
11226 (ipa_call_summary_t::duplicate): Same.
11227 (dump_ipa_call_summary): Same.
11228 (ipa_dump_fn_summary): Same.
11229 (eliminated_by_inlining_prob): Same.
11230 (set_cond_stmt_execution_predicate): Same.
11231 (set_switch_stmt_execution_predicate): Same.
11232 (compute_bb_predicates): Same.
11233 (will_be_nonconstant_expr_predicate): Same.
11234 (phi_result_unknown_predicate): Same.
11235 (analyze_function_body): Same.
11236 (compute_fn_summary): Same.
11237 (estimate_edge_devirt_benefit): Same.
11238 (estimate_edge_size_and_time): Same.
11239 (estimate_calls_size_and_time): Same.
11240 (estimate_node_size_and_time): Same.
11241 (remap_edge_change_prob): Same.
11242 (remap_edge_summaries): Same.
11243 (ipa_merge_fn_summary_after_inlining): Same.
11244 (ipa_fn_summary_generate): Same.
11245 (inline_read_section): Same.
11246 (ipa_fn_summary_read): Same.
11247 (ipa_fn_summary_write): Same.
11248 * ipa-fnsummary.h: Same.
11249 * ipa-hsa.c (ipa_hsa_read_section): Same.
11250 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11251 * ipa-icf.c (sem_function::param_used_p): Same.
11252 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11253 * ipa-inline.c (edge_badness): Same.
11254 (inline_small_functions): Same.
11255 * ipa-polymorphic-call.c
11256 (ipa_polymorphic_call_context::stream_out): Same.
11257 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11258 (predicate::remap_after_inlining): Same.
11259 (predicate::stream_out): Same.
11260 * ipa-predicate.h: Same.
11261 * ipa-profile.c (ipa_profile_read_summary): Same.
11262 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11263 (count_formal_params): Same.
11264 (ipa_dump_param): Same.
11265 (ipa_alloc_node_params): Same.
11266 (ipa_print_node_jump_functions_for_edge): Same.
11267 (ipa_print_node_jump_functions): Same.
11268 (ipa_load_from_parm_agg): Same.
11269 (get_ancestor_addr_info): Same.
11270 (ipa_compute_jump_functions_for_edge): Same.
11271 (ipa_analyze_virtual_call_uses): Same.
11272 (ipa_analyze_stmt_uses): Same.
11273 (ipa_analyze_params_uses_in_bb): Same.
11274 (update_jump_functions_after_inlining): Same.
11275 (try_decrement_rdesc_refcount): Same.
11276 (ipa_impossible_devirt_target): Same.
11277 (update_indirect_edges_after_inlining): Same.
11278 (combine_controlled_uses_counters): Same.
11279 (ipa_edge_args_sum_t::duplicate): Same.
11280 (ipa_write_jump_function): Same.
11281 (ipa_write_indirect_edge_info): Same.
11282 (ipa_write_node_info): Same.
11283 (ipa_read_edge_info): Same.
11284 (ipa_prop_read_section): Same.
11285 (read_replacements_section): Same.
11286 * ipa-prop.h (ipa_get_param_count): Same.
11287 (ipa_get_param): Same.
11288 (ipa_get_type): Same.
11289 (ipa_get_param_move_cost): Same.
11290 (ipa_set_param_used): Same.
11291 (ipa_get_controlled_uses): Same.
11292 (ipa_set_controlled_uses): Same.
11293 (ipa_get_cs_argument_count): Same.
11294 * ipa-pure-const.c (analyze_function): Same.
11295 (pure_const_read_summary): Same.
11296 * ipa-ref.h: Same.
11297 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11298 * ipa-split.c (test_nonssa_use): Same.
11299 (dump_split_point): Same.
11300 (dominated_by_forbidden): Same.
11301 (split_part_set_ssa_name_p): Same.
11302 (find_split_points): Same.
11303 * ira-build.c (finish_loop_tree_nodes): Same.
11304 (low_pressure_loop_node_p): Same.
11305 * ira-color.c (ira_reuse_stack_slot): Same.
11306 * ira-int.h: Same.
11307 * ira.c (setup_reg_equiv): Same.
11308 (print_insn_chain): Same.
11309 (ira): Same.
11310 * loop-doloop.c (doloop_condition_get): Same.
11311 (add_test): Same.
11312 (record_reg_sets): Same.
11313 (doloop_optimize): Same.
11314 * loop-init.c (loop_optimizer_init): Same.
11315 (fix_loop_structure): Same.
11316 * loop-invariant.c (merge_identical_invariants): Same.
11317 (compute_always_reached): Same.
11318 (find_exits): Same.
11319 (may_assign_reg_p): Same.
11320 (find_invariants_bb): Same.
11321 (find_invariants_body): Same.
11322 (replace_uses): Same.
11323 (can_move_invariant_reg): Same.
11324 (free_inv_motion_data): Same.
11325 (move_single_loop_invariants): Same.
11326 (change_pressure): Same.
11327 (mark_ref_regs): Same.
11328 (calculate_loop_reg_pressure): Same.
11329 * loop-iv.c (biv_entry_hasher::equal): Same.
11330 (iv_extend_to_rtx_code): Same.
11331 (check_iv_ref_table_size): Same.
11332 (clear_iv_info): Same.
11333 (latch_dominating_def): Same.
11334 (iv_get_reaching_def): Same.
11335 (iv_constant): Same.
11336 (iv_subreg): Same.
11337 (iv_extend): Same.
11338 (iv_neg): Same.
11339 (iv_add): Same.
11340 (iv_mult): Same.
11341 (get_biv_step): Same.
11342 (record_iv): Same.
11343 (analyzed_for_bivness_p): Same.
11344 (record_biv): Same.
11345 (iv_analyze_biv): Same.
11346 (iv_analyze_expr): Same.
11347 (iv_analyze_def): Same.
11348 (iv_analyze_op): Same.
11349 (iv_analyze): Same.
11350 (iv_analyze_result): Same.
11351 (biv_p): Same.
11352 (eliminate_implied_conditions): Same.
11353 (simplify_using_initial_values): Same.
11354 (shorten_into_mode): Same.
11355 (canonicalize_iv_subregs): Same.
11356 (determine_max_iter): Same.
11357 (check_simple_exit): Same.
11358 (find_simple_exit): Same.
11359 (get_simple_loop_desc): Same.
11360 * loop-unroll.c (report_unroll): Same.
11361 (decide_unrolling): Same.
11362 (unroll_loops): Same.
11363 (loop_exit_at_end_p): Same.
11364 (decide_unroll_constant_iterations): Same.
11365 (unroll_loop_constant_iterations): Same.
11366 (compare_and_jump_seq): Same.
11367 (unroll_loop_runtime_iterations): Same.
11368 (decide_unroll_stupid): Same.
11369 (unroll_loop_stupid): Same.
11370 (referenced_in_one_insn_in_loop_p): Same.
11371 (reset_debug_uses_in_loop): Same.
11372 (analyze_iv_to_split_insn): Same.
11373 * lra-eliminations.c (lra_debug_elim_table): Same.
11374 (setup_can_eliminate): Same.
11375 (form_sum): Same.
11376 (lra_get_elimination_hard_regno): Same.
11377 (lra_eliminate_regs_1): Same.
11378 (eliminate_regs_in_insn): Same.
11379 (update_reg_eliminate): Same.
11380 (init_elimination): Same.
11381 (lra_eliminate): Same.
11382 * lra-int.h: Same.
11383 * lra-lives.c (initiate_live_solver): Same.
11384 * lra-remat.c (create_remat_bb_data): Same.
11385 * lra-spills.c (lra_spill): Same.
11386 * lra.c (lra_set_insn_recog_data): Same.
11387 (lra_set_used_insn_alternative_by_uid): Same.
11388 (init_reg_info): Same.
11389 (expand_reg_info): Same.
11390 * lto-cgraph.c (output_symtab): Same.
11391 (read_identifier): Same.
11392 (get_alias_symbol): Same.
11393 (input_node): Same.
11394 (input_varpool_node): Same.
11395 (input_ref): Same.
11396 (input_edge): Same.
11397 (input_cgraph_1): Same.
11398 (input_refs): Same.
11399 (input_symtab): Same.
11400 (input_offload_tables): Same.
11401 (output_cgraph_opt_summary): Same.
11402 (input_edge_opt_summary): Same.
11403 (input_cgraph_opt_section): Same.
11404 * lto-section-in.c (lto_free_raw_section_data): Same.
11405 (lto_create_simple_input_block): Same.
11406 (lto_free_function_in_decl_state_for_node): Same.
11407 * lto-streamer-in.c (lto_tag_check_set): Same.
11408 (lto_location_cache::revert_location_cache): Same.
11409 (lto_location_cache::input_location): Same.
11410 (lto_input_location): Same.
11411 (stream_input_location_now): Same.
11412 (lto_input_tree_ref): Same.
11413 (lto_input_eh_catch_list): Same.
11414 (input_eh_region): Same.
11415 (lto_init_eh): Same.
11416 (make_new_block): Same.
11417 (input_cfg): Same.
11418 (fixup_call_stmt_edges): Same.
11419 (input_struct_function_base): Same.
11420 (input_function): Same.
11421 (lto_read_body_or_constructor): Same.
11422 (lto_read_tree_1): Same.
11423 (lto_read_tree): Same.
11424 (lto_input_scc): Same.
11425 (lto_input_tree_1): Same.
11426 (lto_input_toplevel_asms): Same.
11427 (lto_input_mode_table): Same.
11428 (lto_reader_init): Same.
11429 (lto_data_in_create): Same.
11430 * lto-streamer-out.c (output_cfg): Same.
11431 * lto-streamer.h: Same.
11432 * modulo-sched.c (duplicate_insns_of_cycles): Same.
11433 (generate_prolog_epilog): Same.
11434 (mark_loop_unsched): Same.
11435 (dump_insn_location): Same.
11436 (loop_canon_p): Same.
11437 (sms_schedule): Same.
11438 * omp-expand.c (expand_omp_for_ordered_loops): Same.
11439 (expand_omp_for_generic): Same.
11440 (expand_omp_for_static_nochunk): Same.
11441 (expand_omp_for_static_chunk): Same.
11442 (expand_omp_simd): Same.
11443 (expand_omp_taskloop_for_inner): Same.
11444 (expand_oacc_for): Same.
11445 (expand_omp_atomic_pipeline): Same.
11446 (mark_loops_in_oacc_kernels_region): Same.
11447 * omp-offload.c (oacc_xform_loop): Same.
11448 * omp-simd-clone.c (simd_clone_adjust): Same.
11449 * optabs-query.c (get_traditional_extraction_insn): Same.
11450 * optabs.c (expand_vector_broadcast): Same.
11451 (expand_binop_directly): Same.
11452 (expand_twoval_unop): Same.
11453 (expand_twoval_binop): Same.
11454 (expand_unop_direct): Same.
11455 (emit_indirect_jump): Same.
11456 (emit_conditional_move): Same.
11457 (emit_conditional_neg_or_complement): Same.
11458 (emit_conditional_add): Same.
11459 (vector_compare_rtx): Same.
11460 (expand_vec_perm_1): Same.
11461 (expand_vec_perm_const): Same.
11462 (expand_vec_cond_expr): Same.
11463 (expand_vec_series_expr): Same.
11464 (maybe_emit_atomic_exchange): Same.
11465 (maybe_emit_sync_lock_test_and_set): Same.
11466 (expand_atomic_compare_and_swap): Same.
11467 (expand_atomic_load): Same.
11468 (expand_atomic_store): Same.
11469 (maybe_emit_op): Same.
11470 (valid_multiword_target_p): Same.
11471 (create_integer_operand): Same.
11472 (maybe_legitimize_operand_same_code): Same.
11473 (maybe_legitimize_operand): Same.
11474 (create_convert_operand_from_type): Same.
11475 (can_reuse_operands_p): Same.
11476 (maybe_legitimize_operands): Same.
11477 (maybe_gen_insn): Same.
11478 (maybe_expand_insn): Same.
11479 (maybe_expand_jump_insn): Same.
11480 (expand_insn): Same.
11481 * optabs.h (create_expand_operand): Same.
11482 (create_fixed_operand): Same.
11483 (create_output_operand): Same.
11484 (create_input_operand): Same.
11485 (create_convert_operand_to): Same.
11486 (create_convert_operand_from): Same.
11487 * optinfo.h: Same.
11488 * poly-int.h: Same.
11489 * predict.c (optimize_insn_for_speed_p): Same.
11490 (optimize_loop_for_size_p): Same.
11491 (optimize_loop_for_speed_p): Same.
11492 (optimize_loop_nest_for_speed_p): Same.
11493 (get_base_value): Same.
11494 (predicted_by_loop_heuristics_p): Same.
11495 (predict_extra_loop_exits): Same.
11496 (predict_loops): Same.
11497 (predict_paths_for_bb): Same.
11498 (predict_paths_leading_to): Same.
11499 (propagate_freq): Same.
11500 (pass_profile::execute): Same.
11501 * predict.h: Same.
11502 * profile-count.c (profile_count::differs_from_p): Same.
11503 (profile_probability::differs_lot_from_p): Same.
11504 * profile-count.h: Same.
11505 * profile.c (branch_prob): Same.
11506 * regrename.c (free_chain_data): Same.
11507 (mark_conflict): Same.
11508 (create_new_chain): Same.
11509 (merge_overlapping_regs): Same.
11510 (init_rename_info): Same.
11511 (merge_chains): Same.
11512 (regrename_analyze): Same.
11513 (regrename_do_replace): Same.
11514 (scan_rtx_reg): Same.
11515 (record_out_operands): Same.
11516 (build_def_use): Same.
11517 * regrename.h: Same.
11518 * reload.h: Same.
11519 * reload1.c (init_reload): Same.
11520 (maybe_fix_stack_asms): Same.
11521 (copy_reloads): Same.
11522 (count_pseudo): Same.
11523 (count_spilled_pseudo): Same.
11524 (find_reg): Same.
11525 (find_reload_regs): Same.
11526 (select_reload_regs): Same.
11527 (spill_hard_reg): Same.
11528 (fixup_eh_region_note): Same.
11529 (set_reload_reg): Same.
11530 (allocate_reload_reg): Same.
11531 (compute_reload_subreg_offset): Same.
11532 (reload_adjust_reg_for_icode): Same.
11533 (emit_input_reload_insns): Same.
11534 (emit_output_reload_insns): Same.
11535 (do_input_reload): Same.
11536 (inherit_piecemeal_p): Same.
11537 * rtl.h: Same.
11538 * sanopt.c (maybe_get_dominating_check): Same.
11539 (maybe_optimize_ubsan_ptr_ifn): Same.
11540 (can_remove_asan_check): Same.
11541 (maybe_optimize_asan_check_ifn): Same.
11542 (sanopt_optimize_walker): Same.
11543 * sched-deps.c (add_dependence_list): Same.
11544 (chain_to_prev_insn): Same.
11545 (add_insn_mem_dependence): Same.
11546 (create_insn_reg_set): Same.
11547 (maybe_extend_reg_info_p): Same.
11548 (sched_analyze_reg): Same.
11549 (sched_analyze_1): Same.
11550 (get_implicit_reg_pending_clobbers): Same.
11551 (chain_to_prev_insn_p): Same.
11552 (deps_analyze_insn): Same.
11553 (deps_start_bb): Same.
11554 (sched_free_deps): Same.
11555 (init_deps): Same.
11556 (init_deps_reg_last): Same.
11557 (free_deps): Same.
11558 * sched-ebb.c: Same.
11559 * sched-int.h: Same.
11560 * sched-rgn.c (add_branch_dependences): Same.
11561 (concat_insn_mem_list): Same.
11562 (deps_join): Same.
11563 (sched_rgn_compute_dependencies): Same.
11564 * sel-sched-ir.c (reset_target_context): Same.
11565 (copy_deps_context): Same.
11566 (init_id_from_df): Same.
11567 (has_dependence_p): Same.
11568 (change_loops_latches): Same.
11569 (bb_top_order_comparator): Same.
11570 (make_region_from_loop_preheader): Same.
11571 (sel_init_pipelining): Same.
11572 (get_loop_nest_for_rgn): Same.
11573 (make_regions_from_the_rest): Same.
11574 (sel_is_loop_preheader_p): Same.
11575 * sel-sched-ir.h (inner_loop_header_p): Same.
11576 (get_all_loop_exits): Same.
11577 * selftest.h: Same.
11578 * sese.c (sese_build_liveouts): Same.
11579 (sese_insert_phis_for_liveouts): Same.
11580 * sese.h (defined_in_sese_p): Same.
11581 * sreal.c (sreal::stream_out): Same.
11582 * sreal.h: Same.
11583 * streamer-hooks.h: Same.
11584 * target-globals.c (save_target_globals): Same.
11585 * target-globals.h: Same.
11586 * target.def: Same.
11587 * target.h: Same.
11588 * targhooks.c (default_has_ifunc_p): Same.
11589 (default_empty_mask_is_expensive): Same.
11590 (default_init_cost): Same.
11591 * targhooks.h: Same.
11592 * toplev.c: Same.
11593 * tree-affine.c (aff_combination_mult): Same.
11594 (aff_combination_expand): Same.
11595 (aff_combination_constant_multiple_p): Same.
11596 * tree-affine.h: Same.
11597 * tree-cfg.c (build_gimple_cfg): Same.
11598 (replace_loop_annotate_in_block): Same.
11599 (replace_uses_by): Same.
11600 (remove_bb): Same.
11601 (dump_cfg_stats): Same.
11602 (gimple_duplicate_sese_region): Same.
11603 (gimple_duplicate_sese_tail): Same.
11604 (move_block_to_fn): Same.
11605 (replace_block_vars_by_duplicates): Same.
11606 (move_sese_region_to_fn): Same.
11607 (print_loops_bb): Same.
11608 (print_loop): Same.
11609 (print_loops): Same.
11610 (debug): Same.
11611 (debug_loops): Same.
11612 * tree-cfg.h: Same.
11613 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
11614 (chrec_fold_multiply_poly_poly): Same.
11615 (chrec_evaluate): Same.
11616 (chrec_component_in_loop_num): Same.
11617 (reset_evolution_in_loop): Same.
11618 (is_multivariate_chrec): Same.
11619 (chrec_contains_symbols): Same.
11620 (nb_vars_in_chrec): Same.
11621 (chrec_convert_1): Same.
11622 (chrec_convert_aggressive): Same.
11623 * tree-chrec.h: Same.
11624 * tree-core.h: Same.
11625 * tree-data-ref.c (dump_data_dependence_relation): Same.
11626 (canonicalize_base_object_address): Same.
11627 (data_ref_compare_tree): Same.
11628 (prune_runtime_alias_test_list): Same.
11629 (get_segment_min_max): Same.
11630 (create_intersect_range_checks): Same.
11631 (conflict_fn_no_dependence): Same.
11632 (object_address_invariant_in_loop_p): Same.
11633 (analyze_ziv_subscript): Same.
11634 (analyze_siv_subscript_cst_affine): Same.
11635 (analyze_miv_subscript): Same.
11636 (analyze_overlapping_iterations): Same.
11637 (build_classic_dist_vector_1): Same.
11638 (add_other_self_distances): Same.
11639 (same_access_functions): Same.
11640 (build_classic_dir_vector): Same.
11641 (subscript_dependence_tester_1): Same.
11642 (subscript_dependence_tester): Same.
11643 (access_functions_are_affine_or_constant_p): Same.
11644 (get_references_in_stmt): Same.
11645 (loop_nest_has_data_refs): Same.
11646 (graphite_find_data_references_in_stmt): Same.
11647 (find_data_references_in_bb): Same.
11648 (get_base_for_alignment): Same.
11649 (find_loop_nest_1): Same.
11650 (find_loop_nest): Same.
11651 * tree-data-ref.h (dr_alignment): Same.
11652 (ddr_dependence_level): Same.
11653 * tree-if-conv.c (fold_build_cond_expr): Same.
11654 (add_to_predicate_list): Same.
11655 (add_to_dst_predicate_list): Same.
11656 (phi_convertible_by_degenerating_args): Same.
11657 (idx_within_array_bound): Same.
11658 (all_preds_critical_p): Same.
11659 (pred_blocks_visited_p): Same.
11660 (predicate_bbs): Same.
11661 (build_region): Same.
11662 (if_convertible_loop_p_1): Same.
11663 (is_cond_scalar_reduction): Same.
11664 (predicate_scalar_phi): Same.
11665 (remove_conditions_and_labels): Same.
11666 (combine_blocks): Same.
11667 (version_loop_for_if_conversion): Same.
11668 (versionable_outer_loop_p): Same.
11669 (ifcvt_local_dce): Same.
11670 (tree_if_conversion): Same.
11671 (pass_if_conversion::gate): Same.
11672 * tree-if-conv.h: Same.
11673 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
11674 * tree-loop-distribution.c (bb_top_order_cmp): Same.
11675 (free_rdg): Same.
11676 (stmt_has_scalar_dependences_outside_loop): Same.
11677 (copy_loop_before): Same.
11678 (create_bb_after_loop): Same.
11679 (const_with_all_bytes_same): Same.
11680 (generate_memset_builtin): Same.
11681 (generate_memcpy_builtin): Same.
11682 (destroy_loop): Same.
11683 (build_rdg_partition_for_vertex): Same.
11684 (compute_access_range): Same.
11685 (data_ref_segment_size): Same.
11686 (latch_dominated_by_data_ref): Same.
11687 (compute_alias_check_pairs): Same.
11688 (fuse_memset_builtins): Same.
11689 (finalize_partitions): Same.
11690 (find_seed_stmts_for_distribution): Same.
11691 (prepare_perfect_loop_nest): Same.
11692 * tree-parloops.c (lambda_transform_legal_p): Same.
11693 (loop_parallel_p): Same.
11694 (reduc_stmt_res): Same.
11695 (add_field_for_name): Same.
11696 (create_call_for_reduction_1): Same.
11697 (replace_uses_in_bb_by): Same.
11698 (transform_to_exit_first_loop_alt): Same.
11699 (try_transform_to_exit_first_loop_alt): Same.
11700 (transform_to_exit_first_loop): Same.
11701 (num_phis): Same.
11702 (gen_parallel_loop): Same.
11703 (gather_scalar_reductions): Same.
11704 (get_omp_data_i_param): Same.
11705 (try_create_reduction_list): Same.
11706 (oacc_entry_exit_single_gang): Same.
11707 (parallelize_loops): Same.
11708 * tree-pass.h: Same.
11709 * tree-predcom.c (determine_offset): Same.
11710 (last_always_executed_block): Same.
11711 (split_data_refs_to_components): Same.
11712 (suitable_component_p): Same.
11713 (valid_initializer_p): Same.
11714 (find_looparound_phi): Same.
11715 (insert_looparound_copy): Same.
11716 (add_looparound_copies): Same.
11717 (determine_roots_comp): Same.
11718 (predcom_tmp_var): Same.
11719 (initialize_root_vars): Same.
11720 (initialize_root_vars_store_elim_1): Same.
11721 (initialize_root_vars_store_elim_2): Same.
11722 (finalize_eliminated_stores): Same.
11723 (initialize_root_vars_lm): Same.
11724 (remove_stmt): Same.
11725 (determine_unroll_factor): Same.
11726 (execute_pred_commoning_cbck): Same.
11727 (base_names_in_chain_on): Same.
11728 (combine_chains): Same.
11729 (pcom_stmt_dominates_stmt_p): Same.
11730 (try_combine_chains): Same.
11731 (prepare_initializers_chain_store_elim): Same.
11732 (prepare_initializers_chain): Same.
11733 (prepare_initializers): Same.
11734 (prepare_finalizers_chain): Same.
11735 (prepare_finalizers): Same.
11736 (insert_init_seqs): Same.
11737 * tree-scalar-evolution.c (loop_phi_node_p): Same.
11738 (compute_overall_effect_of_inner_loop): Same.
11739 (add_to_evolution_1): Same.
11740 (add_to_evolution): Same.
11741 (follow_ssa_edge_binary): Same.
11742 (follow_ssa_edge_expr): Same.
11743 (backedge_phi_arg_p): Same.
11744 (follow_ssa_edge_in_condition_phi_branch): Same.
11745 (follow_ssa_edge_in_condition_phi): Same.
11746 (follow_ssa_edge_inner_loop_phi): Same.
11747 (follow_ssa_edge): Same.
11748 (analyze_evolution_in_loop): Same.
11749 (analyze_initial_condition): Same.
11750 (interpret_loop_phi): Same.
11751 (interpret_condition_phi): Same.
11752 (interpret_rhs_expr): Same.
11753 (interpret_expr): Same.
11754 (interpret_gimple_assign): Same.
11755 (analyze_scalar_evolution_1): Same.
11756 (analyze_scalar_evolution): Same.
11757 (analyze_scalar_evolution_for_address_of): Same.
11758 (get_instantiated_value_entry): Same.
11759 (loop_closed_phi_def): Same.
11760 (instantiate_scev_name): Same.
11761 (instantiate_scev_poly): Same.
11762 (instantiate_scev_binary): Same.
11763 (instantiate_scev_convert): Same.
11764 (instantiate_scev_not): Same.
11765 (instantiate_scev_r): Same.
11766 (instantiate_scev): Same.
11767 (resolve_mixers): Same.
11768 (initialize_scalar_evolutions_analyzer): Same.
11769 (scev_reset_htab): Same.
11770 (scev_reset): Same.
11771 (derive_simple_iv_with_niters): Same.
11772 (simple_iv_with_niters): Same.
11773 (expression_expensive_p): Same.
11774 (final_value_replacement_loop): Same.
11775 * tree-scalar-evolution.h (block_before_loop): Same.
11776 * tree-ssa-address.h: Same.
11777 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
11778 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
11779 (record_edge_info): Same.
11780 * tree-ssa-live.c (var_map_base_fini): Same.
11781 (remove_unused_locals): Same.
11782 * tree-ssa-live.h: Same.
11783 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
11784 (pass_ch_vect::execute): Same.
11785 (pass_ch::process_loop_p): Same.
11786 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
11787 (movement_possibility): Same.
11788 (outermost_invariant_loop): Same.
11789 (stmt_cost): Same.
11790 (determine_max_movement): Same.
11791 (invariantness_dom_walker::before_dom_children): Same.
11792 (move_computations): Same.
11793 (may_move_till): Same.
11794 (force_move_till_op): Same.
11795 (force_move_till): Same.
11796 (memref_free): Same.
11797 (record_mem_ref_loc): Same.
11798 (set_ref_stored_in_loop): Same.
11799 (mark_ref_stored): Same.
11800 (sort_bbs_in_loop_postorder_cmp): Same.
11801 (sort_locs_in_loop_postorder_cmp): Same.
11802 (analyze_memory_references): Same.
11803 (mem_refs_may_alias_p): Same.
11804 (find_ref_loc_in_loop_cmp): Same.
11805 (rewrite_mem_ref_loc::operator): Same.
11806 (first_mem_ref_loc_1::operator): Same.
11807 (sm_set_flag_if_changed::operator): Same.
11808 (execute_sm_if_changed_flag_set): Same.
11809 (execute_sm): Same.
11810 (hoist_memory_references): Same.
11811 (ref_always_accessed::operator): Same.
11812 (refs_independent_p): Same.
11813 (record_dep_loop): Same.
11814 (ref_indep_loop_p_1): Same.
11815 (ref_indep_loop_p): Same.
11816 (can_sm_ref_p): Same.
11817 (find_refs_for_sm): Same.
11818 (loop_suitable_for_sm): Same.
11819 (store_motion_loop): Same.
11820 (store_motion): Same.
11821 (fill_always_executed_in): Same.
11822 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
11823 (estimated_unrolled_size): Same.
11824 (loop_edge_to_cancel): Same.
11825 (remove_exits_and_undefined_stmts): Same.
11826 (remove_redundant_iv_tests): Same.
11827 (unloop_loops): Same.
11828 (estimated_peeled_sequence_size): Same.
11829 (try_peel_loop): Same.
11830 (canonicalize_loop_induction_variables): Same.
11831 (canonicalize_induction_variables): Same.
11832 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
11833 (name_info): Same.
11834 (stmt_after_inc_pos): Same.
11835 (contains_abnormal_ssa_name_p): Same.
11836 (niter_for_exit): Same.
11837 (find_bivs): Same.
11838 (mark_bivs): Same.
11839 (find_givs_in_bb): Same.
11840 (find_induction_variables): Same.
11841 (find_interesting_uses_cond): Same.
11842 (outermost_invariant_loop_for_expr): Same.
11843 (idx_find_step): Same.
11844 (add_candidate_1): Same.
11845 (add_iv_candidate_derived_from_uses): Same.
11846 (alloc_use_cost_map): Same.
11847 (prepare_decl_rtl): Same.
11848 (generic_predict_doloop_p): Same.
11849 (computation_cost): Same.
11850 (determine_common_wider_type): Same.
11851 (get_computation_aff_1): Same.
11852 (get_use_type): Same.
11853 (determine_group_iv_cost_address): Same.
11854 (iv_period): Same.
11855 (difference_cannot_overflow_p): Same.
11856 (may_eliminate_iv): Same.
11857 (determine_set_costs): Same.
11858 (cheaper_cost_pair): Same.
11859 (compare_cost_pair): Same.
11860 (iv_ca_cand_for_group): Same.
11861 (iv_ca_recount_cost): Same.
11862 (iv_ca_set_remove_invs): Same.
11863 (iv_ca_set_no_cp): Same.
11864 (iv_ca_set_add_invs): Same.
11865 (iv_ca_set_cp): Same.
11866 (iv_ca_add_group): Same.
11867 (iv_ca_cost): Same.
11868 (iv_ca_compare_deps): Same.
11869 (iv_ca_delta_reverse): Same.
11870 (iv_ca_delta_commit): Same.
11871 (iv_ca_cand_used_p): Same.
11872 (iv_ca_delta_free): Same.
11873 (iv_ca_new): Same.
11874 (iv_ca_free): Same.
11875 (iv_ca_dump): Same.
11876 (iv_ca_extend): Same.
11877 (iv_ca_narrow): Same.
11878 (iv_ca_prune): Same.
11879 (cheaper_cost_with_cand): Same.
11880 (iv_ca_replace): Same.
11881 (try_add_cand_for): Same.
11882 (get_initial_solution): Same.
11883 (try_improve_iv_set): Same.
11884 (find_optimal_iv_set_1): Same.
11885 (create_new_iv): Same.
11886 (rewrite_use_compare): Same.
11887 (remove_unused_ivs): Same.
11888 (determine_scaling_factor): Same.
11889 * tree-ssa-loop-ivopts.h: Same.
11890 * tree-ssa-loop-manip.c (create_iv): Same.
11891 (compute_live_loop_exits): Same.
11892 (add_exit_phi): Same.
11893 (add_exit_phis): Same.
11894 (find_uses_to_rename_use): Same.
11895 (find_uses_to_rename_def): Same.
11896 (find_uses_to_rename_in_loop): Same.
11897 (rewrite_into_loop_closed_ssa): Same.
11898 (check_loop_closed_ssa_bb): Same.
11899 (split_loop_exit_edge): Same.
11900 (ip_end_pos): Same.
11901 (ip_normal_pos): Same.
11902 (copy_phi_node_args): Same.
11903 (gimple_duplicate_loop_to_header_edge): Same.
11904 (can_unroll_loop_p): Same.
11905 (determine_exit_conditions): Same.
11906 (scale_dominated_blocks_in_loop): Same.
11907 (niter_for_unrolled_loop): Same.
11908 (tree_transform_and_unroll_loop): Same.
11909 (rewrite_all_phi_nodes_with_iv): Same.
11910 * tree-ssa-loop-manip.h: Same.
11911 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
11912 (number_of_iterations_ne): Same.
11913 (assert_no_overflow_lt): Same.
11914 (assert_loop_rolls_lt): Same.
11915 (number_of_iterations_lt): Same.
11916 (adjust_cond_for_loop_until_wrap): Same.
11917 (tree_simplify_using_condition): Same.
11918 (simplify_using_initial_conditions): Same.
11919 (simplify_using_outer_evolutions): Same.
11920 (loop_only_exit_p): Same.
11921 (ssa_defined_by_minus_one_stmt_p): Same.
11922 (number_of_iterations_popcount): Same.
11923 (number_of_iterations_exit): Same.
11924 (find_loop_niter): Same.
11925 (finite_loop_p): Same.
11926 (chain_of_csts_start): Same.
11927 (get_val_for): Same.
11928 (loop_niter_by_eval): Same.
11929 (derive_constant_upper_bound_ops): Same.
11930 (do_warn_aggressive_loop_optimizations): Same.
11931 (record_estimate): Same.
11932 (get_cst_init_from_scev): Same.
11933 (record_nonwrapping_iv): Same.
11934 (idx_infer_loop_bounds): Same.
11935 (infer_loop_bounds_from_ref): Same.
11936 (infer_loop_bounds_from_array): Same.
11937 (infer_loop_bounds_from_pointer_arith): Same.
11938 (infer_loop_bounds_from_signedness): Same.
11939 (bound_index): Same.
11940 (discover_iteration_bound_by_body_walk): Same.
11941 (maybe_lower_iteration_bound): Same.
11942 (estimate_numbers_of_iterations): Same.
11943 (estimated_loop_iterations): Same.
11944 (estimated_loop_iterations_int): Same.
11945 (max_loop_iterations): Same.
11946 (max_loop_iterations_int): Same.
11947 (likely_max_loop_iterations): Same.
11948 (likely_max_loop_iterations_int): Same.
11949 (estimated_stmt_executions_int): Same.
11950 (max_stmt_executions): Same.
11951 (likely_max_stmt_executions): Same.
11952 (estimated_stmt_executions): Same.
11953 (stmt_dominates_stmt_p): Same.
11954 (nowrap_type_p): Same.
11955 (loop_exits_before_overflow): Same.
11956 (scev_var_range_cant_overflow): Same.
11957 (scev_probably_wraps_p): Same.
11958 (free_numbers_of_iterations_estimates): Same.
11959 * tree-ssa-loop-niter.h: Same.
11960 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
11961 (idx_analyze_ref): Same.
11962 (analyze_ref): Same.
11963 (gather_memory_references_ref): Same.
11964 (mark_nontemporal_store): Same.
11965 (emit_mfence_after_loop): Same.
11966 (may_use_storent_in_loop_p): Same.
11967 (mark_nontemporal_stores): Same.
11968 (should_unroll_loop_p): Same.
11969 (volume_of_dist_vector): Same.
11970 (add_subscript_strides): Same.
11971 (self_reuse_distance): Same.
11972 (insn_to_prefetch_ratio_too_small_p): Same.
11973 * tree-ssa-loop-split.c (split_at_bb_p): Same.
11974 (patch_loop_exit): Same.
11975 (find_or_create_guard_phi): Same.
11976 (easy_exit_values): Same.
11977 (connect_loop_phis): Same.
11978 (connect_loops): Same.
11979 (compute_new_first_bound): Same.
11980 (split_loop): Same.
11981 (tree_ssa_split_loops): Same.
11982 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
11983 (is_maybe_undefined): Same.
11984 (tree_may_unswitch_on): Same.
11985 (simplify_using_entry_checks): Same.
11986 (tree_unswitch_single_loop): Same.
11987 (tree_unswitch_loop): Same.
11988 (tree_unswitch_outer_loop): Same.
11989 (empty_bb_without_guard_p): Same.
11990 (used_outside_loop_p): Same.
11991 (get_vop_from_header): Same.
11992 (hoist_guard): Same.
11993 * tree-ssa-loop.c (gate_oacc_kernels): Same.
11994 (get_lsm_tmp_name): Same.
11995 * tree-ssa-loop.h: Same.
11996 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
11997 (build_and_add_sum): Same.
11998 (no_side_effect_bb): Same.
11999 (get_ops): Same.
12000 (linearize_expr): Same.
12001 (should_break_up_subtract): Same.
12002 (linearize_expr_tree): Same.
12003 * tree-ssa-scopedtables.c: Same.
12004 * tree-ssa-scopedtables.h: Same.
12005 * tree-ssa-structalias.c (condense_visit): Same.
12006 (label_visit): Same.
12007 (dump_pred_graph): Same.
12008 (perform_var_substitution): Same.
12009 (move_complex_constraints): Same.
12010 (remove_preds_and_fake_succs): Same.
12011 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12012 (determine_bb_domination_status): Same.
12013 (duplicate_thread_path): Same.
12014 (thread_through_all_blocks): Same.
12015 * tree-ssa-threadupdate.h: Same.
12016 * tree-streamer-in.c (streamer_read_string_cst): Same.
12017 (input_identifier): Same.
12018 (unpack_ts_type_common_value_fields): Same.
12019 (unpack_ts_block_value_fields): Same.
12020 (unpack_ts_translation_unit_decl_value_fields): Same.
12021 (unpack_ts_omp_clause_value_fields): Same.
12022 (streamer_read_tree_bitfields): Same.
12023 (streamer_alloc_tree): Same.
12024 (lto_input_ts_common_tree_pointers): Same.
12025 (lto_input_ts_vector_tree_pointers): Same.
12026 (lto_input_ts_poly_tree_pointers): Same.
12027 (lto_input_ts_complex_tree_pointers): Same.
12028 (lto_input_ts_decl_minimal_tree_pointers): Same.
12029 (lto_input_ts_decl_common_tree_pointers): Same.
12030 (lto_input_ts_decl_non_common_tree_pointers): Same.
12031 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12032 (lto_input_ts_field_decl_tree_pointers): Same.
12033 (lto_input_ts_function_decl_tree_pointers): Same.
12034 (lto_input_ts_type_common_tree_pointers): Same.
12035 (lto_input_ts_type_non_common_tree_pointers): Same.
12036 (lto_input_ts_list_tree_pointers): Same.
12037 (lto_input_ts_vec_tree_pointers): Same.
12038 (lto_input_ts_exp_tree_pointers): Same.
12039 (lto_input_ts_block_tree_pointers): Same.
12040 (lto_input_ts_binfo_tree_pointers): Same.
12041 (lto_input_ts_constructor_tree_pointers): Same.
12042 (lto_input_ts_omp_clause_tree_pointers): Same.
12043 (streamer_read_tree_body): Same.
12044 * tree-streamer.h: Same.
12045 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12046 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12047 (vect_analyze_possibly_independent_ddr): Same.
12048 (vect_analyze_data_ref_dependence): Same.
12049 (vect_compute_data_ref_alignment): Same.
12050 (vect_enhance_data_refs_alignment): Same.
12051 (vect_analyze_data_ref_access): Same.
12052 (vect_check_gather_scatter): Same.
12053 (vect_find_stmt_data_reference): Same.
12054 (vect_create_addr_base_for_vector_ref): Same.
12055 (vect_setup_realignment): Same.
12056 (vect_supportable_dr_alignment): Same.
12057 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12058 (adjust_phi_and_debug_stmts): Same.
12059 (vect_set_loop_mask): Same.
12060 (add_preheader_seq): Same.
12061 (vect_maybe_permute_loop_masks): Same.
12062 (vect_set_loop_masks_directly): Same.
12063 (vect_set_loop_condition_masked): Same.
12064 (vect_set_loop_condition_unmasked): Same.
12065 (slpeel_duplicate_current_defs_from_edges): Same.
12066 (slpeel_add_loop_guard): Same.
12067 (slpeel_can_duplicate_loop_p): Same.
12068 (create_lcssa_for_virtual_phi): Same.
12069 (iv_phi_p): Same.
12070 (vect_update_ivs_after_vectorizer): Same.
12071 (vect_gen_vector_loop_niters_mult_vf): Same.
12072 (slpeel_update_phi_nodes_for_loops): Same.
12073 (slpeel_update_phi_nodes_for_guard1): Same.
12074 (find_guard_arg): Same.
12075 (slpeel_update_phi_nodes_for_guard2): Same.
12076 (slpeel_update_phi_nodes_for_lcssa): Same.
12077 (vect_do_peeling): Same.
12078 (vect_create_cond_for_alias_checks): Same.
12079 (vect_loop_versioning): Same.
12080 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12081 (vect_inner_phi_in_double_reduction_p): Same.
12082 (vect_analyze_scalar_cycles_1): Same.
12083 (vect_fixup_scalar_cycles_with_patterns): Same.
12084 (vect_get_loop_niters): Same.
12085 (bb_in_loop_p): Same.
12086 (vect_get_max_nscalars_per_iter): Same.
12087 (vect_verify_full_masking): Same.
12088 (vect_compute_single_scalar_iteration_cost): Same.
12089 (vect_analyze_loop_form_1): Same.
12090 (vect_analyze_loop_form): Same.
12091 (vect_active_double_reduction_p): Same.
12092 (vect_analyze_loop_operations): Same.
12093 (neutral_op_for_slp_reduction): Same.
12094 (vect_is_simple_reduction): Same.
12095 (vect_model_reduction_cost): Same.
12096 (get_initial_def_for_reduction): Same.
12097 (get_initial_defs_for_reduction): Same.
12098 (vect_create_epilog_for_reduction): Same.
12099 (vectorize_fold_left_reduction): Same.
12100 (vectorizable_reduction): Same.
12101 (vectorizable_induction): Same.
12102 (vectorizable_live_operation): Same.
12103 (loop_niters_no_overflow): Same.
12104 (vect_get_loop_mask): Same.
12105 (vect_transform_loop_stmt): Same.
12106 (vect_transform_loop): Same.
12107 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12108 (vect_determine_precisions): Same.
12109 (vect_pattern_recog_1): Same.
12110 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12111 * tree-vect-stmts.c (stmt_vectype): Same.
12112 (process_use): Same.
12113 (vect_init_vector_1): Same.
12114 (vect_truncate_gather_scatter_offset): Same.
12115 (get_group_load_store_type): Same.
12116 (vect_build_gather_load_calls): Same.
12117 (vect_get_strided_load_store_ops): Same.
12118 (vectorizable_simd_clone_call): Same.
12119 (vectorizable_store): Same.
12120 (permute_vec_elements): Same.
12121 (vectorizable_load): Same.
12122 (vect_transform_stmt): Same.
12123 (supportable_widening_operation): Same.
12124 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12125 (vec_info::free_stmt_vec_info): Same.
12126 (vect_free_loop_info_assumptions): Same.
12127 (vect_loop_vectorized_call): Same.
12128 (set_uid_loop_bbs): Same.
12129 (vectorize_loops): Same.
12130 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12131 * tree.c (add_tree_to_fld_list): Same.
12132 (fld_type_variant_equal_p): Same.
12133 (fld_decl_context): Same.
12134 (fld_incomplete_type_of): Same.
12135 (free_lang_data_in_binfo): Same.
12136 (need_assembler_name_p): Same.
12137 (find_decls_types_r): Same.
12138 (get_eh_types_for_runtime): Same.
12139 (find_decls_types_in_eh_region): Same.
12140 (find_decls_types_in_node): Same.
12141 (assign_assembler_name_if_needed): Same.
12142 * value-prof.c (stream_out_histogram_value): Same.
12143 * value-prof.h: Same.
12144 * var-tracking.c (use_narrower_mode): Same.
12145 (prepare_call_arguments): Same.
12146 (vt_expand_loc_callback): Same.
12147 (resolve_expansions_pending_recursion): Same.
12148 (vt_expand_loc): Same.
12149 * varasm.c (const_hash_1): Same.
12150 (compare_constant): Same.
12151 (tree_output_constant_def): Same.
12152 (simplify_subtraction): Same.
12153 (get_pool_constant): Same.
12154 (output_constant_pool_2): Same.
12155 (output_constant_pool_1): Same.
12156 (mark_constants_in_pattern): Same.
12157 (mark_constant_pool): Same.
12158 (get_section_anchor): Same.
12159 * vr-values.c (compare_range_with_value): Same.
12160 (vr_values::extract_range_from_phi_node): Same.
12161 * vr-values.h: Same.
12162 * web.c (unionfind_union): Same.
12163 * wide-int.h: Same.
12164
12165 2019-07-09 Martin Sebor <msebor@redhat.com>
12166
12167 PR c++/61339
12168 * align.h: Change class-key from class to struct and vice versa
12169 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12170 * alloc-pool.h: Same.
12171 * asan.c (shadow_mem_size): Same.
12172 * auto-profile.c: Same.
12173 * basic-block.h: Same.
12174 * bitmap.h: Same.
12175 * cfgexpand.c (set_rtl): Same.
12176 (expand_one_stack_var_at): Same.
12177 * cfghooks.h: Same.
12178 * cfgloop.h: Same.
12179 * cgraph.h: Same.
12180 * config/i386/i386.h: Same.
12181 * df-problems.c (df_print_bb_index): Same.
12182 * df-scan.c: Same.
12183 * df.h (df_single_use): Same.
12184 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12185 (layout::annotation_line_showed_range_p): Same.
12186 (get_printed_columns): Same.
12187 (correction::ensure_terminated): Same.
12188 (line_corrections::~line_corrections): Same.
12189 * dojump.h: Same.
12190 * dse.c: Same.
12191 * dump-context.h: Same.
12192 * dumpfile.h: Same.
12193 * dwarf2out.c: Same.
12194 * edit-context.c: Same.
12195 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12196 * flags.h: Same.
12197 * function.c (assign_stack_local): Same.
12198 * function.h: Same.
12199 * gcc.c: Same.
12200 * gcov.c (block_info::block_info): Same.
12201 * genattrtab.c: Same.
12202 * genextract.c: Same.
12203 * genmatch.c (comparison_code_p): Same.
12204 (id_base::id_base): Same.
12205 (decision_tree::print): Same.
12206 * genoutput.c: Same.
12207 * genpreds.c (write_one_predicate_function): Same.
12208 * genrecog.c (validate_pattern): Same.
12209 (find_operand_positions): Same.
12210 (optimize_subroutine_group): Same.
12211 (merge_pattern_transition::merge_pattern_transition): Same.
12212 (merge_pattern_info::merge_pattern_info): Same.
12213 (merge_state_result::merge_state_result): Same.
12214 (merge_into_state): Same.
12215 * gensupport.c: Same.
12216 * gensupport.h: Same.
12217 * ggc-common.c (init_ggc_heuristics): Same.
12218 * ggc-tests.c (test_union): Same.
12219 * gimple-loop-interchange.cc (dump_induction): Same.
12220 * gimple-loop-versioning.cc: Same.
12221 * gimple-match.h (gimple_match_cond::any_else): Same.
12222 * gimple-ssa-backprop.c: Same.
12223 * gimple-ssa-sprintf.c: Same.
12224 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12225 Same.
12226 (store_immediate_info::store_immediate_info): Same.
12227 (merged_store_group::apply_stores): Same.
12228 (get_location_for_stmts): Same.
12229 * gimple-ssa-strength-reduction.c: Same.
12230 * gimple-ssa-warn-alloca.c: Same.
12231 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12232 * godump.c (go_type_decl): Same.
12233 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12234 * hash-map.h: Same.
12235 * hash-set-tests.c (test_set_of_strings): Same.
12236 * hsa-brig.c: Same.
12237 * hsa-common.h: Same.
12238 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12239 * input.c (assert_loceq): Same.
12240 * input.h: Same.
12241 * ipa-cp.c: Same.
12242 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12243 * ipa-fnsummary.h: Same.
12244 * ipa-inline.h: Same.
12245 * ipa-prop.h: Same.
12246 * ipa-split.c (visit_bb): Same.
12247 * ira-int.h (minmax_set_iter_next): Same.
12248 * loop-invariant.c: Same.
12249 * loop-iv.c: Same.
12250 * lra-eliminations.c: Same.
12251 * lra-int.h: Same.
12252 * lra-lives.c (mark_regno_dead): Same.
12253 * lra-remat.c: Same.
12254 * lra-spills.c: Same.
12255 * lto-streamer.h: Same.
12256 * mem-stats.h: Same.
12257 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12258 * omp-low.c (omp_clause_aligned_alignment): Same.
12259 * optabs-query.h (get_vcond_eq_icode): Same.
12260 * optabs.h: Same.
12261 * opts.c (wrap_help): Same.
12262 * poly-int.h: Same.
12263 * predict.c (predict_paths_leading_to_edge): Same.
12264 * pretty-print.h: Same.
12265 * profile-count.h: Same.
12266 * read-md.h: Same.
12267 * read-rtl-function.c: Same.
12268 * ree.c: Same.
12269 * reginfo.c: Same.
12270 * regrename.c: Same.
12271 * regrename.h: Same.
12272 * reload.h: Same.
12273 * rtl-iter.h: Same.
12274 * rtl.h (costs_add_n_insns): Same.
12275 * sanopt.c: Same.
12276 * sched-int.h: Same.
12277 * sel-sched-ir.h: Same.
12278 * selftest.h: Same.
12279 * sese.h (vec_find): Same.
12280 * stmt.c: Same.
12281 * target-globals.h: Same.
12282 * tree-affine.c (aff_combination_find_elt): Same.
12283 * tree-affine.h: Same.
12284 * tree-data-ref.h: Same.
12285 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12286 * tree-predcom.c: Same.
12287 * tree-scalar-evolution.c (find_var_scev_info): Same.
12288 * tree-ssa-alias.h: Same.
12289 * tree-ssa-ccp.c: Same.
12290 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12291 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12292 (rewrite_mem_refs): Same.
12293 (execute_sm_if_changed): Same.
12294 (hoist_memory_references): Same.
12295 * tree-ssa-loop-ivopts.c (operator<=): Same.
12296 * tree-ssa-loop.h: Same.
12297 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12298 * tree-ssa-structalias.c: Same.
12299 * tree-switch-conversion.h (cluster::cluster): Same.
12300 (simple_cluster::simple_cluster): Same.
12301 * tree-vect-patterns.c (type_conversion_p): Same.
12302 * tree-vectorizer.c (dump_stmt_cost): Same.
12303 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12304 * tree.c (protected_set_expr_location): Same.
12305 * tree.h (desired_pro_or_demotion_p): Same.
12306 (fndecl_built_in_p): Same.
12307 * unique-ptr-tests.cc: Same.
12308 * var-tracking.c (delete_variable_part): Same.
12309 * varasm.c (assemble_real): Same.
12310 (tree_output_constant_def): Same.
12311 * vec.c: Same.
12312 * wide-int-bitmask.h: Same.
12313 * wide-int.h (decompose): Same.
12314
12315 2019-07-09 Richard Biener <rguenther@suse.de>
12316
12317 PR tree-optimization/91114
12318 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12319 find a vector type isn't fatal.
12320
12321 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12322
12323 * config/aarch64/aarch64-simd.md
12324 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12325 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12326 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12327 (*aarch64_crypto_aese_fused,
12328 *aarch64_crypto_aesd_fused): Update to new definition.
12329 * config/aarch64/aarch64.c
12330 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12331
12332 2019-07-09 Richard Biener <rguenther@suse.de>
12333
12334 * gimple-match.h (gimple_match_op::resimplify): New.
12335 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12336 gimple_resimplify4, gimple_resimplify5): Remove.
12337 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12338 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12339 Make static.
12340 (gimple_match_op::resimplify): New.
12341 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12342 according to availability. Use gimple_match_op::resimplify.
12343
12344 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12345
12346 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12347
12348 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12349
12350 * config/arm/crypto.md:
12351 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12352 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12353 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12354 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12355 * config/arm/arm.c
12356 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12357 * config/arm/aarch-common-protos.h
12358 (aarch_crypto_can_dual_issue): Remove.
12359 * config/arm/aarch-common.c
12360 (aarch_crypto_can_dual_issue): Likewise.
12361 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12362 * config/arm/cortex-a53.md: Likewise.
12363 * config/arm/cortex-a57.md: Likewise.
12364 * config/arm/iterators.md:
12365 (CRYPTO_BINARY): Redefine.
12366 (CRYPTO_UNARY): Removed.
12367 (CRYPTO_AES, CRYPTO_AESMC): New.
12368
12369 2019-07-09 Richard Biener <rguenther@suse.de>
12370
12371 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12372 (vn_reference_lookup_3): If the main ref has no access path recorded
12373 but orig_ref has use it to do access-path based disambiguation.
12374 (vn_reference_lookup_pieces): Adjust.
12375 (vn_reference_lookup): Pass down original ref if we valueized.
12376
12377 2019-07-09 Martin Liska <mliska@suse.cz>
12378
12379 * doc/extend.texi: Document influence on loop
12380 optimizers.
12381
12382 2019-07-09 Martin Liska <mliska@suse.cz>
12383
12384 * lto-compress.c (lto_normalized_zstd_level): Do not use
12385 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12386 of libzstd. One can use 0 as a default compression level.
12387
12388 2019-07-09 Martin Liska <mliska@suse.cz>
12389
12390 * doc/invoke.texi: Add link from -fprofile-dir option.
12391 Use better wording for 'gcno filename'.
12392
12393 2019-07-08 Martin Sebor <msebor@redhat.com>
12394
12395 PR middle-end/71924
12396 PR middle-end/90549
12397 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12398 comment.
12399 (args_loc_t): New type.
12400 (args_loc_t, locmap_t): same.
12401 (diag_returned_locals): New function.
12402 (is_addr_local): Same.
12403 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12404 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12405 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12406
12407 2019-07-08 Jakub Jelinek <jakub@redhat.com>
12408
12409 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12410 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
12411 and casts in offset when different, both through gimple stmts
12412 and through trees. Rewritten using loops to minimize code duplication
12413 for each operand.
12414
12415 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
12416
12417 * emit-rtl.c (set_insn_locations): New function moved from...
12418 * function.c (set_insn_locations): ...here.
12419 * ira-emit.c (emit_moves): Propagate location of the first instruction
12420 to the inserted move instructions.
12421 * reg-stack.c (compensate_edge): Set the location if the sequence is
12422 inserted on the edge.
12423 * rtl.h (set_insn_locations): Declare.
12424
12425 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12426
12427 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
12428 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
12429 .machine string.
12430
12431 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12432
12433 PR rtl-optimization/88233
12434 * common.opt (fsplit-wide-types-early): New option.
12435 * common/config/rs6000/rs6000-common.c
12436 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
12437 OPT_LEVELS_ALL.
12438 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
12439 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
12440 flag_split_wide_types_early.
12441 (pass_data_lower_subreg3): New.
12442 (pass_lower_subreg3): New.
12443 (make_pass_lower_subreg3): New.
12444 * passes.def (pass_lower_subreg2): Move after the loop passes.
12445 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
12446 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
12447 the pass pipeline; its previous place is taken by ...
12448 (make_pass_lower_subreg3): ... this.
12449
12450 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12451
12452 * config/s390/s390.c (s390_shift_truncation_mask): Define.
12453 (TARGET_SHIFT_TRUNCATION_MASK): Define.
12454
12455 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12456
12457 * config/s390/constraints.md: Add new jsc constraint.
12458 * config/s390/predicates.md: New predicates.
12459 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
12460 * config/s390/s390.c (s390_valid_shift_count): New function.
12461 (print_shift_count_operand): Use s390_valid_shift_count.
12462 (print_operand): Likewise.
12463 * config/s390/s390.md: Use new predicate.
12464 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
12465 * config/s390/vector.md: Use new predicate.
12466
12467 2019-07-08 Andrew Waterman <andrew@sifive.com>
12468 Jim Wilson <jimw@sifive.com>
12469
12470 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
12471 bitsize instead of BITS_PER_WORD.
12472
12473 2019-07-08 Martin Liska <mliska@suse.cz>
12474
12475 * collect2.c (defined): Revert to before r254460.
12476 (scan_prog_file): Revert to before r254460.
12477
12478 2019-07-08 Richard Biener <rguenther@suse.de>
12479
12480 PR tree-optimization/83518
12481 * tree-ssa-sccvn.c: Include splay-tree.h.
12482 (struct pd_range, struct pd_data): New.
12483 (struct vn_walk_cb_data): Add data to track partial definitions.
12484 (vn_walk_cb_data::~vn_walk_cb_data): New.
12485 (vn_walk_cb_data::push_partial_def): New.
12486 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
12487 (vn_reference_lookup_2): When partial defs are registered give up.
12488 (vn_reference_lookup_3): Track partial defs for memset and
12489 constructor zeroing and for defs from constants.
12490
12491 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12492
12493 * doc/install.texi (bootstrap-Og): Document.
12494
12495 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12496
12497 * config/riscv/pic.md (*local_pic_load_s<mode>)
12498 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
12499 referenced by <mode>, giving...
12500 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
12501 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
12502 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
12503 use <X:MODE> for the mode attribute.
12504
12505 2019-07-07 Jeff Law <law@redhat.com>
12506
12507 PR tree-optimization/91090
12508 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
12509 in handling of ranges to simplify switch statements.
12510
12511 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12512
12513 * config/darwin.c (darwin_override_options): Make a final check on PIC
12514 options.
12515
12516 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12517
12518 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
12519 on for kernel code.
12520
12521 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12522
12523 PR target/91068
12524 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
12525 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
12526 instead of matching them to "l" output operands.
12527
12528 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12529
12530 * config/mips/mips.c (mips_split_move): Zero-initialize addr
12531 and check whether addr.reg is nonnull before using it.
12532
12533 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12534
12535 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
12536 ctx->for_simd_scan_phase simd copy the outer var to the privatized
12537 variable(s). For conditional lastprivate look through outer
12538 GIMPLE_OMP_SCAN context.
12539 (lower_omp_1): For conditional lastprivate look through outer
12540 GIMPLE_OMP_SCAN context.
12541
12542 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
12543 member to combined_into_simd_safelen1.
12544 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
12545 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
12546 clauses if ctx->combined_into_simd_safelen1 put statements after the
12547 predicate conditionalized block rather than into it.
12548
12549 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12550
12551 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
12552 operand 1.
12553 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
12554 Make the choice of <mode> explicit, giving...
12555 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
12556
12557 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12558
12559 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
12560 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
12561 of .md attributes.
12562 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
12563 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
12564 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
12565 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
12566 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
12567 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
12568 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
12569 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
12570 (*avx512f_scatterdi<mode>): Likewise.
12571 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
12572
12573 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12574
12575 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
12576 specify the mode iterator referenced by <mode>, giving...
12577 (*push1_h8300hs_<QHI:mode>): ...this.
12578
12579 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12580
12581 * config/gcn/gcn-valu.md
12582 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
12583 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
12584 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
12585 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
12586 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
12587 but using the _exec comparison patterns.
12588 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
12589 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
12590 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
12591 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
12592 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
12593 but using the _exec comparison patterns.
12594
12595 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12596
12597 * config/arm/sync.md
12598 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
12599 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
12600 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
12601 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
12602 <SIDI:cas_cmp_str>.
12603
12604 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12605
12606 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
12607 (maybe_lookup_ctx): Add forward declaration.
12608 (omp_find_scan): Likewise. Walk into body of simd if composited
12609 with worksharing loop.
12610 (scan_omp_simd_scan): New function.
12611 (scan_omp_1_stmt): Call it.
12612 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
12613 ctx->for_simd_scan_phase.
12614 (lower_rec_input_clauses): Do much less work for inscan reductions
12615 in ctx->for_simd_scan_phase is_simd regions.
12616 (lower_omp_scan): Set is_simd also on simd constructs composited
12617 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
12618 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
12619 emit their body after in simd constructs composited with worksharing
12620 loop.
12621 (lower_omp_for_scan): Handle worksharing loop composited with simd.
12622
12623 * omp-low.c (omp_find_scan): Make static.
12624 (lower_omp_for_scan): Fix order of merge arguments in input phase of
12625 the second loop, var2 represents the first partial sum and so needs
12626 to go before rprivb[ivar].
12627
12628 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
12629
12630 * config/rs6000/rs6000-logue.c: Remove unused code.
12631
12632 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12633
12634 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
12635
12636 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
12637
12638 PR target/90712
12639 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
12640 check with a frame laid out check.
12641
12642 2019-07-05 Richard Biener <rguenther@suse.de>
12643
12644 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
12645 when comparing against a store with possibly the same value.
12646
12647 2019-07-05 Richard Biener <rguenther@suse.de>
12648
12649 PR tree-optimization/91091
12650 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
12651 (walk_non_aliased_vuses): Likewise.
12652 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
12653 (get_continuation_for_phi): New tbaa_p parameter and pass
12654 it down.
12655 (walk_non_aliased_vuses): Likewise.
12656 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
12657 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
12658 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
12659 Likewise.
12660 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
12661 (adjust_offsets_for_equal_base_address): New function.
12662 (vn_reference_lookup_3): Use it to catch more base equivalences.
12663 Handle and pass down tbaa_p flag.
12664 (vn_reference_lookup_pieces): Adjust.
12665 (vn_reference_lookup): Remove alias-set altering, instead pass
12666 down false as tbaa_p.
12667
12668 2019-07-05 Richard Biener <rguenther@suse.de>
12669
12670 PR tree-optimization/91091
12671 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
12672 accesses can happen with -fno-strict-aliasing.
12673
12674 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
12675
12676 * tree-ssa-alias.c (alias_stats): Add
12677 nonoverlapping_component_refs_since_match_p_must_overlap.
12678 (dump_alias_stats): Print it.
12679 (nonoverlapping_component_refs_since_match_p): Add early exit.
12680 (nonoverlapping_component_refs_p): Do not account early exit.
12681
12682 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12683
12684 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
12685 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
12686 (emit_eh_dispatch): Delete.
12687 (lower_catch): Emit the eh_dispatch manually and set the location of
12688 the first catch statement onto it.
12689 (lower_eh_filter): Emit the eh_dispatch manually and set location.
12690 (lower_eh_dispatch): Propagate location.
12691 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
12692 (eliminate_build): Likewise.
12693
12694 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12695
12696 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
12697 phi nodes if possible.
12698 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
12699 location info on the newly created statement.
12700 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
12701 newly created increment if needed.
12702
12703 2019-07-04 Jakub Jelinek <jakub@redhat.com>
12704
12705 PR middle-end/78884
12706 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
12707 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
12708 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
12709 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
12710 ctx->add_safelen1 is set.
12711
12712 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
12713 GOMP_loop_start at the start of second worksharing loop in a scan.
12714 For nowait, don't emit GOMP_loop_end_nowait at the end of first
12715 worksharing loop in a scan even if there are conditional lastprivates,
12716 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
12717
12718 2019-07-04 Jan Hubicka <jh@suse.cz>
12719
12720 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
12721 Fix check for match in the ref walk.
12722
12723 2019-07-04 Martin Liska <mliska@suse.cz>
12724
12725 * tree-ssa-loop-niter.c
12726 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
12727 (estimate_numbers_of_iterations):
12728 Support __builtin_expect_with_probability for analysis
12729 of # of loop iterations.
12730
12731 2019-07-04 Alexandre Oliva <oliva@adacore.com>
12732
12733 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
12734 * except.c: Likewise.
12735 * expr.c (expand_expr_real_1): Reject it.
12736 * gimplify.c (gimplify_expr): Gimplify it, within
12737 TRY_FINALLY_EXPR.
12738 * tree-dump.c (dequeue_and_dump): Dump it.
12739 * tree-pretty-print.c (dump_generic_node): Likewise.
12740 * tree.c (block_may_fallthru): Handle it.
12741 * tree.def (EH_ELSE_EXPR): Introduce it.
12742 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
12743 with GIMPLE_EH_ELSE as try/finally/else.
12744
12745 2019-07-04 Richard Biener <rguenther@suse.de>
12746
12747 PR ipa/91062
12748 * tree-pass.h (execute_all_ipa_transforms): Add a flag
12749 parameter whether to disable GC collection.
12750 * passes.c (execute_one_ipa_transform_pass): Likewise, and
12751 honor it.
12752 (execute_all_ipa_transforms): Likewise and pass it down.
12753 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
12754 collection from applying IPA transforms.
12755 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
12756 from applying IPA transforms.
12757
12758 2019-07-04 Richard Biener <rguenther@suse.de>
12759
12760 PR tree-optimization/90911
12761 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
12762 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
12763 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
12764 scalar_loop_scaling.
12765 (vect_transform_loop): Scale scalar loop profile if needed.
12766 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
12767 the loop copy from if-conversion adjust edge probabilities
12768 and scale the vectorized loop body profile, queue the scalar
12769 profile for updating after peeling.
12770
12771 2019-07-04 Jan Hubicka <jh@suse.cz>
12772
12773 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
12774 parameters; return early for must-alias.
12775 (indirect_ref_may_alias_decl_p): Likewise; when establishing
12776 outer types match, try nonoverlapping_component_refs
12777 if must-alias is not obvious.
12778 (indirect_refs_may_alias_p): Likewise.
12779 (refs_may_alias_p_2): Likewise.
12780
12781 2019-07-04 Richard Biener <rguenther@suse.de>
12782
12783 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
12784 argument.
12785 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
12786 globals into...
12787 (struct vn_walk_cb_data): New callback data struct.
12788 (vn_reference_lookup_2): Adjust.
12789 (vn_reference_lookup_3): Likewise.
12790 (vn_reference_lookup_pieces): Likewise.
12791 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
12792 (visit_reference_op_load): Adjust.
12793
12794 2019-07-04 Jakub Jelinek <jakub@redhat.com>
12795
12796 PR tree-optimization/91063
12797 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
12798 stmt from stmts sequence before calling vect_init_vector_1.
12799 Formatting fix.
12800
12801 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12802
12803 PR target/88833
12804 * fwprop.c (reg_single_def_p): New function.
12805 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
12806 (forward_propagate_into): New parameter reg_prop_only
12807 with default value false.
12808 Propagate def's src into loop only if SET_SRC and SET_DEST
12809 of def_set have single definitions.
12810 Likewise if reg_prop_only is set to true.
12811 (fwprop): New param fwprop_addr_p.
12812 Integrate fwprop_addr into fwprop.
12813 (fwprop_addr): Remove.
12814 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
12815 to true.
12816 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
12817 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
12818 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
12819
12820 2019-07-04 Jakub Jelinek <jakub@redhat.com>
12821
12822 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
12823 in worksharing loop scans.
12824
12825 PR tree-optimization/91074
12826 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
12827 temporary.
12828
12829 PR rtl-optimization/90756
12830 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
12831 for VECTOR_TYPE_P.
12832
12833 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
12834
12835 * config/aarch64/aarch64.md: Remove redundant constraints from
12836 define_expand but keep some patterns untouched if they are
12837 specially selected by TARGET_SECONDARY_RELOAD hook.
12838 * config/aarch64/aarch64-sve.md: Likewise.
12839 * config/aarch64/atomics.md: Remove redundant constraints from
12840 define_expand.
12841 * config/aarch64/aarch64-simd.md: Likewise.
12842
12843 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
12844
12845 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
12846 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
12847 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
12848 clauses.
12849 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
12850 DARWIN_NOPIE_SPEC.
12851
12852 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
12853
12854 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
12855 (STARTFILE_SPEC): Split crt3 into a separate spec.
12856 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
12857 (DARWIN_CRT2_SPEC): New.
12858 (DARWIN_CRT3_SPEC): New.
12859 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
12860 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
12861 (DARWIN_CRT3_SPEC): New.
12862
12863 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
12864
12865 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
12866 Change the RTL attribute "length" from "4" to "*" to allow the
12867 length attribute to be adjusted automatically for prefixed load,
12868 store, and add immediate instructions.
12869 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
12870 Likewise.
12871 (extendsi<mode>2, EXTSI iterator): Likewise.
12872 (movsi_internal1): Likewise.
12873 (movsi_from_sf): Likewise.
12874 (movdi_from_sf_zero_ext): Likewise.
12875 (mov<mode>_internal): Likewise.
12876 (movcc_internal1, QHI iterator): Likewise.
12877 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
12878 (movsf_from_si): Likewise.
12879 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
12880 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
12881 (mov<mode>, FMOVE128 iterator): Likewise.
12882 (movdi_internal64): Likewise.
12883 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
12884 Likewise.
12885 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
12886 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
12887 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
12888 (vsx_splat_v4sf): Likewise.
12889
12890 2019-07-03 Mark Wielaard <mark@klomp.org>
12891
12892 PR debug/90981
12893 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
12894 DW_AT_addr_base if there is actually a .debug_addr section with
12895 addresses.
12896 (output_addr_table): Add DWARF5 table header generation here after
12897 checking there are actually any addresses from...
12898 (dwarf2out_finish): ...here.
12899
12900 2019-07-03 Richard Biener <rguenther@suse.de>
12901
12902 PR middle-end/91069
12903 * match.pd (vec_perm -> bit_insert): Fix element read from
12904 first vector.
12905
12906 2019-07-03 Martin Liska <mliska@suse.cz>
12907
12908 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
12909 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
12910 condition.
12911 * generic-match-head.c: Include dbgcnt.h.
12912 * gimple-match-head.c: Likewise.
12913
12914 2019-07-03 Martin Liska <mliska@suse.cz>
12915
12916 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
12917 (GCOV_COUNTER_V_TOPN): New.
12918 (GCOV_COUNTER_V_INDIR): Use _topn.
12919 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
12920 (GCOV_TOPN_VALUES): New.
12921 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
12922 (GCOV_TOPN_VALUES_COUNTERS): New.
12923 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
12924 * tree-profile.c:
12925 (gimple_init_gcov_profiler): Rename variables from one_value
12926 to topn_values.
12927 (gimple_gen_one_value_profiler): Remove.
12928 (gimple_gen_topn_values_profiler): New function.
12929 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
12930 names instead of SINGLE_VALUE.
12931 (stream_out_histogram_value): Likewise.
12932 (stream_in_histogram_value): Likewise.
12933 (get_most_common_single_value): Likewise.
12934 (gimple_divmod_fixed_value_transform): Likewise.
12935 (gimple_stringops_transform): Likewise.
12936 (gimple_divmod_values_to_profile): Likewise.
12937 (gimple_stringops_values_to_profile): Likewise.
12938 (gimple_find_values_to_profile): Likewise.
12939 * value-prof.h (enum hist_type): Rename to TOPN.
12940 (gimple_gen_one_value_profiler): Remove.
12941 (gimple_gen_topn_values_profiler): New.
12942
12943 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
12944
12945 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
12946 if it has the DW_AT_data_member_location attribute.
12947
12948 2019-07-03 Richard Biener <rguenther@suse.de>
12949
12950 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
12951 dumping.
12952
12953 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
12954
12955 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
12956 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
12957 (tlsdesc_small_sve_<mode>): Likewise.
12958
12959 2019-07-03 Martin Liska <mliska@suse.cz>
12960
12961 * Makefile.in: Define ZSTD_LIB.
12962 * common.opt: Adjust compression level
12963 to support also zstd levels.
12964 * config.in: Regenerate.
12965 * configure: Likewise.
12966 * configure.ac: Add --with-zstd and --with-zstd-include options
12967 and detect ZSTD.
12968 * doc/install.texi: Mention zstd dependency.
12969 * gcc.c: Print supported LTO compression algorithms.
12970 * lto-compress.c (lto_normalized_zstd_level): Likewise.
12971 (lto_compression_zstd): Likewise.
12972 (lto_uncompression_zstd): Likewise.
12973 (lto_end_compression): Dispatch in between zlib and zstd.
12974 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
12975 (lto_uncompression_zlib): Make it static.
12976 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
12977 * lto-section-in.c (lto_get_section_data): Pass info
12978 about used compression.
12979 * lto-streamer-out.c: By default use zstd when possible.
12980 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
12981 (TV_IPA_LTO_COMPRESS): Likewise for compression.
12982
12983 2019-07-03 Martin Liska <mliska@suse.cz>
12984
12985 * lto-section-in.c (lto_get_section_data): Add "lto" section.
12986 * lto-section-out.c (lto_destroy_simple_output_block): Never
12987 compress LTO_section_lto section.
12988 * lto-streamer-out.c (produce_asm): Do not set major_version
12989 and minor_version.
12990 (lto_output_toplevel_asms): Likewise.
12991 (produce_lto_section): New function.
12992 (lto_output): Call produce_lto_section.
12993 (lto_write_mode_table): Do not set major_version and
12994 minor_version.
12995 (produce_asm_for_decls): Likewise.
12996 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
12997 type.
12998 (struct lto_header): Remove.
12999 (struct lto_section): New struct.
13000 (struct lto_simple_header): Do not inherit from lto_header.
13001 (struct lto_file_decl_data): Add lto_section_header field.
13002
13003 2019-07-03 Martin Liska <mliska@suse.cz>
13004
13005 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13006 dead assignemts.
13007 * reg-stack.c (check_asm_stack_operands): Likewise.
13008 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13009 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13010 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13011 force_expand_binop.
13012
13013 2019-07-03 Martin Liska <mliska@suse.cz>
13014
13015 PR tree-optimization/90892
13016 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13017 in string constants.
13018
13019 2019-07-03 Martin Liska <mliska@suse.cz>
13020
13021 PR middle-end/90899
13022 * multiple_target.c (create_dispatcher_calls): Add to comdat
13023 group only if set for ifunc.
13024
13025 2019-07-03 Martin Liska <mliska@suse.cz>
13026
13027 PR target/88056
13028 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13029 Define local_object_name in outer scope in order to handle
13030 use-after-scope issue.
13031
13032 2019-07-03 Martin Liska <mliska@suse.cz>
13033
13034 * common.opt: Add fprofile-note.
13035 * coverage.c (coverage_init): Append the option
13036 to bbg_file_name.
13037 * doc/invoke.texi: Document -fprofile-note.
13038
13039 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13040
13041 PR tree-optimization/91033
13042 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13043 vect_analyze_data_refs): Add bool * arguments.
13044 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13045 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13046 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13047 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13048 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13049 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13050 vect_analyze_data_refs caller.
13051
13052 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13053 clause.
13054 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13055 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13056 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13057 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13058 OMP_CLAUSE__SCANTEMP_ entry.
13059 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13060 * tree-pretty-print.c (dump_omp_clause): Likewise.
13061 * tree-nested.c (convert_nonlocal_omp_clauses,
13062 convert_local_omp_clauses): Likewise.
13063 * omp-general.h (struct omp_for_data): Add have_scantemp and
13064 have_nonctrl_scantemp members.
13065 * omp-general.c (omp_extract_for_data): Initialize them.
13066 * omp-low.c (struct omp_context): Add scan_exclusive member.
13067 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13068 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13069 ctx->scan_exclusive.
13070 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13071 of !ctx->scan_inclusive.
13072 (lower_rec_input_clauses): Simplify gimplification of dtors using
13073 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13074 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13075 loops. Don't add barrier for reduction_omp_orig_ref if
13076 ctx->scan_??xclusive.
13077 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13078 (lower_omp_scan): Use ctx->scan_exclusive instead
13079 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13080 reductions. Use new_vard != new_var instead of repeated
13081 omp_is_reference calls.
13082 (omp_find_scan, lower_omp_for_scan): New functions.
13083 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13084 inscan reductions.
13085 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13086 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13087 and fd->have_scantemp.
13088
13089 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13090 on worksharing loop propagate it as shared clause to containing
13091 combined parallel.
13092
13093 * omp-expand.c (expand_omp_for_static_nochunk,
13094 expand_omp_for_static_chunk): For nowait worksharing loop with
13095 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13096 at the end.
13097
13098 2019-07-02 qing zhao <qing.zhao@oracle.com>
13099
13100 PR preprocessor/90581
13101 * doc/cppopts.texi: Add document for -fmax-include-depth.
13102 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13103
13104 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13105
13106 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13107 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13108 (mmx_packssdw): Ditto.
13109 (mmx_punpckhbw): Ditto.
13110 (mmx_punpcklbw): Ditto.
13111 (mmx_punpckhwd): Ditto.
13112 (mmx_punpcklwd): Ditto.
13113 (mmx_punpckhdq): Ditto.
13114 (mmx_punpckldq): Ditto.
13115 (*vec_dupv4hi): Ditto.
13116 (*vec_dupv2si): Ditto.
13117 (mmx_pmovmskb): Ditto.
13118 * config/i386/sse.md (sse_cvtpi2ps): Use
13119 TARGET_SSE2 && SSE_REG_P in split condition.
13120 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13121 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13122 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13123 (ssse3_pshufbv8qi3): Ditto.
13124 (ssse3_palignrdi): Ditto.
13125
13126 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13127
13128 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13129 with inlined save and restore.
13130
13131 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13132
13133 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13134 to be inserted on single successor edge of the entry block. Then call
13135 commit_edge_insertions instead of inserting the instructions manually.
13136 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13137 RTL expansion and rebuild jump labels chain.
13138
13139 2019-07-02 Richard Biener <rguenther@suse.de>
13140
13141 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13142 TI_CHREC_KNOWN.
13143 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13144 Define here.
13145 * tree.c (build_common_tree_nodes): Initialize them.
13146 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13147 Make declarations comments.
13148 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13149 chrec_known): Remove definitions.
13150 (initialize_scalar_evolutions_analyzer): Remove.
13151 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13152 * tree-streamer.c (preload_common_nodes): Do not preload
13153 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13154
13155 2019-07-02 Jan Hubicka <jh@suse.cz>
13156
13157 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13158 sanity check.
13159
13160 2019-07-02 Jan Hubicka <jh@suse.cz>
13161
13162 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13163 to ..
13164 (nonoverlapping_component_refs_since_match_p): ... this one;
13165 handle also non-decl bases; return -1 if search gave up.
13166 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13167 nonoverlapping_component_refs_of_decl_p_no_alias to
13168 nonoverlapping_component_refs_since_match_p_may_alias,
13169 nonoverlapping_component_refs_since_match_p_no_alias.
13170 (dump_alias_stats): Update dumping.
13171 (aliasing_matching_component_refs_p): Break out from ...;
13172 dispatch to nonoverlapping_component_refs_for_decl_p
13173 and nonoverlapping_component_refs_since_match_p.
13174 (aliasing_component_refs_p): ... here; call
13175 nonoverlapping_component_refs_p in scenarios where we can not
13176 precisely determine base match.
13177 (decl_refs_may_alias_p): Use
13178 nonoverlapping_component_refs_since_match_p.
13179 (indirect_ref_may_alias_decl_p): Do not call
13180 nonoverlapping_component_refs_p.
13181 (indirect_refs_may_alias_p): Likewise.
13182
13183 2019-07-02 Jan Hubicka <jh@suse.cz>
13184
13185 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13186 to clobber of return value.
13187
13188 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13189
13190 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13191 for is_neon_type instructions that have not already been categorized.
13192
13193 2019-07-02 Richard Biener <rguenther@suse.de>
13194
13195 PR tree-optimization/58483
13196 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13197 for MEM_REF base hashing.
13198 (equal_mem_array_ref_p): Likewise for base comparison.
13199
13200 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13201
13202 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13203 parameterized name.
13204 (signbit<mode>2): Use that name. Simplify.
13205
13206 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13207
13208 PR middle-end/66726
13209 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13210 Tune heuristic from PR71016 to allow MIN / MAX.
13211
13212 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13213
13214 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13215 parameterized name.
13216 (abs<mode>2): Use that name. Simplify.
13217
13218 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13219
13220 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13221 parameterized name.
13222 (neg<mode>2): Use that name. Simplify.
13223
13224 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13225
13226 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13227 name.
13228 (abs<mode>2): Use that name. Simplify.
13229
13230 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13231
13232 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13233 name.
13234 (neg<mode>2): Use that name. Simplify.
13235
13236 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13237
13238 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13239 ("enabled" attribute): Handle sse_noavx isa attribute.
13240 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13241 Use TARGET_SSE && SSE_REGNO_P in split condition.
13242 (*vec_dupv2sf): Ditto.
13243
13244 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13245
13246 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13247 name.
13248 (floatsi<mode>2): Use that name. Simplify.
13249
13250 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13251
13252 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13253 parameterized name.
13254 (extenddf<mode>2_vsx): Make this a parameterized name.
13255 (extenddf<mode>2): Use those names. Simplify.
13256
13257 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13258
13259 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13260 name.
13261 (eh_return): Use that name. Simplify.
13262
13263 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13264
13265 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13266 (doloop_end): Use that name. Simplify.
13267
13268 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13269
13270 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13271 parameterized name.
13272 (indirect_jump): Use that name. Simplify.
13273
13274 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13275
13276 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13277 parameterized name.
13278 (abs<mode>2): Use that name. Simplify.
13279
13280 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13281
13282 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13283 parameterized name.
13284 (fix_trunc<mode>si2): Use that name. Simplify.
13285
13286 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13287
13288 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13289 (allocate_stack): Use that name. Simplify.
13290
13291 2019-07-01 Martin Sebor <msebor@redhat.com>
13292
13293 PR middle-end/90923
13294 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13295 (hash_map::get_or_insert): Same. Reformat comment.
13296 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13297 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13298 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13299 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13300 (hash_table::hash_table (const hash_table&)): Use copy ctor
13301 instead of assignment to copy elements.
13302
13303 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13304 John David Anglin <danglin@gcc.gnu.org>
13305
13306 PR target/90963
13307 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13308 using saved frame pointer.
13309
13310 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13311
13312 PR middle-end/64242
13313 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13314 Add frame clobber and schedule blockage.
13315
13316 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13317
13318 * doc/invoke.texi (Link Options): Further editorial changes to
13319 -flinker-output docs.
13320
13321 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13322
13323 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13324 Load both operands of a PLUS into registers separately.
13325
13326 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13327
13328 * config/s390/vector.md: Fix shift count operand printing.
13329
13330 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13331
13332 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13333
13334 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13335
13336 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13337 Use recog_data to test for an output operand.
13338
13339 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13340
13341 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13342 exclude any others that are disparaged or that are bound to need
13343 a reload or spill.
13344 (ira_get_dup_out_num): Expand comment.
13345
13346 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13347
13348 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13349 constraint string for each operand/alternative combo. Only handle
13350 '%' at the start of constraint strings, and look for it outside
13351 the main loop.
13352
13353 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13354
13355 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13356 alternative_mask instead of HARD_REG_SET to represent a
13357 bitmask of alternatives.
13358 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13359 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13360
13361 2019-07-01 Martin Liska <mliska@suse.cz>
13362
13363 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13364 use () for a constructor call.
13365 (test_applying_fixits_line_out_of_range): Likewise.
13366 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13367 argument.
13368 (free_page): Likewise.
13369
13370 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13371
13372 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13373 parameter names to match usage (no functional change).
13374 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13375
13376 2019-07-01 Richard Biener <rguenther@suse.de>
13377
13378 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13379 pass parameter.
13380 (pass_fre::execute): Honor it.
13381 * passes.def: Adjust pass_fre invocations to allow iterating,
13382 add non-iterating pass_fre before late threading/dom.
13383
13384 2019-07-01 Richard Biener <rguenther@suse.de>
13385
13386 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13387 TARGET_MEM_REF handling to also handle address-taken ones.
13388
13389 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13390
13391 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13392 hardware attributes): Document avx512vp2intersect.
13393
13394 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13395
13396 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13397 (abs<mode>2): New expander.
13398 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13399 Use CODE_FOR_ssse3_absv8qi2.
13400 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13401 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13402
13403 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13404
13405 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13406 to sse, sse_noavx and avx. Update all uses.
13407
13408 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13409
13410 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13411 (*mmx_<plusminus_insn><mode>3): Ditto.
13412 (*mmx_mulv4hi3"): Ditto.
13413 (*mmx_smulv4hi3_highpart): Ditto.
13414 (*mmx_umulv4hi3_highpart): Ditto.
13415 (*mmx_pmaddwd): Ditto.
13416 (*sse2_umulv1siv1di3): Ditto.
13417 (*mmx_<code>v4hi3): Ditto.
13418 (*mmx_<code>v8qi3): Ditto.
13419 (mmx_ashr<mode>3): Ditto.
13420 ("mmx_<shift_insn><mode>3): Ditto.
13421 (*mmx_eq<mode>3): Ditto.
13422 (mmx_gt<mode>3): Ditto.
13423 (mmx_andnot<mode>3): Ditto.
13424 (*mmx_<code><mode>3): Ditto.
13425 (*mmx_pinsrw): Ditto.
13426 (*mmx_pextrw): Ditto.
13427 (mmx_pshufw_1): Ditto.
13428 (*mmx_uavgv8qi3): Ditto.
13429 (*mmx_uavgv4hi3): Ditto.
13430 ("mmx_psadbw): Ditto.
13431 * config/i386/sse.md (sse_cvtps2pi): Ditto.
13432 (sse_cvttps2pi): Ditto.
13433 (ssse3_pmaddubsw): Ditto.
13434 (*ssse3_pmulhrswv4hi3): Ditto.
13435 (ssse3_psign<mode>3): Ditto.
13436
13437 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
13438
13439 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
13440 adjustment for bit-fields to all aggregate types.
13441
13442 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
13443
13444 * config/rs6000/predicates.md (pcrel_address): Use
13445 SYMBOL_REF_LOCAL_P to determine if a label is local.
13446 (pcrel_external_address): New predicate.
13447 (non_prefixed_mem_operand): Delete, predicate not used.
13448 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
13449 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
13450 addressing.
13451 (SYMBOL_REF_PCREL_P): Likewise.
13452
13453 PR target/91009
13454 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
13455 alternative.
13456 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
13457 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
13458 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
13459
13460 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13461
13462 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
13463 override on extra_headers.
13464
13465 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13466
13467 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
13468 * config/darwin-driver.c (darwin_default_min_version): Remove newline
13469 from warning.
13470 (darwin_driver_init): Likewise.
13471
13472 2019-06-28 Jan Beulich <jbeulich@suse.com>
13473
13474 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13475 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
13476 Eliminate redundant alternative.
13477
13478 2019-06-28 Jan Beulich <jbeulich@suse.com>
13479
13480 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13481 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
13482 Use vector_operand.
13483
13484 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
13485
13486 * config/arc/arc.c (arc_rtx_costs): All short instructions are
13487 having a lower cost regardless of the speed option.
13488
13489 2019-06-28 Jan Beulich <jbeulich@suse.com>
13490
13491 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
13492 vector_operand plus, on both alternatives, "Bm" constraint.
13493
13494 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
13495
13496 * config/arm/arm.md: Remove redundant constraints from
13497 define_expand but leave reload_inm and reload_outm patterns
13498 untouched since they need special constraints to work.
13499 * config/arm/arm-fixed.md: Remove redundant constraints from
13500 define_expand.
13501 * config/arm/iwmmxt.md: Likewise.
13502 * config/arm/neon.md: Likewise.
13503 * config/arm/sync.md: Likewise.
13504 * config/arm/thumb1.md: Likewise.
13505 * config/arm/vec-common.md: Likewise.
13506
13507 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
13508
13509 * doc/install.texi: Document --disable-tm-clone-registry.
13510
13511 2019-06-27 Jakub Jelinek <jakub@redhat.com>
13512
13513 PR c++/91024
13514 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
13515 statements.
13516
13517 PR tree-optimization/91010
13518 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
13519 return true. Otherwise, don't call operand_equal_p if offset1 or
13520 offset2 is NULL and just return false.
13521
13522 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13523
13524 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
13525 user-specified float mode choice for kernel mode code.
13526
13527 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13528
13529 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
13530 spec.
13531
13532 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13533
13534 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
13535 use longcall for 64b code.
13536
13537 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
13538
13539 * builtins.c (get_memory_rtx): Fix comment.
13540 * optabs.def (movmem_optab): Change to cpymem_optab.
13541 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
13542 (emit_block_move_hints): Change movmem to cpymem.
13543 * defaults.h: Change movmem to cpymem.
13544 * targhooks.c (get_move_ratio): Change movmem to cpymem.
13545 (default_use_by_pieces_infrastructure_p): Ditto.
13546 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
13547 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
13548 to cpymem.
13549 * config/aarch64/aarch64.h: Change movmem to cpymem.
13550 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
13551 * config/alpha/alpha.h: Change movmem to cpymem in comment.
13552 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
13553 movmem to cpymem.
13554 * config/arc/arc-protos.h: Change movmem to cpymem.
13555 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
13556 * config/arc/arc.h: Change movmem to cpymem in comment.
13557 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
13558 * config/arm/arm-protos.h: Change movmem to cpymem in names.
13559 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
13560 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
13561 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
13562 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
13563 * config/avr/avr-protos.h: Change movmem to cpymem.
13564 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
13565 avr_out_movmem): Change movmem to cpymem.
13566 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
13567 Change movmem to cpymem.
13568 * config/bfin/bfin-protos.h: Change movmem to cpymem.
13569 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
13570 Change movmem to cpymem.
13571 * config/bfin/bfin.h: Change movmem to cpymem in comment.
13572 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
13573 * config/c6x/c6x-protos.h: Change movmem to cpymem.
13574 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
13575 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
13576 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
13577 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
13578 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
13579 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
13580 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
13581 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
13582 expand_small_cpymem_or_setmem,
13583 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
13584 expand_set_or_cpymem_constant_prologue,
13585 ix86_expand_set_or_cpymem): Change movmem to cpymem.
13586 * config/i386/i386-protos.h: Change movmem to cpymem.
13587 * config/i386/i386.h: Change movmem to cpymem in comment.
13588 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
13589 (setmem<mode>): Change expansion function name.
13590 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
13591 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
13592 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
13593 * config/m32c/m32c-protos.h: Change movmem to cpymem.
13594 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
13595 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
13596 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
13597 to cpymem.
13598 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
13599 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
13600 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
13601 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
13602 Change movmem to cpymem.
13603 * config/mips/mips.h: Change movmem to cpymem.
13604 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
13605 * config/nds32/nds32-memory-manipulation.c
13606 (nds32_expand_movmemsi_loop_unknown_size,
13607 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
13608 nds32_expand_movmemsi_unroll,
13609 nds32_expand_movmemsi): Change movmem to cpymem.
13610 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
13611 * config/nds32/nds32-protos.h: Change movmem to cpymem.
13612 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
13613 (pa_adjust_insn_length): Change call to compute_movmem_length.
13614 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
13615 movmemdi, movmemdi_prereload,
13616 movmemdi_postreload): Change movmem to cpymem.
13617 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
13618 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
13619 * config/riscv/riscv.c: Change movmem to cpymem in comment.
13620 * config/riscv/riscv.h: Change movmem to cpymem.
13621 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
13622 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
13623 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
13624 movmem to cpymem.
13625 * config/s390/s390-protos.h: Change movmem to cpymem.
13626 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
13627 s390_expand_insv): Change movmem to cpymem.
13628 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
13629 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
13630 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
13631 * config/sparc/sparc.h: Change movmem to cpymem in comment.
13632 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
13633 for nonexistent function.
13634 * config/vax/vax.h: Change movmem to cpymem in comment.
13635 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
13636 * config/visium/visium.h: Change movmem to cpymem in comment.
13637 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
13638 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
13639 * doc/md.texi: Change movmem to cpymem and update description to match.
13640 * doc/rtl.texi: Change movmem to cpymem.
13641 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
13642 * doc/tm.texi: Regenerate.
13643
13644 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
13645
13646 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
13647 -fvariable-expansion-in-unroller by default.
13648 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
13649 default for Power.
13650
13651 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
13652
13653 Revert
13654 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
13655 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
13656
13657 * config.gcc(rs6000-*-*): Define target_gtfiles.
13658
13659 2019-06-27 Jan Hubicka <jh@suse.cz>
13660
13661 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
13662 (add_type_duplicate): When odr hash is not allocated, to nothing.
13663 (odr_based_tbaa_p): New function.
13664 (set_type_canonical_for_odr_type): New function.
13665 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
13666 set_type_canonical_for_odr_type): New.
13667 * tree.c (gimple_canonical_types_compatible_p): ODR types with
13668 ODR based TBAA are not equivalent to non-ODR types.
13669
13670 2019-06-27 Martin Liska <mliska@suse.cz>
13671
13672 PR tree-optimization/90974
13673 PR rtl-optimization/90975
13674 PR rtl-optimization/90976
13675 PR target/91016
13676 PR tree-optimization/91017
13677 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
13678 unused tmp.
13679 * lra.c (lra_set_insn_recog_data): Remove a leftover from
13680 initial commit of IRA.
13681 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
13682 of op0 and op1.
13683 * tree-vect-loop.c (vect_create_epilog_for_reduction):
13684 Remove unused mode1.
13685 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
13686 to new_stmt_info.
13687
13688 2019-06-27 Jakub Jelinek <jakub@redhat.com>
13689
13690 PR target/90991
13691 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
13692 instead of register_operand for operands[1], add m to its constraints
13693 if operands[2] uses "C" constraint. Ensure in condition that if
13694 operands[2] is not 0, then operands[1] is not a MEM. For last two
13695 alternatives, use unaligned loads instead of aligned if operands[1] is
13696 misaligned_operand.
13697
13698 2019-06-27 Martin Liska <mliska@suse.cz>
13699
13700 * asan.c (asan_emit_allocas_unpoison): Remove obviously
13701 dead assignments.
13702 * bt-load.c (move_btr_def): Likewise.
13703 * builtins.c (expand_builtin_apply_args_1): Likewise.
13704 (expand_builtin_apply): Likewise.
13705 * cfgexpand.c (expand_asm_stmt): Likewise.
13706 (construct_init_block): Likewise.
13707 * cfghooks.c (verify_flow_info): Likewise.
13708 * cfgloopmanip.c (remove_path): Likewise.
13709 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
13710 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
13711 * combine.c (simplify_if_then_else): Likewise.
13712 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
13713 (choose_basereg): Likewise.
13714 (ix86_expand_prologue): Likewise.
13715 (ix86_preferred_output_reload_class): Likewise.
13716 * cselib.c (cselib_record_sets): Likewise.
13717 * df-scan.c (df_scan_alloc): Likewise.
13718 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
13719 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
13720 * emit-rtl.c (try_split): Likewise.
13721 * graphite-scop-detection.c (assign_parameter_index_in_region):
13722 Likewise.
13723 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
13724 * ira-color.c (setup_profitable_hard_regs): Likewise.
13725 * ira.c (rtx_moveable_p): Likewise.
13726 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
13727 * read-rtl.c (read_subst_mapping): Likewise.
13728 * regrename.c (scan_rtx): Likewise.
13729 * reorg.c (fill_slots_from_thread): Likewise.
13730 * tree-inline.c (tree_function_versioning): Likewise.
13731 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
13732 * tree-ssa-sink.c (statement_sink_location): Likewise.
13733 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
13734 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
13735 (vect_create_epilog_for_reduction): Likewise.
13736 * tree.c (build_nonstandard_integer_type): Likewise.
13737
13738 2019-06-27 Richard Biener <rguenther@suse.de>
13739
13740 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
13741
13742 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
13743
13744 PR tree-optimization/89772
13745 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
13746 out-of-bound accesses checking.
13747
13748 2019-06-27 Martin Liska <mliska@suse.cz>
13749
13750 PR tree-optimization/91014
13751 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
13752 when LHS is NULL_TREE.
13753
13754 2019-06-27 Martin Liska <mliska@suse.cz>
13755
13756 * symbol-summary.h (traverse): Pass
13757 argument a to the call of callback.
13758 (gt_ggc_mx): Mark arguments as unused.
13759 (gt_pch_nx): Likewise.
13760
13761 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
13762
13763 PR target/62147
13764 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
13765 finiteness.
13766
13767 2019-06-26 Jeff Law <law@redhat.com>
13768
13769 PR tree-optimization/90883
13770 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
13771 (delete_dead_or_redundant_assignment): Likewise.
13772
13773 PR tree-optimization/90883
13774 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
13775 * tree-ssa-dse.c: Update various comments to distinguish between
13776 dead and redundant stores.
13777 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
13778 (dse_optimize_redundant_stores): New function.
13779 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
13780 Distinguish between dead and redundant calls in dump output. All
13781 callers updated.
13782 (delete_dead_or_redundant_assignment): Similarly for assignments.
13783 (dse_optimize_stmt): Handle _CHK variants. For statements which
13784 store 0 into multiple memory locations, try to prove a subsequent
13785 store is redundant.
13786
13787 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
13788
13789 PR target/89021
13790 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
13791 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
13792
13793 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
13794
13795 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
13796 (branch_islands): New extern.
13797 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
13798 * config/rs6000/rs6000.c: .. here.
13799
13800 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
13801
13802 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
13803 (powerpc*-*-*) ... to here.
13804
13805 2019-06-26 Jeff Law <law@redhat.com>
13806
13807 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
13808 memcpy, memmove and memset builtins.
13809 (maybe_trim_memstar_call): Likewise.
13810
13811 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
13812
13813 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
13814
13815 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
13816
13817 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
13818
13819 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
13820
13821 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
13822 declaration.
13823 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
13824 "static".
13825 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
13826 declaration.
13827
13828 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
13829
13830 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
13831
13832 2019-06-26 Richard Biener <rguenther@suse.de>
13833
13834 PR ipa/90982
13835 * tree-inline.c (remap_ssa_name): Copy SSA range info.
13836
13837 2019-06-26 Richard Biener <rguenther@suse.de>
13838
13839 * lto-streamer.h (lto_bitmap_alloc): Remove.
13840 (lto_bitmap_free): Likewise.
13841 * lto-streamer.c (lto_bitmap_alloc): Remove.
13842 (lto_bitmap_free): Likewise.
13843 (lto_obstack): Likewise.
13844 (lto_obstack_initialized): Likewise.
13845 * lto-streamer-out.c (lto_output): Use own obstack for local
13846 bitmap, free it consistently.
13847
13848 2019-06-26 Jakub Jelinek <jakub@redhat.com>
13849
13850 PR target/90991
13851 * config/i386/sse.md
13852 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
13853 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
13854 insns if operands[2] is misaligned_operand.
13855
13856 2019-06-26 Li Jia He <helijia@linux.ibm.com>
13857
13858 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
13859 TARGET_POWERPC64.
13860 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
13861 to GPR.
13862
13863 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
13864
13865 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
13866
13867 2019-06-26 Martin Liska <mliska@suse.cz>
13868
13869 PR tree-optimization/90973
13870 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
13871 epilogue_cost_vec instead of prologue_cost_vec for
13872 a epilogue cost.
13873
13874 2019-06-26 Martin Liska <mliska@suse.cz>
13875
13876 * bb-reorder.c (connect_better_edge_p): Add missing else
13877 statement in the middle of if-else statements.
13878
13879 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
13880 H.J. Lu <hongjiu.lu@intel.com>
13881 Olga Makhotina <olga.makhotina@intel.com>
13882
13883 * common/config/i386/i386-common.c
13884 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
13885 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
13886 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
13887 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
13888 (ix86_handle_option): Handle -mavx512vp2intersect.
13889 * config/i386/avx512vp2intersectintrin.h: New.
13890 * config/i386/avx512vp2intersectvlintrin.h: New.
13891 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
13892 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13893 AVX512VP2INTERSECT.
13894 * config/i386/i386-builtin-types.def: Add new types.
13895 * config/i386/i386-builtin.def: Add new builtins.
13896 * config/i386/i386-builtins.c: (enum processor_features): Add
13897 F_AVX512VP2INTERSECT.
13898 (static const _isa_names_table isa_names_table): Ditto.
13899 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13900 __AVX512VP2INTERSECT__.
13901 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
13902 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
13903 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
13904 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
13905 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
13906 * config/i386/i386-options.c (ix86_target_string): Add
13907 -mavx512vp2intersect.
13908 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
13909 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
13910 P2HImode and P2QImode.
13911 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
13912 number for P2QImode and P2HImode.
13913 (ix86_regmode_natural_size): New function.
13914 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
13915 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
13916 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
13917 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
13918 * config/i386/i386.opt: Add -mavx512vp2intersect.
13919 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
13920 avx512vp2intersectvlintrin.h.
13921 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
13922 (define_mode_iterator VI48_AVX512VP2VL): New.
13923 (avx512vp2intersect_2intersect<mode>,
13924 avx512vp2intersect_2intersectv16si): New define_insn patterns.
13925 * config.gcc: Add avx512vp2intersectvlintrin.h and
13926 avx512vp2intersectintrin.h to extra_headers.
13927 * doc/invoke.texi: Document -mavx512vp2intersect.
13928
13929 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
13930
13931 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
13932
13933 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
13934
13935 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
13936 savres_routine_syms, savres_routine_name, morestack_ref,
13937 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
13938 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
13939 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
13940 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
13941 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
13942 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
13943 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
13944 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
13945 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
13946 get_stack_clash_protection_probe_interval,
13947 get_stack_clash_protection_guard_size,
13948 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
13949 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
13950 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
13951 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
13952 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
13953 gen_frame_mem_offset, rs6000_savres_routine_name,
13954 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
13955 ptr_regno_for_savres, rs6000_emit_savres_rtx,
13956 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
13957 rs6000_global_entry_point_prologue_needed_p,
13958 rs6000_get_separate_components, rs6000_components_for_bb,
13959 rs6000_disqualify_components, rs6000_emit_prologue_components,
13960 rs6000_emit_epilogue_components, rs6000_set_handled_components,
13961 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
13962 rs6000_output_savres_externs, rs6000_output_function_prologue,
13963 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
13964 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
13965 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
13966 rs6000_output_function_epilogue, gen_add3_const,
13967 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
13968 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
13969 to rs6000-logue.c.
13970 (machine_function): Moved to rs6000.h.
13971 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
13972 rs6000-internal.h.
13973 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
13974 savres_routine_syms, savres_routine_name, morestack_ref,
13975 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
13976 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
13977 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
13978 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
13979 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
13980 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
13981 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
13982 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
13983 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
13984 get_stack_clash_protection_probe_interval,
13985 get_stack_clash_protection_guard_size,
13986 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
13987 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
13988 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
13989 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
13990 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
13991 gen_frame_mem_offset, rs6000_savres_routine_name,
13992 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
13993 ptr_regno_for_savres, rs6000_emit_savres_rtx,
13994 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
13995 rs6000_global_entry_point_prologue_needed_p,
13996 rs6000_get_separate_components, rs6000_components_for_bb,
13997 rs6000_disqualify_components, rs6000_emit_prologue_components,
13998 rs6000_emit_epilogue_components, rs6000_set_handled_components,
13999 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14000 rs6000_output_savres_externs, rs6000_output_function_prologue,
14001 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14002 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14003 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14004 rs6000_output_function_epilogue, gen_add3_const,
14005 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14006 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14007 to here from rs6000.c.
14008 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14009 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14010 quad_address_offset_p) Moved to here from rs6000.c.
14011 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14012 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14013 collector.
14014
14015 2019-06-25 Martin Liska <mliska@suse.cz>
14016
14017 * hash-table.c (hashtab_chk_error): Move here from ...
14018 * hash-table.h (hashtab_chk_error): ... here.
14019
14020 2019-06-25 Martin Liska <mliska@suse.cz>
14021
14022 PR tree-optimization/90978
14023 * df-scan.c (df_update_entry_block_defs): Remove dead else
14024 branch.
14025 (df_update_exit_block_uses): Likewise.
14026
14027 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14028 Andrew Stubbs <ams@codesourcery.com>
14029
14030 * config.gcc (thread_file): Set to gcn for AMD GCN.
14031 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14032 (TARGET_EMUTLS_VAR_INIT): New hook.
14033
14034 2019-06-25 Martin Jambor <mjambor@suse.cz>
14035
14036 PR ipa/90939
14037 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14038
14039 2019-06-25 Richard Biener <rguenther@suse.de>
14040
14041 PR tree-optimization/90930
14042 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14043 into parallel form in the last pass instance.
14044
14045 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14046
14047 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14048 (arc_legitimize_pic_address): Simplify and cleanup the function.
14049 (SYMBOLIC_CONST): Remove.
14050 (prepare_pic_move): Likewise.
14051 (prepare_move_operands): Handle complex mov cases here.
14052 (arc_legitimize_address_0): Remove call to
14053 arc_legitimize_pic_address.
14054 (arc_legitimize_address): Remove call to
14055 arc_legitimize_tls_address.
14056 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14057 (movhi_insn): Likewise.
14058
14059 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14060
14061 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14062 PTRDIFF_TYPE.
14063 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14064 format of "__intN" types for UINTMAX_TYPE.
14065 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14066 format of "__intN" types for SIZETYPE.
14067 * tree.c (build_common_tree_nodes): Accept "__intN__"
14068 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14069 * doc/invoke.texi: Document that __intN__ disables pedantic
14070 warnings.
14071
14072 2019-06-25 Jan Hubicka <jh@suse.cz>
14073
14074 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14075 base2_alias_set is non-zero before doing TBAA based disambiguation.
14076
14077 2019-06-25 Martin Liska <mliska@suse.cz>
14078
14079 PR tree-optimization/90973
14080 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14081 of prologue and epilogue.
14082
14083 2019-06-24 Jan Hubicka <jh@suse.cz>
14084
14085 * ipa-utils.h (type_with_linkage_p): Verify that type is
14086 CXX_ODR_P.
14087 (odr_type_p): Remove extra return.
14088 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14089 hash STRING_FLAG only for arrays and integers.
14090 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14091 Update analogously.
14092 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14093 Likewise.
14094 * print-tree.c (print_node): Print cxx-odr-p
14095 and string-flag.
14096 * tree.c (need_assembler_name_p): Also check that type
14097 is CXX_ODR_TYPE_P
14098 (verify_type_variant): Update verification of SRING_FLAG;
14099 also check CXX_ODR_P.
14100 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14101 (TYPE_STRING_FLAG): Use it.
14102 (TYPE_CXX_ODR_P): New macro.
14103 * dwarf2out.c (gen_array_type_die): First check that type
14104 is an array and then test string flag.
14105
14106 2019-06-24 Richard Biener <rguenther@suse.de>
14107
14108 PR tree-optimization/90972
14109 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14110 in common code, dealing with STRING_CST properly.
14111
14112 2019-06-24 Richard Biener <rguenther@suse.de>
14113
14114 PR tree-optimization/90930
14115 PR tree-optimization/90316
14116 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14117 decrement of limit.
14118
14119 2019-06-24 Martin Sebor <msebor@redhat.com>
14120
14121 * tree-pretty-print.h: Remove unnecessary punctuation characters
14122 from a diagnostic.
14123 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14124
14125 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14126
14127 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14128 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14129 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14130
14131 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14132
14133 * config/rs6000/darwin.h: Handle GCC target pragma.
14134
14135 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14136
14137 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14138
14139 2019-06-22 Jeff Law <law@redhat.com>
14140
14141 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14142
14143 2019-06-22 Jan Hubicka <jh@suse.cz>
14144
14145 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14146 give up on bitfields; continue searching for different refs
14147 appearing later.
14148
14149 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14150
14151 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14152 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14153 containing the offset as possible simd lane access. Look through
14154 widening conversion. Move the
14155 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14156
14157 2019-06-21 Richard Biener <rguenther@suse.de>
14158
14159 PR tree-optimization/90930
14160 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14161 flag on new stmts to avoid re-processing them.
14162
14163 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14164
14165 PR c++/90875 - added -Wswitch-outside-range option
14166 * doc/invoke.texi (Wswitch-outside-range): Document.
14167
14168 2019-06-21 Jeff Law <law@redhat.com>
14169
14170 PR tree-optimization/90949
14171 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14172 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14173
14174 2019-06-21 Richard Biener <rguenther@suse.de>
14175
14176 PR debug/90914
14177 * dwarf2out.c (prune_unused_types_walk): Always consider
14178 function-local extern declarations as used.
14179
14180 2019-06-21 Richard Biener <rguenther@suse.de>
14181
14182 PR tree-optimization/90913
14183 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14184 the scalar variant of if-conversion versioning.
14185
14186 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14187
14188 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14189 create another "omp scan inscan exclusive" array if
14190 !ctx->scan_inclusive.
14191 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14192 (lower_omp_scan): Likewise.
14193 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14194 2-bit bitfield for simd_lane_access_p member.
14195 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14196 aux == (void *)-4 as simd lane access.
14197 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14198 comment with permutations to show the canonical permutation order.
14199 (vectorizable_scan_store): Handle exclusive scan.
14200 (vectorizable_store): Call vectorizable_scan_store even for
14201 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14202
14203 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14204 "omp simd array" arrays with one byte elements.
14205
14206 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14207
14208 * config/alpha/alpha.md (@unaligned_store<mode>):
14209 Rename from unaligned_store<mode>.
14210 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14211 * config/alpha/sync.md (@load_locked_<mode>): Rename
14212 from load_locked_<mode>.
14213 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14214 (@atomic_compare_and_swap<mode>_1): Rename
14215 from atomic_compare_and_swap<mode>_1.
14216 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14217 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14218 Use gen_reload_in_aligned and gen_unaligned_store.
14219 (emit_load_locked): Remove.
14220 (emit_store_conditional): Ditto.
14221 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14222 (alpha_split_compare_and_swap): Ditto.
14223 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14224 (alpha_split_compare_and_swap_12): Use gen_load_locked
14225 and gen_store_conditional.
14226 (alpha_split_atomic_exchange): Ditto.
14227 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14228 (alpha_split_atomic_exchange_12): Use gen_load_locked
14229 and gen_store_conditional.
14230
14231 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14232
14233 * config/aarch64/aarch64-errata.h: New file.
14234 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14235 (CA53_ERR_843419_SPEC): Delete.
14236 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14237 * config/aarch64/aarch64-linux.h: Likewise.
14238 * config/aarch64/aarch64-netbsd.h: Likewise.
14239 * config/aarch64/aarch64-freebsd.h: Likewise.
14240
14241 2019-06-20 Marek Polacek <polacek@redhat.com>
14242
14243 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14244
14245 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14246
14247 * config/rs6000/rs6000.md (isa attribute): Add support for
14248 for a future processor.
14249
14250 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14251
14252 PR target/54855
14253 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14254 standard scalar operation pattern for V2DF.
14255 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14256 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14257 (*ieee_<ieee_maxmin><mode>3): Likewise.
14258 (vec_setv2df_0): Likewise.
14259
14260 2019-06-20 Jan Hubicka <jh@suse.cz>
14261
14262 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14263 parameter; it has no use in gimple memory model.
14264 (indirect_ref_may_alias_decl_p): Update.
14265
14266 2019-06-20 Martin Liska <mliska@suse.cz>
14267
14268 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14269 to 10.
14270
14271 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14272
14273 * tree-vect-stmts.c (enum scan_store_kind): New type.
14274 (scan_store_can_perm_p): Change last argument from int * to
14275 vec<enum scan_store_kind> *, record precisely which permutations
14276 need whole vector left shift or that plus VEC_COND_EXPR.
14277 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14278 and additional VEC_COND_EXPR only for those iterations that need it.
14279
14280 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14281
14282 * config.gcc: Fix ARM --with-fpu checking and error message.
14283
14284 2019-06-19 Marek Polacek <polacek@redhat.com>
14285
14286 PR c++/60364 - noreturn after first decl not diagnosed.
14287 * attribs.c (get_attribute_namespace): No longer static.
14288 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14289 attributes.
14290 (attr_noreturn_exclusions): Make it extern.
14291 * attribs.h (get_attribute_namespace): Declare.
14292 * tree-inline.c (function_attribute_inlinable_p): Use
14293 get_attribute_name.
14294
14295 2019-06-19 Martin Sebor <msebor@redhat.com>
14296
14297 PR tree-optimization/90626
14298 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14299
14300 PR tree-optimization/90626
14301 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14302 (handle_builtin_string_cmp): Call it.
14303
14304 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14305
14306 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14307 and DARWIN_NOPIE_SPEC.
14308 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14309 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14310 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14311 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14312 (DARWIN_EXPORT_DYNAMIC): Delete.
14313 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14314 and pie options processing to darwin.h.
14315 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14316
14317 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14318
14319 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14320 in computing the number of options to be moved.
14321
14322 2019-06-19 Maya Rashish <coypu@sdf.org>
14323
14324 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14325 (CLEAR_INSN_CACHE) Use it.
14326
14327 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14328
14329 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14330
14331 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14332
14333 PR middle-end/84521
14334 * builtins.c (expand_builtin_setjmp_setup): Save
14335 hard_frame_pointer_rtx.
14336 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14337 restore fp.
14338 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14339 non-local goto.
14340 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14341 elimination code.
14342 (remove_reg_equal_offset_note): Remove unused function.
14343 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14344 code.
14345 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14346 (arc_builtin_setjmp_frame_value): Remove function.
14347 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14348 (avr_builtin_setjmp_frame_value): Remove function.
14349 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14350 (ix86_builtin_setjmp_frame_value): Remove function.
14351 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14352 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14353 (sparc_builtin_setjmp_frame_value): Remove function.
14354 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14355 (vax_builtin_setjmp_frame_value): Remove function.
14356 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14357 pointer if has_nonlocal_label.
14358
14359 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14360
14361 * doc/md.texi: Document vec_shl_<mode> pattern.
14362 * optabs.def (vec_shl_optab): New optab.
14363 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14364 argument, if == vec_shl_optab, check for left whole vector shift
14365 pattern rather than right shift.
14366 (expand_vec_perm_const): Add vec_shl_optab support.
14367 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14368 in the comment.
14369 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14370 can be handled by vec_shl_optab.
14371 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14372 (check_scan_store): Use it.
14373 (vectorizable_scan_store): If target can't do normal permutations,
14374 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14375 after it.
14376 * config/i386/sse.md (vec_shl_<mode>): New expander.
14377
14378 * omp-low.c (lower_rec_input_clauses): Handle references properly
14379 in inscan clauses.
14380 (lower_omp_scan): Likewise.
14381
14382 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14383
14384 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14385 mem_mode is BLKmode.
14386
14387 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14388
14389 PR target/90922
14390 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14391 pointer adjustment for the case of no callee-saved registers and
14392 stack frame bigger than 128 bytes.
14393
14394 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14395
14396 PR middle-end/90862
14397 * omp-low.c (check_omp_nesting_restrictions): Handle
14398 GF_OMP_TARGET_KIND_OACC_DECLARE.
14399
14400 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
14401
14402 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14403 (@add<mode>3_carry): Rename from add<mode>3_carry.
14404 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14405 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14406 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14407 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14408 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14409 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14410 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14411 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14412 (cmpstrnsi): Use gen_cmp_1.
14413 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14414 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14415 (@umonitor_<mode>): Rename from umonitor_<mode>.
14416 * config/i386/i386-expand.c (ix86_expand_copysign):
14417 Use gen_copysign3_const and gen_copysign3_var.
14418 (ix86_expand_xorsign): Use gen_xorsign3_1.
14419 (ix86_expand_branch): Use gen_sub3_carry_ccc,
14420 gen_sub3_carry_ccgz and gen_cmp1.
14421 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
14422 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
14423 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
14424 (ix86_split_lshr): Ditto.
14425 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
14426
14427 2019-06-18 Jason Merrill <jason@redhat.com>
14428
14429 * tree.c (build_constructor): Add MEM_STAT_DECL.
14430
14431 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14432
14433 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
14434 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
14435 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
14436 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
14437 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
14438 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
14439 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
14440 Use CC_NZC instead of CC.
14441 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
14442 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
14443 (aarch64_print_operand): Handle E_CC_NZCmode.
14444 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
14445 of gen_set_clobber_cc.
14446
14447 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14448
14449 * config/aarch64/aarch64-sve.md: Tabify file.
14450
14451 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14452
14453 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
14454 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
14455 * config/aarch64/aarch64-sve.md: Use it.
14456
14457 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14458
14459 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
14460 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
14461 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
14462 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
14463 (aarch64_expand_sve_vec_cmp_int): Use it.
14464 (aarch64_expand_sve_vec_cmp_float): Likewise.
14465 * config/aarch64/aarch64-sve.md: Likewise throughout.
14466
14467 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14468 Kugan Vivekanandarajah <kuganv@linaro.org>
14469
14470 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
14471 (*cond_<optab><mode>_z): Fold into...
14472 (*cond_<optab><mode>_any): ...here. Also handle cases in which
14473 operand 4 can be tied to operand 0 (either inherently or via RA).
14474
14475 2019-06-18 Richard Biener <rguenther@suse.de>
14476
14477 PR debug/90900
14478 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
14479 as if optimized away.
14480
14481 2019-06-18 Tom de Vries <tdevries@suse.de>
14482
14483 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
14484 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
14485 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
14486 Rename to ...
14487 (define_insn "@set_softstack_<mode>"): ... this.
14488 (define_insn "omp_simt_enter_<mode>"): Rename to ...
14489 (define_insn "@omp_simt_enter_<mode>"): ... this.
14490 (define_insn "omp_simt_exit_<mode>"): Rename to ...
14491 (define_insn "@omp_simt_exit_<mode>"): ... this.
14492
14493 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14494
14495 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
14496 vf parameter. Restore the previous iv step of nscalars_step,
14497 but give it iv_type rather than compare_type. Tweak code order
14498 to match the comments.
14499 (vect_set_loop_condition_masked): Update accordingly.
14500 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
14501 for iv_precision. Tweak comment formatting.
14502
14503 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14504
14505 * config/darwin.c: Strip trailing whitespace.
14506
14507 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14508
14509 * config/darwin.c (darwin_emit_unwind_label): New default to false.
14510 (darwin_override_options): Set darwin_emit_unwind_label as needed.
14511
14512 2019-06-18 Martin Jambor <mjambor@suse.cz>
14513
14514 PR ipa/90889
14515 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
14516 caller does not have flag_ipa_cp set.
14517
14518 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14519
14520 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
14521 from "*fold_left_plus_<mode>", updated operands order.
14522 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
14523 * internal-fn.c (mask_fold_left_direct): New define.
14524 (expand_mask_fold_left_optab_fn): Likewise.
14525 (direct_mask_fold_left_optab_supported_p): Likewise.
14526 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
14527 * optabs.def (mask_fold_left_plus_optab): New optab.
14528 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
14529 masked internal_fn for a reduction ifn.
14530 (vectorize_fold_left_reduction): Add support for masking reductions.
14531
14532 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
14533
14534 PR middle-end/80791
14535 * target.def (predict_doloop_p): New hook.
14536 * targhooks.h (default_predict_doloop_p): New declaration.
14537 * targhooks.c (default_predict_doloop_p): New function.
14538 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
14539 * doc/tm.texi: Regenerate.
14540 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
14541 (TARGET_PREDICT_DOLOOP_P): New macro.
14542 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
14543
14544 2019-06-17 Jakub Jelinek <jakub@redhat.com>
14545
14546 * omp-low.c (struct omp_context): Add scan_inclusive field.
14547 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
14548 if inclusive scan.
14549 (struct omplow_simd_context): Add lastlane member.
14550 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
14551 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
14552 1 or 2 argument.
14553 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
14554 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
14555 (lower_omp_scan): New function.
14556 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
14557 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
14558 check 3rd argument if present rather than 2nd.
14559 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
14560 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
14561 2-bit bitfield.
14562 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
14563 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
14564 than 2nd.
14565 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
14566 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
14567 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
14568 init.
14569 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
14570 IFN_GOMP_SIMD_LANE argument.
14571 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
14572 encoded ->aux value.
14573 * tree-vect-stmts.c: Include attribs.h.
14574 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
14575 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
14576 functions.
14577 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
14578 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
14579
14580 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
14581
14582 PR target/62055
14583 * config/i386/i386.md (*nabstf2_1): New insn pattern.
14584 (*nabs<mode>2_1): Ditto.
14585 (nabs sse-reg splitter): New splitter.
14586 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
14587
14588 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14589
14590 PR bootstrap/90873.
14591 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14592 TMR index check.
14593
14594 2019-06-17 Tom de Vries <tdevries@suse.de>
14595
14596 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
14597 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
14598 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
14599 ...
14600 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
14601 match_operand 0.
14602 (define_insn "omp_simt_enter_insn"): Rename to ...
14603 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
14604 match_operand 0, 1 and 2, as well as the unspec_volatile result.
14605 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
14606 gen_omp_simt_enter_si.
14607 (define_expand "omp_simt_exit"): New.
14608 (define_insn "omp_simt_exit"): Rename to ...
14609 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
14610 match_operand 0.
14611
14612 2019-06-17 Matthew Green <mrg@eterna.com.au>
14613 Maya Rashish <coypu@sdf.org>
14614
14615 * config.gcc (aarch64*-*-netbsd*): New target.
14616 * config/aarch64/aarch64-netbsd.h: New file.
14617 * config/aarch64/t-aarch64-netbsd: Likewise.
14618
14619 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14620
14621 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
14622 the access path from base to first VIEW_CONVERT_EXPR or
14623 BIT_FIELD_REF.
14624
14625 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14626
14627 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
14628 access path on BIT_FIELD_REFs.
14629
14630 2019-06-17 Martin Liska <mliska@suse.cz>
14631
14632 PR ipa/90874
14633 * ipa-utils.h (odr_type_p): Remove dead code.
14634
14635 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14636
14637 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
14638 alternative Solaris 11.4 format.
14639 * configure: Regenerate.
14640
14641 2019-06-17 Tom de Vries <tdevries@suse.de>
14642
14643 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
14644 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
14645 match_operand 0.
14646 (define_insn "call_value_insn"): Rename to ...
14647 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
14648 match_operand 0.
14649 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
14650 DI.
14651
14652 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
14653
14654 PR middle-end/64242
14655 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
14656 frame clobbers and schedule block.
14657 (builtin_longjmp): Likewise.
14658
14659 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14660
14661 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
14662 describe how to perform MSPABI compliant 64-bit shift.
14663 * config/msp430/msp430.md (ashldi3): New define_expand.
14664 (ashrdi3): New define_expand.
14665 (lshrdi3): New define_expand.
14666
14667 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14668
14669 * doc/sourcebuild.texi: Document new effective target keyword
14670 longlong64.
14671
14672 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
14673
14674 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
14675 indirect_refs_may_alias_p): Revert accidental commits.
14676
14677 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
14678 at the end of structures.
14679
14680 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
14681
14682 * config/darwin.c (machopic_indirect_call_target): Use renamed
14683 darwin_picsymbol_stubs to decide on output.
14684 (darwin_override_options): Handle darwin_picsymbol_stubs.
14685 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
14686 (LD64_VERSION): Revise default.
14687 * config/darwin.opt: (mpic-symbol-stubs): New option.
14688 (darwin_picsymbol_stubs): New variable.
14689 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
14690 rename to TARGET_MACHO_PICSYM_STUBS.
14691 * config/i386/i386.c (output_pic_addr_const): Likewise.
14692 * config/i386/i386.h Likewise.
14693 * config/rs6000/darwin.h: Likewise.
14694 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
14695 darwin_picsymbol_stubs.
14696
14697 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
14698
14699 * config/darwin.opt (prebind, noprebind, seglinkedit,
14700 noseglinkedit): Add RejectNegative.
14701
14702 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
14703
14704 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
14705 in my previous patch.
14706
14707 2019-06-16 Tom de Vries <tdevries@suse.de>
14708
14709 PR tree-optimization/89376
14710 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
14711
14712 2019-06-15 Maya Rashish <coypu@sdf.org>
14713
14714 * doc/invoke.texi (Spec Files): Update location of the
14715 Fortran spec file.
14716
14717 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
14718
14719 * doc/extend.texi (Common Function Attributes): Clarify
14720 no_sanitize. Fix grammar.
14721
14722 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
14723
14724 * tree-ssa-alias.c (alias_stats): Add
14725 nonoverlapping_component_refs_p_may_alias,
14726 nonoverlapping_component_refs_p_no_alias,
14727 nonoverlapping_component_refs_of_decl_p_may_alias,
14728 nonoverlapping_component_refs_of_decl_p_no_alias.
14729 (dump_alias_stats): Dump them.
14730 (nonoverlapping_component_refs_of_decl_p): Add stats.
14731 (nonoverlapping_component_refs_p): Add stats; do not stop on first
14732 ARRAY_REF.
14733
14734 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
14735
14736 * config/i386/i386.md (and<mode>3): Generate zero-extends for
14737 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
14738 only.
14739 (*anddi3_doubleword): Split before reload. Merge with
14740 anddi->zext pre-reload splitter.
14741 (*andndi3_doubleword): Split before reload.
14742 (*<code>di3_doubleword): Ditto.
14743 (*one_cmpldi2_doubleword): Ditto.
14744
14745 2019-06-15 Jakub Jelinek <jakub@redhat.com>
14746
14747 PR middle-end/90779
14748 * gimplify.c: Include omp-offload.h and context.h.
14749 (gimplify_bind_expr): Add "omp declare target" attributes
14750 to static block scope variables inside of target region or target
14751 functions.
14752
14753 2019-06-15 Tom de Vries <tdevries@suse.de>
14754
14755 PR tree-optimization/90009
14756 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
14757 Return NULL if bb contains IFN_UNIQUE.
14758
14759 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
14760
14761 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
14762 (un): New define_mode_attr.
14763 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
14764 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
14765 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
14766 merge into ...
14767 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
14768
14769 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
14770
14771 * config/darwin.opt: Add RejectNegative where needed, reorder
14772 and add minimal functional descriptions.
14773
14774 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
14775
14776 PR rtl-optimization/90765
14777 * calls.c (update_stack_alignment_for_call): New function.
14778 (expand_call): Call update_stack_alignment_for_call when
14779 outgoing parameter is passed in the stack.
14780 (emit_library_call_value_1): Likewise.
14781 * function.c (locate_and_pad_parm): Don't update
14782 stack_alignment_needed and preferred_stack_boundary.
14783
14784 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
14785
14786 PR target/90877
14787 * config/i386/i386-features.c
14788 (dimode_scalar_chain::compute_convert_gain): Replace
14789 mmxsse_to_integer with sse_to_integer.
14790 * config/i386/i386.c (ix86_register_move_cost): Verify that
14791 moves between MMX and non-MMX units require secondary memory.
14792 Correct costs of moves between SSE and integer units.
14793 * config/i386/i386.h (processor_costs): Rename cost of moving
14794 SSE register to integer to sse_to_integer. Rename cost of
14795
14796 2019-06-14 Matt Thomas <matt@3am-software.com>
14797 Matthew Green <mrg@eterna.com.au>
14798 Nick Hudson <skrll@netbsd.org>
14799 Maya Rashish <coypu@sdf.org>
14800 Richard Earnshaw <rearnsha@arm.com>
14801
14802 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
14803 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
14804 * config/arm/netbsd-eabi.h: New file.
14805 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
14806 redefining.
14807 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
14808 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
14809 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
14810 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
14811
14812 2019-06-14 Richard Biener <rguenther@suse.de>
14813
14814 * tree-loop-distribution.c (classify_partition): Return
14815 whether a reduction appeared in all partitions and do not
14816 stop builtin detection because of this.
14817 (distribute_loop): Sort a non-builtin partition last if
14818 there's a reduction in all partitions and make sure the
14819 partition prevailing as last is not a builtin.
14820
14821 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
14822
14823 PR ipa/90401
14824 * ipa-prop.c (add_to_agg_contents_list): New function.
14825 (clobber_by_agg_contents_list_p): Likewise.
14826 (extract_mem_content): Likewise.
14827 (get_place_in_agg_contents_list): Delete.
14828 (determine_known_aggregate_parts): Renamed from
14829 determine_locally_known_aggregate_parts. New parameter
14830 aa_walk_budget_p.
14831
14832 2019-06-13 Martin Sebor <msebor@redhat.com>
14833
14834 PR tree-optimization/90662
14835 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
14836 to the same type.
14837
14838 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
14839
14840 PR bootstrap/90873
14841 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
14842 dbase is not TARGET_MEM_REF.
14843
14844 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
14845
14846 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
14847 Update all uses.
14848 (and<mode>3): Use gen_extend_insn instead of indirect functions.
14849 Do not generate DImode extends for 32bit targets.
14850 (and->zext post-reload splitter): Use gen_extend_insn
14851 instead of indirect functions.
14852 (anddi->zext pre-reload splitter): New.
14853 (*zext<mode>_doubleword_and): Remove.
14854 (*zext<mode>_doubleword): Ditto.
14855 (*zextsi_doubleword): Dittto.
14856
14857 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
14858
14859 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
14860 Use gen_sub3_insn instead of indirect function.
14861 (ix86_expand_ashl_const): Use gen_add2_insn instead of
14862 indirect function.
14863 (ix86_adjust_counter): Ditto.
14864
14865 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
14866 Lijia He <helijia@linux.ibm.com>
14867
14868 PR tree-optimization/77820
14869 * tree-ssa-threadedge.c
14870 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
14871 function.
14872 (thread_across_edge): Add call to
14873 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
14874
14875 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
14876
14877 * config/darwin-driver.c (validate_macosx_version_min): New.
14878 (darwin_default_min_version): Cleanup and validate supplied version.
14879 (darwin_driver_init): Likewise and push cleaned version into opts.
14880
14881 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
14882
14883 PR tree-optimization/90869
14884 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
14885 converts in MEM_REF referencing decl rather than view converts
14886 from decl type to MEM_REF type.
14887
14888 2019-06-13 Richard Biener <rguenther@suse.de>
14889
14890 PR tree-optimization/90856
14891 * tree-sra.c (build_ref_for_model): Only use
14892 build_reconstructed_reference when address-spaces are the same.
14893
14894 2019-06-13 Jakub Jelinek <jakub@redhat.com>
14895
14896 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
14897 wrap ei variable name in the declaration in ()s.
14898 (nvptx_single): Actually use mode_label variable. Formatting fix.
14899
14900 2019-06-13 Richard Biener <rguenther@suse.de>
14901
14902 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
14903 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
14904 also return the condition stmt.
14905 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
14906 loop we can version and version that, reusing the loop version
14907 created by if-conversion instead of versioning again.
14908
14909 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
14910
14911 * gimple-loop-versioning.cc (prune_loop_conditions): Use
14912 may_contain_p.
14913 * tree-vrp (value_range_base::may_contain_p): Call into
14914 value_inside_range.
14915 (value_inside_range): Make private inside value_range_base class.
14916 Take min/max from *this.
14917 (range_includes_p): Remove.
14918 * tree-vrp.h (value_range_base): Add value_inside_range.
14919 (range_includes_p): Remove.
14920 (range_includes_zero_p): Call may_contain_p.
14921 * vr-values.c (compare_range_with_value): Same.
14922
14923 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
14924
14925 * doc/extend.texi (ARC Function Attributes): Update info.
14926
14927 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
14928
14929 PR tree-optimization/89713
14930 * doc/invoke.texi (-ffinite-loops): Document new option.
14931 * common.opt (-ffinite-loops): New option.
14932 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
14933 IFN_GOACC_LOOP calls as necessary.
14934 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
14935 is finite.
14936 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
14937 IFN_GOACC_LOOP call is not used.
14938 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
14939
14940 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14941
14942 PR target/88838
14943 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
14944 compare_type is not with Pmode size, we will create an IV with
14945 Pmode size with truncated use (i.e. converted to the correct type).
14946 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
14947 (vect_iv_limit_for_full_masking): New. Factored out of
14948 vect_set_loop_condition_masked.
14949 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
14950 (vect_iv_limit_for_full_masking): Declare.
14951
14952 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14953
14954 PR target/88834
14955 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
14956 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
14957 (get_alias_ptr_type_for_ptr_address): Likewise.
14958 (add_iv_candidate_for_use): Add scaled index candidate if useful.
14959 * tree-ssa-address.c (preferred_mem_scale_factor): New.
14960 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
14961 allow_reg_index_p.
14962
14963 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14964
14965 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
14966
14967 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
14968
14969 * common/config/pru/pru-common.c: New file.
14970 * config.gcc: Add PRU target.
14971 * config/pru/alu-zext.md: New file.
14972 * config/pru/constraints.md: New file.
14973 * config/pru/predicates.md: New file.
14974 * config/pru/pru-opts.h: New file.
14975 * config/pru/pru-passes.c: New file.
14976 * config/pru/pru-pragma.c: New file.
14977 * config/pru/pru-protos.h: New file.
14978 * config/pru/pru.c: New file.
14979 * config/pru/pru.h: New file.
14980 * config/pru/pru.md: New file.
14981 * config/pru/pru.opt: New file.
14982 * config/pru/t-pru: New file.
14983 * doc/extend.texi: Document PRU pragmas.
14984 * doc/invoke.texi: Document PRU-specific options.
14985 * doc/md.texi: Document PRU asm constraints.
14986
14987 2019-06-12 Martin Sebor <msebor@redhat.com>
14988
14989 PR middle-end/90676
14990 * tree-pretty-print.c (dump_mem_ref): New function. Include
14991 MEM_REF type in output when different size than operand.
14992 (dump_generic_node): Move code to dump_mem_ref and call it.
14993
14994 2019-06-12 Martin Sebor <msebor@redhat.com>
14995
14996 PR tree-optimization/90662
14997 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
14998 to arrays.
14999
15000 2019-06-12 Tom de Vries <tdevries@suse.de>
15001
15002 PR tree-optimization/90009
15003 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15004
15005 2019-06-12 Martin Liska <mliska@suse.cz>
15006
15007 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15008 the created map.
15009 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15010 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15011 Do not sanitize created maps.
15012
15013 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15014
15015 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15016 value_range::singleton_p.
15017 * tree-vrp.c (value_range_constant_singleton): Remove.
15018 * tree-vrp.h (value_range_constant_singleton): Remove.
15019 * vr-values.c (vr_values::singleton): Use
15020 value_range::singleton_p.
15021
15022 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15023
15024 PR target/90811
15025 * cfgexpand.c (align_local_variable): Add really_expand argument,
15026 don't SET_DECL_ALIGN if it is false.
15027 (add_stack_var): Add really_expand argument, pass it through to
15028 align_local_variable.
15029 (expand_one_stack_var_1): Pass true as really_expand to
15030 align_local_variable.
15031 (expand_one_ssa_partition): Pass true as really_expand to
15032 add_stack_var.
15033 (expand_one_var): Pass really_expand through to add_stack_var.
15034
15035 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15036
15037 * config/arm/iterators.md (VABAL): New int iterator.
15038 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15039 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15040 UNSPEC_VABAL_U values.
15041
15042 2019-06-12 Martin Liska <mliska@suse.cz>
15043
15044 * value-prof.c (stream_out_histogram_value): Only first value
15045 can't be negative.
15046
15047 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15048
15049 PR c/90760
15050 * symtab.c (symtab_node::set_section): Allow being called on aliases
15051 as long as they aren't analyzed yet.
15052
15053 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15054
15055 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15056 to `mips_set_text_contents_type' to indicate whether a
15057 non-debug insn follows.
15058
15059 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15060
15061 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15062 enabling -mpcrel by default.
15063 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15064 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15065 that the test against -mcpu=future is done first. Then test if
15066 -mprefixed-addr is on for -mpcrel.
15067 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15068
15069 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15070
15071 PR target/90811
15072 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15073 instead of and.u%d.
15074
15075 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15076
15077 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15078
15079 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15080
15081 PR c++/90449 - add -Winaccessible-base option.
15082 * doc/invoke.texi (Winaccessible-base): Document.
15083
15084 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15085
15086 PR tree-optimization/62041
15087 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15088
15089 2019-06-11 Jason Merrill <jason@redhat.com>
15090
15091 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15092 * tree.c (get_tree_code_name): Likewise.
15093 * print-tree.c (print_node): Only briefly print a node with an
15094 invalid code.
15095
15096 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15097
15098 PR bootstrap/90819
15099 * trans-mem.c (tm_memopt_compute_available): Add assertion
15100 that blocks is not empty. Formatting fix.
15101
15102 2019-06-11 Martin Liska <mliska@suse.cz>
15103
15104 PR c++/87847
15105 * hash-table.h: Extend create_gcc, add one parameter
15106 that is passed into hash_table::hash_table.
15107
15108 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15109
15110 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15111 New prototype.
15112 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15113 Emit clobber also for non-sse operations.
15114 (ix86_split_fp_absneg_operator): New function.
15115 * config/i386/i386.md (SSEMODEF): New mode iterator.
15116 (ssevecmodef): New mode attribute.
15117 (<code>tf2): Use absneg code iterator.
15118 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15119 Add three-operand AVX alternatives.
15120 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15121 Use absneg code iterator and X87MODEF mode iterator.
15122 (absneg fp_reg non-sse splitter): Call absneg code iterator
15123 and X87MODEF mode iterator.
15124 (absneg general_reg non-sse splitter): Use absneg code iterator
15125 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15126 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15127 code iterator. Add three-operand AVX alternative.
15128 (absneg sse_reg splitter): Use absneg code iterator
15129 and SSEMODEF mode iterator. Handle AVX operands.
15130 (absneg fp_reg splitter): Use absneg code iterator
15131 and MODEF mode iterator.
15132 (absneg general_reg splitter): Merge splitters using MODEF mode
15133 iterator. Use absneg code iterator. Call
15134 ix86_split_fp_absneg_operator.
15135 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15136 Do not enable for non-sse modes before reload.
15137 (CSGNMODE): Remove.
15138 (CSGNVMODE): Ditto.
15139 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15140 ssevecmodef mode attribute instaed of CSGNVMODE.
15141 (copysign<mode>3_const): Ditto.
15142 (copysign<mode>3_var): Ditto.
15143 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15144 Use absneg code iterator. Simplify code using std::swap.
15145 * config/i386/predicates.md (absneg_operator): Remove.
15146
15147 2019-06-10 Martin Sebor <msebor@redhat.com>
15148
15149 * gimple-fold.c (get_range_strlen): Update comment that didn't
15150 make it into r267503 or related commits.
15151
15152 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15153
15154 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15155 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15156
15157 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15158
15159 * tree.def (OMP_SCAN): New tree code.
15160 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15161 OMP_CLAUSE_EXCLUSIVE.
15162 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15163 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15164 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15165 OMP_CLAUSE_{IN,EX}CLUSIVE.
15166 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15167 * tree-nested.c (convert_nonlocal_reference_stmt,
15168 convert_local_reference_stmt, convert_gimple_call): Handle
15169 GIMPLE_OMP_SCAN.
15170 * tree-pretty-print.c (dump_omp_clause): Handle
15171 OMP_CLAUSE_{IN,EX}CLUSIVE.
15172 (dump_generic_node): Handle OMP_SCAN.
15173 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15174 * gimple.h (gomp_scan): New type.
15175 (is_a_helper <gomp_scan *>::test,
15176 is_a_helper <const gomp_scan *>::test): New templates.
15177 (gimple_build_omp_scan): Declare.
15178 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15179 gimple_omp_scan_set_clauses): New inline functions.
15180 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15181 * gimple.c (gimple_build_omp_scan): New function.
15182 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15183 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15184 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15185 GIMPLE_OMP_TASKGROUP.
15186 (dump_gimple_omp_scan): New function.
15187 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15188 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15189 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15190 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15191 (is_gimple_stmt): Handle OMP_SCAN.
15192 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15193 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15194 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15195 mentioned in nested #pragma omp scan. Handle
15196 OMP_CLAUSE_{IN,EX}CLUSIVE.
15197 (gimplify_expr): Handle OMP_SCAN.
15198 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15199 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15200 simd constructs.
15201 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15202 GIMPLE_OMP_SCAN.
15203
15204 2019-06-10 Martin Liska <mliska@suse.cz>
15205
15206 * ipa-cp.c (ignore_edge_p): New function.
15207 (build_toporder_info): Use it.
15208 * ipa-inline.c (ignore_edge_p): New function.
15209 (inline_small_functions): Use it.
15210 * ipa-pure-const.c (ignore_edge_for_nothrow):
15211 Verify opt_for_fn for caller and callee.
15212 (ignore_edge_for_pure_const): Likewise.
15213 * ipa-reference.c (ignore_edge_p): Extend to check
15214 for opt_for_fn.
15215 * ipa-utils.c (searchc): Refactor.
15216 * ipa-utils.h: Fix coding style.
15217
15218 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15219
15220 * config/arc/arc.c (arc_rtx_costs): Update costs.
15221
15222 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15223
15224 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15225 (arc_split_ior): Likewise.
15226 (arc_check_mov_const): Likewise.
15227 (arc_split_mov_const): Likewise.
15228 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15229 (arc_rtx_costs): Replace check Crr with Cax constraint.
15230 (prepare_move_operands): Cleanup, remove unused code.
15231 (arc_split_ior): New function.
15232 (arc_check_ior_const): Likewise.
15233 (arc_split_mov_const): Likewise.
15234 (arc_check_mov_const): Likewise.
15235 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15236 in define_insn_and_split pattern.
15237 (iorsi3): Likewise.
15238 (mulsi3_v2): Add new matching variant.
15239 (andsi3_i): Cleanup pattern.
15240 (rotrsi3_cnt1): Update pattern.
15241 (rotrsi3_cnt8): New pattern.
15242 (ashlsi2_cnt8): Likewise.
15243 (ashlsi2_cnt16): Likewise.
15244 * config/arc/constraints.md (C0p): Update constraint.
15245 (Crr): Remove it.
15246 (C0x): New pattern.
15247 (Cax): New pattern.
15248
15249 2019-06-10 Martin Liska <mliska@suse.cz>
15250
15251 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15252 Update coding style.
15253 (sem_item_optimizer::dump_cong_classes):
15254 Print how many items are in a non-singular class. Improve
15255 coding style.
15256
15257 2019-06-10 Martin Liska <mliska@suse.cz>
15258
15259 * value-prof.c (dump_histogram_value): Change dump format.
15260 (gimple_mod_subtract_transform): Remove legacy comment.
15261
15262 2019-06-10 Martin Liska <mliska@suse.cz>
15263
15264 * value-prof.c (dump_histogram_value): Print histogram values
15265 only if present.
15266
15267 2019-06-10 Martin Liska <mliska@suse.cz>
15268
15269 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15270 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15271 * ipa-profile.c (ipa_profile_generate_summary):
15272 Use get_most_common_single_value.
15273 * tree-profile.c (gimple_init_gcov_profiler):
15274 Instrument with __gcov_one_value_profiler_v2
15275 and __gcov_indirect_call_profiler_v4.
15276 * value-prof.c (dump_histogram_value):
15277 Print all values for HIST_TYPE_SINGLE_VALUE.
15278 (stream_out_histogram_value): Update assert for
15279 N values.
15280 (stream_in_histogram_value): Set number of
15281 counters for HIST_TYPE_SINGLE_VALUE.
15282 (get_most_common_single_value): New.
15283 (gimple_divmod_fixed_value_transform):
15284 Use get_most_common_single_value.
15285 (gimple_ic_transform): Likewise.
15286 (gimple_stringops_transform): Likewise.
15287 (gimple_find_values_to_profile): Set number
15288 of counters for HIST_TYPE_SINGLE_VALUE.
15289 * value-prof.h (get_most_common_single_value): New.
15290
15291 2019-06-10 Martin Liska <mliska@suse.cz>
15292
15293 * hash-map.h: Pass default value to hash_table ctor.
15294 * hash-table.h: Add default value to call of a ctor.
15295
15296 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15297
15298 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15299 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15300
15301 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15302
15303 PR target/90751
15304 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15305 Call pa_output_function_label.
15306 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15307 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15308 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15309 to declaration.
15310 (pa_linux_output_function_prologue): Declare.
15311 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15312 (pa_output_function_label): New.
15313 (pa_output_function_prologue): Revise to use pa_output_function_label.
15314 (pa_linux_output_function_prologue): New.
15315 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15316
15317 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15318
15319 * tree-vrp.h (value_range_base::intersect): New.
15320 (value_range::intersect_helper): Move from here...
15321 (value_range_base::intersect_helper): ...to here.
15322 * tree-vrp.c (value_range::intersect_helper): Rename to...
15323 (value_range_base::intersect_helper): ...this, and rewrite to
15324 return a value instead of modifying THIS in place.
15325 Also, move equivalence handling...
15326 (value_range::intersect): ...here, while calling intersect_helper.
15327 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15328 calling intersect.
15329 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15330 Same.
15331 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15332
15333 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15334
15335 * Makefile.in (genprogerr): Add condmd.
15336 (genprog): Remove it here.
15337
15338 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15339
15340 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15341
15342 2019-06-07 Richard Biener <rguenther@suse.de>
15343
15344 PR debug/90574
15345 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15346 that appear after user labels.
15347
15348 2019-06-07 Martin Liska <mliska@suse.cz>
15349
15350 * cselib.c (cselib_init): Disable hash table
15351 sanitization.
15352 * hash-set.h: Pass new default argument to m_table.
15353 * hash-table.c: Add global variable with hash table
15354 sanitization limit.
15355 * hash-table.h (Allocator>::hash_table): Add new argument
15356 to ctor.
15357 (hashtab_chk_error): New.
15358 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15359 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15360 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15361
15362 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15363
15364 * common.opt (flto-odr-type-merging): Ignore.
15365 * invoke.texi (-flto-odr-type-merging): Remove.
15366 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15367 (can_be_vtable_hashed_p): Remove.
15368 (hash_odr_vtable): Remove.
15369 (odr_vtable_hasher::hash): Remove.
15370 (types_same_for_odr): Remove.
15371 (types_odr_comparable): Remove.
15372 (odr_vtable_hasher::equal): Remove.
15373 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15374 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15375 (get_odr_type): Do not use vtable hash.
15376 (dump_odr_type): Remove commented out code.
15377 (build_type_inheritance_graph): Do not allocate vtable hash.
15378 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15379 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15380 (odr_type_p): Likewise.
15381 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15382 test.
15383
15384 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15385
15386 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15387 immediately after same_types_for_tbaa_p returns -1 and continue
15388 looking for possible exact match; if matching types are arrays
15389 watch for partial overlaps.
15390 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15391 (indirect_refs_may_alias_p): Do type based disambiguation first;
15392 update comment.
15393
15394 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15395
15396 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15397
15398 2019-06-07 Martin Liska <mliska@suse.cz>
15399
15400 * doc/invoke.texi: Remove param.
15401 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15402 Remove.
15403 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15404 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15405 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15406 * profile.c (instrument_values): Remove
15407 HIST_TYPE_INDIR_CALL_TOPN.
15408 * tree-profile.c (init_ic_make_global_vars):
15409 Always build __gcov_indirect_call only.
15410 (gimple_init_gcov_profiler): Remove usage
15411 of PARAM_INDIR_CALL_TOPN_PROFILE.
15412 (gimple_gen_ic_profiler): Likewise.
15413 * value-prof.c (dump_histogram_value): Likewise.
15414 (stream_in_histogram_value): Likewise.
15415 (gimple_indirect_call_to_profile): Likewise.
15416 (gimple_find_values_to_profile): Likewise.
15417 * value-prof.h (enum hist_type): Likewise.
15418
15419 2019-06-07 Martin Liska <mliska@suse.cz>
15420
15421 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
15422 function.
15423
15424 2019-06-07 Martin Liska <mliska@suse.cz>
15425
15426 PR tree-optimization/78902
15427 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
15428 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
15429 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15430 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15431 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
15432 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15433 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
15434 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
15435 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15436 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15437 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15438 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
15439 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
15440 New.
15441 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
15442 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
15443 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
15444 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15445 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15446 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
15447 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15448 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15449 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
15450 warn_unused_result attribute.
15451 (BUILT_IN_STRDUP): Likewise.
15452 (BUILT_IN_STRNDUP): Likewise.
15453 (BUILT_IN_ALLOCA): Likewise.
15454 (BUILT_IN_CALLOC): Likewise.
15455 (BUILT_IN_MALLOC): Likewise.
15456 (BUILT_IN_REALLOC): Likewise.
15457
15458 2019-06-06 Jim Wilson <jimw@sifive.com>
15459
15460 PR target/89955
15461 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
15462 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
15463 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
15464
15465 2019-06-06 Martin Sebor <msebor@redhat.com>
15466
15467 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
15468 (handle_builtin_malloc): Remove trailing spaces.
15469 (handle_builtin_memset): Same.
15470 (handle_builtin_memcmp): Same.
15471 (compute_string_length): Same.
15472 (determine_min_objsize): Same.
15473 (handle_builtin_string_cmp): Same.
15474 (handle_char_store): Same. Break up excessively long line.
15475
15476 2019-06-06 Martin Jambor <mjambor@suse.cz>
15477
15478 * tree-sra.c (build_reconstructed_reference): Drop the alignment
15479 check.
15480
15481 2019-06-06 Martin Jambor <mjambor@suse.cz>
15482
15483 * tree-sra.c (struct access): New field grp_same_access_path.
15484 (dump_access): Dump it.
15485 (build_reconstructed_reference): New function.
15486 (build_ref_for_model): Use it if possible.
15487 (path_comparable_for_same_access): New function.
15488 (same_access_path_p): Likewise.
15489 (sort_and_splice_var_accesses): Set the new flag.
15490 (analyze_access_subtree): Likewise.
15491 (propagate_subaccesses_across_link): Propagate zero value of the new
15492 flag down the access tree.
15493
15494 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
15495
15496 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
15497 * config/gcn/gcn.opt (gpu_type): Add gfx906.
15498 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
15499 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
15500 Add gfx906.
15501
15502 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15503
15504 PR tree-optimization/90332
15505 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
15506 Handle VALS containing two vectors.
15507 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
15508 to...
15509 (@aarch64_combinez<mode>): ... This.
15510 (*aarch64_combinez_be<mode>): Rename to...
15511 (@aarch64_combinez_be<mode>): ... This.
15512 (vec_init<mode><Vhalf>): New define_expand.
15513 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
15514
15515 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15516
15517 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
15518 library functions only when not optimizing for size.
15519 (ashlsi3): Likewise.
15520 (ashrhi3): Likewise.
15521 (ashrsi3): Likewise.
15522 (lshrhi3): Likewise.
15523 (lshrsi3): Likewise.
15524
15525 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
15526
15527 PR rtl-optimization/88751
15528 * ira.c (ira): Use the number of the actually referenced registers
15529 when calculating the threshold.
15530
15531 2019-06-06 Jakub Jelinek <jakub@redhat.com>
15532
15533 * configure: Regenerate.
15534
15535 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15536
15537 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
15538 register if it is in memory, so the shift can be emulated with a rotate
15539 instruction.
15540 (ashrhi3): Likewise.
15541 (lshrhi3): Likewise.
15542
15543 2019-06-06 Martin Liska <mliska@suse.cz>
15544
15545 PR tree-optimization/87954
15546 * match.pd: Simplify mult where both arguments are 0 or 1.
15547
15548 2019-06-06 Richard Biener <rguenther@suse.de>
15549
15550 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
15551 put equivalences on UNDEFINED ranges.
15552 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15553 Make sure to drop defs of stmts added during simplification
15554 to VARYING.
15555
15556 2019-06-06 Richard Biener <rguenther@suse.de>
15557
15558 * tree-ssa-structalias.c: Include tree-cfg.h.
15559 (make_heapvar): Do not make heap vars artificial.
15560 (find_func_aliases_for_builtin_call): Handle stack allocation
15561 functions.
15562 (find_func_aliases): Delay processing of simple enough returns
15563 in non-IPA mode.
15564 (set_uids_in_ptset): Adjust.
15565 (find_what_var_points_to): Likewise.
15566 (solve_constraints): Do not dump points-to sets here.
15567 (compute_points_to_sets): Post-process return statements,
15568 amending the escaped solution. Dump points-to sets afterwards.
15569 (ipa_pta_execute): Dump points-to sets.
15570
15571 2019-06-06 Martin Liska <mliska@suse.cz>
15572
15573 PR web/87933
15574 * doc/install.texi: Fix HTML headers and
15575 titles for 'Installing GCC' pages.
15576
15577 2019-06-06 Martin Liska <mliska@suse.cz>
15578
15579 * ipa-icf-gimple.h (dump_message_1): Remove.
15580 (dump_message): Likewise.
15581 (return_false_with_message_1): Print also file.
15582 (return_false_with_msg): Likewise.
15583 (return_with_result): Likewise.
15584 (return_with_debug): Likewise.
15585 * ipa-icf.c (sem_function::equals_private): Remove call
15586 to dump_message.
15587
15588 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
15589
15590 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
15591 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
15592 memory operand for it.
15593 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
15594
15595 2019-06-05 Martin Sebor <msebor@redhat.com>
15596
15597 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
15598 Adjust quoting and hyphenation.
15599 * convert.c (convert_to_real_1): Same.
15600 * gcc.c (driver_wrong_lang_callback): Same.
15601 (driver::handle_unrecognized_options): Same.
15602 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
15603 * opts-common.c (cmdline_handle_error): Same.
15604 (read_cmdline_option): Same.
15605 * opts-global.c (complain_wrong_lang): Same.
15606 (print_ignored_options): Same.
15607 (handle_common_deferred_options): Same.
15608 * pretty-print.h: Same.
15609 * print-rtl.c (debug_bb_n_slim): Same.
15610 * sched-rgn.c (make_pass_sched_fusion): Same.
15611 * tree-cfg.c (verify_gimple_assign_unary): Same.
15612 (verify_gimple_label): Same.
15613 * tree-ssa-operands.c (verify_ssa_operands): Same.
15614 * varasm.c (do_assemble_alias): Same.
15615 (assemble_alias): Same.
15616
15617 2019-06-05 Richard Henderson <rth@twiddle.net>
15618
15619 * config/alpha/alpha.c (direct_return): Move down after
15620 struct machine_function definition; use saved frame_size;
15621 return bool.
15622 (struct machine_function): Add sa_mask, sa_size, frame_size.
15623 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
15624 (alpha_compute_frame_layout): ... new function.
15625 (TARGET_COMPUTE_FRAME_LAYOUT): New.
15626 (alpha_initial_elimination_offset): Use saved sa_size.
15627 (alpha_vms_initial_elimination_offset): Likewise.
15628 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
15629 (alpha_expand_prologue): Use saved frame data. Merge integer
15630 and fp register save loops.
15631 (alpha_expand_epilogue): Likewise.
15632 (alpha_start_function): Use saved frame data.
15633 * config/alpha/alpha-protos.h (direct_return): Update.
15634 (alpha_sa_size): Remove.
15635
15636 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
15637
15638 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
15639 multiplication by a power-of-two value.
15640 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
15641 and turn the modulo operation into a masking operation.
15642
15643 2019-06-05 Jakub Jelinek <jakub@redhat.com>
15644
15645 PR debug/90733
15646 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
15647 with VOIDmode inner operands.
15648
15649 2019-06-05 Richard Biener <rguenther@suse.de>
15650
15651 PR middle-end/90726
15652 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
15653 turn an expression graph into a tree.
15654
15655 2019-06-05 Jakub Jelinek <jakub@redhat.com>
15656
15657 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
15658 member.
15659 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
15660 treat it like explicit monotonic schedule modifier.
15661 (expand_omp_for): Initialize has_lastprivate_conditional.
15662 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
15663 schedule modifier.
15664
15665 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
15666 references, lookup in in hash map MEM_REF operand instead of the
15667 MEM_REF itself.
15668 (lower_omp_1): When looking for lastprivate conditional assignments,
15669 handle MEM_REFs with REFERENCE_TYPE operands.
15670
15671 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
15672 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
15673 and references a VLA. Handle references to non-VLAs if is_simd
15674 all privatization clauses like reductions.
15675 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
15676 If omp_is_reference, use always omp simd arrays and set
15677 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
15678 fails, emit reference initialization.
15679
15680 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
15681
15682 PR target/89803
15683 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
15684 _mm_mask_fpclass_sd_mask): New intrinsics.
15685 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
15686 * config/i386/i386-builtin.def
15687 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
15688 New builtins.
15689 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
15690 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
15691 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
15692 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
15693 case QI_FTYPE_V2SF_INT): Ditto.
15694 * config/i386/sse.md
15695 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
15696 Extended to insnstructions with mask operands.
15697
15698 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15699
15700 * config/rs6000/constraints.md (define_register_constraint "wp"):
15701 Delete.
15702 (define_register_constraint "wq"): Delete.
15703 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15704 (rs6000_init_hard_regno_mode_ok): Adjust.
15705 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15706 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
15707 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
15708 (define_mode_attr VSa): Delete.
15709 (define_mode_attr VSisa): New.
15710 (rest of file): Adjust.
15711 * doc/md.texi (Machine Constraints): Adjust.
15712
15713 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15714
15715 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
15716 (define_attr "enabled"): Handle those new isa values.
15717
15718 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15719
15720 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
15721 (define_mode_attr VSr5): Delete.
15722 (define_mode_attr VStype_sqrt): Delete.
15723 (define_mode_iterator VSX_SPDP): Delete.
15724 (define_mode_attr VS_spdp_res): Delete.
15725 (define_mode_attr VS_spdp_insn): Delete.
15726 (define_mode_attr VS_spdp_type): Delete.
15727 (*vsx_sqrt<mode>2): Adjust.
15728 (vsx_<VS_spdp_insn>): Delete, split to...
15729 (vsx_xscvdpsp): ... this. New. And...
15730 (vsx_xvcvspdp): ... this. New. And...
15731 (vsx_xvcvdpsp): ... this. New.
15732
15733 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15734
15735 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
15736 and V2DF.
15737 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
15738 (rest of file): Adjust.
15739
15740 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15741
15742 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
15743 (vsx_extract_<mode>_var): Ditto.
15744
15745 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15746
15747 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
15748 with just "wa".
15749
15750 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15751
15752 * config/rs6000/constraints.md (define_register_constraint "ww"):
15753 Delete.
15754 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15755 (rs6000_init_hard_regno_mode_ok): Adjust.
15756 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15757 RS6000_CONSTRAINT_ww.
15758 * config/rs6000/rs6000.md: Adjust.
15759 * config/rs6000/vsx.md: Adjust.
15760 * doc/md.texi (Machine Constraints): Adjust.
15761
15762 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15763
15764 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
15765 (define_mode_attr sd): New.
15766 (define_mode_attr s): New.
15767 (define_mode_attr Ftrad): Delete.
15768 (define_mode_attr Fvsx): Delete.
15769 (define_mode_attr Fs): Delete.
15770 (rest of file): Use the new mode attributes.
15771 * config.rs6000/vsx.md: Use the new mode attributes.
15772
15773 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15774
15775 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
15776 with just "wa".
15777
15778 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15779
15780 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
15781 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
15782 used with VSX_B, VSX_D, or VSX_F, with just "wa".
15783
15784 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
15785
15786 PR target/78263
15787 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
15788 C++ with strict ANSI requirements.
15789
15790 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
15791
15792 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
15793 computations when step is 1.
15794
15795 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15796
15797 * config/rs6000/constraints.md (define_register_constraint "wf"):
15798 Delete.
15799 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15800 (rs6000_init_hard_regno_mode_ok): Adjust.
15801 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15802 RS6000_CONSTRAINT_wf.
15803 * config/rs6000/rs6000.md: Adjust.
15804 * config/rs6000/vsx.md: Adjust.
15805 * doc/md.texi (Machine Constraints): Adjust.
15806
15807 2019-06-04 Andrew Pinski <apinski@marvell.com>
15808
15809 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
15810 Fix ILP32 value.
15811
15812 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15813
15814 * config/rs6000/constraints.md (define_register_constraint "wd"):
15815 Delete.
15816 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15817 (rs6000_init_hard_regno_mode_ok): Adjust.
15818 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15819 RS6000_CONSTRAINT_wd.
15820 * config/rs6000/rs6000.md: Adjust.
15821 * config/rs6000/vsx.md: Adjust.
15822 * doc/md.texi (Machine Constraints): Adjust.
15823
15824 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15825
15826 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
15827 (rest of file): Adjust.
15828
15829 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15830
15831 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
15832 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
15833 (vsx_splat_<mode>_reg): Adjust.
15834
15835 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15836
15837 * config/rs6000/constraints.md (define_register_constraint "ws"):
15838 Delete.
15839 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15840 (rs6000_init_hard_regno_mode_ok): Adjust.
15841 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15842 RS6000_CONSTRAINT_ws.
15843 * config/rs6000/rs6000.md: Adjust.
15844 * config/rs6000/vsx.md: Adjust.
15845 * doc/md.texi (Machine Constraints): Adjust.
15846
15847 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15848
15849 * config/rs6000/constraints.md (define_register_constraint "wv"):
15850 Delete.
15851 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15852 (rs6000_init_hard_regno_mode_ok): Adjust.
15853 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15854 RS6000_CONSTRAINT_wv.
15855 * config/rs6000/rs6000.md: Adjust.
15856 * config/rs6000/vsx.md: Adjust.
15857 * doc/md.texi (Machine Constraints): Adjust.
15858
15859 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15860
15861 * config/rs6000/constraints.md (define_register_constraint "wi"):
15862 Delete.
15863 (define_register_constraint "wt"): Delete.
15864 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15865 (rs6000_init_hard_regno_mode_ok): Adjust.
15866 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15867 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
15868 * config/rs6000/rs6000.md: Adjust.
15869 * config/rs6000/vsx.md: Adjust.
15870 * doc/md.texi (Machine Constraints): Adjust.
15871
15872 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
15873
15874 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
15875 const.
15876 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
15877 default_elf_asm_output_external.
15878
15879 2019-06-04 Martin Liska <mliska@suse.cz>
15880
15881 * ipa-icf.c (INCLUDE_LIST): Remove.
15882 (sem_item_optimizer::execute): Remove call to init_wpa.
15883 * ipa-icf.h (init_wpa): Remove.
15884
15885 2019-06-04 Jakub Jelinek <jakub@redhat.com>
15886
15887 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
15888 conditional on combined for simd.
15889 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
15890 member.
15891 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
15892 constructs, don't remove lastprivate_conditional_map, but instead set
15893 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
15894 to parent construct temporaries.
15895 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
15896 like !ctx->lastprivate_conditional_map.
15897 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
15898 use up->outer context instead of up.
15899 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
15900 gimple_omp_for_combined_p.
15901 (expand_omp_for_static_nochunk): Likewise.
15902 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
15903 probably moved over into expand_omp_for_generic rather than being copied
15904 there.
15905
15906 2019-06-04 Martin Liska <mliska@suse.cz>
15907
15908 * value-prof.c (dump_histogram_value): Fix typo.
15909 (gimple_mod_subtract_transform): Likewise.
15910
15911 2019-06-04 Richard Biener <rguenther@suse.de>
15912
15913 PR middle-end/90726
15914 * tree-chrec.c (chrec_contains_symbols): Add to visited.
15915 (tree_contains_chrecs): Likewise.
15916 (chrec_contains_symbols_defined_in_loop): Move here and avoid
15917 exponential behaivor from ...
15918 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
15919 ... here.
15920 (expression_expensive_p): Avoid exponential behavior and compute
15921 expanded size, rejecting any expansion.
15922 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
15923 (idx_contains_abnormal_ssa_name_p): Likewise.
15924 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
15925 (contains_abnormal_ssa_name_p): Simplify and use
15926 walk_tree_without_duplicates.
15927
15928 2019-06-04 Richard Biener <rguenther@suse.de>
15929
15930 PR tree-optimization/90738
15931 Revert
15932 2019-06-03 Richard Biener <rguenther@suse.de>
15933
15934 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
15935 full reference tree and record in ref->ref.
15936 (vn_reference_lookup_3): Pass in original ref to
15937 ao_ref_init_from_vn_reference.
15938 (vn_reference_lookup): Likewise.
15939 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
15940 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15941 Handle non-decl bases in the original reference.
15942
15943 2019-06-04 Martin Liska <mliska@suse.cz>
15944
15945 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
15946 number of references.
15947 (sem_item_optimizer::do_congruence_step):
15948 (sem_item_optimizer::worklist_push): Dump how references
15949 a class has.
15950 (sem_item_optimizer::worklist_pop): Use heap.
15951 (sem_item_optimizer::process_cong_reduction): Likewise.
15952 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
15953
15954 2019-06-04 Martin Liska <mliska@suse.cz>
15955
15956 * ipa-icf.h (struct sem_usage_pair_hash): New.
15957 (sem_usage_pair_hash::hash): Likewise.
15958 (sem_usage_pair_hash::equal): Likewise.
15959 (struct sem_usage_hash): Likewise.
15960 * ipa-icf.c (sem_item::sem_item): Initialize
15961 referenced_by_count.
15962 (sem_item::add_reference): Register a reference
15963 in ref_map and not in target->usages.
15964 (sem_item::setup): Remove initialization of
15965 dead vectors.
15966 (sem_item::~sem_item): Remove usage of dead vectors.
15967 (sem_item::dump): Remove dump of references.
15968 (sem_item_optimizer::sem_item_optimizer): Initialize
15969 m_references.
15970 (sem_item_optimizer::read_section): Remove useless
15971 dump.
15972 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
15973 (sem_item_optimizer::build_graph): Pass m_references
15974 to ::add_reference.
15975 (sem_item_optimizer::verify_classes): Remove usage of dead
15976 vectors.
15977 (sem_item_optimizer::traverse_congruence_split): Return true
15978 when a class is split.
15979 (sem_item_optimizer::do_congruence_step_for_index): Use
15980 hash_map for look up of (sem_item *, index). That brings
15981 significant speed up.
15982 (sem_item_optimizer::do_congruence_step): Return true
15983 when a split is done.
15984 (congruence_class::is_class_used): Use referenced_by_count.
15985
15986 2019-06-04 Alan Modra <amodra@gmail.com>
15987
15988 PR target/90689
15989 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
15990 error.
15991
15992 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
15993
15994 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
15995 * config/rs6000/rs6000.c (direct_move_p): Adjust.
15996 (rs6000_secondary_reload_simple_move): Adjust.
15997 (rs6000_opt_masks): Neuter the "mfpgpr" option.
15998 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
15999 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16000 comment.
16001 (power6x): Adjust.
16002 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16003 (floatunssi<mode>2_lfiwzx): Adjust.
16004 (fix_trunc<mode>si2_stfiwx): Adjust.
16005 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16006 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16007 (mfpgpr): Mark as deprecated.
16008 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16009 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16010 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16011
16012 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16013
16014 * config/rs6000/constraints.md (define_register_constraint "wg"):
16015 Delete.
16016 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16017 RS6000_CONSTRAINT_wg.
16018 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16019 (rs6000_init_hard_regno_mode_ok): Adjust.
16020 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16021 Delete "wg" alternatives.
16022 * doc/md.texi (Machine Constraints): Adjust.
16023
16024 2019-06-03 Alan Modra <amodra@gmail.com>
16025
16026 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16027 (get_uncond_jump_length): Assert length less than INT_MAX and
16028 non-negative.
16029
16030 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16031
16032 PR middle-end/64242
16033 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16034 block.
16035 (expand_builtin_nonlocal_goto): Likewise.
16036
16037 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16038
16039 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16040 (aarch64_asm_output_external): Declare.
16041 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16042 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16043 (aarch64_asm_output_alias): New.
16044 (aarch64_asm_output_external): New.
16045 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16046 (ASM_OUTPUT_EXTERNAL): Define.
16047
16048 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16049 * tree-vrp.h (value_range_base::nonzero_p): New.
16050 (value_range_base::set_nonnull): Rename to...
16051 (value_range_base::set_nonzero): ...this.
16052 (value_range_base::set_null): Rename to...
16053 (value_range_base::set_zero): ...this.
16054 (value_range::set_nonnull): Remove.
16055 (value_range::set_null): Remove.
16056 * tree-vrp.c (range_is_null): Remove.
16057 (range_is_nonnull): Remove.
16058 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16059 instead of range_is_*null.
16060 (extract_range_from_unary_expr): Same.
16061 (value_range_base::set_nonnull): Rename to...
16062 (value_range_base::set_nonzero): ...this.
16063 (value_range::set_nonnull): Remove.
16064 (value_range_base::set_null): Rename to...
16065 (value_range_base::set_zero): ...this.
16066 (value_range::set_null): Remove.
16067 (extract_range_from_binary_expr): Rename set_*null uses to
16068 set_*zero.
16069 (extract_range_from_unary_expr): Same.
16070 (union_helper): Same.
16071 * vr-values.c (get_value_range): Use set_*zero instead of
16072 set_*null.
16073 (vr_values::extract_range_from_binary_expr): Same.
16074 (vr_values::extract_range_basic): Same.
16075
16076 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16077
16078 PR driver/90684
16079 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16080
16081 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16082
16083 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16084 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16085 Rename to...
16086 (aarch64_<su>abd<mode>_3): ... This.
16087 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16088
16089 2019-06-03 Richard Biener <rguenther@suse.de>
16090
16091 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16092 full reference tree and record in ref->ref.
16093 (vn_reference_lookup_3): Pass in original ref to
16094 ao_ref_init_from_vn_reference.
16095 (vn_reference_lookup): Likewise.
16096 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16097 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16098 Handle non-decl bases in the original reference.
16099
16100 2019-06-03 Martin Liska <mliska@suse.cz>
16101
16102 * doc/generic.texi: Remove Java Trees.
16103
16104 2019-06-03 Martin Liska <mliska@suse.cz>
16105
16106 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16107 returns 0 when operands are equal.
16108
16109 2019-06-03 Richard Biener <rguenther@suse.de>
16110
16111 PR tree-optimization/90716
16112 * tree-loop-distribution.c (destroy_loop): Process blocks in
16113 correct order.
16114
16115 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16116
16117 PR target/88837
16118 * vector-builder.h (vector_builder::count_dups): New method.
16119 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16120 Declare prototype.
16121 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16122 (vec_init<mode><Vel>): New pattern.
16123 * config/aarch64/aarch64.c (emit_insr): New function.
16124 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16125 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16126 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16127 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16128
16129 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16130
16131 PR tree-optimization/90681
16132 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16133 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16134 special case for SLP, but fail on non-groupped loads.
16135
16136 2019-06-03 Martin Liska <mliska@suse.cz>
16137
16138 * cfg.c (debug): Use TDF_DETAILS for debug and
16139 print edge info only once.
16140
16141 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16142
16143 PR fortran/90539
16144 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16145
16146 2019-06-01 Martin Sebor <msebor@redhat.com>
16147
16148 PR middle-end/90694
16149 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16150
16151 2019-05-31 Jan Hubicka <jh@suse.cz>
16152
16153 * alias.c: Include ipa-utils.h.
16154 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16155 * ipa-devirt.c (prevailing_odr_type): New.
16156 * ipa-utils.h (previaling_odr_type): Declare.
16157
16158 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16159 Hongtao Liu <hongtao.liu@intel.com>
16160
16161 PR target/89355
16162 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16163 NOTE_INSN_DELETED_LABEL check.
16164
16165 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16166 Robert Suchanek <robert.suchanek@mips.com>
16167
16168 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16169 and 3rd operands of the fmadd/fmsub/maddv builtin.
16170
16171 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16172
16173 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16174 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16175 on OMP_SIMD if not nested inside of worksharing loop that also has
16176 lastprivate conditional clause for the same decl.
16177 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16178 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16179 on simd.
16180 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16181 on simd construct.
16182 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16183 on simd construct.
16184 (lower_lastprivate_clauses): Likewise.
16185 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16186 calling lower_rec_input_clauses.
16187 (lower_omp_for): Likewise.
16188 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16189 clause on simd construct.
16190 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16191 OMP_CLAUSE__CONDTEMP_ clause is present.
16192
16193 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16194 ivar and lvar.
16195
16196 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16197
16198 PR c/43673
16199 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16200 TEX_D32, TEX_D64 or TEX_D128.
16201
16202 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16203
16204 * match.pd (~(vec?cst1:cst2)): New transformation.
16205
16206 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16207
16208 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16209 ((size_t)(A /[ex] B) CMP C): New transformation.
16210
16211 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16212
16213 * doc/md.texi: Document define_insn_and_rewrite.
16214 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16215 * gensupport.c (queue_elem): Update comment.
16216 (replace_operands_with_dups): New function.
16217 (gen_rewrite_sequence): Likewise.
16218 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16219 * read-rtl.c (apply_subst_iterator): Likewise.
16220 (add_condition_to_rtx, named_rtx_p): Likewise.
16221 (rtx_reader::read_rtx_operand): Likewise.
16222 * config/aarch64/aarch64-sve.md
16223 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16224 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16225 define_insn_and_rewrite.
16226 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16227 Remove separate define_split.
16228
16229 2019-05-31 Jan Hubicka <jh@suse.cz>
16230
16231 * tree-ssa-alias.c (type_has_components_p): New function.
16232 (aliasing_component_refs_p): Use it.
16233
16234 2019-05-31 Martin Liska <mliska@suse.cz>
16235
16236 * gdbhooks.py: Add const_tree to TreePrinter.
16237
16238 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16239
16240 PR debug/86964
16241 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16242 * doc/invoke.texi (Debugging Options): Document new default of
16243 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16244
16245 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16246
16247 PR tree-optimization/90671
16248 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16249 template_block used to be empty on the first call, don't use
16250 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16251 seq with bb_seq and set it with set_bb_seq.
16252
16253 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16254
16255 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16256
16257 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16258 Michael Meissner <meissner@linux.ibm.com>
16259
16260 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16261 (prefixed_mem_operand): Likewise.
16262 (non_prefixed_mem_operand): Likewise.
16263 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16264 prototype.
16265 * config/rs6000/rs6000.c (print_operand_address): Handle
16266 PC-relative addresses.
16267 (mode_supports_prefixed_address_p): New function.
16268 (rs6000_prefixed_address): New function.
16269 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16270 (SYMBOL_REF_PCREL_P): Likewise.
16271
16272 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16273
16274 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16275 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16276 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16277 is nested inside of parallel region, add _condtemp_ clause to both.
16278 * tree-nested.c (convert_nonlocal_omp_clauses,
16279 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16280 assertion failure.
16281 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16282 member.
16283 * omp-general.c (omp_extract_for_data): Compute it.
16284 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16285 (lower_rec_input_clauses): Likewise.
16286 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16287 clause is already present, just add one further one after it.
16288 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16289 (lower_send_shared_vars): Clear _condtemp_ vars.
16290 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16291 or section or taskgroup.
16292 * omp-expand.c (determine_parallel_type): Disallow combining only if
16293 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16294 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16295 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16296 expand_omp_for_static_chunk, expand_omp_for): Use
16297 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16298 determine if a special set of API routines are needed and if condtemp
16299 needs to be initialized, while always initialize cond_var if
16300 fd->lastprivate_conditional is non-zero.
16301
16302 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16303 Michael Meissner <meissner@linux.ibm.com>
16304
16305 * config/rs6000/constraints.md (eI): New constraint.
16306 * config/rs6000/predicates.md (cint34_operand): New predicate.
16307 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16308 (SIGNED_34BIT_OFFSET_P): Likewise.
16309 * doc/md.texi (eI): Document constraint.
16310
16311 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16312
16313 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16314
16315 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16316 Michael Meissner <meissner@linux.ibm.com>
16317
16318 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16319 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16320 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16321 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16322 (OTHER_FUTURE_MASKS): Likewise.
16323 (POWERPC_MASKS): Likewise.
16324 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16325 specified without -mprefixed-addr or -mcpu=future. Error if
16326 -mprefixed-addr is specified without -mcpu=future.
16327 (rs6000_opt_masks): Add entry for prefixed-addr.
16328 * rs6000.opt (mprefixed-addr): New option.
16329
16330 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16331
16332 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16333 cfun->is_thunk check.
16334
16335 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16336
16337 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16338 to length.
16339
16340 2019-05-30 Martin Liska <mliska@suse.cz>
16341
16342 * gdbinit.in: Fix 'ptc' command. Add trt
16343 that prints TREE_TYPE($).
16344
16345 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16346 Alan Modra <amodra@gmail.com>
16347
16348 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16349 calls here...
16350 (rs6000_indirect_call_template_1): ...and here.
16351 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16352 plt16_ha, plt16_lo, mtctr indirect calls. Use
16353 rs6000_pltseq_enum.
16354 (rs6000_decl_ok_for_sibcall): New function.
16355 (rs6000_function_ok_for_sibcall): Refactor.
16356 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16357 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16358 when pcrel. Reorganize.
16359 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16360 * rs6000.h (rs6000_pltseq_enum): New enum.
16361 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16362 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16363 (*pltseq_plt16_ha): Likewise.
16364 (*pltseq_plt16_lo): Likewise.
16365 (*pltseq_mtctr): Likewise.
16366 (*pltseq_plt_pcrel): New insn.
16367 (*call_local_aix): Handle @notoc calls.
16368 (*call_value_local_aix): Likewise.
16369 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16370 (*call_value_nonlocal_aix): Likewise.
16371 (*call_indirect_pcrel): New insn.
16372 (*call_value_indirect_pcrel): Likewise.
16373
16374 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16375
16376 * config/i386/sse.md (*save_multiple<mode>): Rename from
16377 save_multiple<mode>.
16378 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16379 (*restore_multiple_and_return<mode>): Rename from
16380 restore_multiple_and_return<mode>.
16381 (*restore_multiple_leave_return<mode>): Rename from
16382 restore_multiple_leave_return<mode>.
16383
16384 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16385
16386 * config.gcc (rx-*-linux*): New target.
16387 * config/rx/elf.opt: New file.
16388 * config/rx/linux.h: Likewise.
16389 * config/rx/t-linux: Likewise.
16390 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16391 make it zero.
16392 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16393 (ASM_APP_OFF): Likewise.
16394 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16395 moved elsewhere.
16396
16397 2019-05-29 Jan Hubicka <jh@suse.cz>
16398
16399 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16400 variants are pointer equivalent.
16401
16402 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16403
16404 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16405 * config/aarch64/aarch64-sve2.md: New file.
16406 (<u>avg<mode>3_floor): New pattern.
16407 (<u>avg<mode>3_ceil): Likewise.
16408 (*<sur>h<addsub><mode>): Likewise.
16409 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16410 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16411
16412 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16413
16414 PR bootstrap/90543
16415 * optc-save-gen.awk: In cl_optimization_print, use correct condition
16416 for var_opt_string printing. In cl_optimization_print_diff, print
16417 (null) instead of invoking undefined behavior if one of the
16418 var_opt_string pointers is NULL and use && instead of first || in the
16419 guarding condition. For var_target_other options, handle const char *
16420 target variables similarly to const char * optimize node variables.
16421
16422 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
16423
16424 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
16425 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
16426 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
16427 Add autib1716 and pacib1716 initialisation.
16428 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
16429 for autib1716 and pacib1716.
16430 * config/aarch64/aarch64-protos.h (aarch64_key_type,
16431 aarch64_post_cfi_startproc): Define.
16432 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
16433 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
16434 aarch64_handle_pac_ret_protection): Set default sign key to A.
16435 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
16436 aarch64_expand_prologue): Add check for b-key.
16437 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
16438 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
16439 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
16440 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
16441 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
16442 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
16443 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16444 * config/aarch64/aarch64.md (do_return): Add check for b-key.
16445 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
16446 pauth_hint_num_a with pauth_hint_num.
16447 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
16448 pauth_hint_num_a with pauth_hint_num.
16449 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
16450 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
16451 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16452 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
16453 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
16454 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
16455 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
16456 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16457 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
16458 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
16459 UNSPEC_AUTIA1716 respectively.
16460 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
16461 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
16462 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
16463 * doc/invoke.texi (-mbranch-protection): Add b-key type.
16464 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
16465 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
16466
16467 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16468
16469 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
16470 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
16471 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
16472 explicit clause on combined parallel into implicit shared clause.
16473 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
16474 and firstprivate if the decl has one too from combined parallel to
16475 the worksharing construct.
16476
16477 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
16478 Michael Meissner <meissner@linux.ibm.com>
16479
16480 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
16481
16482 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
16483
16484 * rtl.h (LABEL_REF_P): New #define.
16485
16486 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
16487
16488 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
16489
16490 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16491
16492 * internal-fn.c: Marked mask_load_direct as vectorizable.
16493 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
16494 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
16495 combined even if masks different with allow_slp_p param.
16496 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
16497 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
16498 dissolve SLP-only vectorizable groups when SLP has been discarded.
16499 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
16500 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
16501 masks.
16502 (vect_build_slp_tree_1): Fixed comment typo.
16503 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
16504 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
16505 loads for SLP only.
16506 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
16507 vectorizable.
16508 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
16509
16510 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16511
16512 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
16513 Remove obsolete use_thunk reference.
16514 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16515 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16516 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
16517 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
16518 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16519 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16520 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16521 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16522 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16523
16524 2019-05-28 Nathan Sidwell <nathan@acm.org>
16525
16526 * tree.h (IDENTIFIER_ANON_P): New.
16527 (anon_aggrname_format, anon_aggname_p): Don't declare.
16528 (make_anon_name): Declare.
16529 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
16530 (hash_tree): Likewise.
16531 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
16532 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
16533 (anon_cnt, make_anon_name): New.
16534
16535 2019-05-28 Martin Liska <mliska@suse.cz>
16536
16537 PR other/90315
16538 * opts-global.c (decode_options): Print help for all
16539 help_option_arguments.
16540 * opts.c (print_help): Add new argument.
16541 (common_handle_option): Remember all values into
16542 help_option_arguments.
16543 * opts.h (print_help): Add new argument.
16544
16545 2019-05-28 Martin Liska <mliska@suse.cz>
16546
16547 PR ipa/90555
16548 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
16549 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
16550 (func_checker::compare_bb): Call compare_loops.
16551
16552 2019-05-27 Jakub Jelinek <jakub@redhat.com>
16553
16554 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16555 on sections construct.
16556 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
16557 construct.
16558 (lower_omp_sections): Handle lastprivate conditional.
16559 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
16560 lastprivate_conditional_map.
16561 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
16562
16563 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
16564 critical, taskgroup and section regions when looking for a region
16565 with non-NULL lastprivate_conditional_map.
16566
16567 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16568
16569 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
16570 (*ix86_gen_sub3): Ditto.
16571 (*ix86_gen_sub3_carry): Ditto.
16572 (*ix86_gen_one_cmpl2): Ditto.
16573 (*ix86_gen_andsp): Ditto.
16574 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
16575 (gen_and2_insn): New static function.
16576 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
16577 Use gen_add3_insn instead of ix86_gen_add3.
16578 (ix86_expand_split_stack_prologue): Use gen_add2_insn
16579 instead of ix86_gen_add3.
16580 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
16581 Use gen_sub3_insn instead of ix86_gen_sub3.
16582 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
16583 instead of ix86_gen_add3.
16584 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
16585 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
16586 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
16587 * config/i386/i386-options.c (ix86_option_override_internal):
16588 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
16589 ix86_gen_one_cmpl2 and ix86_gen_andsp.
16590
16591 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
16592
16593 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
16594 and DW_OP_GNU_const_index opcodes.
16595
16596 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16597
16598 * config/i386/i386.h (STACK_SIZE_MODE): Define.
16599
16600 2019-05-27 Richard Biener <rguenther@suse.de>
16601
16602 PR tree-optimization/90637
16603 * tree-ssa-sink.c (statement_sink_location): Honor the
16604 computed sink location for single-uses.
16605
16606 2019-05-27 Richard Biener <rguenther@suse.de>
16607
16608 PR middle-end/90610
16609 * match.pd (vec_perm): Avoid clobbering op0 when not generating
16610 a bit-insert.
16611
16612 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16613
16614 * config/i386/i386.md (@sub<mode>3_carry): Rename
16615 from sub<mode>3_carry.
16616 (@leave_<mode>): New expander.
16617 (*leave): Rename from leave.
16618 (*leave_rex64): Rename from leave_rex64.
16619 (@monitorx_<mode>): Rename from monitorx_<mode>.
16620 (@clzero_<mode>): Rename from clzero_<mode>.
16621 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
16622 from sse3_monitor_<mode>.
16623 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
16624 (*ix86_gen_leave): Ditto.
16625 (*ix86_gen_monitor): Ditto.
16626 (*ix86_gen_monitorx): Ditto.
16627 (*ix86_gen_clzero): Ditto.
16628 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
16629 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
16630 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
16631 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
16632 Use gen_sse3_monitor instead of ix86_gen_monitor.
16633 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
16634 instead of ix86_gen_monitorx.
16635 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
16636 instead of ix86_gen_clzero.
16637 * config/i386/i386-options.c (ix86_option_override_internal):
16638 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
16639 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
16640
16641 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16642
16643 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
16644 Rename from tls_global_dynamic_64_<mode>.
16645 (@tls_local_dynamic_base_64_<mode>): Rename from
16646 tls_local_dynamic_base_64_<mode>.
16647 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
16648 Remove indirect function.
16649 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
16650 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
16651 instead of ix86_gen_tls_global_dynamic_64.
16652 Use gen_tls_local_dynamic_base_64 instead of
16653 ix86_gen_tls_local_dynamic_base_64.
16654 * config/i386/i386-options.c (ix86_option_override_internal):
16655 Do not initialize ix86_gen_tls_global_dynamic_64 and
16656 ix86_gen_tls_local_dynamic_base_64.
16657
16658 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16659
16660 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
16661 Rename from pro_epilogue_adjust_stack_<mode>_add.
16662 (@pro_epilogue_adjust_stack_sub_<mode>)
16663 Rename from pro_epilogue_adjust_stack_<mode>_sub.
16664 (@allocate_stack_worker_probe_<mode>):
16665 Rename from allocate_stack_worker_probe_<mode>.
16666 (allocate_stack): Use gen_allocate_stack_worker_probe.
16667 (probe_stack): Use gen_probe_stack_1.
16668 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
16669 (@adjust_stack_and_probe_<mode>): Rename from
16670 adjust_stack_and_probe<mode>.
16671 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
16672 (stack_protect_set): Use gen_stack_protect_set_1.
16673 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
16674 (stack_protect_test): Use gen_stack_protect_test_1.
16675 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
16676 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
16677 Remove indirect function.
16678 (*ix86_gen_adjust_stack_and_probe): Ditto.
16679 (*ix86_gen_probe_stack_range): Ditto.
16680 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
16681 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
16682 (ix86_adjust_stack_and_probe_stack_clash): Use
16683 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
16684 (ix86_adjust_stack_and_probe): Ditto.
16685 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
16686 of ix86_gen_probe_stack_range.
16687 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
16688 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
16689 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
16690 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
16691 CODE_FOR_stack_protect_test_{si,di}.
16692 * config/i386/i386-options.c (ix86_option_override_internal):
16693 Do not initialize ix86_gen_allocate_stack_worker,
16694 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
16695
16696 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
16697
16698 * doc/invoke.texi (Link Options): Many editorial changes around
16699 -flinker-output.
16700
16701 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16702
16703 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
16704 pre-Solaris 11 referene and most Studio compiler details.
16705
16706 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
16707
16708 PR target/90530
16709 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
16710 DImode to SImode in floating-point registers on 64-bit target.
16711 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
16712 register_operand in xmpyu patterns.
16713
16714 2019-05-24 Jakub Jelinek <jakub@redhat.com>
16715
16716 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
16717 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
16718 OMP_CLAUSE__REDUCTEMP_.
16719 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16720 OMP_CLAUSE__CONDTEMP_.
16721 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
16722 * tree-pretty-print.c (dump_omp_clause): Likewise.
16723 * tree-nested.c (convert_nonlocal_omp_clauses,
16724 convert_local_omp_clauses): Likewise.
16725 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
16726 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
16727 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
16728 on OMP_FOR.
16729 (gimplify_omp_for): Warn and disable conditional modifier from
16730 lastprivate on loop iterators.
16731 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
16732 member.
16733 * omp-general.c (omp_extract_for_data): Initialize it.
16734 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
16735 member.
16736 (delete_omp_context): Delete it.
16737 (lower_lastprivate_conditional_clauses): New function.
16738 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
16739 handle lastprivate conditional clauses.
16740 (lower_reduction_clauses): Add CLIST argument, emit it into
16741 the critical section if any.
16742 (lower_omp_sections): Adjust lower_lastprivate_clauses and
16743 lower_reduction_clauses callers.
16744 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
16745 to lower_lastprivate_clauses.
16746 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
16747 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
16748 clist into a critical section if not emitted there already by
16749 lower_reduction_clauses.
16750 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
16751 callers.
16752 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
16753 conditional variables.
16754 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
16755 clause is present.
16756 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16757 expand_omp_for_static_chunk): Handle lastprivate conditional.
16758 (expand_omp_for): Handle fd.lastprivate_conditional like
16759 fd.have_reductemp.
16760
16761 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
16762
16763 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
16764 kernel does not exit cleanly.
16765 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
16766
16767 2019-05-24 Jason Merrill <jason@redhat.com>
16768
16769 Revert:
16770 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
16771
16772 2019-05-24 Richard Biener <rguenther@suse.de>
16773
16774 PR testsuite/90607
16775 * tree-loop-distribution.c (struct partition): Add location
16776 member.
16777 (partition_alloc): Initialize all fields.
16778 (generate_memset_builtin): Use the location recorded in the
16779 partition for the generated call.
16780 (generate_memcpy_builtin): Likewise.
16781 (classify_partition): Record the location of a single store
16782 as location for the partition.
16783
16784 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
16785
16786 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
16787 for lo-part.
16788
16789 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
16790
16791 PR target/90588
16792 * common/config/aarch64/aarch64-common.c
16793 (aarch64_rewrite_selected_cpu): Change local temporary variable
16794 type from unsigned long to uint64_t.
16795 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
16796 aarch64_get_extension_string_for_isa_flags): Change declaration to
16797 match new definition by replacing unsigned long with uint64_t.
16798
16799 2019-05-24 Jakub Jelinek <jakub@redhat.com>
16800
16801 PR target/90568
16802 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
16803 gen_attr_type just once instead of 4-7 times. Formatting fixes.
16804 Handle stack_protect_test_<mode> codegen similarly to corresponding
16805 sub instruction.
16806
16807 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
16808
16809 * config/i386/darwin.h: Reject -mfentry*.
16810 * doc/sourcebuild.texi: Document mfentry target support.
16811
16812 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
16813
16814 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
16815 Rename to rs6000_global_entry_point_prologue_needed_p. Return
16816 false for PC-relative functions.
16817 (rs6000_output_function_prologue): Change called function name to
16818 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
16819 name,1" for PC-relative functions.
16820 (rs6000_elf_declare_function_name): Change called function name to
16821 rs6000_global_entry_point_prologue_needed_p.
16822
16823 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
16824
16825 PR target/90552
16826 * config/i386/i386.c (gen_rtx_cost):
16827 Use ix86_tune_cost instead of ix86_cost.
16828
16829 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
16830 Michael Meissner <meissner@linux.ibm.com>
16831 Segher Boessenkool <segher@kernel.crashing.org>
16832
16833 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
16834 OPTION_MASK_PCREL.
16835 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
16836 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
16837 (rs6000_fndecl_pcrel_p): Likewise.
16838 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
16839 error if -mpcrel is requested without -mcpu=future.
16840 (rs6000_opt_masks): Add entry for pcrel.
16841 (rs6000_fndecl_pcrel_p): New function.
16842 (rs6000_pcrel_p): Likewise.
16843 * config/rs6000/rs6000.opt (mpcrel): New option.
16844 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
16845
16846 2019-05-23 Jan Hubicka <jh@suse.cz>
16847 Martin Liska <mliska@suse.cz>
16848
16849 PR tree-optimization/90576
16850 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
16851 poly_int_tree_p.
16852 (aliasing_component_refs_p): Fix three way size compare conditional;
16853 give up earlier in case we can not decide on equivalence.
16854
16855 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
16856 Michael Meissner <meissner@linux.ibm.com>
16857 Segher Boessenkool <segher@kernel.crashing.org>
16858
16859 * config.gcc: Add future cpu.
16860 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
16861 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
16862 #define.
16863 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
16864 (RS6000_CPU): New instantiation for future cpu.
16865 * config/rs6000/rs6000-opts.h (enum processor_type): Add
16866 PROCESSOR_FUTURE.
16867 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
16868 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
16869 * config/rs6000/rs6000-tables.opt: Regenerate.
16870 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
16871 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
16872 (rs6000_machine_from_flags): Handle future cpu.
16873 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
16874 PROCESSOR_POWER9 for now.
16875 (rs6000_adjust_cost): Likewise.
16876 (rs6000_issue_rate): Likewise.
16877 (rs6000_register_move_cost): Likewise.
16878 (rs6000_opt_masks): Add entry for future.
16879 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
16880 (MASK_FUTURE): New #define.
16881 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
16882 * config/rs6000/rs6000.opt (mfuture): New target option.
16883 * doc/invoke.texi (mcpu): Add future cpu.
16884
16885 2019-05-23 Martin Liska <mliska@suse.cz>
16886
16887 PR c++/90587
16888 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
16889 operation points to a temporary (pointed via tree_to_wide_ref)
16890 that is out of scope after the &.
16891
16892 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
16893
16894 PR c++/90592
16895 * doc/extend.texi (Function Names): Add missing word.
16896
16897 2019-05-23 Richard Biener <rguenther@suse.de>
16898
16899 PR tree-optimization/88440
16900 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
16901 at -O[2s]+.
16902 * tree-loop-distribution.c (generate_memset_builtin): Fold the
16903 generated call.
16904 (generate_memcpy_builtin): Likewise.
16905 (distribute_loop): Pass in whether to only distribute patterns.
16906 (prepare_perfect_loop_nest): Also allow size optimization.
16907 (pass_loop_distribution::execute): When optimizing a loop
16908 nest for size allow pattern replacement.
16909
16910 2019-05-23 Jakub Jelinek <jakub@redhat.com>
16911
16912 PR target/90568
16913 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
16914 of xor.
16915
16916 2019-05-23 Martin Liska <mliska@suse.cz>
16917
16918 PR sanitizer/90570
16919 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
16920 expression similarly to gimplify_decl_expr.
16921
16922 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16923
16924 * cse.c (cse_dump_path): s/dump_file/f.
16925
16926 2019-05-22 David Malcolm <dmalcolm@redhat.com>
16927
16928 PR c++/90462
16929 * diagnostic-format-json.cc: Include "selftest.h".
16930 (json_from_expanded_location): Only add "file" key for non-NULL
16931 file strings.
16932 (json_from_location_range): Don't add "start" and "finish"
16933 children if they are UNKNOWN_LOCATION.
16934 (selftest::test_unknown_location): New selftest.
16935 (selftest::test_bad_endpoints): New selftest.
16936 (selftest::diagnostic_format_json_cc_tests): New function.
16937 * json.cc (json::object::get): New function.
16938 (selftest::test_object_get): New selftest.
16939 (selftest::json_cc_tests): Call it.
16940 * json.h (json::object::get): New decl.
16941 * selftest-run-tests.c (selftest::run_tests): Call
16942 selftest::diagnostic_format_json_cc_tests.
16943 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
16944 decl.
16945
16946 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16947 Andrew Stubbs <amd@codesourcery.com>
16948
16949 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
16950 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
16951 (kernel): Rename to...
16952 (main_kernel): ... this.
16953 (load_image): Load _init_array and _fini_array kernels.
16954 (run): Add argument for kernel to run.
16955 (main): Run init_array_kernel before main_kernel, and
16956 fini_array_kernel after.
16957 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
16958 amdgpu_hsa_kernel attribute on functions.
16959 (gcn_disable_constructors): Delete.
16960 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
16961 * config/gcn/crt0.c (size_t): Define.
16962 (_init_array, _fini_array): New.
16963 (__preinit_array_start, __preinit_array_end,
16964 __init_array_start, __init_array_end,
16965 __fini_array_start, __fini_array_end): Declare weak references.
16966
16967 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
16968
16969 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
16970
16971 2019-05-22 Jason Merrill <jason@redhat.com>
16972
16973 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
16974
16975 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
16976
16977 PR target/88483
16978 * config/i386/i386-options.c (ix86_init_machine_status): Set
16979 stack_frame_required to true.
16980 * config/i386/i386.c (ix86_get_frame_size): New function.
16981 (ix86_frame_pointer_required): Replace get_frame_size with
16982 ix86_get_frame_size.
16983 (ix86_compute_frame_layout): Likewise.
16984 (ix86_find_max_used_stack_alignment): Changed to void. Set
16985 stack_frame_required.
16986 (ix86_finalize_stack_frame_flags): Always call
16987 ix86_find_max_used_stack_alignment. Replace get_frame_size with
16988 ix86_get_frame_size.
16989 * config/i386/i386.h (machine_function): Add stack_frame_required.
16990
16991 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
16992
16993 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
16994
16995 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
16996
16997 * common/config/aarch64/aarch64-common.c
16998 (struct aarch64_option_extension, struct processor_name_to_arch,
16999 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17000 aarch64_contains_opt,
17001 aarch64_get_extension_string_for_isa_flags): Change type of
17002 variables storing flags to uint64_t.
17003 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17004 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17005 * config/aarch64/aarch64.c (struct processor,
17006 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17007 aarch64_validate_march, aarch64_override_options,
17008 aarch64_option_print, aarch64_handle_attr_isa_flags,
17009 aarch64_declare_function_name, aarch64_start_file): Make flag
17010 variables uint64_t.
17011 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17012 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17013 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17014 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17015 * config/aarch64/driver-aarch64.c
17016 (struct aarch64_arch_extension, struct aarch64_core_data,
17017 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17018 flag variables uint64_t.
17019 * doc/invoke.texi: Add documentation for new arguments.
17020
17021 2019-05-22 Richard Biener <rguenther@suse.de>
17022
17023 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17024 rewrite ...
17025 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17026
17027 2019-05-22 Martin Liska <mliska@suse.cz>
17028
17029 PR lto/90500
17030 * doc/extend.texi: Document the change.
17031
17032 2019-05-22 Richard Biener <rguenther@suse.de>
17033
17034 PR tree-optimization/90450
17035 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17036 (mem_ref_hasher::equal): Check it.
17037 (mem_ref_alloc): Initialize it.
17038 (gather_mem_refs_stmt): Set it.
17039
17040 2019-05-22 Richard Biener <rguenther@suse.de>
17041
17042 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17043 Add ABS_EXPR.
17044 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17045 as ABSU_EXPR.
17046
17047 2019-05-22 Alan Modra <amodra@gmail.com>
17048
17049 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17050 (ASM_CPU_SPEC): Conditionally add -many.
17051 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17052 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17053 (rs6000_file_start): ..extracted from here, and modified to
17054 test all ISA bits.
17055 (rs6000_output_function_prologue): Emit .machine as necessary.
17056
17057 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17058
17059 PR middle-end/90553
17060 * ira-lives.c (process_bb_node_lives): Consider defs
17061 for a call insn to be die before the call, not after.
17062
17063 * function.c (assign_parm_setup_block): Raise alignment of
17064 stacked parameter only for STRICT_ALIGNMENT targets.
17065
17066 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17067
17068 * config/rs6000/constraints.md (define_register_constraint "wz"):
17069 Delete.
17070 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17071 RS6000_CONSTRAINT_wz.
17072 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17073 (rs6000_init_hard_regno_mode_ok): Adjust.
17074 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17075 * doc/md.texi (Machine Constraints): Adjust.
17076
17077 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17078
17079 * config/rs6000/constraints.md (define_register_constraint "wl"):
17080 Delete.
17081 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17082 RS6000_CONSTRAINT_wl.
17083 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17084 (rs6000_init_hard_regno_mode_ok): Adjust.
17085 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17086 * doc/md.texi (Machine Constraints): Adjust.
17087
17088 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17089
17090 * config/rs6000/constraints.md (define_register_constraint "wm"):
17091 Delete.
17092 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17093 RS6000_CONSTRAINT_wm.
17094 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17095 (rs6000_init_hard_regno_mode_ok): Adjust.
17096 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17097 * doc/md.texi (Machine Constraints): Adjust.
17098
17099 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17100
17101 * config/rs6000/constraints.md (define_register_constraint "wk"):
17102 Delete.
17103 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17104 RS6000_CONSTRAINT_wk.
17105 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17106 (rs6000_init_hard_regno_mode_ok): Adjust.
17107 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17108 * doc/md.texi (Machine Constraints): Adjust.
17109
17110 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17111
17112 * config/rs6000/constraints.md (define_register_constraint "wj"):
17113 Delete.
17114 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17115 RS6000_CONSTRAINT_wj.
17116 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17117 (rs6000_init_hard_regno_mode_ok): Adjust.
17118 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17119 (VS_64dm): Delete.
17120 * config/rs6000/vsx.md: Ditto.
17121 * doc/md.texi (Machine Constraints): Adjust.
17122
17123 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17124
17125 * config/rs6000/constraints.md (define_register_constraint "wh"):
17126 Delete.
17127 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17128 RS6000_CONSTRAINT_wh.
17129 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17130 (rs6000_init_hard_regno_mode_ok): Adjust.
17131 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17132 * doc/md.texi (Machine Constraints): Adjust.
17133
17134 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17135
17136 PR target/90547
17137 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17138 Avoid calling gen_lowpart with CONST operand.
17139
17140 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17141
17142 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17143 field template_last_to_copy.
17144 (ssa_create_duplicates): Set it, and use it. Attempt to
17145 preserve more debug stmts.
17146
17147 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17148
17149 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17150 (signbit<mode>2): New expander
17151
17152 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17153
17154 PR bootstrap/87338
17155 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17156 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17157
17158 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17159
17160 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17161 %ebx and %ecx bafore calling cpuid with leaf 1 or
17162 non-constant leaf argument.
17163
17164 2019-05-21 Alan Modra <amodra@gmail.com>
17165
17166 PR target/90545
17167 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17168 power9 direct move cost.
17169
17170 2019-05-21 Richard Biener <rguenther@suse.de>
17171
17172 PR middle-end/90510
17173 * fold-const.c (fold_read_from_vector): New function.
17174 * fold-const.h (fold_read_from_vector): Declare.
17175 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17176 single-element insert permutations. Canonicalize selector
17177 further and fix issue with last commit.
17178
17179 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17180
17181 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17182 parameter with default value false to declaration.
17183 (split_edges_for_insertion): New inline function. Wrapper for
17184 split_critical_edges with for_edge_insertion_p = true.
17185 * tree-cfg.c (split_critical_edges): Don't split non-critical
17186 edges if for_edge_insertion_p is false. Fix whitespace.
17187 * tree-ssa-pre.c (pass_pre::execute): Call
17188 split_edges_for_insertion instead of split_critical_edges.
17189 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17190 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17191 (pass_data_sink_code): Update function name in the comment.
17192
17193 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17194
17195 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17196 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17197 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17198 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17199 positives.
17200
17201 2019-05-21 Martin Liska <mliska@suse.cz>
17202
17203 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17204 an extra newline.
17205 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17206 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17207 vec_lvsr.
17208 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17209 Quote a C type.
17210 (rs6000_function_arg): Likewise.
17211 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17212 (rs6000_expand_ternop_builtin): Use interval syntax.
17213 (get_element_number): Likewise.
17214 (altivec_expand_builtin): Likewise.
17215 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17216
17217 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17218
17219 PR c++/59813
17220 PR target/90418
17221 * function.h (struct function): Add calls_eh_return member.
17222 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17223 gimplifying __builtin_eh_return call.
17224 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17225 to cfun.
17226 (expand_call_inline): Or in src_cfun->calls_eh_return into
17227 dst_cfun->calls_eh_return.
17228 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17229 cfun->calls_eh_return.
17230 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17231 * lto-streamer-out.c (output_struct_function_base): Write
17232 calls_eh_return.
17233
17234 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17235
17236 PR rtl-optimization/43147
17237 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17238 IX86_BUILTIN_SHUFPD.
17239
17240 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17241
17242 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17243 (refs_may_alias_p_1): ... here; update stats.
17244 (refs_may_alias_p): Do not update stats here.
17245
17246 2019-05-20 Richard Biener <rguenther@suse.de>
17247
17248 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17249 doesn't produce pointers.
17250 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17251 the first operand points to.
17252
17253 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17254
17255 * tree-ssa-alias.c (compare_sizes): New function.
17256 (sompare_type_sizes): New function
17257 (aliasing_component_refs_p): Use it.
17258 (indirect_ref_may_alias_decl_p): Likewise.
17259
17260 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17261
17262 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17263
17264 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17265
17266 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17267 (LIBLSAN_EARLY_SPEC): Likewise.
17268 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17269
17270 2019-05-20 Martin Liska <mliska@suse.cz>
17271
17272 * config/i386/i386.c (ix86_libc_has_fast_function):
17273 Add ATTRIBUTE_UNUSED for the argument.
17274
17275 2019-05-20 Richard Biener <rguenther@suse.de>
17276
17277 * gimple-match-head.c: Include vec-perm-indices.h.
17278 * generic-match-head.c: Likewise.
17279 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17280 is included.
17281 * fold-const.c (fold_vec_perm): Export.
17282 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17283 (match.pd): ...here.
17284
17285 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17286
17287 * cfgloop.h (struct loop): Add simdlen member.
17288 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17289 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17290 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17291 as new argument to autovectorize_vector_sizes target hook. If
17292 loop->simdlen, pick up vector size where the vectorization factor
17293 is equal to loop->simd, and if there is none, fall back to the first
17294 successful one.
17295 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17296 caller.
17297 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17298 * omp-general.c (omp_max_vf): Likewise.
17299 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17300 * tree-vect-slp.c (vect_slp_bb): Likewise.
17301 * target.def (autovectorize_vector_sizes): Add ALL argument and
17302 document it.
17303 * doc/tm.texi: Adjust documentation.
17304 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17305 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17306 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17307 bool argument.
17308 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17309 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17310 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17311 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17312 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17313 preferred vector size is not 512-bit or 256-bit, just put those
17314 unpreferred ones last.
17315
17316 2019-05-20 Martin Liska <mliska@suse.cz>
17317
17318 * targhooks.c (default_libc_has_fast_function): New function.
17319 * targhooks.h (default_libc_has_fast_function): Likewise.
17320
17321 2019-05-20 Martin Liska <mliska@suse.cz>
17322
17323 PR middle-end/90263
17324 * builtins.c (expand_builtin_memory_copy_args): When having a
17325 target with fast mempcpy implementation do now use memcpy.
17326 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17327 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17328 * doc/tm.texi: Likewise.
17329 * doc/tm.texi.in: Likewise.
17330 * target.def:
17331 * expr.c (emit_block_move_hints): Add 2 new arguments.
17332 * expr.h (emit_block_move_hints): Bail out when libcall
17333 to memcpy would be used.
17334
17335 2019-05-20 Martin Liska <mliska@suse.cz>
17336
17337 * profile-count.c: Add vertical spacing in order
17338 to separate functions.
17339 * profile-count.h: Likewise.
17340
17341 2019-05-20 Martin Liska <mliska@suse.cz>
17342
17343 * profile-count.h: Do not use full qualified
17344 names if possible.
17345 * profile-count.c (profile_count::to_frequency): Likewise.
17346
17347 2019-05-20 Martin Liska <mliska@suse.cz>
17348
17349 * profile-count.h (enum profile_quality): Use capital letters
17350 for enum value names. Use the adjusted names.
17351 * profile-count.c: Use the adjusted names.
17352
17353 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17354
17355 * config/rs6000/constraints.md (define_register_constraint "wH"):
17356 Delete.
17357 (define_register_constraint "wI"): Delete.
17358 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17359 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17360 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17361 (rs6000_init_hard_regno_mode_ok): Adjust.
17362 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17363 resp. "d", or with "wa" as appropriate, all with "p8v".
17364 * config/rs6000/vsx.md: Ditto.
17365 * doc/md.texi (Machine Constraints): Adjust.
17366
17367 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17368
17369 * config/rs6000/constraints.md (define_register_constraint "wy"):
17370 Delete.
17371 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17372 RS6000_CONSTRAINT_wy.
17373 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17374 (rs6000_init_hard_regno_mode_ok): Adjust.
17375 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17376 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17377 (define_mode_attr Fisa): New.
17378 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17379 * doc/md.texi (Machine Constraints): Adjust.
17380
17381 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17382
17383 * config/rs6000/constraints.md (define_register_constraint "wu"):
17384 Delete.
17385 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17386 RS6000_CONSTRAINT_wu.
17387 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17388 (rs6000_init_hard_regno_mode_ok): Adjust.
17389 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17390 both with "p8v".
17391 (define_mode_attr Fa): Delete.
17392 * config/rs6000/vsx.md: Ditto.
17393 * doc/md.texi (Machine Constraints): Adjust.
17394
17395 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17396
17397 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17398 Delete.
17399 (define_register_constraint "wK"): Delete.
17400 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17401 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17402 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17403 (rs6000_init_hard_regno_mode_ok): Adjust.
17404 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17405 Replace "wK" constraint by "wH" with "p9v".
17406 * config/rs6000/vsx.md: Ditto.
17407 * doc/md.texi (Machine Constraints): Adjust.
17408
17409 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17410
17411 * config/rs6000/constraints.md (define_register_constraint "wb"):
17412 Delete.
17413 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17414 RS6000_CONSTRAINT_wb.
17415 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17416 (rs6000_init_hard_regno_mode_ok): Adjust.
17417 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
17418 * config/rs6000/vsx.md: Ditto.
17419 * doc/md.texi (Machine Constraints): Adjust.
17420
17421 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17422
17423 * config/rs6000/constraints.md (define_register_constraint "wo"):
17424 Delete.
17425 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17426 RS6000_CONSTRAINT_wo.
17427 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17428 (rs6000_init_hard_regno_mode_ok): Adjust.
17429 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
17430 * config/rs6000/altivec.md: Ditto.
17431 * doc/md.texi (Machine Constraints): Adjust.
17432
17433 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17434
17435 * config/darwin-c.c (darwin_register_objc_includes): Do not
17436 prepend the sysroot when building gnu-runtime header search
17437 paths.
17438
17439 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17440
17441 * config/darwin.c (darwin_file_end): Use switch_to_section ()
17442 instead of direct output of the asm.
17443
17444 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17445
17446 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
17447 argument to be type bool (was int before).
17448 (rs6000_emit_epilogue): Simplify some code. Declare some variables
17449 at first use. Use type bool for some variables. Fix a theoretical
17450 eh_return bug for svr4.
17451
17452 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17453
17454 * config/rs6000/rs6000.md (isa): New attribute.
17455 (enabled): New attribute.
17456
17457 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
17458
17459 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
17460 assemble_start_function and assemble_end_function.
17461
17462 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
17463
17464 PR middle-end/89433
17465 * omp-general.c (oacc_verify_routine_clauses): Change formal
17466 parameters. Add checking if already marked with an OpenACC
17467 'routine' directive. Adjust all users.
17468
17469 PR middle-end/89433
17470 * omp-general.c (oacc_build_routine_dims): Move some of its
17471 processing into...
17472 (oacc_verify_routine_clauses): ... this new function.
17473 * omp-general.h (oacc_verify_routine_clauses): New prototype.
17474
17475 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17476
17477 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
17478 formating of picbase labels to match other ports.
17479
17480 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17481
17482 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
17483 in the generated code.
17484
17485 2019-05-16 Martin Sebor <msebor@redhat.com>
17486
17487 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
17488 identifiers, keywords, operators, and types in diagnostics. Correct
17489 quoting, spelling, and sentence capitalization issues.
17490 (expand_builtin_atomic_is_lock_free): Same.
17491 (fold_builtin_next_arg): Same.
17492 * cfgexpand.c (expand_one_var): Same.
17493 (tree_conflicts_with_clobbers_p): Same.
17494 (expand_asm_stmt): Same.
17495 (verify_loop_structure): Same.
17496 * cgraphunit.c (process_function_and_variable_attributes): Same.
17497 * collect-utils.c (collect_execute): Same.
17498 * collect2.c (maybe_run_lto_and_relink): Same.
17499 (is_lto_object_file): Same.
17500 (scan_prog_file): Same.
17501 * convert.c (convert_to_real_1): Same.
17502 * dwarf2out.c (dwarf2out_begin_prologue): Same.
17503 * except.c (verify_eh_tree): Same.
17504 * gcc.c (execute): Same.
17505 (eval_spec_function): Same.
17506 (run_attempt): Same.
17507 (driver::set_up_specs): Same.
17508 (compare_debug_auxbase_opt_spec_function): Same.
17509 * gcov-tool.c (unlink_gcda_file): Same.
17510 (do_merge): Same.
17511 (do_rewrite): Same.
17512 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
17513 * gimplify.c (gimplify_asm_expr): Same.
17514 (gimplify_adjust_omp_clauses): Same.
17515 * hsa-gen.c (gen_hsa_addr_insns): Same.
17516 (gen_hsa_insns_for_load): Same.
17517 (gen_hsa_cmp_insn_from_gimple): Same.
17518 (gen_hsa_insns_for_operation_assignment): Same.
17519 (gen_get_level): Same.
17520 (gen_hsa_alloca): Same.
17521 (omp_simple_builtin::generate): Same.
17522 (gen_hsa_atomic_for_builtin): Same.
17523 (gen_hsa_insns_for_call): Same.
17524 * input.c (dump_location_info): Same.
17525 * ipa-devirt.c (compare_virtual_tables): Same.
17526 * ira.c (ira_setup_eliminable_regset): Same.
17527 * lra-assigns.c (lra_assign): Same.
17528 * lra-constraints.c (lra_constraints): Same.
17529 * lto-streamer-in.c (lto_input_mode_table): Same.
17530 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
17531 (merge_and_complain): Same.
17532 (compile_offload_image): Same.
17533 (compile_images_for_offload_targets): Same.
17534 (debug_objcopy): Same.
17535 (run_gcc): Same.
17536 (main): Same.
17537 * opts.c (print_specific_help): Same.
17538 (parse_no_sanitize_attribute): Same.
17539 (print_help): Same.
17540 (handle_param): Same.
17541 * plugin.c (add_new_plugin): Same.
17542 (parse_plugin_arg_opt): Same.
17543 (try_init_one_plugin): Same.
17544 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
17545 operators, and types in diagnostics. Correct quoting and spelling
17546 issues.
17547 * read-rtl-function.c (parse_edge_flag_token): Same.
17548 (function_reader::parse_enum_value): Same.
17549 * reg-stack.c (check_asm_stack_operands): Same.
17550 * regcprop.c (validate_value_data): Same.
17551 * sched-rgn.c (make_pass_sched_fusion): Same.
17552 * stmt.c (check_unique_operand_names): Same.
17553 * targhooks.c (default_target_option_pragma_parse): Same.
17554 * tlink.c (recompile_files): Same.
17555 * toplev.c (process_options): Same.
17556 (do_compile): Same.
17557 * trans-mem.c (diagnose_tm_1): Same.
17558 (ipa_tm_scan_irr_block): Same.
17559 (ipa_tm_diagnose_transaction): Same.
17560 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
17561 format a tree code name in a diagnostic.
17562 (verify_types_in_gimple_min_lval): Same.
17563 (verify_types_in_gimple_reference): Same.
17564 (verify_gimple_call): Same.
17565 (verify_gimple_assign_unary): Same.
17566 (verify_gimple_assign_binary): Same.
17567 (verify_gimple_assign_ternary): Same.
17568 (verify_gimple_assign_single): Same.
17569 (verify_gimple_switch): Same.
17570 (verify_gimple_label): Same.
17571 (verify_gimple_phi): Same.
17572 (verify_gimple_in_seq): Same.
17573 (verify_eh_throw_stmt_node): Same.
17574 (collect_subblocks): Same.
17575 (gimple_verify_flow_info): Same.
17576 (do_warn_unused_result): Same.
17577 * tree-inline.c (expand_call_inline): Same.
17578 * tree-into-ssa.c (update_ssa): Same.
17579 * tree.c (tree_int_cst_elt_check_failed): Same.
17580 (tree_vec_elt_check_failed): Same.
17581 (omp_clause_operand_check_failed): Same.
17582 (verify_type_variant): Same.
17583 (verify_type): Same.
17584 * value-prof.c (verify_histograms): Same.
17585 * varasm.c (assemble_start_function): Same.
17586
17587 2019-05-16 Martin Sebor <msebor@redhat.com>
17588
17589 * config/i386/i386-expand.c (get_element_number): Quote keywords
17590 and other internal names in diagnostics. Adjust other diagnostic
17591 formatting issues noted by -Wformat-diag.
17592 * config/i386/i386-features.c
17593 (ix86_mangle_function_version_assembler_name): Same.
17594 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
17595 * config/i386/i386.c (ix86_function_type_abi): Same.
17596 (ix86_function_ms_hook_prologue): Same.
17597 (classify_argument): Same.
17598 (ix86_expand_prologue): Same.
17599 (ix86_md_asm_adjust): Same.
17600 (ix86_memmodel_check): Same.
17601
17602 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
17603
17604 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
17605 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
17606 and fpxx modes.
17607
17608 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
17609
17610 PR target/90497
17611 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
17612 intrinsics without SSE/SSE2/SSSE3.
17613 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
17614 check.
17615 (*mmx_uavgv8qi3): Likewise.
17616
17617 2019-05-17 Richard Biener <rguenther@suse.de>
17618
17619 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
17620 VEC_PERM_EXPR as __VEC_PERM with -gimple.
17621
17622 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
17623
17624 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
17625 vec_sldw insn pattern.
17626
17627 2019-05-17 Richard Biener <rguenther@suse.de>
17628
17629 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
17630
17631 2019-05-17 Martin Liska <mliska@suse.cz>
17632
17633 PR driver/90496
17634 * toplev.c (output_stack_usage): With LTO and sanitizer it
17635 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
17636 has no file location.
17637
17638 2019-05-16 Jakub Jelinek <jakub@redhat.com>
17639
17640 PR c++/90484
17641 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
17642 sz0 is equal to sz1, instead return false in that case.
17643
17644 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
17645 has non-constant expression, force sctx.lane and use two
17646 argument IFN_GOMP_SIMD_LANE instead of single argument.
17647 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
17648 two argument IFN_GOMP_SIMD_LANE without lhs.
17649 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
17650 member.
17651 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
17652 Define.
17653 (LOOP_REQUIRES_VERSIONING): Or in
17654 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
17655 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
17656 simd_if_cond.
17657 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
17658 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
17659 from simd if clause if needed.
17660
17661 2019-05-16 Richard Biener <rguenther@suse.de>
17662
17663 * tree-affine.c (expr_to_aff_combination): New function split
17664 out from...
17665 (tree_to_aff_combination): ... here.
17666 (aff_combination_expand): Avoid building a GENERIC tree.
17667
17668 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
17669
17670 * cgraphunit.c (cgraph_node::expand_thunk): Remove
17671 assemble_start_function and assemble_end_function calls.
17672 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
17673 assemble_start_function and assemble_end_function.
17674 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
17675 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
17676 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
17677 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
17678 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
17679 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
17680 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
17681 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
17682 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17683 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17684 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
17685 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
17686 Likewise.
17687 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
17688 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
17689 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
17690 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
17691 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17692 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17693 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
17694 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
17695 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17696 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
17697 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17698 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17699 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
17700 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
17701 Likewise.
17702 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17703 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17704 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
17705
17706 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
17707
17708 * tree-ssa-alias.c (alias_stats): Add
17709 aliasing_component_refs_p_may_alias and
17710 aliasing_component_refs_p_no_alias.
17711 (dump_alias_stats): Print aliasing_component_refs_p stats.
17712 (aliasing_component_refs_p): Update stats.
17713
17714 2019-05-16 Martin Liska <mliska@suse.cz>
17715
17716 PR lto/90500
17717 * multiple_target.c (expand_target_clones): Do not allow
17718 target_clones being used with a symbol that is an alias.
17719
17720 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
17721
17722 PR tree-optimization/90394
17723 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
17724 positives rather than ICE for cases where (code2 == NE_EXPR
17725 && code1 == BIT_AND_EXPR).
17726
17727 2019-05-16 Jakub Jelinek <jakub@redhat.com>
17728
17729 PR fortran/90329
17730 * tree-core.h (struct tree_decl_common): Document
17731 decl_nonshareable_flag for PARM_DECLs.
17732 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
17733 * calls.c (expand_call): Don't try tail call if caller
17734 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
17735 passed on the stack and callee needs to pass any arguments on the
17736 stack.
17737 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
17738 else if instead of series of mutually exclusive ifs. Handle
17739 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
17740 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17741
17742 * lto-streamer.h (LTO_major_version): Bump to 9.
17743
17744 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
17745
17746 PR tree-optimization/90106
17747 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
17748 new parameter as new internal function call, also move it to new
17749 basic block.
17750 (use_internal_fn): Pass internal function call to
17751 shrink_wrap_one_built_in_call_with_conds.
17752
17753 2019-05-15 Jakub Jelinek <jakub@redhat.com>
17754
17755 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
17756 max_vf to 1.
17757 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
17758 safelen_int and set loop->dont_vectorize.
17759
17760 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17761
17762 PR target/89021
17763 * config/i386/i386-builtin.def: Enable MMX intrinsics with
17764 SSE/SSE2/SSSE3.
17765 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
17766 Likewise.
17767 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
17768 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
17769 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
17770 is defined.
17771
17772 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17773
17774 PR target/89021
17775 * config/i386/mmx.md (*vec_dupv2sf): Changed to
17776 define_insn_and_split to support SSE emulation.
17777 (*vec_extractv2sf_0): Likewise.
17778 (*vec_extractv2sf_1): Likewise.
17779 (*vec_extractv2si_0): Likewise.
17780 (*vec_extractv2si_1): Likewise.
17781 (*vec_extractv2si_zext_mem): Likewise.
17782 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
17783 (vec_extractv2sf_1 splitter): Likewise.
17784 (vec_extractv2sfsf): Likewise.
17785 (vec_setv2si): Likewise.
17786 (vec_extractv2si_1 splitter): Likewise.
17787 (vec_extractv2sisi): Likewise.
17788 (vec_setv4hi): Likewise.
17789 (vec_extractv4hihi): Likewise.
17790 (vec_setv8qi): Likewise.
17791 (vec_extractv8qiqi): Likewise.
17792 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
17793 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
17794 (vec_extractv2sisi): Likewise.
17795 (vec_extractv4hihi): Likewise.
17796 (vec_extractv8qiqi): Likewise.
17797 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
17798 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
17799 (vec_initv2sisi): Likewise.
17800 (vec_initv4hihi): Likewise.
17801 (vec_initv8qiqi): Likewise.
17802 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
17803 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
17804 (vec_setv4hi): Likewise.
17805 (vec_setv8qi): Likewise.
17806
17807 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17808
17809 PR target/89021
17810 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
17811 TARGET_MMX_WITH_SSE.
17812 (MMXMODE:*mov<mode>_internal): Likewise.
17813 (MMXMODE:movmisalign<mode>): Likewise.
17814
17815 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
17816
17817 PR target/89021
17818 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
17819 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
17820 (sse2_cvtpd2pi): Ditto.
17821 (sse2_cvttpd2pi): Ditto.
17822 (*vec_concatv2sf_sse4_1): Ditto.
17823 (*vec_concatv2sf_sse): Ditto.
17824 (*vec_concatv2si_sse4_1): Ditto.
17825 (*vec_concatv2si): Ditto.
17826 (*vec_concatv4si_0): Ditto.
17827 (*vec_concatv2di_0): Ditto.
17828
17829 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17830
17831 PR target/89021
17832 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
17833
17834 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17835
17836 PR target/89021
17837 * config/i386/sse.md (ssse3_palignrdi): Changed to
17838 define_insn_and_split to support SSE emulation.
17839
17840 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17841
17842 PR target/89021
17843 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
17844
17845 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17846
17847 PR target/89021
17848 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
17849 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
17850 SSE emulation.
17851
17852 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17853
17854 PR target/89021
17855 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
17856 or TARGET_MMX_WITH_SSE.
17857 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
17858
17859 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17860
17861 PR target/89021
17862 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
17863
17864 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17865
17866 PR target/89021
17867 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
17868 Changed to define_insn_and_split to support SSE emulation.
17869
17870 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17871
17872 PR target/89021
17873 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
17874 Changed to define_insn_and_split to support SSE emulation.
17875
17876 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17877
17878 PR target/89021
17879 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
17880 (*mmx_<emms>): This.
17881 (mmx_<emms>): New expander.
17882
17883 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17884
17885 PR target/89021
17886 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
17887 support.
17888 (*sse2_umulv1siv1di3): Add SSE2 emulation.
17889
17890 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17891
17892 PR target/89021
17893 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
17894
17895 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17896
17897 PR target/89021
17898 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
17899
17900 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17901
17902 PR target/89021
17903 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
17904 TARGET_MMX_WITH_SSE.
17905 (*mmx_uavgv4hi3): Add SSE emulation.
17906
17907 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17908
17909 PR target/89021
17910 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
17911 and TARGET_MMX_WITH_SSE.
17912 (*mmx_uavgv8qi3): Add SSE emulation.
17913
17914 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17915
17916 PR target/89021
17917 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
17918 maskmovdqu for __MMX_WITH_SSE__.
17919
17920 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17921
17922 PR target/89021
17923 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
17924 TARGET_MMX and TARGET_MMX_WITH_SSE.
17925 (*mmx_umulv4hi3_highpart): Add SSE emulation.
17926
17927 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17928
17929 PR target/89021
17930 * config/i386/mmx.md (mmx_pmovmskb): Changed to
17931 define_insn_and_split to support SSE emulation.
17932
17933 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17934
17935 PR target/89021
17936 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
17937 and TARGET_MMX_WITH_SSE.
17938 (mmx_<code>v8qi3): Likewise.
17939 (smaxmin:<code>v4hi3): New.
17940 (umaxmin:<code>v8qi3): Likewise.
17941 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
17942 (umaxmin:*mmx_<code>v8qi3): Likewise.
17943
17944 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17945
17946 PR target/89021
17947 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
17948 TARGET_MMX_WITH_SSE.
17949 (*mmx_pinsrw): Add SSE emulation.
17950
17951 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17952
17953 PR target/89021
17954 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
17955
17956 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17957
17958 PR target/89021
17959 * config/i386/sse.md (sse_cvtpi2ps): Changed to
17960 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
17961 SSE emulation.
17962
17963 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17964
17965 PR target/89021
17966 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
17967 (sse_cvttps2pi): Likewise.
17968
17969 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17970
17971 PR target/89021
17972 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
17973 TARGET_MMX_WITH_SSE.
17974 (mmx_pshufw_1): Add SSE emulation.
17975 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
17976 TARGET_MMX_WITH_SSE to support SSE emulation.
17977
17978 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17979
17980 PR target/89021
17981 * config/i386/constraints.md (Yw): New constraint.
17982 * config/i386/mmx.md (*vec_dupv2si): Changed to
17983 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
17984 support SSE emulation.
17985
17986 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17987
17988 PR target/89021
17989 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
17990 TARGET_MMX_WITH_SSE.
17991 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
17992 support.
17993 (mmx_gt<mode>3): Likewise.
17994
17995 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17996
17997 PR target/89021
17998 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
17999 TARGET_MMX_WITH_SSE. Add SSE support.
18000
18001 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18002
18003 PR target/89021
18004 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18005 TARGET_MMX_WITH_SSE.
18006 (any_logic:<code><mode>3): New.
18007 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18008 Add SSE support.
18009
18010 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18011
18012 PR target/89021
18013 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18014 TARGET_MMX_WITH_SSE. Add SSE emulation.
18015 (mmx_<shift_insn><mode>3): Likewise.
18016 (ashr<mode>3): New.
18017 (<shift_insn><mode>3): Likewise.
18018
18019 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18020
18021 PR target/89021
18022 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18023 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18024
18025 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18026
18027 PR target/89021
18028 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18029 TARGET_MMX_WITH_SSE.
18030 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18031 SSE support.
18032
18033 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18034
18035 PR target/89021
18036 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18037 TARGET_MMX_WITH_SSE.
18038 (mulv4hi3): New.
18039 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18040 support.
18041
18042 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18043
18044 PR target/89021
18045 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18046 (plusminus:mmx_<plusminus_insn><mode>3): Check
18047 TARGET_MMX_WITH_SSE.
18048 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18049 (<plusminus_insn><mode>3): New.
18050 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18051 (*mmx_<plusminus_insn><mode>3): Likewise.
18052
18053 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18054
18055 PR target/89021
18056 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18057 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18058 prototype.
18059 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18060 define_insn_and_split to support SSE emulation.
18061 (mmx_punpcklbw): Likewise.
18062 (mmx_punpckhwd): Likewise.
18063 (mmx_punpcklwd): Likewise.
18064 (mmx_punpckhdq): Likewise.
18065 (mmx_punpckldq): Likewise.
18066
18067 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18068 Uros Bizjak <ubizjak@gmail.com>
18069
18070 PR target/89021
18071 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18072 New function.
18073 (ix86_split_mmx_pack): Likewise.
18074 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18075 New prototype.
18076 (ix86_split_mmx_pack): Likewise.
18077 * config/i386/i386.md (mmx_isa): New.
18078 (enabled): Also check mmx_isa.
18079 * config/i386/mmx.md (any_s_truncate): New code iterator.
18080 (s_trunsuffix): New code attr.
18081 (mmx_packsswb): Removed.
18082 (mmx_packssdw): Likewise.
18083 (mmx_packuswb): Likewise.
18084 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18085 MMX packsswb/packuswb with SSE2.
18086 (mmx_packssdw): Likewise.
18087 * config/i386/predicates.md (register_mmxmem_operand): New.
18088
18089 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18090
18091 PR target/89021
18092 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18093 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18094 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18095 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18096 (ix86_vector_mode_supported_p): Likewise.
18097 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18098
18099 2019-05-15 Martin Liska <mliska@suse.cz>
18100
18101 PR middle-end/90478
18102 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18103 Check for overflow.
18104
18105 2019-05-15 Richard Biener <rguenther@suse.de>
18106
18107 * tree-into-ssa.c (pass_build_ssa::execute): Run
18108 update_address_taken before going into SSA.
18109
18110 2019-05-15 Richard Biener <rguenther@suse.de>
18111
18112 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18113 as __BIT_FIELD_REF with type with -gimple.
18114
18115 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18116
18117 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18118 semantically equivalent branches (left over after prior refactorings).
18119
18120 2019-05-15 Richard Biener <rguenther@suse.de>
18121
18122 PR tree-optimization/88828
18123 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18124 bogus check.
18125
18126 2019-05-14 Richard Biener <rguenther@suse.de>
18127
18128 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18129 as __VIEW_CONVERT with -gimple.
18130
18131 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18132
18133 PR target/82920
18134 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18135 Darwin.
18136
18137 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18138
18139 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18140 define_split to become a define_insn_and_split.
18141
18142 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18143
18144 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18145 arguments.
18146 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18147 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18148 (sibcall_epilogue): Adjust.
18149 (epilogue): Adjust.
18150
18151 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18152
18153 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18154 to unsupported ones.
18155 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18156 * config.host: Likewise.
18157 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18158 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18159 __svr4__]: Remove "brand" fallback.
18160 [!KSTAT_DATA_STRING]: Remove.
18161 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18162 to *-*-solaris2*.
18163 (comdat_group): Likewise.
18164 (set_have_as_tls): Likewise.
18165 (gcc_cv_target_dl_iterate_phdr): Likewise.
18166 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18167 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18168 * configure: Regenerate.
18169 * doc/install.texi: Simplify Solaris target triplets.
18170 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18171 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18172 Remove Solaris 10 references.
18173 Remove obsolete Solaris bug reference.
18174 (Specific, sparc-sun-solaris2.10): Remove.
18175
18176 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18177
18178 * config/i386/i386.md (any_div): New code iterator.
18179 (paired_mod): New code attribute.
18180 (sgnprefix): Handle DIV and UDIV RTXes.
18181 (u): Ditto.
18182 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18183 and udivmod<mode>4 patterns using any_div code iterator.
18184 (divmod splitters): Macroize splitters using any_div code iterator.
18185 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18186 (*udivmodsi4_pow2_zext_2): Ditto.
18187 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18188 and *udivmod<mode>4_noext patterns using any_div code iterator.
18189 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18190 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18191 patterns using any_div code iterator.
18192 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18193 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18194 patterns using any_div code iterator.
18195 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18196 udivmodhiqi3 patterns using any_extend code iterator.
18197
18198 2019-05-14 Richard Biener <rguenther@suse.de>
18199 H.J. Lu <hongjiu.lu@intel.com>
18200
18201 PR tree-optimization/88828
18202 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18203 permuting in a single non-constant element not extracted
18204 from a vector.
18205
18206 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18207
18208 * internal-fn.def (SIGNBIT): New.
18209 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18210 defined.
18211 (signbitv4sf2): Likewise.
18212
18213 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18214
18215 PR target/90357
18216 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18217 next insn when the SRC reg is dead.
18218
18219 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18220
18221 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18222 (alloc_cand_and_find_basis): Ditto.
18223 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18224 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18225 (create_add_imm_cand, slsr_process_cast): Ditto.
18226 (slsr_process_copy, replace_mult_candidate): Ditto.
18227 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18228 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18229 (pass_strength_reduction::execute): Init the first NULL element.
18230
18231 2019-05-13 Nathan Sidwell <nathan@acm.org>
18232
18233 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18234 (run_attempt): Reformat line break.
18235
18236 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18237
18238 PR target/90418
18239 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18240 data registers in sibcall epilogues.
18241 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18242
18243 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18244
18245 PR target/89221
18246 * configure.ac (--enable-frame-pointer):
18247 Disable by default for cygwin and mingw.
18248 * configure: Regenerate.
18249
18250 2019-05-13 Nathan Sidwell <nathan@acm.org>
18251
18252 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18253 piece of code.
18254 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18255 (gen_member_die): Move abstract origin check earlier. Only VARs
18256 can be static_inline_p. Simplify splicing control flow.
18257
18258 2019-05-13 Richard Biener <rguenther@suse.de>
18259
18260 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18261 VIEW_CONVERT_EXPR.
18262 (vect_build_slp_tree_1): Likewise.
18263
18264 2019-05-13 Richard Biener <rguenther@suse.de>
18265
18266 PR tree-optimization/90402
18267 * tree-if-conv.c (tree_if_conversion): Value number only
18268 the loop body by making the latch an exit of the region
18269 as well.
18270 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18271 processing PHIs.
18272 (do_rpo_vn): Deal with multiple edges into the entry block
18273 that are not backedges inside the region by skipping PHIs
18274 of the entry block.
18275
18276 2019-05-13 Richard Biener <rguenther@suse.de>
18277
18278 PR tree-optimization/90316
18279 * tree-ssa-pre.c (insert_aux): Fold into ...
18280 (insert): ... this function. Use a RPO walk to reduce the
18281 number of required iterations.
18282
18283 2019-05-13 Martin Liska <mliska@suse.cz>
18284
18285 PR tree-optimization/90416
18286 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18287 string instead of passing the second part as va_arg argument.
18288
18289 2019-05-13 Martin Liska <mliska@suse.cz>
18290
18291 PR gcov-profile/90380
18292 * gcov.c (handle_cycle): Do not support zero cycle count,
18293 it should not be possible.
18294 (path_contains_zero_cycle_arc): New function.
18295 (circuit): Ignore zero cycle arc counts.
18296
18297 2019-05-13 Martin Liska <mliska@suse.cz>
18298
18299 PR gcov-profile/90380
18300 * gcov.c (enum loop_type): Remove the enum and
18301 the operator.
18302 (handle_cycle): Assert that we should not reach
18303 a negative count.
18304 (circuit): Use loop_found instead of a tri-state loop_type.
18305 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18306 happen.
18307
18308 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18309
18310 PR target/82920
18311 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18312 (ix86_output_indirect_branch_via_reg): Use output mechanism
18313 accounting for __USER_LABEL_PREFIX__.
18314 (ix86_output_indirect_branch_via_push): Likewise.
18315 (ix86_output_function_return): Likewise.
18316 (ix86_output_indirect_function_return): Likewise.
18317
18318 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18319
18320 * doc/md.texi: Document use of code attributes in rtx patterns.
18321 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18322 * read-rtl.c (find_code): Split out search loops into...
18323 (maybe_find_code): ...this new function.
18324 (check_code_iterator): Make the error message more informative.
18325 (check_code_attribute): New function.
18326 (rtx_reader::rtx_alloc_for_name): Likewise.
18327 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18328 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18329 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18330 <max_opp> directly as an rtx code instead of via a match_operator.
18331 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18332 (<su>abd<mode>_3): Update accordingly.
18333
18334 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18335
18336 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18337 is given, print the state of the EH "save world" computation for
18338 Darwin.
18339
18340 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18341
18342 PR c++/59813
18343 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18344 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18345
18346 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18347
18348 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18349 Use pinsrd for TARGET_SSE4_1.
18350 * config/i386/sse.md (movdi_to_sse): Ditto.
18351
18352 2019-05-10 Richard Biener <rguenther@suse.de>
18353
18354 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18355 (do_rpo_vn): Initialize next_value_id.
18356
18357 2019-05-10 Martin Liska <mliska@suse.cz>
18358
18359 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18360 Fix plural form.
18361
18362 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18363
18364 PR tree-optimization/90385
18365 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18366 arguments of the exit phis.
18367
18368 PR c++/90383
18369 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18370 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18371 id->do_not_fold.
18372 (copy_tree_body_r): Likewise.
18373 (copy_fn): Set id.do_not_fold to true.
18374
18375 2019-05-10 Martin Liska <mliska@suse.cz>
18376
18377 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18378 Reapply changes from r269790.
18379
18380 2019-05-10 Martin Liska <mliska@suse.cz>
18381
18382 PR middle-end/90340
18383 * doc/invoke.texi: New params.
18384 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18385 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18386 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18387 Use it.
18388 * tree-switch-conversion.h (struct jump_table_cluster):
18389 Likewise.
18390
18391 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18392
18393 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18394
18395 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18396
18397 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18398
18399 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
18400
18401 PR rtl-optimization/88879
18402 * sel-sched.c (sel_target_adjust_priority): Remove assert.
18403
18404 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
18405
18406 PR target/90405
18407 * config/arm/arm.c (callee_saved_reg_p): Move before
18408 thumb_find_work_register.
18409 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18410 thumb_find_work_register. Only call df_get_live_out once.
18411 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18412 (thumb_find_work_register): Use
18413 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18414 algorithms to locate a spare call clobbered reg.
18415
18416 2019-05-09 Martin Liska <mliska@suse.cz>
18417
18418 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
18419 and MAX_EXPR in GIMPLE FE format.
18420
18421 2019-05-09 Martin Liska <mliska@suse.cz>
18422
18423 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
18424 * gimple-pretty-print.c (dump_gimple_bb_header):
18425 Dump BB count.
18426 (pp_cfg_jump): Dump edge probability.
18427 * profile-count.c (profile_quality_as_string): Simplify
18428 with a static array.
18429 (parse_profile_quality): New function.
18430 (profile_count::dump): Simplify with a static array.
18431 (profile_count::from_gcov_type): Add new argument.
18432 * profile-count.h (parse_profile_quality): Likewise.
18433 * predict.h (set_hot_bb_threshold): New.
18434 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18435 New param.
18436 * predict.c (get_hot_bb_threshold): Set from the new param.
18437 (set_hot_bb_threshold): New.
18438
18439 2019-05-09 Richard Biener <rguenther@suse.de>
18440
18441 PR tree-optimization/90395
18442 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
18443 rewrite vector stores that throw internally.
18444
18445 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
18446
18447 * cif-code.def (CHKP): Remove.
18448
18449 PR target/89221
18450 * configure.ac (--enable-frame-pointer): Disable by default for
18451 GNU systems.
18452 * configure: Regenerate.
18453
18454 2019-05-09 Alan Modra <amodra@gmail.com>
18455
18456 PR target/89271
18457 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
18458 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
18459 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
18460 cost for general <-> vsx when direct moves are available.
18461 Cost union classes at minimal cost for any reg in the class.
18462 Correct calculation for moves between vsx, float, and altivec.
18463 Don't return a low cost for moves between special regs. Don't
18464 use hard coded register numbers.
18465 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
18466 (rs6000_ira_change_pseudo_allocno_class): New function.
18467 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
18468 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
18469 alternatives.
18470 (movsi_internal1): Don't disparage vector alternatives.
18471 (mov<mode>_internal): Likewise, excepting alternative that
18472 will be split.
18473 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
18474 we <- b alternative.
18475
18476 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18477
18478 PR c++/59813
18479 PR tree-optimization/89060
18480 * tree-ssa-live.h (live_vars_map): New typedef.
18481 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
18482 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
18483 (struct compute_live_vars_data): New type.
18484 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
18485 live_vars_at_stmt, destroy_live_vars): New functions.
18486 * tree-tailcall.c: Include tree-ssa-live.h.
18487 (live_vars, live_vars_vec): New global variables.
18488 (find_tail_calls): Perform variable life analysis before punting.
18489 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
18490 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
18491 member.
18492 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
18493 Perform variable life analysis to select variables that really need
18494 clobbers added.
18495 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
18496 instead set id->eh_landing_pad_dest and assert it is the same.
18497 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
18498
18499 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
18500 Richard Earnshaw <rearnsha@arm.com>
18501
18502 PR target/88167
18503 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
18504 function.
18505 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
18506 (thumb1_compute_save_core_reg_mask): Don't force a spare work
18507 register if both the epilogue and prologue can use call-clobbered
18508 regs.
18509 (thumb1_unexpanded_epilogue): Use
18510 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
18511 picking temporaries for restoring high regs to match that of the
18512 prologue where possible.
18513 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
18514 the list of work registers. Detect if the return address is still live
18515 at the end of the prologue and avoid using it for a work register if so.
18516 If the return address is not live, add LR to the list of pushable regs
18517 after the first pass.
18518
18519 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18520
18521 PR tree-optimization/90078
18522 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
18523 (INFTY): Increase the value for infinite cost.
18524 (struct comp_cost): Promote type of members to int64_t.
18525 (infinite_cost): Don't set complexity in initialization.
18526 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
18527 overflows to infinite_cost.
18528 (adjust_setup_cost): Promote type of parameter and cost computation
18529 to int64_t.
18530 (struct ainc_cost_data, struct iv_ca): Promote type of member to
18531 int64_t.
18532 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
18533 cost computation to int64_t.
18534 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
18535 int64_t's format specifier in dump.
18536
18537 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18538
18539 PR tree-optimization/90240
18540 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
18541 with respect to scaling factor pre-computed for each basic block.
18542 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
18543 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
18544 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
18545 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
18546 live range for array of loop's basic blocks. Cleanup aux field of
18547 loop's basic blocks.
18548
18549 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18550
18551 PR tree-optimization/90356
18552 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
18553
18554 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
18555
18556 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
18557 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
18558 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
18559 (ix86_handle_option): Handle -mavx512bf16.
18560 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
18561 to extra_headers.
18562 * config/i386/avx512bf16vlintrin.h: New.
18563 * config/i386/avx512bf16intrin.h: New.
18564 * config/i386/cpuid.h (bit_AVX512BF16): New.
18565 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
18566 * config/i386/i386-builtin-types.def: Add new types.
18567 * config/i386/i386-builtin.def: Add new builtins.
18568 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18569 __AVX512BF16__.
18570 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
18571 (ix86_option_override_internal): Handle BF16.
18572 (ix86_valid_target_attribute_inner_p): Ditto.
18573 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
18574 * config/i386/i386-builtin.c (enum processor_features): Add
18575 F_AVX512BF16.
18576 (static const _isa_names_table isa_names_table): Ditto.
18577 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
18578 (PTA_AVX512BF16): Ditto.
18579 * config/i386/i386.opt: Add -mavx512bf16.
18580 * config/i386/immintrin.h: Include avx512bf16intrin.h
18581 and avx512bf16vlintrin.h.
18582 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
18583 avx512f_cvtneps2bf16_<mode><mask_name>,
18584 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
18585 * config/i386/subst.md (mask_half): Add new subst.
18586 * doc/invoke.texi: Document -mavx512bf16.
18587
18588 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18589
18590 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
18591 Delete declaration.
18592 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
18593 (rs6000_debug_legitimize_reload_address): Delete.
18594 (rs6000_legitimize_reload_address_ptr): Delete.
18595 (rs6000_option_override_internal): Adjust.
18596 (mem_operand_gpr): Adjust comment.
18597 (legitimate_lo_sum_address_p): Ditto.
18598 (rs6000_legitimize_reload_address): Delete.
18599 (rs6000_debug_legitimize_reload_address): Delete.
18600 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
18601
18602 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
18603
18604 PR target/89765
18605 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18606 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
18607 to compute vector element selector for both constant and variable
18608 operands.
18609
18610 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
18611
18612 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
18613 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
18614 ashrdi3_cvt using SWI48 mode iterator.
18615
18616 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18617
18618 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
18619 (aarch64_<su>abd<mode>_3): Likewise.
18620 (*aarch64_<su>abd<mode>_3): New define_insn.
18621 (<sur>sad<vsi2qi>): New define_expand.
18622 * config/aarch64/iterators.md: Added MAX_OPP attribute.
18623 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
18624 (build_vect_cond_expr): Likewise.
18625
18626 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
18627
18628 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
18629 clobbers outside of accessible_reg_set.
18630 * config/i386/i386.c (ix86_conditional_register_usage):
18631 Disable register sets by clearing corresponding bits in
18632 accessible_reg_set. Do not set corresponding bits in fixed_regs,
18633 call_used_regs and don't clear corresponding reg_names array members.
18634
18635 2019-05-07 Richard Biener <rguenther@suse.de>
18636
18637 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
18638 not specified still compute a comp_vectype for invariant
18639 compares.
18640
18641 2019-05-07 Richard Biener <rguenther@suse.de>
18642
18643 PR tree-optimization/90316
18644 * tree-ssa-pre.c (translate_vuse_through_block): When
18645 same_valid is NULL do not bother to search for a virtual
18646 PHI continuation.
18647 (phi_translate_1): When operands changed we cannot keep
18648 the same value-number so do not bother to ask whether
18649 that's possible from translate_vuse_through_block.
18650
18651 2019-05-07 Martin Liska <mliska@suse.cz>
18652
18653 * bitmap.c (bitmap_register): Come up with
18654 alloc_descriptor_max_uid and assign it for
18655 a new bitmap.
18656 (register_overhead): Use get_descriptor as
18657 a descriptor.
18658 (release_overhead): New.
18659 (bitmap_elem_to_freelist): Call it.
18660 (bitmap_elt_clear_from): Likewise.
18661 (bitmap_obstack_free): Likewise.
18662 (bitmap_move): Sensitively release memory.
18663 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
18664 (bitmap_initialize): Initialize alloc_descriptor to zero.
18665 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
18666
18667 2019-05-07 Richard Biener <rguenther@suse.de>
18668
18669 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
18670 we build a SLP node. Remove max_size and limiting.
18671 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
18672
18673 2019-05-07 Richard Biener <rguenther@suse.de>
18674
18675 PR tree-optimization/90316
18676 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
18677 limit by reference.
18678 (walk_non_aliased_vuses): Take walking limit argument.
18679 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
18680 walking if it is reached instead of just counting.
18681 (get_continuation_for_phi): Likewise.
18682 (walk_non_aliased_vuses): Likewise, instead of leaving counter
18683 limiting to the callback.
18684 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
18685 (vn_reference_lookup_3): Likewise.
18686 (vn_reference_lookup_pieces): Likewise.
18687 (vn_reference_lookup): Likewise.
18688 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
18689 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
18690 (avail_exprs_stack::lookup_avail_expr): Likewise.
18691
18692 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
18693
18694 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
18695 for comparaible types in the second direction even if first one
18696 hits incomparable type.
18697
18698 2019-05-07 Richard Biener <rguenther@suse.de>
18699
18700 PR lto/90369
18701 * lto-wrapper.c (debug_objcopy): Use the original filename
18702 including archive offset for the filename used for -save-temps.
18703
18704 2019-05-07 Li Jia He <helijia@linux.ibm.com>
18705
18706 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
18707 detection.
18708
18709 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
18710 Hongtao Liu <hongtao.liu@intel.com>
18711
18712 PR target/89750
18713 PR target/86444
18714 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
18715 Modified, original implementation isn't correct.
18716
18717 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18718
18719 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
18720 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
18721 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
18722 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
18723 (FRAME_POINTER_REGNUM): Change numbering.
18724 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
18725 (alt_reg_names): Adjust.
18726 (rs6000_conditional_register_usage): Don't mark hard register 64 as
18727 fixed.
18728 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
18729 (DWARF_FRAME_REGISTERS): Delete.
18730 (DWARF2_FRAME_REG_OUT): Fix whitespace.
18731 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
18732 Adjust.
18733 (REG_ALLOC_ORDER): Adjust.
18734 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
18735 (REG_CLASS_CONTENTS): Adjust.
18736 (RETURN_ADDR_RTX): Change comment.
18737 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
18738 instead of 67.
18739 (REGISTER_NAMES): Adjust.
18740 (ADDITIONAL_REGISTER_NAMES): Adjust.
18741 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
18742
18743 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18744
18745 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
18746 Delete.
18747 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
18748 (DWARF_FRAME_REGISTERS): Adjust.
18749 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
18750 Adjust.
18751 (REG_ALLOC_ORDER): Adjust.
18752 (enum reg_class): Delete SPR_REGS.
18753 (REG_CLASS_NAMES): Delete SPR_REGS.
18754 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
18755 (REGISTER_NAMES): Adjust.
18756 (ADDITIONAL_REGISTER_NAMES): Adjust.
18757 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
18758 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
18759 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
18760 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
18761 (htm_spr_regno): Delete.
18762 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
18763 argument.
18764 (rs6000_dbx_register_number): Adjust.
18765
18766 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18767
18768 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
18769
18770 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18771
18772 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
18773 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
18774
18775 2019-05-06 Jakub Jelinek <jakub@redhat.com>
18776
18777 PR tree-optimization/88709
18778 PR tree-optimization/90271
18779 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
18780 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
18781 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
18782 variable.
18783 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
18784 of the store merging group is larger than
18785 PARAM_STORE_MERGING_MAX_SIZE parameter.
18786 (split_group): Add bzero_first argument. If set, always emit first
18787 the first store which must be = {} of the whole area and then for the
18788 rest of the stores consider all zero bytes as paddings.
18789 (imm_store_chain_info::output_merged_store): Check if first store
18790 is = {} of the whole area and if yes, determine which setting of
18791 bzero_first for split_group gives smaller number of stores. Adjust
18792 split_group callers.
18793 (lhs_valid_for_store_merging_p): Allow decls.
18794 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
18795 no elts.
18796 (pass_store_merging::process_store): Likewise.
18797
18798 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
18799
18800 PR target/89424
18801 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18802 handling of V1TImode.
18803
18804 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
18805
18806 PR target/89221
18807 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
18808 and enable_frame_pointer ...
18809 * configure.ac: ... here. Update help strings for
18810 --enable-frame-pointer.
18811 * configure: Regenerate.
18812 * config/i386/i386-options.c (ix86_option_override_internal): Remove
18813 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
18814 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
18815 (USE_X86_64_FRAME_POINTER): Ditto.
18816
18817 2019-05-06 Martin Liska <mliska@suse.cz>
18818
18819 * config.gcc: Append to target_gtfiles and fix indentation.
18820
18821 2019-05-06 Richard Biener <rguenther@suse.de>
18822
18823 PR tree-optimization/90358
18824 * tree-vect-stmts.c (get_group_load_store_type): Properly
18825 detect unused upper half of load.
18826 (vectorizable_load): Likewise.
18827
18828 2019-05-06 Richard Biener <rguenther@suse.de>
18829
18830 PR tree-optimization/88828
18831 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
18832 (simplify_vector_constructor): ...here. Handle constants in
18833 the constructor.
18834
18835 2019-05-06 Richard Biener <rguenther@suse.de>
18836
18837 PR tree-optimization/90328
18838 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
18839 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
18840 is valid in the loop nest before using it.
18841 (initialize_data_dependence_relation): Adjust.
18842 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
18843 loop as loop-nest to dr_may_alias_p.
18844
18845 2019-05-06 Richard Biener <rguenther@suse.de>
18846
18847 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
18848
18849 2019-05-06 Richard Biener <rguenther@suse.de>
18850
18851 PR tree-optimization/90316
18852 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
18853 compute target on demand.
18854 (get_continuation_for_phi): Remove code walking stmts to
18855 get to a target virtual operand which could end up being
18856 quadratic.
18857
18858 2019-05-06 Martin Liska <mliska@suse.cz>
18859
18860 PR sanitizer/90312
18861 * config/i386/i386-options.c (ix86_option_override_internal): Error only
18862 when -mabi is selected to a non-default version.
18863
18864 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
18865 Martin Liska <mliska@suse.cz>
18866
18867 * Makefile.in: Add lto-dump.texi.
18868 * cgraph.h: Add new functions get_visibility_string and
18869 get_symtab_type_string.
18870 * doc/gcc.texi: Include lto-dump section.
18871 * doc/lto-dump.texi: New file.
18872 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
18873 (parse_dump_option): Factor out this function.
18874 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
18875 (parse_dump_option): Export the function.
18876 * symtab.c (symtab_node::get_visibility_string): New function.
18877 (symtab_node::get_symtab_type_string): Likewise.
18878
18879 2019-05-06 Martin Liska <mliska@suse.cz>
18880
18881 * config/i386/i386-builtins.c: New file.
18882 * config/i386/i386-builtins.h: New file.
18883 * config/i386/i386-expand.c: New file.
18884 * config/i386/i386-expand.h: New file.
18885 * config/i386/i386-features.c: New file.
18886 * config/i386/i386-features.h: New file.
18887 * config/i386/i386-options.c: New file.
18888 * config/i386/i386-options.h: New file.
18889 * config.gcc: Add new files into extra_objs and
18890 target_gtfiles.
18891 * config/i386/i386.c: Split content of the file
18892 into newly introduced files.
18893 * config/i386/i386.h: Declare common variables
18894 and macros.
18895 * config/i386/t-i386: Define dependencies for new files.
18896
18897 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
18898
18899 PR target/89400
18900 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
18901 Restrict 'all' variant to 32-bit configurations.
18902 (unaligned_loadhiu): Likewise.
18903 (unaligned_storehi): Likewise.
18904 (unaligned_storesi): Likewise.
18905 (unaligned_loadhis): Disable when compiling for thumb1.
18906
18907 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
18908
18909 PR tree-optimization/90269
18910 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
18911 Ignore clobbers.
18912
18913 2019-05-03 Martin Liska <mliska@suse.cz>
18914
18915 * hash-map.h: Add is_empty function.
18916 * hash-set.h: Likewise.
18917 * hash-table.h: Likewise.
18918 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
18919 elements () == 0 (and similar usages).
18920 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
18921 * gimplify.c (gimplify_bind_expr): Likewise.
18922 (gimplify_switch_expr): Likewise.
18923 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
18924 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
18925 * postreload-gcse.c (dump_hash_table): Likewise.
18926 (gcse_after_reload_main): Likewise.
18927 * predict.c (combine_predictions_for_bb): Likewise.
18928 * tree-parloops.c (reduction_phi): Likewise.
18929 (separate_decls_in_region): Likewise.
18930 (transform_to_exit_first_loop): Likewise.
18931 (gen_parallel_loop): Likewise.
18932 (gather_scalar_reductions): Likewise.
18933 (try_create_reduction_list): Likewise.
18934 * var-tracking.c (dump_vars): Likewise.
18935 (emit_notes_for_changes): Likewise.
18936 (vt_emit_notes): Likewise.
18937
18938 2019-05-03 Richard Biener <rguenther@suse.de>
18939
18940 PR tree-optimization/90316
18941 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
18942 before running VN.
18943
18944 2019-05-03 Richard Biener <rguenther@suse.de>
18945
18946 * tree-vect-stmts.c (get_group_load_store_type): Avoid
18947 peeling for gaps by loading only lower halves of vectors
18948 if possible.
18949 (vectorizable_load): Likewise.
18950
18951 2019-05-03 Richard Biener <rguenther@suse.de>
18952
18953 PR middle-end/89518
18954 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
18955
18956 2019-05-03 Richard Biener <rguenther@suse.de>
18957
18958 PR middle-end/87314
18959 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
18960 Handle STRING_CST vs DECL or STRING_CST.
18961
18962 2019-05-03 Richard Biener <rguenther@suse.de>
18963
18964 PR tree-optimization/88963
18965 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
18966 vector loads feeding only BIT_FIELD_REFs to component
18967 loads. Rewrite stores fed by CONSTRUCTORs to component
18968 stores.
18969
18970 2019-05-03 Jakub Jelinek <jakub@redhat.com>
18971
18972 * opts.h (finish_options): Remove lang_mask argument.
18973 (print_help, help_option_argument): Declare.
18974 * opts.c (print_help): Remove forward declaration, no longer static.
18975 (finish_options): Remove lang_mask argument, don't call print_help
18976 here.
18977 * opts-global.c (decode_options): Adjust finish_option caller, call
18978 print_help here.
18979
18980 PR tree-optimization/90303
18981 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
18982 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
18983
18984 2019-05-03 Richard Biener <rguenther@suse.de>
18985
18986 PR tree-optimization/89698
18987 * gimple-fold.c (canonicalize_constructor_val): Early out
18988 for constants, handle unfolded INTEGER_CSTs as they appear in
18989 C++ virtual table ctors.
18990
18991 2019-05-03 Richard Biener <rguenther@suse.de>
18992
18993 * passes.c (execute_function_todo): Remove dead code.
18994
18995 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
18996
18997 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
18998 the internal register number, for any "real" register.
18999
19000 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19001
19002 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19003 correct numbers for TFHAR, TFIAR, TEXASR.
19004
19005 2019-05-02 Richard Biener <rguenther@suse.de>
19006
19007 PR tree-optimization/89653
19008 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19009 update-address-taken before the pass.
19010 * passes.def (pass_tree_loop_init): Put comment before it.
19011
19012 2019-05-02 Richard Biener <rguenther@suse.de>
19013
19014 PR tree-optimization/89509
19015 * tree-ssa-structalias.c (compute_dependence_clique): Look
19016 at the first subvar when determining whether it is restrict.
19017
19018 2019-05-02 Richard Biener <rguenther@suse.de>
19019
19020 PR tree-optimization/90273
19021 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19022 useless debug stmts.
19023
19024 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19025
19026 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19027 ACLE branch.
19028 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19029 SVE ACLE branch.
19030 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19031 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19032 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19033 (vectorizable_reduction): Use the functions above to vectorize in a
19034 fully masked loop codes that don't have a conditional internal
19035 function.
19036
19037 2019-05-02 Martin Liska <mliska@suse.cz>
19038
19039 * cgraphclones.c: Call valid_attribute_p with 1 for
19040 target_clone.
19041 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19042 it's for target attribute.
19043 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19044 Add new boolean argument.
19045 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19046 Likewise.
19047 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19048 to ix86_valid_target_attribute_inner_p.
19049 (ix86_valid_target_attribute_p): Pass flags argument to
19050 ix86_valid_target_attribute_inner_p.
19051 (get_builtin_code_for_version): Use 0 as it's target attribute.
19052
19053 2019-05-02 Martin Liska <mliska@suse.cz>
19054
19055 * gcc.c (process_command): Add dummy file only
19056 if n_infiles == 0.
19057 * opts-global.c (decode_options): Pass lang_mask.
19058 * opts.c (print_help): New function.
19059 (finish_options): Print --help if help_option_argument
19060 is set.
19061 (common_handle_option): Factor out content of OPT__help_
19062 into print_help.
19063 * opts.h (finish_options): Add new argument.
19064
19065 2019-05-02 Martin Liska <mliska@suse.cz>
19066
19067 PR target/88809
19068 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19069 With -minline-all-stringops use inline expansion using 4B loop.
19070 * doc/invoke.texi: Document the change of
19071 -minline-all-stringops.
19072
19073 2019-05-01 Jeff Law <law@redhat.com>
19074
19075 PR tree-optimization/88797
19076 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19077 PHI feeds a conditional on the RHS of an assignment.
19078
19079 2019-04-30 Andrew Waterman <andrew@sifive.com>
19080 Jim Wilson <jimw@sifive.com>
19081
19082 * config/riscv/constraints.md (L): New.
19083 * config/riscv/predicates.md (lui_operand): New.
19084 (sfb_alu_operand): New.
19085 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19086 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19087 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19088 * config/riscv/risc.md (type): Add sfb_alu.
19089 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19090 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19091 (branch_zero<mode>): Delete.
19092 (mov<mode>cc): New.
19093 (mov<GPR:mode><X:mode>cc): Likewise.
19094 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19095
19096 2019-04-30 Nathan Sidwell <nathan@acm.org>
19097
19098 * tree.h (MARK_TS_EXP): New.
19099
19100 2019-04-30 Martin Liska <mliska@suse.cz>
19101
19102 * opts.c (enable_warning_as_error): Provide hints
19103 for unknown options.
19104
19105 2019-04-30 Martin Liska <mliska@suse.cz>
19106
19107 PR debug/90288
19108 * doc/invoke.texi: Add missing dash for gas-locview-support
19109 and gno-as-locview-support.
19110
19111 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19112
19113 PR target/89093
19114 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19115 whitespace at the start of target attribute string.
19116
19117 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19118
19119 PR target/86538
19120 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19121 Define __ARM_FEATURE_ATOMICS.
19122
19123 2019-04-30 Martin Liska <mliska@suse.cz>
19124
19125 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19126 into built_in_function enum. Remove code for endp == 2 and
19127 use BUILT_IN_* constants.
19128 (gimple_fold_builtin): Call the function with fcode.
19129
19130 2019-04-30 Martin Liska <mliska@suse.cz>
19131
19132 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19133 DECL_FUNCTION_CODE into ix86_builtins enum before
19134 the switch statement.
19135
19136 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19137
19138 PR tree-optimization/89475
19139 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19140 calls.
19141
19142 2019-04-30 Martin Liska <mliska@suse.cz>
19143
19144 PR translation/90274
19145 * opts.c (print_filtered_help): Wrap string in _(...).
19146
19147 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19148
19149 PR tree-optimization/90240
19150 Revert:
19151 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19152
19153 PR tree-optimization/90078
19154 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19155 checks for infinite_cost overflow.
19156
19157 2019-04-29 Jeff Law <law@redhat.com>
19158
19159 * passes.def: Move -Wrestrict pass after copy propagation.
19160
19161 2019-04-29 Maya Rashish <coypu@sdf.org>
19162
19163 * config.gcc (default_gnu_indirect_function): Default to yes
19164 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19165 sparc*-*-netbsd*, x86_64-*-netbsd*.
19166
19167 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19168
19169 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19170 where cond2 is NE_EXPR.
19171 (is_value_included_in): Update comment.
19172
19173 2019-04-29 Richard Biener <rguenther@suse.de>
19174
19175 PR tree-optimization/90278
19176 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19177 EH on comparison simplification.
19178
19179 2019-04-29 Jason Merrill <jason@redhat.com>
19180
19181 PR c++/82081 - tail call optimization breaks noexcept
19182 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19183 nothrow function to a might-throw function into a tail call.
19184
19185 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19186
19187 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19188 (DDR_INNER_LOOP): Likewise.
19189 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19190 (initialize_data_dependence_relation): Likewise.
19191 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19192
19193 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19194
19195 PR rtl-optimization/90257
19196 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19197 return value.
19198
19199 Revert the revert:
19200 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19201
19202 PR target/90178
19203 Revert:
19204 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19205
19206 Revert the revert:
19207 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19208
19209 Revert:
19210 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19211
19212 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19213
19214 2019-04-29 Richard Biener <rguenther@suse.de>
19215
19216 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19217 rhs issue a reset.
19218
19219 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19220
19221 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19222 varasm.h, and netbsd-protos.h.
19223
19224 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19225
19226 PR target/89261
19227 * config/i386/i386-protos.h (ix86_data_alignment): Change
19228 the second argument type to unsigned int.
19229 * config/i386/i386.c (ix86_data_alignment): Change "align"
19230 argument type to unsigned int.
19231
19232 2019-04-27 Martin Liska <mliska@suse.cz>
19233
19234 PR middle-end/90258
19235 * opt-suggestions.c (option_proposer::build_option_suggestions):
19236 When get_valid_option_values returns empty values, add the
19237 misspelling candidate.
19238
19239 2019-04-26 Jim Wilson <jimw@sifive.com>
19240
19241 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19242 parameter.
19243 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19244 Pass orig_mode to riscv_build_integer.
19245 (riscv_split_integer): Pass mode to riscv_move_integer.
19246 (riscv_legitimize_const_move): Likewise.
19247 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19248 promoted_mode. Replace force_reg call with code to load constant into
19249 promoted reg and then subreg it for the store.
19250 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19251 riscv_move_integer.
19252
19253 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19254
19255 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19256 corrupt codes.
19257
19258 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19259
19260 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19261 commentary about the encoding of precision.
19262
19263 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19264
19265 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19266 * config/i386/t-freebsd64: New file.
19267 * config.gcc: Add the t-freebsd64 for multilib support.
19268
19269 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19270
19271 * doc/extend.texi (vector_size): Add missing comma after @xref.
19272
19273 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19274
19275 * BASE-VER: Set to 10.0.0.
19276
19277 2019-04-25 Richard Biener <rguenther@suse.de>
19278
19279 PR middle-end/89765
19280 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19281 VIEW_CONVERT_EXPR into one operating on an rvalue.
19282
19283 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19284
19285 PR target/89929
19286 * config/i386/i386.c (feature_priority): Moved to file scope.
19287 (processor_features): Likewise.
19288 (processor_model): Likewise.
19289 (_arch_names_table): Likewise.
19290 (arch_names_table): Likewise.
19291 (_feature_list): Removed.
19292 (feature_list): Likewise.
19293 (_isa_names_table): Moved to file scope. Add priority.
19294 (isa_names_table): Likewise.
19295 (get_builtin_code_for_version): Replace feature_list with
19296 isa_names_table. Update error message for P_ZERO priority.
19297
19298 2019-04-25 Richard Biener <rguenther@suse.de>
19299
19300 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19301 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19302
19303 2019-04-24 Jeff Law <law@redhat.com>
19304
19305 PR tree-optimization/90037
19306 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19307 * passes.def: Replace all instance of phi-only cprop with the
19308 lattice propagator. Move propagation pass from after erroneous
19309 path isolation to before erroneous path isolation.
19310 * tree-ssa-phionlycprop.c: Remove.
19311
19312 2019-04-24 Richard Biener <rguenther@suse.de>
19313
19314 PR middle-end/90213
19315 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19316 by size and BITS_PER_UNIT on poly-wide-ints.
19317
19318 2019-04-25 Richard Biener <rguenther@suse.de>
19319
19320 PR middle-end/90194
19321 * match.pd: Add pattern to simplify view-conversion of an
19322 empty constructor.
19323
19324 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19325
19326 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19327 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19328 for Go on 32 bit AIX.
19329 * config/rs6000/aix72.h: Likewise.
19330
19331 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19332
19333 PR target/90193
19334 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19335 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19336
19337 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19338
19339 PR target/89952
19340 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19341 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19342 for restored hard frame pointer.
19343 (s390_sched_dependencies_evaluation): Implement new target hook.
19344 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19345
19346 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19347
19348 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19349 * config/arc/arc.c (arc_init): Cleanup warning message.
19350 (arc_override_options): Likewise.
19351
19352 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19353
19354 PR target/90187
19355 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19356 a register if both if_true and if_false are MEMs.
19357
19358 PR tree-optimization/90208
19359 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19360 after labels of new_bb, not before them.
19361
19362 PR tree-optimization/90211
19363 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19364 which are not SSA_NAMEs.
19365
19366 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19367
19368 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19369 AArch64.
19370 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19371
19372 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19373
19374 PR rtl-optimization/87979
19375 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19376 not equal zero.
19377
19378 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19379
19380 PR rtl-optimization/84032
19381 * modulo-sched.c (ps_insn_find_column): Change condition so that
19382 branch will always be the last insn in a row inside partial
19383 schedule.
19384
19385 2019-04-23 Richard Biener <rguenther@suse.de>
19386
19387 PR debug/90131
19388 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19389 dest_single_pred_p argument.
19390 (remove_forwarder_block): Adjust.
19391 (remove_forwarder_block_with_phi): Likewise.
19392
19393 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19394 Bernd Edlinger <bernd.edlinger@hotmail.de>
19395 Jakub Jelinek <jakub@redhat.com>
19396
19397 PR target/89093
19398 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19399 if used with general-regs-only.
19400 (arm_conditional_register_usage): Don't add non-general regs if
19401 general-regs-only.
19402 (arm_valid_target_attribute_rec): Handle general-regs-only.
19403 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19404 general-regs-only.
19405 (TARGET_HARD_FLOAT_SUB): Define.
19406 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19407 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19408 (TARGET_REALLY_IWMMXT2): Likewise.
19409 * config/arm/arm.opt: Add -mgeneral-regs-only.
19410 * doc/extend.texi: Document ARM general-regs-only target.
19411 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19412
19413 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19414
19415 PR tree-optimization/90078
19416 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19417 checks for infinite_cost overflow.
19418
19419 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19420
19421 PR tree-optimization/90021
19422 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
19423 and check univariate against it.
19424 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
19425 * tree-data-ref.c (add_other_self_distances): Pass new argument.
19426
19427 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19428
19429 PR target/90178
19430 Revert:
19431 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19432
19433 Revert the revert:
19434 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19435
19436 Revert:
19437 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19438
19439 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19440
19441 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
19442
19443 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
19444 names using operand format, rather than hard-wired.
19445 (speculation_barrier): Likewise.
19446
19447 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
19448
19449 PR tree-optimization/88055
19450 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
19451 (gen_one_condition): Use it if !HONOR_NANS.
19452
19453 2019-04-19 Jakub Jelinek <jakub@redhat.com>
19454
19455 PR middle-end/90139
19456 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
19457 assign_temp instead of gen_reg_rtx.
19458
19459 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
19460
19461 PR translation/90118
19462 * config/aarch64/aarch64.c (aarch64_override_options_internal):
19463 Add missing space before %<.
19464
19465 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
19466
19467 PR rtl-optimization/87871
19468 * ira-lives.c (make_object_dead): Don't add conflicts to
19469 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
19470
19471 2019-04-18 Martin Sebor <msebor@redhat.com>
19472
19473 PR middle-end/89797
19474 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
19475 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
19476 assuming type size fits in SHWI.
19477
19478 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
19479
19480 PR ipa/85051
19481 * ipa-inline.c (flatten_function): New parameter UPDATE.
19482 (ipa_inline, early_inliner): Use it.
19483
19484 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19485
19486 * fold-const.c (int_const_binop): Return early on failure.
19487
19488 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19489
19490 PR middle-end/85164
19491 * combine.c (force_int_to_mode): Cast the argument rather than
19492 the result of known_alignment.
19493 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
19494
19495 2019-04-18 Richard Biener <rguenther@suse.de>
19496
19497 PR debug/90131
19498 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
19499 out from ...
19500 (remove_forwarder_block): ... here.
19501 (remove_forwarder_block_with_phi): Also move debug stmts here.
19502
19503 2019-04-18 Jakub Jelinek <jakub@redhat.com>
19504
19505 PR translation/79183
19506 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
19507 inform where appropriate.
19508
19509 2019-04-18 Richard Biener <rguenther@suse.de>
19510
19511 * tree.c (get_qualified_type): Put found type variants at the
19512 head of the variant list.
19513
19514 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19515
19516 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
19517
19518 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
19519
19520 PR target/90125
19521 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
19522 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
19523 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
19524 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
19525 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
19526
19527 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
19528
19529 * ira-conflicts.c (print_allocno_conflicts): Always print something,
19530 even for allocno's with no conflicts.
19531 (print_conflicts): Print an extra newline.
19532
19533 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19534
19535 * auto-inc-dec.c (attempt_change): Set the alignment of the
19536 temporary memory to that of the original.
19537
19538 2019-04-17 Joao Moreira <jmoreira@suse.de>
19539
19540 * targhooks.c (default_print_patchable_function_entry): Emit
19541 __patchable_function_entries section with writable flags to allow
19542 relocation resolution.
19543
19544 2019-04-17 Jonny Grant <jg@jguk.org>
19545
19546 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
19547
19548 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19549
19550 PR middle-end/90095
19551 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
19552 on lowpart SUBREGs.
19553
19554 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
19555
19556 * config/arc/arc.c (arc_init): Format diagnostic string.
19557 (arc_override_options): Likewise.
19558 (check_if_valid_regno_const): Likewise.
19559 (arc_reorg): Likewise.
19560
19561 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19562
19563 PR target/17108
19564 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
19565 name.
19566 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
19567 name.
19568 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
19569 (*movdi_update1): Use Pmode.
19570 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
19571 (movdi_<mode>_update_stack): Rename to ...
19572 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
19573 use Pmode.
19574 (*movsi_update1): Use Pmode.
19575 (*movsi_update2): Use Pmode.
19576 (movsi_update): Rename to ...
19577 (movsi_<mode>_update): ... this. Use Pmode.
19578 (movsi_update_stack): Fix condition.
19579 (*movhi_update1): Use Pmode. Fix argument to
19580 avoiding_indexed_address_p.
19581 (*movhi_update2): Ditto.
19582 (*movhi_update3): Ditto.
19583 (*movhi_update4): Ditto.
19584 (*movqi_update1): Ditto.
19585 (*movqi_update2): Ditto.
19586 (*movqi_update3): Ditto.
19587 (*movsf_update1, *movdf_update1): Merge, rename to...
19588 (*mov<mode>_update1): This. Use Pmode. Fix argument to
19589 avoiding_indexed_address_p. Add "size" attribute.
19590 (*movsf_update2, *movdf_update2): Merge, rename to...
19591 (*mov<mode>_update2): This. Ditto.
19592 (*movsf_update3): Use Pmode. Fix argument to
19593 avoiding_indexed_address_p.
19594 (*movsf_update4): Ditto.
19595 (allocate_stack): Simplify condition. Adjust pattern names.
19596
19597 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19598
19599 PR target/89093
19600 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
19601 whitespace at the start of target attribute string.
19602
19603 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
19604
19605 PR target/84369
19606 * config/rs6000/power9.md: Add store forwarding bypass.
19607
19608 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
19609
19610 PR debug/89528
19611 * valtrack.c (dead_debug_insert_temp): Reset debug references
19612 to the return value of a call being removed.
19613
19614 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19615
19616 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
19617 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
19618 implement target hook.
19619 (arc_memory_move_cost): New function.
19620 (TARGET_REGISTER_MOVE_COST): Define.
19621 (TARGET_MEMORY_MOVE_COST): Likewise.
19622 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
19623 (MEMORY_MOVE_COST): Likewise.
19624
19625 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19626
19627 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
19628 (sibcall_value_insn): Likewise.
19629 * config/arc/constraints.md (Rs5): Remove.
19630
19631 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19632
19633 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
19634 for last two fake registers.
19635 (arc_conditional_register_usage): Make sure fake frame and arg
19636 pointer regs are in general regs class.
19637 (FRAME_POINTER_MASK): Remove.
19638 (RETURN_ADDR_MASK): Remove.
19639 (arc_must_save_register): Use hard frame regnum.
19640 (frame_restore_reg): Use hard_frame_pointer_rtx.
19641 (arc_save_callee_saves): Likewise.
19642 (arc_restore_callee_saves): Likewise.
19643 (arc_save_callee_enter): Likewise.
19644 (arc_restore_callee_leave): Likewise.
19645 (arc_save_callee_milli): Likewise.
19646 (arc_eh_return_address_location): Likewise.
19647 (arc_check_multi): Use hard frame regnum.
19648 (arc_can_eliminate): Likewise.
19649 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
19650 for register allocator.
19651 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
19652 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
19653 (FRAME_POINTER_REGNUM): Change it to a fake register.
19654 (HARD_FRAME_POINTER_REGNUM): Defined.
19655 (ARG_POINTER_REGNUM): Change it to a new fake register.
19656 (ELIMINABLE_REGS): Update.
19657 (REGISTER_NAMES): Update names.
19658 * config/arc/arc.md (LP_START): Remove.
19659 (LP_END): Likewise.
19660 (shift_si3_loop): Update pattern.
19661
19662 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19663
19664 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
19665 to avoid delay slot scheduling.
19666 (arc_must_save_register): Don't save SP.
19667 * config/arc/arc.md (stack_tie): Remove.
19668 (UNSPEC_ARC_STKTIE): Likewise.
19669
19670 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
19671 Shiva Chen <shiva0217@gmail.com>
19672
19673 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
19674 code gen with large shift amount.
19675
19676 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
19677
19678 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
19679 subreg.
19680
19681 2019-04-16 Jakub Jelinek <jakub@redhat.com>
19682
19683 PR target/90096
19684 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
19685 print -m64/-mx32/-m32 if it is true.
19686 (ix86_debug_options, ix86_function_specific_print): Pass true as
19687 ADD_ABI_P to ix86_target_string.
19688 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
19689 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
19690 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
19691
19692 PR rtl-optimization/90082
19693 * dce.c (can_delete_call): New function.
19694 (deletable_insn_p, mark_insn): Use it.
19695
19696 PR tree-optimization/90090
19697 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
19698 throw internally.
19699 (is_division_by_square): Likewise. Formatting fix.
19700
19701 2019-04-16 Richard Biener <rguenther@suse.de>
19702
19703 PR tree-optimization/56049
19704 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
19705 equality check if alias-set zero will prevail.
19706
19707 2019-04-15 Jeff Law <law@redhat.com>
19708
19709 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
19710 size and alignment as unsigned.
19711
19712 2019-04-15 Richard Biener <rguenther@suse.de>
19713
19714 PR debug/90074
19715 * tree-loop-distribution.c (destroy_loop): Preserve correct
19716 debug info.
19717
19718 2019-04-15 Richard Biener <rguenther@suse.de>
19719
19720 PR tree-optimization/90071
19721 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
19722 abnormal operands from def stmts.
19723
19724 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
19725
19726 PR rtl-optimization/89794
19727 * combine.c (count_auto_inc): New function.
19728 (try_combine): Count how many auto_inc expressions there were in the
19729 original instructions. Ensure we have the same number in the new
19730 instructions. Remove the code that tried to ensure auto_inc side
19731 effects on i1 and i0 are not lost.
19732
19733 2019-04-15 Richard Biener <rguenther@suse.de>
19734
19735 PR ipa/88936
19736 * tree.h (auto_var_p): Declare.
19737 * tree.c (auto_var_p): New function, split out from ...
19738 (auto_var_in_fn_p): ... here.
19739 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
19740 member.
19741 (new_var_info): Initialize it.
19742 (set_uids_in_ptset): Also set the shadow variable uid if required.
19743 (ipa_pta_execute): Postprocess points-to solutions assigning
19744 shadow variable uids for locals that may reach their containing
19745 function recursively.
19746 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
19747 assert but instead check whether the points-to solution is
19748 a singleton.
19749
19750 2019-04-15 Martin Jambor <mjambor@suse.cz>
19751
19752 PR ipa/pr89693
19753 * cgraph.c (clone_of_p): Loop over clone chain for each step in
19754 the thunk chain.
19755
19756 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
19757
19758 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
19759
19760 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
19761 Kito Cheng <kito.cheng@gmail.com>
19762 Shiva Chen <shiva0217@gmail.com>
19763
19764 * config/nds32/nds32-md-auxiliary.c
19765 (nds32_legitimize_pic_address): Use new PIC pattern.
19766 (nds32_legitimize_tls_address): Use new TLS pattern.
19767 (nds32_output_symrel): New.
19768 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
19769 (nds32_alloc_relax_group_id): Ditto.
19770 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
19771 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
19772 relax_group_id.
19773 (nds32_group_tls_insn): Ditto.
19774 (nds32_group_float_insns): Ditto.
19775 * config/nds32/nds32.md (tls_le): New.
19776 (sym_got): Ditto.
19777
19778 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
19779
19780 * configure: Add nds32 target for dwarf2 debug_line checking.
19781 * configure.ac: Regenerated.
19782
19783 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
19784
19785 PR lto/89358
19786 * ipa-devirt.c (skip_in_fields_list_p): New.
19787 (odr_types_equivalent_p): Use it.
19788
19789 2019-04-13 Jakub Jelinek <jakub@redhat.com>
19790
19791 PR target/89093
19792 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
19793 instead of strncmp when checking for thumb and arm. Formatting fixes.
19794
19795 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
19796
19797 * doc/install.texi: Document --with-target-system-zlib.
19798
19799 2019-04-12 Martin Sebor <msebor@redhat.com>
19800
19801 PR c/88383
19802 PR c/89288
19803 PR c/89798
19804 PR c/89797
19805 * targhooks.c (default_vector_alignment): Avoid assuming
19806 argument fits in SHWI.
19807 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
19808 a shift expression.
19809 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
19810
19811 2019-04-12 Jakub Jelinek <jakub@redhat.com>
19812
19813 PR rtl-optimization/89965
19814 * dce.c: Include rtl-iter.h.
19815 (struct check_argument_load_data): New type.
19816 (check_argument_load): New function.
19817 (find_call_stack_args): Check for loads from stack slots still tracked
19818 in sp_bytes and punt if any is found.
19819
19820 * config/mips/loongson-mmiintrin.h: Fix up #error message.
19821
19822 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
19823
19824 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
19825 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
19826
19827 2019-04-12 Martin Liska <mliska@suse.cz>
19828
19829 PR middle-end/89970
19830 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
19831 in error message.
19832 (separate_attrs): Handle multiple 'default's.
19833 (expand_target_clones): Rework error handling code.
19834
19835 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
19836
19837 PR target/87532
19838 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
19839 mode of vector rather than mode of destination for move instruction.
19840 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
19841 Use QI inner mode with V16QI vector mode.
19842
19843 2019-04-12 Jakub Jelinek <jakub@redhat.com>
19844
19845 PR target/52726
19846 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
19847 "invalid %%t operand" in output_operand_lossage message.
19848
19849 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
19850
19851 * config/s390/predicates.md (permute_pattern_operand): New
19852 predicate.
19853 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
19854 operand for the permute pattern.
19855 ("*vec_perm<mode>"): New insn definition.
19856 ("bswap<mode>"): Generate the permute pattern operand in the
19857 expander and perform the operand reloads for pre arch13 level
19858 already.
19859 ("*bswap<mode>_emu"): Rename to ...
19860 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
19861 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
19862 Add the USE operand for the permute pattern.
19863 ("*vec_set_bswap_vec<mode>"): Likewise.
19864
19865 2019-04-12 Jakub Jelinek <jakub@redhat.com>
19866
19867 PR c/89946
19868 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
19869 and gcc_unreachable if it fails, just call tree_to_uhwi which
19870 verifies that too. Test TREE_CHAIN instead of list_length > 1.
19871 Start warning message with a lower-case letter. Formatting fixes.
19872
19873 PR rtl-optimization/90026
19874 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
19875 successors, look for BARRIERs inside of the whole BB_FOOTER chain
19876 rather than just at the start of it. If e->src BB_FOOTER is not NULL
19877 in cfglayout mode, use emit_barrier_after_bb.
19878
19879 2018-04-11 Steve Ellcey <sellcey@marvell.com>
19880
19881 PR rtl-optimization/87763
19882 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
19883 New Instruction.
19884
19885 2019-04-11 Tom de Vries <tdevries@suse.de>
19886
19887 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
19888 max macro using statement expression.
19889
19890 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
19891
19892 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
19893 * xcoffout.c (xcoff_private_rodata_section_name): Define.
19894 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
19895 read_only_private_data_section using xcoff_private_rodata_section_name.
19896 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
19897
19898 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
19899
19900 PR target/90016
19901 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
19902
19903 2019-04-11 Jakub Jelinek <jakub@redhat.com>
19904
19905 PR rtl-optimization/89965
19906 * dce.c (sp_based_mem_offset): New function.
19907 (find_call_stack_args): Use sp_based_mem_offset.
19908
19909 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
19910
19911 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
19912
19913 2019-04-11 Richard Biener <rguenther@suse.de>
19914
19915 PR tree-optimization/90020
19916 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
19917 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
19918 * tree-ssa-pre.c (compute_avail): Use it to not put
19919 possibly trapping references after a call that might not
19920 return into EXP_GEN.
19921 * gcse.c (compute_hash_table_work): Do not elide
19922 marking a block containing a call if the call might not
19923 return.
19924
19925 2019-04-11 Richard Biener <rguenther@suse.de>
19926
19927 PR tree-optimization/90018
19928 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
19929 Test both SLP and interleaving variants.
19930
19931 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
19932
19933 * config/s390/8561.md: New file.
19934 * config/s390/driver-native.c (s390_host_detect_local_cpu):
19935 Add arch13 cpu model.
19936 * config/s390/s390-opts.h (enum processor_type): Likewise.
19937 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
19938 (s390_get_unit_mask): Likewise.
19939 (s390_is_fpd): Likewise.
19940 (s390_is_fxd): Likewise.
19941 * config/s390/s390.h (s390_tune_attr): Likewise.
19942 * config/s390/s390.md: Include arch13 pipeline description.
19943 * config/s390/s390.opt: Add arch13.
19944
19945 2018-04-10 Steve Ellcey <sellcey@marvell.com>
19946
19947 PR rtl-optimization/87763
19948 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
19949 New prototype.
19950 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
19951 New function.
19952 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
19953 New instruction.
19954 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
19955 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
19956 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
19957 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
19958
19959 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
19960
19961 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
19962 "Although" in -fipa-icf documentation.
19963
19964 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
19965 of using multiple -g options.
19966
19967 2019-04-10 Martin Liska <mliska@suse.cz>
19968
19969 PR gcov-profile/89959
19970 * doc/gcov.texi: Make documentation of -x option
19971 more precise.
19972
19973 2019-04-10 Richard Biener <rguenther@suse.de>
19974
19975 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
19976 member.
19977 (DR_GROUP_SAME_DR_STMT): Remove.
19978 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
19979 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
19980 replace with assert.
19981 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
19982 (vect_record_grouped_load_vectors): Remove unreachable code.
19983
19984 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
19985
19986 PR target/90016
19987 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
19988 obsolete reference to N.
19989
19990 2019-04-10 Jakub Jelinek <jakub@redhat.com>
19991
19992 PR middle-end/90025
19993 * expr.c (store_expr): Set properly size on the MEM passed to
19994 clear_storage.
19995
19996 PR c++/90010
19997 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
19998 with strlen in between hostsz-3 and hostsz-1 inclusive when no
19999 translation is needed, and when translation is needed, only append
20000 ... if the string length is hostsz or more bytes long. Avoid using
20001 strncpy or strcat.
20002
20003 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20004
20005 PR target/90024
20006 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20007 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20008 into three.
20009 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20010 differences directly.
20011 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20012
20013 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20014
20015 PR translation/90011
20016 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20017 from diagnostics.
20018 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20019 diagnostics.
20020 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20021 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20022 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20023 trailing space from -gsplit-dwarf diagnostics.
20024
20025 PR tree-optimization/89998
20026 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20027 instead of integer_type_node if possible, don't add ranges if return
20028 type is not compatible with int.
20029 * gimple-fold.c (gimple_fold_builtin_sprintf,
20030 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20031 integer_type_node.
20032
20033 2019-04-09 Martin Liska <mliska@suse.cz>
20034
20035 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20036 * doc/install.texi: Document the new config.
20037
20038 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20039
20040 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20041 use gimple_expr_type for load and store calls. Skip over the
20042 condition argument in a conditional internal function.
20043 Protect use of TREE_INT_CST_LOW.
20044
20045 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20046
20047 PR target/90015
20048 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20049 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20050 trailing period from it too.
20051
20052 2019-04-08 wu yuan <wuyuan5@huawei.com>
20053
20054 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20055 * config/aarch64/aarch64.md : Add "tsv110.md"
20056 * config/aarch64/tsv110.md: New file.
20057
20058 2019-04-08 Richard Biener <rguenther@suse.de>
20059
20060 PR tree-optimization/90006
20061 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20062 calls like lrint.
20063
20064 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20065
20066 PR target/83033
20067 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20068 construction.
20069 (fma_root_node): Likewise.
20070 (func_fma_steering): Likewise.
20071
20072 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20073
20074 PR rtl-optimization/89865
20075 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20076
20077 PR rtl-optimization/89865
20078 * config/i386/i386.md
20079 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20080 numbers not to clash with the additional operands[4].
20081 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20082 with extra register copy in the middle.
20083
20084 2019-04-08 Martin Liska <mliska@suse.cz>
20085
20086 PR gcov-profile/89961
20087 * doc/gcov.texi: Document data_file.
20088 * gcov.c (generate_results): Add data_info into JSON output.
20089
20090 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20091
20092 PR tree-optimization/89725
20093 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20094 loop's chrec as invariant symbol.
20095 * tree-chrec.h (chrec_contains_symbols): New parameter.
20096 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20097 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20098 function of loops not in DDR's loop_nest.
20099 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20100
20101 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20102
20103 PR target/89623
20104 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20105 Mask.
20106
20107 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20108
20109 PR target/89945
20110 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20111 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20112
20113 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20114
20115 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20116 targetm.fixed_condition_code_regs.
20117
20118 2019-04-05 Richard Biener <rguenther@suse.de>
20119
20120 PR debug/89892
20121 PR debug/89905
20122 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20123 debug bind stmts but reset them if they are not valid at the
20124 destination.
20125
20126 2019-04-05 Martin Liska <mliska@suse.cz>
20127
20128 PR translation/89936
20129 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20130 order to wrap keywords or arguments.
20131 * collect2.c (main): Likewise.
20132 (scan_prog_file): Likewise.
20133 (scan_libraries): Likewise.
20134 * common/config/riscv/riscv-common.c
20135 (riscv_subset_list::parsing_subset_version): Likewise.
20136 (riscv_subset_list::parse_std_ext): Likewise.
20137 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20138 Likewise.
20139 * config/arm/arm.c (arm_option_override): Likewise.
20140 * config/cris/cris.c (cris_print_operand): Likewise.
20141 * config/darwin-c.c (darwin_pragma_options): Likewise.
20142 (darwin_pragma_unused): Likewise.
20143 (darwin_pragma_ms_struct): Likewise.
20144 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20145 * config/i386/i386.c (print_reg): Likewise.
20146 (ix86_print_operand): Likewise.
20147 * config/i386/xm-djgpp.h: Likewise.
20148 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20149 * config/m32c/m32c.c (m32c_option_override): Likewise.
20150 * config/msp430/msp430.c (msp430_option_override): Likewise.
20151 * config/nds32/nds32.c (nds32_option_override): Likewise.
20152 * config/nvptx/mkoffload.c (main): Likewise.
20153 * config/rx/rx.c (rx_print_operand): Likewise.
20154 (valid_psw_flag): Likewise.
20155 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20156 (vms_pragma_nomember_alignment): Likewise.
20157 (vms_pragma_extern_model): Likewise.
20158 * lto-wrapper.c (compile_offload_image): Likewise.
20159 * omp-offload.c (oacc_parse_default_dims): Likewise.
20160 * symtab.c (symtab_node::verify_base): Likewise.
20161 * tlink.c (recompile_files): Likewise.
20162 (start_tweaking): Likewise.
20163 * tree-profile.c (parse_profile_filter): Likewise.
20164
20165 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20166
20167 PR tree-optimization/89956
20168 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20169 multiple negates of the same value.
20170
20171 2019-04-04 Martin Sebor <msebor@redhat.com>
20172
20173 PR middle-end/89957
20174 PR middle-end/89911
20175 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20176 have the same precision since the function crashes otherwise.
20177 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20178 has non-zero arguments.
20179
20180 2019-04-04 Martin Sebor <msebor@redhat.com>
20181
20182 PR middle-end/89934
20183 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20184 out if the number of arguments is less than expected.
20185
20186 2019-04-04 Jeff Law <law@redhat.com>
20187
20188 PR rtl-optimization/89399
20189 * ree.c (combine_set_extension): Use single_set rather than
20190 digging into PATTERN for items on the candidate list.
20191 (combine_reaching_defs): Likewise.
20192
20193 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20194
20195 PR rtl-optimization/46590
20196 * loop-invariant.c (find_defs): Move df_remove_problem and
20197 df_process_deferred_rescans to move_invariants.
20198 Move df_live_add_problem and df_live_set_all_dirty calls
20199 to move_invariants.
20200 (move_invariants): Likewise.
20201 (move_loop_invariants): Likewise, making the df_live calls
20202 conditional on -O. Remove the problem again if we added it
20203 locally.
20204
20205 2019-04-03 qing zhao <qing.zhao@oracle.com>
20206
20207 PR tree-optimization/89730
20208 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20209 -flive-patching=inline-only-static.
20210 (can_inline_edge_by_limits_p): Add the checking for
20211 -flive-patching=inline-only-static and grant always_inline
20212 even when -flive-patching=inline-only-static is specified.
20213
20214 2019-04-03 Jeff Law <law@redhat.com>
20215
20216 PR rtl-optimization/81025
20217 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20218
20219 2019-04-03 Richard Biener <rguenther@suse.de>
20220
20221 PR tree-optimization/84101
20222 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20223 regs.h for hard_regno_nregs.
20224 (cfun_returns): New helper.
20225 (vect_model_store_cost): When vectorizing a store to a decl
20226 we return and the function ABI returns in a multi-reg location
20227 account for the possible spilling that will happen.
20228
20229 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20230
20231 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20232 displacement addresses for vector mode operands.
20233
20234 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20235
20236 * config/arc/arc.c (GMASK_LEN): Define.
20237 (arc_restore_callee_saves): Restore first blink when
20238 !optimize_size.
20239
20240 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20241
20242 * doc/extend.texi: Add deprecated comment on sign-return-address
20243 function attribute and add mbranch-protection.
20244 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20245
20246 2019-04-03 Richard Biener <rguenther@suse.de>
20247
20248 PR lto/89896
20249 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20250 the all target phony.
20251
20252 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20253
20254 PR target/89902
20255 PR target/89903
20256 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20257 Return false for variable DImode shifts.
20258 (dimode_scalar_chain::compute_convert_gain): Do not handle
20259 register count operand in variable DImode shifts.
20260 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20261 count argument of a variable shift instruction to a vector register.
20262 (dimode_scalar_chain::convert_reg): Remove support to convert
20263 count argument of a variable shift instruction.
20264
20265 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20266
20267 PR rtl-optimization/84206
20268 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20269 iterating over loop headers.
20270
20271 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20272
20273 PR rtl-optimization/85876
20274 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20275 beyond the original fence.
20276
20277 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20278
20279 * config.gcc: Mark spu* targets as deprecated/obsolete.
20280
20281 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20282
20283 * config/s390/s390-builtin-types.def: New builtin function type
20284 definitions. Remove unused types.
20285 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20286 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20287 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20288 overloaded builtins.
20289 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20290 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20291 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20292 (vec_double, vec_signed, vec_unsigned): Define to use the new
20293 overloaded builtins.
20294 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20295 Remove expanders.
20296
20297 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20298
20299 * config/s390/s390-builtin-types.def: New builtin function type
20300 definitions.
20301 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20302 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20303 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20304 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20305 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20306 constant definitions.
20307 * config/s390/vecintrin.h (vec_search_string_cc)
20308 (vec_search_string_until_zero_cc): New builtin name definitions.
20309 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20310 expanders.
20311 ("vec_vstrs<mode>"): New insn definition.
20312
20313 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20314
20315 * config/s390/s390-builtin-types.def: Add new builtin function
20316 types.
20317 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20318 New overloaded builtins.
20319 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20320 s390_vsrd.
20321 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20322 (UNSPEC_VEC_SLDBYTE): ... this.
20323 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20324 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20325 definitions.
20326 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20327 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20328 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20329
20330 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20331
20332 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20333 New insn definition.
20334 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20335 * config/s390/vector.md (V_HW_HSD): ... here.
20336
20337 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20338
20339 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20340 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20341 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20342 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20343 New insn definitions.
20344
20345 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20346
20347 * config/s390/s390-builtin-types.def: Add new builtin function type.
20348 * config/s390/s390-builtins.def: Add overloaded builtin
20349 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20350 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20351 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20352 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20353 ("eltswap<mode>"): New expander.
20354 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20355 insn definitions.
20356
20357 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20358
20359 * config/s390/s390-builtin-types.def: Add new builtin function types.
20360 * config/s390/s390-builtins.def: Add overloaded builtin
20361 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20362 instructions.
20363 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20364 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20365 ("bswap<mode>"): New expander.
20366 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20367
20368 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20369
20370 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20371 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20372 vector builtin version number in __VEC__.
20373
20374 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20375
20376 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20377 iterators.
20378 (SFSI): New mode attribute.
20379 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20380 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20381 rename to ...
20382 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20383 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20384 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20385 ("floatsi<mode>2"): Add wcefb instruction.
20386
20387 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20388
20389 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20390 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20391 mode iterators.
20392 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20393 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20394 support 32 bit fp-int conversions. Rename to ...
20395 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20396 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20397 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20398 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20399 ... to these.
20400
20401 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20402
20403 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20404 if-then-else constructs if we can use the select instruction.
20405 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20406
20407 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20408
20409 * config/s390/s390.md ("*popcountdi_arch13_cc")
20410 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20411 definition.
20412 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20413 Append _z196 to make it ...
20414 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20415 ("popcounthi2_z196"): ... this.
20416 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20417 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
20418
20419 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20420
20421 * config/s390/s390.c (s390_canonicalize_comparison): Convert
20422 certain compares for arch13 in order to make use of the condition
20423 code result produced by the new instructions.
20424 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
20425 nxrk, and nxgrk instruction patterns.
20426 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
20427 (inv_no): Add new code iterator together with some attributes.
20428 ("*andc_split_<mode>"): Disable splitter for arch13.
20429 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
20430 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
20431 ("*<ANDOR:bitops_name>c<GPR:mode>")
20432 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
20433 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
20434 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
20435 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
20436
20437 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20438
20439 * common/config/s390/s390-common.c (processor_flags_table): New
20440 entry for arch13.
20441 * config.gcc: Support arch13 with the --with-arch= configure flag.
20442 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20443 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
20444 * config/s390/s390.c (s390_get_sched_attrmask)
20445 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
20446 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
20447 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
20448 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
20449 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
20450 definitions.
20451 * config/s390/s390.opt: Support arch13 as processor type in
20452 command line options.
20453
20454 2019-04-02 Martin Liska <mliska@suse.cz>
20455
20456 PR translation/89912
20457 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
20458 Fix param description of graphite-max-arrays-per-scop.
20459
20460 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
20461
20462 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
20463 (ASAN_CC1_SPEC): Use it in 64-bit mode.
20464 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
20465
20466 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20467
20468 PR rtl-optimization/85412
20469 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
20470 sel_sched_region_1, not after.
20471
20472 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20473
20474 PR rtl-optimization/86928
20475 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
20476 compute_live if necessary.
20477 (sel_redirect_edge_and_branch): Likewise.
20478
20479 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
20480
20481 PR rtl-optimization/89865
20482 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
20483 register if it is a part of small class.
20484
20485 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20486
20487 PR rtl-optimization/87273
20488 * sel-sched-ir.c (merge_fences): Remove assert.
20489
20490 2019-04-01 Richard Biener <rguenther@suse.de>
20491
20492 PR tree-optimization/46590
20493 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
20494 (dom_walker::m_reachability): Add in place of...
20495 (dom_walker::m_skip_unreachable_blocks): ...this.
20496 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
20497 Move complex initialization ...
20498 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
20499 lazily and initialize edge flags on each invocation.
20500 (dom_walker::bb_reachable): Use m_reachability.
20501
20502 2019-04-01 Martin Liska <mliska@suse.cz>
20503
20504 PR driver/89861
20505 * opt-suggestions.c (option_proposer::build_option_suggestions):
20506 Add variant without any argument in order to provide better
20507 hints.
20508
20509 2019-04-01 Richard Biener <rguenther@suse.de>
20510
20511 PR c/71598
20512 * gimple.c: Include langhooks.h.
20513 (gimple_get_alias_set): Treat enumeral types as the underlying
20514 integer type.
20515
20516 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
20517 Eric Botcazou <ebotcazou@adacore.com>
20518
20519 PR rtl-optimization/89862
20520 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
20521 that operates on the full registers for WORD_REGISTER_OPERATIONS
20522 architectures.
20523
20524 2019-03-29 Jim Wilson <jimw@sifive.com>
20525
20526 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
20527 Clear MASK_RVC and then set if C subset supported.
20528
20529 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20530
20531 PR c/89872
20532 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
20533 non-addressable complit into its initializer if it is volatile.
20534
20535 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
20536
20537 * opts-common.c (integral_argument): Set errno properly in one case.
20538
20539 2019-03-29 Martin Liska <mliska@suse.cz>
20540
20541 * doc/invoke.texi: Remove -Wchkp from documentation.
20542
20543 2019-03-29 Martin Liska <mliska@suse.cz>
20544
20545 * dbgcnt.c (print_limit_reach): New function.
20546 (dbg_cnt): Use it.
20547
20548 2019-03-29 Martin Liska <mliska@suse.cz>
20549
20550 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
20551 (dbg_cnt_process_opt): Parse first tokens aas
20552 dbg_cnt_process_single_pair is also using strtok.
20553
20554 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20555
20556 PR rtl-optimization/87485
20557 * function.c (expand_function_end): Move stack_protect_epilogue
20558 before loading of return value into hard register(s).
20559
20560 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20561
20562 PR middle-end/89621
20563 * tree-inline.h (struct copy_body_data): Add
20564 dont_remap_vla_if_no_change flag.
20565 * tree-inline.c (remap_type_3, remap_type_2): New functions.
20566 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
20567 and remap_type_2 returns false.
20568 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
20569 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
20570 only from where it is copied to nested contexts.
20571
20572 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20573
20574 PR target/89865
20575 * config/i386/i386.md (RMW operation with LEA peephole):
20576 Use LEAMODE mode attribute instead of SWI mode iterator for
20577 LEA pattern.
20578
20579 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20580
20581 PR target/89848
20582 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
20583 Also process XEXP (src, 0) of a shift insn.
20584
20585 2019-03-28 David Malcolm <dmalcolm@redhat.com>
20586
20587 PR middle-end/89725
20588 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
20589 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
20590
20591 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20592
20593 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
20594 test.
20595 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
20596 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
20597 immediately after first one with df_analyze in between, but rather
20598 process all bbs, queueing ones that need second pass in a worklist,
20599 df_analyze, process queued debug insn changes and if second pass is
20600 needed, process bbs from worklist, df_analyze, process queued debug
20601 insns again.
20602
20603 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
20604 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
20605 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
20606
20607 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
20608
20609 PR c/79022
20610 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
20611 definition.
20612
20613 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
20614
20615 PR target/85667
20616 * config/i386/i386.c (ix86_function_value_1): Call the newly added
20617 function for 32-bit MS_ABI.
20618 (function_value_ms_32): New function.
20619
20620 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
20621
20622 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
20623 (movdi): Call gen_movdi_symbol_save_scc.
20624 (gen_movdi_symbol_save_scc): New insn and split.
20625
20626 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
20627
20628 PR rtl-optimization/89313
20629 * function.c (matching_constraint_num): New static function.
20630 (match_asm_constraints_1): Use it. Fixup white space and comment.
20631 Don't replace inputs with non-matching constraints which conflict
20632 with early clobber outputs.
20633
20634 2019-03-27 Jeff Law <law@redhat.com>
20635
20636 PR rtl-optimization/87761
20637 PR rtl-optimization/89826
20638 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
20639 slightly later.
20640 (pass_cprop_hardreg::execute): Call df_analyze after adding the
20641 note problem to get REG_DEAD/REG_UNUSED notes updated.
20642
20643 2019-03-27 Richard Biener <rguenther@suse.de>
20644
20645 PR tree-optimization/89463
20646 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
20647 queue edges to remove.
20648 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
20649 dead stmts. Delay edge removal until PHIs are removed to
20650 make debug-stmt creation not confused by seemingly degenerate
20651 PHIs.
20652
20653 2019-03-27 Alan Modra <amodra@gmail.com>
20654
20655 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
20656 throughout file.
20657 * config/rs6000/darwin.h: Likewise.
20658 * config/rs6000/rs6000.c: Likewise.
20659
20660 2019-03-27 Alan Modra <amodra@gmail.com>
20661
20662 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
20663 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
20664
20665 2019-03-26 Andrew Waterman <andrew@sifive.com>
20666 Jim Wilson <jimw@sifive.com>
20667
20668 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
20669 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
20670 (generic_idivdi, generic_fmul_single, generic_fmul_double)
20671 (generic_fdiv, generic_fsqrt): Add check for generic tune.
20672 (generic_alu): Add auipc to type list.
20673 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
20674 (riscv_microarchitecture): Declare.
20675 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
20676 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
20677 field.
20678 (riscv_microarchitecture): New.
20679 (sifive_7_tune_info): New.
20680 (riscv_cpu_info_table): Add microarchitecture value for rocket and
20681 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
20682 entries.
20683 (riscv_store_data_bypass_p): New.
20684 (riscv_option_override): Set riscv_microarchitecture from
20685 cpu->microarchitecture.
20686 * config/riscv/riscv.md: Include sifive-7.md.
20687 (type): Add auipc.
20688 (tune): New.
20689 (auipc<mode>): Change type to auipc.
20690 (restore_stack_nonlocal): New.
20691 * config/riscv/sifive-7.md: New.
20692 * doc/invoke.texi (RISC-V Options): Update mtune docs.
20693
20694 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
20695
20696 PR target/89827
20697 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
20698 Also process XEXP (src, 0) of a shift insn.
20699
20700 2019-03-26 Richard Biener <rguenther@suse.de>
20701
20702 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
20703 (copy_debug_stmt): Likewise.
20704 (expand_call_inline): Likewise.
20705 (copy_bb): Avoid redundant lookup & set of gimple_block.
20706 * gimple-low.c (lower_gimple_return): Likewise.
20707 (lower_builtin_setjmp): Likewise.
20708
20709 2019-03-26 Jakub Jelinek <jakub@redhat.com>
20710
20711 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
20712 is constant 0, turn into static const data member initialized to false.
20713 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
20714 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
20715
20716 2019-03-26 Jason Merrill <jason@redhat.com>
20717 Jakub Jelinek <jakub@redhat.com>
20718
20719 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
20720 method.
20721 (mem_alloc_description::release_object_overhead): Fix comment typos.
20722 * hash-table.h (hash_table::~hash_table): Call
20723 release_instance_overhead only if m_entries is non-NULL, otherwise
20724 call unregister_descriptor.
20725
20726 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
20727
20728 PR tree-optimization/81740
20729 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
20730 In case of outer loop vectorization, check for backward dependence
20731 at the inner loop if outer loop dependence is reversed.
20732
20733 2019-03-26 Alan Modra <amodra@gmail.com>
20734
20735 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
20736 rs6000_vector_mem init. Correct wI and wJ comment.
20737
20738 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
20739
20740 PR rtl-optimization/88347
20741 PR rtl-optimization/88423
20742 * sched-deps.c (sched_analyze_insn): Take into account that for
20743 tablejumps the barrier appears after a label and a jump_table_data.
20744
20745 2019-03-25 Martin Sebor <msebor@redhat.com>
20746
20747 PR c/89812
20748 * c-common.c (check_user_alignment): Rename local. Correct maximum
20749 alignment in diagnostic. Avoid assuming argument fits in SHWI,
20750 convert it to UHWI when it fits.
20751
20752 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
20753
20754 PR debug/86964
20755 * dwarf2out.c (premark_used_variables): New function.
20756 (prune_unused_types_walk): Do not mark not premarked external
20757 variables.
20758 (prune_unused_types): Call premark_used_variables.
20759
20760 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
20761
20762 PR rtl-optimization/89676
20763 * lra-constraints.c (curr_insn_transform): Do match reload for
20764 early clobbers when the match was successful only for different
20765 registers.
20766
20767 2019-03-25 Martin Sebor <msebor@redhat.com>
20768
20769 * doc/extend.texi (Common Type Attributes): Document vector_size.
20770 (Common Variable Attributes): Mention size constraint. Correct
20771 quoting and typos.
20772 (Vector Extensions): Use @dfn when defining bas type. Clarify
20773 base type and size constraints.
20774
20775 2019-03-25 Richard Biener <rguenther@suse.de>
20776
20777 PR tree-optimization/89789
20778 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
20779 changes from non-undefined back to undefined.
20780
20781 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
20782
20783 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
20784 heap string and a gc string, but since this variable is unknown to
20785 ggc the gc string might get reused and corrupted. Fixed by always
20786 using a heap string.
20787
20788 2019-03-25 Richard Biener <rguenther@suse.de>
20789
20790 PR tree-optimization/89779
20791 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
20792 to remove IV defs, delay actual removal.
20793 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
20794 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
20795 very end, properly also reset loop control IV information.
20796
20797 2019-03-25 Richard Biener <rguenther@suse.de>
20798
20799 PR tree-optimization/89802
20800 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
20801 move EH data to folded stmt.
20802
20803 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
20804
20805 * config/s390/s390-builtin-types.def: Remove few unused types and
20806 fix sort order for others.
20807
20808 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
20809
20810 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
20811 expected and found types with -mdebug during builtin matching.
20812
20813 2019-03-25 Richard Biener <rguenther@suse.de>
20814
20815 PR middle-end/89790
20816 * fold-const.c (operand_equal_p): Revert last change with
20817 updated comment.
20818
20819 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
20820
20821 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
20822 notes for the result of the __tls_get_addr calls.
20823 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
20824
20825 2019-03-24 Jeff Law <law@redhat.com>
20826
20827 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
20828
20829 PR rtl-optimization/87761
20830 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
20831 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
20832 as needed.
20833 (pass_cprop_hardreg::execute): Add df note problem and defer insn
20834 rescans. Reprocess blocks as needed, calling df_analyze before
20835 reprocessing. Always call df_analyze before fixing up debug bind
20836 insns.
20837
20838 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
20839
20840 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
20841 big endian.
20842
20843 2019-03-22 Andrew Pinski <apinski@marvell.com>
20844
20845 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
20846 attrribute for uxtw.
20847
20848 2019-03-26 Jeff Law <law@redhat.com>
20849
20850 PR rtl-optimization/87761
20851 * config/mips/mips-protos.h (mips_split_move): Add new argument.
20852 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
20853 (mips_split_move): Accept new INSN argument. Try to forward SRC
20854 into the next instruction.
20855 (mips_split_move_insn): Pass INSN through to mips_split_move.
20856
20857 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
20858
20859 PR rtl-optimization/89676
20860 * lra-constraints.c (curr_insn_transform): Do match reload for
20861 early clobbers even if the match was successful.
20862
20863 2019-03-22 Jakub Jelinek <jakub@redhat.com>
20864
20865 PR c++/87481
20866 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
20867
20868 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
20869
20870 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
20871
20872 2019-03-22 Jakub Jelinek <jakub@redhat.com>
20873
20874 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
20875 <avx512>_fmsub_<mode>_mask3<round_name>,
20876 <avx512>_fnmadd_<mode>_mask3<round_name>,
20877 <avx512>_fnmsub_<mode>_mask3<round_name>,
20878 avx512f_vmfmadd_<mode>_mask3<round_name>,
20879 avx512f_vmfmsub_<mode>_mask3<round_name>,
20880 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
20881 instead of register_operand and %v instead of v for match_operand 1.
20882 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
20883 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
20884 <round_nimm_predicate> instead of register_operand and %v instead of v
20885 for match_operand 1.
20886
20887 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
20888 <avx512>_fmadd_<mode>_mask3<round_name>,
20889 <avx512>_fmsub_<mode>_mask<round_name>,
20890 <avx512>_fmsub_<mode>_mask3<round_name>,
20891 <avx512>_fnmadd_<mode>_mask<round_name>,
20892 <avx512>_fnmadd_<mode>_mask3<round_name>,
20893 <avx512>_fnmsub_<mode>_mask<round_name>,
20894 <avx512>_fnmsub_<mode>_mask3<round_name>,
20895 <avx512>_fmaddsub_<mode>_mask<round_name>,
20896 <avx512>_fmaddsub_<mode>_mask3<round_name>,
20897 <avx512>_fmsubadd_<mode>_mask<round_name>,
20898 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
20899 <round_nimm_predicate> instead of nonimmediate_operand.
20900 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
20901 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
20902 Use register_operand instead of <round_nimm_predicate> for the
20903 operand that needs to match output.
20904 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
20905 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
20906 Likewise. Formatting fixes.
20907
20908 PR target/89784
20909 * config/i386/i386.c (enum ix86_builtins): Remove
20910 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
20911 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
20912 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
20913 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
20914 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
20915 __builtin_ia32_vfmsubss3_mask3): New builtins.
20916 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
20917 avx512f_vmfmadd_<mode>_mask3<round_name>,
20918 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
20919 *avx512f_vmfmsub_<mode>_mask<round_name>,
20920 avx512f_vmfmsub_<mode>_mask3<round_name>,
20921 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
20922 *avx512f_vmfnmadd_<mode>_mask<round_name>,
20923 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
20924 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
20925 *avx512f_vmfnmsub_<mode>_mask<round_name>,
20926 avx512f_vmfnmsub_<mode>_mask3<round_name>,
20927 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
20928 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
20929 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
20930 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
20931 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
20932 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
20933 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
20934 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
20935 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
20936 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
20937 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
20938 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
20939 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
20940 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
20941 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
20942 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
20943 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
20944 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
20945 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
20946 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
20947 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
20948 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
20949
20950 2019-03-21 Martin Sebor <msebor@redhat.com>
20951
20952 PR tree-optimization/89350
20953 * builtins.c (compute_objsize): Also ignore offsets whose upper
20954 bound is negative.
20955 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
20956 (builtin_memref::builtin_memref): Initialize new member.
20957 Allow EXPR to be null.
20958 (builtin_memref::extend_offset_range): Replace local with a member.
20959 Avoid assuming pointer offsets are unsigned.
20960 (builtin_memref::set_base_and_offset): Determine base object
20961 before computing offset range.
20962 (builtin_access::builtin_access): Handle memset.
20963 (builtin_access::generic_overlap): Replace local with a member.
20964 (builtin_access::strcat_overlap): Same.
20965 (builtin_access::overlap): Same.
20966 (maybe_diag_overlap): Same.
20967 (maybe_diag_access_bounds): Same.
20968 (wrestrict_dom_walker::check_call): Handle memset.
20969 (check_bounds_or_overlap): Same.
20970
20971 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
20972 Jakub Jelinek <jakub@redhat.com>
20973
20974 PR lto/89692
20975 * tree.c (fld_type_variant, fld_incomplete_type_of,
20976 fld_process_array_type): Call fld->pset.add and don't call
20977 add_tree_to_fld_list if it returns true.
20978 (free_lang_data_in_type): Similarly with self-recursive call. Purge
20979 non-marked types from TYPE_NEXT_VARIANT list.
20980 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
20981
20982 2019-03-21 Jakub Jelinek <jakub@redhat.com>
20983
20984 * hash-table.h (hash_table): Add Lazy template parameter defaulted
20985 to false, if true, don't alloc_entries during construction, but defer
20986 it to the first method that needs m_entries allocated.
20987 (hash_table::hash_table, hash_table::~hash_table,
20988 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
20989 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
20990 hash_table::clear_slot, hash_table::traverse_noresize,
20991 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
20992 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
20993 false.
20994 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
20995 NO_INSERT instead of find_with_hash.
20996 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
20997 hash_set::m_table): Add Lazy to template params of hash_table.
20998 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
20999 * attribs.c (test_attribute_exclusions): Likewise.
21000 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21001 hash_set. Add tests for hash_set with Lazy = true.
21002
21003 2019-03-21 Richard Biener <rguenther@suse.de>
21004
21005 PR tree-optimization/89779
21006 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21007 checks with respect to released SSA names now having error_mark_node
21008 type.
21009 * fold-const.c (operand_equal_p): Likewise.
21010
21011 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21012
21013 PR target/89775
21014 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21015 available to ...
21016 (s390_optimize_register_info): Use global_not_special_regno_p to
21017 check for global regs.
21018
21019 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21020
21021 PR target/89752
21022 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21023 update this_alternative nor this_alternative_set.
21024
21025 2019-03-19 Jim Wilson <jimw@sifive.com>
21026
21027 PR target/89411
21028 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21029 align, size, offset. Use them to handle a BLKmode reference. Update
21030 comment.
21031 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21032
21033 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21034
21035 PR rtl-optimization/89768
21036 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21037 instead of GEN_INT.
21038 (unroll_loop_runtime_iterations): Likewise.
21039
21040 2019-03-19 Martin Sebor <msebor@redhat.com>
21041
21042 PR tree-optimization/89644
21043 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21044 rather than endptr as an indicator of nul-termination.
21045
21046 PR tree-optimization/89644
21047 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21048 arrays in determining sequence sizes in strncpy and stpncpy.
21049
21050 2019-03-19 Martin Liska <mliska@suse.cz>
21051
21052 PR middle-end/89737
21053 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21054 unlikely_edges if there's an edge that belongs to both these sets.
21055
21056 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21057
21058 PR target/89746
21059 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21060 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21061 go via a stack temporary.
21062
21063 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21064
21065 PR target/89378
21066 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21067 instead of gen_rtx_SUBREG.
21068 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21069
21070 2019-03-19 Richard Biener <rguenther@suse.de>
21071
21072 PR debug/88389
21073 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21074
21075 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21076
21077 PR lto/87809
21078 PR lto/89335
21079 * tree.c (free_lang_data_in_decl): Do not free context of C++
21080 destrutors.
21081
21082 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21083
21084 PR target/89506
21085 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21086 subs for the first alternative except when operands[3] is 1.
21087
21088 PR target/89752
21089 * gimplify.c (gimplify_asm_expr): For output argument with
21090 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21091 diagnose error.
21092
21093 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21094
21095 PR rtl-optimization/89753
21096 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21097 explicit unrolling factor even more robust.
21098
21099 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21100
21101 PR target/89726
21102 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21103 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21104 signed zeros, do another copysign after the compensation.
21105
21106 2019-03-18 Martin Sebor <msebor@redhat.com>
21107
21108 PR tree-optimization/89720
21109 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21110 more conservatively, the same as anti-range.
21111
21112 2019-03-18 Richard Biener <rguenther@suse.de>
21113
21114 PR middle-end/88945
21115 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21116 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21117 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21118 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21119
21120 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21121
21122 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21123 Extend queue to 1024 entries.
21124 Add "consumed" field.
21125 (gomp_print_output): Remove print_index parameter.
21126 Add final parameter.
21127 Change limit to unsigned.
21128 Use consumed field to implement circular buffer.
21129 Detect interrupted print in final pass.
21130 Flush output at the end.
21131 (run): Update gomp_print_output usage.
21132 (main): Initialize kernargs->output_data.consumed.
21133
21134 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21135
21136 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21137 calculation of the minimum number of scalar iterations for
21138 fully-predicated loops.
21139
21140 2019-03-18 Martin Jambor <mjambor@suse.cz>
21141
21142 PR tree-optimization/89546
21143 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21144 any propagation to its children took place.
21145
21146 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21147
21148 PR target/89627
21149 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21150 parameter, and make use of it.
21151 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21152
21153 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21154
21155 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21156 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21157 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21158 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21159 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21160 match what the ops is doing.
21161 (push_multi_fp_blink): Likewise.
21162 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21163 compiling for size and elf target.
21164 (arc_save_callee_enter): Adjust note to match what enter/leave
21165 operation does.
21166
21167 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21168
21169 * config/arc/arc.md (tst_movb): Fix constraint.
21170
21171 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21172
21173 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21174
21175 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21176
21177 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21178 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21179 reg_alloc_order references.
21180 (size_alloc_order): Define.
21181 (arc_adjust_reg_alloc_order): New function.
21182 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21183 order.
21184 (ADJUST_REG_ALLOC_ORDER): Define.
21185 (HONOR_REG_ALLOC_ORDER): Likewise.
21186
21187 2019-03-18 Richard Biener <rguenther@suse.de>
21188
21189 PR target/87561
21190 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21191 loads and stores a bit more.
21192
21193 2019-03-18 Richard Biener <rguenther@suse.de>
21194
21195 PR target/87561
21196 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21197 load pessimization to stores as well.
21198
21199 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21200
21201 PR middle-end/86979
21202 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21203 successor, use NULL as its av set.
21204
21205 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21206
21207 PR rtl-optimization/89721
21208 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21209
21210 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21211
21212 PR target/87532
21213 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21214 When handling vec_extract, use modular arithmetic to allow
21215 constant selectors greater than vector length.
21216 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21217 V1TImode vectors to have constant selector values greater than 0.
21218 Use modular arithmetic to compute vector index.
21219 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21220 index for in-memory vectors. Correct code generation for
21221 in-register vectors.
21222 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21223 compute index.
21224
21225 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21226
21227 PR c++/88534
21228 PR c++/88537
21229 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21230 VAR_DECL args.
21231
21232 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21233
21234 PR c++/89709
21235 * tree.c (inchash::add_expr): Strip any location wrappers.
21236 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21237 after hash verification.
21238
21239 PR debug/89704
21240 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21241 SIGN_EXTEND and ZERO_EXTEND.
21242
21243 2019-03-14 Jason Merrill <jason@redhat.com>
21244 Jakub Jelinek <jakub@redhat.com>
21245
21246 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21247 than if is_empty (*slot).
21248 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21249 existing elt and for elt removal.
21250 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21251 of already removed elt.
21252
21253 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21254
21255 PR target/89650
21256 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21257 REG_EH_REGION note.
21258
21259 2019-03-14 Martin Liska <mliska@suse.cz>
21260
21261 PR other/89712
21262 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21263
21264 2019-03-14 Richard Biener <rguenther@suse.de>
21265
21266 PR target/89711
21267 * config/i386/i386.c (make_resolver_func): Properly set
21268 DECL_CONTEXT on the RESULT_DECL.
21269 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21270
21271 2019-03-14 Richard Biener <rguenther@suse.de>
21272
21273 * gimple-pretty-print.c: Include cfgloop.h.
21274 (dump_gimple_phi): Adjust.
21275 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21276 (pp_cfg_jump): Adjust.
21277 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21278 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21279 (lower_phi_internal_fn): Remove.
21280 (verify_gimple_call): Remove IFN_PHI special-casing.
21281 (dump_function_to_file): Dump IL state.
21282 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21283 done to deal with PHI nodes being present in non-SSA state.
21284
21285 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21286
21287 PR ipa/89684
21288 * multiple_target.c (create_dispatcher_calls): Change
21289 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21290 In the node->iterate_referring loop, push *ref rather than ref, call
21291 ref->remove_reference () and always pass 0 to iterate_referring.
21292
21293 PR rtl-optimization/89679
21294 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21295 would contain a paradoxical SUBREG.
21296
21297 2019-03-14 Richard Biener <rguenther@suse.de>
21298
21299 PR tree-optimization/89710
21300 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21301 safe_dyn_cast.
21302
21303 2019-03-14 Martin Liska <mliska@suse.cz>
21304
21305 * coverage.c (coverage_begin_function): Stream also
21306 end_column.
21307 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21308 documentation about function declaration location.
21309 * gcov-dump.c (tag_function): Print whole range
21310 of function declaration.
21311 * gcov.c (struct function_info): Add end_column field.
21312 (function_info::function_info): Initialize it.
21313 (output_json_intermediate_file): Output {start,end}_column
21314 fields.
21315 (read_graph_file): Read end_column.
21316
21317 2019-03-14 Richard Biener <rguenther@suse.de>
21318
21319 PR middle-end/89698
21320 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21321 that the access types are similar.
21322
21323 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21324
21325 PR tree-optimization/89703
21326 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21327 aren't compatible also with builtin_decl_explicit. Check pure
21328 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21329 and BUILT_IN_STPNCPY{,_CHK}.
21330
21331 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21332
21333 PR target/89523
21334 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21335 addr32 prefix to VSIB address for X32.
21336 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21337 "%M2" to opcode.
21338 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21339 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21340 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21341 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21342 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21343 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21344 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21345 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21346 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21347 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21348 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21349 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21350 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21351 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21352 (*avx512f_scatterdi<mode>): Likewise.
21353
21354 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21355
21356 PR target/85860
21357 * lra-constraints.c (inherit_in_ebb): Update
21358 potential_reload_hard_regs along with live_hard_regs.
21359
21360 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21361
21362 PR debug/89498
21363 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21364 DWARF_OFFSET_SIZE.
21365 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21366
21367 2019-03-13 Martin Sebor <msebor@redhat.com>
21368
21369 PR tree-optimization/89662
21370 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21371 has a size.
21372
21373 2019-03-13 Richard Biener <rguenther@suse.de>
21374
21375 PR middle-end/89677
21376 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21377 throw FP expressions at tree-affine.
21378
21379 2019-03-14 Richard Biener <rguenther@suse.de>
21380
21381 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21382 dump negative integer constants using _Literal (type) -num.
21383
21384 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21385
21386 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21387 nonlocal_value member.
21388
21389 PR middle-end/88588
21390 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21391 (ipa_simd_modify_function_body): Handle PHIs.
21392
21393 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21394
21395 * config/s390/s390.c (s390_option_override_internal): Use more
21396 aggressive inlining parameters.
21397
21398 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21399
21400 * config/s390/3906.md: New file.
21401 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21402 (LONGRUNNING_THRESHOLD): Remove.
21403 (MAX_SCHED_MIX_SCORE): Decrease.
21404 (MAX_SCHED_MIX_DISTANCE): Decrease.
21405 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21406 (struct s390_sched_state): New struct to hold scheduling state.
21407 (S390_SCHED_STATE_NORMAL): Remove.
21408 (S390_SCHED_STATE_CRACKED): Remove.
21409 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21410 (s390_get_sched_attrmask): Use new attribute.
21411 (s390_get_unit_mask): Use new units.
21412 (s390_is_fpd): New function.
21413 (s390_is_fxd): New function.
21414 (s390_is_longrunning): New function.
21415 (s390_sched_score): Use new functions.
21416 (s390_sched_reorder): Likewise.
21417 (s390_sched_variable_issue): Rework and use new functions.
21418 (s390_sched_init): Use new functions.
21419 * config/s390/s390.h (s390_tune_attr): Add z14.
21420 * config/s390/s390.md: Add z14.
21421
21422 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21423
21424 * config/s390/2964.md: Update pipeline description.
21425 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21426 (LONGRUNNING_THRESHOLD): Remove.
21427 (LATENCY_FACTOR): Remove.
21428 (s390_get_unit_mask): Add unit.
21429 (s390_sched_score): Use fxd/fpd.
21430 (s390_sched_variable_issue): Use fxd/fpd.
21431
21432 2019-03-12 Martin Liska <mliska@suse.cz>
21433
21434 * config/i386/i386.c: Reword an error message.
21435
21436 2019-03-12 Martin Jambor <mjambor@suse.cz>
21437
21438 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
21439 terminate with newline.
21440
21441 2019-03-12 Jakub Jelinek <jakub@redhat.com>
21442
21443 PR target/52726
21444 * config/s390/s390.md (tabort): Use %wd instead of
21445 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
21446 letters and periods.
21447 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
21448 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
21449 's with %< and %>.
21450
21451 PR middle-end/89663
21452 * builtins.c (expand_builtin_int_roundingfn,
21453 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
21454 gcc_unreachable if validate_arglist fails.
21455
21456 2019-03-12 Richard Biener <rguenther@suse.de>
21457
21458 PR tree-optimization/89664
21459 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
21460 free the occurance tree after the early out.
21461
21462 2019-03-11 Jakub Jelinek <jakub@redhat.com>
21463
21464 PR middle-end/89655
21465 PR bootstrap/89656
21466 * vr-values.c (vr_values::update_value_range): If
21467 old_vr->varying_p (), don't update it, make new_vr also VARYING
21468 and return false.
21469
21470 2019-03-11 Martin Liska <mliska@suse.cz>
21471
21472 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21473 Fix double string quoting.
21474
21475 2019-03-11 Martin Liska <mliska@suse.cz>
21476
21477 * collect-utils.c (collect_wait): Wrap apostrophes
21478 in gcc internal format with %'.
21479 * collect2.c (main): Likewise.
21480 (scan_prog_file): Likewise.
21481 (scan_libraries): Likewise.
21482 * config/i386/i386.c (ix86_expand_call): Likewise.
21483 (ix86_handle_interrupt_attribute): Likewise.
21484 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
21485 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21486 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
21487 * lto-wrapper.c (find_crtoffloadtable): Likewise.
21488 * symtab.c (symtab_node::verify_base): Likewise.
21489 * tree-cfg.c (verify_gimple_label): Likewise.
21490 * tree.c (verify_type_variant): Likewise.
21491
21492 2019-03-11 Martin Liska <mliska@suse.cz>
21493
21494 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
21495 in a string format message and fix GNU coding style.
21496 (expand_builtin_set_thread_pointer): Likewise.
21497 * common/config/aarch64/aarch64-common.c
21498 (aarch64_rewrite_selected_cpu): Likewise.
21499 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
21500 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
21501 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
21502 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
21503 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
21504 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
21505 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
21506 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
21507 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
21508 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
21509 Likewise.
21510 * common/config/riscv/riscv-common.c
21511 (riscv_subset_list::parsing_subset_version): Likewise.
21512 (riscv_subset_list::parse_std_ext): Likewise.
21513 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
21514 (riscv_subset_list::parse): Likewise.
21515 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
21516 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
21517 (aarch64_override_options_internal): Likewise.
21518 (aarch64_validate_mcpu): Likewise.
21519 (aarch64_validate_march): Likewise.
21520 (aarch64_validate_mtune): Likewise.
21521 (aarch64_override_options): Likewise.
21522 * config/alpha/alpha.c (alpha_option_override): Likewise.
21523 * config/arc/arc.c (arc_init): Likewise.
21524 (parse_mrgf_banked_regs_option): Likewise.
21525 (arc_override_options): Likewise.
21526 (arc_expand_builtin_aligned): Likewise.
21527 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
21528 (arm_expand_builtin): Likewise.
21529 * config/arm/arm.c (arm_option_check_internal): Likewise.
21530 (arm_configure_build_target): Likewise.
21531 (arm_option_override): Likewise.
21532 (arm_options_perform_arch_sanity_checks): Likewise.
21533 (arm_handle_cmse_nonsecure_entry): Likewise.
21534 (arm_handle_cmse_nonsecure_call): Likewise.
21535 (arm_tls_referenced_p): Likewise.
21536 (thumb1_expand_prologue): Likewise.
21537 * config/avr/avr.c (avr_option_override): Likewise.
21538 * config/bfin/bfin.c (bfin_option_override): Likewise.
21539 * config/c6x/c6x.c (c6x_option_override): Likewise.
21540 * config/cr16/cr16.c (cr16_override_options): Likewise.
21541 * config/cris/cris.c (cris_option_override): Likewise.
21542 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
21543 * config/darwin-c.c (macosx_version_as_macro): Likewise.
21544 * config/darwin.c (darwin_override_options): Likewise.
21545 * config/frv/frv.c (frv_expand_builtin): Likewise.
21546 * config/h8300/h8300.c (h8300_option_override): Likewise.
21547 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
21548 (ix86_option_override_internal): Likewise.
21549 (warn_once_call_ms2sysv_xlogues): Likewise.
21550 (ix86_expand_prologue): Likewise.
21551 (split_stack_prologue_scratch_regno): Likewise.
21552 (ix86_warn_parameter_passing_abi): Likewise.
21553 * config/ia64/ia64.c (fix_range): Likewise.
21554 * config/m68k/m68k.c (m68k_option_override): Likewise.
21555 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
21556 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
21557 (mips_set_compression_mode): Likewise.
21558 * config/mmix/mmix.c (mmix_option_override): Likewise.
21559 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
21560 * config/msp430/msp430.c (msp430_option_override): Likewise.
21561 * config/nds32/nds32.c (nds32_option_override): Likewise.
21562 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
21563 (nios2_option_override): Likewise.
21564 (nios2_expand_custom_builtin): Likewise.
21565 * config/nvptx/mkoffload.c (main): Likewise.
21566 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
21567 * config/pa/pa.c (fix_range): Likewise.
21568 (pa_option_override): Likewise.
21569 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
21570 (riscv_option_override): Likewise.
21571 * config/rl78/rl78.c (rl78_option_override): Likewise.
21572 * config/rs6000/aix61.h: Likewise.
21573 * config/rs6000/aix71.h: Likewise.
21574 * config/rs6000/aix72.h: Likewise.
21575 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
21576 * config/rs6000/freebsd64.h: Likewise.
21577 * config/rs6000/linux64.h: Likewise.
21578 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
21579 (rs6000_expand_zeroop_builtin): Likewise.
21580 (rs6000_expand_mtfsb_builtin): Likewise.
21581 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
21582 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
21583 (rs6000_invalid_builtin): Likewise.
21584 (rs6000_expand_split_stack_prologue): Likewise.
21585 * config/rs6000/rtems.h: Likewise.
21586 * config/rx/rx.c (valid_psw_flag): Likewise.
21587 (rx_expand_builtin): Likewise.
21588 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
21589 * config/s390/s390.c (s390_expand_builtin): Likewise.
21590 (s390_function_profiler): Likewise.
21591 (s390_option_override_internal): Likewise.
21592 (s390_option_override): Likewise.
21593 * config/sh/sh.c (sh_option_override): Likewise.
21594 (sh_builtin_saveregs): Likewise.
21595 (sh_fix_range): Likewise.
21596 * config/sh/vxworks.h: Likewise.
21597 * config/sparc/sparc.c (sparc_option_override): Likewise.
21598 * config/spu/spu.c (spu_option_override): Likewise.
21599 (fix_range): Likewise.
21600 * config/visium/visium.c (visium_option_override): Likewise.
21601 (visium_handle_interrupt_attr): Likewise.
21602 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
21603 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
21604 (dbg_cnt_process_opt): Likewise.
21605 * dwarf2out.c (output_dwarf_version): Likewise.
21606 * except.c (expand_eh_return): Likewise.
21607 * gcc.c (defined): Likewise.
21608 (driver_handle_option): Likewise.
21609 (process_command): Likewise.
21610 (compare_files): Likewise.
21611 (driver::prepare_infiles): Likewise.
21612 (driver::do_spec_on_infiles): Likewise.
21613 (driver::maybe_run_linker): Likewise.
21614 * omp-offload.c (oacc_parse_default_dims): Likewise.
21615 * opts-global.c (handle_common_deferred_options): Likewise.
21616 * opts.c (parse_sanitizer_options): Likewise.
21617 (common_handle_option): Likewise.
21618 (enable_warning_as_error): Likewise.
21619 * passes.c (enable_disable_pass): Likewise.
21620 * plugin.c (parse_plugin_arg_opt): Likewise.
21621 (default_plugin_dir_name): Likewise.
21622 * targhooks.c (default_expand_builtin_saveregs): Likewise.
21623 (default_pch_valid_p): Likewise.
21624 * toplev.c (init_asm_output): Likewise.
21625 (process_options): Likewise.
21626 (toplev::run_self_tests): Likewise.
21627 * tree-cfg.c (verify_gimple_call): Likewise.
21628 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
21629 (tree_inlinable_function_p): Likewise.
21630 * var-tracking.c (vt_find_locations): Likewise.
21631
21632 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
21633
21634 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
21635 only on the else branch.
21636
21637 2019-03-11 Martin Liska <mliska@suse.cz>
21638
21639 * gcov.c (output_intermediate_json_line): Print function
21640 name of each line.
21641 (output_json_intermediate_file): Add new argument.
21642 * doc/gcov.texi: Document the change.
21643
21644 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
21645
21646 PR rtl-optimization/89588
21647 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21648 explicit unrolling factor more robust.
21649
21650 2019-03-11 Richard Biener <rguenther@suse.de>
21651
21652 PR tree-optimization/89649
21653 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
21654 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
21655 on the prolog and epilog loops.
21656 (vect_loop_versioning): Return copy of loop.
21657 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
21658 on the non-vectorized version of the loop.
21659
21660 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
21661
21662 PR target/68924
21663 * config/i386/sse.md (*vec_extractv2di_0_sse):
21664 Add (=r,x) alternative and corresponding splitter.
21665
21666 2019-03-10 Martin Jambor <mjambor@suse.cz>
21667
21668 PR tree-optimization/85762
21669 PR tree-optimization/87008
21670 PR tree-optimization/85459
21671 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
21672 it points to if there is a type changing MEM_REF. Adjust all callers.
21673 (build_accesses_from_assign): Disable total scalarization if
21674 contains_vce_or_bfcref_p returns true through the new parameter, for
21675 both rhs and lhs.
21676
21677 2019-03-09 Jakub Jelinek <jakub@redhat.com>
21678
21679 PR c/88568
21680 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
21681 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
21682
21683 PR target/79645
21684 * common.opt (fdiagnostics-show-labels,
21685 fdiagnostics-show-line-numbers, fdiagnostics-format=,
21686 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
21687 gas-locview-support, ginline-points, ginternal-reset-location-views):
21688 Terminate description text with a dot.
21689 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
21690 * config/mcore/mcore.opt (m210, m340): Likewise.
21691 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
21692 mnops=): Start description text with a capital letter.
21693 * config/arc/arc.opt (msize-level=): Likewise.
21694 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
21695 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
21696 mnewlib): Likewise.
21697 * config/ft32/ft32.opt (msim): Likewise.
21698 (mft32b, mcompress): Likewise. Terminate description text with a dot.
21699 (mnodiv, mnopm): Terminate description text with a dot.
21700 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
21701 a colon.
21702 * config/i386/i386.opt (prefer_vector_width, instrument_return):
21703 Likewise.
21704 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
21705 text.
21706
21707 PR rtl-optimization/89634
21708 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
21709 are modified in BB_END (e->src) instruction.
21710
21711 2019-03-08 David Malcolm <dmalcolm@redhat.com>
21712
21713 PR target/79926
21714 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
21715 messages more amenable to translation, and improve wording.
21716
21717 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
21718
21719 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
21720 ud- and du-chains between phases.
21721
21722 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
21723
21724 PR debug/89631
21725 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
21726 instead of POLY_INT_CST.
21727
21728 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
21729
21730 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
21731 requirement.
21732
21733 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
21734
21735 PR target/68924
21736 PR target/78782
21737 PR target/87558
21738 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
21739 (_mm_storeu_si64): Ditto.
21740
21741 2019-03-08 Martin Liska <mliska@suse.cz>
21742
21743 PR target/86952
21744 * config/i386/i386.c (ix86_option_override_internal): Disable
21745 jump tables when retpolines are used.
21746
21747 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
21748
21749 PR go/63560
21750 * ipa-split.c (execute_split_functions): Do not split
21751 'noinline' or 'section' function.
21752
21753 2019-03-08 Jakub Jelinek <jakub@redhat.com>
21754
21755 PR target/79846
21756 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
21757 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
21758 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
21759
21760 PR ipa/80000
21761 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
21762 from diagnostics. Formatting fixes.
21763
21764 PR target/85665
21765 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
21766 warn_odr diagnostics.
21767
21768 PR other/80058
21769 * lra-constraints.c (process_alt_operands): Avoid one space before
21770 " at the end of line and another after " on another line in a string
21771 literal.
21772 * attribs.c (handle_dll_attribute): Likewise.
21773 * config/avr/avr-devices.c (avr_texinfo): Likewise.
21774
21775 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
21776 warning_at or inform messages in G_() if there is no ?:.
21777
21778 PR tree-optimization/89550
21779 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
21780 returned true. Formatting fixes.
21781 (expand_builtin_strnlen): Formatting fixes.
21782 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
21783 if warning_at returned true.
21784 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
21785
21786 2019-03-08 Richard Biener <rguenther@suse.de>
21787
21788 PR middle-end/89578
21789 * cfgloop.h (struct loop): Add owned_clique field.
21790 * cfgloopmanip.c (copy_loop_info): Copy it.
21791 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
21792 cliques.
21793 * tree-inline.c (copy_loops): Remap owned_clique.
21794 * lto-streamer-in.c (input_cfg): Stream owned_clique.
21795 * lto-streamer-out.c (output_cfg): Likewise.
21796
21797 2019-03-08 Jakub Jelinek <jakub@redhat.com>
21798
21799 PR target/80190
21800 * config/darwin.c: Include intl.h.
21801 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
21802 composing the message out of two separate parts.
21803
21804 2019-03-07 Jakub Jelinek <jakub@redhat.com>
21805
21806 PR target/80003
21807 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
21808 doesn't start with a capital letter and doesn't end with a dot.
21809 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
21810 with a capital letter.
21811 (ix86_mangle_function_version_assembler_name): Likewise.
21812 (ix86_generate_version_dispatcher_body): Likewise.
21813 (fold_builtin_cpu): Likewise.
21814 (get_builtin_code_for_version): Likewise. Remove extraneous space.
21815 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
21816 translators, wrap full type name in %qs.
21817
21818 PR translation/79999
21819 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
21820 depend clause with source (or sink) modifier.
21821 * omp-expand.c (expand_omp_ordered_sink): Likewise.
21822
21823 PR target/89602
21824 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
21825 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
21826 (avx512f_load<mode>_mask): New define_expand.
21827 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
21828 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
21829 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
21830 __builtin_ia32_movess_mask): New builtins.
21831 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
21832 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
21833 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
21834 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
21835
21836 2019-03-07 Martin Jambor <mjambor@suse.cz>
21837
21838 PR lto/87525
21839 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
21840 for extern inline functions.
21841
21842 2019-03-07 Martin Jambor <mjambor@suse.cz>
21843
21844 PR ipa/88235
21845 * cgraph.h (cgraph_node): New inline method former_thunk_p.
21846 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
21847 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
21848 have multiple callees. At the end check if declarations match as
21849 opposed to cgraph_nodes.
21850
21851 2019-03-07 Martin Liska <mliska@suse.cz>
21852
21853 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
21854 which is equivalent to searching for this in clones chain.
21855 * symtab.c (symtab_node::verify_base): Similarly compare ASM
21856 names with a neighbour and special case first node in a chain.
21857
21858 2019-01-25 Jason Merrill <jason@redhat.com>
21859
21860 PR c++/80916 - spurious "static but not defined" warning.
21861 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
21862 for an internal symbol with DECL_EXTERNAL.
21863
21864 2019-04-07 Richard Biener <rguenther@suse.de>
21865
21866 PR middle-end/89618
21867 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
21868 * tree-inline.c (copy_loops): Simplify.
21869
21870 2019-03-07 Martin Liska <mliska@suse.cz>
21871
21872 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
21873
21874 2019-03-07 Richard Biener <rguenther@suse.de>
21875
21876 PR tree-optimization/89595
21877 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
21878 stmt iterator as reference, take boolean output parameter to
21879 indicate whether the stmt was removed and thus the iterator
21880 already advanced.
21881 (dom_opt_dom_walker::before_dom_children): Re-iterate over
21882 stmts created by folding.
21883
21884 2019-03-07 Jakub Jelinek <jakub@redhat.com>
21885
21886 PR c++/89585
21887 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
21888 at toplevel.
21889
21890 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
21891
21892 PR rtl-optimization/88845
21893 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
21894 LRA.
21895 * lra.c (remove_scratches_1): New function.
21896 (remove_scratches): Use it.
21897 (lra_emit_move): Likewise.
21898
21899 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
21900
21901 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
21902 unaligned_access variable.
21903 * config/arc/arc.c (arc_override_options): Set unaligned access
21904 default on for HS CPUs.
21905 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
21906
21907 2019-03-06 Martin Liska <mliska@suse.cz>
21908
21909 PR gcov-profile/89577
21910 * doc/gcov.texi: Prefer to use --coverage.
21911 * doc/sourcebuild.texi: Likewise.
21912
21913 2019-03-02 Jason Merrill <jason@redhat.com>
21914
21915 PR c++/86485 - -Wmaybe-unused with empty class ?:
21916 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
21917
21918 2019-03-05 Jakub Jelinek <jakub@redhat.com>
21919
21920 PR target/89587
21921 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
21922 if_multiarch.
21923
21924 PR middle-end/89590
21925 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
21926 exactly one argument.
21927
21928 2019-03-05 Jakub Jelinek <jakub@redhat.com>
21929 Richard Sandiford <richard.sandiford@arm.com>
21930
21931 PR tree-optimization/89570
21932 * match.pd (vec_cond into cond_op simplification): Don't use
21933 get_conditional_internal_fn, use as_internal_fn (cond_op).
21934
21935 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
21936
21937 PR target/89222
21938 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
21939 to decide when to split off a non-zero offset from a symbol.
21940 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
21941 in function symbols.
21942
21943 2019-03-05 Richard Biener <rguenther@suse.de>
21944
21945 PR tree-optimization/89594
21946 * tree-if-conv.c (pass_if_conversion::execute): Handle
21947 case where .LOOP_VECTORIZED_FUNCTION was removed.
21948
21949 2019-03-05 Jakub Jelinek <jakub@redhat.com>
21950
21951 PR bootstrap/89560
21952 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
21953 instead alloca it only when needed with the needed size.
21954
21955 PR tree-optimization/89570
21956 * match.pd (vec_cond into cond_op simplification): Guard with
21957 vectorized_internal_fn_supported_p test and #if GIMPLE.
21958
21959 PR tree-optimization/89566
21960 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
21961 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
21962 Punt if get_user_idx_format succeeds, but idx_format argument is
21963 not provided or doesn't have pointer type, or if idx_args is above
21964 number of provided arguments.
21965
21966 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
21967
21968 PR tree-optimization/89437
21969 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
21970
21971 2019-03-04 Richard Biener <rguenther@suse.de>
21972
21973 PR middle-end/89572
21974 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
21975 safe_dyn_cast.
21976
21977 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
21978
21979 PR tree-optimization/89487
21980 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
21981 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
21982 (distribute_loop): Don't do runtime alias check if there is non-
21983 addressable data reference.
21984 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
21985 is a register variable.
21986
21987 2019-03-02 Jakub Jelinek <jakub@redhat.com>
21988
21989 PR target/89506
21990 * config/arm/arm.md (cmpsi2_addneg): Use
21991 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
21992 If operands[2] is 0 or INT_MIN, force use of subs.
21993 (*compare_scc splitter): Use gen_int_mode.
21994 (*negscc): Likewise.
21995 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
21996
21997 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
21998 Monk Chiang <sh.chiang04@gmail.com>
21999
22000 * common/config/riscv/riscv-common.c: Include sstream.
22001 (riscv_subset_list::to_string): New.
22002 (riscv_arch_str): Likewise.
22003 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22004 * config.in: Regen.
22005 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22006 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22007 (riscv_emit_attribute): New.
22008 (riscv_file_start): Emit attribute if needed.
22009 (riscv_option_override): Init riscv_emit_attribute_p.
22010 * config/riscv/riscv.opt (mriscv-attribute): New option.
22011 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22012 * configure: Regen.
22013 * doc/install.texi: Document --with-riscv-attribute.
22014 * doc/invoke.texi: Document -mriscv-attribute.
22015
22016 * common/config/riscv/riscv-common.c:
22017 Include config/riscv/riscv-protos.h.
22018 (INCLUDE_STRING): Defined.
22019 (RISCV_DONT_CARE_VERSION): Defined.
22020 (riscv_subset_t): Declare.
22021 (riscv_subset_t::riscv_subset_t): New.
22022 (riscv_subset_list): Declare.
22023 (riscv_subset_list::riscv_subset_list): New.
22024 (riscv_subset_list::~riscv_subset_list): Likewise.
22025 (riscv_subset_list::parsing_subset_version): Likewise.
22026 (riscv_subset_list::parse_std_ext): Likewise.
22027 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22028 (riscv_subset_list::add): Likewise.
22029 (riscv_subset_list::lookup): Likewise.
22030 (riscv_subset_list::xlen): Likewise.
22031 (riscv_subset_list::parse): Likewise.
22032 (riscv_supported_std_ext): Likewise.
22033 (current_subset_list): Likewise.
22034 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22035 parse.
22036
22037 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22038
22039 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22040 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22041 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22042
22043 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22044
22045 PR rtl-optimization/85899
22046 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22047 fallthru edges leading to the exit block.
22048
22049 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22050
22051 PR target/89517
22052 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22053 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22054
22055 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22056
22057 PR tree-optimization/89535
22058 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22059 for each operand. Calculate the fallback choice for mask operands
22060 and pass it to vect_get_vec_def_for_operand.
22061
22062 2019-03-01 Richard Biener <rguenther@suse.de>
22063
22064 PR middle-end/89541
22065 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22066 get virtual operands.
22067 (get_expr_operands): Handle CONST_DECL like other decls.
22068
22069 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22070
22071 PR middle-end/89503
22072 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22073 on DECL_P and EXPR_P.
22074
22075 2019-03-01 Richard Biener <rguenther@suse.de>
22076
22077 PR middle-end/89497
22078 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22079 argument, defaulted to zero.
22080 * passes.c (execute_function_todo): Pass down SSA update flags
22081 to cleanup_tree_cfg.
22082 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22083 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22084 form if requested.
22085 (cleanup_tree_cfg): Get and pass down SSA update flags.
22086
22087 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22088
22089 PR bootstrap/89539
22090 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22091 early_lto_debug argument.
22092
22093 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22094
22095 PR tree-optimization/89536
22096 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22097 only whether bit #0 of the value is 0 instead of the entire value.
22098
22099 2019-02-28 Marek Polacek <polacek@redhat.com>
22100
22101 PR c++/87068 - missing diagnostic with fallthrough statement.
22102 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22103 at the end of a seq, save its location to walk_stmt_info.
22104 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22105 a switch.
22106
22107 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22108
22109 PR lto/88585
22110 * tree.c (find_atomic_core_type): Move ahead in file.
22111 (check_base_type): Correctly compare alignments of atomic types.
22112
22113 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22114
22115 PR target/89455
22116 * config/i386/i386.c (get_builtin_code_for_version): Identify
22117 Westmere from PCLMUL, instead of AES.
22118
22119 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22120
22121 PR target/89434
22122 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22123 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22124 -UINTVAL (...).
22125
22126 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22127
22128 PR target/88530
22129 * config/aarch64/aarch64-option-extensions.def: Document it.
22130 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22131 if empty hwcaps.
22132
22133 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22134
22135 PR c/89520
22136 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22137 builtins if they don't have a single scalar floating point argument.
22138 Formatting fixes.
22139
22140 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22141
22142 PR rtl-optimization/89490
22143 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22144 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22145 block section is not mergeable.
22146
22147 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22148
22149 PR target/70341
22150 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22151 old define_insn to ...
22152 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22153 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22154 Rename old define_insn to ...
22155 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22156 (thumb2_casesi_internal_pic): New define_expand. Rename old
22157 define_insn to ...
22158 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22159 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22160 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22161
22162 2019-02-27 Richard Biener <rguenther@suse.de>
22163
22164 PR debug/88878
22165 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22166
22167 2019-02-27 Richard Biener <rguenther@suse.de>
22168
22169 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22170 building.
22171
22172 2019-02-27 Richard Biener <rguenther@suse.de>
22173
22174 PR debug/88878
22175 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22176 parameter, prefix section name with .gnu.debuglto_ if true.
22177 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22178 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22179
22180 2019-02-27 Richard Biener <rguenther@suse.de>
22181
22182 PR debug/89514
22183 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22184 rather than on use_debug_types, doing what output_die does.
22185 (value_format): Likewise.
22186
22187 2019-02-27 Martin Jambor <mjambor@suse.cz>
22188 Martin Sebor <msebor@redhat.com>
22189
22190 * doc/invoke.texi (Warning Options): Reword description of
22191 -Wno-absolute-value.
22192
22193 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22194
22195 PR tree-optimization/89280
22196 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22197 builtin_setjmp_setup_bb): New functions.
22198 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22199 When visiting __builtin_setjmp_setup block, queue in special
22200 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22201 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22202 from visited after the loop if they don't have any visited successor
22203 blocks.
22204
22205 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22206
22207 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22208 New function.
22209 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22210
22211 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22212
22213 PR c++/89507
22214 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22215 with types other than sizetype/ssizetype.
22216
22217 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22218
22219 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22220 (enum sparc_processor_type): ...this.
22221 (enum sparc_code_model_type): New enumeration type.
22222 (enum sparc_memory_model_type): Tweak comments.
22223 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22224 (mtune): Likewise.
22225 (mcmodel): Use sparc_code_model enumeration and variable.
22226 (sparc_code_model): New enumeration.
22227 (mdebug): Add Undocumented marker.
22228 * config/sparc/sparc.h (enum cmodel): Delete.
22229 (sparc_cmodel): Likewise.
22230 (TARGET_CM_MEDLOW): Adjust to above renaming.
22231 (TARGET_CM_MEDMID): Likewise.
22232 (TARGET_CM_MEDANY): Likewise.
22233 (TARGET_CM_EMBMEDANY): Likewise.
22234 * config/sparc/sparc.c (sparc_cmodel): Delete.
22235 (sparc_option_override): Remove string/value mapping support for the
22236 code model. Move code and memory model support to after the handling
22237 of target flags. Do private machine setup last.
22238 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22239 (sparc_legitimize_reload_address): Likewise.
22240 (sparc_output_mi_thunk): Likewise.
22241 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22242
22243 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22244
22245 PR tree-optimization/89500
22246 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22247 (handle_builtin_strlen): Remove noncst_bound variable. Always
22248 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22249 cst if the first cst bytes starting at x are known to be non-zero,
22250 even if the string is not zero terminated. Don't try to modify
22251 *si for strnlen. Update strlen_to_stridx only for strlen or if
22252 we can prove strnlen returns the same value as strlen would.
22253
22254 2019-02-26 Martin Liska <mliska@suse.cz>
22255
22256 * alloc-pool.h (struct pool_usage): Remove extra
22257 print_dash_line.
22258 * bitmap.h (struct bitmap_usage): Likewise.
22259 * ggc-common.c (struct ggc_usage): Likewise.
22260 * mem-stats.h (struct mem_usage): Likewise.
22261 (mem_alloc_description::dump): Print dash lines
22262 here and repeat header at the end of a table report.
22263 It's then more readable.
22264 * tree-phinodes.c (phinodes_print_statistics): Make
22265 horizontal alignment.
22266 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22267 * vec.c (struct vec_usage): Remove extra print_dash_line.
22268 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22269
22270 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22271
22272 * doc/extend.texi (__builtin_object_size):
22273 Use @pxref instead of @xref inside parenthesis.
22274 (__builtin_has_attribute): Add missing comma after @xref.
22275 (__builtin_object_size): Ditto.
22276 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22277
22278 2019-02-26 Jeff Law <law@redhat.com>
22279
22280 PR rtl-optimization/87761
22281 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22282 detect obviously dead insns and delete them.
22283
22284 2019-02-26 Richard Biener <rguenther@suse.de>
22285
22286 PR tree-optimization/89505
22287 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22288 to handle restrict pointed-to vars with multiple subvars
22289 correctly.
22290
22291 2019-02-26 Richard Biener <rguenther@suse.de>
22292
22293 PR tree-optimization/89489
22294 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22295
22296 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22297
22298 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22299 and move around comment.
22300 <BIT_AND_EXPR>: Likewise.
22301 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22302
22303 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22304
22305 PR target/89474
22306 * config/i386/i386.c (remove_partial_avx_dependency): Call
22307 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22308 after changing possibly many instructions to use that pseudo. Fix up
22309 insertion of v4sf_const0 setter at the start of bb.
22310
22311 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22312
22313 PR c/80409
22314 * doc/extend.texi (Variadic Pointer Args): New section.
22315
22316 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22317 Martin Sebor <msebor@gmail.com>
22318
22319 * common.opt (Wattribute-alias): Likewise.
22320 * doc/invoke.texi (Option Summary): List general form of
22321 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22322 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22323 Add cross-references.
22324 (-Wattribute-alias): Rewrite and correct default. Mention
22325 considered attributes (same as for -Wmissing-attributes).
22326
22327 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22328
22329 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22330 (_mm_cvtpd_ps): Likewise.
22331 (_mm_cvttpd_epi32): Likewise.
22332
22333 PR target/89338
22334 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22335 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22336
22337 PR target/89339
22338 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22339
22340 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22341
22342 PR target/88530
22343 * common/config/aarch64/aarch64-common.c
22344 (struct aarch64_option_extension): Add is_synthetic.
22345 (all_extensions): Use it.
22346 (TARGET_OPTION_INIT_STRUCT): Define hook.
22347 (struct gcc_targetm_common): Moved to end.
22348 (all_extensions_by_on): New.
22349 (opt_ext_cmp, typedef opt_ext): New.
22350 (aarch64_option_init_struct): New.
22351 (aarch64_contains_opt): New.
22352 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22353 * config/aarch64/aarch64-option-extensions.def
22354 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22355 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22356 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22357 Set is_synthetic to false.
22358 (crypto): Set is_synthetic to true.
22359 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22360 SYNTHETIC.
22361
22362 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22363
22364 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22365 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22366 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22367 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22368 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22369 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22370 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22371 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22372 Rename ...
22373 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22374 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22375 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22376 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22377 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22378 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22379 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22380 vfmlsl_laneq_high_f16): ... To this.
22381 * config/arm/neon.md: Update comments.
22382
22383 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22384
22385 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22386 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22387 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22388 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22389 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22390 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22391 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22392 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22393 Rename ...
22394 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22395 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22396 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22397 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22398 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22399 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22400 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22401 vfmlslq_laneq_high_f16): ... To this.
22402
22403 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
22404
22405 PR rtl-optimization/86096
22406 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22407 comparing mw_order values.
22408
22409 2019-02-25 Jakub Jelinek <jakub@redhat.com>
22410
22411 PR target/89434
22412 * config/arm/arm.md (*subsi3_carryin_const): Use
22413 arm_neg_immediate_operand predicate instead of
22414 arm_not_immediate_operand, "L" constraint instead of "K" and
22415 print it using %n2 instead of %B2.
22416 (*subsi3_carryin_const0): New define_insn.
22417 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
22418 instead of arm_not_operand and "I" constraint instead of "K" and
22419 print it using %n3 instead of %B2. Instead of using match_dup 2 add
22420 another match_operand and in the condition check that it is negation
22421 of operands[2].
22422 (*subsi3_carryin_compare_const0): New define_ins.
22423 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
22424 *subsi3_carryin_const.
22425 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
22426 split into *subsi3_carryin_compare_const0 if the highpart is zero.
22427
22428 PR target/89438
22429 * config/arm.vfp.md (*negdf2_vfp): Use
22430 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
22431 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
22432
22433 2019-02-24 Jakub Jelinek <jakub@redhat.com>
22434
22435 PR rtl-optimization/89445
22436 * simplify-rtx.c (simplify_ternary_operation): Don't use
22437 simplify_merge_mask on operands that may trap.
22438 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
22439 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
22440 second operand is CONST_VECTOR, check if any element could be zero.
22441 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
22442 their operands can trap.
22443
22444 2019-02-23 Martin Sebor <msebor@redhat.com>
22445
22446 * gimple-ssa-sprintf.c (target_strtol): Rename...
22447 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
22448 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
22449 check for range error.
22450
22451 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
22452
22453 PR driver/69471
22454 * opts-common.c (prune_options): Also prune joined switches
22455 with Negative and RejectNegative.
22456 * config/i386/i386.opt (march=): Add Negative(march=).
22457 (mtune=): Add Negative(mtune=).
22458 * doc/options.texi: Document Negative used together with Joined
22459 and RejectNegative.
22460
22461 2019-02-22 Martin Sebor <msebor@redhat.com>
22462
22463 * doc/extend.texi (Other Builtins): Add
22464 __builtin_is_constant_evaluated.
22465
22466 2019-02-22 Richard Biener <rguenther@suse.de>
22467
22468 PR tree-optimization/87609
22469 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
22470
22471 2019-02-22 Jeff Law <law@redhat.com>
22472
22473 PR rtl-optimization/87761
22474 * config/mips/mips.md: Add new combiner pattern to recognize
22475 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
22476
22477 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
22478
22479 PR target/89324
22480 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
22481 destination register in peepholes generating patterns for ADDS/SUBS.
22482 (add<mode>3_compare0,
22483 *addsi3_compare0_uxtw, add<mode>3_compareC,
22484 add<mode>3_compareV_imm, add<mode>3_compareV,
22485 *adds_<optab><ALLX:mode>_<GPI:mode>,
22486 *subs_<optab><ALLX:mode>_<GPI:mode>,
22487 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
22488 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
22489 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
22490 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
22491 sub<mode>3_compare1): Allow stack pointer for source register.
22492 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
22493
22494 2019-02-22 Martin Sebor <msebor@redhat.com>
22495
22496 PR tree-optimization/88993
22497 PR tree-optimization/88853
22498 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
22499 New helper.
22500 (sprintf_dom_walker::call_info::is_string_func): New helper.
22501 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
22502 for formatted string functions.
22503 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
22504
22505 2019-02-22 Martin Sebor <msebor@redhat.com>
22506
22507 PR c/89425
22508 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
22509 unreachable subexpressions.
22510
22511 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
22512 Hongtao Liu <hongtao.liu@intel.com>
22513 Sunil K Pandey <sunil.k.pandey@intel.com>
22514
22515 PR target/87007
22516 * config/i386/i386-passes.def: Add
22517 pass_remove_partial_avx_dependency.
22518 * config/i386/i386-protos.h
22519 (make_pass_remove_partial_avx_dependency): New.
22520 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
22521 New function.
22522 (pass_data_remove_partial_avx_dependency): New.
22523 (pass_remove_partial_avx_dependency): Likewise.
22524 (make_pass_remove_partial_avx_dependency): Likewise.
22525 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
22526 (*extendsfdf2): Add avx_partial_xmm_update.
22527 (truncdfsf2): Likewise.
22528 (*float<SWI48:mode><MODEF:mode>2): Likewise.
22529 (SF/DF conversion splitters): Disabled for TARGET_AVX.
22530
22531 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
22532
22533 PR middle-end/85598
22534 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
22535 analysis for pass.
22536
22537 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
22538
22539 PR target/89444
22540 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
22541 (PTA_SKYLAKE): Add PTA_AES.
22542 (PTA_GOLDMONT): Likewise.
22543
22544 2019-02-22 Sudakshina Das <sudi.das@arm.com>
22545
22546 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
22547 instruction if enabled.
22548 (aarch64_override_options): Remove reference to return address key.
22549
22550 2019-02-22 Richard Biener <rguenther@suse.de>
22551
22552 PR tree-optimization/89440
22553 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
22554 not necessary assert.
22555
22556 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
22557
22558 PR fortran/72741
22559 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
22560 (oacc_replace_fn_attrib_attr): ... this new function.
22561 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
22562 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
22563
22564 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22565
22566 * config/arm/arm-cpus.in (ares): Rename to...
22567 (neoverse-n1): ... This. Add ares as alias.
22568 * config/arm/arm-tables.opt: Regenerate.
22569 * config/arm/arm-tune.md: Likewise.
22570 * doc/invoke.txt (ARM Options): Document neoverse-n1.
22571
22572 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22573
22574 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
22575 * config/aarch64/aarch64-tune.md: Regenerate.
22576 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
22577
22578 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22579
22580 * config/aarch64/aarch64.c (ares_tunings): Rename to...
22581 (neoversen1_tunings): ... This.
22582 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
22583 (neoverse-n1): New CPU.
22584 * config/aarch64/aarch64-tune.md: Regenerate.
22585 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
22586
22587 2019-02-22 Richard Biener <rguenther@suse.de>
22588
22589 PR middle-end/87609
22590 * cfghooks.h (dependence_hash): New typedef.
22591 (struct copy_bb_data): New type.
22592 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
22593 (duplicate_block): Likewise.
22594 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
22595 (copy_bbs): Create and pass down copy_bb_data.
22596 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
22597 (rtl_duplicate_bb): Likewise.
22598 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
22599 remap dependence info.
22600
22601 2019-02-22 Richard Biener <rguenther@suse.de>
22602
22603 PR tree-optimization/87609
22604 * tree-core.h (tree_base): Document special clique values.
22605 * tree-inline.c (remap_dependence_clique): Do not use the
22606 special clique value of one.
22607 (maybe_set_dependence_info): Use clique one.
22608 (clear_dependence_clique): New callback.
22609 (compute_dependence_clique): Clear clique one from all refs
22610 before assigning it (again).
22611
22612 2019-02-21 Martin Sebor <msebor@redhat.com>
22613
22614 * doc/extend.texi (__clear_cache): Correct signature.
22615
22616 2019-02-21 Ian Lance Taylor <iant@golang.org>
22617
22618 PR go/89170
22619 * varasm.c (decode_addr_const): Call lookup_constant_def rather
22620 than output_constant_def.
22621 (add_constant_to_table): New static function.
22622 (output_constant_def): Call add_constant_to_table.
22623 (tree_output_constant_def): Likewise.
22624
22625 2019-02-21 Jakub Jelinek <jakub@redhat.com>
22626
22627 PR c++/89285
22628 * builtins.c (fold_builtin_arith_overflow): If first two args are
22629 INTEGER_CSTs, set intres and ovfres to constants rather than calls
22630 to ifn.
22631
22632 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
22633
22634 PR target/87412
22635 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
22636 error for -mindirect-branch/-mfunction-return with incompatible
22637 -fcf-protection.
22638
22639 2019-02-21 Jakub Jelinek <jakub@redhat.com>
22640
22641 PR bootstrap/88714
22642 * constraints.md (q): Remove.
22643 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
22644 instead of q.
22645
22646 2019-02-21 Martin Jambor <mjambor@suse.cz>
22647
22648 PR hsa/89302
22649 * omp-general.c (omp_extract_for_data): Removed a duplicate call
22650 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
22651 (omp_adjust_for_condition): ...here. Added necessary parameters.
22652 * omp-general.h (omp_adjust_for_condition): Updated declaration.
22653 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
22654 proper values to new parameters of omp_adjust_for_condition.
22655
22656 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22657
22658 PR middle-end/89412
22659 * expr.c (expand_assignment): If result is a MEM, use change_address
22660 instead of simplify_gen_subreg.
22661
22662 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22663 David Malcolm <dmalcolm@redhat.com>
22664
22665 PR middle-end/89091
22666 * fold-const.c (decode_field_reference): Return NULL_TREE if
22667 lang_hooks.types.type_for_size returns NULL. Check it before
22668 overwriting *exp_. Use return NULL_TREE instead of return 0.
22669
22670 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22671
22672 PR middle-end/88074
22673 PR middle-end/89415
22674 * toplev.c (do_compile): Double the emin/emax exponents to workaround
22675 buggy mpc_norm.
22676
22677 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
22678
22679 PR target/89397
22680 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
22681 TARGET_SSE in addition to TARGET_SSE_MATH.
22682
22683 (ix86_excess_precision): Ditto.
22684 (ix86_float_exceptions_rounding_supported_p): Ditto.
22685 (use_rsqrt_p): Ditto.
22686 * config/i386/sse.md (rsqrt<mode>2): Ditto.
22687
22688 2019-02-20 David Malcolm <dmalcolm@redhat.com>
22689
22690 PR c/89410
22691 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
22692 linenum_arith_t when determining if two adjacent line spans are
22693 close enough to merge.
22694 (diagnostic_show_locus): Use linenum_arith_t when iterating over
22695 lines within each line_span.
22696
22697 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
22698
22699 PR target/86487
22700 * lra-constraints.c(uses_hard_regs_p): Fix handling of
22701 paradoxical SUBREGS.
22702
22703 2019-02-20 Li Jia He <helijia@linux.ibm.com>
22704
22705 PR target/88100
22706 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
22707 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
22708 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
22709 range checking it.
22710
22711 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
22712
22713 * config/gcn/gcn.c (print_operand): Fix typo.
22714
22715 2019-02-19 Richard Biener <rguenther@suse.de>
22716
22717 PR middle-end/88074
22718 * toplev.c (do_compile): Initialize mpfr's exponent range
22719 based on available float modes.
22720
22721 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
22722
22723 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
22724 as long as the epilogue isn't completed.
22725
22726 2019-02-18 Martin Sebor <msebor@redhat.com>
22727
22728 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
22729 __has_cpp_attribute, and __has_include.
22730
22731 2019-02-18 Martin Sebor <msebor@redhat.com>
22732
22733 * doc/invoke.texi (-Wreturn-type): Correct and expand.
22734
22735 2019-02-18 Martin Sebor <msebor@redhat.com>
22736
22737 PR middle-end/89294
22738 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
22739 expression.
22740 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
22741
22742 2019-02-18 Richard Biener <rguenther@suse.de>
22743
22744 PR tree-optimization/89296
22745 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
22746 of no-warning flag to cases that might emit the bogus warning.
22747
22748 2019-02-18 Jakub Jelinek <jakub@redhat.com>
22749
22750 PR bootstrap/88714
22751 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
22752 "q" constraint.
22753 * config/arm/vfp.md (*movdi_vfp): Likewise.
22754 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
22755 "q" constraint for operands[0].
22756
22757 PR target/89369
22758 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
22759 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
22760 pattern in a temporary buffer.
22761 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
22762 than 64-operands[2].
22763
22764 PR target/89361
22765 * config/s390/s390.c (s390_indirect_branch_attrvalue,
22766 s390_indirect_branch_settings): Define unconditionally.
22767 (s390_set_current_function): Likewise, but guard the whole body except
22768 the s390_indirect_branch_settings call with
22769 #if S390_USE_TARGET_ATTRIBUTE.
22770 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
22771
22772 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
22773 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
22774 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
22775 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
22776 HOST_WIDE_INT_1U instead of 1ULL.
22777 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
22778 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
22779 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
22780 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
22781 instead of 1UL.
22782 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
22783 instead of 1ul.
22784
22785 2019-02-18 Martin Jambor <mjambor@suse.cz>
22786
22787 PR tree-optimization/89209
22788 * tree-sra.c (create_access_replacement): New optional parameter
22789 reg_tree. Use it as a type if non-NULL and access type is not of
22790 a register type.
22791 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
22792 to create_access_replacement.
22793 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
22794 Check lacc is non-NULL before attempting to re-create it on the RHS.
22795
22796 2019-02-18 Martin Liska <mliska@suse.cz>
22797
22798 PR ipa/89306
22799 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
22800 by default.
22801 (symbol_table::free_edge): Recycle m_summary_id.
22802 * cgraph.h (get_summary_id): New.
22803 (symbol_table::release_symbol): Set m_summary_id to -1
22804 by default.
22805 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
22806 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
22807 function_summary to fast_function_summary.
22808 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
22809 * ipa-pure-const.c (class funct_state_summary_t):
22810 Switch from function_summary to fast_function_summary.
22811 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
22812 (class ipa_ref_opt_summary_t): Switch from function_summary
22813 to fast_function_summary.
22814 * symbol-summary.h (class function_summary_base): New class
22815 that is created from base of former function_summary.
22816 (function_summary_base::unregister_hooks): New.
22817 (class function_summary): Inherit from function_summary_base.
22818 (class call_summary_base): New class
22819 that is created from base of former call_summary.
22820 (class call_summary): Inherit from call_summary_base.
22821 (struct is_same): New.
22822 (class fast_function_summary): New summary class.
22823 (class fast_call_summary): New summary class.
22824 * vec.h (vec_safe_grow_cleared): New function.
22825
22826 2019-02-18 Martin Liska <mliska@suse.cz>
22827
22828 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
22829 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
22830 * doc/tm.texi: Document new target hook.
22831 * doc/tm.texi.in: Likewise.
22832 * target.def: Add new target macro.
22833 * gcc.c (find_fortran_preinclude_file): Do not search multilib
22834 suffixes.
22835
22836 2019-02-17 Alan Modra <amodra@gmail.com>
22837
22838 PR target/89271
22839 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
22840 output reg on add insn.
22841 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
22842
22843 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
22844
22845 PR target/89372
22846 * config/i386/sse.md (ssedoublemode): Remove V4HI.
22847 (PMULHRSW): Likewise.
22848 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
22849 TARGET_AVX2.
22850 (ssse3_pmulhrswv4hi3): New expander.
22851
22852 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
22853
22854 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
22855 MMX. Add isa attribute.
22856
22857 2019-02-16 Jakub Jelinek <jakub@redhat.com>
22858
22859 PR rtl-optimization/66152
22860 * builtins.h (c_readstr): Declare.
22861 * builtins.c (c_readstr): Remove forward declaration. Add
22862 null_terminated_p argument, if false, read all bytes from the
22863 string instead of stopping after '\0'.
22864 * expr.c (string_cst_read_str): New function.
22865 (store_expr): Use string_cst_read_str instead of
22866 builtin_strncpy_read_str. Try to store by pieces the whole
22867 exp_len first, and only if that fails, split it up into
22868 store by pieces followed by clear_storage. Formatting fix.
22869
22870 * config/i386/i386.md (*movqi_internal): Remove static from
22871 buf variable. Use output_asm_insn (buf, operands); return "";
22872 instead of return buf;.
22873 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
22874 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
22875 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
22876
22877 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
22878
22879 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
22880 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
22881 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
22882 (CC1_SPEC): Likewise.
22883 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
22884
22885 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
22886
22887 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
22888 the base address on 64-bit strict-alignment platforms.
22889
22890 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
22891
22892 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
22893
22894 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
22895
22896 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
22897
22898 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
22899
22900 PR rtl-optimization/88308
22901 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
22902 on copied instruction.
22903
22904 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
22905
22906 * final.c (insn_current_reference_address): Replace test on JUMP_P
22907 with test on jump_to_label_p.
22908 * config/visium/visium-passes.def: New file.
22909 * config/visium/t-visium (PASSES_EXTRA): Define.
22910 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
22911 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
22912 (TRAMPOLINE_ALIGNMENT): Define.
22913 * config/visium/visium.c (visium_option_override): Do not register
22914 the machine-specific reorg pass here.
22915 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
22916 for the GR6.
22917 (output_branch): Adjust threshold for long branch instruction.
22918 * config/visium/visium.md (cpu): Move around.
22919 (length): Adjust for the GR6.
22920
22921 2019-02-15 Richard Biener <rguenther@suse.de>
22922 Jakub Jelinek <jakub@redhat.com>
22923
22924 PR tree-optimization/89278
22925 * tree-loop-distribution.c: Include tree-eh.h.
22926 (generate_memset_builtin, generate_memcpy_builtin): Call
22927 rewrite_to_non_trapping_overflow on builtin->size before passing it
22928 to force_gimple_operand_gsi.
22929
22930 2019-02-15 Jakub Jelinek <jakub@redhat.com>
22931
22932 PR other/89342
22933 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
22934 optimize_debug.
22935 * opth-gen.awk: Likewise.
22936
22937 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
22938
22939 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
22940 Enable MMX, SSE and SSE2 by default.
22941 * config/i386/i386.c (ix86_option_override_internal): Do not
22942 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
22943
22944 2019-02-14 Jakub Jelinek <jakub@redhat.com>
22945
22946 PR rtl-optimization/89354
22947 * combine.c (make_extraction): Punt if extraction_mode is narrower
22948 than len bits.
22949
22950 2019-02-14 Maya Rashish <coypu@sdf.org>
22951
22952 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
22953 * config/netbsd-d.c: New file.
22954 * config/t-netbsd: Add netbsd-d.o
22955
22956 2018-02-14 Steve Ellcey <sellcey@marvell.com>
22957
22958 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
22959 affects_type_identity to true for aarch64_vector_pcs.
22960 (aarch64_comp_type_attributes): New function.
22961 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
22962
22963 2019-02-14 Tamar Christina <tamar.christina@arm.com>
22964
22965 PR target/88850
22966 * config/arm/iterators.md (ANY64): Add V4HF.
22967
22968 2019-02-14 Martin Liska <mliska@suse.cz>
22969
22970 PR rtl-optimization/89242
22971 * dce.c (delete_unmarked_insns): Call free_dominance_info we
22972 process a transformation.
22973
22974 2019-02-14 Jakub Jelinek <jakub@redhat.com>
22975
22976 PR tree-optimization/89314
22977 * fold-const.c (fold_binary_loc): Cast strlen argument to
22978 const char * before dereferencing it. Formatting fixes.
22979
22980 PR middle-end/89284
22981 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
22982
22983 2019-02-13 Ian Lance Taylor <iant@golang.org>
22984
22985 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
22986 and set current index for other optimizations.
22987
22988 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
22989
22990 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
22991 nonimmediate_operand as operand 2 predicate.
22992 (vec_set<VF2_512_256:mode>_0): Ditto.
22993 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
22994 (*vec_concatv2si): Remove alternative 2.
22995 (*vec_concatv4si_0): Use vm constraint for alternative 0.
22996 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
22997 (vec_concatv2di): Split alternatives 4,5,6 to ...
22998 (*vec_concatv2di_0) ... new pattern.
22999
23000 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23001
23002 PR target/89190
23003 * config/arm/arm.c (ldm_stm_operation_p) Set
23004 addr_reg_in_reglist correctly for first register.
23005 (load_multiple_sequence): Remove dead base check.
23006 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23007
23008 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23009
23010 PR target/88847
23011 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23012 Expose as @aarch64_pred_mov.
23013 * config/aarch64/aarch64.c (aarch64_classify_address):
23014 Use expand_insn which legitimizes operands.
23015
23016 2019-02-13 Martin Liska <mliska@suse.cz>
23017
23018 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23019 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23020 and pointer_offset fields.
23021 (initialize_argument_information): Remove usage of dead
23022 fields.
23023 * cgraph.h (struct cgraph_thunk_info): Remove
23024 add_pointer_bounds_args.
23025 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23026 fields.
23027 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23028 fields.
23029 * config/i386/i386.c (ix86_function_arg_advance): Remove
23030 unrelated comment.
23031 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23032 (def_builtin): Remove usage of dead fields.
23033 (ix86_add_new_builtins): Likewise.
23034 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23035 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23036 (sem_function::init): Likewise.
23037 (sem_variable::merge): Likewise.
23038 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23039 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23040 * lto-cgraph.c (lto_output_node): Likewise.
23041 (lto_output_varpool_node): Likewise.
23042 (input_node): Likewise.
23043 (input_varpool_node): Likewise.
23044 * lto-streamer-out.c (lto_output): Likewise.
23045 * tree-inline.c (expand_call_inline): Remove usage of
23046 assign_stmts.
23047 * tree-inline.h (struct copy_body_data): Likewise.
23048 * varpool.c (varpool_node::dump): Likewise.
23049
23050 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23051
23052 PR middle-end/89303
23053 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23054 into pt->vars_contains_escaped_heap instead of setting
23055 pt->vars_contains_escaped_heap to it.
23056
23057 PR middle-end/89281
23058 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23059 INTVAL (size), compare it to GET_MODE_MASK instead of
23060 1 << GET_MODE_BITSIZE.
23061
23062 PR target/89290
23063 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23064 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23065 -mcmodel=large.
23066
23067 2019-02-13 Martin Liska <mliska@suse.cz>
23068
23069 PR lto/88858
23070 * cfgrtl.c (remove_barriers_from_footer): New function.
23071 (try_redirect_by_replacing_jump): Use it.
23072 (cfg_layout_redirect_edge_and_branch): Likewise.
23073
23074 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23075
23076 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23077 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23078 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23079 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23080 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23081 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23082 New BU_CRYPTO_2.
23083 * config/rs6000/rs6000.c (builtin_function_type)
23084 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23085 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23086 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23087 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23088 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23089
23090 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23091
23092 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23093 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23094
23095 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23096
23097 PR target/89229
23098 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23099 268678 and revision 268657.
23100 (*movti_internal): Likewise.
23101
23102 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23103
23104 PR target/89233
23105 * config/s390/s390.c (s390_decompose_address): Update comment.
23106 (s390_check_qrst_address): Reject invalid address forms after
23107 LRA.
23108
23109 2019-02-12 Martin Liska <mliska@suse.cz>
23110
23111 PR lto/88876
23112 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23113 we need default values of funct_state for a function that
23114 is not optimized.
23115
23116 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23117
23118 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23119 the object to pick the size of stores on strict-alignment platforms.
23120
23121 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23122 (*movdi_insn_sp32): Likewise.
23123 (*movdi_insn_sp64): Likewise.
23124
23125 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23126
23127 PR lto/88677
23128 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23129 types that needs constructiong.
23130 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23131
23132 2019-02-12 Richard Biener <rguenther@suse.de>
23133
23134 PR tree-optimization/89253
23135 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23136 duplicate the loop.
23137
23138 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23139
23140 PR lto/88147
23141 * input.c (selftest::test_line_offset_overflow): New selftest.
23142 (selftest::input_c_tests): Call it.
23143
23144 2019-02-11 Martin Sebor <msebor@redhat.com>
23145
23146 PR tree-optimization/88771
23147 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23148 when -Wstringop-overflow is set.
23149 (builtin_memref::builtin_memref): Adjust excessive upper bound
23150 only when lower bound is not excessive.
23151 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23152 -Wstringop-ovefflow.
23153 (maybe_diag_offset_bounds): Rename...
23154 (maybe_diag_access_bounds): ...to this.
23155 (check_bounds_or_overlap): Adjust for name change above.
23156
23157 2019-02-11 Martin Sebor <msebor@redhat.com>
23158
23159 PR c++/87996
23160 * builtins.c (max_object_size): Move from here...
23161 * builtins.h (max_object_size): ...and here...
23162 * tree.c (max_object_size): ...to here...
23163 * tree.h (max_object_size): ...and here.
23164
23165 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23166
23167 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23168 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23169 for correct semantics.
23170
23171 2019-02-11 Alan Modra <amodra@gmail.com>
23172
23173 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23174 -mlongcall and -mpltseq.
23175 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23176 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23177 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23178 * config/rs6000/sysv4.opt (mpltseq): New option.
23179 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23180 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23181 support is lacking. Don't allow -mpltseq with -mbss-plt.
23182 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23183 -mpltseq given for ELFv1.
23184 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23185 Only use UNSPEC_PLTSEQ for inline PLT calls.
23186 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23187 use UNSPEC_PLTSEQ for inline PLT calls.
23188 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23189 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23190 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23191 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23192 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23193 (pltseq_mtctr_<mode>): Likewise.
23194
23195 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23196
23197 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23198 Solaris ld.
23199 * configure: Regenerate.
23200
23201 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23202
23203 PR bootstrap/88714
23204 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23205 instead of r.
23206
23207 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23208
23209 * function.c (assign_parm_setup_block): Use the stored
23210 size, not the passed size, when allocating stack-space,
23211 also for a parameter with alignment larger than
23212 MAX_SUPPORTED_STACK_ALIGNMENT.
23213
23214 2019-02-11 Martin Liska <mliska@suse.cz>
23215
23216 PR ipa/89009
23217 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23218 * ipa-inline.c (inline_small_functions): Likewise.
23219 * ipa-pure-const.c (propagate_pure_const): Likewise.
23220 (propagate_nothrow): Likewise.
23221 * ipa-reference.c (propagate): Likewise.
23222 * ipa-utils.c (struct searchc_env): Remove unused field.
23223 (searchc): Always search across AVAIL_INTERPOSABLE.
23224 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23225 the only called IPA pure const can properly not propagate
23226 across interposable boundary.
23227 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23228
23229 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23230
23231 * config/nds32/nds32.md (call_internal, call_value_internal,
23232 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23233
23234 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23235
23236 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23237 typo.
23238
23239 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23240
23241 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23242 in comments
23243
23244 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23245
23246 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23247
23248 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23249
23250 PR tree-optimization/89268
23251 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23252 if preds is non-NULL.
23253
23254 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23255
23256 PR lto/89272
23257 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23258 polymorphic types.
23259
23260 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23261
23262 * config/nds32/nds32.md (trap): New pattern.
23263
23264 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23265
23266 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23267 dwarf span.
23268
23269 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23270
23271 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23272 to split POST_INC.
23273
23274 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23275
23276 * ipa-visibility.c (localize_node): Also do not localize
23277 LDPR_PREVAILING_DEF_IRONLY_EXP.
23278
23279 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23280
23281 PR lto/87957
23282 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23283 instead of type_with_linkage.
23284
23285 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23286
23287 PR ipa/88755
23288 * params.def (uninlined-function-insns, uninlined-function-time,
23289 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23290 bound so we don't get overflows.
23291
23292 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23293
23294 * config/rs6000/rs6000-string.c (expand_compare_loop,
23295 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23296 memcmp/strncmp.
23297
23298 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23299
23300 PR middle-end/89246
23301 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23302 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23303 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23304
23305 2019-02-09 Alan Modra <amodra@gmail.com>
23306
23307 PR target/88343
23308 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23309 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23310 setup.
23311
23312 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23313
23314 PR middle-end/88560
23315 * lra-constraints.c (process_alt_operands): Don't increase reject
23316 for memory when offset memory is required.
23317
23318 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23319
23320 * config/s390/vector.md: Implement vector copysign.
23321
23322 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23323
23324 * expr.c (expand_constructor): Correct indentations.
23325
23326 2019-02-08 Richard Biener <rguenther@suse.de>
23327
23328 PR tree-optimization/89247
23329 * tree-if-conv.c: Include tree-cfgcleanup.h.
23330 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23331 (tree_if_conversion): Pass through predicate vector.
23332 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23333 inline, see if any if-converted loops we refrece in
23334 LOOP_VECTORIZED calls vanished and fixup.
23335 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23336
23337 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23338
23339 * config/s390/constraints.md (jdd): New constraint.
23340
23341 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23342
23343 PR target/89229
23344 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23345 upper 16 vector registers without TARGET_AVX512VL.
23346 (*movti_internal): Likewise.
23347
23348 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23349
23350 PR rtl-optimization/89234
23351 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23352 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23353 (copy_reg_eh_region_note_backward): Likewise.
23354
23355 2019-02-08 Richard Biener <rguenther@suse.de>
23356
23357 PR middle-end/89223
23358 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23359 doesn't fit in HWI.
23360 (analyze_subscript_affine_affine): Handle failure from
23361 initialize_matrix_A.
23362
23363 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23364
23365 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23366 cfun everywhere.
23367
23368 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23369
23370 PR tree-optimization/86637
23371 PR tree-optimization/89235
23372 * tree-vect-loop.c (optimize_mask_stores): Add an
23373 auto_purge_vect_location sentinel to ensure that vect_location is
23374 purged on exit.
23375 * tree-vectorizer.c
23376 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23377 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23378 to ensure that vect_location is purged on exit.
23379 (pass_slp_vectorize::execute): Likewise, replacing the manual
23380 reset.
23381 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23382
23383 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23384
23385 * config/aarch64/iterators.md (max_opp): New code_attr.
23386 (USMAX): New code iterator.
23387 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23388 (aarch64_smax): Likewise.
23389 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23390 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23391 MINUS (MAX MIN).
23392
23393 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23394
23395 PR target/89229
23396 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23397 for TARGET_AVX512VL.
23398 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23399
23400 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
23401
23402 * config/s390/s390-builtin-types.def: Add new types.
23403 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23404 (s390_vec_xlw4): Make the memory operand into a const pointer.
23405 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23406 float.
23407 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23408 a new vector type with the alignment of the scalar memory operand.
23409
23410 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
23411 Jakub Jelinek <jakub@redhat.com>
23412
23413 PR bootstrap/88714
23414 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23415 arm_count_ldrdstrd_insns): New declarations.
23416 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
23417 MINUS.
23418 (valid_operands_ldrd_strd): New function.
23419 (arm_count_ldrdstrd_insns): New function.
23420 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
23421 sets instead of single DImode set and define new insns to match this.
23422
23423 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23424
23425 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
23426 Make it a C initializer.
23427
23428 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23429
23430 PR/target 88850
23431 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
23432
23433 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23434
23435 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
23436 Use neon_dot<q> for type.
23437 (neon_<sup>dot_lane<vsi2qi>): Likewise.
23438
23439 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23440
23441 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
23442 Use neon_dot<q> for type.
23443 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
23444 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
23445
23446 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
23447
23448 PR rtl-optimization/89225
23449 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
23450 sizes check.
23451
23452 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
23453
23454 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
23455 after restoring registers saved to allocate the frame on Windows.
23456
23457 2019-02-06 Richard Biener <rguenther@suse.de>
23458
23459 PR tree-optimization/89182
23460 * graphite.h (cached_scalar_evolution_in_region): Declare.
23461 * graphite.c (struct seir_cache_key): New.
23462 (struct sese_scev_hash): Likewise.
23463 (seir_cache): New global.
23464 (cached_scalar_evolution_in_region): New function.
23465 (graphite_transform_loops): Allocate and release seir_cache.
23466 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
23467 cached_scalar_evolution_in_region.
23468 * graphite-scop-detection.c (scop_detection::can_represent_loop):
23469 Simplify.
23470 (scop_detection::graphite_can_represent_expr: Use
23471 cached_scalar_evolution_in_region.
23472 (scop_detection::stmt_simple_for_scop_p): Likewise.
23473 (find_params_in_bb): Likewise.
23474 (gather_bbs::before_dom_children): Likewise.
23475 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
23476 (add_loop_constraints): Likewise.
23477
23478 2019-02-06 Jakub Jelinek <jakub@redhat.com>
23479
23480 PR middle-end/89210
23481 * fold-const-call.c (fold_const_vec_convert): Pass true as last
23482 operand to new_unary_operation only if both element types are integral
23483 and it isn't a widening conversion. Return NULL_TREE if
23484 new_unary_operation failed.
23485
23486 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
23487
23488 PR target/88856
23489 * config/s390/s390.md: Remove load and test FP splitter.
23490
23491 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23492
23493 PR target/89112
23494 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
23495 expand_compare_loop, expand_block_compare_gpr,
23496 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
23497 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
23498 #include "profile-count.h" and "predict.h" for types and functions
23499 needed to work with REG_BR_PROB notes.
23500
23501 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23502
23503 PR target/89112
23504 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
23505 for the long branch case.
23506
23507 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23508
23509 PR target/89188
23510 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
23511 can throw, non-call exceptions are enabled and we can't delete
23512 dead exceptions or alter cfg. Set must_clean if
23513 delete_insn_and_edges returns true, don't set it blindly for calls.
23514 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
23515
23516 PR rtl-optimization/89195
23517 * combine.c (make_extraction): For MEMs, don't extract bytes outside
23518 of the original MEM.
23519
23520 2019-02-05 Martin Liska <mliska@suse.cz>
23521
23522 PR gcov-profile/89000
23523 * gcov.c (function_summary): Remove argument.
23524 (file_summary): New function.
23525 (print_usage): Replace tabs with spaces.
23526 (generate_results): Use new function file_summary.
23527
23528 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23529
23530 PR target/89186
23531 * optabs.c (prepare_cmp_insn): Pass x and y to
23532 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
23533
23534 2019-02-05 Richard Biener <rguenther@suse.de>
23535
23536 PR middle-end/89150
23537 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
23538 (struct bitmap_element): Drop chain_prev so we properly recurse on
23539 the prev member, supporting tree views.
23540 (struct bitmap_head): GTY skip the obstack member.
23541
23542 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
23543
23544 PR c/88698
23545 * doc/extend.texi (Vector Extensions): Add an example of using vector
23546 types together with x86 intrinsics.
23547
23548 2019-02-04 Alan Modra <amodra@gmail.com>
23549
23550 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
23551 str[] size to 160, and comment.
23552
23553 2019-02-04 Alan Modra <amodra@gmail.com>
23554
23555 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
23556 (rs6000_pltseq_template): Guard output of TLS markers with
23557 TARGET_TLS_MARKERS.
23558 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
23559 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
23560 to use inline PLT sequences.
23561 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23562 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23563 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
23564
23565 2019-02-04 Martin Liska <mliska@suse.cz>
23566
23567 PR ipa/88985
23568 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
23569 out when ipa_fn_summaries does not contain entry for callee.
23570
23571 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
23572
23573 * config/sparc/sparc.h: Remove superfluous blank lines.
23574 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
23575 (got_register_rtx): ...this.
23576 (sparc_got): Adjust to above renaming.
23577 (sparc_tls_got): Likewise.
23578 (sparc_delegitimize_address): Likewise.
23579 (sparc_output_mi_thunk): Likewise.
23580 (sparc_init_pic_reg): Likewise.
23581 (save_local_or_in_reg_p): Fix test on the GOT register.
23582 (USE_HIDDEN_LINKONCE): Move around.
23583 (get_pc_thunk_name): Likewise.
23584 (gen_load_pcrel_sym): Likewise.
23585 (load_got_register): Likewise.
23586
23587 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
23588
23589 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
23590 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
23591
23592 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23593
23594 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
23595 into consideration.
23596
23597 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23598
23599 * config.gcc (with_nds32_lib, glibc):
23600 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
23601 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
23602 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
23603
23604 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
23605
23606 PR target/89071
23607 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
23608 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
23609 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
23610 (*rcpsf2_sse): Ditto.
23611 (*rsqrtsf2_sse): Ditto.
23612 (sse4_1_round<mode<2): Ditto.
23613
23614 2019-02-03 Richard Biener <rguenther@suse.de>
23615
23616 PR debug/87295
23617 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
23618 orig.
23619
23620 2019-02-02 Jakub Jelinek <jakub@redhat.com>
23621
23622 PR middle-end/87887
23623 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23624 Punt with warning on aggregate return or argument types. Ignore
23625 type/mode checking for uniform arguments.
23626
23627 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
23628
23629 * combine.c (try_combine): Do not print "Can't combine" messages unless
23630 printing failed combination attempts.
23631
23632 2019-02-01 Martin Jambor <mjambor@suse.cz>
23633
23634 PR hsa/87863
23635 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
23636 segment and global segment variables before making them static.
23637
23638 2019-02-01 Martin Jambor <mjambor@suse.cz>
23639
23640 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
23641 missed optimization dump with dump_enabled_p.
23642
23643 2019-02-01 Richard Biener <rguenther@suse.de>
23644
23645 PR middle-end/88597
23646 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
23647 the instantiate cache.
23648 (instantiate_scev_binary): Elide second operand procesing
23649 if equal to the first.
23650 * tree-chrec.c (chrec_contains_symbols): Add visited set.
23651 (chrec_contains_undetermined): Likewise.
23652 (tree_contains_chrecs): Likewise.
23653
23654 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
23655
23656 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
23657
23658 2019-02-01 Jakub Jelinek <jakub@redhat.com>
23659
23660 PR tree-optimization/89143
23661 * wide-int-range.h (wide_int_range_absu): Declare.
23662 * wide-int-range.cc (wide_int_range_absu): New function.
23663 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
23664
23665 PR tree-optimization/88107
23666 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
23667 instead of assertion that eh_region_outermost is non-NULL, if it
23668 is NULL, set *ALL to true and return NULL.
23669 (move_sese_region_to_fn): Adjust caller, if all is set, call
23670 duplicate_eh_regions with NULL region.
23671
23672 2019-02-01 Richard Biener <rguenth@suse.de>
23673
23674 PR rtl-optimization/88593
23675 * mode-switching.c (optimize_mode_switching): Free dominators before
23676 calling cleanup_cfg.
23677
23678 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
23679
23680 PR tree-optimization/88932
23681 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
23682
23683 2019-01-31 Jakub Jelinek <jakub@redhat.com>
23684
23685 PR middle-end/89137
23686 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
23687 bogus clang warning.
23688
23689 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
23690
23691 PR target/89071
23692 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
23693 alternative to avoid partial SSE register stall for TARGET_AVX.
23694 (truncdfsf2): Ditto.
23695 (sse4_1_round<mode>2): Ditto.
23696
23697 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
23698
23699 PR tree-optimization/89008
23700 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
23701 process anything of the form X * 0.
23702
23703 2019-01-31 Richard Biener <rguenther@suse.de>
23704
23705 PR tree-optimization/89135
23706 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
23707 with abnormal preds.
23708
23709 2019-01-31 Jakub Jelinek <jakub@redhat.com>
23710
23711 PR sanitizer/89124
23712 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
23713 always_inline callees into no_sanitize_address callers.
23714
23715 2019-01-31 Richard Biener <rguenther@suse.de>
23716
23717 PR rtl-optimization/89115
23718 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
23719
23720 2019-01-30 Martin Sebor <msebor@redhat.com>
23721
23722 PR other/89106
23723 * doc/extend.texi (cast to a union): Correct and expand.
23724
23725 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
23726
23727 PR rtl-optimization/87246
23728 * lra-constraints.c (simplify_operand_subreg): Reload memory
23729 in subreg if the address became invalid.
23730
23731 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
23732
23733 PR target/87064
23734 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
23735 Disable for little-endian.
23736
23737 2019-01-30 Richard Biener <rguenther@suse.de>
23738
23739 PR rtl-optimization/89115
23740 * opts.c (default_options_optimization): Reduce
23741 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
23742 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
23743 to the default.
23744
23745 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
23746
23747 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
23748 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
23749 type of vector element when vec_extract is implemented by direct
23750 move.
23751
23752 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
23753
23754 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
23755
23756 2019-01-30 Richard Biener <rguenther@suse.de>
23757
23758 PR tree-optimization/89111
23759 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
23760 canonicalization to appropriately sized access types.
23761
23762 2019-01-30 Jakub Jelinek <jakub@redhat.com>
23763
23764 PR c++/89105
23765 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
23766 for arguments to functions that are TU-local and shouldn't be
23767 referenced by assembly.
23768
23769 2019-01-30 Ulrich Drepper <drepper@redhat.com>
23770
23771 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
23772 after '='.
23773
23774 2019-01-29 Martin Sebor <msebor@redhat.com>
23775
23776 PR c/88956
23777 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
23778
23779 2019-01-29 Jakub Jelinek <jakub@redhat.com>
23780
23781 PR c++/66676
23782 PR ipa/89104
23783 * omp-simd-clone.c (simd_clone_clauses_extract)
23784 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
23785 OMP_CLAUSE_ALIGNED_ALIGNMENT.
23786
23787 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
23788
23789 * config.gcc: Force .init_array for ARC.
23790
23791 2019-01-29 Richard Biener <rguenther@suse.de>
23792
23793 PR debug/87295
23794 * dwarf2out.c (collect_skeleton_dies): New helper.
23795 (copy_decls_for_unworthy_types): Call it.
23796 (build_abbrev_table): Assert we do not try to replace
23797 DW_AT_signature refs with local refs.
23798
23799 2019-01-28 Jakub Jelinek <jakub@redhat.com>
23800
23801 PR middle-end/89002
23802 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
23803 for lastprivate/linear IV, push gimplify context around gimplify_assign
23804 and, if it needed any temporaries, pop it into a gimple bind around the
23805 sequence.
23806
23807 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
23808
23809 * common.opt (-Wattribute-alias): Remove "no-" from name.
23810 Make -Wattribute-alias command line option and
23811 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
23812
23813 2019-01-28 Jakub Jelinek <jakub@redhat.com>
23814
23815 PR target/89073
23816 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
23817 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
23818 x86 ISA options.
23819 (bmi2): Add missing @opindex.
23820 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
23821 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
23822 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
23823 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
23824 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
23825 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
23826 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
23827 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
23828 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
23829 xsavec, xsaveopt and xsaves options.
23830
23831 2019-01-28 Richard Biener <rguenther@suse.de>
23832
23833 PR debug/89076
23834 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
23835 support removal.
23836
23837 2019-01-28 Richard Biener <rguenther@suse.de>
23838
23839 PR tree-optimization/88739
23840 * tree-cfg.c (verify_types_in_gimple_reference): Verify
23841 BIT_FIELD_REFs only are applied to mode-precision operands
23842 when they are integral.
23843 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
23844 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
23845 BIT_FIELD_REFs of non-mode-precision integral operands.
23846
23847 2019-01-27 Jakub Jelinek <jakub@redhat.com>
23848
23849 PR target/87214
23850 * config/i386/sse.md
23851 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
23852 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
23853 first constants in pairs are multiples of 2. Formatting fixes.
23854 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
23855 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
23856 first constants in each quadruple are multiples of 4. Formatting fixes.
23857
23858 2019-01-26 Martin Jambor <mjambor@suse.cz>
23859
23860 PR ipa/88933
23861 * tree-inline.c: Include tree-cfgcleanup.h.
23862 (delete_unreachable_blocks_update_callgraph): Move...
23863 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
23864 ...here, make externally visible, make second argument bool, adjust
23865 all callers.
23866 * tree-cfgcleanup.c: Include cgraph.h.
23867 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
23868 Declare.
23869 * ipa-prop.c: Include tree-cfgcleanup.h.
23870 (ipcp_transform_function): Call
23871 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
23872
23873 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
23874
23875 PR rtl-optimization/88846
23876 * ira.c (process_set_for_memref_referenced_p): New.
23877 (memref_referenced_p): Add new param. Use
23878 process_set_for_memref_referenced_p. Add new switch cases.
23879 (memref_used_between_p): Pass new arg to memref_referenced_p.
23880
23881 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
23882
23883 PR target/88469
23884 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
23885 argument ABI_BREAK. Set to true if the calculated alignment has
23886 changed in gcc-9. Check bit-fields for their base type alignment.
23887 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
23888 (aarch64_function_arg_boundary): Likewise.
23889 (aarch64_gimplify_va_arg_expr): Likewise.
23890
23891 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
23892
23893 PR middle-end/89037
23894 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
23895 instead of accessing TREE_INT_CST_ELT directly.
23896
23897 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
23898
23899 * doc/sourcebuild.texi (Environment attributes): Add fenv and
23900 fenv_exceptions description.
23901
23902 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
23903
23904 PR rtl-optimization/87763
23905 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
23906 Allow SUBREG when matching CC_NZmode compare.
23907
23908 2019-01-25 Richard Biener <rguenther@suse.de>
23909
23910 PR tree-optimization/89049
23911 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
23912 Look at the pattern stmt to determine if the stmt is vectorized.
23913
23914 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
23915
23916 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
23917 (pred_mov<mode>): Handle all-register forms using both a new
23918 alternative and a split.
23919
23920 2019-01-25 Richard Biener <rguenther@suse.de>
23921
23922 PR tree-optimization/86865
23923 * graphite-scop-detection.c (scop_detection::can_represent_loop):
23924 Reject non-do-while loops.
23925
23926 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
23927
23928 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
23929 * config/rs6000/constraints.md (Q constraint): Use REG_P.
23930 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
23931 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
23932 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
23933 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
23934 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
23935 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
23936 vlogical_operand, gpc_reg_operand, int_reg_operand,
23937 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
23938 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
23939 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
23940 (save_world_operation, restore_world_operation, lmw_operation,
23941 stmw_operation): Use MEM_P and REG_P.
23942 (tie_operand): Use MEM_P.
23943 (vrsave_operation, crsave_operation): Use REG_P.
23944 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
23945 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
23946 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
23947 (call_operand): Use HARD_REGISTER_P.
23948 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
23949 Use CONST_INT_P.
23950 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
23951 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
23952 quad_aligned_load_p, replace_swapped_aligned_store,
23953 recombine_lvx_pattern, replace_swapped_aligned_load,
23954 recombine_stvx_pattern): Use MEM_P.
23955 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
23956 Use MEM_P and SYMBOL_REF_P.
23957 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
23958 (insn_is_swappable_p): Use REG_P and MEM_P.
23959 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
23960 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
23961 Use CONST_INT_P.
23962 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
23963 Use CONST_DOUBLE_P.
23964 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
23965 CONST_WIDE_INT_P.
23966 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
23967 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
23968 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
23969 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
23970 reg_or_subregno:
23971 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
23972 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
23973 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
23974 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
23975 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
23976 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
23977 rs6000_split_logical_di): Use CONST_INT_P.
23978 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
23979 REG_P and SYMBOL_REF_P.
23980 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
23981 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
23982 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
23983 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
23984 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
23985 (small_data_operand, print_operand_address): Use CONST_INT_P and
23986 SYMBOL_REF_P.
23987 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
23988 (rs6000_init_hard_regno_mode_ok, direct_move_p):
23989 Use HARD_REGISTER_NUM_P.
23990 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
23991 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
23992 SUBREG_P and SYMBOL_REF_P.
23993 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
23994 and HARD_REGISTER_NUM_P.
23995 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
23996 reg_or_subregno.
23997 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
23998 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
23999 MEM_P and REG_P.
24000 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24001 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24002 find_addr_reg): Use REG_P.
24003 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24004 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24005 (offsettable_ok_by_alignment, constant_pool_expr_p,
24006 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24007 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24008 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24009 rs6000_assemble_integer, create_TOC_reference,
24010 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24011 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24012 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24013 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24014 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24015 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24016 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24017 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24018 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24019 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24020 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24021 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24022 and cbranch<mode>4): Use CONST_INT_P.
24023 (multiple define_splits): Use REG_P and SUBREG_P.
24024 (define_expands call, call_value): Use MEM_P.
24025 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24026 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24027 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24028 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24029 and HARD_REGISTER_NUM_P.
24030 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24031
24032 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24033
24034 PR rtl-optimization/88948
24035 * rtl.h (prepare_copy_insn): New prototype.
24036 * gcse.c (prepare_copy_insn): New function, split out from
24037 process_insert_insn.
24038 (process_insert_insn): Use prepare_copy_insn.
24039 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24040 instead of gen_move_insn.
24041
24042 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24043
24044 PR debug/89006
24045 * config/i386/i386.c (ix86_pic_register_p): Return true for
24046 UNSPEC_SET_GOT too.
24047
24048 PR tree-optimization/88964
24049 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24050 punt if HONOR_SNANS (chrec).
24051
24052 PR middle-end/89015
24053 * tree-nested.c (convert_nonlocal_reference_stmt,
24054 convert_local_reference_stmt, convert_tramp_reference_stmt,
24055 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24056 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24057 or GIMPLE_OMP_TASK.
24058
24059 PR tree-optimization/89027
24060 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24061 for "omp simd array" variables.
24062
24063 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24064
24065 PR target/88469
24066 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24067 force the alignment of m_val.
24068
24069 2019-01-24 Richard Biener <rguenther@suse.de>
24070
24071 PR lto/87187
24072 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24073 When in "legacy" debug mode make sure to reset self-origins.
24074
24075 2019-01-24 Martin Liska <mliska@suse.cz>
24076
24077 PR gcov-profile/88994
24078 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24079 result will be always smaller or equal to the original.
24080 * gcov.c (mangle_name): Fix else branch where we should
24081 also copy to PTR and shift the pointer.
24082
24083 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24084
24085 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24086 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24087
24088 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24089
24090 * common/config/i386/i386-common.c
24091 (OPTION_MASK_ISA_ENQCMD_SET,
24092 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24093 (ix86_handle_option): Handle -menqcmd.
24094 * config.gcc (enqcmdintrin.h): New header file.
24095 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24096 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24097 -menqcmd.
24098 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24099 function type.
24100 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24101 __builtin_ia32_enqcmds): New builtins.
24102 * config/i386/i386-c.c (__ENQCMD__): New macro.
24103 * config/i386/i386-option.c (ix86_target_string): Add
24104 -menqcmd.
24105 (ix86_valid_target_attribute_inner_p): Likewise.
24106 * config/i386/i386-expand.c
24107 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24108 IX86_BUILTIN_ENQCMDS.
24109 * config/i386/i386.h (TARGET_ENQCMD): New.
24110 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24111 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24112 (movdir64b_<mode>): Parameterize to enable share expansion code
24113 with ENQCMD in function ix86_expand_builtin.
24114 * config/i386/i386.opt: Add -menqcmd.
24115 * config/i386/immintrin.h: Include enqcmdintrin.h.
24116 * config/i386/enqcmdintrin.h: New intrinsic file.
24117 * doc/invoke.texi: Add -menqcmd.
24118
24119 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24120 Steve Ellcey <sellcey@marvell.com>
24121
24122 PR target/85711
24123 * recog.c (address_operand): Return false on wrong mode for address.
24124 (constrain_operands): Check for mode with 'p' constraint.
24125
24126 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24127
24128 PR target/88998
24129 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24130 Disparage MMX alternative.
24131 (sse2_cvtpd2pi): Ditto.
24132 (sse2_cvttpd2pi): Ditto.
24133
24134 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24135
24136 PR driver/89014
24137 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24138 use-after-free of the result of
24139 aarch64_get_extension_string_for_isa_flags.
24140
24141 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24142
24143 PR c/44715
24144 * doc/extend.texi: Document break and continue behavior in
24145 statement expressions.
24146
24147 2019-01-23 Richard Biener <rguenther@suse.de>
24148
24149 PR tree-optimization/89008
24150 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24151 not leave another stray operand.
24152
24153 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24154
24155 * BASE-VER: Bump to 9.0.1.
24156
24157 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24158
24159 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24160 thunk that returns by reference, use the type of the return object
24161 of the thunk instead of that of the alias to build the dereference.
24162
24163 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24164
24165 * config/arc/atomic.md: Add operand to DMB instruction.
24166
24167 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24168
24169 PR tree-optimization/88964
24170 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24171 build_zero_cst instead of build_int_cst. Return false for loop
24172 invariants which honor signed zeros.
24173
24174 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24175
24176 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24177
24178 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24179
24180 PR target/88965
24181 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24182 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24183 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24184
24185 PR middle-end/88968
24186 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24187 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24188
24189 PR target/87064
24190 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24191 Disable for little endian.
24192
24193 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24194
24195 PR target/88469
24196 * config/arm/arm.c (arm_needs_double_word_align): Check
24197 DECL_BIT_FIELD_TYPE.
24198
24199 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24200 H.J. Lu <hongjiu.lu@intel.com>
24201
24202 PR target/88909
24203 * config/i386/i386-builtin.def: Add mask2 to all builtin
24204 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24205 SPECIAL_ARGS.
24206 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24207 (BDESC_FIRST): Likewise.
24208 (define_builtin): Add an argument for mask2. Updated to handle
24209 both ix86_isa_flags and ix86_isa_flags2.
24210 (define_builtin_const): Likewise.
24211 (define_builtin_pure): Likewise.
24212 (define_builtin2): Deleted.
24213 (define_builtin_const2): Likewise.
24214 (builtin_description): Add a member, mask2.
24215 (bdesc_*): Add mask2 to builtin initializations.
24216 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24217 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24218 support.
24219 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24220
24221 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24222
24223 PR target/88954
24224 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24225 noplt attribute.
24226
24227 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24228
24229 PR target/88469
24230 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24231 alignment is dominated by a bitfield with 64-bit aligned base type.
24232 (arm_function_arg): Emit a warning if the alignment has changed since
24233 earlier GCC releases.
24234 (arm_function_arg_boundary): Likewise.
24235 (arm_setup_incoming_varargs): Likewise.
24236
24237 2019-01-22 Richard Biener <rguenther@suse.de>
24238
24239 PR tree-optimization/88862
24240 * graphite-scop-detection.c
24241 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24242
24243 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24244
24245 * doc/extend.tex (AMD GCN Function Attributes): New section.
24246 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24247 * doc/invoke.texi (AMD GCN Options): New section.
24248 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24249
24250 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24251
24252 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24253 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24254
24255 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24256
24257 PR tree-optimization/88044
24258 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24259 is false in the first iteration, but !every_iteration, return false
24260 instead of true with niter->niter zero.
24261
24262 PR rtl-optimization/88904
24263 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24264 any nonequal registers before processing BB_END (b).
24265
24266 PR target/88905
24267 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24268 GET_MODE (op0).
24269 (expand_binop_directly, expand_doubleword_clz,
24270 expand_doubleword_popcount, expand_ctz, expand_ffs,
24271 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24272
24273 PR rtl-optimization/49429
24274 PR target/49454
24275 PR rtl-optimization/86334
24276 PR target/88906
24277 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24278 addressable from here...
24279 (emit_block_op_via_libcall): ... to here.
24280
24281 2019-01-22 Richard Biener <rguenther@suse.de>
24282
24283 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24284 auto_vec for cost vector to fix memleak.
24285 (vectorize_fold_left_reduction): Properly gather SLP defs.
24286 (vectorizable_comparison): Do not swap operands to properly
24287 gather SLP defs.
24288
24289 2019-01-22 Alan Modra <amodra@gmail.com>
24290
24291 PR target/88614
24292 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24293 stays a reg. Allow a const_int.
24294 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24295 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24296 (IS_NOMARK_TLSGETADDR): Define.
24297 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24298 (rs6000_output_tlsargs): New function.
24299 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24300 __tls_get_addr call takes an arg.
24301 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24302 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24303 delete split..
24304 (call_value_nonlocal_sysv): ..or here, delete split.
24305 (tls_gdld_nomark): Delete.
24306 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24307 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24308 (call_value_nonlocal_sysv): Likewise.
24309 (call_value_nonlocal_sysv_secure): Likewise.
24310 (call_value_nonlocal_aix): Likewise.
24311 (call_value_indirect_aix): Likewise.
24312 (call_value_indirect_elfv2): Likewise.
24313 (call_value_local32, call_value_local64): Disable for no-mark tls.
24314 (call_value_local_aix): Likewise.
24315
24316 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24317
24318 PR target/88938
24319 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24320 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24321
24322 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24323
24324 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24325 string contents as hash_map keys.
24326
24327 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24328
24329 PR c/88928
24330 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24331 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24332 instead of TYPE_ALIGN.
24333 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24334 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24335 pointer from TYPE_STUB_DECL.
24336
24337 2019-01-21 Richard Biener <rguenther@suse.de>
24338
24339 PR tree-optimization/88934
24340 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24341 at the possibly non-constant operand.
24342 (vect_get_constant_vectors): Adjust.
24343
24344 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24345
24346 PR target/71659
24347 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24348 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24349 instead of _X86INTRIN_H_INCLUDED.
24350 * onfig/i386/clwbintrin.h: Likewise.
24351 * config/i386/pkuintrin.h: Likewise.
24352 * config/i386/prfchwintrin.h: Likewise.
24353 * config/i386/rdseedintrin.h: Likewise.
24354 * config/i386/wbnoinvdintrin.h: Likewise.
24355 * config/i386/xsavecintrin.h: Likewise.
24356 * config/i386/xsavesintrin.h: Likewise.
24357 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24358 * config/i386/xsaveintrin.h: Likewise.
24359 * config/i386/xsaveoptintrin.h: Likewise.
24360 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24361 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24362 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24363 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24364 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24365 * config/i386/immintrin.h: Here.
24366
24367 2019-01-20 Martin Jambor <mjambor@suse.cz>
24368
24369 PR ipa/87615
24370 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24371 with aa_walk_budget.
24372 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24373 aa_walk_budget_p parameter.
24374 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24375 walk. Updated all callers.
24376 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24377 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24378 unmodified_parm.
24379 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24380 parameter info. Extract info from fbi. Pass fbi to recursive calls
24381 and to unmodified_parm.
24382 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24383 info, updated call to will_be_nonconstant_expr_predicate.
24384 (param_change_prob): New parameter fbi, limit AA walking.
24385 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24386 calls to various above functions.
24387 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24388 parameter. Use it to limit AA walking.
24389 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24390 fbi, limit AA walk.
24391 (detect_type_change): New parameter fbi, pass it on to
24392 detect_type_change_from_memory_writes.
24393 (detect_type_change_ssa): Likewise.
24394 (aa_overwalked): Removed.
24395 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24396 accordingly, adjust to the neew AA limiting scheme.
24397 (parm_ref_data_preserved_p): Likewise.
24398 (ipa_compute_jump_functions_for_edge): Adjust call to
24399 get_dynamic_type.
24400 (ipa_analyze_call_uses): Likewise.
24401 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24402 (ipa_analyze_node): Initialize aa_walk_budget.
24403 (ipcp_transform_function): Likewise.
24404 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24405 to get_dynamic_type.
24406
24407 2019-01-19 Jakub Jelinek <jakub@redhat.com>
24408
24409 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24410 outside of #if CHECKING_P code.
24411
24412 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
24413
24414 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24415 New function, split out from...
24416 (loop_versioning::analyze_stride): ...here.
24417 (loop_versioning::find_per_loop_multiplication): Use gassign.
24418 (loop_versioning::analyze_term_using_scevs): Return a success code.
24419 (loop_versioning::analyze_arbitrary_term): New function.
24420 (loop_versioning::analyze_address_fragment): Use
24421 analyze_arbitrary_term if all else fails.
24422
24423 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
24424
24425 PR target/88892
24426 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
24427 operands.
24428
24429 2019-01-18 Richard Biener <rguenther@suse.de>
24430
24431 PR tree-optimization/88903
24432 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
24433 scalar stmts a SLP shift amount is composed of when detecting
24434 shifts by scalars.
24435
24436 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
24437
24438 PR target/88799
24439 * config/arm/arm-cpus.in (mp): New feature.
24440 (sec): New feature.
24441 (fgroup ARMv7ve): Add mp and sec features.
24442 (arch armv7-a): Add options to allow mp and sec extensions.
24443 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
24444 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
24445 extenstions to the base architecture.
24446 (cpu cortex-a8): Add sec extension to the base architecture.
24447 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
24448 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
24449 variants down to the base v7-a varaint.
24450 * config/arm/t-multilib (v7_a_arch_variants): New variable.
24451 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
24452 of permitted extensions for -march=armv7-a and for
24453 -mcpu=generic-armv7-a.
24454
24455 2019-01-18 Martin Liska <mliska@suse.cz>
24456
24457 * params.def: Fix comment.
24458 * tree-profile.c (gimple_init_gcov_profiler): Bump function
24459 name.
24460 (gimple_gen_ic_func_profiler): Likewise.
24461
24462 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24463
24464 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
24465 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
24466 and put in error checks for stack protector guard options.
24467 (aarch64_stack_protect_guard): New.
24468 (TARGET_STACK_PROTECT_GUARD): Define.
24469 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
24470 (reg_stack_protect_address<mode>): New.
24471 (stack_protect_set): Adjust for SSP_GLOBAL.
24472 (stack_protect_test): Likewise.
24473 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
24474 (-mstack-protector-guard): Likewise.
24475 (-mstack-protector-guard-offset): Likewise.
24476
24477 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24478
24479 PR tree-optimization/86214
24480 * tree-inline.h (struct copy_body_data): Add
24481 add_clobbers_to_eh_landing_pads member.
24482 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
24483 (copy_edges_for_bb): Call it if EH edge destination is <
24484 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
24485 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
24486 if flag_stack_reuse != SR_NONE and clear it afterwards.
24487
24488 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
24489
24490 PR target/85596
24491 * doc/install.texi (with-multilib-list): Document for aarch64.
24492
24493 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24494
24495 PR target/88734
24496 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
24497 (("..."))) with ("...").
24498
24499 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
24500
24501 * doc/extend.texi (Built-in Functions for Memory Model Aware
24502 Atomic Operations): Document atomic fetch and nand.
24503
24504 2019-01-18 Martin Liska <mliska@suse.cz>
24505 Richard Biener <rguenther@suse.de>
24506
24507 PR middle-end/88587
24508 * cgraph.h (create_version_clone_with_body): Add new argument
24509 with attributes.
24510 * cgraphclones.c (cgraph_node::create_version_clone): Add
24511 DECL_ATTRIBUTES to a newly created decl. And call
24512 valid_attribute_p so that proper cl_target_optimization_node
24513 is set for the newly created declaration.
24514 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
24515 for declaration.
24516 (expand_target_clones): Do not call valid_attribute_p, it must
24517 be already done.
24518 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
24519 vector types.
24520
24521 2019-01-17 Jakub Jelinek <jakub@redhat.com>
24522
24523 PR target/88734
24524 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
24525 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
24526 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
24527
24528 2019-01-17 Martin Sebor <msebor@redhat.com>
24529
24530 PR middle-end/88273
24531 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
24532 Handle anti-ranges the same as no range at all.
24533
24534 2018-01-17 Steve Ellcey <sellcey@cavium.com>
24535
24536 * config/aarch64/aarch64.c (cgraph.h): New include.
24537 (intl.h): New include.
24538 (supported_simd_type): New function.
24539 (currently_supported_simd_type): Ditto.
24540 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
24541 (aarch64_simd_clone_adjust): Ditto.
24542 (aarch64_simd_clone_usable): Ditto.
24543 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
24544 (TARGET_SIMD_CLONE_ADJUST): Ditto.
24545 (TARGET_SIMD_CLONE_USABLE): Ditto.
24546 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
24547 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
24548 call.
24549
24550 2019-01-17 Martin Sebor <msebor@redhat.com>
24551
24552 PR tree-optimization/88800
24553 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
24554 NO_WARNING bit here. Avoid folding out-of-bounds calls.
24555 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
24556 redundant argument. Add new argument and issue diagnostics under
24557 its control. Detect out-of-bounds access even with warnings
24558 disabled.
24559 (check_bounds_or_overlap): Change return type. Add argument.
24560 (wrestrict_dom_walker::check_call): Adjust.
24561 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
24562 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
24563 check_bounds_or_overlap's return value.
24564 (handle_builtin_stxncpy): Same.
24565 (handle_builtin_strcat): Same.
24566
24567 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24568 Kwok Cheung Yeung <kcy@codesourcery.com>
24569 Julian Brown <julian@codesourcery.com>
24570 Tom de Vries <tom@codesourcery.com>
24571
24572 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
24573
24574 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24575
24576 * doc/sourcebuild.texi: Document dg-require-effective-target
24577 llvm_binutils and offload_gcn.
24578
24579 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24580 Kwok Cheung Yeung <kcy@codesourcery.com>
24581 Julian Brown <julian@codesourcery.com>
24582 Tom de Vries <tom@codesourcery.com>
24583
24584 * doc/sourcebuild.texi: Document dg-required-effective-target
24585 exceptions.
24586
24587 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24588 Kwok Cheung Yeung <kcy@codesourcery.com>
24589 Julian Brown <julian@codesourcery.com>
24590 Tom de Vries <tom@codesourcery.com>
24591 Jan Hubicka <hubicka@ucw.cz>
24592 Martin Jambor <mjambor@suse.cz>
24593
24594 * config.gcc: Add amdgcn*-*-amdhsa configuration.
24595 * configure.ac: Check for dlopen.
24596 * configure: Regenerate.
24597
24598 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24599 Kwok Cheung Yeung <kcy@codesourcery.com>
24600 Julian Brown <julian@codesourcery.com>
24601 Tom de Vries <tom@codesourcery.com>
24602 Jan Hubicka <hubicka@ucw.cz>
24603 Martin Jambor <mjambor@suse.cz>
24604
24605 * common/config/gcn/gcn-common.c: New file.
24606 * config/gcn/driver-gcn.c: New file.
24607 * config/gcn/gcn-builtins.def: New file.
24608 * config/gcn/gcn-hsa.h: New file.
24609 * config/gcn/gcn-modes.def: New file.
24610 * config/gcn/gcn-opts.h: New file.
24611 * config/gcn/gcn-passes.def: New file.
24612 * config/gcn/gcn-protos.h: New file.
24613 * config/gcn/gcn-run.c: New file.
24614 * config/gcn/gcn-tree.c: New file.
24615 * config/gcn/gcn.c: New file.
24616 * config/gcn/gcn.h: New file.
24617 * config/gcn/gcn.opt: New file.
24618 * config/gcn/t-gcn-hsa: New file.
24619
24620 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24621 Kwok Cheung Yeung <kcy@codesourcery.com>
24622 Julian Brown <julian@codesourcery.com>
24623 Tom de Vries <tom@codesourcery.com>
24624 Jan Hubicka <hubicka@ucw.cz>
24625 Martin Jambor <mjambor@suse.cz>
24626
24627 * config/gcn/constraints.md: New file.
24628 * config/gcn/gcn-valu.md: New file.
24629 * config/gcn/gcn.md: New file.
24630 * config/gcn/predicates.md: New file.
24631
24632 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
24633
24634 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
24635 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
24636 (stmt_uses_0_or_null_in_undefined_way): Likewise.
24637 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
24638
24639 2019-01-17 Tamar Christina <tamar.christina@arm.com>
24640
24641 PR target/88851
24642 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
24643 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
24644 it and document registers.
24645
24646 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24647
24648 * config/aarch64/aarch64.c (ares_tunings): Define.
24649 * config/aarch64/aarch64-cores.def (ares): Use the above.
24650
24651 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24652
24653 PR target/88794
24654 Revert:
24655 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
24656
24657 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
24658 (_mm512_fixupimm_round_pd): Update parameters and builtin.
24659 (_mm512_maskz_fixupimm_round_pd): Ditto.
24660 (_mm512_fixupimm_round_ps): Ditto.
24661 (_mm512_maskz_fixupimm_round_ps): Ditto.
24662 (_mm_fixupimm_round_sd): Ditto.
24663 (_mm_maskz_fixupimm_round_sd): Ditto.
24664 (_mm_fixupimm_round_ss): Ditto.
24665 (_mm_maskz_fixupimm_round_ss): Ditto.
24666 (_mm512_fixupimm_pd): Ditto.
24667 (_mm512_maskz_fixupimm_pd): Ditto.
24668 (_mm512_fixupimm_ps): Ditto.
24669 (_mm512_maskz_fixupimm_ps): Ditto.
24670 (_mm_fixupimm_sd): Ditto.
24671 (_mm_maskz_fixupimm_sd): Ditto.
24672 (_mm_fixupimm_ss): Ditto.
24673 (_mm_maskz_fixupimm_ss): Ditto.
24674 (_mm512_mask_fixupimm_round_pd): Update builtin.
24675 (_mm512_mask_fixupimm_round_ps): Ditto.
24676 (_mm_mask_fixupimm_round_sd): Ditto.
24677 (_mm_mask_fixupimm_round_ss): Ditto.
24678 (_mm512_mask_fixupimm_pd): Ditto.
24679 (_mm512_mask_fixupimm_ps): Ditto.
24680 (_mm_mask_fixupimm_sd): Ditto.
24681 (_mm_mask_fixupimm_ss): Ditto.
24682 * config/i386/avx512vlintrin.h:
24683 (_mm256_fixupimm_pd): Update parameters and builtin.
24684 (_mm256_maskz_fixupimm_pd): Ditto.
24685 (_mm256_fixupimm_ps): Ditto.
24686 (_mm256_maskz_fixupimm_ps): Ditto.
24687 (_mm_fixupimm_pd): Ditto.
24688 (_mm_maskz_fixupimm_pd): Ditto.
24689 (_mm_fixupimm_ps): Ditto.
24690 (_mm_maskz_fixupimm_ps): Ditto.
24691 (_mm256_mask_fixupimm_pd): Update builtin.
24692 (_mm256_mask_fixupimm_ps): Ditto.
24693 (_mm_mask_fixupimm_pd): Ditto.
24694 (_mm_mask_fixupimm_ps): Ditto.
24695 * config/i386/i386-builtin-types.def: Add new types and remove
24696 useless ones.
24697 * config/i386/i386-builtin.def: Update builtin definitions.
24698 * config/i386/i386.c: Handle new builtin types and remove useless ones.
24699 * config/i386/sse.md: Update VFIXUPIMM* patterns.
24700 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24701 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24702 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
24703 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24704 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24705 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
24706 * config/i386/subst.md:
24707 (round_saeonly_sd_mask_operand4): Add new subst_attr.
24708 (round_saeonly_sd_mask_op4): Ditto.
24709 (round_saeonly_expand_operand5): Ditto.
24710 (round_saeonly_expand): Update.
24711
24712 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24713
24714 PR target/88794
24715 Revert:
24716 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
24717
24718 * config/i386/sse.md: Combine VFIXUPIMM* patterns
24719 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24720 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24721 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
24722 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24723 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24724 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
24725
24726 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24727
24728 PR target/88794
24729 Revert:
24730 2018-12-15 Jakub Jelinek <jakub@redhat.com>
24731
24732 PR target/88489
24733 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
24734 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
24735 instead of UNSPEC_FIXUPIMM.
24736
24737 2019-01-17 Richard Biener <rguenther@suse.de>
24738
24739 PR lto/86736
24740 * dwarf2out.c (want_pubnames): Never generate pubnames sections
24741 and friends for the LTO part of debug info.
24742
24743 2019-01-17 Jakub Jelinek <jakub@redhat.com>
24744
24745 PR tree-optimization/86214
24746 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
24747 if x == y.
24748
24749 PR rtl-optimization/88870
24750 * dce.c (deletable_insn_p): Never delete const/pure calls that can
24751 throw if we can't alter the cfg or delete dead exceptions.
24752 (mark_insn): Don't call find_call_stack_args for such calls.
24753
24754 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
24755
24756 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
24757 prototypes for vec_st.
24758 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
24759 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
24760 mainly on signed/unsigned long long and double.
24761
24762 2019-01-16 David Malcolm <dmalcolm@redhat.com>
24763
24764 PR target/88861
24765 * combine.c (delete_noop_moves): Convert to "bool" return,
24766 returning true if any edges are eliminated.
24767 (combine_instructions): Also return true if delete_noop_moves
24768 returns true.
24769
24770 2019-01-16 Tamar Christina <tamar.christina@arm.com>
24771
24772 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
24773 correct max nunits for endian swap.
24774 (aarch64_expand_fcmla_builtin): Correct subreg code.
24775 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
24776 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
24777 lane endianness.
24778
24779 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
24780
24781 * config/alpha/alpha.c (alpha_gimplify_va_arg):
24782 Handle split indirect COMPLEX_TYPE arguments.
24783
24784 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
24785
24786 PR target/86891
24787 * config/aarch64/aarch64-modes.def: Add comment about how the carry
24788 bit is set by add and compare.
24789 (CC_ADC): New CC_MODE.
24790 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
24791 to cache the code and mode of X. Adjust the shape of a CC_Cmode
24792 comparison. Add detection for CC_ADCmode.
24793 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
24794 CC_ADCmode.
24795 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
24796 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
24797 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
24798 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
24799 to eliminate the need for zero-extending the operands.
24800 (add<mode>3_compareC_imm): Delete. Merge into ...
24801 (add<mode>3_compareC): ... this. Restructure the comparison to
24802 eliminate the need for zero-extending the operands.
24803 (add<mode>3_carryin): Use LTU for the overflow detection.
24804 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
24805 Reexpress comparison for overflow.
24806 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
24807 (add<mode>3_carryinC): Likewise.
24808 (add<mode>3_carryinV): Use LTU for carry between partials.
24809 * config/aarch64/predicates.md (aarch64_carry_operation): Update
24810 handling of CC_Cmode and add CC_ADCmode.
24811 (aarch64_borrow_operation): Likewise.
24812
24813 2019-01-16 Tamar Christina <tamar.christina@arm.com>
24814
24815 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
24816 Remove patternmode.
24817 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
24818 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
24819 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
24820 Remove endianness conversion.
24821
24822 2019-01-16 Martin Liska <mliska@suse.cz>
24823
24824 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
24825 for GCC driver.
24826 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
24827 a new argument.
24828 * gcc.c (add_sysrooted_hdrs_prefix): New function.
24829 (path_prefix_reset): Move up in the source file.
24830 (find_fortran_preinclude_file): Make complex search for the
24831 fortran header files.
24832
24833 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
24834
24835 * godump.c (go_output_typedef): When outputting a typedef, refer
24836 to the underlying type by its name and not its structure.
24837
24838 2019-01-15 David Malcolm <dmalcolm@redhat.com>
24839
24840 PR c++/88795
24841 * tree.c (build_function_type): Assert that arg_types is not
24842 error_mark_node.
24843
24844 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
24845
24846 PR inline-asm/52813
24847 * doc/extend.texi: Document that listing the stack pointer in the
24848 clobber list of an asm is a deprecated feature.
24849 * common.opt (Wdeprecated): Moved from c-family/c.opt.
24850 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
24851 warning instead of an error for clobbers of the stack pointer.
24852 Add a note explaining why.
24853
24854 2019-01-15 Richard Biener <rguenther@suse.de>
24855
24856 PR debug/88046
24857 * dwarf2out.c (gen_member_die): Do not generate inheritance
24858 DIEs late.
24859
24860 2019-01-15 Richard Biener <rguenther@suse.de>
24861
24862 PR tree-optimization/88855
24863 * tree-if-conv.c (combine_blocks): Collect
24864 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
24865
24866 2019-01-15 Tom de Vries <tdevries@suse.de>
24867
24868 PR target/80547
24869 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
24870 lhs == NULL_TREE for gang-level reduction.
24871
24872 2019-01-15 Richard Biener <rguenther@suse.de>
24873 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24874
24875 PR ipa/88788
24876 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
24877 return true if SSA_NAME is already marked in visited bitmap.
24878 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
24879
24880 2019-01-15 Jakub Jelinek <jakub@redhat.com>
24881
24882 PR tree-optimization/88775
24883 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
24884 equal == 0 equality pointer comparisons some more if compared in
24885 integral types and either one points to an automatic var and the
24886 other to a global, or we can prove at least one points to the middle
24887 or both point to start or both point to end.
24888
24889 2019-01-14 Andi Kleen <ak@linux.intel.com>
24890
24891 * Makefile.in: Lower autofdo sampling rate by 10x.
24892 * Makefile.tpl: Dito.
24893
24894 2019-01-14 Tom Honermann <tom@honermann.net>
24895
24896 * defaults.h: Define CHAR8_TYPE.
24897
24898 2019-01-14 Martin Sebor <msebor@redhat.com>
24899
24900 PR target/88638
24901 * doc/extend.texi (Darwin Format Checks): Clarify.
24902
24903 2019-01-14 Richard Biener <rguenther@suse.de>
24904
24905 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
24906 whether we are in (simplify ...) or (match ...) context.
24907
24908 2019-01-14 Jakub Jelinek <jakub@redhat.com>
24909
24910 PR rtl-optimization/88796
24911 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
24912 * cfgexpand.c (stack_protect_prologue): Initialize
24913 crtl->stack_protect_guard_decl.
24914 * function.c (stack_protect_epilogue): Use it instead of calling
24915 targetm.stack_protect_guard again.
24916 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
24917 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
24918 crtl->stack_protect_guard_decl.
24919 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
24920 on the returned MEM_EXPR.
24921
24922 2019-01-12 Tom de Vries <tdevries@suse.de>
24923
24924 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
24925 vector length using -fopenacc-dim.
24926
24927 2019-01-12 Tom de Vries <tdevries@suse.de>
24928
24929 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
24930 lengths into account.
24931
24932 2019-01-12 Svante Signell <svante.signell@gmail.com>
24933
24934 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
24935 (TARGET_CAN_SPLIT_STACK): Define.
24936 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
24937
24938 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24939
24940 * params.def (inline-unit-growth): Set to 40.
24941
24942 2019-01-12 Jakub Jelinek <jakub@redhat.com>
24943
24944 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
24945
24946 2019-01-12 Tom de Vries <tdevries@suse.de>
24947
24948 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
24949 region calling vector-partitionable routine, set default_vector_length
24950 to WARP_SIZE.
24951
24952 2019-01-12 Tom de Vries <tdevries@suse.de>
24953
24954 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
24955 variable default_vector_length.
24956
24957 2019-01-12 Tom de Vries <tdevries@suse.de>
24958
24959 PR middle-end/88703
24960 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
24961 from oacc_default_dims, as oacc_validate_dims would do it, and apply
24962 dimensions limits.
24963
24964 2019-01-12 Tom de Vries <tdevries@suse.de>
24965
24966 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
24967 (nvptx_goacc_validate_dims): Add used parameter.
24968 * doc/tm.texi: Regenerate.
24969 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
24970 argument to call to targetm.goacc.validate_dims.
24971 (default_goacc_validate_dims): Add used
24972 parameter.
24973 * target.def (validate_dims): Add used parameter in DEFHOOK.
24974 * targhooks.h (default_goacc_validate_dims): Add used parameter.
24975
24976 2019-01-11 Jakub Jelinek <jakub@redhat.com>
24977
24978 PR middle-end/85956
24979 PR lto/88733
24980 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
24981 field.
24982 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
24983 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
24984 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
24985 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
24986
24987 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
24988
24989 PR rtl-optimization/87305
24990 * lra-assigns.c
24991 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
24992 for little endian pseudos used as paradoxical subreg.
24993
24994 2019-01-11 Jakub Jelinek <jakub@redhat.com>
24995
24996 PR tree-optimization/88693
24997 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
24998 for STRING_CSTs that don't contain any NUL characters in the first
24999 TREE_STRING_LENGTH bytes.
25000
25001 2019-01-11 Alan Modra <amodra@gmail.com>
25002
25003 PR 88777
25004 PR 88614
25005 * genattrtab.c (min_fn): Don't translate values.
25006 (min_attr_value): Return INT_MAX when the value can't be calculated.
25007 Return minimum among any values that can be calculated.
25008 (max_attr_value): Adjust.
25009
25010 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25011
25012 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25013
25014 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25015
25016 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25017 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25018 (aarch64_return_call_with_max_clobbers): New function.
25019 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25020 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25021 argument.
25022 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25023 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25024 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25025 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25026 * cselib.c (cselib_process_insn): Add argument to
25027 targetm.hard_regno_call_part_clobbered call.
25028 * ira-conflicts.c (ira_build_conflicts): Ditto.
25029 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25030 * lra-constraints.c (inherit_reload_reg): Ditto.
25031 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25032 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25033 argument. Call targetm.return_call_with_max_clobbers.
25034 Add argument to targetm.hard_regno_call_part_clobbered call.
25035 (calls_have_same_clobbers_p): New function.
25036 (process_bb_lives): Add call_insn and last_call_insn variables.
25037 Pass call_insn to check_pseudos_live_through_calls.
25038 Modify if stmt to check targetm.return_call_with_max_clobbers.
25039 Update setting of flush variable.
25040 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25041 to false.
25042 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25043 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25044 targetm.hard_regno_call_part_clobbered call.
25045 * reginfo.c (choose_hard_reg_mode): Ditto.
25046 * regrename.c (check_new_reg_p): Ditto.
25047 * reload.c (find_equiv_reg): Ditto.
25048 * reload1.c (emit_reload_insns): Ditto.
25049 * sched-deps.c (deps_analyze_insn): Ditto.
25050 * sel-sched.c (init_regs_for_mode): Ditto.
25051 (mark_unavailable_hard_regs): Ditto.
25052 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25053 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25054 (return_call_with_max_clobbers): New target function.
25055 * doc/tm.texi: Regenerate.
25056 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25057 * hooks.c (hook_bool_uint_mode_false): Change to
25058 hook_bool_insn_uint_mode_false.
25059 * hooks.h (hook_bool_uint_mode_false): Ditto.
25060
25061 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25062
25063 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25064 (aarch64_remove_extra_call_preserved_regs): New function.
25065 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25066 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25067 * doc/tm.texi: Regenerate.
25068 * final.c (get_call_reg_set_usage): Call new hook.
25069 * target.def (remove_extra_call_preserved_regs): New hook.
25070 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25071 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25072
25073 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25074
25075 PR bootstrap/88714
25076 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25077 inside of pass_combine_1 dump rather than pass_profile_1.
25078
25079 2019-01-11 Tom de Vries <tdevries@suse.de>
25080
25081 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25082 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25083 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25084 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25085 num_workers 16.
25086
25087 2019-01-11 Tom de Vries <tdevries@suse.de>
25088
25089 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25090
25091 2019-01-11 Jan Beulich <jbeulich@suse.com>
25092
25093 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25094 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25095 sse2_cvtsi2sd): Add {l}.
25096 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25097 syntax.
25098
25099 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25100
25101 PR target/88785
25102 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25103 define_expand.
25104 (*float<floatunssuffix>v2div2sf2): New define_insn.
25105 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25106 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25107 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25108 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25109 match_operands with "const0_operand" "C".
25110
25111 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25112
25113 * config/aarch64/aarch64-builtins.c
25114 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25115 (aarch64_init_simd_builtins): ...Here
25116
25117 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25118
25119 PR rtl-optimization/87305
25120 * lra-assigns.c
25121 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25122 allocation for big endian pseudos used as paradoxical subregs and
25123 spill them if it is wrong.
25124 * lra-constraints.c (lra_constraints): Add a comment.
25125
25126 2019-01-10 Richard Biener <rguenther@suse.de>
25127
25128 PR tree-optimization/88792
25129 * tree-ssa-pre.c (get_representative_for): Do not return a
25130 value-number here.
25131
25132 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25133
25134 PR middle-end/84877
25135 PR bootstrap/88450
25136 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25137 (assign_parm_setup_block): Do the argument slot realignment here
25138 instead.
25139
25140 2019-01-10 Stefan Agner <stefan@agner.ch>
25141
25142 PR target/88648
25143 * config/arm/arm.c (arm_option_override_internal): Force
25144 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25145
25146 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25147
25148 PR c/88568
25149 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25150 DECL_EXTERNAL.
25151
25152 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25153
25154 * config/arm/arm-builtins.c
25155 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25156 (MAC_LANE_PAIR_QUALIFIERS): New.
25157 (arm_expand_builtin_args): Use it.
25158 (arm_expand_builtin_1): Likewise.
25159 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25160 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25161 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25162 * config/arm/arm_neon.h:
25163 (vcadd_rot90_f16): New.
25164 (vcaddq_rot90_f16): New.
25165 (vcadd_rot270_f16): New.
25166 (vcaddq_rot270_f16): New.
25167 (vcmla_f16): New.
25168 (vcmlaq_f16): New.
25169 (vcmla_lane_f16): New.
25170 (vcmla_laneq_f16): New.
25171 (vcmlaq_lane_f16): New.
25172 (vcmlaq_laneq_f16): New.
25173 (vcmla_rot90_f16): New.
25174 (vcmlaq_rot90_f16): New.
25175 (vcmla_rot90_lane_f16): New.
25176 (vcmla_rot90_laneq_f16): New.
25177 (vcmlaq_rot90_lane_f16): New.
25178 (vcmlaq_rot90_laneq_f16): New.
25179 (vcmla_rot180_f16): New.
25180 (vcmlaq_rot180_f16): New.
25181 (vcmla_rot180_lane_f16): New.
25182 (vcmla_rot180_laneq_f16): New.
25183 (vcmlaq_rot180_lane_f16): New.
25184 (vcmlaq_rot180_laneq_f16): New.
25185 (vcmla_rot270_f16): New.
25186 (vcmlaq_rot270_f16): New.
25187 (vcmla_rot270_lane_f16): New.
25188 (vcmla_rot270_laneq_f16): New.
25189 (vcmlaq_rot270_lane_f16): New.
25190 (vcmlaq_rot270_laneq_f16): New.
25191 (vcadd_rot90_f32): New.
25192 (vcaddq_rot90_f32): New.
25193 (vcadd_rot270_f32): New.
25194 (vcaddq_rot270_f32): New.
25195 (vcmla_f32): New.
25196 (vcmlaq_f32): New.
25197 (vcmla_lane_f32): New.
25198 (vcmla_laneq_f32): New.
25199 (vcmlaq_lane_f32): New.
25200 (vcmlaq_laneq_f32): New.
25201 (vcmla_rot90_f32): New.
25202 (vcmlaq_rot90_f32): New.
25203 (vcmla_rot90_lane_f32): New.
25204 (vcmla_rot90_laneq_f32): New.
25205 (vcmlaq_rot90_lane_f32): New.
25206 (vcmlaq_rot90_laneq_f32): New.
25207 (vcmla_rot180_f32): New.
25208 (vcmlaq_rot180_f32): New.
25209 (vcmla_rot180_lane_f32): New.
25210 (vcmla_rot180_laneq_f32): New.
25211 (vcmlaq_rot180_lane_f32): New.
25212 (vcmlaq_rot180_laneq_f32): New.
25213 (vcmla_rot270_f32): New.
25214 (vcmlaq_rot270_f32): New.
25215 (vcmla_rot270_lane_f32): New.
25216 (vcmla_rot270_laneq_f32): New.
25217 (vcmlaq_rot270_lane_f32): New.
25218 (vcmlaq_rot270_laneq_f32): New.
25219 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25220 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25221 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25222 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25223 vcmlaq_lane270): New.
25224 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25225 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25226 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25227 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25228 (arm_option_reconfigure_globals): Use them.
25229 * config/arm/iterators.md (VDF, VQ_HSF): New.
25230 (VCADD, VCMLA): New.
25231 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25232 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25233 New.
25234 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25235 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25236
25237 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25238
25239 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25240 Add qualifier_lane_pair_index.
25241 (emit-rtl.h): Include.
25242 (TYPES_QUADOP_LANE_PAIR): New.
25243 (aarch64_simd_expand_args): Use it.
25244 (aarch64_simd_expand_builtin): Likewise.
25245 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25246 New.
25247 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25248 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25249 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25250 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25251 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25252 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25253 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25254 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25255 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25256 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25257 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25258 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25259 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25260 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25261 Add __ARM_FEATURE_COMPLEX.
25262 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25263 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25264 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25265 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25266 fcmlaq_lane270): New.
25267 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25268 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25269 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25270 * config/aarch64/arm_neon.h:
25271 (vcadd_rot90_f16): New.
25272 (vcaddq_rot90_f16): New.
25273 (vcadd_rot270_f16): New.
25274 (vcaddq_rot270_f16): New.
25275 (vcmla_f16): New.
25276 (vcmlaq_f16): New.
25277 (vcmla_lane_f16): New.
25278 (vcmla_laneq_f16): New.
25279 (vcmlaq_lane_f16): New.
25280 (vcmlaq_rot90_lane_f16): New.
25281 (vcmla_rot90_laneq_f16): New.
25282 (vcmla_rot90_lane_f16): New.
25283 (vcmlaq_rot90_f16): New.
25284 (vcmla_rot90_f16): New.
25285 (vcmlaq_laneq_f16): New.
25286 (vcmla_rot180_laneq_f16): New.
25287 (vcmla_rot180_lane_f16): New.
25288 (vcmlaq_rot180_f16): New.
25289 (vcmla_rot180_f16): New.
25290 (vcmlaq_rot90_laneq_f16): New.
25291 (vcmlaq_rot270_laneq_f16): New.
25292 (vcmlaq_rot270_lane_f16): New.
25293 (vcmla_rot270_laneq_f16): New.
25294 (vcmlaq_rot270_f16): New.
25295 (vcmla_rot270_f16): New.
25296 (vcmlaq_rot180_laneq_f16): New.
25297 (vcmlaq_rot180_lane_f16): New.
25298 (vcmla_rot270_lane_f16): New.
25299 (vcadd_rot90_f32): New.
25300 (vcaddq_rot90_f32): New.
25301 (vcaddq_rot90_f64): New.
25302 (vcadd_rot270_f32): New.
25303 (vcaddq_rot270_f32): New.
25304 (vcaddq_rot270_f64): New.
25305 (vcmla_f32): New.
25306 (vcmlaq_f32): New.
25307 (vcmlaq_f64): New.
25308 (vcmla_lane_f32): New.
25309 (vcmla_laneq_f32): New.
25310 (vcmlaq_lane_f32): New.
25311 (vcmlaq_laneq_f32): New.
25312 (vcmla_rot90_f32): New.
25313 (vcmlaq_rot90_f32): New.
25314 (vcmlaq_rot90_f64): New.
25315 (vcmla_rot90_lane_f32): New.
25316 (vcmla_rot90_laneq_f32): New.
25317 (vcmlaq_rot90_lane_f32): New.
25318 (vcmlaq_rot90_laneq_f32): New.
25319 (vcmla_rot180_f32): New.
25320 (vcmlaq_rot180_f32): New.
25321 (vcmlaq_rot180_f64): New.
25322 (vcmla_rot180_lane_f32): New.
25323 (vcmla_rot180_laneq_f32): New.
25324 (vcmlaq_rot180_lane_f32): New.
25325 (vcmlaq_rot180_laneq_f32): New.
25326 (vcmla_rot270_f32): New.
25327 (vcmlaq_rot270_f32): New.
25328 (vcmlaq_rot270_f64): New.
25329 (vcmla_rot270_lane_f32): New.
25330 (vcmla_rot270_laneq_f32): New.
25331 (vcmlaq_rot270_lane_f32): New.
25332 (vcmlaq_rot270_laneq_f32): New.
25333 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25334 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25335 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25336 (FCADD, FCMLA): New.
25337 (rot): New.
25338 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25339
25340 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25341
25342 PR other/16615
25343
25344 * config/pa/pa.c: Change "can not" to "cannot".
25345 * gimple-ssa-evrp-analyze.c: Likewise.
25346 * ipa-icf.c: Likewise.
25347 * ipa-polymorphic-call.c: Likewise.
25348 * ipa-pure-const.c: Likewise.
25349 * lra-constraints.c: Likewise.
25350 * lra-remat.c: Likewise.
25351 * reload1.c: Likewise.
25352 * reorg.c: Likewise.
25353 * tree-ssa-uninit.c: Likewise.
25354
25355 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25356
25357 PR other/16615
25358
25359 * Makefile.in: Mechanically replace "can not" with "cannot".
25360 * alias.c: Likewise.
25361 * builtins.c: Likewise.
25362 * calls.c: Likewise.
25363 * cgraph.c: Likewise.
25364 * cgraph.h: Likewise.
25365 * cgraphclones.c: Likewise.
25366 * cgraphunit.c: Likewise.
25367 * combine-stack-adj.c: Likewise.
25368 * combine.c: Likewise.
25369 * common/config/i386/i386-common.c: Likewise.
25370 * config/aarch64/aarch64.c: Likewise.
25371 * config/alpha/sync.md: Likewise.
25372 * config/arc/arc.c: Likewise.
25373 * config/arc/predicates.md: Likewise.
25374 * config/arm/arm-c.c: Likewise.
25375 * config/arm/arm.c: Likewise.
25376 * config/arm/arm.h: Likewise.
25377 * config/arm/arm.md: Likewise.
25378 * config/arm/cortex-r4f.md: Likewise.
25379 * config/csky/csky.c: Likewise.
25380 * config/csky/csky.h: Likewise.
25381 * config/darwin-f.c: Likewise.
25382 * config/epiphany/epiphany.md: Likewise.
25383 * config/i386/i386.c: Likewise.
25384 * config/i386/sol2.h: Likewise.
25385 * config/m68k/m68k.c: Likewise.
25386 * config/mcore/mcore.h: Likewise.
25387 * config/microblaze/microblaze.md: Likewise.
25388 * config/mips/20kc.md: Likewise.
25389 * config/mips/sb1.md: Likewise.
25390 * config/nds32/nds32.c: Likewise.
25391 * config/nds32/predicates.md: Likewise.
25392 * config/pa/pa.c: Likewise.
25393 * config/rs6000/e300c2c3.md: Likewise.
25394 * config/rs6000/rs6000.c: Likewise.
25395 * config/s390/s390.h: Likewise.
25396 * config/sh/sh.c: Likewise.
25397 * config/sh/sh.md: Likewise.
25398 * config/spu/vmx2spu.h: Likewise.
25399 * cprop.c: Likewise.
25400 * dbxout.c: Likewise.
25401 * df-scan.c: Likewise.
25402 * doc/cfg.texi: Likewise.
25403 * doc/extend.texi: Likewise.
25404 * doc/fragments.texi: Likewise.
25405 * doc/gty.texi: Likewise.
25406 * doc/invoke.texi: Likewise.
25407 * doc/lto.texi: Likewise.
25408 * doc/md.texi: Likewise.
25409 * doc/objc.texi: Likewise.
25410 * doc/rtl.texi: Likewise.
25411 * doc/tm.texi: Likewise.
25412 * dse.c: Likewise.
25413 * emit-rtl.c: Likewise.
25414 * emit-rtl.h: Likewise.
25415 * except.c: Likewise.
25416 * expmed.c: Likewise.
25417 * expr.c: Likewise.
25418 * fold-const.c: Likewise.
25419 * genautomata.c: Likewise.
25420 * gimple-fold.c: Likewise.
25421 * hard-reg-set.h: Likewise.
25422 * ifcvt.c: Likewise.
25423 * ipa-comdats.c: Likewise.
25424 * ipa-cp.c: Likewise.
25425 * ipa-devirt.c: Likewise.
25426 * ipa-fnsummary.c: Likewise.
25427 * ipa-icf.c: Likewise.
25428 * ipa-inline-transform.c: Likewise.
25429 * ipa-inline.c: Likewise.
25430 * ipa-polymorphic-call.c: Likewise.
25431 * ipa-profile.c: Likewise.
25432 * ipa-prop.c: Likewise.
25433 * ipa-pure-const.c: Likewise.
25434 * ipa-reference.c: Likewise.
25435 * ipa-split.c: Likewise.
25436 * ipa-visibility.c: Likewise.
25437 * ipa.c: Likewise.
25438 * ira-build.c: Likewise.
25439 * ira-color.c: Likewise.
25440 * ira-conflicts.c: Likewise.
25441 * ira-costs.c: Likewise.
25442 * ira-int.h: Likewise.
25443 * ira-lives.c: Likewise.
25444 * ira.c: Likewise.
25445 * ira.h: Likewise.
25446 * loop-invariant.c: Likewise.
25447 * loop-unroll.c: Likewise.
25448 * lower-subreg.c: Likewise.
25449 * lra-assigns.c: Likewise.
25450 * lra-constraints.c: Likewise.
25451 * lra-eliminations.c: Likewise.
25452 * lra-lives.c: Likewise.
25453 * lra-remat.c: Likewise.
25454 * lra-spills.c: Likewise.
25455 * lra.c: Likewise.
25456 * lto-cgraph.c: Likewise.
25457 * lto-streamer-out.c: Likewise.
25458 * postreload-gcse.c: Likewise.
25459 * predict.c: Likewise.
25460 * profile-count.h: Likewise.
25461 * profile.c: Likewise.
25462 * recog.c: Likewise.
25463 * ree.c: Likewise.
25464 * reload.c: Likewise.
25465 * reload1.c: Likewise.
25466 * reorg.c: Likewise.
25467 * resource.c: Likewise.
25468 * rtl.def: Likewise.
25469 * rtl.h: Likewise.
25470 * rtlanal.c: Likewise.
25471 * sched-deps.c: Likewise.
25472 * sched-ebb.c: Likewise.
25473 * sched-rgn.c: Likewise.
25474 * sel-sched-ir.c: Likewise.
25475 * sel-sched.c: Likewise.
25476 * shrink-wrap.c: Likewise.
25477 * simplify-rtx.c: Likewise.
25478 * symtab.c: Likewise.
25479 * target.def: Likewise.
25480 * toplev.c: Likewise.
25481 * tree-call-cdce.c: Likewise.
25482 * tree-cfg.c: Likewise.
25483 * tree-complex.c: Likewise.
25484 * tree-core.h: Likewise.
25485 * tree-eh.c: Likewise.
25486 * tree-inline.c: Likewise.
25487 * tree-loop-distribution.c: Likewise.
25488 * tree-nrv.c: Likewise.
25489 * tree-profile.c: Likewise.
25490 * tree-sra.c: Likewise.
25491 * tree-ssa-alias.c: Likewise.
25492 * tree-ssa-dce.c: Likewise.
25493 * tree-ssa-dom.c: Likewise.
25494 * tree-ssa-forwprop.c: Likewise.
25495 * tree-ssa-loop-im.c: Likewise.
25496 * tree-ssa-loop-ivcanon.c: Likewise.
25497 * tree-ssa-loop-ivopts.c: Likewise.
25498 * tree-ssa-loop-niter.c: Likewise.
25499 * tree-ssa-phionlycprop.c: Likewise.
25500 * tree-ssa-phiopt.c: Likewise.
25501 * tree-ssa-propagate.c: Likewise.
25502 * tree-ssa-threadedge.c: Likewise.
25503 * tree-ssa-threadupdate.c: Likewise.
25504 * tree-ssa-uninit.c: Likewise.
25505 * tree-ssanames.c: Likewise.
25506 * tree-streamer-out.c: Likewise.
25507 * tree.c: Likewise.
25508 * tree.h: Likewise.
25509 * vr-values.c: Likewise.
25510
25511 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
25512
25513 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
25514 (ix86_split_xorsign): Ditto.
25515 * config/i386/i386.c (ix86_expand_xorsign): New function.
25516 (ix86_split_xorsign): Ditto.
25517 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
25518 (xorsign<mode>3): New expander.
25519 (xorsign<mode>3_1): New insn_and_split pattern.
25520 * config/i386/sse.md (xorsign<mode>3): New expander.
25521
25522 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25523
25524 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
25525 (*tablejump_sp64): Likewise.
25526 (*tablejump<P:mode>): ...this.
25527 (*call_address_sp32): Merge into...
25528 (*call_address_sp64): Likewise.
25529 (*call_address<P:mode>): ...this.
25530 (*call_symbolic_sp32): Merge into...
25531 (*call_symbolic_sp64): Likewise.
25532 (*call_symbolic<P:mode>): ...this.
25533 (call_value): Remove constraint and add predicate.
25534 (*call_value_address_sp32): Merge into...
25535 (*call_value_address_sp64): Likewise.
25536 (*call_value_address<P:mode>): ...this.
25537 (*call_value_symbolic_sp32): Merge into...
25538 (*call_value_symbolic_sp64): Likewise.
25539 (*call_value_symbolic<P:mode>): ...this.
25540 (*sibcall_symbolic_sp32): Merge into...
25541 (*sibcall_symbolic_sp64): Likewise.
25542 (*sibcall_symbolic<P:mode>): ...this.
25543 (sibcall_value): Remove constraint and add predicate.
25544 (*sibcall_value_symbolic_sp32): Merge into...
25545 (*sibcall_value_symbolic_sp64): Likewise.
25546 (*sibcall_value_symbolic<P:mode>): ...this.
25547 (window_save): Minor tweak.
25548 (*branch_sp32): Merge into...
25549 (*branch_sp64): Likewise.
25550 (*branch<P:mode>): ...this.
25551
25552 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25553 James Clarke <jrtc27@jrtc27.com>
25554
25555 PR target/84010
25556 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
25557 consistently in TLS address generation and adjust code to the renaming
25558 of patterns. Mark calls to __tls_get_addr as const.
25559 * config/sparc/sparc.md (tgd_hi22): Turn into...
25560 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
25561 (tgd_lo10): Turn into...
25562 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
25563 (tgd_add32): Merge into...
25564 (tgd_add64): Likewise.
25565 (tgd_add<P:mode>): ...this and use Pmode throughout.
25566 (tldm_hi22): Turn into...
25567 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
25568 (tldm_lo10): Turn into...
25569 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
25570 (tldm_add32): Merge into...
25571 (tldm_add64): Likewise.
25572 (tldm_add<P:mode>): ...this and use Pmode throughout.
25573 (tldm_call32): Merge into...
25574 (tldm_call64): Likewise.
25575 (tldm_call<P:mode>): ...this and use Pmode throughout.
25576 (tldo_hix22): Turn into...
25577 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
25578 (tldo_lox10): Turn into...
25579 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
25580 (tldo_add32): Merge into...
25581 (tldo_add64): Likewise.
25582 (tldo_add<P:mode>): ...this and use Pmode throughout.
25583 (tie_hi22): Turn into...
25584 (tie_hi22<P:mode>): ...this and use Pmode throughout.
25585 (tie_lo10): Turn into...
25586 (tie_lo10<P:mode>): ...this and use Pmode throughout.
25587 (tie_ld64): Use DImode throughout.
25588 (tie_add32): Merge into...
25589 (tie_add64): Likewise.
25590 (tie_add<P:mode>): ...this and use Pmode throughout.
25591 (tle_hix22_sp32): Merge into...
25592 (tle_hix22_sp64): Likewise.
25593 (tle_hix22<P:mode>): ...this and use Pmode throughout.
25594 (tle_lox22_sp32): Merge into...
25595 (tle_lox22_sp64): Likewise.
25596 (tle_lox22<P:mode>): ...this and use Pmode throughout.
25597 (*tldo_ldub_sp32): Merge into...
25598 (*tldo_ldub_sp64): Likewise.
25599 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
25600 (*tldo_ldub1_sp32): Merge into...
25601 (*tldo_ldub1_sp64): Likewise.
25602 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
25603 (*tldo_ldub2_sp32): Merge into...
25604 (*tldo_ldub2_sp64): Likewise.
25605 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
25606 (*tldo_ldsb1_sp32): Merge into...
25607 (*tldo_ldsb1_sp64): Likewise.
25608 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
25609 (*tldo_ldsb2_sp32): Merge into...
25610 (*tldo_ldsb2_sp64): Likewise.
25611 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
25612 (*tldo_ldub3_sp64): Use DImode throughout.
25613 (*tldo_ldsb3_sp64): Likewise.
25614 (*tldo_lduh_sp32): Merge into...
25615 (*tldo_lduh_sp64): Likewise.
25616 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
25617 (*tldo_lduh1_sp32): Merge into...
25618 (*tldo_lduh1_sp64): Likewise.
25619 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
25620 (*tldo_ldsh1_sp32): Merge into...
25621 (*tldo_ldsh1_sp64): Likewise.
25622 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
25623 (*tldo_lduh2_sp64): Use DImode throughout.
25624 (*tldo_ldsh2_sp64): Likewise.
25625 (*tldo_lduw_sp32): Merge into...
25626 (*tldo_lduw_sp64): Likewise.
25627 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
25628 (*tldo_lduw1_sp64): Use DImode throughout.
25629 (*tldo_ldsw1_sp64): Likewise.
25630 (*tldo_ldx_sp64): Likewise.
25631 (*tldo_stb_sp32): Merge into...
25632 (*tldo_stb_sp64): Likewise.
25633 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
25634 (*tldo_sth_sp32): Merge into...
25635 (*tldo_sth_sp64): Likewise.
25636 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
25637 (*tldo_stw_sp32): Merge into...
25638 (*tldo_stw_sp64): Likewise.
25639 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
25640 (*tldo_stx_sp64): Use DImode throughout.
25641
25642 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25643
25644 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
25645 check configure option to set BTI and Return Address Signing.
25646 * configure.ac: Add --enable-standard-branch-protection and
25647 --disable-standard-branch-protection.
25648 * configure: Regenerated.
25649 * doc/install.texi: Document the same.
25650
25651 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25652 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25653
25654 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
25655 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
25656 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
25657 if bti is enabled.
25658 * config/aarch64/aarch64-bti-insert.c: New file.
25659 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
25660 pass.
25661 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
25662 new bti pass.
25663 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
25664 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
25665 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
25666 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
25667
25668 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25669
25670 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
25671 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
25672 Disable bti for -mbranch-protection=none.
25673 (aarch64_handle_standard_branch_protection): Enable bti for
25674 -mbranch-protection=standard.
25675 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
25676 -mbranch-protection.
25677 (aarch64_bti_enabled): Check if bti is enabled.
25678 * config/aarch64/aarch64.opt: Declare target variable.
25679 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
25680
25681 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25682
25683 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
25684 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
25685 (aarch64_expand_epilogue): Likewise.
25686 (aarch64_output_mi_thunk): Likewise.
25687 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
25688 TAILCALL_ADDR_REGS to x16 and x17.
25689 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
25690
25691 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25692
25693 * config/aarch64/aarch64-option-extensions.def: Define
25694 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
25695 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
25696 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
25697 (AARCH64_FL_PREDRES): New.
25698 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
25699 AARCH64_FL_PREDRES by default.
25700 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
25701
25702 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25703
25704 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
25705 ARMv8.5-A.
25706 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
25707 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
25708 * doc/invoke.texi: Document ARMv8.5-A.
25709
25710 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25711
25712 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
25713 (xorsign<mode>3): Likewise.
25714
25715 2019-01-09 Jelinek <jakub@redhat.com>
25716
25717 PR middle-end/88758
25718 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
25719 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
25720
25721 PR rtl-optimization/88331
25722 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
25723 not currently_expanding_to_rtl.
25724
25725 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25726
25727 * doc/invoke.texi (-Os): Remove trailing spaces.
25728 (-finline-functions): Remove reference to -O2.
25729
25730 2019-01-08 Jakub Jelinek <jakub@redhat.com>
25731
25732 PR rtl-optimization/79593
25733 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
25734
25735 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
25736 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
25737
25738 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
25739
25740 PR bootstrap/88721
25741 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
25742 to -1 on entry.
25743
25744 PR debug/88723
25745 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
25746 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
25747
25748 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
25749
25750 PR target/88717
25751 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
25752 ix86_avx_u128_mode_entry.
25753
25754 2019-01-08 Martin Liska <mliska@suse.cz>
25755
25756 PR tree-optimization/88753
25757 * tree-switch-conversion.c (switch_conversion::build_one_array):
25758 Come up with local variable constructor. Convert first to
25759 type of constructor values.
25760
25761 2019-01-08 Richard Biener <rguenther@suse.de>
25762
25763 PR tree-optimization/86554
25764 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
25765 rpo_avail): Move earlier.
25766 (visit_nary_op): When value-numbering to expressions
25767 with different overflow behavior make sure there's an
25768 available expression on the path.
25769
25770 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
25771
25772 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
25773 aarch64_parse_branch_protection,
25774 struct aarch64_branch_protect_type,
25775 aarch64_handle_no_branch_protection,
25776 aarch64_handle_standard_branch_protection,
25777 aarch64_validate_mbranch_protection,
25778 aarch64_handle_pac_ret_protection,
25779 aarch64_handle_attr_branch_protection,
25780 accepted_branch_protection_string,
25781 aarch64_pac_ret_subtypes,
25782 aarch64_branch_protect_types,
25783 aarch64_handle_pac_ret_leaf): Define.
25784 (aarch64_override_options_after_change_1, aarch64_override_options):
25785 Add check for accepted_branch_protection_string.
25786 (aarch64_option_save): Save accepted_branch_protection_string.
25787 (aarch64_option_restore): Save accepted_branch_protection_string.
25788 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
25789 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
25790 msign-return-address.
25791 * doc/invoke.texi: Add mbranch-protection.
25792
25793 2019-01-08 Alan Modra <amodra@gmail.com>
25794
25795 PR target/88614
25796 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
25797 Delete "unknownp" parameter. Adjust callers. Handle
25798 CONST_INT, PLUS, MINUS, and MULT.
25799 (attr_value_aligned): Renamed from or_attr_value.
25800 (min_attr_value): Return INT_MIN for unhandled rtl case..
25801 (min_fn): ..and translate to INT_MAX here.
25802 (write_length_unit_log): Modify to cope without "unknown".
25803 (write_attr_value): Handle IF_THEN_ELSE.
25804
25805 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
25806
25807 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
25808 optimization for masked stores.
25809
25810 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
25811
25812 PR middle-end/88567
25813 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
25814 output vector directly to duplicate_and_interleave instead of
25815 going through a temporary. Postpone insertion of ctor_seq to
25816 the end of the loop.
25817
25818 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
25819
25820 PR target/86891
25821 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
25822 unsigned_p. Handle signed and unsigned overflow correction as
25823 required.
25824 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
25825 prototype.
25826 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
25827 for operand 2.
25828 (add<mode>3_compareV_imm): Make this callable for expanding.
25829 (subv<GPI:mode>4): Use register_operand for operand 1. Use
25830 aarch64_plus_operand for operand 2.
25831 (subv<GPI:mode>_insn): New insn pattern.
25832 (subv<GPI:mode>_imm): Likewise.
25833 (negv<GPI:mode>3): New expand pattern.
25834 (negv<GPI:mode>_insn): New insn pattern.
25835 (negv<GPI:mode>_cmp_only): Likewise.
25836 (cmpv<GPI:mode>_insn): Likewise.
25837 (subvti4): Use register_operand for operand 1. Update call to
25838 aarch64_expand_subvti.
25839 (usubvti4): Likewise.
25840 (negvti3): New expand pattern.
25841 (negdi_carryout): New insn pattern.
25842 (negvdi_carryinV): New insn pattern.
25843 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
25844 version the named version.
25845 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
25846 operands.
25847 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
25848 patterns.
25849 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
25850 patterns.
25851 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
25852 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
25853 (sub<mode>3_carryinCV): Delete.
25854 (sub<GPI:mode>3_carryinV): New expand pattern.
25855 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
25856
25857 2019-01-07 Richard Biener <rguenther@suse.de>
25858
25859 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
25860 of tree_operand_hash.
25861
25862 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
25863
25864 PR tree-optimization/88598
25865 * tree.h (single_nonzero_element): Declare.
25866 * tree.c (single_nonzero_element): New function.
25867 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
25868 if I is the only nonzero element of CST.
25869
25870 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
25871
25872 PR tree-optimization/88598
25873 * tree.h (initializer_each_zero_or_onep): Declare.
25874 * tree.c (initializer_each_zero_or_onep): New function.
25875 (signed_or_unsigned_type_for): Handle float types too.
25876 (unsigned_type_for, signed_type_for): Update comments accordingly.
25877 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
25878 x & { 0 or -1, 0 or -1, ... }.
25879
25880 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
25881
25882 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
25883 with x86_64-pc-linux-gnu.
25884
25885 2019-01-07 Tom de Vries <tdevries@suse.de>
25886
25887 PR target/85486
25888 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
25889 function.
25890 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
25891 routines.
25892
25893 2019-01-07 Jakub Jelinek <jakub@redhat.com>
25894
25895 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
25896 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
25897 TARGET_AVX512F as condition.
25898
25899 PR debug/88723
25900 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
25901 const_not_ok_for_debug_p target hook.
25902 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
25903 on UNSPEC and subexpressions thereof if all subexpressions of the
25904 UNSPEC are CONSTANT_P.
25905
25906 PR tree-optimization/88676
25907 * tree-ssa-phiopt.c (two_value_replacement): New function.
25908 (tree_ssa_phiopt_worker): Call it.
25909
25910 PR sanitizer/88619
25911 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
25912 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
25913
25914 PR c++/85052
25915 * tree-vect-generic.c: Include insn-config.h and recog.h.
25916 (expand_vector_piecewise): Add defaulted ret_type argument,
25917 if non-NULL, use that in preference to type for the result type.
25918 (expand_vector_parallel): Formatting fix.
25919 (do_vec_conversion, do_vec_narrowing_conversion,
25920 expand_vector_conversion): New functions.
25921 (expand_vector_operations_1): Call expand_vector_conversion
25922 for VEC_CONVERT ifn calls.
25923 * internal-fn.def (VEC_CONVERT): New internal function.
25924 * internal-fn.c (expand_VEC_CONVERT): New function.
25925 * fold-const-call.c (fold_const_vec_convert): New function.
25926 (fold_const_call): Use it for CFN_VEC_CONVERT.
25927 * doc/extend.texi (__builtin_convertvector): Document.
25928
25929 2019-01-07 Tom de Vries <tdevries@suse.de>
25930
25931 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
25932 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
25933 vector_red_partition, vector_red_sym): New global variables.
25934 (nvptx_option_override): Initialize vector_red_sym.
25935 (nvptx_declare_function_name): Restore red_partition register.
25936 (nvptx_file_end): Emit code to declare the vector reduction variables.
25937 (nvptx_output_red_partition): New function.
25938 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
25939 large vector reductions.
25940 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
25941 (nvptx_init_builtins): Add VECTOR_ADDR.
25942 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
25943 Handle nvptx_expand_shared_addr.
25944 (nvptx_get_shared_red_addr): Add vector argument and handle large
25945 vectors.
25946 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
25947 large vectors.
25948 (nvptx_goacc_reduction_init): Likewise.
25949 (nvptx_goacc_reduction_fini): Likewise.
25950 (nvptx_goacc_reduction_teardown): Likewise.
25951 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
25952 init,fini,teardown}.
25953 (nvptx_init_axis_predicate): Initialize vector_red_partition.
25954 (nvptx_set_current_function): Init vector_red_partition.
25955 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
25956 (nvptx_red_partition): New insn.
25957 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
25958
25959 2019-01-07 Tom de Vries <tdevries@suse.de>
25960
25961 PR target/85381
25962 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
25963 empty loops.
25964
25965 2019-01-07 Tom de Vries <tdevries@suse.de>
25966
25967 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
25968 (nvptx_option_override): Init oacc_bcast_partition.
25969 (nvptx_init_oacc_workers): New function.
25970 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
25971 (nvptx_needs_shared_bcast): New function.
25972 (nvptx_find_par): Generalize to enable vectors to use shared-memory
25973 to propagate state.
25974 (nvptx_shared_propagate): Initialize vector bcast partition and
25975 synchronization state.
25976 (nvptx_single): Generalize to enable vectors to use shared-memory
25977 to propagate state.
25978 (nvptx_process_pars): Likewise.
25979 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
25980 * config/nvptx/nvptx.h (struct machine_function): Add
25981 bcast_partition and sync_bar members.
25982
25983 2019-01-07 Tom de Vries <tdevries@suse.de>
25984
25985 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
25986 (nvptx_apply_dim_limits): New function.
25987 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
25988 PTX_WARP_SIZE.
25989
25990 2019-01-07 Tom de Vries <tdevries@suse.de>
25991
25992 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
25993 as late as possible.
25994
25995 2019-01-07 Tom de Vries <tdevries@suse.de>
25996
25997 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
25998 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
25999 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26000 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26001 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26002
26003 2019-01-07 Tom de Vries <tdevries@suse.de>
26004
26005 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26006
26007 2019-01-07 Tom de Vries <tdevries@suse.de>
26008
26009 * omp-offload.c (oacc_get_min_dim): New function.
26010 * omp-offload.h (oacc_get_min_dim): Declare.
26011
26012 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26013
26014 PR target/88521
26015 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26016 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26017
26018 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26019
26020 PR tree-opt/86020
26021 Revert:
26022 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26023
26024 * ipa-inline.c (edge_badness): Use inlined_time instead of
26025 inline_summaries->get.
26026
26027 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26028
26029 * opts.c (enable_fdo_optimizations): Enable
26030 version-loops-for-strides, loop-interchange, unrol-and-jam
26031 and tree-loop-distribution.
26032 * invoke.texi: Document newly enabled options.
26033
26034 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26035
26036 * doc/invoke.texi (max-inline-insns-small): New parameters.
26037 * ipa-inline.c (want_early_inline_function_p): simplify.
26038 (want_inline_small_function_p): Fix pasto from previous patch;
26039 use max-inline-insns-small bound.
26040 * params.def (max-inline-insns-small): New param.
26041 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26042 variables correctly.
26043
26044 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26045
26046 * doc/invoke.texi: Document max-inline-insns-size,
26047 uninlined-function-insns, uninlined-function-time,
26048 uninlined-thunk-insns and uninlined-thunk-time.
26049 * params.def: Add max-inline-insns-size,
26050 uninlined-function-insns, uninlined-function-time,
26051 uninlined-thunk-insns and uninlined-thunk-time.
26052 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26053 new parameters.
26054 * ipa-inline.c (can_inline_edge_by_limits_p,
26055 want_inline_small_function_p): Use new parameters.
26056
26057 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26058
26059 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26060
26061 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26062
26063 PR middle-end/82564
26064 PR target/88620
26065 * expr.c (expand_assignment): For calls returning VLA structures
26066 if to_rtx is not a MEM, force it into a stack temporary.
26067
26068 PR debug/88635
26069 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26070 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26071 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26072 subexpressions of both operands.
26073 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26074 subrtxes are CONSTANT_P.
26075 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26076 2018-11-09 changes.
26077
26078 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26079
26080 * params.def (hot-bb-count-ws-permille): Set to 990.
26081
26082 2019-01-04 Martin Sebor <msebor@redhat.com>
26083
26084 PR c/88546
26085 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26086 leaf.
26087
26088 2019-01-04 Martin Sebor <msebor@redhat.com>
26089
26090 PR c/88363
26091 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26092
26093 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26094
26095 * gdbinit.in: Turn off pagination for the skip commands, restore
26096 it to previous state afterwards.
26097
26098 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26099
26100 PR target/88594
26101 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26102 of GET_MODE (opN) as modes of the libcall arguments.
26103
26104 2019-01-04 Jan Beulich <jbeulich@suse.com>
26105
26106 * config/i386/sse.md
26107 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26108 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26109 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26110 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26111 avx512f_vmcmp<mode>3<round_saeonly_name>,
26112 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26113 avx512f_maskcmp<mode>3,
26114 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26115 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26116 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26117 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26118 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26119 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26120 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26121 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26122 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26123 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26124 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26125 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26126 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26127 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26128 avx512cd_maskb_vec_dup<mode>,
26129 avx512cd_maskw_vec_dup<mode>,
26130 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26131 avx512dq_vmfpclass<mode>,
26132 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26133 instead of =Yk.
26134
26135 2019-01-03 Martin Sebor <msebor@redhat.com>
26136
26137 PR tree-optimization/88659
26138 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26139
26140 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26141
26142 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26143 unaligned vsx and avoid lxvd2x/stxvd2x.
26144 (gen_lvx_v4si_move): New function.
26145
26146 2019-01-03 Tom de Vries <tdevries@suse.de>
26147
26148 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26149 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26150 function.
26151 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26152
26153 2019-01-03 Tom de Vries <tdevries@suse.de>
26154
26155 * config/nvptx/nvptx.c (struct offload_attrs): New.
26156 (populate_offload_attrs): New function. Factor mask extraction out of
26157 nvptx_reorg. Add extraction of dimensions.
26158 (nvptx_reorg): Use populate_offload_attrs.
26159
26160 2019-01-03 Tom de Vries <tdevries@suse.de>
26161
26162 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26163 cases for oacc_min_dims_p and routine_p. Add asserts for
26164 oacc_default_dims_p and offload_region_p.
26165
26166 2019-01-03 Tom de Vries <tdevries@suse.de>
26167
26168 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26169 factored out of ...
26170 (nvptx_goacc_validate_dims): ... here.
26171
26172 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26173
26174 PR tree-optimization/85574
26175 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26176 structure.
26177 (struct ssa_equip_hash_traits): Declare.
26178 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26179
26180 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26181
26182 PR debug/88644
26183 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26184 change it to qualified_type.
26185
26186 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26187
26188 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26189 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26190
26191 2019-01-02 Martin Sebor <msebor@redhat.com>
26192 Jeff Law <law@redhat.com>
26193
26194 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26195 (get_range_strlen_tree): Update appropriately.
26196 (get_range_strlen)
26197 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26198
26199 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26200 rather than set_range_info.
26201 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26202 maybe_set_strlen_range. Handle potentially boundary crossing
26203 cases more conservatively.
26204 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26205 Call set_strlen_range.
26206 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26207
26208 PR middle-end/88663
26209 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26210 need the flexp argument.
26211 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26212 from calls to get_range_strlen. Update comments. Just update
26213 VAL for an unterminated const char array and let the reset of the
26214 code handle it normally. No longer try to set *flexp. Adjust
26215 return value.
26216 (get_range_strlen): Update for the new get_range_strlen API.
26217 (get_maxval_strlen): Similarly.
26218 (gimple_fold_builtin_strlen): Handle update meaning of return value
26219 from get_range_strlen.
26220 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26221 get_range_strlen API.
26222
26223 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26224
26225 PR lto/88130
26226 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26227 false at WPA time when body was removed.
26228
26229 2019-01-02 Martin Liska <mliska@suse.cz>
26230
26231 PR tree-optimization/88650
26232 * predict.c (set_even_probabilities): Calculate probability
26233 remainer only when really used.
26234
26235 2019-01-02 Richard Biener <rguenther@suse.de>
26236
26237 PR middle-end/88651
26238 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26239 widest_ints when mangling max_stmt_execution results.
26240
26241 2019-01-02 Richard Biener <rguenther@suse.de>
26242
26243 PR tree-optimization/88621
26244 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26245 bitfields when canoncalizing.
26246
26247 2019-01-02 Richard Biener <rguenther@suse.de>
26248
26249 PR target/87545
26250 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26251 cost of cheap SSE instruction.
26252
26253 2019-01-02 Richard Biener <rguenther@suse.de>
26254
26255 PR ipa/85574
26256 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26257 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26258 function.
26259 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26260 set after UIDs before splitting them.
26261
26262 2019-01-01 Martin Sebor <msebor@redhat.com>
26263 Jeff Law <law@redhat.com>
26264
26265 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26266 length is optimistic. If it is, then arrange to compute the
26267 conservative length as well.
26268
26269 * gimple-fold.h (get_range_strlen): Update prototype.
26270 * builtins.c (check_access): Update call to get_range_strlen to use
26271 c_strlen_data pointer. Change various variable accesses to instead
26272 pull data from the c_strlen_data structure.
26273 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26274 * calls.c (maybe_warn_nonstring_arg): Likewise.
26275 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26276 minimum length if maximum lengh is unknown.
26277 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26278 that used c_strlen, it's no longer needed. Restructure slightly.
26279 (format_string): Set unlikely range appropriately.
26280 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26281 formatting issues.
26282 (get_range_strlen): Accept c_strlen_data pointer for external
26283 call sites as well. Pass through to call to internal get_range_strlen.
26284 Adjust minlen, maxlen and maxbound as needed.
26285 (get_maxval_strlen): Update comments.
26286 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26287 to use c_strlen_data pointer. Change variable accesses to instead
26288 use c_strlen_data data members.
26289
26290 * gimple-fold.c (get_range_strlen): Update prototype.
26291 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26292 local variables. Use pdata to return information to caller.
26293 Update calls to get_range_strlen. Update pdata->maxbound.
26294 (get_range_strlen -- static version): Similarly.
26295 (get_range_strlen -- extern version): Update for internal
26296 get_range_strlen API change. Convert to external data format.
26297 (get_maxval_strlen): Similarly.
26298
26299 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26300
26301 * coverage.c (get_coverage_counts): Use current_function_decl.
26302 * profile.c (read_thunk_profile): New function.
26303 (branch_prob): Add THUNK parameter.
26304 * tree-profile.c (tree_profiling): Handle thunks.
26305 * value-prof.c (init_node_map): Handle thunks.
26306 * value-prof.h (branch_prob): Upate prototype.
26307 (read_thunk_profile): Declare.
26308
26309 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26310
26311 Update copyright years.
26312
26313 * gcc.c (process_command): Update copyright notice dates.
26314 * gcov-dump.c (print_version): Ditto.
26315 * gcov.c (print_version): Ditto.
26316 * gcov-tool.c (print_version): Ditto.
26317 * gengtype.c (create_file): Ditto.
26318 * doc/cpp.texi: Bump @copying's copyright year.
26319 * doc/cppinternals.texi: Ditto.
26320 * doc/gcc.texi: Ditto.
26321 * doc/gccint.texi: Ditto.
26322 * doc/gcov.texi: Ditto.
26323 * doc/install.texi: Ditto.
26324 * doc/invoke.texi: Ditto.
26325 \f
26326 Copyright (C) 2019 Free Software Foundation, Inc.
26327
26328 Copying and distribution of this file, with or without modification,
26329 are permitted in any medium without royalty provided the copyright
26330 notice and this notice are preserved.