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