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