]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
[gensupport] PR 91255: Do not error out immediately on set_attr_alternative with...
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2
3 PR other/91255
4 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
5 only if subst_name matches curr_attr string.
6
7 2019-08-16 Richard Biener <rguenther@suse.de>
8
9 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
10 stmt at gsi_p, instead replace it with a NOP removed later.
11 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
12 that became dead because of that.
13
14 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15
16 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
17 for which we can't represent a range.
18 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
19 set_varying.
20 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
21 Set VR_UNDEFINED if type is not supported.
22 * tree-ssanames.c (get_range_info): Pass type to set_varying.
23 * tree-vrp.c (value_range_base::check): Assert that a varying has
24 min/max set.
25 (value_range_base::equal_p): Early bail for undefines.
26 (value_range_base::set_varying): Accept a type.
27 (value_range::set_varying): Same.
28 (value_range_base::type): VARYING can have a type, while UNDEFINE
29 is typeless.
30 (value_range_base::dump): Print type for VARYING nodes.
31 (value_range_base::set): Add type to VARYING.
32 (extract_range_from_multiplicative_op): Pass type to set_varying.
33 (extract_range_from_binary_expr): Same.
34 (value_range_base::intersect_helper): Same.
35 (value_range_base::union_helper): Same.
36 (value_range_base::normalize_symbolics): Same.
37 (determine_value_range_1): Same.
38 * tree-vrp.h (class value_range_base): Add type to set_varying.
39 Add prototype for dump(void).
40 Add prototype for supports_type_p.
41 (class value_range): Add type to set_varying.
42 Add prototype for dump(void).
43 * vr-values.c (set_value_range_to_truthvalue): Pass type to
44 set_varying.
45 (vr_values::get_lattice_entry): Set varying even if propagation
46 finished.
47 Pass type to set_varying.
48 (vr_values::get_value_range): Remove vr_const_varying.
49 Reallocate the lattice if needed.
50 (vr_values::update_value_range): Pass type to set_varying.
51 (vr_values::extract_range_for_var_from_comparison_expr): Same.
52 (vr_values::extract_range_from_binary_expr): Same.
53 (vr_values::extract_range_from_unary_expr): Same.
54 (vr_values::extract_range_from_cond_expr): Same.
55 (vr_values::check_for_binary_op_overflow): Same.
56 (vr_values::extract_range_basic): Same.
57 (vr_values::extract_range_from_assignment): Same.
58 (vr_values::vr_values): Increase size of num_vr_values.
59 (vr_values::extract_range_from_phi_node): Pass type to
60 set_varying.
61
62 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
63
64 PR target/90878
65 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
66 for costs of hard register moves.
67 (ix86_register_move_cost): Likewise.
68 * config/i386/i386.h (processor_costs): Move costs of hard
69 register moves to hard_register. Add int_load, int_store,
70 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
71 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
72 for costs of RTL expressions.
73 * config/i386/x86-tune-costs.h: Move costs of hard register
74 moves to hard_register. Duplicate int_load, int_store,
75 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
76 sse_load, sse_store for costs of RTL expressions.
77
78 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
79
80 * target.def (setup_incoming_vararg_bounds): Remove.
81 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
82 * doc/tm.texi: Regenerate.
83 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
84 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
85 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
86 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
87
88 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
89
90 MSP430: Fix lines over 80 characters long in
91 config/msp430/*.{c,h} files
92
93 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
94 specifier in string.
95 (msp430_select_hwmult_lib): Split line more than 80 characters long.
96 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
97 redundant old comment.
98 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
99 Split line more than 80 characters long.
100 * config/msp430/msp430.c (msp430_option_override): Likewise.
101 (msp430_return_in_memory): Likewise.
102 (msp430_gimplify_va_arg_expr): Likewise.
103 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
104 (msp430_legitimate_constant): Likewise.
105 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
106 (msp430_attr): Likewise.
107 (msp430_data_attr): Likewise.
108 (msp430_start_function): Likewise.
109 (gen_prefix): Likewise.
110 (msp430_init_sections): Likewise.
111 (msp430_select_section): Likewise.
112 (msp430_function_section): Likewise.
113 (msp430_unique_section): Likewise.
114 (msp430_output_aligned_decl_common): Likewise.
115 (msp430_do_not_relax_short_jumps): Likewise.
116 (msp430_init_builtins): Likewise.
117 (msp430_expand_delay_cycles): Likewise.
118 (msp430_expand_prologue): Likewise.
119 (msp430_expand_epilogue): Likewise.
120 (msp430_expand_helper): Likewise.
121 (msp430_split_movsi): Likewise.
122 (msp430_print_operand): Likewise.
123 (msp430_return_addr_rtx): Likewise.
124 (msp430x_extendhisi): Likewise.
125 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
126 (ASM_SPEC): Likewise.
127 Remove very obvious comments.
128 (LIB_SPEC): Split line more than 80 characters long.
129 (EH_RETURN_HANDLER_RTX): Likewise.
130 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
131
132 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
133
134 MSP430: Fix whitespace errors and incorrect indentation in
135 config/msp430/*.{c,h} files
136
137 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
138 (msp430_select_hwmult_lib): Likewise.
139 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
140 (msp430_extract_mcu_data): Likewise.
141 (struct t_msp430_mcu_data): Likewise.
142 * config/msp430/msp430.c (struct machine_function): Remove whitespace
143 before left square bracket.
144 (msp430_option_override): Fix indentation.
145 (msp430_hard_regno_nregs_with_padding): Likewise.
146 (msp430_initial_elimination_offset): Likewise.
147 (msp430_special_register_convention_p): Remove whitespace before left
148 square bracket and after exclamation mark.
149 (msp430_evaluate_arg): Likewise.
150 (msp430_callee_copies): Fix indentation.
151 (msp430_gimplify_va_arg_expr): Likewise.
152 (msp430_function_arg_advance): Remove whitespace before left square
153 bracket.
154 (reg_ok_for_addr): Likewise.
155 (msp430_preserve_reg_p): Likewise.
156 (msp430_compute_frame_info): Likewise.
157 (msp430_asm_output_addr_const_extra): Add space between function name
158 and open parenthesis.
159 (has_section_name): Fix indentation.
160 (msp430_attr): Remove trailing whitespace.
161 (msp430_section_attr): Likewise.
162 (msp430_data_attr): Likewise.
163 (struct msp430_attribute_table): Fix comment and whitespace.
164 (msp430_start_function): Remove whitespace before left square bracket.
165 Add space between function name and open parenthesis.
166 (msp430_select_section): Remove trailing whitespace.
167 (msp430_section_type_flags): Remove trailing whitespace.
168 (msp430_unique_section): Remove space before closing parenthesis.
169 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
170 (msp430_builtins): Remove whitespace before left square bracket.
171 (msp430_init_builtins): Fix indentation.
172 (msp430_expand_prologue): Remove whitespace before left square bracket.
173 Remove space before closing parenthesis.
174 (msp430_expand_epilogue): Remove whitespace before left square bracket.
175 (msp430_split_movsi): Remove space before closing parenthesis.
176 (helper_function_name_mappings): Fix indentation.
177 (msp430_use_f5_series_hwmult): Fix whitespace.
178 (use_32bit_hwmult): Likewise.
179 (msp430_no_hwmult): Likewise.
180 (msp430_output_labelref): Remove whitespace before left square bracket.
181 (msp430_print_operand_raw): Likewise.
182 (msp430_print_operand_addr): Likewise.
183 (msp430_print_operand): Add two spaces after '.' in comment.
184 Fix trailing whitespace.
185 (msp430x_extendhisi): Fix indentation.
186 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
187 tab.
188 (PC_REGNUM): Likewise.
189 (STACK_POINTER_REGNUM): Likewise.
190 (CC_REGNUM): Likewise.
191
192 2019-08-15 Richard Biener <rguenther@suse.de>
193
194 PR target/91454
195 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
196 helper.
197 (general_scalar_chain::make_vector_copies): Use it.
198
199 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
200
201 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
202
203 2019-08-15 Martin Liska <mliska@suse.cz>
204
205 * tree-ssa-dce.c (propagate_necessity): We can't reach now
206 operators with no arguments.
207 (eliminate_unnecessary_stmts): Likewise here.
208
209 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
210
211 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
212 <case COMPARE>: Revert 2019-08-14 change.
213 (convertible_comparison_p): Revert 2019-08-14 change. Return false
214 for (TARGET_64BIT || mode != DImode).
215
216 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
217
218 * tree-vrp.c (value_range_base::set): Merge in code from
219 value_range_base::set_and_canonicalize.
220 Enforce canonicalization at set time.
221 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
222 (value_range_base::set_undefined): Inline call to set().
223 (value_range_base::set_varying): Same.
224 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
225 (vrp_val_max): New argument handle_pointers.
226 (vrp_val_min): Same.
227 (ranges_from_anti_range): Same.
228 (extract_range_into_wide_ints): Use tree argument instead of sign
229 and precision.
230 (extract_range_from_multiplicative_op): Take in tree type instead
231 of precision and sign. Adapt function for canonicalized ranges.
232 (extract_range_from_binary_expr): Pass type to
233 extract_range_from_multiplicative_op.
234 Adapt for canonicalized ranges.
235 (extract_range_from_unary_expr): Same.
236 (value_range_base::intersect_helper): Adjust for canonicalized
237 ranges.
238 (value_range_base::union_helper): Same.
239 (value_range_base::normalize_symbolics): New.
240 * tree-vrp.h (class value_range_base): Remove
241 set_and_canonicalize.
242 New prototype for normalize_symbolics.
243 (class value_range): Remove set_and_canonicalize.
244 (vrp_val_min): Adjust prototype.
245 (vrp_val_max): Same.
246 * vr-values.c
247 (vr_values::extract_range_for_var_from_comparison_expr): Call set
248 instead of set_and_canonicalize.
249
250 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
251
252 PR middle-end/91444
253 * tree-vect-stmts.c (vectorizable_call): Check that the function
254 is a BUILT_IN_MD function before passing it to
255 targetm.vectorize.builtin_md_vectorized_function.
256
257 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
258
259 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
260 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
261 (aarch64_select_early_remat_modes): Use it.
262
263 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
264
265 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
266 16 for SVE predicates even if they are fixed-length.
267
268 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
269
270 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
271 operand order match the MOV /Z alias.
272
273 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
274
275 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
276 the vector pattern as an aarch64_svpattern argument. Update the
277 overloaded caller accordingly.
278 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
279 (aarch64_output_sve_vector_inc_dec): Likewise.
280
281 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
282
283 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
284 multiplication case, try to compute VG * (lowest set bit) directly
285 rather than always basing the multiplication on VG. Use
286 expand_mult for the multiplication if we can.
287
288 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
289
290 * config/aarch64/aarch64-protos.h
291 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
292 (aarch64_sve_inc_dec_immediate_p): Rename to...
293 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
294 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
295 (aarch64_output_sve_scalar_inc_dec): Declare.
296 (aarch64_output_sve_inc_dec_immediate): Rename to...
297 (aarch64_output_sve_vector_inc_dec): ...this.
298 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
299 (aarch64_output_sve_scalar_inc_dec): New functions.
300 (aarch64_output_sve_addvl_addpl): Remove the base and offset
301 arguments. Only handle true ADDVL and ADDPL instructions;
302 don't emit an INC or DEC.
303 (aarch64_sve_inc_dec_immediate_p): Rename to...
304 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
305 (aarch64_output_sve_inc_dec_immediate): Rename to...
306 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
307 aarch64_sve_vector_inc_dec_immediate_p.
308 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
309 (aarch64_sve_plus_immediate): New predicates.
310 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
311 rather than aarch64_sve_addvl_addpl_immediate.
312 (aarch64_sve_inc_dec_immediate): Rename to...
313 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
314 aarch64_sve_vector_inc_dec_immediate_p.
315 (aarch64_sve_add_operand): Update accordingly.
316 * config/aarch64/constraints.md (Uai): New constraint.
317 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
318 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
319 operand into a register if it satisfies aarch64_sve_plus_immediate.
320 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
321 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
322 * config/aarch64/aarch64-sve.md (add<mode>3): Call
323 aarch64_output_sve_vector_inc_dec instead of
324 aarch64_output_sve_inc_dec_immediate.
325
326 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
327
328 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
329 (UNSPEC_REVW): New constants.
330 (elem_bits): New mode attribute.
331 (SVE_INT_UNARY): New int iterator.
332 (optab): Handle UNSPEC_REV[BHW].
333 (sve_int_op): New int attribute.
334 (min_elem_bits): Handle VNx16QI and the predicate modes.
335 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
336 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
337 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
338 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
339 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
340 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
341 unspecs based on the total width of the reversed data.
342 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
343 reinterpret followed by a subreg on big-endian targets.
344
345 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
346 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
347
348 * config/aarch64/aarch64-sve.md
349 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
350 alternatives in which one of the inputs is in the same register
351 as the output.
352
353 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
354
355 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
356 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
357
358 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
359
360 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
361 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
362
363 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
364 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
365
366 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
367 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
368 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
369
370 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
371 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
372
373 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
374 Add an alternative that uses reversed shifts.
375
376 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
377
378 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
379 struct.
380
381 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
382
383 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
384 a commutativity marker.
385
386 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
387 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
388
389 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
390 (aarch64_prepare_sve_cond_int_fma): Declare.
391 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
392 (aarch64_prepare_sve_int_fma): New functions.
393 (aarch64_prepare_sve_cond_int_fma): Likewise.
394 * config/aarch64/aarch64-sve.md
395 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
396 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
397 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
398 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
399 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
400 (*madd<mode>): Rename to...
401 (*fma<mode>4): ...this.
402 (*msub<mode>): Rename to...
403 (*fnma<mode>4): ...this.
404
405 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
406 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
407
408 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
409 Print 2.0 naturally.
410 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
411 * config/aarch64/predicates.md
412 (aarch64_sve_float_negated_arith_immediate): New predicate,
413 renamed from aarch64_sve_float_arith_with_sub_immediate.
414 (aarch64_sve_float_arith_with_sub_immediate): Test for both
415 positive and negative constants.
416 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
417 or an aarch64_sve_float_arith_with_sub_immediate.
418 * config/aarch64/constraints.md (vsN): Use
419 aarch64_sve_float_negated_arith_immediate.
420 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
421 iterator.
422 (sve_pred_fp_rhs2_immediate): New int attribute.
423 * config/aarch64/aarch64-sve.md
424 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
425 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
426 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
427 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
428 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
429 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
430
431 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
432 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
433
434 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
435 (*aarch64_cond_abd<SVE_F:mode>_3)
436 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
437
438 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
439 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
440
441 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
442 (*aarch64_cond_<su>abd<mode>_any): New patterns.
443
444 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
445 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
446
447 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
448 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
449 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
450 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
451 optabs.
452 * optabs.h (create_convert_operand_from): Expand comment.
453 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
454 when mapping scalar rtxes to vector operands.
455 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
456 ashiftrt and lshiftrt.
457 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
458 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
459 (*cond_<optab><mode>_any_const): New patterns.
460
461 2019-08-15 Martin Liska <mliska@suse.cz>
462
463 PR ipa/91438
464 * cgraph.c (cgraph_node::remove): When setting
465 n->origin = NULL for all nested functions, reset
466 also next_nested.
467
468 2019-08-15 Martin Liska <mliska@suse.cz>
469
470 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
471 and next_nested.
472
473 2019-08-15 Martin Liska <mliska@suse.cz>
474
475 PR ipa/91404
476 * passes.c (order): Remove.
477 (uid_hash_t): Likewise).
478 (remove_cgraph_node_from_order): Remove from set
479 of pointers (cgraph_node *).
480 (insert_cgraph_node_to_order): New.
481 (duplicate_cgraph_node_to_order): New.
482 (do_per_function_toporder): Register all 3 cgraph hooks.
483 Skip removed_nodes now as we know about all of them.
484
485 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
486
487 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
488 <case E_V8QImode>: Use vector_set path for
489 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
490 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
491 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
492
493 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
494
495 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
496
497 2019-08-14 Martin Sebor <msebor@redhat.com>
498
499 PR tree-optimization/91294
500 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
501 source length as exact.
502
503 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
504
505 * doc/extend.texi: Add "noinit" attribute documentation.
506 * doc/sourcebuild.texi: Add noinit effective target documentation.
507 * varasm.c (default_section_type_flags): Add support for "noinit"
508 section.
509 (default_elf_select_section): Add support for "noinit" attribute.
510 * config/msp430/msp430.c (msp430_attribute_table): Remove
511 "noinit" entry.
512
513 2019-08-14 Richard Biener <rguenther@suse.de>
514 Uroš Bizjak <ubizjak@gmail.com>
515
516 PR target/91154
517 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
518 mode arguments.
519 (scalar_chain::smode): New member.
520 (scalar_chain::vmode): Likewise.
521 (dimode_scalar_chain): Rename to...
522 (general_scalar_chain): ... this.
523 (general_scalar_chain::general_scalar_chain): Take mode arguments.
524 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
525 base with TImode and V1TImode.
526 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
527 (general_scalar_chain::vector_const_cost): Adjust for SImode
528 chains.
529 (general_scalar_chain::compute_convert_gain): Likewise. Add
530 {S,U}{MIN,MAX} support.
531 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
532 (general_scalar_chain::make_vector_copies): Likewise. Handle
533 non-DImode chains appropriately.
534 (general_scalar_chain::convert_reg): Likewise.
535 (general_scalar_chain::convert_op): Likewise.
536 (general_scalar_chain::convert_insn): Likewise. Add
537 fatal_insn_not_found if the result is not recognized.
538 (convertible_comparison_p): Pass in the scalar mode and use that.
539 (general_scalar_to_vector_candidate_p): Likewise. Rename from
540 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
541 (scalar_to_vector_candidate_p): Remove by inlining into single
542 caller.
543 (general_remove_non_convertible_regs): Rename from
544 dimode_remove_non_convertible_regs.
545 (remove_non_convertible_regs): Remove by inlining into single caller.
546 (convert_scalars_to_vector): Handle SImode and DImode chains
547 in addition to TImode chains.
548 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
549 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
550 (*<maxmin>di3_doubleword): Likewise.
551
552 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
553 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
554
555 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
556 (*cond_bic<mode>_any): New patterns.
557
558 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
559
560 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
561 take the equivalent mask, as well as a bit count.
562 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
563 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
564 (aarch64_sve_pred_and_operand): New predicates.
565 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
566 code attribute.
567 * config/aarch64/aarch64-sve.md
568 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
569 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
570
571 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
572
573 * config/aarch64/aarch64-sve.md
574 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
575 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
576 New patterns.
577
578 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
579 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
580
581 * config/aarch64/aarch64-sve.md
582 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
583 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
584
585 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
586 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
587
588 * config/aarch64/aarch64-sve.md
589 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
590 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
591
592 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
593
594 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
595 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
596 New pattern.
597
598 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
599 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
600
601 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
602
603 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
604 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
605
606 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
607 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
608 (aarch64_print_operand): Add support for %I.
609 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
610 Bitcast floating-point constants to the corresponding integer constant.
611 (aarch64_float_const_representable_p): Handle vectors as well
612 as scalars.
613 (aarch64_expand_sve_vcond): Make sure that the operands are valid
614 for the new vcond_mask_<mode><vpred> expander.
615 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
616 test aarch64_float_const_representable_p.
617 (aarch64_sve_reg_or_dup_imm): New predicate.
618 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
619 gen_vcond_mask_<mode><vpred> instead of
620 gen_aarch64_sve_dup<mode>_const.
621 (vcond_mask_<mode><vpred>): Turn into a define_expand that
622 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
623 for operands 1 and 2 respectively. Force operand 2 into a
624 register if operand 1 is a register. Fold old define_insn...
625 (aarch64_sve_dup<mode>_const): ...and this define_insn...
626 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
627 floating-point constants that can be moved as integers. Add
628 alternatives for MOV /M and FMOV /M.
629 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
630 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
631 1 and 2 respectively.
632 * config/aarch64/constraints.md (Ufc): Handle vectors as well
633 as scalars.
634 (vss): New constraint.
635
636 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
637
638 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
639 (aarch64_sve_float_maxmin_operand): New predicates.
640 * config/aarch64/constraints.md (vsB): New constraint.
641 (vsM): Fix typo.
642 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
643 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
644 UNSPEC_COND_FMINNM.
645 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
646 Use aarch64_sve_float_maxmin_operand for operand 2.
647 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
648 Add alternatives for the constant forms.
649
650 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
651
652 * config/aarch64/constraints.md (vsb): New constraint.
653 (vsm): Generalize description.
654 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
655 iterator.
656 (sve_imm_con): Handle smax, smin, umax and umin.
657 (sve_imm_prefix): New code attribute.
658 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
659 (aarch64_sve_vsb_operand): New predicates.
660 (aarch64_sve_mul_immediate): Rename to...
661 (aarch64_sve_vsm_immediate): ...this.
662 (aarch64_sve_mul_operand): Rename to...
663 (aarch64_sve_vsm_operand): ...this.
664 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
665 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
666 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
667 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
668 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
669 add movprfx support for the immediate alternatives.
670 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
671 of the above.
672 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
673 for operand 3.
674
675 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
676
677 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
678 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
679 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
680
681 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
682
683 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
684 (optab, sve_int_op): Handle them.
685 * config/aarch64/aarch64-sve.md: Expand comment.
686
687 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
688
689 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
690 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
691 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
692
693 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
694
695 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
696 (aarch64_expand_sve_const_pred_trn): New functions.
697 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
698 use the above functions when the parameter is true.
699 (aarch64_expand_sve_const_pred): Update call accordingly.
700 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
701 Rename to...
702 (@aarch64_sve_<perm_insn><mode>): ...this.
703
704 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
705
706 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
707 Declare.
708 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
709 (aarch64_sve_emit_int_cmp): New functions.
710 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
711 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
712 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
713 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
714 (UNSPEC_PRED_Z): New unspec.
715 (set_clobber_cc_nzc): Delete.
716 * config/aarch64/aarch64-sve.md: Add a block comment about
717 UNSPEC_PRED_Z.
718 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
719 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
720 the old pattern with that name. Use UNSPEC_PRED_Z instead of
721 UNSPEC_MERGE_PTRUE.
722 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
723 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
724 check for compatible predicates.
725 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
726 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
727 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
728 comparisons above.
729
730 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
731
732 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
733 * config/aarch64/aarch64-sve.md: Add a section describing it.
734 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
735 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
736 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
737 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
738 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
739 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
740 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
741 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
742 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
743 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
744 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
745 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
746 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
747 (aarch64_evpc_rev_local): Update accordingly.
748
749 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
750
751 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
752 iterators.
753 (SVE_BHSI, SVE_SDI): Tweak comment.
754 (SVE_HSDI): Likewise. Fix definition.
755 (SVE_SDF): New mode iterator.
756 (elem_bits): New mode attribute.
757 (SVE_COND_FCVT): New int iterator.
758 * config/aarch64/aarch64-sve.md
759 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
760 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
761 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
762 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
763 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
764 ...these new patterns.
765 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
766 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
767 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
768 Merge into...
769 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
770 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
771 ...these new patterns.
772 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
773 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
774 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
775 ...this new pattern.
776 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
777 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
778 ...this new pattern.
779 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
780
781 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
782
783 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
784 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
785 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
786 unspecs.
787 (optab, su): Handle them.
788 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
789 * config/aarch64/aarch64-sve.md
790 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
791 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
792 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
793 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
794 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
795 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
796 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
797 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
798 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
799 FIXUORS.
800 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
801 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
802 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
803 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
804 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
805 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
806 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
807 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
808 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
809 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
810 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
811 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
812 of UNSPEC_FLOAT_CONVERT.
813 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
814 aarch64_sve_extend<mode><Vwide>2.
815
816 2019-08-14 Richard Biener <rguenther@suse.de>
817
818 PR target/91154
819 * config/i386/i386-features.c
820 (dimode_scalar_chain::compute_convert_gain): Compute and dump
821 individual instruction gain. Fix reg-reg copy GRP cost. Use
822 ix86_cost->sse_op for vector instruction costs.
823
824 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
825
826 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
827 (cmp_op): Handle it.
828 (SVE_COND_FP_CMP): Rename to...
829 (SVE_COND_FP_CMP_I0): ...this.
830 (SVE_FP_CMP): Remove.
831 * config/aarch64/aarch64-sve.md
832 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
833 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
834 using unspecs to represent the comparison.
835 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
836 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
837 accordingly.
838 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
839 (aarch64_unspec_cond_code): Move after integer code. Handle
840 UNORDERED.
841 (aarch64_emit_sve_predicated_cond): Replace with...
842 (aarch64_emit_sve_fp_cond): ...this new function.
843 (aarch64_emit_sve_or_conds): Replace with...
844 (aarch64_emit_sve_or_fp_conds): ...this new function.
845 (aarch64_emit_sve_inverted_cond): Replace with...
846 (aarch64_emit_sve_invert_fp_cond): ...this new function.
847 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
848
849 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
850
851 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
852 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
853 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
854 SVE_HSD instead of SVE_SD.
855
856 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
857 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
858
859 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
860 iterator.
861 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
862 attributes.
863 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
864 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
865 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
866 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
867 (*div<SVE_F:mode>3): Generalize to...
868 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
869
870 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
871 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
872
873 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
874 constants.
875 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
876 predicate.
877 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
878 Declare.
879 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
880 function.
881 * config/aarch64/aarch64-sve.md: Add a block comment about the
882 handling of predicated FP operations.
883 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
884 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
885 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
886 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
887 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
888 operand.
889 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
890 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
891 operand.
892 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
893 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
894 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
895 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
896 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
897 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
898 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
899 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
900 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
901 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
902 strictness operands. Use aarch64_sve_pred_dominates_p to check
903 whether the predicate on the conditional operation is suitable
904 for merging. Split patterns into the canonical equal-predicate form.
905 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
906 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
907
908 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
909 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
910
911 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
912 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
913 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
914 rtx codes.
915 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
916 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
917 unspecs.
918
919 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
920 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
921
922 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
923 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
924 actually has, rather than relying on REG_EQUAL notes.
925 Make the insn operand order match the SVE operand order.
926 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
927 the SVE operand order.
928
929 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
930
931 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
932 (aarch64_emit_set_immediate): Likewise.
933 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
934 (aarch64_pfalse_reg): Likewise.
935 (aarch64_convert_sve_data_to_pred): New function.
936 (aarch64_sve_move_pred_via_while): Take an optional target register
937 and the required register mode.
938 (aarch64_expand_sve_const_pred_1): New function.
939 (aarch64_expand_sve_const_pred): Likewise.
940 (aarch64_expand_mov_immediate): Build an all-true predicate
941 if the significant bits of the immediate are all true. Use
942 aarch64_expand_sve_const_pred for all compile-time predicate constants.
943 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
944 before register allocation.
945 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
946 a VNx16BI PTRUE when splitting the memory alternative.
947 (vec_duplicate<mode>): Update accordingly.
948 (*pred_cmp<cmp_op><mode>): Rename to...
949 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
950
951 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
952
953 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
954 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
955 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
956 (UNSPEC_PTEST): New unspec.
957 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
958 * config/aarch64/iterators.md (data_bytes): New mode attribute.
959 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
960 * config/aarch64/aarch64-sve.md: Add a new section describing the
961 handling of UNSPEC_PTEST.
962 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
963 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
964 (ptest_ptrue<mode>): Replace with...
965 (aarch64_ptest<mode>): ...this new pattern.
966 (cbranch<mode>4): Update after above changes.
967 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
968 UNSPEC_PTEST_PTRUE.
969 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
970 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
971 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
972
973 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
974
975 PR lto/91287
976 * builtins.c (builtin_with_linkage_p): New function.
977 * builtins.h (builtin_with_linkage_p): New function.
978 * symtab.c (write_symbol): Remove redundant assert.
979 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
980 Remove FIXME and use builtin_with_linkage_p.
981
982 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
983
984 PR middle-end/91421
985 * tree-core.h (function_decl::function_code): Change type to
986 unsigned int.
987 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
988 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
989 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
990 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
991 is BUILT_IN_NORMAL.
992 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
993 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
994 (fndecl_built_in_p): Change the type of the "name" argument to
995 unsigned int.
996 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
997 after check for DECL_BUILT_IN_CLASS.
998 * cgraphclones.c (build_function_decl_skip_args): Use
999 set_decl_built_in_function.
1000 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
1001 * ipa-split.c (split_function): Likewise.
1002 * langhooks.c (add_builtin_function_common): Likewise.
1003 * omp-simd-clone.c (simd_clone_create): Likewise.
1004 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
1005 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
1006 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
1007 DECL_FUNCTION_CODE.
1008 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
1009 instead of DECL_FUNCTION_CODE.
1010 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
1011 instead of DECL_FUNCTION_CODE.
1012 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
1013 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
1014 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
1015 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
1016 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
1017 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
1018 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1019 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
1020 (alpha_gimple_fold_builtin): Likewise.
1021 * config/arc/arc.c (arc_expand_builtin): Likewise.
1022 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
1023 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
1024 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
1025 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
1026 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
1027 * config/frv/frv.c (frv_expand_builtin): Likewise.
1028 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
1029 (gcn_expand_builtin): Likewise.
1030 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
1031 (fold_builtin_cpu): Likewise.
1032 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
1033 * config/i386/i386.c (ix86_fold_builtin): Likewise.
1034 (ix86_gimple_fold_builtin): Likewise.
1035 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
1036 (ia64_expand_builtin): Likewise.
1037 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
1038 * config/mips/mips.c (mips_expand_builtin): Likewise.
1039 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
1040 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
1041 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
1042 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
1043 * config/pa/pa.c (pa_expand_builtin): Likewise.
1044 * config/pru/pru.c (pru_expand_builtin): Likewise.
1045 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
1046 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1047 Likewise.
1048 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
1049 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
1050 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
1051 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
1052 (rs6000_builtin_reciprocal): Likewise.
1053 * config/rx/rx.c (rx_expand_builtin): Likewise.
1054 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
1055 * config/s390/s390.c (s390_expand_builtin): Likewise.
1056 * config/sh/sh.c (sh_expand_builtin): Likewise.
1057 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
1058 (sparc_fold_builtin): Likewise.
1059 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
1060 * config/spu/spu.c (spu_expand_builtin): Likewise.
1061 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
1062 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
1063 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
1064 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
1065 (xtensa_expand_builtin): Likewise.
1066
1067 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1068
1069 PR middle-end/91421
1070 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
1071 before the DECL_FUNCTION_CODE.
1072 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
1073 to check for a BUILT_IN_ALLOCA call.
1074 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
1075 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
1076 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
1077 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1078 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
1079 for BUILT_IN_NORMAL functions.
1080 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
1081 test for BUILT_IN_TM_ABORT.
1082 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
1083 to check for a BUILT_IN_STACK_RESTORE call.
1084 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
1085 * tree-ssa-threadedge.c
1086 (record_temporary_equivalences_from_stmts_at_dest): Check for a
1087 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
1088 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
1089 test for a BUILT_IN_NORMAL call instead of a negative test for
1090 an internal function call.
1091
1092 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1093
1094 * tree.h (build_vector_a_then_b): Declare.
1095 * tree.c (build_vector_a_then_b): New function.
1096 * fold-const-call.c (fold_while_ult): Likewise.
1097 (fold_const_call): Use it to handle IFN_WHILE_ULT.
1098 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
1099 (aarch64_svpattern): New enum.
1100 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
1101 constants through aarch64_expand_mov_immediate.
1102 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
1103 than general_operand as the predicate for operand 1.
1104 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
1105 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
1106 insn_type.
1107 (simd_immediate_info::simd_immediate_info): New overload that
1108 takes a scalar_int_mode and an svpattern.
1109 (simd_immediate_info::u): Add a "pattern" field.
1110 (svpattern_token): New function.
1111 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
1112 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
1113 (aarch64_sve_move_pred_via_while): New functions.
1114 (aarch64_expand_mov_immediate): Try using
1115 aarch64_sve_move_pred_via_while for predicates that contain N ones
1116 followed by M zeros but that do not correspond to a VLnnn pattern.
1117 (aarch64_sve_pred_valid_immediate): New function.
1118 (aarch64_simd_valid_immediate): Use it instead of dealing directly
1119 with PTRUE and PFALSE.
1120 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
1121 forms.
1122
1123 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
1124
1125 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
1126 flag.
1127 (darwin_override_options): Likewise.
1128 * config/darwin.h: Likewise.
1129 * config/darwin.opt: Likewise.
1130 * config/i386/i386.c (output_pic_addr_const): Likewise.
1131 * config/rs6000/darwin.h: Likewise.
1132 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
1133 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
1134 ... this TARGET_MACHO_SYMBOL_STUBS.
1135 (FUNCTION_PROFILER):Likewise.
1136 * config/i386/i386.h: Likewise.
1137
1138 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
1139
1140 * config/i386/i386-expand.c (ix86_expand_vector_extract)
1141 <case E_V2SImode>: Use vec_extr path for
1142 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1143 <case E_V8QImode>: Ditto.
1144 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
1145 Use SWI48 mode iterator. Use %k to output operand 0.
1146 (*mmx_pextrw): New insn pattern.
1147 (*mmx_pextrb): Ditto.
1148 (*mmx_pextrb_zext): Ditto.
1149
1150 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
1151
1152 * target.def (libc_has_function, libc_has_fast_function): Improve
1153 documentation strings.
1154 * doc/tm.texi: Regenerate.
1155
1156 2019-08-13 Caroline Tice <cmtice@google.com>
1157
1158 PR other/91396
1159 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
1160 vtv_end.o or vtv_end_preinit.o files if !static.
1161
1162 2019-08-13 Olivier Hainque <hainque@adacore.com>
1163
1164 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
1165
1166 2019-08-13 Olivier Hainque <hainque@adacore.com>
1167
1168 * rtlanal.c (tablejump_casesi_pattern): New function, to
1169 determine if a tablejump insn is a casesi dispatcher. Extracted
1170 from patch_jump_insn.
1171 * rtl.h (tablejump_casesi_pattern): Declare.
1172 * cfgrtl.c (patch_jump_insn): Use it.
1173 * dwarf2cfi.c (create_trace_edges): Use it.
1174
1175 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
1176
1177 PR target/81800
1178 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
1179 operand is larger than a long int.
1180
1181 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1182
1183 * machmode.h (opt_mode::else_mode): New function.
1184 (opt_mode::else_blk): Use it.
1185 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
1186 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
1187 (aarch64_gen_stepped_int_parallel): Likewise.
1188 (aarch64_stepped_int_parallel_p): Likewise.
1189 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
1190 argument.
1191 * config/aarch64/aarch64.c
1192 (aarch64_expand_sve_widened_duplicate): Delete.
1193 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
1194 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
1195 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
1196 argument. Use early returns in the !CONST_INT_P handling.
1197 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
1198 than handling some inline.
1199 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
1200 from...
1201 (aarch64_simd_container_mode): ...here.
1202 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
1203 (aarch64_sve_ld1rq_operand_p): New functions.
1204 * config/aarch64/predicates.md (descending_int_parallel)
1205 (aarch64_sve_ld1rq_operand): New predicates.
1206 * config/aarch64/constraints.md (UtQ): New constraint.
1207 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
1208 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
1209 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
1210 (@aarch64_sve_reinterpret<mode>): New expander.
1211 (*aarch64_sve_reinterpret<mode>): New pattern.
1212 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
1213 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
1214 (*sve_ld1rq<Vesize>): Replace with...
1215 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
1216
1217 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
1218
1219 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
1220 16:12.
1221
1222 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1223
1224 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
1225 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
1226 (msp430_check_path_for_devices): New.
1227 (parse_devices_csv_1): New.
1228 (parse_devices_csv): New.
1229 (msp430_extract_mcu_data): Try to find devices.csv and search for the
1230 MCU data in devices.csv before using the hard-coded data.
1231 Warn if devices.csv isn't found and the MCU wasn't found in the
1232 hard-coded data either.
1233 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
1234 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
1235 Search for devices.csv on -I and -L paths.
1236 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
1237 msp430_set_driver_var.
1238 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
1239 -mdevices-csv-loc=.
1240 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
1241 searched for devices.csv.
1242 (mwarn-devices-csv): Document option.
1243
1244 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1245
1246 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
1247 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
1248 Use a single Dn alternative instead of separate Dz and Dm
1249 alternatives. Use aarch64_output_sve_move_immediate.
1250 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
1251 function.
1252 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
1253 for predicates too.
1254 (aarch64_output_sve_mov_immediate): Handle predicate modes.
1255 (aarch64_output_ptrue): Delete.
1256
1257 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1258
1259 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
1260 INDEX.
1261 (simd_immediate_info::value, simd_immediate_info::step)
1262 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
1263 with...
1264 (simd_immediate_info::u): ...this new union.
1265 (simd_immediate_info::simd_immediate_info): Update accordingly.
1266 (aarch64_output_simd_mov_immediate): Likewise.
1267 (aarch64_output_sve_mov_immediate): Likewise.
1268
1269 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1270
1271 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
1272 extra_gcc_objs.
1273 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
1274 (msp430_select_cpu): New spec function.
1275 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
1276 MCU data.
1277 * config/msp430/msp430-devices.c: New file.
1278 * config/msp430/msp430-devices.h: New file.
1279 * config/msp430/msp430.c: Remove msp430_mcu_data.
1280 (msp430_option_override): Use msp430_extract_mcu_data to extract
1281 MCU data.
1282 (msp430_use_f5_series_hwmult): Likewise.
1283 (use_32bit_hwmult): Likewise.
1284 (msp430_no_hwmult): Likewise.
1285 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
1286 assembler.
1287 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
1288 and -mcpu option.
1289 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
1290 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
1291 Remove hard-coded MCU multilib data.
1292
1293 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1294
1295 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
1296 based on the mode instead of testing properties of it.
1297
1298 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1299
1300 * doc/md.texi: Document the x and y constraints for AArch64.
1301 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
1302 (FP_LO8_REGS): New reg_class.
1303 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
1304 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
1305 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
1306 * config/aarch64/predicates.md (aarch64_simd_register): Use
1307 FP_REGNUM_P instead of checking the classes manually.
1308 * config/aarch64/constraints.md (y): New constraint.
1309
1310 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1311
1312 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
1313 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
1314 * config/aarch64/aarch64-simd.md
1315 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
1316 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
1317 from the asm template.
1318 * config/aarch64/aarch64-sve.md
1319 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
1320 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
1321 from the asm template.
1322 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
1323 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
1324 from the asm template.
1325 * config/aarch64/aarch64-simd-builtins.def: Update comment.
1326
1327 2019-08-13 Martin Liska <mliska@suse.cz>
1328
1329 * value-prof.c (gimple_ic_transform): Add new line.
1330 Print details with MSG_NOTE.
1331
1332 2019-08-13 Martin Liska <mliska@suse.cz>
1333
1334 * doc/invoke.texi: Document automatic detection of jobserver.
1335 * lto-wrapper.c (run_gcc): Detect jobserver always.
1336
1337 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
1338
1339 * config/i386/i386-expand.c (ix86_expand_vector_set)
1340 <case E_V2SImode>: Use vec_merge path for
1341 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1342 <case E_V8QImode>: Ditto.
1343 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
1344 (*mmx_pinsrb): Ditto.
1345
1346 2019-08-12 Jakub Jelinek <jakub@redhat.com>
1347
1348 PR target/83250
1349 PR target/91340
1350 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
1351 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
1352 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
1353 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
1354 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
1355
1356 2019-08-12 Richard Biener <rguenther@suse.de>
1357
1358 PR lto/91375
1359 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
1360 flag_devirtualize.
1361
1362 2019-08-12 Richard Biener <rguenther@suse.de>
1363
1364 PR driver/91130
1365 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
1366 lang_mask option, always use CL_DRIVER.
1367 (get_options_from_collect_gcc_options): Adjust.
1368 (find_and_merge_options): Likewise.
1369 (run_gcc): Likewise.
1370
1371 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1372
1373 * ipa-predicate.c (add_condition): Restore inverted test.
1374
1375 2019-08-10 Jakub Jelinek <jakub@redhat.com>
1376
1377 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
1378 (enum omp_clause_device_type_kind): New enum.
1379 (struct tree_omp_clause): Add subcode.device_type_kind.
1380 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
1381 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
1382 for device_type clause.
1383 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
1384 * tree-pretty-print.c (dump_omp_clause): Likewise.
1385
1386 PR target/91408
1387 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
1388 vector_operand.
1389
1390 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
1391
1392 * reload1.c (finish_spills): Do not check ira_conflicts_p when
1393 handling spilled pseudos.
1394
1395 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
1396
1397 PR target/91386
1398 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
1399 to preserve the contents of the original insns.
1400
1401 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
1402
1403 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
1404 (addsi3_compare_op2): Likewise.
1405
1406 2019-08-09 Martin Liska <mliska@suse.cz>
1407
1408 * alias.c (alias_ptr_types_compatible_p): Strengten
1409 type comparison in LTO mode.
1410
1411 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
1412
1413 PR middle-end/90313
1414 * tree-tailcall.c (find_tail_calls): Reject calls that might
1415 read from an escaped RESULT_DECL.
1416
1417 2019-08-09 Martin Liska <mliska@suse.cz>
1418
1419 * doc/invoke.texi: Document the option value.
1420 * lto-wrapper.c (run_gcc): Set auto_parallel
1421 only with -flto=auto.
1422
1423 2019-08-09 Martin Liska <mliska@suse.cz>
1424
1425 * opts.c (common_handle_option): Error for an invalid argument
1426 to -flto=.
1427
1428 2019-08-09 Martin Liska <mliska@suse.cz>
1429
1430 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
1431 use dump_printf to report optimization.
1432 (sem_variable::merge): Likwise.
1433 (sem_item_optimizer::merge_classes): Use dump_printf to report
1434 ICF hits.
1435
1436 2019-08-09 Martin Liska <mliska@suse.cz>
1437
1438 * value-prof.c (gimple_divmod_fixed_value_transform):
1439 Use dump_printf_loc.
1440 (gimple_mod_pow2_value_transform): Likewise.
1441 (gimple_mod_subtract_transform): Likewise.
1442 (init_node_map): Likewise.
1443 (gimple_ic_transform): Likewise.
1444 (gimple_stringops_transform): Likewise.
1445
1446 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
1447
1448 * doc/extend.texi: Add const qualifier to ld intrinsics.
1449
1450 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
1451
1452 * config/rs6000/dfp.md (D64_D128): Rename to ...
1453 (DDTD): ... this, throughout.
1454 (dfp_suffix): Rename to ...
1455 (q): ... this, throughout.
1456
1457 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
1458
1459 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
1460 (dfp_suffix): Ditto.
1461 (adddd3, addtd3): Merge to ...
1462 (add<mode>3 for D64_D128): ... this.
1463 (subdd3, subtd3): Merge to ...
1464 (sub<mode>3 for D64_D128): ... this.
1465 (muldd3, multd3): Merge to ...
1466 (mul<mode>3 for D64_D128): ... this.
1467 (divdd3, divtd3): Merge to ...
1468 (div<mode>3 for D64_D128): ... this.
1469 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
1470 (*cmp<mode>_internal1 for D64_D128): ... this.
1471 (ftruncdd2, ftrunctd2): Merge to ...
1472 (ftrunc<mode>2 for D64_D128): ... this.
1473 (fixdddi2, fixtddi2): Merge to ...
1474 (fix<mode>di2 for D64_D128): ... this.
1475
1476 2019-08-08 Jim Wilson <jimw@sifive.com>
1477
1478 PR target/91229
1479 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
1480 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
1481 Pass into recursive call.
1482 (riscv_flatten_aggregate_argument): New arg. Pass to
1483 riscv_flatten_aggregate_field.
1484 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
1485 riscv_flatten_aggregate_argument twice, with false and true as last
1486 arg. Process result twice. Compare results and warn if different.
1487 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
1488
1489 2019-08-08 Martin Liska <mliska@suse.cz>
1490
1491 PR bootstrap/91352
1492 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
1493 * lto-wrapper.c (jobserver_active_p): Likewise.
1494
1495 2019-08-08 Martin Liska <mliska@suse.cz>
1496
1497 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
1498 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
1499 (create_version_clone_with_body): Likewise.
1500
1501 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1502
1503 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
1504 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
1505 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
1506 GOVD_EXPLICIT flags.
1507 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
1508 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
1509 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
1510 call install_var_field with mask 11 instead of 3.
1511 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
1512 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
1513
1514 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1515
1516 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
1517 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
1518
1519 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1520
1521 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
1522 MOVPRFX alternatives. Make the GPR alternatives more expensive
1523 than the FPR ones.
1524
1525 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1526
1527 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
1528 Disparage the GPR alternative relative to the FPR one.
1529 Fix handling of 8-bit and 16-bit FPR values.
1530
1531 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1532
1533 * config/aarch64/iterators.md (BITWISEV): Delete.
1534 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
1535 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
1536 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
1537 UNSPEC_FMINNMV, UNSPEC_FMINV.
1538 (bit_reduc_op): Delete.
1539 (sve_int_op): New int attribute.
1540 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
1541 UNSPEC_FMINNMV, UNSPEC_FMINV.
1542 * config/aarch64/aarch64-sve.md
1543 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
1544 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
1545 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
1546 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
1547 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
1548 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
1549 new patterns.
1550 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
1551 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
1552 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
1553 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
1554 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
1555 new patterns.
1556
1557 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1558
1559 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
1560 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
1561 (fms<mode>4, *fms<mode>4): Replace with...
1562 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
1563 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
1564 Use unspecs instead of rtx codes.
1565 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
1566 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
1567
1568 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1569
1570 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
1571 int iterator.
1572 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
1573 * config/aarch64/aarch64-sve.md
1574 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
1575 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
1576 use a single unspec for the rhs.
1577 (*<su><maxmin><mode>3): Delete.
1578 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
1579
1580 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1581
1582 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
1583 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
1584 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
1585 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
1586 (optab, sve_fp_op): Handle them.
1587 (SVE_FP_UNARY): Delete.
1588 (optab): Remove sqrt entry.
1589 (sve_fp_op): Remove neg, abs and sqrt entries.
1590 (SVE_COND_FP_UNARY): New int iterator.
1591 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
1592 (*<frint_pattern><mode>2): Delete.
1593 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
1594 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
1595 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
1596 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
1597
1598 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1599
1600 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
1601
1602 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1603
1604 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
1605 (UNSPEC_COND_FADD): ...this.
1606 (UNSPEC_COND_SUB): Rename to...
1607 (UNSPEC_COND_FSUB): ...this.
1608 (UNSPEC_COND_MUL): Rename to...
1609 (UNSPEC_COND_FMUL): ...this.
1610 (UNSPEC_COND_DIV): Rename to...
1611 (UNSPEC_COND_FDIV): ...this.
1612 (UNSPEC_COND_MAX): Rename to...
1613 (UNSPEC_COND_FMAXNM): ...this.
1614 (UNSPEC_COND_MIN): Rename to...
1615 (UNSPEC_COND_FMINNM): ...this.
1616 (UNSPEC_COND_LT): Rename to...
1617 (UNSPEC_COND_FCMLT): ...this.
1618 (UNSPEC_COND_LE): Rename to...
1619 (UNSPEC_COND_FCMLE): ...this.
1620 (UNSPEC_COND_EQ): Rename to...
1621 (UNSPEC_COND_FCMEQ): ...this.
1622 (UNSPEC_COND_NE): Rename to...
1623 (UNSPEC_COND_FCMNE): ...this.
1624 (UNSPEC_COND_GE): Rename to...
1625 (UNSPEC_COND_FCMGE): ...this.
1626 (UNSPEC_COND_GT): Rename to...
1627 (UNSPEC_COND_FCMGT): ...this.
1628 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
1629 (sve_fp_op_rev): Update accordingly.
1630 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
1631
1632 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1633
1634 * config/aarch64/aarch64-sve.md: Reorganize contents and add
1635 banner comments.
1636 * config/aarch64/check-sve-md.awk: New file.
1637 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
1638 (insn-conditions.md): Depend on it.
1639
1640 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
1641
1642 PR target/91385
1643 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
1644 (*negsi2_cmpz_zext): Ditto.
1645
1646 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1647
1648 * config/aarch64/iterators.md (commutative): Remove.
1649
1650 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
1651
1652 PR driver/91130
1653 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
1654 processing COLLECT_GCC_OPTIONS.
1655 (run_gcc): Likewise.
1656
1657 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1658
1659 PR tree-optimization/91109
1660 * lra-remat.c (update_scratch_ops): Remove assignment of the
1661 hard register.
1662
1663 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1664
1665 * data-streamer.h (streamer_write_poly_uint64): Declare.
1666 (streamer_read_poly_uint64): Likewise.
1667 * data-streamer-in.c (streamer_read_poly_uint64): New function.
1668 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
1669 * ipa-predicate.h (condition::size): Turn into a poly_int64.
1670 (add_condition): Take a poly_int64 size.
1671 * ipa-predicate.c (add_condition): Likewise.
1672 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
1673 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
1674 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
1675 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
1676 condition::size as a poly_int64.
1677 (unmodified_parm_1): Take a poly_int64 size pointer.
1678 (unmodified_parm): Likewise.
1679 (unmodified_parm_or_parm_agg_item): Likewise.
1680 (set_cond_stmt_execution_predicate): Update accordingly.
1681 (set_switch_stmt_execution_predicate): Likewise.
1682 (will_be_nonconstant_expr_predicate): Likewise.
1683 (will_be_nonconstant_predicate): Likewise.
1684 (inline_read_section): Stream condition::size as a poly_int.
1685 (ipa_fn_summary_write): Likewise.
1686
1687 2019-08-07 Martin Liska <mliska@suse.cz>
1688
1689 * fold-const.c (twoval_comparison_p): Replace int
1690 with bool as a return type.
1691 (simple_operand_p): Likewise.
1692 (operand_equal_p): Replace int with bool as a return type.
1693 * fold-const.h (operand_equal_p): Likewise.
1694
1695 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1696
1697 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
1698 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
1699 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
1700 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
1701 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
1702 * tree-pretty-print.c (dump_omp_clause): Likewise.
1703 * tree-nested.c (convert_nonlocal_omp_clauses,
1704 convert_local_omp_clauses): Likewise.
1705 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
1706 Likewise.
1707 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
1708 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
1709 clause with array or reference to array types, no matter what type
1710 except for reference it has.
1711
1712 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
1713
1714 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
1715
1716 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
1717
1718 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
1719 (arch_canonicalize): Support rv32g and rv64g and fix error
1720 handling.
1721
1722 2019-08-06 Martin Liska <mliska@suse.cz>
1723
1724 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
1725 and DECL_IS_OPERATOR_DELETE_P.
1726
1727 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1728
1729 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
1730 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
1731 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
1732 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
1733 (gimplify_omp_for): Don't do C++ random access iterator clause
1734 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
1735 don't predetermine the artificial iterator in case of C++ random
1736 access iterators as lastprivate, but private. For OMP_LOOP, force
1737 bind expr around simd body and force for_pre_body before the
1738 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
1739 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
1740 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
1741 diff var of C++ random access iterators. Handle
1742 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
1743 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
1744 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
1745 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
1746 * omp-low.c (lower_rec_input_clauses): For
1747 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
1748 variables instead of default constructing them.
1749 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
1750 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
1751 is_taskloop_ctx check from the assert to the guarding condition.
1752
1753 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
1754
1755 * config/riscv/multilib-generator: (canonical_order): New.
1756 (arch_canonicalize): Dito.
1757 Apply arch_canonicalize for alts.
1758
1759 2019-08-05 Martin Sebor <msebor@redhat.com>
1760
1761 * doc/extend.texi (Common Variable Attributes): Document alias
1762 attribute.
1763
1764 2019-08-05 Marek Polacek <polacek@redhat.com>
1765
1766 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
1767 * doc/invoke.texi: Document -Wcomma-subscript.
1768
1769 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1770
1771 * tree-core.h (tree_function_decl): Make function_code an
1772 independent field. Group the remaining bitfields into bytes
1773 and move decl_type so that it contines to be at a byte boundary.
1774 Leave 12 bits for future expansion.
1775
1776 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1777
1778 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
1779 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
1780 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
1781 IFN_MASK_STORE.
1782
1783 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1784
1785 * gimple.h (gimple_move_vops): Declare.
1786 * gimple.c (gimple_move_vops): New function
1787 * gimple-fold.c (replace_call_with_call_and_fold)
1788 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
1789 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
1790 (gimple_fold_call): Use it.
1791 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
1792 * tree-call-cdce.c (use_internal_fn): Likewise.
1793 * tree-if-conv.c (predicate_load_or_store): Likewise.
1794 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1795 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1796 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
1797 (update_call_from_tree): Likewise.
1798 * tree-vect-stmts.c (vectorizable_load): Likewise.
1799 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
1800
1801 2019-08-05 Martin Liska <mliska@suse.cz>
1802
1803 PR c++/91334
1804 * tree-ssa-dce.c (propagate_necessity): Handle new operators
1805 with not arguments.
1806 (eliminate_unnecessary_stmts): Likewise.
1807
1808 2019-08-05 Richard Biener <rguenther@suse.de>
1809
1810 PR middle-end/91169
1811 * fold-const.c (get_array_ctor_element_at_index): Create
1812 offset_ints according to the sign of the index type and treat
1813 that as signed if it is obviously so.
1814
1815 2019-08-05 Jakub Jelinek <jakub@redhat.com>
1816
1817 PR target/91341
1818 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
1819 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
1820 _mm256_storeu2_m128i): New function.
1821
1822 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
1823
1824 * config/riscv/riscv.c (riscv_promote_function_mode): New.
1825 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
1826
1827 2019-08-05 Alan Modra <amodra@gmail.com>
1828
1829 PR target/91349
1830 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
1831 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
1832
1833 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
1834
1835 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
1836 bug that was fixed in Tcl 8.6.1.
1837
1838 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
1839
1840 * config/rs6000/future.md: New file.
1841 * config/rs6000/rs6000.md: Include future.md.
1842 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
1843
1844 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1845
1846 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
1847 check to use targetm.slow_unaligned_access instead.
1848
1849 * function.c (assign_param_data_one): Remove unused data members.
1850
1851 2019-08-02 Steve Ellcey <sellcey@marvell.com>
1852
1853 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
1854 build_distinct_type_copy.
1855 (simd_clone_adjust_argument_types): Ditto.
1856 (simd_clone_adjust): Call build_distinct_type_copy here.
1857 (expand_simd_clones): Ditto.
1858
1859 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
1860
1861 PR target/91201
1862 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
1863
1864 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
1865
1866 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
1867 from 'const void *'.
1868 (sort_locs_in_loop_postorder_cmp): Likewise.
1869
1870 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
1871
1872 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
1873 (hot-bb-count-ws-permille): Likewise.
1874 (hot-bb-frequency-fraction): Likewise.
1875 (unlikely-bb-count-fraction): Likewise.
1876 * params.def (hot-bb-count-fraction): Rework description.
1877 (hot-bb-count-ws-permille): Likewise.
1878 (hot-bb-frequency-fraction): Likewise.
1879 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
1880 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
1881
1882 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
1883
1884 PR target/91323
1885 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
1886 Return false.
1887
1888 2019-08-02 Richard Biener <rguenther@suse.de>
1889
1890 * vec.h (vec::sort): Add gcc_qsort_r support.
1891 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
1892 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
1893 to gcc_qsort_r style callback.
1894 (sort_locs_in_loop_postorder_cmp): Likewise.
1895 (analyze_memory_references): Use gcc_sort_r interfaces.
1896 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
1897
1898 2019-08-02 Martin Liska <mliska@suse.cz>
1899
1900 PR lto/91313
1901 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
1902 to detect working job server.
1903 (driver::detect_jobserver): Test whether jobserver
1904 is active from GCC driver. That will prevent situation where
1905 GCC is invoked from a LD plugin and the linker already uses
1906 file descriptors suggested by make. That leads to a wrong
1907 detection.
1908 * gcc.h (driver): Add detect_jobserver.
1909 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
1910 not scanning for --jobserver-auth prefix.
1911
1912 2019-08-02 Jakub Jelinek <jakub@redhat.com>
1913
1914 PR tree-optimization/91201
1915 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
1916 V16QImode extraction without sse4.1 try to use V4SImode lowpart
1917 extraction.
1918
1919 2019-08-01 Martin Sebor <msebor@redhat.com>
1920
1921 PR c++/90947
1922 * tree.c (type_initializer_zero_p): Define.
1923 * tree.h (type_initializer_zero_p): New function.
1924
1925 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
1926
1927 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
1928
1929 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
1930
1931 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
1932 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
1933 * predict.c (maybe_hot_count_p): Likewise.
1934 (maybe_hot_bb_p): Tweak comment.
1935 (maybe_hot_edge_p): Likewise.
1936 (probably_never_executed): Likewise. Minor tweak.
1937 (probably_never_executed_bb_p): Likewise.
1938 (unlikely_executed_edge_p): Likewise.
1939 (probably_never_executed_edge_p): Likewise.
1940 (optimize_function_for_size_p): Likewise.
1941 (optimize_function_for_speed_p): Likewise.
1942 (function_optimization_type): Likewise.
1943 (optimize_bb_for_size_p): Likewise.
1944 (optimize_bb_for_speed_p): Likewise.
1945 (bb_optimization_type): Likewise.
1946 (optimize_edge_for_size_p): Likewise.
1947 (optimize_edge_for_speed_p): Likewise.
1948 (optimize_insn_for_size_p): Likewise.
1949 (optimize_insn_for_speed_p): Likewise.
1950 (optimize_loop_for_size_p): Likewise.
1951 (optimize_loop_for_speed_p): Likewise.
1952 (optimize_loop_nest_for_speed_p): Likewise.
1953 (optimize_loop_nest_for_size_p): Likewise.
1954 (predictable_edge_p): Likewise.
1955 (handle_missing_profiles): Minor tweak.
1956
1957 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
1958
1959 * config/rs6000/predicates.md (pcrel_external_address): Update
1960 comment.
1961
1962 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
1963
1964 PR target/85693
1965 * config/i386/mmx.md (usadv8qi): New expander.
1966
1967 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
1968
1969 PR c++/90590
1970 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
1971 with reserved names that are in a system header.
1972
1973 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
1974
1975 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
1976 (*vec_extractv2si_0_zext_sse4): New insn pattern.
1977 (*vec_extractv2si_0_zext): Ditto.
1978 (*vec_extractv2si_1): Add (rm,x) alternative.
1979 (*vec_extractv2si_1_zext): New insn pattern.
1980 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
1981 insn constraint.
1982
1983 2019-08-01 Richard Biener <rguenther@suse.de>
1984
1985 * domwalk.c (bb_postorder): Remove static variable.
1986 (cmp_bb_postorder): Adjust.
1987 (sort_bbs_postorder): Adjust and use gcc_sort_r.
1988 (dom_walker::walk): Adjust.
1989
1990 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
1991
1992 * sort.cc (sort_r_ctx): New struct.
1993 (reorder23): Make templated on context type.
1994 (reorder45): Ditto.
1995 (cmp1): Ditto. Adjust signature.
1996 (netsort): Ditto.
1997 (mergesort): Ditto.
1998 [CHECKING_P] (cmp2to3): New static function. Use it...
1999 (gcc_qsort) [CHECKING_P]: ...here.
2000 (gcc_sort_r): New function.
2001 * system.h (sort_r_cmp_fn): New function typedef.
2002 (qsort_chk): Adjust signature.
2003 (gcc_sort_r): Declare.
2004 * vec.c (qsort_chk_error): Adjust.
2005 (qsort_chk): Adjust.
2006
2007 2019-08-01 Richard Biener <rguenther@suse.de>
2008
2009 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
2010 (compute_antic): Localize it here.
2011
2012 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
2013
2014 * common/config/riscv/riscv-common.c: Check -march string ends
2015 with null.
2016
2017 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
2018
2019 * ipa-devirt.c (type_warning_cmp): Make static.
2020 (decl_warning_cmp): Ditto.
2021
2022 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
2023
2024 PR target/91050
2025 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
2026 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
2027 use of deleted rs6000_dejagnu_cpu_index variable.
2028 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
2029 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
2030 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
2031 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
2032 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
2033 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
2034
2035 2019-07-31 Richard Biener <rguenther@suse.de>
2036
2037 PR tree-optimization/91280
2038 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2039 Decompose MEM_REF manually for offset handling.
2040
2041 2019-07-31 Richard Biener <rguenther@suse.de>
2042
2043 PR tree-optimization/91293
2044 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
2045 of reduction stmts.
2046
2047 2019-07-31 Matt Thomas <matt@3am-software.com>
2048 Nick Hudson <nick@nthcliff.demon.co.uk>
2049 Matthew Green <mrg@eterna.com.au>
2050 Maya Rashish <coypu@sdf.org>
2051
2052 * config.gcc (hppa*-*-netbsd*): New target.
2053 * config/pa/pa-netbsd.h: New file.
2054 * config/pa/pa32-netbsd.h: New file.
2055
2056 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2057
2058 PR tree-optimization/91201
2059 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
2060
2061 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
2062
2063 * config/gcn/gcn-valu.md
2064 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
2065 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
2066 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
2067 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
2068 struct ilist. Add nops for delayeduse insns.
2069 * config/gcn/gcn.md (delayeduse): New attribute.
2070 (*movbi): Remove s_waitcnt from stores.
2071 (*mov<mode>_insn): Likewise.
2072 (*movti_insn): Likewise. Add delayeduse attribute.
2073 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
2074 (atomic_store<mode>): Remove or adjust s_waitcnt.
2075
2076 2019-07-31 Richard Biener <rguenther@suse.de>
2077
2078 * vr-values.h (vr_values::swap_vr_value): New.
2079 (vr_values::free_value_range): likewise.
2080 * vr-values.c (vr_values::swap_vr_value): Implement.
2081 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
2082 Do not return a range or take a var.
2083 (evrp_range_analyzer::stack): Change back to recording a non-const
2084 value_range *.
2085 * gimple-ssa-evrp-analyze.c
2086 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
2087 value-range.
2088 (evrp_range_analyzer::pop_to_marker): Adjust.
2089 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
2090 (evrp_range_analyzer::pop_value_range): Likewise. Free the
2091 no longer needed value-range.
2092
2093 2019-07-31 Martin Liska <mliska@suse.cz>
2094
2095 * tree-ssa-dce.c (propagate_necessity): Delete operator can
2096 have size and (or) alignment as 2nd and later arguments.
2097 Mark all of them as necessary.
2098
2099 2019-07-31 Richard Biener <rguenther@suse.de>
2100
2101 PR tree-optimization/91178
2102 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
2103 Use tail-recursion.
2104
2105 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2106
2107 PR tree-optimization/91201
2108 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
2109 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
2110 TARGET_AVX512F.
2111 (reduc_plus_scal_<mode>): Improve formatting by introducing
2112 a temporary.
2113
2114 2019-07-31 Sudakshina Das <sudi.das@arm.com>
2115
2116 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2117 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
2118 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
2119 (aarch64_init_tme_builtins): New.
2120 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
2121 (aarch64_expand_builtin_tme): New.
2122 (aarch64_expand_builtin): Handle TME builtins.
2123 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2124 __ARM_FEATURE_TME when enabled.
2125 * config/aarch64/aarch64-option-extensions.def: Add "tme".
2126 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
2127 (TARGET_TME): New.
2128 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
2129 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
2130 UNSPECV_TCANCEL.
2131 (tstart, ttest, tcommit, tcancel): New instructions.
2132 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
2133 (__tcancel, __ttest): New.
2134 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
2135 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
2136 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
2137 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
2138 * config/arm/types.md: Add new tme type attr.
2139 * doc/invoke.texi: Document "tme".
2140
2141 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
2142
2143 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
2144 warn_unused_result attribute.
2145 (cmse_check_address_range): Add warn_unused_result attribute.
2146
2147 2019-07-31 Richard Biener <rguenther@suse.de>
2148
2149 PR tree-optimization/91257
2150 * tree-vrp.c (union_ranges): Unify equality and less tests
2151 by using compare_values. Re-order cheap tests first.
2152
2153 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2154
2155 PR middle-end/91301
2156 * gimplify.c (gimplify_omp_for): If for class iterator on
2157 distribute parallel for there is no data sharing clause
2158 on inner_for_stmt, look for private clause on combined
2159 parallel too and if found, move it to inner_for_stmt.
2160
2161 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
2162
2163 * lra-int.h (lra_operand_data): Remove early_clobber field.
2164 (lra_insn_reg): Likewise.
2165 * lra.c (debug_operand_data): Update accordingly.
2166 (setup_operand_alternative): Likewise.
2167 (new_insn_reg): Likewise. Remove early_clobber parameter.
2168 (collect_non_operand_hard_regs): Update call accordingly.
2169 Don't assign to lra_insn_reg::early_clobber.
2170 (add_regs_to_insn_regno_info): Remove early_clobber parameter
2171 and update calls to new_insn_reg.
2172 (lra_update_insn_regno_info): Update calls accordingly.
2173 * lra-constraints.c (update_and_check_small_class_inputs): Take the
2174 alternative number as a parameter and test whether the operand
2175 is earlyclobbered in that particular alternative.
2176 (process_alt_operands): Update call accordingly. Use per-alternative
2177 checks for earyclobber here too.
2178 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
2179 against zero for IRA_UNKNOWN_ALT.
2180
2181 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
2182
2183 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
2184
2185 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
2186
2187 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
2188 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
2189
2190 2019-07-30 Martin Liska <mliska@suse.cz>
2191
2192 PR ipa/89330
2193 * cgraph.c (cgraph_edge::make_direct): Use
2194 edge->indirect_unknown_callee as edge->resolve_speculation can
2195 deallocate edge which is this pointer.
2196
2197 2019-07-30 Richard Biener <rguenther@suse.de>
2198
2199 PR tree-optimization/91257
2200 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
2201
2202 2019-07-30 Martin Liska <mliska@suse.cz>
2203
2204 * doc/invoke.texi: Document new behavior.
2205 * lto-wrapper.c (cpuset_popcount): New function
2206 is a copy of libgomp/config/linux/proc.c.
2207 (init_num_threads): Likewise.
2208 (run_gcc): Automatically detect core count for -flto.
2209 (jobserver_active_p): New function.
2210
2211 2019-07-30 Richard Biener <rguenther@suse.de>
2212
2213 PR tree-optimization/91257
2214 * bitmap.h (bitmap_ior_into_and_free): Declare.
2215 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
2216 whether to add the unliked element to the freelist.
2217 (bitmap_list_insert_element_after): Add defaulted param for
2218 an already allocated element.
2219 (bitmap_ior_into_and_free): New function.
2220 * tree-ssa-structalias.c (condense_visit): Reduce the
2221 ponts-to and edge bitmaps of the SCC members in a
2222 logarithmic fashion rather than all to one.
2223
2224 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
2225
2226 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
2227 parameter. When nonnull, make sure that the addition or subtraction
2228 has the same condition.
2229 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
2230 for CFN_COND_MUL too.
2231
2232 2019-07-30 Richard Biener <rguenther@suse.de>
2233
2234 PR tree-optimization/91291
2235 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
2236 constant values.
2237
2238 2019-07-30 Jakub Jelinek <jakub@redhat.com>
2239
2240 PR middle-end/91216
2241 * omp-low.c (global_nonaddressable_vars): New variable.
2242 (use_pointer_for_field): For global decls, if they are non-addressable,
2243 remember it in the global_nonaddressable_vars bitmap, if they are
2244 addressable and in the global_nonaddressable_vars bitmap, ignore their
2245 TREE_ADDRESSABLE bit.
2246 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
2247 vars in global_nonaddressable_vars bitmap.
2248 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
2249
2250 PR target/91150
2251 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
2252 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
2253 comparison to unsigned HOST_WIDE_INT before shifting it left.
2254
2255 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
2256
2257 * config/i386/i386.md (movstrict<mode>): Use register_operand
2258 predicate for operand 0. Add expander condition. Assert that
2259 operand 0 is a SUBREG RTX.
2260 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
2261 Update operand constraints and insn condition.
2262 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
2263 (zero_extendqihi2_and): Do not call gen_movstrictqi.
2264 (*setcc_qi_slp): Use register_operand predicate for operand 0.
2265 Update operand 0 constraints.
2266 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
2267
2268 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2269
2270 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
2271 when -m{code,data}-region are used without -mlarge.
2272 * config/msp430/msp430.c (msp430_option_override): Error when a
2273 non-default code or data region is used without -mlarge.
2274 (msp430_section_attr): Emit a warning and do not add upper/lower/either
2275 attributes when they are used without -mlarge.
2276
2277 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2278
2279 PR target/70320
2280 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
2281
2282 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
2283
2284 PR middle-end/91242
2285 * wide-int.h (generic_wide_int::sext_elt): New function.
2286 * inchash.h (hash::add_wide_int): Use it instead of elt.
2287
2288 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2289
2290 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
2291 CODE_FOR_arm_##.
2292 * config/arm/arm.md (<crc_variant>): Rename to...
2293 (arm_<crc_variant>): ... This.
2294 (<cdp>): Rename to...
2295 (arm_<cdp>): ... This.
2296 (<ldc>): Rename to...
2297 (arm_<ldc>): ... This.
2298 (<stc>): Rename to...
2299 (arm_<stc>): ... This.
2300 (<mcr>): Rename to...
2301 (arm_<mcr>): ... This.
2302 (<mrc>): Rename to...
2303 (arm_<mrc>): ... This.
2304 (<mcrr>): Rename to...
2305 (arm_<mcrr>): ... This.
2306 (<mrrc>): Rename to...
2307 (arm_<mrrc>): ... This.
2308
2309 2019-07-29 Richard Biener <rguenther@suse.de>
2310
2311 PR tree-optimization/91257
2312 * tree-ssa-sccvn.h (struct vn_avail): New.
2313 (struct vn_ssa_aux): Add avail member.
2314 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
2315 member, add m_avail_freelist one.
2316 (rpo_elim::~rpo_elim): Remove.
2317 (rpo_elim::eliminate_avail): Adjust to new avail tracking
2318 data structure.
2319 (rpo_elim::eliminate_push_avail): Likewise.
2320 (do_unwind): Likewise.
2321 (do_rpo_vn): Likewise.
2322
2323 2019-07-29 Richard Biener <rguenther@suse.de>
2324
2325 PR tree-optimization/91257
2326 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
2327 most cases, instead call compare_values which handles the
2328 symbolic ranges we handle specially.
2329 (compare_values_warnv): Do not call operand_less_p but open-code
2330 the effective fold calls. Avoid converting so much.
2331
2332 2019-07-29 Martin Liska <mliska@suse.cz>
2333
2334 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
2335 remove LHS of operator new call. It's handled latter.
2336
2337 2019-07-29 Richard Biener <rguenther@suse.de>
2338
2339 PR tree-optimization/91267
2340 * vr-values.c (vr_values::update_value_range): Add early return
2341 for effectively VARYING lattice entry.
2342
2343 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
2344
2345 PR debug/86638
2346 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
2347 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
2348 necessary if keep_all_vdefs_p is true.
2349 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
2350 that keep_all_vdefs_p is false.
2351 (mark_all_reaching_defs_necessary): Likewise.
2352 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
2353
2354 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
2355
2356 * common.opt (Og): Change the initial value of flag_dse to 0.
2357 * opts.c (default_options_table): Move OPT_ftree_dse from
2358 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
2359 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
2360 entry before the OPT_ftree_sra entry.
2361 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
2362 of flags disabled by Og.
2363
2364 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
2365
2366 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
2367 variables for -Og.
2368
2369 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
2370
2371 * doc/sourcebuild.texi (check-function-bodies): Document.
2372
2373 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
2374
2375 * simplify-rtx.c (simplify_const_unary_operation): Fold a
2376 VEC_DUPLICATE of a fixed-length vector even if the result
2377 is variable-length. Likewise fold a duplicate of a
2378 variable-length vector if the variable-length vector is
2379 itself a duplicate of a fixed-length sequence.
2380 (test_vector_ops_duplicate): Test more cases.
2381
2382 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
2383
2384 * vector-builder.h (vector_builder): Add a shape template parameter.
2385 (vector_builder::new_unary_operation): New function, generalizing
2386 the old tree_vector_builder function.
2387 (vector_builder::new_binary_operation): Likewise.
2388 (vector_builder::binary_encoded_nelts): Likewise.
2389 * int-vector-builder.h (int_vector_builder): Update template
2390 parameters to vector_builder.
2391 (int_vector_builder::shape_nelts): New function.
2392 * rtx-vector-builder.h (rtx_vector_builder): Update template
2393 parameters to vector_builder.
2394 (rtx_vector_builder::shape_nelts): New function.
2395 (rtx_vector_builder::nelts_of): Likewise.
2396 (rtx_vector_builder::npatterns_of): Likewise.
2397 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
2398 * tree-vector-builder.h (tree_vector_builder): Update template
2399 parameters to vector_builder.
2400 (tree_vector_builder::shape_nelts): New function.
2401 (tree_vector_builder::nelts_of): Likewise.
2402 (tree_vector_builder::npatterns_of): Likewise.
2403 (tree_vector_builder::nelts_per_pattern_of): Likewise.
2404 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
2405 (tree_vector_builder::new_binary_operation): Delete.
2406 (tree_vector_builder::binary_encoded_nelts): Likewise.
2407 * simplify-rtx.c: Include rtx-vector-builder.h.
2408 (distributes_over_addition_p): New function.
2409 (simplify_const_unary_operation)
2410 (simplify_const_binary_operation): Generalize handling of vector
2411 constants to include variable-length vectors.
2412 (test_vector_ops_series): Add more tests.
2413
2414 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
2415
2416 PR lto/91222
2417 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
2418 than INDENTIFIER_POINTER.
2419
2420 2019-07-28 Martin Liska <mliska@suse.cz>
2421
2422 PR ipa/89330
2423 * cgraph.c (symbol_table::create_edge): Always allocate
2424 a cgraph_edge.
2425 (symbol_table::free_edge): Store summary_id to
2426 edge_released_summary_ids if != -1;
2427 * cgraph.h (NEXT_FREE_NODE): Remove.
2428 (SET_NEXT_FREE_NODE): Likewise.
2429 (NEXT_FREE_EDGE): Likewise.
2430 (symbol_table::release_symbol): Store summary_id to
2431 cgraph_released_summary_ids if != -1;
2432 (symbol_table::allocate_cgraph_symbol): Always allocate
2433 a cgraph_node.
2434
2435 2019-07-28 Alan Modra <amodra@gmail.com>
2436
2437 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
2438 gen_sibcall.
2439
2440 2019-07-28 Alan Modra <amodra@gmail.com>
2441
2442 PR target/91135
2443 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
2444 define.
2445 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
2446 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
2447 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
2448
2449 2019-07-28 Alan Modra <amodra@gmail.com>
2450
2451 PR target/91050
2452 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
2453 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
2454 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
2455 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
2456 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
2457 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
2458 in asm_default spec.
2459 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
2460 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
2461
2462 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
2463
2464 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
2465
2466 2019-07-26 Tamar Christina <tamar.christina@arm.com>
2467
2468 PR target/89517
2469 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
2470 * config/aarch64/aarch64-option-extensions.def: Add new comments
2471 and restore easier to read options.
2472
2473 2019-07-26 Tamar Christina <tamar.christina@arm.com>
2474
2475 * convert.c (convert_to_real_1): Move part of conversion code...
2476 * match.pd: ...To here.
2477
2478 2019-07-26 Martin Jambor <mjambor@suse.cz>
2479
2480 PR ipa/89330
2481 * ipa-inline-transform.c (check_speculations_1): New function.
2482 (push_all_edges_in_set_to_vec): Likewise.
2483 (check_speculations): Use check_speculations_1, new parameter
2484 new_edges.
2485 (inline_call): Pass new_edges to check_speculations.
2486 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
2487 NULL.
2488 (speculation_useful_p): Early return true if edge is inlined, remove
2489 later checks for inline_failed.
2490
2491 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
2492
2493 PR rtl-optimization/91223
2494 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
2495 matching with INOUT operand.
2496
2497 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
2498
2499 * stmt.c (expand_case): Try to narrow the index type if it's larger
2500 than a word. Tidy up.
2501
2502 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
2503
2504 * cif-code.def (NEVER_CALL): New code.
2505 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
2506 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
2507
2508 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
2509
2510 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
2511 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
2512
2513 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2514
2515 * ipa-devirt.c (add_type_duplicate): Fix return value.
2516
2517 2019-07-25 Richard Biener <rguenther@suse.de>
2518
2519 * tree-vrp.c (extract_range_from_multiplicative_op): Add
2520 type parameter and use it instead of guessing expression
2521 type from the first operand.
2522 (extract_range_from_binary_expr): Pass expr_type down.
2523
2524 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2525
2526 * config/arm/arm.md (SATrev): Change to code attribute.
2527 (*satsi_<SAT:code>): Adjust for the above.
2528 (*satsi_<SAT:code>_shift): Likewise.
2529
2530 2019-07-25 Richard Biener <rguenther@suse.de>
2531
2532 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
2533 Make value_range * temporary const.
2534 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
2535 Likewise.
2536 (evrp_range_analyzer::record_ranges_from_): Likewise.
2537 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
2538 deal with having recorded a const one.
2539 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
2540 Return a const value_range *.
2541 (evrp_range_analyzer::pop_value_range): Likewise.
2542 (evrp_range_analyzer::stack): Record const value_range *s.
2543 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
2544 Adjust.
2545 * gimple-ssa-sprintf.c (get_int_range): Likewise.
2546 (format_integer): Likewise.
2547 (sprintf_dom_walker::handle_gimple_call): Likewise.
2548 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
2549 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
2550 (vrp_prop::get_value_range): Adjust.
2551 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
2552 modifying the lattice in-place.
2553 (vrp_prop::visit_stmt): Likewise.
2554 * vr-values.c (vr_values::get_lattice_entry): New private method.
2555 (vr_values::get_value_range): Wrap it and return a const
2556 value_range *.
2557 (vr_values::set_def_to_varying): New.
2558 (vr_values::set_defs_to_varying): Use it.
2559 (vr_values::update_value_range): Likewise.
2560 (vr_values::vrp_stmt_computes_nonzero): Adjust.
2561 (values::op_with_constant_singleton_va): Likewise.
2562 (vr_values::extract_range_for_var_from_co): Likewise.
2563 (vr_values::extract_range_from_ssa_name): Likewise.
2564 (vr_values::extract_range_from_cond_expr): Likewise.
2565 (vr_values::extract_range_basic): Likewise.
2566 (compare_ranges): Take const value_range *, adjust.
2567 (compare_range_with_value): Likewise.
2568 (vrp_valueize): Adjust.
2569 (vrp_valueize_1): Likewise.
2570 (vr_values::get_vr_for_comparison): Return a const value_range *.
2571 (vr_values::compare_name_with_value): Adjust.
2572 (vr_values::compare_names): Likewise.
2573 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
2574 Likewise.
2575 (vr_values::vrp_evaluate_conditional): Likewise.
2576 (find_case_label_ranges): Take a const value_range *.
2577 (vr_values::vrp_visit_switch_stmt): Adjust.
2578 (vr_values::extract_range_from_phi_node): Likewise.
2579 (vr_values::simplify_div_or_mod_using_ran): Likewise.
2580 (vr_values::simplify_abs_using_ranges): Likewise.
2581 (test_for_singularity): Take a const value_range *.
2582 (range_fits_type_p): Likewise.
2583 (vr_values::simplify_cond_using_ranges_1): Adjust.
2584 (vr_values::simplify_cond_using_ranges_2): Likewise.
2585 (vr_values::simplify_switch_using_ranges): Likewise.
2586 (vr_values::simplify_float_conversion_usi): Likewise.
2587 (vr_values::two_valued_val_range_p): Likewise.
2588 * vr-values.h (vr_values::get_value_range): Return a const
2589 value_range *.
2590 (vr_values::set_def_to_varying): New.
2591 (vr_values::get_lattice_entry): New private method.
2592 (vr_values::get_vr_for_comparison): Return a const value_range *.
2593
2594 2019-07-25 Martin Liska <mliska@suse.cz>
2595 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
2596
2597 PR c++/23383
2598 * common.opt: Add -fallocation-dce
2599 * gimple.c (gimple_call_operator_delete_p): New.
2600 * gimple.h (gimple_call_operator_delete_p): Likewise.
2601 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
2602 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
2603 DECL_IS_OPERATOR_DELETE_P.
2604 (mark_all_reaching_defs_necessary_1): Likewise.
2605 (propagate_necessity): Likewise.
2606 (eliminate_unnecessary_stmts): Handle
2607 gimple_call_operator_delete_p.
2608 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
2609 Add packing of OPERATOR_DELETE.
2610 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
2611 Similarly here.
2612 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
2613 (DECL_SET_IS_OPERATOR_DELETE): New.
2614 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
2615
2616 2019-07-25 Martin Liska <mliska@suse.cz>
2617
2618 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
2619 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
2620 * coverage.c (coverage_begin_function): Likewise.
2621 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
2622 * gimple.c (gimple_call_nonnull_result_p): Likewise.
2623 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
2624 (sem_item::hash_referenced_symbol_properties): Likewise.
2625 * lto-streamer-out.c (hash_tree): Likewise.
2626 * predict.c (expr_expected_value_1): Likewise.
2627 * tree-inline.c (expand_call_inline): Likewise.
2628 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
2629 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
2630 * tree-core.h (enum function_decl_type): New enum.
2631 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
2632 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
2633 (set_function_decl_type): Likewise.
2634 (DECL_IS_OPERATOR_NEW_P): New.
2635 (DECL_SET_IS_OPERATOR_NEW): Likewise.
2636 (DECL_LAMBDA_FUNCTION): Likewise.
2637 (DECL_LAMBDA_FUNCTION_P): Likewise.
2638 (DECL_IS_OPERATOR_NEW): Remove.
2639 (DECL_SET_LAMBDA_FUNCTION): Likewise.
2640
2641 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
2642
2643 * ipa-profile.c (get_most_common_single_value): Use
2644 get_nth_most_common_value.
2645 * profile.c (sort_hist_value): New function.
2646 (compute_value_histograms): Call sort_hist_value to sort the
2647 values after loading from disk.
2648 * value-prof.c (get_most_common_single_value): Rename to ...
2649 get_nth_most_common_value. Add input params n, return
2650 the n_th value and count.
2651 (gimple_divmod_fixed_value_transform): Use
2652 get_nth_most_common_value.
2653 (gimple_ic_transform): Likewise.
2654 (gimple_stringops_transform): Likewise.
2655 * value-prof.h (get_most_common_single_value): Add input params
2656 n, default to 0.
2657
2658 2019-07-25 Richard Biener <rguenther@suse.de>
2659
2660 PR tree-optimization/91236
2661 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
2662 size of CONSTRUCTOR write. Fix buffer size we pass to
2663 native_encode_expr.
2664
2665 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2666
2667 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
2668 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
2669 r273773.
2670
2671 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2672
2673 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
2674 explicitly disabled with --disable-initfini-array.
2675
2676 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2677
2678 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
2679 if-exists.
2680
2681 2019-07-24 Martin Sebor <msebor@redhat.com>
2682
2683 PR tree-optimization/91183
2684 PR tree-optimization/86688
2685 * builtins.c (compute_objsize): Handle MEM_REF.
2686 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
2687 (get_min_string_length): Remove.
2688 (count_nonzero_bytes): New function.
2689 (handle_char_store): Rename...
2690 (handle_store): to this. Handle multibyte stores via integer types.
2691 (strlen_check_and_optimize_stmt): Adjust conditional and the called
2692 function name.
2693
2694 2019-07-24 Martin Sebor <msebor@redhat.com>
2695
2696 PR driver/80545
2697 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
2698 (diagnostic_report_diagnostic): Same.
2699 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
2700 (diagnostic_context::lang_mask): New data member.
2701 * ipa-pure-const.c (suggest_attribute): Use
2702 lang_hooks.option_lang_mask ().
2703 * opts-common.c (option_enabled): Handle new argument.
2704 (get_option_state): Pass an additional argument.
2705 * opts.c (print_filtered_help): Print supported languages for
2706 unsupported options. Adjust printing of current state.
2707 * opts.h (option_enabled): Add argument.
2708 * toplev.c (print_switch_values): Use lang_mask.
2709 (general_init): Set global_dc->lang_mask.
2710
2711 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
2712
2713 PR bootstrap/87030
2714 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
2715
2716 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
2717
2718 * cgraphunit.c (symbol_table::compile): Start and stop
2719 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
2720 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
2721
2722 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
2723
2724 * gimplify.c (flag_instrument_functions_exclude_p): Include
2725 namespace/class information in the printable name.
2726 * opts.c (add_comma_separated_to_vector): Add NUL terminator
2727 to tokens entered into the vector.
2728
2729 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
2730
2731 * tree-nested.c (build_simple_mem_ref_notrap): New function.
2732 (get_static_chain): Call it instead of build_simple_mem_ref.
2733 (get_frame_field): Likewise.
2734 (get_nonlocal_debug_decl): Likewise.
2735 (convert_nonlocal_reference_op): Likewise.
2736
2737 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
2738
2739 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
2740 declaration.
2741 (arc_compute_frame_size): Millicode is disabled when compiling
2742 ISR.
2743 (arc_return_address_register): Likewise.
2744 (arc_compute_function_type): Likewise.
2745 (arc_compute_frame_size): Likewise.
2746 (secondary_reload_info): Likewise.
2747 (arc_get_unalign): Likewise.
2748 (arc_can_use_return_insn): Declare.
2749 * config/arc/arc.c (AUX_LP_START): Define
2750 (AUX_LP_END): Likewise.
2751 (arc_frame_info): Update gmask member to 64-bit datum.
2752 (GMASK_LEN): Update.
2753 (arc_compute_function_type): Make it static, move it forward.
2754 (arc_must_save_register): Update, consider the extra regs.
2755 (arc_compute_millicode_save_restore_regs): Update to use the 64
2756 bit gmask.
2757 (arc_compute_frame_size): Likewise.
2758 (arc_enter_leave_p): Likewise.
2759 (arc_save_callee_saves): Likewise.
2760 (arc_restore_callee_saves): Likewise.
2761 (arc_save_callee_enter): Likewise.
2762 (arc_restore_callee_leave): Likewise.
2763 (arc_save_callee_milli): Likewise.
2764 (arc_restore_callee_milli): Likewise.
2765 (arc_expand_prologue): Add new interrupt handling.
2766 (arc_return_address_register): Make it static, move it forward.
2767 (arc_expand_epilogue): Add new interrupt handling.
2768 (arc_get_unalign): Delete.
2769 (arc_epilogue_uses): Make sure we do not remove the extra
2770 saved/restored registers when interrupt.
2771 (arc_can_use_return_insn): New function.
2772 (push_reg): Likewise.
2773 (pop_reg): Likewise.
2774 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
2775 procedures.
2776 (arc_restore_callee_saves): Likewise, but restoring.
2777 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
2778 (R33_REG): Likewise.
2779 (R34_REG): Likewise.
2780 (R35_REG): Likewise.
2781 (R36_REG): Likewise.
2782 (R37_REG): Likewise.
2783 (R38_REG): Likewise.
2784 (R39_REG): Likewise.
2785 (R45_REG): Likewise.
2786 (R46_REG): Likewise.
2787 (R47_REG): Likewise.
2788 (R48_REG): Likewise.
2789 (R49_REG): Likewise.
2790 (R50_REG): Likewise.
2791 (R51_REG): Likewise.
2792 (R52_REG): Likewise.
2793 (R53_REG): Likewise.
2794 (R54_REG): Likewise.
2795 (R55_REG): Likewise.
2796 (R56_REG): Likewise.
2797 (R58_REG): Likewise.
2798 (type): Add rtie attribute.
2799 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
2800 (movsi_insn): Accept moves to lp_count.
2801 (rtie): Update pattern.
2802 (simple_return): Simplify it, don't use this pattern as a return
2803 from an interrupt.
2804 (arc600_rtie): New pattern.
2805 (p_return_i): Clean up.
2806 (return): Likewise.
2807 * config/arc/builtins.def (rtie): Only available for non ARC6xx
2808 family CPUs.
2809 * config/arc/predicates.md (move_src_operand): Consider lp_count
2810 as a register.
2811
2812 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
2813
2814 * config/s390/predicates.md (addv_const_operand): New predicate.
2815 * config/s390/s390-modes.def (CCO): New condition code mode.
2816 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
2817 (s390_branch_condition_mask): Likewise.
2818 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
2819 ("mulv<mode>4"): New expanders.
2820 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
2821 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
2822 pattern definitions.
2823
2824 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2825
2826 PR middle-end/91166
2827 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
2828 (define_predicates): Add entry for uniform_vector_p.
2829 (vec_same_elem_p): New match pattern.
2830
2831 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
2832
2833 PR bootstrap/87030
2834 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
2835 * config/i386/darwin32-biarch.h .. to here.
2836 * config/i386/darwin64-biarch.h: Adjust comments.
2837 * config/rs6000/darwin32-biarch.h: Likewise.
2838 * config/rs6000/darwin64-biarch.h: Likewise.
2839 * config.gcc: Missed commit from r273746
2840 (*-*-darwin*): Don't include CPU t-darwin here.
2841 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
2842 an error message if i686-darwin configuration is attempted for
2843 Darwin >= 18.
2844
2845 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
2846
2847 PR bootstrap/87030
2848 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
2849 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
2850 an error message if i686-darwin configuration is attempted for
2851 Darwin >= 18.
2852 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
2853 (powerpc-*-darwin*): Use biarch files where needed.
2854 (powerpc64-*-darwin*): Likewise.
2855 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
2856 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
2857 arch case.
2858 * config/i386/darwin32-biarch.h: New.
2859 * config/i386/darwin64.h: Rename.
2860 * config/i386/darwin64-biarch.h: To this.
2861 * config/i386/t-darwin: Rename.
2862 * config/i386/t-darwin32-biarch: To this.
2863 * config/i386/t-darwin64: Rename.
2864 * config/i386/t-darwin64-biarch: To this.
2865 * config/rs6000/darwin32-biarch.h: New.
2866 * config/rs6000/darwin64.h: Rename.
2867 * config/rs6000/darwin64-biarch.h: To this.
2868 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
2869 arch case.
2870 * config/rs6000/t-darwin8: Rename.
2871 * config/rs6000/t-darwin32-biarch: To this.
2872 * config/rs6000/t-darwin64 Rename.
2873 * config/rs6000/t-darwin64-biarch: To this.
2874
2875 2019-07-23 Martin Sebor <msebor@redhat.com>
2876
2877 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
2878
2879 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
2880
2881 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
2882 (rh): New alias for it.
2883
2884 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
2885
2886 * gdbhooks.py: Pass replace=True to
2887 gdb.printing.register_pretty_printer.
2888
2889 2019-07-23 Richard Biener <rguenther@suse.de>
2890
2891 PR debug/91231
2892 * lto-streamer-in.c (input_function): Drop inline-entry markers
2893 that ended up with an unknown location block.
2894
2895 2019-07-23 Richard Biener <rguenther@suse.de>
2896
2897 PR tree-optimization/83518
2898 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
2899 init from a constant even when partial defs are already recorded.
2900
2901 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2902
2903 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
2904 * config/i386/znver1.md: Enable patterns for znver2 and add store
2905 variants which use extra AGU unit.
2906
2907 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2908
2909 * config/i386/i386-options.c (ix86_option_override_internal): Default
2910 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
2911 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
2912 for ZNVER2.
2913
2914 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2915
2916 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
2917 (znver2_costs): Update 256 bit SSE costs and multiplication.
2918
2919 2019-07-23 Jan Beulich <jbeulich@suse.com>
2920
2921 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
2922 Require only AVX512F.
2923 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
2924 alternative expanding to vpternlog.
2925
2926 2019-07-23 Martin Liska <mliska@suse.cz>
2927
2928 * dwarf2out.c (gen_producer_string): Canonize -flto=N
2929 to -flto in dwarf producer string.
2930
2931 2019-07-23 Richard Biener <rguenther@suse.de>
2932
2933 * tree-cfg.c (label_for_bb): Remove global var.
2934 (main_block_label): Take label_for_bb as argument.
2935 (cleanup_dead_labels_eh): Likewise, adjust.
2936 (cleanup_dead_labels): Adjust.
2937
2938 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
2939
2940 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
2941 Configurations): Add documentation for __builtin_mtfsf.
2942
2943 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
2944
2945 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
2946 * config/riscv/riscv.c (riscv_constant_alignment): Use
2947 riscv_align_data_type.
2948 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
2949 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
2950 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
2951 * config/riscv/riscv.opt (malign-data): New.
2952 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
2953
2954 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
2955
2956 * cgraph.c (dump_graphviz): New function.
2957 * cgraph.h (dump_graphviz): New function.
2958 * symtab.c (dump_graphviz): New function.
2959
2960 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
2961
2962 * config/aarch64/aarch64-simd.md
2963 (*aarch64_simd_sra<mode>): New.
2964 * config/aarch64/iterators.md
2965 (SHIFTRT): New iterator.
2966 (sra_op): New attribute.
2967
2968 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2969
2970 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
2971 callee-saved regs R4->R10 in an interrupt function that calls another
2972 function.
2973
2974 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
2975
2976 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
2977 (_mm_blendv_epi8): New.
2978
2979 2019-07-22 Richard Biener <rguenther@suse.de>
2980
2981 PR tree-optimization/91221
2982 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
2983 restrict partial-def handling of empty constructors and
2984 memset to refs with known offset.
2985
2986 2019-07-22 Jan Beulich <jbeulich@suse.com>
2987
2988 * config/i386/sse.md (ternlogsuffix): New.
2989 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
2990 AVX512F is in use.
2991 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
2992
2993 2019-07-22 Martin Liska <mliska@suse.cz>
2994
2995 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
2996 comment.
2997 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
2998
2999 2019-07-22 Martin Liska <mliska@suse.cz>
3000
3001 * lto-section-in.c (lto_get_section_data):
3002 Use new function get_compression.
3003 * lto-streamer-out.c (produce_lto_section): Use
3004 set_compression to encode compression algorithm.
3005 * lto-streamer.h (struct lto_section): Do not
3006 use bitfields in the format.
3007
3008 2019-07-22 Martin Liska <mliska@suse.cz>
3009
3010 PR driver/91172
3011 * opts-common.c (decode_cmdline_option): Decode
3012 argument of -Werror and check it for a wrong language.
3013 * opts-global.c (complain_wrong_lang): Remove such case.
3014
3015 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
3016
3017 * config/arc/arc.c (prepare_move_operands): Always use an
3018 intermediate register when storing a TLS symbols.
3019
3020 2019-07-22 Stafford Horne <shorne@gmail.com>
3021
3022 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
3023 force_reg.
3024
3025 2019-07-22 Stafford Horne <shorne@gmail.com>
3026
3027 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
3028 and munordered-float validations.
3029 * config/or1k/constraints.md (d): New register constraint.
3030 * config/or1k/predicates.md (fp_comparison_operator): New.
3031 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
3032 operands.
3033 (or1k_expand_compare): Normalize unordered comparisons.
3034 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
3035 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
3036 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
3037 * config/or1k/or1k.md (type): Add fpu.
3038 (fpu): New instruction reservation.
3039 (F, f, fr, fi, FI, FOP, fop): New.
3040 (<fop><F:mode>3): New ALU instruction definition.
3041 (float<fi><F:mode>2): New conversion instruction definition.
3042 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
3043 (fpcmpcc): New code iterator.
3044 (*sf_fp_insn): New instruction definition.
3045 (cstore<F:mode>4): New expand definition.
3046 (cbranch<F:mode>4): New expand definition.
3047 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
3048 munordered-float): New options.
3049 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
3050 munordered-float.
3051
3052 2019-07-22 Stafford Horne <shorne@gmail.com>
3053
3054 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
3055 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
3056 documenation to be more clear.
3057 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
3058 more clear.
3059 * config/or1k/or1k.opt (mrori): New option.
3060 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
3061 msfimm, mshftimm): Rewrite documentation to be more clear.
3062 * config/or1k/or1k.md (insn_support): Add ror and rori.
3063 (enabled): Add conditions for ror and rori.
3064 (rotrsi3): Replace condition for shftimm with ror and rori.
3065
3066 2019-07-22 Stafford Horne <shorne@gmail.com>
3067
3068 PR target/90363
3069 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
3070 (extend<mode>si2): Update predicate.
3071 * config/or1k/predicates.md (volatile_mem_operand): New.
3072 (reg_or_mem_operand): New.
3073
3074 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
3075
3076 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
3077 * config/rs6000/rs6000-call.c: ... to here.
3078
3079 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3080
3081 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
3082 memory.
3083
3084 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3085
3086 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
3087
3088 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3089
3090 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
3091
3092 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3093
3094 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
3095 (any_memory_operand): New predicate.
3096 (reg_or_mem_operand): Use it.
3097
3098 2019-07-20 Jakub Jelinek <jakub@redhat.com>
3099
3100 PR target/91204
3101 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
3102
3103 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
3104
3105 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
3106 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
3107
3108 2019-07-20 Jakub Jelinek <jakub@redhat.com>
3109
3110 * tree.def (OMP_LOOP): New tree code.
3111 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
3112 (enum omp_clause_bind_kind): New enum.
3113 (struct tree_omp_clause): Add subcode.bind_kind.
3114 * tree.h (OMP_LOOP_CHECK): Rename to ...
3115 (OMP_LOOPING_CHECK): ... this.
3116 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
3117 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
3118 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
3119 (OMP_CLAUSE_BIND_KIND): Define.
3120 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3121 bind clause entries.
3122 (walk_tree_1): Handle OMP_CLAUSE_BIND.
3123 * tree-pretty-print.c (dump_omp_clause): Likewise.
3124 (dump_generic_node): Handle OMP_LOOP.
3125 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
3126 (in_omp_construct): New variable.
3127 (is_gimple_stmt): Handle OMP_LOOP.
3128 (gimplify_scan_omp_clauses): For lastprivate don't set
3129 check_non_private if code == OMP_LOOP. For reduction clause
3130 on OMP_LOOP combined with parallel or teams propagate as shared
3131 on the combined construct. Handle OMP_CLAUSE_BIND.
3132 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
3133 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
3134 for constructs from a loop construct to gimplify_scan_omp_clauses.
3135 Don't predetermine iterator linear on OMP_SIMD from loop construct.
3136 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
3137 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
3138 to match the implicit ORT_TARGET construct around whole body.
3139 Temporarily clear in_omp_construct when processing body.
3140 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
3141 etc. temporarily set in_omp_construct when processing body.
3142 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
3143 * omp-low.c (struct omp_context): Add loop_p.
3144 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
3145 in that the original var might be private.
3146 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
3147 (check_omp_nesting_restrictions): Adjust nesting restrictions for
3148 addition of loop construct.
3149 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
3150
3151 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
3152 lastprivate non-addressable iterator of a collapse(1) simd.
3153
3154 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
3155
3156 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
3157 as in rs6000.c.
3158
3159 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
3160
3161 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
3162 refer to default conditions. Warn for the 'y' spec which is ignored
3163 by current linkers.
3164
3165 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
3166
3167 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
3168 cpu_supports_info, builtin_hash_struct, builtin_hasher,
3169 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
3170 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
3171 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
3172 init_cumulative_args, rs6000_promote_function_mode,
3173 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
3174 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
3175 rs6000_function_arg_boundary, rs6000_parm_offset,
3176 rs6000_parm_start, rs6000_arg_size,
3177 rs6000_darwin64_record_arg_advance_flush,
3178 rs6000_darwin64_record_arg_advance_recurse,
3179 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
3180 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
3181 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
3182 rs6000_mixed_function_arg, rs6000_psave_function_arg,
3183 rs6000_finish_function_arg, rs6000_function_arg,
3184 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
3185 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
3186 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
3187 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
3188 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
3189 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
3190 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
3191 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
3192 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
3193 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
3194 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
3195 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
3196 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
3197 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
3198 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
3199 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
3200 get_element_number, altivec_expand_vec_set_builtin,
3201 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
3202 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
3203 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
3204 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
3205 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
3206 rs6000_expand_builtin, rs6000_vector_type,
3207 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
3208 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
3209 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
3210 to rs6000-call.c.
3211 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
3212 cpu_supports_info, builtin_hash_struct, builtin_hasher,
3213 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
3214 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
3215 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
3216 init_cumulative_args, rs6000_promote_function_mode,
3217 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
3218 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
3219 rs6000_function_arg_boundary, rs6000_parm_offset,
3220 rs6000_parm_start, rs6000_arg_size,
3221 rs6000_darwin64_record_arg_advance_flush,
3222 rs6000_darwin64_record_arg_advance_recurse,
3223 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
3224 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
3225 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
3226 rs6000_mixed_function_arg, rs6000_psave_function_arg,
3227 rs6000_finish_function_arg, rs6000_function_arg,
3228 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
3229 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
3230 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
3231 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
3232 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
3233 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
3234 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
3235 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
3236 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
3237 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
3238 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
3239 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
3240 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
3241 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
3242 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
3243 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
3244 get_element_number, altivec_expand_vec_set_builtin,
3245 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
3246 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
3247 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
3248 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
3249 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
3250 rs6000_expand_builtin, rs6000_vector_type,
3251 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
3252 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
3253 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
3254 to here from rs6000.c.
3255 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
3256 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
3257 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
3258 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
3259 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
3260 rs6000_return_in_memory, rs6000_return_in_msb,
3261 rs6000_pass_by_reference, setup_incoming_varargs,
3262 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
3263 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
3264 rs6000_function_arg_padding, rs6000_function_arg,
3265 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
3266 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
3267 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
3268 rs6000_passes_long_double, rs6000_passes_vector,
3269 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
3270 altivec_builtin_mask_for_load) Add declarations.
3271 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
3272 * config/config.gcc: Add new source file rs6000-call.c to garbage
3273 collector and extra_objs.
3274
3275 2019-07-19 Jeff Law <law@redhat.com>
3276
3277 PR tree-optimization/86061
3278 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
3279 strncpy. Drop some trivial dead code.
3280 (maybe_trim_memstar_call): Handle strncpy.
3281
3282 2019-07-19 Richard Biener <rguenther@suse.de>
3283
3284 PR tree-optimization/91211
3285 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
3286 memset encoding size.
3287
3288 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
3289
3290 PR target/91204
3291 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
3292
3293 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
3294
3295 PR ipa/91194
3296 * ipa-inline.c (recursive_inlining): Fix limits check.
3297
3298 2019-07-19 Richard Biener <rguenther@suse.de>
3299
3300 PR tree-optimization/91200
3301 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
3302 no PHI nodes in middle-bb.
3303
3304 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
3305
3306 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
3307 to +sve-bitperm.
3308 * config/aarch64/aarch64-option-extensions.def: Likewise.
3309
3310 2019-07-19 Jakub Jelinek <jakub@redhat.com>
3311
3312 PR middle-end/91190
3313 * function.c (insert_temp_slot_address): Store into the hash table
3314 a copy of address to avoid RTL sharing issues.
3315
3316 2019-07-19 Richard Biener <rguenther@suse.de>
3317
3318 PR tree-optimization/91207
3319 Revert
3320 2019-07-17 Richard Biener <rguenther@suse.de>
3321
3322 PR tree-optimization/91178
3323 * tree-vect-stmts.c (get_group_load_store_type): For SLP
3324 loads with a gap larger than the vector size always use
3325 VMAT_STRIDED_SLP.
3326 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
3327 avoid loading vectors that are only contained in the gap
3328 and thus are not needed.
3329
3330 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
3331
3332 * config/i386/i386.md (*addqi_2_slp): Remove.
3333 (*<code>qi_2_slp): Ditto.
3334
3335 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
3336
3337 * config/rs6000/predicates.md (prefixed_mem_operand): Call
3338 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
3339 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
3340 Rename function from rs6000_prefixed_address.
3341 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
3342 TARGET_HAS_TOC.
3343 (TARGET_TOC): Likewise.
3344 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
3345 rs6000.h.
3346 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
3347 TARGET_HAS_TOC.
3348 (TARGET_TOC): Likewise.
3349 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
3350 rs6000.h.
3351 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
3352 TARGET_HAS_TOC.
3353 (TARGET_TOC): Likewise.
3354 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
3355 check to require -mcmodel=medium for pc-relative addressing.
3356 (create_TOC_reference): Add assertion for TARGET_TOC.
3357 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
3358 TARGET_NO_TOC.
3359 (rs6000_emit_move): Likewise.
3360 (TOC_alias_set): Rename TOC alias set static variable from 'set'
3361 to 'TOC_alias_set'.
3362 (get_TOC_alias_set): Likewise.
3363 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
3364 TARGET_NO_TOC.
3365 (rs6000_can_eliminate): Likewise.
3366 (rs6000_prefixed_address_mode_p): Rename function from
3367 rs6000_prefixed_address.
3368 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
3369 TARGET_HAS_TOC and not pc-relative.
3370 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
3371 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
3372 TARGET_HAS_TOC.
3373 (TARGET_TOC): Likewise.
3374 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
3375 rs6000.h.
3376
3377 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
3378
3379 PR target/91188
3380 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
3381 for operand 0. Do not use (match_dup) to match operand 1 with
3382 operand 0. Add check in insn constraint that either input operand
3383 matches operand 0. Use SWI12 mode iterator to also handle
3384 HImode operands.
3385 (*and<mode>_1_slp): Ditto.
3386 (*<code>qi_1_slp): Ditto.
3387 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
3388 Do not use (match_dup) to match operand 1 with operand 0. Add
3389 check in insn constraint that operand 1 matches operand 0.
3390 Use SWI12 mode iterator to also handle HImode operands.
3391 (*ashl<mode>3_1_slp): Ditto.
3392 (*<shift_insn><mode>3_1_slp): Ditto.
3393 (*<rotate_insn><mode>3_1_slp): Ditto.
3394
3395 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
3396
3397 * config/arm/arm-builtins.c
3398 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
3399 (arm_expand_unop_builtin): Likewise.
3400 * config/arm/crypto.md
3401 (crypto_sha1h): Convert from define_insn to define_expand.
3402 (crypto_<crypto_pattern>): Likewise.
3403 (crypto_sha1h_lb): New define_insn.
3404 (crypto_<crypto_pattern>_lb): Likewise.
3405
3406 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
3407
3408 PR target/90317
3409 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
3410 (vsha1cq_u32): Likewise.
3411 (vsha1pq_u32): Likewise.
3412 (vsha1mq_u32): Likewise.
3413 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
3414 vec select.
3415 (crypto_sha1c): Correct vec select.
3416 (crypto_sha1m): Likewise.
3417 (crypto_sha1p): Likewise.
3418
3419 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
3420
3421 * config/arm/predicates.md (arm_borrow_operation): New predicate.
3422 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
3423 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
3424 (subdi_zesidi_zesidi): Likewise.
3425 (negdi2_compare, negdi2_insn): Likewise.
3426 (negdi_extensidi): Likewise.
3427 (negdi_zero_extendsidi): Likewise.
3428 (arm_cmpdi_insn): Likewise.
3429 (subsi3_carryin): Use arm_borrow_operation.
3430 (subsi3_carryin_const): Likewise.
3431 (subsi3_carryin_const0): Likewise.
3432 (subsi3_carryin_compare): Likewise.
3433 (subsi3_carryin_compare_const): Likewise.
3434 (subsi3_carryin_compare_const0): Likewise.
3435 (subsi3_carryin_shift): Likewise.
3436 (rsbsi3_carryin_shift): Likewise.
3437 (negsi2_carryin_compare): Likewise.
3438
3439 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
3440
3441 PR tree-optimization/91137
3442 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
3443 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
3444 Init, use and fini the above new field.
3445 (determine_base_object_1): New function.
3446 (determine_base_object): Reimplement using walk_tree.
3447
3448 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
3449
3450 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
3451 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
3452 CLEANUP_FORCE_FAST_DCE is set.
3453 * ifcvt.c (rest_of_handle_if_conversion): Pass
3454 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
3455 if-conversion succeeded.
3456
3457 2019-07-18 Richard Biener <rguenther@suse.de>
3458
3459 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
3460 branches to make code less indented.
3461
3462 2019-07-17 Alexandre Oliva <oliva@adacore.com>
3463
3464 PR middle-end/81824
3465 * attribs.c (decls_mismatched_attributes): Simplify the logic
3466 that avoids duplicates and false positives.
3467
3468 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
3469
3470 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
3471 data into data section when generating PIC code.
3472 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
3473 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
3474 generating code for SOM targets earlier than HP-UX 11. Otherwise,
3475 return 2 for SOM and 0 for other targets.
3476
3477 2019-07-17 Jeff Law <law@redhat.com>
3478
3479 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
3480 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
3481 avoid unexpected switch statement fallthru.
3482
3483 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
3484
3485 * config/i386/i386.md (*add<dwi>3_doubleword):
3486 Remove redundant constraints.
3487 (*add<mode>_1): Ditto.
3488 (*addhi_1): Ditto.
3489 (*addqi_1): Ditto.
3490 (*addqi_1_slp): Ditto.
3491 (*add<mode>_2): Ditto.
3492 (*addv<mode>4): Ditto.
3493 (*sub<dwi>3_doubleword): Ditto.
3494 (*sub<mode>_1): Ditto.
3495 (*subqi_1_slp): Ditto.
3496 (*sub<mode>_2): Ditto.
3497 (*subv<mode>4): Ditto.
3498 (*sub<mode>_3): Ditto.
3499 (@add<mode>3_carry): Ditto.
3500 (@sub<mode>3_carry): Ditto.
3501 (*add<mode>3_cc_overflow_1): Ditto.
3502 (*add<mode>3_zext_cc_overflow_2): Ditto.
3503 (*anddi_1): Ditto.
3504 (*and<mode>_1): Ditto.
3505 (*andqi_1): Ditto.
3506 (*andqi_1_slp): Ditto.
3507 (*anddi_2): Ditto.
3508 (*andqi_2_maybe_si): Ditto.
3509 (*and<mode>_2): Ditto.
3510 (*andqi_2_slp): Ditto.
3511 (*<code><mode>_1): Ditto.
3512 (*<code>qi_1): Ditto.
3513 (*<code>qi_1_slp): Ditto.
3514 (*<code><mode>_2): Ditto.
3515 (*<code>qi_2_slp): Ditto.
3516
3517 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
3518
3519 * alias.c (record_component_aliases): Do not simplify pointed-to
3520 types of ODR types.
3521
3522 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
3523
3524 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
3525 partial reg stall on alternative 2.
3526
3527 2019-07-17 Richard Biener <rguenther@suse.de>
3528
3529 PR tree-optimization/91178
3530 * tree-ssa.c (release_defs_bitset): Iterate from higher to
3531 lower SSA names to avoid quadratic behavior in the common case.
3532 * tree-data-ref.c (split_constant_offset): Add limit argument
3533 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
3534 (split_constant_offset_1): Add limit argument and use it to
3535 limit SSA def walking. Optimize the common plus/minus case.
3536
3537 2019-07-17 Richard Biener <rguenther@suse.de>
3538
3539 PR tree-optimization/91178
3540 * tree-vect-stmts.c (get_group_load_store_type): For SLP
3541 loads with a gap larger than the vector size always use
3542 VMAT_STRIDED_SLP.
3543 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
3544 avoid loading vectors that are only contained in the gap
3545 and thus are not needed.
3546
3547 2019-07-17 Richard Biener <rguenther@suse.de>
3548
3549 PR tree-optimization/91180
3550 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
3551 computation for memset partial defs.
3552
3553 2019-07-17 Jakub Jelinek <jakub@redhat.com>
3554
3555 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
3556 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
3557 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
3558 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
3559 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
3560 * omp-grid.c (grid_process_grid_body,
3561 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
3562 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
3563 == GF_OMP_FOR_KIND_SIMD.
3564 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
3565 check_omp_nesting_restrictions, scan_omp_1_stmt,
3566 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
3567 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
3568 omp_find_scan): Likewise.
3569 * omp-expand.c (expand_omp_for): Likewise.
3570 * omp-general.c (omp_extract_for_data): Likewise.
3571
3572 PR tree-optimization/91157
3573 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
3574 a vector boolean with scalar mode.
3575 (expand_vector_condition): Handle first operand being a vector boolean
3576 with scalar mode.
3577 (expand_vector_operations_1): For comparisons, don't bail out early
3578 if the return type is vector boolean with scalar mode, but comparison
3579 operand type is not.
3580
3581 2019-07-17 Richard Biener <rguenther@suse.de>
3582
3583 PR tree-optimization/91181
3584 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
3585 IFN_LOADs as calls.
3586
3587 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
3588
3589 * config/i386/i386.md (*testdi_1): Match CCZmode for
3590 constants that might have the SImode sign bit set.
3591 (*testqi_1_maybe_si): Remove "!" constraint modifier.
3592 Use correct constraints for pentium pairing.
3593 (*test<mode>_1): Ditto.
3594
3595 2019-07-16 Jeff Law <law@redhat.com>
3596
3597 PR rtl-optimization/91173
3598 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
3599 SSA_NAME with a constant value, fold its value into the offset
3600 and clear the base before calling gen_addr_rtx.
3601
3602 2019-07-16 Jakub Jelinek <jakub@redhat.com>
3603
3604 PR rtl-optimization/91164
3605 * dse.c (rest_of_handle_dse): If dead edges have been purged,
3606 invalidate dominance info.
3607
3608 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3609
3610 * read-md.h (md_reader::record_potential_iterator_use): Add a
3611 file_location parameter.
3612 * read-rtl.c (attribute_use::loc): New field.
3613 (map_attr_string): Take a file_location parameter. Report cases
3614 in which attributes map to multiple distinct values.
3615 (apply_attribute_uses): Update call accordingly.
3616 (md_reader::handle_overloaded_name): Likewise.
3617 (md_reader::apply_iterator_to_string): Likewise. Skip empty
3618 nonnull strings.
3619 (record_attribute_use): Take a file_location parameter.
3620 Initialize attribute_use::loc.
3621 (md_reader::record_potential_iterator_use): Take a file_location
3622 parameter. Update call to record_attribute_use.
3623 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
3624 (rtx_reader::read_rtx_code): Likewise.
3625 (rtx_reader::read_rtx_operand): Likewise. Record a location
3626 for implicitly-expanded empty strings.
3627
3628 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3629
3630 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
3631 Use file_location instead of separate fields.
3632 (md_reader::set_md_ptr_loc): Take a file_location instead of a
3633 separate filename and line number.
3634 * read-md.c (ptr_loc): As above.
3635 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
3636 (md_reader::fprint_md_ptr_loc): Likewise.
3637 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
3638 instead of a separate filename and line number.
3639 (md_reader::read_string): Update call accordingly.
3640
3641 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3642
3643 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
3644 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
3645 leaving the choice between SFDF and P implicit.
3646 (*mov<mode>_update2): Likewise.
3647 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
3648 rather than leaving the choice betweem IBM128 and GPR implicit.
3649 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
3650 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
3651 QHSI implicit.
3652 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
3653 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
3654 * config/rs6000/vsx.md
3655 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
3656 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
3657 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
3658 and VSX_EXTRACT_I implicit.
3659
3660 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3661
3662 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
3663 Explicitly use <MOVEP1:MODE> for the mode attribute.
3664
3665 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
3666
3667 PR bootstrap/91176
3668 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
3669
3670 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
3671
3672 PR target/91050
3673 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
3674 .machine directive.
3675
3676 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
3677
3678 * config/i386/i386.md (@test<mode>_ccno_1):
3679 Rename from test<mode>_ccno_1.
3680 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
3681 (*testqi_1_maybe_si): Remove modrm attribute.
3682 (*test<mode>_1): Ditto.
3683 * config/i386/i386-expand.c (ix86_split_idivmod): Use
3684 gen_test_ccno_1 and gen_extend_insn.
3685
3686 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
3687
3688 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
3689 to 0.
3690
3691 2019-07-15 Richard Biener <rguenther@suse.de>
3692
3693 PR middle-end/91162
3694 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
3695 node make sure to replace all uses with something valid.
3696
3697 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
3698
3699 PR tree-optimization/88497
3700 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
3701 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
3702 function undistribute_bitref_for_vector.
3703 (undistribute_bitref_for_vector): New function.
3704 (cleanup_vinfo_map): Likewise.
3705 (sort_by_mach_mode): Likewise.
3706
3707 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
3708
3709 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
3710 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
3711 and testdi_ccno_1 using SWI48 mode attribute.
3712 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
3713 x86_64_szext_general_operand.
3714 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
3715 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
3716 instead of genera_operand mode attribute.
3717
3718 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
3719
3720 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
3721 fopen and fclose to their respective types.
3722 (DotFn.invoke): Ditto.
3723
3724 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
3725
3726 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
3727 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
3728 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
3729 (array_index_predicate): Remove.
3730 (analyze_function_body): Account cost for variable ofsetted array
3731 indexing.
3732 (estimate_node_size_and_time): Do not compute array index hint.
3733 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
3734 (inline_read_section): Do not read array index hint.
3735 (ipa_fn_summary_write): Do not write array index hint.
3736 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
3737 * ipa-cp.c (hint_time_bonus): Remove.
3738 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
3739 (ipa_fnsummary): Remove array_index.
3740 * ipa-inline.c (want_inline_small_function_p): Do not use
3741 array_index.
3742 (edge_badness): Likewise.
3743 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
3744
3745 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
3746
3747 PR target/91148
3748 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
3749 superfluous "builtin function" phrasing.
3750
3751 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
3752
3753 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
3754 Break out from ...
3755 (aliasing_component_refs_walk): Break out from ...
3756 (aliasing_component_refs_p): ... here.
3757
3758 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
3759
3760 PR target/91148
3761 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
3762 "builtin function" phrasing.
3763
3764 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3765
3766 PR target/90723
3767 * recog.h (temporary_volatile_ok): New class.
3768 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
3769 volatile_ok temporarily to true using temporary_volatile_ok.
3770 * expr.c (emit_block_move_via_cpymem): Likewise.
3771 * optabs.c (maybe_legitimize_operand): Likewise.
3772
3773 2019-07-13 Jakub Jelinek <jakub@redhat.com>
3774
3775 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
3776 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
3777 uses inside of order(concurrent) constructs.
3778 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
3779 OMP_CLAUSE_ORDER is seen.
3780 * omp-low.c (struct omp_context): Add order_concurrent member.
3781 (scan_sharing_clauses): Set ctx->order_concurrent if
3782 OMP_CLAUSE_ORDER is seen.
3783 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
3784 of simd order(concurrent). Diagnose constructs not allowed inside of
3785 for order(concurrent).
3786 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
3787 complaining about static double setjmp (double); or class static
3788 methods or non-global namespace setjmps.
3789 (omp_runtime_api_call): New function.
3790 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
3791 order(concurrent) loops.
3792
3793 2019-07-12 Martin Sebor <msebor@redhat.com>
3794
3795 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
3796 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
3797 * tree-vrp.c (vrp_prop::check_mem_ref): Use
3798 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
3799
3800 2019-07-12 Jan Hubicka <jh@suse.cz>
3801
3802 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
3803 (indirect_refs_may_alias_p): ... here.
3804 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
3805 mem refs in the access paths.
3806
3807 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
3808
3809 PR tree-optimization/89430
3810 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
3811 store elimination for local variable without address escape.
3812
3813 2019-07-12 Jeff Law <law@redhat.com>
3814
3815 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
3816 for the ".far" section.
3817
3818 2019-07-12 Richard Biener <rguenther@suse.de>
3819
3820 PR tree-optimization/91145
3821 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
3822 chain check.
3823
3824 2019-07-12 Alexandre Oliva <oliva@adacore.com>
3825
3826 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
3827 rather than this_state as the lowering context for the ELSE
3828 seq in a GIMPLE_EH_ELSE.
3829
3830 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3831
3832 * vector-builder.h (vector_builder::elt): Allow already-supplied
3833 elements to be read back before building is complete.
3834
3835 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
3836
3837 PR rtl-optimization/91136
3838 * df-core.c (ACCESSING REFS): Fix typos in comment.
3839 * resource.c (mark_target_live_reg): Add artificial defs that occur at
3840 the beginning of the block to the initial set of live registers.
3841
3842 2019-07-12 Richard Biener <rguenther@suse.de>
3843
3844 * fold-const.h (get_array_ctor_element_at_index): Adjust.
3845 * fold-const.c (get_array_ctor_element_at_index): Add
3846 ctor_idx output parameter informing the caller where in
3847 the constructor the element was (not) found. Add early exit
3848 for when the ctor is sorted.
3849 * gimple-fold.c (fold_array_ctor_reference): Support constant
3850 folding across multiple array elements.
3851
3852 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
3853
3854 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
3855 doesn't have location, set the current location to the function's end.
3856
3857 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3858
3859 * config/aarch64/aarch64.md (*compare_condjump<mode>)
3860 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
3861 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
3862 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
3863 * config/aarch64/aarch64-simd.md
3864 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
3865 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
3866 * config/aarch64/aarch64-sve.md
3867 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
3868 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
3869
3870 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3871
3872 * doc/md.texi: Document that @ patterns can have different
3873 numbers of operands.
3874 * genemit.c (handle_overloaded_gen): Handle this case.
3875 * genopinit.c (handle_overloaded_gen): Likewise.
3876 * gensupport.c (replace_operands_with_dups): Iterate over
3877 the new rtx's format rather than the old one's.
3878
3879 2019-07-12 Jakub Jelinek <jakub@redhat.com>
3880
3881 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
3882 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3883 order clause entries.
3884 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
3885 * tree-pretty-print.c (dump_omp_clause): Likewise.
3886 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
3887 Likewise.
3888 * omp-low.c (scan_sharing_clauses): Likewise.
3889 * tree-nested.c (convert_nonlocal_omp_clauses,
3890 convert_local_omp_clauses): Likewise.
3891
3892 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
3893
3894 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
3895 fallthrough target of current basic block isn't the placed
3896 right next.
3897
3898 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
3899
3900 PR target/90980
3901 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
3902 (_mm512_storeu_epi64): Likewise.
3903 (_mm512_loadu_epi32): Likewise.
3904 (_mm512_storeu_epi32): Likewise.
3905 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
3906 (_mm_storeu_epi64): Likewise.
3907 (_mm256_storeu_epi32): Likewise.
3908 (_mm_storeu_epi32): Likewise.
3909
3910 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
3911
3912 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
3913
3914 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
3915
3916 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
3917 Handle Modula-2.
3918
3919 2019-07-11 Jakub Jelinek <jakub@redhat.com>
3920
3921 PR target/91124
3922 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
3923 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
3924 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
3925 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
3926 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
3927 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
3928 define_insns.
3929 (ufix_truncv2dfv2si2<mask_name>): Change into ...
3930 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
3931 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
3932 define_insns.
3933 (sse2_cvttpd2dq<mask_name>): Change into ...
3934 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
3935 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
3936 (*sse2_cvtpd2dq<mask_name>): Change into ...
3937 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
3938 Add "C" constraint to const0_operand.
3939 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
3940 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
3941 changes.
3942
3943 PR target/91124
3944 * config/i386/i386-builtin-types.def
3945 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
3946 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
3947 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
3948 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
3949 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
3950 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
3951 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
3952 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
3953 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
3954 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
3955 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
3956 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
3957 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
3958 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
3959 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
3960 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
3961 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
3962 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
3963 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
3964 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
3965 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
3966 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
3967 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
3968 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
3969 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
3970 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
3971 __builtin_ia32_vpdpbusd_v4si_maskz,
3972 __builtin_ia32_vpdpbusds_v16si_mask,
3973 __builtin_ia32_vpdpbusds_v16si_maskz,
3974 __builtin_ia32_vpdpbusds_v8si_mask,
3975 __builtin_ia32_vpdpbusds_v8si_maskz,
3976 __builtin_ia32_vpdpbusds_v4si_mask,
3977 __builtin_ia32_vpdpbusds_v4si_maskz,
3978 __builtin_ia32_vpdpwssd_v16si_mask,
3979 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
3980 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
3981 __builtin_ia32_vpdpwssd_v4si_maskz,
3982 __builtin_ia32_vpdpwssds_v16si_mask,
3983 __builtin_ia32_vpdpwssds_v16si_maskz,
3984 __builtin_ia32_vpdpwssds_v8si_mask,
3985 __builtin_ia32_vpdpwssds_v8si_maskz,
3986 __builtin_ia32_vpdpwssds_v4si_mask,
3987 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
3988 suffixed types rather than *_INT.
3989 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
3990 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
3991 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
3992 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
3993 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
3994 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
3995
3996 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
3997
3998 * tree-vrp.c (intersect_ranges): If we know the intersection is
3999 empty, there is no need to conservatively add anything else to
4000 the set.
4001
4002 2019-07-11 Richard Biener <rguenther@suse.de>
4003
4004 PR middle-end/91131
4005 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
4006 when the object is volatile and we have not cleared it even though
4007 there are no nonzero elements.
4008
4009 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
4010
4011 * config/rs6000/predicates.md (cint34_operand): Update
4012 SIGNED_34BIT_OFFSET_P call.
4013 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
4014 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
4015 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
4016 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
4017 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
4018 argument.
4019 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
4020 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
4021 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
4022 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
4023 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
4024
4025 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
4026
4027 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
4028 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
4029 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
4030 (DEF_MIN_OSX_VERSION): New.
4031
4032 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
4033
4034 * fold-const.c (fold_relational_const): Fix folding of
4035 vector-to-scalar NE_EXPRs.
4036 (test_vector_folding): Add more tests.
4037
4038 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
4039
4040 PR target/91060
4041 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
4042 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
4043 (vec_setv2di_internal): Reexpress as...
4044 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
4045 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
4046 rather than gen_neon_vset_lane<mode>.
4047
4048 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
4049
4050 PR target/91102
4051 * lra-constraints.c (process_alt_operands): Don't match user
4052 defined regs only if they are early clobbers.
4053
4054 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
4055
4056 * wide-int.h (wi::lshift): Reject negative values for the fast path.
4057
4058 2019-07-10 Richard Biener <rguenther@suse.de>
4059
4060 PR tree-optimization/91126
4061 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
4062 native encoding offset for BYTES_BIG_ENDIAN.
4063 (vn_reference_lookup_3): Likewise.
4064
4065 2019-07-10 Richard Biener <rguenther@suse.de>
4066
4067 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
4068 LHS whenever possible.
4069
4070 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
4071
4072 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
4073 from ...; work also on duplicated types.
4074 (nonoverlapping_component_refs_since_match): ... here
4075 (ncr_type_uid): Break out from ...
4076 (ncr_compar): ... here; look for TYPE_UID of canonical type if
4077 available.
4078 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
4079 the types and nonoverlapping_component_refs_p_1 to disambiguate.
4080
4081 2019-07-09 Martin Sebor <msebor@redhat.com>
4082
4083 PR tree-optimization/90989
4084 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
4085 optimization to just single character stores.
4086
4087 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
4088
4089 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
4090 Swap operands only once.
4091
4092 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
4093
4094 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
4095 for both call instructions.
4096
4097 2019-07-09 John Darrington <john@darrington.wattle.id.au>
4098
4099 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
4100 rather than GET_MODE_BITSIZE to better handle partial integer modes.
4101
4102 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
4103
4104 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
4105 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
4106 function from rs6000-logue.c back to rs6000.c.
4107 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
4108
4109 2019-07-09 Martin Sebor <msebor@redhat.com>
4110
4111 PR c++/61339
4112 * auto-profile.c: Change class-key of PODs to struct and others
4113 to class.
4114 * basic-block.h: Same.
4115 * bitmap.c (bitmap_alloc): Same.
4116 * bitmap.h: Same.
4117 * builtins.c (expand_builtin_prefetch): Same.
4118 (expand_builtin_interclass_mathfn): Same.
4119 (expand_builtin_strlen): Same.
4120 (expand_builtin_mempcpy_args): Same.
4121 (expand_cmpstr): Same.
4122 (expand_builtin___clear_cache): Same.
4123 (expand_ifn_atomic_bit_test_and): Same.
4124 (expand_builtin_thread_pointer): Same.
4125 (expand_builtin_set_thread_pointer): Same.
4126 * caller-save.c (setup_save_areas): Same.
4127 (replace_reg_with_saved_mem): Same.
4128 (insert_restore): Same.
4129 (insert_save): Same.
4130 (add_used_regs): Same.
4131 * cfg.c (get_bb_copy): Same.
4132 (set_loop_copy): Same.
4133 * cfg.h: Same.
4134 * cfganal.h: Same.
4135 * cfgexpand.c (alloc_stack_frame_space): Same.
4136 (add_stack_var): Same.
4137 (add_stack_var_conflict): Same.
4138 (add_scope_conflicts_1): Same.
4139 (update_alias_info_with_stack_vars): Same.
4140 (expand_used_vars): Same.
4141 * cfghooks.c (redirect_edge_and_branch_force): Same.
4142 (delete_basic_block): Same.
4143 (split_edge): Same.
4144 (make_forwarder_block): Same.
4145 (force_nonfallthru): Same.
4146 (duplicate_block): Same.
4147 (lv_flush_pending_stmts): Same.
4148 * cfghooks.h: Same.
4149 * cfgloop.c (flow_loops_cfg_dump): Same.
4150 (flow_loop_nested_p): Same.
4151 (superloop_at_depth): Same.
4152 (get_loop_latch_edges): Same.
4153 (flow_loop_dump): Same.
4154 (flow_loops_dump): Same.
4155 (flow_loops_free): Same.
4156 (flow_loop_nodes_find): Same.
4157 (establish_preds): Same.
4158 (flow_loop_tree_node_add): Same.
4159 (flow_loop_tree_node_remove): Same.
4160 (flow_loops_find): Same.
4161 (find_subloop_latch_edge_by_profile): Same.
4162 (find_subloop_latch_edge_by_ivs): Same.
4163 (mfb_redirect_edges_in_set): Same.
4164 (form_subloop): Same.
4165 (merge_latch_edges): Same.
4166 (disambiguate_multiple_latches): Same.
4167 (disambiguate_loops_with_multiple_latches): Same.
4168 (flow_bb_inside_loop_p): Same.
4169 (glb_enum_p): Same.
4170 (get_loop_body_with_size): Same.
4171 (get_loop_body): Same.
4172 (fill_sons_in_loop): Same.
4173 (get_loop_body_in_dom_order): Same.
4174 (get_loop_body_in_custom_order): Same.
4175 (release_recorded_exits): Same.
4176 (get_loop_exit_edges): Same.
4177 (num_loop_branches): Same.
4178 (remove_bb_from_loops): Same.
4179 (find_common_loop): Same.
4180 (delete_loop): Same.
4181 (cancel_loop): Same.
4182 (verify_loop_structure): Same.
4183 (loop_preheader_edge): Same.
4184 (loop_exit_edge_p): Same.
4185 (single_exit): Same.
4186 (loop_exits_to_bb_p): Same.
4187 (loop_exits_from_bb_p): Same.
4188 (get_loop_location): Same.
4189 (record_niter_bound): Same.
4190 (get_estimated_loop_iterations_int): Same.
4191 (max_stmt_executions_int): Same.
4192 (likely_max_stmt_executions_int): Same.
4193 (get_estimated_loop_iterations): Same.
4194 (get_max_loop_iterations): Same.
4195 (get_max_loop_iterations_int): Same.
4196 (get_likely_max_loop_iterations): Same.
4197 * cfgloop.h (simple_loop_desc): Same.
4198 (get_loop): Same.
4199 (loop_depth): Same.
4200 (loop_outer): Same.
4201 (loop_iterator::next): Same.
4202 (loop_outermost): Same.
4203 * cfgloopanal.c (mark_irreducible_loops): Same.
4204 (num_loop_insns): Same.
4205 (average_num_loop_insns): Same.
4206 (expected_loop_iterations_unbounded): Same.
4207 (expected_loop_iterations): Same.
4208 (mark_loop_exit_edges): Same.
4209 (single_likely_exit): Same.
4210 * cfgloopmanip.c (fix_bb_placement): Same.
4211 (fix_bb_placements): Same.
4212 (remove_path): Same.
4213 (place_new_loop): Same.
4214 (add_loop): Same.
4215 (scale_loop_frequencies): Same.
4216 (scale_loop_profile): Same.
4217 (create_empty_if_region_on_edge): Same.
4218 (create_empty_loop_on_edge): Same.
4219 (loopify): Same.
4220 (unloop): Same.
4221 (fix_loop_placements): Same.
4222 (copy_loop_info): Same.
4223 (duplicate_loop): Same.
4224 (duplicate_subloops): Same.
4225 (loop_redirect_edge): Same.
4226 (can_duplicate_loop_p): Same.
4227 (duplicate_loop_to_header_edge): Same.
4228 (mfb_keep_just): Same.
4229 (has_preds_from_loop): Same.
4230 (create_preheader): Same.
4231 (create_preheaders): Same.
4232 (lv_adjust_loop_entry_edge): Same.
4233 (loop_version): Same.
4234 * cfgloopmanip.h: Same.
4235 * cgraph.h: Same.
4236 * cgraphbuild.c: Same.
4237 * combine.c (make_extraction): Same.
4238 * config/i386/i386-features.c: Same.
4239 * config/i386/i386-features.h: Same.
4240 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
4241 (ix86_emit_outlined_ms2sysv_restore): Same.
4242 (ix86_noce_conversion_profitable_p): Same.
4243 (ix86_init_cost): Same.
4244 (ix86_simd_clone_usable): Same.
4245 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
4246 Wstruct-not-pod.
4247 * coretypes.h: Same.
4248 * data-streamer-in.c (string_for_index): Change class-key of PODs
4249 to struct and others to class.
4250 (streamer_read_indexed_string): Same.
4251 (streamer_read_string): Same.
4252 (bp_unpack_indexed_string): Same.
4253 (bp_unpack_string): Same.
4254 (streamer_read_uhwi): Same.
4255 (streamer_read_hwi): Same.
4256 (streamer_read_gcov_count): Same.
4257 (streamer_read_wide_int): Same.
4258 * data-streamer.h (streamer_write_bitpack): Same.
4259 (bp_unpack_value): Same.
4260 (streamer_write_char_stream): Same.
4261 (streamer_write_hwi_in_range): Same.
4262 (streamer_write_record_start): Same.
4263 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
4264 (add_cross_iteration_register_deps): Same.
4265 (build_intra_loop_deps): Same.
4266 * df-core.c (df_analyze): Same.
4267 (loop_post_order_compute): Same.
4268 (loop_inverted_post_order_compute): Same.
4269 * df-problems.c (df_rd_alloc): Same.
4270 (df_rd_simulate_one_insn): Same.
4271 (df_rd_local_compute): Same.
4272 (df_rd_init_solution): Same.
4273 (df_rd_confluence_n): Same.
4274 (df_rd_transfer_function): Same.
4275 (df_rd_free): Same.
4276 (df_rd_dump_defs_set): Same.
4277 (df_rd_top_dump): Same.
4278 (df_lr_alloc): Same.
4279 (df_lr_reset): Same.
4280 (df_lr_local_compute): Same.
4281 (df_lr_init): Same.
4282 (df_lr_confluence_n): Same.
4283 (df_lr_free): Same.
4284 (df_lr_top_dump): Same.
4285 (df_lr_verify_transfer_functions): Same.
4286 (df_live_alloc): Same.
4287 (df_live_reset): Same.
4288 (df_live_init): Same.
4289 (df_live_confluence_n): Same.
4290 (df_live_finalize): Same.
4291 (df_live_free): Same.
4292 (df_live_top_dump): Same.
4293 (df_live_verify_transfer_functions): Same.
4294 (df_mir_alloc): Same.
4295 (df_mir_reset): Same.
4296 (df_mir_init): Same.
4297 (df_mir_confluence_n): Same.
4298 (df_mir_free): Same.
4299 (df_mir_top_dump): Same.
4300 (df_word_lr_alloc): Same.
4301 (df_word_lr_reset): Same.
4302 (df_word_lr_init): Same.
4303 (df_word_lr_confluence_n): Same.
4304 (df_word_lr_free): Same.
4305 (df_word_lr_top_dump): Same.
4306 (df_md_alloc): Same.
4307 (df_md_simulate_one_insn): Same.
4308 (df_md_reset): Same.
4309 (df_md_init): Same.
4310 (df_md_free): Same.
4311 (df_md_top_dump): Same.
4312 * df-scan.c (df_insn_delete): Same.
4313 (df_insn_rescan): Same.
4314 (df_notes_rescan): Same.
4315 (df_sort_and_compress_mws): Same.
4316 (df_install_mws): Same.
4317 (df_refs_add_to_chains): Same.
4318 (df_ref_create_structure): Same.
4319 (df_ref_record): Same.
4320 (df_def_record_1): Same.
4321 (df_find_hard_reg_defs): Same.
4322 (df_uses_record): Same.
4323 (df_get_conditional_uses): Same.
4324 (df_get_call_refs): Same.
4325 (df_recompute_luids): Same.
4326 (df_get_entry_block_def_set): Same.
4327 (df_entry_block_defs_collect): Same.
4328 (df_get_exit_block_use_set): Same.
4329 (df_exit_block_uses_collect): Same.
4330 (df_mws_verify): Same.
4331 (df_bb_verify): Same.
4332 * df.h (df_scan_get_bb_info): Same.
4333 * doc/tm.texi: Same.
4334 * dse.c (record_store): Same.
4335 * dumpfile.h: Same.
4336 * emit-rtl.c (const_fixed_hasher::equal): Same.
4337 (set_mem_attributes_minus_bitpos): Same.
4338 (change_address): Same.
4339 (adjust_address_1): Same.
4340 (offset_address): Same.
4341 * emit-rtl.h: Same.
4342 * except.c (dw2_build_landing_pads): Same.
4343 (sjlj_emit_dispatch_table): Same.
4344 * explow.c (allocate_dynamic_stack_space): Same.
4345 (emit_stack_probe): Same.
4346 (probe_stack_range): Same.
4347 * expmed.c (store_bit_field_using_insv): Same.
4348 (store_bit_field_1): Same.
4349 (store_integral_bit_field): Same.
4350 (extract_bit_field_using_extv): Same.
4351 (extract_bit_field_1): Same.
4352 (emit_cstore): Same.
4353 * expr.c (emit_block_move_via_cpymem): Same.
4354 (expand_cmpstrn_or_cmpmem): Same.
4355 (set_storage_via_setmem): Same.
4356 (emit_single_push_insn_1): Same.
4357 (expand_assignment): Same.
4358 (store_constructor): Same.
4359 (expand_expr_real_2): Same.
4360 (expand_expr_real_1): Same.
4361 (try_casesi): Same.
4362 * flags.h: Same.
4363 * function.c (try_fit_stack_local): Same.
4364 (assign_stack_local_1): Same.
4365 (assign_stack_local): Same.
4366 (cut_slot_from_list): Same.
4367 (insert_slot_to_list): Same.
4368 (max_slot_level): Same.
4369 (move_slot_to_level): Same.
4370 (temp_address_hasher::equal): Same.
4371 (remove_unused_temp_slot_addresses): Same.
4372 (assign_temp): Same.
4373 (combine_temp_slots): Same.
4374 (update_temp_slot_address): Same.
4375 (preserve_temp_slots): Same.
4376 * function.h: Same.
4377 * fwprop.c: Same.
4378 * gcc-rich-location.h: Same.
4379 * gcov.c: Same.
4380 * genattrtab.c (check_attr_test): Same.
4381 (check_attr_value): Same.
4382 (convert_set_attr_alternative): Same.
4383 (convert_set_attr): Same.
4384 (check_defs): Same.
4385 (copy_boolean): Same.
4386 (get_attr_value): Same.
4387 (expand_delays): Same.
4388 (make_length_attrs): Same.
4389 (min_fn): Same.
4390 (make_alternative_compare): Same.
4391 (simplify_test_exp): Same.
4392 (tests_attr_p): Same.
4393 (get_attr_order): Same.
4394 (clear_struct_flag): Same.
4395 (gen_attr): Same.
4396 (compares_alternatives_p): Same.
4397 (gen_insn): Same.
4398 (gen_delay): Same.
4399 (find_attrs_to_cache): Same.
4400 (write_test_expr): Same.
4401 (walk_attr_value): Same.
4402 (write_attr_get): Same.
4403 (eliminate_known_true): Same.
4404 (write_insn_cases): Same.
4405 (write_attr_case): Same.
4406 (write_attr_valueq): Same.
4407 (write_attr_value): Same.
4408 (write_dummy_eligible_delay): Same.
4409 (next_comma_elt): Same.
4410 (find_attr): Same.
4411 (make_internal_attr): Same.
4412 (copy_rtx_unchanging): Same.
4413 (gen_insn_reserv): Same.
4414 (check_tune_attr): Same.
4415 (make_automaton_attrs): Same.
4416 (handle_arg): Same.
4417 * genextract.c (gen_insn): Same.
4418 (VEC_char_to_string): Same.
4419 * genmatch.c (print_operand): Same.
4420 (lower): Same.
4421 (parser::parse_operation): Same.
4422 (parser::parse_capture): Same.
4423 (parser::parse_c_expr): Same.
4424 (parser::parse_simplify): Same.
4425 (main): Same.
4426 * genoutput.c (output_operand_data): Same.
4427 (output_get_insn_name): Same.
4428 (compare_operands): Same.
4429 (place_operands): Same.
4430 (process_template): Same.
4431 (validate_insn_alternatives): Same.
4432 (validate_insn_operands): Same.
4433 (gen_expand): Same.
4434 (note_constraint): Same.
4435 * genpreds.c (write_one_predicate_function): Same.
4436 (add_constraint): Same.
4437 (process_define_register_constraint): Same.
4438 (write_lookup_constraint_1): Same.
4439 (write_lookup_constraint_array): Same.
4440 (write_insn_constraint_len): Same.
4441 (write_reg_class_for_constraint_1): Same.
4442 (write_constraint_satisfied_p_array): Same.
4443 * genrecog.c (optimize_subroutine_group): Same.
4444 * gensupport.c (process_define_predicate): Same.
4445 (queue_pattern): Same.
4446 (remove_from_queue): Same.
4447 (process_rtx): Same.
4448 (is_predicable): Same.
4449 (change_subst_attribute): Same.
4450 (subst_pattern_match): Same.
4451 (alter_constraints): Same.
4452 (alter_attrs_for_insn): Same.
4453 (shift_output_template): Same.
4454 (alter_output_for_subst_insn): Same.
4455 (process_one_cond_exec): Same.
4456 (subst_dup): Same.
4457 (process_define_cond_exec): Same.
4458 (mnemonic_htab_callback): Same.
4459 (gen_mnemonic_attr): Same.
4460 (read_md_rtx): Same.
4461 * ggc-page.c: Same.
4462 * gimple-loop-interchange.cc (dump_reduction): Same.
4463 (dump_induction): Same.
4464 (loop_cand::~loop_cand): Same.
4465 (free_data_refs_with_aux): Same.
4466 (tree_loop_interchange::interchange_loops): Same.
4467 (tree_loop_interchange::map_inductions_to_loop): Same.
4468 (tree_loop_interchange::move_code_to_inner_loop): Same.
4469 (compute_access_stride): Same.
4470 (compute_access_strides): Same.
4471 (proper_loop_form_for_interchange): Same.
4472 (tree_loop_interchange_compute_ddrs): Same.
4473 (prune_datarefs_not_in_loop): Same.
4474 (prepare_data_references): Same.
4475 (pass_linterchange::execute): Same.
4476 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
4477 (unroll_jam_possible_p): Same.
4478 (fuse_loops): Same.
4479 (adjust_unroll_factor): Same.
4480 (tree_loop_unroll_and_jam): Same.
4481 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
4482 (loop_versioning::expensive_stmt_p): Same.
4483 (loop_versioning::version_for_unity): Same.
4484 (loop_versioning::dump_inner_likelihood): Same.
4485 (loop_versioning::find_per_loop_multiplication): Same.
4486 (loop_versioning::analyze_term_using_scevs): Same.
4487 (loop_versioning::record_address_fragment): Same.
4488 (loop_versioning::analyze_expr): Same.
4489 (loop_versioning::analyze_blocks): Same.
4490 (loop_versioning::prune_conditions): Same.
4491 (loop_versioning::merge_loop_info): Same.
4492 (loop_versioning::add_loop_to_queue): Same.
4493 (loop_versioning::decide_whether_loop_is_versionable): Same.
4494 (loop_versioning::make_versioning_decisions): Same.
4495 (loop_versioning::implement_versioning_decisions): Same.
4496 * gimple-ssa-evrp-analyze.c
4497 (evrp_range_analyzer::record_ranges_from_phis): Same.
4498 * gimple-ssa-store-merging.c (split_store::split_store): Same.
4499 (count_multiple_uses): Same.
4500 (split_group): Same.
4501 (imm_store_chain_info::output_merged_store): Same.
4502 (pass_store_merging::process_store): Same.
4503 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
4504 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
4505 (is_max): Same.
4506 (alloca_call_type): Same.
4507 (pass_walloca::execute): Same.
4508 * gimple-streamer-in.c (input_phi): Same.
4509 (input_gimple_stmt): Same.
4510 * gimple-streamer.h: Same.
4511 * godump.c (go_force_record_alignment): Same.
4512 (go_format_type): Same.
4513 (go_output_type): Same.
4514 (go_output_fndecl): Same.
4515 (go_output_typedef): Same.
4516 (keyword_hash_init): Same.
4517 (find_dummy_types): Same.
4518 * graph.c (draw_cfg_nodes_no_loops): Same.
4519 (draw_cfg_nodes_for_loop): Same.
4520 * hard-reg-set.h (hard_reg_set_iter_next): Same.
4521 * hsa-brig.c: Same.
4522 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
4523 * hsa-dump.c (dump_hsa_cfun): Same.
4524 * hsa-gen.c (gen_function_def_parameters): Same.
4525 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
4526 * input.c (dump_line_table_statistics): Same.
4527 (test_lexer): Same.
4528 * input.h: Same.
4529 * internal-fn.c (get_multi_vector_move): Same.
4530 (expand_load_lanes_optab_fn): Same.
4531 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
4532 (expand_GOMP_SIMT_EXIT): Same.
4533 (expand_GOMP_SIMT_LAST_LANE): Same.
4534 (expand_GOMP_SIMT_ORDERED_PRED): Same.
4535 (expand_GOMP_SIMT_VOTE_ANY): Same.
4536 (expand_GOMP_SIMT_XCHG_BFLY): Same.
4537 (expand_GOMP_SIMT_XCHG_IDX): Same.
4538 (expand_addsub_overflow): Same.
4539 (expand_neg_overflow): Same.
4540 (expand_mul_overflow): Same.
4541 (expand_call_mem_ref): Same.
4542 (expand_mask_load_optab_fn): Same.
4543 (expand_scatter_store_optab_fn): Same.
4544 (expand_gather_load_optab_fn): Same.
4545 * ipa-cp.c (ipa_get_parm_lattices): Same.
4546 (print_all_lattices): Same.
4547 (ignore_edge_p): Same.
4548 (build_toporder_info): Same.
4549 (free_toporder_info): Same.
4550 (push_node_to_stack): Same.
4551 (ipcp_lattice<valtype>::set_contains_variable): Same.
4552 (set_agg_lats_to_bottom): Same.
4553 (ipcp_bits_lattice::meet_with): Same.
4554 (set_single_call_flag): Same.
4555 (initialize_node_lattices): Same.
4556 (ipa_get_jf_ancestor_result): Same.
4557 (ipcp_verify_propagated_values): Same.
4558 (propagate_scalar_across_jump_function): Same.
4559 (propagate_context_across_jump_function): Same.
4560 (propagate_bits_across_jump_function): Same.
4561 (ipa_vr_operation_and_type_effects): Same.
4562 (propagate_vr_across_jump_function): Same.
4563 (set_check_aggs_by_ref): Same.
4564 (set_chain_of_aglats_contains_variable): Same.
4565 (merge_aggregate_lattices): Same.
4566 (agg_pass_through_permissible_p): Same.
4567 (propagate_aggs_across_jump_function): Same.
4568 (call_passes_through_thunk_p): Same.
4569 (propagate_constants_across_call): Same.
4570 (devirtualization_time_bonus): Same.
4571 (good_cloning_opportunity_p): Same.
4572 (context_independent_aggregate_values): Same.
4573 (gather_context_independent_values): Same.
4574 (perform_estimation_of_a_value): Same.
4575 (estimate_local_effects): Same.
4576 (value_topo_info<valtype>::add_val): Same.
4577 (add_all_node_vals_to_toposort): Same.
4578 (value_topo_info<valtype>::propagate_effects): Same.
4579 (ipcp_propagate_stage): Same.
4580 (ipcp_discover_new_direct_edges): Same.
4581 (same_node_or_its_all_contexts_clone_p): Same.
4582 (cgraph_edge_brings_value_p): Same.
4583 (gather_edges_for_value): Same.
4584 (create_specialized_node): Same.
4585 (find_more_scalar_values_for_callers_subset): Same.
4586 (find_more_contexts_for_caller_subset): Same.
4587 (copy_plats_to_inter): Same.
4588 (intersect_aggregates_with_edge): Same.
4589 (find_aggregate_values_for_callers_subset): Same.
4590 (cgraph_edge_brings_all_agg_vals_for_node): Same.
4591 (decide_about_value): Same.
4592 (decide_whether_version_node): Same.
4593 (spread_undeadness): Same.
4594 (identify_dead_nodes): Same.
4595 (ipcp_store_vr_results): Same.
4596 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
4597 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
4598 (redirect_to_unreachable): Same.
4599 (edge_set_predicate): Same.
4600 (evaluate_conditions_for_known_args): Same.
4601 (evaluate_properties_for_edge): Same.
4602 (ipa_fn_summary_t::duplicate): Same.
4603 (ipa_call_summary_t::duplicate): Same.
4604 (dump_ipa_call_summary): Same.
4605 (ipa_dump_fn_summary): Same.
4606 (eliminated_by_inlining_prob): Same.
4607 (set_cond_stmt_execution_predicate): Same.
4608 (set_switch_stmt_execution_predicate): Same.
4609 (compute_bb_predicates): Same.
4610 (will_be_nonconstant_expr_predicate): Same.
4611 (phi_result_unknown_predicate): Same.
4612 (analyze_function_body): Same.
4613 (compute_fn_summary): Same.
4614 (estimate_edge_devirt_benefit): Same.
4615 (estimate_edge_size_and_time): Same.
4616 (estimate_calls_size_and_time): Same.
4617 (estimate_node_size_and_time): Same.
4618 (remap_edge_change_prob): Same.
4619 (remap_edge_summaries): Same.
4620 (ipa_merge_fn_summary_after_inlining): Same.
4621 (ipa_fn_summary_generate): Same.
4622 (inline_read_section): Same.
4623 (ipa_fn_summary_read): Same.
4624 (ipa_fn_summary_write): Same.
4625 * ipa-fnsummary.h: Same.
4626 * ipa-hsa.c (ipa_hsa_read_section): Same.
4627 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
4628 * ipa-icf.c (sem_function::param_used_p): Same.
4629 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
4630 * ipa-inline.c (edge_badness): Same.
4631 (inline_small_functions): Same.
4632 * ipa-polymorphic-call.c
4633 (ipa_polymorphic_call_context::stream_out): Same.
4634 * ipa-predicate.c (predicate::remap_after_duplication): Same.
4635 (predicate::remap_after_inlining): Same.
4636 (predicate::stream_out): Same.
4637 * ipa-predicate.h: Same.
4638 * ipa-profile.c (ipa_profile_read_summary): Same.
4639 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
4640 (count_formal_params): Same.
4641 (ipa_dump_param): Same.
4642 (ipa_alloc_node_params): Same.
4643 (ipa_print_node_jump_functions_for_edge): Same.
4644 (ipa_print_node_jump_functions): Same.
4645 (ipa_load_from_parm_agg): Same.
4646 (get_ancestor_addr_info): Same.
4647 (ipa_compute_jump_functions_for_edge): Same.
4648 (ipa_analyze_virtual_call_uses): Same.
4649 (ipa_analyze_stmt_uses): Same.
4650 (ipa_analyze_params_uses_in_bb): Same.
4651 (update_jump_functions_after_inlining): Same.
4652 (try_decrement_rdesc_refcount): Same.
4653 (ipa_impossible_devirt_target): Same.
4654 (update_indirect_edges_after_inlining): Same.
4655 (combine_controlled_uses_counters): Same.
4656 (ipa_edge_args_sum_t::duplicate): Same.
4657 (ipa_write_jump_function): Same.
4658 (ipa_write_indirect_edge_info): Same.
4659 (ipa_write_node_info): Same.
4660 (ipa_read_edge_info): Same.
4661 (ipa_prop_read_section): Same.
4662 (read_replacements_section): Same.
4663 * ipa-prop.h (ipa_get_param_count): Same.
4664 (ipa_get_param): Same.
4665 (ipa_get_type): Same.
4666 (ipa_get_param_move_cost): Same.
4667 (ipa_set_param_used): Same.
4668 (ipa_get_controlled_uses): Same.
4669 (ipa_set_controlled_uses): Same.
4670 (ipa_get_cs_argument_count): Same.
4671 * ipa-pure-const.c (analyze_function): Same.
4672 (pure_const_read_summary): Same.
4673 * ipa-ref.h: Same.
4674 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
4675 * ipa-split.c (test_nonssa_use): Same.
4676 (dump_split_point): Same.
4677 (dominated_by_forbidden): Same.
4678 (split_part_set_ssa_name_p): Same.
4679 (find_split_points): Same.
4680 * ira-build.c (finish_loop_tree_nodes): Same.
4681 (low_pressure_loop_node_p): Same.
4682 * ira-color.c (ira_reuse_stack_slot): Same.
4683 * ira-int.h: Same.
4684 * ira.c (setup_reg_equiv): Same.
4685 (print_insn_chain): Same.
4686 (ira): Same.
4687 * loop-doloop.c (doloop_condition_get): Same.
4688 (add_test): Same.
4689 (record_reg_sets): Same.
4690 (doloop_optimize): Same.
4691 * loop-init.c (loop_optimizer_init): Same.
4692 (fix_loop_structure): Same.
4693 * loop-invariant.c (merge_identical_invariants): Same.
4694 (compute_always_reached): Same.
4695 (find_exits): Same.
4696 (may_assign_reg_p): Same.
4697 (find_invariants_bb): Same.
4698 (find_invariants_body): Same.
4699 (replace_uses): Same.
4700 (can_move_invariant_reg): Same.
4701 (free_inv_motion_data): Same.
4702 (move_single_loop_invariants): Same.
4703 (change_pressure): Same.
4704 (mark_ref_regs): Same.
4705 (calculate_loop_reg_pressure): Same.
4706 * loop-iv.c (biv_entry_hasher::equal): Same.
4707 (iv_extend_to_rtx_code): Same.
4708 (check_iv_ref_table_size): Same.
4709 (clear_iv_info): Same.
4710 (latch_dominating_def): Same.
4711 (iv_get_reaching_def): Same.
4712 (iv_constant): Same.
4713 (iv_subreg): Same.
4714 (iv_extend): Same.
4715 (iv_neg): Same.
4716 (iv_add): Same.
4717 (iv_mult): Same.
4718 (get_biv_step): Same.
4719 (record_iv): Same.
4720 (analyzed_for_bivness_p): Same.
4721 (record_biv): Same.
4722 (iv_analyze_biv): Same.
4723 (iv_analyze_expr): Same.
4724 (iv_analyze_def): Same.
4725 (iv_analyze_op): Same.
4726 (iv_analyze): Same.
4727 (iv_analyze_result): Same.
4728 (biv_p): Same.
4729 (eliminate_implied_conditions): Same.
4730 (simplify_using_initial_values): Same.
4731 (shorten_into_mode): Same.
4732 (canonicalize_iv_subregs): Same.
4733 (determine_max_iter): Same.
4734 (check_simple_exit): Same.
4735 (find_simple_exit): Same.
4736 (get_simple_loop_desc): Same.
4737 * loop-unroll.c (report_unroll): Same.
4738 (decide_unrolling): Same.
4739 (unroll_loops): Same.
4740 (loop_exit_at_end_p): Same.
4741 (decide_unroll_constant_iterations): Same.
4742 (unroll_loop_constant_iterations): Same.
4743 (compare_and_jump_seq): Same.
4744 (unroll_loop_runtime_iterations): Same.
4745 (decide_unroll_stupid): Same.
4746 (unroll_loop_stupid): Same.
4747 (referenced_in_one_insn_in_loop_p): Same.
4748 (reset_debug_uses_in_loop): Same.
4749 (analyze_iv_to_split_insn): Same.
4750 * lra-eliminations.c (lra_debug_elim_table): Same.
4751 (setup_can_eliminate): Same.
4752 (form_sum): Same.
4753 (lra_get_elimination_hard_regno): Same.
4754 (lra_eliminate_regs_1): Same.
4755 (eliminate_regs_in_insn): Same.
4756 (update_reg_eliminate): Same.
4757 (init_elimination): Same.
4758 (lra_eliminate): Same.
4759 * lra-int.h: Same.
4760 * lra-lives.c (initiate_live_solver): Same.
4761 * lra-remat.c (create_remat_bb_data): Same.
4762 * lra-spills.c (lra_spill): Same.
4763 * lra.c (lra_set_insn_recog_data): Same.
4764 (lra_set_used_insn_alternative_by_uid): Same.
4765 (init_reg_info): Same.
4766 (expand_reg_info): Same.
4767 * lto-cgraph.c (output_symtab): Same.
4768 (read_identifier): Same.
4769 (get_alias_symbol): Same.
4770 (input_node): Same.
4771 (input_varpool_node): Same.
4772 (input_ref): Same.
4773 (input_edge): Same.
4774 (input_cgraph_1): Same.
4775 (input_refs): Same.
4776 (input_symtab): Same.
4777 (input_offload_tables): Same.
4778 (output_cgraph_opt_summary): Same.
4779 (input_edge_opt_summary): Same.
4780 (input_cgraph_opt_section): Same.
4781 * lto-section-in.c (lto_free_raw_section_data): Same.
4782 (lto_create_simple_input_block): Same.
4783 (lto_free_function_in_decl_state_for_node): Same.
4784 * lto-streamer-in.c (lto_tag_check_set): Same.
4785 (lto_location_cache::revert_location_cache): Same.
4786 (lto_location_cache::input_location): Same.
4787 (lto_input_location): Same.
4788 (stream_input_location_now): Same.
4789 (lto_input_tree_ref): Same.
4790 (lto_input_eh_catch_list): Same.
4791 (input_eh_region): Same.
4792 (lto_init_eh): Same.
4793 (make_new_block): Same.
4794 (input_cfg): Same.
4795 (fixup_call_stmt_edges): Same.
4796 (input_struct_function_base): Same.
4797 (input_function): Same.
4798 (lto_read_body_or_constructor): Same.
4799 (lto_read_tree_1): Same.
4800 (lto_read_tree): Same.
4801 (lto_input_scc): Same.
4802 (lto_input_tree_1): Same.
4803 (lto_input_toplevel_asms): Same.
4804 (lto_input_mode_table): Same.
4805 (lto_reader_init): Same.
4806 (lto_data_in_create): Same.
4807 * lto-streamer-out.c (output_cfg): Same.
4808 * lto-streamer.h: Same.
4809 * modulo-sched.c (duplicate_insns_of_cycles): Same.
4810 (generate_prolog_epilog): Same.
4811 (mark_loop_unsched): Same.
4812 (dump_insn_location): Same.
4813 (loop_canon_p): Same.
4814 (sms_schedule): Same.
4815 * omp-expand.c (expand_omp_for_ordered_loops): Same.
4816 (expand_omp_for_generic): Same.
4817 (expand_omp_for_static_nochunk): Same.
4818 (expand_omp_for_static_chunk): Same.
4819 (expand_omp_simd): Same.
4820 (expand_omp_taskloop_for_inner): Same.
4821 (expand_oacc_for): Same.
4822 (expand_omp_atomic_pipeline): Same.
4823 (mark_loops_in_oacc_kernels_region): Same.
4824 * omp-offload.c (oacc_xform_loop): Same.
4825 * omp-simd-clone.c (simd_clone_adjust): Same.
4826 * optabs-query.c (get_traditional_extraction_insn): Same.
4827 * optabs.c (expand_vector_broadcast): Same.
4828 (expand_binop_directly): Same.
4829 (expand_twoval_unop): Same.
4830 (expand_twoval_binop): Same.
4831 (expand_unop_direct): Same.
4832 (emit_indirect_jump): Same.
4833 (emit_conditional_move): Same.
4834 (emit_conditional_neg_or_complement): Same.
4835 (emit_conditional_add): Same.
4836 (vector_compare_rtx): Same.
4837 (expand_vec_perm_1): Same.
4838 (expand_vec_perm_const): Same.
4839 (expand_vec_cond_expr): Same.
4840 (expand_vec_series_expr): Same.
4841 (maybe_emit_atomic_exchange): Same.
4842 (maybe_emit_sync_lock_test_and_set): Same.
4843 (expand_atomic_compare_and_swap): Same.
4844 (expand_atomic_load): Same.
4845 (expand_atomic_store): Same.
4846 (maybe_emit_op): Same.
4847 (valid_multiword_target_p): Same.
4848 (create_integer_operand): Same.
4849 (maybe_legitimize_operand_same_code): Same.
4850 (maybe_legitimize_operand): Same.
4851 (create_convert_operand_from_type): Same.
4852 (can_reuse_operands_p): Same.
4853 (maybe_legitimize_operands): Same.
4854 (maybe_gen_insn): Same.
4855 (maybe_expand_insn): Same.
4856 (maybe_expand_jump_insn): Same.
4857 (expand_insn): Same.
4858 * optabs.h (create_expand_operand): Same.
4859 (create_fixed_operand): Same.
4860 (create_output_operand): Same.
4861 (create_input_operand): Same.
4862 (create_convert_operand_to): Same.
4863 (create_convert_operand_from): Same.
4864 * optinfo.h: Same.
4865 * poly-int.h: Same.
4866 * predict.c (optimize_insn_for_speed_p): Same.
4867 (optimize_loop_for_size_p): Same.
4868 (optimize_loop_for_speed_p): Same.
4869 (optimize_loop_nest_for_speed_p): Same.
4870 (get_base_value): Same.
4871 (predicted_by_loop_heuristics_p): Same.
4872 (predict_extra_loop_exits): Same.
4873 (predict_loops): Same.
4874 (predict_paths_for_bb): Same.
4875 (predict_paths_leading_to): Same.
4876 (propagate_freq): Same.
4877 (pass_profile::execute): Same.
4878 * predict.h: Same.
4879 * profile-count.c (profile_count::differs_from_p): Same.
4880 (profile_probability::differs_lot_from_p): Same.
4881 * profile-count.h: Same.
4882 * profile.c (branch_prob): Same.
4883 * regrename.c (free_chain_data): Same.
4884 (mark_conflict): Same.
4885 (create_new_chain): Same.
4886 (merge_overlapping_regs): Same.
4887 (init_rename_info): Same.
4888 (merge_chains): Same.
4889 (regrename_analyze): Same.
4890 (regrename_do_replace): Same.
4891 (scan_rtx_reg): Same.
4892 (record_out_operands): Same.
4893 (build_def_use): Same.
4894 * regrename.h: Same.
4895 * reload.h: Same.
4896 * reload1.c (init_reload): Same.
4897 (maybe_fix_stack_asms): Same.
4898 (copy_reloads): Same.
4899 (count_pseudo): Same.
4900 (count_spilled_pseudo): Same.
4901 (find_reg): Same.
4902 (find_reload_regs): Same.
4903 (select_reload_regs): Same.
4904 (spill_hard_reg): Same.
4905 (fixup_eh_region_note): Same.
4906 (set_reload_reg): Same.
4907 (allocate_reload_reg): Same.
4908 (compute_reload_subreg_offset): Same.
4909 (reload_adjust_reg_for_icode): Same.
4910 (emit_input_reload_insns): Same.
4911 (emit_output_reload_insns): Same.
4912 (do_input_reload): Same.
4913 (inherit_piecemeal_p): Same.
4914 * rtl.h: Same.
4915 * sanopt.c (maybe_get_dominating_check): Same.
4916 (maybe_optimize_ubsan_ptr_ifn): Same.
4917 (can_remove_asan_check): Same.
4918 (maybe_optimize_asan_check_ifn): Same.
4919 (sanopt_optimize_walker): Same.
4920 * sched-deps.c (add_dependence_list): Same.
4921 (chain_to_prev_insn): Same.
4922 (add_insn_mem_dependence): Same.
4923 (create_insn_reg_set): Same.
4924 (maybe_extend_reg_info_p): Same.
4925 (sched_analyze_reg): Same.
4926 (sched_analyze_1): Same.
4927 (get_implicit_reg_pending_clobbers): Same.
4928 (chain_to_prev_insn_p): Same.
4929 (deps_analyze_insn): Same.
4930 (deps_start_bb): Same.
4931 (sched_free_deps): Same.
4932 (init_deps): Same.
4933 (init_deps_reg_last): Same.
4934 (free_deps): Same.
4935 * sched-ebb.c: Same.
4936 * sched-int.h: Same.
4937 * sched-rgn.c (add_branch_dependences): Same.
4938 (concat_insn_mem_list): Same.
4939 (deps_join): Same.
4940 (sched_rgn_compute_dependencies): Same.
4941 * sel-sched-ir.c (reset_target_context): Same.
4942 (copy_deps_context): Same.
4943 (init_id_from_df): Same.
4944 (has_dependence_p): Same.
4945 (change_loops_latches): Same.
4946 (bb_top_order_comparator): Same.
4947 (make_region_from_loop_preheader): Same.
4948 (sel_init_pipelining): Same.
4949 (get_loop_nest_for_rgn): Same.
4950 (make_regions_from_the_rest): Same.
4951 (sel_is_loop_preheader_p): Same.
4952 * sel-sched-ir.h (inner_loop_header_p): Same.
4953 (get_all_loop_exits): Same.
4954 * selftest.h: Same.
4955 * sese.c (sese_build_liveouts): Same.
4956 (sese_insert_phis_for_liveouts): Same.
4957 * sese.h (defined_in_sese_p): Same.
4958 * sreal.c (sreal::stream_out): Same.
4959 * sreal.h: Same.
4960 * streamer-hooks.h: Same.
4961 * target-globals.c (save_target_globals): Same.
4962 * target-globals.h: Same.
4963 * target.def: Same.
4964 * target.h: Same.
4965 * targhooks.c (default_has_ifunc_p): Same.
4966 (default_empty_mask_is_expensive): Same.
4967 (default_init_cost): Same.
4968 * targhooks.h: Same.
4969 * toplev.c: Same.
4970 * tree-affine.c (aff_combination_mult): Same.
4971 (aff_combination_expand): Same.
4972 (aff_combination_constant_multiple_p): Same.
4973 * tree-affine.h: Same.
4974 * tree-cfg.c (build_gimple_cfg): Same.
4975 (replace_loop_annotate_in_block): Same.
4976 (replace_uses_by): Same.
4977 (remove_bb): Same.
4978 (dump_cfg_stats): Same.
4979 (gimple_duplicate_sese_region): Same.
4980 (gimple_duplicate_sese_tail): Same.
4981 (move_block_to_fn): Same.
4982 (replace_block_vars_by_duplicates): Same.
4983 (move_sese_region_to_fn): Same.
4984 (print_loops_bb): Same.
4985 (print_loop): Same.
4986 (print_loops): Same.
4987 (debug): Same.
4988 (debug_loops): Same.
4989 * tree-cfg.h: Same.
4990 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
4991 (chrec_fold_multiply_poly_poly): Same.
4992 (chrec_evaluate): Same.
4993 (chrec_component_in_loop_num): Same.
4994 (reset_evolution_in_loop): Same.
4995 (is_multivariate_chrec): Same.
4996 (chrec_contains_symbols): Same.
4997 (nb_vars_in_chrec): Same.
4998 (chrec_convert_1): Same.
4999 (chrec_convert_aggressive): Same.
5000 * tree-chrec.h: Same.
5001 * tree-core.h: Same.
5002 * tree-data-ref.c (dump_data_dependence_relation): Same.
5003 (canonicalize_base_object_address): Same.
5004 (data_ref_compare_tree): Same.
5005 (prune_runtime_alias_test_list): Same.
5006 (get_segment_min_max): Same.
5007 (create_intersect_range_checks): Same.
5008 (conflict_fn_no_dependence): Same.
5009 (object_address_invariant_in_loop_p): Same.
5010 (analyze_ziv_subscript): Same.
5011 (analyze_siv_subscript_cst_affine): Same.
5012 (analyze_miv_subscript): Same.
5013 (analyze_overlapping_iterations): Same.
5014 (build_classic_dist_vector_1): Same.
5015 (add_other_self_distances): Same.
5016 (same_access_functions): Same.
5017 (build_classic_dir_vector): Same.
5018 (subscript_dependence_tester_1): Same.
5019 (subscript_dependence_tester): Same.
5020 (access_functions_are_affine_or_constant_p): Same.
5021 (get_references_in_stmt): Same.
5022 (loop_nest_has_data_refs): Same.
5023 (graphite_find_data_references_in_stmt): Same.
5024 (find_data_references_in_bb): Same.
5025 (get_base_for_alignment): Same.
5026 (find_loop_nest_1): Same.
5027 (find_loop_nest): Same.
5028 * tree-data-ref.h (dr_alignment): Same.
5029 (ddr_dependence_level): Same.
5030 * tree-if-conv.c (fold_build_cond_expr): Same.
5031 (add_to_predicate_list): Same.
5032 (add_to_dst_predicate_list): Same.
5033 (phi_convertible_by_degenerating_args): Same.
5034 (idx_within_array_bound): Same.
5035 (all_preds_critical_p): Same.
5036 (pred_blocks_visited_p): Same.
5037 (predicate_bbs): Same.
5038 (build_region): Same.
5039 (if_convertible_loop_p_1): Same.
5040 (is_cond_scalar_reduction): Same.
5041 (predicate_scalar_phi): Same.
5042 (remove_conditions_and_labels): Same.
5043 (combine_blocks): Same.
5044 (version_loop_for_if_conversion): Same.
5045 (versionable_outer_loop_p): Same.
5046 (ifcvt_local_dce): Same.
5047 (tree_if_conversion): Same.
5048 (pass_if_conversion::gate): Same.
5049 * tree-if-conv.h: Same.
5050 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
5051 * tree-loop-distribution.c (bb_top_order_cmp): Same.
5052 (free_rdg): Same.
5053 (stmt_has_scalar_dependences_outside_loop): Same.
5054 (copy_loop_before): Same.
5055 (create_bb_after_loop): Same.
5056 (const_with_all_bytes_same): Same.
5057 (generate_memset_builtin): Same.
5058 (generate_memcpy_builtin): Same.
5059 (destroy_loop): Same.
5060 (build_rdg_partition_for_vertex): Same.
5061 (compute_access_range): Same.
5062 (data_ref_segment_size): Same.
5063 (latch_dominated_by_data_ref): Same.
5064 (compute_alias_check_pairs): Same.
5065 (fuse_memset_builtins): Same.
5066 (finalize_partitions): Same.
5067 (find_seed_stmts_for_distribution): Same.
5068 (prepare_perfect_loop_nest): Same.
5069 * tree-parloops.c (lambda_transform_legal_p): Same.
5070 (loop_parallel_p): Same.
5071 (reduc_stmt_res): Same.
5072 (add_field_for_name): Same.
5073 (create_call_for_reduction_1): Same.
5074 (replace_uses_in_bb_by): Same.
5075 (transform_to_exit_first_loop_alt): Same.
5076 (try_transform_to_exit_first_loop_alt): Same.
5077 (transform_to_exit_first_loop): Same.
5078 (num_phis): Same.
5079 (gen_parallel_loop): Same.
5080 (gather_scalar_reductions): Same.
5081 (get_omp_data_i_param): Same.
5082 (try_create_reduction_list): Same.
5083 (oacc_entry_exit_single_gang): Same.
5084 (parallelize_loops): Same.
5085 * tree-pass.h: Same.
5086 * tree-predcom.c (determine_offset): Same.
5087 (last_always_executed_block): Same.
5088 (split_data_refs_to_components): Same.
5089 (suitable_component_p): Same.
5090 (valid_initializer_p): Same.
5091 (find_looparound_phi): Same.
5092 (insert_looparound_copy): Same.
5093 (add_looparound_copies): Same.
5094 (determine_roots_comp): Same.
5095 (predcom_tmp_var): Same.
5096 (initialize_root_vars): Same.
5097 (initialize_root_vars_store_elim_1): Same.
5098 (initialize_root_vars_store_elim_2): Same.
5099 (finalize_eliminated_stores): Same.
5100 (initialize_root_vars_lm): Same.
5101 (remove_stmt): Same.
5102 (determine_unroll_factor): Same.
5103 (execute_pred_commoning_cbck): Same.
5104 (base_names_in_chain_on): Same.
5105 (combine_chains): Same.
5106 (pcom_stmt_dominates_stmt_p): Same.
5107 (try_combine_chains): Same.
5108 (prepare_initializers_chain_store_elim): Same.
5109 (prepare_initializers_chain): Same.
5110 (prepare_initializers): Same.
5111 (prepare_finalizers_chain): Same.
5112 (prepare_finalizers): Same.
5113 (insert_init_seqs): Same.
5114 * tree-scalar-evolution.c (loop_phi_node_p): Same.
5115 (compute_overall_effect_of_inner_loop): Same.
5116 (add_to_evolution_1): Same.
5117 (add_to_evolution): Same.
5118 (follow_ssa_edge_binary): Same.
5119 (follow_ssa_edge_expr): Same.
5120 (backedge_phi_arg_p): Same.
5121 (follow_ssa_edge_in_condition_phi_branch): Same.
5122 (follow_ssa_edge_in_condition_phi): Same.
5123 (follow_ssa_edge_inner_loop_phi): Same.
5124 (follow_ssa_edge): Same.
5125 (analyze_evolution_in_loop): Same.
5126 (analyze_initial_condition): Same.
5127 (interpret_loop_phi): Same.
5128 (interpret_condition_phi): Same.
5129 (interpret_rhs_expr): Same.
5130 (interpret_expr): Same.
5131 (interpret_gimple_assign): Same.
5132 (analyze_scalar_evolution_1): Same.
5133 (analyze_scalar_evolution): Same.
5134 (analyze_scalar_evolution_for_address_of): Same.
5135 (get_instantiated_value_entry): Same.
5136 (loop_closed_phi_def): Same.
5137 (instantiate_scev_name): Same.
5138 (instantiate_scev_poly): Same.
5139 (instantiate_scev_binary): Same.
5140 (instantiate_scev_convert): Same.
5141 (instantiate_scev_not): Same.
5142 (instantiate_scev_r): Same.
5143 (instantiate_scev): Same.
5144 (resolve_mixers): Same.
5145 (initialize_scalar_evolutions_analyzer): Same.
5146 (scev_reset_htab): Same.
5147 (scev_reset): Same.
5148 (derive_simple_iv_with_niters): Same.
5149 (simple_iv_with_niters): Same.
5150 (expression_expensive_p): Same.
5151 (final_value_replacement_loop): Same.
5152 * tree-scalar-evolution.h (block_before_loop): Same.
5153 * tree-ssa-address.h: Same.
5154 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
5155 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
5156 (record_edge_info): Same.
5157 * tree-ssa-live.c (var_map_base_fini): Same.
5158 (remove_unused_locals): Same.
5159 * tree-ssa-live.h: Same.
5160 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
5161 (pass_ch_vect::execute): Same.
5162 (pass_ch::process_loop_p): Same.
5163 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
5164 (movement_possibility): Same.
5165 (outermost_invariant_loop): Same.
5166 (stmt_cost): Same.
5167 (determine_max_movement): Same.
5168 (invariantness_dom_walker::before_dom_children): Same.
5169 (move_computations): Same.
5170 (may_move_till): Same.
5171 (force_move_till_op): Same.
5172 (force_move_till): Same.
5173 (memref_free): Same.
5174 (record_mem_ref_loc): Same.
5175 (set_ref_stored_in_loop): Same.
5176 (mark_ref_stored): Same.
5177 (sort_bbs_in_loop_postorder_cmp): Same.
5178 (sort_locs_in_loop_postorder_cmp): Same.
5179 (analyze_memory_references): Same.
5180 (mem_refs_may_alias_p): Same.
5181 (find_ref_loc_in_loop_cmp): Same.
5182 (rewrite_mem_ref_loc::operator): Same.
5183 (first_mem_ref_loc_1::operator): Same.
5184 (sm_set_flag_if_changed::operator): Same.
5185 (execute_sm_if_changed_flag_set): Same.
5186 (execute_sm): Same.
5187 (hoist_memory_references): Same.
5188 (ref_always_accessed::operator): Same.
5189 (refs_independent_p): Same.
5190 (record_dep_loop): Same.
5191 (ref_indep_loop_p_1): Same.
5192 (ref_indep_loop_p): Same.
5193 (can_sm_ref_p): Same.
5194 (find_refs_for_sm): Same.
5195 (loop_suitable_for_sm): Same.
5196 (store_motion_loop): Same.
5197 (store_motion): Same.
5198 (fill_always_executed_in): Same.
5199 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
5200 (estimated_unrolled_size): Same.
5201 (loop_edge_to_cancel): Same.
5202 (remove_exits_and_undefined_stmts): Same.
5203 (remove_redundant_iv_tests): Same.
5204 (unloop_loops): Same.
5205 (estimated_peeled_sequence_size): Same.
5206 (try_peel_loop): Same.
5207 (canonicalize_loop_induction_variables): Same.
5208 (canonicalize_induction_variables): Same.
5209 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
5210 (name_info): Same.
5211 (stmt_after_inc_pos): Same.
5212 (contains_abnormal_ssa_name_p): Same.
5213 (niter_for_exit): Same.
5214 (find_bivs): Same.
5215 (mark_bivs): Same.
5216 (find_givs_in_bb): Same.
5217 (find_induction_variables): Same.
5218 (find_interesting_uses_cond): Same.
5219 (outermost_invariant_loop_for_expr): Same.
5220 (idx_find_step): Same.
5221 (add_candidate_1): Same.
5222 (add_iv_candidate_derived_from_uses): Same.
5223 (alloc_use_cost_map): Same.
5224 (prepare_decl_rtl): Same.
5225 (generic_predict_doloop_p): Same.
5226 (computation_cost): Same.
5227 (determine_common_wider_type): Same.
5228 (get_computation_aff_1): Same.
5229 (get_use_type): Same.
5230 (determine_group_iv_cost_address): Same.
5231 (iv_period): Same.
5232 (difference_cannot_overflow_p): Same.
5233 (may_eliminate_iv): Same.
5234 (determine_set_costs): Same.
5235 (cheaper_cost_pair): Same.
5236 (compare_cost_pair): Same.
5237 (iv_ca_cand_for_group): Same.
5238 (iv_ca_recount_cost): Same.
5239 (iv_ca_set_remove_invs): Same.
5240 (iv_ca_set_no_cp): Same.
5241 (iv_ca_set_add_invs): Same.
5242 (iv_ca_set_cp): Same.
5243 (iv_ca_add_group): Same.
5244 (iv_ca_cost): Same.
5245 (iv_ca_compare_deps): Same.
5246 (iv_ca_delta_reverse): Same.
5247 (iv_ca_delta_commit): Same.
5248 (iv_ca_cand_used_p): Same.
5249 (iv_ca_delta_free): Same.
5250 (iv_ca_new): Same.
5251 (iv_ca_free): Same.
5252 (iv_ca_dump): Same.
5253 (iv_ca_extend): Same.
5254 (iv_ca_narrow): Same.
5255 (iv_ca_prune): Same.
5256 (cheaper_cost_with_cand): Same.
5257 (iv_ca_replace): Same.
5258 (try_add_cand_for): Same.
5259 (get_initial_solution): Same.
5260 (try_improve_iv_set): Same.
5261 (find_optimal_iv_set_1): Same.
5262 (create_new_iv): Same.
5263 (rewrite_use_compare): Same.
5264 (remove_unused_ivs): Same.
5265 (determine_scaling_factor): Same.
5266 * tree-ssa-loop-ivopts.h: Same.
5267 * tree-ssa-loop-manip.c (create_iv): Same.
5268 (compute_live_loop_exits): Same.
5269 (add_exit_phi): Same.
5270 (add_exit_phis): Same.
5271 (find_uses_to_rename_use): Same.
5272 (find_uses_to_rename_def): Same.
5273 (find_uses_to_rename_in_loop): Same.
5274 (rewrite_into_loop_closed_ssa): Same.
5275 (check_loop_closed_ssa_bb): Same.
5276 (split_loop_exit_edge): Same.
5277 (ip_end_pos): Same.
5278 (ip_normal_pos): Same.
5279 (copy_phi_node_args): Same.
5280 (gimple_duplicate_loop_to_header_edge): Same.
5281 (can_unroll_loop_p): Same.
5282 (determine_exit_conditions): Same.
5283 (scale_dominated_blocks_in_loop): Same.
5284 (niter_for_unrolled_loop): Same.
5285 (tree_transform_and_unroll_loop): Same.
5286 (rewrite_all_phi_nodes_with_iv): Same.
5287 * tree-ssa-loop-manip.h: Same.
5288 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
5289 (number_of_iterations_ne): Same.
5290 (assert_no_overflow_lt): Same.
5291 (assert_loop_rolls_lt): Same.
5292 (number_of_iterations_lt): Same.
5293 (adjust_cond_for_loop_until_wrap): Same.
5294 (tree_simplify_using_condition): Same.
5295 (simplify_using_initial_conditions): Same.
5296 (simplify_using_outer_evolutions): Same.
5297 (loop_only_exit_p): Same.
5298 (ssa_defined_by_minus_one_stmt_p): Same.
5299 (number_of_iterations_popcount): Same.
5300 (number_of_iterations_exit): Same.
5301 (find_loop_niter): Same.
5302 (finite_loop_p): Same.
5303 (chain_of_csts_start): Same.
5304 (get_val_for): Same.
5305 (loop_niter_by_eval): Same.
5306 (derive_constant_upper_bound_ops): Same.
5307 (do_warn_aggressive_loop_optimizations): Same.
5308 (record_estimate): Same.
5309 (get_cst_init_from_scev): Same.
5310 (record_nonwrapping_iv): Same.
5311 (idx_infer_loop_bounds): Same.
5312 (infer_loop_bounds_from_ref): Same.
5313 (infer_loop_bounds_from_array): Same.
5314 (infer_loop_bounds_from_pointer_arith): Same.
5315 (infer_loop_bounds_from_signedness): Same.
5316 (bound_index): Same.
5317 (discover_iteration_bound_by_body_walk): Same.
5318 (maybe_lower_iteration_bound): Same.
5319 (estimate_numbers_of_iterations): Same.
5320 (estimated_loop_iterations): Same.
5321 (estimated_loop_iterations_int): Same.
5322 (max_loop_iterations): Same.
5323 (max_loop_iterations_int): Same.
5324 (likely_max_loop_iterations): Same.
5325 (likely_max_loop_iterations_int): Same.
5326 (estimated_stmt_executions_int): Same.
5327 (max_stmt_executions): Same.
5328 (likely_max_stmt_executions): Same.
5329 (estimated_stmt_executions): Same.
5330 (stmt_dominates_stmt_p): Same.
5331 (nowrap_type_p): Same.
5332 (loop_exits_before_overflow): Same.
5333 (scev_var_range_cant_overflow): Same.
5334 (scev_probably_wraps_p): Same.
5335 (free_numbers_of_iterations_estimates): Same.
5336 * tree-ssa-loop-niter.h: Same.
5337 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
5338 (idx_analyze_ref): Same.
5339 (analyze_ref): Same.
5340 (gather_memory_references_ref): Same.
5341 (mark_nontemporal_store): Same.
5342 (emit_mfence_after_loop): Same.
5343 (may_use_storent_in_loop_p): Same.
5344 (mark_nontemporal_stores): Same.
5345 (should_unroll_loop_p): Same.
5346 (volume_of_dist_vector): Same.
5347 (add_subscript_strides): Same.
5348 (self_reuse_distance): Same.
5349 (insn_to_prefetch_ratio_too_small_p): Same.
5350 * tree-ssa-loop-split.c (split_at_bb_p): Same.
5351 (patch_loop_exit): Same.
5352 (find_or_create_guard_phi): Same.
5353 (easy_exit_values): Same.
5354 (connect_loop_phis): Same.
5355 (connect_loops): Same.
5356 (compute_new_first_bound): Same.
5357 (split_loop): Same.
5358 (tree_ssa_split_loops): Same.
5359 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
5360 (is_maybe_undefined): Same.
5361 (tree_may_unswitch_on): Same.
5362 (simplify_using_entry_checks): Same.
5363 (tree_unswitch_single_loop): Same.
5364 (tree_unswitch_loop): Same.
5365 (tree_unswitch_outer_loop): Same.
5366 (empty_bb_without_guard_p): Same.
5367 (used_outside_loop_p): Same.
5368 (get_vop_from_header): Same.
5369 (hoist_guard): Same.
5370 * tree-ssa-loop.c (gate_oacc_kernels): Same.
5371 (get_lsm_tmp_name): Same.
5372 * tree-ssa-loop.h: Same.
5373 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
5374 (build_and_add_sum): Same.
5375 (no_side_effect_bb): Same.
5376 (get_ops): Same.
5377 (linearize_expr): Same.
5378 (should_break_up_subtract): Same.
5379 (linearize_expr_tree): Same.
5380 * tree-ssa-scopedtables.c: Same.
5381 * tree-ssa-scopedtables.h: Same.
5382 * tree-ssa-structalias.c (condense_visit): Same.
5383 (label_visit): Same.
5384 (dump_pred_graph): Same.
5385 (perform_var_substitution): Same.
5386 (move_complex_constraints): Same.
5387 (remove_preds_and_fake_succs): Same.
5388 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
5389 (determine_bb_domination_status): Same.
5390 (duplicate_thread_path): Same.
5391 (thread_through_all_blocks): Same.
5392 * tree-ssa-threadupdate.h: Same.
5393 * tree-streamer-in.c (streamer_read_string_cst): Same.
5394 (input_identifier): Same.
5395 (unpack_ts_type_common_value_fields): Same.
5396 (unpack_ts_block_value_fields): Same.
5397 (unpack_ts_translation_unit_decl_value_fields): Same.
5398 (unpack_ts_omp_clause_value_fields): Same.
5399 (streamer_read_tree_bitfields): Same.
5400 (streamer_alloc_tree): Same.
5401 (lto_input_ts_common_tree_pointers): Same.
5402 (lto_input_ts_vector_tree_pointers): Same.
5403 (lto_input_ts_poly_tree_pointers): Same.
5404 (lto_input_ts_complex_tree_pointers): Same.
5405 (lto_input_ts_decl_minimal_tree_pointers): Same.
5406 (lto_input_ts_decl_common_tree_pointers): Same.
5407 (lto_input_ts_decl_non_common_tree_pointers): Same.
5408 (lto_input_ts_decl_with_vis_tree_pointers): Same.
5409 (lto_input_ts_field_decl_tree_pointers): Same.
5410 (lto_input_ts_function_decl_tree_pointers): Same.
5411 (lto_input_ts_type_common_tree_pointers): Same.
5412 (lto_input_ts_type_non_common_tree_pointers): Same.
5413 (lto_input_ts_list_tree_pointers): Same.
5414 (lto_input_ts_vec_tree_pointers): Same.
5415 (lto_input_ts_exp_tree_pointers): Same.
5416 (lto_input_ts_block_tree_pointers): Same.
5417 (lto_input_ts_binfo_tree_pointers): Same.
5418 (lto_input_ts_constructor_tree_pointers): Same.
5419 (lto_input_ts_omp_clause_tree_pointers): Same.
5420 (streamer_read_tree_body): Same.
5421 * tree-streamer.h: Same.
5422 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
5423 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
5424 (vect_analyze_possibly_independent_ddr): Same.
5425 (vect_analyze_data_ref_dependence): Same.
5426 (vect_compute_data_ref_alignment): Same.
5427 (vect_enhance_data_refs_alignment): Same.
5428 (vect_analyze_data_ref_access): Same.
5429 (vect_check_gather_scatter): Same.
5430 (vect_find_stmt_data_reference): Same.
5431 (vect_create_addr_base_for_vector_ref): Same.
5432 (vect_setup_realignment): Same.
5433 (vect_supportable_dr_alignment): Same.
5434 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
5435 (adjust_phi_and_debug_stmts): Same.
5436 (vect_set_loop_mask): Same.
5437 (add_preheader_seq): Same.
5438 (vect_maybe_permute_loop_masks): Same.
5439 (vect_set_loop_masks_directly): Same.
5440 (vect_set_loop_condition_masked): Same.
5441 (vect_set_loop_condition_unmasked): Same.
5442 (slpeel_duplicate_current_defs_from_edges): Same.
5443 (slpeel_add_loop_guard): Same.
5444 (slpeel_can_duplicate_loop_p): Same.
5445 (create_lcssa_for_virtual_phi): Same.
5446 (iv_phi_p): Same.
5447 (vect_update_ivs_after_vectorizer): Same.
5448 (vect_gen_vector_loop_niters_mult_vf): Same.
5449 (slpeel_update_phi_nodes_for_loops): Same.
5450 (slpeel_update_phi_nodes_for_guard1): Same.
5451 (find_guard_arg): Same.
5452 (slpeel_update_phi_nodes_for_guard2): Same.
5453 (slpeel_update_phi_nodes_for_lcssa): Same.
5454 (vect_do_peeling): Same.
5455 (vect_create_cond_for_alias_checks): Same.
5456 (vect_loop_versioning): Same.
5457 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
5458 (vect_inner_phi_in_double_reduction_p): Same.
5459 (vect_analyze_scalar_cycles_1): Same.
5460 (vect_fixup_scalar_cycles_with_patterns): Same.
5461 (vect_get_loop_niters): Same.
5462 (bb_in_loop_p): Same.
5463 (vect_get_max_nscalars_per_iter): Same.
5464 (vect_verify_full_masking): Same.
5465 (vect_compute_single_scalar_iteration_cost): Same.
5466 (vect_analyze_loop_form_1): Same.
5467 (vect_analyze_loop_form): Same.
5468 (vect_active_double_reduction_p): Same.
5469 (vect_analyze_loop_operations): Same.
5470 (neutral_op_for_slp_reduction): Same.
5471 (vect_is_simple_reduction): Same.
5472 (vect_model_reduction_cost): Same.
5473 (get_initial_def_for_reduction): Same.
5474 (get_initial_defs_for_reduction): Same.
5475 (vect_create_epilog_for_reduction): Same.
5476 (vectorize_fold_left_reduction): Same.
5477 (vectorizable_reduction): Same.
5478 (vectorizable_induction): Same.
5479 (vectorizable_live_operation): Same.
5480 (loop_niters_no_overflow): Same.
5481 (vect_get_loop_mask): Same.
5482 (vect_transform_loop_stmt): Same.
5483 (vect_transform_loop): Same.
5484 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
5485 (vect_determine_precisions): Same.
5486 (vect_pattern_recog_1): Same.
5487 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
5488 * tree-vect-stmts.c (stmt_vectype): Same.
5489 (process_use): Same.
5490 (vect_init_vector_1): Same.
5491 (vect_truncate_gather_scatter_offset): Same.
5492 (get_group_load_store_type): Same.
5493 (vect_build_gather_load_calls): Same.
5494 (vect_get_strided_load_store_ops): Same.
5495 (vectorizable_simd_clone_call): Same.
5496 (vectorizable_store): Same.
5497 (permute_vec_elements): Same.
5498 (vectorizable_load): Same.
5499 (vect_transform_stmt): Same.
5500 (supportable_widening_operation): Same.
5501 * tree-vectorizer.c (vec_info::replace_stmt): Same.
5502 (vec_info::free_stmt_vec_info): Same.
5503 (vect_free_loop_info_assumptions): Same.
5504 (vect_loop_vectorized_call): Same.
5505 (set_uid_loop_bbs): Same.
5506 (vectorize_loops): Same.
5507 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
5508 * tree.c (add_tree_to_fld_list): Same.
5509 (fld_type_variant_equal_p): Same.
5510 (fld_decl_context): Same.
5511 (fld_incomplete_type_of): Same.
5512 (free_lang_data_in_binfo): Same.
5513 (need_assembler_name_p): Same.
5514 (find_decls_types_r): Same.
5515 (get_eh_types_for_runtime): Same.
5516 (find_decls_types_in_eh_region): Same.
5517 (find_decls_types_in_node): Same.
5518 (assign_assembler_name_if_needed): Same.
5519 * value-prof.c (stream_out_histogram_value): Same.
5520 * value-prof.h: Same.
5521 * var-tracking.c (use_narrower_mode): Same.
5522 (prepare_call_arguments): Same.
5523 (vt_expand_loc_callback): Same.
5524 (resolve_expansions_pending_recursion): Same.
5525 (vt_expand_loc): Same.
5526 * varasm.c (const_hash_1): Same.
5527 (compare_constant): Same.
5528 (tree_output_constant_def): Same.
5529 (simplify_subtraction): Same.
5530 (get_pool_constant): Same.
5531 (output_constant_pool_2): Same.
5532 (output_constant_pool_1): Same.
5533 (mark_constants_in_pattern): Same.
5534 (mark_constant_pool): Same.
5535 (get_section_anchor): Same.
5536 * vr-values.c (compare_range_with_value): Same.
5537 (vr_values::extract_range_from_phi_node): Same.
5538 * vr-values.h: Same.
5539 * web.c (unionfind_union): Same.
5540 * wide-int.h: Same.
5541
5542 2019-07-09 Martin Sebor <msebor@redhat.com>
5543
5544 PR c++/61339
5545 * align.h: Change class-key from class to struct and vice versa
5546 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
5547 * alloc-pool.h: Same.
5548 * asan.c (shadow_mem_size): Same.
5549 * auto-profile.c: Same.
5550 * basic-block.h: Same.
5551 * bitmap.h: Same.
5552 * cfgexpand.c (set_rtl): Same.
5553 (expand_one_stack_var_at): Same.
5554 * cfghooks.h: Same.
5555 * cfgloop.h: Same.
5556 * cgraph.h: Same.
5557 * config/i386/i386.h: Same.
5558 * df-problems.c (df_print_bb_index): Same.
5559 * df-scan.c: Same.
5560 * df.h (df_single_use): Same.
5561 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
5562 (layout::annotation_line_showed_range_p): Same.
5563 (get_printed_columns): Same.
5564 (correction::ensure_terminated): Same.
5565 (line_corrections::~line_corrections): Same.
5566 * dojump.h: Same.
5567 * dse.c: Same.
5568 * dump-context.h: Same.
5569 * dumpfile.h: Same.
5570 * dwarf2out.c: Same.
5571 * edit-context.c: Same.
5572 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
5573 * flags.h: Same.
5574 * function.c (assign_stack_local): Same.
5575 * function.h: Same.
5576 * gcc.c: Same.
5577 * gcov.c (block_info::block_info): Same.
5578 * genattrtab.c: Same.
5579 * genextract.c: Same.
5580 * genmatch.c (comparison_code_p): Same.
5581 (id_base::id_base): Same.
5582 (decision_tree::print): Same.
5583 * genoutput.c: Same.
5584 * genpreds.c (write_one_predicate_function): Same.
5585 * genrecog.c (validate_pattern): Same.
5586 (find_operand_positions): Same.
5587 (optimize_subroutine_group): Same.
5588 (merge_pattern_transition::merge_pattern_transition): Same.
5589 (merge_pattern_info::merge_pattern_info): Same.
5590 (merge_state_result::merge_state_result): Same.
5591 (merge_into_state): Same.
5592 * gensupport.c: Same.
5593 * gensupport.h: Same.
5594 * ggc-common.c (init_ggc_heuristics): Same.
5595 * ggc-tests.c (test_union): Same.
5596 * gimple-loop-interchange.cc (dump_induction): Same.
5597 * gimple-loop-versioning.cc: Same.
5598 * gimple-match.h (gimple_match_cond::any_else): Same.
5599 * gimple-ssa-backprop.c: Same.
5600 * gimple-ssa-sprintf.c: Same.
5601 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
5602 Same.
5603 (store_immediate_info::store_immediate_info): Same.
5604 (merged_store_group::apply_stores): Same.
5605 (get_location_for_stmts): Same.
5606 * gimple-ssa-strength-reduction.c: Same.
5607 * gimple-ssa-warn-alloca.c: Same.
5608 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
5609 * godump.c (go_type_decl): Same.
5610 * hash-map-tests.c (test_map_of_strings_to_int): Same.
5611 * hash-map.h: Same.
5612 * hash-set-tests.c (test_set_of_strings): Same.
5613 * hsa-brig.c: Same.
5614 * hsa-common.h: Same.
5615 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
5616 * input.c (assert_loceq): Same.
5617 * input.h: Same.
5618 * ipa-cp.c: Same.
5619 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
5620 * ipa-fnsummary.h: Same.
5621 * ipa-inline.h: Same.
5622 * ipa-prop.h: Same.
5623 * ipa-split.c (visit_bb): Same.
5624 * ira-int.h (minmax_set_iter_next): Same.
5625 * loop-invariant.c: Same.
5626 * loop-iv.c: Same.
5627 * lra-eliminations.c: Same.
5628 * lra-int.h: Same.
5629 * lra-lives.c (mark_regno_dead): Same.
5630 * lra-remat.c: Same.
5631 * lra-spills.c: Same.
5632 * lto-streamer.h: Same.
5633 * mem-stats.h: Same.
5634 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
5635 * omp-low.c (omp_clause_aligned_alignment): Same.
5636 * optabs-query.h (get_vcond_eq_icode): Same.
5637 * optabs.h: Same.
5638 * opts.c (wrap_help): Same.
5639 * poly-int.h: Same.
5640 * predict.c (predict_paths_leading_to_edge): Same.
5641 * pretty-print.h: Same.
5642 * profile-count.h: Same.
5643 * read-md.h: Same.
5644 * read-rtl-function.c: Same.
5645 * ree.c: Same.
5646 * reginfo.c: Same.
5647 * regrename.c: Same.
5648 * regrename.h: Same.
5649 * reload.h: Same.
5650 * rtl-iter.h: Same.
5651 * rtl.h (costs_add_n_insns): Same.
5652 * sanopt.c: Same.
5653 * sched-int.h: Same.
5654 * sel-sched-ir.h: Same.
5655 * selftest.h: Same.
5656 * sese.h (vec_find): Same.
5657 * stmt.c: Same.
5658 * target-globals.h: Same.
5659 * tree-affine.c (aff_combination_find_elt): Same.
5660 * tree-affine.h: Same.
5661 * tree-data-ref.h: Same.
5662 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
5663 * tree-predcom.c: Same.
5664 * tree-scalar-evolution.c (find_var_scev_info): Same.
5665 * tree-ssa-alias.h: Same.
5666 * tree-ssa-ccp.c: Same.
5667 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
5668 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
5669 (rewrite_mem_refs): Same.
5670 (execute_sm_if_changed): Same.
5671 (hoist_memory_references): Same.
5672 * tree-ssa-loop-ivopts.c (operator<=): Same.
5673 * tree-ssa-loop.h: Same.
5674 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
5675 * tree-ssa-structalias.c: Same.
5676 * tree-switch-conversion.h (cluster::cluster): Same.
5677 (simple_cluster::simple_cluster): Same.
5678 * tree-vect-patterns.c (type_conversion_p): Same.
5679 * tree-vectorizer.c (dump_stmt_cost): Same.
5680 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
5681 * tree.c (protected_set_expr_location): Same.
5682 * tree.h (desired_pro_or_demotion_p): Same.
5683 (fndecl_built_in_p): Same.
5684 * unique-ptr-tests.cc: Same.
5685 * var-tracking.c (delete_variable_part): Same.
5686 * varasm.c (assemble_real): Same.
5687 (tree_output_constant_def): Same.
5688 * vec.c: Same.
5689 * wide-int-bitmask.h: Same.
5690 * wide-int.h (decompose): Same.
5691
5692 2019-07-09 Richard Biener <rguenther@suse.de>
5693
5694 PR tree-optimization/91114
5695 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
5696 find a vector type isn't fatal.
5697
5698 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
5699
5700 * config/aarch64/aarch64-simd.md
5701 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
5702 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
5703 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
5704 (*aarch64_crypto_aese_fused,
5705 *aarch64_crypto_aesd_fused): Update to new definition.
5706 * config/aarch64/aarch64.c
5707 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
5708
5709 2019-07-09 Richard Biener <rguenther@suse.de>
5710
5711 * gimple-match.h (gimple_match_op::resimplify): New.
5712 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
5713 gimple_resimplify4, gimple_resimplify5): Remove.
5714 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
5715 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
5716 Make static.
5717 (gimple_match_op::resimplify): New.
5718 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
5719 according to availability. Use gimple_match_op::resimplify.
5720
5721 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
5722
5723 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
5724
5725 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
5726
5727 * config/arm/crypto.md:
5728 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
5729 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
5730 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
5731 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
5732 * config/arm/arm.c
5733 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
5734 * config/arm/aarch-common-protos.h
5735 (aarch_crypto_can_dual_issue): Remove.
5736 * config/arm/aarch-common.c
5737 (aarch_crypto_can_dual_issue): Likewise.
5738 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
5739 * config/arm/cortex-a53.md: Likewise.
5740 * config/arm/cortex-a57.md: Likewise.
5741 * config/arm/iterators.md:
5742 (CRYPTO_BINARY): Redefine.
5743 (CRYPTO_UNARY): Removed.
5744 (CRYPTO_AES, CRYPTO_AESMC): New.
5745
5746 2019-07-09 Richard Biener <rguenther@suse.de>
5747
5748 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
5749 (vn_reference_lookup_3): If the main ref has no access path recorded
5750 but orig_ref has use it to do access-path based disambiguation.
5751 (vn_reference_lookup_pieces): Adjust.
5752 (vn_reference_lookup): Pass down original ref if we valueized.
5753
5754 2019-07-09 Martin Liska <mliska@suse.cz>
5755
5756 * doc/extend.texi: Document influence on loop
5757 optimizers.
5758
5759 2019-07-09 Martin Liska <mliska@suse.cz>
5760
5761 * lto-compress.c (lto_normalized_zstd_level): Do not use
5762 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
5763 of libzstd. One can use 0 as a default compression level.
5764
5765 2019-07-09 Martin Liska <mliska@suse.cz>
5766
5767 * doc/invoke.texi: Add link from -fprofile-dir option.
5768 Use better wording for 'gcno filename'.
5769
5770 2019-07-08 Martin Sebor <msebor@redhat.com>
5771
5772 PR middle-end/71924
5773 PR middle-end/90549
5774 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
5775 comment.
5776 (args_loc_t): New type.
5777 (args_loc_t, locmap_t): same.
5778 (diag_returned_locals): New function.
5779 (is_addr_local): Same.
5780 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
5781 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
5782 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
5783
5784 2019-07-08 Jakub Jelinek <jakub@redhat.com>
5785
5786 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
5787 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
5788 and casts in offset when different, both through gimple stmts
5789 and through trees. Rewritten using loops to minimize code duplication
5790 for each operand.
5791
5792 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
5793
5794 * emit-rtl.c (set_insn_locations): New function moved from...
5795 * function.c (set_insn_locations): ...here.
5796 * ira-emit.c (emit_moves): Propagate location of the first instruction
5797 to the inserted move instructions.
5798 * reg-stack.c (compensate_edge): Set the location if the sequence is
5799 inserted on the edge.
5800 * rtl.h (set_insn_locations): Declare.
5801
5802 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
5803
5804 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
5805 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
5806 .machine string.
5807
5808 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
5809
5810 PR rtl-optimization/88233
5811 * common.opt (fsplit-wide-types-early): New option.
5812 * common/config/rs6000/rs6000-common.c
5813 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
5814 OPT_LEVELS_ALL.
5815 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
5816 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
5817 flag_split_wide_types_early.
5818 (pass_data_lower_subreg3): New.
5819 (pass_lower_subreg3): New.
5820 (make_pass_lower_subreg3): New.
5821 * passes.def (pass_lower_subreg2): Move after the loop passes.
5822 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
5823 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
5824 the pass pipeline; its previous place is taken by ...
5825 (make_pass_lower_subreg3): ... this.
5826
5827 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
5828
5829 * config/s390/s390.c (s390_shift_truncation_mask): Define.
5830 (TARGET_SHIFT_TRUNCATION_MASK): Define.
5831
5832 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
5833
5834 * config/s390/constraints.md: Add new jsc constraint.
5835 * config/s390/predicates.md: New predicates.
5836 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
5837 * config/s390/s390.c (s390_valid_shift_count): New function.
5838 (print_shift_count_operand): Use s390_valid_shift_count.
5839 (print_operand): Likewise.
5840 * config/s390/s390.md: Use new predicate.
5841 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
5842 * config/s390/vector.md: Use new predicate.
5843
5844 2019-07-08 Andrew Waterman <andrew@sifive.com>
5845 Jim Wilson <jimw@sifive.com>
5846
5847 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
5848 bitsize instead of BITS_PER_WORD.
5849
5850 2019-07-08 Martin Liska <mliska@suse.cz>
5851
5852 * collect2.c (defined): Revert to before r254460.
5853 (scan_prog_file): Revert to before r254460.
5854
5855 2019-07-08 Richard Biener <rguenther@suse.de>
5856
5857 PR tree-optimization/83518
5858 * tree-ssa-sccvn.c: Include splay-tree.h.
5859 (struct pd_range, struct pd_data): New.
5860 (struct vn_walk_cb_data): Add data to track partial definitions.
5861 (vn_walk_cb_data::~vn_walk_cb_data): New.
5862 (vn_walk_cb_data::push_partial_def): New.
5863 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
5864 (vn_reference_lookup_2): When partial defs are registered give up.
5865 (vn_reference_lookup_3): Track partial defs for memset and
5866 constructor zeroing and for defs from constants.
5867
5868 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
5869
5870 * doc/install.texi (bootstrap-Og): Document.
5871
5872 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
5873
5874 * config/riscv/pic.md (*local_pic_load_s<mode>)
5875 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
5876 referenced by <mode>, giving...
5877 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
5878 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
5879 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
5880 use <X:MODE> for the mode attribute.
5881
5882 2019-07-07 Jeff Law <law@redhat.com>
5883
5884 PR tree-optimization/91090
5885 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
5886 in handling of ranges to simplify switch statements.
5887
5888 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
5889
5890 * config/darwin.c (darwin_override_options): Make a final check on PIC
5891 options.
5892
5893 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
5894
5895 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
5896 on for kernel code.
5897
5898 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
5899
5900 PR target/91068
5901 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
5902 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
5903 instead of matching them to "l" output operands.
5904
5905 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
5906
5907 * config/mips/mips.c (mips_split_move): Zero-initialize addr
5908 and check whether addr.reg is nonnull before using it.
5909
5910 2019-07-06 Jakub Jelinek <jakub@redhat.com>
5911
5912 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
5913 ctx->for_simd_scan_phase simd copy the outer var to the privatized
5914 variable(s). For conditional lastprivate look through outer
5915 GIMPLE_OMP_SCAN context.
5916 (lower_omp_1): For conditional lastprivate look through outer
5917 GIMPLE_OMP_SCAN context.
5918
5919 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
5920 member to combined_into_simd_safelen1.
5921 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
5922 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
5923 clauses if ctx->combined_into_simd_safelen1 put statements after the
5924 predicate conditionalized block rather than into it.
5925
5926 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5927
5928 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
5929 operand 1.
5930 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
5931 Make the choice of <mode> explicit, giving...
5932 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
5933
5934 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5935
5936 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
5937 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
5938 of .md attributes.
5939 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
5940 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
5941 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
5942 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
5943 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
5944 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
5945 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
5946 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
5947 (*avx512f_scatterdi<mode>): Likewise.
5948 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
5949
5950 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5951
5952 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
5953 specify the mode iterator referenced by <mode>, giving...
5954 (*push1_h8300hs_<QHI:mode>): ...this.
5955
5956 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5957
5958 * config/gcn/gcn-valu.md
5959 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
5960 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
5961 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
5962 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
5963 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
5964 but using the _exec comparison patterns.
5965 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
5966 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
5967 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
5968 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
5969 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
5970 but using the _exec comparison patterns.
5971
5972 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5973
5974 * config/arm/sync.md
5975 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
5976 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
5977 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
5978 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
5979 <SIDI:cas_cmp_str>.
5980
5981 2019-07-06 Jakub Jelinek <jakub@redhat.com>
5982
5983 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
5984 (maybe_lookup_ctx): Add forward declaration.
5985 (omp_find_scan): Likewise. Walk into body of simd if composited
5986 with worksharing loop.
5987 (scan_omp_simd_scan): New function.
5988 (scan_omp_1_stmt): Call it.
5989 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
5990 ctx->for_simd_scan_phase.
5991 (lower_rec_input_clauses): Do much less work for inscan reductions
5992 in ctx->for_simd_scan_phase is_simd regions.
5993 (lower_omp_scan): Set is_simd also on simd constructs composited
5994 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
5995 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
5996 emit their body after in simd constructs composited with worksharing
5997 loop.
5998 (lower_omp_for_scan): Handle worksharing loop composited with simd.
5999
6000 * omp-low.c (omp_find_scan): Make static.
6001 (lower_omp_for_scan): Fix order of merge arguments in input phase of
6002 the second loop, var2 represents the first partial sum and so needs
6003 to go before rprivb[ivar].
6004
6005 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
6006
6007 * config/rs6000/rs6000-logue.c: Remove unused code.
6008
6009 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6010
6011 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
6012
6013 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
6014
6015 PR target/90712
6016 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
6017 check with a frame laid out check.
6018
6019 2019-07-05 Richard Biener <rguenther@suse.de>
6020
6021 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
6022 when comparing against a store with possibly the same value.
6023
6024 2019-07-05 Richard Biener <rguenther@suse.de>
6025
6026 PR tree-optimization/91091
6027 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
6028 (walk_non_aliased_vuses): Likewise.
6029 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
6030 (get_continuation_for_phi): New tbaa_p parameter and pass
6031 it down.
6032 (walk_non_aliased_vuses): Likewise.
6033 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
6034 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
6035 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
6036 Likewise.
6037 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
6038 (adjust_offsets_for_equal_base_address): New function.
6039 (vn_reference_lookup_3): Use it to catch more base equivalences.
6040 Handle and pass down tbaa_p flag.
6041 (vn_reference_lookup_pieces): Adjust.
6042 (vn_reference_lookup): Remove alias-set altering, instead pass
6043 down false as tbaa_p.
6044
6045 2019-07-05 Richard Biener <rguenther@suse.de>
6046
6047 PR tree-optimization/91091
6048 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
6049 accesses can happen with -fno-strict-aliasing.
6050
6051 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
6052
6053 * tree-ssa-alias.c (alias_stats): Add
6054 nonoverlapping_component_refs_since_match_p_must_overlap.
6055 (dump_alias_stats): Print it.
6056 (nonoverlapping_component_refs_since_match_p): Add early exit.
6057 (nonoverlapping_component_refs_p): Do not account early exit.
6058
6059 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6060
6061 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
6062 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
6063 (emit_eh_dispatch): Delete.
6064 (lower_catch): Emit the eh_dispatch manually and set the location of
6065 the first catch statement onto it.
6066 (lower_eh_filter): Emit the eh_dispatch manually and set location.
6067 (lower_eh_dispatch): Propagate location.
6068 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
6069 (eliminate_build): Likewise.
6070
6071 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6072
6073 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
6074 phi nodes if possible.
6075 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
6076 location info on the newly created statement.
6077 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
6078 newly created increment if needed.
6079
6080 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6081
6082 PR middle-end/78884
6083 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
6084 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
6085 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
6086 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
6087 ctx->add_safelen1 is set.
6088
6089 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
6090 GOMP_loop_start at the start of second worksharing loop in a scan.
6091 For nowait, don't emit GOMP_loop_end_nowait at the end of first
6092 worksharing loop in a scan even if there are conditional lastprivates,
6093 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
6094
6095 2019-07-04 Jan Hubicka <jh@suse.cz>
6096
6097 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
6098 Fix check for match in the ref walk.
6099
6100 2019-07-04 Martin Liska <mliska@suse.cz>
6101
6102 * tree-ssa-loop-niter.c
6103 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
6104 (estimate_numbers_of_iterations):
6105 Support __builtin_expect_with_probability for analysis
6106 of # of loop iterations.
6107
6108 2019-07-04 Alexandre Oliva <oliva@adacore.com>
6109
6110 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
6111 * except.c: Likewise.
6112 * expr.c (expand_expr_real_1): Reject it.
6113 * gimplify.c (gimplify_expr): Gimplify it, within
6114 TRY_FINALLY_EXPR.
6115 * tree-dump.c (dequeue_and_dump): Dump it.
6116 * tree-pretty-print.c (dump_generic_node): Likewise.
6117 * tree.c (block_may_fallthru): Handle it.
6118 * tree.def (EH_ELSE_EXPR): Introduce it.
6119 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
6120 with GIMPLE_EH_ELSE as try/finally/else.
6121
6122 2019-07-04 Richard Biener <rguenther@suse.de>
6123
6124 PR ipa/91062
6125 * tree-pass.h (execute_all_ipa_transforms): Add a flag
6126 parameter whether to disable GC collection.
6127 * passes.c (execute_one_ipa_transform_pass): Likewise, and
6128 honor it.
6129 (execute_all_ipa_transforms): Likewise and pass it down.
6130 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
6131 collection from applying IPA transforms.
6132 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
6133 from applying IPA transforms.
6134
6135 2019-07-04 Richard Biener <rguenther@suse.de>
6136
6137 PR tree-optimization/90911
6138 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
6139 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
6140 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
6141 scalar_loop_scaling.
6142 (vect_transform_loop): Scale scalar loop profile if needed.
6143 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
6144 the loop copy from if-conversion adjust edge probabilities
6145 and scale the vectorized loop body profile, queue the scalar
6146 profile for updating after peeling.
6147
6148 2019-07-04 Jan Hubicka <jh@suse.cz>
6149
6150 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
6151 parameters; return early for must-alias.
6152 (indirect_ref_may_alias_decl_p): Likewise; when establishing
6153 outer types match, try nonoverlapping_component_refs
6154 if must-alias is not obvious.
6155 (indirect_refs_may_alias_p): Likewise.
6156 (refs_may_alias_p_2): Likewise.
6157
6158 2019-07-04 Richard Biener <rguenther@suse.de>
6159
6160 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
6161 argument.
6162 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
6163 globals into...
6164 (struct vn_walk_cb_data): New callback data struct.
6165 (vn_reference_lookup_2): Adjust.
6166 (vn_reference_lookup_3): Likewise.
6167 (vn_reference_lookup_pieces): Likewise.
6168 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
6169 (visit_reference_op_load): Adjust.
6170
6171 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6172
6173 PR tree-optimization/91063
6174 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
6175 stmt from stmts sequence before calling vect_init_vector_1.
6176 Formatting fix.
6177
6178 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6179
6180 PR target/88833
6181 * fwprop.c (reg_single_def_p): New function.
6182 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
6183 (forward_propagate_into): New parameter reg_prop_only
6184 with default value false.
6185 Propagate def's src into loop only if SET_SRC and SET_DEST
6186 of def_set have single definitions.
6187 Likewise if reg_prop_only is set to true.
6188 (fwprop): New param fwprop_addr_p.
6189 Integrate fwprop_addr into fwprop.
6190 (fwprop_addr): Remove.
6191 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
6192 to true.
6193 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
6194 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
6195 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
6196
6197 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6198
6199 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
6200 in worksharing loop scans.
6201
6202 PR tree-optimization/91074
6203 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
6204 temporary.
6205
6206 PR rtl-optimization/90756
6207 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
6208 for VECTOR_TYPE_P.
6209
6210 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
6211
6212 * config/aarch64/aarch64.md: Remove redundant constraints from
6213 define_expand but keep some patterns untouched if they are
6214 specially selected by TARGET_SECONDARY_RELOAD hook.
6215 * config/aarch64/aarch64-sve.md: Likewise.
6216 * config/aarch64/atomics.md: Remove redundant constraints from
6217 define_expand.
6218 * config/aarch64/aarch64-simd.md: Likewise.
6219
6220 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
6221
6222 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
6223 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
6224 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
6225 clauses.
6226 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
6227 DARWIN_NOPIE_SPEC.
6228
6229 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
6230
6231 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
6232 (STARTFILE_SPEC): Split crt3 into a separate spec.
6233 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
6234 (DARWIN_CRT2_SPEC): New.
6235 (DARWIN_CRT3_SPEC): New.
6236 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
6237 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
6238 (DARWIN_CRT3_SPEC): New.
6239
6240 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
6241
6242 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
6243 Change the RTL attribute "length" from "4" to "*" to allow the
6244 length attribute to be adjusted automatically for prefixed load,
6245 store, and add immediate instructions.
6246 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
6247 Likewise.
6248 (extendsi<mode>2, EXTSI iterator): Likewise.
6249 (movsi_internal1): Likewise.
6250 (movsi_from_sf): Likewise.
6251 (movdi_from_sf_zero_ext): Likewise.
6252 (mov<mode>_internal): Likewise.
6253 (movcc_internal1, QHI iterator): Likewise.
6254 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
6255 (movsf_from_si): Likewise.
6256 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
6257 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
6258 (mov<mode>, FMOVE128 iterator): Likewise.
6259 (movdi_internal64): Likewise.
6260 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
6261 Likewise.
6262 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
6263 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
6264 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
6265 (vsx_splat_v4sf): Likewise.
6266
6267 2019-07-03 Mark Wielaard <mark@klomp.org>
6268
6269 PR debug/90981
6270 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
6271 DW_AT_addr_base if there is actually a .debug_addr section with
6272 addresses.
6273 (output_addr_table): Add DWARF5 table header generation here after
6274 checking there are actually any addresses from...
6275 (dwarf2out_finish): ...here.
6276
6277 2019-07-03 Richard Biener <rguenther@suse.de>
6278
6279 PR middle-end/91069
6280 * match.pd (vec_perm -> bit_insert): Fix element read from
6281 first vector.
6282
6283 2019-07-03 Martin Liska <mliska@suse.cz>
6284
6285 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
6286 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
6287 condition.
6288 * generic-match-head.c: Include dbgcnt.h.
6289 * gimple-match-head.c: Likewise.
6290
6291 2019-07-03 Martin Liska <mliska@suse.cz>
6292
6293 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
6294 (GCOV_COUNTER_V_TOPN): New.
6295 (GCOV_COUNTER_V_INDIR): Use _topn.
6296 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
6297 (GCOV_TOPN_VALUES): New.
6298 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
6299 (GCOV_TOPN_VALUES_COUNTERS): New.
6300 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
6301 * tree-profile.c:
6302 (gimple_init_gcov_profiler): Rename variables from one_value
6303 to topn_values.
6304 (gimple_gen_one_value_profiler): Remove.
6305 (gimple_gen_topn_values_profiler): New function.
6306 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
6307 names instead of SINGLE_VALUE.
6308 (stream_out_histogram_value): Likewise.
6309 (stream_in_histogram_value): Likewise.
6310 (get_most_common_single_value): Likewise.
6311 (gimple_divmod_fixed_value_transform): Likewise.
6312 (gimple_stringops_transform): Likewise.
6313 (gimple_divmod_values_to_profile): Likewise.
6314 (gimple_stringops_values_to_profile): Likewise.
6315 (gimple_find_values_to_profile): Likewise.
6316 * value-prof.h (enum hist_type): Rename to TOPN.
6317 (gimple_gen_one_value_profiler): Remove.
6318 (gimple_gen_topn_values_profiler): New.
6319
6320 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
6321
6322 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
6323 if it has the DW_AT_data_member_location attribute.
6324
6325 2019-07-03 Richard Biener <rguenther@suse.de>
6326
6327 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
6328 dumping.
6329
6330 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
6331
6332 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
6333 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
6334 (tlsdesc_small_sve_<mode>): Likewise.
6335
6336 2019-07-03 Martin Liska <mliska@suse.cz>
6337
6338 * Makefile.in: Define ZSTD_LIB.
6339 * common.opt: Adjust compression level
6340 to support also zstd levels.
6341 * config.in: Regenerate.
6342 * configure: Likewise.
6343 * configure.ac: Add --with-zstd and --with-zstd-include options
6344 and detect ZSTD.
6345 * doc/install.texi: Mention zstd dependency.
6346 * gcc.c: Print supported LTO compression algorithms.
6347 * lto-compress.c (lto_normalized_zstd_level): Likewise.
6348 (lto_compression_zstd): Likewise.
6349 (lto_uncompression_zstd): Likewise.
6350 (lto_end_compression): Dispatch in between zlib and zstd.
6351 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
6352 (lto_uncompression_zlib): Make it static.
6353 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
6354 * lto-section-in.c (lto_get_section_data): Pass info
6355 about used compression.
6356 * lto-streamer-out.c: By default use zstd when possible.
6357 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
6358 (TV_IPA_LTO_COMPRESS): Likewise for compression.
6359
6360 2019-07-03 Martin Liska <mliska@suse.cz>
6361
6362 * lto-section-in.c (lto_get_section_data): Add "lto" section.
6363 * lto-section-out.c (lto_destroy_simple_output_block): Never
6364 compress LTO_section_lto section.
6365 * lto-streamer-out.c (produce_asm): Do not set major_version
6366 and minor_version.
6367 (lto_output_toplevel_asms): Likewise.
6368 (produce_lto_section): New function.
6369 (lto_output): Call produce_lto_section.
6370 (lto_write_mode_table): Do not set major_version and
6371 minor_version.
6372 (produce_asm_for_decls): Likewise.
6373 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
6374 type.
6375 (struct lto_header): Remove.
6376 (struct lto_section): New struct.
6377 (struct lto_simple_header): Do not inherit from lto_header.
6378 (struct lto_file_decl_data): Add lto_section_header field.
6379
6380 2019-07-03 Martin Liska <mliska@suse.cz>
6381
6382 * lra-eliminations.c (eliminate_regs_in_insn): Remove
6383 dead assignemts.
6384 * reg-stack.c (check_asm_stack_operands): Likewise.
6385 * tree-ssa-structalias.c (create_function_info_for): Likewise.
6386 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
6387 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
6388 force_expand_binop.
6389
6390 2019-07-03 Martin Liska <mliska@suse.cz>
6391
6392 PR tree-optimization/90892
6393 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
6394 in string constants.
6395
6396 2019-07-03 Martin Liska <mliska@suse.cz>
6397
6398 PR middle-end/90899
6399 * multiple_target.c (create_dispatcher_calls): Add to comdat
6400 group only if set for ifunc.
6401
6402 2019-07-03 Martin Liska <mliska@suse.cz>
6403
6404 PR target/88056
6405 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
6406 Define local_object_name in outer scope in order to handle
6407 use-after-scope issue.
6408
6409 2019-07-03 Martin Liska <mliska@suse.cz>
6410
6411 * common.opt: Add fprofile-note.
6412 * coverage.c (coverage_init): Append the option
6413 to bbg_file_name.
6414 * doc/invoke.texi: Document -fprofile-note.
6415
6416 2019-07-03 Jakub Jelinek <jakub@redhat.com>
6417
6418 PR tree-optimization/91033
6419 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
6420 vect_analyze_data_refs): Add bool * arguments.
6421 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
6422 if failure is due to scatter/gather, set *fatal to false if non-NULL.
6423 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
6424 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
6425 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
6426 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
6427 vect_analyze_data_refs caller.
6428
6429 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
6430 clause.
6431 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
6432 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
6433 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
6434 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
6435 OMP_CLAUSE__SCANTEMP_ entry.
6436 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
6437 * tree-pretty-print.c (dump_omp_clause): Likewise.
6438 * tree-nested.c (convert_nonlocal_omp_clauses,
6439 convert_local_omp_clauses): Likewise.
6440 * omp-general.h (struct omp_for_data): Add have_scantemp and
6441 have_nonctrl_scantemp members.
6442 * omp-general.c (omp_extract_for_data): Initialize them.
6443 * omp-low.c (struct omp_context): Add scan_exclusive member.
6444 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
6445 result again with GF_OMP_FOR_KIND_MASK. Initialize also
6446 ctx->scan_exclusive.
6447 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
6448 of !ctx->scan_inclusive.
6449 (lower_rec_input_clauses): Simplify gimplification of dtors using
6450 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
6451 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
6452 loops. Don't add barrier for reduction_omp_orig_ref if
6453 ctx->scan_??xclusive.
6454 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
6455 (lower_omp_scan): Use ctx->scan_exclusive instead
6456 of !ctx->scan_inclusive. Handle worksharing loops with inscan
6457 reductions. Use new_vard != new_var instead of repeated
6458 omp_is_reference calls.
6459 (omp_find_scan, lower_omp_for_scan): New functions.
6460 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
6461 inscan reductions.
6462 * omp-expand.c (expand_omp_scantemp_alloc): New function.
6463 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
6464 and fd->have_scantemp.
6465
6466 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
6467 on worksharing loop propagate it as shared clause to containing
6468 combined parallel.
6469
6470 * omp-expand.c (expand_omp_for_static_nochunk,
6471 expand_omp_for_static_chunk): For nowait worksharing loop with
6472 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
6473 at the end.
6474
6475 2019-07-02 qing zhao <qing.zhao@oracle.com>
6476
6477 PR preprocessor/90581
6478 * doc/cppopts.texi: Add document for -fmax-include-depth.
6479 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
6480
6481 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
6482
6483 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
6484 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
6485 (mmx_packssdw): Ditto.
6486 (mmx_punpckhbw): Ditto.
6487 (mmx_punpcklbw): Ditto.
6488 (mmx_punpckhwd): Ditto.
6489 (mmx_punpcklwd): Ditto.
6490 (mmx_punpckhdq): Ditto.
6491 (mmx_punpckldq): Ditto.
6492 (*vec_dupv4hi): Ditto.
6493 (*vec_dupv2si): Ditto.
6494 (mmx_pmovmskb): Ditto.
6495 * config/i386/sse.md (sse_cvtpi2ps): Use
6496 TARGET_SSE2 && SSE_REG_P in split condition.
6497 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
6498 TARGET_SSSE3 && SSE_REGNO_P in split condition.
6499 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
6500 (ssse3_pshufbv8qi3): Ditto.
6501 (ssse3_palignrdi): Ditto.
6502
6503 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
6504
6505 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
6506 with inlined save and restore.
6507
6508 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
6509
6510 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
6511 to be inserted on single successor edge of the entry block. Then call
6512 commit_edge_insertions instead of inserting the instructions manually.
6513 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
6514 RTL expansion and rebuild jump labels chain.
6515
6516 2019-07-02 Richard Biener <rguenther@suse.de>
6517
6518 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
6519 TI_CHREC_KNOWN.
6520 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
6521 Define here.
6522 * tree.c (build_common_tree_nodes): Initialize them.
6523 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
6524 Make declarations comments.
6525 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
6526 chrec_known): Remove definitions.
6527 (initialize_scalar_evolutions_analyzer): Remove.
6528 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
6529 * tree-streamer.c (preload_common_nodes): Do not preload
6530 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
6531
6532 2019-07-02 Jan Hubicka <jh@suse.cz>
6533
6534 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
6535 sanity check.
6536
6537 2019-07-02 Jan Hubicka <jh@suse.cz>
6538
6539 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
6540 to ..
6541 (nonoverlapping_component_refs_since_match_p): ... this one;
6542 handle also non-decl bases; return -1 if search gave up.
6543 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
6544 nonoverlapping_component_refs_of_decl_p_no_alias to
6545 nonoverlapping_component_refs_since_match_p_may_alias,
6546 nonoverlapping_component_refs_since_match_p_no_alias.
6547 (dump_alias_stats): Update dumping.
6548 (aliasing_matching_component_refs_p): Break out from ...;
6549 dispatch to nonoverlapping_component_refs_for_decl_p
6550 and nonoverlapping_component_refs_since_match_p.
6551 (aliasing_component_refs_p): ... here; call
6552 nonoverlapping_component_refs_p in scenarios where we can not
6553 precisely determine base match.
6554 (decl_refs_may_alias_p): Use
6555 nonoverlapping_component_refs_since_match_p.
6556 (indirect_ref_may_alias_decl_p): Do not call
6557 nonoverlapping_component_refs_p.
6558 (indirect_refs_may_alias_p): Likewise.
6559
6560 2019-07-02 Jan Hubicka <jh@suse.cz>
6561
6562 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
6563 to clobber of return value.
6564
6565 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6566
6567 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
6568 for is_neon_type instructions that have not already been categorized.
6569
6570 2019-07-02 Richard Biener <rguenther@suse.de>
6571
6572 PR tree-optimization/58483
6573 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
6574 for MEM_REF base hashing.
6575 (equal_mem_array_ref_p): Likewise for base comparison.
6576
6577 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6578
6579 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
6580 parameterized name.
6581 (signbit<mode>2): Use that name. Simplify.
6582
6583 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
6584
6585 PR middle-end/66726
6586 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
6587 Tune heuristic from PR71016 to allow MIN / MAX.
6588
6589 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6590
6591 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
6592 parameterized name.
6593 (abs<mode>2): Use that name. Simplify.
6594
6595 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6596
6597 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
6598 parameterized name.
6599 (neg<mode>2): Use that name. Simplify.
6600
6601 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6602
6603 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
6604 name.
6605 (abs<mode>2): Use that name. Simplify.
6606
6607 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6608
6609 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
6610 name.
6611 (neg<mode>2): Use that name. Simplify.
6612
6613 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
6614
6615 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
6616 ("enabled" attribute): Handle sse_noavx isa attribute.
6617 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
6618 Use TARGET_SSE && SSE_REGNO_P in split condition.
6619 (*vec_dupv2sf): Ditto.
6620
6621 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6622
6623 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
6624 name.
6625 (floatsi<mode>2): Use that name. Simplify.
6626
6627 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6628
6629 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
6630 parameterized name.
6631 (extenddf<mode>2_vsx): Make this a parameterized name.
6632 (extenddf<mode>2): Use those names. Simplify.
6633
6634 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6635
6636 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
6637 name.
6638 (eh_return): Use that name. Simplify.
6639
6640 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6641
6642 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
6643 (doloop_end): Use that name. Simplify.
6644
6645 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6646
6647 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
6648 parameterized name.
6649 (indirect_jump): Use that name. Simplify.
6650
6651 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6652
6653 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
6654 parameterized name.
6655 (abs<mode>2): Use that name. Simplify.
6656
6657 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6658
6659 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
6660 parameterized name.
6661 (fix_trunc<mode>si2): Use that name. Simplify.
6662
6663 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6664
6665 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
6666 (allocate_stack): Use that name. Simplify.
6667
6668 2019-07-01 Martin Sebor <msebor@redhat.com>
6669
6670 PR middle-end/90923
6671 * hash-map.h (hash_map::put): On insertion invoke element ctor.
6672 (hash_map::get_or_insert): Same. Reformat comment.
6673 * hash-set.h (hash_set::add): On insertion invoke element ctor.
6674 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
6675 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
6676 * hash-table.h (hash_table::operator=): Prevent copy assignment.
6677 (hash_table::hash_table (const hash_table&)): Use copy ctor
6678 instead of assignment to copy elements.
6679
6680 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
6681 John David Anglin <danglin@gcc.gnu.org>
6682
6683 PR target/90963
6684 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
6685 using saved frame pointer.
6686
6687 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
6688
6689 PR middle-end/64242
6690 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
6691 Add frame clobber and schedule blockage.
6692
6693 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
6694
6695 * doc/invoke.texi (Link Options): Further editorial changes to
6696 -flinker-output docs.
6697
6698 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6699
6700 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
6701 Load both operands of a PLUS into registers separately.
6702
6703 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
6704
6705 * config/s390/vector.md: Fix shift count operand printing.
6706
6707 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6708
6709 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
6710
6711 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6712
6713 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
6714 Use recog_data to test for an output operand.
6715
6716 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6717
6718 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
6719 exclude any others that are disparaged or that are bound to need
6720 a reload or spill.
6721 (ira_get_dup_out_num): Expand comment.
6722
6723 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6724
6725 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
6726 constraint string for each operand/alternative combo. Only handle
6727 '%' at the start of constraint strings, and look for it outside
6728 the main loop.
6729
6730 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6731
6732 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
6733 alternative_mask instead of HARD_REG_SET to represent a
6734 bitmask of alternatives.
6735 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
6736 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
6737
6738 2019-07-01 Martin Liska <mliska@suse.cz>
6739
6740 * edit-context.c (test_applying_fixits_unreadable_file): Do not
6741 use () for a constructor call.
6742 (test_applying_fixits_line_out_of_range): Likewise.
6743 * ggc-page.c (alloc_page): Use (void *) for %p printf format
6744 argument.
6745 (free_page): Likewise.
6746
6747 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
6748
6749 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
6750 parameter names to match usage (no functional change).
6751 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
6752
6753 2019-07-01 Richard Biener <rguenther@suse.de>
6754
6755 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
6756 pass parameter.
6757 (pass_fre::execute): Honor it.
6758 * passes.def: Adjust pass_fre invocations to allow iterating,
6759 add non-iterating pass_fre before late threading/dom.
6760
6761 2019-07-01 Richard Biener <rguenther@suse.de>
6762
6763 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
6764 TARGET_MEM_REF handling to also handle address-taken ones.
6765
6766 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
6767
6768 * doc/sourcebuild.texi (Effective-Target Keywords, Other
6769 hardware attributes): Document avx512vp2intersect.
6770
6771 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6772
6773 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
6774 (abs<mode>2): New expander.
6775 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
6776 Use CODE_FOR_ssse3_absv8qi2.
6777 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
6778 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
6779
6780 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6781
6782 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
6783 to sse, sse_noavx and avx. Update all uses.
6784
6785 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6786
6787 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
6788 (*mmx_<plusminus_insn><mode>3): Ditto.
6789 (*mmx_mulv4hi3"): Ditto.
6790 (*mmx_smulv4hi3_highpart): Ditto.
6791 (*mmx_umulv4hi3_highpart): Ditto.
6792 (*mmx_pmaddwd): Ditto.
6793 (*sse2_umulv1siv1di3): Ditto.
6794 (*mmx_<code>v4hi3): Ditto.
6795 (*mmx_<code>v8qi3): Ditto.
6796 (mmx_ashr<mode>3): Ditto.
6797 ("mmx_<shift_insn><mode>3): Ditto.
6798 (*mmx_eq<mode>3): Ditto.
6799 (mmx_gt<mode>3): Ditto.
6800 (mmx_andnot<mode>3): Ditto.
6801 (*mmx_<code><mode>3): Ditto.
6802 (*mmx_pinsrw): Ditto.
6803 (*mmx_pextrw): Ditto.
6804 (mmx_pshufw_1): Ditto.
6805 (*mmx_uavgv8qi3): Ditto.
6806 (*mmx_uavgv4hi3): Ditto.
6807 ("mmx_psadbw): Ditto.
6808 * config/i386/sse.md (sse_cvtps2pi): Ditto.
6809 (sse_cvttps2pi): Ditto.
6810 (ssse3_pmaddubsw): Ditto.
6811 (*ssse3_pmulhrswv4hi3): Ditto.
6812 (ssse3_psign<mode>3): Ditto.
6813
6814 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
6815
6816 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
6817 adjustment for bit-fields to all aggregate types.
6818
6819 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
6820
6821 * config/rs6000/predicates.md (pcrel_address): Use
6822 SYMBOL_REF_LOCAL_P to determine if a label is local.
6823 (pcrel_external_address): New predicate.
6824 (non_prefixed_mem_operand): Delete, predicate not used.
6825 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
6826 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
6827 addressing.
6828 (SYMBOL_REF_PCREL_P): Likewise.
6829
6830 PR target/91009
6831 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
6832 alternative.
6833 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
6834 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
6835 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
6836
6837 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
6838
6839 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
6840 override on extra_headers.
6841
6842 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
6843
6844 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
6845 * config/darwin-driver.c (darwin_default_min_version): Remove newline
6846 from warning.
6847 (darwin_driver_init): Likewise.
6848
6849 2019-06-28 Jan Beulich <jbeulich@suse.com>
6850
6851 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
6852 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
6853 Eliminate redundant alternative.
6854
6855 2019-06-28 Jan Beulich <jbeulich@suse.com>
6856
6857 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
6858 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
6859 Use vector_operand.
6860
6861 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
6862
6863 * config/arc/arc.c (arc_rtx_costs): All short instructions are
6864 having a lower cost regardless of the speed option.
6865
6866 2019-06-28 Jan Beulich <jbeulich@suse.com>
6867
6868 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
6869 vector_operand plus, on both alternatives, "Bm" constraint.
6870
6871 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
6872
6873 * config/arm/arm.md: Remove redundant constraints from
6874 define_expand but leave reload_inm and reload_outm patterns
6875 untouched since they need special constraints to work.
6876 * config/arm/arm-fixed.md: Remove redundant constraints from
6877 define_expand.
6878 * config/arm/iwmmxt.md: Likewise.
6879 * config/arm/neon.md: Likewise.
6880 * config/arm/sync.md: Likewise.
6881 * config/arm/thumb1.md: Likewise.
6882 * config/arm/vec-common.md: Likewise.
6883
6884 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
6885
6886 * doc/install.texi: Document --disable-tm-clone-registry.
6887
6888 2019-06-27 Jakub Jelinek <jakub@redhat.com>
6889
6890 PR c++/91024
6891 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
6892 statements.
6893
6894 PR tree-optimization/91010
6895 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
6896 return true. Otherwise, don't call operand_equal_p if offset1 or
6897 offset2 is NULL and just return false.
6898
6899 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6900
6901 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
6902 user-specified float mode choice for kernel mode code.
6903
6904 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6905
6906 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
6907 spec.
6908
6909 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6910
6911 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
6912 use longcall for 64b code.
6913
6914 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
6915
6916 * builtins.c (get_memory_rtx): Fix comment.
6917 * optabs.def (movmem_optab): Change to cpymem_optab.
6918 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
6919 (emit_block_move_hints): Change movmem to cpymem.
6920 * defaults.h: Change movmem to cpymem.
6921 * targhooks.c (get_move_ratio): Change movmem to cpymem.
6922 (default_use_by_pieces_infrastructure_p): Ditto.
6923 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
6924 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
6925 to cpymem.
6926 * config/aarch64/aarch64.h: Change movmem to cpymem.
6927 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
6928 * config/alpha/alpha.h: Change movmem to cpymem in comment.
6929 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
6930 movmem to cpymem.
6931 * config/arc/arc-protos.h: Change movmem to cpymem.
6932 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
6933 * config/arc/arc.h: Change movmem to cpymem in comment.
6934 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
6935 * config/arm/arm-protos.h: Change movmem to cpymem in names.
6936 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
6937 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
6938 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
6939 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
6940 * config/avr/avr-protos.h: Change movmem to cpymem.
6941 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
6942 avr_out_movmem): Change movmem to cpymem.
6943 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
6944 Change movmem to cpymem.
6945 * config/bfin/bfin-protos.h: Change movmem to cpymem.
6946 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
6947 Change movmem to cpymem.
6948 * config/bfin/bfin.h: Change movmem to cpymem in comment.
6949 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
6950 * config/c6x/c6x-protos.h: Change movmem to cpymem.
6951 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
6952 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
6953 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
6954 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
6955 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
6956 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
6957 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
6958 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
6959 expand_small_cpymem_or_setmem,
6960 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
6961 expand_set_or_cpymem_constant_prologue,
6962 ix86_expand_set_or_cpymem): Change movmem to cpymem.
6963 * config/i386/i386-protos.h: Change movmem to cpymem.
6964 * config/i386/i386.h: Change movmem to cpymem in comment.
6965 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
6966 (setmem<mode>): Change expansion function name.
6967 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
6968 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
6969 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
6970 * config/m32c/m32c-protos.h: Change movmem to cpymem.
6971 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
6972 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
6973 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
6974 to cpymem.
6975 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
6976 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
6977 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
6978 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
6979 Change movmem to cpymem.
6980 * config/mips/mips.h: Change movmem to cpymem.
6981 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
6982 * config/nds32/nds32-memory-manipulation.c
6983 (nds32_expand_movmemsi_loop_unknown_size,
6984 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
6985 nds32_expand_movmemsi_unroll,
6986 nds32_expand_movmemsi): Change movmem to cpymem.
6987 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
6988 * config/nds32/nds32-protos.h: Change movmem to cpymem.
6989 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
6990 (pa_adjust_insn_length): Change call to compute_movmem_length.
6991 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
6992 movmemdi, movmemdi_prereload,
6993 movmemdi_postreload): Change movmem to cpymem.
6994 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
6995 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
6996 * config/riscv/riscv.c: Change movmem to cpymem in comment.
6997 * config/riscv/riscv.h: Change movmem to cpymem.
6998 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
6999 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
7000 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
7001 movmem to cpymem.
7002 * config/s390/s390-protos.h: Change movmem to cpymem.
7003 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
7004 s390_expand_insv): Change movmem to cpymem.
7005 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
7006 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
7007 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
7008 * config/sparc/sparc.h: Change movmem to cpymem in comment.
7009 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
7010 for nonexistent function.
7011 * config/vax/vax.h: Change movmem to cpymem in comment.
7012 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
7013 * config/visium/visium.h: Change movmem to cpymem in comment.
7014 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
7015 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
7016 * doc/md.texi: Change movmem to cpymem and update description to match.
7017 * doc/rtl.texi: Change movmem to cpymem.
7018 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
7019 * doc/tm.texi: Regenerate.
7020
7021 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
7022
7023 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
7024 -fvariable-expansion-in-unroller by default.
7025 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
7026 default for Power.
7027
7028 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
7029
7030 Revert
7031 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7032 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
7033
7034 * config.gcc(rs6000-*-*): Define target_gtfiles.
7035
7036 2019-06-27 Jan Hubicka <jh@suse.cz>
7037
7038 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
7039 (add_type_duplicate): When odr hash is not allocated, to nothing.
7040 (odr_based_tbaa_p): New function.
7041 (set_type_canonical_for_odr_type): New function.
7042 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
7043 set_type_canonical_for_odr_type): New.
7044 * tree.c (gimple_canonical_types_compatible_p): ODR types with
7045 ODR based TBAA are not equivalent to non-ODR types.
7046
7047 2019-06-27 Martin Liska <mliska@suse.cz>
7048
7049 PR tree-optimization/90974
7050 PR rtl-optimization/90975
7051 PR rtl-optimization/90976
7052 PR target/91016
7053 PR tree-optimization/91017
7054 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
7055 unused tmp.
7056 * lra.c (lra_set_insn_recog_data): Remove a leftover from
7057 initial commit of IRA.
7058 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
7059 of op0 and op1.
7060 * tree-vect-loop.c (vect_create_epilog_for_reduction):
7061 Remove unused mode1.
7062 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
7063 to new_stmt_info.
7064
7065 2019-06-27 Jakub Jelinek <jakub@redhat.com>
7066
7067 PR target/90991
7068 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
7069 instead of register_operand for operands[1], add m to its constraints
7070 if operands[2] uses "C" constraint. Ensure in condition that if
7071 operands[2] is not 0, then operands[1] is not a MEM. For last two
7072 alternatives, use unaligned loads instead of aligned if operands[1] is
7073 misaligned_operand.
7074
7075 2019-06-27 Martin Liska <mliska@suse.cz>
7076
7077 * asan.c (asan_emit_allocas_unpoison): Remove obviously
7078 dead assignments.
7079 * bt-load.c (move_btr_def): Likewise.
7080 * builtins.c (expand_builtin_apply_args_1): Likewise.
7081 (expand_builtin_apply): Likewise.
7082 * cfgexpand.c (expand_asm_stmt): Likewise.
7083 (construct_init_block): Likewise.
7084 * cfghooks.c (verify_flow_info): Likewise.
7085 * cfgloopmanip.c (remove_path): Likewise.
7086 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
7087 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
7088 * combine.c (simplify_if_then_else): Likewise.
7089 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7090 (choose_basereg): Likewise.
7091 (ix86_expand_prologue): Likewise.
7092 (ix86_preferred_output_reload_class): Likewise.
7093 * cselib.c (cselib_record_sets): Likewise.
7094 * df-scan.c (df_scan_alloc): Likewise.
7095 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
7096 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
7097 * emit-rtl.c (try_split): Likewise.
7098 * graphite-scop-detection.c (assign_parameter_index_in_region):
7099 Likewise.
7100 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
7101 * ira-color.c (setup_profitable_hard_regs): Likewise.
7102 * ira.c (rtx_moveable_p): Likewise.
7103 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7104 * read-rtl.c (read_subst_mapping): Likewise.
7105 * regrename.c (scan_rtx): Likewise.
7106 * reorg.c (fill_slots_from_thread): Likewise.
7107 * tree-inline.c (tree_function_versioning): Likewise.
7108 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
7109 * tree-ssa-sink.c (statement_sink_location): Likewise.
7110 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
7111 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
7112 (vect_create_epilog_for_reduction): Likewise.
7113 * tree.c (build_nonstandard_integer_type): Likewise.
7114
7115 2019-06-27 Richard Biener <rguenther@suse.de>
7116
7117 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
7118
7119 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
7120
7121 PR tree-optimization/89772
7122 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
7123 out-of-bound accesses checking.
7124
7125 2019-06-27 Martin Liska <mliska@suse.cz>
7126
7127 PR tree-optimization/91014
7128 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
7129 when LHS is NULL_TREE.
7130
7131 2019-06-27 Martin Liska <mliska@suse.cz>
7132
7133 * symbol-summary.h (traverse): Pass
7134 argument a to the call of callback.
7135 (gt_ggc_mx): Mark arguments as unused.
7136 (gt_pch_nx): Likewise.
7137
7138 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
7139
7140 PR target/62147
7141 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
7142 finiteness.
7143
7144 2019-06-26 Jeff Law <law@redhat.com>
7145
7146 PR tree-optimization/90883
7147 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
7148 (delete_dead_or_redundant_assignment): Likewise.
7149
7150 PR tree-optimization/90883
7151 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
7152 * tree-ssa-dse.c: Update various comments to distinguish between
7153 dead and redundant stores.
7154 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
7155 (dse_optimize_redundant_stores): New function.
7156 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
7157 Distinguish between dead and redundant calls in dump output. All
7158 callers updated.
7159 (delete_dead_or_redundant_assignment): Similarly for assignments.
7160 (dse_optimize_stmt): Handle _CHK variants. For statements which
7161 store 0 into multiple memory locations, try to prove a subsequent
7162 store is redundant.
7163
7164 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
7165
7166 PR target/89021
7167 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
7168 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
7169
7170 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
7171
7172 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
7173 (branch_islands): New extern.
7174 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
7175 * config/rs6000/rs6000.c: .. here.
7176
7177 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
7178
7179 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
7180 (powerpc*-*-*) ... to here.
7181
7182 2019-06-26 Jeff Law <law@redhat.com>
7183
7184 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
7185 memcpy, memmove and memset builtins.
7186 (maybe_trim_memstar_call): Likewise.
7187
7188 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7189
7190 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
7191
7192 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7193
7194 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
7195
7196 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
7197
7198 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
7199 declaration.
7200 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
7201 "static".
7202 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
7203 declaration.
7204
7205 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
7206
7207 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
7208
7209 2019-06-26 Richard Biener <rguenther@suse.de>
7210
7211 PR ipa/90982
7212 * tree-inline.c (remap_ssa_name): Copy SSA range info.
7213
7214 2019-06-26 Richard Biener <rguenther@suse.de>
7215
7216 * lto-streamer.h (lto_bitmap_alloc): Remove.
7217 (lto_bitmap_free): Likewise.
7218 * lto-streamer.c (lto_bitmap_alloc): Remove.
7219 (lto_bitmap_free): Likewise.
7220 (lto_obstack): Likewise.
7221 (lto_obstack_initialized): Likewise.
7222 * lto-streamer-out.c (lto_output): Use own obstack for local
7223 bitmap, free it consistently.
7224
7225 2019-06-26 Jakub Jelinek <jakub@redhat.com>
7226
7227 PR target/90991
7228 * config/i386/sse.md
7229 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
7230 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
7231 insns if operands[2] is misaligned_operand.
7232
7233 2019-06-26 Li Jia He <helijia@linux.ibm.com>
7234
7235 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
7236 TARGET_POWERPC64.
7237 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
7238 to GPR.
7239
7240 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
7241
7242 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
7243
7244 2019-06-26 Martin Liska <mliska@suse.cz>
7245
7246 PR tree-optimization/90973
7247 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
7248 epilogue_cost_vec instead of prologue_cost_vec for
7249 a epilogue cost.
7250
7251 2019-06-26 Martin Liska <mliska@suse.cz>
7252
7253 * bb-reorder.c (connect_better_edge_p): Add missing else
7254 statement in the middle of if-else statements.
7255
7256 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
7257 H.J. Lu <hongjiu.lu@intel.com>
7258 Olga Makhotina <olga.makhotina@intel.com>
7259
7260 * common/config/i386/i386-common.c
7261 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
7262 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
7263 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
7264 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
7265 (ix86_handle_option): Handle -mavx512vp2intersect.
7266 * config/i386/avx512vp2intersectintrin.h: New.
7267 * config/i386/avx512vp2intersectvlintrin.h: New.
7268 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
7269 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7270 AVX512VP2INTERSECT.
7271 * config/i386/i386-builtin-types.def: Add new types.
7272 * config/i386/i386-builtin.def: Add new builtins.
7273 * config/i386/i386-builtins.c: (enum processor_features): Add
7274 F_AVX512VP2INTERSECT.
7275 (static const _isa_names_table isa_names_table): Ditto.
7276 * config/i386/i386-c.c (ix86_target_macros_internal): Define
7277 __AVX512VP2INTERSECT__.
7278 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
7279 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
7280 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
7281 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
7282 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
7283 * config/i386/i386-options.c (ix86_target_string): Add
7284 -mavx512vp2intersect.
7285 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
7286 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
7287 P2HImode and P2QImode.
7288 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
7289 number for P2QImode and P2HImode.
7290 (ix86_regmode_natural_size): New function.
7291 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
7292 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
7293 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
7294 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
7295 * config/i386/i386.opt: Add -mavx512vp2intersect.
7296 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
7297 avx512vp2intersectvlintrin.h.
7298 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
7299 (define_mode_iterator VI48_AVX512VP2VL): New.
7300 (avx512vp2intersect_2intersect<mode>,
7301 avx512vp2intersect_2intersectv16si): New define_insn patterns.
7302 * config.gcc: Add avx512vp2intersectvlintrin.h and
7303 avx512vp2intersectintrin.h to extra_headers.
7304 * doc/invoke.texi: Document -mavx512vp2intersect.
7305
7306 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
7307
7308 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
7309
7310 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
7311
7312 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
7313 savres_routine_syms, savres_routine_name, morestack_ref,
7314 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
7315 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
7316 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
7317 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
7318 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
7319 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
7320 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
7321 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
7322 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
7323 get_stack_clash_protection_probe_interval,
7324 get_stack_clash_protection_guard_size,
7325 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
7326 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
7327 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
7328 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
7329 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
7330 gen_frame_mem_offset, rs6000_savres_routine_name,
7331 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
7332 ptr_regno_for_savres, rs6000_emit_savres_rtx,
7333 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
7334 rs6000_global_entry_point_prologue_needed_p,
7335 rs6000_get_separate_components, rs6000_components_for_bb,
7336 rs6000_disqualify_components, rs6000_emit_prologue_components,
7337 rs6000_emit_epilogue_components, rs6000_set_handled_components,
7338 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
7339 rs6000_output_savres_externs, rs6000_output_function_prologue,
7340 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
7341 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
7342 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
7343 rs6000_output_function_epilogue, gen_add3_const,
7344 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
7345 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
7346 to rs6000-logue.c.
7347 (machine_function): Moved to rs6000.h.
7348 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
7349 rs6000-internal.h.
7350 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
7351 savres_routine_syms, savres_routine_name, morestack_ref,
7352 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
7353 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
7354 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
7355 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
7356 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
7357 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
7358 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
7359 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
7360 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
7361 get_stack_clash_protection_probe_interval,
7362 get_stack_clash_protection_guard_size,
7363 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
7364 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
7365 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
7366 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
7367 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
7368 gen_frame_mem_offset, rs6000_savres_routine_name,
7369 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
7370 ptr_regno_for_savres, rs6000_emit_savres_rtx,
7371 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
7372 rs6000_global_entry_point_prologue_needed_p,
7373 rs6000_get_separate_components, rs6000_components_for_bb,
7374 rs6000_disqualify_components, rs6000_emit_prologue_components,
7375 rs6000_emit_epilogue_components, rs6000_set_handled_components,
7376 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
7377 rs6000_output_savres_externs, rs6000_output_function_prologue,
7378 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
7379 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
7380 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
7381 rs6000_output_function_epilogue, gen_add3_const,
7382 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
7383 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
7384 to here from rs6000.c.
7385 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
7386 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
7387 quad_address_offset_p) Moved to here from rs6000.c.
7388 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
7389 * config/config.gcc: Add new source file rs6000-logue.c to garbage
7390 collector.
7391
7392 2019-06-25 Martin Liska <mliska@suse.cz>
7393
7394 * hash-table.c (hashtab_chk_error): Move here from ...
7395 * hash-table.h (hashtab_chk_error): ... here.
7396
7397 2019-06-25 Martin Liska <mliska@suse.cz>
7398
7399 PR tree-optimization/90978
7400 * df-scan.c (df_update_entry_block_defs): Remove dead else
7401 branch.
7402 (df_update_exit_block_uses): Likewise.
7403
7404 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
7405 Andrew Stubbs <ams@codesourcery.com>
7406
7407 * config.gcc (thread_file): Set to gcn for AMD GCN.
7408 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
7409 (TARGET_EMUTLS_VAR_INIT): New hook.
7410
7411 2019-06-25 Martin Jambor <mjambor@suse.cz>
7412
7413 PR ipa/90939
7414 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
7415
7416 2019-06-25 Richard Biener <rguenther@suse.de>
7417
7418 PR tree-optimization/90930
7419 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
7420 into parallel form in the last pass instance.
7421
7422 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
7423
7424 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
7425 (arc_legitimize_pic_address): Simplify and cleanup the function.
7426 (SYMBOLIC_CONST): Remove.
7427 (prepare_pic_move): Likewise.
7428 (prepare_move_operands): Handle complex mov cases here.
7429 (arc_legitimize_address_0): Remove call to
7430 arc_legitimize_pic_address.
7431 (arc_legitimize_address): Remove call to
7432 arc_legitimize_tls_address.
7433 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
7434 (movhi_insn): Likewise.
7435
7436 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7437
7438 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
7439 PTRDIFF_TYPE.
7440 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
7441 format of "__intN" types for UINTMAX_TYPE.
7442 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
7443 format of "__intN" types for SIZETYPE.
7444 * tree.c (build_common_tree_nodes): Accept "__intN__"
7445 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
7446 * doc/invoke.texi: Document that __intN__ disables pedantic
7447 warnings.
7448
7449 2019-06-25 Jan Hubicka <jh@suse.cz>
7450
7451 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
7452 base2_alias_set is non-zero before doing TBAA based disambiguation.
7453
7454 2019-06-25 Martin Liska <mliska@suse.cz>
7455
7456 PR tree-optimization/90973
7457 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
7458 of prologue and epilogue.
7459
7460 2019-06-24 Jan Hubicka <jh@suse.cz>
7461
7462 * ipa-utils.h (type_with_linkage_p): Verify that type is
7463 CXX_ODR_P.
7464 (odr_type_p): Remove extra return.
7465 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
7466 hash STRING_FLAG only for arrays and integers.
7467 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
7468 Update analogously.
7469 * tree-streamer-out.c (pack_ts_type_common_value_fields):
7470 Likewise.
7471 * print-tree.c (print_node): Print cxx-odr-p
7472 and string-flag.
7473 * tree.c (need_assembler_name_p): Also check that type
7474 is CXX_ODR_TYPE_P
7475 (verify_type_variant): Update verification of SRING_FLAG;
7476 also check CXX_ODR_P.
7477 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
7478 (TYPE_STRING_FLAG): Use it.
7479 (TYPE_CXX_ODR_P): New macro.
7480 * dwarf2out.c (gen_array_type_die): First check that type
7481 is an array and then test string flag.
7482
7483 2019-06-24 Richard Biener <rguenther@suse.de>
7484
7485 PR tree-optimization/90972
7486 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
7487 in common code, dealing with STRING_CST properly.
7488
7489 2019-06-24 Richard Biener <rguenther@suse.de>
7490
7491 PR tree-optimization/90930
7492 PR tree-optimization/90316
7493 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
7494 decrement of limit.
7495
7496 2019-06-24 Martin Sebor <msebor@redhat.com>
7497
7498 * tree-pretty-print.h: Remove unnecessary punctuation characters
7499 from a diagnostic.
7500 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
7501
7502 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
7503
7504 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
7505 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
7506 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
7507
7508 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
7509
7510 * config/rs6000/darwin.h: Handle GCC target pragma.
7511
7512 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
7513
7514 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
7515
7516 2019-06-22 Jeff Law <law@redhat.com>
7517
7518 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7519
7520 2019-06-22 Jan Hubicka <jh@suse.cz>
7521
7522 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
7523 give up on bitfields; continue searching for different refs
7524 appearing later.
7525
7526 2019-06-21 Jakub Jelinek <jakub@redhat.com>
7527
7528 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
7529 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
7530 containing the offset as possible simd lane access. Look through
7531 widening conversion. Move the
7532 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
7533
7534 2019-06-21 Richard Biener <rguenther@suse.de>
7535
7536 PR tree-optimization/90930
7537 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
7538 flag on new stmts to avoid re-processing them.
7539
7540 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
7541
7542 PR c++/90875 - added -Wswitch-outside-range option
7543 * doc/invoke.texi (Wswitch-outside-range): Document.
7544
7545 2019-06-21 Jeff Law <law@redhat.com>
7546
7547 PR tree-optimization/90949
7548 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
7549 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
7550
7551 2019-06-21 Richard Biener <rguenther@suse.de>
7552
7553 PR debug/90914
7554 * dwarf2out.c (prune_unused_types_walk): Always consider
7555 function-local extern declarations as used.
7556
7557 2019-06-21 Richard Biener <rguenther@suse.de>
7558
7559 PR tree-optimization/90913
7560 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
7561 the scalar variant of if-conversion versioning.
7562
7563 2019-06-21 Jakub Jelinek <jakub@redhat.com>
7564
7565 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
7566 create another "omp scan inscan exclusive" array if
7567 !ctx->scan_inclusive.
7568 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
7569 (lower_omp_scan): Likewise.
7570 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
7571 2-bit bitfield for simd_lane_access_p member.
7572 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
7573 aux == (void *)-4 as simd lane access.
7574 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
7575 comment with permutations to show the canonical permutation order.
7576 (vectorizable_scan_store): Handle exclusive scan.
7577 (vectorizable_store): Call vectorizable_scan_store even for
7578 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
7579
7580 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
7581 "omp simd array" arrays with one byte elements.
7582
7583 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
7584
7585 * config/alpha/alpha.md (@unaligned_store<mode>):
7586 Rename from unaligned_store<mode>.
7587 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
7588 * config/alpha/sync.md (@load_locked_<mode>): Rename
7589 from load_locked_<mode>.
7590 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
7591 (@atomic_compare_and_swap<mode>_1): Rename
7592 from atomic_compare_and_swap<mode>_1.
7593 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
7594 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
7595 Use gen_reload_in_aligned and gen_unaligned_store.
7596 (emit_load_locked): Remove.
7597 (emit_store_conditional): Ditto.
7598 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
7599 (alpha_split_compare_and_swap): Ditto.
7600 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
7601 (alpha_split_compare_and_swap_12): Use gen_load_locked
7602 and gen_store_conditional.
7603 (alpha_split_atomic_exchange): Ditto.
7604 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
7605 (alpha_split_atomic_exchange_12): Use gen_load_locked
7606 and gen_store_conditional.
7607
7608 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
7609
7610 * config/aarch64/aarch64-errata.h: New file.
7611 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
7612 (CA53_ERR_843419_SPEC): Delete.
7613 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
7614 * config/aarch64/aarch64-linux.h: Likewise.
7615 * config/aarch64/aarch64-netbsd.h: Likewise.
7616 * config/aarch64/aarch64-freebsd.h: Likewise.
7617
7618 2019-06-20 Marek Polacek <polacek@redhat.com>
7619
7620 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
7621
7622 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
7623
7624 * config/rs6000/rs6000.md (isa attribute): Add support for
7625 for a future processor.
7626
7627 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
7628
7629 PR target/54855
7630 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
7631 standard scalar operation pattern for V2DF.
7632 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
7633 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
7634 (*ieee_<ieee_maxmin><mode>3): Likewise.
7635 (vec_setv2df_0): Likewise.
7636
7637 2019-06-20 Jan Hubicka <jh@suse.cz>
7638
7639 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
7640 parameter; it has no use in gimple memory model.
7641 (indirect_ref_may_alias_decl_p): Update.
7642
7643 2019-06-20 Martin Liska <mliska@suse.cz>
7644
7645 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
7646 to 10.
7647
7648 2019-06-20 Jakub Jelinek <jakub@redhat.com>
7649
7650 * tree-vect-stmts.c (enum scan_store_kind): New type.
7651 (scan_store_can_perm_p): Change last argument from int * to
7652 vec<enum scan_store_kind> *, record precisely which permutations
7653 need whole vector left shift or that plus VEC_COND_EXPR.
7654 (vectorizable_scan_store): Adjust caller, use whole vector left shift
7655 and additional VEC_COND_EXPR only for those iterations that need it.
7656
7657 2019-06-20 Alexandre Oliva <oliva@adacore.com>
7658
7659 * config.gcc: Fix ARM --with-fpu checking and error message.
7660
7661 2019-06-19 Marek Polacek <polacek@redhat.com>
7662
7663 PR c++/60364 - noreturn after first decl not diagnosed.
7664 * attribs.c (get_attribute_namespace): No longer static.
7665 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
7666 attributes.
7667 (attr_noreturn_exclusions): Make it extern.
7668 * attribs.h (get_attribute_namespace): Declare.
7669 * tree-inline.c (function_attribute_inlinable_p): Use
7670 get_attribute_name.
7671
7672 2019-06-19 Martin Sebor <msebor@redhat.com>
7673
7674 PR tree-optimization/90626
7675 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
7676
7677 PR tree-optimization/90626
7678 * tree-ssa-strlen.c (strxcmp_unequal): New function.
7679 (handle_builtin_string_cmp): Call it.
7680
7681 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
7682
7683 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
7684 and DARWIN_NOPIE_SPEC.
7685 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
7686 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
7687 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
7688 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
7689 (DARWIN_EXPORT_DYNAMIC): Delete.
7690 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
7691 and pie options processing to darwin.h.
7692 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
7693
7694 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
7695
7696 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
7697 in computing the number of options to be moved.
7698
7699 2019-06-19 Maya Rashish <coypu@sdf.org>
7700
7701 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
7702 (CLEAR_INSN_CACHE) Use it.
7703
7704 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
7705
7706 * config/i386/i386.md (cmpstrnsi): Remove dead code.
7707
7708 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
7709
7710 PR middle-end/84521
7711 * builtins.c (expand_builtin_setjmp_setup): Save
7712 hard_frame_pointer_rtx.
7713 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
7714 restore fp.
7715 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
7716 non-local goto.
7717 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
7718 elimination code.
7719 (remove_reg_equal_offset_note): Remove unused function.
7720 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
7721 code.
7722 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7723 (arc_builtin_setjmp_frame_value): Remove function.
7724 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7725 (avr_builtin_setjmp_frame_value): Remove function.
7726 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7727 (ix86_builtin_setjmp_frame_value): Remove function.
7728 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
7729 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7730 (sparc_builtin_setjmp_frame_value): Remove function.
7731 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7732 (vax_builtin_setjmp_frame_value): Remove function.
7733 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
7734 pointer if has_nonlocal_label.
7735
7736 2019-06-19 Jakub Jelinek <jakub@redhat.com>
7737
7738 * doc/md.texi: Document vec_shl_<mode> pattern.
7739 * optabs.def (vec_shl_optab): New optab.
7740 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
7741 argument, if == vec_shl_optab, check for left whole vector shift
7742 pattern rather than right shift.
7743 (expand_vec_perm_const): Add vec_shl_optab support.
7744 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
7745 in the comment.
7746 * tree-vect-generic.c (lower_vec_perm): Support permutations which
7747 can be handled by vec_shl_optab.
7748 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
7749 (check_scan_store): Use it.
7750 (vectorizable_scan_store): If target can't do normal permutations,
7751 try to use whole vector left shifts and if needed a VEC_COND_EXPR
7752 after it.
7753 * config/i386/sse.md (vec_shl_<mode>): New expander.
7754
7755 * omp-low.c (lower_rec_input_clauses): Handle references properly
7756 in inscan clauses.
7757 (lower_omp_scan): Likewise.
7758
7759 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7760
7761 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
7762 mem_mode is BLKmode.
7763
7764 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
7765
7766 PR target/90922
7767 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
7768 pointer adjustment for the case of no callee-saved registers and
7769 stack frame bigger than 128 bytes.
7770
7771 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7772
7773 PR middle-end/90862
7774 * omp-low.c (check_omp_nesting_restrictions): Handle
7775 GF_OMP_TARGET_KIND_OACC_DECLARE.
7776
7777 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
7778
7779 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
7780 (@add<mode>3_carry): Rename from add<mode>3_carry.
7781 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
7782 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
7783 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
7784 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
7785 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
7786 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
7787 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
7788 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
7789 (cmpstrnsi): Use gen_cmp_1.
7790 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
7791 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
7792 (@umonitor_<mode>): Rename from umonitor_<mode>.
7793 * config/i386/i386-expand.c (ix86_expand_copysign):
7794 Use gen_copysign3_const and gen_copysign3_var.
7795 (ix86_expand_xorsign): Use gen_xorsign3_1.
7796 (ix86_expand_branch): Use gen_sub3_carry_ccc,
7797 gen_sub3_carry_ccgz and gen_cmp1.
7798 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
7799 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
7800 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
7801 (ix86_split_lshr): Ditto.
7802 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
7803
7804 2019-06-18 Jason Merrill <jason@redhat.com>
7805
7806 * tree.c (build_constructor): Add MEM_STAT_DECL.
7807
7808 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7809
7810 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
7811 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
7812 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
7813 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
7814 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
7815 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
7816 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
7817 Use CC_NZC instead of CC.
7818 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
7819 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
7820 (aarch64_print_operand): Handle E_CC_NZCmode.
7821 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
7822 of gen_set_clobber_cc.
7823
7824 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7825
7826 * config/aarch64/aarch64-sve.md: Tabify file.
7827
7828 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7829
7830 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
7831 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
7832 * config/aarch64/aarch64-sve.md: Use it.
7833
7834 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7835
7836 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
7837 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
7838 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
7839 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
7840 (aarch64_expand_sve_vec_cmp_int): Use it.
7841 (aarch64_expand_sve_vec_cmp_float): Likewise.
7842 * config/aarch64/aarch64-sve.md: Likewise throughout.
7843
7844 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7845 Kugan Vivekanandarajah <kuganv@linaro.org>
7846
7847 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
7848 (*cond_<optab><mode>_z): Fold into...
7849 (*cond_<optab><mode>_any): ...here. Also handle cases in which
7850 operand 4 can be tied to operand 0 (either inherently or via RA).
7851
7852 2019-06-18 Richard Biener <rguenther@suse.de>
7853
7854 PR debug/90900
7855 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
7856 as if optimized away.
7857
7858 2019-06-18 Tom de Vries <tdevries@suse.de>
7859
7860 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
7861 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
7862 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
7863 Rename to ...
7864 (define_insn "@set_softstack_<mode>"): ... this.
7865 (define_insn "omp_simt_enter_<mode>"): Rename to ...
7866 (define_insn "@omp_simt_enter_<mode>"): ... this.
7867 (define_insn "omp_simt_exit_<mode>"): Rename to ...
7868 (define_insn "@omp_simt_exit_<mode>"): ... this.
7869
7870 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7871
7872 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
7873 vf parameter. Restore the previous iv step of nscalars_step,
7874 but give it iv_type rather than compare_type. Tweak code order
7875 to match the comments.
7876 (vect_set_loop_condition_masked): Update accordingly.
7877 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
7878 for iv_precision. Tweak comment formatting.
7879
7880 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
7881
7882 * config/darwin.c: Strip trailing whitespace.
7883
7884 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
7885
7886 * config/darwin.c (darwin_emit_unwind_label): New default to false.
7887 (darwin_override_options): Set darwin_emit_unwind_label as needed.
7888
7889 2019-06-18 Martin Jambor <mjambor@suse.cz>
7890
7891 PR ipa/90889
7892 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
7893 caller does not have flag_ipa_cp set.
7894
7895 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7896
7897 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
7898 from "*fold_left_plus_<mode>", updated operands order.
7899 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
7900 * internal-fn.c (mask_fold_left_direct): New define.
7901 (expand_mask_fold_left_optab_fn): Likewise.
7902 (direct_mask_fold_left_optab_supported_p): Likewise.
7903 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
7904 * optabs.def (mask_fold_left_plus_optab): New optab.
7905 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
7906 masked internal_fn for a reduction ifn.
7907 (vectorize_fold_left_reduction): Add support for masking reductions.
7908
7909 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
7910
7911 PR middle-end/80791
7912 * target.def (predict_doloop_p): New hook.
7913 * targhooks.h (default_predict_doloop_p): New declaration.
7914 * targhooks.c (default_predict_doloop_p): New function.
7915 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
7916 * doc/tm.texi: Regenerate.
7917 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
7918 (TARGET_PREDICT_DOLOOP_P): New macro.
7919 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
7920
7921 2019-06-17 Jakub Jelinek <jakub@redhat.com>
7922
7923 * omp-low.c (struct omp_context): Add scan_inclusive field.
7924 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
7925 if inclusive scan.
7926 (struct omplow_simd_context): Add lastlane member.
7927 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
7928 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
7929 1 or 2 argument.
7930 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
7931 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
7932 (lower_omp_scan): New function.
7933 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
7934 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
7935 check 3rd argument if present rather than 2nd.
7936 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
7937 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
7938 2-bit bitfield.
7939 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7940 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
7941 than 2nd.
7942 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
7943 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
7944 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
7945 init.
7946 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
7947 IFN_GOMP_SIMD_LANE argument.
7948 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
7949 encoded ->aux value.
7950 * tree-vect-stmts.c: Include attribs.h.
7951 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
7952 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
7953 functions.
7954 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
7955 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
7956
7957 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
7958
7959 PR target/62055
7960 * config/i386/i386.md (*nabstf2_1): New insn pattern.
7961 (*nabs<mode>2_1): Ditto.
7962 (nabs sse-reg splitter): New splitter.
7963 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
7964
7965 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7966
7967 PR bootstrap/90873.
7968 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
7969 TMR index check.
7970
7971 2019-06-17 Tom de Vries <tdevries@suse.de>
7972
7973 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
7974 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
7975 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
7976 ...
7977 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
7978 match_operand 0.
7979 (define_insn "omp_simt_enter_insn"): Rename to ...
7980 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
7981 match_operand 0, 1 and 2, as well as the unspec_volatile result.
7982 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
7983 gen_omp_simt_enter_si.
7984 (define_expand "omp_simt_exit"): New.
7985 (define_insn "omp_simt_exit"): Rename to ...
7986 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
7987 match_operand 0.
7988
7989 2019-06-17 Matthew Green <mrg@eterna.com.au>
7990 Maya Rashish <coypu@sdf.org>
7991
7992 * config.gcc (aarch64*-*-netbsd*): New target.
7993 * config/aarch64/aarch64-netbsd.h: New file.
7994 * config/aarch64/t-aarch64-netbsd: Likewise.
7995
7996 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7997
7998 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
7999 the access path from base to first VIEW_CONVERT_EXPR or
8000 BIT_FIELD_REF.
8001
8002 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8003
8004 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
8005 access path on BIT_FIELD_REFs.
8006
8007 2019-06-17 Martin Liska <mliska@suse.cz>
8008
8009 PR ipa/90874
8010 * ipa-utils.h (odr_type_p): Remove dead code.
8011
8012 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8013
8014 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
8015 alternative Solaris 11.4 format.
8016 * configure: Regenerate.
8017
8018 2019-06-17 Tom de Vries <tdevries@suse.de>
8019
8020 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
8021 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
8022 match_operand 0.
8023 (define_insn "call_value_insn"): Rename to ...
8024 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
8025 match_operand 0.
8026 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
8027 DI.
8028
8029 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
8030
8031 PR middle-end/64242
8032 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
8033 frame clobbers and schedule block.
8034 (builtin_longjmp): Likewise.
8035
8036 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8037
8038 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
8039 describe how to perform MSPABI compliant 64-bit shift.
8040 * config/msp430/msp430.md (ashldi3): New define_expand.
8041 (ashrdi3): New define_expand.
8042 (lshrdi3): New define_expand.
8043
8044 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8045
8046 * doc/sourcebuild.texi: Document new effective target keyword
8047 longlong64.
8048
8049 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
8050
8051 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
8052 indirect_refs_may_alias_p): Revert accidental commits.
8053
8054 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
8055 at the end of structures.
8056
8057 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
8058
8059 * config/darwin.c (machopic_indirect_call_target): Use renamed
8060 darwin_picsymbol_stubs to decide on output.
8061 (darwin_override_options): Handle darwin_picsymbol_stubs.
8062 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
8063 (LD64_VERSION): Revise default.
8064 * config/darwin.opt: (mpic-symbol-stubs): New option.
8065 (darwin_picsymbol_stubs): New variable.
8066 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
8067 rename to TARGET_MACHO_PICSYM_STUBS.
8068 * config/i386/i386.c (output_pic_addr_const): Likewise.
8069 * config/i386/i386.h Likewise.
8070 * config/rs6000/darwin.h: Likewise.
8071 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
8072 darwin_picsymbol_stubs.
8073
8074 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
8075
8076 * config/darwin.opt (prebind, noprebind, seglinkedit,
8077 noseglinkedit): Add RejectNegative.
8078
8079 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
8080
8081 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
8082 in my previous patch.
8083
8084 2019-06-16 Tom de Vries <tdevries@suse.de>
8085
8086 PR tree-optimization/89376
8087 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
8088
8089 2019-06-15 Maya Rashish <coypu@sdf.org>
8090
8091 * doc/invoke.texi (Spec Files): Update location of the
8092 Fortran spec file.
8093
8094 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
8095
8096 * doc/extend.texi (Common Function Attributes): Clarify
8097 no_sanitize. Fix grammar.
8098
8099 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
8100
8101 * tree-ssa-alias.c (alias_stats): Add
8102 nonoverlapping_component_refs_p_may_alias,
8103 nonoverlapping_component_refs_p_no_alias,
8104 nonoverlapping_component_refs_of_decl_p_may_alias,
8105 nonoverlapping_component_refs_of_decl_p_no_alias.
8106 (dump_alias_stats): Dump them.
8107 (nonoverlapping_component_refs_of_decl_p): Add stats.
8108 (nonoverlapping_component_refs_p): Add stats; do not stop on first
8109 ARRAY_REF.
8110
8111 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
8112
8113 * config/i386/i386.md (and<mode>3): Generate zero-extends for
8114 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
8115 only.
8116 (*anddi3_doubleword): Split before reload. Merge with
8117 anddi->zext pre-reload splitter.
8118 (*andndi3_doubleword): Split before reload.
8119 (*<code>di3_doubleword): Ditto.
8120 (*one_cmpldi2_doubleword): Ditto.
8121
8122 2019-06-15 Jakub Jelinek <jakub@redhat.com>
8123
8124 PR middle-end/90779
8125 * gimplify.c: Include omp-offload.h and context.h.
8126 (gimplify_bind_expr): Add "omp declare target" attributes
8127 to static block scope variables inside of target region or target
8128 functions.
8129
8130 2019-06-15 Tom de Vries <tdevries@suse.de>
8131
8132 PR tree-optimization/90009
8133 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
8134 Return NULL if bb contains IFN_UNIQUE.
8135
8136 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
8137
8138 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
8139 (un): New define_mode_attr.
8140 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
8141 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
8142 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
8143 merge into ...
8144 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
8145
8146 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
8147
8148 * config/darwin.opt: Add RejectNegative where needed, reorder
8149 and add minimal functional descriptions.
8150
8151 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
8152
8153 PR rtl-optimization/90765
8154 * calls.c (update_stack_alignment_for_call): New function.
8155 (expand_call): Call update_stack_alignment_for_call when
8156 outgoing parameter is passed in the stack.
8157 (emit_library_call_value_1): Likewise.
8158 * function.c (locate_and_pad_parm): Don't update
8159 stack_alignment_needed and preferred_stack_boundary.
8160
8161 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
8162
8163 PR target/90877
8164 * config/i386/i386-features.c
8165 (dimode_scalar_chain::compute_convert_gain): Replace
8166 mmxsse_to_integer with sse_to_integer.
8167 * config/i386/i386.c (ix86_register_move_cost): Verify that
8168 moves between MMX and non-MMX units require secondary memory.
8169 Correct costs of moves between SSE and integer units.
8170 * config/i386/i386.h (processor_costs): Rename cost of moving
8171 SSE register to integer to sse_to_integer. Rename cost of
8172
8173 2019-06-14 Matt Thomas <matt@3am-software.com>
8174 Matthew Green <mrg@eterna.com.au>
8175 Nick Hudson <skrll@netbsd.org>
8176 Maya Rashish <coypu@sdf.org>
8177 Richard Earnshaw <rearnsha@arm.com>
8178
8179 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
8180 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
8181 * config/arm/netbsd-eabi.h: New file.
8182 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
8183 redefining.
8184 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
8185 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
8186 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
8187 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
8188
8189 2019-06-14 Richard Biener <rguenther@suse.de>
8190
8191 * tree-loop-distribution.c (classify_partition): Return
8192 whether a reduction appeared in all partitions and do not
8193 stop builtin detection because of this.
8194 (distribute_loop): Sort a non-builtin partition last if
8195 there's a reduction in all partitions and make sure the
8196 partition prevailing as last is not a builtin.
8197
8198 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
8199
8200 PR ipa/90401
8201 * ipa-prop.c (add_to_agg_contents_list): New function.
8202 (clobber_by_agg_contents_list_p): Likewise.
8203 (extract_mem_content): Likewise.
8204 (get_place_in_agg_contents_list): Delete.
8205 (determine_known_aggregate_parts): Renamed from
8206 determine_locally_known_aggregate_parts. New parameter
8207 aa_walk_budget_p.
8208
8209 2019-06-13 Martin Sebor <msebor@redhat.com>
8210
8211 PR tree-optimization/90662
8212 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
8213 to the same type.
8214
8215 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
8216
8217 PR bootstrap/90873
8218 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
8219 dbase is not TARGET_MEM_REF.
8220
8221 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
8222
8223 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
8224 Update all uses.
8225 (and<mode>3): Use gen_extend_insn instead of indirect functions.
8226 Do not generate DImode extends for 32bit targets.
8227 (and->zext post-reload splitter): Use gen_extend_insn
8228 instead of indirect functions.
8229 (anddi->zext pre-reload splitter): New.
8230 (*zext<mode>_doubleword_and): Remove.
8231 (*zext<mode>_doubleword): Ditto.
8232 (*zextsi_doubleword): Dittto.
8233
8234 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
8235
8236 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
8237 Use gen_sub3_insn instead of indirect function.
8238 (ix86_expand_ashl_const): Use gen_add2_insn instead of
8239 indirect function.
8240 (ix86_adjust_counter): Ditto.
8241
8242 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
8243 Lijia He <helijia@linux.ibm.com>
8244
8245 PR tree-optimization/77820
8246 * tree-ssa-threadedge.c
8247 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
8248 function.
8249 (thread_across_edge): Add call to
8250 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
8251
8252 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
8253
8254 * config/darwin-driver.c (validate_macosx_version_min): New.
8255 (darwin_default_min_version): Cleanup and validate supplied version.
8256 (darwin_driver_init): Likewise and push cleaned version into opts.
8257
8258 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
8259
8260 PR tree-optimization/90869
8261 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
8262 converts in MEM_REF referencing decl rather than view converts
8263 from decl type to MEM_REF type.
8264
8265 2019-06-13 Richard Biener <rguenther@suse.de>
8266
8267 PR tree-optimization/90856
8268 * tree-sra.c (build_ref_for_model): Only use
8269 build_reconstructed_reference when address-spaces are the same.
8270
8271 2019-06-13 Jakub Jelinek <jakub@redhat.com>
8272
8273 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
8274 wrap ei variable name in the declaration in ()s.
8275 (nvptx_single): Actually use mode_label variable. Formatting fix.
8276
8277 2019-06-13 Richard Biener <rguenther@suse.de>
8278
8279 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
8280 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
8281 also return the condition stmt.
8282 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
8283 loop we can version and version that, reusing the loop version
8284 created by if-conversion instead of versioning again.
8285
8286 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
8287
8288 * gimple-loop-versioning.cc (prune_loop_conditions): Use
8289 may_contain_p.
8290 * tree-vrp (value_range_base::may_contain_p): Call into
8291 value_inside_range.
8292 (value_inside_range): Make private inside value_range_base class.
8293 Take min/max from *this.
8294 (range_includes_p): Remove.
8295 * tree-vrp.h (value_range_base): Add value_inside_range.
8296 (range_includes_p): Remove.
8297 (range_includes_zero_p): Call may_contain_p.
8298 * vr-values.c (compare_range_with_value): Same.
8299
8300 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
8301
8302 * doc/extend.texi (ARC Function Attributes): Update info.
8303
8304 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
8305
8306 PR tree-optimization/89713
8307 * doc/invoke.texi (-ffinite-loops): Document new option.
8308 * common.opt (-ffinite-loops): New option.
8309 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
8310 IFN_GOACC_LOOP calls as necessary.
8311 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
8312 is finite.
8313 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
8314 IFN_GOACC_LOOP call is not used.
8315 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
8316
8317 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8318
8319 PR target/88838
8320 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
8321 compare_type is not with Pmode size, we will create an IV with
8322 Pmode size with truncated use (i.e. converted to the correct type).
8323 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
8324 (vect_iv_limit_for_full_masking): New. Factored out of
8325 vect_set_loop_condition_masked.
8326 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
8327 (vect_iv_limit_for_full_masking): Declare.
8328
8329 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8330
8331 PR target/88834
8332 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
8333 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
8334 (get_alias_ptr_type_for_ptr_address): Likewise.
8335 (add_iv_candidate_for_use): Add scaled index candidate if useful.
8336 * tree-ssa-address.c (preferred_mem_scale_factor): New.
8337 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
8338 allow_reg_index_p.
8339
8340 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8341
8342 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
8343
8344 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
8345
8346 * common/config/pru/pru-common.c: New file.
8347 * config.gcc: Add PRU target.
8348 * config/pru/alu-zext.md: New file.
8349 * config/pru/constraints.md: New file.
8350 * config/pru/predicates.md: New file.
8351 * config/pru/pru-opts.h: New file.
8352 * config/pru/pru-passes.c: New file.
8353 * config/pru/pru-pragma.c: New file.
8354 * config/pru/pru-protos.h: New file.
8355 * config/pru/pru.c: New file.
8356 * config/pru/pru.h: New file.
8357 * config/pru/pru.md: New file.
8358 * config/pru/pru.opt: New file.
8359 * config/pru/t-pru: New file.
8360 * doc/extend.texi: Document PRU pragmas.
8361 * doc/invoke.texi: Document PRU-specific options.
8362 * doc/md.texi: Document PRU asm constraints.
8363
8364 2019-06-12 Martin Sebor <msebor@redhat.com>
8365
8366 PR middle-end/90676
8367 * tree-pretty-print.c (dump_mem_ref): New function. Include
8368 MEM_REF type in output when different size than operand.
8369 (dump_generic_node): Move code to dump_mem_ref and call it.
8370
8371 2019-06-12 Martin Sebor <msebor@redhat.com>
8372
8373 PR tree-optimization/90662
8374 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
8375 to arrays.
8376
8377 2019-06-12 Tom de Vries <tdevries@suse.de>
8378
8379 PR tree-optimization/90009
8380 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
8381
8382 2019-06-12 Martin Liska <mliska@suse.cz>
8383
8384 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
8385 the created map.
8386 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
8387 * mem-stats.h (mem_alloc_description::mem_alloc_description):
8388 Do not sanitize created maps.
8389
8390 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
8391
8392 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
8393 value_range::singleton_p.
8394 * tree-vrp.c (value_range_constant_singleton): Remove.
8395 * tree-vrp.h (value_range_constant_singleton): Remove.
8396 * vr-values.c (vr_values::singleton): Use
8397 value_range::singleton_p.
8398
8399 2019-06-12 Jakub Jelinek <jakub@redhat.com>
8400
8401 PR target/90811
8402 * cfgexpand.c (align_local_variable): Add really_expand argument,
8403 don't SET_DECL_ALIGN if it is false.
8404 (add_stack_var): Add really_expand argument, pass it through to
8405 align_local_variable.
8406 (expand_one_stack_var_1): Pass true as really_expand to
8407 align_local_variable.
8408 (expand_one_ssa_partition): Pass true as really_expand to
8409 add_stack_var.
8410 (expand_one_var): Pass really_expand through to add_stack_var.
8411
8412 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
8413
8414 * config/arm/iterators.md (VABAL): New int iterator.
8415 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
8416 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
8417 UNSPEC_VABAL_U values.
8418
8419 2019-06-12 Martin Liska <mliska@suse.cz>
8420
8421 * value-prof.c (stream_out_histogram_value): Only first value
8422 can't be negative.
8423
8424 2019-06-12 Jakub Jelinek <jakub@redhat.com>
8425
8426 PR c/90760
8427 * symtab.c (symtab_node::set_section): Allow being called on aliases
8428 as long as they aren't analyzed yet.
8429
8430 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
8431
8432 * config/mips/mips.c (mips_final_postscan_insn): Modify call
8433 to `mips_set_text_contents_type' to indicate whether a
8434 non-debug insn follows.
8435
8436 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
8437
8438 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
8439 enabling -mpcrel by default.
8440 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
8441 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
8442 that the test against -mcpu=future is done first. Then test if
8443 -mprefixed-addr is on for -mpcrel.
8444 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
8445
8446 2019-06-11 Jakub Jelinek <jakub@redhat.com>
8447
8448 PR target/90811
8449 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
8450 instead of and.u%d.
8451
8452 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
8453
8454 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
8455
8456 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
8457
8458 PR c++/90449 - add -Winaccessible-base option.
8459 * doc/invoke.texi (Winaccessible-base): Document.
8460
8461 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
8462
8463 PR tree-optimization/62041
8464 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
8465
8466 2019-06-11 Jason Merrill <jason@redhat.com>
8467
8468 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
8469 * tree.c (get_tree_code_name): Likewise.
8470 * print-tree.c (print_node): Only briefly print a node with an
8471 invalid code.
8472
8473 2019-06-11 Jakub Jelinek <jakub@redhat.com>
8474
8475 PR bootstrap/90819
8476 * trans-mem.c (tm_memopt_compute_available): Add assertion
8477 that blocks is not empty. Formatting fix.
8478
8479 2019-06-11 Martin Liska <mliska@suse.cz>
8480
8481 PR c++/87847
8482 * hash-table.h: Extend create_gcc, add one parameter
8483 that is passed into hash_table::hash_table.
8484
8485 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
8486
8487 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
8488 New prototype.
8489 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
8490 Emit clobber also for non-sse operations.
8491 (ix86_split_fp_absneg_operator): New function.
8492 * config/i386/i386.md (SSEMODEF): New mode iterator.
8493 (ssevecmodef): New mode attribute.
8494 (<code>tf2): Use absneg code iterator.
8495 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
8496 Add three-operand AVX alternatives.
8497 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
8498 Use absneg code iterator and X87MODEF mode iterator.
8499 (absneg fp_reg non-sse splitter): Call absneg code iterator
8500 and X87MODEF mode iterator.
8501 (absneg general_reg non-sse splitter): Use absneg code iterator
8502 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
8503 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
8504 code iterator. Add three-operand AVX alternative.
8505 (absneg sse_reg splitter): Use absneg code iterator
8506 and SSEMODEF mode iterator. Handle AVX operands.
8507 (absneg fp_reg splitter): Use absneg code iterator
8508 and MODEF mode iterator.
8509 (absneg general_reg splitter): Merge splitters using MODEF mode
8510 iterator. Use absneg code iterator. Call
8511 ix86_split_fp_absneg_operator.
8512 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
8513 Do not enable for non-sse modes before reload.
8514 (CSGNMODE): Remove.
8515 (CSGNVMODE): Ditto.
8516 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
8517 ssevecmodef mode attribute instaed of CSGNVMODE.
8518 (copysign<mode>3_const): Ditto.
8519 (copysign<mode>3_var): Ditto.
8520 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
8521 Use absneg code iterator. Simplify code using std::swap.
8522 * config/i386/predicates.md (absneg_operator): Remove.
8523
8524 2019-06-10 Martin Sebor <msebor@redhat.com>
8525
8526 * gimple-fold.c (get_range_strlen): Update comment that didn't
8527 make it into r267503 or related commits.
8528
8529 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
8530
8531 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
8532 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
8533
8534 2019-06-10 Jakub Jelinek <jakub@redhat.com>
8535
8536 * tree.def (OMP_SCAN): New tree code.
8537 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
8538 OMP_CLAUSE_EXCLUSIVE.
8539 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
8540 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
8541 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
8542 OMP_CLAUSE_{IN,EX}CLUSIVE.
8543 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
8544 * tree-nested.c (convert_nonlocal_reference_stmt,
8545 convert_local_reference_stmt, convert_gimple_call): Handle
8546 GIMPLE_OMP_SCAN.
8547 * tree-pretty-print.c (dump_omp_clause): Handle
8548 OMP_CLAUSE_{IN,EX}CLUSIVE.
8549 (dump_generic_node): Handle OMP_SCAN.
8550 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
8551 * gimple.h (gomp_scan): New type.
8552 (is_a_helper <gomp_scan *>::test,
8553 is_a_helper <const gomp_scan *>::test): New templates.
8554 (gimple_build_omp_scan): Declare.
8555 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
8556 gimple_omp_scan_set_clauses): New inline functions.
8557 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
8558 * gimple.c (gimple_build_omp_scan): New function.
8559 (gimple_copy): Handle GIMPLE_OMP_SCAN.
8560 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
8561 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
8562 GIMPLE_OMP_TASKGROUP.
8563 (dump_gimple_omp_scan): New function.
8564 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
8565 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
8566 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
8567 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
8568 (is_gimple_stmt): Handle OMP_SCAN.
8569 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
8570 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
8571 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
8572 mentioned in nested #pragma omp scan. Handle
8573 OMP_CLAUSE_{IN,EX}CLUSIVE.
8574 (gimplify_expr): Handle OMP_SCAN.
8575 * omp-low.c (check_omp_nesting_restrictions): For parent context,
8576 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
8577 simd constructs.
8578 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
8579 GIMPLE_OMP_SCAN.
8580
8581 2019-06-10 Martin Liska <mliska@suse.cz>
8582
8583 * ipa-cp.c (ignore_edge_p): New function.
8584 (build_toporder_info): Use it.
8585 * ipa-inline.c (ignore_edge_p): New function.
8586 (inline_small_functions): Use it.
8587 * ipa-pure-const.c (ignore_edge_for_nothrow):
8588 Verify opt_for_fn for caller and callee.
8589 (ignore_edge_for_pure_const): Likewise.
8590 * ipa-reference.c (ignore_edge_p): Extend to check
8591 for opt_for_fn.
8592 * ipa-utils.c (searchc): Refactor.
8593 * ipa-utils.h: Fix coding style.
8594
8595 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
8596
8597 * config/arc/arc.c (arc_rtx_costs): Update costs.
8598
8599 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
8600
8601 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
8602 (arc_split_ior): Likewise.
8603 (arc_check_mov_const): Likewise.
8604 (arc_split_mov_const): Likewise.
8605 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
8606 (arc_rtx_costs): Replace check Crr with Cax constraint.
8607 (prepare_move_operands): Cleanup, remove unused code.
8608 (arc_split_ior): New function.
8609 (arc_check_ior_const): Likewise.
8610 (arc_split_mov_const): Likewise.
8611 (arc_check_mov_const): Likewise.
8612 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
8613 in define_insn_and_split pattern.
8614 (iorsi3): Likewise.
8615 (mulsi3_v2): Add new matching variant.
8616 (andsi3_i): Cleanup pattern.
8617 (rotrsi3_cnt1): Update pattern.
8618 (rotrsi3_cnt8): New pattern.
8619 (ashlsi2_cnt8): Likewise.
8620 (ashlsi2_cnt16): Likewise.
8621 * config/arc/constraints.md (C0p): Update constraint.
8622 (Crr): Remove it.
8623 (C0x): New pattern.
8624 (Cax): New pattern.
8625
8626 2019-06-10 Martin Liska <mliska@suse.cz>
8627
8628 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
8629 Update coding style.
8630 (sem_item_optimizer::dump_cong_classes):
8631 Print how many items are in a non-singular class. Improve
8632 coding style.
8633
8634 2019-06-10 Martin Liska <mliska@suse.cz>
8635
8636 * value-prof.c (dump_histogram_value): Change dump format.
8637 (gimple_mod_subtract_transform): Remove legacy comment.
8638
8639 2019-06-10 Martin Liska <mliska@suse.cz>
8640
8641 * value-prof.c (dump_histogram_value): Print histogram values
8642 only if present.
8643
8644 2019-06-10 Martin Liska <mliska@suse.cz>
8645
8646 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
8647 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
8648 * ipa-profile.c (ipa_profile_generate_summary):
8649 Use get_most_common_single_value.
8650 * tree-profile.c (gimple_init_gcov_profiler):
8651 Instrument with __gcov_one_value_profiler_v2
8652 and __gcov_indirect_call_profiler_v4.
8653 * value-prof.c (dump_histogram_value):
8654 Print all values for HIST_TYPE_SINGLE_VALUE.
8655 (stream_out_histogram_value): Update assert for
8656 N values.
8657 (stream_in_histogram_value): Set number of
8658 counters for HIST_TYPE_SINGLE_VALUE.
8659 (get_most_common_single_value): New.
8660 (gimple_divmod_fixed_value_transform):
8661 Use get_most_common_single_value.
8662 (gimple_ic_transform): Likewise.
8663 (gimple_stringops_transform): Likewise.
8664 (gimple_find_values_to_profile): Set number
8665 of counters for HIST_TYPE_SINGLE_VALUE.
8666 * value-prof.h (get_most_common_single_value): New.
8667
8668 2019-06-10 Martin Liska <mliska@suse.cz>
8669
8670 * hash-map.h: Pass default value to hash_table ctor.
8671 * hash-table.h: Add default value to call of a ctor.
8672
8673 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
8674
8675 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
8676 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
8677
8678 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
8679
8680 PR target/90751
8681 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
8682 Call pa_output_function_label.
8683 (TARGET_ASM_FUNCTION_PROLOGUE): define.
8684 * config/pa/pa-protos.h (pa_output_function_label): Declare.
8685 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
8686 to declaration.
8687 (pa_linux_output_function_prologue): Declare.
8688 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
8689 (pa_output_function_label): New.
8690 (pa_output_function_prologue): Revise to use pa_output_function_label.
8691 (pa_linux_output_function_prologue): New.
8692 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
8693
8694 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
8695
8696 * tree-vrp.h (value_range_base::intersect): New.
8697 (value_range::intersect_helper): Move from here...
8698 (value_range_base::intersect_helper): ...to here.
8699 * tree-vrp.c (value_range::intersect_helper): Rename to...
8700 (value_range_base::intersect_helper): ...this, and rewrite to
8701 return a value instead of modifying THIS in place.
8702 Also, move equivalence handling...
8703 (value_range::intersect): ...here, while calling intersect_helper.
8704 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
8705 calling intersect.
8706 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
8707 Same.
8708 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
8709
8710 2019-06-07 Jakub Jelinek <jakub@redhat.com>
8711
8712 * Makefile.in (genprogerr): Add condmd.
8713 (genprog): Remove it here.
8714
8715 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
8716
8717 * doc/invoke.texi (AMD GCN Options): Add gfx906.
8718
8719 2019-06-07 Richard Biener <rguenther@suse.de>
8720
8721 PR debug/90574
8722 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
8723 that appear after user labels.
8724
8725 2019-06-07 Martin Liska <mliska@suse.cz>
8726
8727 * cselib.c (cselib_init): Disable hash table
8728 sanitization.
8729 * hash-set.h: Pass new default argument to m_table.
8730 * hash-table.c: Add global variable with hash table
8731 sanitization limit.
8732 * hash-table.h (Allocator>::hash_table): Add new argument
8733 to ctor.
8734 (hashtab_chk_error): New.
8735 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
8736 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
8737 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
8738
8739 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
8740
8741 * common.opt (flto-odr-type-merging): Ignore.
8742 * invoke.texi (-flto-odr-type-merging): Remove.
8743 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
8744 (can_be_vtable_hashed_p): Remove.
8745 (hash_odr_vtable): Remove.
8746 (odr_vtable_hasher::hash): Remove.
8747 (types_same_for_odr): Remove.
8748 (types_odr_comparable): Remove.
8749 (odr_vtable_hasher::equal): Remove.
8750 (odr_vtable_hash_type, odr_vtable_hash): Remove.
8751 (add_type_duplicate): Do not synchronize vtable and name hashtables.
8752 (get_odr_type): Do not use vtable hash.
8753 (dump_odr_type): Remove commented out code.
8754 (build_type_inheritance_graph): Do not allocate vtable hash.
8755 (rebuild_type_inheritance_graph): Do not delete vtable hash.
8756 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
8757 (odr_type_p): Likewise.
8758 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
8759 test.
8760
8761 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
8762
8763 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
8764 immediately after same_types_for_tbaa_p returns -1 and continue
8765 looking for possible exact match; if matching types are arrays
8766 watch for partial overlaps.
8767 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
8768 (indirect_refs_may_alias_p): Do type based disambiguation first;
8769 update comment.
8770
8771 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
8772
8773 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
8774
8775 2019-06-07 Martin Liska <mliska@suse.cz>
8776
8777 * doc/invoke.texi: Remove param.
8778 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
8779 Remove.
8780 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
8781 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
8782 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
8783 * profile.c (instrument_values): Remove
8784 HIST_TYPE_INDIR_CALL_TOPN.
8785 * tree-profile.c (init_ic_make_global_vars):
8786 Always build __gcov_indirect_call only.
8787 (gimple_init_gcov_profiler): Remove usage
8788 of PARAM_INDIR_CALL_TOPN_PROFILE.
8789 (gimple_gen_ic_profiler): Likewise.
8790 * value-prof.c (dump_histogram_value): Likewise.
8791 (stream_in_histogram_value): Likewise.
8792 (gimple_indirect_call_to_profile): Likewise.
8793 (gimple_find_values_to_profile): Likewise.
8794 * value-prof.h (enum hist_type): Likewise.
8795
8796 2019-06-07 Martin Liska <mliska@suse.cz>
8797
8798 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
8799 function.
8800
8801 2019-06-07 Martin Liska <mliska@suse.cz>
8802
8803 PR tree-optimization/78902
8804 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
8805 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
8806 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
8807 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
8808 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
8809 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
8810 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
8811 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
8812 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
8813 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
8814 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
8815 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
8816 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
8817 New.
8818 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
8819 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
8820 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
8821 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
8822 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
8823 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
8824 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
8825 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
8826 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
8827 warn_unused_result attribute.
8828 (BUILT_IN_STRDUP): Likewise.
8829 (BUILT_IN_STRNDUP): Likewise.
8830 (BUILT_IN_ALLOCA): Likewise.
8831 (BUILT_IN_CALLOC): Likewise.
8832 (BUILT_IN_MALLOC): Likewise.
8833 (BUILT_IN_REALLOC): Likewise.
8834
8835 2019-06-06 Jim Wilson <jimw@sifive.com>
8836
8837 PR target/89955
8838 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
8839 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
8840 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
8841
8842 2019-06-06 Martin Sebor <msebor@redhat.com>
8843
8844 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
8845 (handle_builtin_malloc): Remove trailing spaces.
8846 (handle_builtin_memset): Same.
8847 (handle_builtin_memcmp): Same.
8848 (compute_string_length): Same.
8849 (determine_min_objsize): Same.
8850 (handle_builtin_string_cmp): Same.
8851 (handle_char_store): Same. Break up excessively long line.
8852
8853 2019-06-06 Martin Jambor <mjambor@suse.cz>
8854
8855 * tree-sra.c (build_reconstructed_reference): Drop the alignment
8856 check.
8857
8858 2019-06-06 Martin Jambor <mjambor@suse.cz>
8859
8860 * tree-sra.c (struct access): New field grp_same_access_path.
8861 (dump_access): Dump it.
8862 (build_reconstructed_reference): New function.
8863 (build_ref_for_model): Use it if possible.
8864 (path_comparable_for_same_access): New function.
8865 (same_access_path_p): Likewise.
8866 (sort_and_splice_var_accesses): Set the new flag.
8867 (analyze_access_subtree): Likewise.
8868 (propagate_subaccesses_across_link): Propagate zero value of the new
8869 flag down the access tree.
8870
8871 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
8872
8873 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
8874 * config/gcn/gcn.opt (gpu_type): Add gfx906.
8875 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
8876 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
8877 Add gfx906.
8878
8879 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8880
8881 PR tree-optimization/90332
8882 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
8883 Handle VALS containing two vectors.
8884 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
8885 to...
8886 (@aarch64_combinez<mode>): ... This.
8887 (*aarch64_combinez_be<mode>): Rename to...
8888 (@aarch64_combinez_be<mode>): ... This.
8889 (vec_init<mode><Vhalf>): New define_expand.
8890 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
8891
8892 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8893
8894 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
8895 library functions only when not optimizing for size.
8896 (ashlsi3): Likewise.
8897 (ashrhi3): Likewise.
8898 (ashrsi3): Likewise.
8899 (lshrhi3): Likewise.
8900 (lshrsi3): Likewise.
8901
8902 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
8903
8904 PR rtl-optimization/88751
8905 * ira.c (ira): Use the number of the actually referenced registers
8906 when calculating the threshold.
8907
8908 2019-06-06 Jakub Jelinek <jakub@redhat.com>
8909
8910 * configure: Regenerate.
8911
8912 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8913
8914 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
8915 register if it is in memory, so the shift can be emulated with a rotate
8916 instruction.
8917 (ashrhi3): Likewise.
8918 (lshrhi3): Likewise.
8919
8920 2019-06-06 Martin Liska <mliska@suse.cz>
8921
8922 PR tree-optimization/87954
8923 * match.pd: Simplify mult where both arguments are 0 or 1.
8924
8925 2019-06-06 Richard Biener <rguenther@suse.de>
8926
8927 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
8928 put equivalences on UNDEFINED ranges.
8929 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
8930 Make sure to drop defs of stmts added during simplification
8931 to VARYING.
8932
8933 2019-06-06 Richard Biener <rguenther@suse.de>
8934
8935 * tree-ssa-structalias.c: Include tree-cfg.h.
8936 (make_heapvar): Do not make heap vars artificial.
8937 (find_func_aliases_for_builtin_call): Handle stack allocation
8938 functions.
8939 (find_func_aliases): Delay processing of simple enough returns
8940 in non-IPA mode.
8941 (set_uids_in_ptset): Adjust.
8942 (find_what_var_points_to): Likewise.
8943 (solve_constraints): Do not dump points-to sets here.
8944 (compute_points_to_sets): Post-process return statements,
8945 amending the escaped solution. Dump points-to sets afterwards.
8946 (ipa_pta_execute): Dump points-to sets.
8947
8948 2019-06-06 Martin Liska <mliska@suse.cz>
8949
8950 PR web/87933
8951 * doc/install.texi: Fix HTML headers and
8952 titles for 'Installing GCC' pages.
8953
8954 2019-06-06 Martin Liska <mliska@suse.cz>
8955
8956 * ipa-icf-gimple.h (dump_message_1): Remove.
8957 (dump_message): Likewise.
8958 (return_false_with_message_1): Print also file.
8959 (return_false_with_msg): Likewise.
8960 (return_with_result): Likewise.
8961 (return_with_debug): Likewise.
8962 * ipa-icf.c (sem_function::equals_private): Remove call
8963 to dump_message.
8964
8965 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
8966
8967 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
8968 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
8969 memory operand for it.
8970 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
8971
8972 2019-06-05 Martin Sebor <msebor@redhat.com>
8973
8974 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
8975 Adjust quoting and hyphenation.
8976 * convert.c (convert_to_real_1): Same.
8977 * gcc.c (driver_wrong_lang_callback): Same.
8978 (driver::handle_unrecognized_options): Same.
8979 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
8980 * opts-common.c (cmdline_handle_error): Same.
8981 (read_cmdline_option): Same.
8982 * opts-global.c (complain_wrong_lang): Same.
8983 (print_ignored_options): Same.
8984 (handle_common_deferred_options): Same.
8985 * pretty-print.h: Same.
8986 * print-rtl.c (debug_bb_n_slim): Same.
8987 * sched-rgn.c (make_pass_sched_fusion): Same.
8988 * tree-cfg.c (verify_gimple_assign_unary): Same.
8989 (verify_gimple_label): Same.
8990 * tree-ssa-operands.c (verify_ssa_operands): Same.
8991 * varasm.c (do_assemble_alias): Same.
8992 (assemble_alias): Same.
8993
8994 2019-06-05 Richard Henderson <rth@twiddle.net>
8995
8996 * config/alpha/alpha.c (direct_return): Move down after
8997 struct machine_function definition; use saved frame_size;
8998 return bool.
8999 (struct machine_function): Add sa_mask, sa_size, frame_size.
9000 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
9001 (alpha_compute_frame_layout): ... new function.
9002 (TARGET_COMPUTE_FRAME_LAYOUT): New.
9003 (alpha_initial_elimination_offset): Use saved sa_size.
9004 (alpha_vms_initial_elimination_offset): Likewise.
9005 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
9006 (alpha_expand_prologue): Use saved frame data. Merge integer
9007 and fp register save loops.
9008 (alpha_expand_epilogue): Likewise.
9009 (alpha_start_function): Use saved frame data.
9010 * config/alpha/alpha-protos.h (direct_return): Update.
9011 (alpha_sa_size): Remove.
9012
9013 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
9014
9015 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
9016 multiplication by a power-of-two value.
9017 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
9018 and turn the modulo operation into a masking operation.
9019
9020 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9021
9022 PR debug/90733
9023 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
9024 with VOIDmode inner operands.
9025
9026 2019-06-05 Richard Biener <rguenther@suse.de>
9027
9028 PR middle-end/90726
9029 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
9030 turn an expression graph into a tree.
9031
9032 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9033
9034 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
9035 member.
9036 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
9037 treat it like explicit monotonic schedule modifier.
9038 (expand_omp_for): Initialize has_lastprivate_conditional.
9039 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
9040 schedule modifier.
9041
9042 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
9043 references, lookup in in hash map MEM_REF operand instead of the
9044 MEM_REF itself.
9045 (lower_omp_1): When looking for lastprivate conditional assignments,
9046 handle MEM_REFs with REFERENCE_TYPE operands.
9047
9048 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
9049 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
9050 and references a VLA. Handle references to non-VLAs if is_simd
9051 all privatization clauses like reductions.
9052 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
9053 If omp_is_reference, use always omp simd arrays and set
9054 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
9055 fails, emit reference initialization.
9056
9057 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
9058
9059 PR target/89803
9060 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
9061 _mm_mask_fpclass_sd_mask): New intrinsics.
9062 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
9063 * config/i386/i386-builtin.def
9064 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
9065 New builtins.
9066 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
9067 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
9068 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
9069 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
9070 case QI_FTYPE_V2SF_INT): Ditto.
9071 * config/i386/sse.md
9072 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
9073 Extended to insnstructions with mask operands.
9074
9075 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9076
9077 * config/rs6000/constraints.md (define_register_constraint "wp"):
9078 Delete.
9079 (define_register_constraint "wq"): Delete.
9080 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9081 (rs6000_init_hard_regno_mode_ok): Adjust.
9082 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9083 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
9084 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
9085 (define_mode_attr VSa): Delete.
9086 (define_mode_attr VSisa): New.
9087 (rest of file): Adjust.
9088 * doc/md.texi (Machine Constraints): Adjust.
9089
9090 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9091
9092 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
9093 (define_attr "enabled"): Handle those new isa values.
9094
9095 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9096
9097 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
9098 (define_mode_attr VSr5): Delete.
9099 (define_mode_attr VStype_sqrt): Delete.
9100 (define_mode_iterator VSX_SPDP): Delete.
9101 (define_mode_attr VS_spdp_res): Delete.
9102 (define_mode_attr VS_spdp_insn): Delete.
9103 (define_mode_attr VS_spdp_type): Delete.
9104 (*vsx_sqrt<mode>2): Adjust.
9105 (vsx_<VS_spdp_insn>): Delete, split to...
9106 (vsx_xscvdpsp): ... this. New. And...
9107 (vsx_xvcvspdp): ... this. New. And...
9108 (vsx_xvcvdpsp): ... this. New.
9109
9110 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9111
9112 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
9113 and V2DF.
9114 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
9115 (rest of file): Adjust.
9116
9117 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9118
9119 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
9120 (vsx_extract_<mode>_var): Ditto.
9121
9122 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9123
9124 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
9125 with just "wa".
9126
9127 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9128
9129 * config/rs6000/constraints.md (define_register_constraint "ww"):
9130 Delete.
9131 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9132 (rs6000_init_hard_regno_mode_ok): Adjust.
9133 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9134 RS6000_CONSTRAINT_ww.
9135 * config/rs6000/rs6000.md: Adjust.
9136 * config/rs6000/vsx.md: Adjust.
9137 * doc/md.texi (Machine Constraints): Adjust.
9138
9139 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9140
9141 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
9142 (define_mode_attr sd): New.
9143 (define_mode_attr s): New.
9144 (define_mode_attr Ftrad): Delete.
9145 (define_mode_attr Fvsx): Delete.
9146 (define_mode_attr Fs): Delete.
9147 (rest of file): Use the new mode attributes.
9148 * config.rs6000/vsx.md: Use the new mode attributes.
9149
9150 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9151
9152 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
9153 with just "wa".
9154
9155 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9156
9157 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
9158 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
9159 used with VSX_B, VSX_D, or VSX_F, with just "wa".
9160
9161 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
9162
9163 PR target/78263
9164 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
9165 C++ with strict ANSI requirements.
9166
9167 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
9168
9169 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
9170 computations when step is 1.
9171
9172 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9173
9174 * config/rs6000/constraints.md (define_register_constraint "wf"):
9175 Delete.
9176 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9177 (rs6000_init_hard_regno_mode_ok): Adjust.
9178 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9179 RS6000_CONSTRAINT_wf.
9180 * config/rs6000/rs6000.md: Adjust.
9181 * config/rs6000/vsx.md: Adjust.
9182 * doc/md.texi (Machine Constraints): Adjust.
9183
9184 2019-06-04 Andrew Pinski <apinski@marvell.com>
9185
9186 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
9187 Fix ILP32 value.
9188
9189 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9190
9191 * config/rs6000/constraints.md (define_register_constraint "wd"):
9192 Delete.
9193 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9194 (rs6000_init_hard_regno_mode_ok): Adjust.
9195 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9196 RS6000_CONSTRAINT_wd.
9197 * config/rs6000/rs6000.md: Adjust.
9198 * config/rs6000/vsx.md: Adjust.
9199 * doc/md.texi (Machine Constraints): Adjust.
9200
9201 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9202
9203 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
9204 (rest of file): Adjust.
9205
9206 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9207
9208 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
9209 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
9210 (vsx_splat_<mode>_reg): Adjust.
9211
9212 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9213
9214 * config/rs6000/constraints.md (define_register_constraint "ws"):
9215 Delete.
9216 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9217 (rs6000_init_hard_regno_mode_ok): Adjust.
9218 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9219 RS6000_CONSTRAINT_ws.
9220 * config/rs6000/rs6000.md: Adjust.
9221 * config/rs6000/vsx.md: Adjust.
9222 * doc/md.texi (Machine Constraints): Adjust.
9223
9224 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9225
9226 * config/rs6000/constraints.md (define_register_constraint "wv"):
9227 Delete.
9228 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9229 (rs6000_init_hard_regno_mode_ok): Adjust.
9230 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9231 RS6000_CONSTRAINT_wv.
9232 * config/rs6000/rs6000.md: Adjust.
9233 * config/rs6000/vsx.md: Adjust.
9234 * doc/md.texi (Machine Constraints): Adjust.
9235
9236 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9237
9238 * config/rs6000/constraints.md (define_register_constraint "wi"):
9239 Delete.
9240 (define_register_constraint "wt"): Delete.
9241 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9242 (rs6000_init_hard_regno_mode_ok): Adjust.
9243 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9244 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
9245 * config/rs6000/rs6000.md: Adjust.
9246 * config/rs6000/vsx.md: Adjust.
9247 * doc/md.texi (Machine Constraints): Adjust.
9248
9249 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
9250
9251 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
9252 const.
9253 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
9254 default_elf_asm_output_external.
9255
9256 2019-06-04 Martin Liska <mliska@suse.cz>
9257
9258 * ipa-icf.c (INCLUDE_LIST): Remove.
9259 (sem_item_optimizer::execute): Remove call to init_wpa.
9260 * ipa-icf.h (init_wpa): Remove.
9261
9262 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9263
9264 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
9265 conditional on combined for simd.
9266 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
9267 member.
9268 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
9269 constructs, don't remove lastprivate_conditional_map, but instead set
9270 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
9271 to parent construct temporaries.
9272 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
9273 like !ctx->lastprivate_conditional_map.
9274 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
9275 use up->outer context instead of up.
9276 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
9277 gimple_omp_for_combined_p.
9278 (expand_omp_for_static_nochunk): Likewise.
9279 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
9280 probably moved over into expand_omp_for_generic rather than being copied
9281 there.
9282
9283 2019-06-04 Martin Liska <mliska@suse.cz>
9284
9285 * value-prof.c (dump_histogram_value): Fix typo.
9286 (gimple_mod_subtract_transform): Likewise.
9287
9288 2019-06-04 Richard Biener <rguenther@suse.de>
9289
9290 PR middle-end/90726
9291 * tree-chrec.c (chrec_contains_symbols): Add to visited.
9292 (tree_contains_chrecs): Likewise.
9293 (chrec_contains_symbols_defined_in_loop): Move here and avoid
9294 exponential behaivor from ...
9295 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
9296 ... here.
9297 (expression_expensive_p): Avoid exponential behavior and compute
9298 expanded size, rejecting any expansion.
9299 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
9300 (idx_contains_abnormal_ssa_name_p): Likewise.
9301 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
9302 (contains_abnormal_ssa_name_p): Simplify and use
9303 walk_tree_without_duplicates.
9304
9305 2019-06-04 Richard Biener <rguenther@suse.de>
9306
9307 PR tree-optimization/90738
9308 Revert
9309 2019-06-03 Richard Biener <rguenther@suse.de>
9310
9311 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
9312 full reference tree and record in ref->ref.
9313 (vn_reference_lookup_3): Pass in original ref to
9314 ao_ref_init_from_vn_reference.
9315 (vn_reference_lookup): Likewise.
9316 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
9317 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9318 Handle non-decl bases in the original reference.
9319
9320 2019-06-04 Martin Liska <mliska@suse.cz>
9321
9322 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
9323 number of references.
9324 (sem_item_optimizer::do_congruence_step):
9325 (sem_item_optimizer::worklist_push): Dump how references
9326 a class has.
9327 (sem_item_optimizer::worklist_pop): Use heap.
9328 (sem_item_optimizer::process_cong_reduction): Likewise.
9329 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
9330
9331 2019-06-04 Martin Liska <mliska@suse.cz>
9332
9333 * ipa-icf.h (struct sem_usage_pair_hash): New.
9334 (sem_usage_pair_hash::hash): Likewise.
9335 (sem_usage_pair_hash::equal): Likewise.
9336 (struct sem_usage_hash): Likewise.
9337 * ipa-icf.c (sem_item::sem_item): Initialize
9338 referenced_by_count.
9339 (sem_item::add_reference): Register a reference
9340 in ref_map and not in target->usages.
9341 (sem_item::setup): Remove initialization of
9342 dead vectors.
9343 (sem_item::~sem_item): Remove usage of dead vectors.
9344 (sem_item::dump): Remove dump of references.
9345 (sem_item_optimizer::sem_item_optimizer): Initialize
9346 m_references.
9347 (sem_item_optimizer::read_section): Remove useless
9348 dump.
9349 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
9350 (sem_item_optimizer::build_graph): Pass m_references
9351 to ::add_reference.
9352 (sem_item_optimizer::verify_classes): Remove usage of dead
9353 vectors.
9354 (sem_item_optimizer::traverse_congruence_split): Return true
9355 when a class is split.
9356 (sem_item_optimizer::do_congruence_step_for_index): Use
9357 hash_map for look up of (sem_item *, index). That brings
9358 significant speed up.
9359 (sem_item_optimizer::do_congruence_step): Return true
9360 when a split is done.
9361 (congruence_class::is_class_used): Use referenced_by_count.
9362
9363 2019-06-04 Alan Modra <amodra@gmail.com>
9364
9365 PR target/90689
9366 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
9367 error.
9368
9369 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
9370
9371 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
9372 * config/rs6000/rs6000.c (direct_move_p): Adjust.
9373 (rs6000_secondary_reload_simple_move): Adjust.
9374 (rs6000_opt_masks): Neuter the "mfpgpr" option.
9375 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
9376 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
9377 comment.
9378 (power6x): Adjust.
9379 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
9380 (floatunssi<mode>2_lfiwzx): Adjust.
9381 (fix_trunc<mode>si2_stfiwx): Adjust.
9382 (fixuns_trunc<mode>si2_stfiwx): Adjust.
9383 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
9384 (mfpgpr): Mark as deprecated.
9385 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
9386 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
9387 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
9388
9389 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
9390
9391 * config/rs6000/constraints.md (define_register_constraint "wg"):
9392 Delete.
9393 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9394 RS6000_CONSTRAINT_wg.
9395 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9396 (rs6000_init_hard_regno_mode_ok): Adjust.
9397 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
9398 Delete "wg" alternatives.
9399 * doc/md.texi (Machine Constraints): Adjust.
9400
9401 2019-06-03 Alan Modra <amodra@gmail.com>
9402
9403 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
9404 (get_uncond_jump_length): Assert length less than INT_MAX and
9405 non-negative.
9406
9407 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
9408
9409 PR middle-end/64242
9410 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
9411 block.
9412 (expand_builtin_nonlocal_goto): Likewise.
9413
9414 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
9415
9416 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
9417 (aarch64_asm_output_external): Declare.
9418 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
9419 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
9420 (aarch64_asm_output_alias): New.
9421 (aarch64_asm_output_external): New.
9422 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
9423 (ASM_OUTPUT_EXTERNAL): Define.
9424
9425 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
9426 * tree-vrp.h (value_range_base::nonzero_p): New.
9427 (value_range_base::set_nonnull): Rename to...
9428 (value_range_base::set_nonzero): ...this.
9429 (value_range_base::set_null): Rename to...
9430 (value_range_base::set_zero): ...this.
9431 (value_range::set_nonnull): Remove.
9432 (value_range::set_null): Remove.
9433 * tree-vrp.c (range_is_null): Remove.
9434 (range_is_nonnull): Remove.
9435 (extract_range_from_binary_expr): Use value_range_base::*zero_p
9436 instead of range_is_*null.
9437 (extract_range_from_unary_expr): Same.
9438 (value_range_base::set_nonnull): Rename to...
9439 (value_range_base::set_nonzero): ...this.
9440 (value_range::set_nonnull): Remove.
9441 (value_range_base::set_null): Rename to...
9442 (value_range_base::set_zero): ...this.
9443 (value_range::set_null): Remove.
9444 (extract_range_from_binary_expr): Rename set_*null uses to
9445 set_*zero.
9446 (extract_range_from_unary_expr): Same.
9447 (union_helper): Same.
9448 * vr-values.c (get_value_range): Use set_*zero instead of
9449 set_*null.
9450 (vr_values::extract_range_from_binary_expr): Same.
9451 (vr_values::extract_range_basic): Same.
9452
9453 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
9454
9455 PR driver/90684
9456 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
9457
9458 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9459
9460 * config/aarch64/iterators.md (MAX_OPP): New code attr.
9461 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
9462 Rename to...
9463 (aarch64_<su>abd<mode>_3): ... This.
9464 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
9465
9466 2019-06-03 Richard Biener <rguenther@suse.de>
9467
9468 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
9469 full reference tree and record in ref->ref.
9470 (vn_reference_lookup_3): Pass in original ref to
9471 ao_ref_init_from_vn_reference.
9472 (vn_reference_lookup): Likewise.
9473 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
9474 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9475 Handle non-decl bases in the original reference.
9476
9477 2019-06-03 Martin Liska <mliska@suse.cz>
9478
9479 * doc/generic.texi: Remove Java Trees.
9480
9481 2019-06-03 Martin Liska <mliska@suse.cz>
9482
9483 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
9484 returns 0 when operands are equal.
9485
9486 2019-06-03 Richard Biener <rguenther@suse.de>
9487
9488 PR tree-optimization/90716
9489 * tree-loop-distribution.c (destroy_loop): Process blocks in
9490 correct order.
9491
9492 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9493
9494 PR target/88837
9495 * vector-builder.h (vector_builder::count_dups): New method.
9496 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
9497 Declare prototype.
9498 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
9499 (vec_init<mode><Vel>): New pattern.
9500 * config/aarch64/aarch64.c (emit_insr): New function.
9501 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
9502 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
9503 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
9504 (aarch64_sve_expand_vector_init): Define two overloaded functions.
9505
9506 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9507
9508 PR tree-optimization/90681
9509 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
9510 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
9511 special case for SLP, but fail on non-groupped loads.
9512
9513 2019-06-03 Martin Liska <mliska@suse.cz>
9514
9515 * cfg.c (debug): Use TDF_DETAILS for debug and
9516 print edge info only once.
9517
9518 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
9519
9520 PR fortran/90539
9521 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
9522
9523 2019-06-01 Martin Sebor <msebor@redhat.com>
9524
9525 PR middle-end/90694
9526 * tree-pretty-print.c (dump_generic_node): Add parentheses.
9527
9528 2019-05-31 Jan Hubicka <jh@suse.cz>
9529
9530 * alias.c: Include ipa-utils.h.
9531 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
9532 * ipa-devirt.c (prevailing_odr_type): New.
9533 * ipa-utils.h (previaling_odr_type): Declare.
9534
9535 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
9536 Hongtao Liu <hongtao.liu@intel.com>
9537
9538 PR target/89355
9539 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
9540 NOTE_INSN_DELETED_LABEL check.
9541
9542 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
9543 Robert Suchanek <robert.suchanek@mips.com>
9544
9545 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
9546 and 3rd operands of the fmadd/fmsub/maddv builtin.
9547
9548 2019-05-31 Jakub Jelinek <jakub@redhat.com>
9549
9550 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
9551 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
9552 on OMP_SIMD if not nested inside of worksharing loop that also has
9553 lastprivate conditional clause for the same decl.
9554 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
9555 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
9556 on simd.
9557 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
9558 on simd construct.
9559 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
9560 on simd construct.
9561 (lower_lastprivate_clauses): Likewise.
9562 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
9563 calling lower_rec_input_clauses.
9564 (lower_omp_for): Likewise.
9565 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
9566 clause on simd construct.
9567 * omp-expand.c (expand_omp_simd): Initialize cond_var if
9568 OMP_CLAUSE__CONDTEMP_ clause is present.
9569
9570 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
9571 ivar and lvar.
9572
9573 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
9574
9575 PR c/43673
9576 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
9577 TEX_D32, TEX_D64 or TEX_D128.
9578
9579 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
9580
9581 * match.pd (~(vec?cst1:cst2)): New transformation.
9582
9583 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
9584
9585 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
9586 ((size_t)(A /[ex] B) CMP C): New transformation.
9587
9588 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
9589
9590 * doc/md.texi: Document define_insn_and_rewrite.
9591 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
9592 * gensupport.c (queue_elem): Update comment.
9593 (replace_operands_with_dups): New function.
9594 (gen_rewrite_sequence): Likewise.
9595 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
9596 * read-rtl.c (apply_subst_iterator): Likewise.
9597 (add_condition_to_rtx, named_rtx_p): Likewise.
9598 (rtx_reader::read_rtx_operand): Likewise.
9599 * config/aarch64/aarch64-sve.md
9600 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
9601 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
9602 define_insn_and_rewrite.
9603 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
9604 Remove separate define_split.
9605
9606 2019-05-31 Jan Hubicka <jh@suse.cz>
9607
9608 * tree-ssa-alias.c (type_has_components_p): New function.
9609 (aliasing_component_refs_p): Use it.
9610
9611 2019-05-31 Martin Liska <mliska@suse.cz>
9612
9613 * gdbhooks.py: Add const_tree to TreePrinter.
9614
9615 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
9616
9617 PR debug/86964
9618 * common.opt (feliminate-unused-debug-symbols): Enable by default.
9619 * doc/invoke.texi (Debugging Options): Document new default of
9620 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
9621
9622 2019-05-31 Jakub Jelinek <jakub@redhat.com>
9623
9624 PR tree-optimization/90671
9625 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
9626 template_block used to be empty on the first call, don't use
9627 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
9628 seq with bb_seq and set it with set_bb_seq.
9629
9630 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
9631
9632 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
9633
9634 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
9635 Michael Meissner <meissner@linux.ibm.com>
9636
9637 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
9638 (prefixed_mem_operand): Likewise.
9639 (non_prefixed_mem_operand): Likewise.
9640 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
9641 prototype.
9642 * config/rs6000/rs6000.c (print_operand_address): Handle
9643 PC-relative addresses.
9644 (mode_supports_prefixed_address_p): New function.
9645 (rs6000_prefixed_address): New function.
9646 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
9647 (SYMBOL_REF_PCREL_P): Likewise.
9648
9649 2019-05-30 Jakub Jelinek <jakub@redhat.com>
9650
9651 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
9652 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
9653 (gimplify_omp_for): If worksharing loop with lastprivate conditional
9654 is nested inside of parallel region, add _condtemp_ clause to both.
9655 * tree-nested.c (convert_nonlocal_omp_clauses,
9656 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
9657 assertion failure.
9658 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
9659 member.
9660 * omp-general.c (omp_extract_for_data): Compute it.
9661 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
9662 (lower_rec_input_clauses): Likewise.
9663 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
9664 clause is already present, just add one further one after it.
9665 (lower_lastprivate_clauses): Handle cond_ptr with array type.
9666 (lower_send_shared_vars): Clear _condtemp_ vars.
9667 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
9668 or section or taskgroup.
9669 * omp-expand.c (determine_parallel_type): Disallow combining only if
9670 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
9671 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
9672 (expand_omp_for_generic, expand_omp_for_static_nochunk,
9673 expand_omp_for_static_chunk, expand_omp_for): Use
9674 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
9675 determine if a special set of API routines are needed and if condtemp
9676 needs to be initialized, while always initialize cond_var if
9677 fd->lastprivate_conditional is non-zero.
9678
9679 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
9680 Michael Meissner <meissner@linux.ibm.com>
9681
9682 * config/rs6000/constraints.md (eI): New constraint.
9683 * config/rs6000/predicates.md (cint34_operand): New predicate.
9684 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
9685 (SIGNED_34BIT_OFFSET_P): Likewise.
9686 * doc/md.texi (eI): Document constraint.
9687
9688 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
9689
9690 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
9691
9692 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
9693 Michael Meissner <meissner@linux.ibm.com>
9694
9695 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
9696 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
9697 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
9698 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
9699 (OTHER_FUTURE_MASKS): Likewise.
9700 (POWERPC_MASKS): Likewise.
9701 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
9702 specified without -mprefixed-addr or -mcpu=future. Error if
9703 -mprefixed-addr is specified without -mcpu=future.
9704 (rs6000_opt_masks): Add entry for prefixed-addr.
9705 * rs6000.opt (mprefixed-addr): New option.
9706
9707 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
9708
9709 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
9710 cfun->is_thunk check.
9711
9712 2019-05-30 Jakub Jelinek <jakub@redhat.com>
9713
9714 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
9715 to length.
9716
9717 2019-05-30 Martin Liska <mliska@suse.cz>
9718
9719 * gdbinit.in: Fix 'ptc' command. Add trt
9720 that prints TREE_TYPE($).
9721
9722 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
9723 Alan Modra <amodra@gmail.com>
9724
9725 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
9726 calls here...
9727 (rs6000_indirect_call_template_1): ...and here.
9728 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
9729 plt16_ha, plt16_lo, mtctr indirect calls. Use
9730 rs6000_pltseq_enum.
9731 (rs6000_decl_ok_for_sibcall): New function.
9732 (rs6000_function_ok_for_sibcall): Refactor.
9733 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
9734 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
9735 when pcrel. Reorganize.
9736 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
9737 * rs6000.h (rs6000_pltseq_enum): New enum.
9738 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
9739 (*pltseq_tocsave): Use rs6000_pltseq_enum.
9740 (*pltseq_plt16_ha): Likewise.
9741 (*pltseq_plt16_lo): Likewise.
9742 (*pltseq_mtctr): Likewise.
9743 (*pltseq_plt_pcrel): New insn.
9744 (*call_local_aix): Handle @notoc calls.
9745 (*call_value_local_aix): Likewise.
9746 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
9747 (*call_value_nonlocal_aix): Likewise.
9748 (*call_indirect_pcrel): New insn.
9749 (*call_value_indirect_pcrel): Likewise.
9750
9751 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
9752
9753 * config/i386/sse.md (*save_multiple<mode>): Rename from
9754 save_multiple<mode>.
9755 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
9756 (*restore_multiple_and_return<mode>): Rename from
9757 restore_multiple_and_return<mode>.
9758 (*restore_multiple_leave_return<mode>): Rename from
9759 restore_multiple_leave_return<mode>.
9760
9761 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
9762
9763 * config.gcc (rx-*-linux*): New target.
9764 * config/rx/elf.opt: New file.
9765 * config/rx/linux.h: Likewise.
9766 * config/rx/t-linux: Likewise.
9767 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
9768 make it zero.
9769 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
9770 (ASM_APP_OFF): Likewise.
9771 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
9772 moved elsewhere.
9773
9774 2019-05-29 Jan Hubicka <jh@suse.cz>
9775
9776 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
9777 variants are pointer equivalent.
9778
9779 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9780
9781 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
9782 * config/aarch64/aarch64-sve2.md: New file.
9783 (<u>avg<mode>3_floor): New pattern.
9784 (<u>avg<mode>3_ceil): Likewise.
9785 (*<sur>h<addsub><mode>): Likewise.
9786 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
9787 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
9788
9789 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9790
9791 PR bootstrap/90543
9792 * optc-save-gen.awk: In cl_optimization_print, use correct condition
9793 for var_opt_string printing. In cl_optimization_print_diff, print
9794 (null) instead of invoking undefined behavior if one of the
9795 var_opt_string pointers is NULL and use && instead of first || in the
9796 guarding condition. For var_target_other options, handle const char *
9797 target variables similarly to const char * optimize node variables.
9798
9799 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
9800
9801 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
9802 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
9803 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
9804 Add autib1716 and pacib1716 initialisation.
9805 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
9806 for autib1716 and pacib1716.
9807 * config/aarch64/aarch64-protos.h (aarch64_key_type,
9808 aarch64_post_cfi_startproc): Define.
9809 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
9810 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
9811 aarch64_handle_pac_ret_protection): Set default sign key to A.
9812 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
9813 aarch64_expand_prologue): Add check for b-key.
9814 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
9815 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
9816 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
9817 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
9818 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
9819 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
9820 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9821 * config/aarch64/aarch64.md (do_return): Add check for b-key.
9822 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
9823 pauth_hint_num_a with pauth_hint_num.
9824 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
9825 pauth_hint_num_a with pauth_hint_num.
9826 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
9827 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
9828 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9829 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
9830 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
9831 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
9832 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
9833 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9834 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
9835 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
9836 UNSPEC_AUTIA1716 respectively.
9837 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
9838 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
9839 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
9840 * doc/invoke.texi (-mbranch-protection): Add b-key type.
9841 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
9842 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
9843
9844 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9845
9846 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
9847 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
9848 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
9849 explicit clause on combined parallel into implicit shared clause.
9850 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
9851 and firstprivate if the decl has one too from combined parallel to
9852 the worksharing construct.
9853
9854 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
9855 Michael Meissner <meissner@linux.ibm.com>
9856
9857 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
9858
9859 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
9860
9861 * rtl.h (LABEL_REF_P): New #define.
9862
9863 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
9864
9865 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
9866
9867 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9868
9869 * internal-fn.c: Marked mask_load_direct as vectorizable.
9870 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
9871 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
9872 combined even if masks different with allow_slp_p param.
9873 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
9874 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
9875 dissolve SLP-only vectorizable groups when SLP has been discarded.
9876 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
9877 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
9878 masks.
9879 (vect_build_slp_tree_1): Fixed comment typo.
9880 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
9881 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
9882 loads for SLP only.
9883 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
9884 vectorizable.
9885 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
9886
9887 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9888
9889 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
9890 Remove obsolete use_thunk reference.
9891 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
9892 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9893 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
9894 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
9895 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
9896 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9897 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9898 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
9899 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
9900
9901 2019-05-28 Nathan Sidwell <nathan@acm.org>
9902
9903 * tree.h (IDENTIFIER_ANON_P): New.
9904 (anon_aggrname_format, anon_aggname_p): Don't declare.
9905 (make_anon_name): Declare.
9906 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
9907 (hash_tree): Likewise.
9908 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
9909 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
9910 (anon_cnt, make_anon_name): New.
9911
9912 2019-05-28 Martin Liska <mliska@suse.cz>
9913
9914 PR other/90315
9915 * opts-global.c (decode_options): Print help for all
9916 help_option_arguments.
9917 * opts.c (print_help): Add new argument.
9918 (common_handle_option): Remember all values into
9919 help_option_arguments.
9920 * opts.h (print_help): Add new argument.
9921
9922 2019-05-28 Martin Liska <mliska@suse.cz>
9923
9924 PR ipa/90555
9925 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
9926 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
9927 (func_checker::compare_bb): Call compare_loops.
9928
9929 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9930
9931 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
9932 on sections construct.
9933 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
9934 construct.
9935 (lower_omp_sections): Handle lastprivate conditional.
9936 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
9937 lastprivate_conditional_map.
9938 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
9939
9940 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
9941 critical, taskgroup and section regions when looking for a region
9942 with non-NULL lastprivate_conditional_map.
9943
9944 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
9945
9946 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
9947 (*ix86_gen_sub3): Ditto.
9948 (*ix86_gen_sub3_carry): Ditto.
9949 (*ix86_gen_one_cmpl2): Ditto.
9950 (*ix86_gen_andsp): Ditto.
9951 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
9952 (gen_and2_insn): New static function.
9953 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
9954 Use gen_add3_insn instead of ix86_gen_add3.
9955 (ix86_expand_split_stack_prologue): Use gen_add2_insn
9956 instead of ix86_gen_add3.
9957 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
9958 Use gen_sub3_insn instead of ix86_gen_sub3.
9959 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
9960 instead of ix86_gen_add3.
9961 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
9962 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
9963 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
9964 * config/i386/i386-options.c (ix86_option_override_internal):
9965 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
9966 ix86_gen_one_cmpl2 and ix86_gen_andsp.
9967
9968 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
9969
9970 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
9971 and DW_OP_GNU_const_index opcodes.
9972
9973 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
9974
9975 * config/i386/i386.h (STACK_SIZE_MODE): Define.
9976
9977 2019-05-27 Richard Biener <rguenther@suse.de>
9978
9979 PR tree-optimization/90637
9980 * tree-ssa-sink.c (statement_sink_location): Honor the
9981 computed sink location for single-uses.
9982
9983 2019-05-27 Richard Biener <rguenther@suse.de>
9984
9985 PR middle-end/90610
9986 * match.pd (vec_perm): Avoid clobbering op0 when not generating
9987 a bit-insert.
9988
9989 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9990
9991 * config/i386/i386.md (@sub<mode>3_carry): Rename
9992 from sub<mode>3_carry.
9993 (@leave_<mode>): New expander.
9994 (*leave): Rename from leave.
9995 (*leave_rex64): Rename from leave_rex64.
9996 (@monitorx_<mode>): Rename from monitorx_<mode>.
9997 (@clzero_<mode>): Rename from clzero_<mode>.
9998 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
9999 from sse3_monitor_<mode>.
10000 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
10001 (*ix86_gen_leave): Ditto.
10002 (*ix86_gen_monitor): Ditto.
10003 (*ix86_gen_monitorx): Ditto.
10004 (*ix86_gen_clzero): Ditto.
10005 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
10006 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
10007 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
10008 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
10009 Use gen_sse3_monitor instead of ix86_gen_monitor.
10010 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
10011 instead of ix86_gen_monitorx.
10012 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
10013 instead of ix86_gen_clzero.
10014 * config/i386/i386-options.c (ix86_option_override_internal):
10015 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
10016 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
10017
10018 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10019
10020 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
10021 Rename from tls_global_dynamic_64_<mode>.
10022 (@tls_local_dynamic_base_64_<mode>): Rename from
10023 tls_local_dynamic_base_64_<mode>.
10024 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
10025 Remove indirect function.
10026 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
10027 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
10028 instead of ix86_gen_tls_global_dynamic_64.
10029 Use gen_tls_local_dynamic_base_64 instead of
10030 ix86_gen_tls_local_dynamic_base_64.
10031 * config/i386/i386-options.c (ix86_option_override_internal):
10032 Do not initialize ix86_gen_tls_global_dynamic_64 and
10033 ix86_gen_tls_local_dynamic_base_64.
10034
10035 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10036
10037 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
10038 Rename from pro_epilogue_adjust_stack_<mode>_add.
10039 (@pro_epilogue_adjust_stack_sub_<mode>)
10040 Rename from pro_epilogue_adjust_stack_<mode>_sub.
10041 (@allocate_stack_worker_probe_<mode>):
10042 Rename from allocate_stack_worker_probe_<mode>.
10043 (allocate_stack): Use gen_allocate_stack_worker_probe.
10044 (probe_stack): Use gen_probe_stack_1.
10045 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
10046 (@adjust_stack_and_probe_<mode>): Rename from
10047 adjust_stack_and_probe<mode>.
10048 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
10049 (stack_protect_set): Use gen_stack_protect_set_1.
10050 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
10051 (stack_protect_test): Use gen_stack_protect_test_1.
10052 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
10053 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
10054 Remove indirect function.
10055 (*ix86_gen_adjust_stack_and_probe): Ditto.
10056 (*ix86_gen_probe_stack_range): Ditto.
10057 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
10058 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
10059 (ix86_adjust_stack_and_probe_stack_clash): Use
10060 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
10061 (ix86_adjust_stack_and_probe): Ditto.
10062 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
10063 of ix86_gen_probe_stack_range.
10064 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
10065 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
10066 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
10067 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
10068 CODE_FOR_stack_protect_test_{si,di}.
10069 * config/i386/i386-options.c (ix86_option_override_internal):
10070 Do not initialize ix86_gen_allocate_stack_worker,
10071 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
10072
10073 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
10074
10075 * doc/invoke.texi (Link Options): Many editorial changes around
10076 -flinker-output.
10077
10078 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10079
10080 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
10081 pre-Solaris 11 referene and most Studio compiler details.
10082
10083 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
10084
10085 PR target/90530
10086 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
10087 DImode to SImode in floating-point registers on 64-bit target.
10088 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
10089 register_operand in xmpyu patterns.
10090
10091 2019-05-24 Jakub Jelinek <jakub@redhat.com>
10092
10093 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
10094 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
10095 OMP_CLAUSE__REDUCTEMP_.
10096 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10097 OMP_CLAUSE__CONDTEMP_.
10098 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
10099 * tree-pretty-print.c (dump_omp_clause): Likewise.
10100 * tree-nested.c (convert_nonlocal_omp_clauses,
10101 convert_local_omp_clauses): Likewise.
10102 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
10103 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
10104 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
10105 on OMP_FOR.
10106 (gimplify_omp_for): Warn and disable conditional modifier from
10107 lastprivate on loop iterators.
10108 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
10109 member.
10110 * omp-general.c (omp_extract_for_data): Initialize it.
10111 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
10112 member.
10113 (delete_omp_context): Delete it.
10114 (lower_lastprivate_conditional_clauses): New function.
10115 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
10116 handle lastprivate conditional clauses.
10117 (lower_reduction_clauses): Add CLIST argument, emit it into
10118 the critical section if any.
10119 (lower_omp_sections): Adjust lower_lastprivate_clauses and
10120 lower_reduction_clauses callers.
10121 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
10122 to lower_lastprivate_clauses.
10123 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
10124 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
10125 clist into a critical section if not emitted there already by
10126 lower_reduction_clauses.
10127 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
10128 callers.
10129 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
10130 conditional variables.
10131 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
10132 clause is present.
10133 (expand_omp_for_generic, expand_omp_for_static_nochunk,
10134 expand_omp_for_static_chunk): Handle lastprivate conditional.
10135 (expand_omp_for): Handle fd.lastprivate_conditional like
10136 fd.have_reductemp.
10137
10138 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
10139
10140 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
10141 kernel does not exit cleanly.
10142 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
10143
10144 2019-05-24 Jason Merrill <jason@redhat.com>
10145
10146 Revert:
10147 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
10148
10149 2019-05-24 Richard Biener <rguenther@suse.de>
10150
10151 PR testsuite/90607
10152 * tree-loop-distribution.c (struct partition): Add location
10153 member.
10154 (partition_alloc): Initialize all fields.
10155 (generate_memset_builtin): Use the location recorded in the
10156 partition for the generated call.
10157 (generate_memcpy_builtin): Likewise.
10158 (classify_partition): Record the location of a single store
10159 as location for the partition.
10160
10161 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
10162
10163 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
10164 for lo-part.
10165
10166 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
10167
10168 PR target/90588
10169 * common/config/aarch64/aarch64-common.c
10170 (aarch64_rewrite_selected_cpu): Change local temporary variable
10171 type from unsigned long to uint64_t.
10172 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
10173 aarch64_get_extension_string_for_isa_flags): Change declaration to
10174 match new definition by replacing unsigned long with uint64_t.
10175
10176 2019-05-24 Jakub Jelinek <jakub@redhat.com>
10177
10178 PR target/90568
10179 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
10180 gen_attr_type just once instead of 4-7 times. Formatting fixes.
10181 Handle stack_protect_test_<mode> codegen similarly to corresponding
10182 sub instruction.
10183
10184 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
10185
10186 * config/i386/darwin.h: Reject -mfentry*.
10187 * doc/sourcebuild.texi: Document mfentry target support.
10188
10189 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
10190
10191 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
10192 Rename to rs6000_global_entry_point_prologue_needed_p. Return
10193 false for PC-relative functions.
10194 (rs6000_output_function_prologue): Change called function name to
10195 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
10196 name,1" for PC-relative functions.
10197 (rs6000_elf_declare_function_name): Change called function name to
10198 rs6000_global_entry_point_prologue_needed_p.
10199
10200 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
10201
10202 PR target/90552
10203 * config/i386/i386.c (gen_rtx_cost):
10204 Use ix86_tune_cost instead of ix86_cost.
10205
10206 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
10207 Michael Meissner <meissner@linux.ibm.com>
10208 Segher Boessenkool <segher@kernel.crashing.org>
10209
10210 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
10211 OPTION_MASK_PCREL.
10212 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
10213 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
10214 (rs6000_fndecl_pcrel_p): Likewise.
10215 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
10216 error if -mpcrel is requested without -mcpu=future.
10217 (rs6000_opt_masks): Add entry for pcrel.
10218 (rs6000_fndecl_pcrel_p): New function.
10219 (rs6000_pcrel_p): Likewise.
10220 * config/rs6000/rs6000.opt (mpcrel): New option.
10221 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
10222
10223 2019-05-23 Jan Hubicka <jh@suse.cz>
10224 Martin Liska <mliska@suse.cz>
10225
10226 PR tree-optimization/90576
10227 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
10228 poly_int_tree_p.
10229 (aliasing_component_refs_p): Fix three way size compare conditional;
10230 give up earlier in case we can not decide on equivalence.
10231
10232 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
10233 Michael Meissner <meissner@linux.ibm.com>
10234 Segher Boessenkool <segher@kernel.crashing.org>
10235
10236 * config.gcc: Add future cpu.
10237 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
10238 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
10239 #define.
10240 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
10241 (RS6000_CPU): New instantiation for future cpu.
10242 * config/rs6000/rs6000-opts.h (enum processor_type): Add
10243 PROCESSOR_FUTURE.
10244 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
10245 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
10246 * config/rs6000/rs6000-tables.opt: Regenerate.
10247 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
10248 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
10249 (rs6000_machine_from_flags): Handle future cpu.
10250 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
10251 PROCESSOR_POWER9 for now.
10252 (rs6000_adjust_cost): Likewise.
10253 (rs6000_issue_rate): Likewise.
10254 (rs6000_register_move_cost): Likewise.
10255 (rs6000_opt_masks): Add entry for future.
10256 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
10257 (MASK_FUTURE): New #define.
10258 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
10259 * config/rs6000/rs6000.opt (mfuture): New target option.
10260 * doc/invoke.texi (mcpu): Add future cpu.
10261
10262 2019-05-23 Martin Liska <mliska@suse.cz>
10263
10264 PR c++/90587
10265 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
10266 operation points to a temporary (pointed via tree_to_wide_ref)
10267 that is out of scope after the &.
10268
10269 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
10270
10271 PR c++/90592
10272 * doc/extend.texi (Function Names): Add missing word.
10273
10274 2019-05-23 Richard Biener <rguenther@suse.de>
10275
10276 PR tree-optimization/88440
10277 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
10278 at -O[2s]+.
10279 * tree-loop-distribution.c (generate_memset_builtin): Fold the
10280 generated call.
10281 (generate_memcpy_builtin): Likewise.
10282 (distribute_loop): Pass in whether to only distribute patterns.
10283 (prepare_perfect_loop_nest): Also allow size optimization.
10284 (pass_loop_distribution::execute): When optimizing a loop
10285 nest for size allow pattern replacement.
10286
10287 2019-05-23 Jakub Jelinek <jakub@redhat.com>
10288
10289 PR target/90568
10290 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
10291 of xor.
10292
10293 2019-05-23 Martin Liska <mliska@suse.cz>
10294
10295 PR sanitizer/90570
10296 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
10297 expression similarly to gimplify_decl_expr.
10298
10299 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10300
10301 * cse.c (cse_dump_path): s/dump_file/f.
10302
10303 2019-05-22 David Malcolm <dmalcolm@redhat.com>
10304
10305 PR c++/90462
10306 * diagnostic-format-json.cc: Include "selftest.h".
10307 (json_from_expanded_location): Only add "file" key for non-NULL
10308 file strings.
10309 (json_from_location_range): Don't add "start" and "finish"
10310 children if they are UNKNOWN_LOCATION.
10311 (selftest::test_unknown_location): New selftest.
10312 (selftest::test_bad_endpoints): New selftest.
10313 (selftest::diagnostic_format_json_cc_tests): New function.
10314 * json.cc (json::object::get): New function.
10315 (selftest::test_object_get): New selftest.
10316 (selftest::json_cc_tests): Call it.
10317 * json.h (json::object::get): New decl.
10318 * selftest-run-tests.c (selftest::run_tests): Call
10319 selftest::diagnostic_format_json_cc_tests.
10320 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
10321 decl.
10322
10323 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
10324 Andrew Stubbs <amd@codesourcery.com>
10325
10326 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
10327 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
10328 (kernel): Rename to...
10329 (main_kernel): ... this.
10330 (load_image): Load _init_array and _fini_array kernels.
10331 (run): Add argument for kernel to run.
10332 (main): Run init_array_kernel before main_kernel, and
10333 fini_array_kernel after.
10334 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
10335 amdgpu_hsa_kernel attribute on functions.
10336 (gcn_disable_constructors): Delete.
10337 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
10338 * config/gcn/crt0.c (size_t): Define.
10339 (_init_array, _fini_array): New.
10340 (__preinit_array_start, __preinit_array_end,
10341 __init_array_start, __init_array_end,
10342 __fini_array_start, __fini_array_end): Declare weak references.
10343
10344 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
10345
10346 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
10347
10348 2019-05-22 Jason Merrill <jason@redhat.com>
10349
10350 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
10351
10352 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
10353
10354 PR target/88483
10355 * config/i386/i386-options.c (ix86_init_machine_status): Set
10356 stack_frame_required to true.
10357 * config/i386/i386.c (ix86_get_frame_size): New function.
10358 (ix86_frame_pointer_required): Replace get_frame_size with
10359 ix86_get_frame_size.
10360 (ix86_compute_frame_layout): Likewise.
10361 (ix86_find_max_used_stack_alignment): Changed to void. Set
10362 stack_frame_required.
10363 (ix86_finalize_stack_frame_flags): Always call
10364 ix86_find_max_used_stack_alignment. Replace get_frame_size with
10365 ix86_get_frame_size.
10366 * config/i386/i386.h (machine_function): Add stack_frame_required.
10367
10368 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
10369
10370 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
10371
10372 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
10373
10374 * common/config/aarch64/aarch64-common.c
10375 (struct aarch64_option_extension, struct processor_name_to_arch,
10376 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
10377 aarch64_contains_opt,
10378 aarch64_get_extension_string_for_isa_flags): Change type of
10379 variables storing flags to uint64_t.
10380 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
10381 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
10382 * config/aarch64/aarch64.c (struct processor,
10383 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
10384 aarch64_validate_march, aarch64_override_options,
10385 aarch64_option_print, aarch64_handle_attr_isa_flags,
10386 aarch64_declare_function_name, aarch64_start_file): Make flag
10387 variables uint64_t.
10388 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
10389 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
10390 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
10391 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
10392 * config/aarch64/driver-aarch64.c
10393 (struct aarch64_arch_extension, struct aarch64_core_data,
10394 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
10395 flag variables uint64_t.
10396 * doc/invoke.texi: Add documentation for new arguments.
10397
10398 2019-05-22 Richard Biener <rguenther@suse.de>
10399
10400 * alias.c (ao_ref_from_mem): Move stack-slot sharing
10401 rewrite ...
10402 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
10403
10404 2019-05-22 Martin Liska <mliska@suse.cz>
10405
10406 PR lto/90500
10407 * doc/extend.texi: Document the change.
10408
10409 2019-05-22 Richard Biener <rguenther@suse.de>
10410
10411 PR tree-optimization/90450
10412 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
10413 (mem_ref_hasher::equal): Check it.
10414 (mem_ref_alloc): Initialize it.
10415 (gather_mem_refs_stmt): Set it.
10416
10417 2019-05-22 Richard Biener <rguenther@suse.de>
10418
10419 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
10420 Add ABS_EXPR.
10421 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
10422 as ABSU_EXPR.
10423
10424 2019-05-22 Alan Modra <amodra@gmail.com>
10425
10426 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
10427 (ASM_CPU_SPEC): Conditionally add -many.
10428 * config/rs6000/rs6000.c (rs6000_machine): New static var.
10429 (rs6000_machine_from_flags, emit_asm_machine): New functions..
10430 (rs6000_file_start): ..extracted from here, and modified to
10431 test all ISA bits.
10432 (rs6000_output_function_prologue): Emit .machine as necessary.
10433
10434 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
10435
10436 PR middle-end/90553
10437 * ira-lives.c (process_bb_node_lives): Consider defs
10438 for a call insn to be die before the call, not after.
10439
10440 * function.c (assign_parm_setup_block): Raise alignment of
10441 stacked parameter only for STRICT_ALIGNMENT targets.
10442
10443 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10444
10445 * config/rs6000/constraints.md (define_register_constraint "wz"):
10446 Delete.
10447 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10448 RS6000_CONSTRAINT_wz.
10449 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10450 (rs6000_init_hard_regno_mode_ok): Adjust.
10451 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
10452 * doc/md.texi (Machine Constraints): Adjust.
10453
10454 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10455
10456 * config/rs6000/constraints.md (define_register_constraint "wl"):
10457 Delete.
10458 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10459 RS6000_CONSTRAINT_wl.
10460 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10461 (rs6000_init_hard_regno_mode_ok): Adjust.
10462 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
10463 * doc/md.texi (Machine Constraints): Adjust.
10464
10465 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10466
10467 * config/rs6000/constraints.md (define_register_constraint "wm"):
10468 Delete.
10469 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10470 RS6000_CONSTRAINT_wm.
10471 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10472 (rs6000_init_hard_regno_mode_ok): Adjust.
10473 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
10474 * doc/md.texi (Machine Constraints): Adjust.
10475
10476 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10477
10478 * config/rs6000/constraints.md (define_register_constraint "wk"):
10479 Delete.
10480 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10481 RS6000_CONSTRAINT_wk.
10482 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10483 (rs6000_init_hard_regno_mode_ok): Adjust.
10484 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
10485 * doc/md.texi (Machine Constraints): Adjust.
10486
10487 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10488
10489 * config/rs6000/constraints.md (define_register_constraint "wj"):
10490 Delete.
10491 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10492 RS6000_CONSTRAINT_wj.
10493 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10494 (rs6000_init_hard_regno_mode_ok): Adjust.
10495 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
10496 (VS_64dm): Delete.
10497 * config/rs6000/vsx.md: Ditto.
10498 * doc/md.texi (Machine Constraints): Adjust.
10499
10500 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10501
10502 * config/rs6000/constraints.md (define_register_constraint "wh"):
10503 Delete.
10504 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10505 RS6000_CONSTRAINT_wh.
10506 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10507 (rs6000_init_hard_regno_mode_ok): Adjust.
10508 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
10509 * doc/md.texi (Machine Constraints): Adjust.
10510
10511 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
10512
10513 PR target/90547
10514 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
10515 Avoid calling gen_lowpart with CONST operand.
10516
10517 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
10518
10519 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
10520 field template_last_to_copy.
10521 (ssa_create_duplicates): Set it, and use it. Attempt to
10522 preserve more debug stmts.
10523
10524 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
10525
10526 * config/i386/sse.md (VF1_AVX2): New mode iterator.
10527 (signbit<mode>2): New expander
10528
10529 2019-05-21 James Clarke <jrtc27@jrtc27.com>
10530
10531 PR bootstrap/87338
10532 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
10533 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
10534
10535 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
10536
10537 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
10538 %ebx and %ecx bafore calling cpuid with leaf 1 or
10539 non-constant leaf argument.
10540
10541 2019-05-21 Alan Modra <amodra@gmail.com>
10542
10543 PR target/90545
10544 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
10545 power9 direct move cost.
10546
10547 2019-05-21 Richard Biener <rguenther@suse.de>
10548
10549 PR middle-end/90510
10550 * fold-const.c (fold_read_from_vector): New function.
10551 * fold-const.h (fold_read_from_vector): Declare.
10552 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
10553 single-element insert permutations. Canonicalize selector
10554 further and fix issue with last commit.
10555
10556 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
10557
10558 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
10559 parameter with default value false to declaration.
10560 (split_edges_for_insertion): New inline function. Wrapper for
10561 split_critical_edges with for_edge_insertion_p = true.
10562 * tree-cfg.c (split_critical_edges): Don't split non-critical
10563 edges if for_edge_insertion_p is false. Fix whitespace.
10564 * tree-ssa-pre.c (pass_pre::execute): Call
10565 split_edges_for_insertion instead of split_critical_edges.
10566 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
10567 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
10568 (pass_data_sink_code): Update function name in the comment.
10569
10570 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
10571
10572 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
10573 around is_value_included_in that knows how to handle BIT_AND_EXPR.
10574 (is_pred_expr_subset_of): Use the new function. Handle more cases where
10575 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
10576 positives.
10577
10578 2019-05-21 Martin Liska <mliska@suse.cz>
10579
10580 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
10581 an extra newline.
10582 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
10583 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
10584 vec_lvsr.
10585 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10586 Quote a C type.
10587 (rs6000_function_arg): Likewise.
10588 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
10589 (rs6000_expand_ternop_builtin): Use interval syntax.
10590 (get_element_number): Likewise.
10591 (altivec_expand_builtin): Likewise.
10592 (rs6000_get_function_versions_dispatcher): Quote target_clones.
10593
10594 2019-05-20 Jakub Jelinek <jakub@redhat.com>
10595
10596 PR c++/59813
10597 PR target/90418
10598 * function.h (struct function): Add calls_eh_return member.
10599 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
10600 gimplifying __builtin_eh_return call.
10601 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
10602 to cfun.
10603 (expand_call_inline): Or in src_cfun->calls_eh_return into
10604 dst_cfun->calls_eh_return.
10605 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
10606 cfun->calls_eh_return.
10607 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
10608 * lto-streamer-out.c (output_struct_function_base): Write
10609 calls_eh_return.
10610
10611 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
10612
10613 PR rtl-optimization/43147
10614 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
10615 IX86_BUILTIN_SHUFPD.
10616
10617 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
10618
10619 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
10620 (refs_may_alias_p_1): ... here; update stats.
10621 (refs_may_alias_p): Do not update stats here.
10622
10623 2019-05-20 Richard Biener <rguenther@suse.de>
10624
10625 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
10626 doesn't produce pointers.
10627 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
10628 the first operand points to.
10629
10630 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
10631
10632 * tree-ssa-alias.c (compare_sizes): New function.
10633 (sompare_type_sizes): New function
10634 (aliasing_component_refs_p): Use it.
10635 (indirect_ref_may_alias_decl_p): Likewise.
10636
10637 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10638
10639 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
10640
10641 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10642
10643 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
10644 (LIBLSAN_EARLY_SPEC): Likewise.
10645 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
10646
10647 2019-05-20 Martin Liska <mliska@suse.cz>
10648
10649 * config/i386/i386.c (ix86_libc_has_fast_function):
10650 Add ATTRIBUTE_UNUSED for the argument.
10651
10652 2019-05-20 Richard Biener <rguenther@suse.de>
10653
10654 * gimple-match-head.c: Include vec-perm-indices.h.
10655 * generic-match-head.c: Likewise.
10656 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
10657 is included.
10658 * fold-const.c (fold_vec_perm): Export.
10659 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
10660 (match.pd): ...here.
10661
10662 2019-05-20 Jakub Jelinek <jakub@redhat.com>
10663
10664 * cfgloop.h (struct loop): Add simdlen member.
10665 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
10666 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
10667 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
10668 as new argument to autovectorize_vector_sizes target hook. If
10669 loop->simdlen, pick up vector size where the vectorization factor
10670 is equal to loop->simd, and if there is none, fall back to the first
10671 successful one.
10672 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
10673 caller.
10674 * omp-low.c (omp_clause_aligned_alignment): Likewise.
10675 * omp-general.c (omp_max_vf): Likewise.
10676 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
10677 * tree-vect-slp.c (vect_slp_bb): Likewise.
10678 * target.def (autovectorize_vector_sizes): Add ALL argument and
10679 document it.
10680 * doc/tm.texi: Adjust documentation.
10681 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
10682 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
10683 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
10684 bool argument.
10685 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
10686 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
10687 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
10688 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
10689 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
10690 preferred vector size is not 512-bit or 256-bit, just put those
10691 unpreferred ones last.
10692
10693 2019-05-20 Martin Liska <mliska@suse.cz>
10694
10695 * targhooks.c (default_libc_has_fast_function): New function.
10696 * targhooks.h (default_libc_has_fast_function): Likewise.
10697
10698 2019-05-20 Martin Liska <mliska@suse.cz>
10699
10700 PR middle-end/90263
10701 * builtins.c (expand_builtin_memory_copy_args): When having a
10702 target with fast mempcpy implementation do now use memcpy.
10703 * config/i386/i386.c (ix86_libc_has_fast_function): New.
10704 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
10705 * doc/tm.texi: Likewise.
10706 * doc/tm.texi.in: Likewise.
10707 * target.def:
10708 * expr.c (emit_block_move_hints): Add 2 new arguments.
10709 * expr.h (emit_block_move_hints): Bail out when libcall
10710 to memcpy would be used.
10711
10712 2019-05-20 Martin Liska <mliska@suse.cz>
10713
10714 * profile-count.c: Add vertical spacing in order
10715 to separate functions.
10716 * profile-count.h: Likewise.
10717
10718 2019-05-20 Martin Liska <mliska@suse.cz>
10719
10720 * profile-count.h: Do not use full qualified
10721 names if possible.
10722 * profile-count.c (profile_count::to_frequency): Likewise.
10723
10724 2019-05-20 Martin Liska <mliska@suse.cz>
10725
10726 * profile-count.h (enum profile_quality): Use capital letters
10727 for enum value names. Use the adjusted names.
10728 * profile-count.c: Use the adjusted names.
10729
10730 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10731
10732 * config/rs6000/constraints.md (define_register_constraint "wH"):
10733 Delete.
10734 (define_register_constraint "wI"): Delete.
10735 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10736 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
10737 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10738 (rs6000_init_hard_regno_mode_ok): Adjust.
10739 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
10740 resp. "d", or with "wa" as appropriate, all with "p8v".
10741 * config/rs6000/vsx.md: Ditto.
10742 * doc/md.texi (Machine Constraints): Adjust.
10743
10744 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10745
10746 * config/rs6000/constraints.md (define_register_constraint "wy"):
10747 Delete.
10748 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10749 RS6000_CONSTRAINT_wy.
10750 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10751 (rs6000_init_hard_regno_mode_ok): Adjust.
10752 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
10753 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
10754 (define_mode_attr Fisa): New.
10755 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
10756 * doc/md.texi (Machine Constraints): Adjust.
10757
10758 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10759
10760 * config/rs6000/constraints.md (define_register_constraint "wu"):
10761 Delete.
10762 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10763 RS6000_CONSTRAINT_wu.
10764 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10765 (rs6000_init_hard_regno_mode_ok): Adjust.
10766 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
10767 both with "p8v".
10768 (define_mode_attr Fa): Delete.
10769 * config/rs6000/vsx.md: Ditto.
10770 * doc/md.texi (Machine Constraints): Adjust.
10771
10772 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10773
10774 * config/rs6000/constraints.md (define_register_constraint "wJ"):
10775 Delete.
10776 (define_register_constraint "wK"): Delete.
10777 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10778 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
10779 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10780 (rs6000_init_hard_regno_mode_ok): Adjust.
10781 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
10782 Replace "wK" constraint by "wH" with "p9v".
10783 * config/rs6000/vsx.md: Ditto.
10784 * doc/md.texi (Machine Constraints): Adjust.
10785
10786 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10787
10788 * config/rs6000/constraints.md (define_register_constraint "wb"):
10789 Delete.
10790 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10791 RS6000_CONSTRAINT_wb.
10792 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10793 (rs6000_init_hard_regno_mode_ok): Adjust.
10794 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
10795 * config/rs6000/vsx.md: Ditto.
10796 * doc/md.texi (Machine Constraints): Adjust.
10797
10798 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10799
10800 * config/rs6000/constraints.md (define_register_constraint "wo"):
10801 Delete.
10802 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10803 RS6000_CONSTRAINT_wo.
10804 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10805 (rs6000_init_hard_regno_mode_ok): Adjust.
10806 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
10807 * config/rs6000/altivec.md: Ditto.
10808 * doc/md.texi (Machine Constraints): Adjust.
10809
10810 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
10811
10812 * config/darwin-c.c (darwin_register_objc_includes): Do not
10813 prepend the sysroot when building gnu-runtime header search
10814 paths.
10815
10816 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
10817
10818 * config/darwin.c (darwin_file_end): Use switch_to_section ()
10819 instead of direct output of the asm.
10820
10821 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
10822
10823 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
10824 argument to be type bool (was int before).
10825 (rs6000_emit_epilogue): Simplify some code. Declare some variables
10826 at first use. Use type bool for some variables. Fix a theoretical
10827 eh_return bug for svr4.
10828
10829 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
10830
10831 * config/rs6000/rs6000.md (isa): New attribute.
10832 (enabled): New attribute.
10833
10834 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
10835
10836 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
10837 assemble_start_function and assemble_end_function.
10838
10839 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
10840
10841 PR middle-end/89433
10842 * omp-general.c (oacc_verify_routine_clauses): Change formal
10843 parameters. Add checking if already marked with an OpenACC
10844 'routine' directive. Adjust all users.
10845
10846 PR middle-end/89433
10847 * omp-general.c (oacc_build_routine_dims): Move some of its
10848 processing into...
10849 (oacc_verify_routine_clauses): ... this new function.
10850 * omp-general.h (oacc_verify_routine_clauses): New prototype.
10851
10852 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
10853
10854 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
10855 formating of picbase labels to match other ports.
10856
10857 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
10858
10859 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
10860 in the generated code.
10861
10862 2019-05-16 Martin Sebor <msebor@redhat.com>
10863
10864 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
10865 identifiers, keywords, operators, and types in diagnostics. Correct
10866 quoting, spelling, and sentence capitalization issues.
10867 (expand_builtin_atomic_is_lock_free): Same.
10868 (fold_builtin_next_arg): Same.
10869 * cfgexpand.c (expand_one_var): Same.
10870 (tree_conflicts_with_clobbers_p): Same.
10871 (expand_asm_stmt): Same.
10872 (verify_loop_structure): Same.
10873 * cgraphunit.c (process_function_and_variable_attributes): Same.
10874 * collect-utils.c (collect_execute): Same.
10875 * collect2.c (maybe_run_lto_and_relink): Same.
10876 (is_lto_object_file): Same.
10877 (scan_prog_file): Same.
10878 * convert.c (convert_to_real_1): Same.
10879 * dwarf2out.c (dwarf2out_begin_prologue): Same.
10880 * except.c (verify_eh_tree): Same.
10881 * gcc.c (execute): Same.
10882 (eval_spec_function): Same.
10883 (run_attempt): Same.
10884 (driver::set_up_specs): Same.
10885 (compare_debug_auxbase_opt_spec_function): Same.
10886 * gcov-tool.c (unlink_gcda_file): Same.
10887 (do_merge): Same.
10888 (do_rewrite): Same.
10889 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
10890 * gimplify.c (gimplify_asm_expr): Same.
10891 (gimplify_adjust_omp_clauses): Same.
10892 * hsa-gen.c (gen_hsa_addr_insns): Same.
10893 (gen_hsa_insns_for_load): Same.
10894 (gen_hsa_cmp_insn_from_gimple): Same.
10895 (gen_hsa_insns_for_operation_assignment): Same.
10896 (gen_get_level): Same.
10897 (gen_hsa_alloca): Same.
10898 (omp_simple_builtin::generate): Same.
10899 (gen_hsa_atomic_for_builtin): Same.
10900 (gen_hsa_insns_for_call): Same.
10901 * input.c (dump_location_info): Same.
10902 * ipa-devirt.c (compare_virtual_tables): Same.
10903 * ira.c (ira_setup_eliminable_regset): Same.
10904 * lra-assigns.c (lra_assign): Same.
10905 * lra-constraints.c (lra_constraints): Same.
10906 * lto-streamer-in.c (lto_input_mode_table): Same.
10907 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
10908 (merge_and_complain): Same.
10909 (compile_offload_image): Same.
10910 (compile_images_for_offload_targets): Same.
10911 (debug_objcopy): Same.
10912 (run_gcc): Same.
10913 (main): Same.
10914 * opts.c (print_specific_help): Same.
10915 (parse_no_sanitize_attribute): Same.
10916 (print_help): Same.
10917 (handle_param): Same.
10918 * plugin.c (add_new_plugin): Same.
10919 (parse_plugin_arg_opt): Same.
10920 (try_init_one_plugin): Same.
10921 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
10922 operators, and types in diagnostics. Correct quoting and spelling
10923 issues.
10924 * read-rtl-function.c (parse_edge_flag_token): Same.
10925 (function_reader::parse_enum_value): Same.
10926 * reg-stack.c (check_asm_stack_operands): Same.
10927 * regcprop.c (validate_value_data): Same.
10928 * sched-rgn.c (make_pass_sched_fusion): Same.
10929 * stmt.c (check_unique_operand_names): Same.
10930 * targhooks.c (default_target_option_pragma_parse): Same.
10931 * tlink.c (recompile_files): Same.
10932 * toplev.c (process_options): Same.
10933 (do_compile): Same.
10934 * trans-mem.c (diagnose_tm_1): Same.
10935 (ipa_tm_scan_irr_block): Same.
10936 (ipa_tm_diagnose_transaction): Same.
10937 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
10938 format a tree code name in a diagnostic.
10939 (verify_types_in_gimple_min_lval): Same.
10940 (verify_types_in_gimple_reference): Same.
10941 (verify_gimple_call): Same.
10942 (verify_gimple_assign_unary): Same.
10943 (verify_gimple_assign_binary): Same.
10944 (verify_gimple_assign_ternary): Same.
10945 (verify_gimple_assign_single): Same.
10946 (verify_gimple_switch): Same.
10947 (verify_gimple_label): Same.
10948 (verify_gimple_phi): Same.
10949 (verify_gimple_in_seq): Same.
10950 (verify_eh_throw_stmt_node): Same.
10951 (collect_subblocks): Same.
10952 (gimple_verify_flow_info): Same.
10953 (do_warn_unused_result): Same.
10954 * tree-inline.c (expand_call_inline): Same.
10955 * tree-into-ssa.c (update_ssa): Same.
10956 * tree.c (tree_int_cst_elt_check_failed): Same.
10957 (tree_vec_elt_check_failed): Same.
10958 (omp_clause_operand_check_failed): Same.
10959 (verify_type_variant): Same.
10960 (verify_type): Same.
10961 * value-prof.c (verify_histograms): Same.
10962 * varasm.c (assemble_start_function): Same.
10963
10964 2019-05-16 Martin Sebor <msebor@redhat.com>
10965
10966 * config/i386/i386-expand.c (get_element_number): Quote keywords
10967 and other internal names in diagnostics. Adjust other diagnostic
10968 formatting issues noted by -Wformat-diag.
10969 * config/i386/i386-features.c
10970 (ix86_mangle_function_version_assembler_name): Same.
10971 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
10972 * config/i386/i386.c (ix86_function_type_abi): Same.
10973 (ix86_function_ms_hook_prologue): Same.
10974 (classify_argument): Same.
10975 (ix86_expand_prologue): Same.
10976 (ix86_md_asm_adjust): Same.
10977 (ix86_memmodel_check): Same.
10978
10979 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10980
10981 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
10982 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
10983 and fpxx modes.
10984
10985 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
10986
10987 PR target/90497
10988 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
10989 intrinsics without SSE/SSE2/SSSE3.
10990 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
10991 check.
10992 (*mmx_uavgv8qi3): Likewise.
10993
10994 2019-05-17 Richard Biener <rguenther@suse.de>
10995
10996 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
10997 VEC_PERM_EXPR as __VEC_PERM with -gimple.
10998
10999 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
11000
11001 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
11002 vec_sldw insn pattern.
11003
11004 2019-05-17 Richard Biener <rguenther@suse.de>
11005
11006 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
11007
11008 2019-05-17 Martin Liska <mliska@suse.cz>
11009
11010 PR driver/90496
11011 * toplev.c (output_stack_usage): With LTO and sanitizer it
11012 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
11013 has no file location.
11014
11015 2019-05-16 Jakub Jelinek <jakub@redhat.com>
11016
11017 PR c++/90484
11018 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
11019 sz0 is equal to sz1, instead return false in that case.
11020
11021 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
11022 has non-constant expression, force sctx.lane and use two
11023 argument IFN_GOMP_SIMD_LANE instead of single argument.
11024 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
11025 two argument IFN_GOMP_SIMD_LANE without lhs.
11026 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
11027 member.
11028 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
11029 Define.
11030 (LOOP_REQUIRES_VERSIONING): Or in
11031 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
11032 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
11033 simd_if_cond.
11034 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
11035 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
11036 from simd if clause if needed.
11037
11038 2019-05-16 Richard Biener <rguenther@suse.de>
11039
11040 * tree-affine.c (expr_to_aff_combination): New function split
11041 out from...
11042 (tree_to_aff_combination): ... here.
11043 (aff_combination_expand): Avoid building a GENERIC tree.
11044
11045 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
11046
11047 * cgraphunit.c (cgraph_node::expand_thunk): Remove
11048 assemble_start_function and assemble_end_function calls.
11049 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
11050 assemble_start_function and assemble_end_function.
11051 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
11052 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
11053 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
11054 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
11055 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
11056 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
11057 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
11058 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
11059 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
11060 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11061 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11062 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
11063 Likewise.
11064 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
11065 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
11066 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
11067 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
11068 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
11069 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
11070 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
11071 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
11072 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
11073 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
11074 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11075 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11076 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
11077 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
11078 Likewise.
11079 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
11080 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
11081 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
11082
11083 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
11084
11085 * tree-ssa-alias.c (alias_stats): Add
11086 aliasing_component_refs_p_may_alias and
11087 aliasing_component_refs_p_no_alias.
11088 (dump_alias_stats): Print aliasing_component_refs_p stats.
11089 (aliasing_component_refs_p): Update stats.
11090
11091 2019-05-16 Martin Liska <mliska@suse.cz>
11092
11093 PR lto/90500
11094 * multiple_target.c (expand_target_clones): Do not allow
11095 target_clones being used with a symbol that is an alias.
11096
11097 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
11098
11099 PR tree-optimization/90394
11100 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
11101 positives rather than ICE for cases where (code2 == NE_EXPR
11102 && code1 == BIT_AND_EXPR).
11103
11104 2019-05-16 Jakub Jelinek <jakub@redhat.com>
11105
11106 PR fortran/90329
11107 * tree-core.h (struct tree_decl_common): Document
11108 decl_nonshareable_flag for PARM_DECLs.
11109 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
11110 * calls.c (expand_call): Don't try tail call if caller
11111 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
11112 passed on the stack and callee needs to pass any arguments on the
11113 stack.
11114 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
11115 else if instead of series of mutually exclusive ifs. Handle
11116 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
11117 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
11118
11119 * lto-streamer.h (LTO_major_version): Bump to 9.
11120
11121 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
11122
11123 PR tree-optimization/90106
11124 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
11125 new parameter as new internal function call, also move it to new
11126 basic block.
11127 (use_internal_fn): Pass internal function call to
11128 shrink_wrap_one_built_in_call_with_conds.
11129
11130 2019-05-15 Jakub Jelinek <jakub@redhat.com>
11131
11132 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
11133 max_vf to 1.
11134 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
11135 safelen_int and set loop->dont_vectorize.
11136
11137 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11138
11139 PR target/89021
11140 * config/i386/i386-builtin.def: Enable MMX intrinsics with
11141 SSE/SSE2/SSSE3.
11142 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
11143 Likewise.
11144 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
11145 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
11146 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
11147 is defined.
11148
11149 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11150
11151 PR target/89021
11152 * config/i386/mmx.md (*vec_dupv2sf): Changed to
11153 define_insn_and_split to support SSE emulation.
11154 (*vec_extractv2sf_0): Likewise.
11155 (*vec_extractv2sf_1): Likewise.
11156 (*vec_extractv2si_0): Likewise.
11157 (*vec_extractv2si_1): Likewise.
11158 (*vec_extractv2si_zext_mem): Likewise.
11159 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
11160 (vec_extractv2sf_1 splitter): Likewise.
11161 (vec_extractv2sfsf): Likewise.
11162 (vec_setv2si): Likewise.
11163 (vec_extractv2si_1 splitter): Likewise.
11164 (vec_extractv2sisi): Likewise.
11165 (vec_setv4hi): Likewise.
11166 (vec_extractv4hihi): Likewise.
11167 (vec_setv8qi): Likewise.
11168 (vec_extractv8qiqi): Likewise.
11169 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
11170 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
11171 (vec_extractv2sisi): Likewise.
11172 (vec_extractv4hihi): Likewise.
11173 (vec_extractv8qiqi): Likewise.
11174 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
11175 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
11176 (vec_initv2sisi): Likewise.
11177 (vec_initv4hihi): Likewise.
11178 (vec_initv8qiqi): Likewise.
11179 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
11180 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
11181 (vec_setv4hi): Likewise.
11182 (vec_setv8qi): Likewise.
11183
11184 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11185
11186 PR target/89021
11187 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
11188 TARGET_MMX_WITH_SSE.
11189 (MMXMODE:*mov<mode>_internal): Likewise.
11190 (MMXMODE:movmisalign<mode>): Likewise.
11191
11192 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
11193
11194 PR target/89021
11195 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
11196 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
11197 (sse2_cvtpd2pi): Ditto.
11198 (sse2_cvttpd2pi): Ditto.
11199 (*vec_concatv2sf_sse4_1): Ditto.
11200 (*vec_concatv2sf_sse): Ditto.
11201 (*vec_concatv2si_sse4_1): Ditto.
11202 (*vec_concatv2si): Ditto.
11203 (*vec_concatv4si_0): Ditto.
11204 (*vec_concatv2di_0): Ditto.
11205
11206 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11207
11208 PR target/89021
11209 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
11210
11211 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11212
11213 PR target/89021
11214 * config/i386/sse.md (ssse3_palignrdi): Changed to
11215 define_insn_and_split to support SSE emulation.
11216
11217 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11218
11219 PR target/89021
11220 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
11221
11222 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11223
11224 PR target/89021
11225 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
11226 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
11227 SSE emulation.
11228
11229 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11230
11231 PR target/89021
11232 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
11233 or TARGET_MMX_WITH_SSE.
11234 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
11235
11236 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11237
11238 PR target/89021
11239 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
11240
11241 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11242
11243 PR target/89021
11244 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
11245 Changed to define_insn_and_split to support SSE emulation.
11246
11247 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11248
11249 PR target/89021
11250 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
11251 Changed to define_insn_and_split to support SSE emulation.
11252
11253 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11254
11255 PR target/89021
11256 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
11257 (*mmx_<emms>): This.
11258 (mmx_<emms>): New expander.
11259
11260 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11261
11262 PR target/89021
11263 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
11264 support.
11265 (*sse2_umulv1siv1di3): Add SSE2 emulation.
11266
11267 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11268
11269 PR target/89021
11270 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
11271
11272 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11273
11274 PR target/89021
11275 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
11276
11277 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11278
11279 PR target/89021
11280 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
11281 TARGET_MMX_WITH_SSE.
11282 (*mmx_uavgv4hi3): Add SSE emulation.
11283
11284 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11285
11286 PR target/89021
11287 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
11288 and TARGET_MMX_WITH_SSE.
11289 (*mmx_uavgv8qi3): Add SSE emulation.
11290
11291 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11292
11293 PR target/89021
11294 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
11295 maskmovdqu for __MMX_WITH_SSE__.
11296
11297 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11298
11299 PR target/89021
11300 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
11301 TARGET_MMX and TARGET_MMX_WITH_SSE.
11302 (*mmx_umulv4hi3_highpart): Add SSE emulation.
11303
11304 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11305
11306 PR target/89021
11307 * config/i386/mmx.md (mmx_pmovmskb): Changed to
11308 define_insn_and_split to support SSE emulation.
11309
11310 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11311
11312 PR target/89021
11313 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
11314 and TARGET_MMX_WITH_SSE.
11315 (mmx_<code>v8qi3): Likewise.
11316 (smaxmin:<code>v4hi3): New.
11317 (umaxmin:<code>v8qi3): Likewise.
11318 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
11319 (umaxmin:*mmx_<code>v8qi3): Likewise.
11320
11321 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11322
11323 PR target/89021
11324 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
11325 TARGET_MMX_WITH_SSE.
11326 (*mmx_pinsrw): Add SSE emulation.
11327
11328 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11329
11330 PR target/89021
11331 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
11332
11333 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11334
11335 PR target/89021
11336 * config/i386/sse.md (sse_cvtpi2ps): Changed to
11337 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
11338 SSE emulation.
11339
11340 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11341
11342 PR target/89021
11343 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
11344 (sse_cvttps2pi): Likewise.
11345
11346 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11347
11348 PR target/89021
11349 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
11350 TARGET_MMX_WITH_SSE.
11351 (mmx_pshufw_1): Add SSE emulation.
11352 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
11353 TARGET_MMX_WITH_SSE to support SSE emulation.
11354
11355 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11356
11357 PR target/89021
11358 * config/i386/constraints.md (Yw): New constraint.
11359 * config/i386/mmx.md (*vec_dupv2si): Changed to
11360 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
11361 support SSE emulation.
11362
11363 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11364
11365 PR target/89021
11366 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
11367 TARGET_MMX_WITH_SSE.
11368 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
11369 support.
11370 (mmx_gt<mode>3): Likewise.
11371
11372 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11373
11374 PR target/89021
11375 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
11376 TARGET_MMX_WITH_SSE. Add SSE support.
11377
11378 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11379
11380 PR target/89021
11381 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
11382 TARGET_MMX_WITH_SSE.
11383 (any_logic:<code><mode>3): New.
11384 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
11385 Add SSE support.
11386
11387 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11388
11389 PR target/89021
11390 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
11391 TARGET_MMX_WITH_SSE. Add SSE emulation.
11392 (mmx_<shift_insn><mode>3): Likewise.
11393 (ashr<mode>3): New.
11394 (<shift_insn><mode>3): Likewise.
11395
11396 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11397
11398 PR target/89021
11399 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
11400 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
11401
11402 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11403
11404 PR target/89021
11405 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
11406 TARGET_MMX_WITH_SSE.
11407 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
11408 SSE support.
11409
11410 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11411
11412 PR target/89021
11413 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
11414 TARGET_MMX_WITH_SSE.
11415 (mulv4hi3): New.
11416 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
11417 support.
11418
11419 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11420
11421 PR target/89021
11422 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
11423 (plusminus:mmx_<plusminus_insn><mode>3): Check
11424 TARGET_MMX_WITH_SSE.
11425 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
11426 (<plusminus_insn><mode>3): New.
11427 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
11428 (*mmx_<plusminus_insn><mode>3): Likewise.
11429
11430 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11431
11432 PR target/89021
11433 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
11434 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
11435 prototype.
11436 * config/i386/mmx.m (mmx_punpckhbw): Changed to
11437 define_insn_and_split to support SSE emulation.
11438 (mmx_punpcklbw): Likewise.
11439 (mmx_punpckhwd): Likewise.
11440 (mmx_punpcklwd): Likewise.
11441 (mmx_punpckhdq): Likewise.
11442 (mmx_punpckldq): Likewise.
11443
11444 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11445 Uros Bizjak <ubizjak@gmail.com>
11446
11447 PR target/89021
11448 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
11449 New function.
11450 (ix86_split_mmx_pack): Likewise.
11451 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
11452 New prototype.
11453 (ix86_split_mmx_pack): Likewise.
11454 * config/i386/i386.md (mmx_isa): New.
11455 (enabled): Also check mmx_isa.
11456 * config/i386/mmx.md (any_s_truncate): New code iterator.
11457 (s_trunsuffix): New code attr.
11458 (mmx_packsswb): Removed.
11459 (mmx_packssdw): Likewise.
11460 (mmx_packuswb): Likewise.
11461 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
11462 MMX packsswb/packuswb with SSE2.
11463 (mmx_packssdw): Likewise.
11464 * config/i386/predicates.md (register_mmxmem_operand): New.
11465
11466 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11467
11468 PR target/89021
11469 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11470 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
11471 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
11472 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
11473 (ix86_vector_mode_supported_p): Likewise.
11474 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
11475
11476 2019-05-15 Martin Liska <mliska@suse.cz>
11477
11478 PR middle-end/90478
11479 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
11480 Check for overflow.
11481
11482 2019-05-15 Richard Biener <rguenther@suse.de>
11483
11484 * tree-into-ssa.c (pass_build_ssa::execute): Run
11485 update_address_taken before going into SSA.
11486
11487 2019-05-15 Richard Biener <rguenther@suse.de>
11488
11489 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
11490 as __BIT_FIELD_REF with type with -gimple.
11491
11492 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
11493
11494 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
11495 semantically equivalent branches (left over after prior refactorings).
11496
11497 2019-05-15 Richard Biener <rguenther@suse.de>
11498
11499 PR tree-optimization/88828
11500 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
11501 bogus check.
11502
11503 2019-05-14 Richard Biener <rguenther@suse.de>
11504
11505 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
11506 as __VIEW_CONVERT with -gimple.
11507
11508 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
11509
11510 PR target/82920
11511 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
11512 Darwin.
11513
11514 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
11515
11516 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
11517 define_split to become a define_insn_and_split.
11518
11519 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
11520
11521 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
11522 arguments.
11523 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
11524 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
11525 (sibcall_epilogue): Adjust.
11526 (epilogue): Adjust.
11527
11528 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11529
11530 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
11531 to unsupported ones.
11532 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
11533 * config.host: Likewise.
11534 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
11535 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
11536 __svr4__]: Remove "brand" fallback.
11537 [!KSTAT_DATA_STRING]: Remove.
11538 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
11539 to *-*-solaris2*.
11540 (comdat_group): Likewise.
11541 (set_have_as_tls): Likewise.
11542 (gcc_cv_target_dl_iterate_phdr): Likewise.
11543 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
11544 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
11545 * configure: Regenerate.
11546 * doc/install.texi: Simplify Solaris target triplets.
11547 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
11548 (Specific, *-*-solaris2*): Document Solaris 10 removal.
11549 Remove Solaris 10 references.
11550 Remove obsolete Solaris bug reference.
11551 (Specific, sparc-sun-solaris2.10): Remove.
11552
11553 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
11554
11555 * config/i386/i386.md (any_div): New code iterator.
11556 (paired_mod): New code attribute.
11557 (sgnprefix): Handle DIV and UDIV RTXes.
11558 (u): Ditto.
11559 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
11560 and udivmod<mode>4 patterns using any_div code iterator.
11561 (divmod splitters): Macroize splitters using any_div code iterator.
11562 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
11563 (*udivmodsi4_pow2_zext_2): Ditto.
11564 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
11565 and *udivmod<mode>4_noext patterns using any_div code iterator.
11566 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
11567 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
11568 patterns using any_div code iterator.
11569 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
11570 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
11571 patterns using any_div code iterator.
11572 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
11573 udivmodhiqi3 patterns using any_extend code iterator.
11574
11575 2019-05-14 Richard Biener <rguenther@suse.de>
11576 H.J. Lu <hongjiu.lu@intel.com>
11577
11578 PR tree-optimization/88828
11579 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
11580 permuting in a single non-constant element not extracted
11581 from a vector.
11582
11583 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
11584
11585 * internal-fn.def (SIGNBIT): New.
11586 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
11587 defined.
11588 (signbitv4sf2): Likewise.
11589
11590 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
11591
11592 PR target/90357
11593 * config/mips/mips.c (mips_split_move): Skip forward SRC into
11594 next insn when the SRC reg is dead.
11595
11596 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
11597
11598 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
11599 (alloc_cand_and_find_basis): Ditto.
11600 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
11601 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
11602 (create_add_imm_cand, slsr_process_cast): Ditto.
11603 (slsr_process_copy, replace_mult_candidate): Ditto.
11604 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
11605 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
11606 (pass_strength_reduction::execute): Init the first NULL element.
11607
11608 2019-05-13 Nathan Sidwell <nathan@acm.org>
11609
11610 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
11611 (run_attempt): Reformat line break.
11612
11613 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
11614
11615 PR target/90418
11616 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
11617 data registers in sibcall epilogues.
11618 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
11619
11620 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
11621
11622 PR target/89221
11623 * configure.ac (--enable-frame-pointer):
11624 Disable by default for cygwin and mingw.
11625 * configure: Regenerate.
11626
11627 2019-05-13 Nathan Sidwell <nathan@acm.org>
11628
11629 * dwarf2out.c (breakout_comdat_types): Move comment to correct
11630 piece of code.
11631 (const_ok_for_output_1): Balance parens around #if/#else/#endif
11632 (gen_member_die): Move abstract origin check earlier. Only VARs
11633 can be static_inline_p. Simplify splicing control flow.
11634
11635 2019-05-13 Richard Biener <rguenther@suse.de>
11636
11637 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
11638 VIEW_CONVERT_EXPR.
11639 (vect_build_slp_tree_1): Likewise.
11640
11641 2019-05-13 Richard Biener <rguenther@suse.de>
11642
11643 PR tree-optimization/90402
11644 * tree-if-conv.c (tree_if_conversion): Value number only
11645 the loop body by making the latch an exit of the region
11646 as well.
11647 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
11648 processing PHIs.
11649 (do_rpo_vn): Deal with multiple edges into the entry block
11650 that are not backedges inside the region by skipping PHIs
11651 of the entry block.
11652
11653 2019-05-13 Richard Biener <rguenther@suse.de>
11654
11655 PR tree-optimization/90316
11656 * tree-ssa-pre.c (insert_aux): Fold into ...
11657 (insert): ... this function. Use a RPO walk to reduce the
11658 number of required iterations.
11659
11660 2019-05-13 Martin Liska <mliska@suse.cz>
11661
11662 PR tree-optimization/90416
11663 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
11664 string instead of passing the second part as va_arg argument.
11665
11666 2019-05-13 Martin Liska <mliska@suse.cz>
11667
11668 PR gcov-profile/90380
11669 * gcov.c (handle_cycle): Do not support zero cycle count,
11670 it should not be possible.
11671 (path_contains_zero_cycle_arc): New function.
11672 (circuit): Ignore zero cycle arc counts.
11673
11674 2019-05-13 Martin Liska <mliska@suse.cz>
11675
11676 PR gcov-profile/90380
11677 * gcov.c (enum loop_type): Remove the enum and
11678 the operator.
11679 (handle_cycle): Assert that we should not reach
11680 a negative count.
11681 (circuit): Use loop_found instead of a tri-state loop_type.
11682 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
11683 happen.
11684
11685 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
11686
11687 PR target/82920
11688 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
11689 (ix86_output_indirect_branch_via_reg): Use output mechanism
11690 accounting for __USER_LABEL_PREFIX__.
11691 (ix86_output_indirect_branch_via_push): Likewise.
11692 (ix86_output_function_return): Likewise.
11693 (ix86_output_indirect_function_return): Likewise.
11694
11695 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
11696
11697 * doc/md.texi: Document use of code attributes in rtx patterns.
11698 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
11699 * read-rtl.c (find_code): Split out search loops into...
11700 (maybe_find_code): ...this new function.
11701 (check_code_iterator): Make the error message more informative.
11702 (check_code_attribute): New function.
11703 (rtx_reader::rtx_alloc_for_name): Likewise.
11704 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
11705 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
11706 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
11707 <max_opp> directly as an rtx code instead of via a match_operator.
11708 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
11709 (<su>abd<mode>_3): Update accordingly.
11710
11711 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
11712
11713 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
11714 is given, print the state of the EH "save world" computation for
11715 Darwin.
11716
11717 2019-05-11 Jakub Jelinek <jakub@redhat.com>
11718
11719 PR c++/59813
11720 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
11721 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
11722
11723 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
11724
11725 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
11726 Use pinsrd for TARGET_SSE4_1.
11727 * config/i386/sse.md (movdi_to_sse): Ditto.
11728
11729 2019-05-10 Richard Biener <rguenther@suse.de>
11730
11731 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
11732 (do_rpo_vn): Initialize next_value_id.
11733
11734 2019-05-10 Martin Liska <mliska@suse.cz>
11735
11736 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
11737 Fix plural form.
11738
11739 2019-05-10 Jakub Jelinek <jakub@redhat.com>
11740
11741 PR tree-optimization/90385
11742 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
11743 arguments of the exit phis.
11744
11745 PR c++/90383
11746 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
11747 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
11748 id->do_not_fold.
11749 (copy_tree_body_r): Likewise.
11750 (copy_fn): Set id.do_not_fold to true.
11751
11752 2019-05-10 Martin Liska <mliska@suse.cz>
11753
11754 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
11755 Reapply changes from r269790.
11756
11757 2019-05-10 Martin Liska <mliska@suse.cz>
11758
11759 PR middle-end/90340
11760 * doc/invoke.texi: New params.
11761 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
11762 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
11763 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
11764 Use it.
11765 * tree-switch-conversion.h (struct jump_table_cluster):
11766 Likewise.
11767
11768 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
11769
11770 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
11771
11772 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
11773
11774 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
11775
11776 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
11777
11778 PR rtl-optimization/88879
11779 * sel-sched.c (sel_target_adjust_priority): Remove assert.
11780
11781 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
11782
11783 PR target/90405
11784 * config/arm/arm.c (callee_saved_reg_p): Move before
11785 thumb_find_work_register.
11786 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
11787 thumb_find_work_register. Only call df_get_live_out once.
11788 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
11789 (thumb_find_work_register): Use
11790 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
11791 algorithms to locate a spare call clobbered reg.
11792
11793 2019-05-09 Martin Liska <mliska@suse.cz>
11794
11795 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
11796 and MAX_EXPR in GIMPLE FE format.
11797
11798 2019-05-09 Martin Liska <mliska@suse.cz>
11799
11800 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
11801 * gimple-pretty-print.c (dump_gimple_bb_header):
11802 Dump BB count.
11803 (pp_cfg_jump): Dump edge probability.
11804 * profile-count.c (profile_quality_as_string): Simplify
11805 with a static array.
11806 (parse_profile_quality): New function.
11807 (profile_count::dump): Simplify with a static array.
11808 (profile_count::from_gcov_type): Add new argument.
11809 * profile-count.h (parse_profile_quality): Likewise.
11810 * predict.h (set_hot_bb_threshold): New.
11811 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
11812 New param.
11813 * predict.c (get_hot_bb_threshold): Set from the new param.
11814 (set_hot_bb_threshold): New.
11815
11816 2019-05-09 Richard Biener <rguenther@suse.de>
11817
11818 PR tree-optimization/90395
11819 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
11820 rewrite vector stores that throw internally.
11821
11822 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
11823
11824 * cif-code.def (CHKP): Remove.
11825
11826 PR target/89221
11827 * configure.ac (--enable-frame-pointer): Disable by default for
11828 GNU systems.
11829 * configure: Regenerate.
11830
11831 2019-05-09 Alan Modra <amodra@gmail.com>
11832
11833 PR target/89271
11834 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
11835 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
11836 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
11837 cost for general <-> vsx when direct moves are available.
11838 Cost union classes at minimal cost for any reg in the class.
11839 Correct calculation for moves between vsx, float, and altivec.
11840 Don't return a low cost for moves between special regs. Don't
11841 use hard coded register numbers.
11842 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
11843 (rs6000_ira_change_pseudo_allocno_class): New function.
11844 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
11845 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
11846 alternatives.
11847 (movsi_internal1): Don't disparage vector alternatives.
11848 (mov<mode>_internal): Likewise, excepting alternative that
11849 will be split.
11850 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
11851 we <- b alternative.
11852
11853 2019-05-08 Jakub Jelinek <jakub@redhat.com>
11854
11855 PR c++/59813
11856 PR tree-optimization/89060
11857 * tree-ssa-live.h (live_vars_map): New typedef.
11858 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
11859 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
11860 (struct compute_live_vars_data): New type.
11861 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
11862 live_vars_at_stmt, destroy_live_vars): New functions.
11863 * tree-tailcall.c: Include tree-ssa-live.h.
11864 (live_vars, live_vars_vec): New global variables.
11865 (find_tail_calls): Perform variable life analysis before punting.
11866 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
11867 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
11868 member.
11869 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
11870 Perform variable life analysis to select variables that really need
11871 clobbers added.
11872 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
11873 instead set id->eh_landing_pad_dest and assert it is the same.
11874 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
11875
11876 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
11877 Richard Earnshaw <rearnsha@arm.com>
11878
11879 PR target/88167
11880 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
11881 function.
11882 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
11883 (thumb1_compute_save_core_reg_mask): Don't force a spare work
11884 register if both the epilogue and prologue can use call-clobbered
11885 regs.
11886 (thumb1_unexpanded_epilogue): Use
11887 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
11888 picking temporaries for restoring high regs to match that of the
11889 prologue where possible.
11890 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
11891 the list of work registers. Detect if the return address is still live
11892 at the end of the prologue and avoid using it for a work register if so.
11893 If the return address is not live, add LR to the list of pushable regs
11894 after the first pass.
11895
11896 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
11897
11898 PR tree-optimization/90078
11899 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
11900 (INFTY): Increase the value for infinite cost.
11901 (struct comp_cost): Promote type of members to int64_t.
11902 (infinite_cost): Don't set complexity in initialization.
11903 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
11904 overflows to infinite_cost.
11905 (adjust_setup_cost): Promote type of parameter and cost computation
11906 to int64_t.
11907 (struct ainc_cost_data, struct iv_ca): Promote type of member to
11908 int64_t.
11909 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
11910 cost computation to int64_t.
11911 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
11912 int64_t's format specifier in dump.
11913
11914 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
11915
11916 PR tree-optimization/90240
11917 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
11918 with respect to scaling factor pre-computed for each basic block.
11919 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
11920 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
11921 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
11922 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
11923 live range for array of loop's basic blocks. Cleanup aux field of
11924 loop's basic blocks.
11925
11926 2019-05-08 Jakub Jelinek <jakub@redhat.com>
11927
11928 PR tree-optimization/90356
11929 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
11930
11931 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
11932
11933 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
11934 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
11935 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
11936 (ix86_handle_option): Handle -mavx512bf16.
11937 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
11938 to extra_headers.
11939 * config/i386/avx512bf16vlintrin.h: New.
11940 * config/i386/avx512bf16intrin.h: New.
11941 * config/i386/cpuid.h (bit_AVX512BF16): New.
11942 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
11943 * config/i386/i386-builtin-types.def: Add new types.
11944 * config/i386/i386-builtin.def: Add new builtins.
11945 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11946 __AVX512BF16__.
11947 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
11948 (ix86_option_override_internal): Handle BF16.
11949 (ix86_valid_target_attribute_inner_p): Ditto.
11950 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
11951 * config/i386/i386-builtin.c (enum processor_features): Add
11952 F_AVX512BF16.
11953 (static const _isa_names_table isa_names_table): Ditto.
11954 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
11955 (PTA_AVX512BF16): Ditto.
11956 * config/i386/i386.opt: Add -mavx512bf16.
11957 * config/i386/immintrin.h: Include avx512bf16intrin.h
11958 and avx512bf16vlintrin.h.
11959 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
11960 avx512f_cvtneps2bf16_<mode><mask_name>,
11961 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
11962 * config/i386/subst.md (mask_half): Add new subst.
11963 * doc/invoke.texi: Document -mavx512bf16.
11964
11965 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
11966
11967 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
11968 Delete declaration.
11969 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
11970 (rs6000_debug_legitimize_reload_address): Delete.
11971 (rs6000_legitimize_reload_address_ptr): Delete.
11972 (rs6000_option_override_internal): Adjust.
11973 (mem_operand_gpr): Adjust comment.
11974 (legitimate_lo_sum_address_p): Ditto.
11975 (rs6000_legitimize_reload_address): Delete.
11976 (rs6000_debug_legitimize_reload_address): Delete.
11977 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
11978
11979 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
11980
11981 PR target/89765
11982 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11983 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
11984 to compute vector element selector for both constant and variable
11985 operands.
11986
11987 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
11988
11989 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
11990 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
11991 ashrdi3_cvt using SWI48 mode iterator.
11992
11993 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11994
11995 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
11996 (aarch64_<su>abd<mode>_3): Likewise.
11997 (*aarch64_<su>abd<mode>_3): New define_insn.
11998 (<sur>sad<vsi2qi>): New define_expand.
11999 * config/aarch64/iterators.md: Added MAX_OPP attribute.
12000 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
12001 (build_vect_cond_expr): Likewise.
12002
12003 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
12004
12005 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
12006 clobbers outside of accessible_reg_set.
12007 * config/i386/i386.c (ix86_conditional_register_usage):
12008 Disable register sets by clearing corresponding bits in
12009 accessible_reg_set. Do not set corresponding bits in fixed_regs,
12010 call_used_regs and don't clear corresponding reg_names array members.
12011
12012 2019-05-07 Richard Biener <rguenther@suse.de>
12013
12014 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
12015 not specified still compute a comp_vectype for invariant
12016 compares.
12017
12018 2019-05-07 Richard Biener <rguenther@suse.de>
12019
12020 PR tree-optimization/90316
12021 * tree-ssa-pre.c (translate_vuse_through_block): When
12022 same_valid is NULL do not bother to search for a virtual
12023 PHI continuation.
12024 (phi_translate_1): When operands changed we cannot keep
12025 the same value-number so do not bother to ask whether
12026 that's possible from translate_vuse_through_block.
12027
12028 2019-05-07 Martin Liska <mliska@suse.cz>
12029
12030 * bitmap.c (bitmap_register): Come up with
12031 alloc_descriptor_max_uid and assign it for
12032 a new bitmap.
12033 (register_overhead): Use get_descriptor as
12034 a descriptor.
12035 (release_overhead): New.
12036 (bitmap_elem_to_freelist): Call it.
12037 (bitmap_elt_clear_from): Likewise.
12038 (bitmap_obstack_free): Likewise.
12039 (bitmap_move): Sensitively release memory.
12040 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
12041 (bitmap_initialize): Initialize alloc_descriptor to zero.
12042 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
12043
12044 2019-05-07 Richard Biener <rguenther@suse.de>
12045
12046 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
12047 we build a SLP node. Remove max_size and limiting.
12048 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
12049
12050 2019-05-07 Richard Biener <rguenther@suse.de>
12051
12052 PR tree-optimization/90316
12053 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
12054 limit by reference.
12055 (walk_non_aliased_vuses): Take walking limit argument.
12056 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
12057 walking if it is reached instead of just counting.
12058 (get_continuation_for_phi): Likewise.
12059 (walk_non_aliased_vuses): Likewise, instead of leaving counter
12060 limiting to the callback.
12061 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
12062 (vn_reference_lookup_3): Likewise.
12063 (vn_reference_lookup_pieces): Likewise.
12064 (vn_reference_lookup): Likewise.
12065 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
12066 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
12067 (avail_exprs_stack::lookup_avail_expr): Likewise.
12068
12069 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
12070
12071 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
12072 for comparaible types in the second direction even if first one
12073 hits incomparable type.
12074
12075 2019-05-07 Richard Biener <rguenther@suse.de>
12076
12077 PR lto/90369
12078 * lto-wrapper.c (debug_objcopy): Use the original filename
12079 including archive offset for the filename used for -save-temps.
12080
12081 2019-05-07 Li Jia He <helijia@linux.ibm.com>
12082
12083 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
12084 detection.
12085
12086 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
12087 Hongtao Liu <hongtao.liu@intel.com>
12088
12089 PR target/89750
12090 PR target/86444
12091 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
12092 Modified, original implementation isn't correct.
12093
12094 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12095
12096 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
12097 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
12098 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
12099 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
12100 (FRAME_POINTER_REGNUM): Change numbering.
12101 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
12102 (alt_reg_names): Adjust.
12103 (rs6000_conditional_register_usage): Don't mark hard register 64 as
12104 fixed.
12105 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
12106 (DWARF_FRAME_REGISTERS): Delete.
12107 (DWARF2_FRAME_REG_OUT): Fix whitespace.
12108 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
12109 Adjust.
12110 (REG_ALLOC_ORDER): Adjust.
12111 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
12112 (REG_CLASS_CONTENTS): Adjust.
12113 (RETURN_ADDR_RTX): Change comment.
12114 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
12115 instead of 67.
12116 (REGISTER_NAMES): Adjust.
12117 (ADDITIONAL_REGISTER_NAMES): Adjust.
12118 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
12119
12120 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12121
12122 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
12123 Delete.
12124 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
12125 (DWARF_FRAME_REGISTERS): Adjust.
12126 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
12127 Adjust.
12128 (REG_ALLOC_ORDER): Adjust.
12129 (enum reg_class): Delete SPR_REGS.
12130 (REG_CLASS_NAMES): Delete SPR_REGS.
12131 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
12132 (REGISTER_NAMES): Adjust.
12133 (ADDITIONAL_REGISTER_NAMES): Adjust.
12134 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
12135 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
12136 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
12137 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
12138 (htm_spr_regno): Delete.
12139 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
12140 argument.
12141 (rs6000_dbx_register_number): Adjust.
12142
12143 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12144
12145 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
12146
12147 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12148
12149 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
12150 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
12151
12152 2019-05-06 Jakub Jelinek <jakub@redhat.com>
12153
12154 PR tree-optimization/88709
12155 PR tree-optimization/90271
12156 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
12157 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
12158 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
12159 variable.
12160 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
12161 of the store merging group is larger than
12162 PARAM_STORE_MERGING_MAX_SIZE parameter.
12163 (split_group): Add bzero_first argument. If set, always emit first
12164 the first store which must be = {} of the whole area and then for the
12165 rest of the stores consider all zero bytes as paddings.
12166 (imm_store_chain_info::output_merged_store): Check if first store
12167 is = {} of the whole area and if yes, determine which setting of
12168 bzero_first for split_group gives smaller number of stores. Adjust
12169 split_group callers.
12170 (lhs_valid_for_store_merging_p): Allow decls.
12171 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
12172 no elts.
12173 (pass_store_merging::process_store): Likewise.
12174
12175 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
12176
12177 PR target/89424
12178 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12179 handling of V1TImode.
12180
12181 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
12182
12183 PR target/89221
12184 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
12185 and enable_frame_pointer ...
12186 * configure.ac: ... here. Update help strings for
12187 --enable-frame-pointer.
12188 * configure: Regenerate.
12189 * config/i386/i386-options.c (ix86_option_override_internal): Remove
12190 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
12191 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
12192 (USE_X86_64_FRAME_POINTER): Ditto.
12193
12194 2019-05-06 Martin Liska <mliska@suse.cz>
12195
12196 * config.gcc: Append to target_gtfiles and fix indentation.
12197
12198 2019-05-06 Richard Biener <rguenther@suse.de>
12199
12200 PR tree-optimization/90358
12201 * tree-vect-stmts.c (get_group_load_store_type): Properly
12202 detect unused upper half of load.
12203 (vectorizable_load): Likewise.
12204
12205 2019-05-06 Richard Biener <rguenther@suse.de>
12206
12207 PR tree-optimization/88828
12208 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
12209 (simplify_vector_constructor): ...here. Handle constants in
12210 the constructor.
12211
12212 2019-05-06 Richard Biener <rguenther@suse.de>
12213
12214 PR tree-optimization/90328
12215 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
12216 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
12217 is valid in the loop nest before using it.
12218 (initialize_data_dependence_relation): Adjust.
12219 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
12220 loop as loop-nest to dr_may_alias_p.
12221
12222 2019-05-06 Richard Biener <rguenther@suse.de>
12223
12224 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
12225
12226 2019-05-06 Richard Biener <rguenther@suse.de>
12227
12228 PR tree-optimization/90316
12229 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
12230 compute target on demand.
12231 (get_continuation_for_phi): Remove code walking stmts to
12232 get to a target virtual operand which could end up being
12233 quadratic.
12234
12235 2019-05-06 Martin Liska <mliska@suse.cz>
12236
12237 PR sanitizer/90312
12238 * config/i386/i386-options.c (ix86_option_override_internal): Error only
12239 when -mabi is selected to a non-default version.
12240
12241 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
12242 Martin Liska <mliska@suse.cz>
12243
12244 * Makefile.in: Add lto-dump.texi.
12245 * cgraph.h: Add new functions get_visibility_string and
12246 get_symtab_type_string.
12247 * doc/gcc.texi: Include lto-dump section.
12248 * doc/lto-dump.texi: New file.
12249 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
12250 (parse_dump_option): Factor out this function.
12251 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
12252 (parse_dump_option): Export the function.
12253 * symtab.c (symtab_node::get_visibility_string): New function.
12254 (symtab_node::get_symtab_type_string): Likewise.
12255
12256 2019-05-06 Martin Liska <mliska@suse.cz>
12257
12258 * config/i386/i386-builtins.c: New file.
12259 * config/i386/i386-builtins.h: New file.
12260 * config/i386/i386-expand.c: New file.
12261 * config/i386/i386-expand.h: New file.
12262 * config/i386/i386-features.c: New file.
12263 * config/i386/i386-features.h: New file.
12264 * config/i386/i386-options.c: New file.
12265 * config/i386/i386-options.h: New file.
12266 * config.gcc: Add new files into extra_objs and
12267 target_gtfiles.
12268 * config/i386/i386.c: Split content of the file
12269 into newly introduced files.
12270 * config/i386/i386.h: Declare common variables
12271 and macros.
12272 * config/i386/t-i386: Define dependencies for new files.
12273
12274 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
12275
12276 PR target/89400
12277 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
12278 Restrict 'all' variant to 32-bit configurations.
12279 (unaligned_loadhiu): Likewise.
12280 (unaligned_storehi): Likewise.
12281 (unaligned_storesi): Likewise.
12282 (unaligned_loadhis): Disable when compiling for thumb1.
12283
12284 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
12285
12286 PR tree-optimization/90269
12287 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
12288 Ignore clobbers.
12289
12290 2019-05-03 Martin Liska <mliska@suse.cz>
12291
12292 * hash-map.h: Add is_empty function.
12293 * hash-set.h: Likewise.
12294 * hash-table.h: Likewise.
12295 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
12296 elements () == 0 (and similar usages).
12297 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
12298 * gimplify.c (gimplify_bind_expr): Likewise.
12299 (gimplify_switch_expr): Likewise.
12300 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
12301 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
12302 * postreload-gcse.c (dump_hash_table): Likewise.
12303 (gcse_after_reload_main): Likewise.
12304 * predict.c (combine_predictions_for_bb): Likewise.
12305 * tree-parloops.c (reduction_phi): Likewise.
12306 (separate_decls_in_region): Likewise.
12307 (transform_to_exit_first_loop): Likewise.
12308 (gen_parallel_loop): Likewise.
12309 (gather_scalar_reductions): Likewise.
12310 (try_create_reduction_list): Likewise.
12311 * var-tracking.c (dump_vars): Likewise.
12312 (emit_notes_for_changes): Likewise.
12313 (vt_emit_notes): Likewise.
12314
12315 2019-05-03 Richard Biener <rguenther@suse.de>
12316
12317 PR tree-optimization/90316
12318 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
12319 before running VN.
12320
12321 2019-05-03 Richard Biener <rguenther@suse.de>
12322
12323 * tree-vect-stmts.c (get_group_load_store_type): Avoid
12324 peeling for gaps by loading only lower halves of vectors
12325 if possible.
12326 (vectorizable_load): Likewise.
12327
12328 2019-05-03 Richard Biener <rguenther@suse.de>
12329
12330 PR middle-end/89518
12331 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
12332
12333 2019-05-03 Richard Biener <rguenther@suse.de>
12334
12335 PR middle-end/87314
12336 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
12337 Handle STRING_CST vs DECL or STRING_CST.
12338
12339 2019-05-03 Richard Biener <rguenther@suse.de>
12340
12341 PR tree-optimization/88963
12342 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
12343 vector loads feeding only BIT_FIELD_REFs to component
12344 loads. Rewrite stores fed by CONSTRUCTORs to component
12345 stores.
12346
12347 2019-05-03 Jakub Jelinek <jakub@redhat.com>
12348
12349 * opts.h (finish_options): Remove lang_mask argument.
12350 (print_help, help_option_argument): Declare.
12351 * opts.c (print_help): Remove forward declaration, no longer static.
12352 (finish_options): Remove lang_mask argument, don't call print_help
12353 here.
12354 * opts-global.c (decode_options): Adjust finish_option caller, call
12355 print_help here.
12356
12357 PR tree-optimization/90303
12358 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
12359 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
12360
12361 2019-05-03 Richard Biener <rguenther@suse.de>
12362
12363 PR tree-optimization/89698
12364 * gimple-fold.c (canonicalize_constructor_val): Early out
12365 for constants, handle unfolded INTEGER_CSTs as they appear in
12366 C++ virtual table ctors.
12367
12368 2019-05-03 Richard Biener <rguenther@suse.de>
12369
12370 * passes.c (execute_function_todo): Remove dead code.
12371
12372 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
12373
12374 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
12375 the internal register number, for any "real" register.
12376
12377 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
12378
12379 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
12380 correct numbers for TFHAR, TFIAR, TEXASR.
12381
12382 2019-05-02 Richard Biener <rguenther@suse.de>
12383
12384 PR tree-optimization/89653
12385 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
12386 update-address-taken before the pass.
12387 * passes.def (pass_tree_loop_init): Put comment before it.
12388
12389 2019-05-02 Richard Biener <rguenther@suse.de>
12390
12391 PR tree-optimization/89509
12392 * tree-ssa-structalias.c (compute_dependence_clique): Look
12393 at the first subvar when determining whether it is restrict.
12394
12395 2019-05-02 Richard Biener <rguenther@suse.de>
12396
12397 PR tree-optimization/90273
12398 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
12399 useless debug stmts.
12400
12401 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12402
12403 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
12404 ACLE branch.
12405 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
12406 SVE ACLE branch.
12407 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
12408 VEC_COND_EXPR be inserted to emulate a conditional internal function.
12409 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
12410 (vectorizable_reduction): Use the functions above to vectorize in a
12411 fully masked loop codes that don't have a conditional internal
12412 function.
12413
12414 2019-05-02 Martin Liska <mliska@suse.cz>
12415
12416 * cgraphclones.c: Call valid_attribute_p with 1 for
12417 target_clone.
12418 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
12419 it's for target attribute.
12420 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
12421 Add new boolean argument.
12422 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12423 Likewise.
12424 (ix86_valid_target_attribute_tree): Pass target_clone_attr
12425 to ix86_valid_target_attribute_inner_p.
12426 (ix86_valid_target_attribute_p): Pass flags argument to
12427 ix86_valid_target_attribute_inner_p.
12428 (get_builtin_code_for_version): Use 0 as it's target attribute.
12429
12430 2019-05-02 Martin Liska <mliska@suse.cz>
12431
12432 * gcc.c (process_command): Add dummy file only
12433 if n_infiles == 0.
12434 * opts-global.c (decode_options): Pass lang_mask.
12435 * opts.c (print_help): New function.
12436 (finish_options): Print --help if help_option_argument
12437 is set.
12438 (common_handle_option): Factor out content of OPT__help_
12439 into print_help.
12440 * opts.h (finish_options): Add new argument.
12441
12442 2019-05-02 Martin Liska <mliska@suse.cz>
12443
12444 PR target/88809
12445 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
12446 With -minline-all-stringops use inline expansion using 4B loop.
12447 * doc/invoke.texi: Document the change of
12448 -minline-all-stringops.
12449
12450 2019-05-01 Jeff Law <law@redhat.com>
12451
12452 PR tree-optimization/88797
12453 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
12454 PHI feeds a conditional on the RHS of an assignment.
12455
12456 2019-04-30 Andrew Waterman <andrew@sifive.com>
12457 Jim Wilson <jimw@sifive.com>
12458
12459 * config/riscv/constraints.md (L): New.
12460 * config/riscv/predicates.md (lui_operand): New.
12461 (sfb_alu_operand): New.
12462 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
12463 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
12464 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
12465 * config/riscv/risc.md (type): Add sfb_alu.
12466 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
12467 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
12468 (branch_zero<mode>): Delete.
12469 (mov<mode>cc): New.
12470 (mov<GPR:mode><X:mode>cc): Likewise.
12471 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
12472
12473 2019-04-30 Nathan Sidwell <nathan@acm.org>
12474
12475 * tree.h (MARK_TS_EXP): New.
12476
12477 2019-04-30 Martin Liska <mliska@suse.cz>
12478
12479 * opts.c (enable_warning_as_error): Provide hints
12480 for unknown options.
12481
12482 2019-04-30 Martin Liska <mliska@suse.cz>
12483
12484 PR debug/90288
12485 * doc/invoke.texi: Add missing dash for gas-locview-support
12486 and gno-as-locview-support.
12487
12488 2019-04-30 Jakub Jelinek <jakub@redhat.com>
12489
12490 PR target/89093
12491 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
12492 whitespace at the start of target attribute string.
12493
12494 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12495
12496 PR target/86538
12497 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
12498 Define __ARM_FEATURE_ATOMICS.
12499
12500 2019-04-30 Martin Liska <mliska@suse.cz>
12501
12502 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
12503 into built_in_function enum. Remove code for endp == 2 and
12504 use BUILT_IN_* constants.
12505 (gimple_fold_builtin): Call the function with fcode.
12506
12507 2019-04-30 Martin Liska <mliska@suse.cz>
12508
12509 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
12510 DECL_FUNCTION_CODE into ix86_builtins enum before
12511 the switch statement.
12512
12513 2019-04-30 Jakub Jelinek <jakub@redhat.com>
12514
12515 PR tree-optimization/89475
12516 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
12517 calls.
12518
12519 2019-04-30 Martin Liska <mliska@suse.cz>
12520
12521 PR translation/90274
12522 * opts.c (print_filtered_help): Wrap string in _(...).
12523
12524 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
12525
12526 PR tree-optimization/90240
12527 Revert:
12528 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12529
12530 PR tree-optimization/90078
12531 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
12532 checks for infinite_cost overflow.
12533
12534 2019-04-29 Jeff Law <law@redhat.com>
12535
12536 * passes.def: Move -Wrestrict pass after copy propagation.
12537
12538 2019-04-29 Maya Rashish <coypu@sdf.org>
12539
12540 * config.gcc (default_gnu_indirect_function): Default to yes
12541 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
12542 sparc*-*-netbsd*, x86_64-*-netbsd*.
12543
12544 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
12545
12546 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
12547 where cond2 is NE_EXPR.
12548 (is_value_included_in): Update comment.
12549
12550 2019-04-29 Richard Biener <rguenther@suse.de>
12551
12552 PR tree-optimization/90278
12553 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
12554 EH on comparison simplification.
12555
12556 2019-04-29 Jason Merrill <jason@redhat.com>
12557
12558 PR c++/82081 - tail call optimization breaks noexcept
12559 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
12560 nothrow function to a might-throw function into a tail call.
12561
12562 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
12563
12564 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
12565 (DDR_INNER_LOOP): Likewise.
12566 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
12567 (initialize_data_dependence_relation): Likewise.
12568 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
12569
12570 2019-04-29 Jakub Jelinek <jakub@redhat.com>
12571
12572 PR rtl-optimization/90257
12573 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
12574 return value.
12575
12576 Revert the revert:
12577 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
12578
12579 PR target/90178
12580 Revert:
12581 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
12582
12583 Revert the revert:
12584 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
12585
12586 Revert:
12587 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12588
12589 * lra-spills.c (lra_final_code_change): Remove useless move insns.
12590
12591 2019-04-29 Richard Biener <rguenther@suse.de>
12592
12593 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
12594 rhs issue a reset.
12595
12596 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
12597
12598 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
12599 varasm.h, and netbsd-protos.h.
12600
12601 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
12602
12603 PR target/89261
12604 * config/i386/i386-protos.h (ix86_data_alignment): Change
12605 the second argument type to unsigned int.
12606 * config/i386/i386.c (ix86_data_alignment): Change "align"
12607 argument type to unsigned int.
12608
12609 2019-04-27 Martin Liska <mliska@suse.cz>
12610
12611 PR middle-end/90258
12612 * opt-suggestions.c (option_proposer::build_option_suggestions):
12613 When get_valid_option_values returns empty values, add the
12614 misspelling candidate.
12615
12616 2019-04-26 Jim Wilson <jimw@sifive.com>
12617
12618 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
12619 parameter.
12620 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
12621 Pass orig_mode to riscv_build_integer.
12622 (riscv_split_integer): Pass mode to riscv_move_integer.
12623 (riscv_legitimize_const_move): Likewise.
12624 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
12625 promoted_mode. Replace force_reg call with code to load constant into
12626 promoted reg and then subreg it for the store.
12627 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
12628 riscv_move_integer.
12629
12630 2018-04-26 Eugene Sharygin <eush@ispras.ru>
12631
12632 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
12633 corrupt codes.
12634
12635 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
12636
12637 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
12638 commentary about the encoding of precision.
12639
12640 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
12641
12642 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
12643 * config/i386/t-freebsd64: New file.
12644 * config.gcc: Add the t-freebsd64 for multilib support.
12645
12646 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
12647
12648 * doc/extend.texi (vector_size): Add missing comma after @xref.
12649
12650 2019-04-25 Jakub Jelinek <jakub@redhat.com>
12651
12652 * BASE-VER: Set to 10.0.0.
12653
12654 2019-04-25 Richard Biener <rguenther@suse.de>
12655
12656 PR middle-end/89765
12657 * gimplify.c (gimplify_expr): Avoid turning a lvalue
12658 VIEW_CONVERT_EXPR into one operating on an rvalue.
12659
12660 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
12661
12662 PR target/89929
12663 * config/i386/i386.c (feature_priority): Moved to file scope.
12664 (processor_features): Likewise.
12665 (processor_model): Likewise.
12666 (_arch_names_table): Likewise.
12667 (arch_names_table): Likewise.
12668 (_feature_list): Removed.
12669 (feature_list): Likewise.
12670 (_isa_names_table): Moved to file scope. Add priority.
12671 (isa_names_table): Likewise.
12672 (get_builtin_code_for_version): Replace feature_list with
12673 isa_names_table. Update error message for P_ZERO priority.
12674
12675 2019-04-25 Richard Biener <rguenther@suse.de>
12676
12677 * tree-pass.h (make_pass_phi_only_cprop): Remove.
12678 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
12679
12680 2019-04-24 Jeff Law <law@redhat.com>
12681
12682 PR tree-optimization/90037
12683 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
12684 * passes.def: Replace all instance of phi-only cprop with the
12685 lattice propagator. Move propagation pass from after erroneous
12686 path isolation to before erroneous path isolation.
12687 * tree-ssa-phionlycprop.c: Remove.
12688
12689 2019-04-24 Richard Biener <rguenther@suse.de>
12690
12691 PR middle-end/90213
12692 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
12693 by size and BITS_PER_UNIT on poly-wide-ints.
12694
12695 2019-04-25 Richard Biener <rguenther@suse.de>
12696
12697 PR middle-end/90194
12698 * match.pd: Add pattern to simplify view-conversion of an
12699 empty constructor.
12700
12701 2019-04-24 Clement Chigot <clement.chigot@atos.net>
12702
12703 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
12704 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
12705 for Go on 32 bit AIX.
12706 * config/rs6000/aix72.h: Likewise.
12707
12708 2019-04-24 Jakub Jelinek <jakub@redhat.com>
12709
12710 PR target/90193
12711 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
12712 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
12713
12714 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
12715
12716 PR target/89952
12717 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
12718 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
12719 for restored hard frame pointer.
12720 (s390_sched_dependencies_evaluation): Implement new target hook.
12721 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
12722
12723 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
12724
12725 * config/arc/arc-options.def: Fix typos and spelling mistakes.
12726 * config/arc/arc.c (arc_init): Cleanup warning message.
12727 (arc_override_options): Likewise.
12728
12729 2019-04-24 Jakub Jelinek <jakub@redhat.com>
12730
12731 PR target/90187
12732 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
12733 a register if both if_true and if_false are MEMs.
12734
12735 PR tree-optimization/90208
12736 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
12737 after labels of new_bb, not before them.
12738
12739 PR tree-optimization/90211
12740 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
12741 which are not SSA_NAMEs.
12742
12743 2018-04-23 Sudakshina Das <sudi.das@arm.com>
12744
12745 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
12746 AArch64.
12747 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
12748
12749 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
12750
12751 PR rtl-optimization/87979
12752 * modulo-sched.c (sms_schedule): Start ii value "mii" should
12753 not equal zero.
12754
12755 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
12756
12757 PR rtl-optimization/84032
12758 * modulo-sched.c (ps_insn_find_column): Change condition so that
12759 branch will always be the last insn in a row inside partial
12760 schedule.
12761
12762 2019-04-23 Richard Biener <rguenther@suse.de>
12763
12764 PR debug/90131
12765 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
12766 dest_single_pred_p argument.
12767 (remove_forwarder_block): Adjust.
12768 (remove_forwarder_block_with_phi): Likewise.
12769
12770 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12771 Bernd Edlinger <bernd.edlinger@hotmail.de>
12772 Jakub Jelinek <jakub@redhat.com>
12773
12774 PR target/89093
12775 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
12776 if used with general-regs-only.
12777 (arm_conditional_register_usage): Don't add non-general regs if
12778 general-regs-only.
12779 (arm_valid_target_attribute_rec): Handle general-regs-only.
12780 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
12781 general-regs-only.
12782 (TARGET_HARD_FLOAT_SUB): Define.
12783 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
12784 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
12785 (TARGET_REALLY_IWMMXT2): Likewise.
12786 * config/arm/arm.opt: Add -mgeneral-regs-only.
12787 * doc/extend.texi: Document ARM general-regs-only target.
12788 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
12789
12790 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12791
12792 PR tree-optimization/90078
12793 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
12794 checks for infinite_cost overflow.
12795
12796 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12797
12798 PR tree-optimization/90021
12799 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
12800 and check univariate against it.
12801 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
12802 * tree-data-ref.c (add_other_self_distances): Pass new argument.
12803
12804 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
12805
12806 PR target/90178
12807 Revert:
12808 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
12809
12810 Revert the revert:
12811 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
12812
12813 Revert:
12814 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12815
12816 * lra-spills.c (lra_final_code_change): Remove useless move insns.
12817
12818 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
12819
12820 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
12821 names using operand format, rather than hard-wired.
12822 (speculation_barrier): Likewise.
12823
12824 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
12825
12826 PR tree-optimization/88055
12827 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
12828 (gen_one_condition): Use it if !HONOR_NANS.
12829
12830 2019-04-19 Jakub Jelinek <jakub@redhat.com>
12831
12832 PR middle-end/90139
12833 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
12834 assign_temp instead of gen_reg_rtx.
12835
12836 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
12837
12838 PR translation/90118
12839 * config/aarch64/aarch64.c (aarch64_override_options_internal):
12840 Add missing space before %<.
12841
12842 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
12843
12844 PR rtl-optimization/87871
12845 * ira-lives.c (make_object_dead): Don't add conflicts to
12846 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
12847
12848 2019-04-18 Martin Sebor <msebor@redhat.com>
12849
12850 PR middle-end/89797
12851 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
12852 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
12853 assuming type size fits in SHWI.
12854
12855 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
12856
12857 PR ipa/85051
12858 * ipa-inline.c (flatten_function): New parameter UPDATE.
12859 (ipa_inline, early_inliner): Use it.
12860
12861 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
12862
12863 * fold-const.c (int_const_binop): Return early on failure.
12864
12865 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
12866
12867 PR middle-end/85164
12868 * combine.c (force_int_to_mode): Cast the argument rather than
12869 the result of known_alignment.
12870 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
12871
12872 2019-04-18 Richard Biener <rguenther@suse.de>
12873
12874 PR debug/90131
12875 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
12876 out from ...
12877 (remove_forwarder_block): ... here.
12878 (remove_forwarder_block_with_phi): Also move debug stmts here.
12879
12880 2019-04-18 Jakub Jelinek <jakub@redhat.com>
12881
12882 PR translation/79183
12883 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
12884 inform where appropriate.
12885
12886 2019-04-18 Richard Biener <rguenther@suse.de>
12887
12888 * tree.c (get_qualified_type): Put found type variants at the
12889 head of the variant list.
12890
12891 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12892
12893 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
12894
12895 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
12896
12897 PR target/90125
12898 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
12899 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
12900 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
12901 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
12902 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
12903
12904 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
12905
12906 * ira-conflicts.c (print_allocno_conflicts): Always print something,
12907 even for allocno's with no conflicts.
12908 (print_conflicts): Print an extra newline.
12909
12910 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12911
12912 * auto-inc-dec.c (attempt_change): Set the alignment of the
12913 temporary memory to that of the original.
12914
12915 2019-04-17 Joao Moreira <jmoreira@suse.de>
12916
12917 * targhooks.c (default_print_patchable_function_entry): Emit
12918 __patchable_function_entries section with writable flags to allow
12919 relocation resolution.
12920
12921 2019-04-17 Jonny Grant <jg@jguk.org>
12922
12923 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
12924
12925 2019-04-17 Jakub Jelinek <jakub@redhat.com>
12926
12927 PR middle-end/90095
12928 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
12929 on lowpart SUBREGs.
12930
12931 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
12932
12933 * config/arc/arc.c (arc_init): Format diagnostic string.
12934 (arc_override_options): Likewise.
12935 (check_if_valid_regno_const): Likewise.
12936 (arc_reorg): Likewise.
12937
12938 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12939
12940 PR target/17108
12941 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
12942 name.
12943 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
12944 name.
12945 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
12946 (*movdi_update1): Use Pmode.
12947 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
12948 (movdi_<mode>_update_stack): Rename to ...
12949 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
12950 use Pmode.
12951 (*movsi_update1): Use Pmode.
12952 (*movsi_update2): Use Pmode.
12953 (movsi_update): Rename to ...
12954 (movsi_<mode>_update): ... this. Use Pmode.
12955 (movsi_update_stack): Fix condition.
12956 (*movhi_update1): Use Pmode. Fix argument to
12957 avoiding_indexed_address_p.
12958 (*movhi_update2): Ditto.
12959 (*movhi_update3): Ditto.
12960 (*movhi_update4): Ditto.
12961 (*movqi_update1): Ditto.
12962 (*movqi_update2): Ditto.
12963 (*movqi_update3): Ditto.
12964 (*movsf_update1, *movdf_update1): Merge, rename to...
12965 (*mov<mode>_update1): This. Use Pmode. Fix argument to
12966 avoiding_indexed_address_p. Add "size" attribute.
12967 (*movsf_update2, *movdf_update2): Merge, rename to...
12968 (*mov<mode>_update2): This. Ditto.
12969 (*movsf_update3): Use Pmode. Fix argument to
12970 avoiding_indexed_address_p.
12971 (*movsf_update4): Ditto.
12972 (allocate_stack): Simplify condition. Adjust pattern names.
12973
12974 2019-04-17 Jakub Jelinek <jakub@redhat.com>
12975
12976 PR target/89093
12977 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
12978 whitespace at the start of target attribute string.
12979
12980 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
12981
12982 PR target/84369
12983 * config/rs6000/power9.md: Add store forwarding bypass.
12984
12985 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
12986
12987 PR debug/89528
12988 * valtrack.c (dead_debug_insert_temp): Reset debug references
12989 to the return value of a call being removed.
12990
12991 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12992
12993 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
12994 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
12995 implement target hook.
12996 (arc_memory_move_cost): New function.
12997 (TARGET_REGISTER_MOVE_COST): Define.
12998 (TARGET_MEMORY_MOVE_COST): Likewise.
12999 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
13000 (MEMORY_MOVE_COST): Likewise.
13001
13002 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13003
13004 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
13005 (sibcall_value_insn): Likewise.
13006 * config/arc/constraints.md (Rs5): Remove.
13007
13008 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13009
13010 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
13011 for last two fake registers.
13012 (arc_conditional_register_usage): Make sure fake frame and arg
13013 pointer regs are in general regs class.
13014 (FRAME_POINTER_MASK): Remove.
13015 (RETURN_ADDR_MASK): Remove.
13016 (arc_must_save_register): Use hard frame regnum.
13017 (frame_restore_reg): Use hard_frame_pointer_rtx.
13018 (arc_save_callee_saves): Likewise.
13019 (arc_restore_callee_saves): Likewise.
13020 (arc_save_callee_enter): Likewise.
13021 (arc_restore_callee_leave): Likewise.
13022 (arc_save_callee_milli): Likewise.
13023 (arc_eh_return_address_location): Likewise.
13024 (arc_check_multi): Use hard frame regnum.
13025 (arc_can_eliminate): Likewise.
13026 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
13027 for register allocator.
13028 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
13029 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
13030 (FRAME_POINTER_REGNUM): Change it to a fake register.
13031 (HARD_FRAME_POINTER_REGNUM): Defined.
13032 (ARG_POINTER_REGNUM): Change it to a new fake register.
13033 (ELIMINABLE_REGS): Update.
13034 (REGISTER_NAMES): Update names.
13035 * config/arc/arc.md (LP_START): Remove.
13036 (LP_END): Likewise.
13037 (shift_si3_loop): Update pattern.
13038
13039 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13040
13041 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
13042 to avoid delay slot scheduling.
13043 (arc_must_save_register): Don't save SP.
13044 * config/arc/arc.md (stack_tie): Remove.
13045 (UNSPEC_ARC_STKTIE): Likewise.
13046
13047 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
13048 Shiva Chen <shiva0217@gmail.com>
13049
13050 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
13051 code gen with large shift amount.
13052
13053 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
13054
13055 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
13056 subreg.
13057
13058 2019-04-16 Jakub Jelinek <jakub@redhat.com>
13059
13060 PR target/90096
13061 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
13062 print -m64/-mx32/-m32 if it is true.
13063 (ix86_debug_options, ix86_function_specific_print): Pass true as
13064 ADD_ABI_P to ix86_target_string.
13065 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
13066 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
13067 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
13068
13069 PR rtl-optimization/90082
13070 * dce.c (can_delete_call): New function.
13071 (deletable_insn_p, mark_insn): Use it.
13072
13073 PR tree-optimization/90090
13074 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
13075 throw internally.
13076 (is_division_by_square): Likewise. Formatting fix.
13077
13078 2019-04-16 Richard Biener <rguenther@suse.de>
13079
13080 PR tree-optimization/56049
13081 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
13082 equality check if alias-set zero will prevail.
13083
13084 2019-04-15 Jeff Law <law@redhat.com>
13085
13086 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
13087 size and alignment as unsigned.
13088
13089 2019-04-15 Richard Biener <rguenther@suse.de>
13090
13091 PR debug/90074
13092 * tree-loop-distribution.c (destroy_loop): Preserve correct
13093 debug info.
13094
13095 2019-04-15 Richard Biener <rguenther@suse.de>
13096
13097 PR tree-optimization/90071
13098 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
13099 abnormal operands from def stmts.
13100
13101 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
13102
13103 PR rtl-optimization/89794
13104 * combine.c (count_auto_inc): New function.
13105 (try_combine): Count how many auto_inc expressions there were in the
13106 original instructions. Ensure we have the same number in the new
13107 instructions. Remove the code that tried to ensure auto_inc side
13108 effects on i1 and i0 are not lost.
13109
13110 2019-04-15 Richard Biener <rguenther@suse.de>
13111
13112 PR ipa/88936
13113 * tree.h (auto_var_p): Declare.
13114 * tree.c (auto_var_p): New function, split out from ...
13115 (auto_var_in_fn_p): ... here.
13116 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
13117 member.
13118 (new_var_info): Initialize it.
13119 (set_uids_in_ptset): Also set the shadow variable uid if required.
13120 (ipa_pta_execute): Postprocess points-to solutions assigning
13121 shadow variable uids for locals that may reach their containing
13122 function recursively.
13123 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
13124 assert but instead check whether the points-to solution is
13125 a singleton.
13126
13127 2019-04-15 Martin Jambor <mjambor@suse.cz>
13128
13129 PR ipa/pr89693
13130 * cgraph.c (clone_of_p): Loop over clone chain for each step in
13131 the thunk chain.
13132
13133 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
13134
13135 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
13136
13137 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
13138 Kito Cheng <kito.cheng@gmail.com>
13139 Shiva Chen <shiva0217@gmail.com>
13140
13141 * config/nds32/nds32-md-auxiliary.c
13142 (nds32_legitimize_pic_address): Use new PIC pattern.
13143 (nds32_legitimize_tls_address): Use new TLS pattern.
13144 (nds32_output_symrel): New.
13145 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
13146 (nds32_alloc_relax_group_id): Ditto.
13147 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
13148 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
13149 relax_group_id.
13150 (nds32_group_tls_insn): Ditto.
13151 (nds32_group_float_insns): Ditto.
13152 * config/nds32/nds32.md (tls_le): New.
13153 (sym_got): Ditto.
13154
13155 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
13156
13157 * configure: Add nds32 target for dwarf2 debug_line checking.
13158 * configure.ac: Regenerated.
13159
13160 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
13161
13162 PR lto/89358
13163 * ipa-devirt.c (skip_in_fields_list_p): New.
13164 (odr_types_equivalent_p): Use it.
13165
13166 2019-04-13 Jakub Jelinek <jakub@redhat.com>
13167
13168 PR target/89093
13169 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
13170 instead of strncmp when checking for thumb and arm. Formatting fixes.
13171
13172 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
13173
13174 * doc/install.texi: Document --with-target-system-zlib.
13175
13176 2019-04-12 Martin Sebor <msebor@redhat.com>
13177
13178 PR c/88383
13179 PR c/89288
13180 PR c/89798
13181 PR c/89797
13182 * targhooks.c (default_vector_alignment): Avoid assuming
13183 argument fits in SHWI.
13184 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
13185 a shift expression.
13186 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
13187
13188 2019-04-12 Jakub Jelinek <jakub@redhat.com>
13189
13190 PR rtl-optimization/89965
13191 * dce.c: Include rtl-iter.h.
13192 (struct check_argument_load_data): New type.
13193 (check_argument_load): New function.
13194 (find_call_stack_args): Check for loads from stack slots still tracked
13195 in sp_bytes and punt if any is found.
13196
13197 * config/mips/loongson-mmiintrin.h: Fix up #error message.
13198
13199 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
13200
13201 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
13202 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
13203
13204 2019-04-12 Martin Liska <mliska@suse.cz>
13205
13206 PR middle-end/89970
13207 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
13208 in error message.
13209 (separate_attrs): Handle multiple 'default's.
13210 (expand_target_clones): Rework error handling code.
13211
13212 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
13213
13214 PR target/87532
13215 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
13216 mode of vector rather than mode of destination for move instruction.
13217 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
13218 Use QI inner mode with V16QI vector mode.
13219
13220 2019-04-12 Jakub Jelinek <jakub@redhat.com>
13221
13222 PR target/52726
13223 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
13224 "invalid %%t operand" in output_operand_lossage message.
13225
13226 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
13227
13228 * config/s390/predicates.md (permute_pattern_operand): New
13229 predicate.
13230 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
13231 operand for the permute pattern.
13232 ("*vec_perm<mode>"): New insn definition.
13233 ("bswap<mode>"): Generate the permute pattern operand in the
13234 expander and perform the operand reloads for pre arch13 level
13235 already.
13236 ("*bswap<mode>_emu"): Rename to ...
13237 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
13238 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
13239 Add the USE operand for the permute pattern.
13240 ("*vec_set_bswap_vec<mode>"): Likewise.
13241
13242 2019-04-12 Jakub Jelinek <jakub@redhat.com>
13243
13244 PR c/89946
13245 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
13246 and gcc_unreachable if it fails, just call tree_to_uhwi which
13247 verifies that too. Test TREE_CHAIN instead of list_length > 1.
13248 Start warning message with a lower-case letter. Formatting fixes.
13249
13250 PR rtl-optimization/90026
13251 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
13252 successors, look for BARRIERs inside of the whole BB_FOOTER chain
13253 rather than just at the start of it. If e->src BB_FOOTER is not NULL
13254 in cfglayout mode, use emit_barrier_after_bb.
13255
13256 2018-04-11 Steve Ellcey <sellcey@marvell.com>
13257
13258 PR rtl-optimization/87763
13259 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
13260 New Instruction.
13261
13262 2019-04-11 Tom de Vries <tdevries@suse.de>
13263
13264 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
13265 max macro using statement expression.
13266
13267 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
13268
13269 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
13270 * xcoffout.c (xcoff_private_rodata_section_name): Define.
13271 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
13272 read_only_private_data_section using xcoff_private_rodata_section_name.
13273 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
13274
13275 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
13276
13277 PR target/90016
13278 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
13279
13280 2019-04-11 Jakub Jelinek <jakub@redhat.com>
13281
13282 PR rtl-optimization/89965
13283 * dce.c (sp_based_mem_offset): New function.
13284 (find_call_stack_args): Use sp_based_mem_offset.
13285
13286 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
13287
13288 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
13289
13290 2019-04-11 Richard Biener <rguenther@suse.de>
13291
13292 PR tree-optimization/90020
13293 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
13294 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
13295 * tree-ssa-pre.c (compute_avail): Use it to not put
13296 possibly trapping references after a call that might not
13297 return into EXP_GEN.
13298 * gcse.c (compute_hash_table_work): Do not elide
13299 marking a block containing a call if the call might not
13300 return.
13301
13302 2019-04-11 Richard Biener <rguenther@suse.de>
13303
13304 PR tree-optimization/90018
13305 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
13306 Test both SLP and interleaving variants.
13307
13308 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
13309
13310 * config/s390/8561.md: New file.
13311 * config/s390/driver-native.c (s390_host_detect_local_cpu):
13312 Add arch13 cpu model.
13313 * config/s390/s390-opts.h (enum processor_type): Likewise.
13314 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
13315 (s390_get_unit_mask): Likewise.
13316 (s390_is_fpd): Likewise.
13317 (s390_is_fxd): Likewise.
13318 * config/s390/s390.h (s390_tune_attr): Likewise.
13319 * config/s390/s390.md: Include arch13 pipeline description.
13320 * config/s390/s390.opt: Add arch13.
13321
13322 2018-04-10 Steve Ellcey <sellcey@marvell.com>
13323
13324 PR rtl-optimization/87763
13325 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
13326 New prototype.
13327 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
13328 New function.
13329 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
13330 New instruction.
13331 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
13332 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
13333 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
13334 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
13335
13336 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
13337
13338 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
13339 "Although" in -fipa-icf documentation.
13340
13341 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
13342 of using multiple -g options.
13343
13344 2019-04-10 Martin Liska <mliska@suse.cz>
13345
13346 PR gcov-profile/89959
13347 * doc/gcov.texi: Make documentation of -x option
13348 more precise.
13349
13350 2019-04-10 Richard Biener <rguenther@suse.de>
13351
13352 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
13353 member.
13354 (DR_GROUP_SAME_DR_STMT): Remove.
13355 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
13356 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
13357 replace with assert.
13358 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
13359 (vect_record_grouped_load_vectors): Remove unreachable code.
13360
13361 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
13362
13363 PR target/90016
13364 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
13365 obsolete reference to N.
13366
13367 2019-04-10 Jakub Jelinek <jakub@redhat.com>
13368
13369 PR middle-end/90025
13370 * expr.c (store_expr): Set properly size on the MEM passed to
13371 clear_storage.
13372
13373 PR c++/90010
13374 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
13375 with strlen in between hostsz-3 and hostsz-1 inclusive when no
13376 translation is needed, and when translation is needed, only append
13377 ... if the string length is hostsz or more bytes long. Avoid using
13378 strncpy or strcat.
13379
13380 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
13381
13382 PR target/90024
13383 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
13384 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
13385 into three.
13386 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
13387 differences directly.
13388 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
13389
13390 2019-04-09 Jakub Jelinek <jakub@redhat.com>
13391
13392 PR translation/90011
13393 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
13394 from diagnostics.
13395 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
13396 diagnostics.
13397 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
13398 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
13399 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
13400 trailing space from -gsplit-dwarf diagnostics.
13401
13402 PR tree-optimization/89998
13403 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
13404 instead of integer_type_node if possible, don't add ranges if return
13405 type is not compatible with int.
13406 * gimple-fold.c (gimple_fold_builtin_sprintf,
13407 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
13408 integer_type_node.
13409
13410 2019-04-09 Martin Liska <mliska@suse.cz>
13411
13412 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
13413 * doc/install.texi: Document the new config.
13414
13415 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
13416
13417 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
13418 use gimple_expr_type for load and store calls. Skip over the
13419 condition argument in a conditional internal function.
13420 Protect use of TREE_INT_CST_LOW.
13421
13422 2019-04-09 Jakub Jelinek <jakub@redhat.com>
13423
13424 PR target/90015
13425 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
13426 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
13427 trailing period from it too.
13428
13429 2019-04-08 wu yuan <wuyuan5@huawei.com>
13430
13431 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
13432 * config/aarch64/aarch64.md : Add "tsv110.md"
13433 * config/aarch64/tsv110.md: New file.
13434
13435 2019-04-08 Richard Biener <rguenther@suse.de>
13436
13437 PR tree-optimization/90006
13438 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
13439 calls like lrint.
13440
13441 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
13442
13443 PR target/83033
13444 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
13445 construction.
13446 (fma_root_node): Likewise.
13447 (func_fma_steering): Likewise.
13448
13449 2019-04-08 Jakub Jelinek <jakub@redhat.com>
13450
13451 PR rtl-optimization/89865
13452 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
13453
13454 PR rtl-optimization/89865
13455 * config/i386/i386.md
13456 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
13457 numbers not to clash with the additional operands[4].
13458 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
13459 with extra register copy in the middle.
13460
13461 2019-04-08 Martin Liska <mliska@suse.cz>
13462
13463 PR gcov-profile/89961
13464 * doc/gcov.texi: Document data_file.
13465 * gcov.c (generate_results): Add data_info into JSON output.
13466
13467 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
13468
13469 PR tree-optimization/89725
13470 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
13471 loop's chrec as invariant symbol.
13472 * tree-chrec.h (chrec_contains_symbols): New parameter.
13473 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
13474 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
13475 function of loops not in DDR's loop_nest.
13476 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
13477
13478 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
13479
13480 PR target/89623
13481 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
13482 Mask.
13483
13484 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
13485
13486 PR target/89945
13487 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
13488 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
13489
13490 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
13491
13492 * sched-deps.c (sched_macro_fuse_insns): Check return value of
13493 targetm.fixed_condition_code_regs.
13494
13495 2019-04-05 Richard Biener <rguenther@suse.de>
13496
13497 PR debug/89892
13498 PR debug/89905
13499 * tree-cfgcleanup.c (remove_forwarder_block): Always move
13500 debug bind stmts but reset them if they are not valid at the
13501 destination.
13502
13503 2019-04-05 Martin Liska <mliska@suse.cz>
13504
13505 PR translation/89936
13506 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
13507 order to wrap keywords or arguments.
13508 * collect2.c (main): Likewise.
13509 (scan_prog_file): Likewise.
13510 (scan_libraries): Likewise.
13511 * common/config/riscv/riscv-common.c
13512 (riscv_subset_list::parsing_subset_version): Likewise.
13513 (riscv_subset_list::parse_std_ext): Likewise.
13514 * config/aarch64/aarch64.c (aarch64_override_options_internal):
13515 Likewise.
13516 * config/arm/arm.c (arm_option_override): Likewise.
13517 * config/cris/cris.c (cris_print_operand): Likewise.
13518 * config/darwin-c.c (darwin_pragma_options): Likewise.
13519 (darwin_pragma_unused): Likewise.
13520 (darwin_pragma_ms_struct): Likewise.
13521 * config/ft32/ft32.c (ft32_print_operand): Likewise.
13522 * config/i386/i386.c (print_reg): Likewise.
13523 (ix86_print_operand): Likewise.
13524 * config/i386/xm-djgpp.h: Likewise.
13525 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
13526 * config/m32c/m32c.c (m32c_option_override): Likewise.
13527 * config/msp430/msp430.c (msp430_option_override): Likewise.
13528 * config/nds32/nds32.c (nds32_option_override): Likewise.
13529 * config/nvptx/mkoffload.c (main): Likewise.
13530 * config/rx/rx.c (rx_print_operand): Likewise.
13531 (valid_psw_flag): Likewise.
13532 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
13533 (vms_pragma_nomember_alignment): Likewise.
13534 (vms_pragma_extern_model): Likewise.
13535 * lto-wrapper.c (compile_offload_image): Likewise.
13536 * omp-offload.c (oacc_parse_default_dims): Likewise.
13537 * symtab.c (symtab_node::verify_base): Likewise.
13538 * tlink.c (recompile_files): Likewise.
13539 (start_tweaking): Likewise.
13540 * tree-profile.c (parse_profile_filter): Likewise.
13541
13542 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
13543
13544 PR tree-optimization/89956
13545 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
13546 multiple negates of the same value.
13547
13548 2019-04-04 Martin Sebor <msebor@redhat.com>
13549
13550 PR middle-end/89957
13551 PR middle-end/89911
13552 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
13553 have the same precision since the function crashes otherwise.
13554 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
13555 has non-zero arguments.
13556
13557 2019-04-04 Martin Sebor <msebor@redhat.com>
13558
13559 PR middle-end/89934
13560 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
13561 out if the number of arguments is less than expected.
13562
13563 2019-04-04 Jeff Law <law@redhat.com>
13564
13565 PR rtl-optimization/89399
13566 * ree.c (combine_set_extension): Use single_set rather than
13567 digging into PATTERN for items on the candidate list.
13568 (combine_reaching_defs): Likewise.
13569
13570 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
13571
13572 PR rtl-optimization/46590
13573 * loop-invariant.c (find_defs): Move df_remove_problem and
13574 df_process_deferred_rescans to move_invariants.
13575 Move df_live_add_problem and df_live_set_all_dirty calls
13576 to move_invariants.
13577 (move_invariants): Likewise.
13578 (move_loop_invariants): Likewise, making the df_live calls
13579 conditional on -O. Remove the problem again if we added it
13580 locally.
13581
13582 2019-04-03 qing zhao <qing.zhao@oracle.com>
13583
13584 PR tree-optimization/89730
13585 * ipa-inline.c (can_inline_edge_p): Delete the checking for
13586 -flive-patching=inline-only-static.
13587 (can_inline_edge_by_limits_p): Add the checking for
13588 -flive-patching=inline-only-static and grant always_inline
13589 even when -flive-patching=inline-only-static is specified.
13590
13591 2019-04-03 Jeff Law <law@redhat.com>
13592
13593 PR rtl-optimization/81025
13594 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
13595
13596 2019-04-03 Richard Biener <rguenther@suse.de>
13597
13598 PR tree-optimization/84101
13599 * tree-vect-stmts.c: Include explow.h for hard_function_value,
13600 regs.h for hard_regno_nregs.
13601 (cfun_returns): New helper.
13602 (vect_model_store_cost): When vectorizing a store to a decl
13603 we return and the function ABI returns in a multi-reg location
13604 account for the possible spilling that will happen.
13605
13606 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
13607
13608 * config/s390/s390.c (s390_legitimate_address_p): Reject long
13609 displacement addresses for vector mode operands.
13610
13611 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
13612
13613 * config/arc/arc.c (GMASK_LEN): Define.
13614 (arc_restore_callee_saves): Restore first blink when
13615 !optimize_size.
13616
13617 2019-04-03 Sudakshina Das <sudi.das@arm.com>
13618
13619 * doc/extend.texi: Add deprecated comment on sign-return-address
13620 function attribute and add mbranch-protection.
13621 * doc/invoke.texi: Add bti to the options for mbranch-protection.
13622
13623 2019-04-03 Richard Biener <rguenther@suse.de>
13624
13625 PR lto/89896
13626 * lto-wrapper.c (run_gcc): Avoid implicit rules making
13627 the all target phony.
13628
13629 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
13630
13631 PR target/89902
13632 PR target/89903
13633 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
13634 Return false for variable DImode shifts.
13635 (dimode_scalar_chain::compute_convert_gain): Do not handle
13636 register count operand in variable DImode shifts.
13637 (dimode_scalar_chain::make_vector_copies): Remove support to copy
13638 count argument of a variable shift instruction to a vector register.
13639 (dimode_scalar_chain::convert_reg): Remove support to convert
13640 count argument of a variable shift instruction.
13641
13642 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
13643
13644 PR rtl-optimization/84206
13645 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
13646 iterating over loop headers.
13647
13648 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
13649
13650 PR rtl-optimization/85876
13651 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
13652 beyond the original fence.
13653
13654 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
13655
13656 * config.gcc: Mark spu* targets as deprecated/obsolete.
13657
13658 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13659
13660 * config/s390/s390-builtin-types.def: New builtin function type
13661 definitions. Remove unused types.
13662 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
13663 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
13664 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
13665 overloaded builtins.
13666 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
13667 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
13668 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
13669 (vec_double, vec_signed, vec_unsigned): Define to use the new
13670 overloaded builtins.
13671 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
13672 Remove expanders.
13673
13674 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13675
13676 * config/s390/s390-builtin-types.def: New builtin function type
13677 definitions.
13678 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
13679 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
13680 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
13681 (s390_vstrszh, s390_vstrszf): New low-level builtins.
13682 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
13683 constant definitions.
13684 * config/s390/vecintrin.h (vec_search_string_cc)
13685 (vec_search_string_until_zero_cc): New builtin name definitions.
13686 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
13687 expanders.
13688 ("vec_vstrs<mode>"): New insn definition.
13689
13690 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13691
13692 * config/s390/s390-builtin-types.def: Add new builtin function
13693 types.
13694 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
13695 New overloaded builtins.
13696 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
13697 s390_vsrd.
13698 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
13699 (UNSPEC_VEC_SLDBYTE): ... this.
13700 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
13701 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
13702 definitions.
13703 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
13704 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
13705 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
13706
13707 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13708
13709 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
13710 New insn definition.
13711 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
13712 * config/s390/vector.md (V_HW_HSD): ... here.
13713
13714 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13715
13716 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
13717 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
13718 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
13719 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
13720 New insn definitions.
13721
13722 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13723
13724 * config/s390/s390-builtin-types.def: Add new builtin function type.
13725 * config/s390/s390-builtins.def: Add overloaded builtin
13726 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
13727 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
13728 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
13729 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
13730 ("eltswap<mode>"): New expander.
13731 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
13732 insn definitions.
13733
13734 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13735
13736 * config/s390/s390-builtin-types.def: Add new builtin function types.
13737 * config/s390/s390-builtins.def: Add overloaded builtin
13738 s390_vec_revb. Add low-level builtins for vlbr and vstbr
13739 instructions.
13740 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
13741 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
13742 ("bswap<mode>"): New expander.
13743 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
13744
13745 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13746
13747 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
13748 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
13749 vector builtin version number in __VEC__.
13750
13751 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13752
13753 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
13754 iterators.
13755 (SFSI): New mode attribute.
13756 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
13757 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
13758 rename to ...
13759 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
13760 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
13761 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
13762 ("floatsi<mode>2"): Add wcefb instruction.
13763
13764 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13765
13766 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
13767 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
13768 mode iterators.
13769 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
13770 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
13771 support 32 bit fp-int conversions. Rename to ...
13772 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
13773 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
13774 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
13775 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
13776 ... to these.
13777
13778 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13779
13780 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
13781 if-then-else constructs if we can use the select instruction.
13782 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
13783
13784 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13785
13786 * config/s390/s390.md ("*popcountdi_arch13_cc")
13787 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
13788 definition.
13789 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
13790 Append _z196 to make it ...
13791 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
13792 ("popcounthi2_z196"): ... this.
13793 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
13794 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
13795
13796 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13797
13798 * config/s390/s390.c (s390_canonicalize_comparison): Convert
13799 certain compares for arch13 in order to make use of the condition
13800 code result produced by the new instructions.
13801 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
13802 nxrk, and nxgrk instruction patterns.
13803 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
13804 (inv_no): Add new code iterator together with some attributes.
13805 ("*andc_split_<mode>"): Disable splitter for arch13.
13806 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
13807 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
13808 ("*<ANDOR:bitops_name>c<GPR:mode>")
13809 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
13810 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
13811 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
13812 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
13813
13814 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13815
13816 * common/config/s390/s390-common.c (processor_flags_table): New
13817 entry for arch13.
13818 * config.gcc: Support arch13 with the --with-arch= configure flag.
13819 * config/s390/driver-native.c (s390_host_detect_local_cpu):
13820 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
13821 * config/s390/s390.c (s390_get_sched_attrmask)
13822 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
13823 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
13824 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
13825 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
13826 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
13827 definitions.
13828 * config/s390/s390.opt: Support arch13 as processor type in
13829 command line options.
13830
13831 2019-04-02 Martin Liska <mliska@suse.cz>
13832
13833 PR translation/89912
13834 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
13835 Fix param description of graphite-max-arrays-per-scop.
13836
13837 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
13838
13839 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
13840 (ASAN_CC1_SPEC): Use it in 64-bit mode.
13841 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
13842
13843 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13844
13845 PR rtl-optimization/85412
13846 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
13847 sel_sched_region_1, not after.
13848
13849 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13850
13851 PR rtl-optimization/86928
13852 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
13853 compute_live if necessary.
13854 (sel_redirect_edge_and_branch): Likewise.
13855
13856 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
13857
13858 PR rtl-optimization/89865
13859 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
13860 register if it is a part of small class.
13861
13862 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13863
13864 PR rtl-optimization/87273
13865 * sel-sched-ir.c (merge_fences): Remove assert.
13866
13867 2019-04-01 Richard Biener <rguenther@suse.de>
13868
13869 PR tree-optimization/46590
13870 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
13871 (dom_walker::m_reachability): Add in place of...
13872 (dom_walker::m_skip_unreachable_blocks): ...this.
13873 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
13874 Move complex initialization ...
13875 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
13876 lazily and initialize edge flags on each invocation.
13877 (dom_walker::bb_reachable): Use m_reachability.
13878
13879 2019-04-01 Martin Liska <mliska@suse.cz>
13880
13881 PR driver/89861
13882 * opt-suggestions.c (option_proposer::build_option_suggestions):
13883 Add variant without any argument in order to provide better
13884 hints.
13885
13886 2019-04-01 Richard Biener <rguenther@suse.de>
13887
13888 PR c/71598
13889 * gimple.c: Include langhooks.h.
13890 (gimple_get_alias_set): Treat enumeral types as the underlying
13891 integer type.
13892
13893 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
13894 Eric Botcazou <ebotcazou@adacore.com>
13895
13896 PR rtl-optimization/89862
13897 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
13898 that operates on the full registers for WORD_REGISTER_OPERATIONS
13899 architectures.
13900
13901 2019-03-29 Jim Wilson <jimw@sifive.com>
13902
13903 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
13904 Clear MASK_RVC and then set if C subset supported.
13905
13906 2019-03-29 Jakub Jelinek <jakub@redhat.com>
13907
13908 PR c/89872
13909 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
13910 non-addressable complit into its initializer if it is volatile.
13911
13912 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
13913
13914 * opts-common.c (integral_argument): Set errno properly in one case.
13915
13916 2019-03-29 Martin Liska <mliska@suse.cz>
13917
13918 * doc/invoke.texi: Remove -Wchkp from documentation.
13919
13920 2019-03-29 Martin Liska <mliska@suse.cz>
13921
13922 * dbgcnt.c (print_limit_reach): New function.
13923 (dbg_cnt): Use it.
13924
13925 2019-03-29 Martin Liska <mliska@suse.cz>
13926
13927 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
13928 (dbg_cnt_process_opt): Parse first tokens aas
13929 dbg_cnt_process_single_pair is also using strtok.
13930
13931 2019-03-29 Jakub Jelinek <jakub@redhat.com>
13932
13933 PR rtl-optimization/87485
13934 * function.c (expand_function_end): Move stack_protect_epilogue
13935 before loading of return value into hard register(s).
13936
13937 2019-03-28 Jakub Jelinek <jakub@redhat.com>
13938
13939 PR middle-end/89621
13940 * tree-inline.h (struct copy_body_data): Add
13941 dont_remap_vla_if_no_change flag.
13942 * tree-inline.c (remap_type_3, remap_type_2): New functions.
13943 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
13944 and remap_type_2 returns false.
13945 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
13946 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
13947 only from where it is copied to nested contexts.
13948
13949 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
13950
13951 PR target/89865
13952 * config/i386/i386.md (RMW operation with LEA peephole):
13953 Use LEAMODE mode attribute instead of SWI mode iterator for
13954 LEA pattern.
13955
13956 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
13957
13958 PR target/89848
13959 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
13960 Also process XEXP (src, 0) of a shift insn.
13961
13962 2019-03-28 David Malcolm <dmalcolm@redhat.com>
13963
13964 PR middle-end/89725
13965 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
13966 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
13967
13968 2019-03-28 Jakub Jelinek <jakub@redhat.com>
13969
13970 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
13971 test.
13972 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
13973 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
13974 immediately after first one with df_analyze in between, but rather
13975 process all bbs, queueing ones that need second pass in a worklist,
13976 df_analyze, process queued debug insn changes and if second pass is
13977 needed, process bbs from worklist, df_analyze, process queued debug
13978 insns again.
13979
13980 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
13981 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
13982 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
13983
13984 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
13985
13986 PR c/79022
13987 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
13988 definition.
13989
13990 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
13991
13992 PR target/85667
13993 * config/i386/i386.c (ix86_function_value_1): Call the newly added
13994 function for 32-bit MS_ABI.
13995 (function_value_ms_32): New function.
13996
13997 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
13998
13999 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
14000 (movdi): Call gen_movdi_symbol_save_scc.
14001 (gen_movdi_symbol_save_scc): New insn and split.
14002
14003 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
14004
14005 PR rtl-optimization/89313
14006 * function.c (matching_constraint_num): New static function.
14007 (match_asm_constraints_1): Use it. Fixup white space and comment.
14008 Don't replace inputs with non-matching constraints which conflict
14009 with early clobber outputs.
14010
14011 2019-03-27 Jeff Law <law@redhat.com>
14012
14013 PR rtl-optimization/87761
14014 PR rtl-optimization/89826
14015 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
14016 slightly later.
14017 (pass_cprop_hardreg::execute): Call df_analyze after adding the
14018 note problem to get REG_DEAD/REG_UNUSED notes updated.
14019
14020 2019-03-27 Richard Biener <rguenther@suse.de>
14021
14022 PR tree-optimization/89463
14023 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
14024 queue edges to remove.
14025 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
14026 dead stmts. Delay edge removal until PHIs are removed to
14027 make debug-stmt creation not confused by seemingly degenerate
14028 PHIs.
14029
14030 2019-03-27 Alan Modra <amodra@gmail.com>
14031
14032 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
14033 throughout file.
14034 * config/rs6000/darwin.h: Likewise.
14035 * config/rs6000/rs6000.c: Likewise.
14036
14037 2019-03-27 Alan Modra <amodra@gmail.com>
14038
14039 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
14040 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
14041
14042 2019-03-26 Andrew Waterman <andrew@sifive.com>
14043 Jim Wilson <jimw@sifive.com>
14044
14045 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
14046 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
14047 (generic_idivdi, generic_fmul_single, generic_fmul_double)
14048 (generic_fdiv, generic_fsqrt): Add check for generic tune.
14049 (generic_alu): Add auipc to type list.
14050 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
14051 (riscv_microarchitecture): Declare.
14052 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
14053 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
14054 field.
14055 (riscv_microarchitecture): New.
14056 (sifive_7_tune_info): New.
14057 (riscv_cpu_info_table): Add microarchitecture value for rocket and
14058 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
14059 entries.
14060 (riscv_store_data_bypass_p): New.
14061 (riscv_option_override): Set riscv_microarchitecture from
14062 cpu->microarchitecture.
14063 * config/riscv/riscv.md: Include sifive-7.md.
14064 (type): Add auipc.
14065 (tune): New.
14066 (auipc<mode>): Change type to auipc.
14067 (restore_stack_nonlocal): New.
14068 * config/riscv/sifive-7.md: New.
14069 * doc/invoke.texi (RISC-V Options): Update mtune docs.
14070
14071 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
14072
14073 PR target/89827
14074 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
14075 Also process XEXP (src, 0) of a shift insn.
14076
14077 2019-03-26 Richard Biener <rguenther@suse.de>
14078
14079 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
14080 (copy_debug_stmt): Likewise.
14081 (expand_call_inline): Likewise.
14082 (copy_bb): Avoid redundant lookup & set of gimple_block.
14083 * gimple-low.c (lower_gimple_return): Likewise.
14084 (lower_builtin_setjmp): Likewise.
14085
14086 2019-03-26 Jakub Jelinek <jakub@redhat.com>
14087
14088 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
14089 is constant 0, turn into static const data member initialized to false.
14090 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
14091 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
14092
14093 2019-03-26 Jason Merrill <jason@redhat.com>
14094 Jakub Jelinek <jakub@redhat.com>
14095
14096 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
14097 method.
14098 (mem_alloc_description::release_object_overhead): Fix comment typos.
14099 * hash-table.h (hash_table::~hash_table): Call
14100 release_instance_overhead only if m_entries is non-NULL, otherwise
14101 call unregister_descriptor.
14102
14103 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
14104
14105 PR tree-optimization/81740
14106 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14107 In case of outer loop vectorization, check for backward dependence
14108 at the inner loop if outer loop dependence is reversed.
14109
14110 2019-03-26 Alan Modra <amodra@gmail.com>
14111
14112 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
14113 rs6000_vector_mem init. Correct wI and wJ comment.
14114
14115 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
14116
14117 PR rtl-optimization/88347
14118 PR rtl-optimization/88423
14119 * sched-deps.c (sched_analyze_insn): Take into account that for
14120 tablejumps the barrier appears after a label and a jump_table_data.
14121
14122 2019-03-25 Martin Sebor <msebor@redhat.com>
14123
14124 PR c/89812
14125 * c-common.c (check_user_alignment): Rename local. Correct maximum
14126 alignment in diagnostic. Avoid assuming argument fits in SHWI,
14127 convert it to UHWI when it fits.
14128
14129 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
14130
14131 PR debug/86964
14132 * dwarf2out.c (premark_used_variables): New function.
14133 (prune_unused_types_walk): Do not mark not premarked external
14134 variables.
14135 (prune_unused_types): Call premark_used_variables.
14136
14137 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
14138
14139 PR rtl-optimization/89676
14140 * lra-constraints.c (curr_insn_transform): Do match reload for
14141 early clobbers when the match was successful only for different
14142 registers.
14143
14144 2019-03-25 Martin Sebor <msebor@redhat.com>
14145
14146 * doc/extend.texi (Common Type Attributes): Document vector_size.
14147 (Common Variable Attributes): Mention size constraint. Correct
14148 quoting and typos.
14149 (Vector Extensions): Use @dfn when defining bas type. Clarify
14150 base type and size constraints.
14151
14152 2019-03-25 Richard Biener <rguenther@suse.de>
14153
14154 PR tree-optimization/89789
14155 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
14156 changes from non-undefined back to undefined.
14157
14158 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
14159
14160 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
14161 heap string and a gc string, but since this variable is unknown to
14162 ggc the gc string might get reused and corrupted. Fixed by always
14163 using a heap string.
14164
14165 2019-03-25 Richard Biener <rguenther@suse.de>
14166
14167 PR tree-optimization/89779
14168 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
14169 to remove IV defs, delay actual removal.
14170 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
14171 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
14172 very end, properly also reset loop control IV information.
14173
14174 2019-03-25 Richard Biener <rguenther@suse.de>
14175
14176 PR tree-optimization/89802
14177 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
14178 move EH data to folded stmt.
14179
14180 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
14181
14182 * config/s390/s390-builtin-types.def: Remove few unused types and
14183 fix sort order for others.
14184
14185 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
14186
14187 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
14188 expected and found types with -mdebug during builtin matching.
14189
14190 2019-03-25 Richard Biener <rguenther@suse.de>
14191
14192 PR middle-end/89790
14193 * fold-const.c (operand_equal_p): Revert last change with
14194 updated comment.
14195
14196 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
14197
14198 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
14199 notes for the result of the __tls_get_addr calls.
14200 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
14201
14202 2019-03-24 Jeff Law <law@redhat.com>
14203
14204 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
14205
14206 PR rtl-optimization/87761
14207 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
14208 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
14209 as needed.
14210 (pass_cprop_hardreg::execute): Add df note problem and defer insn
14211 rescans. Reprocess blocks as needed, calling df_analyze before
14212 reprocessing. Always call df_analyze before fixing up debug bind
14213 insns.
14214
14215 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
14216
14217 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
14218 big endian.
14219
14220 2019-03-22 Andrew Pinski <apinski@marvell.com>
14221
14222 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
14223 attrribute for uxtw.
14224
14225 2019-03-26 Jeff Law <law@redhat.com>
14226
14227 PR rtl-optimization/87761
14228 * config/mips/mips-protos.h (mips_split_move): Add new argument.
14229 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
14230 (mips_split_move): Accept new INSN argument. Try to forward SRC
14231 into the next instruction.
14232 (mips_split_move_insn): Pass INSN through to mips_split_move.
14233
14234 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
14235
14236 PR rtl-optimization/89676
14237 * lra-constraints.c (curr_insn_transform): Do match reload for
14238 early clobbers even if the match was successful.
14239
14240 2019-03-22 Jakub Jelinek <jakub@redhat.com>
14241
14242 PR c++/87481
14243 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
14244
14245 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
14246
14247 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
14248
14249 2019-03-22 Jakub Jelinek <jakub@redhat.com>
14250
14251 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
14252 <avx512>_fmsub_<mode>_mask3<round_name>,
14253 <avx512>_fnmadd_<mode>_mask3<round_name>,
14254 <avx512>_fnmsub_<mode>_mask3<round_name>,
14255 avx512f_vmfmadd_<mode>_mask3<round_name>,
14256 avx512f_vmfmsub_<mode>_mask3<round_name>,
14257 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
14258 instead of register_operand and %v instead of v for match_operand 1.
14259 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
14260 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
14261 <round_nimm_predicate> instead of register_operand and %v instead of v
14262 for match_operand 1.
14263
14264 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
14265 <avx512>_fmadd_<mode>_mask3<round_name>,
14266 <avx512>_fmsub_<mode>_mask<round_name>,
14267 <avx512>_fmsub_<mode>_mask3<round_name>,
14268 <avx512>_fnmadd_<mode>_mask<round_name>,
14269 <avx512>_fnmadd_<mode>_mask3<round_name>,
14270 <avx512>_fnmsub_<mode>_mask<round_name>,
14271 <avx512>_fnmsub_<mode>_mask3<round_name>,
14272 <avx512>_fmaddsub_<mode>_mask<round_name>,
14273 <avx512>_fmaddsub_<mode>_mask3<round_name>,
14274 <avx512>_fmsubadd_<mode>_mask<round_name>,
14275 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
14276 <round_nimm_predicate> instead of nonimmediate_operand.
14277 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
14278 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
14279 Use register_operand instead of <round_nimm_predicate> for the
14280 operand that needs to match output.
14281 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
14282 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
14283 Likewise. Formatting fixes.
14284
14285 PR target/89784
14286 * config/i386/i386.c (enum ix86_builtins): Remove
14287 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
14288 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
14289 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
14290 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
14291 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
14292 __builtin_ia32_vfmsubss3_mask3): New builtins.
14293 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
14294 avx512f_vmfmadd_<mode>_mask3<round_name>,
14295 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
14296 *avx512f_vmfmsub_<mode>_mask<round_name>,
14297 avx512f_vmfmsub_<mode>_mask3<round_name>,
14298 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
14299 *avx512f_vmfnmadd_<mode>_mask<round_name>,
14300 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
14301 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
14302 *avx512f_vmfnmsub_<mode>_mask<round_name>,
14303 avx512f_vmfnmsub_<mode>_mask3<round_name>,
14304 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
14305 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
14306 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
14307 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
14308 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
14309 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
14310 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
14311 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
14312 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
14313 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
14314 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
14315 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
14316 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
14317 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
14318 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
14319 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
14320 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
14321 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
14322 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
14323 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
14324 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
14325 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
14326
14327 2019-03-21 Martin Sebor <msebor@redhat.com>
14328
14329 PR tree-optimization/89350
14330 * builtins.c (compute_objsize): Also ignore offsets whose upper
14331 bound is negative.
14332 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
14333 (builtin_memref::builtin_memref): Initialize new member.
14334 Allow EXPR to be null.
14335 (builtin_memref::extend_offset_range): Replace local with a member.
14336 Avoid assuming pointer offsets are unsigned.
14337 (builtin_memref::set_base_and_offset): Determine base object
14338 before computing offset range.
14339 (builtin_access::builtin_access): Handle memset.
14340 (builtin_access::generic_overlap): Replace local with a member.
14341 (builtin_access::strcat_overlap): Same.
14342 (builtin_access::overlap): Same.
14343 (maybe_diag_overlap): Same.
14344 (maybe_diag_access_bounds): Same.
14345 (wrestrict_dom_walker::check_call): Handle memset.
14346 (check_bounds_or_overlap): Same.
14347
14348 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
14349 Jakub Jelinek <jakub@redhat.com>
14350
14351 PR lto/89692
14352 * tree.c (fld_type_variant, fld_incomplete_type_of,
14353 fld_process_array_type): Call fld->pset.add and don't call
14354 add_tree_to_fld_list if it returns true.
14355 (free_lang_data_in_type): Similarly with self-recursive call. Purge
14356 non-marked types from TYPE_NEXT_VARIANT list.
14357 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
14358
14359 2019-03-21 Jakub Jelinek <jakub@redhat.com>
14360
14361 * hash-table.h (hash_table): Add Lazy template parameter defaulted
14362 to false, if true, don't alloc_entries during construction, but defer
14363 it to the first method that needs m_entries allocated.
14364 (hash_table::hash_table, hash_table::~hash_table,
14365 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
14366 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
14367 hash_table::clear_slot, hash_table::traverse_noresize,
14368 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
14369 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
14370 false.
14371 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
14372 NO_INSERT instead of find_with_hash.
14373 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
14374 hash_set::m_table): Add Lazy to template params of hash_table.
14375 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
14376 * attribs.c (test_attribute_exclusions): Likewise.
14377 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
14378 hash_set. Add tests for hash_set with Lazy = true.
14379
14380 2019-03-21 Richard Biener <rguenther@suse.de>
14381
14382 PR tree-optimization/89779
14383 * tree.c (tree_nop_conversion): Consolidate and fix defensive
14384 checks with respect to released SSA names now having error_mark_node
14385 type.
14386 * fold-const.c (operand_equal_p): Likewise.
14387
14388 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
14389
14390 PR target/89775
14391 * config/s390/s390.c (global_not_special_regno_p): Move to make it
14392 available to ...
14393 (s390_optimize_register_info): Use global_not_special_regno_p to
14394 check for global regs.
14395
14396 2019-03-20 Jakub Jelinek <jakub@redhat.com>
14397
14398 PR target/89752
14399 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
14400 update this_alternative nor this_alternative_set.
14401
14402 2019-03-19 Jim Wilson <jimw@sifive.com>
14403
14404 PR target/89411
14405 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
14406 align, size, offset. Use them to handle a BLKmode reference. Update
14407 comment.
14408 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
14409
14410 2019-03-19 Jakub Jelinek <jakub@redhat.com>
14411
14412 PR rtl-optimization/89768
14413 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
14414 instead of GEN_INT.
14415 (unroll_loop_runtime_iterations): Likewise.
14416
14417 2019-03-19 Martin Sebor <msebor@redhat.com>
14418
14419 PR tree-optimization/89644
14420 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
14421 rather than endptr as an indicator of nul-termination.
14422
14423 PR tree-optimization/89644
14424 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
14425 arrays in determining sequence sizes in strncpy and stpncpy.
14426
14427 2019-03-19 Martin Liska <mliska@suse.cz>
14428
14429 PR middle-end/89737
14430 * predict.c (combine_predictions_for_bb): Empty likely_edges and
14431 unlikely_edges if there's an edge that belongs to both these sets.
14432
14433 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
14434
14435 PR target/89746
14436 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
14437 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
14438 go via a stack temporary.
14439
14440 2019-03-19 Jakub Jelinek <jakub@redhat.com>
14441
14442 PR target/89378
14443 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
14444 instead of gen_rtx_SUBREG.
14445 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
14446
14447 2019-03-19 Richard Biener <rguenther@suse.de>
14448
14449 PR debug/88389
14450 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
14451
14452 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
14453
14454 PR lto/87809
14455 PR lto/89335
14456 * tree.c (free_lang_data_in_decl): Do not free context of C++
14457 destrutors.
14458
14459 2019-03-19 Jakub Jelinek <jakub@redhat.com>
14460
14461 PR target/89506
14462 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
14463 subs for the first alternative except when operands[3] is 1.
14464
14465 PR target/89752
14466 * gimplify.c (gimplify_asm_expr): For output argument with
14467 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
14468 diagnose error.
14469
14470 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
14471
14472 PR rtl-optimization/89753
14473 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
14474 explicit unrolling factor even more robust.
14475
14476 2019-03-19 Jakub Jelinek <jakub@redhat.com>
14477
14478 PR target/89726
14479 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
14480 compensation use x2 += 1 instead of x2 -= -1 and when honoring
14481 signed zeros, do another copysign after the compensation.
14482
14483 2019-03-18 Martin Sebor <msebor@redhat.com>
14484
14485 PR tree-optimization/89720
14486 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
14487 more conservatively, the same as anti-range.
14488
14489 2019-03-18 Richard Biener <rguenther@suse.de>
14490
14491 PR middle-end/88945
14492 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
14493 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
14494 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
14495 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
14496
14497 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
14498
14499 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
14500 Extend queue to 1024 entries.
14501 Add "consumed" field.
14502 (gomp_print_output): Remove print_index parameter.
14503 Add final parameter.
14504 Change limit to unsigned.
14505 Use consumed field to implement circular buffer.
14506 Detect interrupted print in final pass.
14507 Flush output at the end.
14508 (run): Update gomp_print_output usage.
14509 (main): Initialize kernargs->output_data.consumed.
14510
14511 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
14512
14513 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
14514 calculation of the minimum number of scalar iterations for
14515 fully-predicated loops.
14516
14517 2019-03-18 Martin Jambor <mjambor@suse.cz>
14518
14519 PR tree-optimization/89546
14520 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
14521 any propagation to its children took place.
14522
14523 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
14524
14525 PR target/89627
14526 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
14527 parameter, and make use of it.
14528 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
14529
14530 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14531
14532 * config/arc/arc.opt (mcode-density-frame): Get the inital value
14533 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
14534 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
14535 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
14536 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
14537 match what the ops is doing.
14538 (push_multi_fp_blink): Likewise.
14539 * config/arc/arc.c (arc_override_options): Enable enter/leave when
14540 compiling for size and elf target.
14541 (arc_save_callee_enter): Adjust note to match what enter/leave
14542 operation does.
14543
14544 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14545
14546 * config/arc/arc.md (tst_movb): Fix constraint.
14547
14548 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14549
14550 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
14551
14552 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14553
14554 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
14555 * config/arc/arc.c (arc_conditional_register_usage): Remove all
14556 reg_alloc_order references.
14557 (size_alloc_order): Define.
14558 (arc_adjust_reg_alloc_order): New function.
14559 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
14560 order.
14561 (ADJUST_REG_ALLOC_ORDER): Define.
14562 (HONOR_REG_ALLOC_ORDER): Likewise.
14563
14564 2019-03-18 Richard Biener <rguenther@suse.de>
14565
14566 PR target/87561
14567 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
14568 loads and stores a bit more.
14569
14570 2019-03-18 Richard Biener <rguenther@suse.de>
14571
14572 PR target/87561
14573 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
14574 load pessimization to stores as well.
14575
14576 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
14577
14578 PR middle-end/86979
14579 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
14580 successor, use NULL as its av set.
14581
14582 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
14583
14584 PR rtl-optimization/89721
14585 * lra-constraints (invariant_p): Return false if side_effects_p holds.
14586
14587 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
14588
14589 PR target/87532
14590 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14591 When handling vec_extract, use modular arithmetic to allow
14592 constant selectors greater than vector length.
14593 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
14594 V1TImode vectors to have constant selector values greater than 0.
14595 Use modular arithmetic to compute vector index.
14596 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
14597 index for in-memory vectors. Correct code generation for
14598 in-register vectors.
14599 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
14600 compute index.
14601
14602 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
14603
14604 PR c++/88534
14605 PR c++/88537
14606 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
14607 VAR_DECL args.
14608
14609 2019-03-15 Jakub Jelinek <jakub@redhat.com>
14610
14611 PR c++/89709
14612 * tree.c (inchash::add_expr): Strip any location wrappers.
14613 * fold-const.c (operand_equal_p): Move stripping of location wrapper
14614 after hash verification.
14615
14616 PR debug/89704
14617 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
14618 SIGN_EXTEND and ZERO_EXTEND.
14619
14620 2019-03-14 Jason Merrill <jason@redhat.com>
14621 Jakub Jelinek <jakub@redhat.com>
14622
14623 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
14624 than if is_empty (*slot).
14625 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
14626 existing elt and for elt removal.
14627 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
14628 of already removed elt.
14629
14630 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
14631
14632 PR target/89650
14633 * config/i386/i386.c (remove_partial_avx_dependency): Handle
14634 REG_EH_REGION note.
14635
14636 2019-03-14 Martin Liska <mliska@suse.cz>
14637
14638 PR other/89712
14639 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
14640
14641 2019-03-14 Richard Biener <rguenther@suse.de>
14642
14643 PR target/89711
14644 * config/i386/i386.c (make_resolver_func): Properly set
14645 DECL_CONTEXT on the RESULT_DECL.
14646 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
14647
14648 2019-03-14 Richard Biener <rguenther@suse.de>
14649
14650 * gimple-pretty-print.c: Include cfgloop.h.
14651 (dump_gimple_phi): Adjust.
14652 (dump_gimple_bb_header): Dump loop header for GIMPLE.
14653 (pp_cfg_jump): Adjust.
14654 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
14655 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
14656 (lower_phi_internal_fn): Remove.
14657 (verify_gimple_call): Remove IFN_PHI special-casing.
14658 (dump_function_to_file): Dump IL state.
14659 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
14660 done to deal with PHI nodes being present in non-SSA state.
14661
14662 2019-03-14 Jakub Jelinek <jakub@redhat.com>
14663
14664 PR ipa/89684
14665 * multiple_target.c (create_dispatcher_calls): Change
14666 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
14667 In the node->iterate_referring loop, push *ref rather than ref, call
14668 ref->remove_reference () and always pass 0 to iterate_referring.
14669
14670 PR rtl-optimization/89679
14671 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
14672 would contain a paradoxical SUBREG.
14673
14674 2019-03-14 Richard Biener <rguenther@suse.de>
14675
14676 PR tree-optimization/89710
14677 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
14678 safe_dyn_cast.
14679
14680 2019-03-14 Martin Liska <mliska@suse.cz>
14681
14682 * coverage.c (coverage_begin_function): Stream also
14683 end_column.
14684 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
14685 documentation about function declaration location.
14686 * gcov-dump.c (tag_function): Print whole range
14687 of function declaration.
14688 * gcov.c (struct function_info): Add end_column field.
14689 (function_info::function_info): Initialize it.
14690 (output_json_intermediate_file): Output {start,end}_column
14691 fields.
14692 (read_graph_file): Read end_column.
14693
14694 2019-03-14 Richard Biener <rguenther@suse.de>
14695
14696 PR middle-end/89698
14697 * fold-const.c (operand_equal_p): For INDIRECT_REF check
14698 that the access types are similar.
14699
14700 2019-03-14 Jakub Jelinek <jakub@redhat.com>
14701
14702 PR tree-optimization/89703
14703 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
14704 aren't compatible also with builtin_decl_explicit. Check pure
14705 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
14706 and BUILT_IN_STPNCPY{,_CHK}.
14707
14708 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
14709
14710 PR target/89523
14711 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
14712 addr32 prefix to VSIB address for X32.
14713 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
14714 "%M2" to opcode.
14715 (*avx512pf_gatherpf<mode>df_mask): Likewise.
14716 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
14717 (*avx512pf_scatterpf<mode>df_mask): Likewise.
14718 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
14719 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
14720 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
14721 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
14722 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
14723 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
14724 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
14725 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
14726 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
14727 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
14728 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
14729 (*avx512f_scatterdi<mode>): Likewise.
14730
14731 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
14732
14733 PR target/85860
14734 * lra-constraints.c (inherit_in_ebb): Update
14735 potential_reload_hard_regs along with live_hard_regs.
14736
14737 2019-03-13 Jakub Jelinek <jakub@redhat.com>
14738
14739 PR debug/89498
14740 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
14741 DWARF_OFFSET_SIZE.
14742 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
14743
14744 2019-03-13 Martin Sebor <msebor@redhat.com>
14745
14746 PR tree-optimization/89662
14747 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
14748 has a size.
14749
14750 2019-03-13 Richard Biener <rguenther@suse.de>
14751
14752 PR middle-end/89677
14753 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
14754 throw FP expressions at tree-affine.
14755
14756 2019-03-14 Richard Biener <rguenther@suse.de>
14757
14758 * tree-pretty-print.c (dump_generic_node): For -gimple properly
14759 dump negative integer constants using _Literal (type) -num.
14760
14761 2019-03-13 Jakub Jelinek <jakub@redhat.com>
14762
14763 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
14764 nonlocal_value member.
14765
14766 PR middle-end/88588
14767 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
14768 (ipa_simd_modify_function_body): Handle PHIs.
14769
14770 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14771
14772 * config/s390/s390.c (s390_option_override_internal): Use more
14773 aggressive inlining parameters.
14774
14775 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14776
14777 * config/s390/3906.md: New file.
14778 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
14779 (LONGRUNNING_THRESHOLD): Remove.
14780 (MAX_SCHED_MIX_SCORE): Decrease.
14781 (MAX_SCHED_MIX_DISTANCE): Decrease.
14782 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
14783 (struct s390_sched_state): New struct to hold scheduling state.
14784 (S390_SCHED_STATE_NORMAL): Remove.
14785 (S390_SCHED_STATE_CRACKED): Remove.
14786 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
14787 (s390_get_sched_attrmask): Use new attribute.
14788 (s390_get_unit_mask): Use new units.
14789 (s390_is_fpd): New function.
14790 (s390_is_fxd): New function.
14791 (s390_is_longrunning): New function.
14792 (s390_sched_score): Use new functions.
14793 (s390_sched_reorder): Likewise.
14794 (s390_sched_variable_issue): Rework and use new functions.
14795 (s390_sched_init): Use new functions.
14796 * config/s390/s390.h (s390_tune_attr): Add z14.
14797 * config/s390/s390.md: Add z14.
14798
14799 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14800
14801 * config/s390/2964.md: Update pipeline description.
14802 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
14803 (LONGRUNNING_THRESHOLD): Remove.
14804 (LATENCY_FACTOR): Remove.
14805 (s390_get_unit_mask): Add unit.
14806 (s390_sched_score): Use fxd/fpd.
14807 (s390_sched_variable_issue): Use fxd/fpd.
14808
14809 2019-03-12 Martin Liska <mliska@suse.cz>
14810
14811 * config/i386/i386.c: Reword an error message.
14812
14813 2019-03-12 Martin Jambor <mjambor@suse.cz>
14814
14815 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
14816 terminate with newline.
14817
14818 2019-03-12 Jakub Jelinek <jakub@redhat.com>
14819
14820 PR target/52726
14821 * config/s390/s390.md (tabort): Use %wd instead of
14822 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
14823 letters and periods.
14824 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
14825 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
14826 's with %< and %>.
14827
14828 PR middle-end/89663
14829 * builtins.c (expand_builtin_int_roundingfn,
14830 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
14831 gcc_unreachable if validate_arglist fails.
14832
14833 2019-03-12 Richard Biener <rguenther@suse.de>
14834
14835 PR tree-optimization/89664
14836 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
14837 free the occurance tree after the early out.
14838
14839 2019-03-11 Jakub Jelinek <jakub@redhat.com>
14840
14841 PR middle-end/89655
14842 PR bootstrap/89656
14843 * vr-values.c (vr_values::update_value_range): If
14844 old_vr->varying_p (), don't update it, make new_vr also VARYING
14845 and return false.
14846
14847 2019-03-11 Martin Liska <mliska@suse.cz>
14848
14849 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14850 Fix double string quoting.
14851
14852 2019-03-11 Martin Liska <mliska@suse.cz>
14853
14854 * collect-utils.c (collect_wait): Wrap apostrophes
14855 in gcc internal format with %'.
14856 * collect2.c (main): Likewise.
14857 (scan_prog_file): Likewise.
14858 (scan_libraries): Likewise.
14859 * config/i386/i386.c (ix86_expand_call): Likewise.
14860 (ix86_handle_interrupt_attribute): Likewise.
14861 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
14862 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
14863 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
14864 * lto-wrapper.c (find_crtoffloadtable): Likewise.
14865 * symtab.c (symtab_node::verify_base): Likewise.
14866 * tree-cfg.c (verify_gimple_label): Likewise.
14867 * tree.c (verify_type_variant): Likewise.
14868
14869 2019-03-11 Martin Liska <mliska@suse.cz>
14870
14871 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
14872 in a string format message and fix GNU coding style.
14873 (expand_builtin_set_thread_pointer): Likewise.
14874 * common/config/aarch64/aarch64-common.c
14875 (aarch64_rewrite_selected_cpu): Likewise.
14876 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
14877 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
14878 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
14879 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
14880 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
14881 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
14882 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
14883 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
14884 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
14885 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
14886 Likewise.
14887 * common/config/riscv/riscv-common.c
14888 (riscv_subset_list::parsing_subset_version): Likewise.
14889 (riscv_subset_list::parse_std_ext): Likewise.
14890 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
14891 (riscv_subset_list::parse): Likewise.
14892 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
14893 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
14894 (aarch64_override_options_internal): Likewise.
14895 (aarch64_validate_mcpu): Likewise.
14896 (aarch64_validate_march): Likewise.
14897 (aarch64_validate_mtune): Likewise.
14898 (aarch64_override_options): Likewise.
14899 * config/alpha/alpha.c (alpha_option_override): Likewise.
14900 * config/arc/arc.c (arc_init): Likewise.
14901 (parse_mrgf_banked_regs_option): Likewise.
14902 (arc_override_options): Likewise.
14903 (arc_expand_builtin_aligned): Likewise.
14904 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
14905 (arm_expand_builtin): Likewise.
14906 * config/arm/arm.c (arm_option_check_internal): Likewise.
14907 (arm_configure_build_target): Likewise.
14908 (arm_option_override): Likewise.
14909 (arm_options_perform_arch_sanity_checks): Likewise.
14910 (arm_handle_cmse_nonsecure_entry): Likewise.
14911 (arm_handle_cmse_nonsecure_call): Likewise.
14912 (arm_tls_referenced_p): Likewise.
14913 (thumb1_expand_prologue): Likewise.
14914 * config/avr/avr.c (avr_option_override): Likewise.
14915 * config/bfin/bfin.c (bfin_option_override): Likewise.
14916 * config/c6x/c6x.c (c6x_option_override): Likewise.
14917 * config/cr16/cr16.c (cr16_override_options): Likewise.
14918 * config/cris/cris.c (cris_option_override): Likewise.
14919 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
14920 * config/darwin-c.c (macosx_version_as_macro): Likewise.
14921 * config/darwin.c (darwin_override_options): Likewise.
14922 * config/frv/frv.c (frv_expand_builtin): Likewise.
14923 * config/h8300/h8300.c (h8300_option_override): Likewise.
14924 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
14925 (ix86_option_override_internal): Likewise.
14926 (warn_once_call_ms2sysv_xlogues): Likewise.
14927 (ix86_expand_prologue): Likewise.
14928 (split_stack_prologue_scratch_regno): Likewise.
14929 (ix86_warn_parameter_passing_abi): Likewise.
14930 * config/ia64/ia64.c (fix_range): Likewise.
14931 * config/m68k/m68k.c (m68k_option_override): Likewise.
14932 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
14933 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
14934 (mips_set_compression_mode): Likewise.
14935 * config/mmix/mmix.c (mmix_option_override): Likewise.
14936 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
14937 * config/msp430/msp430.c (msp430_option_override): Likewise.
14938 * config/nds32/nds32.c (nds32_option_override): Likewise.
14939 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
14940 (nios2_option_override): Likewise.
14941 (nios2_expand_custom_builtin): Likewise.
14942 * config/nvptx/mkoffload.c (main): Likewise.
14943 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
14944 * config/pa/pa.c (fix_range): Likewise.
14945 (pa_option_override): Likewise.
14946 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
14947 (riscv_option_override): Likewise.
14948 * config/rl78/rl78.c (rl78_option_override): Likewise.
14949 * config/rs6000/aix61.h: Likewise.
14950 * config/rs6000/aix71.h: Likewise.
14951 * config/rs6000/aix72.h: Likewise.
14952 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
14953 * config/rs6000/freebsd64.h: Likewise.
14954 * config/rs6000/linux64.h: Likewise.
14955 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
14956 (rs6000_expand_zeroop_builtin): Likewise.
14957 (rs6000_expand_mtfsb_builtin): Likewise.
14958 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
14959 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
14960 (rs6000_invalid_builtin): Likewise.
14961 (rs6000_expand_split_stack_prologue): Likewise.
14962 * config/rs6000/rtems.h: Likewise.
14963 * config/rx/rx.c (valid_psw_flag): Likewise.
14964 (rx_expand_builtin): Likewise.
14965 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
14966 * config/s390/s390.c (s390_expand_builtin): Likewise.
14967 (s390_function_profiler): Likewise.
14968 (s390_option_override_internal): Likewise.
14969 (s390_option_override): Likewise.
14970 * config/sh/sh.c (sh_option_override): Likewise.
14971 (sh_builtin_saveregs): Likewise.
14972 (sh_fix_range): Likewise.
14973 * config/sh/vxworks.h: Likewise.
14974 * config/sparc/sparc.c (sparc_option_override): Likewise.
14975 * config/spu/spu.c (spu_option_override): Likewise.
14976 (fix_range): Likewise.
14977 * config/visium/visium.c (visium_option_override): Likewise.
14978 (visium_handle_interrupt_attr): Likewise.
14979 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
14980 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
14981 (dbg_cnt_process_opt): Likewise.
14982 * dwarf2out.c (output_dwarf_version): Likewise.
14983 * except.c (expand_eh_return): Likewise.
14984 * gcc.c (defined): Likewise.
14985 (driver_handle_option): Likewise.
14986 (process_command): Likewise.
14987 (compare_files): Likewise.
14988 (driver::prepare_infiles): Likewise.
14989 (driver::do_spec_on_infiles): Likewise.
14990 (driver::maybe_run_linker): Likewise.
14991 * omp-offload.c (oacc_parse_default_dims): Likewise.
14992 * opts-global.c (handle_common_deferred_options): Likewise.
14993 * opts.c (parse_sanitizer_options): Likewise.
14994 (common_handle_option): Likewise.
14995 (enable_warning_as_error): Likewise.
14996 * passes.c (enable_disable_pass): Likewise.
14997 * plugin.c (parse_plugin_arg_opt): Likewise.
14998 (default_plugin_dir_name): Likewise.
14999 * targhooks.c (default_expand_builtin_saveregs): Likewise.
15000 (default_pch_valid_p): Likewise.
15001 * toplev.c (init_asm_output): Likewise.
15002 (process_options): Likewise.
15003 (toplev::run_self_tests): Likewise.
15004 * tree-cfg.c (verify_gimple_call): Likewise.
15005 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
15006 (tree_inlinable_function_p): Likewise.
15007 * var-tracking.c (vt_find_locations): Likewise.
15008
15009 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
15010
15011 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
15012 only on the else branch.
15013
15014 2019-03-11 Martin Liska <mliska@suse.cz>
15015
15016 * gcov.c (output_intermediate_json_line): Print function
15017 name of each line.
15018 (output_json_intermediate_file): Add new argument.
15019 * doc/gcov.texi: Document the change.
15020
15021 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
15022
15023 PR rtl-optimization/89588
15024 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15025 explicit unrolling factor more robust.
15026
15027 2019-03-11 Richard Biener <rguenther@suse.de>
15028
15029 PR tree-optimization/89649
15030 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
15031 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
15032 on the prolog and epilog loops.
15033 (vect_loop_versioning): Return copy of loop.
15034 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
15035 on the non-vectorized version of the loop.
15036
15037 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
15038
15039 PR target/68924
15040 * config/i386/sse.md (*vec_extractv2di_0_sse):
15041 Add (=r,x) alternative and corresponding splitter.
15042
15043 2019-03-10 Martin Jambor <mjambor@suse.cz>
15044
15045 PR tree-optimization/85762
15046 PR tree-optimization/87008
15047 PR tree-optimization/85459
15048 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
15049 it points to if there is a type changing MEM_REF. Adjust all callers.
15050 (build_accesses_from_assign): Disable total scalarization if
15051 contains_vce_or_bfcref_p returns true through the new parameter, for
15052 both rhs and lhs.
15053
15054 2019-03-09 Jakub Jelinek <jakub@redhat.com>
15055
15056 PR c/88568
15057 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
15058 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
15059
15060 PR target/79645
15061 * common.opt (fdiagnostics-show-labels,
15062 fdiagnostics-show-line-numbers, fdiagnostics-format=,
15063 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
15064 gas-locview-support, ginline-points, ginternal-reset-location-views):
15065 Terminate description text with a dot.
15066 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
15067 * config/mcore/mcore.opt (m210, m340): Likewise.
15068 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
15069 mnops=): Start description text with a capital letter.
15070 * config/arc/arc.opt (msize-level=): Likewise.
15071 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
15072 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
15073 mnewlib): Likewise.
15074 * config/ft32/ft32.opt (msim): Likewise.
15075 (mft32b, mcompress): Likewise. Terminate description text with a dot.
15076 (mnodiv, mnopm): Terminate description text with a dot.
15077 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
15078 a colon.
15079 * config/i386/i386.opt (prefer_vector_width, instrument_return):
15080 Likewise.
15081 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
15082 text.
15083
15084 PR rtl-optimization/89634
15085 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
15086 are modified in BB_END (e->src) instruction.
15087
15088 2019-03-08 David Malcolm <dmalcolm@redhat.com>
15089
15090 PR target/79926
15091 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
15092 messages more amenable to translation, and improve wording.
15093
15094 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
15095
15096 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
15097 ud- and du-chains between phases.
15098
15099 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
15100
15101 PR debug/89631
15102 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
15103 instead of POLY_INT_CST.
15104
15105 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
15106
15107 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
15108 requirement.
15109
15110 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
15111
15112 PR target/68924
15113 PR target/78782
15114 PR target/87558
15115 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
15116 (_mm_storeu_si64): Ditto.
15117
15118 2019-03-08 Martin Liska <mliska@suse.cz>
15119
15120 PR target/86952
15121 * config/i386/i386.c (ix86_option_override_internal): Disable
15122 jump tables when retpolines are used.
15123
15124 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
15125
15126 PR go/63560
15127 * ipa-split.c (execute_split_functions): Do not split
15128 'noinline' or 'section' function.
15129
15130 2019-03-08 Jakub Jelinek <jakub@redhat.com>
15131
15132 PR target/79846
15133 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
15134 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
15135 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
15136
15137 PR ipa/80000
15138 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
15139 from diagnostics. Formatting fixes.
15140
15141 PR target/85665
15142 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
15143 warn_odr diagnostics.
15144
15145 PR other/80058
15146 * lra-constraints.c (process_alt_operands): Avoid one space before
15147 " at the end of line and another after " on another line in a string
15148 literal.
15149 * attribs.c (handle_dll_attribute): Likewise.
15150 * config/avr/avr-devices.c (avr_texinfo): Likewise.
15151
15152 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
15153 warning_at or inform messages in G_() if there is no ?:.
15154
15155 PR tree-optimization/89550
15156 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
15157 returned true. Formatting fixes.
15158 (expand_builtin_strnlen): Formatting fixes.
15159 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
15160 if warning_at returned true.
15161 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
15162
15163 2019-03-08 Richard Biener <rguenther@suse.de>
15164
15165 PR middle-end/89578
15166 * cfgloop.h (struct loop): Add owned_clique field.
15167 * cfgloopmanip.c (copy_loop_info): Copy it.
15168 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
15169 cliques.
15170 * tree-inline.c (copy_loops): Remap owned_clique.
15171 * lto-streamer-in.c (input_cfg): Stream owned_clique.
15172 * lto-streamer-out.c (output_cfg): Likewise.
15173
15174 2019-03-08 Jakub Jelinek <jakub@redhat.com>
15175
15176 PR target/80190
15177 * config/darwin.c: Include intl.h.
15178 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
15179 composing the message out of two separate parts.
15180
15181 2019-03-07 Jakub Jelinek <jakub@redhat.com>
15182
15183 PR target/80003
15184 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
15185 doesn't start with a capital letter and doesn't end with a dot.
15186 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
15187 with a capital letter.
15188 (ix86_mangle_function_version_assembler_name): Likewise.
15189 (ix86_generate_version_dispatcher_body): Likewise.
15190 (fold_builtin_cpu): Likewise.
15191 (get_builtin_code_for_version): Likewise. Remove extraneous space.
15192 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
15193 translators, wrap full type name in %qs.
15194
15195 PR translation/79999
15196 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
15197 depend clause with source (or sink) modifier.
15198 * omp-expand.c (expand_omp_ordered_sink): Likewise.
15199
15200 PR target/89602
15201 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
15202 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
15203 (avx512f_load<mode>_mask): New define_expand.
15204 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
15205 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
15206 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
15207 __builtin_ia32_movess_mask): New builtins.
15208 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
15209 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
15210 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
15211 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
15212
15213 2019-03-07 Martin Jambor <mjambor@suse.cz>
15214
15215 PR lto/87525
15216 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
15217 for extern inline functions.
15218
15219 2019-03-07 Martin Jambor <mjambor@suse.cz>
15220
15221 PR ipa/88235
15222 * cgraph.h (cgraph_node): New inline method former_thunk_p.
15223 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
15224 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
15225 have multiple callees. At the end check if declarations match as
15226 opposed to cgraph_nodes.
15227
15228 2019-03-07 Martin Liska <mliska@suse.cz>
15229
15230 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
15231 which is equivalent to searching for this in clones chain.
15232 * symtab.c (symtab_node::verify_base): Similarly compare ASM
15233 names with a neighbour and special case first node in a chain.
15234
15235 2019-01-25 Jason Merrill <jason@redhat.com>
15236
15237 PR c++/80916 - spurious "static but not defined" warning.
15238 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
15239 for an internal symbol with DECL_EXTERNAL.
15240
15241 2019-04-07 Richard Biener <rguenther@suse.de>
15242
15243 PR middle-end/89618
15244 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
15245 * tree-inline.c (copy_loops): Simplify.
15246
15247 2019-03-07 Martin Liska <mliska@suse.cz>
15248
15249 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
15250
15251 2019-03-07 Richard Biener <rguenther@suse.de>
15252
15253 PR tree-optimization/89595
15254 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
15255 stmt iterator as reference, take boolean output parameter to
15256 indicate whether the stmt was removed and thus the iterator
15257 already advanced.
15258 (dom_opt_dom_walker::before_dom_children): Re-iterate over
15259 stmts created by folding.
15260
15261 2019-03-07 Jakub Jelinek <jakub@redhat.com>
15262
15263 PR c++/89585
15264 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
15265 at toplevel.
15266
15267 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
15268
15269 PR rtl-optimization/88845
15270 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
15271 LRA.
15272 * lra.c (remove_scratches_1): New function.
15273 (remove_scratches): Use it.
15274 (lra_emit_move): Likewise.
15275
15276 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
15277
15278 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
15279 unaligned_access variable.
15280 * config/arc/arc.c (arc_override_options): Set unaligned access
15281 default on for HS CPUs.
15282 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
15283
15284 2019-03-06 Martin Liska <mliska@suse.cz>
15285
15286 PR gcov-profile/89577
15287 * doc/gcov.texi: Prefer to use --coverage.
15288 * doc/sourcebuild.texi: Likewise.
15289
15290 2019-03-02 Jason Merrill <jason@redhat.com>
15291
15292 PR c++/86485 - -Wmaybe-unused with empty class ?:
15293 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
15294
15295 2019-03-05 Jakub Jelinek <jakub@redhat.com>
15296
15297 PR target/89587
15298 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
15299 if_multiarch.
15300
15301 PR middle-end/89590
15302 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
15303 exactly one argument.
15304
15305 2019-03-05 Jakub Jelinek <jakub@redhat.com>
15306 Richard Sandiford <richard.sandiford@arm.com>
15307
15308 PR tree-optimization/89570
15309 * match.pd (vec_cond into cond_op simplification): Don't use
15310 get_conditional_internal_fn, use as_internal_fn (cond_op).
15311
15312 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
15313
15314 PR target/89222
15315 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
15316 to decide when to split off a non-zero offset from a symbol.
15317 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
15318 in function symbols.
15319
15320 2019-03-05 Richard Biener <rguenther@suse.de>
15321
15322 PR tree-optimization/89594
15323 * tree-if-conv.c (pass_if_conversion::execute): Handle
15324 case where .LOOP_VECTORIZED_FUNCTION was removed.
15325
15326 2019-03-05 Jakub Jelinek <jakub@redhat.com>
15327
15328 PR bootstrap/89560
15329 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
15330 instead alloca it only when needed with the needed size.
15331
15332 PR tree-optimization/89570
15333 * match.pd (vec_cond into cond_op simplification): Guard with
15334 vectorized_internal_fn_supported_p test and #if GIMPLE.
15335
15336 PR tree-optimization/89566
15337 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
15338 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
15339 Punt if get_user_idx_format succeeds, but idx_format argument is
15340 not provided or doesn't have pointer type, or if idx_args is above
15341 number of provided arguments.
15342
15343 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
15344
15345 PR tree-optimization/89437
15346 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
15347
15348 2019-03-04 Richard Biener <rguenther@suse.de>
15349
15350 PR middle-end/89572
15351 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
15352 safe_dyn_cast.
15353
15354 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
15355
15356 PR tree-optimization/89487
15357 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
15358 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
15359 (distribute_loop): Don't do runtime alias check if there is non-
15360 addressable data reference.
15361 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
15362 is a register variable.
15363
15364 2019-03-02 Jakub Jelinek <jakub@redhat.com>
15365
15366 PR target/89506
15367 * config/arm/arm.md (cmpsi2_addneg): Use
15368 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
15369 If operands[2] is 0 or INT_MIN, force use of subs.
15370 (*compare_scc splitter): Use gen_int_mode.
15371 (*negscc): Likewise.
15372 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
15373
15374 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
15375 Monk Chiang <sh.chiang04@gmail.com>
15376
15377 * common/config/riscv/riscv-common.c: Include sstream.
15378 (riscv_subset_list::to_string): New.
15379 (riscv_arch_str): Likewise.
15380 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
15381 * config.in: Regen.
15382 * config/riscv/riscv-protos.h (riscv_arch_str): New.
15383 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
15384 (riscv_emit_attribute): New.
15385 (riscv_file_start): Emit attribute if needed.
15386 (riscv_option_override): Init riscv_emit_attribute_p.
15387 * config/riscv/riscv.opt (mriscv-attribute): New option.
15388 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
15389 * configure: Regen.
15390 * doc/install.texi: Document --with-riscv-attribute.
15391 * doc/invoke.texi: Document -mriscv-attribute.
15392
15393 * common/config/riscv/riscv-common.c:
15394 Include config/riscv/riscv-protos.h.
15395 (INCLUDE_STRING): Defined.
15396 (RISCV_DONT_CARE_VERSION): Defined.
15397 (riscv_subset_t): Declare.
15398 (riscv_subset_t::riscv_subset_t): New.
15399 (riscv_subset_list): Declare.
15400 (riscv_subset_list::riscv_subset_list): New.
15401 (riscv_subset_list::~riscv_subset_list): Likewise.
15402 (riscv_subset_list::parsing_subset_version): Likewise.
15403 (riscv_subset_list::parse_std_ext): Likewise.
15404 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
15405 (riscv_subset_list::add): Likewise.
15406 (riscv_subset_list::lookup): Likewise.
15407 (riscv_subset_list::xlen): Likewise.
15408 (riscv_subset_list::parse): Likewise.
15409 (riscv_supported_std_ext): Likewise.
15410 (current_subset_list): Likewise.
15411 (riscv_parse_arch_string): Using riscv_subset_list::parse to
15412 parse.
15413
15414 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
15415
15416 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
15417 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
15418 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
15419
15420 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
15421
15422 PR rtl-optimization/85899
15423 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
15424 fallthru edges leading to the exit block.
15425
15426 2019-03-01 Tamar Christina <tamar.christina@arm.com>
15427
15428 PR target/89517
15429 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
15430 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
15431
15432 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
15433
15434 PR tree-optimization/89535
15435 * tree-vect-stmts.c (vectorizable_call): Record the vector types
15436 for each operand. Calculate the fallback choice for mask operands
15437 and pass it to vect_get_vec_def_for_operand.
15438
15439 2019-03-01 Richard Biener <rguenther@suse.de>
15440
15441 PR middle-end/89541
15442 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
15443 get virtual operands.
15444 (get_expr_operands): Handle CONST_DECL like other decls.
15445
15446 2019-03-01 Jakub Jelinek <jakub@redhat.com>
15447
15448 PR middle-end/89503
15449 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
15450 on DECL_P and EXPR_P.
15451
15452 2019-03-01 Richard Biener <rguenther@suse.de>
15453
15454 PR middle-end/89497
15455 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
15456 argument, defaulted to zero.
15457 * passes.c (execute_function_todo): Pass down SSA update flags
15458 to cleanup_tree_cfg.
15459 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
15460 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
15461 form if requested.
15462 (cleanup_tree_cfg): Get and pass down SSA update flags.
15463
15464 2019-03-01 Jakub Jelinek <jakub@redhat.com>
15465
15466 PR bootstrap/89539
15467 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
15468 early_lto_debug argument.
15469
15470 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
15471
15472 PR tree-optimization/89536
15473 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
15474 only whether bit #0 of the value is 0 instead of the entire value.
15475
15476 2019-02-28 Marek Polacek <polacek@redhat.com>
15477
15478 PR c++/87068 - missing diagnostic with fallthrough statement.
15479 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
15480 at the end of a seq, save its location to walk_stmt_info.
15481 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
15482 a switch.
15483
15484 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
15485
15486 PR lto/88585
15487 * tree.c (find_atomic_core_type): Move ahead in file.
15488 (check_base_type): Correctly compare alignments of atomic types.
15489
15490 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
15491
15492 PR target/89455
15493 * config/i386/i386.c (get_builtin_code_for_version): Identify
15494 Westmere from PCLMUL, instead of AES.
15495
15496 2019-02-28 Jakub Jelinek <jakub@redhat.com>
15497
15498 PR target/89434
15499 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
15500 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
15501 -UINTVAL (...).
15502
15503 2019-02-28 Tamar Christina <tamar.christina@arm.com>
15504
15505 PR target/88530
15506 * config/aarch64/aarch64-option-extensions.def: Document it.
15507 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
15508 if empty hwcaps.
15509
15510 2019-02-28 Jakub Jelinek <jakub@redhat.com>
15511
15512 PR c/89520
15513 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
15514 builtins if they don't have a single scalar floating point argument.
15515 Formatting fixes.
15516
15517 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
15518
15519 PR rtl-optimization/89490
15520 * varasm.c (get_block_for_section): Bail out for mergeable sections.
15521 (default_use_anchors_for_symbol_p, output_object_block): Assert the
15522 block section is not mergeable.
15523
15524 2019-02-27 Jakub Jelinek <jakub@redhat.com>
15525
15526 PR target/70341
15527 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
15528 old define_insn to ...
15529 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
15530 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
15531 Rename old define_insn to ...
15532 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
15533 (thumb2_casesi_internal_pic): New define_expand. Rename old
15534 define_insn to ...
15535 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
15536 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
15537 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
15538
15539 2019-02-27 Richard Biener <rguenther@suse.de>
15540
15541 PR debug/88878
15542 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
15543
15544 2019-02-27 Richard Biener <rguenther@suse.de>
15545
15546 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
15547 building.
15548
15549 2019-02-27 Richard Biener <rguenther@suse.de>
15550
15551 PR debug/88878
15552 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
15553 parameter, prefix section name with .gnu.debuglto_ if true.
15554 (dwarf2out_finish): Pass false to output_comdat_type_unit.
15555 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
15556
15557 2019-02-27 Richard Biener <rguenther@suse.de>
15558
15559 PR debug/89514
15560 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
15561 rather than on use_debug_types, doing what output_die does.
15562 (value_format): Likewise.
15563
15564 2019-02-27 Martin Jambor <mjambor@suse.cz>
15565 Martin Sebor <msebor@redhat.com>
15566
15567 * doc/invoke.texi (Warning Options): Reword description of
15568 -Wno-absolute-value.
15569
15570 2019-02-27 Jakub Jelinek <jakub@redhat.com>
15571
15572 PR tree-optimization/89280
15573 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
15574 builtin_setjmp_setup_bb): New functions.
15575 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
15576 When visiting __builtin_setjmp_setup block, queue in special
15577 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
15578 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
15579 from visited after the loop if they don't have any visited successor
15580 blocks.
15581
15582 2018-02-26 Steve Ellcey <sellcey@marvell.com>
15583
15584 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
15585 New function.
15586 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
15587
15588 2019-02-26 Jakub Jelinek <jakub@redhat.com>
15589
15590 PR c++/89507
15591 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
15592 with types other than sizetype/ssizetype.
15593
15594 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
15595
15596 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
15597 (enum sparc_processor_type): ...this.
15598 (enum sparc_code_model_type): New enumeration type.
15599 (enum sparc_memory_model_type): Tweak comments.
15600 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
15601 (mtune): Likewise.
15602 (mcmodel): Use sparc_code_model enumeration and variable.
15603 (sparc_code_model): New enumeration.
15604 (mdebug): Add Undocumented marker.
15605 * config/sparc/sparc.h (enum cmodel): Delete.
15606 (sparc_cmodel): Likewise.
15607 (TARGET_CM_MEDLOW): Adjust to above renaming.
15608 (TARGET_CM_MEDMID): Likewise.
15609 (TARGET_CM_MEDANY): Likewise.
15610 (TARGET_CM_EMBMEDANY): Likewise.
15611 * config/sparc/sparc.c (sparc_cmodel): Delete.
15612 (sparc_option_override): Remove string/value mapping support for the
15613 code model. Move code and memory model support to after the handling
15614 of target flags. Do private machine setup last.
15615 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
15616 (sparc_legitimize_reload_address): Likewise.
15617 (sparc_output_mi_thunk): Likewise.
15618 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
15619
15620 2019-02-26 Jakub Jelinek <jakub@redhat.com>
15621
15622 PR tree-optimization/89500
15623 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
15624 (handle_builtin_strlen): Remove noncst_bound variable. Always
15625 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
15626 cst if the first cst bytes starting at x are known to be non-zero,
15627 even if the string is not zero terminated. Don't try to modify
15628 *si for strnlen. Update strlen_to_stridx only for strlen or if
15629 we can prove strnlen returns the same value as strlen would.
15630
15631 2019-02-26 Martin Liska <mliska@suse.cz>
15632
15633 * alloc-pool.h (struct pool_usage): Remove extra
15634 print_dash_line.
15635 * bitmap.h (struct bitmap_usage): Likewise.
15636 * ggc-common.c (struct ggc_usage): Likewise.
15637 * mem-stats.h (struct mem_usage): Likewise.
15638 (mem_alloc_description::dump): Print dash lines
15639 here and repeat header at the end of a table report.
15640 It's then more readable.
15641 * tree-phinodes.c (phinodes_print_statistics): Make
15642 horizontal alignment.
15643 * tree-ssanames.c (ssanames_print_statistics): Likewise.
15644 * vec.c (struct vec_usage): Remove extra print_dash_line.
15645 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
15646
15647 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
15648
15649 * doc/extend.texi (__builtin_object_size):
15650 Use @pxref instead of @xref inside parenthesis.
15651 (__builtin_has_attribute): Add missing comma after @xref.
15652 (__builtin_object_size): Ditto.
15653 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
15654
15655 2019-02-26 Jeff Law <law@redhat.com>
15656
15657 PR rtl-optimization/87761
15658 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
15659 detect obviously dead insns and delete them.
15660
15661 2019-02-26 Richard Biener <rguenther@suse.de>
15662
15663 PR tree-optimization/89505
15664 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
15665 to handle restrict pointed-to vars with multiple subvars
15666 correctly.
15667
15668 2019-02-26 Richard Biener <rguenther@suse.de>
15669
15670 PR tree-optimization/89489
15671 * tree-parloops.c (create_loop_fn): Copy over last_clique.
15672
15673 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
15674
15675 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
15676 and move around comment.
15677 <BIT_AND_EXPR>: Likewise.
15678 <BIT_NOT_EXPR>: Add specific handling for boolean types.
15679
15680 2019-02-26 Jakub Jelinek <jakub@redhat.com>
15681
15682 PR target/89474
15683 * config/i386/i386.c (remove_partial_avx_dependency): Call
15684 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
15685 after changing possibly many instructions to use that pseudo. Fix up
15686 insertion of v4sf_const0 setter at the start of bb.
15687
15688 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
15689
15690 PR c/80409
15691 * doc/extend.texi (Variadic Pointer Args): New section.
15692
15693 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
15694 Martin Sebor <msebor@gmail.com>
15695
15696 * common.opt (Wattribute-alias): Likewise.
15697 * doc/invoke.texi (Option Summary): List general form of
15698 -Wattribute-alias=. List positive form of -Wmissing-attributes.
15699 (-Wmissing-attributes): Invert entry, rewrite and correct default.
15700 Add cross-references.
15701 (-Wattribute-alias): Rewrite and correct default. Mention
15702 considered attributes (same as for -Wmissing-attributes).
15703
15704 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
15705
15706 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
15707 (_mm_cvtpd_ps): Likewise.
15708 (_mm_cvttpd_epi32): Likewise.
15709
15710 PR target/89338
15711 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
15712 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
15713
15714 PR target/89339
15715 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
15716
15717 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15718
15719 PR target/88530
15720 * common/config/aarch64/aarch64-common.c
15721 (struct aarch64_option_extension): Add is_synthetic.
15722 (all_extensions): Use it.
15723 (TARGET_OPTION_INIT_STRUCT): Define hook.
15724 (struct gcc_targetm_common): Moved to end.
15725 (all_extensions_by_on): New.
15726 (opt_ext_cmp, typedef opt_ext): New.
15727 (aarch64_option_init_struct): New.
15728 (aarch64_contains_opt): New.
15729 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
15730 * config/aarch64/aarch64-option-extensions.def
15731 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
15732 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
15733 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
15734 Set is_synthetic to false.
15735 (crypto): Set is_synthetic to true.
15736 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
15737 SYNTHETIC.
15738
15739 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15740
15741 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
15742 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
15743 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
15744 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
15745 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
15746 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
15747 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
15748 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
15749 Rename ...
15750 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
15751 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
15752 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
15753 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
15754 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
15755 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
15756 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
15757 vfmlsl_laneq_high_f16): ... To this.
15758 * config/arm/neon.md: Update comments.
15759
15760 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15761
15762 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
15763 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
15764 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
15765 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
15766 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
15767 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
15768 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
15769 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
15770 Rename ...
15771 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
15772 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
15773 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
15774 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
15775 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
15776 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
15777 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
15778 vfmlslq_laneq_high_f16): ... To this.
15779
15780 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
15781
15782 PR rtl-optimization/86096
15783 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
15784 comparing mw_order values.
15785
15786 2019-02-25 Jakub Jelinek <jakub@redhat.com>
15787
15788 PR target/89434
15789 * config/arm/arm.md (*subsi3_carryin_const): Use
15790 arm_neg_immediate_operand predicate instead of
15791 arm_not_immediate_operand, "L" constraint instead of "K" and
15792 print it using %n2 instead of %B2.
15793 (*subsi3_carryin_const0): New define_insn.
15794 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
15795 instead of arm_not_operand and "I" constraint instead of "K" and
15796 print it using %n3 instead of %B2. Instead of using match_dup 2 add
15797 another match_operand and in the condition check that it is negation
15798 of operands[2].
15799 (*subsi3_carryin_compare_const0): New define_ins.
15800 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
15801 *subsi3_carryin_const.
15802 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
15803 split into *subsi3_carryin_compare_const0 if the highpart is zero.
15804
15805 PR target/89438
15806 * config/arm.vfp.md (*negdf2_vfp): Use
15807 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
15808 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
15809
15810 2019-02-24 Jakub Jelinek <jakub@redhat.com>
15811
15812 PR rtl-optimization/89445
15813 * simplify-rtx.c (simplify_ternary_operation): Don't use
15814 simplify_merge_mask on operands that may trap.
15815 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
15816 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
15817 second operand is CONST_VECTOR, check if any element could be zero.
15818 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
15819 their operands can trap.
15820
15821 2019-02-23 Martin Sebor <msebor@redhat.com>
15822
15823 * gimple-ssa-sprintf.c (target_strtol): Rename...
15824 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
15825 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
15826 check for range error.
15827
15828 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
15829
15830 PR driver/69471
15831 * opts-common.c (prune_options): Also prune joined switches
15832 with Negative and RejectNegative.
15833 * config/i386/i386.opt (march=): Add Negative(march=).
15834 (mtune=): Add Negative(mtune=).
15835 * doc/options.texi: Document Negative used together with Joined
15836 and RejectNegative.
15837
15838 2019-02-22 Martin Sebor <msebor@redhat.com>
15839
15840 * doc/extend.texi (Other Builtins): Add
15841 __builtin_is_constant_evaluated.
15842
15843 2019-02-22 Richard Biener <rguenther@suse.de>
15844
15845 PR tree-optimization/87609
15846 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
15847
15848 2019-02-22 Jeff Law <law@redhat.com>
15849
15850 PR rtl-optimization/87761
15851 * config/mips/mips.md: Add new combiner pattern to recognize
15852 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
15853
15854 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
15855
15856 PR target/89324
15857 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
15858 destination register in peepholes generating patterns for ADDS/SUBS.
15859 (add<mode>3_compare0,
15860 *addsi3_compare0_uxtw, add<mode>3_compareC,
15861 add<mode>3_compareV_imm, add<mode>3_compareV,
15862 *adds_<optab><ALLX:mode>_<GPI:mode>,
15863 *subs_<optab><ALLX:mode>_<GPI:mode>,
15864 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
15865 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
15866 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
15867 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
15868 sub<mode>3_compare1): Allow stack pointer for source register.
15869 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
15870
15871 2019-02-22 Martin Sebor <msebor@redhat.com>
15872
15873 PR tree-optimization/88993
15874 PR tree-optimization/88853
15875 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
15876 New helper.
15877 (sprintf_dom_walker::call_info::is_string_func): New helper.
15878 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
15879 for formatted string functions.
15880 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
15881
15882 2019-02-22 Martin Sebor <msebor@redhat.com>
15883
15884 PR c/89425
15885 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
15886 unreachable subexpressions.
15887
15888 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
15889 Hongtao Liu <hongtao.liu@intel.com>
15890 Sunil K Pandey <sunil.k.pandey@intel.com>
15891
15892 PR target/87007
15893 * config/i386/i386-passes.def: Add
15894 pass_remove_partial_avx_dependency.
15895 * config/i386/i386-protos.h
15896 (make_pass_remove_partial_avx_dependency): New.
15897 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
15898 New function.
15899 (pass_data_remove_partial_avx_dependency): New.
15900 (pass_remove_partial_avx_dependency): Likewise.
15901 (make_pass_remove_partial_avx_dependency): Likewise.
15902 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
15903 (*extendsfdf2): Add avx_partial_xmm_update.
15904 (truncdfsf2): Likewise.
15905 (*float<SWI48:mode><MODEF:mode>2): Likewise.
15906 (SF/DF conversion splitters): Disabled for TARGET_AVX.
15907
15908 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
15909
15910 PR middle-end/85598
15911 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
15912 analysis for pass.
15913
15914 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
15915
15916 PR target/89444
15917 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
15918 (PTA_SKYLAKE): Add PTA_AES.
15919 (PTA_GOLDMONT): Likewise.
15920
15921 2019-02-22 Sudakshina Das <sudi.das@arm.com>
15922
15923 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
15924 instruction if enabled.
15925 (aarch64_override_options): Remove reference to return address key.
15926
15927 2019-02-22 Richard Biener <rguenther@suse.de>
15928
15929 PR tree-optimization/89440
15930 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15931 not necessary assert.
15932
15933 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
15934
15935 PR fortran/72741
15936 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
15937 (oacc_replace_fn_attrib_attr): ... this new function.
15938 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
15939 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
15940
15941 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15942
15943 * config/arm/arm-cpus.in (ares): Rename to...
15944 (neoverse-n1): ... This. Add ares as alias.
15945 * config/arm/arm-tables.opt: Regenerate.
15946 * config/arm/arm-tune.md: Likewise.
15947 * doc/invoke.txt (ARM Options): Document neoverse-n1.
15948
15949 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15950
15951 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
15952 * config/aarch64/aarch64-tune.md: Regenerate.
15953 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
15954
15955 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15956
15957 * config/aarch64/aarch64.c (ares_tunings): Rename to...
15958 (neoversen1_tunings): ... This.
15959 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
15960 (neoverse-n1): New CPU.
15961 * config/aarch64/aarch64-tune.md: Regenerate.
15962 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
15963
15964 2019-02-22 Richard Biener <rguenther@suse.de>
15965
15966 PR middle-end/87609
15967 * cfghooks.h (dependence_hash): New typedef.
15968 (struct copy_bb_data): New type.
15969 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
15970 (duplicate_block): Likewise.
15971 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
15972 (copy_bbs): Create and pass down copy_bb_data.
15973 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
15974 (rtl_duplicate_bb): Likewise.
15975 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
15976 remap dependence info.
15977
15978 2019-02-22 Richard Biener <rguenther@suse.de>
15979
15980 PR tree-optimization/87609
15981 * tree-core.h (tree_base): Document special clique values.
15982 * tree-inline.c (remap_dependence_clique): Do not use the
15983 special clique value of one.
15984 (maybe_set_dependence_info): Use clique one.
15985 (clear_dependence_clique): New callback.
15986 (compute_dependence_clique): Clear clique one from all refs
15987 before assigning it (again).
15988
15989 2019-02-21 Martin Sebor <msebor@redhat.com>
15990
15991 * doc/extend.texi (__clear_cache): Correct signature.
15992
15993 2019-02-21 Ian Lance Taylor <iant@golang.org>
15994
15995 PR go/89170
15996 * varasm.c (decode_addr_const): Call lookup_constant_def rather
15997 than output_constant_def.
15998 (add_constant_to_table): New static function.
15999 (output_constant_def): Call add_constant_to_table.
16000 (tree_output_constant_def): Likewise.
16001
16002 2019-02-21 Jakub Jelinek <jakub@redhat.com>
16003
16004 PR c++/89285
16005 * builtins.c (fold_builtin_arith_overflow): If first two args are
16006 INTEGER_CSTs, set intres and ovfres to constants rather than calls
16007 to ifn.
16008
16009 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
16010
16011 PR target/87412
16012 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
16013 error for -mindirect-branch/-mfunction-return with incompatible
16014 -fcf-protection.
16015
16016 2019-02-21 Jakub Jelinek <jakub@redhat.com>
16017
16018 PR bootstrap/88714
16019 * constraints.md (q): Remove.
16020 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
16021 instead of q.
16022
16023 2019-02-21 Martin Jambor <mjambor@suse.cz>
16024
16025 PR hsa/89302
16026 * omp-general.c (omp_extract_for_data): Removed a duplicate call
16027 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
16028 (omp_adjust_for_condition): ...here. Added necessary parameters.
16029 * omp-general.h (omp_adjust_for_condition): Updated declaration.
16030 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
16031 proper values to new parameters of omp_adjust_for_condition.
16032
16033 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16034
16035 PR middle-end/89412
16036 * expr.c (expand_assignment): If result is a MEM, use change_address
16037 instead of simplify_gen_subreg.
16038
16039 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16040 David Malcolm <dmalcolm@redhat.com>
16041
16042 PR middle-end/89091
16043 * fold-const.c (decode_field_reference): Return NULL_TREE if
16044 lang_hooks.types.type_for_size returns NULL. Check it before
16045 overwriting *exp_. Use return NULL_TREE instead of return 0.
16046
16047 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16048
16049 PR middle-end/88074
16050 PR middle-end/89415
16051 * toplev.c (do_compile): Double the emin/emax exponents to workaround
16052 buggy mpc_norm.
16053
16054 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
16055
16056 PR target/89397
16057 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
16058 TARGET_SSE in addition to TARGET_SSE_MATH.
16059
16060 (ix86_excess_precision): Ditto.
16061 (ix86_float_exceptions_rounding_supported_p): Ditto.
16062 (use_rsqrt_p): Ditto.
16063 * config/i386/sse.md (rsqrt<mode>2): Ditto.
16064
16065 2019-02-20 David Malcolm <dmalcolm@redhat.com>
16066
16067 PR c/89410
16068 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
16069 linenum_arith_t when determining if two adjacent line spans are
16070 close enough to merge.
16071 (diagnostic_show_locus): Use linenum_arith_t when iterating over
16072 lines within each line_span.
16073
16074 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
16075
16076 PR target/86487
16077 * lra-constraints.c(uses_hard_regs_p): Fix handling of
16078 paradoxical SUBREGS.
16079
16080 2019-02-20 Li Jia He <helijia@linux.ibm.com>
16081
16082 PR target/88100
16083 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
16084 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
16085 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
16086 range checking it.
16087
16088 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
16089
16090 * config/gcn/gcn.c (print_operand): Fix typo.
16091
16092 2019-02-19 Richard Biener <rguenther@suse.de>
16093
16094 PR middle-end/88074
16095 * toplev.c (do_compile): Initialize mpfr's exponent range
16096 based on available float modes.
16097
16098 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
16099
16100 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
16101 as long as the epilogue isn't completed.
16102
16103 2019-02-18 Martin Sebor <msebor@redhat.com>
16104
16105 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
16106 __has_cpp_attribute, and __has_include.
16107
16108 2019-02-18 Martin Sebor <msebor@redhat.com>
16109
16110 * doc/invoke.texi (-Wreturn-type): Correct and expand.
16111
16112 2019-02-18 Martin Sebor <msebor@redhat.com>
16113
16114 PR middle-end/89294
16115 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
16116 expression.
16117 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
16118
16119 2019-02-18 Richard Biener <rguenther@suse.de>
16120
16121 PR tree-optimization/89296
16122 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
16123 of no-warning flag to cases that might emit the bogus warning.
16124
16125 2019-02-18 Jakub Jelinek <jakub@redhat.com>
16126
16127 PR bootstrap/88714
16128 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
16129 "q" constraint.
16130 * config/arm/vfp.md (*movdi_vfp): Likewise.
16131 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
16132 "q" constraint for operands[0].
16133
16134 PR target/89369
16135 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
16136 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
16137 pattern in a temporary buffer.
16138 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
16139 than 64-operands[2].
16140
16141 PR target/89361
16142 * config/s390/s390.c (s390_indirect_branch_attrvalue,
16143 s390_indirect_branch_settings): Define unconditionally.
16144 (s390_set_current_function): Likewise, but guard the whole body except
16145 the s390_indirect_branch_settings call with
16146 #if S390_USE_TARGET_ATTRIBUTE.
16147 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
16148
16149 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
16150 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
16151 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
16152 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
16153 HOST_WIDE_INT_1U instead of 1ULL.
16154 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
16155 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
16156 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
16157 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
16158 instead of 1UL.
16159 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
16160 instead of 1ul.
16161
16162 2019-02-18 Martin Jambor <mjambor@suse.cz>
16163
16164 PR tree-optimization/89209
16165 * tree-sra.c (create_access_replacement): New optional parameter
16166 reg_tree. Use it as a type if non-NULL and access type is not of
16167 a register type.
16168 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
16169 to create_access_replacement.
16170 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
16171 Check lacc is non-NULL before attempting to re-create it on the RHS.
16172
16173 2019-02-18 Martin Liska <mliska@suse.cz>
16174
16175 PR ipa/89306
16176 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
16177 by default.
16178 (symbol_table::free_edge): Recycle m_summary_id.
16179 * cgraph.h (get_summary_id): New.
16180 (symbol_table::release_symbol): Set m_summary_id to -1
16181 by default.
16182 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
16183 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
16184 function_summary to fast_function_summary.
16185 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
16186 * ipa-pure-const.c (class funct_state_summary_t):
16187 Switch from function_summary to fast_function_summary.
16188 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
16189 (class ipa_ref_opt_summary_t): Switch from function_summary
16190 to fast_function_summary.
16191 * symbol-summary.h (class function_summary_base): New class
16192 that is created from base of former function_summary.
16193 (function_summary_base::unregister_hooks): New.
16194 (class function_summary): Inherit from function_summary_base.
16195 (class call_summary_base): New class
16196 that is created from base of former call_summary.
16197 (class call_summary): Inherit from call_summary_base.
16198 (struct is_same): New.
16199 (class fast_function_summary): New summary class.
16200 (class fast_call_summary): New summary class.
16201 * vec.h (vec_safe_grow_cleared): New function.
16202
16203 2019-02-18 Martin Liska <mliska@suse.cz>
16204
16205 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
16206 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
16207 * doc/tm.texi: Document new target hook.
16208 * doc/tm.texi.in: Likewise.
16209 * target.def: Add new target macro.
16210 * gcc.c (find_fortran_preinclude_file): Do not search multilib
16211 suffixes.
16212
16213 2019-02-17 Alan Modra <amodra@gmail.com>
16214
16215 PR target/89271
16216 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
16217 output reg on add insn.
16218 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
16219
16220 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
16221
16222 PR target/89372
16223 * config/i386/sse.md (ssedoublemode): Remove V4HI.
16224 (PMULHRSW): Likewise.
16225 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
16226 TARGET_AVX2.
16227 (ssse3_pmulhrswv4hi3): New expander.
16228
16229 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
16230
16231 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
16232 MMX. Add isa attribute.
16233
16234 2019-02-16 Jakub Jelinek <jakub@redhat.com>
16235
16236 PR rtl-optimization/66152
16237 * builtins.h (c_readstr): Declare.
16238 * builtins.c (c_readstr): Remove forward declaration. Add
16239 null_terminated_p argument, if false, read all bytes from the
16240 string instead of stopping after '\0'.
16241 * expr.c (string_cst_read_str): New function.
16242 (store_expr): Use string_cst_read_str instead of
16243 builtin_strncpy_read_str. Try to store by pieces the whole
16244 exp_len first, and only if that fails, split it up into
16245 store by pieces followed by clear_storage. Formatting fix.
16246
16247 * config/i386/i386.md (*movqi_internal): Remove static from
16248 buf variable. Use output_asm_insn (buf, operands); return "";
16249 instead of return buf;.
16250 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
16251 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
16252 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
16253
16254 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
16255
16256 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
16257 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
16258 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
16259 (CC1_SPEC): Likewise.
16260 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
16261
16262 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
16263
16264 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
16265 the base address on 64-bit strict-alignment platforms.
16266
16267 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
16268
16269 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
16270
16271 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
16272
16273 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
16274
16275 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
16276
16277 PR rtl-optimization/88308
16278 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
16279 on copied instruction.
16280
16281 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
16282
16283 * final.c (insn_current_reference_address): Replace test on JUMP_P
16284 with test on jump_to_label_p.
16285 * config/visium/visium-passes.def: New file.
16286 * config/visium/t-visium (PASSES_EXTRA): Define.
16287 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
16288 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
16289 (TRAMPOLINE_ALIGNMENT): Define.
16290 * config/visium/visium.c (visium_option_override): Do not register
16291 the machine-specific reorg pass here.
16292 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
16293 for the GR6.
16294 (output_branch): Adjust threshold for long branch instruction.
16295 * config/visium/visium.md (cpu): Move around.
16296 (length): Adjust for the GR6.
16297
16298 2019-02-15 Richard Biener <rguenther@suse.de>
16299 Jakub Jelinek <jakub@redhat.com>
16300
16301 PR tree-optimization/89278
16302 * tree-loop-distribution.c: Include tree-eh.h.
16303 (generate_memset_builtin, generate_memcpy_builtin): Call
16304 rewrite_to_non_trapping_overflow on builtin->size before passing it
16305 to force_gimple_operand_gsi.
16306
16307 2019-02-15 Jakub Jelinek <jakub@redhat.com>
16308
16309 PR other/89342
16310 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
16311 optimize_debug.
16312 * opth-gen.awk: Likewise.
16313
16314 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
16315
16316 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
16317 Enable MMX, SSE and SSE2 by default.
16318 * config/i386/i386.c (ix86_option_override_internal): Do not
16319 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
16320
16321 2019-02-14 Jakub Jelinek <jakub@redhat.com>
16322
16323 PR rtl-optimization/89354
16324 * combine.c (make_extraction): Punt if extraction_mode is narrower
16325 than len bits.
16326
16327 2019-02-14 Maya Rashish <coypu@sdf.org>
16328
16329 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
16330 * config/netbsd-d.c: New file.
16331 * config/t-netbsd: Add netbsd-d.o
16332
16333 2018-02-14 Steve Ellcey <sellcey@marvell.com>
16334
16335 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
16336 affects_type_identity to true for aarch64_vector_pcs.
16337 (aarch64_comp_type_attributes): New function.
16338 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
16339
16340 2019-02-14 Tamar Christina <tamar.christina@arm.com>
16341
16342 PR target/88850
16343 * config/arm/iterators.md (ANY64): Add V4HF.
16344
16345 2019-02-14 Martin Liska <mliska@suse.cz>
16346
16347 PR rtl-optimization/89242
16348 * dce.c (delete_unmarked_insns): Call free_dominance_info we
16349 process a transformation.
16350
16351 2019-02-14 Jakub Jelinek <jakub@redhat.com>
16352
16353 PR tree-optimization/89314
16354 * fold-const.c (fold_binary_loc): Cast strlen argument to
16355 const char * before dereferencing it. Formatting fixes.
16356
16357 PR middle-end/89284
16358 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
16359
16360 2019-02-13 Ian Lance Taylor <iant@golang.org>
16361
16362 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
16363 and set current index for other optimizations.
16364
16365 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
16366
16367 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
16368 nonimmediate_operand as operand 2 predicate.
16369 (vec_set<VF2_512_256:mode>_0): Ditto.
16370 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
16371 (*vec_concatv2si): Remove alternative 2.
16372 (*vec_concatv4si_0): Use vm constraint for alternative 0.
16373 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
16374 (vec_concatv2di): Split alternatives 4,5,6 to ...
16375 (*vec_concatv2di_0) ... new pattern.
16376
16377 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
16378
16379 PR target/89190
16380 * config/arm/arm.c (ldm_stm_operation_p) Set
16381 addr_reg_in_reglist correctly for first register.
16382 (load_multiple_sequence): Remove dead base check.
16383 (gen_ldm_seq): Correctly set write_back for Thumb-1.
16384
16385 2019-02-13 Tamar Christina <tamar.christina@arm.com>
16386
16387 PR target/88847
16388 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
16389 Expose as @aarch64_pred_mov.
16390 * config/aarch64/aarch64.c (aarch64_classify_address):
16391 Use expand_insn which legitimizes operands.
16392
16393 2019-02-13 Martin Liska <mliska@suse.cz>
16394
16395 * builtins.h (expand_builtin_with_bounds): Remove declaration.
16396 * calls.c (struct arg_data): Remove special_slot, pointer_arg
16397 and pointer_offset fields.
16398 (initialize_argument_information): Remove usage of dead
16399 fields.
16400 * cgraph.h (struct cgraph_thunk_info): Remove
16401 add_pointer_bounds_args.
16402 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
16403 fields.
16404 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
16405 fields.
16406 * config/i386/i386.c (ix86_function_arg_advance): Remove
16407 unrelated comment.
16408 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
16409 (def_builtin): Remove usage of dead fields.
16410 (ix86_add_new_builtins): Likewise.
16411 * ipa-fnsummary.c (compute_fn_summary): Likewise.
16412 * ipa-icf.c (sem_function::equals_wpa): Likewise.
16413 (sem_function::init): Likewise.
16414 (sem_variable::merge): Likewise.
16415 * ipa-visibility.c (function_and_variable_visibility): Likewise.
16416 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
16417 * lto-cgraph.c (lto_output_node): Likewise.
16418 (lto_output_varpool_node): Likewise.
16419 (input_node): Likewise.
16420 (input_varpool_node): Likewise.
16421 * lto-streamer-out.c (lto_output): Likewise.
16422 * tree-inline.c (expand_call_inline): Remove usage of
16423 assign_stmts.
16424 * tree-inline.h (struct copy_body_data): Likewise.
16425 * varpool.c (varpool_node::dump): Likewise.
16426
16427 2019-02-13 Jakub Jelinek <jakub@redhat.com>
16428
16429 PR middle-end/89303
16430 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
16431 into pt->vars_contains_escaped_heap instead of setting
16432 pt->vars_contains_escaped_heap to it.
16433
16434 PR middle-end/89281
16435 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
16436 INTVAL (size), compare it to GET_MODE_MASK instead of
16437 1 << GET_MODE_BITSIZE.
16438
16439 PR target/89290
16440 * config/i386/predicates.md (x86_64_immediate_operand): Allow
16441 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
16442 -mcmodel=large.
16443
16444 2019-02-13 Martin Liska <mliska@suse.cz>
16445
16446 PR lto/88858
16447 * cfgrtl.c (remove_barriers_from_footer): New function.
16448 (try_redirect_by_replacing_jump): Use it.
16449 (cfg_layout_redirect_edge_and_branch): Likewise.
16450
16451 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
16452
16453 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
16454 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
16455 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
16456 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
16457 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
16458 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
16459 New BU_CRYPTO_2.
16460 * config/rs6000/rs6000.c (builtin_function_type)
16461 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
16462 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
16463 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
16464 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
16465 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
16466
16467 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
16468
16469 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
16470 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
16471
16472 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
16473
16474 PR target/89229
16475 * config/i386/i386.md (*movoi_internal_avx): Revert revision
16476 268678 and revision 268657.
16477 (*movti_internal): Likewise.
16478
16479 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
16480
16481 PR target/89233
16482 * config/s390/s390.c (s390_decompose_address): Update comment.
16483 (s390_check_qrst_address): Reject invalid address forms after
16484 LRA.
16485
16486 2019-02-12 Martin Liska <mliska@suse.cz>
16487
16488 PR lto/88876
16489 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
16490 we need default values of funct_state for a function that
16491 is not optimized.
16492
16493 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
16494
16495 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
16496 the object to pick the size of stores on strict-alignment platforms.
16497
16498 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
16499 (*movdi_insn_sp32): Likewise.
16500 (*movdi_insn_sp64): Likewise.
16501
16502 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
16503
16504 PR lto/88677
16505 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
16506 types that needs constructiong.
16507 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
16508
16509 2019-02-12 Richard Biener <rguenther@suse.de>
16510
16511 PR tree-optimization/89253
16512 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
16513 duplicate the loop.
16514
16515 2019-02-11 David Malcolm <dmalcolm@redhat.com>
16516
16517 PR lto/88147
16518 * input.c (selftest::test_line_offset_overflow): New selftest.
16519 (selftest::input_c_tests): Call it.
16520
16521 2019-02-11 Martin Sebor <msebor@redhat.com>
16522
16523 PR tree-optimization/88771
16524 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
16525 when -Wstringop-overflow is set.
16526 (builtin_memref::builtin_memref): Adjust excessive upper bound
16527 only when lower bound is not excessive.
16528 (maybe_diag_overlap): Detect and diagnose excessive bounds via
16529 -Wstringop-ovefflow.
16530 (maybe_diag_offset_bounds): Rename...
16531 (maybe_diag_access_bounds): ...to this.
16532 (check_bounds_or_overlap): Adjust for name change above.
16533
16534 2019-02-11 Martin Sebor <msebor@redhat.com>
16535
16536 PR c++/87996
16537 * builtins.c (max_object_size): Move from here...
16538 * builtins.h (max_object_size): ...and here...
16539 * tree.c (max_object_size): ...to here...
16540 * tree.h (max_object_size): ...and here.
16541
16542 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
16543
16544 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
16545 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
16546 for correct semantics.
16547
16548 2019-02-11 Alan Modra <amodra@gmail.com>
16549
16550 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
16551 -mlongcall and -mpltseq.
16552 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
16553 (RS/6000 and PowerPC Options <-mpltseq>): Document.
16554 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
16555 * config/rs6000/sysv4.opt (mpltseq): New option.
16556 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
16557 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
16558 support is lacking. Don't allow -mpltseq with -mbss-plt.
16559 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
16560 -mpltseq given for ELFv1.
16561 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
16562 Only use UNSPEC_PLTSEQ for inline PLT calls.
16563 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
16564 use UNSPEC_PLTSEQ for inline PLT calls.
16565 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
16566 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
16567 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
16568 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
16569 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
16570 (pltseq_mtctr_<mode>): Likewise.
16571
16572 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16573
16574 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
16575 Solaris ld.
16576 * configure: Regenerate.
16577
16578 2019-02-11 Jakub Jelinek <jakub@redhat.com>
16579
16580 PR bootstrap/88714
16581 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
16582 instead of r.
16583
16584 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
16585
16586 * function.c (assign_parm_setup_block): Use the stored
16587 size, not the passed size, when allocating stack-space,
16588 also for a parameter with alignment larger than
16589 MAX_SUPPORTED_STACK_ALIGNMENT.
16590
16591 2019-02-11 Martin Liska <mliska@suse.cz>
16592
16593 PR ipa/89009
16594 * ipa-cp.c (build_toporder_info): Remove usage of a param.
16595 * ipa-inline.c (inline_small_functions): Likewise.
16596 * ipa-pure-const.c (propagate_pure_const): Likewise.
16597 (propagate_nothrow): Likewise.
16598 * ipa-reference.c (propagate): Likewise.
16599 * ipa-utils.c (struct searchc_env): Remove unused field.
16600 (searchc): Always search across AVAIL_INTERPOSABLE.
16601 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
16602 the only called IPA pure const can properly not propagate
16603 across interposable boundary.
16604 * ipa-utils.h (ipa_reduced_postorder): Remove param.
16605
16606 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
16607
16608 * config/nds32/nds32.md (call_internal, call_value_internal,
16609 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
16610
16611 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
16612
16613 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
16614 typo.
16615
16616 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
16617
16618 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
16619 in comments
16620
16621 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
16622
16623 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
16624
16625 2019-02-10 Jakub Jelinek <jakub@redhat.com>
16626
16627 PR tree-optimization/89268
16628 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
16629 if preds is non-NULL.
16630
16631 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16632
16633 PR lto/89272
16634 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
16635 polymorphic types.
16636
16637 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
16638
16639 * config/nds32/nds32.md (trap): New pattern.
16640
16641 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
16642
16643 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
16644 dwarf span.
16645
16646 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
16647
16648 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
16649 to split POST_INC.
16650
16651 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16652
16653 * ipa-visibility.c (localize_node): Also do not localize
16654 LDPR_PREVAILING_DEF_IRONLY_EXP.
16655
16656 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16657
16658 PR lto/87957
16659 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
16660 instead of type_with_linkage.
16661
16662 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16663
16664 PR ipa/88755
16665 * params.def (uninlined-function-insns, uninlined-function-time,
16666 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
16667 bound so we don't get overflows.
16668
16669 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
16670
16671 * config/rs6000/rs6000-string.c (expand_compare_loop,
16672 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
16673 memcmp/strncmp.
16674
16675 2019-02-09 Jakub Jelinek <jakub@redhat.com>
16676
16677 PR middle-end/89246
16678 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
16679 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
16680 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
16681
16682 2019-02-09 Alan Modra <amodra@gmail.com>
16683
16684 PR target/88343
16685 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
16686 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
16687 setup.
16688
16689 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
16690
16691 PR middle-end/88560
16692 * lra-constraints.c (process_alt_operands): Don't increase reject
16693 for memory when offset memory is required.
16694
16695 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
16696
16697 * config/s390/vector.md: Implement vector copysign.
16698
16699 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
16700
16701 * expr.c (expand_constructor): Correct indentations.
16702
16703 2019-02-08 Richard Biener <rguenther@suse.de>
16704
16705 PR tree-optimization/89247
16706 * tree-if-conv.c: Include tree-cfgcleanup.h.
16707 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
16708 (tree_if_conversion): Pass through predicate vector.
16709 (pass_if_conversion::execute): Do CFG cleanup and SSA update
16710 inline, see if any if-converted loops we refrece in
16711 LOOP_VECTORIZED calls vanished and fixup.
16712 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
16713
16714 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
16715
16716 * config/s390/constraints.md (jdd): New constraint.
16717
16718 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
16719
16720 PR target/89229
16721 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
16722 upper 16 vector registers without TARGET_AVX512VL.
16723 (*movti_internal): Likewise.
16724
16725 2019-02-08 Jakub Jelinek <jakub@redhat.com>
16726
16727 PR rtl-optimization/89234
16728 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
16729 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
16730 (copy_reg_eh_region_note_backward): Likewise.
16731
16732 2019-02-08 Richard Biener <rguenther@suse.de>
16733
16734 PR middle-end/89223
16735 * tree-data-ref.c (initialize_matrix_A): Fail if constant
16736 doesn't fit in HWI.
16737 (analyze_subscript_affine_affine): Handle failure from
16738 initialize_matrix_A.
16739
16740 2019-02-08 Jakub Jelinek <jakub@redhat.com>
16741
16742 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
16743 cfun everywhere.
16744
16745 2019-02-07 David Malcolm <dmalcolm@redhat.com>
16746
16747 PR tree-optimization/86637
16748 PR tree-optimization/89235
16749 * tree-vect-loop.c (optimize_mask_stores): Add an
16750 auto_purge_vect_location sentinel to ensure that vect_location is
16751 purged on exit.
16752 * tree-vectorizer.c
16753 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
16754 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
16755 to ensure that vect_location is purged on exit.
16756 (pass_slp_vectorize::execute): Likewise, replacing the manual
16757 reset.
16758 * tree-vectorizer.h (class auto_purge_vect_location): New class.
16759
16760 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16761
16762 * config/aarch64/iterators.md (max_opp): New code_attr.
16763 (USMAX): New code iterator.
16764 * config/aarch64/predicates.md (aarch64_smin): New predicate.
16765 (aarch64_smax): Likewise.
16766 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
16767 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
16768 MINUS (MAX MIN).
16769
16770 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
16771
16772 PR target/89229
16773 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
16774 for TARGET_AVX512VL.
16775 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
16776
16777 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
16778
16779 * config/s390/s390-builtin-types.def: Add new types.
16780 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
16781 (s390_vec_xlw4): Make the memory operand into a const pointer.
16782 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
16783 float.
16784 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
16785 a new vector type with the alignment of the scalar memory operand.
16786
16787 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
16788 Jakub Jelinek <jakub@redhat.com>
16789
16790 PR bootstrap/88714
16791 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
16792 arm_count_ldrdstrd_insns): New declarations.
16793 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
16794 MINUS.
16795 (valid_operands_ldrd_strd): New function.
16796 (arm_count_ldrdstrd_insns): New function.
16797 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
16798 sets instead of single DImode set and define new insns to match this.
16799
16800 2019-02-07 Tamar Christina <tamar.christina@arm.com>
16801
16802 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
16803 Make it a C initializer.
16804
16805 2019-02-07 Tamar Christina <tamar.christina@arm.com>
16806
16807 PR/target 88850
16808 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
16809
16810 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16811
16812 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
16813 Use neon_dot<q> for type.
16814 (neon_<sup>dot_lane<vsi2qi>): Likewise.
16815
16816 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16817
16818 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
16819 Use neon_dot<q> for type.
16820 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
16821 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
16822
16823 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
16824
16825 PR rtl-optimization/89225
16826 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
16827 sizes check.
16828
16829 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
16830
16831 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
16832 after restoring registers saved to allocate the frame on Windows.
16833
16834 2019-02-06 Richard Biener <rguenther@suse.de>
16835
16836 PR tree-optimization/89182
16837 * graphite.h (cached_scalar_evolution_in_region): Declare.
16838 * graphite.c (struct seir_cache_key): New.
16839 (struct sese_scev_hash): Likewise.
16840 (seir_cache): New global.
16841 (cached_scalar_evolution_in_region): New function.
16842 (graphite_transform_loops): Allocate and release seir_cache.
16843 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
16844 cached_scalar_evolution_in_region.
16845 * graphite-scop-detection.c (scop_detection::can_represent_loop):
16846 Simplify.
16847 (scop_detection::graphite_can_represent_expr: Use
16848 cached_scalar_evolution_in_region.
16849 (scop_detection::stmt_simple_for_scop_p): Likewise.
16850 (find_params_in_bb): Likewise.
16851 (gather_bbs::before_dom_children): Likewise.
16852 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
16853 (add_loop_constraints): Likewise.
16854
16855 2019-02-06 Jakub Jelinek <jakub@redhat.com>
16856
16857 PR middle-end/89210
16858 * fold-const-call.c (fold_const_vec_convert): Pass true as last
16859 operand to new_unary_operation only if both element types are integral
16860 and it isn't a widening conversion. Return NULL_TREE if
16861 new_unary_operation failed.
16862
16863 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
16864
16865 PR target/88856
16866 * config/s390/s390.md: Remove load and test FP splitter.
16867
16868 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
16869
16870 PR target/89112
16871 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
16872 expand_compare_loop, expand_block_compare_gpr,
16873 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
16874 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
16875 #include "profile-count.h" and "predict.h" for types and functions
16876 needed to work with REG_BR_PROB notes.
16877
16878 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
16879
16880 PR target/89112
16881 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
16882 for the long branch case.
16883
16884 2019-02-05 Jakub Jelinek <jakub@redhat.com>
16885
16886 PR target/89188
16887 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
16888 can throw, non-call exceptions are enabled and we can't delete
16889 dead exceptions or alter cfg. Set must_clean if
16890 delete_insn_and_edges returns true, don't set it blindly for calls.
16891 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
16892
16893 PR rtl-optimization/89195
16894 * combine.c (make_extraction): For MEMs, don't extract bytes outside
16895 of the original MEM.
16896
16897 2019-02-05 Martin Liska <mliska@suse.cz>
16898
16899 PR gcov-profile/89000
16900 * gcov.c (function_summary): Remove argument.
16901 (file_summary): New function.
16902 (print_usage): Replace tabs with spaces.
16903 (generate_results): Use new function file_summary.
16904
16905 2019-02-05 Jakub Jelinek <jakub@redhat.com>
16906
16907 PR target/89186
16908 * optabs.c (prepare_cmp_insn): Pass x and y to
16909 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
16910
16911 2019-02-05 Richard Biener <rguenther@suse.de>
16912
16913 PR middle-end/89150
16914 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
16915 (struct bitmap_element): Drop chain_prev so we properly recurse on
16916 the prev member, supporting tree views.
16917 (struct bitmap_head): GTY skip the obstack member.
16918
16919 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
16920
16921 PR c/88698
16922 * doc/extend.texi (Vector Extensions): Add an example of using vector
16923 types together with x86 intrinsics.
16924
16925 2019-02-04 Alan Modra <amodra@gmail.com>
16926
16927 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
16928 str[] size to 160, and comment.
16929
16930 2019-02-04 Alan Modra <amodra@gmail.com>
16931
16932 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
16933 (rs6000_pltseq_template): Guard output of TLS markers with
16934 TARGET_TLS_MARKERS.
16935 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
16936 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
16937 to use inline PLT sequences.
16938 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
16939 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
16940 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
16941
16942 2019-02-04 Martin Liska <mliska@suse.cz>
16943
16944 PR ipa/88985
16945 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
16946 out when ipa_fn_summaries does not contain entry for callee.
16947
16948 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
16949
16950 * config/sparc/sparc.h: Remove superfluous blank lines.
16951 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
16952 (got_register_rtx): ...this.
16953 (sparc_got): Adjust to above renaming.
16954 (sparc_tls_got): Likewise.
16955 (sparc_delegitimize_address): Likewise.
16956 (sparc_output_mi_thunk): Likewise.
16957 (sparc_init_pic_reg): Likewise.
16958 (save_local_or_in_reg_p): Fix test on the GOT register.
16959 (USE_HIDDEN_LINKONCE): Move around.
16960 (get_pc_thunk_name): Likewise.
16961 (gen_load_pcrel_sym): Likewise.
16962 (load_got_register): Likewise.
16963
16964 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
16965
16966 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
16967 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
16968
16969 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
16970
16971 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
16972 into consideration.
16973
16974 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
16975
16976 * config.gcc (with_nds32_lib, glibc):
16977 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
16978 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
16979 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
16980
16981 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
16982
16983 PR target/89071
16984 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
16985 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
16986 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
16987 (*rcpsf2_sse): Ditto.
16988 (*rsqrtsf2_sse): Ditto.
16989 (sse4_1_round<mode<2): Ditto.
16990
16991 2019-02-03 Richard Biener <rguenther@suse.de>
16992
16993 PR debug/87295
16994 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
16995 orig.
16996
16997 2019-02-02 Jakub Jelinek <jakub@redhat.com>
16998
16999 PR middle-end/87887
17000 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17001 Punt with warning on aggregate return or argument types. Ignore
17002 type/mode checking for uniform arguments.
17003
17004 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
17005
17006 * combine.c (try_combine): Do not print "Can't combine" messages unless
17007 printing failed combination attempts.
17008
17009 2019-02-01 Martin Jambor <mjambor@suse.cz>
17010
17011 PR hsa/87863
17012 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
17013 segment and global segment variables before making them static.
17014
17015 2019-02-01 Martin Jambor <mjambor@suse.cz>
17016
17017 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
17018 missed optimization dump with dump_enabled_p.
17019
17020 2019-02-01 Richard Biener <rguenther@suse.de>
17021
17022 PR middle-end/88597
17023 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
17024 the instantiate cache.
17025 (instantiate_scev_binary): Elide second operand procesing
17026 if equal to the first.
17027 * tree-chrec.c (chrec_contains_symbols): Add visited set.
17028 (chrec_contains_undetermined): Likewise.
17029 (tree_contains_chrecs): Likewise.
17030
17031 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
17032
17033 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
17034
17035 2019-02-01 Jakub Jelinek <jakub@redhat.com>
17036
17037 PR tree-optimization/89143
17038 * wide-int-range.h (wide_int_range_absu): Declare.
17039 * wide-int-range.cc (wide_int_range_absu): New function.
17040 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
17041
17042 PR tree-optimization/88107
17043 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
17044 instead of assertion that eh_region_outermost is non-NULL, if it
17045 is NULL, set *ALL to true and return NULL.
17046 (move_sese_region_to_fn): Adjust caller, if all is set, call
17047 duplicate_eh_regions with NULL region.
17048
17049 2019-02-01 Richard Biener <rguenth@suse.de>
17050
17051 PR rtl-optimization/88593
17052 * mode-switching.c (optimize_mode_switching): Free dominators before
17053 calling cleanup_cfg.
17054
17055 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
17056
17057 PR tree-optimization/88932
17058 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
17059
17060 2019-01-31 Jakub Jelinek <jakub@redhat.com>
17061
17062 PR middle-end/89137
17063 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
17064 bogus clang warning.
17065
17066 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
17067
17068 PR target/89071
17069 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
17070 alternative to avoid partial SSE register stall for TARGET_AVX.
17071 (truncdfsf2): Ditto.
17072 (sse4_1_round<mode>2): Ditto.
17073
17074 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
17075
17076 PR tree-optimization/89008
17077 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
17078 process anything of the form X * 0.
17079
17080 2019-01-31 Richard Biener <rguenther@suse.de>
17081
17082 PR tree-optimization/89135
17083 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
17084 with abnormal preds.
17085
17086 2019-01-31 Jakub Jelinek <jakub@redhat.com>
17087
17088 PR sanitizer/89124
17089 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
17090 always_inline callees into no_sanitize_address callers.
17091
17092 2019-01-31 Richard Biener <rguenther@suse.de>
17093
17094 PR rtl-optimization/89115
17095 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
17096
17097 2019-01-30 Martin Sebor <msebor@redhat.com>
17098
17099 PR other/89106
17100 * doc/extend.texi (cast to a union): Correct and expand.
17101
17102 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
17103
17104 PR rtl-optimization/87246
17105 * lra-constraints.c (simplify_operand_subreg): Reload memory
17106 in subreg if the address became invalid.
17107
17108 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
17109
17110 PR target/87064
17111 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
17112 Disable for little-endian.
17113
17114 2019-01-30 Richard Biener <rguenther@suse.de>
17115
17116 PR rtl-optimization/89115
17117 * opts.c (default_options_optimization): Reduce
17118 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
17119 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
17120 to the default.
17121
17122 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
17123
17124 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
17125 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
17126 type of vector element when vec_extract is implemented by direct
17127 move.
17128
17129 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
17130
17131 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
17132
17133 2019-01-30 Richard Biener <rguenther@suse.de>
17134
17135 PR tree-optimization/89111
17136 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
17137 canonicalization to appropriately sized access types.
17138
17139 2019-01-30 Jakub Jelinek <jakub@redhat.com>
17140
17141 PR c++/89105
17142 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
17143 for arguments to functions that are TU-local and shouldn't be
17144 referenced by assembly.
17145
17146 2019-01-30 Ulrich Drepper <drepper@redhat.com>
17147
17148 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
17149 after '='.
17150
17151 2019-01-29 Martin Sebor <msebor@redhat.com>
17152
17153 PR c/88956
17154 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
17155
17156 2019-01-29 Jakub Jelinek <jakub@redhat.com>
17157
17158 PR c++/66676
17159 PR ipa/89104
17160 * omp-simd-clone.c (simd_clone_clauses_extract)
17161 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
17162 OMP_CLAUSE_ALIGNED_ALIGNMENT.
17163
17164 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
17165
17166 * config.gcc: Force .init_array for ARC.
17167
17168 2019-01-29 Richard Biener <rguenther@suse.de>
17169
17170 PR debug/87295
17171 * dwarf2out.c (collect_skeleton_dies): New helper.
17172 (copy_decls_for_unworthy_types): Call it.
17173 (build_abbrev_table): Assert we do not try to replace
17174 DW_AT_signature refs with local refs.
17175
17176 2019-01-28 Jakub Jelinek <jakub@redhat.com>
17177
17178 PR middle-end/89002
17179 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
17180 for lastprivate/linear IV, push gimplify context around gimplify_assign
17181 and, if it needed any temporaries, pop it into a gimple bind around the
17182 sequence.
17183
17184 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
17185
17186 * common.opt (-Wattribute-alias): Remove "no-" from name.
17187 Make -Wattribute-alias command line option and
17188 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
17189
17190 2019-01-28 Jakub Jelinek <jakub@redhat.com>
17191
17192 PR target/89073
17193 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
17194 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
17195 x86 ISA options.
17196 (bmi2): Add missing @opindex.
17197 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
17198 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
17199 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
17200 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
17201 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
17202 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
17203 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
17204 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
17205 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
17206 xsavec, xsaveopt and xsaves options.
17207
17208 2019-01-28 Richard Biener <rguenther@suse.de>
17209
17210 PR debug/89076
17211 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
17212 support removal.
17213
17214 2019-01-28 Richard Biener <rguenther@suse.de>
17215
17216 PR tree-optimization/88739
17217 * tree-cfg.c (verify_types_in_gimple_reference): Verify
17218 BIT_FIELD_REFs only are applied to mode-precision operands
17219 when they are integral.
17220 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
17221 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
17222 BIT_FIELD_REFs of non-mode-precision integral operands.
17223
17224 2019-01-27 Jakub Jelinek <jakub@redhat.com>
17225
17226 PR target/87214
17227 * config/i386/sse.md
17228 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
17229 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
17230 first constants in pairs are multiples of 2. Formatting fixes.
17231 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
17232 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
17233 first constants in each quadruple are multiples of 4. Formatting fixes.
17234
17235 2019-01-26 Martin Jambor <mjambor@suse.cz>
17236
17237 PR ipa/88933
17238 * tree-inline.c: Include tree-cfgcleanup.h.
17239 (delete_unreachable_blocks_update_callgraph): Move...
17240 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
17241 ...here, make externally visible, make second argument bool, adjust
17242 all callers.
17243 * tree-cfgcleanup.c: Include cgraph.h.
17244 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
17245 Declare.
17246 * ipa-prop.c: Include tree-cfgcleanup.h.
17247 (ipcp_transform_function): Call
17248 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
17249
17250 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
17251
17252 PR rtl-optimization/88846
17253 * ira.c (process_set_for_memref_referenced_p): New.
17254 (memref_referenced_p): Add new param. Use
17255 process_set_for_memref_referenced_p. Add new switch cases.
17256 (memref_used_between_p): Pass new arg to memref_referenced_p.
17257
17258 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
17259
17260 PR target/88469
17261 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
17262 argument ABI_BREAK. Set to true if the calculated alignment has
17263 changed in gcc-9. Check bit-fields for their base type alignment.
17264 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
17265 (aarch64_function_arg_boundary): Likewise.
17266 (aarch64_gimplify_va_arg_expr): Likewise.
17267
17268 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
17269
17270 PR middle-end/89037
17271 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
17272 instead of accessing TREE_INT_CST_ELT directly.
17273
17274 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
17275
17276 * doc/sourcebuild.texi (Environment attributes): Add fenv and
17277 fenv_exceptions description.
17278
17279 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
17280
17281 PR rtl-optimization/87763
17282 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
17283 Allow SUBREG when matching CC_NZmode compare.
17284
17285 2019-01-25 Richard Biener <rguenther@suse.de>
17286
17287 PR tree-optimization/89049
17288 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
17289 Look at the pattern stmt to determine if the stmt is vectorized.
17290
17291 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
17292
17293 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
17294 (pred_mov<mode>): Handle all-register forms using both a new
17295 alternative and a split.
17296
17297 2019-01-25 Richard Biener <rguenther@suse.de>
17298
17299 PR tree-optimization/86865
17300 * graphite-scop-detection.c (scop_detection::can_represent_loop):
17301 Reject non-do-while loops.
17302
17303 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
17304
17305 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
17306 * config/rs6000/constraints.md (Q constraint): Use REG_P.
17307 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
17308 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
17309 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
17310 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
17311 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
17312 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
17313 vlogical_operand, gpc_reg_operand, int_reg_operand,
17314 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
17315 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
17316 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
17317 (save_world_operation, restore_world_operation, lmw_operation,
17318 stmw_operation): Use MEM_P and REG_P.
17319 (tie_operand): Use MEM_P.
17320 (vrsave_operation, crsave_operation): Use REG_P.
17321 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
17322 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
17323 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
17324 (call_operand): Use HARD_REGISTER_P.
17325 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
17326 Use CONST_INT_P.
17327 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
17328 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
17329 quad_aligned_load_p, replace_swapped_aligned_store,
17330 recombine_lvx_pattern, replace_swapped_aligned_load,
17331 recombine_stvx_pattern): Use MEM_P.
17332 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
17333 Use MEM_P and SYMBOL_REF_P.
17334 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
17335 (insn_is_swappable_p): Use REG_P and MEM_P.
17336 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
17337 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
17338 Use CONST_INT_P.
17339 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
17340 Use CONST_DOUBLE_P.
17341 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
17342 CONST_WIDE_INT_P.
17343 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
17344 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
17345 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
17346 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
17347 reg_or_subregno:
17348 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
17349 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
17350 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
17351 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
17352 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
17353 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
17354 rs6000_split_logical_di): Use CONST_INT_P.
17355 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
17356 REG_P and SYMBOL_REF_P.
17357 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
17358 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
17359 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
17360 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
17361 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
17362 (small_data_operand, print_operand_address): Use CONST_INT_P and
17363 SYMBOL_REF_P.
17364 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
17365 (rs6000_init_hard_regno_mode_ok, direct_move_p):
17366 Use HARD_REGISTER_NUM_P.
17367 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
17368 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
17369 SUBREG_P and SYMBOL_REF_P.
17370 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
17371 and HARD_REGISTER_NUM_P.
17372 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
17373 reg_or_subregno.
17374 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
17375 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
17376 MEM_P and REG_P.
17377 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
17378 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
17379 find_addr_reg): Use REG_P.
17380 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
17381 (rs6000_emit_le_vsx_move): Use SUBREG_P.
17382 (offsettable_ok_by_alignment, constant_pool_expr_p,
17383 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
17384 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
17385 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
17386 rs6000_assemble_integer, create_TOC_reference,
17387 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
17388 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
17389 (rs6000_split_vec_extract_var): Use reg_or_subregno.
17390 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
17391 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
17392 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
17393 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
17394 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
17395 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
17396 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
17397 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
17398 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
17399 and cbranch<mode>4): Use CONST_INT_P.
17400 (multiple define_splits): Use REG_P and SUBREG_P.
17401 (define_expands call, call_value): Use MEM_P.
17402 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
17403 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
17404 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
17405 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
17406 and HARD_REGISTER_NUM_P.
17407 (multiple define_splits): Use HARD_REGISTER_NUM_P.
17408
17409 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
17410
17411 PR rtl-optimization/88948
17412 * rtl.h (prepare_copy_insn): New prototype.
17413 * gcse.c (prepare_copy_insn): New function, split out from
17414 process_insert_insn.
17415 (process_insert_insn): Use prepare_copy_insn.
17416 * store-motion.c (replace_store_insn): Use prepare_copy_insn
17417 instead of gen_move_insn.
17418
17419 2019-01-24 Jakub Jelinek <jakub@redhat.com>
17420
17421 PR debug/89006
17422 * config/i386/i386.c (ix86_pic_register_p): Return true for
17423 UNSPEC_SET_GOT too.
17424
17425 PR tree-optimization/88964
17426 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
17427 punt if HONOR_SNANS (chrec).
17428
17429 PR middle-end/89015
17430 * tree-nested.c (convert_nonlocal_reference_stmt,
17431 convert_local_reference_stmt, convert_tramp_reference_stmt,
17432 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
17433 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
17434 or GIMPLE_OMP_TASK.
17435
17436 PR tree-optimization/89027
17437 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
17438 for "omp simd array" variables.
17439
17440 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
17441
17442 PR target/88469
17443 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
17444 force the alignment of m_val.
17445
17446 2019-01-24 Richard Biener <rguenther@suse.de>
17447
17448 PR lto/87187
17449 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
17450 When in "legacy" debug mode make sure to reset self-origins.
17451
17452 2019-01-24 Martin Liska <mliska@suse.cz>
17453
17454 PR gcov-profile/88994
17455 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
17456 result will be always smaller or equal to the original.
17457 * gcov.c (mangle_name): Fix else branch where we should
17458 also copy to PTR and shift the pointer.
17459
17460 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
17461
17462 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
17463 * vr-values.c (find_case_label_ranges): Fix a comment typo.
17464
17465 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
17466
17467 * common/config/i386/i386-common.c
17468 (OPTION_MASK_ISA_ENQCMD_SET,
17469 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
17470 (ix86_handle_option): Handle -menqcmd.
17471 * config.gcc (enqcmdintrin.h): New header file.
17472 * config/i386/cpuid.h (bit_ENQCMD): New bit.
17473 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
17474 -menqcmd.
17475 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
17476 function type.
17477 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
17478 __builtin_ia32_enqcmds): New builtins.
17479 * config/i386/i386-c.c (__ENQCMD__): New macro.
17480 * config/i386/i386-option.c (ix86_target_string): Add
17481 -menqcmd.
17482 (ix86_valid_target_attribute_inner_p): Likewise.
17483 * config/i386/i386-expand.c
17484 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
17485 IX86_BUILTIN_ENQCMDS.
17486 * config/i386/i386.h (TARGET_ENQCMD): New.
17487 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
17488 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
17489 (movdir64b_<mode>): Parameterize to enable share expansion code
17490 with ENQCMD in function ix86_expand_builtin.
17491 * config/i386/i386.opt: Add -menqcmd.
17492 * config/i386/immintrin.h: Include enqcmdintrin.h.
17493 * config/i386/enqcmdintrin.h: New intrinsic file.
17494 * doc/invoke.texi: Add -menqcmd.
17495
17496 2019-01-23 Bin Cheng <bin.cheng@arm.com>
17497 Steve Ellcey <sellcey@marvell.com>
17498
17499 PR target/85711
17500 * recog.c (address_operand): Return false on wrong mode for address.
17501 (constrain_operands): Check for mode with 'p' constraint.
17502
17503 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
17504
17505 PR target/88998
17506 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
17507 Disparage MMX alternative.
17508 (sse2_cvtpd2pi): Ditto.
17509 (sse2_cvttpd2pi): Ditto.
17510
17511 2019-01-23 David Malcolm <dmalcolm@redhat.com>
17512
17513 PR driver/89014
17514 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
17515 use-after-free of the result of
17516 aarch64_get_extension_string_for_isa_flags.
17517
17518 2019-01-23 Jakub Jelinek <jakub@redhat.com>
17519
17520 PR c/44715
17521 * doc/extend.texi: Document break and continue behavior in
17522 statement expressions.
17523
17524 2019-01-23 Richard Biener <rguenther@suse.de>
17525
17526 PR tree-optimization/89008
17527 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
17528 not leave another stray operand.
17529
17530 2019-01-23 Jakub Jelinek <jakub@redhat.com>
17531
17532 * BASE-VER: Bump to 9.0.1.
17533
17534 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
17535
17536 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
17537 thunk that returns by reference, use the type of the return object
17538 of the thunk instead of that of the alias to build the dereference.
17539
17540 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
17541
17542 * config/arc/atomic.md: Add operand to DMB instruction.
17543
17544 2019-01-23 Jakub Jelinek <jakub@redhat.com>
17545
17546 PR tree-optimization/88964
17547 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
17548 build_zero_cst instead of build_int_cst. Return false for loop
17549 invariants which honor signed zeros.
17550
17551 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
17552
17553 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
17554
17555 2019-01-22 Jakub Jelinek <jakub@redhat.com>
17556
17557 PR target/88965
17558 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
17559 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
17560 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
17561
17562 PR middle-end/88968
17563 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
17564 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
17565
17566 PR target/87064
17567 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
17568 Disable for little endian.
17569
17570 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
17571
17572 PR target/88469
17573 * config/arm/arm.c (arm_needs_double_word_align): Check
17574 DECL_BIT_FIELD_TYPE.
17575
17576 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
17577 H.J. Lu <hongjiu.lu@intel.com>
17578
17579 PR target/88909
17580 * config/i386/i386-builtin.def: Add mask2 to all builtin
17581 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
17582 SPECIAL_ARGS.
17583 * config/i386/i386.c (BDESC): Add mask2 to the definition.
17584 (BDESC_FIRST): Likewise.
17585 (define_builtin): Add an argument for mask2. Updated to handle
17586 both ix86_isa_flags and ix86_isa_flags2.
17587 (define_builtin_const): Likewise.
17588 (define_builtin_pure): Likewise.
17589 (define_builtin2): Deleted.
17590 (define_builtin_const2): Likewise.
17591 (builtin_description): Add a member, mask2.
17592 (bdesc_*): Add mask2 to builtin initializations.
17593 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
17594 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
17595 support.
17596 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
17597
17598 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
17599
17600 PR target/88954
17601 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
17602 noplt attribute.
17603
17604 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
17605
17606 PR target/88469
17607 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
17608 alignment is dominated by a bitfield with 64-bit aligned base type.
17609 (arm_function_arg): Emit a warning if the alignment has changed since
17610 earlier GCC releases.
17611 (arm_function_arg_boundary): Likewise.
17612 (arm_setup_incoming_varargs): Likewise.
17613
17614 2019-01-22 Richard Biener <rguenther@suse.de>
17615
17616 PR tree-optimization/88862
17617 * graphite-scop-detection.c
17618 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
17619
17620 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
17621
17622 * doc/extend.tex (AMD GCN Function Attributes): New section.
17623 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
17624 * doc/invoke.texi (AMD GCN Options): New section.
17625 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
17626
17627 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
17628
17629 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
17630 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
17631
17632 2019-01-22 Jakub Jelinek <jakub@redhat.com>
17633
17634 PR tree-optimization/88044
17635 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
17636 is false in the first iteration, but !every_iteration, return false
17637 instead of true with niter->niter zero.
17638
17639 PR rtl-optimization/88904
17640 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
17641 any nonequal registers before processing BB_END (b).
17642
17643 PR target/88905
17644 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
17645 GET_MODE (op0).
17646 (expand_binop_directly, expand_doubleword_clz,
17647 expand_doubleword_popcount, expand_ctz, expand_ffs,
17648 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
17649
17650 PR rtl-optimization/49429
17651 PR target/49454
17652 PR rtl-optimization/86334
17653 PR target/88906
17654 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
17655 addressable from here...
17656 (emit_block_op_via_libcall): ... to here.
17657
17658 2019-01-22 Richard Biener <rguenther@suse.de>
17659
17660 * tree-vect-loop.c (vect_analyze_loop_operations): Use
17661 auto_vec for cost vector to fix memleak.
17662 (vectorize_fold_left_reduction): Properly gather SLP defs.
17663 (vectorizable_comparison): Do not swap operands to properly
17664 gather SLP defs.
17665
17666 2019-01-22 Alan Modra <amodra@gmail.com>
17667
17668 PR target/88614
17669 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
17670 stays a reg. Allow a const_int.
17671 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
17672 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
17673 (IS_NOMARK_TLSGETADDR): Define.
17674 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
17675 (rs6000_output_tlsargs): New function.
17676 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
17677 __tls_get_addr call takes an arg.
17678 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
17679 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
17680 delete split..
17681 (call_value_nonlocal_sysv): ..or here, delete split.
17682 (tls_gdld_nomark): Delete.
17683 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
17684 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
17685 (call_value_nonlocal_sysv): Likewise.
17686 (call_value_nonlocal_sysv_secure): Likewise.
17687 (call_value_nonlocal_aix): Likewise.
17688 (call_value_indirect_aix): Likewise.
17689 (call_value_indirect_elfv2): Likewise.
17690 (call_value_local32, call_value_local64): Disable for no-mark tls.
17691 (call_value_local_aix): Likewise.
17692
17693 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
17694
17695 PR target/88938
17696 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
17697 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
17698
17699 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
17700
17701 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
17702 string contents as hash_map keys.
17703
17704 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17705
17706 PR c/88928
17707 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
17708 for rvalue context. Handle rvalues correctly. Use min_align_of_type
17709 instead of TYPE_ALIGN.
17710 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
17711 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
17712 pointer from TYPE_STUB_DECL.
17713
17714 2019-01-21 Richard Biener <rguenther@suse.de>
17715
17716 PR tree-optimization/88934
17717 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
17718 at the possibly non-constant operand.
17719 (vect_get_constant_vectors): Adjust.
17720
17721 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
17722
17723 PR target/71659
17724 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
17725 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
17726 instead of _X86INTRIN_H_INCLUDED.
17727 * onfig/i386/clwbintrin.h: Likewise.
17728 * config/i386/pkuintrin.h: Likewise.
17729 * config/i386/prfchwintrin.h: Likewise.
17730 * config/i386/rdseedintrin.h: Likewise.
17731 * config/i386/wbnoinvdintrin.h: Likewise.
17732 * config/i386/xsavecintrin.h: Likewise.
17733 * config/i386/xsavesintrin.h: Likewise.
17734 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
17735 * config/i386/xsaveintrin.h: Likewise.
17736 * config/i386/xsaveoptintrin.h: Likewise.
17737 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
17738 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
17739 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
17740 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
17741 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
17742 * config/i386/immintrin.h: Here.
17743
17744 2019-01-20 Martin Jambor <mjambor@suse.cz>
17745
17746 PR ipa/87615
17747 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
17748 with aa_walk_budget.
17749 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
17750 aa_walk_budget_p parameter.
17751 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
17752 walk. Updated all callers.
17753 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
17754 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
17755 unmodified_parm.
17756 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
17757 parameter info. Extract info from fbi. Pass fbi to recursive calls
17758 and to unmodified_parm.
17759 (phi_result_unknown_predicate): New parameter fbi, removed parameter
17760 info, updated call to will_be_nonconstant_expr_predicate.
17761 (param_change_prob): New parameter fbi, limit AA walking.
17762 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
17763 calls to various above functions.
17764 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
17765 parameter. Use it to limit AA walking.
17766 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
17767 fbi, limit AA walk.
17768 (detect_type_change): New parameter fbi, pass it on to
17769 detect_type_change_from_memory_writes.
17770 (detect_type_change_ssa): Likewise.
17771 (aa_overwalked): Removed.
17772 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
17773 accordingly, adjust to the neew AA limiting scheme.
17774 (parm_ref_data_preserved_p): Likewise.
17775 (ipa_compute_jump_functions_for_edge): Adjust call to
17776 get_dynamic_type.
17777 (ipa_analyze_call_uses): Likewise.
17778 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
17779 (ipa_analyze_node): Initialize aa_walk_budget.
17780 (ipcp_transform_function): Likewise.
17781 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
17782 to get_dynamic_type.
17783
17784 2019-01-19 Jakub Jelinek <jakub@redhat.com>
17785
17786 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
17787 outside of #if CHECKING_P code.
17788
17789 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
17790
17791 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
17792 New function, split out from...
17793 (loop_versioning::analyze_stride): ...here.
17794 (loop_versioning::find_per_loop_multiplication): Use gassign.
17795 (loop_versioning::analyze_term_using_scevs): Return a success code.
17796 (loop_versioning::analyze_arbitrary_term): New function.
17797 (loop_versioning::analyze_address_fragment): Use
17798 analyze_arbitrary_term if all else fails.
17799
17800 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
17801
17802 PR target/88892
17803 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
17804 operands.
17805
17806 2019-01-18 Richard Biener <rguenther@suse.de>
17807
17808 PR tree-optimization/88903
17809 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
17810 scalar stmts a SLP shift amount is composed of when detecting
17811 shifts by scalars.
17812
17813 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
17814
17815 PR target/88799
17816 * config/arm/arm-cpus.in (mp): New feature.
17817 (sec): New feature.
17818 (fgroup ARMv7ve): Add mp and sec features.
17819 (arch armv7-a): Add options to allow mp and sec extensions.
17820 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
17821 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
17822 extenstions to the base architecture.
17823 (cpu cortex-a8): Add sec extension to the base architecture.
17824 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
17825 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
17826 variants down to the base v7-a varaint.
17827 * config/arm/t-multilib (v7_a_arch_variants): New variable.
17828 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
17829 of permitted extensions for -march=armv7-a and for
17830 -mcpu=generic-armv7-a.
17831
17832 2019-01-18 Martin Liska <mliska@suse.cz>
17833
17834 * params.def: Fix comment.
17835 * tree-profile.c (gimple_init_gcov_profiler): Bump function
17836 name.
17837 (gimple_gen_ic_func_profiler): Likewise.
17838
17839 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17840
17841 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
17842 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
17843 and put in error checks for stack protector guard options.
17844 (aarch64_stack_protect_guard): New.
17845 (TARGET_STACK_PROTECT_GUARD): Define.
17846 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
17847 (reg_stack_protect_address<mode>): New.
17848 (stack_protect_set): Adjust for SSP_GLOBAL.
17849 (stack_protect_test): Likewise.
17850 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
17851 (-mstack-protector-guard): Likewise.
17852 (-mstack-protector-guard-offset): Likewise.
17853
17854 2019-01-18 Jakub Jelinek <jakub@redhat.com>
17855
17856 PR tree-optimization/86214
17857 * tree-inline.h (struct copy_body_data): Add
17858 add_clobbers_to_eh_landing_pads member.
17859 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
17860 (copy_edges_for_bb): Call it if EH edge destination is <
17861 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
17862 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
17863 if flag_stack_reuse != SR_NONE and clear it afterwards.
17864
17865 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
17866
17867 PR target/85596
17868 * doc/install.texi (with-multilib-list): Document for aarch64.
17869
17870 2019-01-18 Jakub Jelinek <jakub@redhat.com>
17871
17872 PR target/88734
17873 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
17874 (("..."))) with ("...").
17875
17876 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
17877
17878 * doc/extend.texi (Built-in Functions for Memory Model Aware
17879 Atomic Operations): Document atomic fetch and nand.
17880
17881 2019-01-18 Martin Liska <mliska@suse.cz>
17882 Richard Biener <rguenther@suse.de>
17883
17884 PR middle-end/88587
17885 * cgraph.h (create_version_clone_with_body): Add new argument
17886 with attributes.
17887 * cgraphclones.c (cgraph_node::create_version_clone): Add
17888 DECL_ATTRIBUTES to a newly created decl. And call
17889 valid_attribute_p so that proper cl_target_optimization_node
17890 is set for the newly created declaration.
17891 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
17892 for declaration.
17893 (expand_target_clones): Do not call valid_attribute_p, it must
17894 be already done.
17895 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
17896 vector types.
17897
17898 2019-01-17 Jakub Jelinek <jakub@redhat.com>
17899
17900 PR target/88734
17901 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
17902 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
17903 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
17904
17905 2019-01-17 Martin Sebor <msebor@redhat.com>
17906
17907 PR middle-end/88273
17908 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
17909 Handle anti-ranges the same as no range at all.
17910
17911 2018-01-17 Steve Ellcey <sellcey@cavium.com>
17912
17913 * config/aarch64/aarch64.c (cgraph.h): New include.
17914 (intl.h): New include.
17915 (supported_simd_type): New function.
17916 (currently_supported_simd_type): Ditto.
17917 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
17918 (aarch64_simd_clone_adjust): Ditto.
17919 (aarch64_simd_clone_usable): Ditto.
17920 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
17921 (TARGET_SIMD_CLONE_ADJUST): Ditto.
17922 (TARGET_SIMD_CLONE_USABLE): Ditto.
17923 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
17924 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
17925 call.
17926
17927 2019-01-17 Martin Sebor <msebor@redhat.com>
17928
17929 PR tree-optimization/88800
17930 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
17931 NO_WARNING bit here. Avoid folding out-of-bounds calls.
17932 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
17933 redundant argument. Add new argument and issue diagnostics under
17934 its control. Detect out-of-bounds access even with warnings
17935 disabled.
17936 (check_bounds_or_overlap): Change return type. Add argument.
17937 (wrestrict_dom_walker::check_call): Adjust.
17938 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
17939 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
17940 check_bounds_or_overlap's return value.
17941 (handle_builtin_stxncpy): Same.
17942 (handle_builtin_strcat): Same.
17943
17944 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17945 Kwok Cheung Yeung <kcy@codesourcery.com>
17946 Julian Brown <julian@codesourcery.com>
17947 Tom de Vries <tom@codesourcery.com>
17948
17949 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
17950
17951 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17952
17953 * doc/sourcebuild.texi: Document dg-require-effective-target
17954 llvm_binutils and offload_gcn.
17955
17956 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17957 Kwok Cheung Yeung <kcy@codesourcery.com>
17958 Julian Brown <julian@codesourcery.com>
17959 Tom de Vries <tom@codesourcery.com>
17960
17961 * doc/sourcebuild.texi: Document dg-required-effective-target
17962 exceptions.
17963
17964 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17965 Kwok Cheung Yeung <kcy@codesourcery.com>
17966 Julian Brown <julian@codesourcery.com>
17967 Tom de Vries <tom@codesourcery.com>
17968 Jan Hubicka <hubicka@ucw.cz>
17969 Martin Jambor <mjambor@suse.cz>
17970
17971 * config.gcc: Add amdgcn*-*-amdhsa configuration.
17972 * configure.ac: Check for dlopen.
17973 * configure: Regenerate.
17974
17975 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17976 Kwok Cheung Yeung <kcy@codesourcery.com>
17977 Julian Brown <julian@codesourcery.com>
17978 Tom de Vries <tom@codesourcery.com>
17979 Jan Hubicka <hubicka@ucw.cz>
17980 Martin Jambor <mjambor@suse.cz>
17981
17982 * common/config/gcn/gcn-common.c: New file.
17983 * config/gcn/driver-gcn.c: New file.
17984 * config/gcn/gcn-builtins.def: New file.
17985 * config/gcn/gcn-hsa.h: New file.
17986 * config/gcn/gcn-modes.def: New file.
17987 * config/gcn/gcn-opts.h: New file.
17988 * config/gcn/gcn-passes.def: New file.
17989 * config/gcn/gcn-protos.h: New file.
17990 * config/gcn/gcn-run.c: New file.
17991 * config/gcn/gcn-tree.c: New file.
17992 * config/gcn/gcn.c: New file.
17993 * config/gcn/gcn.h: New file.
17994 * config/gcn/gcn.opt: New file.
17995 * config/gcn/t-gcn-hsa: New file.
17996
17997 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17998 Kwok Cheung Yeung <kcy@codesourcery.com>
17999 Julian Brown <julian@codesourcery.com>
18000 Tom de Vries <tom@codesourcery.com>
18001 Jan Hubicka <hubicka@ucw.cz>
18002 Martin Jambor <mjambor@suse.cz>
18003
18004 * config/gcn/constraints.md: New file.
18005 * config/gcn/gcn-valu.md: New file.
18006 * config/gcn/gcn.md: New file.
18007 * config/gcn/predicates.md: New file.
18008
18009 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
18010
18011 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
18012 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
18013 (stmt_uses_0_or_null_in_undefined_way): Likewise.
18014 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
18015
18016 2019-01-17 Tamar Christina <tamar.christina@arm.com>
18017
18018 PR target/88851
18019 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
18020 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
18021 it and document registers.
18022
18023 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18024
18025 * config/aarch64/aarch64.c (ares_tunings): Define.
18026 * config/aarch64/aarch64-cores.def (ares): Use the above.
18027
18028 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18029
18030 PR target/88794
18031 Revert:
18032 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
18033
18034 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
18035 (_mm512_fixupimm_round_pd): Update parameters and builtin.
18036 (_mm512_maskz_fixupimm_round_pd): Ditto.
18037 (_mm512_fixupimm_round_ps): Ditto.
18038 (_mm512_maskz_fixupimm_round_ps): Ditto.
18039 (_mm_fixupimm_round_sd): Ditto.
18040 (_mm_maskz_fixupimm_round_sd): Ditto.
18041 (_mm_fixupimm_round_ss): Ditto.
18042 (_mm_maskz_fixupimm_round_ss): Ditto.
18043 (_mm512_fixupimm_pd): Ditto.
18044 (_mm512_maskz_fixupimm_pd): Ditto.
18045 (_mm512_fixupimm_ps): Ditto.
18046 (_mm512_maskz_fixupimm_ps): Ditto.
18047 (_mm_fixupimm_sd): Ditto.
18048 (_mm_maskz_fixupimm_sd): Ditto.
18049 (_mm_fixupimm_ss): Ditto.
18050 (_mm_maskz_fixupimm_ss): Ditto.
18051 (_mm512_mask_fixupimm_round_pd): Update builtin.
18052 (_mm512_mask_fixupimm_round_ps): Ditto.
18053 (_mm_mask_fixupimm_round_sd): Ditto.
18054 (_mm_mask_fixupimm_round_ss): Ditto.
18055 (_mm512_mask_fixupimm_pd): Ditto.
18056 (_mm512_mask_fixupimm_ps): Ditto.
18057 (_mm_mask_fixupimm_sd): Ditto.
18058 (_mm_mask_fixupimm_ss): Ditto.
18059 * config/i386/avx512vlintrin.h:
18060 (_mm256_fixupimm_pd): Update parameters and builtin.
18061 (_mm256_maskz_fixupimm_pd): Ditto.
18062 (_mm256_fixupimm_ps): Ditto.
18063 (_mm256_maskz_fixupimm_ps): Ditto.
18064 (_mm_fixupimm_pd): Ditto.
18065 (_mm_maskz_fixupimm_pd): Ditto.
18066 (_mm_fixupimm_ps): Ditto.
18067 (_mm_maskz_fixupimm_ps): Ditto.
18068 (_mm256_mask_fixupimm_pd): Update builtin.
18069 (_mm256_mask_fixupimm_ps): Ditto.
18070 (_mm_mask_fixupimm_pd): Ditto.
18071 (_mm_mask_fixupimm_ps): Ditto.
18072 * config/i386/i386-builtin-types.def: Add new types and remove
18073 useless ones.
18074 * config/i386/i386-builtin.def: Update builtin definitions.
18075 * config/i386/i386.c: Handle new builtin types and remove useless ones.
18076 * config/i386/sse.md: Update VFIXUPIMM* patterns.
18077 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18078 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18079 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
18080 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18081 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18082 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
18083 * config/i386/subst.md:
18084 (round_saeonly_sd_mask_operand4): Add new subst_attr.
18085 (round_saeonly_sd_mask_op4): Ditto.
18086 (round_saeonly_expand_operand5): Ditto.
18087 (round_saeonly_expand): Update.
18088
18089 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18090
18091 PR target/88794
18092 Revert:
18093 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
18094
18095 * config/i386/sse.md: Combine VFIXUPIMM* patterns
18096 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18097 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18098 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
18099 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18100 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18101 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
18102
18103 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18104
18105 PR target/88794
18106 Revert:
18107 2018-12-15 Jakub Jelinek <jakub@redhat.com>
18108
18109 PR target/88489
18110 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
18111 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
18112 instead of UNSPEC_FIXUPIMM.
18113
18114 2019-01-17 Richard Biener <rguenther@suse.de>
18115
18116 PR lto/86736
18117 * dwarf2out.c (want_pubnames): Never generate pubnames sections
18118 and friends for the LTO part of debug info.
18119
18120 2019-01-17 Jakub Jelinek <jakub@redhat.com>
18121
18122 PR tree-optimization/86214
18123 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
18124 if x == y.
18125
18126 PR rtl-optimization/88870
18127 * dce.c (deletable_insn_p): Never delete const/pure calls that can
18128 throw if we can't alter the cfg or delete dead exceptions.
18129 (mark_insn): Don't call find_call_stack_args for such calls.
18130
18131 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
18132
18133 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
18134 prototypes for vec_st.
18135 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
18136 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
18137 mainly on signed/unsigned long long and double.
18138
18139 2019-01-16 David Malcolm <dmalcolm@redhat.com>
18140
18141 PR target/88861
18142 * combine.c (delete_noop_moves): Convert to "bool" return,
18143 returning true if any edges are eliminated.
18144 (combine_instructions): Also return true if delete_noop_moves
18145 returns true.
18146
18147 2019-01-16 Tamar Christina <tamar.christina@arm.com>
18148
18149 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
18150 correct max nunits for endian swap.
18151 (aarch64_expand_fcmla_builtin): Correct subreg code.
18152 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
18153 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
18154 lane endianness.
18155
18156 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
18157
18158 * config/alpha/alpha.c (alpha_gimplify_va_arg):
18159 Handle split indirect COMPLEX_TYPE arguments.
18160
18161 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
18162
18163 PR target/86891
18164 * config/aarch64/aarch64-modes.def: Add comment about how the carry
18165 bit is set by add and compare.
18166 (CC_ADC): New CC_MODE.
18167 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
18168 to cache the code and mode of X. Adjust the shape of a CC_Cmode
18169 comparison. Add detection for CC_ADCmode.
18170 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
18171 CC_ADCmode.
18172 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
18173 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
18174 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
18175 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
18176 to eliminate the need for zero-extending the operands.
18177 (add<mode>3_compareC_imm): Delete. Merge into ...
18178 (add<mode>3_compareC): ... this. Restructure the comparison to
18179 eliminate the need for zero-extending the operands.
18180 (add<mode>3_carryin): Use LTU for the overflow detection.
18181 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
18182 Reexpress comparison for overflow.
18183 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
18184 (add<mode>3_carryinC): Likewise.
18185 (add<mode>3_carryinV): Use LTU for carry between partials.
18186 * config/aarch64/predicates.md (aarch64_carry_operation): Update
18187 handling of CC_Cmode and add CC_ADCmode.
18188 (aarch64_borrow_operation): Likewise.
18189
18190 2019-01-16 Tamar Christina <tamar.christina@arm.com>
18191
18192 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
18193 Remove patternmode.
18194 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
18195 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
18196 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
18197 Remove endianness conversion.
18198
18199 2019-01-16 Martin Liska <mliska@suse.cz>
18200
18201 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
18202 for GCC driver.
18203 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
18204 a new argument.
18205 * gcc.c (add_sysrooted_hdrs_prefix): New function.
18206 (path_prefix_reset): Move up in the source file.
18207 (find_fortran_preinclude_file): Make complex search for the
18208 fortran header files.
18209
18210 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
18211
18212 * godump.c (go_output_typedef): When outputting a typedef, refer
18213 to the underlying type by its name and not its structure.
18214
18215 2019-01-15 David Malcolm <dmalcolm@redhat.com>
18216
18217 PR c++/88795
18218 * tree.c (build_function_type): Assert that arg_types is not
18219 error_mark_node.
18220
18221 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
18222
18223 PR inline-asm/52813
18224 * doc/extend.texi: Document that listing the stack pointer in the
18225 clobber list of an asm is a deprecated feature.
18226 * common.opt (Wdeprecated): Moved from c-family/c.opt.
18227 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
18228 warning instead of an error for clobbers of the stack pointer.
18229 Add a note explaining why.
18230
18231 2019-01-15 Richard Biener <rguenther@suse.de>
18232
18233 PR debug/88046
18234 * dwarf2out.c (gen_member_die): Do not generate inheritance
18235 DIEs late.
18236
18237 2019-01-15 Richard Biener <rguenther@suse.de>
18238
18239 PR tree-optimization/88855
18240 * tree-if-conv.c (combine_blocks): Collect
18241 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
18242
18243 2019-01-15 Tom de Vries <tdevries@suse.de>
18244
18245 PR target/80547
18246 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
18247 lhs == NULL_TREE for gang-level reduction.
18248
18249 2019-01-15 Richard Biener <rguenther@suse.de>
18250 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18251
18252 PR ipa/88788
18253 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
18254 return true if SSA_NAME is already marked in visited bitmap.
18255 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
18256
18257 2019-01-15 Jakub Jelinek <jakub@redhat.com>
18258
18259 PR tree-optimization/88775
18260 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
18261 equal == 0 equality pointer comparisons some more if compared in
18262 integral types and either one points to an automatic var and the
18263 other to a global, or we can prove at least one points to the middle
18264 or both point to start or both point to end.
18265
18266 2019-01-14 Andi Kleen <ak@linux.intel.com>
18267
18268 * Makefile.in: Lower autofdo sampling rate by 10x.
18269 * Makefile.tpl: Dito.
18270
18271 2019-01-14 Tom Honermann <tom@honermann.net>
18272
18273 * defaults.h: Define CHAR8_TYPE.
18274
18275 2019-01-14 Martin Sebor <msebor@redhat.com>
18276
18277 PR target/88638
18278 * doc/extend.texi (Darwin Format Checks): Clarify.
18279
18280 2019-01-14 Richard Biener <rguenther@suse.de>
18281
18282 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
18283 whether we are in (simplify ...) or (match ...) context.
18284
18285 2019-01-14 Jakub Jelinek <jakub@redhat.com>
18286
18287 PR rtl-optimization/88796
18288 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
18289 * cfgexpand.c (stack_protect_prologue): Initialize
18290 crtl->stack_protect_guard_decl.
18291 * function.c (stack_protect_epilogue): Use it instead of calling
18292 targetm.stack_protect_guard again.
18293 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
18294 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
18295 crtl->stack_protect_guard_decl.
18296 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
18297 on the returned MEM_EXPR.
18298
18299 2019-01-12 Tom de Vries <tdevries@suse.de>
18300
18301 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
18302 vector length using -fopenacc-dim.
18303
18304 2019-01-12 Tom de Vries <tdevries@suse.de>
18305
18306 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
18307 lengths into account.
18308
18309 2019-01-12 Svante Signell <svante.signell@gmail.com>
18310
18311 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
18312 (TARGET_CAN_SPLIT_STACK): Define.
18313 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
18314
18315 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18316
18317 * params.def (inline-unit-growth): Set to 40.
18318
18319 2019-01-12 Jakub Jelinek <jakub@redhat.com>
18320
18321 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
18322
18323 2019-01-12 Tom de Vries <tdevries@suse.de>
18324
18325 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
18326 region calling vector-partitionable routine, set default_vector_length
18327 to WARP_SIZE.
18328
18329 2019-01-12 Tom de Vries <tdevries@suse.de>
18330
18331 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
18332 variable default_vector_length.
18333
18334 2019-01-12 Tom de Vries <tdevries@suse.de>
18335
18336 PR middle-end/88703
18337 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
18338 from oacc_default_dims, as oacc_validate_dims would do it, and apply
18339 dimensions limits.
18340
18341 2019-01-12 Tom de Vries <tdevries@suse.de>
18342
18343 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
18344 (nvptx_goacc_validate_dims): Add used parameter.
18345 * doc/tm.texi: Regenerate.
18346 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
18347 argument to call to targetm.goacc.validate_dims.
18348 (default_goacc_validate_dims): Add used
18349 parameter.
18350 * target.def (validate_dims): Add used parameter in DEFHOOK.
18351 * targhooks.h (default_goacc_validate_dims): Add used parameter.
18352
18353 2019-01-11 Jakub Jelinek <jakub@redhat.com>
18354
18355 PR middle-end/85956
18356 PR lto/88733
18357 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
18358 field.
18359 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
18360 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
18361 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
18362 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
18363
18364 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
18365
18366 PR rtl-optimization/87305
18367 * lra-assigns.c
18368 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
18369 for little endian pseudos used as paradoxical subreg.
18370
18371 2019-01-11 Jakub Jelinek <jakub@redhat.com>
18372
18373 PR tree-optimization/88693
18374 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
18375 for STRING_CSTs that don't contain any NUL characters in the first
18376 TREE_STRING_LENGTH bytes.
18377
18378 2019-01-11 Alan Modra <amodra@gmail.com>
18379
18380 PR 88777
18381 PR 88614
18382 * genattrtab.c (min_fn): Don't translate values.
18383 (min_attr_value): Return INT_MAX when the value can't be calculated.
18384 Return minimum among any values that can be calculated.
18385 (max_attr_value): Adjust.
18386
18387 2019-01-11 Jakub Jelinek <jakub@redhat.com>
18388
18389 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
18390
18391 2019-01-11 Steve Ellcey <sellcey@marvell.com>
18392
18393 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
18394 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
18395 (aarch64_return_call_with_max_clobbers): New function.
18396 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
18397 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
18398 argument.
18399 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
18400 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
18401 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
18402 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
18403 * cselib.c (cselib_process_insn): Add argument to
18404 targetm.hard_regno_call_part_clobbered call.
18405 * ira-conflicts.c (ira_build_conflicts): Ditto.
18406 * ira-costs.c (ira_tune_allocno_costs): Ditto.
18407 * lra-constraints.c (inherit_reload_reg): Ditto.
18408 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
18409 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
18410 argument. Call targetm.return_call_with_max_clobbers.
18411 Add argument to targetm.hard_regno_call_part_clobbered call.
18412 (calls_have_same_clobbers_p): New function.
18413 (process_bb_lives): Add call_insn and last_call_insn variables.
18414 Pass call_insn to check_pseudos_live_through_calls.
18415 Modify if stmt to check targetm.return_call_with_max_clobbers.
18416 Update setting of flush variable.
18417 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
18418 to false.
18419 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
18420 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
18421 targetm.hard_regno_call_part_clobbered call.
18422 * reginfo.c (choose_hard_reg_mode): Ditto.
18423 * regrename.c (check_new_reg_p): Ditto.
18424 * reload.c (find_equiv_reg): Ditto.
18425 * reload1.c (emit_reload_insns): Ditto.
18426 * sched-deps.c (deps_analyze_insn): Ditto.
18427 * sel-sched.c (init_regs_for_mode): Ditto.
18428 (mark_unavailable_hard_regs): Ditto.
18429 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
18430 * target.def (hard_regno_call_part_clobbered): Add insn argument.
18431 (return_call_with_max_clobbers): New target function.
18432 * doc/tm.texi: Regenerate.
18433 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
18434 * hooks.c (hook_bool_uint_mode_false): Change to
18435 hook_bool_insn_uint_mode_false.
18436 * hooks.h (hook_bool_uint_mode_false): Ditto.
18437
18438 2019-01-11 Steve Ellcey <sellcey@marvell.com>
18439
18440 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
18441 (aarch64_remove_extra_call_preserved_regs): New function.
18442 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
18443 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
18444 * doc/tm.texi: Regenerate.
18445 * final.c (get_call_reg_set_usage): Call new hook.
18446 * target.def (remove_extra_call_preserved_regs): New hook.
18447 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
18448 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
18449
18450 2019-01-11 Jakub Jelinek <jakub@redhat.com>
18451
18452 PR bootstrap/88714
18453 * passes.c (finish_optimization_passes): Call print_combine_total_stats
18454 inside of pass_combine_1 dump rather than pass_profile_1.
18455
18456 2019-01-11 Tom de Vries <tdevries@suse.de>
18457
18458 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
18459 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
18460 (PTX_NUM_PER_WORKER_BARRIERS): Define.
18461 (nvptx_apply_dim_limits): Prevent vector_length 64 and
18462 num_workers 16.
18463
18464 2019-01-11 Tom de Vries <tdevries@suse.de>
18465
18466 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
18467
18468 2019-01-11 Jan Beulich <jbeulich@suse.com>
18469
18470 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
18471 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
18472 sse2_cvtsi2sd): Add {l}.
18473 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
18474 syntax.
18475
18476 2019-01-10 Jakub Jelinek <jakub@redhat.com>
18477
18478 PR target/88785
18479 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
18480 define_expand.
18481 (*float<floatunssuffix>v2div2sf2): New define_insn.
18482 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
18483 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
18484 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
18485 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
18486 match_operands with "const0_operand" "C".
18487
18488 2019-01-10 Tamar Christina <tamar.christina@arm.com>
18489
18490 * config/aarch64/aarch64-builtins.c
18491 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
18492 (aarch64_init_simd_builtins): ...Here
18493
18494 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
18495
18496 PR rtl-optimization/87305
18497 * lra-assigns.c
18498 (setup_live_pseudos_and_spill_after_risky_transforms): Check
18499 allocation for big endian pseudos used as paradoxical subregs and
18500 spill them if it is wrong.
18501 * lra-constraints.c (lra_constraints): Add a comment.
18502
18503 2019-01-10 Richard Biener <rguenther@suse.de>
18504
18505 PR tree-optimization/88792
18506 * tree-ssa-pre.c (get_representative_for): Do not return a
18507 value-number here.
18508
18509 2019-01-10 Jakub Jelinek <jakub@redhat.com>
18510
18511 PR middle-end/84877
18512 PR bootstrap/88450
18513 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
18514 (assign_parm_setup_block): Do the argument slot realignment here
18515 instead.
18516
18517 2019-01-10 Stefan Agner <stefan@agner.ch>
18518
18519 PR target/88648
18520 * config/arm/arm.c (arm_option_override_internal): Force
18521 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
18522
18523 2019-01-10 Jakub Jelinek <jakub@redhat.com>
18524
18525 PR c/88568
18526 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
18527 DECL_EXTERNAL.
18528
18529 2019-01-10 Tamar Christina <tamar.christina@arm.com>
18530
18531 * config/arm/arm-builtins.c
18532 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
18533 (MAC_LANE_PAIR_QUALIFIERS): New.
18534 (arm_expand_builtin_args): Use it.
18535 (arm_expand_builtin_1): Likewise.
18536 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
18537 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
18538 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
18539 * config/arm/arm_neon.h:
18540 (vcadd_rot90_f16): New.
18541 (vcaddq_rot90_f16): New.
18542 (vcadd_rot270_f16): New.
18543 (vcaddq_rot270_f16): New.
18544 (vcmla_f16): New.
18545 (vcmlaq_f16): New.
18546 (vcmla_lane_f16): New.
18547 (vcmla_laneq_f16): New.
18548 (vcmlaq_lane_f16): New.
18549 (vcmlaq_laneq_f16): New.
18550 (vcmla_rot90_f16): New.
18551 (vcmlaq_rot90_f16): New.
18552 (vcmla_rot90_lane_f16): New.
18553 (vcmla_rot90_laneq_f16): New.
18554 (vcmlaq_rot90_lane_f16): New.
18555 (vcmlaq_rot90_laneq_f16): New.
18556 (vcmla_rot180_f16): New.
18557 (vcmlaq_rot180_f16): New.
18558 (vcmla_rot180_lane_f16): New.
18559 (vcmla_rot180_laneq_f16): New.
18560 (vcmlaq_rot180_lane_f16): New.
18561 (vcmlaq_rot180_laneq_f16): New.
18562 (vcmla_rot270_f16): New.
18563 (vcmlaq_rot270_f16): New.
18564 (vcmla_rot270_lane_f16): New.
18565 (vcmla_rot270_laneq_f16): New.
18566 (vcmlaq_rot270_lane_f16): New.
18567 (vcmlaq_rot270_laneq_f16): New.
18568 (vcadd_rot90_f32): New.
18569 (vcaddq_rot90_f32): New.
18570 (vcadd_rot270_f32): New.
18571 (vcaddq_rot270_f32): New.
18572 (vcmla_f32): New.
18573 (vcmlaq_f32): New.
18574 (vcmla_lane_f32): New.
18575 (vcmla_laneq_f32): New.
18576 (vcmlaq_lane_f32): New.
18577 (vcmlaq_laneq_f32): New.
18578 (vcmla_rot90_f32): New.
18579 (vcmlaq_rot90_f32): New.
18580 (vcmla_rot90_lane_f32): New.
18581 (vcmla_rot90_laneq_f32): New.
18582 (vcmlaq_rot90_lane_f32): New.
18583 (vcmlaq_rot90_laneq_f32): New.
18584 (vcmla_rot180_f32): New.
18585 (vcmlaq_rot180_f32): New.
18586 (vcmla_rot180_lane_f32): New.
18587 (vcmla_rot180_laneq_f32): New.
18588 (vcmlaq_rot180_lane_f32): New.
18589 (vcmlaq_rot180_laneq_f32): New.
18590 (vcmla_rot270_f32): New.
18591 (vcmlaq_rot270_f32): New.
18592 (vcmla_rot270_lane_f32): New.
18593 (vcmla_rot270_laneq_f32): New.
18594 (vcmlaq_rot270_lane_f32): New.
18595 (vcmlaq_rot270_laneq_f32): New.
18596 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
18597 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
18598 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
18599 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
18600 vcmlaq_lane270): New.
18601 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
18602 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
18603 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
18604 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
18605 (arm_option_reconfigure_globals): Use them.
18606 * config/arm/iterators.md (VDF, VQ_HSF): New.
18607 (VCADD, VCMLA): New.
18608 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
18609 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
18610 New.
18611 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
18612 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
18613
18614 2019-01-10 Tamar Christina <tamar.christina@arm.com>
18615
18616 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18617 Add qualifier_lane_pair_index.
18618 (emit-rtl.h): Include.
18619 (TYPES_QUADOP_LANE_PAIR): New.
18620 (aarch64_simd_expand_args): Use it.
18621 (aarch64_simd_expand_builtin): Likewise.
18622 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
18623 New.
18624 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
18625 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
18626 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
18627 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
18628 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
18629 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
18630 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
18631 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
18632 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
18633 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
18634 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
18635 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
18636 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
18637 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
18638 Add __ARM_FEATURE_COMPLEX.
18639 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
18640 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
18641 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
18642 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
18643 fcmlaq_lane270): New.
18644 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
18645 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
18646 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
18647 * config/aarch64/arm_neon.h:
18648 (vcadd_rot90_f16): New.
18649 (vcaddq_rot90_f16): New.
18650 (vcadd_rot270_f16): New.
18651 (vcaddq_rot270_f16): New.
18652 (vcmla_f16): New.
18653 (vcmlaq_f16): New.
18654 (vcmla_lane_f16): New.
18655 (vcmla_laneq_f16): New.
18656 (vcmlaq_lane_f16): New.
18657 (vcmlaq_rot90_lane_f16): New.
18658 (vcmla_rot90_laneq_f16): New.
18659 (vcmla_rot90_lane_f16): New.
18660 (vcmlaq_rot90_f16): New.
18661 (vcmla_rot90_f16): New.
18662 (vcmlaq_laneq_f16): New.
18663 (vcmla_rot180_laneq_f16): New.
18664 (vcmla_rot180_lane_f16): New.
18665 (vcmlaq_rot180_f16): New.
18666 (vcmla_rot180_f16): New.
18667 (vcmlaq_rot90_laneq_f16): New.
18668 (vcmlaq_rot270_laneq_f16): New.
18669 (vcmlaq_rot270_lane_f16): New.
18670 (vcmla_rot270_laneq_f16): New.
18671 (vcmlaq_rot270_f16): New.
18672 (vcmla_rot270_f16): New.
18673 (vcmlaq_rot180_laneq_f16): New.
18674 (vcmlaq_rot180_lane_f16): New.
18675 (vcmla_rot270_lane_f16): New.
18676 (vcadd_rot90_f32): New.
18677 (vcaddq_rot90_f32): New.
18678 (vcaddq_rot90_f64): New.
18679 (vcadd_rot270_f32): New.
18680 (vcaddq_rot270_f32): New.
18681 (vcaddq_rot270_f64): New.
18682 (vcmla_f32): New.
18683 (vcmlaq_f32): New.
18684 (vcmlaq_f64): New.
18685 (vcmla_lane_f32): New.
18686 (vcmla_laneq_f32): New.
18687 (vcmlaq_lane_f32): New.
18688 (vcmlaq_laneq_f32): New.
18689 (vcmla_rot90_f32): New.
18690 (vcmlaq_rot90_f32): New.
18691 (vcmlaq_rot90_f64): New.
18692 (vcmla_rot90_lane_f32): New.
18693 (vcmla_rot90_laneq_f32): New.
18694 (vcmlaq_rot90_lane_f32): New.
18695 (vcmlaq_rot90_laneq_f32): New.
18696 (vcmla_rot180_f32): New.
18697 (vcmlaq_rot180_f32): New.
18698 (vcmlaq_rot180_f64): New.
18699 (vcmla_rot180_lane_f32): New.
18700 (vcmla_rot180_laneq_f32): New.
18701 (vcmlaq_rot180_lane_f32): New.
18702 (vcmlaq_rot180_laneq_f32): New.
18703 (vcmla_rot270_f32): New.
18704 (vcmlaq_rot270_f32): New.
18705 (vcmlaq_rot270_f64): New.
18706 (vcmla_rot270_lane_f32): New.
18707 (vcmla_rot270_laneq_f32): New.
18708 (vcmlaq_rot270_lane_f32): New.
18709 (vcmlaq_rot270_laneq_f32): New.
18710 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
18711 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
18712 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
18713 (FCADD, FCMLA): New.
18714 (rot): New.
18715 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
18716
18717 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
18718
18719 PR other/16615
18720
18721 * config/pa/pa.c: Change "can not" to "cannot".
18722 * gimple-ssa-evrp-analyze.c: Likewise.
18723 * ipa-icf.c: Likewise.
18724 * ipa-polymorphic-call.c: Likewise.
18725 * ipa-pure-const.c: Likewise.
18726 * lra-constraints.c: Likewise.
18727 * lra-remat.c: Likewise.
18728 * reload1.c: Likewise.
18729 * reorg.c: Likewise.
18730 * tree-ssa-uninit.c: Likewise.
18731
18732 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
18733
18734 PR other/16615
18735
18736 * Makefile.in: Mechanically replace "can not" with "cannot".
18737 * alias.c: Likewise.
18738 * builtins.c: Likewise.
18739 * calls.c: Likewise.
18740 * cgraph.c: Likewise.
18741 * cgraph.h: Likewise.
18742 * cgraphclones.c: Likewise.
18743 * cgraphunit.c: Likewise.
18744 * combine-stack-adj.c: Likewise.
18745 * combine.c: Likewise.
18746 * common/config/i386/i386-common.c: Likewise.
18747 * config/aarch64/aarch64.c: Likewise.
18748 * config/alpha/sync.md: Likewise.
18749 * config/arc/arc.c: Likewise.
18750 * config/arc/predicates.md: Likewise.
18751 * config/arm/arm-c.c: Likewise.
18752 * config/arm/arm.c: Likewise.
18753 * config/arm/arm.h: Likewise.
18754 * config/arm/arm.md: Likewise.
18755 * config/arm/cortex-r4f.md: Likewise.
18756 * config/csky/csky.c: Likewise.
18757 * config/csky/csky.h: Likewise.
18758 * config/darwin-f.c: Likewise.
18759 * config/epiphany/epiphany.md: Likewise.
18760 * config/i386/i386.c: Likewise.
18761 * config/i386/sol2.h: Likewise.
18762 * config/m68k/m68k.c: Likewise.
18763 * config/mcore/mcore.h: Likewise.
18764 * config/microblaze/microblaze.md: Likewise.
18765 * config/mips/20kc.md: Likewise.
18766 * config/mips/sb1.md: Likewise.
18767 * config/nds32/nds32.c: Likewise.
18768 * config/nds32/predicates.md: Likewise.
18769 * config/pa/pa.c: Likewise.
18770 * config/rs6000/e300c2c3.md: Likewise.
18771 * config/rs6000/rs6000.c: Likewise.
18772 * config/s390/s390.h: Likewise.
18773 * config/sh/sh.c: Likewise.
18774 * config/sh/sh.md: Likewise.
18775 * config/spu/vmx2spu.h: Likewise.
18776 * cprop.c: Likewise.
18777 * dbxout.c: Likewise.
18778 * df-scan.c: Likewise.
18779 * doc/cfg.texi: Likewise.
18780 * doc/extend.texi: Likewise.
18781 * doc/fragments.texi: Likewise.
18782 * doc/gty.texi: Likewise.
18783 * doc/invoke.texi: Likewise.
18784 * doc/lto.texi: Likewise.
18785 * doc/md.texi: Likewise.
18786 * doc/objc.texi: Likewise.
18787 * doc/rtl.texi: Likewise.
18788 * doc/tm.texi: Likewise.
18789 * dse.c: Likewise.
18790 * emit-rtl.c: Likewise.
18791 * emit-rtl.h: Likewise.
18792 * except.c: Likewise.
18793 * expmed.c: Likewise.
18794 * expr.c: Likewise.
18795 * fold-const.c: Likewise.
18796 * genautomata.c: Likewise.
18797 * gimple-fold.c: Likewise.
18798 * hard-reg-set.h: Likewise.
18799 * ifcvt.c: Likewise.
18800 * ipa-comdats.c: Likewise.
18801 * ipa-cp.c: Likewise.
18802 * ipa-devirt.c: Likewise.
18803 * ipa-fnsummary.c: Likewise.
18804 * ipa-icf.c: Likewise.
18805 * ipa-inline-transform.c: Likewise.
18806 * ipa-inline.c: Likewise.
18807 * ipa-polymorphic-call.c: Likewise.
18808 * ipa-profile.c: Likewise.
18809 * ipa-prop.c: Likewise.
18810 * ipa-pure-const.c: Likewise.
18811 * ipa-reference.c: Likewise.
18812 * ipa-split.c: Likewise.
18813 * ipa-visibility.c: Likewise.
18814 * ipa.c: Likewise.
18815 * ira-build.c: Likewise.
18816 * ira-color.c: Likewise.
18817 * ira-conflicts.c: Likewise.
18818 * ira-costs.c: Likewise.
18819 * ira-int.h: Likewise.
18820 * ira-lives.c: Likewise.
18821 * ira.c: Likewise.
18822 * ira.h: Likewise.
18823 * loop-invariant.c: Likewise.
18824 * loop-unroll.c: Likewise.
18825 * lower-subreg.c: Likewise.
18826 * lra-assigns.c: Likewise.
18827 * lra-constraints.c: Likewise.
18828 * lra-eliminations.c: Likewise.
18829 * lra-lives.c: Likewise.
18830 * lra-remat.c: Likewise.
18831 * lra-spills.c: Likewise.
18832 * lra.c: Likewise.
18833 * lto-cgraph.c: Likewise.
18834 * lto-streamer-out.c: Likewise.
18835 * postreload-gcse.c: Likewise.
18836 * predict.c: Likewise.
18837 * profile-count.h: Likewise.
18838 * profile.c: Likewise.
18839 * recog.c: Likewise.
18840 * ree.c: Likewise.
18841 * reload.c: Likewise.
18842 * reload1.c: Likewise.
18843 * reorg.c: Likewise.
18844 * resource.c: Likewise.
18845 * rtl.def: Likewise.
18846 * rtl.h: Likewise.
18847 * rtlanal.c: Likewise.
18848 * sched-deps.c: Likewise.
18849 * sched-ebb.c: Likewise.
18850 * sched-rgn.c: Likewise.
18851 * sel-sched-ir.c: Likewise.
18852 * sel-sched.c: Likewise.
18853 * shrink-wrap.c: Likewise.
18854 * simplify-rtx.c: Likewise.
18855 * symtab.c: Likewise.
18856 * target.def: Likewise.
18857 * toplev.c: Likewise.
18858 * tree-call-cdce.c: Likewise.
18859 * tree-cfg.c: Likewise.
18860 * tree-complex.c: Likewise.
18861 * tree-core.h: Likewise.
18862 * tree-eh.c: Likewise.
18863 * tree-inline.c: Likewise.
18864 * tree-loop-distribution.c: Likewise.
18865 * tree-nrv.c: Likewise.
18866 * tree-profile.c: Likewise.
18867 * tree-sra.c: Likewise.
18868 * tree-ssa-alias.c: Likewise.
18869 * tree-ssa-dce.c: Likewise.
18870 * tree-ssa-dom.c: Likewise.
18871 * tree-ssa-forwprop.c: Likewise.
18872 * tree-ssa-loop-im.c: Likewise.
18873 * tree-ssa-loop-ivcanon.c: Likewise.
18874 * tree-ssa-loop-ivopts.c: Likewise.
18875 * tree-ssa-loop-niter.c: Likewise.
18876 * tree-ssa-phionlycprop.c: Likewise.
18877 * tree-ssa-phiopt.c: Likewise.
18878 * tree-ssa-propagate.c: Likewise.
18879 * tree-ssa-threadedge.c: Likewise.
18880 * tree-ssa-threadupdate.c: Likewise.
18881 * tree-ssa-uninit.c: Likewise.
18882 * tree-ssanames.c: Likewise.
18883 * tree-streamer-out.c: Likewise.
18884 * tree.c: Likewise.
18885 * tree.h: Likewise.
18886 * vr-values.c: Likewise.
18887
18888 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
18889
18890 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
18891 (ix86_split_xorsign): Ditto.
18892 * config/i386/i386.c (ix86_expand_xorsign): New function.
18893 (ix86_split_xorsign): Ditto.
18894 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
18895 (xorsign<mode>3): New expander.
18896 (xorsign<mode>3_1): New insn_and_split pattern.
18897 * config/i386/sse.md (xorsign<mode>3): New expander.
18898
18899 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18900
18901 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
18902 (*tablejump_sp64): Likewise.
18903 (*tablejump<P:mode>): ...this.
18904 (*call_address_sp32): Merge into...
18905 (*call_address_sp64): Likewise.
18906 (*call_address<P:mode>): ...this.
18907 (*call_symbolic_sp32): Merge into...
18908 (*call_symbolic_sp64): Likewise.
18909 (*call_symbolic<P:mode>): ...this.
18910 (call_value): Remove constraint and add predicate.
18911 (*call_value_address_sp32): Merge into...
18912 (*call_value_address_sp64): Likewise.
18913 (*call_value_address<P:mode>): ...this.
18914 (*call_value_symbolic_sp32): Merge into...
18915 (*call_value_symbolic_sp64): Likewise.
18916 (*call_value_symbolic<P:mode>): ...this.
18917 (*sibcall_symbolic_sp32): Merge into...
18918 (*sibcall_symbolic_sp64): Likewise.
18919 (*sibcall_symbolic<P:mode>): ...this.
18920 (sibcall_value): Remove constraint and add predicate.
18921 (*sibcall_value_symbolic_sp32): Merge into...
18922 (*sibcall_value_symbolic_sp64): Likewise.
18923 (*sibcall_value_symbolic<P:mode>): ...this.
18924 (window_save): Minor tweak.
18925 (*branch_sp32): Merge into...
18926 (*branch_sp64): Likewise.
18927 (*branch<P:mode>): ...this.
18928
18929 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18930 James Clarke <jrtc27@jrtc27.com>
18931
18932 PR target/84010
18933 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
18934 consistently in TLS address generation and adjust code to the renaming
18935 of patterns. Mark calls to __tls_get_addr as const.
18936 * config/sparc/sparc.md (tgd_hi22): Turn into...
18937 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
18938 (tgd_lo10): Turn into...
18939 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
18940 (tgd_add32): Merge into...
18941 (tgd_add64): Likewise.
18942 (tgd_add<P:mode>): ...this and use Pmode throughout.
18943 (tldm_hi22): Turn into...
18944 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
18945 (tldm_lo10): Turn into...
18946 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
18947 (tldm_add32): Merge into...
18948 (tldm_add64): Likewise.
18949 (tldm_add<P:mode>): ...this and use Pmode throughout.
18950 (tldm_call32): Merge into...
18951 (tldm_call64): Likewise.
18952 (tldm_call<P:mode>): ...this and use Pmode throughout.
18953 (tldo_hix22): Turn into...
18954 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
18955 (tldo_lox10): Turn into...
18956 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
18957 (tldo_add32): Merge into...
18958 (tldo_add64): Likewise.
18959 (tldo_add<P:mode>): ...this and use Pmode throughout.
18960 (tie_hi22): Turn into...
18961 (tie_hi22<P:mode>): ...this and use Pmode throughout.
18962 (tie_lo10): Turn into...
18963 (tie_lo10<P:mode>): ...this and use Pmode throughout.
18964 (tie_ld64): Use DImode throughout.
18965 (tie_add32): Merge into...
18966 (tie_add64): Likewise.
18967 (tie_add<P:mode>): ...this and use Pmode throughout.
18968 (tle_hix22_sp32): Merge into...
18969 (tle_hix22_sp64): Likewise.
18970 (tle_hix22<P:mode>): ...this and use Pmode throughout.
18971 (tle_lox22_sp32): Merge into...
18972 (tle_lox22_sp64): Likewise.
18973 (tle_lox22<P:mode>): ...this and use Pmode throughout.
18974 (*tldo_ldub_sp32): Merge into...
18975 (*tldo_ldub_sp64): Likewise.
18976 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
18977 (*tldo_ldub1_sp32): Merge into...
18978 (*tldo_ldub1_sp64): Likewise.
18979 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
18980 (*tldo_ldub2_sp32): Merge into...
18981 (*tldo_ldub2_sp64): Likewise.
18982 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
18983 (*tldo_ldsb1_sp32): Merge into...
18984 (*tldo_ldsb1_sp64): Likewise.
18985 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
18986 (*tldo_ldsb2_sp32): Merge into...
18987 (*tldo_ldsb2_sp64): Likewise.
18988 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
18989 (*tldo_ldub3_sp64): Use DImode throughout.
18990 (*tldo_ldsb3_sp64): Likewise.
18991 (*tldo_lduh_sp32): Merge into...
18992 (*tldo_lduh_sp64): Likewise.
18993 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
18994 (*tldo_lduh1_sp32): Merge into...
18995 (*tldo_lduh1_sp64): Likewise.
18996 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
18997 (*tldo_ldsh1_sp32): Merge into...
18998 (*tldo_ldsh1_sp64): Likewise.
18999 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
19000 (*tldo_lduh2_sp64): Use DImode throughout.
19001 (*tldo_ldsh2_sp64): Likewise.
19002 (*tldo_lduw_sp32): Merge into...
19003 (*tldo_lduw_sp64): Likewise.
19004 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
19005 (*tldo_lduw1_sp64): Use DImode throughout.
19006 (*tldo_ldsw1_sp64): Likewise.
19007 (*tldo_ldx_sp64): Likewise.
19008 (*tldo_stb_sp32): Merge into...
19009 (*tldo_stb_sp64): Likewise.
19010 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
19011 (*tldo_sth_sp32): Merge into...
19012 (*tldo_sth_sp64): Likewise.
19013 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
19014 (*tldo_stw_sp32): Merge into...
19015 (*tldo_stw_sp64): Likewise.
19016 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
19017 (*tldo_stx_sp64): Use DImode throughout.
19018
19019 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19020
19021 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
19022 check configure option to set BTI and Return Address Signing.
19023 * configure.ac: Add --enable-standard-branch-protection and
19024 --disable-standard-branch-protection.
19025 * configure: Regenerated.
19026 * doc/install.texi: Document the same.
19027
19028 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19029 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19030
19031 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
19032 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
19033 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
19034 if bti is enabled.
19035 * config/aarch64/aarch64-bti-insert.c: New file.
19036 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
19037 pass.
19038 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
19039 new bti pass.
19040 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
19041 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
19042 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
19043 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
19044
19045 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19046
19047 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
19048 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
19049 Disable bti for -mbranch-protection=none.
19050 (aarch64_handle_standard_branch_protection): Enable bti for
19051 -mbranch-protection=standard.
19052 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
19053 -mbranch-protection.
19054 (aarch64_bti_enabled): Check if bti is enabled.
19055 * config/aarch64/aarch64.opt: Declare target variable.
19056 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
19057
19058 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19059
19060 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
19061 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
19062 (aarch64_expand_epilogue): Likewise.
19063 (aarch64_output_mi_thunk): Likewise.
19064 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
19065 TAILCALL_ADDR_REGS to x16 and x17.
19066 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
19067
19068 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19069
19070 * config/aarch64/aarch64-option-extensions.def: Define
19071 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
19072 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
19073 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
19074 (AARCH64_FL_PREDRES): New.
19075 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
19076 AARCH64_FL_PREDRES by default.
19077 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
19078
19079 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19080
19081 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
19082 ARMv8.5-A.
19083 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
19084 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
19085 * doc/invoke.texi: Document ARMv8.5-A.
19086
19087 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19088
19089 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
19090 (xorsign<mode>3): Likewise.
19091
19092 2019-01-09 Jelinek <jakub@redhat.com>
19093
19094 PR middle-end/88758
19095 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
19096 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
19097
19098 PR rtl-optimization/88331
19099 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
19100 not currently_expanding_to_rtl.
19101
19102 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19103
19104 * doc/invoke.texi (-Os): Remove trailing spaces.
19105 (-finline-functions): Remove reference to -O2.
19106
19107 2019-01-08 Jakub Jelinek <jakub@redhat.com>
19108
19109 PR rtl-optimization/79593
19110 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
19111
19112 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
19113 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
19114
19115 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
19116
19117 PR bootstrap/88721
19118 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
19119 to -1 on entry.
19120
19121 PR debug/88723
19122 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
19123 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
19124
19125 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
19126
19127 PR target/88717
19128 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
19129 ix86_avx_u128_mode_entry.
19130
19131 2019-01-08 Martin Liska <mliska@suse.cz>
19132
19133 PR tree-optimization/88753
19134 * tree-switch-conversion.c (switch_conversion::build_one_array):
19135 Come up with local variable constructor. Convert first to
19136 type of constructor values.
19137
19138 2019-01-08 Richard Biener <rguenther@suse.de>
19139
19140 PR tree-optimization/86554
19141 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
19142 rpo_avail): Move earlier.
19143 (visit_nary_op): When value-numbering to expressions
19144 with different overflow behavior make sure there's an
19145 available expression on the path.
19146
19147 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
19148
19149 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
19150 aarch64_parse_branch_protection,
19151 struct aarch64_branch_protect_type,
19152 aarch64_handle_no_branch_protection,
19153 aarch64_handle_standard_branch_protection,
19154 aarch64_validate_mbranch_protection,
19155 aarch64_handle_pac_ret_protection,
19156 aarch64_handle_attr_branch_protection,
19157 accepted_branch_protection_string,
19158 aarch64_pac_ret_subtypes,
19159 aarch64_branch_protect_types,
19160 aarch64_handle_pac_ret_leaf): Define.
19161 (aarch64_override_options_after_change_1, aarch64_override_options):
19162 Add check for accepted_branch_protection_string.
19163 (aarch64_option_save): Save accepted_branch_protection_string.
19164 (aarch64_option_restore): Save accepted_branch_protection_string.
19165 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
19166 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
19167 msign-return-address.
19168 * doc/invoke.texi: Add mbranch-protection.
19169
19170 2019-01-08 Alan Modra <amodra@gmail.com>
19171
19172 PR target/88614
19173 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
19174 Delete "unknownp" parameter. Adjust callers. Handle
19175 CONST_INT, PLUS, MINUS, and MULT.
19176 (attr_value_aligned): Renamed from or_attr_value.
19177 (min_attr_value): Return INT_MIN for unhandled rtl case..
19178 (min_fn): ..and translate to INT_MAX here.
19179 (write_length_unit_log): Modify to cope without "unknown".
19180 (write_attr_value): Handle IF_THEN_ELSE.
19181
19182 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19183
19184 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
19185 optimization for masked stores.
19186
19187 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19188
19189 PR middle-end/88567
19190 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
19191 output vector directly to duplicate_and_interleave instead of
19192 going through a temporary. Postpone insertion of ctor_seq to
19193 the end of the loop.
19194
19195 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
19196
19197 PR target/86891
19198 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
19199 unsigned_p. Handle signed and unsigned overflow correction as
19200 required.
19201 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
19202 prototype.
19203 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
19204 for operand 2.
19205 (add<mode>3_compareV_imm): Make this callable for expanding.
19206 (subv<GPI:mode>4): Use register_operand for operand 1. Use
19207 aarch64_plus_operand for operand 2.
19208 (subv<GPI:mode>_insn): New insn pattern.
19209 (subv<GPI:mode>_imm): Likewise.
19210 (negv<GPI:mode>3): New expand pattern.
19211 (negv<GPI:mode>_insn): New insn pattern.
19212 (negv<GPI:mode>_cmp_only): Likewise.
19213 (cmpv<GPI:mode>_insn): Likewise.
19214 (subvti4): Use register_operand for operand 1. Update call to
19215 aarch64_expand_subvti.
19216 (usubvti4): Likewise.
19217 (negvti3): New expand pattern.
19218 (negdi_carryout): New insn pattern.
19219 (negvdi_carryinV): New insn pattern.
19220 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
19221 version the named version.
19222 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
19223 operands.
19224 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
19225 patterns.
19226 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
19227 patterns.
19228 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
19229 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
19230 (sub<mode>3_carryinCV): Delete.
19231 (sub<GPI:mode>3_carryinV): New expand pattern.
19232 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
19233
19234 2019-01-07 Richard Biener <rguenther@suse.de>
19235
19236 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
19237 of tree_operand_hash.
19238
19239 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19240
19241 PR tree-optimization/88598
19242 * tree.h (single_nonzero_element): Declare.
19243 * tree.c (single_nonzero_element): New function.
19244 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
19245 if I is the only nonzero element of CST.
19246
19247 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19248
19249 PR tree-optimization/88598
19250 * tree.h (initializer_each_zero_or_onep): Declare.
19251 * tree.c (initializer_each_zero_or_onep): New function.
19252 (signed_or_unsigned_type_for): Handle float types too.
19253 (unsigned_type_for, signed_type_for): Update comments accordingly.
19254 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
19255 x & { 0 or -1, 0 or -1, ... }.
19256
19257 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
19258
19259 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
19260 with x86_64-pc-linux-gnu.
19261
19262 2019-01-07 Tom de Vries <tdevries@suse.de>
19263
19264 PR target/85486
19265 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
19266 function.
19267 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
19268 routines.
19269
19270 2019-01-07 Jakub Jelinek <jakub@redhat.com>
19271
19272 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
19273 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
19274 TARGET_AVX512F as condition.
19275
19276 PR debug/88723
19277 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
19278 const_not_ok_for_debug_p target hook.
19279 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
19280 on UNSPEC and subexpressions thereof if all subexpressions of the
19281 UNSPEC are CONSTANT_P.
19282
19283 PR tree-optimization/88676
19284 * tree-ssa-phiopt.c (two_value_replacement): New function.
19285 (tree_ssa_phiopt_worker): Call it.
19286
19287 PR sanitizer/88619
19288 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
19289 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
19290
19291 PR c++/85052
19292 * tree-vect-generic.c: Include insn-config.h and recog.h.
19293 (expand_vector_piecewise): Add defaulted ret_type argument,
19294 if non-NULL, use that in preference to type for the result type.
19295 (expand_vector_parallel): Formatting fix.
19296 (do_vec_conversion, do_vec_narrowing_conversion,
19297 expand_vector_conversion): New functions.
19298 (expand_vector_operations_1): Call expand_vector_conversion
19299 for VEC_CONVERT ifn calls.
19300 * internal-fn.def (VEC_CONVERT): New internal function.
19301 * internal-fn.c (expand_VEC_CONVERT): New function.
19302 * fold-const-call.c (fold_const_vec_convert): New function.
19303 (fold_const_call): Use it for CFN_VEC_CONVERT.
19304 * doc/extend.texi (__builtin_convertvector): Document.
19305
19306 2019-01-07 Tom de Vries <tdevries@suse.de>
19307
19308 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
19309 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
19310 vector_red_partition, vector_red_sym): New global variables.
19311 (nvptx_option_override): Initialize vector_red_sym.
19312 (nvptx_declare_function_name): Restore red_partition register.
19313 (nvptx_file_end): Emit code to declare the vector reduction variables.
19314 (nvptx_output_red_partition): New function.
19315 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
19316 large vector reductions.
19317 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
19318 (nvptx_init_builtins): Add VECTOR_ADDR.
19319 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
19320 Handle nvptx_expand_shared_addr.
19321 (nvptx_get_shared_red_addr): Add vector argument and handle large
19322 vectors.
19323 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
19324 large vectors.
19325 (nvptx_goacc_reduction_init): Likewise.
19326 (nvptx_goacc_reduction_fini): Likewise.
19327 (nvptx_goacc_reduction_teardown): Likewise.
19328 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
19329 init,fini,teardown}.
19330 (nvptx_init_axis_predicate): Initialize vector_red_partition.
19331 (nvptx_set_current_function): Init vector_red_partition.
19332 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
19333 (nvptx_red_partition): New insn.
19334 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
19335
19336 2019-01-07 Tom de Vries <tdevries@suse.de>
19337
19338 PR target/85381
19339 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
19340 empty loops.
19341
19342 2019-01-07 Tom de Vries <tdevries@suse.de>
19343
19344 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
19345 (nvptx_option_override): Init oacc_bcast_partition.
19346 (nvptx_init_oacc_workers): New function.
19347 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
19348 (nvptx_needs_shared_bcast): New function.
19349 (nvptx_find_par): Generalize to enable vectors to use shared-memory
19350 to propagate state.
19351 (nvptx_shared_propagate): Initialize vector bcast partition and
19352 synchronization state.
19353 (nvptx_single): Generalize to enable vectors to use shared-memory
19354 to propagate state.
19355 (nvptx_process_pars): Likewise.
19356 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
19357 * config/nvptx/nvptx.h (struct machine_function): Add
19358 bcast_partition and sync_bar members.
19359
19360 2019-01-07 Tom de Vries <tdevries@suse.de>
19361
19362 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
19363 (nvptx_apply_dim_limits): New function.
19364 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
19365 PTX_WARP_SIZE.
19366
19367 2019-01-07 Tom de Vries <tdevries@suse.de>
19368
19369 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
19370 as late as possible.
19371
19372 2019-01-07 Tom de Vries <tdevries@suse.de>
19373
19374 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
19375 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
19376 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
19377 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
19378 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
19379
19380 2019-01-07 Tom de Vries <tdevries@suse.de>
19381
19382 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
19383
19384 2019-01-07 Tom de Vries <tdevries@suse.de>
19385
19386 * omp-offload.c (oacc_get_min_dim): New function.
19387 * omp-offload.h (oacc_get_min_dim): Declare.
19388
19389 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
19390
19391 PR target/88521
19392 * config/i386/i386.c (function_value_ms_64): Return small sturct in
19393 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
19394
19395 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19396
19397 PR tree-opt/86020
19398 Revert:
19399 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
19400
19401 * ipa-inline.c (edge_badness): Use inlined_time instead of
19402 inline_summaries->get.
19403
19404 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19405
19406 * opts.c (enable_fdo_optimizations): Enable
19407 version-loops-for-strides, loop-interchange, unrol-and-jam
19408 and tree-loop-distribution.
19409 * invoke.texi: Document newly enabled options.
19410
19411 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19412
19413 * doc/invoke.texi (max-inline-insns-small): New parameters.
19414 * ipa-inline.c (want_early_inline_function_p): simplify.
19415 (want_inline_small_function_p): Fix pasto from previous patch;
19416 use max-inline-insns-small bound.
19417 * params.def (max-inline-insns-small): New param.
19418 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
19419 variables correctly.
19420
19421 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19422
19423 * doc/invoke.texi: Document max-inline-insns-size,
19424 uninlined-function-insns, uninlined-function-time,
19425 uninlined-thunk-insns and uninlined-thunk-time.
19426 * params.def: Add max-inline-insns-size,
19427 uninlined-function-insns, uninlined-function-time,
19428 uninlined-thunk-insns and uninlined-thunk-time.
19429 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
19430 new parameters.
19431 * ipa-inline.c (can_inline_edge_by_limits_p,
19432 want_inline_small_function_p): Use new parameters.
19433
19434 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19435
19436 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
19437
19438 2019-01-05 Jakub Jelinek <jakub@redhat.com>
19439
19440 PR middle-end/82564
19441 PR target/88620
19442 * expr.c (expand_assignment): For calls returning VLA structures
19443 if to_rtx is not a MEM, force it into a stack temporary.
19444
19445 PR debug/88635
19446 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
19447 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
19448 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
19449 subexpressions of both operands.
19450 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
19451 subrtxes are CONSTANT_P.
19452 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
19453 2018-11-09 changes.
19454
19455 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
19456
19457 * params.def (hot-bb-count-ws-permille): Set to 990.
19458
19459 2019-01-04 Martin Sebor <msebor@redhat.com>
19460
19461 PR c/88546
19462 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
19463 leaf.
19464
19465 2019-01-04 Martin Sebor <msebor@redhat.com>
19466
19467 PR c/88363
19468 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
19469
19470 2019-01-04 Jakub Jelinek <jakub@redhat.com>
19471
19472 * gdbinit.in: Turn off pagination for the skip commands, restore
19473 it to previous state afterwards.
19474
19475 2019-01-04 Jakub Jelinek <jakub@redhat.com>
19476
19477 PR target/88594
19478 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
19479 of GET_MODE (opN) as modes of the libcall arguments.
19480
19481 2019-01-04 Jan Beulich <jbeulich@suse.com>
19482
19483 * config/i386/sse.md
19484 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
19485 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
19486 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
19487 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
19488 avx512f_vmcmp<mode>3<round_saeonly_name>,
19489 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
19490 avx512f_maskcmp<mode>3,
19491 <avx512>_cvt<ssemodesuffix>2mask<mode>,
19492 <avx512>_cvt<ssemodesuffix>2mask<mode>,
19493 *<avx512>_cvtmask2<ssemodesuffix><mode>,
19494 *<avx512>_cvtmask2<ssemodesuffix><mode>,
19495 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
19496 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
19497 <avx512>_gt<mode>3<mask_scalar_merge_name>,
19498 <avx512>_gt<mode>3<mask_scalar_merge_name>,
19499 <avx512>_testm<mode>3<mask_scalar_merge_name>,
19500 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
19501 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
19502 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
19503 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
19504 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
19505 avx512cd_maskb_vec_dup<mode>,
19506 avx512cd_maskw_vec_dup<mode>,
19507 avx512dq_fpclass<mode><mask_scalar_merge_name>,
19508 avx512dq_vmfpclass<mode>,
19509 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
19510 instead of =Yk.
19511
19512 2019-01-03 Martin Sebor <msebor@redhat.com>
19513
19514 PR tree-optimization/88659
19515 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
19516
19517 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
19518
19519 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
19520 unaligned vsx and avoid lxvd2x/stxvd2x.
19521 (gen_lvx_v4si_move): New function.
19522
19523 2019-01-03 Tom de Vries <tdevries@suse.de>
19524
19525 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
19526 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
19527 function.
19528 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
19529
19530 2019-01-03 Tom de Vries <tdevries@suse.de>
19531
19532 * config/nvptx/nvptx.c (struct offload_attrs): New.
19533 (populate_offload_attrs): New function. Factor mask extraction out of
19534 nvptx_reorg. Add extraction of dimensions.
19535 (nvptx_reorg): Use populate_offload_attrs.
19536
19537 2019-01-03 Tom de Vries <tdevries@suse.de>
19538
19539 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
19540 cases for oacc_min_dims_p and routine_p. Add asserts for
19541 oacc_default_dims_p and offload_region_p.
19542
19543 2019-01-03 Tom de Vries <tdevries@suse.de>
19544
19545 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
19546 factored out of ...
19547 (nvptx_goacc_validate_dims): ... here.
19548
19549 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
19550
19551 PR tree-optimization/85574
19552 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
19553 structure.
19554 (struct ssa_equip_hash_traits): Declare.
19555 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
19556
19557 2019-01-03 Jakub Jelinek <jakub@redhat.com>
19558
19559 PR debug/88644
19560 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
19561 change it to qualified_type.
19562
19563 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
19564
19565 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
19566 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
19567
19568 2019-01-02 Martin Sebor <msebor@redhat.com>
19569 Jeff Law <law@redhat.com>
19570
19571 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
19572 (get_range_strlen_tree): Update appropriately.
19573 (get_range_strlen)
19574 * gimple-fold.h (get_range_strlen): Drop unused last argument.
19575
19576 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
19577 rather than set_range_info.
19578 * tree-ssa-strlen.c (set_strlen_range): Extracted from
19579 maybe_set_strlen_range. Handle potentially boundary crossing
19580 cases more conservatively.
19581 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
19582 Call set_strlen_range.
19583 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
19584
19585 PR middle-end/88663
19586 * gimple-fold.c (get_range_strlen): Update prototype to no longer
19587 need the flexp argument.
19588 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
19589 from calls to get_range_strlen. Update comments. Just update
19590 VAL for an unterminated const char array and let the reset of the
19591 code handle it normally. No longer try to set *flexp. Adjust
19592 return value.
19593 (get_range_strlen): Update for the new get_range_strlen API.
19594 (get_maxval_strlen): Similarly.
19595 (gimple_fold_builtin_strlen): Handle update meaning of return value
19596 from get_range_strlen.
19597 * gimple-ssa-sprintf.c (get_string_length): Update for the new
19598 get_range_strlen API.
19599
19600 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
19601
19602 PR lto/88130
19603 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
19604 false at WPA time when body was removed.
19605
19606 2019-01-02 Martin Liska <mliska@suse.cz>
19607
19608 PR tree-optimization/88650
19609 * predict.c (set_even_probabilities): Calculate probability
19610 remainer only when really used.
19611
19612 2019-01-02 Richard Biener <rguenther@suse.de>
19613
19614 PR middle-end/88651
19615 * tree-data-ref.c (analyze_subscript_affine_affine): Use
19616 widest_ints when mangling max_stmt_execution results.
19617
19618 2019-01-02 Richard Biener <rguenther@suse.de>
19619
19620 PR tree-optimization/88621
19621 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
19622 bitfields when canoncalizing.
19623
19624 2019-01-02 Richard Biener <rguenther@suse.de>
19625
19626 PR target/87545
19627 * config/i386/x86-tune-costs.h (intel_cost): Adjust
19628 cost of cheap SSE instruction.
19629
19630 2019-01-02 Richard Biener <rguenther@suse.de>
19631
19632 PR ipa/85574
19633 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
19634 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
19635 function.
19636 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
19637 set after UIDs before splitting them.
19638
19639 2019-01-01 Martin Sebor <msebor@redhat.com>
19640 Jeff Law <law@redhat.com>
19641
19642 * gimple-fold.c (get_range_strlen_tree): Record if the computed
19643 length is optimistic. If it is, then arrange to compute the
19644 conservative length as well.
19645
19646 * gimple-fold.h (get_range_strlen): Update prototype.
19647 * builtins.c (check_access): Update call to get_range_strlen to use
19648 c_strlen_data pointer. Change various variable accesses to instead
19649 pull data from the c_strlen_data structure.
19650 (check_strncat_sizes, expand_builtin_strncat): Likewise.
19651 * calls.c (maybe_warn_nonstring_arg): Likewise.
19652 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
19653 minimum length if maximum lengh is unknown.
19654 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
19655 that used c_strlen, it's no longer needed. Restructure slightly.
19656 (format_string): Set unlikely range appropriately.
19657 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
19658 formatting issues.
19659 (get_range_strlen): Accept c_strlen_data pointer for external
19660 call sites as well. Pass through to call to internal get_range_strlen.
19661 Adjust minlen, maxlen and maxbound as needed.
19662 (get_maxval_strlen): Update comments.
19663 (gimple_fold_builtin_strlen): Update call to get_range_strlen
19664 to use c_strlen_data pointer. Change variable accesses to instead
19665 use c_strlen_data data members.
19666
19667 * gimple-fold.c (get_range_strlen): Update prototype.
19668 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
19669 local variables. Use pdata to return information to caller.
19670 Update calls to get_range_strlen. Update pdata->maxbound.
19671 (get_range_strlen -- static version): Similarly.
19672 (get_range_strlen -- extern version): Update for internal
19673 get_range_strlen API change. Convert to external data format.
19674 (get_maxval_strlen): Similarly.
19675
19676 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
19677
19678 * coverage.c (get_coverage_counts): Use current_function_decl.
19679 * profile.c (read_thunk_profile): New function.
19680 (branch_prob): Add THUNK parameter.
19681 * tree-profile.c (tree_profiling): Handle thunks.
19682 * value-prof.c (init_node_map): Handle thunks.
19683 * value-prof.h (branch_prob): Upate prototype.
19684 (read_thunk_profile): Declare.
19685
19686 2019-01-01 Jakub Jelinek <jakub@redhat.com>
19687
19688 Update copyright years.
19689
19690 * gcc.c (process_command): Update copyright notice dates.
19691 * gcov-dump.c (print_version): Ditto.
19692 * gcov.c (print_version): Ditto.
19693 * gcov-tool.c (print_version): Ditto.
19694 * gengtype.c (create_file): Ditto.
19695 * doc/cpp.texi: Bump @copying's copyright year.
19696 * doc/cppinternals.texi: Ditto.
19697 * doc/gcc.texi: Ditto.
19698 * doc/gccint.texi: Ditto.
19699 * doc/gcov.texi: Ditto.
19700 * doc/install.texi: Ditto.
19701 * doc/invoke.texi: Ditto.
19702 \f
19703 Copyright (C) 2019 Free Software Foundation, Inc.
19704
19705 Copying and distribution of this file, with or without modification,
19706 are permitted in any medium without royalty provided the copyright
19707 notice and this notice are preserved.