rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
[gcc.git] / gcc / ChangeLog
1 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
2 Michael Meissner <meissner@linux.ibm.com>
3
4 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
5 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
6 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
7 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
8 (OTHER_FUTURE_MASKS): Likewise.
9 (POWERPC_MASKS): Likewise.
10 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
11 specified without -mprefixed-addr or -mcpu=future. Error if
12 -mprefixed-addr is specified without -mcpu=future.
13 (rs6000_opt_masks): Add entry for prefixed-addr.
14 * rs6000.opt (mprefixed-addr): New option.
15
16 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
17
18 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
19 cfun->is_thunk check.
20
21 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22
23 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
24 to length.
25
26 2019-05-30 Martin Liska <mliska@suse.cz>
27
28 * gdbinit.in: Fix 'ptc' command. Add trt
29 that prints TREE_TYPE($).
30
31 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
32 Alan Modra <amodra@gmail.com>
33
34 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
35 calls here...
36 (rs6000_indirect_call_template_1): ...and here.
37 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
38 plt16_ha, plt16_lo, mtctr indirect calls. Use
39 rs6000_pltseq_enum.
40 (rs6000_decl_ok_for_sibcall): New function.
41 (rs6000_function_ok_for_sibcall): Refactor.
42 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
43 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
44 when pcrel. Reorganize.
45 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
46 * rs6000.h (rs6000_pltseq_enum): New enum.
47 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
48 (*pltseq_tocsave): Use rs6000_pltseq_enum.
49 (*pltseq_plt16_ha): Likewise.
50 (*pltseq_plt16_lo): Likewise.
51 (*pltseq_mtctr): Likewise.
52 (*pltseq_plt_pcrel): New insn.
53 (*call_local_aix): Handle @notoc calls.
54 (*call_value_local_aix): Likewise.
55 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
56 (*call_value_nonlocal_aix): Likewise.
57 (*call_indirect_pcrel): New insn.
58 (*call_value_indirect_pcrel): Likewise.
59
60
61 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
62
63 * config/i386/sse.md (*save_multiple<mode>): Rename from
64 save_multiple<mode>.
65 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
66 (*restore_multiple_and_return<mode>): Rename from
67 restore_multiple_and_return<mode>.
68 (*restore_multiple_leave_return<mode>): Rename from
69 restore_multiple_leave_return<mode>.
70
71 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
72
73 * config.gcc (rx-*-linux*): New target.
74 * config/rx/elf.opt: New file.
75 * config/rx/linux.h: Likewise.
76 * config/rx/t-linux: Likewise.
77 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
78 make it zero.
79 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
80 (ASM_APP_OFF): Likewise.
81 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
82 moved elsewhere.
83
84 2019-05-29 Jan Hubicka <jh@suse.cz>
85
86 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
87 variants are pointer equivalent.
88
89 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
90
91 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
92 * config/aarch64/aarch64-sve2.md: New file.
93 (<u>avg<mode>3_floor): New pattern.
94 (<u>avg<mode>3_ceil): Likewise.
95 (*<sur>h<addsub><mode>): Likewise.
96 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
97 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
98
99 2019-05-29 Jakub Jelinek <jakub@redhat.com>
100
101 PR bootstrap/90543
102 * optc-save-gen.awk: In cl_optimization_print, use correct condition
103 for var_opt_string printing. In cl_optimization_print_diff, print
104 (null) instead of invoking undefined behavior if one of the
105 var_opt_string pointers is NULL and use && instead of first || in the
106 guarding condition. For var_target_other options, handle const char *
107 target variables similarly to const char * optimize node variables.
108
109 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
110
111 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
112 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
113 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
114 Add autib1716 and pacib1716 initialisation.
115 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
116 for autib1716 and pacib1716.
117 * config/aarch64/aarch64-protos.h (aarch64_key_type,
118 aarch64_post_cfi_startproc): Define.
119 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
120 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
121 aarch64_handle_pac_ret_protection): Set default sign key to A.
122 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
123 aarch64_expand_prologue): Add check for b-key.
124 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
125 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
126 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
127 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
128 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
129 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
130 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
131 * config/aarch64/aarch64.md (do_return): Add check for b-key.
132 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
133 pauth_hint_num_a with pauth_hint_num.
134 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
135 pauth_hint_num_a with pauth_hint_num.
136 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
137 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
138 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
139 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
140 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
141 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
142 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
143 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
144 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
145 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
146 UNSPEC_AUTIA1716 respectively.
147 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
148 and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
149 * doc/invoke.texi (-mbranch-protection): Add b-key type.
150 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
151 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
152
153 2019-05-29 Jakub Jelinek <jakub@redhat.com>
154
155 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
156 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
157 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
158 explicit clause on combined parallel into implicit shared clause.
159 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
160 and firstprivate if the decl has one too from combined parallel to
161 the worksharing construct.
162
163 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
164 Michael Meissner <meissner@linux.ibm.com>
165
166 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
167
168 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
169
170 * rtl.h (LABEL_REF_P): New #define.
171
172 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
173
174 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
175
176 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
177
178 * internal-fn.c: Marked mask_load_direct as vectorizable.
179 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
180 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
181 combined even if masks different with allow_slp_p param.
182 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
183 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
184 dissolve SLP-only vectorizable groups when SLP has been discarded.
185 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
186 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
187 masks.
188 (vect_build_slp_tree_1): Fixed comment typo.
189 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
190 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
191 loads for SLP only.
192 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
193 vectorizable.
194 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
195
196 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
197
198 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
199 Remove obsolete use_thunk reference.
200 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
201 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
202 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
203 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
204 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
205 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
206 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
207 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
208 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
209
210 2019-05-28 Nathan Sidwell <nathan@acm.org>
211
212 * tree.h (IDENTIFIER_ANON_P): New.
213 (anon_aggrname_format, anon_aggname_p): Don't declare.
214 (make_anon_name): Declare.
215 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
216 (hash_tree): Likewise.
217 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
218 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
219 (anon_cnt, make_anon_name): New.
220
221 2019-05-28 Martin Liska <mliska@suse.cz>
222
223 PR other/90315
224 * opts-global.c (decode_options): Print help for all
225 help_option_arguments.
226 * opts.c (print_help): Add new argument.
227 (common_handle_option): Remember all values into
228 help_option_arguments.
229 * opts.h (print_help): Add new argument.
230
231 2019-05-28 Martin Liska <mliska@suse.cz>
232
233 PR ipa/90555
234 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
235 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
236 (func_checker::compare_bb): Call compare_loops.
237
238 2019-05-27 Jakub Jelinek <jakub@redhat.com>
239
240 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
241 on sections construct.
242 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
243 construct.
244 (lower_omp_sections): Handle lastprivate conditional.
245 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
246 lastprivate_conditional_map.
247 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
248
249 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
250 critical, taskgroup and section regions when looking for a region
251 with non-NULL lastprivate_conditional_map.
252
253 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
254
255 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
256 (*ix86_gen_sub3): Ditto.
257 (*ix86_gen_sub3_carry): Ditto.
258 (*ix86_gen_one_cmpl2): Ditto.
259 (*ix86_gen_andsp): Ditto.
260 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
261 (gen_and2_insn): New static function.
262 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
263 Use gen_add3_insn instead of ix86_gen_add3.
264 (ix86_expand_split_stack_prologue): Use gen_add2_insn
265 instead of ix86_gen_add3.
266 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
267 Use gen_sub3_insn instead of ix86_gen_sub3.
268 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
269 instead of ix86_gen_add3.
270 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
271 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
272 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
273 * config/i386/i386-options.c (ix86_option_override_internal):
274 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
275 ix86_gen_one_cmpl2 and ix86_gen_andsp.
276
277 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
278
279 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
280 and DW_OP_GNU_const_index opcodes.
281
282 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
283
284 * config/i386/i386.h (STACK_SIZE_MODE): Define.
285
286 2019-05-27 Richard Biener <rguenther@suse.de>
287
288 PR tree-optimization/90637
289 * tree-ssa-sink.c (statement_sink_location): Honor the
290 computed sink location for single-uses.
291
292 2019-05-27 Richard Biener <rguenther@suse.de>
293
294 PR middle-end/90610
295 * match.pd (vec_perm): Avoid clobbering op0 when not generating
296 a bit-insert.
297
298 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
299
300 * config/i386/i386.md (@sub<mode>3_carry): Rename
301 from sub<mode>3_carry.
302 (@leave_<mode>): New expander.
303 (*leave): Rename from leave.
304 (*leave_rex64): Rename from leave_rex64.
305 (@monitorx_<mode>): Rename from monitorx_<mode>.
306 (@clzero_<mode>): Rename from clzero_<mode>.
307 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
308 from sse3_monitor_<mode>.
309 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
310 (*ix86_gen_leave): Ditto.
311 (*ix86_gen_monitor): Ditto.
312 (*ix86_gen_monitorx): Ditto.
313 (*ix86_gen_clzero): Ditto.
314 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
315 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
316 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
317 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
318 Use gen_sse3_monitor instead of ix86_gen_monitor.
319 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
320 instead of ix86_gen_monitorx.
321 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
322 instead of ix86_gen_clzero.
323 * config/i386/i386-options.c (ix86_option_override_internal):
324 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
325 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
326
327 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
328
329 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
330 Rename from tls_global_dynamic_64_<mode>.
331 (@tls_local_dynamic_base_64_<mode>): Rename from
332 tls_local_dynamic_base_64_<mode>.
333 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
334 Remove indirect function.
335 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
336 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
337 instead of ix86_gen_tls_global_dynamic_64.
338 Use gen_tls_local_dynamic_base_64 instead of
339 ix86_gen_tls_local_dynamic_base_64.
340 * config/i386/i386-options.c (ix86_option_override_internal):
341 Do not initialize ix86_gen_tls_global_dynamic_64 and
342 ix86_gen_tls_local_dynamic_base_64.
343
344 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
345
346 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
347 Rename from pro_epilogue_adjust_stack_<mode>_add.
348 (@pro_epilogue_adjust_stack_sub_<mode>)
349 Rename from pro_epilogue_adjust_stack_<mode>_sub.
350 (@allocate_stack_worker_probe_<mode>):
351 Rename from allocate_stack_worker_probe_<mode>.
352 (allocate_stack): Use gen_allocate_stack_worker_probe.
353 (probe_stack): Use gen_probe_stack_1.
354 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
355 (@adjust_stack_and_probe_<mode>): Rename from
356 adjust_stack_and_probe<mode>.
357 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
358 (stack_protect_set): Use gen_stack_protect_set_1.
359 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
360 (stack_protect_test): Use gen_stack_protect_test_1.
361 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
362 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
363 Remove indirect function.
364 (*ix86_gen_adjust_stack_and_probe): Ditto.
365 (*ix86_gen_probe_stack_range): Ditto.
366 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
367 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
368 (ix86_adjust_stack_and_probe_stack_clash): Use
369 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
370 (ix86_adjust_stack_and_probe): Ditto.
371 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
372 of ix86_gen_probe_stack_range.
373 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
374 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
375 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
376 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
377 CODE_FOR_stack_protect_test_{si,di}.
378 * config/i386/i386-options.c (ix86_option_override_internal):
379 Do not initialize ix86_gen_allocate_stack_worker,
380 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
381
382 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
383
384 * doc/invoke.texi (Link Options): Many editorial changes around
385 -flinker-output.
386
387 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
388
389 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
390 pre-Solaris 11 referene and most Studio compiler details.
391
392 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
393
394 PR target/90530
395 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
396 DImode to SImode in floating-point registers on 64-bit target.
397 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
398 register_operand in xmpyu patterns.
399
400 2019-05-24 Jakub Jelinek <jakub@redhat.com>
401
402 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
403 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
404 OMP_CLAUSE__REDUCTEMP_.
405 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
406 OMP_CLAUSE__CONDTEMP_.
407 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
408 * tree-pretty-print.c (dump_omp_clause): Likewise.
409 * tree-nested.c (convert_nonlocal_omp_clauses,
410 convert_local_omp_clauses): Likewise.
411 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
412 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
413 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
414 on OMP_FOR.
415 (gimplify_omp_for): Warn and disable conditional modifier from
416 lastprivate on loop iterators.
417 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
418 member.
419 * omp-general.c (omp_extract_for_data): Initialize it.
420 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
421 member.
422 (delete_omp_context): Delete it.
423 (lower_lastprivate_conditional_clauses): New function.
424 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
425 handle lastprivate conditional clauses.
426 (lower_reduction_clauses): Add CLIST argument, emit it into
427 the critical section if any.
428 (lower_omp_sections): Adjust lower_lastprivate_clauses and
429 lower_reduction_clauses callers.
430 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
431 to lower_lastprivate_clauses.
432 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
433 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
434 clist into a critical section if not emitted there already by
435 lower_reduction_clauses.
436 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
437 callers.
438 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
439 conditional variables.
440 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
441 clause is present.
442 (expand_omp_for_generic, expand_omp_for_static_nochunk,
443 expand_omp_for_static_chunk): Handle lastprivate conditional.
444 (expand_omp_for): Handle fd.lastprivate_conditional like
445 fd.have_reductemp.
446
447 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
448
449 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
450 kernel does not exit cleanly.
451 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
452
453 2019-05-24 Jason Merrill <jason@redhat.com>
454
455 Revert:
456 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
457
458 2019-05-24 Richard Biener <rguenther@suse.de>
459
460 PR testsuite/90607
461 * tree-loop-distribution.c (struct partition): Add location
462 member.
463 (partition_alloc): Initialize all fields.
464 (generate_memset_builtin): Use the location recorded in the
465 partition for the generated call.
466 (generate_memcpy_builtin): Likewise.
467 (classify_partition): Record the location of a single store
468 as location for the partition.
469
470 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
471
472 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
473 for lo-part.
474
475 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
476
477 PR target/90588
478 * common/config/aarch64/aarch64-common.c
479 (aarch64_rewrite_selected_cpu): Change local temporary variable
480 type from unsigned long to uint64_t.
481 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
482 aarch64_get_extension_string_for_isa_flags): Change declaration to
483 match new definition by replacing unsigned long with uint64_t.
484
485 2019-05-24 Jakub Jelinek <jakub@redhat.com>
486
487 PR target/90568
488 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
489 gen_attr_type just once instead of 4-7 times. Formatting fixes.
490 Handle stack_protect_test_<mode> codegen similarly to corresponding
491 sub instruction.
492
493 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
494
495 * config/i386/darwin.h: Reject -mfentry*.
496 * doc/sourcebuild.texi: Document mfentry target support.
497
498 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
499
500 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
501 Rename to rs6000_global_entry_point_prologue_needed_p. Return
502 false for PC-relative functions.
503 (rs6000_output_function_prologue): Change called function name to
504 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
505 name,1" for PC-relative functions.
506 (rs6000_elf_declare_function_name): Change called function name to
507 rs6000_global_entry_point_prologue_needed_p.
508
509 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
510
511 PR target/90552
512 * config/i386/i386.c (gen_rtx_cost):
513 Use ix86_tune_cost instead of ix86_cost.
514
515 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
516 Michael Meissner <meissner@linux.ibm.com>
517 Segher Boessenkool <segher@kernel.crashing.org>
518
519 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
520 OPTION_MASK_PCREL.
521 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
522 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
523 (rs6000_fndecl_pcrel_p): Likewise.
524 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
525 error if -mpcrel is requested without -mcpu=future.
526 (rs6000_opt_masks): Add entry for pcrel.
527 (rs6000_fndecl_pcrel_p): New function.
528 (rs6000_pcrel_p): Likewise.
529 * config/rs6000/rs6000.opt (mpcrel): New option.
530 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
531
532 2019-05-23 Jan Hubicka <jh@suse.cz>
533 Martin Liska <mliska@suse.cz>
534
535 PR tree-optimization/90576
536 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
537 poly_int_tree_p.
538 (aliasing_component_refs_p): Fix three way size compare conditional;
539 give up earlier in case we can not decide on equivalence.
540
541 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
542 Michael Meissner <meissner@linux.ibm.com>
543 Segher Boessenkool <segher@kernel.crashing.org>
544
545 * config.gcc: Add future cpu.
546 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
547 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
548 #define.
549 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
550 (RS6000_CPU): New instantiation for future cpu.
551 * config/rs6000/rs6000-opts.h (enum processor_type): Add
552 PROCESSOR_FUTURE.
553 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
554 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
555 * config/rs6000/rs6000-tables.opt: Regenerate.
556 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
557 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
558 (rs6000_machine_from_flags): Handle future cpu.
559 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
560 PROCESSOR_POWER9 for now.
561 (rs6000_adjust_cost): Likewise.
562 (rs6000_issue_rate): Likewise.
563 (rs6000_register_move_cost): Likewise.
564 (rs6000_opt_masks): Add entry for future.
565 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
566 (MASK_FUTURE): New #define.
567 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
568 * config/rs6000/rs6000.opt (mfuture): New target option.
569 * doc/invoke.texi (mcpu): Add future cpu.
570
571 2019-05-23 Martin Liska <mliska@suse.cz>
572
573 PR c++/90587
574 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
575 operation points to a temporary (pointed via tree_to_wide_ref)
576 that is out of scope after the &.
577
578 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
579
580 PR c++/90592
581 * doc/extend.texi (Function Names): Add missing word.
582
583 2019-05-23 Richard Biener <rguenther@suse.de>
584
585 PR tree-optimization/88440
586 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
587 at -O[2s]+.
588 * tree-loop-distribution.c (generate_memset_builtin): Fold the
589 generated call.
590 (generate_memcpy_builtin): Likewise.
591 (distribute_loop): Pass in whether to only distribute patterns.
592 (prepare_perfect_loop_nest): Also allow size optimization.
593 (pass_loop_distribution::execute): When optimizing a loop
594 nest for size allow pattern replacement.
595
596 2019-05-23 Jakub Jelinek <jakub@redhat.com>
597
598 PR target/90568
599 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
600 of xor.
601
602 2019-05-23 Martin Liska <mliska@suse.cz>
603
604 PR sanitizer/90570
605 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
606 expression similarly to gimplify_decl_expr.
607
608 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
609
610 * cse.c (cse_dump_path): s/dump_file/f.
611
612 2019-05-22 David Malcolm <dmalcolm@redhat.com>
613
614 PR c++/90462
615 * diagnostic-format-json.cc: Include "selftest.h".
616 (json_from_expanded_location): Only add "file" key for non-NULL
617 file strings.
618 (json_from_location_range): Don't add "start" and "finish"
619 children if they are UNKNOWN_LOCATION.
620 (selftest::test_unknown_location): New selftest.
621 (selftest::test_bad_endpoints): New selftest.
622 (selftest::diagnostic_format_json_cc_tests): New function.
623 * json.cc (json::object::get): New function.
624 (selftest::test_object_get): New selftest.
625 (selftest::json_cc_tests): Call it.
626 * json.h (json::object::get): New decl.
627 * selftest-run-tests.c (selftest::run_tests): Call
628 selftest::diagnostic_format_json_cc_tests.
629 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
630 decl.
631
632 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
633 Andrew Stubbs <amd@codesourcery.com>
634
635 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
636 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
637 (kernel): Rename to...
638 (main_kernel): ... this.
639 (load_image): Load _init_array and _fini_array kernels.
640 (run): Add argument for kernel to run.
641 (main): Run init_array_kernel before main_kernel, and
642 fini_array_kernel after.
643 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
644 amdgpu_hsa_kernel attribute on functions.
645 (gcn_disable_constructors): Delete.
646 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
647 * config/gcn/crt0.c (size_t): Define.
648 (_init_array, _fini_array): New.
649 (__preinit_array_start, __preinit_array_end,
650 __init_array_start, __init_array_end,
651 __fini_array_start, __fini_array_end): Declare weak references.
652
653 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
654
655 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
656
657 2019-05-22 Jason Merrill <jason@redhat.com>
658
659 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
660
661 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
662
663 PR target/88483
664 * config/i386/i386-options.c (ix86_init_machine_status): Set
665 stack_frame_required to true.
666 * config/i386/i386.c (ix86_get_frame_size): New function.
667 (ix86_frame_pointer_required): Replace get_frame_size with
668 ix86_get_frame_size.
669 (ix86_compute_frame_layout): Likewise.
670 (ix86_find_max_used_stack_alignment): Changed to void. Set
671 stack_frame_required.
672 (ix86_finalize_stack_frame_flags): Always call
673 ix86_find_max_used_stack_alignment. Replace get_frame_size with
674 ix86_get_frame_size.
675 * config/i386/i386.h (machine_function): Add stack_frame_required.
676
677 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
678
679 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
680
681 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
682
683 * common/config/aarch64/aarch64-common.c
684 (struct aarch64_option_extension, struct processor_name_to_arch,
685 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
686 aarch64_contains_opt,
687 aarch64_get_extension_string_for_isa_flags): Change type of
688 variables storing flags to uint64_t.
689 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
690 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
691 * config/aarch64/aarch64.c (struct processor,
692 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
693 aarch64_validate_march, aarch64_override_options,
694 aarch64_option_print, aarch64_handle_attr_isa_flags,
695 aarch64_declare_function_name, aarch64_start_file): Make flag
696 variables uint64_t.
697 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
698 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
699 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
700 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
701 * config/aarch64/driver-aarch64.c
702 (struct aarch64_arch_extension, struct aarch64_core_data,
703 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
704 flag variables uint64_t.
705 * doc/invoke.texi: Add documentation for new arguments.
706
707 2019-05-22 Richard Biener <rguenther@suse.de>
708
709 * alias.c (ao_ref_from_mem): Move stack-slot sharing
710 rewrite ...
711 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
712
713 2019-05-22 Martin Liska <mliska@suse.cz>
714
715 PR lto/90500
716 * doc/extend.texi: Document the change.
717
718 2019-05-22 Richard Biener <rguenther@suse.de>
719
720 PR tree-optimization/90450
721 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
722 (mem_ref_hasher::equal): Check it.
723 (mem_ref_alloc): Initialize it.
724 (gather_mem_refs_stmt): Set it.
725
726 2019-05-22 Richard Biener <rguenther@suse.de>
727
728 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
729 Add ABS_EXPR.
730 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
731 as ABSU_EXPR.
732
733 2019-05-22 Alan Modra <amodra@gmail.com>
734
735 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
736 (ASM_CPU_SPEC): Conditionally add -many.
737 * config/rs6000/rs6000.c (rs6000_machine): New static var.
738 (rs6000_machine_from_flags, emit_asm_machine): New functions..
739 (rs6000_file_start): ..extracted from here, and modified to
740 test all ISA bits.
741 (rs6000_output_function_prologue): Emit .machine as necessary.
742 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
743 power mnemonics.
744 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
745 added by check_vect_support_and_set_flags.
746 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
747 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
748
749 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
750
751 PR middle-end/90553
752 * ira-lives.c (process_bb_node_lives): Consider defs
753 for a call insn to be die before the call, not after.
754
755 * function.c (assign_parm_setup_block): Raise alignment of
756 stacked parameter only for STRICT_ALIGNMENT targets.
757
758 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
759
760 * config/rs6000/constraints.md (define_register_constraint "wz"):
761 Delete.
762 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
763 RS6000_CONSTRAINT_wz.
764 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
765 (rs6000_init_hard_regno_mode_ok): Adjust.
766 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
767 * doc/md.texi (Machine Constraints): Adjust.
768
769 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
770
771 * config/rs6000/constraints.md (define_register_constraint "wl"):
772 Delete.
773 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
774 RS6000_CONSTRAINT_wl.
775 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
776 (rs6000_init_hard_regno_mode_ok): Adjust.
777 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
778 * doc/md.texi (Machine Constraints): Adjust.
779
780 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
781
782 * config/rs6000/constraints.md (define_register_constraint "wm"):
783 Delete.
784 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
785 RS6000_CONSTRAINT_wm.
786 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
787 (rs6000_init_hard_regno_mode_ok): Adjust.
788 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
789 * doc/md.texi (Machine Constraints): Adjust.
790
791 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
792
793 * config/rs6000/constraints.md (define_register_constraint "wk"):
794 Delete.
795 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
796 RS6000_CONSTRAINT_wk.
797 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
798 (rs6000_init_hard_regno_mode_ok): Adjust.
799 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
800 * doc/md.texi (Machine Constraints): Adjust.
801
802 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
803
804 * config/rs6000/constraints.md (define_register_constraint "wj"):
805 Delete.
806 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
807 RS6000_CONSTRAINT_wj.
808 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
809 (rs6000_init_hard_regno_mode_ok): Adjust.
810 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
811 (VS_64dm): Delete.
812 * config/rs6000/vsx.md: Ditto.
813 * doc/md.texi (Machine Constraints): Adjust.
814
815 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
816
817 * config/rs6000/constraints.md (define_register_constraint "wh"):
818 Delete.
819 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
820 RS6000_CONSTRAINT_wh.
821 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
822 (rs6000_init_hard_regno_mode_ok): Adjust.
823 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
824 * doc/md.texi (Machine Constraints): Adjust.
825
826 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
827
828 PR target/90547
829 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
830 Avoid calling gen_lowpart with CONST operand.
831
832 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
833
834 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
835 field template_last_to_copy.
836 (ssa_create_duplicates): Set it, and use it. Attempt to
837 preserve more debug stmts.
838
839 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
840
841 * config/i386/sse.md (VF1_AVX2): New mode iterator.
842 (signbit<mode>2): New expander
843
844 2019-05-21 James Clarke <jrtc27@jrtc27.com>
845
846 PR bootstrap/87338
847 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
848 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
849
850 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
851
852 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
853 %ebx and %ecx bafore calling cpuid with leaf 1 or
854 non-constant leaf argument.
855
856 2019-05-21 Alan Modra <amodra@gmail.com>
857
858 PR target/90545
859 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
860 power9 direct move cost.
861 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
862 Correct comments and rename functions to suit parameters.
863
864 2019-05-21 Richard Biener <rguenther@suse.de>
865
866 PR middle-end/90510
867 * fold-const.c (fold_read_from_vector): New function.
868 * fold-const.h (fold_read_from_vector): Declare.
869 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
870 single-element insert permutations. Canonicalize selector
871 further and fix issue with last commit.
872
873 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
874
875 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
876 parameter with default value false to declaration.
877 (split_edges_for_insertion): New inline function. Wrapper for
878 split_critical_edges with for_edge_insertion_p = true.
879 * tree-cfg.c (split_critical_edges): Don't split non-critical
880 edges if for_edge_insertion_p is false. Fix whitespace.
881 * tree-ssa-pre.c (pass_pre::execute): Call
882 split_edges_for_insertion instead of split_critical_edges.
883 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
884 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
885 (pass_data_sink_code): Update function name in the comment.
886
887 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
888
889 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
890 around is_value_included_in that knows how to handle BIT_AND_EXPR.
891 (is_pred_expr_subset_of): Use the new function. Handle more cases where
892 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
893 positives.
894
895 2019-05-21 Martin Liska <mliska@suse.cz>
896
897 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
898 an extra newline.
899 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
900 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
901 vec_lvsr.
902 * config/rs6000/rs6000.c (rs6000_option_override_internal):
903 Quote a C type.
904 (rs6000_function_arg): Likewise.
905 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
906 (rs6000_expand_ternop_builtin): Use interval syntax.
907 (get_element_number): Likewise.
908 (altivec_expand_builtin): Likewise.
909 (rs6000_get_function_versions_dispatcher): Quote target_clones.
910
911 Fix test-suite.
912
913 2019-05-20 Jakub Jelinek <jakub@redhat.com>
914
915 PR c++/59813
916 PR target/90418
917 * function.h (struct function): Add calls_eh_return member.
918 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
919 gimplifying __builtin_eh_return call.
920 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
921 to cfun.
922 (expand_call_inline): Or in src_cfun->calls_eh_return into
923 dst_cfun->calls_eh_return.
924 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
925 cfun->calls_eh_return.
926 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
927 * lto-streamer-out.c (output_struct_function_base): Write
928 calls_eh_return.
929
930 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
931
932 PR rtl-optimization/43147
933 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
934 IX86_BUILTIN_SHUFPD.
935
936 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
937
938 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
939 (refs_may_alias_p_1): ... here; update stats.
940 (refs_may_alias_p): Do not update stats here.
941
942 2019-05-20 Richard Biener <rguenther@suse.de>
943
944 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
945 doesn't produce pointers.
946 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
947 the first operand points to.
948
949 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
950
951 * tree-ssa-alias.c (compare_sizes): New function.
952 (sompare_type_sizes): New function
953 (aliasing_component_refs_p): Use it.
954 (indirect_ref_may_alias_decl_p): Likewise.
955
956 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
957
958 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
959
960 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
961
962 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
963 (LIBLSAN_EARLY_SPEC): Likewise.
964 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
965
966 2019-05-20 Martin Liska <mliska@suse.cz>
967
968 * config/i386/i386.c (ix86_libc_has_fast_function):
969 Add ATTRIBUTE_UNUSED for the argument.
970
971 2019-05-20 Richard Biener <rguenther@suse.de>
972
973 * gimple-match-head.c: Include vec-perm-indices.h.
974 * generic-match-head.c: Likewise.
975 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
976 is included.
977 * fold-const.c (fold_vec_perm): Export.
978 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
979 (match.pd): ...here.
980
981 2019-05-20 Jakub Jelinek <jakub@redhat.com>
982
983 * cfgloop.h (struct loop): Add simdlen member.
984 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
985 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
986 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
987 as new argument to autovectorize_vector_sizes target hook. If
988 loop->simdlen, pick up vector size where the vectorization factor
989 is equal to loop->simd, and if there is none, fall back to the first
990 successful one.
991 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
992 caller.
993 * omp-low.c (omp_clause_aligned_alignment): Likewise.
994 * omp-general.c (omp_max_vf): Likewise.
995 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
996 * tree-vect-slp.c (vect_slp_bb): Likewise.
997 * target.def (autovectorize_vector_sizes): Add ALL argument and
998 document it.
999 * doc/tm.texi: Adjust documentation.
1000 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
1001 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
1002 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
1003 bool argument.
1004 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
1005 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
1006 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
1007 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
1008 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
1009 preferred vector size is not 512-bit or 256-bit, just put those
1010 unpreferred ones last.
1011
1012 2019-05-20 Martin Liska <mliska@suse.cz>
1013
1014 * targhooks.c (default_libc_has_fast_function): New function.
1015 * targhooks.h (default_libc_has_fast_function): Likewise.
1016
1017 2019-05-20 Martin Liska <mliska@suse.cz>
1018
1019 PR middle-end/90263
1020 * builtins.c (expand_builtin_memory_copy_args): When having a
1021 target with fast mempcpy implementation do now use memcpy.
1022 * config/i386/i386.c (ix86_libc_has_fast_function): New.
1023 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
1024 * doc/tm.texi: Likewise.
1025 * doc/tm.texi.in: Likewise.
1026 * target.def:
1027 * expr.c (emit_block_move_hints): Add 2 new arguments.
1028 * expr.h (emit_block_move_hints): Bail out when libcall
1029 to memcpy would be used.
1030
1031 2019-05-20 Martin Liska <mliska@suse.cz>
1032
1033 * profile-count.c: Add vertical spacing in order
1034 to separate functions.
1035 * profile-count.h: Likewise.
1036
1037 2019-05-20 Martin Liska <mliska@suse.cz>
1038
1039 * profile-count.h: Do not use full qualified
1040 names if possible.
1041 * profile-count.c (profile_count::to_frequency): Likewise.
1042
1043 2019-05-20 Martin Liska <mliska@suse.cz>
1044
1045 * profile-count.h (enum profile_quality): Use capital letters
1046 for enum value names. Use the adjusted names.
1047 * profile-count.c: Use the adjusted names.
1048
1049 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1050
1051 * config/rs6000/constraints.md (define_register_constraint "wH"):
1052 Delete.
1053 (define_register_constraint "wI"): Delete.
1054 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1055 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
1056 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1057 (rs6000_init_hard_regno_mode_ok): Adjust.
1058 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
1059 resp. "d", or with "wa" as appropriate, all with "p8v".
1060 * config/rs6000/vsx.md: Ditto.
1061 * doc/md.texi (Machine Constraints): Adjust.
1062
1063 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1064
1065 * config/rs6000/constraints.md (define_register_constraint "wy"):
1066 Delete.
1067 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1068 RS6000_CONSTRAINT_wy.
1069 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1070 (rs6000_init_hard_regno_mode_ok): Adjust.
1071 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
1072 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
1073 (define_mode_attr Fisa): New.
1074 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
1075 * doc/md.texi (Machine Constraints): Adjust.
1076
1077 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1078
1079 * config/rs6000/constraints.md (define_register_constraint "wu"):
1080 Delete.
1081 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1082 RS6000_CONSTRAINT_wu.
1083 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1084 (rs6000_init_hard_regno_mode_ok): Adjust.
1085 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
1086 both with "p8v".
1087 (define_mode_attr Fa): Delete.
1088 * config/rs6000/vsx.md: Ditto.
1089 * doc/md.texi (Machine Constraints): Adjust.
1090
1091 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1092
1093 * config/rs6000/constraints.md (define_register_constraint "wJ"):
1094 Delete.
1095 (define_register_constraint "wK"): Delete.
1096 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1097 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
1098 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1099 (rs6000_init_hard_regno_mode_ok): Adjust.
1100 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
1101 Replace "wK" constraint by "wH" with "p9v".
1102 * config/rs6000/vsx.md: Ditto.
1103 * doc/md.texi (Machine Constraints): Adjust.
1104
1105 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1106
1107 * config/rs6000/constraints.md (define_register_constraint "wb"):
1108 Delete.
1109 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1110 RS6000_CONSTRAINT_wb.
1111 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1112 (rs6000_init_hard_regno_mode_ok): Adjust.
1113 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
1114 * config/rs6000/vsx.md: Ditto.
1115 * doc/md.texi (Machine Constraints): Adjust.
1116
1117 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1118
1119 * config/rs6000/constraints.md (define_register_constraint "wo"):
1120 Delete.
1121 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1122 RS6000_CONSTRAINT_wo.
1123 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1124 (rs6000_init_hard_regno_mode_ok): Adjust.
1125 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
1126 * config/rs6000/altivec.md: Ditto.
1127 * doc/md.texi (Machine Constraints): Adjust.
1128
1129 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
1130
1131 * config/darwin-c.c (darwin_register_objc_includes): Do not
1132 prepend the sysroot when building gnu-runtime header search
1133 paths.
1134
1135 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
1136
1137 * config/darwin.c (darwin_file_end): Use switch_to_section ()
1138 instead of direct output of the asm.
1139
1140 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
1141
1142 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
1143 argument to be type bool (was int before).
1144 (rs6000_emit_epilogue): Simplify some code. Declare some variables
1145 at first use. Use type bool for some variables. Fix a theoretical
1146 eh_return bug for svr4.
1147
1148 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
1149
1150 * config/rs6000/rs6000.md (isa): New attribute.
1151 (enabled): New attribute.
1152
1153 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
1154
1155 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
1156 assemble_start_function and assemble_end_function.
1157
1158 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1159
1160 PR middle-end/89433
1161 * omp-general.c (oacc_verify_routine_clauses): Change formal
1162 parameters. Add checking if already marked with an OpenACC
1163 'routine' directive. Adjust all users.
1164
1165 PR middle-end/89433
1166 * omp-general.c (oacc_build_routine_dims): Move some of its
1167 processing into...
1168 (oacc_verify_routine_clauses): ... this new function.
1169 * omp-general.h (oacc_verify_routine_clauses): New prototype.
1170
1171 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
1172
1173 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
1174 formating of picbase labels to match other ports.
1175
1176 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
1177
1178 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
1179 in the generated code.
1180
1181 2019-05-16 Martin Sebor <msebor@redhat.com>
1182
1183 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
1184 identifiers, keywords, operators, and types in diagnostics. Correct
1185 quoting, spelling, and sentence capitalization issues.
1186 (expand_builtin_atomic_is_lock_free): Same.
1187 (fold_builtin_next_arg): Same.
1188 * cfgexpand.c (expand_one_var): Same.
1189 (tree_conflicts_with_clobbers_p): Same.
1190 (expand_asm_stmt): Same.
1191 (verify_loop_structure): Same.
1192 * cgraphunit.c (process_function_and_variable_attributes): Same.
1193 * collect-utils.c (collect_execute): Same.
1194 * collect2.c (maybe_run_lto_and_relink): Same.
1195 (is_lto_object_file): Same.
1196 (scan_prog_file): Same.
1197 * convert.c (convert_to_real_1): Same.
1198 * dwarf2out.c (dwarf2out_begin_prologue): Same.
1199 * except.c (verify_eh_tree): Same.
1200 * gcc.c (execute): Same.
1201 (eval_spec_function): Same.
1202 (run_attempt): Same.
1203 (driver::set_up_specs): Same.
1204 (compare_debug_auxbase_opt_spec_function): Same.
1205 * gcov-tool.c (unlink_gcda_file): Same.
1206 (do_merge): Same.
1207 (do_rewrite): Same.
1208 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
1209 * gimplify.c (gimplify_asm_expr): Same.
1210 (gimplify_adjust_omp_clauses): Same.
1211 * hsa-gen.c (gen_hsa_addr_insns): Same.
1212 (gen_hsa_insns_for_load): Same.
1213 (gen_hsa_cmp_insn_from_gimple): Same.
1214 (gen_hsa_insns_for_operation_assignment): Same.
1215 (gen_get_level): Same.
1216 (gen_hsa_alloca): Same.
1217 (omp_simple_builtin::generate): Same.
1218 (gen_hsa_atomic_for_builtin): Same.
1219 (gen_hsa_insns_for_call): Same.
1220 * input.c (dump_location_info): Same.
1221 * ipa-devirt.c (compare_virtual_tables): Same.
1222 * ira.c (ira_setup_eliminable_regset): Same.
1223 * lra-assigns.c (lra_assign): Same.
1224 * lra-constraints.c (lra_constraints): Same.
1225 * lto-streamer-in.c (lto_input_mode_table): Same.
1226 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
1227 (merge_and_complain): Same.
1228 (compile_offload_image): Same.
1229 (compile_images_for_offload_targets): Same.
1230 (debug_objcopy): Same.
1231 (run_gcc): Same.
1232 (main): Same.
1233 * opts.c (print_specific_help): Same.
1234 (parse_no_sanitize_attribute): Same.
1235 (print_help): Same.
1236 (handle_param): Same.
1237 * plugin.c (add_new_plugin): Same.
1238 (parse_plugin_arg_opt): Same.
1239 (try_init_one_plugin): Same.
1240 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
1241 operators, and types in diagnostics. Correct quoting and spelling
1242 issues.
1243 * read-rtl-function.c (parse_edge_flag_token): Same.
1244 (function_reader::parse_enum_value): Same.
1245 * reg-stack.c (check_asm_stack_operands): Same.
1246 * regcprop.c (validate_value_data): Same.
1247 * sched-rgn.c (make_pass_sched_fusion): Same.
1248 * stmt.c (check_unique_operand_names): Same.
1249 * targhooks.c (default_target_option_pragma_parse): Same.
1250 * tlink.c (recompile_files): Same.
1251 * toplev.c (process_options): Same.
1252 (do_compile): Same.
1253 * trans-mem.c (diagnose_tm_1): Same.
1254 (ipa_tm_scan_irr_block): Same.
1255 (ipa_tm_diagnose_transaction): Same.
1256 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
1257 format a tree code name in a diagnostic.
1258 (verify_types_in_gimple_min_lval): Same.
1259 (verify_types_in_gimple_reference): Same.
1260 (verify_gimple_call): Same.
1261 (verify_gimple_assign_unary): Same.
1262 (verify_gimple_assign_binary): Same.
1263 (verify_gimple_assign_ternary): Same.
1264 (verify_gimple_assign_single): Same.
1265 (verify_gimple_switch): Same.
1266 (verify_gimple_label): Same.
1267 (verify_gimple_phi): Same.
1268 (verify_gimple_in_seq): Same.
1269 (verify_eh_throw_stmt_node): Same.
1270 (collect_subblocks): Same.
1271 (gimple_verify_flow_info): Same.
1272 (do_warn_unused_result): Same.
1273 * tree-inline.c (expand_call_inline): Same.
1274 * tree-into-ssa.c (update_ssa): Same.
1275 * tree.c (tree_int_cst_elt_check_failed): Same.
1276 (tree_vec_elt_check_failed): Same.
1277 (omp_clause_operand_check_failed): Same.
1278 (verify_type_variant): Same.
1279 (verify_type): Same.
1280 * value-prof.c (verify_histograms): Same.
1281 * varasm.c (assemble_start_function): Same.
1282
1283 2019-05-16 Martin Sebor <msebor@redhat.com>
1284
1285 * config/i386/i386-expand.c (get_element_number): Quote keywords
1286 and other internal names in diagnostics. Adjust other diagnostic
1287 formatting issues noted by -Wformat-diag.
1288 * config/i386/i386-features.c
1289 (ix86_mangle_function_version_assembler_name): Same.
1290 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
1291 * config/i386/i386.c (ix86_function_type_abi): Same.
1292 (ix86_function_ms_hook_prologue): Same.
1293 (classify_argument): Same.
1294 (ix86_expand_prologue): Same.
1295 (ix86_md_asm_adjust): Same.
1296 (ix86_memmodel_check): Same.
1297
1298 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1299
1300 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
1301 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
1302 and fpxx modes.
1303
1304 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
1305
1306 PR target/90497
1307 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
1308 intrinsics without SSE/SSE2/SSSE3.
1309 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
1310 check.
1311 (*mmx_uavgv8qi3): Likewise.
1312
1313 2019-05-17 Richard Biener <rguenther@suse.de>
1314
1315 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
1316 VEC_PERM_EXPR as __VEC_PERM with -gimple.
1317
1318 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
1319
1320 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
1321 vec_sldw insn pattern.
1322
1323 2019-05-17 Richard Biener <rguenther@suse.de>
1324
1325 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
1326
1327 2019-05-17 Martin Liska <mliska@suse.cz>
1328
1329 PR driver/90496
1330 * toplev.c (output_stack_usage): With LTO and sanitizer it
1331 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
1332 has no file location.
1333
1334 2019-05-16 Jakub Jelinek <jakub@redhat.com>
1335
1336 PR c++/90484
1337 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
1338 sz0 is equal to sz1, instead return false in that case.
1339
1340 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
1341 has non-constant expression, force sctx.lane and use two
1342 argument IFN_GOMP_SIMD_LANE instead of single argument.
1343 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
1344 two argument IFN_GOMP_SIMD_LANE without lhs.
1345 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
1346 member.
1347 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
1348 Define.
1349 (LOOP_REQUIRES_VERSIONING): Or in
1350 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
1351 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
1352 simd_if_cond.
1353 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
1354 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
1355 from simd if clause if needed.
1356
1357 2019-05-16 Richard Biener <rguenther@suse.de>
1358
1359 * tree-affine.c (expr_to_aff_combination): New function split
1360 out from...
1361 (tree_to_aff_combination): ... here.
1362 (aff_combination_expand): Avoid building a GENERIC tree.
1363
1364 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
1365
1366 * cgraphunit.c (cgraph_node::expand_thunk): Remove
1367 assemble_start_function and assemble_end_function calls.
1368 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
1369 assemble_start_function and assemble_end_function.
1370 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
1371 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
1372 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
1373 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
1374 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
1375 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
1376 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
1377 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
1378 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
1379 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1380 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
1381 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
1382 Likewise.
1383 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
1384 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
1385 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
1386 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
1387 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
1388 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
1389 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
1390 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
1391 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
1392 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
1393 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1394 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1395 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
1396 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
1397 Likewise.
1398 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
1399 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
1400 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
1401
1402 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
1403
1404 * tree-ssa-alias.c (alias_stats): Add
1405 aliasing_component_refs_p_may_alias and
1406 aliasing_component_refs_p_no_alias.
1407 (dump_alias_stats): Print aliasing_component_refs_p stats.
1408 (aliasing_component_refs_p): Update stats.
1409
1410 2019-05-16 Martin Liska <mliska@suse.cz>
1411
1412 PR lto/90500
1413 * multiple_target.c (expand_target_clones): Do not allow
1414 target_clones being used with a symbol that is an alias.
1415
1416 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
1417
1418 PR tree-optimization/90394
1419 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
1420 positives rather than ICE for cases where (code2 == NE_EXPR
1421 && code1 == BIT_AND_EXPR).
1422
1423 2019-05-16 Jakub Jelinek <jakub@redhat.com>
1424
1425 PR fortran/90329
1426 * tree-core.h (struct tree_decl_common): Document
1427 decl_nonshareable_flag for PARM_DECLs.
1428 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
1429 * calls.c (expand_call): Don't try tail call if caller
1430 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
1431 passed on the stack and callee needs to pass any arguments on the
1432 stack.
1433 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
1434 else if instead of series of mutually exclusive ifs. Handle
1435 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
1436 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1437
1438 * lto-streamer.h (LTO_major_version): Bump to 9.
1439
1440 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
1441
1442 PR tree-optimization/90106
1443 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
1444 new parameter as new internal function call, also move it to new
1445 basic block.
1446 (use_internal_fn): Pass internal function call to
1447 shrink_wrap_one_built_in_call_with_conds.
1448
1449 2019-05-15 Jakub Jelinek <jakub@redhat.com>
1450
1451 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
1452 max_vf to 1.
1453 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
1454 safelen_int and set loop->dont_vectorize.
1455
1456 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1457
1458 PR target/89021
1459 * config/i386/i386-builtin.def: Enable MMX intrinsics with
1460 SSE/SSE2/SSSE3.
1461 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
1462 Likewise.
1463 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
1464 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
1465 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
1466 is defined.
1467
1468 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1469
1470 PR target/89021
1471 * config/i386/mmx.md (*vec_dupv2sf): Changed to
1472 define_insn_and_split to support SSE emulation.
1473 (*vec_extractv2sf_0): Likewise.
1474 (*vec_extractv2sf_1): Likewise.
1475 (*vec_extractv2si_0): Likewise.
1476 (*vec_extractv2si_1): Likewise.
1477 (*vec_extractv2si_zext_mem): Likewise.
1478 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
1479 (vec_extractv2sf_1 splitter): Likewise.
1480 (vec_extractv2sfsf): Likewise.
1481 (vec_setv2si): Likewise.
1482 (vec_extractv2si_1 splitter): Likewise.
1483 (vec_extractv2sisi): Likewise.
1484 (vec_setv4hi): Likewise.
1485 (vec_extractv4hihi): Likewise.
1486 (vec_setv8qi): Likewise.
1487 (vec_extractv8qiqi): Likewise.
1488 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
1489 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
1490 (vec_extractv2sisi): Likewise.
1491 (vec_extractv4hihi): Likewise.
1492 (vec_extractv8qiqi): Likewise.
1493 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
1494 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
1495 (vec_initv2sisi): Likewise.
1496 (vec_initv4hihi): Likewise.
1497 (vec_initv8qiqi): Likewise.
1498 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
1499 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
1500 (vec_setv4hi): Likewise.
1501 (vec_setv8qi): Likewise.
1502
1503 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1504
1505 PR target/89021
1506 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
1507 TARGET_MMX_WITH_SSE.
1508 (MMXMODE:*mov<mode>_internal): Likewise.
1509 (MMXMODE:movmisalign<mode>): Likewise.
1510
1511 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
1512
1513 PR target/89021
1514 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
1515 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
1516 (sse2_cvtpd2pi): Ditto.
1517 (sse2_cvttpd2pi): Ditto.
1518 (*vec_concatv2sf_sse4_1): Ditto.
1519 (*vec_concatv2sf_sse): Ditto.
1520 (*vec_concatv2si_sse4_1): Ditto.
1521 (*vec_concatv2si): Ditto.
1522 (*vec_concatv4si_0): Ditto.
1523 (*vec_concatv2di_0): Ditto.
1524
1525 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1526
1527 PR target/89021
1528 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
1529
1530 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1531
1532 PR target/89021
1533 * config/i386/sse.md (ssse3_palignrdi): Changed to
1534 define_insn_and_split to support SSE emulation.
1535
1536 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1537
1538 PR target/89021
1539 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
1540
1541 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1542
1543 PR target/89021
1544 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
1545 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
1546 SSE emulation.
1547
1548 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1549
1550 PR target/89021
1551 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
1552 or TARGET_MMX_WITH_SSE.
1553 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
1554
1555 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1556
1557 PR target/89021
1558 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
1559
1560 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1561
1562 PR target/89021
1563 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
1564 Changed to define_insn_and_split to support SSE emulation.
1565
1566 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1567
1568 PR target/89021
1569 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
1570 Changed to define_insn_and_split to support SSE emulation.
1571
1572 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1573
1574 PR target/89021
1575 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
1576 (*mmx_<emms>): This.
1577 (mmx_<emms>): New expander.
1578
1579 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1580
1581 PR target/89021
1582 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
1583 support.
1584 (*sse2_umulv1siv1di3): Add SSE2 emulation.
1585
1586 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1587
1588 PR target/89021
1589 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
1590
1591 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1592
1593 PR target/89021
1594 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
1595
1596 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1597
1598 PR target/89021
1599 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
1600 TARGET_MMX_WITH_SSE.
1601 (*mmx_uavgv4hi3): Add SSE emulation.
1602
1603 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1604
1605 PR target/89021
1606 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
1607 and TARGET_MMX_WITH_SSE.
1608 (*mmx_uavgv8qi3): Add SSE emulation.
1609
1610 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1611
1612 PR target/89021
1613 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
1614 maskmovdqu for __MMX_WITH_SSE__.
1615
1616 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1617
1618 PR target/89021
1619 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
1620 TARGET_MMX and TARGET_MMX_WITH_SSE.
1621 (*mmx_umulv4hi3_highpart): Add SSE emulation.
1622
1623 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1624
1625 PR target/89021
1626 * config/i386/mmx.md (mmx_pmovmskb): Changed to
1627 define_insn_and_split to support SSE emulation.
1628
1629 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1630
1631 PR target/89021
1632 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
1633 and TARGET_MMX_WITH_SSE.
1634 (mmx_<code>v8qi3): Likewise.
1635 (smaxmin:<code>v4hi3): New.
1636 (umaxmin:<code>v8qi3): Likewise.
1637 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
1638 (umaxmin:*mmx_<code>v8qi3): Likewise.
1639
1640 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1641
1642 PR target/89021
1643 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
1644 TARGET_MMX_WITH_SSE.
1645 (*mmx_pinsrw): Add SSE emulation.
1646
1647 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1648
1649 PR target/89021
1650 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
1651
1652 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1653
1654 PR target/89021
1655 * config/i386/sse.md (sse_cvtpi2ps): Changed to
1656 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
1657 SSE emulation.
1658
1659 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1660
1661 PR target/89021
1662 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
1663 (sse_cvttps2pi): Likewise.
1664
1665 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1666
1667 PR target/89021
1668 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
1669 TARGET_MMX_WITH_SSE.
1670 (mmx_pshufw_1): Add SSE emulation.
1671 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
1672 TARGET_MMX_WITH_SSE to support SSE emulation.
1673
1674 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1675
1676 PR target/89021
1677 * config/i386/constraints.md (Yw): New constraint.
1678 * config/i386/mmx.md (*vec_dupv2si): Changed to
1679 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
1680 support SSE emulation.
1681
1682 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1683
1684 PR target/89021
1685 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
1686 TARGET_MMX_WITH_SSE.
1687 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
1688 support.
1689 (mmx_gt<mode>3): Likewise.
1690
1691 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1692
1693 PR target/89021
1694 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
1695 TARGET_MMX_WITH_SSE. Add SSE support.
1696
1697 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1698
1699 PR target/89021
1700 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
1701 TARGET_MMX_WITH_SSE.
1702 (any_logic:<code><mode>3): New.
1703 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
1704 Add SSE support.
1705
1706 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1707
1708 PR target/89021
1709 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
1710 TARGET_MMX_WITH_SSE. Add SSE emulation.
1711 (mmx_<shift_insn><mode>3): Likewise.
1712 (ashr<mode>3): New.
1713 (<shift_insn><mode>3): Likewise.
1714
1715 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1716
1717 PR target/89021
1718 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
1719 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
1720
1721 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1722
1723 PR target/89021
1724 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
1725 TARGET_MMX_WITH_SSE.
1726 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
1727 SSE support.
1728
1729 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1730
1731 PR target/89021
1732 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
1733 TARGET_MMX_WITH_SSE.
1734 (mulv4hi3): New.
1735 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
1736 support.
1737
1738 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1739
1740 PR target/89021
1741 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
1742 (plusminus:mmx_<plusminus_insn><mode>3): Check
1743 TARGET_MMX_WITH_SSE.
1744 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
1745 (<plusminus_insn><mode>3): New.
1746 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
1747 (*mmx_<plusminus_insn><mode>3): Likewise.
1748
1749 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1750
1751 PR target/89021
1752 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
1753 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
1754 prototype.
1755 * config/i386/mmx.m (mmx_punpckhbw): Changed to
1756 define_insn_and_split to support SSE emulation.
1757 (mmx_punpcklbw): Likewise.
1758 (mmx_punpckhwd): Likewise.
1759 (mmx_punpcklwd): Likewise.
1760 (mmx_punpckhdq): Likewise.
1761 (mmx_punpckldq): Likewise.
1762
1763 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1764 Uros Bizjak <ubizjak@gmail.com>
1765
1766 PR target/89021
1767 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
1768 New function.
1769 (ix86_split_mmx_pack): Likewise.
1770 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
1771 New prototype.
1772 (ix86_split_mmx_pack): Likewise.
1773 * config/i386/i386.md (mmx_isa): New.
1774 (enabled): Also check mmx_isa.
1775 * config/i386/mmx.md (any_s_truncate): New code iterator.
1776 (s_trunsuffix): New code attr.
1777 (mmx_packsswb): Removed.
1778 (mmx_packssdw): Likewise.
1779 (mmx_packuswb): Likewise.
1780 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
1781 MMX packsswb/packuswb with SSE2.
1782 (mmx_packssdw): Likewise.
1783 * config/i386/predicates.md (register_mmxmem_operand): New.
1784
1785 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1786
1787 PR target/89021
1788 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1789 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
1790 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
1791 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
1792 (ix86_vector_mode_supported_p): Likewise.
1793 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
1794
1795 2019-05-15 Martin Liska <mliska@suse.cz>
1796
1797 PR middle-end/90478
1798 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
1799 Check for overflow.
1800
1801 2019-05-15 Richard Biener <rguenther@suse.de>
1802
1803 * tree-into-ssa.c (pass_build_ssa::execute): Run
1804 update_address_taken before going into SSA.
1805
1806 2019-05-15 Richard Biener <rguenther@suse.de>
1807
1808 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
1809 as __BIT_FIELD_REF with type with -gimple.
1810
1811 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
1812
1813 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
1814 semantically equivalent branches (left over after prior refactorings).
1815
1816 2019-05-15 Richard Biener <rguenther@suse.de>
1817
1818 PR tree-optimization/88828
1819 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
1820 bogus check.
1821
1822 2019-05-14 Richard Biener <rguenther@suse.de>
1823
1824 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
1825 as __VIEW_CONVERT with -gimple.
1826
1827 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1828
1829 PR target/82920
1830 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
1831 Darwin.
1832
1833 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
1834
1835 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
1836 define_split to become a define_insn_and_split.
1837
1838 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
1839
1840 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
1841 arguments.
1842 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
1843 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
1844 (sibcall_epilogue): Adjust.
1845 (epilogue): Adjust.
1846
1847 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1848
1849 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
1850 to unsupported ones.
1851 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
1852 * config.host: Likewise.
1853 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
1854 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
1855 __svr4__]: Remove "brand" fallback.
1856 [!KSTAT_DATA_STRING]: Remove.
1857 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
1858 to *-*-solaris2*.
1859 (comdat_group): Likewise.
1860 (set_have_as_tls): Likewise.
1861 (gcc_cv_target_dl_iterate_phdr): Likewise.
1862 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
1863 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
1864 * configure: Regenerate.
1865 * doc/install.texi: Simplify Solaris target triplets.
1866 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
1867 (Specific, *-*-solaris2*): Document Solaris 10 removal.
1868 Remove Solaris 10 references.
1869 Remove obsolete Solaris bug reference.
1870 (Specific, sparc-sun-solaris2.10): Remove.
1871
1872 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
1873
1874 * config/i386/i386.md (any_div): New code iterator.
1875 (paired_mod): New code attribute.
1876 (sgnprefix): Handle DIV and UDIV RTXes.
1877 (u): Ditto.
1878 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
1879 and udivmod<mode>4 patterns using any_div code iterator.
1880 (divmod splitters): Macroize splitters using any_div code iterator.
1881 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
1882 (*udivmodsi4_pow2_zext_2): Ditto.
1883 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
1884 and *udivmod<mode>4_noext patterns using any_div code iterator.
1885 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
1886 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
1887 patterns using any_div code iterator.
1888 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
1889 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
1890 patterns using any_div code iterator.
1891 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
1892 udivmodhiqi3 patterns using any_extend code iterator.
1893
1894 2019-05-14 Richard Biener <rguenther@suse.de>
1895 H.J. Lu <hongjiu.lu@intel.com>
1896
1897 PR tree-optimization/88828
1898 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1899 permuting in a single non-constant element not extracted
1900 from a vector.
1901
1902 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1903
1904 * internal-fn.def (SIGNBIT): New.
1905 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
1906 defined.
1907 (signbitv4sf2): Likewise.
1908
1909 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
1910
1911 PR target/90357
1912 * config/mips/mips.c (mips_split_move): Skip forward SRC into
1913 next insn when the SRC reg is dead.
1914
1915 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
1916
1917 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
1918 (alloc_cand_and_find_basis): Ditto.
1919 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
1920 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
1921 (create_add_imm_cand, slsr_process_cast): Ditto.
1922 (slsr_process_copy, replace_mult_candidate): Ditto.
1923 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
1924 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
1925 (pass_strength_reduction::execute): Init the first NULL element.
1926
1927 2019-05-13 Nathan Sidwell <nathan@acm.org>
1928
1929 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
1930 (run_attempt): Reformat line break.
1931
1932 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
1933
1934 PR target/90418
1935 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
1936 data registers in sibcall epilogues.
1937 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
1938
1939 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
1940
1941 PR target/89221
1942 * configure.ac (--enable-frame-pointer):
1943 Disable by default for cygwin and mingw.
1944 * configure: Regenerate.
1945
1946 2019-05-13 Nathan Sidwell <nathan@acm.org>
1947
1948 * dwarf2out.c (breakout_comdat_types): Move comment to correct
1949 piece of code.
1950 (const_ok_for_output_1): Balance parens around #if/#else/#endif
1951 (gen_member_die): Move abstract origin check earlier. Only VARs
1952 can be static_inline_p. Simplify splicing control flow.
1953
1954 2019-05-13 Richard Biener <rguenther@suse.de>
1955
1956 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
1957 VIEW_CONVERT_EXPR.
1958 (vect_build_slp_tree_1): Likewise.
1959
1960 2019-05-13 Richard Biener <rguenther@suse.de>
1961
1962 PR tree-optimization/90402
1963 * tree-if-conv.c (tree_if_conversion): Value number only
1964 the loop body by making the latch an exit of the region
1965 as well.
1966 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
1967 processing PHIs.
1968 (do_rpo_vn): Deal with multiple edges into the entry block
1969 that are not backedges inside the region by skipping PHIs
1970 of the entry block.
1971
1972 2019-05-13 Richard Biener <rguenther@suse.de>
1973
1974 PR tree-optimization/90316
1975 * tree-ssa-pre.c (insert_aux): Fold into ...
1976 (insert): ... this function. Use a RPO walk to reduce the
1977 number of required iterations.
1978
1979 2019-05-13 Martin Liska <mliska@suse.cz>
1980
1981 PR tree-optimization/90416
1982 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
1983 string instead of passing the second part as va_arg argument.
1984
1985 2019-05-13 Martin Liska <mliska@suse.cz>
1986
1987 PR gcov-profile/90380
1988 * gcov.c (handle_cycle): Do not support zero cycle count,
1989 it should not be possible.
1990 (path_contains_zero_cycle_arc): New function.
1991 (circuit): Ignore zero cycle arc counts.
1992
1993 2019-05-13 Martin Liska <mliska@suse.cz>
1994
1995 PR gcov-profile/90380
1996 * gcov.c (enum loop_type): Remove the enum and
1997 the operator.
1998 (handle_cycle): Assert that we should not reach
1999 a negative count.
2000 (circuit): Use loop_found instead of a tri-state loop_type.
2001 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
2002 happen.
2003
2004 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2005
2006 PR target/82920
2007 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
2008 (ix86_output_indirect_branch_via_reg): Use output mechanism
2009 accounting for __USER_LABEL_PREFIX__.
2010 (ix86_output_indirect_branch_via_push): Likewise.
2011 (ix86_output_function_return): Likewise.
2012 (ix86_output_indirect_function_return): Likewise.
2013
2014 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
2015
2016 * doc/md.texi: Document use of code attributes in rtx patterns.
2017 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
2018 * read-rtl.c (find_code): Split out search loops into...
2019 (maybe_find_code): ...this new function.
2020 (check_code_iterator): Make the error message more informative.
2021 (check_code_attribute): New function.
2022 (rtx_reader::rtx_alloc_for_name): Likewise.
2023 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
2024 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
2025 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
2026 <max_opp> directly as an rtx code instead of via a match_operator.
2027 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
2028 (<su>abd<mode>_3): Update accordingly.
2029
2030 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2031
2032 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
2033 is given, print the state of the EH "save world" computation for
2034 Darwin.
2035
2036 2019-05-11 Jakub Jelinek <jakub@redhat.com>
2037
2038 PR c++/59813
2039 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
2040 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2041
2042 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
2043
2044 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
2045 Use pinsrd for TARGET_SSE4_1.
2046 * config/i386/sse.md (movdi_to_sse): Ditto.
2047
2048 2019-05-10 Richard Biener <rguenther@suse.de>
2049
2050 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
2051 (do_rpo_vn): Initialize next_value_id.
2052
2053 2019-05-10 Martin Liska <mliska@suse.cz>
2054
2055 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2056 Fix plural form.
2057
2058 2019-05-10 Jakub Jelinek <jakub@redhat.com>
2059
2060 PR tree-optimization/90385
2061 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
2062 arguments of the exit phis.
2063
2064 PR c++/90383
2065 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
2066 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
2067 id->do_not_fold.
2068 (copy_tree_body_r): Likewise.
2069 (copy_fn): Set id.do_not_fold to true.
2070
2071 2019-05-10 Martin Liska <mliska@suse.cz>
2072
2073 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
2074 Reapply changes from r269790.
2075
2076 2019-05-10 Martin Liska <mliska@suse.cz>
2077
2078 PR middle-end/90340
2079 * doc/invoke.texi: New params.
2080 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
2081 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
2082 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2083 Use it.
2084 * tree-switch-conversion.h (struct jump_table_cluster):
2085 Likewise.
2086
2087 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
2088
2089 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
2090
2091 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
2092
2093 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
2094
2095 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
2096
2097 PR rtl-optimization/88879
2098 * sel-sched.c (sel_target_adjust_priority): Remove assert.
2099
2100 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
2101
2102 PR target/90405
2103 * config/arm/arm.c (callee_saved_reg_p): Move before
2104 thumb_find_work_register.
2105 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
2106 thumb_find_work_register. Only call df_get_live_out once.
2107 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
2108 (thumb_find_work_register): Use
2109 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
2110 algorithms to locate a spare call clobbered reg.
2111
2112 2019-05-09 Martin Liska <mliska@suse.cz>
2113
2114 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
2115 and MAX_EXPR in GIMPLE FE format.
2116
2117 2019-05-09 Martin Liska <mliska@suse.cz>
2118
2119 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
2120 * gimple-pretty-print.c (dump_gimple_bb_header):
2121 Dump BB count.
2122 (pp_cfg_jump): Dump edge probability.
2123 * profile-count.c (profile_quality_as_string): Simplify
2124 with a static array.
2125 (parse_profile_quality): New function.
2126 (profile_count::dump): Simplify with a static array.
2127 (profile_count::from_gcov_type): Add new argument.
2128 * profile-count.h (parse_profile_quality): Likewise.
2129 * predict.h (set_hot_bb_threshold): New.
2130 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2131 New param.
2132 * predict.c (get_hot_bb_threshold): Set from the new param.
2133 (set_hot_bb_threshold): New.
2134
2135 2019-05-09 Richard Biener <rguenther@suse.de>
2136
2137 PR tree-optimization/90395
2138 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
2139 rewrite vector stores that throw internally.
2140
2141 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
2142
2143 * cif-code.def (CHKP): Remove.
2144
2145 PR target/89221
2146 * configure.ac (--enable-frame-pointer): Disable by default for
2147 GNU systems.
2148 * configure: Regenerate.
2149
2150 2019-05-09 Alan Modra <amodra@gmail.com>
2151
2152 PR target/89271
2153 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
2154 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
2155 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
2156 cost for general <-> vsx when direct moves are available.
2157 Cost union classes at minimal cost for any reg in the class.
2158 Correct calculation for moves between vsx, float, and altivec.
2159 Don't return a low cost for moves between special regs. Don't
2160 use hard coded register numbers.
2161 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
2162 (rs6000_ira_change_pseudo_allocno_class): New function.
2163 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
2164 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
2165 alternatives.
2166 (movsi_internal1): Don't disparage vector alternatives.
2167 (mov<mode>_internal): Likewise, excepting alternative that
2168 will be split.
2169 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
2170 we <- b alternative.
2171
2172 2019-05-08 Jakub Jelinek <jakub@redhat.com>
2173
2174 PR c++/59813
2175 PR tree-optimization/89060
2176 * tree-ssa-live.h (live_vars_map): New typedef.
2177 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
2178 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
2179 (struct compute_live_vars_data): New type.
2180 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
2181 live_vars_at_stmt, destroy_live_vars): New functions.
2182 * tree-tailcall.c: Include tree-ssa-live.h.
2183 (live_vars, live_vars_vec): New global variables.
2184 (find_tail_calls): Perform variable life analysis before punting.
2185 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
2186 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
2187 member.
2188 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
2189 Perform variable life analysis to select variables that really need
2190 clobbers added.
2191 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
2192 instead set id->eh_landing_pad_dest and assert it is the same.
2193 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
2194
2195 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
2196 Richard Earnshaw <rearnsha@arm.com>
2197
2198 PR target/88167
2199 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
2200 function.
2201 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
2202 (thumb1_compute_save_core_reg_mask): Don't force a spare work
2203 register if both the epilogue and prologue can use call-clobbered
2204 regs.
2205 (thumb1_unexpanded_epilogue): Use
2206 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
2207 picking temporaries for restoring high regs to match that of the
2208 prologue where possible.
2209 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
2210 the list of work registers. Detect if the return address is still live
2211 at the end of the prologue and avoid using it for a work register if so.
2212 If the return address is not live, add LR to the list of pushable regs
2213 after the first pass.
2214
2215 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
2216
2217 PR tree-optimization/90078
2218 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
2219 (INFTY): Increase the value for infinite cost.
2220 (struct comp_cost): Promote type of members to int64_t.
2221 (infinite_cost): Don't set complexity in initialization.
2222 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
2223 overflows to infinite_cost.
2224 (adjust_setup_cost): Promote type of parameter and cost computation
2225 to int64_t.
2226 (struct ainc_cost_data, struct iv_ca): Promote type of member to
2227 int64_t.
2228 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
2229 cost computation to int64_t.
2230 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
2231 int64_t's format specifier in dump.
2232
2233 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
2234
2235 PR tree-optimization/90240
2236 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
2237 with respect to scaling factor pre-computed for each basic block.
2238 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
2239 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
2240 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
2241 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
2242 live range for array of loop's basic blocks. Cleanup aux field of
2243 loop's basic blocks.
2244
2245 2019-05-08 Jakub Jelinek <jakub@redhat.com>
2246
2247 PR tree-optimization/90356
2248 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
2249
2250 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
2251
2252 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
2253 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
2254 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
2255 (ix86_handle_option): Handle -mavx512bf16.
2256 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
2257 to extra_headers.
2258 * config/i386/avx512bf16vlintrin.h: New.
2259 * config/i386/avx512bf16intrin.h: New.
2260 * config/i386/cpuid.h (bit_AVX512BF16): New.
2261 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
2262 * config/i386/i386-builtin-types.def: Add new types.
2263 * config/i386/i386-builtin.def: Add new builtins.
2264 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2265 __AVX512BF16__.
2266 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
2267 (ix86_option_override_internal): Handle BF16.
2268 (ix86_valid_target_attribute_inner_p): Ditto.
2269 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
2270 * config/i386/i386-builtin.c (enum processor_features): Add
2271 F_AVX512BF16.
2272 (static const _isa_names_table isa_names_table): Ditto.
2273 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
2274 (PTA_AVX512BF16): Ditto.
2275 * config/i386/i386.opt: Add -mavx512bf16.
2276 * config/i386/immintrin.h: Include avx512bf16intrin.h
2277 and avx512bf16vlintrin.h.
2278 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
2279 avx512f_cvtneps2bf16_<mode><mask_name>,
2280 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
2281 * config/i386/subst.md (mask_half): Add new subst.
2282 * doc/invoke.texi: Document -mavx512bf16.
2283
2284 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
2285
2286 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
2287 Delete declaration.
2288 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
2289 (rs6000_debug_legitimize_reload_address): Delete.
2290 (rs6000_legitimize_reload_address_ptr): Delete.
2291 (rs6000_option_override_internal): Adjust.
2292 (mem_operand_gpr): Adjust comment.
2293 (legitimate_lo_sum_address_p): Ditto.
2294 (rs6000_legitimize_reload_address): Delete.
2295 (rs6000_debug_legitimize_reload_address): Delete.
2296 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
2297
2298 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
2299
2300 PR target/89765
2301 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2302 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
2303 to compute vector element selector for both constant and variable
2304 operands.
2305
2306 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
2307
2308 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
2309 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
2310 ashrdi3_cvt using SWI48 mode iterator.
2311
2312 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
2313
2314 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
2315 (aarch64_<su>abd<mode>_3): Likewise.
2316 (*aarch64_<su>abd<mode>_3): New define_insn.
2317 (<sur>sad<vsi2qi>): New define_expand.
2318 * config/aarch64/iterators.md: Added MAX_OPP attribute.
2319 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
2320 (build_vect_cond_expr): Likewise.
2321
2322 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
2323
2324 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
2325 clobbers outside of accessible_reg_set.
2326 * config/i386/i386.c (ix86_conditional_register_usage):
2327 Disable register sets by clearing corresponding bits in
2328 accessible_reg_set. Do not set corresponding bits in fixed_regs,
2329 call_used_regs and don't clear corresponding reg_names array members.
2330
2331 2019-05-07 Richard Biener <rguenther@suse.de>
2332
2333 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
2334 not specified still compute a comp_vectype for invariant
2335 compares.
2336
2337 2019-05-07 Richard Biener <rguenther@suse.de>
2338
2339 PR tree-optimization/90316
2340 * tree-ssa-pre.c (translate_vuse_through_block): When
2341 same_valid is NULL do not bother to search for a virtual
2342 PHI continuation.
2343 (phi_translate_1): When operands changed we cannot keep
2344 the same value-number so do not bother to ask whether
2345 that's possible from translate_vuse_through_block.
2346
2347 2019-05-07 Martin Liska <mliska@suse.cz>
2348
2349 * bitmap.c (bitmap_register): Come up with
2350 alloc_descriptor_max_uid and assign it for
2351 a new bitmap.
2352 (register_overhead): Use get_descriptor as
2353 a descriptor.
2354 (release_overhead): New.
2355 (bitmap_elem_to_freelist): Call it.
2356 (bitmap_elt_clear_from): Likewise.
2357 (bitmap_obstack_free): Likewise.
2358 (bitmap_move): Sensitively release memory.
2359 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
2360 (bitmap_initialize): Initialize alloc_descriptor to zero.
2361 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
2362
2363 2019-05-07 Richard Biener <rguenther@suse.de>
2364
2365 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
2366 we build a SLP node. Remove max_size and limiting.
2367 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
2368
2369 2019-05-07 Richard Biener <rguenther@suse.de>
2370
2371 PR tree-optimization/90316
2372 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
2373 limit by reference.
2374 (walk_non_aliased_vuses): Take walking limit argument.
2375 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
2376 walking if it is reached instead of just counting.
2377 (get_continuation_for_phi): Likewise.
2378 (walk_non_aliased_vuses): Likewise, instead of leaving counter
2379 limiting to the callback.
2380 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
2381 (vn_reference_lookup_3): Likewise.
2382 (vn_reference_lookup_pieces): Likewise.
2383 (vn_reference_lookup): Likewise.
2384 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
2385 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
2386 (avail_exprs_stack::lookup_avail_expr): Likewise.
2387
2388 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
2389
2390 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
2391 for comparaible types in the second direction even if first one
2392 hits incomparable type.
2393
2394 2019-05-07 Richard Biener <rguenther@suse.de>
2395
2396 PR lto/90369
2397 * lto-wrapper.c (debug_objcopy): Use the original filename
2398 including archive offset for the filename used for -save-temps.
2399
2400 2019-05-07 Li Jia He <helijia@linux.ibm.com>
2401
2402 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
2403 detection.
2404
2405 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2406
2407 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
2408 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
2409 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
2410 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
2411 (FRAME_POINTER_REGNUM): Change numbering.
2412 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
2413 (alt_reg_names): Adjust.
2414 (rs6000_conditional_register_usage): Don't mark hard register 64 as
2415 fixed.
2416 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
2417 (DWARF_FRAME_REGISTERS): Delete.
2418 (DWARF2_FRAME_REG_OUT): Fix whitespace.
2419 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2420 Adjust.
2421 (REG_ALLOC_ORDER): Adjust.
2422 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
2423 (REG_CLASS_CONTENTS): Adjust.
2424 (RETURN_ADDR_RTX): Change comment.
2425 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
2426 instead of 67.
2427 (REGISTER_NAMES): Adjust.
2428 (ADDITIONAL_REGISTER_NAMES): Adjust.
2429 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
2430
2431 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2432
2433 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
2434 Delete.
2435 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
2436 (DWARF_FRAME_REGISTERS): Adjust.
2437 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2438 Adjust.
2439 (REG_ALLOC_ORDER): Adjust.
2440 (enum reg_class): Delete SPR_REGS.
2441 (REG_CLASS_NAMES): Delete SPR_REGS.
2442 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
2443 (REGISTER_NAMES): Adjust.
2444 (ADDITIONAL_REGISTER_NAMES): Adjust.
2445 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
2446 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
2447 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
2448 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
2449 (htm_spr_regno): Delete.
2450 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
2451 argument.
2452 (rs6000_dbx_register_number): Adjust.
2453
2454 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2455
2456 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
2457
2458 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2459
2460 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
2461 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
2462
2463 2019-05-06 Jakub Jelinek <jakub@redhat.com>
2464
2465 PR tree-optimization/88709
2466 PR tree-optimization/90271
2467 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
2468 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
2469 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
2470 variable.
2471 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
2472 of the store merging group is larger than
2473 PARAM_STORE_MERGING_MAX_SIZE parameter.
2474 (split_group): Add bzero_first argument. If set, always emit first
2475 the first store which must be = {} of the whole area and then for the
2476 rest of the stores consider all zero bytes as paddings.
2477 (imm_store_chain_info::output_merged_store): Check if first store
2478 is = {} of the whole area and if yes, determine which setting of
2479 bzero_first for split_group gives smaller number of stores. Adjust
2480 split_group callers.
2481 (lhs_valid_for_store_merging_p): Allow decls.
2482 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
2483 no elts.
2484 (pass_store_merging::process_store): Likewise.
2485
2486 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
2487
2488 PR target/89424
2489 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2490 handling of V1TImode.
2491
2492 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
2493
2494 PR target/89221
2495 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
2496 and enable_frame_pointer ...
2497 * configure.ac: ... here. Update help strings for
2498 --enable-frame-pointer.
2499 * configure: Regenerate.
2500 * config/i386/i386-options.c (ix86_option_override_internal): Remove
2501 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
2502 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
2503 (USE_X86_64_FRAME_POINTER): Ditto.
2504
2505 2019-05-06 Martin Liska <mliska@suse.cz>
2506
2507 * config.gcc: Append to target_gtfiles and fix indentation.
2508
2509 2019-05-06 Richard Biener <rguenther@suse.de>
2510
2511 PR tree-optimization/90358
2512 * tree-vect-stmts.c (get_group_load_store_type): Properly
2513 detect unused upper half of load.
2514 (vectorizable_load): Likewise.
2515
2516 2019-05-06 Richard Biener <rguenther@suse.de>
2517
2518 PR tree-optimization/88828
2519 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
2520 (simplify_vector_constructor): ...here. Handle constants in
2521 the constructor.
2522
2523 2019-05-06 Richard Biener <rguenther@suse.de>
2524
2525 PR tree-optimization/90328
2526 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
2527 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
2528 is valid in the loop nest before using it.
2529 (initialize_data_dependence_relation): Adjust.
2530 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
2531 loop as loop-nest to dr_may_alias_p.
2532
2533 2019-05-06 Richard Biener <rguenther@suse.de>
2534
2535 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
2536
2537 2019-05-06 Richard Biener <rguenther@suse.de>
2538
2539 PR tree-optimization/90316
2540 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
2541 compute target on demand.
2542 (get_continuation_for_phi): Remove code walking stmts to
2543 get to a target virtual operand which could end up being
2544 quadratic.
2545
2546 2019-05-06 Martin Liska <mliska@suse.cz>
2547
2548 PR sanitizer/90312
2549 * config/i386/i386-options.c (ix86_option_override_internal): Error only
2550 when -mabi is selected to a non-default version.
2551
2552 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
2553 Martin Liska <mliska@suse.cz>
2554
2555 * Makefile.in: Add lto-dump.texi.
2556 * cgraph.h: Add new functions get_visibility_string and
2557 get_symtab_type_string.
2558 * doc/gcc.texi: Include lto-dump section.
2559 * doc/lto-dump.texi: New file.
2560 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
2561 (parse_dump_option): Factor out this function.
2562 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
2563 (parse_dump_option): Export the function.
2564 * symtab.c (symtab_node::get_visibility_string): New function.
2565 (symtab_node::get_symtab_type_string): Likewise.
2566
2567 2019-05-06 Martin Liska <mliska@suse.cz>
2568
2569 * config/i386/i386-builtins.c: New file.
2570 * config/i386/i386-builtins.h: New file.
2571 * config/i386/i386-expand.c: New file.
2572 * config/i386/i386-expand.h: New file.
2573 * config/i386/i386-features.c: New file.
2574 * config/i386/i386-features.h: New file.
2575 * config/i386/i386-options.c: New file.
2576 * config/i386/i386-options.h: New file.
2577 * config.gcc: Add new files into extra_objs and
2578 target_gtfiles.
2579 * config/i386/i386.c: Split content of the file
2580 into newly introduced files.
2581 * config/i386/i386.h: Declare common variables
2582 and macros.
2583 * config/i386/t-i386: Define dependencies for new files.
2584
2585 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
2586
2587 PR target/89400
2588 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
2589 Restrict 'all' variant to 32-bit configurations.
2590 (unaligned_loadhiu): Likewise.
2591 (unaligned_storehi): Likewise.
2592 (unaligned_storesi): Likewise.
2593 (unaligned_loadhis): Disable when compiling for thumb1.
2594
2595 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
2596
2597 PR tree-optimization/90269
2598 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
2599 Ignore clobbers.
2600
2601 2019-05-03 Martin Liska <mliska@suse.cz>
2602
2603 * hash-map.h: Add is_empty function.
2604 * hash-set.h: Likewise.
2605 * hash-table.h: Likewise.
2606 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
2607 elements () == 0 (and similar usages).
2608 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
2609 * gimplify.c (gimplify_bind_expr): Likewise.
2610 (gimplify_switch_expr): Likewise.
2611 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
2612 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
2613 * postreload-gcse.c (dump_hash_table): Likewise.
2614 (gcse_after_reload_main): Likewise.
2615 * predict.c (combine_predictions_for_bb): Likewise.
2616 * tree-parloops.c (reduction_phi): Likewise.
2617 (separate_decls_in_region): Likewise.
2618 (transform_to_exit_first_loop): Likewise.
2619 (gen_parallel_loop): Likewise.
2620 (gather_scalar_reductions): Likewise.
2621 (try_create_reduction_list): Likewise.
2622 * var-tracking.c (dump_vars): Likewise.
2623 (emit_notes_for_changes): Likewise.
2624 (vt_emit_notes): Likewise.
2625
2626 2019-05-03 Richard Biener <rguenther@suse.de>
2627
2628 PR tree-optimization/90316
2629 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
2630 before running VN.
2631
2632 2019-05-03 Richard Biener <rguenther@suse.de>
2633
2634 * tree-vect-stmts.c (get_group_load_store_type): Avoid
2635 peeling for gaps by loading only lower halves of vectors
2636 if possible.
2637 (vectorizable_load): Likewise.
2638
2639 2019-05-03 Richard Biener <rguenther@suse.de>
2640
2641 PR middle-end/89518
2642 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
2643
2644 2019-05-03 Richard Biener <rguenther@suse.de>
2645
2646 PR middle-end/87314
2647 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
2648 Handle STRING_CST vs DECL or STRING_CST.
2649
2650 2019-05-03 Richard Biener <rguenther@suse.de>
2651
2652 PR tree-optimization/88963
2653 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
2654 vector loads feeding only BIT_FIELD_REFs to component
2655 loads. Rewrite stores fed by CONSTRUCTORs to component
2656 stores.
2657
2658 2019-05-03 Jakub Jelinek <jakub@redhat.com>
2659
2660 * opts.h (finish_options): Remove lang_mask argument.
2661 (print_help, help_option_argument): Declare.
2662 * opts.c (print_help): Remove forward declaration, no longer static.
2663 (finish_options): Remove lang_mask argument, don't call print_help
2664 here.
2665 * opts-global.c (decode_options): Adjust finish_option caller, call
2666 print_help here.
2667
2668 PR tree-optimization/90303
2669 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
2670 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
2671
2672 2019-05-03 Richard Biener <rguenther@suse.de>
2673
2674 PR tree-optimization/89698
2675 * gimple-fold.c (canonicalize_constructor_val): Early out
2676 for constants, handle unfolded INTEGER_CSTs as they appear in
2677 C++ virtual table ctors.
2678
2679 2019-05-03 Richard Biener <rguenther@suse.de>
2680
2681 * passes.c (execute_function_todo): Remove dead code.
2682
2683 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
2684
2685 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
2686 the internal register number, for any "real" register.
2687
2688 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
2689
2690 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
2691 correct numbers for TFHAR, TFIAR, TEXASR.
2692
2693 2019-05-02 Richard Biener <rguenther@suse.de>
2694
2695 PR tree-optimization/89653
2696 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
2697 update-address-taken before the pass.
2698 * passes.def (pass_tree_loop_init): Put comment before it.
2699
2700 2019-05-02 Richard Biener <rguenther@suse.de>
2701
2702 PR tree-optimization/89509
2703 * tree-ssa-structalias.c (compute_dependence_clique): Look
2704 at the first subvar when determining whether it is restrict.
2705
2706 2019-05-02 Richard Biener <rguenther@suse.de>
2707
2708 PR tree-optimization/90273
2709 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
2710 useless debug stmts.
2711
2712 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
2713
2714 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
2715 ACLE branch.
2716 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
2717 SVE ACLE branch.
2718 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
2719 VEC_COND_EXPR be inserted to emulate a conditional internal function.
2720 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
2721 (vectorizable_reduction): Use the functions above to vectorize in a
2722 fully masked loop codes that don't have a conditional internal
2723 function.
2724
2725 2019-05-02 Martin Liska <mliska@suse.cz>
2726
2727 * cgraphclones.c: Call valid_attribute_p with 1 for
2728 target_clone.
2729 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
2730 it's for target attribute.
2731 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
2732 Add new boolean argument.
2733 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2734 Likewise.
2735 (ix86_valid_target_attribute_tree): Pass target_clone_attr
2736 to ix86_valid_target_attribute_inner_p.
2737 (ix86_valid_target_attribute_p): Pass flags argument to
2738 ix86_valid_target_attribute_inner_p.
2739 (get_builtin_code_for_version): Use 0 as it's target attribute.
2740
2741 2019-05-02 Martin Liska <mliska@suse.cz>
2742
2743 * gcc.c (process_command): Add dummy file only
2744 if n_infiles == 0.
2745 * opts-global.c (decode_options): Pass lang_mask.
2746 * opts.c (print_help): New function.
2747 (finish_options): Print --help if help_option_argument
2748 is set.
2749 (common_handle_option): Factor out content of OPT__help_
2750 into print_help.
2751 * opts.h (finish_options): Add new argument.
2752
2753 2019-05-02 Martin Liska <mliska@suse.cz>
2754
2755 PR target/88809
2756 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
2757 With -minline-all-stringops use inline expansion using 4B loop.
2758 * doc/invoke.texi: Document the change of
2759 -minline-all-stringops.
2760
2761 2019-05-01 Jeff Law <law@redhat.com>
2762
2763 PR tree-optimization/88797
2764 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
2765 PHI feeds a conditional on the RHS of an assignment.
2766
2767 2019-04-30 Andrew Waterman <andrew@sifive.com>
2768 Jim Wilson <jimw@sifive.com>
2769
2770 * config/riscv/constraints.md (L): New.
2771 * config/riscv/predicates.md (lui_operand): New.
2772 (sfb_alu_operand): New.
2773 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
2774 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
2775 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
2776 * config/riscv/risc.md (type): Add sfb_alu.
2777 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
2778 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
2779 (branch_zero<mode>): Delete.
2780 (mov<mode>cc): New.
2781 (mov<GPR:mode><X:mode>cc): Likewise.
2782 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
2783
2784 2019-04-30 Nathan Sidwell <nathan@acm.org>
2785
2786 * tree.h (MARK_TS_EXP): New.
2787
2788 2019-04-30 Martin Liska <mliska@suse.cz>
2789
2790 * opts.c (enable_warning_as_error): Provide hints
2791 for unknown options.
2792
2793 2019-04-30 Martin Liska <mliska@suse.cz>
2794
2795 PR debug/90288
2796 * doc/invoke.texi: Add missing dash for gas-locview-support
2797 and gno-as-locview-support.
2798
2799 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2800
2801 PR target/89093
2802 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
2803 whitespace at the start of target attribute string.
2804
2805 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2806
2807 PR target/86538
2808 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
2809 Define __ARM_FEATURE_ATOMICS.
2810
2811 2019-04-30 Martin Liska <mliska@suse.cz>
2812
2813 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
2814 into built_in_function enum. Remove code for endp == 2 and
2815 use BUILT_IN_* constants.
2816 (gimple_fold_builtin): Call the function with fcode.
2817
2818 2019-04-30 Martin Liska <mliska@suse.cz>
2819
2820 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
2821 DECL_FUNCTION_CODE into ix86_builtins enum before
2822 the switch statement.
2823
2824 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2825
2826 PR tree-optimization/89475
2827 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
2828 calls.
2829
2830 2019-04-30 Martin Liska <mliska@suse.cz>
2831
2832 PR translation/90274
2833 * opts.c (print_filtered_help): Wrap string in _(...).
2834
2835 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
2836
2837 PR tree-optimization/90240
2838 Revert:
2839 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2840
2841 PR tree-optimization/90078
2842 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
2843 checks for infinite_cost overflow.
2844
2845 2019-04-29 Jeff Law <law@redhat.com>
2846
2847 * passes.def: Move -Wrestrict pass after copy propagation.
2848
2849 2019-04-29 Maya Rashish <coypu@sdf.org>
2850
2851 * config.gcc (default_gnu_indirect_function): Default to yes
2852 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
2853 sparc*-*-netbsd*, x86_64-*-netbsd*.
2854
2855 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
2856
2857 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
2858 where cond2 is NE_EXPR.
2859 (is_value_included_in): Update comment.
2860
2861 2019-04-29 Richard Biener <rguenther@suse.de>
2862
2863 PR tree-optimization/90278
2864 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
2865 EH on comparison simplification.
2866
2867 2019-04-29 Jason Merrill <jason@redhat.com>
2868
2869 PR c++/82081 - tail call optimization breaks noexcept
2870 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
2871 nothrow function to a might-throw function into a tail call.
2872
2873 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
2874
2875 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
2876 (DDR_INNER_LOOP): Likewise.
2877 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
2878 (initialize_data_dependence_relation): Likewise.
2879 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
2880
2881 2019-04-29 Jakub Jelinek <jakub@redhat.com>
2882
2883 PR rtl-optimization/90257
2884 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
2885 return value.
2886
2887 Revert the revert:
2888 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
2889
2890 PR target/90178
2891 Revert:
2892 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
2893
2894 Revert the revert:
2895 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
2896
2897 Revert:
2898 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
2899
2900 * lra-spills.c (lra_final_code_change): Remove useless move insns.
2901
2902 2019-04-29 Richard Biener <rguenther@suse.de>
2903
2904 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
2905 rhs issue a reset.
2906
2907 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
2908
2909 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
2910 varasm.h, and netbsd-protos.h.
2911
2912 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
2913
2914 PR target/89261
2915 * config/i386/i386-protos.h (ix86_data_alignment): Change
2916 the second argument type to unsigned int.
2917 * config/i386/i386.c (ix86_data_alignment): Change "align"
2918 argument type to unsigned int.
2919
2920 2019-04-27 Martin Liska <mliska@suse.cz>
2921
2922 PR middle-end/90258
2923 * opt-suggestions.c (option_proposer::build_option_suggestions):
2924 When get_valid_option_values returns empty values, add the
2925 misspelling candidate.
2926
2927 2019-04-26 Jim Wilson <jimw@sifive.com>
2928
2929 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
2930 parameter.
2931 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
2932 Pass orig_mode to riscv_build_integer.
2933 (riscv_split_integer): Pass mode to riscv_move_integer.
2934 (riscv_legitimize_const_move): Likewise.
2935 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
2936 promoted_mode. Replace force_reg call with code to load constant into
2937 promoted reg and then subreg it for the store.
2938 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
2939 riscv_move_integer.
2940
2941 2018-04-26 Eugene Sharygin <eush@ispras.ru>
2942
2943 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
2944 corrupt codes.
2945
2946 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
2947
2948 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
2949 commentary about the encoding of precision.
2950
2951 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
2952
2953 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
2954 * config/i386/t-freebsd64: New file.
2955 * config.gcc: Add the t-freebsd64 for multilib support.
2956
2957 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
2958
2959 * doc/extend.texi (vector_size): Add missing comma after @xref.
2960
2961 2019-04-25 Jakub Jelinek <jakub@redhat.com>
2962
2963 * BASE-VER: Set to 10.0.0.
2964
2965 2019-04-25 Richard Biener <rguenther@suse.de>
2966
2967 PR middle-end/89765
2968 * gimplify.c (gimplify_expr): Avoid turning a lvalue
2969 VIEW_CONVERT_EXPR into one operating on an rvalue.
2970
2971 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
2972
2973 PR target/89929
2974 * config/i386/i386.c (feature_priority): Moved to file scope.
2975 (processor_features): Likewise.
2976 (processor_model): Likewise.
2977 (_arch_names_table): Likewise.
2978 (arch_names_table): Likewise.
2979 (_feature_list): Removed.
2980 (feature_list): Likewise.
2981 (_isa_names_table): Moved to file scope. Add priority.
2982 (isa_names_table): Likewise.
2983 (get_builtin_code_for_version): Replace feature_list with
2984 isa_names_table. Update error message for P_ZERO priority.
2985
2986 2019-04-25 Richard Biener <rguenther@suse.de>
2987
2988 * tree-pass.h (make_pass_phi_only_cprop): Remove.
2989 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
2990
2991 2019-04-24 Jeff Law <law@redhat.com>
2992
2993 PR tree-optimization/90037
2994 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
2995 * passes.def: Replace all instance of phi-only cprop with the
2996 lattice propagator. Move propagation pass from after erroneous
2997 path isolation to before erroneous path isolation.
2998 * tree-ssa-phionlycprop.c: Remove.
2999
3000 2019-04-24 Richard Biener <rguenther@suse.de>
3001
3002 PR middle-end/90213
3003 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
3004 by size and BITS_PER_UNIT on poly-wide-ints.
3005
3006 2019-04-25 Richard Biener <rguenther@suse.de>
3007
3008 PR middle-end/90194
3009 * match.pd: Add pattern to simplify view-conversion of an
3010 empty constructor.
3011
3012 2019-04-24 Clement Chigot <clement.chigot@atos.net>
3013
3014 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
3015 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
3016 for Go on 32 bit AIX.
3017 * config/rs6000/aix72.h: Likewise.
3018
3019 2019-04-24 Jakub Jelinek <jakub@redhat.com>
3020
3021 PR target/90193
3022 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
3023 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
3024
3025 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
3026
3027 PR target/89952
3028 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
3029 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
3030 for restored hard frame pointer.
3031 (s390_sched_dependencies_evaluation): Implement new target hook.
3032 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
3033
3034 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
3035
3036 * config/arc/arc-options.def: Fix typos and spelling mistakes.
3037 * config/arc/arc.c (arc_init): Cleanup warning message.
3038 (arc_override_options): Likewise.
3039
3040 2019-04-24 Jakub Jelinek <jakub@redhat.com>
3041
3042 PR target/90187
3043 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
3044 a register if both if_true and if_false are MEMs.
3045
3046 PR tree-optimization/90208
3047 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
3048 after labels of new_bb, not before them.
3049
3050 PR tree-optimization/90211
3051 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
3052 which are not SSA_NAMEs.
3053
3054 2018-04-23 Sudakshina Das <sudi.das@arm.com>
3055
3056 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
3057 AArch64.
3058 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
3059
3060 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
3061
3062 PR rtl-optimization/87979
3063 * modulo-sched.c (sms_schedule): Start ii value "mii" should
3064 not equal zero.
3065
3066 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
3067
3068 PR rtl-optimization/84032
3069 * modulo-sched.c (ps_insn_find_column): Change condition so that
3070 branch will always be the last insn in a row inside partial
3071 schedule.
3072
3073 2019-04-23 Richard Biener <rguenther@suse.de>
3074
3075 PR debug/90131
3076 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
3077 dest_single_pred_p argument.
3078 (remove_forwarder_block): Adjust.
3079 (remove_forwarder_block_with_phi): Likewise.
3080
3081 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3082 Bernd Edlinger <bernd.edlinger@hotmail.de>
3083 Jakub Jelinek <jakub@redhat.com>
3084
3085 PR target/89093
3086 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
3087 if used with general-regs-only.
3088 (arm_conditional_register_usage): Don't add non-general regs if
3089 general-regs-only.
3090 (arm_valid_target_attribute_rec): Handle general-regs-only.
3091 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
3092 general-regs-only.
3093 (TARGET_HARD_FLOAT_SUB): Define.
3094 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
3095 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
3096 (TARGET_REALLY_IWMMXT2): Likewise.
3097 * config/arm/arm.opt: Add -mgeneral-regs-only.
3098 * doc/extend.texi: Document ARM general-regs-only target.
3099 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
3100
3101 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3102
3103 PR tree-optimization/90078
3104 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3105 checks for infinite_cost overflow.
3106
3107 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3108
3109 PR tree-optimization/90021
3110 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
3111 and check univariate against it.
3112 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
3113 * tree-data-ref.c (add_other_self_distances): Pass new argument.
3114
3115 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
3116
3117 PR target/90178
3118 Revert:
3119 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
3120
3121 Revert the revert:
3122 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
3123
3124 Revert:
3125 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
3126
3127 * lra-spills.c (lra_final_code_change): Remove useless move insns.
3128
3129 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
3130
3131 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
3132 names using operand format, rather than hard-wired.
3133 (speculation_barrier): Likewise.
3134
3135 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
3136
3137 PR tree-optimization/88055
3138 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
3139 (gen_one_condition): Use it if !HONOR_NANS.
3140
3141 2019-04-19 Jakub Jelinek <jakub@redhat.com>
3142
3143 PR middle-end/90139
3144 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
3145 assign_temp instead of gen_reg_rtx.
3146
3147 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
3148
3149 PR translation/90118
3150 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3151 Add missing space before %<.
3152
3153 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
3154
3155 PR rtl-optimization/87871
3156 * ira-lives.c (make_object_dead): Don't add conflicts to
3157 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
3158
3159 2019-04-18 Martin Sebor <msebor@redhat.com>
3160
3161 PR middle-end/89797
3162 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
3163 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
3164 assuming type size fits in SHWI.
3165
3166 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
3167
3168 PR ipa/85051
3169 * ipa-inline.c (flatten_function): New parameter UPDATE.
3170 (ipa_inline, early_inliner): Use it.
3171
3172 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
3173
3174 * fold-const.c (int_const_binop): Return early on failure.
3175
3176 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
3177
3178 PR middle-end/85164
3179 * combine.c (force_int_to_mode): Cast the argument rather than
3180 the result of known_alignment.
3181 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
3182
3183 2019-04-18 Richard Biener <rguenther@suse.de>
3184
3185 PR debug/90131
3186 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
3187 out from ...
3188 (remove_forwarder_block): ... here.
3189 (remove_forwarder_block_with_phi): Also move debug stmts here.
3190
3191 2019-04-18 Jakub Jelinek <jakub@redhat.com>
3192
3193 PR translation/79183
3194 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
3195 inform where appropriate.
3196
3197 2019-04-18 Richard Biener <rguenther@suse.de>
3198
3199 * tree.c (get_qualified_type): Put found type variants at the
3200 head of the variant list.
3201
3202 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3203
3204 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
3205
3206 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
3207
3208 PR target/90125
3209 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
3210 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
3211 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
3212 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
3213 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
3214
3215 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
3216
3217 * ira-conflicts.c (print_allocno_conflicts): Always print something,
3218 even for allocno's with no conflicts.
3219 (print_conflicts): Print an extra newline.
3220
3221 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3222
3223 * auto-inc-dec.c (attempt_change): Set the alignment of the
3224 temporary memory to that of the original.
3225
3226 2019-04-17 Joao Moreira <jmoreira@suse.de>
3227
3228 * targhooks.c (default_print_patchable_function_entry): Emit
3229 __patchable_function_entries section with writable flags to allow
3230 relocation resolution.
3231
3232 2019-04-17 Jonny Grant <jg@jguk.org>
3233
3234 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
3235
3236 2019-04-17 Jakub Jelinek <jakub@redhat.com>
3237
3238 PR middle-end/90095
3239 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
3240 on lowpart SUBREGs.
3241
3242 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
3243
3244 * config/arc/arc.c (arc_init): Format diagnostic string.
3245 (arc_override_options): Likewise.
3246 (check_if_valid_regno_const): Likewise.
3247 (arc_reorg): Likewise.
3248
3249 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3250
3251 PR target/17108
3252 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
3253 name.
3254 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
3255 name.
3256 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
3257 (*movdi_update1): Use Pmode.
3258 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
3259 (movdi_<mode>_update_stack): Rename to ...
3260 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
3261 use Pmode.
3262 (*movsi_update1): Use Pmode.
3263 (*movsi_update2): Use Pmode.
3264 (movsi_update): Rename to ...
3265 (movsi_<mode>_update): ... this. Use Pmode.
3266 (movsi_update_stack): Fix condition.
3267 (*movhi_update1): Use Pmode. Fix argument to
3268 avoiding_indexed_address_p.
3269 (*movhi_update2): Ditto.
3270 (*movhi_update3): Ditto.
3271 (*movhi_update4): Ditto.
3272 (*movqi_update1): Ditto.
3273 (*movqi_update2): Ditto.
3274 (*movqi_update3): Ditto.
3275 (*movsf_update1, *movdf_update1): Merge, rename to...
3276 (*mov<mode>_update1): This. Use Pmode. Fix argument to
3277 avoiding_indexed_address_p. Add "size" attribute.
3278 (*movsf_update2, *movdf_update2): Merge, rename to...
3279 (*mov<mode>_update2): This. Ditto.
3280 (*movsf_update3): Use Pmode. Fix argument to
3281 avoiding_indexed_address_p.
3282 (*movsf_update4): Ditto.
3283 (allocate_stack): Simplify condition. Adjust pattern names.
3284
3285 2019-04-17 Jakub Jelinek <jakub@redhat.com>
3286
3287 PR target/89093
3288 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
3289 whitespace at the start of target attribute string.
3290
3291 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
3292
3293 PR target/84369
3294 * config/rs6000/power9.md: Add store forwarding bypass.
3295
3296 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
3297
3298 PR debug/89528
3299 * valtrack.c (dead_debug_insert_temp): Reset debug references
3300 to the return value of a call being removed.
3301
3302 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3303
3304 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
3305 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
3306 implement target hook.
3307 (arc_memory_move_cost): New function.
3308 (TARGET_REGISTER_MOVE_COST): Define.
3309 (TARGET_MEMORY_MOVE_COST): Likewise.
3310 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
3311 (MEMORY_MOVE_COST): Likewise.
3312
3313 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3314
3315 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
3316 (sibcall_value_insn): Likewise.
3317 * config/arc/constraints.md (Rs5): Remove.
3318
3319 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3320
3321 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
3322 for last two fake registers.
3323 (arc_conditional_register_usage): Make sure fake frame and arg
3324 pointer regs are in general regs class.
3325 (FRAME_POINTER_MASK): Remove.
3326 (RETURN_ADDR_MASK): Remove.
3327 (arc_must_save_register): Use hard frame regnum.
3328 (frame_restore_reg): Use hard_frame_pointer_rtx.
3329 (arc_save_callee_saves): Likewise.
3330 (arc_restore_callee_saves): Likewise.
3331 (arc_save_callee_enter): Likewise.
3332 (arc_restore_callee_leave): Likewise.
3333 (arc_save_callee_milli): Likewise.
3334 (arc_eh_return_address_location): Likewise.
3335 (arc_check_multi): Use hard frame regnum.
3336 (arc_can_eliminate): Likewise.
3337 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
3338 for register allocator.
3339 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
3340 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
3341 (FRAME_POINTER_REGNUM): Change it to a fake register.
3342 (HARD_FRAME_POINTER_REGNUM): Defined.
3343 (ARG_POINTER_REGNUM): Change it to a new fake register.
3344 (ELIMINABLE_REGS): Update.
3345 (REGISTER_NAMES): Update names.
3346 * config/arc/arc.md (LP_START): Remove.
3347 (LP_END): Likewise.
3348 (shift_si3_loop): Update pattern.
3349
3350 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3351
3352 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
3353 to avoid delay slot scheduling.
3354 (arc_must_save_register): Don't save SP.
3355 * config/arc/arc.md (stack_tie): Remove.
3356 (UNSPEC_ARC_STKTIE): Likewise.
3357
3358 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
3359 Shiva Chen <shiva0217@gmail.com>
3360
3361 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
3362 code gen with large shift amount.
3363
3364 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
3365
3366 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
3367 subreg.
3368
3369 2019-04-16 Jakub Jelinek <jakub@redhat.com>
3370
3371 PR target/90096
3372 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
3373 print -m64/-mx32/-m32 if it is true.
3374 (ix86_debug_options, ix86_function_specific_print): Pass true as
3375 ADD_ABI_P to ix86_target_string.
3376 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
3377 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
3378 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
3379
3380 PR rtl-optimization/90082
3381 * dce.c (can_delete_call): New function.
3382 (deletable_insn_p, mark_insn): Use it.
3383
3384 PR tree-optimization/90090
3385 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
3386 throw internally.
3387 (is_division_by_square): Likewise. Formatting fix.
3388
3389 2019-04-16 Richard Biener <rguenther@suse.de>
3390
3391 PR tree-optimization/56049
3392 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
3393 equality check if alias-set zero will prevail.
3394
3395 2019-04-15 Jeff Law <law@redhat.com>
3396
3397 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
3398 size and alignment as unsigned.
3399
3400 2019-04-15 Richard Biener <rguenther@suse.de>
3401
3402 PR debug/90074
3403 * tree-loop-distribution.c (destroy_loop): Preserve correct
3404 debug info.
3405
3406 2019-04-15 Richard Biener <rguenther@suse.de>
3407
3408 PR tree-optimization/90071
3409 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
3410 abnormal operands from def stmts.
3411
3412 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
3413
3414 PR rtl-optimization/89794
3415 * combine.c (count_auto_inc): New function.
3416 (try_combine): Count how many auto_inc expressions there were in the
3417 original instructions. Ensure we have the same number in the new
3418 instructions. Remove the code that tried to ensure auto_inc side
3419 effects on i1 and i0 are not lost.
3420
3421 2019-04-15 Richard Biener <rguenther@suse.de>
3422
3423 PR ipa/88936
3424 * tree.h (auto_var_p): Declare.
3425 * tree.c (auto_var_p): New function, split out from ...
3426 (auto_var_in_fn_p): ... here.
3427 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
3428 member.
3429 (new_var_info): Initialize it.
3430 (set_uids_in_ptset): Also set the shadow variable uid if required.
3431 (ipa_pta_execute): Postprocess points-to solutions assigning
3432 shadow variable uids for locals that may reach their containing
3433 function recursively.
3434 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
3435 assert but instead check whether the points-to solution is
3436 a singleton.
3437
3438 2019-04-15 Martin Jambor <mjambor@suse.cz>
3439
3440 PR ipa/pr89693
3441 * cgraph.c (clone_of_p): Loop over clone chain for each step in
3442 the thunk chain.
3443
3444 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
3445
3446 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
3447
3448 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
3449 Kito Cheng <kito.cheng@gmail.com>
3450 Shiva Chen <shiva0217@gmail.com>
3451
3452 * config/nds32/nds32-md-auxiliary.c
3453 (nds32_legitimize_pic_address): Use new PIC pattern.
3454 (nds32_legitimize_tls_address): Use new TLS pattern.
3455 (nds32_output_symrel): New.
3456 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
3457 (nds32_alloc_relax_group_id): Ditto.
3458 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
3459 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
3460 relax_group_id.
3461 (nds32_group_tls_insn): Ditto.
3462 (nds32_group_float_insns): Ditto.
3463 * config/nds32/nds32.md (tls_le): New.
3464 (sym_got): Ditto.
3465
3466 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
3467
3468 * configure: Add nds32 target for dwarf2 debug_line checking.
3469 * configure.ac: Regenerated.
3470
3471 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
3472
3473 PR lto/89358
3474 * ipa-devirt.c (skip_in_fields_list_p): New.
3475 (odr_types_equivalent_p): Use it.
3476
3477 2019-04-13 Jakub Jelinek <jakub@redhat.com>
3478
3479 PR target/89093
3480 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
3481 instead of strncmp when checking for thumb and arm. Formatting fixes.
3482
3483 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
3484
3485 * doc/install.texi: Document --with-target-system-zlib.
3486
3487 2019-04-12 Martin Sebor <msebor@redhat.com>
3488
3489 PR c/88383
3490 PR c/89288
3491 PR c/89798
3492 PR c/89797
3493 * targhooks.c (default_vector_alignment): Avoid assuming
3494 argument fits in SHWI.
3495 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
3496 a shift expression.
3497 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
3498
3499 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3500
3501 PR rtl-optimization/89965
3502 * dce.c: Include rtl-iter.h.
3503 (struct check_argument_load_data): New type.
3504 (check_argument_load): New function.
3505 (find_call_stack_args): Check for loads from stack slots still tracked
3506 in sp_bytes and punt if any is found.
3507
3508 * config/mips/loongson-mmiintrin.h: Fix up #error message.
3509
3510 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
3511
3512 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
3513 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
3514
3515 2019-04-12 Martin Liska <mliska@suse.cz>
3516
3517 PR middle-end/89970
3518 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
3519 in error message.
3520 (separate_attrs): Handle multiple 'default's.
3521 (expand_target_clones): Rework error handling code.
3522
3523 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
3524
3525 PR target/87532
3526 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
3527 mode of vector rather than mode of destination for move instruction.
3528 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
3529 Use QI inner mode with V16QI vector mode.
3530
3531 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3532
3533 PR target/52726
3534 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
3535 "invalid %%t operand" in output_operand_lossage message.
3536
3537 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
3538
3539 * config/s390/predicates.md (permute_pattern_operand): New
3540 predicate.
3541 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
3542 operand for the permute pattern.
3543 ("*vec_perm<mode>"): New insn definition.
3544 ("bswap<mode>"): Generate the permute pattern operand in the
3545 expander and perform the operand reloads for pre arch13 level
3546 already.
3547 ("*bswap<mode>_emu"): Rename to ...
3548 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
3549 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
3550 Add the USE operand for the permute pattern.
3551 ("*vec_set_bswap_vec<mode>"): Likewise.
3552
3553 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3554
3555 PR c/89946
3556 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
3557 and gcc_unreachable if it fails, just call tree_to_uhwi which
3558 verifies that too. Test TREE_CHAIN instead of list_length > 1.
3559 Start warning message with a lower-case letter. Formatting fixes.
3560
3561 PR rtl-optimization/90026
3562 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
3563 successors, look for BARRIERs inside of the whole BB_FOOTER chain
3564 rather than just at the start of it. If e->src BB_FOOTER is not NULL
3565 in cfglayout mode, use emit_barrier_after_bb.
3566
3567 2018-04-11 Steve Ellcey <sellcey@marvell.com>
3568
3569 PR rtl-optimization/87763
3570 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
3571 New Instruction.
3572
3573 2019-04-11 Tom de Vries <tdevries@suse.de>
3574
3575 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
3576 max macro using statement expression.
3577
3578 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
3579
3580 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
3581 * xcoffout.c (xcoff_private_rodata_section_name): Define.
3582 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
3583 read_only_private_data_section using xcoff_private_rodata_section_name.
3584 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
3585
3586 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
3587
3588 PR target/90016
3589 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
3590
3591 2019-04-11 Jakub Jelinek <jakub@redhat.com>
3592
3593 PR rtl-optimization/89965
3594 * dce.c (sp_based_mem_offset): New function.
3595 (find_call_stack_args): Use sp_based_mem_offset.
3596
3597 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
3598
3599 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
3600
3601 2019-04-11 Richard Biener <rguenther@suse.de>
3602
3603 PR tree-optimization/90020
3604 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
3605 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
3606 * tree-ssa-pre.c (compute_avail): Use it to not put
3607 possibly trapping references after a call that might not
3608 return into EXP_GEN.
3609 * gcse.c (compute_hash_table_work): Do not elide
3610 marking a block containing a call if the call might not
3611 return.
3612
3613 2019-04-11 Richard Biener <rguenther@suse.de>
3614
3615 PR tree-optimization/90018
3616 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
3617 Test both SLP and interleaving variants.
3618
3619 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
3620
3621 * config/s390/8561.md: New file.
3622 * config/s390/driver-native.c (s390_host_detect_local_cpu):
3623 Add arch13 cpu model.
3624 * config/s390/s390-opts.h (enum processor_type): Likewise.
3625 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
3626 (s390_get_unit_mask): Likewise.
3627 (s390_is_fpd): Likewise.
3628 (s390_is_fxd): Likewise.
3629 * config/s390/s390.h (s390_tune_attr): Likewise.
3630 * config/s390/s390.md: Include arch13 pipeline description.
3631 * config/s390/s390.opt: Add arch13.
3632
3633 2018-04-10 Steve Ellcey <sellcey@marvell.com>
3634
3635 PR rtl-optimization/87763
3636 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
3637 New prototype.
3638 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
3639 New function.
3640 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
3641 New instruction.
3642 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
3643 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
3644 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
3645 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
3646
3647 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
3648
3649 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
3650 "Although" in -fipa-icf documentation.
3651
3652 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
3653 of using multiple -g options.
3654
3655 2019-04-10 Martin Liska <mliska@suse.cz>
3656
3657 PR gcov-profile/89959
3658 * doc/gcov.texi: Make documentation of -x option
3659 more precise.
3660
3661 2019-04-10 Richard Biener <rguenther@suse.de>
3662
3663 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
3664 member.
3665 (DR_GROUP_SAME_DR_STMT): Remove.
3666 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
3667 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
3668 replace with assert.
3669 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
3670 (vect_record_grouped_load_vectors): Remove unreachable code.
3671
3672 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
3673
3674 PR target/90016
3675 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
3676 obsolete reference to N.
3677
3678 2019-04-10 Jakub Jelinek <jakub@redhat.com>
3679
3680 PR middle-end/90025
3681 * expr.c (store_expr): Set properly size on the MEM passed to
3682 clear_storage.
3683
3684 PR c++/90010
3685 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
3686 with strlen in between hostsz-3 and hostsz-1 inclusive when no
3687 translation is needed, and when translation is needed, only append
3688 ... if the string length is hostsz or more bytes long. Avoid using
3689 strncpy or strcat.
3690
3691 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
3692
3693 PR target/90024
3694 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
3695 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
3696 into three.
3697 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
3698 differences directly.
3699 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
3700
3701 2019-04-09 Jakub Jelinek <jakub@redhat.com>
3702
3703 PR translation/90011
3704 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
3705 from diagnostics.
3706 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
3707 diagnostics.
3708 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
3709 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
3710 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
3711 trailing space from -gsplit-dwarf diagnostics.
3712
3713 PR tree-optimization/89998
3714 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
3715 instead of integer_type_node if possible, don't add ranges if return
3716 type is not compatible with int.
3717 * gimple-fold.c (gimple_fold_builtin_sprintf,
3718 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
3719 integer_type_node.
3720
3721 2019-04-09 Martin Liska <mliska@suse.cz>
3722
3723 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
3724 * doc/install.texi: Document the new config.
3725
3726 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
3727
3728 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
3729 use gimple_expr_type for load and store calls. Skip over the
3730 condition argument in a conditional internal function.
3731 Protect use of TREE_INT_CST_LOW.
3732
3733 2019-04-09 Jakub Jelinek <jakub@redhat.com>
3734
3735 PR target/90015
3736 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
3737 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
3738 trailing period from it too.
3739
3740 2019-04-08 wu yuan <wuyuan5@huawei.com>
3741
3742 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
3743 * config/aarch64/aarch64.md : Add "tsv110.md"
3744 * config/aarch64/tsv110.md: New file.
3745
3746 2019-04-08 Richard Biener <rguenther@suse.de>
3747
3748 PR tree-optimization/90006
3749 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
3750 calls like lrint.
3751
3752 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
3753
3754 PR target/83033
3755 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
3756 construction.
3757 (fma_root_node): Likewise.
3758 (func_fma_steering): Likewise.
3759
3760 2019-04-08 Jakub Jelinek <jakub@redhat.com>
3761
3762 PR rtl-optimization/89865
3763 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
3764
3765 PR rtl-optimization/89865
3766 * config/i386/i386.md
3767 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
3768 numbers not to clash with the additional operands[4].
3769 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
3770 with extra register copy in the middle.
3771
3772 2019-04-08 Martin Liska <mliska@suse.cz>
3773
3774 PR gcov-profile/89961
3775 * doc/gcov.texi: Document data_file.
3776 * gcov.c (generate_results): Add data_info into JSON output.
3777
3778 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
3779
3780 PR tree-optimization/89725
3781 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
3782 loop's chrec as invariant symbol.
3783 * tree-chrec.h (chrec_contains_symbols): New parameter.
3784 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
3785 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
3786 function of loops not in DDR's loop_nest.
3787 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
3788
3789 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
3790
3791 PR target/89623
3792 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
3793 Mask.
3794
3795 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
3796
3797 PR target/89945
3798 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
3799 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
3800
3801 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
3802
3803 * sched-deps.c (sched_macro_fuse_insns): Check return value of
3804 targetm.fixed_condition_code_regs.
3805
3806 2019-04-05 Richard Biener <rguenther@suse.de>
3807
3808 PR debug/89892
3809 PR debug/89905
3810 * tree-cfgcleanup.c (remove_forwarder_block): Always move
3811 debug bind stmts but reset them if they are not valid at the
3812 destination.
3813
3814 2019-04-05 Martin Liska <mliska@suse.cz>
3815
3816 PR translation/89936
3817 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
3818 order to wrap keywords or arguments.
3819 * collect2.c (main): Likewise.
3820 (scan_prog_file): Likewise.
3821 (scan_libraries): Likewise.
3822 * common/config/riscv/riscv-common.c
3823 (riscv_subset_list::parsing_subset_version): Likewise.
3824 (riscv_subset_list::parse_std_ext): Likewise.
3825 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3826 Likewise.
3827 * config/arm/arm.c (arm_option_override): Likewise.
3828 * config/cris/cris.c (cris_print_operand): Likewise.
3829 * config/darwin-c.c (darwin_pragma_options): Likewise.
3830 (darwin_pragma_unused): Likewise.
3831 (darwin_pragma_ms_struct): Likewise.
3832 * config/ft32/ft32.c (ft32_print_operand): Likewise.
3833 * config/i386/i386.c (print_reg): Likewise.
3834 (ix86_print_operand): Likewise.
3835 * config/i386/xm-djgpp.h: Likewise.
3836 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
3837 * config/m32c/m32c.c (m32c_option_override): Likewise.
3838 * config/msp430/msp430.c (msp430_option_override): Likewise.
3839 * config/nds32/nds32.c (nds32_option_override): Likewise.
3840 * config/nvptx/mkoffload.c (main): Likewise.
3841 * config/rx/rx.c (rx_print_operand): Likewise.
3842 (valid_psw_flag): Likewise.
3843 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
3844 (vms_pragma_nomember_alignment): Likewise.
3845 (vms_pragma_extern_model): Likewise.
3846 * lto-wrapper.c (compile_offload_image): Likewise.
3847 * omp-offload.c (oacc_parse_default_dims): Likewise.
3848 * symtab.c (symtab_node::verify_base): Likewise.
3849 * tlink.c (recompile_files): Likewise.
3850 (start_tweaking): Likewise.
3851 * tree-profile.c (parse_profile_filter): Likewise.
3852
3853 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
3854
3855 PR tree-optimization/89956
3856 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
3857 multiple negates of the same value.
3858
3859 2019-04-04 Martin Sebor <msebor@redhat.com>
3860
3861 PR middle-end/89957
3862 PR middle-end/89911
3863 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
3864 have the same precision since the function crashes otherwise.
3865 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
3866 has non-zero arguments.
3867
3868 2019-04-04 Martin Sebor <msebor@redhat.com>
3869
3870 PR middle-end/89934
3871 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
3872 out if the number of arguments is less than expected.
3873
3874 2019-04-04 Jeff Law <law@redhat.com>
3875
3876 PR rtl-optimization/89399
3877 * ree.c (combine_set_extension): Use single_set rather than
3878 digging into PATTERN for items on the candidate list.
3879 (combine_reaching_defs): Likewise.
3880
3881 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
3882
3883 PR rtl-optimization/46590
3884 * loop-invariant.c (find_defs): Move df_remove_problem and
3885 df_process_deferred_rescans to move_invariants.
3886 Move df_live_add_problem and df_live_set_all_dirty calls
3887 to move_invariants.
3888 (move_invariants): Likewise.
3889 (move_loop_invariants): Likewise, making the df_live calls
3890 conditional on -O. Remove the problem again if we added it
3891 locally.
3892
3893 2019-04-03 qing zhao <qing.zhao@oracle.com>
3894
3895 PR tree-optimization/89730
3896 * ipa-inline.c (can_inline_edge_p): Delete the checking for
3897 -flive-patching=inline-only-static.
3898 (can_inline_edge_by_limits_p): Add the checking for
3899 -flive-patching=inline-only-static and grant always_inline
3900 even when -flive-patching=inline-only-static is specified.
3901
3902 2019-04-03 Jeff Law <law@redhat.com>
3903
3904 PR rtl-optimization/81025
3905 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
3906
3907 2019-04-03 Richard Biener <rguenther@suse.de>
3908
3909 PR tree-optimization/84101
3910 * tree-vect-stmts.c: Include explow.h for hard_function_value,
3911 regs.h for hard_regno_nregs.
3912 (cfun_returns): New helper.
3913 (vect_model_store_cost): When vectorizing a store to a decl
3914 we return and the function ABI returns in a multi-reg location
3915 account for the possible spilling that will happen.
3916
3917 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
3918
3919 * config/s390/s390.c (s390_legitimate_address_p): Reject long
3920 displacement addresses for vector mode operands.
3921
3922 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
3923
3924 * config/arc/arc.c (GMASK_LEN): Define.
3925 (arc_restore_callee_saves): Restore first blink when
3926 !optimize_size.
3927
3928 2019-04-03 Sudakshina Das <sudi.das@arm.com>
3929
3930 * doc/extend.texi: Add deprecated comment on sign-return-address
3931 function attribute and add mbranch-protection.
3932 * doc/invoke.texi: Add bti to the options for mbranch-protection.
3933
3934 2019-04-03 Richard Biener <rguenther@suse.de>
3935
3936 PR lto/89896
3937 * lto-wrapper.c (run_gcc): Avoid implicit rules making
3938 the all target phony.
3939
3940 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
3941
3942 PR target/89902
3943 PR target/89903
3944 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
3945 Return false for variable DImode shifts.
3946 (dimode_scalar_chain::compute_convert_gain): Do not handle
3947 register count operand in variable DImode shifts.
3948 (dimode_scalar_chain::make_vector_copies): Remove support to copy
3949 count argument of a variable shift instruction to a vector register.
3950 (dimode_scalar_chain::convert_reg): Remove support to convert
3951 count argument of a variable shift instruction.
3952
3953 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
3954
3955 PR rtl-optimization/84206
3956 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
3957 iterating over loop headers.
3958
3959 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
3960
3961 PR rtl-optimization/85876
3962 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
3963 beyond the original fence.
3964
3965 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
3966
3967 * config.gcc: Mark spu* targets as deprecated/obsolete.
3968
3969 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3970
3971 * config/s390/s390-builtin-types.def: New builtin function type
3972 definitions. Remove unused types.
3973 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
3974 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
3975 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
3976 overloaded builtins.
3977 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
3978 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
3979 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
3980 (vec_double, vec_signed, vec_unsigned): Define to use the new
3981 overloaded builtins.
3982 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
3983 Remove expanders.
3984
3985 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3986
3987 * config/s390/s390-builtin-types.def: New builtin function type
3988 definitions.
3989 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
3990 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
3991 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
3992 (s390_vstrszh, s390_vstrszf): New low-level builtins.
3993 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
3994 constant definitions.
3995 * config/s390/vecintrin.h (vec_search_string_cc)
3996 (vec_search_string_until_zero_cc): New builtin name definitions.
3997 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
3998 expanders.
3999 ("vec_vstrs<mode>"): New insn definition.
4000
4001 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4002
4003 * config/s390/s390-builtin-types.def: Add new builtin function
4004 types.
4005 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
4006 New overloaded builtins.
4007 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
4008 s390_vsrd.
4009 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
4010 (UNSPEC_VEC_SLDBYTE): ... this.
4011 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
4012 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
4013 definitions.
4014 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
4015 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
4016 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
4017
4018 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4019
4020 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
4021 New insn definition.
4022 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
4023 * config/s390/vector.md (V_HW_HSD): ... here.
4024
4025 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4026
4027 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
4028 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
4029 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
4030 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
4031 New insn definitions.
4032
4033 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4034
4035 * config/s390/s390-builtin-types.def: Add new builtin function type.
4036 * config/s390/s390-builtins.def: Add overloaded builtin
4037 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
4038 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
4039 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
4040 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
4041 ("eltswap<mode>"): New expander.
4042 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
4043 insn definitions.
4044
4045 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4046
4047 * config/s390/s390-builtin-types.def: Add new builtin function types.
4048 * config/s390/s390-builtins.def: Add overloaded builtin
4049 s390_vec_revb. Add low-level builtins for vlbr and vstbr
4050 instructions.
4051 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
4052 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
4053 ("bswap<mode>"): New expander.
4054 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
4055
4056 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4057
4058 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
4059 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
4060 vector builtin version number in __VEC__.
4061
4062 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4063
4064 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
4065 iterators.
4066 (SFSI): New mode attribute.
4067 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
4068 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
4069 rename to ...
4070 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
4071 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
4072 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
4073 ("floatsi<mode>2"): Add wcefb instruction.
4074
4075 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4076
4077 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
4078 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
4079 mode iterators.
4080 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
4081 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
4082 support 32 bit fp-int conversions. Rename to ...
4083 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4084 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4085 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
4086 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
4087 ... to these.
4088
4089 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4090
4091 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
4092 if-then-else constructs if we can use the select instruction.
4093 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
4094
4095 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4096
4097 * config/s390/s390.md ("*popcountdi_arch13_cc")
4098 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
4099 definition.
4100 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
4101 Append _z196 to make it ...
4102 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
4103 ("popcounthi2_z196"): ... this.
4104 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
4105 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
4106
4107 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4108
4109 * config/s390/s390.c (s390_canonicalize_comparison): Convert
4110 certain compares for arch13 in order to make use of the condition
4111 code result produced by the new instructions.
4112 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
4113 nxrk, and nxgrk instruction patterns.
4114 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
4115 (inv_no): Add new code iterator together with some attributes.
4116 ("*andc_split_<mode>"): Disable splitter for arch13.
4117 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
4118 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
4119 ("*<ANDOR:bitops_name>c<GPR:mode>")
4120 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
4121 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
4122 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
4123 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
4124
4125 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4126
4127 * common/config/s390/s390-common.c (processor_flags_table): New
4128 entry for arch13.
4129 * config.gcc: Support arch13 with the --with-arch= configure flag.
4130 * config/s390/driver-native.c (s390_host_detect_local_cpu):
4131 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
4132 * config/s390/s390.c (s390_get_sched_attrmask)
4133 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
4134 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
4135 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
4136 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
4137 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
4138 definitions.
4139 * config/s390/s390.opt: Support arch13 as processor type in
4140 command line options.
4141
4142 2019-04-02 Martin Liska <mliska@suse.cz>
4143
4144 PR translation/89912
4145 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
4146 Fix param description of graphite-max-arrays-per-scop.
4147
4148 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
4149
4150 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
4151 (ASAN_CC1_SPEC): Use it in 64-bit mode.
4152 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
4153
4154 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4155
4156 PR rtl-optimization/85412
4157 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
4158 sel_sched_region_1, not after.
4159
4160 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4161
4162 PR rtl-optimization/86928
4163 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
4164 compute_live if necessary.
4165 (sel_redirect_edge_and_branch): Likewise.
4166
4167 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
4168
4169 PR rtl-optimization/89865
4170 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
4171 register if it is a part of small class.
4172
4173 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4174
4175 PR rtl-optimization/87273
4176 * sel-sched-ir.c (merge_fences): Remove assert.
4177
4178 2019-04-01 Richard Biener <rguenther@suse.de>
4179
4180 PR tree-optimization/46590
4181 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
4182 (dom_walker::m_reachability): Add in place of...
4183 (dom_walker::m_skip_unreachable_blocks): ...this.
4184 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
4185 Move complex initialization ...
4186 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
4187 lazily and initialize edge flags on each invocation.
4188 (dom_walker::bb_reachable): Use m_reachability.
4189
4190 2019-04-01 Martin Liska <mliska@suse.cz>
4191
4192 PR driver/89861
4193 * opt-suggestions.c (option_proposer::build_option_suggestions):
4194 Add variant without any argument in order to provide better
4195 hints.
4196
4197 2019-04-01 Richard Biener <rguenther@suse.de>
4198
4199 PR c/71598
4200 * gimple.c: Include langhooks.h.
4201 (gimple_get_alias_set): Treat enumeral types as the underlying
4202 integer type.
4203
4204 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
4205 Eric Botcazou <ebotcazou@adacore.com>
4206
4207 PR rtl-optimization/89862
4208 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
4209 that operates on the full registers for WORD_REGISTER_OPERATIONS
4210 architectures.
4211
4212 2019-03-29 Jim Wilson <jimw@sifive.com>
4213
4214 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
4215 Clear MASK_RVC and then set if C subset supported.
4216
4217 2019-03-29 Jakub Jelinek <jakub@redhat.com>
4218
4219 PR c/89872
4220 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
4221 non-addressable complit into its initializer if it is volatile.
4222
4223 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
4224
4225 * opts-common.c (integral_argument): Set errno properly in one case.
4226
4227 2019-03-29 Martin Liska <mliska@suse.cz>
4228
4229 * doc/invoke.texi: Remove -Wchkp from documentation.
4230
4231 2019-03-29 Martin Liska <mliska@suse.cz>
4232
4233 * dbgcnt.c (print_limit_reach): New function.
4234 (dbg_cnt): Use it.
4235
4236 2019-03-29 Martin Liska <mliska@suse.cz>
4237
4238 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
4239 (dbg_cnt_process_opt): Parse first tokens aas
4240 dbg_cnt_process_single_pair is also using strtok.
4241
4242 2019-03-29 Jakub Jelinek <jakub@redhat.com>
4243
4244 PR rtl-optimization/87485
4245 * function.c (expand_function_end): Move stack_protect_epilogue
4246 before loading of return value into hard register(s).
4247
4248 2019-03-28 Jakub Jelinek <jakub@redhat.com>
4249
4250 PR middle-end/89621
4251 * tree-inline.h (struct copy_body_data): Add
4252 dont_remap_vla_if_no_change flag.
4253 * tree-inline.c (remap_type_3, remap_type_2): New functions.
4254 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
4255 and remap_type_2 returns false.
4256 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
4257 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
4258 only from where it is copied to nested contexts.
4259
4260 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
4261
4262 PR target/89865
4263 * config/i386/i386.md (RMW operation with LEA peephole):
4264 Use LEAMODE mode attribute instead of SWI mode iterator for
4265 LEA pattern.
4266
4267 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
4268
4269 PR target/89848
4270 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
4271 Also process XEXP (src, 0) of a shift insn.
4272
4273 2019-03-28 David Malcolm <dmalcolm@redhat.com>
4274
4275 PR middle-end/89725
4276 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
4277 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
4278
4279 2019-03-28 Jakub Jelinek <jakub@redhat.com>
4280
4281 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
4282 test.
4283 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
4284 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
4285 immediately after first one with df_analyze in between, but rather
4286 process all bbs, queueing ones that need second pass in a worklist,
4287 df_analyze, process queued debug insn changes and if second pass is
4288 needed, process bbs from worklist, df_analyze, process queued debug
4289 insns again.
4290
4291 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
4292 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
4293 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
4294
4295 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
4296
4297 PR c/79022
4298 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
4299 definition.
4300
4301 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
4302
4303 PR target/85667
4304 * config/i386/i386.c (ix86_function_value_1): Call the newly added
4305 function for 32-bit MS_ABI.
4306 (function_value_ms_32): New function.
4307
4308 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
4309
4310 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
4311 (movdi): Call gen_movdi_symbol_save_scc.
4312 (gen_movdi_symbol_save_scc): New insn and split.
4313
4314 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
4315
4316 PR rtl-optimization/89313
4317 * function.c (matching_constraint_num): New static function.
4318 (match_asm_constraints_1): Use it. Fixup white space and comment.
4319 Don't replace inputs with non-matching constraints which conflict
4320 with early clobber outputs.
4321
4322 2019-03-27 Jeff Law <law@redhat.com>
4323
4324
4325 PR rtl-optimization/87761
4326 PR rtl-optimization/89826
4327 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
4328 slightly later.
4329 (pass_cprop_hardreg::execute): Call df_analyze after adding the
4330 note problem to get REG_DEAD/REG_UNUSED notes updated.
4331
4332 2019-03-27 Richard Biener <rguenther@suse.de>
4333
4334 PR tree-optimization/89463
4335 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
4336 queue edges to remove.
4337 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
4338 dead stmts. Delay edge removal until PHIs are removed to
4339 make debug-stmt creation not confused by seemingly degenerate
4340 PHIs.
4341
4342 2019-03-27 Alan Modra <amodra@gmail.com>
4343
4344 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
4345 throughout file.
4346 * config/rs6000/darwin.h: Likewise.
4347 * config/rs6000/rs6000.c: Likewise.
4348
4349 2019-03-27 Alan Modra <amodra@gmail.com>
4350
4351 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
4352 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
4353
4354 2019-03-26 Andrew Waterman <andrew@sifive.com>
4355 Jim Wilson <jimw@sifive.com>
4356
4357 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
4358 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
4359 (generic_idivdi, generic_fmul_single, generic_fmul_double)
4360 (generic_fdiv, generic_fsqrt): Add check for generic tune.
4361 (generic_alu): Add auipc to type list.
4362 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
4363 (riscv_microarchitecture): Declare.
4364 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
4365 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
4366 field.
4367 (riscv_microarchitecture): New.
4368 (sifive_7_tune_info): New.
4369 (riscv_cpu_info_table): Add microarchitecture value for rocket and
4370 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
4371 entries.
4372 (riscv_store_data_bypass_p): New.
4373 (riscv_option_override): Set riscv_microarchitecture from
4374 cpu->microarchitecture.
4375 * config/riscv/riscv.md: Include sifive-7.md.
4376 (type): Add auipc.
4377 (tune): New.
4378 (auipc<mode>): Change type to auipc.
4379 (restore_stack_nonlocal): New.
4380 * config/riscv/sifive-7.md: New.
4381 * doc/invoke.texi (RISC-V Options): Update mtune docs.
4382
4383 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
4384
4385 PR target/89827
4386 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
4387 Also process XEXP (src, 0) of a shift insn.
4388
4389 2019-03-26 Richard Biener <rguenther@suse.de>
4390
4391 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
4392 (copy_debug_stmt): Likewise.
4393 (expand_call_inline): Likewise.
4394 (copy_bb): Avoid redundant lookup & set of gimple_block.
4395 * gimple-low.c (lower_gimple_return): Likewise.
4396 (lower_builtin_setjmp): Likewise.
4397
4398 2019-03-26 Jakub Jelinek <jakub@redhat.com>
4399
4400 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
4401 is constant 0, turn into static const data member initialized to false.
4402 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
4403 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
4404
4405 2019-03-26 Jason Merrill <jason@redhat.com>
4406 Jakub Jelinek <jakub@redhat.com>
4407
4408 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
4409 method.
4410 (mem_alloc_description::release_object_overhead): Fix comment typos.
4411 * hash-table.h (hash_table::~hash_table): Call
4412 release_instance_overhead only if m_entries is non-NULL, otherwise
4413 call unregister_descriptor.
4414
4415 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
4416
4417 PR tree-optimization/81740
4418 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4419 In case of outer loop vectorization, check for backward dependence
4420 at the inner loop if outer loop dependence is reversed.
4421
4422 2019-03-26 Alan Modra <amodra@gmail.com>
4423
4424 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
4425 rs6000_vector_mem init. Correct wI and wJ comment.
4426
4427 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
4428
4429 PR rtl-optimization/88347
4430 PR rtl-optimization/88423
4431 * sched-deps.c (sched_analyze_insn): Take into account that for
4432 tablejumps the barrier appears after a label and a jump_table_data.
4433
4434 2019-03-25 Martin Sebor <msebor@redhat.com>
4435
4436 PR c/89812
4437 * c-common.c (check_user_alignment): Rename local. Correct maximum
4438 alignment in diagnostic. Avoid assuming argument fits in SHWI,
4439 convert it to UHWI when it fits.
4440
4441 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
4442
4443 PR debug/86964
4444 * dwarf2out.c (premark_used_variables): New function.
4445 (prune_unused_types_walk): Do not mark not premarked external
4446 variables.
4447 (prune_unused_types): Call premark_used_variables.
4448
4449 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
4450
4451 PR rtl-optimization/89676
4452 * lra-constraints.c (curr_insn_transform): Do match reload for
4453 early clobbers when the match was successful only for different
4454 registers.
4455
4456 2019-03-25 Martin Sebor <msebor@redhat.com>
4457
4458 * doc/extend.texi (Common Type Attributes): Document vector_size.
4459 (Common Variable Attributes): Mention size constraint. Correct
4460 quoting and typos.
4461 (Vector Extensions): Use @dfn when defining bas type. Clarify
4462 base type and size constraints.
4463
4464 2019-03-25 Richard Biener <rguenther@suse.de>
4465
4466 PR tree-optimization/89789
4467 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
4468 changes from non-undefined back to undefined.
4469
4470 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
4471
4472 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
4473 heap string and a gc string, but since this variable is unknown to
4474 ggc the gc string might get reused and corrupted. Fixed by always
4475 using a heap string.
4476
4477 2019-03-25 Richard Biener <rguenther@suse.de>
4478
4479 PR tree-optimization/89779
4480 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
4481 to remove IV defs, delay actual removal.
4482 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
4483 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
4484 very end, properly also reset loop control IV information.
4485
4486 2019-03-25 Richard Biener <rguenther@suse.de>
4487
4488 PR tree-optimization/89802
4489 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
4490 move EH data to folded stmt.
4491
4492 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
4493
4494 * config/s390/s390-builtin-types.def: Remove few unused types and
4495 fix sort order for others.
4496
4497 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
4498
4499 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
4500 expected and found types with -mdebug during builtin matching.
4501
4502 2019-03-25 Richard Biener <rguenther@suse.de>
4503
4504 PR middle-end/89790
4505 * fold-const.c (operand_equal_p): Revert last change with
4506 updated comment.
4507
4508 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
4509
4510 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
4511 notes for the result of the __tls_get_addr calls.
4512 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
4513
4514 2019-03-24 Jeff Law <law@redhat.com>
4515
4516 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
4517
4518 PR rtl-optimization/87761
4519 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
4520 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
4521 as needed.
4522 (pass_cprop_hardreg::execute): Add df note problem and defer insn
4523 rescans. Reprocess blocks as needed, calling df_analyze before
4524 reprocessing. Always call df_analyze before fixing up debug bind
4525 insns.
4526
4527 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
4528
4529 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
4530 big endian.
4531
4532 2019-03-22 Andrew Pinski <apinski@marvell.com>
4533
4534 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
4535 attrribute for uxtw.
4536
4537 2019-03-26 Jeff Law <law@redhat.com>
4538
4539 PR rtl-optimization/87761
4540 * config/mips/mips-protos.h (mips_split_move): Add new argument.
4541 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
4542 (mips_split_move): Accept new INSN argument. Try to forward SRC
4543 into the next instruction.
4544 (mips_split_move_insn): Pass INSN through to mips_split_move.
4545
4546 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
4547
4548 PR rtl-optimization/89676
4549 * lra-constraints.c (curr_insn_transform): Do match reload for
4550 early clobbers even if the match was successful.
4551
4552 2019-03-22 Jakub Jelinek <jakub@redhat.com>
4553
4554 PR c++/87481
4555 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
4556
4557 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
4558
4559 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
4560
4561 2019-03-22 Jakub Jelinek <jakub@redhat.com>
4562
4563 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
4564 <avx512>_fmsub_<mode>_mask3<round_name>,
4565 <avx512>_fnmadd_<mode>_mask3<round_name>,
4566 <avx512>_fnmsub_<mode>_mask3<round_name>,
4567 avx512f_vmfmadd_<mode>_mask3<round_name>,
4568 avx512f_vmfmsub_<mode>_mask3<round_name>,
4569 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
4570 instead of register_operand and %v instead of v for match_operand 1.
4571 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
4572 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
4573 <round_nimm_predicate> instead of register_operand and %v instead of v
4574 for match_operand 1.
4575
4576 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
4577 <avx512>_fmadd_<mode>_mask3<round_name>,
4578 <avx512>_fmsub_<mode>_mask<round_name>,
4579 <avx512>_fmsub_<mode>_mask3<round_name>,
4580 <avx512>_fnmadd_<mode>_mask<round_name>,
4581 <avx512>_fnmadd_<mode>_mask3<round_name>,
4582 <avx512>_fnmsub_<mode>_mask<round_name>,
4583 <avx512>_fnmsub_<mode>_mask3<round_name>,
4584 <avx512>_fmaddsub_<mode>_mask<round_name>,
4585 <avx512>_fmaddsub_<mode>_mask3<round_name>,
4586 <avx512>_fmsubadd_<mode>_mask<round_name>,
4587 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
4588 <round_nimm_predicate> instead of nonimmediate_operand.
4589 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
4590 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
4591 Use register_operand instead of <round_nimm_predicate> for the
4592 operand that needs to match output.
4593 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
4594 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
4595 Likewise. Formatting fixes.
4596
4597 PR target/89784
4598 * config/i386/i386.c (enum ix86_builtins): Remove
4599 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
4600 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
4601 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
4602 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
4603 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
4604 __builtin_ia32_vfmsubss3_mask3): New builtins.
4605 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
4606 avx512f_vmfmadd_<mode>_mask3<round_name>,
4607 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
4608 *avx512f_vmfmsub_<mode>_mask<round_name>,
4609 avx512f_vmfmsub_<mode>_mask3<round_name>,
4610 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
4611 *avx512f_vmfnmadd_<mode>_mask<round_name>,
4612 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
4613 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
4614 *avx512f_vmfnmsub_<mode>_mask<round_name>,
4615 avx512f_vmfnmsub_<mode>_mask3<round_name>,
4616 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
4617 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
4618 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
4619 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
4620 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
4621 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
4622 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
4623 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
4624 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
4625 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
4626 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
4627 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
4628 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
4629 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
4630 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
4631 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
4632 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
4633 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
4634 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
4635 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
4636 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
4637 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
4638
4639 2019-03-21 Martin Sebor <msebor@redhat.com>
4640
4641 PR tree-optimization/89350
4642 * builtins.c (compute_objsize): Also ignore offsets whose upper
4643 bound is negative.
4644 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
4645 (builtin_memref::builtin_memref): Initialize new member.
4646 Allow EXPR to be null.
4647 (builtin_memref::extend_offset_range): Replace local with a member.
4648 Avoid assuming pointer offsets are unsigned.
4649 (builtin_memref::set_base_and_offset): Determine base object
4650 before computing offset range.
4651 (builtin_access::builtin_access): Handle memset.
4652 (builtin_access::generic_overlap): Replace local with a member.
4653 (builtin_access::strcat_overlap): Same.
4654 (builtin_access::overlap): Same.
4655 (maybe_diag_overlap): Same.
4656 (maybe_diag_access_bounds): Same.
4657 (wrestrict_dom_walker::check_call): Handle memset.
4658 (check_bounds_or_overlap): Same.
4659
4660 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
4661 Jakub Jelinek <jakub@redhat.com>
4662
4663 PR lto/89692
4664 * tree.c (fld_type_variant, fld_incomplete_type_of,
4665 fld_process_array_type): Call fld->pset.add and don't call
4666 add_tree_to_fld_list if it returns true.
4667 (free_lang_data_in_type): Similarly with self-recursive call. Purge
4668 non-marked types from TYPE_NEXT_VARIANT list.
4669 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
4670
4671 2019-03-21 Jakub Jelinek <jakub@redhat.com>
4672
4673 * hash-table.h (hash_table): Add Lazy template parameter defaulted
4674 to false, if true, don't alloc_entries during construction, but defer
4675 it to the first method that needs m_entries allocated.
4676 (hash_table::hash_table, hash_table::~hash_table,
4677 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
4678 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
4679 hash_table::clear_slot, hash_table::traverse_noresize,
4680 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
4681 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
4682 false.
4683 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
4684 NO_INSERT instead of find_with_hash.
4685 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
4686 hash_set::m_table): Add Lazy to template params of hash_table.
4687 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
4688 * attribs.c (test_attribute_exclusions): Likewise.
4689 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
4690 hash_set. Add tests for hash_set with Lazy = true.
4691
4692 2019-03-21 Richard Biener <rguenther@suse.de>
4693
4694 PR tree-optimization/89779
4695 * tree.c (tree_nop_conversion): Consolidate and fix defensive
4696 checks with respect to released SSA names now having error_mark_node
4697 type.
4698 * fold-const.c (operand_equal_p): Likewise.
4699
4700 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
4701
4702 PR target/89775
4703 * config/s390/s390.c (global_not_special_regno_p): Move to make it
4704 available to ...
4705 (s390_optimize_register_info): Use global_not_special_regno_p to
4706 check for global regs.
4707
4708 2019-03-20 Jakub Jelinek <jakub@redhat.com>
4709
4710 PR target/89752
4711 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
4712 update this_alternative nor this_alternative_set.
4713
4714 2019-03-19 Jim Wilson <jimw@sifive.com>
4715
4716 PR target/89411
4717 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
4718 align, size, offset. Use them to handle a BLKmode reference. Update
4719 comment.
4720 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
4721
4722 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4723
4724 PR rtl-optimization/89768
4725 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
4726 instead of GEN_INT.
4727 (unroll_loop_runtime_iterations): Likewise.
4728
4729 2019-03-19 Martin Sebor <msebor@redhat.com>
4730
4731 PR tree-optimization/89644
4732 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
4733 rather than endptr as an indicator of nul-termination.
4734
4735 PR tree-optimization/89644
4736 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
4737 arrays in determining sequence sizes in strncpy and stpncpy.
4738
4739 2019-03-19 Martin Liska <mliska@suse.cz>
4740
4741 PR middle-end/89737
4742 * predict.c (combine_predictions_for_bb): Empty likely_edges and
4743 unlikely_edges if there's an edge that belongs to both these sets.
4744
4745 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
4746
4747 PR target/89746
4748 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
4749 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
4750 go via a stack temporary.
4751
4752 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4753
4754 PR target/89378
4755 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
4756 instead of gen_rtx_SUBREG.
4757 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
4758
4759 2019-03-19 Richard Biener <rguenther@suse.de>
4760
4761 PR debug/88389
4762 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
4763
4764 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
4765
4766 PR lto/87809
4767 PR lto/89335
4768 * tree.c (free_lang_data_in_decl): Do not free context of C++
4769 destrutors.
4770
4771 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4772
4773 PR target/89506
4774 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
4775 subs for the first alternative except when operands[3] is 1.
4776
4777 PR target/89752
4778 * gimplify.c (gimplify_asm_expr): For output argument with
4779 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
4780 diagnose error.
4781
4782 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
4783
4784 PR rtl-optimization/89753
4785 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
4786 explicit unrolling factor even more robust.
4787
4788 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4789
4790 PR target/89726
4791 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
4792 compensation use x2 += 1 instead of x2 -= -1 and when honoring
4793 signed zeros, do another copysign after the compensation.
4794
4795 2019-03-18 Martin Sebor <msebor@redhat.com>
4796
4797 PR tree-optimization/89720
4798 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
4799 more conservatively, the same as anti-range.
4800
4801 2019-03-18 Richard Biener <rguenther@suse.de>
4802
4803 PR middle-end/88945
4804 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
4805 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
4806 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
4807 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
4808
4809 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
4810
4811 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
4812 Extend queue to 1024 entries.
4813 Add "consumed" field.
4814 (gomp_print_output): Remove print_index parameter.
4815 Add final parameter.
4816 Change limit to unsigned.
4817 Use consumed field to implement circular buffer.
4818 Detect interrupted print in final pass.
4819 Flush output at the end.
4820 (run): Update gomp_print_output usage.
4821 (main): Initialize kernargs->output_data.consumed.
4822
4823 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
4824
4825 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
4826 calculation of the minimum number of scalar iterations for
4827 fully-predicated loops.
4828
4829 2019-03-18 Martin Jambor <mjambor@suse.cz>
4830
4831 PR tree-optimization/89546
4832 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
4833 any propagation to its children took place.
4834
4835 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
4836
4837 PR target/89627
4838 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
4839 parameter, and make use of it.
4840 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
4841
4842 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4843
4844 * config/arc/arc.opt (mcode-density-frame): Get the inital value
4845 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
4846 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
4847 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
4848 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
4849 match what the ops is doing.
4850 (push_multi_fp_blink): Likewise.
4851 * config/arc/arc.c (arc_override_options): Enable enter/leave when
4852 compiling for size and elf target.
4853 (arc_save_callee_enter): Adjust note to match what enter/leave
4854 operation does.
4855
4856 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4857
4858 * config/arc/arc.md (tst_movb): Fix constraint.
4859
4860 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4861
4862 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
4863
4864 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4865
4866 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
4867 * config/arc/arc.c (arc_conditional_register_usage): Remove all
4868 reg_alloc_order references.
4869 (size_alloc_order): Define.
4870 (arc_adjust_reg_alloc_order): New function.
4871 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
4872 order.
4873 (ADJUST_REG_ALLOC_ORDER): Define.
4874 (HONOR_REG_ALLOC_ORDER): Likewise.
4875
4876 2019-03-18 Richard Biener <rguenther@suse.de>
4877
4878 PR target/87561
4879 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
4880 loads and stores a bit more.
4881
4882 2019-03-18 Richard Biener <rguenther@suse.de>
4883
4884 PR target/87561
4885 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
4886 load pessimization to stores as well.
4887
4888 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
4889
4890 PR middle-end/86979
4891 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
4892 successor, use NULL as its av set.
4893
4894 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
4895
4896 PR rtl-optimization/89721
4897 * lra-constraints (invariant_p): Return false if side_effects_p holds.
4898
4899 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
4900
4901 PR target/87532
4902 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4903 When handling vec_extract, use modular arithmetic to allow
4904 constant selectors greater than vector length.
4905 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
4906 V1TImode vectors to have constant selector values greater than 0.
4907 Use modular arithmetic to compute vector index.
4908 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
4909 index for in-memory vectors. Correct code generation for
4910 in-register vectors.
4911 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
4912 compute index.
4913
4914 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
4915
4916 PR c++/88534
4917 PR c++/88537
4918 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
4919 VAR_DECL args.
4920
4921 2019-03-15 Jakub Jelinek <jakub@redhat.com>
4922
4923 PR c++/89709
4924 * tree.c (inchash::add_expr): Strip any location wrappers.
4925 * fold-const.c (operand_equal_p): Move stripping of location wrapper
4926 after hash verification.
4927
4928 PR debug/89704
4929 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
4930 SIGN_EXTEND and ZERO_EXTEND.
4931
4932 2019-03-14 Jason Merrill <jason@redhat.com>
4933 Jakub Jelinek <jakub@redhat.com>
4934
4935 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
4936 than if is_empty (*slot).
4937 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
4938 existing elt and for elt removal.
4939 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
4940 of already removed elt.
4941
4942 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
4943
4944 PR target/89650
4945 * config/i386/i386.c (remove_partial_avx_dependency): Handle
4946 REG_EH_REGION note.
4947
4948 2019-03-14 Martin Liska <mliska@suse.cz>
4949
4950 PR other/89712
4951 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
4952
4953 2019-03-14 Richard Biener <rguenther@suse.de>
4954
4955 PR target/89711
4956 * config/i386/i386.c (make_resolver_func): Properly set
4957 DECL_CONTEXT on the RESULT_DECL.
4958 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
4959
4960 2019-03-14 Richard Biener <rguenther@suse.de>
4961
4962 * gimple-pretty-print.c: Include cfgloop.h.
4963 (dump_gimple_phi): Adjust.
4964 (dump_gimple_bb_header): Dump loop header for GIMPLE.
4965 (pp_cfg_jump): Adjust.
4966 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
4967 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
4968 (lower_phi_internal_fn): Remove.
4969 (verify_gimple_call): Remove IFN_PHI special-casing.
4970 (dump_function_to_file): Dump IL state.
4971 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
4972 done to deal with PHI nodes being present in non-SSA state.
4973
4974 2019-03-14 Jakub Jelinek <jakub@redhat.com>
4975
4976 PR ipa/89684
4977 * multiple_target.c (create_dispatcher_calls): Change
4978 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
4979 In the node->iterate_referring loop, push *ref rather than ref, call
4980 ref->remove_reference () and always pass 0 to iterate_referring.
4981
4982 PR rtl-optimization/89679
4983 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
4984 would contain a paradoxical SUBREG.
4985
4986 2019-03-14 Richard Biener <rguenther@suse.de>
4987
4988 PR tree-optimization/89710
4989 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
4990 safe_dyn_cast.
4991
4992 2019-03-14 Martin Liska <mliska@suse.cz>
4993
4994 * coverage.c (coverage_begin_function): Stream also
4995 end_column.
4996 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
4997 documentation about function declaration location.
4998 * gcov-dump.c (tag_function): Print whole range
4999 of function declaration.
5000 * gcov.c (struct function_info): Add end_column field.
5001 (function_info::function_info): Initialize it.
5002 (output_json_intermediate_file): Output {start,end}_column
5003 fields.
5004 (read_graph_file): Read end_column.
5005
5006 2019-03-14 Richard Biener <rguenther@suse.de>
5007
5008 PR middle-end/89698
5009 * fold-const.c (operand_equal_p): For INDIRECT_REF check
5010 that the access types are similar.
5011
5012 2019-03-14 Jakub Jelinek <jakub@redhat.com>
5013
5014 PR tree-optimization/89703
5015 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
5016 aren't compatible also with builtin_decl_explicit. Check pure
5017 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
5018 and BUILT_IN_STPNCPY{,_CHK}.
5019
5020 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
5021
5022 PR target/89523
5023 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
5024 addr32 prefix to VSIB address for X32.
5025 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
5026 "%M2" to opcode.
5027 (*avx512pf_gatherpf<mode>df_mask): Likewise.
5028 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
5029 (*avx512pf_scatterpf<mode>df_mask): Likewise.
5030 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
5031 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
5032 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
5033 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
5034 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
5035 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
5036 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
5037 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
5038 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
5039 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
5040 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
5041 (*avx512f_scatterdi<mode>): Likewise.
5042
5043 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
5044
5045 PR target/85860
5046 * lra-constraints.c (inherit_in_ebb): Update
5047 potential_reload_hard_regs along with live_hard_regs.
5048
5049 2019-03-13 Jakub Jelinek <jakub@redhat.com>
5050
5051 PR debug/89498
5052 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
5053 DWARF_OFFSET_SIZE.
5054 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
5055
5056 2019-03-13 Martin Sebor <msebor@redhat.com>
5057
5058 PR tree-optimization/89662
5059 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
5060 has a size.
5061
5062 2019-03-13 Richard Biener <rguenther@suse.de>
5063
5064 PR middle-end/89677
5065 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
5066 throw FP expressions at tree-affine.
5067
5068 2019-03-14 Richard Biener <rguenther@suse.de>
5069
5070 * tree-pretty-print.c (dump_generic_node): For -gimple properly
5071 dump negative integer constants using _Literal (type) -num.
5072
5073 2019-03-13 Jakub Jelinek <jakub@redhat.com>
5074
5075 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
5076 nonlocal_value member.
5077
5078 PR middle-end/88588
5079 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
5080 (ipa_simd_modify_function_body): Handle PHIs.
5081
5082 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5083
5084 * config/s390/s390.c (s390_option_override_internal): Use more
5085 aggressive inlining parameters.
5086
5087 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5088
5089 * config/s390/3906.md: New file.
5090 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5091 (LONGRUNNING_THRESHOLD): Remove.
5092 (MAX_SCHED_MIX_SCORE): Decrease.
5093 (MAX_SCHED_MIX_DISTANCE): Decrease.
5094 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
5095 (struct s390_sched_state): New struct to hold scheduling state.
5096 (S390_SCHED_STATE_NORMAL): Remove.
5097 (S390_SCHED_STATE_CRACKED): Remove.
5098 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
5099 (s390_get_sched_attrmask): Use new attribute.
5100 (s390_get_unit_mask): Use new units.
5101 (s390_is_fpd): New function.
5102 (s390_is_fxd): New function.
5103 (s390_is_longrunning): New function.
5104 (s390_sched_score): Use new functions.
5105 (s390_sched_reorder): Likewise.
5106 (s390_sched_variable_issue): Rework and use new functions.
5107 (s390_sched_init): Use new functions.
5108 * config/s390/s390.h (s390_tune_attr): Add z14.
5109 * config/s390/s390.md: Add z14.
5110
5111 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5112
5113 * config/s390/2964.md: Update pipeline description.
5114 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5115 (LONGRUNNING_THRESHOLD): Remove.
5116 (LATENCY_FACTOR): Remove.
5117 (s390_get_unit_mask): Add unit.
5118 (s390_sched_score): Use fxd/fpd.
5119 (s390_sched_variable_issue): Use fxd/fpd.
5120
5121 2019-03-12 Martin Liska <mliska@suse.cz>
5122
5123 * config/i386/i386.c: Reword an error message.
5124
5125 2019-03-12 Martin Jambor <mjambor@suse.cz>
5126
5127 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
5128 terminate with newline.
5129
5130 2019-03-12 Jakub Jelinek <jakub@redhat.com>
5131
5132 PR target/52726
5133 * config/s390/s390.md (tabort): Use %wd instead of
5134 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
5135 letters and periods.
5136 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
5137 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
5138 's with %< and %>.
5139
5140 PR middle-end/89663
5141 * builtins.c (expand_builtin_int_roundingfn,
5142 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
5143 gcc_unreachable if validate_arglist fails.
5144
5145 2019-03-12 Richard Biener <rguenther@suse.de>
5146
5147 PR tree-optimization/89664
5148 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
5149 free the occurance tree after the early out.
5150
5151 2019-03-11 Jakub Jelinek <jakub@redhat.com>
5152
5153 PR middle-end/89655
5154 PR bootstrap/89656
5155 * vr-values.c (vr_values::update_value_range): If
5156 old_vr->varying_p (), don't update it, make new_vr also VARYING
5157 and return false.
5158
5159 2019-03-11 Martin Liska <mliska@suse.cz>
5160
5161 * config/aarch64/aarch64.c (aarch64_override_options_internal):
5162 Fix double string quoting.
5163
5164 2019-03-11 Martin Liska <mliska@suse.cz>
5165
5166 * collect-utils.c (collect_wait): Wrap apostrophes
5167 in gcc internal format with %'.
5168 * collect2.c (main): Likewise.
5169 (scan_prog_file): Likewise.
5170 (scan_libraries): Likewise.
5171 * config/i386/i386.c (ix86_expand_call): Likewise.
5172 (ix86_handle_interrupt_attribute): Likewise.
5173 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
5174 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
5175 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
5176 * lto-wrapper.c (find_crtoffloadtable): Likewise.
5177 * symtab.c (symtab_node::verify_base): Likewise.
5178 * tree-cfg.c (verify_gimple_label): Likewise.
5179 * tree.c (verify_type_variant): Likewise.
5180
5181 2019-03-11 Martin Liska <mliska@suse.cz>
5182
5183 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
5184 in a string format message and fix GNU coding style.
5185 (expand_builtin_set_thread_pointer): Likewise.
5186 * common/config/aarch64/aarch64-common.c
5187 (aarch64_rewrite_selected_cpu): Likewise.
5188 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
5189 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
5190 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
5191 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
5192 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
5193 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
5194 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
5195 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
5196 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
5197 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
5198 Likewise.
5199 * common/config/riscv/riscv-common.c
5200 (riscv_subset_list::parsing_subset_version): Likewise.
5201 (riscv_subset_list::parse_std_ext): Likewise.
5202 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
5203 (riscv_subset_list::parse): Likewise.
5204 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
5205 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
5206 (aarch64_override_options_internal): Likewise.
5207 (aarch64_validate_mcpu): Likewise.
5208 (aarch64_validate_march): Likewise.
5209 (aarch64_validate_mtune): Likewise.
5210 (aarch64_override_options): Likewise.
5211 * config/alpha/alpha.c (alpha_option_override): Likewise.
5212 * config/arc/arc.c (arc_init): Likewise.
5213 (parse_mrgf_banked_regs_option): Likewise.
5214 (arc_override_options): Likewise.
5215 (arc_expand_builtin_aligned): Likewise.
5216 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
5217 (arm_expand_builtin): Likewise.
5218 * config/arm/arm.c (arm_option_check_internal): Likewise.
5219 (arm_configure_build_target): Likewise.
5220 (arm_option_override): Likewise.
5221 (arm_options_perform_arch_sanity_checks): Likewise.
5222 (arm_handle_cmse_nonsecure_entry): Likewise.
5223 (arm_handle_cmse_nonsecure_call): Likewise.
5224 (arm_tls_referenced_p): Likewise.
5225 (thumb1_expand_prologue): Likewise.
5226 * config/avr/avr.c (avr_option_override): Likewise.
5227 * config/bfin/bfin.c (bfin_option_override): Likewise.
5228 * config/c6x/c6x.c (c6x_option_override): Likewise.
5229 * config/cr16/cr16.c (cr16_override_options): Likewise.
5230 * config/cris/cris.c (cris_option_override): Likewise.
5231 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
5232 * config/darwin-c.c (macosx_version_as_macro): Likewise.
5233 * config/darwin.c (darwin_override_options): Likewise.
5234 * config/frv/frv.c (frv_expand_builtin): Likewise.
5235 * config/h8300/h8300.c (h8300_option_override): Likewise.
5236 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
5237 (ix86_option_override_internal): Likewise.
5238 (warn_once_call_ms2sysv_xlogues): Likewise.
5239 (ix86_expand_prologue): Likewise.
5240 (split_stack_prologue_scratch_regno): Likewise.
5241 (ix86_warn_parameter_passing_abi): Likewise.
5242 * config/ia64/ia64.c (fix_range): Likewise.
5243 * config/m68k/m68k.c (m68k_option_override): Likewise.
5244 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
5245 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
5246 (mips_set_compression_mode): Likewise.
5247 * config/mmix/mmix.c (mmix_option_override): Likewise.
5248 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
5249 * config/msp430/msp430.c (msp430_option_override): Likewise.
5250 * config/nds32/nds32.c (nds32_option_override): Likewise.
5251 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
5252 (nios2_option_override): Likewise.
5253 (nios2_expand_custom_builtin): Likewise.
5254 * config/nvptx/mkoffload.c (main): Likewise.
5255 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
5256 * config/pa/pa.c (fix_range): Likewise.
5257 (pa_option_override): Likewise.
5258 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
5259 (riscv_option_override): Likewise.
5260 * config/rl78/rl78.c (rl78_option_override): Likewise.
5261 * config/rs6000/aix61.h: Likewise.
5262 * config/rs6000/aix71.h: Likewise.
5263 * config/rs6000/aix72.h: Likewise.
5264 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
5265 * config/rs6000/freebsd64.h: Likewise.
5266 * config/rs6000/linux64.h: Likewise.
5267 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
5268 (rs6000_expand_zeroop_builtin): Likewise.
5269 (rs6000_expand_mtfsb_builtin): Likewise.
5270 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
5271 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
5272 (rs6000_invalid_builtin): Likewise.
5273 (rs6000_expand_split_stack_prologue): Likewise.
5274 * config/rs6000/rtems.h: Likewise.
5275 * config/rx/rx.c (valid_psw_flag): Likewise.
5276 (rx_expand_builtin): Likewise.
5277 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
5278 * config/s390/s390.c (s390_expand_builtin): Likewise.
5279 (s390_function_profiler): Likewise.
5280 (s390_option_override_internal): Likewise.
5281 (s390_option_override): Likewise.
5282 * config/sh/sh.c (sh_option_override): Likewise.
5283 (sh_builtin_saveregs): Likewise.
5284 (sh_fix_range): Likewise.
5285 * config/sh/vxworks.h: Likewise.
5286 * config/sparc/sparc.c (sparc_option_override): Likewise.
5287 * config/spu/spu.c (spu_option_override): Likewise.
5288 (fix_range): Likewise.
5289 * config/visium/visium.c (visium_option_override): Likewise.
5290 (visium_handle_interrupt_attr): Likewise.
5291 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
5292 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
5293 (dbg_cnt_process_opt): Likewise.
5294 * dwarf2out.c (output_dwarf_version): Likewise.
5295 * except.c (expand_eh_return): Likewise.
5296 * gcc.c (defined): Likewise.
5297 (driver_handle_option): Likewise.
5298 (process_command): Likewise.
5299 (compare_files): Likewise.
5300 (driver::prepare_infiles): Likewise.
5301 (driver::do_spec_on_infiles): Likewise.
5302 (driver::maybe_run_linker): Likewise.
5303 * omp-offload.c (oacc_parse_default_dims): Likewise.
5304 * opts-global.c (handle_common_deferred_options): Likewise.
5305 * opts.c (parse_sanitizer_options): Likewise.
5306 (common_handle_option): Likewise.
5307 (enable_warning_as_error): Likewise.
5308 * passes.c (enable_disable_pass): Likewise.
5309 * plugin.c (parse_plugin_arg_opt): Likewise.
5310 (default_plugin_dir_name): Likewise.
5311 * targhooks.c (default_expand_builtin_saveregs): Likewise.
5312 (default_pch_valid_p): Likewise.
5313 * toplev.c (init_asm_output): Likewise.
5314 (process_options): Likewise.
5315 (toplev::run_self_tests): Likewise.
5316 * tree-cfg.c (verify_gimple_call): Likewise.
5317 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
5318 (tree_inlinable_function_p): Likewise.
5319 * var-tracking.c (vt_find_locations): Likewise.
5320
5321 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
5322
5323 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
5324 only on the else branch.
5325
5326 2019-03-11 Martin Liska <mliska@suse.cz>
5327
5328 * gcov.c (output_intermediate_json_line): Print function
5329 name of each line.
5330 (output_json_intermediate_file): Add new argument.
5331 * doc/gcov.texi: Document the change.
5332
5333 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
5334
5335 PR rtl-optimization/89588
5336 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
5337 explicit unrolling factor more robust.
5338
5339 2019-03-11 Richard Biener <rguenther@suse.de>
5340
5341 PR tree-optimization/89649
5342 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
5343 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
5344 on the prolog and epilog loops.
5345 (vect_loop_versioning): Return copy of loop.
5346 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
5347 on the non-vectorized version of the loop.
5348
5349 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
5350
5351 PR target/68924
5352 * config/i386/sse.md (*vec_extractv2di_0_sse):
5353 Add (=r,x) alternative and corresponding splitter.
5354
5355 2019-03-10 Martin Jambor <mjambor@suse.cz>
5356
5357 PR tree-optimization/85762
5358 PR tree-optimization/87008
5359 PR tree-optimization/85459
5360 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
5361 it points to if there is a type changing MEM_REF. Adjust all callers.
5362 (build_accesses_from_assign): Disable total scalarization if
5363 contains_vce_or_bfcref_p returns true through the new parameter, for
5364 both rhs and lhs.
5365
5366 2019-03-09 Jakub Jelinek <jakub@redhat.com>
5367
5368 PR c/88568
5369 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
5370 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
5371
5372 PR target/79645
5373 * common.opt (fdiagnostics-show-labels,
5374 fdiagnostics-show-line-numbers, fdiagnostics-format=,
5375 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
5376 gas-locview-support, ginline-points, ginternal-reset-location-views):
5377 Terminate description text with a dot.
5378 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
5379 * config/mcore/mcore.opt (m210, m340): Likewise.
5380 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
5381 mnops=): Start description text with a capital letter.
5382 * config/arc/arc.opt (msize-level=): Likewise.
5383 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
5384 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
5385 mnewlib): Likewise.
5386 * config/ft32/ft32.opt (msim): Likewise.
5387 (mft32b, mcompress): Likewise. Terminate description text with a dot.
5388 (mnodiv, mnopm): Terminate description text with a dot.
5389 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
5390 a colon.
5391 * config/i386/i386.opt (prefer_vector_width, instrument_return):
5392 Likewise.
5393 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
5394 text.
5395
5396 PR rtl-optimization/89634
5397 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
5398 are modified in BB_END (e->src) instruction.
5399
5400 2019-03-08 David Malcolm <dmalcolm@redhat.com>
5401
5402 PR target/79926
5403 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
5404 messages more amenable to translation, and improve wording.
5405
5406 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
5407
5408 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
5409 ud- and du-chains between phases.
5410
5411 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
5412
5413 PR debug/89631
5414 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
5415 instead of POLY_INT_CST.
5416
5417 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5418
5419 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
5420 requirement.
5421
5422 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
5423
5424 PR target/68924
5425 PR target/78782
5426 PR target/87558
5427 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
5428 (_mm_storeu_si64): Ditto.
5429
5430 2019-03-08 Martin Liska <mliska@suse.cz>
5431
5432 PR target/86952
5433 * config/i386/i386.c (ix86_option_override_internal): Disable
5434 jump tables when retpolines are used.
5435
5436 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
5437
5438 PR go/63560
5439 * ipa-split.c (execute_split_functions): Do not split
5440 'noinline' or 'section' function.
5441
5442 2019-03-08 Jakub Jelinek <jakub@redhat.com>
5443
5444 PR target/79846
5445 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
5446 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
5447 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
5448
5449 PR ipa/80000
5450 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
5451 from diagnostics. Formatting fixes.
5452
5453 PR target/85665
5454 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
5455 warn_odr diagnostics.
5456
5457 PR other/80058
5458 * lra-constraints.c (process_alt_operands): Avoid one space before
5459 " at the end of line and another after " on another line in a string
5460 literal.
5461 * attribs.c (handle_dll_attribute): Likewise.
5462 * config/avr/avr-devices.c (avr_texinfo): Likewise.
5463
5464 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
5465 warning_at or inform messages in G_() if there is no ?:.
5466
5467 PR tree-optimization/89550
5468 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
5469 returned true. Formatting fixes.
5470 (expand_builtin_strnlen): Formatting fixes.
5471 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
5472 if warning_at returned true.
5473 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
5474
5475 2019-03-08 Richard Biener <rguenther@suse.de>
5476
5477 PR middle-end/89578
5478 * cfgloop.h (struct loop): Add owned_clique field.
5479 * cfgloopmanip.c (copy_loop_info): Copy it.
5480 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
5481 cliques.
5482 * tree-inline.c (copy_loops): Remap owned_clique.
5483 * lto-streamer-in.c (input_cfg): Stream owned_clique.
5484 * lto-streamer-out.c (output_cfg): Likewise.
5485
5486 2019-03-08 Jakub Jelinek <jakub@redhat.com>
5487
5488 PR target/80190
5489 * config/darwin.c: Include intl.h.
5490 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
5491 composing the message out of two separate parts.
5492
5493 2019-03-07 Jakub Jelinek <jakub@redhat.com>
5494
5495 PR target/80003
5496 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
5497 doesn't start with a capital letter and doesn't end with a dot.
5498 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
5499 with a capital letter.
5500 (ix86_mangle_function_version_assembler_name): Likewise.
5501 (ix86_generate_version_dispatcher_body): Likewise.
5502 (fold_builtin_cpu): Likewise.
5503 (get_builtin_code_for_version): Likewise. Remove extraneous space.
5504 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
5505 translators, wrap full type name in %qs.
5506
5507 PR translation/79999
5508 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
5509 depend clause with source (or sink) modifier.
5510 * omp-expand.c (expand_omp_ordered_sink): Likewise.
5511
5512 PR target/89602
5513 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
5514 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
5515 (avx512f_load<mode>_mask): New define_expand.
5516 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
5517 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
5518 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
5519 __builtin_ia32_movess_mask): New builtins.
5520 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
5521 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
5522 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
5523 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
5524
5525 2019-03-07 Martin Jambor <mjambor@suse.cz>
5526
5527 PR lto/87525
5528 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
5529 for extern inline functions.
5530
5531 2019-03-07 Martin Jambor <mjambor@suse.cz>
5532
5533 PR ipa/88235
5534 * cgraph.h (cgraph_node): New inline method former_thunk_p.
5535 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
5536 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
5537 have multiple callees. At the end check if declarations match as
5538 opposed to cgraph_nodes.
5539
5540 2019-03-07 Martin Liska <mliska@suse.cz>
5541
5542 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
5543 which is equivalent to searching for this in clones chain.
5544 * symtab.c (symtab_node::verify_base): Similarly compare ASM
5545 names with a neighbour and special case first node in a chain.
5546
5547 2019-01-25 Jason Merrill <jason@redhat.com>
5548
5549 PR c++/80916 - spurious "static but not defined" warning.
5550 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
5551 for an internal symbol with DECL_EXTERNAL.
5552
5553 2019-04-07 Richard Biener <rguenther@suse.de>
5554
5555 PR middle-end/89618
5556 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
5557 * tree-inline.c (copy_loops): Simplify.
5558
5559 2019-03-07 Martin Liska <mliska@suse.cz>
5560
5561 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
5562
5563 2019-03-07 Richard Biener <rguenther@suse.de>
5564
5565 PR tree-optimization/89595
5566 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
5567 stmt iterator as reference, take boolean output parameter to
5568 indicate whether the stmt was removed and thus the iterator
5569 already advanced.
5570 (dom_opt_dom_walker::before_dom_children): Re-iterate over
5571 stmts created by folding.
5572
5573 2019-03-07 Jakub Jelinek <jakub@redhat.com>
5574
5575 PR c++/89585
5576 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
5577 at toplevel.
5578
5579 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
5580
5581 PR rtl-optimization/88845
5582 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
5583 LRA.
5584 * lra.c (remove_scratches_1): New function.
5585 (remove_scratches): Use it.
5586 (lra_emit_move): Likewise.
5587
5588 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
5589
5590 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
5591 unaligned_access variable.
5592 * config/arc/arc.c (arc_override_options): Set unaligned access
5593 default on for HS CPUs.
5594 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
5595
5596 2019-03-06 Martin Liska <mliska@suse.cz>
5597
5598 PR gcov-profile/89577
5599 * doc/gcov.texi: Prefer to use --coverage.
5600 * doc/sourcebuild.texi: Likewise.
5601
5602 2019-03-02 Jason Merrill <jason@redhat.com>
5603
5604 PR c++/86485 - -Wmaybe-unused with empty class ?:
5605 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
5606
5607 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5608
5609 PR target/89587
5610 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
5611 if_multiarch.
5612
5613 PR middle-end/89590
5614 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
5615 exactly one argument.
5616
5617 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5618 Richard Sandiford <richard.sandiford@arm.com>
5619
5620 PR tree-optimization/89570
5621 * match.pd (vec_cond into cond_op simplification): Don't use
5622 get_conditional_internal_fn, use as_internal_fn (cond_op).
5623
5624 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
5625
5626 PR target/89222
5627 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
5628 to decide when to split off a non-zero offset from a symbol.
5629 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
5630 in function symbols.
5631
5632 2019-03-05 Richard Biener <rguenther@suse.de>
5633
5634 PR tree-optimization/89594
5635 * tree-if-conv.c (pass_if_conversion::execute): Handle
5636 case where .LOOP_VECTORIZED_FUNCTION was removed.
5637
5638 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5639
5640 PR bootstrap/89560
5641 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
5642 instead alloca it only when needed with the needed size.
5643
5644 PR tree-optimization/89570
5645 * match.pd (vec_cond into cond_op simplification): Guard with
5646 vectorized_internal_fn_supported_p test and #if GIMPLE.
5647
5648 PR tree-optimization/89566
5649 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
5650 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
5651 Punt if get_user_idx_format succeeds, but idx_format argument is
5652 not provided or doesn't have pointer type, or if idx_args is above
5653 number of provided arguments.
5654
5655 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
5656
5657 PR tree-optimization/89437
5658 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
5659
5660 2019-03-04 Richard Biener <rguenther@suse.de>
5661
5662 PR middle-end/89572
5663 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
5664 safe_dyn_cast.
5665
5666 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
5667
5668 PR tree-optimization/89487
5669 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
5670 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
5671 (distribute_loop): Don't do runtime alias check if there is non-
5672 addressable data reference.
5673 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
5674 is a register variable.
5675
5676 2019-03-02 Jakub Jelinek <jakub@redhat.com>
5677
5678 PR target/89506
5679 * config/arm/arm.md (cmpsi2_addneg): Use
5680 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
5681 If operands[2] is 0 or INT_MIN, force use of subs.
5682 (*compare_scc splitter): Use gen_int_mode.
5683 (*negscc): Likewise.
5684 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
5685
5686 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
5687 Monk Chiang <sh.chiang04@gmail.com>
5688
5689 * common/config/riscv/riscv-common.c: Include sstream.
5690 (riscv_subset_list::to_string): New.
5691 (riscv_arch_str): Likewise.
5692 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
5693 * config.in: Regen.
5694 * config/riscv/riscv-protos.h (riscv_arch_str): New.
5695 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
5696 (riscv_emit_attribute): New.
5697 (riscv_file_start): Emit attribute if needed.
5698 (riscv_option_override): Init riscv_emit_attribute_p.
5699 * config/riscv/riscv.opt (mriscv-attribute): New option.
5700 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
5701 * configure: Regen.
5702 * doc/install.texi: Document --with-riscv-attribute.
5703 * doc/invoke.texi: Document -mriscv-attribute.
5704
5705 * common/config/riscv/riscv-common.c:
5706 Include config/riscv/riscv-protos.h.
5707 (INCLUDE_STRING): Defined.
5708 (RISCV_DONT_CARE_VERSION): Defined.
5709 (riscv_subset_t): Declare.
5710 (riscv_subset_t::riscv_subset_t): New.
5711 (riscv_subset_list): Declare.
5712 (riscv_subset_list::riscv_subset_list): New.
5713 (riscv_subset_list::~riscv_subset_list): Likewise.
5714 (riscv_subset_list::parsing_subset_version): Likewise.
5715 (riscv_subset_list::parse_std_ext): Likewise.
5716 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
5717 (riscv_subset_list::add): Likewise.
5718 (riscv_subset_list::lookup): Likewise.
5719 (riscv_subset_list::xlen): Likewise.
5720 (riscv_subset_list::parse): Likewise.
5721 (riscv_supported_std_ext): Likewise.
5722 (current_subset_list): Likewise.
5723 (riscv_parse_arch_string): Using riscv_subset_list::parse to
5724 parse.
5725
5726 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
5727
5728 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
5729 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
5730 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
5731
5732 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
5733
5734 PR rtl-optimization/85899
5735 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
5736 fallthru edges leading to the exit block.
5737
5738 2019-03-01 Tamar Christina <tamar.christina@arm.com>
5739
5740 PR target/89517
5741 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
5742 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
5743
5744 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
5745
5746 PR tree-optimization/89535
5747 * tree-vect-stmts.c (vectorizable_call): Record the vector types
5748 for each operand. Calculate the fallback choice for mask operands
5749 and pass it to vect_get_vec_def_for_operand.
5750
5751 2019-03-01 Richard Biener <rguenther@suse.de>
5752
5753 PR middle-end/89541
5754 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
5755 get virtual operands.
5756 (get_expr_operands): Handle CONST_DECL like other decls.
5757
5758 2019-03-01 Jakub Jelinek <jakub@redhat.com>
5759
5760 PR middle-end/89503
5761 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
5762 on DECL_P and EXPR_P.
5763
5764 2019-03-01 Richard Biener <rguenther@suse.de>
5765
5766 PR middle-end/89497
5767 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
5768 argument, defaulted to zero.
5769 * passes.c (execute_function_todo): Pass down SSA update flags
5770 to cleanup_tree_cfg.
5771 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
5772 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
5773 form if requested.
5774 (cleanup_tree_cfg): Get and pass down SSA update flags.
5775
5776 2019-03-01 Jakub Jelinek <jakub@redhat.com>
5777
5778 PR bootstrap/89539
5779 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
5780 early_lto_debug argument.
5781
5782 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
5783
5784 PR tree-optimization/89536
5785 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
5786 only whether bit #0 of the value is 0 instead of the entire value.
5787
5788 2019-02-28 Marek Polacek <polacek@redhat.com>
5789
5790 PR c++/87068 - missing diagnostic with fallthrough statement.
5791 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
5792 at the end of a seq, save its location to walk_stmt_info.
5793 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
5794 a switch.
5795
5796 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
5797
5798 PR lto/88585
5799 * tree.c (find_atomic_core_type): Move ahead in file.
5800 (check_base_type): Correctly compare alignments of atomic types.
5801
5802 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
5803
5804 PR target/89455
5805 * config/i386/i386.c (get_builtin_code_for_version): Identify
5806 Westmere from PCLMUL, instead of AES.
5807
5808 2019-02-28 Jakub Jelinek <jakub@redhat.com>
5809
5810 PR target/89434
5811 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
5812 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
5813 -UINTVAL (...).
5814
5815 2019-02-28 Tamar Christina <tamar.christina@arm.com>
5816
5817 PR target/88530
5818 * config/aarch64/aarch64-option-extensions.def: Document it.
5819 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
5820 if empty hwcaps.
5821
5822 2019-02-28 Jakub Jelinek <jakub@redhat.com>
5823
5824 PR c/89520
5825 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
5826 builtins if they don't have a single scalar floating point argument.
5827 Formatting fixes.
5828
5829 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
5830
5831 PR rtl-optimization/89490
5832 * varasm.c (get_block_for_section): Bail out for mergeable sections.
5833 (default_use_anchors_for_symbol_p, output_object_block): Assert the
5834 block section is not mergeable.
5835
5836 2019-02-27 Jakub Jelinek <jakub@redhat.com>
5837
5838 PR target/70341
5839 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
5840 old define_insn to ...
5841 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
5842 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
5843 Rename old define_insn to ...
5844 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
5845 (thumb2_casesi_internal_pic): New define_expand. Rename old
5846 define_insn to ...
5847 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
5848 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
5849 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
5850
5851 2019-02-27 Richard Biener <rguenther@suse.de>
5852
5853 PR debug/88878
5854 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
5855
5856 2019-02-27 Richard Biener <rguenther@suse.de>
5857
5858 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
5859 building.
5860
5861 2019-02-27 Richard Biener <rguenther@suse.de>
5862
5863 PR debug/88878
5864 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
5865 parameter, prefix section name with .gnu.debuglto_ if true.
5866 (dwarf2out_finish): Pass false to output_comdat_type_unit.
5867 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
5868
5869 2019-02-27 Richard Biener <rguenther@suse.de>
5870
5871 PR debug/89514
5872 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
5873 rather than on use_debug_types, doing what output_die does.
5874 (value_format): Likewise.
5875
5876 2019-02-27 Martin Jambor <mjambor@suse.cz>
5877 Martin Sebor <msebor@redhat.com>
5878
5879 * doc/invoke.texi (Warning Options): Reword description of
5880 -Wno-absolute-value.
5881
5882 2019-02-27 Jakub Jelinek <jakub@redhat.com>
5883
5884 PR tree-optimization/89280
5885 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
5886 builtin_setjmp_setup_bb): New functions.
5887 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
5888 When visiting __builtin_setjmp_setup block, queue in special
5889 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
5890 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
5891 from visited after the loop if they don't have any visited successor
5892 blocks.
5893
5894 2018-02-26 Steve Ellcey <sellcey@marvell.com>
5895
5896 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
5897 New function.
5898 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
5899
5900 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5901
5902 PR c++/89507
5903 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
5904 with types other than sizetype/ssizetype.
5905
5906 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
5907
5908 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
5909 (enum sparc_processor_type): ...this.
5910 (enum sparc_code_model_type): New enumeration type.
5911 (enum sparc_memory_model_type): Tweak comments.
5912 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
5913 (mtune): Likewise.
5914 (mcmodel): Use sparc_code_model enumeration and variable.
5915 (sparc_code_model): New enumeration.
5916 (mdebug): Add Undocumented marker.
5917 * config/sparc/sparc.h (enum cmodel): Delete.
5918 (sparc_cmodel): Likewise.
5919 (TARGET_CM_MEDLOW): Adjust to above renaming.
5920 (TARGET_CM_MEDMID): Likewise.
5921 (TARGET_CM_MEDANY): Likewise.
5922 (TARGET_CM_EMBMEDANY): Likewise.
5923 * config/sparc/sparc.c (sparc_cmodel): Delete.
5924 (sparc_option_override): Remove string/value mapping support for the
5925 code model. Move code and memory model support to after the handling
5926 of target flags. Do private machine setup last.
5927 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
5928 (sparc_legitimize_reload_address): Likewise.
5929 (sparc_output_mi_thunk): Likewise.
5930 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
5931
5932 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5933
5934 PR tree-optimization/89500
5935 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
5936 (handle_builtin_strlen): Remove noncst_bound variable. Always
5937 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
5938 cst if the first cst bytes starting at x are known to be non-zero,
5939 even if the string is not zero terminated. Don't try to modify
5940 *si for strnlen. Update strlen_to_stridx only for strlen or if
5941 we can prove strnlen returns the same value as strlen would.
5942
5943 2019-02-26 Martin Liska <mliska@suse.cz>
5944
5945 * alloc-pool.h (struct pool_usage): Remove extra
5946 print_dash_line.
5947 * bitmap.h (struct bitmap_usage): Likewise.
5948 * ggc-common.c (struct ggc_usage): Likewise.
5949 * mem-stats.h (struct mem_usage): Likewise.
5950 (mem_alloc_description::dump): Print dash lines
5951 here and repeat header at the end of a table report.
5952 It's then more readable.
5953 * tree-phinodes.c (phinodes_print_statistics): Make
5954 horizontal alignment.
5955 * tree-ssanames.c (ssanames_print_statistics): Likewise.
5956 * vec.c (struct vec_usage): Remove extra print_dash_line.
5957 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
5958
5959 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
5960
5961 * doc/extend.texi (__builtin_object_size):
5962 Use @pxref instead of @xref inside parenthesis.
5963 (__builtin_has_attribute): Add missing comma after @xref.
5964 (__builtin_object_size): Ditto.
5965 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
5966 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
5967 in the list.
5968
5969 2019-02-26 Jeff Law <law@redhat.com>
5970
5971 PR rtl-optimization/87761
5972 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
5973 detect obviously dead insns and delete them.
5974
5975 2019-02-26 Richard Biener <rguenther@suse.de>
5976
5977 PR tree-optimization/89505
5978 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
5979 to handle restrict pointed-to vars with multiple subvars
5980 correctly.
5981
5982 2019-02-26 Richard Biener <rguenther@suse.de>
5983
5984 PR tree-optimization/89489
5985 * tree-parloops.c (create_loop_fn): Copy over last_clique.
5986
5987 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
5988
5989 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
5990 and move around comment.
5991 <BIT_AND_EXPR>: Likewise.
5992 <BIT_NOT_EXPR>: Add specific handling for boolean types.
5993
5994 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5995
5996 PR target/89474
5997 * config/i386/i386.c (remove_partial_avx_dependency): Call
5998 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
5999 after changing possibly many instructions to use that pseudo. Fix up
6000 insertion of v4sf_const0 setter at the start of bb.
6001
6002 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
6003
6004 PR c/80409
6005 * doc/extend.texi (Variadic Pointer Args): New section.
6006
6007 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
6008 Martin Sebor <msebor@gmail.com>
6009
6010 * common.opt (Wattribute-alias): Likewise.
6011 * doc/invoke.texi (Option Summary): List general form of
6012 -Wattribute-alias=. List positive form of -Wmissing-attributes.
6013 (-Wmissing-attributes): Invert entry, rewrite and correct default.
6014 Add cross-references.
6015 (-Wattribute-alias): Rewrite and correct default. Mention
6016 considered attributes (same as for -Wmissing-attributes).
6017
6018 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
6019
6020 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
6021 (_mm_cvtpd_ps): Likewise.
6022 (_mm_cvttpd_epi32): Likewise.
6023
6024 PR target/89338
6025 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
6026 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
6027
6028 PR target/89339
6029 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
6030
6031 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6032
6033 PR target/88530
6034 * common/config/aarch64/aarch64-common.c
6035 (struct aarch64_option_extension): Add is_synthetic.
6036 (all_extensions): Use it.
6037 (TARGET_OPTION_INIT_STRUCT): Define hook.
6038 (struct gcc_targetm_common): Moved to end.
6039 (all_extensions_by_on): New.
6040 (opt_ext_cmp, typedef opt_ext): New.
6041 (aarch64_option_init_struct): New.
6042 (aarch64_contains_opt): New.
6043 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
6044 * config/aarch64/aarch64-option-extensions.def
6045 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
6046 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
6047 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
6048 Set is_synthetic to false.
6049 (crypto): Set is_synthetic to true.
6050 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
6051 SYNTHETIC.
6052
6053 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6054
6055 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6056 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
6057 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6058 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
6059 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
6060 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
6061 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
6062 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
6063 Rename ...
6064 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
6065 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6066 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
6067 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
6068 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
6069 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
6070 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
6071 vfmlsl_laneq_high_f16): ... To this.
6072 * config/arm/neon.md: Update comments.
6073
6074 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6075
6076 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6077 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
6078 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6079 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
6080 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
6081 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
6082 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
6083 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
6084 Rename ...
6085 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
6086 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6087 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
6088 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
6089 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
6090 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
6091 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
6092 vfmlslq_laneq_high_f16): ... To this.
6093
6094 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
6095
6096 PR rtl-optimization/86096
6097 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
6098 comparing mw_order values.
6099
6100 2019-02-25 Jakub Jelinek <jakub@redhat.com>
6101
6102 PR target/89434
6103 * config/arm/arm.md (*subsi3_carryin_const): Use
6104 arm_neg_immediate_operand predicate instead of
6105 arm_not_immediate_operand, "L" constraint instead of "K" and
6106 print it using %n2 instead of %B2.
6107 (*subsi3_carryin_const0): New define_insn.
6108 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
6109 instead of arm_not_operand and "I" constraint instead of "K" and
6110 print it using %n3 instead of %B2. Instead of using match_dup 2 add
6111 another match_operand and in the condition check that it is negation
6112 of operands[2].
6113 (*subsi3_carryin_compare_const0): New define_ins.
6114 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
6115 *subsi3_carryin_const.
6116 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
6117 split into *subsi3_carryin_compare_const0 if the highpart is zero.
6118
6119 PR target/89438
6120 * config/arm.vfp.md (*negdf2_vfp): Use
6121 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
6122 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
6123
6124 2019-02-24 Jakub Jelinek <jakub@redhat.com>
6125
6126 PR rtl-optimization/89445
6127 * simplify-rtx.c (simplify_ternary_operation): Don't use
6128 simplify_merge_mask on operands that may trap.
6129 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
6130 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
6131 second operand is CONST_VECTOR, check if any element could be zero.
6132 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
6133 their operands can trap.
6134
6135 2019-02-23 Martin Sebor <msebor@redhat.com>
6136
6137 * gimple-ssa-sprintf.c (target_strtol): Rename...
6138 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
6139 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
6140 check for range error.
6141
6142 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
6143
6144 PR driver/69471
6145 * opts-common.c (prune_options): Also prune joined switches
6146 with Negative and RejectNegative.
6147 * config/i386/i386.opt (march=): Add Negative(march=).
6148 (mtune=): Add Negative(mtune=).
6149 * doc/options.texi: Document Negative used together with Joined
6150 and RejectNegative.
6151
6152 2019-02-22 Martin Sebor <msebor@redhat.com>
6153
6154 * doc/extend.texi (Other Builtins): Add
6155 __builtin_is_constant_evaluated.
6156
6157 2019-02-22 Richard Biener <rguenther@suse.de>
6158
6159 PR tree-optimization/87609
6160 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
6161
6162 2019-02-22 Jeff Law <law@redhat.com>
6163
6164 PR rtl-optimization/87761
6165 * config/mips/mips.md: Add new combiner pattern to recognize
6166 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
6167
6168 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
6169
6170 PR target/89324
6171 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
6172 destination register in peepholes generating patterns for ADDS/SUBS.
6173 (add<mode>3_compare0,
6174 *addsi3_compare0_uxtw, add<mode>3_compareC,
6175 add<mode>3_compareV_imm, add<mode>3_compareV,
6176 *adds_<optab><ALLX:mode>_<GPI:mode>,
6177 *subs_<optab><ALLX:mode>_<GPI:mode>,
6178 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
6179 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
6180 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
6181 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
6182 sub<mode>3_compare1): Allow stack pointer for source register.
6183 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
6184
6185 2019-02-22 Martin Sebor <msebor@redhat.com>
6186
6187 PR tree-optimization/88993
6188 PR tree-optimization/88853
6189 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
6190 New helper.
6191 (sprintf_dom_walker::call_info::is_string_func): New helper.
6192 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
6193 for formatted string functions.
6194 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
6195
6196 2019-02-22 Martin Sebor <msebor@redhat.com>
6197
6198 PR c/89425
6199 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
6200 unreachable subexpressions.
6201
6202 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
6203 Hongtao Liu <hongtao.liu@intel.com>
6204 Sunil K Pandey <sunil.k.pandey@intel.com>
6205
6206 PR target/87007
6207 * config/i386/i386-passes.def: Add
6208 pass_remove_partial_avx_dependency.
6209 * config/i386/i386-protos.h
6210 (make_pass_remove_partial_avx_dependency): New.
6211 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
6212 New function.
6213 (pass_data_remove_partial_avx_dependency): New.
6214 (pass_remove_partial_avx_dependency): Likewise.
6215 (make_pass_remove_partial_avx_dependency): Likewise.
6216 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
6217 (*extendsfdf2): Add avx_partial_xmm_update.
6218 (truncdfsf2): Likewise.
6219 (*float<SWI48:mode><MODEF:mode>2): Likewise.
6220 (SF/DF conversion splitters): Disabled for TARGET_AVX.
6221
6222 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
6223
6224 PR middle-end/85598
6225 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
6226 analysis for pass.
6227
6228 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
6229
6230 PR target/89444
6231 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
6232 (PTA_SKYLAKE): Add PTA_AES.
6233 (PTA_GOLDMONT): Likewise.
6234
6235 2019-02-22 Sudakshina Das <sudi.das@arm.com>
6236
6237 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
6238 instruction if enabled.
6239 (aarch64_override_options): Remove reference to return address key.
6240
6241 2019-02-22 Richard Biener <rguenther@suse.de>
6242
6243 PR tree-optimization/89440
6244 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
6245 not necessary assert.
6246
6247 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
6248
6249 PR fortran/72741
6250 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
6251 (oacc_replace_fn_attrib_attr): ... this new function.
6252 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
6253 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
6254
6255 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6256
6257 * config/arm/arm-cpus.in (ares): Rename to...
6258 (neoverse-n1): ... This. Add ares as alias.
6259 * config/arm/arm-tables.opt: Regenerate.
6260 * config/arm/arm-tune.md: Likewise.
6261 * doc/invoke.txt (ARM Options): Document neoverse-n1.
6262
6263 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6264
6265 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
6266 * config/aarch64/aarch64-tune.md: Regenerate.
6267 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
6268
6269 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6270
6271 * config/aarch64/aarch64.c (ares_tunings): Rename to...
6272 (neoversen1_tunings): ... This.
6273 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
6274 (neoverse-n1): New CPU.
6275 * config/aarch64/aarch64-tune.md: Regenerate.
6276 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
6277
6278 2019-02-22 Richard Biener <rguenther@suse.de>
6279
6280 PR middle-end/87609
6281 * cfghooks.h (dependence_hash): New typedef.
6282 (struct copy_bb_data): New type.
6283 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
6284 (duplicate_block): Likewise.
6285 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
6286 (copy_bbs): Create and pass down copy_bb_data.
6287 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
6288 (rtl_duplicate_bb): Likewise.
6289 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
6290 remap dependence info.
6291
6292 2019-02-22 Richard Biener <rguenther@suse.de>
6293
6294 PR tree-optimization/87609
6295 * tree-core.h (tree_base): Document special clique values.
6296 * tree-inline.c (remap_dependence_clique): Do not use the
6297 special clique value of one.
6298 (maybe_set_dependence_info): Use clique one.
6299 (clear_dependence_clique): New callback.
6300 (compute_dependence_clique): Clear clique one from all refs
6301 before assigning it (again).
6302
6303 2019-02-21 Martin Sebor <msebor@redhat.com>
6304
6305 * doc/extend.texi (__clear_cache): Correct signature.
6306
6307 2019-02-21 Ian Lance Taylor <iant@golang.org>
6308
6309 PR go/89170
6310 * varasm.c (decode_addr_const): Call lookup_constant_def rather
6311 than output_constant_def.
6312 (add_constant_to_table): New static function.
6313 (output_constant_def): Call add_constant_to_table.
6314 (tree_output_constant_def): Likewise.
6315
6316 2019-02-21 Jakub Jelinek <jakub@redhat.com>
6317
6318 PR c++/89285
6319 * builtins.c (fold_builtin_arith_overflow): If first two args are
6320 INTEGER_CSTs, set intres and ovfres to constants rather than calls
6321 to ifn.
6322
6323 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
6324
6325 PR target/87412
6326 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
6327 error for -mindirect-branch/-mfunction-return with incompatible
6328 -fcf-protection.
6329
6330 2019-02-21 Jakub Jelinek <jakub@redhat.com>
6331
6332 PR bootstrap/88714
6333 * constraints.md (q): Remove.
6334 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
6335 instead of q.
6336
6337 2019-02-21 Martin Jambor <mjambor@suse.cz>
6338
6339 PR hsa/89302
6340 * omp-general.c (omp_extract_for_data): Removed a duplicate call
6341 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
6342 (omp_adjust_for_condition): ...here. Added necessary parameters.
6343 * omp-general.h (omp_adjust_for_condition): Updated declaration.
6344 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
6345 proper values to new parameters of omp_adjust_for_condition.
6346
6347 2019-02-20 Jakub Jelinek <jakub@redhat.com>
6348
6349 PR middle-end/89412
6350 * expr.c (expand_assignment): If result is a MEM, use change_address
6351 instead of simplify_gen_subreg.
6352
6353 2019-02-20 Jakub Jelinek <jakub@redhat.com>
6354 David Malcolm <dmalcolm@redhat.com>
6355
6356 PR middle-end/89091
6357 * fold-const.c (decode_field_reference): Return NULL_TREE if
6358 lang_hooks.types.type_for_size returns NULL. Check it before
6359 overwriting *exp_. Use return NULL_TREE instead of return 0.
6360
6361 2019-02-20 Jakub Jelinek <jakub@redhat.com>
6362
6363 PR middle-end/88074
6364 PR middle-end/89415
6365 * toplev.c (do_compile): Double the emin/emax exponents to workaround
6366 buggy mpc_norm.
6367
6368 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
6369
6370 PR target/89397
6371 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
6372 TARGET_SSE in addition to TARGET_SSE_MATH.
6373
6374 (ix86_excess_precision): Ditto.
6375 (ix86_float_exceptions_rounding_supported_p): Ditto.
6376 (use_rsqrt_p): Ditto.
6377 * config/i386/sse.md (rsqrt<mode>2): Ditto.
6378
6379 2019-02-20 David Malcolm <dmalcolm@redhat.com>
6380
6381 PR c/89410
6382 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
6383 linenum_arith_t when determining if two adjacent line spans are
6384 close enough to merge.
6385 (diagnostic_show_locus): Use linenum_arith_t when iterating over
6386 lines within each line_span.
6387
6388 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
6389
6390 PR target/86487
6391 * lra-constraints.c(uses_hard_regs_p): Fix handling of
6392 paradoxical SUBREGS.
6393
6394 2019-02-20 Li Jia He <helijia@linux.ibm.com>
6395
6396 PR target/88100
6397 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
6398 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
6399 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
6400 range checking it.
6401
6402 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
6403
6404 * config/gcn/gcn.c (print_operand): Fix typo.
6405
6406 2019-02-19 Richard Biener <rguenther@suse.de>
6407
6408 PR middle-end/88074
6409 * toplev.c (do_compile): Initialize mpfr's exponent range
6410 based on available float modes.
6411
6412 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
6413
6414 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
6415 as long as the epilogue isn't completed.
6416
6417 2019-02-18 Martin Sebor <msebor@redhat.com>
6418
6419 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
6420 __has_cpp_attribute, and __has_include.
6421
6422 2019-02-18 Martin Sebor <msebor@redhat.com>
6423
6424 * doc/invoke.texi (-Wreturn-type): Correct and expand.
6425
6426 2019-02-18 Martin Sebor <msebor@redhat.com>
6427
6428 PR middle-end/89294
6429 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
6430 expression.
6431 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
6432
6433 2019-02-18 Richard Biener <rguenther@suse.de>
6434
6435 PR tree-optimization/89296
6436 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
6437 of no-warning flag to cases that might emit the bogus warning.
6438
6439 2019-02-18 Jakub Jelinek <jakub@redhat.com>
6440
6441 PR bootstrap/88714
6442 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
6443 "q" constraint.
6444 * config/arm/vfp.md (*movdi_vfp): Likewise.
6445 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
6446 "q" constraint for operands[0].
6447
6448 PR target/89369
6449 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
6450 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
6451 pattern in a temporary buffer.
6452 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
6453 than 64-operands[2].
6454
6455 PR target/89361
6456 * config/s390/s390.c (s390_indirect_branch_attrvalue,
6457 s390_indirect_branch_settings): Define unconditionally.
6458 (s390_set_current_function): Likewise, but guard the whole body except
6459 the s390_indirect_branch_settings call with
6460 #if S390_USE_TARGET_ATTRIBUTE.
6461 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
6462
6463 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
6464 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
6465 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
6466 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
6467 HOST_WIDE_INT_1U instead of 1ULL.
6468 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
6469 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
6470 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
6471 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
6472 instead of 1UL.
6473 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
6474 instead of 1ul.
6475
6476 2019-02-18 Martin Jambor <mjambor@suse.cz>
6477
6478 PR tree-optimization/89209
6479 * tree-sra.c (create_access_replacement): New optional parameter
6480 reg_tree. Use it as a type if non-NULL and access type is not of
6481 a register type.
6482 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
6483 to create_access_replacement.
6484 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
6485 Check lacc is non-NULL before attempting to re-create it on the RHS.
6486
6487 2019-02-18 Martin Liska <mliska@suse.cz>
6488
6489 PR ipa/89306
6490 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
6491 by default.
6492 (symbol_table::free_edge): Recycle m_summary_id.
6493 * cgraph.h (get_summary_id): New.
6494 (symbol_table::release_symbol): Set m_summary_id to -1
6495 by default.
6496 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
6497 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
6498 function_summary to fast_function_summary.
6499 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
6500 * ipa-pure-const.c (class funct_state_summary_t):
6501 Switch from function_summary to fast_function_summary.
6502 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
6503 (class ipa_ref_opt_summary_t): Switch from function_summary
6504 to fast_function_summary.
6505 * symbol-summary.h (class function_summary_base): New class
6506 that is created from base of former function_summary.
6507 (function_summary_base::unregister_hooks): New.
6508 (class function_summary): Inherit from function_summary_base.
6509 (class call_summary_base): New class
6510 that is created from base of former call_summary.
6511 (class call_summary): Inherit from call_summary_base.
6512 (struct is_same): New.
6513 (class fast_function_summary): New summary class.
6514 (class fast_call_summary): New summary class.
6515 * vec.h (vec_safe_grow_cleared): New function.
6516
6517 2019-02-18 Martin Liska <mliska@suse.cz>
6518
6519 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
6520 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
6521 * doc/tm.texi: Document new target hook.
6522 * doc/tm.texi.in: Likewise.
6523 * target.def: Add new target macro.
6524 * gcc.c (find_fortran_preinclude_file): Do not search multilib
6525 suffixes.
6526
6527 2019-02-17 Alan Modra <amodra@gmail.com>
6528
6529 PR target/89271
6530 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
6531 output reg on add insn.
6532 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
6533
6534 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
6535
6536 PR target/89372
6537 * config/i386/sse.md (ssedoublemode): Remove V4HI.
6538 (PMULHRSW): Likewise.
6539 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
6540 TARGET_AVX2.
6541 (ssse3_pmulhrswv4hi3): New expander.
6542
6543 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
6544
6545 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
6546 MMX. Add isa attribute.
6547
6548 2019-02-16 Jakub Jelinek <jakub@redhat.com>
6549
6550 PR rtl-optimization/66152
6551 * builtins.h (c_readstr): Declare.
6552 * builtins.c (c_readstr): Remove forward declaration. Add
6553 null_terminated_p argument, if false, read all bytes from the
6554 string instead of stopping after '\0'.
6555 * expr.c (string_cst_read_str): New function.
6556 (store_expr): Use string_cst_read_str instead of
6557 builtin_strncpy_read_str. Try to store by pieces the whole
6558 exp_len first, and only if that fails, split it up into
6559 store by pieces followed by clear_storage. Formatting fix.
6560
6561 * config/i386/i386.md (*movqi_internal): Remove static from
6562 buf variable. Use output_asm_insn (buf, operands); return "";
6563 instead of return buf;.
6564 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
6565 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
6566 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
6567
6568 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6569
6570 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
6571 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
6572 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
6573 (CC1_SPEC): Likewise.
6574 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
6575
6576 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6577
6578 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
6579 the base address on 64-bit strict-alignment platforms.
6580
6581 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
6582
6583 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
6584
6585 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
6586
6587 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
6588
6589 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
6590
6591 PR rtl-optimization/88308
6592 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
6593 on copied instruction.
6594
6595 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6596
6597 * final.c (insn_current_reference_address): Replace test on JUMP_P
6598 with test on jump_to_label_p.
6599 * config/visium/visium-passes.def: New file.
6600 * config/visium/t-visium (PASSES_EXTRA): Define.
6601 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
6602 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
6603 (TRAMPOLINE_ALIGNMENT): Define.
6604 * config/visium/visium.c (visium_option_override): Do not register
6605 the machine-specific reorg pass here.
6606 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
6607 for the GR6.
6608 (output_branch): Adjust threshold for long branch instruction.
6609 * config/visium/visium.md (cpu): Move around.
6610 (length): Adjust for the GR6.
6611
6612 2019-02-15 Richard Biener <rguenther@suse.de>
6613 Jakub Jelinek <jakub@redhat.com>
6614
6615 PR tree-optimization/89278
6616 * tree-loop-distribution.c: Include tree-eh.h.
6617 (generate_memset_builtin, generate_memcpy_builtin): Call
6618 rewrite_to_non_trapping_overflow on builtin->size before passing it
6619 to force_gimple_operand_gsi.
6620
6621 2019-02-15 Jakub Jelinek <jakub@redhat.com>
6622
6623 PR other/89342
6624 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
6625 optimize_debug.
6626 * opth-gen.awk: Likewise.
6627
6628 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
6629
6630 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
6631 Enable MMX, SSE and SSE2 by default.
6632 * config/i386/i386.c (ix86_option_override_internal): Do not
6633 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
6634
6635 2019-02-14 Jakub Jelinek <jakub@redhat.com>
6636
6637 PR rtl-optimization/89354
6638 * combine.c (make_extraction): Punt if extraction_mode is narrower
6639 than len bits.
6640
6641 2019-02-14 Maya Rashish <coypu@sdf.org>
6642
6643 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
6644 * config/netbsd-d.c: New file.
6645 * config/t-netbsd: Add netbsd-d.o
6646
6647 2018-02-14 Steve Ellcey <sellcey@marvell.com>
6648
6649 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
6650 affects_type_identity to true for aarch64_vector_pcs.
6651 (aarch64_comp_type_attributes): New function.
6652 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
6653
6654 2019-02-14 Tamar Christina <tamar.christina@arm.com>
6655
6656 PR target/88850
6657 * config/arm/iterators.md (ANY64): Add V4HF.
6658
6659 2019-02-14 Martin Liska <mliska@suse.cz>
6660
6661 PR rtl-optimization/89242
6662 * dce.c (delete_unmarked_insns): Call free_dominance_info we
6663 process a transformation.
6664
6665 2019-02-14 Jakub Jelinek <jakub@redhat.com>
6666
6667 PR tree-optimization/89314
6668 * fold-const.c (fold_binary_loc): Cast strlen argument to
6669 const char * before dereferencing it. Formatting fixes.
6670
6671 PR middle-end/89284
6672 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
6673
6674 2019-02-13 Ian Lance Taylor <iant@golang.org>
6675
6676 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
6677 and set current index for other optimizations.
6678
6679 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
6680
6681 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
6682 nonimmediate_operand as operand 2 predicate.
6683 (vec_set<VF2_512_256:mode>_0): Ditto.
6684 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
6685 (*vec_concatv2si): Remove alternative 2.
6686 (*vec_concatv4si_0): Use vm constraint for alternative 0.
6687 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
6688 (vec_concatv2di): Split alternatives 4,5,6 to ...
6689 (*vec_concatv2di_0) ... new pattern.
6690
6691 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
6692
6693 PR target/89190
6694 * config/arm/arm.c (ldm_stm_operation_p) Set
6695 addr_reg_in_reglist correctly for first register.
6696 (load_multiple_sequence): Remove dead base check.
6697 (gen_ldm_seq): Correctly set write_back for Thumb-1.
6698
6699 2019-02-13 Tamar Christina <tamar.christina@arm.com>
6700
6701 PR target/88847
6702 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
6703 Expose as @aarch64_pred_mov.
6704 * config/aarch64/aarch64.c (aarch64_classify_address):
6705 Use expand_insn which legitimizes operands.
6706
6707 2019-02-13 Martin Liska <mliska@suse.cz>
6708
6709 * builtins.h (expand_builtin_with_bounds): Remove declaration.
6710 * calls.c (struct arg_data): Remove special_slot, pointer_arg
6711 and pointer_offset fields.
6712 (initialize_argument_information): Remove usage of dead
6713 fields.
6714 * cgraph.h (struct cgraph_thunk_info): Remove
6715 add_pointer_bounds_args.
6716 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
6717 fields.
6718 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
6719 fields.
6720 * config/i386/i386.c (ix86_function_arg_advance): Remove
6721 unrelated comment.
6722 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
6723 (def_builtin): Remove usage of dead
6724 fields.
6725 (ix86_add_new_builtins): Likewise.
6726 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6727 * ipa-icf.c (sem_function::equals_wpa): Likewise.
6728 (sem_function::init): Likewise.
6729 (sem_variable::merge): Likewise.
6730 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6731 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6732 * lto-cgraph.c (lto_output_node): Likewise.
6733 (lto_output_varpool_node): Likewise.
6734 (input_node): Likewise.
6735 (input_varpool_node): Likewise.
6736 * lto-streamer-out.c (lto_output): Likewise.
6737 * tree-inline.c (expand_call_inline): Remove usage of
6738 assign_stmts.
6739 * tree-inline.h (struct copy_body_data): Likewise.
6740 * varpool.c (varpool_node::dump): Likewise.
6741
6742 2019-02-13 Jakub Jelinek <jakub@redhat.com>
6743
6744 PR middle-end/89303
6745 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
6746 into pt->vars_contains_escaped_heap instead of setting
6747 pt->vars_contains_escaped_heap to it.
6748
6749 PR middle-end/89281
6750 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
6751 INTVAL (size), compare it to GET_MODE_MASK instead of
6752 1 << GET_MODE_BITSIZE.
6753
6754 PR target/89290
6755 * config/i386/predicates.md (x86_64_immediate_operand): Allow
6756 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
6757 -mcmodel=large.
6758
6759 2019-02-13 Martin Liska <mliska@suse.cz>
6760
6761 PR lto/88858
6762 * cfgrtl.c (remove_barriers_from_footer): New function.
6763 (try_redirect_by_replacing_jump): Use it.
6764 (cfg_layout_redirect_edge_and_branch): Likewise.
6765
6766 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
6767
6768 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
6769 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
6770 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
6771 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
6772 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
6773 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
6774 New BU_CRYPTO_2.
6775 * config/rs6000/rs6000.c (builtin_function_type)
6776 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
6777 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
6778 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
6779 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
6780 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
6781
6782 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
6783
6784 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
6785 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
6786
6787 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
6788
6789 PR target/89229
6790 * config/i386/i386.md (*movoi_internal_avx): Revert revision
6791 268678 and revision 268657.
6792 (*movti_internal): Likewise.
6793
6794 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
6795
6796 PR target/89233
6797 * config/s390/s390.c (s390_decompose_address): Update comment.
6798 (s390_check_qrst_address): Reject invalid address forms after
6799 LRA.
6800
6801 2019-02-12 Martin Liska <mliska@suse.cz>
6802
6803 PR lto/88876
6804 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
6805 we need default values of funct_state for a function that
6806 is not optimized.
6807
6808 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
6809
6810 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
6811 the object to pick the size of stores on strict-alignment platforms.
6812
6813 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
6814 (*movdi_insn_sp32): Likewise.
6815 (*movdi_insn_sp64): Likewise.
6816
6817 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
6818
6819 PR lto/88677
6820 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
6821 types that needs constructiong.
6822 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
6823
6824 2019-02-12 Richard Biener <rguenther@suse.de>
6825
6826 PR tree-optimization/89253
6827 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
6828 duplicate the loop.
6829
6830 2019-02-11 David Malcolm <dmalcolm@redhat.com>
6831
6832 PR lto/88147
6833 * input.c (selftest::test_line_offset_overflow): New selftest.
6834 (selftest::input_c_tests): Call it.
6835
6836 2019-02-11 Martin Sebor <msebor@redhat.com>
6837
6838 PR tree-optimization/88771
6839 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
6840 when -Wstringop-overflow is set.
6841 (builtin_memref::builtin_memref): Adjust excessive upper bound
6842 only when lower bound is not excessive.
6843 (maybe_diag_overlap): Detect and diagnose excessive bounds via
6844 -Wstringop-ovefflow.
6845 (maybe_diag_offset_bounds): Rename...
6846 (maybe_diag_access_bounds): ...to this.
6847 (check_bounds_or_overlap): Adjust for name change above.
6848
6849 2019-02-11 Martin Sebor <msebor@redhat.com>
6850
6851 PR c++/87996
6852 * builtins.c (max_object_size): Move from here...
6853 * builtins.h (max_object_size): ...and here...
6854 * tree.c (max_object_size): ...to here...
6855 * tree.h (max_object_size): ...and here.
6856
6857 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
6858
6859 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
6860 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
6861 for correct semantics.
6862
6863 2019-02-11 Alan Modra <amodra@gmail.com>
6864
6865 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
6866 -mlongcall and -mpltseq.
6867 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
6868 (RS/6000 and PowerPC Options <-mpltseq>): Document.
6869 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
6870 * config/rs6000/sysv4.opt (mpltseq): New option.
6871 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
6872 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
6873 support is lacking. Don't allow -mpltseq with -mbss-plt.
6874 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
6875 -mpltseq given for ELFv1.
6876 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
6877 Only use UNSPEC_PLTSEQ for inline PLT calls.
6878 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
6879 use UNSPEC_PLTSEQ for inline PLT calls.
6880 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
6881 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
6882 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
6883 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
6884 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
6885 (pltseq_mtctr_<mode>): Likewise.
6886
6887 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6888
6889 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
6890 Solaris ld.
6891 * configure: Regenerate.
6892
6893 2019-02-11 Jakub Jelinek <jakub@redhat.com>
6894
6895 PR bootstrap/88714
6896 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
6897 instead of r.
6898
6899 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
6900
6901 * function.c (assign_parm_setup_block): Use the stored
6902 size, not the passed size, when allocating stack-space,
6903 also for a parameter with alignment larger than
6904 MAX_SUPPORTED_STACK_ALIGNMENT.
6905
6906 2019-02-11 Martin Liska <mliska@suse.cz>
6907
6908 PR ipa/89009
6909 * ipa-cp.c (build_toporder_info): Remove usage of a param.
6910 * ipa-inline.c (inline_small_functions): Likewise.
6911 * ipa-pure-const.c (propagate_pure_const): Likewise.
6912 (propagate_nothrow): Likewise.
6913 * ipa-reference.c (propagate): Likewise.
6914 * ipa-utils.c (struct searchc_env): Remove unused field.
6915 (searchc): Always search across AVAIL_INTERPOSABLE.
6916 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
6917 the only called IPA pure const can properly not propagate
6918 across interposable boundary.
6919 * ipa-utils.h (ipa_reduced_postorder): Remove param.
6920
6921 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
6922
6923 * config/nds32/nds32.md (call_internal, call_value_internal,
6924 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
6925
6926 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
6927
6928 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
6929 typo.
6930
6931 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
6932
6933 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
6934 in comments
6935
6936 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
6937
6938 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
6939
6940 2019-02-10 Jakub Jelinek <jakub@redhat.com>
6941
6942 PR tree-optimization/89268
6943 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
6944 if preds is non-NULL.
6945
6946 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6947
6948 PR lto/89272
6949 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
6950 polymorphic types.
6951
6952 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
6953
6954 * config/nds32/nds32.md (trap): New pattern.
6955
6956 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
6957
6958 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
6959 dwarf span.
6960
6961 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
6962
6963 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
6964 to split POST_INC.
6965
6966 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6967
6968 * ipa-visibility.c (localize_node): Also do not localize
6969 LDPR_PREVAILING_DEF_IRONLY_EXP.
6970
6971 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6972
6973 PR lto/87957
6974 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
6975 instead of type_with_linkage.
6976
6977 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6978
6979 PR ipa/88755
6980 * params.def (uninlined-function-insns, uninlined-function-time,
6981 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
6982 bound so we don't get overflows.
6983
6984 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
6985
6986 * config/rs6000/rs6000-string.c (expand_compare_loop,
6987 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
6988 memcmp/strncmp.
6989
6990 2019-02-09 Jakub Jelinek <jakub@redhat.com>
6991
6992 PR middle-end/89246
6993 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6994 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
6995 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
6996
6997 2019-02-09 Alan Modra <amodra@gmail.com>
6998
6999 PR target/88343
7000 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
7001 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
7002 setup.
7003
7004 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
7005
7006 PR middle-end/88560
7007 * lra-constraints.c (process_alt_operands): Don't increase reject
7008 for memory when offset memory is required.
7009
7010 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
7011
7012 * config/s390/vector.md: Implement vector copysign.
7013
7014 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
7015
7016 * expr.c (expand_constructor): Correct indentations.
7017
7018 2019-02-08 Richard Biener <rguenther@suse.de>
7019
7020 PR tree-optimization/89247
7021 * tree-if-conv.c: Include tree-cfgcleanup.h.
7022 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
7023 (tree_if_conversion): Pass through predicate vector.
7024 (pass_if_conversion::execute): Do CFG cleanup and SSA update
7025 inline, see if any if-converted loops we refrece in
7026 LOOP_VECTORIZED calls vanished and fixup.
7027 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
7028
7029 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
7030
7031 * config/s390/constraints.md (jdd): New constraint.
7032
7033 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
7034
7035 PR target/89229
7036 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
7037 upper 16 vector registers without TARGET_AVX512VL.
7038 (*movti_internal): Likewise.
7039
7040 2019-02-08 Jakub Jelinek <jakub@redhat.com>
7041
7042 PR rtl-optimization/89234
7043 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
7044 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
7045 (copy_reg_eh_region_note_backward): Likewise.
7046
7047 2019-02-08 Richard Biener <rguenther@suse.de>
7048
7049 PR middle-end/89223
7050 * tree-data-ref.c (initialize_matrix_A): Fail if constant
7051 doesn't fit in HWI.
7052 (analyze_subscript_affine_affine): Handle failure from
7053 initialize_matrix_A.
7054
7055 2019-02-08 Jakub Jelinek <jakub@redhat.com>
7056
7057 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
7058 cfun everywhere.
7059
7060 2019-02-07 David Malcolm <dmalcolm@redhat.com>
7061
7062 PR tree-optimization/86637
7063 PR tree-optimization/89235
7064 * tree-vect-loop.c (optimize_mask_stores): Add an
7065 auto_purge_vect_location sentinel to ensure that vect_location is
7066 purged on exit.
7067 * tree-vectorizer.c
7068 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
7069 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
7070 to ensure that vect_location is purged on exit.
7071 (pass_slp_vectorize::execute): Likewise, replacing the manual
7072 reset.
7073 * tree-vectorizer.h (class auto_purge_vect_location): New class.
7074
7075 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7076
7077 * config/aarch64/iterators.md (max_opp): New code_attr.
7078 (USMAX): New code iterator.
7079 * config/aarch64/predicates.md (aarch64_smin): New predicate.
7080 (aarch64_smax): Likewise.
7081 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
7082 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
7083 MINUS (MAX MIN).
7084
7085 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
7086
7087 PR target/89229
7088 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
7089 for TARGET_AVX512VL.
7090 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
7091
7092 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
7093
7094 * config/s390/s390-builtin-types.def: Add new types.
7095 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
7096 (s390_vec_xlw4): Make the memory operand into a const pointer.
7097 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
7098 float.
7099 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
7100 a new vector type with the alignment of the scalar memory operand.
7101
7102 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
7103 Jakub Jelinek <jakub@redhat.com>
7104
7105 PR bootstrap/88714
7106 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
7107 arm_count_ldrdstrd_insns): New declarations.
7108 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
7109 MINUS.
7110 (valid_operands_ldrd_strd): New function.
7111 (arm_count_ldrdstrd_insns): New function.
7112 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
7113 sets instead of single DImode set and define new insns to match this.
7114
7115 2019-02-07 Tamar Christina <tamar.christina@arm.com>
7116
7117 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
7118 Make it a C initializer.
7119
7120 2019-02-07 Tamar Christina <tamar.christina@arm.com>
7121
7122 PR/target 88850
7123 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
7124
7125 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7126
7127 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
7128 Use neon_dot<q> for type.
7129 (neon_<sup>dot_lane<vsi2qi>): Likewise.
7130
7131 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7132
7133 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
7134 Use neon_dot<q> for type.
7135 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
7136 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
7137
7138 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
7139
7140 PR rtl-optimization/89225
7141 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
7142 sizes check.
7143
7144 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
7145
7146 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
7147 after restoring registers saved to allocate the frame on Windows.
7148
7149 2019-02-06 Richard Biener <rguenther@suse.de>
7150
7151 PR tree-optimization/89182
7152 * graphite.h (cached_scalar_evolution_in_region): Declare.
7153 * graphite.c (struct seir_cache_key): New.
7154 (struct sese_scev_hash): Likewise.
7155 (seir_cache): New global.
7156 (cached_scalar_evolution_in_region): New function.
7157 (graphite_transform_loops): Allocate and release seir_cache.
7158 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
7159 cached_scalar_evolution_in_region.
7160 * graphite-scop-detection.c (scop_detection::can_represent_loop):
7161 Simplify.
7162 (scop_detection::graphite_can_represent_expr: Use
7163 cached_scalar_evolution_in_region.
7164 (scop_detection::stmt_simple_for_scop_p): Likewise.
7165 (find_params_in_bb): Likewise.
7166 (gather_bbs::before_dom_children): Likewise.
7167 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
7168 (add_loop_constraints): Likewise.
7169
7170 2019-02-06 Jakub Jelinek <jakub@redhat.com>
7171
7172 PR middle-end/89210
7173 * fold-const-call.c (fold_const_vec_convert): Pass true as last
7174 operand to new_unary_operation only if both element types are integral
7175 and it isn't a widening conversion. Return NULL_TREE if
7176 new_unary_operation failed.
7177
7178 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
7179
7180 PR target/88856
7181 * config/s390/s390.md: Remove load and test FP splitter.
7182
7183 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
7184
7185 PR target/89112
7186 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
7187 expand_compare_loop, expand_block_compare_gpr,
7188 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
7189 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
7190 #include "profile-count.h" and "predict.h" for types and functions
7191 needed to work with REG_BR_PROB notes.
7192
7193 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
7194
7195 PR target/89112
7196 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
7197 for the long branch case.
7198
7199 2019-02-05 Jakub Jelinek <jakub@redhat.com>
7200
7201 PR target/89188
7202 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
7203 can throw, non-call exceptions are enabled and we can't delete
7204 dead exceptions or alter cfg. Set must_clean if
7205 delete_insn_and_edges returns true, don't set it blindly for calls.
7206 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
7207
7208 PR rtl-optimization/89195
7209 * combine.c (make_extraction): For MEMs, don't extract bytes outside
7210 of the original MEM.
7211
7212 2019-02-05 Martin Liska <mliska@suse.cz>
7213
7214 PR gcov-profile/89000
7215 * gcov.c (function_summary): Remove argument.
7216 (file_summary): New function.
7217 (print_usage): Replace tabs with spaces.
7218 (generate_results): Use new function file_summary.
7219
7220 2019-02-05 Jakub Jelinek <jakub@redhat.com>
7221
7222 PR target/89186
7223 * optabs.c (prepare_cmp_insn): Pass x and y to
7224 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
7225
7226 2019-02-05 Richard Biener <rguenther@suse.de>
7227
7228 PR middle-end/89150
7229 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
7230 (struct bitmap_element): Drop chain_prev so we properly recurse on
7231 the prev member, supporting tree views.
7232 (struct bitmap_head): GTY skip the obstack member.
7233
7234 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
7235
7236 PR c/88698
7237 * doc/extend.texi (Vector Extensions): Add an example of using vector
7238 types together with x86 intrinsics.
7239
7240 2019-02-04 Alan Modra <amodra@gmail.com>
7241
7242 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
7243 str[] size to 160, and comment.
7244
7245 2019-02-04 Alan Modra <amodra@gmail.com>
7246
7247 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
7248 (rs6000_pltseq_template): Guard output of TLS markers with
7249 TARGET_TLS_MARKERS.
7250 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
7251 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
7252 to use inline PLT sequences.
7253 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7254 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7255 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
7256
7257 2019-02-04 Martin Liska <mliska@suse.cz>
7258
7259 PR ipa/88985
7260 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
7261 out when ipa_fn_summaries does not contain entry for callee.
7262
7263 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
7264
7265 * config/sparc/sparc.h: Remove superfluous blank lines.
7266 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
7267 (got_register_rtx): ...this.
7268 (sparc_got): Adjust to above renaming.
7269 (sparc_tls_got): Likewise.
7270 (sparc_delegitimize_address): Likewise.
7271 (sparc_output_mi_thunk): Likewise.
7272 (sparc_init_pic_reg): Likewise.
7273 (save_local_or_in_reg_p): Fix test on the GOT register.
7274 (USE_HIDDEN_LINKONCE): Move around.
7275 (get_pc_thunk_name): Likewise.
7276 (gen_load_pcrel_sym): Likewise.
7277 (load_got_register): Likewise.
7278
7279 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
7280
7281 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
7282 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
7283
7284 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
7285
7286 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
7287 into consideration.
7288
7289 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
7290
7291 * config.gcc (with_nds32_lib, glibc):
7292 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
7293 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
7294 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
7295
7296 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
7297
7298 PR target/89071
7299 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
7300 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
7301 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
7302 (*rcpsf2_sse): Ditto.
7303 (*rsqrtsf2_sse): Ditto.
7304 (sse4_1_round<mode<2): Ditto.
7305
7306 2019-02-03 Richard Biener <rguenther@suse.de>
7307
7308 PR debug/87295
7309 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
7310 orig.
7311
7312 2019-02-02 Jakub Jelinek <jakub@redhat.com>
7313
7314 PR middle-end/87887
7315 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7316 Punt with warning on aggregate return or argument types. Ignore
7317 type/mode checking for uniform arguments.
7318
7319 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
7320
7321 * combine.c (try_combine): Do not print "Can't combine" messages unless
7322 printing failed combination attempts.
7323
7324 2019-02-01 Martin Jambor <mjambor@suse.cz>
7325
7326 PR hsa/87863
7327 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
7328 segment and global segment variables before making them static.
7329
7330 2019-02-01 Martin Jambor <mjambor@suse.cz>
7331
7332 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
7333 missed optimization dump with dump_enabled_p.
7334
7335 2019-02-01 Richard Biener <rguenther@suse.de>
7336
7337 PR middle-end/88597
7338 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
7339 the instantiate cache.
7340 (instantiate_scev_binary): Elide second operand procesing
7341 if equal to the first.
7342 * tree-chrec.c (chrec_contains_symbols): Add visited set.
7343 (chrec_contains_undetermined): Likewise.
7344 (tree_contains_chrecs): Likewise.
7345
7346 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
7347
7348 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
7349
7350 2019-02-01 Jakub Jelinek <jakub@redhat.com>
7351
7352 PR tree-optimization/89143
7353 * wide-int-range.h (wide_int_range_absu): Declare.
7354 * wide-int-range.cc (wide_int_range_absu): New function.
7355 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
7356
7357 PR tree-optimization/88107
7358 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
7359 instead of assertion that eh_region_outermost is non-NULL, if it
7360 is NULL, set *ALL to true and return NULL.
7361 (move_sese_region_to_fn): Adjust caller, if all is set, call
7362 duplicate_eh_regions with NULL region.
7363
7364 2019-02-01 Richard Biener <rguenth@suse.de>
7365
7366 PR rtl-optimization/88593
7367 * mode-switching.c (optimize_mode_switching): Free dominators before
7368 calling cleanup_cfg.
7369
7370 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
7371
7372 PR tree-optimization/88932
7373 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
7374
7375 2019-01-31 Jakub Jelinek <jakub@redhat.com>
7376
7377 PR middle-end/89137
7378 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
7379 bogus clang warning.
7380
7381 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
7382
7383 PR target/89071
7384 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
7385 alternative to avoid partial SSE register stall for TARGET_AVX.
7386 (truncdfsf2): Ditto.
7387 (sse4_1_round<mode>2): Ditto.
7388
7389 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
7390
7391 PR tree-optimization/89008
7392 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
7393 process anything of the form X * 0.
7394
7395 2019-01-31 Richard Biener <rguenther@suse.de>
7396
7397 PR tree-optimization/89135
7398 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
7399 with abnormal preds.
7400
7401 2019-01-31 Jakub Jelinek <jakub@redhat.com>
7402
7403 PR sanitizer/89124
7404 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
7405 always_inline callees into no_sanitize_address callers.
7406
7407 2019-01-31 Richard Biener <rguenther@suse.de>
7408
7409 PR rtl-optimization/89115
7410 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
7411
7412 2019-01-30 Martin Sebor <msebor@redhat.com>
7413
7414 PR other/89106
7415 * doc/extend.texi (cast to a union): Correct and expand.
7416
7417 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
7418
7419 PR rtl-optimization/87246
7420 * lra-constraints.c (simplify_operand_subreg): Reload memory
7421 in subreg if the address became invalid.
7422
7423 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
7424
7425 PR target/87064
7426 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
7427 Disable for little-endian.
7428
7429 2019-01-30 Richard Biener <rguenther@suse.de>
7430
7431 PR rtl-optimization/89115
7432 * opts.c (default_options_optimization): Reduce
7433 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
7434 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
7435 to the default.
7436
7437 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
7438
7439 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
7440 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
7441 type of vector element when vec_extract is implemented by direct
7442 move.
7443
7444 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
7445
7446 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
7447
7448 2019-01-30 Richard Biener <rguenther@suse.de>
7449
7450 PR tree-optimization/89111
7451 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
7452 canonicalization to appropriately sized access types.
7453
7454 2019-01-30 Jakub Jelinek <jakub@redhat.com>
7455
7456 PR c++/89105
7457 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
7458 for arguments to functions that are TU-local and shouldn't be
7459 referenced by assembly.
7460
7461 2019-01-30 Ulrich Drepper <drepper@redhat.com>
7462
7463 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
7464 after '='.
7465
7466 2019-01-29 Martin Sebor <msebor@redhat.com>
7467
7468 PR c/88956
7469 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
7470
7471 2019-01-29 Jakub Jelinek <jakub@redhat.com>
7472
7473 PR c++/66676
7474 PR ipa/89104
7475 * omp-simd-clone.c (simd_clone_clauses_extract)
7476 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
7477 OMP_CLAUSE_ALIGNED_ALIGNMENT.
7478
7479 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
7480
7481 * config.gcc: Force .init_array for ARC.
7482
7483 2019-01-29 Richard Biener <rguenther@suse.de>
7484
7485 PR debug/87295
7486 * dwarf2out.c (collect_skeleton_dies): New helper.
7487 (copy_decls_for_unworthy_types): Call it.
7488 (build_abbrev_table): Assert we do not try to replace
7489 DW_AT_signature refs with local refs.
7490
7491 2019-01-28 Jakub Jelinek <jakub@redhat.com>
7492
7493 PR middle-end/89002
7494 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
7495 for lastprivate/linear IV, push gimplify context around gimplify_assign
7496 and, if it needed any temporaries, pop it into a gimple bind around the
7497 sequence.
7498
7499 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
7500
7501 * common.opt (-Wattribute-alias): Remove "no-" from name.
7502 Make -Wattribute-alias command line option and
7503 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
7504
7505 2019-01-28 Jakub Jelinek <jakub@redhat.com>
7506
7507 PR target/89073
7508 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
7509 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
7510 x86 ISA options.
7511 (bmi2): Add missing @opindex.
7512 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
7513 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
7514 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
7515 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
7516 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
7517 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
7518 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
7519 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
7520 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
7521 xsavec, xsaveopt and xsaves options.
7522
7523 2019-01-28 Richard Biener <rguenther@suse.de>
7524
7525 PR debug/89076
7526 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
7527 support removal.
7528
7529 2019-01-28 Richard Biener <rguenther@suse.de>
7530
7531 PR tree-optimization/88739
7532 * tree-cfg.c (verify_types_in_gimple_reference): Verify
7533 BIT_FIELD_REFs only are applied to mode-precision operands
7534 when they are integral.
7535 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
7536 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
7537 BIT_FIELD_REFs of non-mode-precision integral operands.
7538
7539 2019-01-27 Jakub Jelinek <jakub@redhat.com>
7540
7541 PR target/87214
7542 * config/i386/sse.md
7543 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
7544 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
7545 first constants in pairs are multiples of 2. Formatting fixes.
7546 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
7547 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
7548 first constants in each quadruple are multiples of 4. Formatting fixes.
7549
7550 2019-01-26 Martin Jambor <mjambor@suse.cz>
7551
7552 PR ipa/88933
7553 * tree-inline.c: Include tree-cfgcleanup.h.
7554 (delete_unreachable_blocks_update_callgraph): Move...
7555 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
7556 ...here, make externally visible, make second argument bool, adjust
7557 all callers.
7558 * tree-cfgcleanup.c: Include cgraph.h.
7559 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
7560 Declare.
7561 * ipa-prop.c: Include tree-cfgcleanup.h.
7562 (ipcp_transform_function): Call
7563 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
7564
7565 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
7566
7567 PR rtl-optimization/88846
7568 * ira.c (process_set_for_memref_referenced_p): New.
7569 (memref_referenced_p): Add new param. Use
7570 process_set_for_memref_referenced_p. Add new switch cases.
7571 (memref_used_between_p): Pass new arg to memref_referenced_p.
7572
7573 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
7574
7575 PR target/88469
7576 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
7577 argument ABI_BREAK. Set to true if the calculated alignment has
7578 changed in gcc-9. Check bit-fields for their base type alignment.
7579 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
7580 (aarch64_function_arg_boundary): Likewise.
7581 (aarch64_gimplify_va_arg_expr): Likewise.
7582
7583 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
7584
7585 PR middle-end/89037
7586 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
7587 instead of accessing TREE_INT_CST_ELT directly.
7588
7589 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
7590
7591 * doc/sourcebuild.texi (Environment attributes): Add fenv and
7592 fenv_exceptions description.
7593
7594 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
7595
7596 PR rtl-optimization/87763
7597 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
7598 Allow SUBREG when matching CC_NZmode compare.
7599
7600 2019-01-25 Richard Biener <rguenther@suse.de>
7601
7602 PR tree-optimization/89049
7603 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
7604 Look at the pattern stmt to determine if the stmt is vectorized.
7605
7606 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
7607
7608 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
7609 (pred_mov<mode>): Handle all-register forms using both a new
7610 alternative and a split.
7611
7612 2019-01-25 Richard Biener <rguenther@suse.de>
7613
7614 PR tree-optimization/86865
7615 * graphite-scop-detection.c (scop_detection::can_represent_loop):
7616 Reject non-do-while loops.
7617
7618 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
7619
7620 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
7621 * config/rs6000/constraints.md (Q constraint): Use REG_P.
7622 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
7623 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
7624 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
7625 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7626 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
7627 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
7628 vlogical_operand, gpc_reg_operand, int_reg_operand,
7629 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
7630 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
7631 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
7632 (save_world_operation, restore_world_operation, lmw_operation,
7633 stmw_operation): Use MEM_P and REG_P.
7634 (tie_operand): Use MEM_P.
7635 (vrsave_operation, crsave_operation): Use REG_P.
7636 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
7637 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
7638 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
7639 (call_operand): Use HARD_REGISTER_P.
7640 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
7641 Use CONST_INT_P.
7642 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
7643 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
7644 quad_aligned_load_p, replace_swapped_aligned_store,
7645 recombine_lvx_pattern, replace_swapped_aligned_load,
7646 recombine_stvx_pattern): Use MEM_P.
7647 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
7648 Use MEM_P and SYMBOL_REF_P.
7649 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
7650 (insn_is_swappable_p): Use REG_P and MEM_P.
7651 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
7652 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
7653 Use CONST_INT_P.
7654 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
7655 Use CONST_DOUBLE_P.
7656 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
7657 CONST_WIDE_INT_P.
7658 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
7659 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
7660 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
7661 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
7662 reg_or_subregno:
7663 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
7664 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
7665 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
7666 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
7667 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
7668 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
7669 rs6000_split_logical_di): Use CONST_INT_P.
7670 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
7671 REG_P and SYMBOL_REF_P.
7672 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
7673 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
7674 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
7675 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
7676 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
7677 (small_data_operand, print_operand_address): Use CONST_INT_P and
7678 SYMBOL_REF_P.
7679 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
7680 (rs6000_init_hard_regno_mode_ok, direct_move_p):
7681 Use HARD_REGISTER_NUM_P.
7682 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
7683 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
7684 SUBREG_P and SYMBOL_REF_P.
7685 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
7686 and HARD_REGISTER_NUM_P.
7687 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
7688 reg_or_subregno.
7689 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
7690 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
7691 MEM_P and REG_P.
7692 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
7693 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
7694 find_addr_reg): Use REG_P.
7695 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
7696 (rs6000_emit_le_vsx_move): Use SUBREG_P.
7697 (offsettable_ok_by_alignment, constant_pool_expr_p,
7698 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
7699 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
7700 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
7701 rs6000_assemble_integer, create_TOC_reference,
7702 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
7703 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
7704 (rs6000_split_vec_extract_var): Use reg_or_subregno.
7705 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
7706 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
7707 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7708 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7709 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
7710 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
7711 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
7712 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
7713 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
7714 and cbranch<mode>4): Use CONST_INT_P.
7715 (multiple define_splits): Use REG_P and SUBREG_P.
7716 (define_expands call, call_value): Use MEM_P.
7717 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
7718 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
7719 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
7720 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
7721 and HARD_REGISTER_NUM_P.
7722 (multiple define_splits): Use HARD_REGISTER_NUM_P.
7723
7724 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
7725
7726 PR rtl-optimization/88948
7727 * rtl.h (prepare_copy_insn): New prototype.
7728 * gcse.c (prepare_copy_insn): New function, split out from
7729 process_insert_insn.
7730 (process_insert_insn): Use prepare_copy_insn.
7731 * store-motion.c (replace_store_insn): Use prepare_copy_insn
7732 instead of gen_move_insn.
7733
7734 2019-01-24 Jakub Jelinek <jakub@redhat.com>
7735
7736 PR debug/89006
7737 * config/i386/i386.c (ix86_pic_register_p): Return true for
7738 UNSPEC_SET_GOT too.
7739
7740 PR tree-optimization/88964
7741 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
7742 punt if HONOR_SNANS (chrec).
7743
7744 PR middle-end/89015
7745 * tree-nested.c (convert_nonlocal_reference_stmt,
7746 convert_local_reference_stmt, convert_tramp_reference_stmt,
7747 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
7748 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
7749 or GIMPLE_OMP_TASK.
7750
7751 PR tree-optimization/89027
7752 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
7753 for "omp simd array" variables.
7754
7755 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
7756
7757 PR target/88469
7758 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
7759 force the alignment of m_val.
7760
7761 2019-01-24 Richard Biener <rguenther@suse.de>
7762
7763 PR lto/87187
7764 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
7765 When in "legacy" debug mode make sure to reset self-origins.
7766
7767 2019-01-24 Martin Liska <mliska@suse.cz>
7768
7769 PR gcov-profile/88994
7770 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
7771 result will be always smaller or equal to the original.
7772 * gcov.c (mangle_name): Fix else branch where we should
7773 also copy to PTR and shift the pointer.
7774
7775 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
7776
7777 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
7778 * vr-values.c (find_case_label_ranges): Fix a comment typo.
7779
7780 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
7781
7782 * common/config/i386/i386-common.c
7783 (OPTION_MASK_ISA_ENQCMD_SET,
7784 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
7785 (ix86_handle_option): Handle -menqcmd.
7786 * config.gcc (enqcmdintrin.h): New header file.
7787 * config/i386/cpuid.h (bit_ENQCMD): New bit.
7788 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
7789 -menqcmd.
7790 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
7791 function type.
7792 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
7793 __builtin_ia32_enqcmds): New builtins.
7794 * config/i386/i386-c.c (__ENQCMD__): New macro.
7795 * config/i386/i386-option.c (ix86_target_string): Add
7796 -menqcmd.
7797 (ix86_valid_target_attribute_inner_p): Likewise.
7798 * config/i386/i386-expand.c
7799 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
7800 IX86_BUILTIN_ENQCMDS.
7801 * config/i386/i386.h (TARGET_ENQCMD): New.
7802 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
7803 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
7804 (movdir64b_<mode>): Parameterize to enable share expansion code
7805 with ENQCMD in function ix86_expand_builtin.
7806 * config/i386/i386.opt: Add -menqcmd.
7807 * config/i386/immintrin.h: Include enqcmdintrin.h.
7808 * config/i386/enqcmdintrin.h: New intrinsic file.
7809 * doc/invoke.texi: Add -menqcmd.
7810
7811 2019-01-23 Bin Cheng <bin.cheng@arm.com>
7812 Steve Ellcey <sellcey@marvell.com>
7813
7814 PR target/85711
7815 * recog.c (address_operand): Return false on wrong mode for address.
7816 (constrain_operands): Check for mode with 'p' constraint.
7817
7818 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
7819
7820 PR target/88998
7821 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
7822 Disparage MMX alternative.
7823 (sse2_cvtpd2pi): Ditto.
7824 (sse2_cvttpd2pi): Ditto.
7825
7826 2019-01-23 David Malcolm <dmalcolm@redhat.com>
7827
7828 PR driver/89014
7829 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
7830 use-after-free of the result of
7831 aarch64_get_extension_string_for_isa_flags.
7832
7833 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7834
7835 PR c/44715
7836 * doc/extend.texi: Document break and continue behavior in
7837 statement expressions.
7838
7839 2019-01-23 Richard Biener <rguenther@suse.de>
7840
7841 PR tree-optimization/89008
7842 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
7843 not leave another stray operand.
7844
7845 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7846
7847 * BASE-VER: Bump to 9.0.1.
7848
7849 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
7850
7851 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
7852 thunk that returns by reference, use the type of the return object
7853 of the thunk instead of that of the alias to build the dereference.
7854
7855 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
7856
7857 * config/arc/atomic.md: Add operand to DMB instruction.
7858
7859 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7860
7861 PR tree-optimization/88964
7862 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
7863 build_zero_cst instead of build_int_cst. Return false for loop
7864 invariants which honor signed zeros.
7865
7866 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
7867
7868 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
7869
7870 2019-01-22 Jakub Jelinek <jakub@redhat.com>
7871
7872 PR target/88965
7873 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
7874 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
7875 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
7876
7877 PR middle-end/88968
7878 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
7879 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
7880
7881 PR target/87064
7882 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
7883 Disable for little endian.
7884
7885 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
7886
7887 PR target/88469
7888 * config/arm/arm.c (arm_needs_double_word_align): Check
7889 DECL_BIT_FIELD_TYPE.
7890
7891 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
7892 H.J. Lu <hongjiu.lu@intel.com>
7893
7894 PR target/88909
7895 * config/i386/i386-builtin.def: Add mask2 to all builtin
7896 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
7897 SPECIAL_ARGS.
7898 * config/i386/i386.c (BDESC): Add mask2 to the definition.
7899 (BDESC_FIRST): Likewise.
7900 (define_builtin): Add an argument for mask2. Updated to handle
7901 both ix86_isa_flags and ix86_isa_flags2.
7902 (define_builtin_const): Likewise.
7903 (define_builtin_pure): Likewise.
7904 (define_builtin2): Deleted.
7905 (define_builtin_const2): Likewise.
7906 (builtin_description): Add a member, mask2.
7907 (bdesc_*): Add mask2 to builtin initializations.
7908 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
7909 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
7910 support.
7911 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
7912
7913 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
7914
7915 PR target/88954
7916 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
7917 noplt attribute.
7918
7919 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
7920
7921 PR target/88469
7922 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
7923 alignment is dominated by a bitfield with 64-bit aligned base type.
7924 (arm_function_arg): Emit a warning if the alignment has changed since
7925 earlier GCC releases.
7926 (arm_function_arg_boundary): Likewise.
7927 (arm_setup_incoming_varargs): Likewise.
7928
7929 2019-01-22 Richard Biener <rguenther@suse.de>
7930
7931 PR tree-optimization/88862
7932 * graphite-scop-detection.c
7933 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
7934
7935 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
7936
7937 * doc/extend.tex (AMD GCN Function Attributes): New section.
7938 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
7939 * doc/invoke.texi (AMD GCN Options): New section.
7940 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
7941
7942 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
7943
7944 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
7945 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
7946
7947 2019-01-22 Jakub Jelinek <jakub@redhat.com>
7948
7949 PR tree-optimization/88044
7950 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
7951 is false in the first iteration, but !every_iteration, return false
7952 instead of true with niter->niter zero.
7953
7954 PR rtl-optimization/88904
7955 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
7956 any nonequal registers before processing BB_END (b).
7957
7958 PR target/88905
7959 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
7960 GET_MODE (op0).
7961 (expand_binop_directly, expand_doubleword_clz,
7962 expand_doubleword_popcount, expand_ctz, expand_ffs,
7963 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
7964
7965 PR rtl-optimization/49429
7966 PR target/49454
7967 PR rtl-optimization/86334
7968 PR target/88906
7969 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
7970 addressable from here...
7971 (emit_block_op_via_libcall): ... to here.
7972
7973 2019-01-22 Richard Biener <rguenther@suse.de>
7974
7975 * tree-vect-loop.c (vect_analyze_loop_operations): Use
7976 auto_vec for cost vector to fix memleak.
7977 (vectorize_fold_left_reduction): Properly gather SLP defs.
7978 (vectorizable_comparison): Do not swap operands to properly
7979 gather SLP defs.
7980
7981 2019-01-22 Alan Modra <amodra@gmail.com>
7982
7983 PR target/88614
7984 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
7985 stays a reg. Allow a const_int.
7986 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
7987 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
7988 (IS_NOMARK_TLSGETADDR): Define.
7989 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
7990 (rs6000_output_tlsargs): New function.
7991 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
7992 __tls_get_addr call takes an arg.
7993 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
7994 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
7995 delete split..
7996 (call_value_nonlocal_sysv): ..or here, delete split.
7997 (tls_gdld_nomark): Delete.
7998 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
7999 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
8000 (call_value_nonlocal_sysv): Likewise.
8001 (call_value_nonlocal_sysv_secure): Likewise.
8002 (call_value_nonlocal_aix): Likewise.
8003 (call_value_indirect_aix): Likewise.
8004 (call_value_indirect_elfv2): Likewise.
8005 (call_value_local32, call_value_local64): Disable for no-mark tls.
8006 (call_value_local_aix): Likewise.
8007
8008 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
8009
8010 PR target/88938
8011 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
8012 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
8013
8014 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
8015
8016 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
8017 string contents as hash_map keys.
8018
8019 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8020
8021 PR c/88928
8022 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
8023 for rvalue context. Handle rvalues correctly. Use min_align_of_type
8024 instead of TYPE_ALIGN.
8025 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
8026 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
8027 pointer from TYPE_STUB_DECL.
8028
8029 2019-01-21 Richard Biener <rguenther@suse.de>
8030
8031 PR tree-optimization/88934
8032 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
8033 at the possibly non-constant operand.
8034 (vect_get_constant_vectors): Adjust.
8035
8036 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
8037
8038 PR target/71659
8039 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
8040 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
8041 instead of _X86INTRIN_H_INCLUDED.
8042 * onfig/i386/clwbintrin.h: Likewise.
8043 * config/i386/pkuintrin.h: Likewise.
8044 * config/i386/prfchwintrin.h: Likewise.
8045 * config/i386/rdseedintrin.h: Likewise.
8046 * config/i386/wbnoinvdintrin.h: Likewise.
8047 * config/i386/xsavecintrin.h: Likewise.
8048 * config/i386/xsavesintrin.h: Likewise.
8049 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
8050 * config/i386/xsaveintrin.h: Likewise.
8051 * config/i386/xsaveoptintrin.h: Likewise.
8052 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
8053 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
8054 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
8055 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
8056 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
8057 * config/i386/immintrin.h: Here.
8058
8059 2019-01-20 Martin Jambor <mjambor@suse.cz>
8060
8061 PR ipa/87615
8062 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
8063 with aa_walk_budget.
8064 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
8065 aa_walk_budget_p parameter.
8066 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
8067 walk. Updated all callers.
8068 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
8069 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
8070 unmodified_parm.
8071 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
8072 parameter info. Extract info from fbi. Pass fbi to recursive calls
8073 and to unmodified_parm.
8074 (phi_result_unknown_predicate): New parameter fbi, removed parameter
8075 info, updated call to will_be_nonconstant_expr_predicate.
8076 (param_change_prob): New parameter fbi, limit AA walking.
8077 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
8078 calls to various above functions.
8079 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
8080 parameter. Use it to limit AA walking.
8081 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
8082 fbi, limit AA walk.
8083 (detect_type_change): New parameter fbi, pass it on to
8084 detect_type_change_from_memory_writes.
8085 (detect_type_change_ssa): Likewise.
8086 (aa_overwalked): Removed.
8087 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
8088 accordingly, adjust to the neew AA limiting scheme.
8089 (parm_ref_data_preserved_p): Likewise.
8090 (ipa_compute_jump_functions_for_edge): Adjust call to
8091 get_dynamic_type.
8092 (ipa_analyze_call_uses): Likewise.
8093 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
8094 (ipa_analyze_node): Initialize aa_walk_budget.
8095 (ipcp_transform_function): Likewise.
8096 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
8097 to get_dynamic_type.
8098
8099 2019-01-19 Jakub Jelinek <jakub@redhat.com>
8100
8101 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
8102 outside of #if CHECKING_P code.
8103
8104 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
8105
8106 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
8107 New function, split out from...
8108 (loop_versioning::analyze_stride): ...here.
8109 (loop_versioning::find_per_loop_multiplication): Use gassign.
8110 (loop_versioning::analyze_term_using_scevs): Return a success code.
8111 (loop_versioning::analyze_arbitrary_term): New function.
8112 (loop_versioning::analyze_address_fragment): Use
8113 analyze_arbitrary_term if all else fails.
8114
8115 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
8116
8117 PR target/88892
8118 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
8119 operands.
8120
8121 2019-01-18 Richard Biener <rguenther@suse.de>
8122
8123 PR tree-optimization/88903
8124 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
8125 scalar stmts a SLP shift amount is composed of when detecting
8126 shifts by scalars.
8127
8128 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
8129
8130 PR target/88799
8131 * config/arm/arm-cpus.in (mp): New feature.
8132 (sec): New feature.
8133 (fgroup ARMv7ve): Add mp and sec features.
8134 (arch armv7-a): Add options to allow mp and sec extensions.
8135 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
8136 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
8137 extenstions to the base architecture.
8138 (cpu cortex-a8): Add sec extension to the base architecture.
8139 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
8140 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
8141 variants down to the base v7-a varaint.
8142 * config/arm/t-multilib (v7_a_arch_variants): New variable.
8143 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
8144 of permitted extensions for -march=armv7-a and for
8145 -mcpu=generic-armv7-a.
8146
8147 2019-01-18 Martin Liska <mliska@suse.cz>
8148
8149 * params.def: Fix comment.
8150 * tree-profile.c (gimple_init_gcov_profiler): Bump function
8151 name.
8152 (gimple_gen_ic_func_profiler): Likewise.
8153
8154 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8155
8156 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
8157 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
8158 and put in error checks for stack protector guard options.
8159 (aarch64_stack_protect_guard): New.
8160 (TARGET_STACK_PROTECT_GUARD): Define.
8161 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
8162 (reg_stack_protect_address<mode>): New.
8163 (stack_protect_set): Adjust for SSP_GLOBAL.
8164 (stack_protect_test): Likewise.
8165 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
8166 (-mstack-protector-guard): Likewise.
8167 (-mstack-protector-guard-offset): Likewise.
8168
8169 2019-01-18 Jakub Jelinek <jakub@redhat.com>
8170
8171 PR tree-optimization/86214
8172 * tree-inline.h (struct copy_body_data): Add
8173 add_clobbers_to_eh_landing_pads member.
8174 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
8175 (copy_edges_for_bb): Call it if EH edge destination is <
8176 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
8177 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
8178 if flag_stack_reuse != SR_NONE and clear it afterwards.
8179
8180 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
8181
8182 PR target/85596
8183 * doc/install.texi (with-multilib-list): Document for aarch64.
8184
8185 2019-01-18 Jakub Jelinek <jakub@redhat.com>
8186
8187 PR target/88734
8188 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
8189 (("..."))) with ("...").
8190
8191 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
8192
8193 * doc/extend.texi (Built-in Functions for Memory Model Aware
8194 Atomic Operations): Document atomic fetch and nand.
8195
8196 2019-01-18 Martin Liska <mliska@suse.cz>
8197 Richard Biener <rguenther@suse.de>
8198
8199 PR middle-end/88587
8200 * cgraph.h (create_version_clone_with_body): Add new argument
8201 with attributes.
8202 * cgraphclones.c (cgraph_node::create_version_clone): Add
8203 DECL_ATTRIBUTES to a newly created decl. And call
8204 valid_attribute_p so that proper cl_target_optimization_node
8205 is set for the newly created declaration.
8206 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
8207 for declaration.
8208 (expand_target_clones): Do not call valid_attribute_p, it must
8209 be already done.
8210 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
8211 vector types.
8212
8213 2019-01-17 Jakub Jelinek <jakub@redhat.com>
8214
8215 PR target/88734
8216 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
8217 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
8218 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
8219
8220 2019-01-17 Martin Sebor <msebor@redhat.com>
8221
8222 PR middle-end/88273
8223 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
8224 Handle anti-ranges the same as no range at all.
8225
8226 2018-01-17 Steve Ellcey <sellcey@cavium.com>
8227
8228 * config/aarch64/aarch64.c (cgraph.h): New include.
8229 (intl.h): New include.
8230 (supported_simd_type): New function.
8231 (currently_supported_simd_type): Ditto.
8232 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
8233 (aarch64_simd_clone_adjust): Ditto.
8234 (aarch64_simd_clone_usable): Ditto.
8235 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
8236 (TARGET_SIMD_CLONE_ADJUST): Ditto.
8237 (TARGET_SIMD_CLONE_USABLE): Ditto.
8238 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
8239 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
8240 call.
8241
8242 2019-01-17 Martin Sebor <msebor@redhat.com>
8243
8244 PR tree-optimization/88800
8245 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
8246 NO_WARNING bit here. Avoid folding out-of-bounds calls.
8247 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
8248 redundant argument. Add new argument and issue diagnostics under
8249 its control. Detect out-of-bounds access even with warnings
8250 disabled.
8251 (check_bounds_or_overlap): Change return type. Add argument.
8252 (wrestrict_dom_walker::check_call): Adjust.
8253 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
8254 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
8255 check_bounds_or_overlap's return value.
8256 (handle_builtin_stxncpy): Same.
8257 (handle_builtin_strcat): Same.
8258
8259 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8260 Kwok Cheung Yeung <kcy@codesourcery.com>
8261 Julian Brown <julian@codesourcery.com>
8262 Tom de Vries <tom@codesourcery.com>
8263
8264 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
8265
8266 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8267
8268 * doc/sourcebuild.texi: Document dg-require-effective-target
8269 llvm_binutils and offload_gcn.
8270
8271 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8272 Kwok Cheung Yeung <kcy@codesourcery.com>
8273 Julian Brown <julian@codesourcery.com>
8274 Tom de Vries <tom@codesourcery.com>
8275
8276 * doc/sourcebuild.texi: Document dg-required-effective-target
8277 exceptions.
8278
8279 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8280 Kwok Cheung Yeung <kcy@codesourcery.com>
8281 Julian Brown <julian@codesourcery.com>
8282 Tom de Vries <tom@codesourcery.com>
8283 Jan Hubicka <hubicka@ucw.cz>
8284 Martin Jambor <mjambor@suse.cz>
8285
8286 * config.gcc: Add amdgcn*-*-amdhsa configuration.
8287 * configure.ac: Check for dlopen.
8288 * configure: Regenerate.
8289
8290 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8291 Kwok Cheung Yeung <kcy@codesourcery.com>
8292 Julian Brown <julian@codesourcery.com>
8293 Tom de Vries <tom@codesourcery.com>
8294 Jan Hubicka <hubicka@ucw.cz>
8295 Martin Jambor <mjambor@suse.cz>
8296
8297 * common/config/gcn/gcn-common.c: New file.
8298 * config/gcn/driver-gcn.c: New file.
8299 * config/gcn/gcn-builtins.def: New file.
8300 * config/gcn/gcn-hsa.h: New file.
8301 * config/gcn/gcn-modes.def: New file.
8302 * config/gcn/gcn-opts.h: New file.
8303 * config/gcn/gcn-passes.def: New file.
8304 * config/gcn/gcn-protos.h: New file.
8305 * config/gcn/gcn-run.c: New file.
8306 * config/gcn/gcn-tree.c: New file.
8307 * config/gcn/gcn.c: New file.
8308 * config/gcn/gcn.h: New file.
8309 * config/gcn/gcn.opt: New file.
8310 * config/gcn/t-gcn-hsa: New file.
8311
8312 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8313 Kwok Cheung Yeung <kcy@codesourcery.com>
8314 Julian Brown <julian@codesourcery.com>
8315 Tom de Vries <tom@codesourcery.com>
8316 Jan Hubicka <hubicka@ucw.cz>
8317 Martin Jambor <mjambor@suse.cz>
8318
8319 * config/gcn/constraints.md: New file.
8320 * config/gcn/gcn-valu.md: New file.
8321 * config/gcn/gcn.md: New file.
8322 * config/gcn/predicates.md: New file.
8323
8324 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
8325
8326 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
8327 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
8328 (stmt_uses_0_or_null_in_undefined_way): Likewise.
8329 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
8330
8331 2019-01-17 Tamar Christina <tamar.christina@arm.com>
8332
8333 PR target/88851
8334 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
8335 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
8336 it and document registers.
8337
8338 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8339
8340 * config/aarch64/aarch64.c (ares_tunings): Define.
8341 * config/aarch64/aarch64-cores.def (ares): Use the above.
8342
8343 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
8344
8345 PR target/88794
8346 Revert:
8347 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
8348
8349 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
8350 (_mm512_fixupimm_round_pd): Update parameters and builtin.
8351 (_mm512_maskz_fixupimm_round_pd): Ditto.
8352 (_mm512_fixupimm_round_ps): Ditto.
8353 (_mm512_maskz_fixupimm_round_ps): Ditto.
8354 (_mm_fixupimm_round_sd): Ditto.
8355 (_mm_maskz_fixupimm_round_sd): Ditto.
8356 (_mm_fixupimm_round_ss): Ditto.
8357 (_mm_maskz_fixupimm_round_ss): Ditto.
8358 (_mm512_fixupimm_pd): Ditto.
8359 (_mm512_maskz_fixupimm_pd): Ditto.
8360 (_mm512_fixupimm_ps): Ditto.
8361 (_mm512_maskz_fixupimm_ps): Ditto.
8362 (_mm_fixupimm_sd): Ditto.
8363 (_mm_maskz_fixupimm_sd): Ditto.
8364 (_mm_fixupimm_ss): Ditto.
8365 (_mm_maskz_fixupimm_ss): Ditto.
8366 (_mm512_mask_fixupimm_round_pd): Update builtin.
8367 (_mm512_mask_fixupimm_round_ps): Ditto.
8368 (_mm_mask_fixupimm_round_sd): Ditto.
8369 (_mm_mask_fixupimm_round_ss): Ditto.
8370 (_mm512_mask_fixupimm_pd): Ditto.
8371 (_mm512_mask_fixupimm_ps): Ditto.
8372 (_mm_mask_fixupimm_sd): Ditto.
8373 (_mm_mask_fixupimm_ss): Ditto.
8374 * config/i386/avx512vlintrin.h:
8375 (_mm256_fixupimm_pd): Update parameters and builtin.
8376 (_mm256_maskz_fixupimm_pd): Ditto.
8377 (_mm256_fixupimm_ps): Ditto.
8378 (_mm256_maskz_fixupimm_ps): Ditto.
8379 (_mm_fixupimm_pd): Ditto.
8380 (_mm_maskz_fixupimm_pd): Ditto.
8381 (_mm_fixupimm_ps): Ditto.
8382 (_mm_maskz_fixupimm_ps): Ditto.
8383 (_mm256_mask_fixupimm_pd): Update builtin.
8384 (_mm256_mask_fixupimm_ps): Ditto.
8385 (_mm_mask_fixupimm_pd): Ditto.
8386 (_mm_mask_fixupimm_ps): Ditto.
8387 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
8388 * config/i386/i386-builtin.def: Update builtin definitions.
8389 * config/i386/i386.c: Handle new builtin types and remove useless ones.
8390 * config/i386/sse.md: Update VFIXUPIMM* patterns.
8391 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8392 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8393 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
8394 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8395 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8396 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
8397 * config/i386/subst.md:
8398 (round_saeonly_sd_mask_operand4): Add new subst_attr.
8399 (round_saeonly_sd_mask_op4): Ditto.
8400 (round_saeonly_expand_operand5): Ditto.
8401 (round_saeonly_expand): Update.
8402
8403 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
8404
8405 PR target/88794
8406 Revert:
8407 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
8408
8409 * config/i386/sse.md: Combine VFIXUPIMM* patterns
8410 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8411 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8412 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
8413 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8414 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8415 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
8416
8417 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
8418
8419 PR target/88794
8420 Revert:
8421 2018-12-15 Jakub Jelinek <jakub@redhat.com>
8422
8423 PR target/88489
8424 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
8425 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
8426 instead of UNSPEC_FIXUPIMM.
8427
8428 2019-01-17 Richard Biener <rguenther@suse.de>
8429
8430 PR lto/86736
8431 * dwarf2out.c (want_pubnames): Never generate pubnames sections
8432 and friends for the LTO part of debug info.
8433
8434 2019-01-17 Jakub Jelinek <jakub@redhat.com>
8435
8436 PR tree-optimization/86214
8437 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
8438 if x == y.
8439
8440 PR rtl-optimization/88870
8441 * dce.c (deletable_insn_p): Never delete const/pure calls that can
8442 throw if we can't alter the cfg or delete dead exceptions.
8443 (mark_insn): Don't call find_call_stack_args for such calls.
8444
8445 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
8446
8447 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
8448 prototypes for vec_st.
8449 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
8450 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
8451 mainly on signed/unsigned long long and double.
8452
8453 2019-01-16 David Malcolm <dmalcolm@redhat.com>
8454
8455 PR target/88861
8456 * combine.c (delete_noop_moves): Convert to "bool" return,
8457 returning true if any edges are eliminated.
8458 (combine_instructions): Also return true if delete_noop_moves
8459 returns true.
8460
8461 2019-01-16 Tamar Christina <tamar.christina@arm.com>
8462
8463 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
8464 correct max nunits for endian swap.
8465 (aarch64_expand_fcmla_builtin): Correct subreg code.
8466 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
8467 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
8468 lane endianness.
8469
8470 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
8471
8472 * config/alpha/alpha.c (alpha_gimplify_va_arg):
8473 Handle split indirect COMPLEX_TYPE arguments.
8474
8475 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
8476
8477 PR target/86891
8478 * config/aarch64/aarch64-modes.def: Add comment about how the carry
8479 bit is set by add and compare.
8480 (CC_ADC): New CC_MODE.
8481 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
8482 to cache the code and mode of X. Adjust the shape of a CC_Cmode
8483 comparison. Add detection for CC_ADCmode.
8484 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
8485 CC_ADCmode.
8486 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
8487 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
8488 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
8489 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
8490 to eliminate the need for zero-extending the operands.
8491 (add<mode>3_compareC_imm): Delete. Merge into ...
8492 (add<mode>3_compareC): ... this. Restructure the comparison to
8493 eliminate the need for zero-extending the operands.
8494 (add<mode>3_carryin): Use LTU for the overflow detection.
8495 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
8496 Reexpress comparison for overflow.
8497 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
8498 (add<mode>3_carryinC): Likewise.
8499 (add<mode>3_carryinV): Use LTU for carry between partials.
8500 * config/aarch64/predicates.md (aarch64_carry_operation): Update
8501 handling of CC_Cmode and add CC_ADCmode.
8502 (aarch64_borrow_operation): Likewise.
8503
8504 2019-01-16 Tamar Christina <tamar.christina@arm.com>
8505
8506 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
8507 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
8508 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
8509 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
8510
8511 2019-01-16 Martin Liska <mliska@suse.cz>
8512
8513 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
8514 for GCC driver.
8515 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
8516 a new argument.
8517 * gcc.c (add_sysrooted_hdrs_prefix): New function.
8518 (path_prefix_reset): Move up in the source file.
8519 (find_fortran_preinclude_file): Make complex search for the
8520 fortran header files.
8521
8522 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
8523
8524 * godump.c (go_output_typedef): When outputting a typedef, refer
8525 to the underlying type by its name and not its structure.
8526
8527 2019-01-15 David Malcolm <dmalcolm@redhat.com>
8528
8529 PR c++/88795
8530 * tree.c (build_function_type): Assert that arg_types is not
8531 error_mark_node.
8532
8533 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
8534
8535 PR inline-asm/52813
8536 * doc/extend.texi: Document that listing the stack pointer in the
8537 clobber list of an asm is a deprecated feature.
8538 * common.opt (Wdeprecated): Moved from c-family/c.opt.
8539 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
8540 warning instead of an error for clobbers of the stack pointer.
8541 Add a note explaining why.
8542
8543 2019-01-15 Richard Biener <rguenther@suse.de>
8544
8545 PR debug/88046
8546 * dwarf2out.c (gen_member_die): Do not generate inheritance
8547 DIEs late.
8548
8549 2019-01-15 Richard Biener <rguenther@suse.de>
8550
8551 PR tree-optimization/88855
8552 * tree-if-conv.c (combine_blocks): Collect
8553 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
8554
8555 2019-01-15 Tom de Vries <tdevries@suse.de>
8556
8557 PR target/80547
8558 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
8559 lhs == NULL_TREE for gang-level reduction.
8560
8561 2019-01-15 Richard Biener <rguenther@suse.de>
8562 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8563
8564 PR ipa/88788
8565 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
8566 return true if SSA_NAME is already marked in visited bitmap.
8567 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
8568
8569 2019-01-15 Jakub Jelinek <jakub@redhat.com>
8570
8571 PR tree-optimization/88775
8572 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
8573 equal == 0 equality pointer comparisons some more if compared in
8574 integral types and either one points to an automatic var and the
8575 other to a global, or we can prove at least one points to the middle
8576 or both point to start or both point to end.
8577
8578 2019-01-14 Andi Kleen <ak@linux.intel.com>
8579
8580 * Makefile.in: Lower autofdo sampling rate by 10x.
8581 * Makefile.tpl: Dito.
8582
8583 2019-01-14 Tom Honermann <tom@honermann.net>
8584
8585 * defaults.h: Define CHAR8_TYPE.
8586
8587 2019-01-14 Martin Sebor <msebor@redhat.com>
8588
8589 PR target/88638
8590 * doc/extend.texi (Darwin Format Checks): Clarify.
8591
8592 2019-01-14 Richard Biener <rguenther@suse.de>
8593
8594 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
8595 whether we are in (simplify ...) or (match ...) context.
8596
8597 2019-01-14 Jakub Jelinek <jakub@redhat.com>
8598
8599 PR rtl-optimization/88796
8600 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
8601 * cfgexpand.c (stack_protect_prologue): Initialize
8602 crtl->stack_protect_guard_decl.
8603 * function.c (stack_protect_epilogue): Use it instead of calling
8604 targetm.stack_protect_guard again.
8605 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
8606 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
8607 crtl->stack_protect_guard_decl.
8608 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
8609 on the returned MEM_EXPR.
8610
8611 2019-01-12 Tom de Vries <tdevries@suse.de>
8612
8613 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
8614 vector length using -fopenacc-dim.
8615
8616 2019-01-12 Tom de Vries <tdevries@suse.de>
8617
8618 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
8619 lengths into account.
8620
8621 2019-01-12 Svante Signell <svante.signell@gmail.com>
8622
8623 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
8624 (TARGET_CAN_SPLIT_STACK): Define.
8625 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
8626
8627 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8628
8629 * params.def (inline-unit-growth): Set to 40.
8630
8631 2019-01-12 Jakub Jelinek <jakub@redhat.com>
8632
8633 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
8634
8635 2019-01-12 Tom de Vries <tdevries@suse.de>
8636
8637 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
8638 region calling vector-partitionable routine, set default_vector_length
8639 to WARP_SIZE.
8640
8641 2019-01-12 Tom de Vries <tdevries@suse.de>
8642
8643 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
8644 variable default_vector_length.
8645
8646 2019-01-12 Tom de Vries <tdevries@suse.de>
8647
8648 PR middle-end/88703
8649 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
8650 from oacc_default_dims, as oacc_validate_dims would do it, and apply
8651 dimensions limits.
8652
8653 2019-01-12 Tom de Vries <tdevries@suse.de>
8654
8655 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
8656 (nvptx_goacc_validate_dims): Add used parameter.
8657 * doc/tm.texi: Regenerate.
8658 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
8659 argument to call to targetm.goacc.validate_dims.
8660 (default_goacc_validate_dims): Add used
8661 parameter.
8662 * target.def (validate_dims): Add used parameter in DEFHOOK.
8663 * targhooks.h (default_goacc_validate_dims): Add used parameter.
8664
8665 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8666
8667 PR middle-end/85956
8668 PR lto/88733
8669 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
8670 field.
8671 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
8672 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
8673 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
8674 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
8675
8676 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
8677
8678 PR rtl-optimization/87305
8679 * lra-assigns.c
8680 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
8681 for little endian pseudos used as paradoxical subreg.
8682
8683 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8684
8685 PR tree-optimization/88693
8686 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
8687 for STRING_CSTs that don't contain any NUL characters in the first
8688 TREE_STRING_LENGTH bytes.
8689
8690 2019-01-11 Alan Modra <amodra@gmail.com>
8691
8692 PR 88777
8693 PR 88614
8694 * genattrtab.c (min_fn): Don't translate values.
8695 (min_attr_value): Return INT_MAX when the value can't be calculated.
8696 Return minimum among any values that can be calculated.
8697 (max_attr_value): Adjust.
8698
8699 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8700
8701 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
8702
8703 2019-01-11 Steve Ellcey <sellcey@marvell.com>
8704
8705 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
8706 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
8707 (aarch64_return_call_with_max_clobbers): New function.
8708 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
8709 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
8710 argument.
8711 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
8712 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
8713 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
8714 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
8715 * cselib.c (cselib_process_insn): Add argument to
8716 targetm.hard_regno_call_part_clobbered call.
8717 * ira-conflicts.c (ira_build_conflicts): Ditto.
8718 * ira-costs.c (ira_tune_allocno_costs): Ditto.
8719 * lra-constraints.c (inherit_reload_reg): Ditto.
8720 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
8721 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
8722 argument. Call targetm.return_call_with_max_clobbers.
8723 Add argument to targetm.hard_regno_call_part_clobbered call.
8724 (calls_have_same_clobbers_p): New function.
8725 (process_bb_lives): Add call_insn and last_call_insn variables.
8726 Pass call_insn to check_pseudos_live_through_calls.
8727 Modify if stmt to check targetm.return_call_with_max_clobbers.
8728 Update setting of flush variable.
8729 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
8730 to false.
8731 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
8732 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
8733 targetm.hard_regno_call_part_clobbered call.
8734 * reginfo.c (choose_hard_reg_mode): Ditto.
8735 * regrename.c (check_new_reg_p): Ditto.
8736 * reload.c (find_equiv_reg): Ditto.
8737 * reload1.c (emit_reload_insns): Ditto.
8738 * sched-deps.c (deps_analyze_insn): Ditto.
8739 * sel-sched.c (init_regs_for_mode): Ditto.
8740 (mark_unavailable_hard_regs): Ditto.
8741 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
8742 * target.def (hard_regno_call_part_clobbered): Add insn argument.
8743 (return_call_with_max_clobbers): New target function.
8744 * doc/tm.texi: Regenerate.
8745 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
8746 * hooks.c (hook_bool_uint_mode_false): Change to
8747 hook_bool_insn_uint_mode_false.
8748 * hooks.h (hook_bool_uint_mode_false): Ditto.
8749
8750 2019-01-11 Steve Ellcey <sellcey@marvell.com>
8751
8752 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
8753 (aarch64_remove_extra_call_preserved_regs): New function.
8754 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
8755 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
8756 * doc/tm.texi: Regenerate.
8757 * final.c (get_call_reg_set_usage): Call new hook.
8758 * target.def (remove_extra_call_preserved_regs): New hook.
8759 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
8760 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
8761
8762 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8763
8764 PR bootstrap/88714
8765 * passes.c (finish_optimization_passes): Call print_combine_total_stats
8766 inside of pass_combine_1 dump rather than pass_profile_1.
8767
8768 2019-01-11 Tom de Vries <tdevries@suse.de>
8769
8770 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
8771 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
8772 (PTX_NUM_PER_WORKER_BARRIERS): Define.
8773 (nvptx_apply_dim_limits): Prevent vector_length 64 and
8774 num_workers 16.
8775
8776 2019-01-11 Tom de Vries <tdevries@suse.de>
8777
8778 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
8779
8780 2019-01-11 Jan Beulich <jbeulich@suse.com>
8781
8782 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
8783 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
8784 sse2_cvtsi2sd): Add {l}.
8785 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
8786 syntax.
8787
8788 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8789
8790 PR target/88785
8791 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
8792 define_expand.
8793 (*float<floatunssuffix>v2div2sf2): New define_insn.
8794 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
8795 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
8796 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
8797 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
8798 match_operands with "const0_operand" "C".
8799
8800 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8801
8802 * config/aarch64/aarch64-builtins.c
8803 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
8804 (aarch64_init_simd_builtins): ...Here
8805
8806 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
8807
8808 PR rtl-optimization/87305
8809 * lra-assigns.c
8810 (setup_live_pseudos_and_spill_after_risky_transforms): Check
8811 allocation for big endian pseudos used as paradoxical subregs and
8812 spill them if it is wrong.
8813 * lra-constraints.c (lra_constraints): Add a comment.
8814
8815 2019-01-10 Richard Biener <rguenther@suse.de>
8816
8817 PR tree-optimization/88792
8818 * tree-ssa-pre.c (get_representative_for): Do not return a
8819 value-number here.
8820
8821 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8822
8823 PR middle-end/84877
8824 PR bootstrap/88450
8825 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
8826 (assign_parm_setup_block): Do the argument slot realignment here
8827 instead.
8828
8829 2019-01-10 Stefan Agner <stefan@agner.ch>
8830
8831 PR target/88648
8832 * config/arm/arm.c (arm_option_override_internal): Force
8833 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
8834
8835 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8836
8837 PR c/88568
8838 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
8839 DECL_EXTERNAL.
8840
8841 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8842
8843 * config/arm/arm-builtins.c
8844 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
8845 (MAC_LANE_PAIR_QUALIFIERS): New.
8846 (arm_expand_builtin_args): Use it.
8847 (arm_expand_builtin_1): Likewise.
8848 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
8849 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
8850 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
8851 * config/arm/arm_neon.h:
8852 (vcadd_rot90_f16): New.
8853 (vcaddq_rot90_f16): New.
8854 (vcadd_rot270_f16): New.
8855 (vcaddq_rot270_f16): New.
8856 (vcmla_f16): New.
8857 (vcmlaq_f16): New.
8858 (vcmla_lane_f16): New.
8859 (vcmla_laneq_f16): New.
8860 (vcmlaq_lane_f16): New.
8861 (vcmlaq_laneq_f16): New.
8862 (vcmla_rot90_f16): New.
8863 (vcmlaq_rot90_f16): New.
8864 (vcmla_rot90_lane_f16): New.
8865 (vcmla_rot90_laneq_f16): New.
8866 (vcmlaq_rot90_lane_f16): New.
8867 (vcmlaq_rot90_laneq_f16): New.
8868 (vcmla_rot180_f16): New.
8869 (vcmlaq_rot180_f16): New.
8870 (vcmla_rot180_lane_f16): New.
8871 (vcmla_rot180_laneq_f16): New.
8872 (vcmlaq_rot180_lane_f16): New.
8873 (vcmlaq_rot180_laneq_f16): New.
8874 (vcmla_rot270_f16): New.
8875 (vcmlaq_rot270_f16): New.
8876 (vcmla_rot270_lane_f16): New.
8877 (vcmla_rot270_laneq_f16): New.
8878 (vcmlaq_rot270_lane_f16): New.
8879 (vcmlaq_rot270_laneq_f16): New.
8880 (vcadd_rot90_f32): New.
8881 (vcaddq_rot90_f32): New.
8882 (vcadd_rot270_f32): New.
8883 (vcaddq_rot270_f32): New.
8884 (vcmla_f32): New.
8885 (vcmlaq_f32): New.
8886 (vcmla_lane_f32): New.
8887 (vcmla_laneq_f32): New.
8888 (vcmlaq_lane_f32): New.
8889 (vcmlaq_laneq_f32): New.
8890 (vcmla_rot90_f32): New.
8891 (vcmlaq_rot90_f32): New.
8892 (vcmla_rot90_lane_f32): New.
8893 (vcmla_rot90_laneq_f32): New.
8894 (vcmlaq_rot90_lane_f32): New.
8895 (vcmlaq_rot90_laneq_f32): New.
8896 (vcmla_rot180_f32): New.
8897 (vcmlaq_rot180_f32): New.
8898 (vcmla_rot180_lane_f32): New.
8899 (vcmla_rot180_laneq_f32): New.
8900 (vcmlaq_rot180_lane_f32): New.
8901 (vcmlaq_rot180_laneq_f32): New.
8902 (vcmla_rot270_f32): New.
8903 (vcmlaq_rot270_f32): New.
8904 (vcmla_rot270_lane_f32): New.
8905 (vcmla_rot270_laneq_f32): New.
8906 (vcmlaq_rot270_lane_f32): New.
8907 (vcmlaq_rot270_laneq_f32): New.
8908 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
8909 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
8910 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
8911 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
8912 vcmlaq_lane270): New.
8913 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
8914 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
8915 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
8916 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
8917 (arm_option_reconfigure_globals): Use them.
8918 * config/arm/iterators.md (VDF, VQ_HSF): New.
8919 (VCADD, VCMLA): New.
8920 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
8921 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
8922 New.
8923 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
8924 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
8925
8926 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8927
8928 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
8929 Add qualifier_lane_pair_index.
8930 (emit-rtl.h): Include.
8931 (TYPES_QUADOP_LANE_PAIR): New.
8932 (aarch64_simd_expand_args): Use it.
8933 (aarch64_simd_expand_builtin): Likewise.
8934 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
8935 New.
8936 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
8937 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
8938 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
8939 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
8940 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
8941 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
8942 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
8943 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
8944 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
8945 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
8946 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
8947 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
8948 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
8949 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
8950 Add __ARM_FEATURE_COMPLEX.
8951 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
8952 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
8953 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
8954 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
8955 fcmlaq_lane270): New.
8956 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
8957 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
8958 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
8959 * config/aarch64/arm_neon.h:
8960 (vcadd_rot90_f16): New.
8961 (vcaddq_rot90_f16): New.
8962 (vcadd_rot270_f16): New.
8963 (vcaddq_rot270_f16): New.
8964 (vcmla_f16): New.
8965 (vcmlaq_f16): New.
8966 (vcmla_lane_f16): New.
8967 (vcmla_laneq_f16): New.
8968 (vcmlaq_lane_f16): New.
8969 (vcmlaq_rot90_lane_f16): New.
8970 (vcmla_rot90_laneq_f16): New.
8971 (vcmla_rot90_lane_f16): New.
8972 (vcmlaq_rot90_f16): New.
8973 (vcmla_rot90_f16): New.
8974 (vcmlaq_laneq_f16): New.
8975 (vcmla_rot180_laneq_f16): New.
8976 (vcmla_rot180_lane_f16): New.
8977 (vcmlaq_rot180_f16): New.
8978 (vcmla_rot180_f16): New.
8979 (vcmlaq_rot90_laneq_f16): New.
8980 (vcmlaq_rot270_laneq_f16): New.
8981 (vcmlaq_rot270_lane_f16): New.
8982 (vcmla_rot270_laneq_f16): New.
8983 (vcmlaq_rot270_f16): New.
8984 (vcmla_rot270_f16): New.
8985 (vcmlaq_rot180_laneq_f16): New.
8986 (vcmlaq_rot180_lane_f16): New.
8987 (vcmla_rot270_lane_f16): New.
8988 (vcadd_rot90_f32): New.
8989 (vcaddq_rot90_f32): New.
8990 (vcaddq_rot90_f64): New.
8991 (vcadd_rot270_f32): New.
8992 (vcaddq_rot270_f32): New.
8993 (vcaddq_rot270_f64): New.
8994 (vcmla_f32): New.
8995 (vcmlaq_f32): New.
8996 (vcmlaq_f64): New.
8997 (vcmla_lane_f32): New.
8998 (vcmla_laneq_f32): New.
8999 (vcmlaq_lane_f32): New.
9000 (vcmlaq_laneq_f32): New.
9001 (vcmla_rot90_f32): New.
9002 (vcmlaq_rot90_f32): New.
9003 (vcmlaq_rot90_f64): New.
9004 (vcmla_rot90_lane_f32): New.
9005 (vcmla_rot90_laneq_f32): New.
9006 (vcmlaq_rot90_lane_f32): New.
9007 (vcmlaq_rot90_laneq_f32): New.
9008 (vcmla_rot180_f32): New.
9009 (vcmlaq_rot180_f32): New.
9010 (vcmlaq_rot180_f64): New.
9011 (vcmla_rot180_lane_f32): New.
9012 (vcmla_rot180_laneq_f32): New.
9013 (vcmlaq_rot180_lane_f32): New.
9014 (vcmlaq_rot180_laneq_f32): New.
9015 (vcmla_rot270_f32): New.
9016 (vcmlaq_rot270_f32): New.
9017 (vcmlaq_rot270_f64): New.
9018 (vcmla_rot270_lane_f32): New.
9019 (vcmla_rot270_laneq_f32): New.
9020 (vcmlaq_rot270_lane_f32): New.
9021 (vcmlaq_rot270_laneq_f32): New.
9022 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
9023 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
9024 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
9025 (FCADD, FCMLA): New.
9026 (rot): New.
9027 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
9028
9029 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
9030
9031 PR other/16615
9032
9033 * config/pa/pa.c: Change "can not" to "cannot".
9034 * gimple-ssa-evrp-analyze.c: Likewise.
9035 * ipa-icf.c: Likewise.
9036 * ipa-polymorphic-call.c: Likewise.
9037 * ipa-pure-const.c: Likewise.
9038 * lra-constraints.c: Likewise.
9039 * lra-remat.c: Likewise.
9040 * reload1.c: Likewise.
9041 * reorg.c: Likewise.
9042 * tree-ssa-uninit.c: Likewise.
9043
9044 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
9045
9046 PR other/16615
9047
9048 * Makefile.in: Mechanically replace "can not" with "cannot".
9049 * alias.c: Likewise.
9050 * builtins.c: Likewise.
9051 * calls.c: Likewise.
9052 * cgraph.c: Likewise.
9053 * cgraph.h: Likewise.
9054 * cgraphclones.c: Likewise.
9055 * cgraphunit.c: Likewise.
9056 * combine-stack-adj.c: Likewise.
9057 * combine.c: Likewise.
9058 * common/config/i386/i386-common.c: Likewise.
9059 * config/aarch64/aarch64.c: Likewise.
9060 * config/alpha/sync.md: Likewise.
9061 * config/arc/arc.c: Likewise.
9062 * config/arc/predicates.md: Likewise.
9063 * config/arm/arm-c.c: Likewise.
9064 * config/arm/arm.c: Likewise.
9065 * config/arm/arm.h: Likewise.
9066 * config/arm/arm.md: Likewise.
9067 * config/arm/cortex-r4f.md: Likewise.
9068 * config/csky/csky.c: Likewise.
9069 * config/csky/csky.h: Likewise.
9070 * config/darwin-f.c: Likewise.
9071 * config/epiphany/epiphany.md: Likewise.
9072 * config/i386/i386.c: Likewise.
9073 * config/i386/sol2.h: Likewise.
9074 * config/m68k/m68k.c: Likewise.
9075 * config/mcore/mcore.h: Likewise.
9076 * config/microblaze/microblaze.md: Likewise.
9077 * config/mips/20kc.md: Likewise.
9078 * config/mips/sb1.md: Likewise.
9079 * config/nds32/nds32.c: Likewise.
9080 * config/nds32/predicates.md: Likewise.
9081 * config/pa/pa.c: Likewise.
9082 * config/rs6000/e300c2c3.md: Likewise.
9083 * config/rs6000/rs6000.c: Likewise.
9084 * config/s390/s390.h: Likewise.
9085 * config/sh/sh.c: Likewise.
9086 * config/sh/sh.md: Likewise.
9087 * config/spu/vmx2spu.h: Likewise.
9088 * cprop.c: Likewise.
9089 * dbxout.c: Likewise.
9090 * df-scan.c: Likewise.
9091 * doc/cfg.texi: Likewise.
9092 * doc/extend.texi: Likewise.
9093 * doc/fragments.texi: Likewise.
9094 * doc/gty.texi: Likewise.
9095 * doc/invoke.texi: Likewise.
9096 * doc/lto.texi: Likewise.
9097 * doc/md.texi: Likewise.
9098 * doc/objc.texi: Likewise.
9099 * doc/rtl.texi: Likewise.
9100 * doc/tm.texi: Likewise.
9101 * dse.c: Likewise.
9102 * emit-rtl.c: Likewise.
9103 * emit-rtl.h: Likewise.
9104 * except.c: Likewise.
9105 * expmed.c: Likewise.
9106 * expr.c: Likewise.
9107 * fold-const.c: Likewise.
9108 * genautomata.c: Likewise.
9109 * gimple-fold.c: Likewise.
9110 * hard-reg-set.h: Likewise.
9111 * ifcvt.c: Likewise.
9112 * ipa-comdats.c: Likewise.
9113 * ipa-cp.c: Likewise.
9114 * ipa-devirt.c: Likewise.
9115 * ipa-fnsummary.c: Likewise.
9116 * ipa-icf.c: Likewise.
9117 * ipa-inline-transform.c: Likewise.
9118 * ipa-inline.c: Likewise.
9119 * ipa-polymorphic-call.c: Likewise.
9120 * ipa-profile.c: Likewise.
9121 * ipa-prop.c: Likewise.
9122 * ipa-pure-const.c: Likewise.
9123 * ipa-reference.c: Likewise.
9124 * ipa-split.c: Likewise.
9125 * ipa-visibility.c: Likewise.
9126 * ipa.c: Likewise.
9127 * ira-build.c: Likewise.
9128 * ira-color.c: Likewise.
9129 * ira-conflicts.c: Likewise.
9130 * ira-costs.c: Likewise.
9131 * ira-int.h: Likewise.
9132 * ira-lives.c: Likewise.
9133 * ira.c: Likewise.
9134 * ira.h: Likewise.
9135 * loop-invariant.c: Likewise.
9136 * loop-unroll.c: Likewise.
9137 * lower-subreg.c: Likewise.
9138 * lra-assigns.c: Likewise.
9139 * lra-constraints.c: Likewise.
9140 * lra-eliminations.c: Likewise.
9141 * lra-lives.c: Likewise.
9142 * lra-remat.c: Likewise.
9143 * lra-spills.c: Likewise.
9144 * lra.c: Likewise.
9145 * lto-cgraph.c: Likewise.
9146 * lto-streamer-out.c: Likewise.
9147 * postreload-gcse.c: Likewise.
9148 * predict.c: Likewise.
9149 * profile-count.h: Likewise.
9150 * profile.c: Likewise.
9151 * recog.c: Likewise.
9152 * ree.c: Likewise.
9153 * reload.c: Likewise.
9154 * reload1.c: Likewise.
9155 * reorg.c: Likewise.
9156 * resource.c: Likewise.
9157 * rtl.def: Likewise.
9158 * rtl.h: Likewise.
9159 * rtlanal.c: Likewise.
9160 * sched-deps.c: Likewise.
9161 * sched-ebb.c: Likewise.
9162 * sched-rgn.c: Likewise.
9163 * sel-sched-ir.c: Likewise.
9164 * sel-sched.c: Likewise.
9165 * shrink-wrap.c: Likewise.
9166 * simplify-rtx.c: Likewise.
9167 * symtab.c: Likewise.
9168 * target.def: Likewise.
9169 * toplev.c: Likewise.
9170 * tree-call-cdce.c: Likewise.
9171 * tree-cfg.c: Likewise.
9172 * tree-complex.c: Likewise.
9173 * tree-core.h: Likewise.
9174 * tree-eh.c: Likewise.
9175 * tree-inline.c: Likewise.
9176 * tree-loop-distribution.c: Likewise.
9177 * tree-nrv.c: Likewise.
9178 * tree-profile.c: Likewise.
9179 * tree-sra.c: Likewise.
9180 * tree-ssa-alias.c: Likewise.
9181 * tree-ssa-dce.c: Likewise.
9182 * tree-ssa-dom.c: Likewise.
9183 * tree-ssa-forwprop.c: Likewise.
9184 * tree-ssa-loop-im.c: Likewise.
9185 * tree-ssa-loop-ivcanon.c: Likewise.
9186 * tree-ssa-loop-ivopts.c: Likewise.
9187 * tree-ssa-loop-niter.c: Likewise.
9188 * tree-ssa-phionlycprop.c: Likewise.
9189 * tree-ssa-phiopt.c: Likewise.
9190 * tree-ssa-propagate.c: Likewise.
9191 * tree-ssa-threadedge.c: Likewise.
9192 * tree-ssa-threadupdate.c: Likewise.
9193 * tree-ssa-uninit.c: Likewise.
9194 * tree-ssanames.c: Likewise.
9195 * tree-streamer-out.c: Likewise.
9196 * tree.c: Likewise.
9197 * tree.h: Likewise.
9198 * vr-values.c: Likewise.
9199
9200 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
9201
9202 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
9203 (ix86_split_xorsign): Ditto.
9204 * config/i386/i386.c (ix86_expand_xorsign): New function.
9205 (ix86_split_xorsign): Ditto.
9206 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
9207 (xorsign<mode>3): New expander.
9208 (xorsign<mode>3_1): New insn_and_split pattern.
9209 * config/i386/sse.md (xorsign<mode>3): New expander.
9210
9211 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9212
9213 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
9214 (*tablejump_sp64): Likewise.
9215 (*tablejump<P:mode>): ...this.
9216 (*call_address_sp32): Merge into...
9217 (*call_address_sp64): Likewise.
9218 (*call_address<P:mode>): ...this.
9219 (*call_symbolic_sp32): Merge into...
9220 (*call_symbolic_sp64): Likewise.
9221 (*call_symbolic<P:mode>): ...this.
9222 (call_value): Remove constraint and add predicate.
9223 (*call_value_address_sp32): Merge into...
9224 (*call_value_address_sp64): Likewise.
9225 (*call_value_address<P:mode>): ...this.
9226 (*call_value_symbolic_sp32): Merge into...
9227 (*call_value_symbolic_sp64): Likewise.
9228 (*call_value_symbolic<P:mode>): ...this.
9229 (*sibcall_symbolic_sp32): Merge into...
9230 (*sibcall_symbolic_sp64): Likewise.
9231 (*sibcall_symbolic<P:mode>): ...this.
9232 (sibcall_value): Remove constraint and add predicate.
9233 (*sibcall_value_symbolic_sp32): Merge into...
9234 (*sibcall_value_symbolic_sp64): Likewise.
9235 (*sibcall_value_symbolic<P:mode>): ...this.
9236 (window_save): Minor tweak.
9237 (*branch_sp32): Merge into...
9238 (*branch_sp64): Likewise.
9239 (*branch<P:mode>): ...this.
9240
9241 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9242 James Clarke <jrtc27@jrtc27.com>
9243
9244 PR target/84010
9245 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
9246 consistently in TLS address generation and adjust code to the renaming
9247 of patterns. Mark calls to __tls_get_addr as const.
9248 * config/sparc/sparc.md (tgd_hi22): Turn into...
9249 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
9250 (tgd_lo10): Turn into...
9251 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
9252 (tgd_add32): Merge into...
9253 (tgd_add64): Likewise.
9254 (tgd_add<P:mode>): ...this and use Pmode throughout.
9255 (tldm_hi22): Turn into...
9256 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
9257 (tldm_lo10): Turn into...
9258 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
9259 (tldm_add32): Merge into...
9260 (tldm_add64): Likewise.
9261 (tldm_add<P:mode>): ...this and use Pmode throughout.
9262 (tldm_call32): Merge into...
9263 (tldm_call64): Likewise.
9264 (tldm_call<P:mode>): ...this and use Pmode throughout.
9265 (tldo_hix22): Turn into...
9266 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
9267 (tldo_lox10): Turn into...
9268 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
9269 (tldo_add32): Merge into...
9270 (tldo_add64): Likewise.
9271 (tldo_add<P:mode>): ...this and use Pmode throughout.
9272 (tie_hi22): Turn into...
9273 (tie_hi22<P:mode>): ...this and use Pmode throughout.
9274 (tie_lo10): Turn into...
9275 (tie_lo10<P:mode>): ...this and use Pmode throughout.
9276 (tie_ld64): Use DImode throughout.
9277 (tie_add32): Merge into...
9278 (tie_add64): Likewise.
9279 (tie_add<P:mode>): ...this and use Pmode throughout.
9280 (tle_hix22_sp32): Merge into...
9281 (tle_hix22_sp64): Likewise.
9282 (tle_hix22<P:mode>): ...this and use Pmode throughout.
9283 (tle_lox22_sp32): Merge into...
9284 (tle_lox22_sp64): Likewise.
9285 (tle_lox22<P:mode>): ...this and use Pmode throughout.
9286 (*tldo_ldub_sp32): Merge into...
9287 (*tldo_ldub_sp64): Likewise.
9288 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
9289 (*tldo_ldub1_sp32): Merge into...
9290 (*tldo_ldub1_sp64): Likewise.
9291 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
9292 (*tldo_ldub2_sp32): Merge into...
9293 (*tldo_ldub2_sp64): Likewise.
9294 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
9295 (*tldo_ldsb1_sp32): Merge into...
9296 (*tldo_ldsb1_sp64): Likewise.
9297 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
9298 (*tldo_ldsb2_sp32): Merge into...
9299 (*tldo_ldsb2_sp64): Likewise.
9300 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
9301 (*tldo_ldub3_sp64): Use DImode throughout.
9302 (*tldo_ldsb3_sp64): Likewise.
9303 (*tldo_lduh_sp32): Merge into...
9304 (*tldo_lduh_sp64): Likewise.
9305 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
9306 (*tldo_lduh1_sp32): Merge into...
9307 (*tldo_lduh1_sp64): Likewise.
9308 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
9309 (*tldo_ldsh1_sp32): Merge into...
9310 (*tldo_ldsh1_sp64): Likewise.
9311 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
9312 (*tldo_lduh2_sp64): Use DImode throughout.
9313 (*tldo_ldsh2_sp64): Likewise.
9314 (*tldo_lduw_sp32): Merge into...
9315 (*tldo_lduw_sp64): Likewise.
9316 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
9317 (*tldo_lduw1_sp64): Use DImode throughout.
9318 (*tldo_ldsw1_sp64): Likewise.
9319 (*tldo_ldx_sp64): Likewise.
9320 (*tldo_stb_sp32): Merge into...
9321 (*tldo_stb_sp64): Likewise.
9322 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
9323 (*tldo_sth_sp32): Merge into...
9324 (*tldo_sth_sp64): Likewise.
9325 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
9326 (*tldo_stw_sp32): Merge into...
9327 (*tldo_stw_sp64): Likewise.
9328 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
9329 (*tldo_stx_sp64): Use DImode throughout.
9330
9331 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9332
9333 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
9334 check configure option to set BTI and Return Address Signing.
9335 * configure.ac: Add --enable-standard-branch-protection and
9336 --disable-standard-branch-protection.
9337 * configure: Regenerated.
9338 * doc/install.texi: Document the same.
9339
9340 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9341 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9342
9343 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
9344 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
9345 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
9346 if bti is enabled.
9347 * config/aarch64/aarch64-bti-insert.c: New file.
9348 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
9349 pass.
9350 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
9351 new bti pass.
9352 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
9353 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
9354 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
9355 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
9356
9357 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9358
9359 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
9360 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
9361 Disable bti for -mbranch-protection=none.
9362 (aarch64_handle_standard_branch_protection): Enable bti for
9363 -mbranch-protection=standard.
9364 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
9365 -mbranch-protection.
9366 (aarch64_bti_enabled): Check if bti is enabled.
9367 * config/aarch64/aarch64.opt: Declare target variable.
9368 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
9369
9370 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9371
9372 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
9373 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
9374 (aarch64_expand_epilogue): Likewise.
9375 (aarch64_output_mi_thunk): Likewise
9376 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
9377 TAILCALL_ADDR_REGS to x16 and x17.
9378 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
9379
9380 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9381
9382 * config/aarch64/aarch64-option-extensions.def: Define
9383 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
9384 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
9385 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
9386 (AARCH64_FL_PREDRES): New.
9387 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
9388 AARCH64_FL_PREDRES by default.
9389 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
9390
9391 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9392
9393 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
9394 ARMv8.5-A.
9395 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
9396 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
9397 * doc/invoke.texi: Document ARMv8.5-A.
9398
9399 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9400
9401 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
9402 (xorsign<mode>3): Likewise.
9403
9404 2019-01-09 Jelinek <jakub@redhat.com>
9405
9406 PR middle-end/88758
9407 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
9408 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
9409
9410 PR rtl-optimization/88331
9411 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
9412 not currently_expanding_to_rtl.
9413
9414 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9415
9416 * doc/invoke.texi (-Os): Remove trailing spaces.
9417 (-finline-functions): Remove reference to -O2.
9418
9419 2019-01-08 Jakub Jelinek <jakub@redhat.com>
9420
9421 PR rtl-optimization/79593
9422 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
9423
9424 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
9425 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
9426
9427 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
9428
9429 PR bootstrap/88721
9430 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
9431 to -1 on entry.
9432
9433 PR debug/88723
9434 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
9435 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
9436
9437 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
9438
9439 PR target/88717
9440 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
9441 ix86_avx_u128_mode_entry.
9442
9443 2019-01-08 Martin Liska <mliska@suse.cz>
9444
9445 PR tree-optimization/88753
9446 * tree-switch-conversion.c (switch_conversion::build_one_array):
9447 Come up with local variable constructor. Convert first to
9448 type of constructor values.
9449
9450 2019-01-08 Richard Biener <rguenther@suse.de>
9451
9452 PR tree-optimization/86554
9453 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
9454 rpo_avail): Move earlier.
9455 (visit_nary_op): When value-numbering to expressions
9456 with different overflow behavior make sure there's an
9457 available expression on the path.
9458
9459 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
9460
9461 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
9462 aarch64_parse_branch_protection,
9463 struct aarch64_branch_protect_type,
9464 aarch64_handle_no_branch_protection,
9465 aarch64_handle_standard_branch_protection,
9466 aarch64_validate_mbranch_protection,
9467 aarch64_handle_pac_ret_protection,
9468 aarch64_handle_attr_branch_protection,
9469 accepted_branch_protection_string,
9470 aarch64_pac_ret_subtypes,
9471 aarch64_branch_protect_types,
9472 aarch64_handle_pac_ret_leaf): Define.
9473 (aarch64_override_options_after_change_1, aarch64_override_options):
9474 Add check for accepted_branch_protection_string.
9475 (aarch64_option_save): Save accepted_branch_protection_string.
9476 (aarch64_option_restore): Save accepted_branch_protection_string.
9477 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
9478 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
9479 msign-return-address.
9480 * doc/invoke.texi: Add mbranch-protection.
9481
9482 2019-01-08 Alan Modra <amodra@gmail.com>
9483
9484 PR target/88614
9485 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
9486 Delete "unknownp" parameter. Adjust callers. Handle
9487 CONST_INT, PLUS, MINUS, and MULT.
9488 (attr_value_aligned): Renamed from or_attr_value.
9489 (min_attr_value): Return INT_MIN for unhandled rtl case..
9490 (min_fn): ..and translate to INT_MAX here.
9491 (write_length_unit_log): Modify to cope without "unknown".
9492 (write_attr_value): Handle IF_THEN_ELSE.
9493
9494 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9495
9496 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
9497 optimization for masked stores.
9498
9499 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9500
9501 PR middle-end/88567
9502 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
9503 output vector directly to duplicate_and_interleave instead of
9504 going through a temporary. Postpone insertion of ctor_seq to
9505 the end of the loop.
9506
9507 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
9508
9509 PR target/86891
9510 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
9511 unsigned_p. Handle signed and unsigned overflow correction as
9512 required.
9513 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
9514 prototype.
9515 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
9516 for operand 2.
9517 (add<mode>3_compareV_imm): Make this callable for expanding.
9518 (subv<GPI:mode>4): Use register_operand for operand 1. Use
9519 aarch64_plus_operand for operand 2.
9520 (subv<GPI:mode>_insn): New insn pattern.
9521 (subv<GPI:mode>_imm): Likewise.
9522 (negv<GPI:mode>3): New expand pattern.
9523 (negv<GPI:mode>_insn): New insn pattern.
9524 (negv<GPI:mode>_cmp_only): Likewise.
9525 (cmpv<GPI:mode>_insn): Likewise.
9526 (subvti4): Use register_operand for operand 1. Update call to
9527 aarch64_expand_subvti.
9528 (usubvti4): Likewise.
9529 (negvti3): New expand pattern.
9530 (negdi_carryout): New insn pattern.
9531 (negvdi_carryinV): New insn pattern.
9532 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
9533 version the named version.
9534 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
9535 operands.
9536 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
9537 patterns.
9538 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
9539 patterns.
9540 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
9541 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
9542 (sub<mode>3_carryinCV): Delete.
9543 (sub<GPI:mode>3_carryinV): New expand pattern.
9544 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
9545
9546 2019-01-07 Richard Biener <rguenther@suse.de>
9547
9548 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
9549 of tree_operand_hash.
9550
9551 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9552
9553 PR tree-optimization/88598
9554 * tree.h (single_nonzero_element): Declare.
9555 * tree.c (single_nonzero_element): New function.
9556 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
9557 if I is the only nonzero element of CST.
9558
9559 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9560
9561 PR tree-optimization/88598
9562 * tree.h (initializer_each_zero_or_onep): Declare.
9563 * tree.c (initializer_each_zero_or_onep): New function.
9564 (signed_or_unsigned_type_for): Handle float types too.
9565 (unsigned_type_for, signed_type_for): Update comments accordingly.
9566 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
9567 x & { 0 or -1, 0 or -1, ... }.
9568
9569 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
9570
9571 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
9572 with x86_64-pc-linux-gnu.
9573
9574 2019-01-07 Tom de Vries <tdevries@suse.de>
9575
9576 PR target/85486
9577 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
9578 function.
9579 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
9580 routines.
9581
9582 2019-01-07 Jakub Jelinek <jakub@redhat.com>
9583
9584 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
9585 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
9586 TARGET_AVX512F as condition.
9587
9588 PR debug/88723
9589 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
9590 const_not_ok_for_debug_p target hook.
9591 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
9592 on UNSPEC and subexpressions thereof if all subexpressions of the
9593 UNSPEC are CONSTANT_P.
9594
9595 PR tree-optimization/88676
9596 * tree-ssa-phiopt.c (two_value_replacement): New function.
9597 (tree_ssa_phiopt_worker): Call it.
9598
9599 PR sanitizer/88619
9600 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
9601 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
9602
9603 PR c++/85052
9604 * tree-vect-generic.c: Include insn-config.h and recog.h.
9605 (expand_vector_piecewise): Add defaulted ret_type argument,
9606 if non-NULL, use that in preference to type for the result type.
9607 (expand_vector_parallel): Formatting fix.
9608 (do_vec_conversion, do_vec_narrowing_conversion,
9609 expand_vector_conversion): New functions.
9610 (expand_vector_operations_1): Call expand_vector_conversion
9611 for VEC_CONVERT ifn calls.
9612 * internal-fn.def (VEC_CONVERT): New internal function.
9613 * internal-fn.c (expand_VEC_CONVERT): New function.
9614 * fold-const-call.c (fold_const_vec_convert): New function.
9615 (fold_const_call): Use it for CFN_VEC_CONVERT.
9616 * doc/extend.texi (__builtin_convertvector): Document.
9617
9618 2019-01-07 Tom de Vries <tdevries@suse.de>
9619
9620 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
9621 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
9622 vector_red_partition, vector_red_sym): New global variables.
9623 (nvptx_option_override): Initialize vector_red_sym.
9624 (nvptx_declare_function_name): Restore red_partition register.
9625 (nvptx_file_end): Emit code to declare the vector reduction variables.
9626 (nvptx_output_red_partition): New function.
9627 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
9628 large vector reductions.
9629 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
9630 (nvptx_init_builtins): Add VECTOR_ADDR.
9631 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
9632 Handle nvptx_expand_shared_addr.
9633 (nvptx_get_shared_red_addr): Add vector argument and handle large
9634 vectors.
9635 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
9636 large vectors.
9637 (nvptx_goacc_reduction_init): Likewise.
9638 (nvptx_goacc_reduction_fini): Likewise.
9639 (nvptx_goacc_reduction_teardown): Likewise.
9640 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
9641 init,fini,teardown}.
9642 (nvptx_init_axis_predicate): Initialize vector_red_partition.
9643 (nvptx_set_current_function): Init vector_red_partition.
9644 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
9645 (nvptx_red_partition): New insn.
9646 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
9647
9648 2019-01-07 Tom de Vries <tdevries@suse.de>
9649
9650 PR target/85381
9651 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
9652 empty loops.
9653
9654 2019-01-07 Tom de Vries <tdevries@suse.de>
9655
9656 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
9657 (nvptx_option_override): Init oacc_bcast_partition.
9658 (nvptx_init_oacc_workers): New function.
9659 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
9660 (nvptx_needs_shared_bcast): New function.
9661 (nvptx_find_par): Generalize to enable vectors to use shared-memory
9662 to propagate state.
9663 (nvptx_shared_propagate): Initialize vector bcast partition and
9664 synchronization state.
9665 (nvptx_single): Generalize to enable vectors to use shared-memory
9666 to propagate state.
9667 (nvptx_process_pars): Likewise.
9668 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
9669 * config/nvptx/nvptx.h (struct machine_function): Add
9670 bcast_partition and sync_bar members.
9671
9672 2019-01-07 Tom de Vries <tdevries@suse.de>
9673
9674 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
9675 (nvptx_apply_dim_limits): New function.
9676 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
9677 PTX_WARP_SIZE.
9678
9679 2019-01-07 Tom de Vries <tdevries@suse.de>
9680
9681 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
9682 as late as possible.
9683
9684 2019-01-07 Tom de Vries <tdevries@suse.de>
9685
9686 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
9687 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
9688 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
9689 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
9690 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
9691
9692 2019-01-07 Tom de Vries <tdevries@suse.de>
9693
9694 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
9695
9696 2019-01-07 Tom de Vries <tdevries@suse.de>
9697
9698 * omp-offload.c (oacc_get_min_dim): New function.
9699 * omp-offload.h (oacc_get_min_dim): Declare.
9700
9701 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
9702
9703 PR target/88521
9704 * config/i386/i386.c (function_value_ms_64): Return small sturct in
9705 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
9706
9707 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9708
9709 PR tree-opt/86020
9710 Revert:
9711 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
9712
9713 * ipa-inline.c (edge_badness): Use inlined_time instead of
9714 inline_summaries->get.
9715
9716 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9717
9718 * opts.c (enable_fdo_optimizations): Enable
9719 version-loops-for-strides, loop-interchange, unrol-and-jam
9720 and tree-loop-distribution.
9721 * invoke.texi: Document newly enabled options.
9722
9723 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9724
9725 * doc/invoke.texi (max-inline-insns-small): New parameters.
9726 * ipa-inline.c (want_early_inline_function_p): simplify.
9727 (want_inline_small_function_p): Fix pasto from previous patch;
9728 use max-inline-insns-small bound.
9729 * params.def (max-inline-insns-small): New param.
9730 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
9731 variables correctly.
9732
9733 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9734
9735 * doc/invoke.texi: Document max-inline-insns-size,
9736 uninlined-function-insns, uninlined-function-time,
9737 uninlined-thunk-insns and uninlined-thunk-time.
9738 * params.def: Add max-inline-insns-size,
9739 uninlined-function-insns, uninlined-function-time,
9740 uninlined-thunk-insns and uninlined-thunk-time.
9741 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
9742 new parameters.
9743 * ipa-inline.c (can_inline_edge_by_limits_p,
9744 want_inline_small_function_p): Use new parameters.
9745
9746 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9747
9748 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
9749
9750 2019-01-05 Jakub Jelinek <jakub@redhat.com>
9751
9752 PR middle-end/82564
9753 PR target/88620
9754 * expr.c (expand_assignment): For calls returning VLA structures
9755 if to_rtx is not a MEM, force it into a stack temporary.
9756
9757 PR debug/88635
9758 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
9759 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
9760 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
9761 subexpressions of both operands.
9762 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
9763 subrtxes are CONSTANT_P.
9764 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
9765 2018-11-09 changes.
9766
9767 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
9768
9769 * params.def (hot-bb-count-ws-permille): Set to 990.
9770
9771 2019-01-04 Martin Sebor <msebor@redhat.com>
9772
9773 PR c/88546
9774 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
9775 leaf.
9776
9777 2019-01-04 Martin Sebor <msebor@redhat.com>
9778
9779 PR c/88363
9780 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
9781
9782 2019-01-04 Jakub Jelinek <jakub@redhat.com>
9783
9784 * gdbinit.in: Turn off pagination for the skip commands, restore
9785 it to previous state afterwards.
9786
9787 2019-01-04 Jakub Jelinek <jakub@redhat.com>
9788
9789 PR target/88594
9790 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
9791 of GET_MODE (opN) as modes of the libcall arguments.
9792
9793 2019-01-04 Jan Beulich <jbeulich@suse.com>
9794
9795 * config/i386/sse.md
9796 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
9797 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
9798 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9799 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9800 avx512f_vmcmp<mode>3<round_saeonly_name>,
9801 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
9802 avx512f_maskcmp<mode>3,
9803 <avx512>_cvt<ssemodesuffix>2mask<mode>,
9804 <avx512>_cvt<ssemodesuffix>2mask<mode>,
9805 *<avx512>_cvtmask2<ssemodesuffix><mode>,
9806 *<avx512>_cvtmask2<ssemodesuffix><mode>,
9807 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
9808 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
9809 <avx512>_gt<mode>3<mask_scalar_merge_name>,
9810 <avx512>_gt<mode>3<mask_scalar_merge_name>,
9811 <avx512>_testm<mode>3<mask_scalar_merge_name>,
9812 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
9813 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
9814 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
9815 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
9816 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
9817 avx512cd_maskb_vec_dup<mode>,
9818 avx512cd_maskw_vec_dup<mode>,
9819 avx512dq_fpclass<mode><mask_scalar_merge_name>,
9820 avx512dq_vmfpclass<mode>,
9821 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
9822 instead of =Yk.
9823
9824 2019-01-03 Martin Sebor <msebor@redhat.com>
9825
9826 PR tree-optimization/88659
9827 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
9828
9829 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9830
9831 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
9832 unaligned vsx and avoid lxvd2x/stxvd2x.
9833 (gen_lvx_v4si_move): New function.
9834
9835 2019-01-03 Tom de Vries <tdevries@suse.de>
9836
9837 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
9838 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
9839 function.
9840 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
9841
9842 2019-01-03 Tom de Vries <tdevries@suse.de>
9843
9844 * config/nvptx/nvptx.c (struct offload_attrs): New.
9845 (populate_offload_attrs): New function. Factor mask extraction out of
9846 nvptx_reorg. Add extraction of dimensions.
9847 (nvptx_reorg): Use populate_offload_attrs.
9848
9849 2019-01-03 Tom de Vries <tdevries@suse.de>
9850
9851 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
9852 cases for oacc_min_dims_p and routine_p. Add asserts for
9853 oacc_default_dims_p and offload_region_p.
9854
9855 2019-01-03 Tom de Vries <tdevries@suse.de>
9856
9857 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
9858 factored out of ...
9859 (nvptx_goacc_validate_dims): ... here.
9860
9861 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
9862
9863 PR tree-optimization/85574
9864 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
9865 structure.
9866 (struct ssa_equip_hash_traits): Declare.
9867 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
9868
9869 2019-01-03 Jakub Jelinek <jakub@redhat.com>
9870
9871 PR debug/88644
9872 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
9873 change it to qualified_type.
9874
9875 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
9876
9877 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
9878 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
9879
9880 2019-01-02 Martin Sebor <msebor@redhat.com>
9881 Jeff Law <law@redhat.com>
9882
9883 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
9884 (get_range_strlen_tree): Update appropriately.
9885 (get_range_strlen)
9886 * gimple-fold.h (get_range_strlen): Drop unused last argument.
9887
9888 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
9889 rather than set_range_info.
9890 * tree-ssa-strlen.c (set_strlen_range): Extracted from
9891 maybe_set_strlen_range. Handle potentially boundary crossing
9892 cases more conservatively.
9893 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
9894 Call set_strlen_range.
9895 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
9896
9897 PR middle-end/88663
9898 * gimple-fold.c (get_range_strlen): Update prototype to no longer
9899 need the flexp argument.
9900 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
9901 from calls to get_range_strlen. Update comments. Just update
9902 VAL for an unterminated const char array and let the reset of the
9903 code handle it normally. No longer try to set *flexp. Adjust
9904 return value.
9905 (get_range_strlen): Update for the new get_range_strlen API.
9906 (get_maxval_strlen): Similarly.
9907 (gimple_fold_builtin_strlen): Handle update meaning of return value
9908 from get_range_strlen.
9909 * gimple-ssa-sprintf.c (get_string_length): Update for the new
9910 get_range_strlen API.
9911
9912 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
9913
9914 PR lto/88130
9915 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
9916 false at WPA time when body was removed.
9917
9918 2019-01-02 Martin Liska <mliska@suse.cz>
9919
9920 PR tree-optimization/88650
9921 * predict.c (set_even_probabilities): Calculate probability
9922 remainer only when really used.
9923
9924 2019-01-02 Richard Biener <rguenther@suse.de>
9925
9926 PR middle-end/88651
9927 * tree-data-ref.c (analyze_subscript_affine_affine): Use
9928 widest_ints when mangling max_stmt_execution results.
9929
9930 2019-01-02 Richard Biener <rguenther@suse.de>
9931
9932 PR tree-optimization/88621
9933 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
9934 bitfields when canoncalizing.
9935
9936 2019-01-02 Richard Biener <rguenther@suse.de>
9937
9938 PR target/87545
9939 * config/i386/x86-tune-costs.h (intel_cost): Adjust
9940 cost of cheap SSE instruction.
9941
9942 2019-01-02 Richard Biener <rguenther@suse.de>
9943
9944 PR ipa/85574
9945 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
9946 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
9947 function.
9948 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
9949 set after UIDs before splitting them.
9950
9951 2019-01-01 Martin Sebor <msebor@redhat.com>
9952 Jeff Law <law@redhat.com>
9953
9954 * gimple-fold.c (get_range_strlen_tree): Record if the computed
9955 length is optimistic. If it is, then arrange to compute the
9956 conservative length as well.
9957
9958 * gimple-fold.h (get_range_strlen): Update prototype.
9959 * builtins.c (check_access): Update call to get_range_strlen to use
9960 c_strlen_data pointer. Change various variable accesses to instead
9961 pull data from the c_strlen_data structure.
9962 (check_strncat_sizes, expand_builtin_strncat): Likewise.
9963 * calls.c (maybe_warn_nonstring_arg): Likewise.
9964 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
9965 minimum length if maximum lengh is unknown.
9966 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
9967 that used c_strlen, it's no longer needed. Restructure slightly.
9968 (format_string): Set unlikely range appropriately.
9969 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
9970 formatting issues.
9971 (get_range_strlen): Accept c_strlen_data pointer for external
9972 call sites as well. Pass through to call to internal get_range_strlen.
9973 Adjust minlen, maxlen and maxbound as needed.
9974 (get_maxval_strlen): Update comments.
9975 (gimple_fold_builtin_strlen): Update call to get_range_strlen
9976 to use c_strlen_data pointer. Change variable accesses to instead
9977 use c_strlen_data data members.
9978
9979 * gimple-fold.c (get_range_strlen): Update prototype.
9980 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
9981 local variables. Use pdata to return information to caller.
9982 Update calls to get_range_strlen. Update pdata->maxbound.
9983 (get_range_strlen -- static version): Similarly.
9984 (get_range_strlen -- extern version): Update for internal
9985 get_range_strlen API change. Convert to external data format.
9986 (get_maxval_strlen): Similarly.
9987
9988 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
9989
9990 * coverage.c (get_coverage_counts): Use current_function_decl.
9991 * profile.c (read_thunk_profile): New function.
9992 (branch_prob): Add THUNK parameter.
9993 * tree-profile.c (tree_profiling): Handle thunks.
9994 * value-prof.c (init_node_map): Handle thunks.
9995 * value-prof.h (branch_prob): Upate prototype.
9996 (read_thunk_profile): Declare.
9997
9998 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9999
10000 Update copyright years.
10001
10002 * gcc.c (process_command): Update copyright notice dates.
10003 * gcov-dump.c (print_version): Ditto.
10004 * gcov.c (print_version): Ditto.
10005 * gcov-tool.c (print_version): Ditto.
10006 * gengtype.c (create_file): Ditto.
10007 * doc/cpp.texi: Bump @copying's copyright year.
10008 * doc/cppinternals.texi: Ditto.
10009 * doc/gcc.texi: Ditto.
10010 * doc/gccint.texi: Ditto.
10011 * doc/gcov.texi: Ditto.
10012 * doc/install.texi: Ditto.
10013 * doc/invoke.texi: Ditto.
10014 \f
10015 Copyright (C) 2019 Free Software Foundation, Inc.
10016
10017 Copying and distribution of this file, with or without modification,
10018 are permitted in any medium without royalty provided the copyright
10019 notice and this notice are preserved.