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