Add DR_BASE_ALIGNMENT and DR_BASE_MISALIGNMENT
[gcc.git] / gcc / ChangeLog
1 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
2
3 * tree-data-ref.h (innermost_loop_behavior): Add base_alignment
4 and base_misalignment fields.
5 (DR_BASE_ALIGNMENT, DR_BASE_MISALIGNMENT): New macros.
6 * tree-data-ref.c: Include builtins.h.
7 (dr_analyze_innermost): Set up the new innmost_loop_behavior fields.
8 * tree-vectorizer.h (STMT_VINFO_DR_BASE_ALIGNMENT): New macro.
9 (STMT_VINFO_DR_BASE_MISALIGNMENT): Likewise.
10 * tree-vect-data-refs.c: Include tree-cfg.h.
11 (vect_compute_data_ref_alignment): Use the new innermost_loop_behavior
12 fields instead of calculating an alignment here.
13 (vect_analyze_data_refs): Use dr_analyze_innermost. Dump the new
14 innermost_loop_behavior fields.
15
16 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
17
18 * tree-data-ref.h (innermost_loop_behavior): Add a step_alignment
19 field.
20 (DR_STEP_ALIGNMENT): New macro.
21 * tree-vectorizer.h (STMT_VINFO_DR_STEP_ALIGNMENT): Likewise.
22 * tree-data-ref.c (dr_analyze_innermost): Initalize step_alignment.
23 (create_data_ref): Print it.
24 * tree-vect-stmts.c (vectorizable_load): Use the step alignment
25 to tell whether the step preserves vector (mis)alignment.
26 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
27 Move the check for an integer step and generalise to all INTEGER_CST.
28 (vect_analyze_data_refs): Set DR_STEP_ALIGNMENT when setting DR_STEP.
29 Print the outer step alignment.
30
31 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
32
33 * tree-data-ref.h (innermost_loop_behavior): Replace aligned_to
34 with offset_alignment.
35 (DR_ALIGNED_TO): Delete.
36 (DR_OFFSET_ALIGNMENT): New macro.
37 * tree-vectorizer.h (STMT_VINFO_DR_ALIGNED_TO): Delete.
38 (STMT_VINFO_DR_OFFSET_ALIGNMENT): New macro.
39 * tree-data-ref.c (dr_analyze_innermost): Update after above changes.
40 (create_data_ref): Likewise.
41 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
42 (vect_analyze_data_refs): Likewise.
43 * tree-if-conv.c (if_convertible_loop_p_1): Use memset before
44 creating dummy innermost behavior.
45
46 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
47
48 * tree-data-ref.h (dr_analyze_innermost): Replace the dr argument
49 with a "innermost_loop_behavior *" and refeence tree.
50 * tree-data-ref.c (dr_analyze_innermost): Likewise.
51 (create_data_ref): Update call accordingly.
52 * tree-predcom.c (find_looparound_phi): Likewise.
53
54 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
55
56 * tree-vectorizer.h (_stmt_vec_info): Replace individual dr_*
57 fields with dr_wrt_vec_loop.
58 (STMT_VINFO_DR_BASE_ADDRESS, STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET)
59 (STMT_VINFO_DR_STEP, STMT_VINFO_DR_ALIGNED_TO): Update accordingly.
60 (STMT_VINFO_DR_WRT_VEC_LOOP): New macro.
61 (vect_dr_behavior): New function.
62 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
63 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
64 vect_dr_behavior. Use a step_preserves_misalignment_p boolean to
65 track whether the step preserves the misalignment.
66 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
67 Use vect_dr_behavior.
68 (vect_setup_realignment): Update call accordingly.
69 (vect_create_data_ref_ptr): Likewise. Use vect_dr_behavior.
70 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Update
71 call to vect_create_addr_base_for_vector_ref.
72 (vect_create_cond_for_align_checks): Likewise.
73 * tree-vect-patterns.c (vect_recog_bool_pattern): Copy
74 STMT_VINFO_DR_WRT_VEC_LOOP as a block.
75 (vect_recog_mask_conversion_pattern): Likewise.
76 * tree-vect-stmts.c (compare_step_with_zero): Use vect_dr_behavior.
77 (new_stmt_vec_info): Remove redundant zeroing.
78
79 2017-07-02 Richard Earnshaw <rearnsha@arm.com>
80
81 * common/config/arm/arm-common.c (arm_be8_option): New function.
82 * config/arm/arm-isa.h (isa_feature): Add new feature bit isa_bit_be8.
83 (ISA_ARMv6): Add isa_bit_be8.
84 * config/arm/arm.h (arm_be8_option): Add prototype.
85 (BE8_SPEC_FUNCTION): New define.
86 (EXTRA_SPEC_FUNCTIONS): Add BE8_SPEC_FUNCTION.
87 * config/arm/arm.opt (mbig-endian): Mark as Negative of mlittle-endian.
88 (mlittle-endian): Similarly.
89 (mbe8, mbe32): New options.
90 * config/arm/bpabi.h (BE8_LINK_SPEC): Call arm_be8_option.
91 * doc/invoke.texi (ARM Options): Document -mbe8 and -mbe32.
92
93 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
94
95 * tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
96
97 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
98
99 * tree-cfgcleanup.c (want_merge_blocks_p): New function.
100 (cleanup_tree_cfg_bb): Use it.
101 * profile-count.h (profile_count::of_for_merging, profile_count::merge):
102 New functions.
103 * tree-cfg.c (gimple_merge_blocks): Use profile_count::merge.
104
105 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
106
107 PR bootstrap/81285
108 * loop-doloop.c (add_test): Update profile.
109
110 2017-07-03 Martin Liska <mliska@suse.cz>
111
112 PR sanitize/81040
113 * sanopt.c (rewrite_usage_of_param): New function.
114 (sanitize_rewrite_addressable_params): Likewise.
115 (pass_sanopt::execute): Call rewrite_usage_of_param.
116
117 2017-07-03 Richard Biener <rguenther@suse.de>
118
119 * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
120 back to using VIEW_CONVERT_EXPR.
121
122 2017-07-03 Martin Liska <mliska@suse.cz>
123
124 PR other/78366
125 * doc/extend.texi: Document when a resolver function is
126 generated for target_clones.
127
128 2017-07-03 Martin Liska <mliska@suse.cz>
129
130 * asan.c (asan_emit_stack_protection): Unpoison just red zones
131 and shadow memory of auto variables which are subject of
132 use-after-scope sanitization.
133 (asan_expand_mark_ifn): Add do set only when is_poison.
134
135 2016-07-03 Richard Biener <rguenther@suse.de>
136
137 * tree-vect-loop.c (vect_analyze_loop_operations): Also analyze
138 reduction PHIs.
139 (vect_force_simple_reduction): Record reduction def -> phi mapping.
140 (vectorizable_reduction): Perform reduction PHI creation when
141 visiting a reduction PHI and adjust and simplify code generation
142 phase of the reduction op. Cache dts, use fold_binary, not fold_build2.
143 (vect_transform_loop): Visit reduction PHIs.
144 * tree-vect-slp.c (vect_get_and_check_slp_defs): Record reduction
145 defs into the SLP tree.
146 (vect_build_slp_tree): Reduction defs terminate the recursion.
147 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Allow lookup
148 of reduction defs.
149 (vect_get_vec_defs_for_stmt_copy): Export.
150 (vect_get_vec_defs): Likewise.
151 * tree-vectorizer.h (struct _stmt_vec_info): Amend reduc_def
152 purpose.
153 (vect_get_vec_defs_for_stmt_copy): Declare.
154 (vect_get_vec_defs): Likewise.
155
156 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
157
158 * tree-data-ref.c (dr_analyze_innermost): Replace the "nest"
159 parameter with a "loop" parameter and use it instead of the
160 loop containing DR_STMT. Don't check simple_iv when doing
161 BB analysis. Describe the two analysis modes in the comment.
162
163 2017-07-03 Tom de Vries <tom@codesourcery.com>
164
165 PR tree-optimization/69468
166 * tree-ssa-tail-merge.c (ignore_edge_flags): New constant.
167 (find_same_succ_bb): Handle ignore_edge_flags.
168
169 2017-07-03 Tom de Vries <tom@codesourcery.com>
170
171 PR tree-optimization/81192
172 * tree-ssa-tail-merge.c (same_succ_hash): Use bb->loop_father->num in
173 hash.
174 (same_succ::equal): Don't find bbs to be equal if bb->loop_father
175 differs.
176 (find_same_succ_bb): Remove obsolete test on bb->loop_father->latch.
177
178 2017-07-03 Tom de Vries <tom@codesourcery.com>
179
180 PR tree-optimization/81192
181 * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
182 BB_SAME_SUCC (bb) == NULL.
183
184 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
185
186 * cfgrtl.c (rtl_verify_edges): Enable checking of profile_probability
187 consistency.
188
189 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
190
191 * dumpfile.c: Include profile-count.h
192 * tree-cfg.c (gimple_duplicate_sese_tail): Drop UNUSED attributes; update
193 profile.
194 (insert_cond_bb): Update profile.
195 * tree-cfg.h (insert_cond_bb): Update prototype.
196 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Update.
197 * tree-dump.c: Do not include tree-cfg.
198
199 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
200
201 * bb-reorder.c (fix_up_crossing_landing_pad): Update profile.
202
203 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
204
205 * expect.c (dw2_build_landing_pads): Update profile of the landing pad
206 bb.
207
208 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
209
210 * tree-complex.c (expand_complex_div_wide): update profile.
211
212 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
213 Alan Hayward <alan.hayward@arm.com>
214 David Sherwood <david.sherwood@arm.com>
215
216 * Makefile.in (MACHMODE_H): Remove insn-modes.h
217 (CORETYPES_H): New define.
218 (MOSTLYCLEANFILES): Add insn-modes-inline.h.
219 (insn-modes-inline.h, s-modes-inline-h): New rules.
220 (generated_files): Add insn-modes-inline.h.
221 (RTL_BASE_H, TREE_CORE_H): Use CORETYPES_H instead of coretypes.h.
222 (build/gensupport.o, build/ggc-none.o, build/print-rtl.o): Likewise.
223 (build/read-md.o, build/read-rtl.o, build/rtl.o): Likewise.
224 (build/vec.o, build/hash-table.o, build/inchash.o): Likewise.
225 (build/gencondmd.o, build/genattr.o, build/genattr-common.o): Likewise.
226 (build/genattrtab.o, build/genautomata.o, build/gencheck.o): Likewise.
227 (build/gencodes.o, build/genconditions.o): Likewise.
228 (build/genconfig.o, build/genconstants.o, build/genemit.o): Likewise.
229 (build/genenums.o, build/genextract.o, build/genflags.o): Likewise.
230 (build/gentarget-def.o, build/genmddeps.o, build/genopinit.o)
231 (build/genoutput.o, build/genpeep.o, build/genpreds.o): Likewise.
232 (build/genrecog.o, build/genmddump.o, build/genmatch.o): Likewise.
233 (build/gencfn-macros.o, build/gcov-iov.o): Likewise.
234 * coretypes.h: Include everything up to real.h for generators.
235 Include insn-modes.h first. Include wide-int-print.h after
236 wide-int.h. Include insn-modes-inline.h and then machmode.h.
237 * machmode.h: Don't include insn-modes.h here.
238 * function-tests.c: Remove includes of signop.h, machmode.h,
239 double-int.h and wide-int.h.
240 * rtl.h: Likewise.
241 * gcc-rich-location.c: Remove includes of machmode.h, double-int.h
242 and wide-int.h.
243 * optc-save-gen.awk: Likewise.
244 * gencheck.c (BITS_PER_UNIT): Delete dummy definition.
245 * godump.c: Remove include of wide-int-print.h.
246 * pretty-print.h: Likewise.
247 * wide-int-print.cc: Likewise.
248 * wide-int.cc: Likewise.
249 * hash-map-tests.c: Remove include of signop.h.
250 * hash-set-tests.c: Likewise.
251 * rtl-tests.c: Likewise.
252 * mkconfig.sh: Remove include of machmode.h.
253 * genmodes.c (emit_insn_modes_h): Split emission of inline functions
254 into...
255 (emit_insn_modes_inline_h): ...this new function. Emit the code
256 into an insn-modes-inline.h header file, adding appropriate
257 include guards and end comments.
258 (emit_insn_modes_c_header): Remove include of machmode.h.
259 (emit_min_insn_modes_c_header): Include coretypes.h rather than
260 machmode.h.
261 (main): Handle -i flag and call emit_insn_modes_inline_h when
262 it is passed.
263
264 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
265
266 * tree-ssa-strlen.c (strinfo): Rename the length field to
267 nonzero_chars. Add a full_string_p field.
268 (compare_nonzero_chars, zero_length_string_p): New functions.
269 (get_addr_stridx): Add an offset_out parameter.
270 Use compare_nonzero_chars.
271 (get_stridx): Update accordingly. Use compare_nonzero_chars.
272 (new_strinfo): Update after above changes to strinfo.
273 (set_endptr_and_length): Set full_string_p.
274 (get_string_length): Update after above changes to strinfo.
275 (unshare_strinfo): Update call to new_strinfo.
276 (maybe_invalidate): Likewise.
277 (get_stridx_plus_constant): Change off to unsigned HOST_WIDE_INT.
278 Use compare_nonzero_chars and zero_string_p. Treat nonzero_chars
279 as a uhwi instead of an shwi. Update after above changes to
280 strinfo and new_strinfo.
281 (zero_length_string): Assert that chainsi contains full strings.
282 Use zero_length_string_p. Update call to new_strinfo.
283 (adjust_related_strinfos): Update after above changes to strinfo.
284 Copy full_string_p from origsi.
285 (adjust_last_stmt): Use zero_length_string_p.
286 (handle_builtin_strlen): Update after above changes to strinfo and
287 new_strinfo. Install the lhs as the string length if the previous
288 entry didn't describe a full string.
289 (handle_builtin_strchr): Update after above changes to strinfo
290 and new_strinfo.
291 (handle_builtin_strcpy): Likewise.
292 (handle_builtin_strcat): Likewise.
293 (handle_builtin_malloc): Likewise.
294 (handle_pointer_plus): Likewise.
295 (handle_builtin_memcpy): Likewise. Track nonzero characters
296 that aren't necessarily followed by a nul terminator.
297 (handle_char_store): Likewise.
298
299 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
300
301 PR tree-optimization/80769
302 * tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
303 for malloc and calloc. Document the new invariant that all related
304 strinfos have delayed lengths or none do.
305 (verify_related_strinfos): Move earlier in file.
306 (set_endptr_and_length): New function, split out from...
307 (get_string_length): ...here. Also set the lengths of related
308 strinfos.
309 (zero_length_string): Assert that chainsi has known (rather than
310 delayed) lengths.
311 (adjust_related_strinfos): Likewise.
312
313 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
314
315 PR tree-optimization/81136
316 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Only
317 assert that two references with the same misalignment have the same
318 compile-time misalignment if those compile-time misalignments
319 are known.
320
321 2017-07-01 Andi Kleen <ak@linux.intel.com>
322
323 * print-tree.c (print_node): Print all attributes.
324
325 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
326
327 * cfg.c (scale_bbs_frequencies): New function.
328 * cfg.h (scale_bbs_frequencies): Declare it.
329 * cfgloopanal.c (single_likely_exit): Cleanup.
330 * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability
331 as parameter.
332 (scale_loop_profile): Likewise.
333 (loop_version): Likewise.
334 (create_empty_loop_on_edge): Update.
335 * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile,
336 scale_loop_frequencies, scale_loop_profile, loopify,
337 loop_version): Update prototypes.
338 * modulo-sched.c (sms_schedule): Update.
339 * predict.c (unlikely_executed_edge_p): Also check probability.
340 (probably_never_executed_edge_p): Fix typo.
341 * tree-if-conv.c (version_loop_for_if_conversion): Update.
342 * tree-parloops.c (gen_parallel_loop): Update.
343 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update.
344 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
345 * tree-ssa-loop-split.c (split_loop): Update.
346 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
347 * tree-vect-loop-manip.c (vect_do_peeling): Update.
348 (vect_loop_versioning): Update.
349 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
350
351 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
352
353 * trans-mem.c (split_bb_make_tm_edge): Update profile.
354
355 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
356
357 * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
358 to keep profile consistent.
359
360 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
361
362 * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
363 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
364 * profile-count.h (max_safe_multiplier): Make unsigned.
365 (profile_count::guessed_zero): New.
366
367 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
368
369 * bb-reorder.c (fix_up_crossing_landing_pad,
370 fix_crossing_conditional_branches): Use make_single_succ_edge
371 to keep profile consistent.
372
373 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
374
375 * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
376 to update profile.
377
378 2017-07-01 Jakub Jelinek <jakub@redhat.com>
379
380 PR sanitizer/81262
381 * bb-reorder.c (fix_up_fall_thru_edges): Move variable declarations to
382 the right scopes, make sure cond_jump isn't preserved between multiple
383 iterations. Search for fallthru edge whenever there are 3+ edges and
384 use find_fallthru_edge for it.
385
386 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
387
388 Patch by Alexander Monakov <amonakov@ispras.ru>
389 * sel-sched-ir.c (compute_succs_info): Handle uninitialized
390 probabilities consistently.
391
392 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
393
394 * pa.c (pa_expand_compare_and_swap_loop): Update call of
395 emit_cmp_and_jump_insns.
396
397 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
398
399 PR ipa/81261
400 * tree-inline.c (expand_call_inline): Combine profile statuses.
401
402 2017-06-30 Andrew Pinski <apinski@cavium.com>
403
404 * tree-if-conv.c (predicate_scalar_phi): Update new_stmt if
405 fold_stmt returned true.
406
407 2017-06-30 Nathan Sidwell <nathan@acm.org>
408
409 * ggc.h (empty_string): Delete.
410 * cfgexpand.c (expand_asm_stmt): Use plain "".
411 * optabs.c (expand_asm_memory_barrier): Likewise.
412 * stringpool.c (empty_string): Delete.
413 (digit_vector, digit_string): Delete.
414 (ggc_alloc_string): Use plain "", don't optimize single digit
415 strings. Use ggc_alloc_atomic.
416
417 2017-06-30 Richard Earnshaw <rearnsha@arm.com>
418
419 * rtlanal.c (insn_rtx_cost): If a parallel contains exactly one
420 comparison set and one other set, use the cost of the non-comparison
421 set.
422
423 2017-06-30 Nathan Sidwell <nathan@acm.org>
424
425 * ggc.h: Replace all 'static inline' with plain 'inline'. Fix
426 some formatting.
427
428 2017-06-30 Peter Bergner <bergner@vnet.ibm.com>
429
430 * tree-cfg.c (group_case_labels_stmt): Merge scanning and compressing
431 loops. Remove now unneeded calls to gimple_switch_set_label() that
432 just set removed labels to NULL_TREE.
433
434 2017-06-30 Aldy Hernandez <aldyh@redhat.com>
435
436 * tree-ssanames.c (set_range_info_raw): Abstract from ...
437 (set_range_info): ...here. Only call set_range_info_raw if domain
438 is useful.
439 (set_nonzero_bits): Call set_range_info_raw.
440 * tree-ssanames.h (set_range_info_raw): New.
441
442 2017-06-30 Jakub Jelinek <jakub@redhat.com>
443
444 PR target/81225
445 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For V8FI,
446 V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
447 of nonimmediate_operand and <store_mask_constraint> instead of m
448 for the input operand. For V8FI iterator, always split if input
449 is a MEM. For V16FI and V8SF_256 iterators, don't test if both
450 operands are MEM if <mask_applied>. For VI4F_256 iterator, use
451 <store_mask_predicate> instead of register_operand and
452 <store_mask_constraint> instead of v for the input operand. Make
453 sure both operands aren't MEMs for if not <mask_applied>.
454
455 2017-06-30 Sylvestre Ledru <sylvestre@debian.org>
456
457 * lto-wrapper.c (copy_file) Close both file descriptors before
458 exiting normally.
459
460 2017-06-30 Martin Liska <mliska@suse.cz>
461
462 PR ipa/81214
463 * multiple_target.c (create_dispatcher_calls): Make ifunc
464 also for function that don't have calls or are not referenced.
465
466 2017-06-30 Richard Biener <rguenther@suse.de>
467
468 * tree-vect-slp.c (vect_slp_analyze_node_operations): Only
469 analyze the first scalar stmt. Move vector type computation
470 for the BB case here from ...
471 * tree-vect-stmts.c (vect_analyze_stmt): ... here. Guard
472 live operation processing in the SLP case properly.
473
474 2017-06-30 Richard Biener <rguenther@suse.de>
475
476 * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
477
478 2017-06-30 Martin Liska <mliska@suse.cz>
479
480 PR sanitizer/81021
481 * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
482 before BUILT_IN_UNWIND_RESUME when ASAN is used.
483
484 2017-06-30 Yvan Roux <yvan.roux@linaro.org>
485
486 * doc/invoke.texi (AArch64): Add missing options and remove redundant
487 ones.
488
489 2017-06-30 Richard Biener <rguenther@suse.de>
490
491 PR tree-optimization/81249
492 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
493 condition reduction result to original scalar type.
494
495 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
496
497 * profile-count.h (enum profile_quality): Fix typos and whitespace
498 issues.
499
500 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
501
502 * config/s390/s390.c (s390_expand_setmem): Adjust to the new data
503 type for branch probabilities.
504
505 2017-06-29 Julian Brown <julian@codesourcery.com>
506 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
507
508 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
509 * config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
510 (thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
511 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
512
513 2017-06-29 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
514
515 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
516 check for CC usage into AARCH64_FUSE_CMP_BRANCH.
517 * config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
518 CC usage from generic code to here.
519 * sched-deps.c (sched_macro_fuse_insns): Move the condition for
520 CC usage into the target macros.
521
522 2017-06-29 Maya Rashish <coypu@sdf.org>
523
524 * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
525 objects.
526
527 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
528
529 * arm/arm-builtins.c: Include profile-count.h
530 * except.c (sjlj_emit_function_enter): Use
531 profile_probability::unlikely.
532
533 2017-06-29 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
534
535 * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
536 and tocrel_offset be pointer args rather than implicitly using
537 static versions.
538 (legitimate_constant_pool_address_p, rs6000_emit_move,
539 const_load_sequence_p, adjust_vperm): Add local tocrel_base and
540 tocrel_offset and use in toc_relative_expr_p call.
541 (print_operand, print_operand_address): Use static tocrel_base_oac
542 and tocrel_offset_oac.
543 (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
544 tocrel_offset_oac.
545
546 2017-06-29 Maya Rashish <coypu@sdf.org>
547
548 * config/vax/builtins.md (ffssi2_internal): Correct constraint.
549
550 2017-06-29 Eric Botcazou <ebotcazou@adacore.com>
551
552 * expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
553 objects, take into account only the alignment of 'op0' and 'mode1' if
554 'op0' is a MEM.
555
556 2017-06-29 Steve Ellcey <sellcey@cavium.com>
557
558 * ccmp.c (ccmp_tree_comparison_p): New function.
559 (ccmp_candidate_p): Update to use above function.
560 (get_compare_parts): New function.
561 (expand_ccmp_next): Update to use new functions.
562 (expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
563 new functions.
564 (expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
565 take mode as argument.
566 * ccmp.h (expand_ccmp_expr): Add mode as argument.
567 * expr.c (expand_expr_real_1): Pass mode as argument.
568
569 2017-06-29 Segher Boessenkool <segher@kernel.crashing.org>
570
571 * combine.c (combine_instructions): Print insns to dump_file, together
572 with their costs.
573
574 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
575
576 * asan.c (asan_emit_stack_protection): Update.
577 (create_cond_insert_point): Update.
578 * auto-profile.c (afdo_propagate_circuit): Update.
579 * basic-block.h (struct edge_def): Turn probability to
580 profile_probability.
581 (EDGE_FREQUENCY): Update.
582 * bb-reorder.c (find_traces_1_round): Update.
583 (better_edge_p): Update.
584 (sanitize_hot_paths): Update.
585 * cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
586 (make_single_succ_edge): Update.
587 (check_bb_profile): Update.
588 (dump_edge_info): Update.
589 (update_bb_profile_for_threading): Update.
590 * cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
591 probabilitycount to 0.
592 * cfgbuild.c (compute_outgoing_frequencies): Update.
593 * cfgcleanup.c (try_forward_edges): Update.
594 (outgoing_edges_match): Update.
595 (try_crossjump_to_edge): Update.
596 * cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
597 (expand_gimple_tailcall): Update.
598 (construct_init_block): Use make_single_succ_edge.
599 (construct_exit_block): Use make_single_succ_edge.
600 * cfghooks.c (verify_flow_info): Update.
601 (redirect_edge_succ_nodup): Update.
602 (split_edge): Update.
603 (account_profile_record): Update.
604 * cfgloopanal.c (single_likely_exit): Update.
605 * cfgloopmanip.c (scale_loop_profile): Update.
606 (set_zero_probability): Remove.
607 (duplicate_loop_to_header_edge): Update.
608 * cfgloopmanip.h (loop_version): Update prototype.
609 * cfgrtl.c (try_redirect_by_replacing_jump): Update.
610 (force_nonfallthru_and_redirect): Update.
611 (update_br_prob_note): Update.
612 (rtl_verify_edges): Update.
613 (purge_dead_edges): Update.
614 (rtl_lv_add_condition_to_bb): Update.
615 * cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
616 * cgraphunit.c (init_lowered_empty_function): Update.
617 (cgraph_node::expand_thunk): Update.
618 * cilk-common.c: Include profile-count.h
619 * dojump.c (inv): Remove.
620 (jumpifnot): Update.
621 (jumpifnot_1): Update.
622 (do_jump_1): Update.
623 (do_jump): Update.
624 (do_jump_by_parts_greater_rtx): Update.
625 (do_compare_rtx_and_jump): Update.
626 * dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
627 do_jump_1. do_compare_rtx_and_jump): Update prototype.
628 * dwarf2cfi.c: Include profile-count.h
629 * except.c (dw2_build_landing_pads): Use make_single_succ_edge.
630 (sjlj_emit_dispatch_table): Likewise.
631 * explow.c: Include profile-count.h
632 * expmed.c (emit_store_flag_force): Update.
633 (do_cmp_and_jump): Update.
634 * expr.c (compare_by_pieces_d::generate): Update.
635 (compare_by_pieces_d::finish_mode): Update.
636 (emit_block_move_via_loop): Update.
637 (store_expr_with_bounds): Update.
638 (store_constructor): Update.
639 (expand_expr_real_2): Update.
640 (expand_expr_real_1): Update.
641 * expr.h (try_casesi, try_tablejump): Update prototypes.
642 * gimple-pretty-print.c (dump_probability): Update.
643 (dump_profile): New.
644 (dump_gimple_label): Update.
645 (dump_gimple_bb_header): Update.
646 * graph.c (draw_cfg_node_succ_edges): Update.
647 * hsa-gen.c (convert_switch_statements): Update.
648 * ifcvt.c (cheap_bb_rtx_cost_p): Update.
649 (find_if_case_1): Update.
650 (find_if_case_2): Update.
651 * internal-fn.c (expand_arith_overflow_result_store): Update.
652 (expand_addsub_overflow): Update.
653 (expand_neg_overflow): Update.
654 (expand_mul_overflow): Update.
655 (expand_vector_ubsan_overflow): Update.
656 * ipa-cp.c (good_cloning_opportunity_p): Update.
657 * ipa-split.c (split_function): Use make_single_succ_edge.
658 * ipa-utils.c (ipa_merge_profiles): Update.
659 * loop-doloop.c (add_test): Update.
660 (doloop_modify): Update.
661 * loop-unroll.c (compare_and_jump_seq): Update.
662 (unroll_loop_runtime_iterations): Update.
663 * lra-constraints.c (lra_inheritance): Update.
664 * lto-streamer-in.c (input_cfg): Update.
665 * lto-streamer-out.c (output_cfg): Update.
666 * mcf.c (adjust_cfg_counts): Update.
667 * modulo-sched.c (sms_schedule): Update.
668 * omp-expand.c (expand_omp_for_init_counts): Update.
669 (extract_omp_for_update_vars): Update.
670 (expand_omp_ordered_sink): Update.
671 (expand_omp_for_ordered_loops): Update.
672 (expand_omp_for_generic): Update.
673 (expand_omp_for_static_nochunk): Update.
674 (expand_omp_for_static_chunk): Update.
675 (expand_cilk_for): Update.
676 (expand_omp_simd): Update.
677 (expand_omp_taskloop_for_outer): Update.
678 (expand_omp_taskloop_for_inner): Update.
679 * omp-simd-clone.c (simd_clone_adjust): Update.
680 * optabs.c (expand_doubleword_shift): Update.
681 (expand_abs): Update.
682 (emit_cmp_and_jump_insn_1): Update.
683 (expand_compare_and_swap_loop): Update.
684 * optabs.h (emit_cmp_and_jump_insns): Update prototype.
685 * predict.c (predictable_edge_p): Update.
686 (edge_probability_reliable_p): Update.
687 (set_even_probabilities): Update.
688 (combine_predictions_for_insn): Update.
689 (combine_predictions_for_bb): Update.
690 (propagate_freq): Update.
691 (estimate_bb_frequencies): Update.
692 (force_edge_cold): Update.
693 * profile-count.c (profile_count::dump): Add missing space into dump.
694 (profile_count::debug): Add newline.
695 (profile_count::differs_from_p): Explicitly convert to unsigned.
696 (profile_count::stream_in): Update.
697 (profile_probability::dump): New member function.
698 (profile_probability::debug): New member function.
699 (profile_probability::differs_from_p): New member function.
700 (profile_probability::differs_lot_from_p): New member function.
701 (profile_probability::stream_in): New member function.
702 (profile_probability::stream_out): New member function.
703 * profile-count.h (profile_count_quality): Rename to ...
704 (profile_quality): ... this one.
705 (profile_probability): New.
706 (profile_count): Update.
707 * profile.c (compute_branch_probabilities): Update.
708 * recog.c (peep2_attempt): Update.
709 * sched-ebb.c (schedule_ebbs): Update.
710 * sched-rgn.c (find_single_block_region): Update.
711 (compute_dom_prob_ps): Update.
712 (schedule_region): Update.
713 * sel-sched-ir.c (compute_succs_info): Update.
714 * stmt.c (struct case_node): Update.
715 (do_jump_if_equal): Update.
716 (get_outgoing_edge_probs): Update.
717 (conditional_probability): Update.
718 (emit_case_dispatch_table): Update.
719 (expand_case): Update.
720 (expand_sjlj_dispatch_table): Update.
721 (emit_case_nodes): Update.
722 * targhooks.c: Update.
723 * tracer.c (better_p): Update.
724 (find_best_successor): Update.
725 * trans-mem.c (expand_transaction): Update.
726 * tree-call-cdce.c: Update.
727 * tree-cfg.c (gimple_split_edge): Upate.
728 (move_sese_region_to_fn): Upate.
729 * tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
730 * tree-eh.c (lower_resx): Upate.
731 (cleanup_empty_eh_move_lp): Upate.
732 * tree-if-conv.c (version_loop_for_if_conversion): Update.
733 * tree-inline.c (copy_edges_for_bb): Update.
734 (copy_cfg_body): Update.
735 * tree-parloops.c (gen_parallel_loop): Update.
736 * tree-profile.c (gimple_gen_ic_func_profiler): Update.
737 (gimple_gen_time_profiler): Update.
738 * tree-ssa-dce.c (remove_dead_stmt): Update.
739 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
740 * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
741 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
742 (unloop_loops): Update.
743 (try_peel_loop): Update.
744 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
745 * tree-ssa-loop-split.c (connect_loops): Update.
746 (split_loop): Update.
747 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
748 (hoist_guard): Update.
749 * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
750 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
751 (value_replacement): Update.
752 * tree-ssa-reassoc.c (branch_fixup): Update.
753 * tree-ssa-tail-merge.c (replace_block_by): Update.
754 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
755 (create_edge_and_update_destination_phis): Update.
756 (compute_path_counts): Update.
757 (recompute_probabilities): Update.
758 (update_joiner_offpath_counts): Update.
759 (freqs_to_counts_path): Update.
760 (duplicate_thread_path): Update.
761 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
762 (struct switch_conv_info): Update.
763 (gen_inbound_check): Update.
764 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
765 (vect_do_peeling): Update.
766 (vect_loop_versioning): Update.
767 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
768 (optimize_mask_stores): Update.
769 * ubsan.c (ubsan_expand_null_ifn): Update.
770 * value-prof.c (gimple_divmod_fixed_value): Update.
771 (gimple_divmod_fixed_value_transform): Update.
772 (gimple_mod_pow2): Update.
773 (gimple_mod_pow2_value_transform): Update.
774 (gimple_mod_subtract): Update.
775 (gimple_mod_subtract_transform): Update.
776 (gimple_ic): Update.
777 (gimple_stringop_fixed_value): Update.
778 (gimple_stringops_transform): Update.
779 * value-prof.h: Update.
780
781 2017-06-29 Carl Love <cel@us.ibm.com>
782
783 * config/rs6000/rs6000-c.c: Add support for built-in functions
784 vector signed int vec_signed (vector float);
785 vector signed long long vec_signed (vector double);
786 vector signed int vec_signed2 (vector double, vector double);
787 vector signed int vec_signede (vector double);
788 vector signed int vec_signedo (vector double);
789 * config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
790 instruction generator.
791 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
792 UNSPEC_VSX_VSIGNED2): Add UNSPECS.
793 (vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
794 Add define_insn.
795 (vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
796 vunsignede_v2df): Add define_expands.
797 * config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
798 VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
799 VEC_UNSIGNEDO): Add definitions.
800 * config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
801 UNSPEC_VSX_VSIGNED2): Add UNSPECs.
802 (vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
803 (vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
804 vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
805 * config/rs6000/altivec.h (vec_signed, vec_signed2,
806 vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
807 vec_unsignede, vec_unsignedo): Add builtin defines.
808 * config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
809 declaration.
810 * doc/extend.texi: Update the built-in documentation file for the
811 new built-in functions.
812
813 2017-06-29 Richard Biener <rguenther@suse.de>
814
815 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
816 reduction chains to LOOP_VINFO_REDUCTIONS.
817 * tree-vect-slp.c (vect_analyze_slp): Continue looking for
818 SLP reductions after processing reduction chains.
819
820 2017-06-29 Nathan Sidwell <nathan@acm.org>
821
822 * builtins.c (fold_builtin_FUNCTION): Use
823 lang_hooks.decl_printable_name.
824
825 2017-06-29 Peter Bergner <bergner@vnet.ibm.com>
826
827 PR middle-end/81194
828 * cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
829 with only one label.
830 * stmt.c (expand_case): Assert NCASES is greater than one.
831
832 2017-06-29 Richard Biener <rguenther@suse.de>
833
834 * tree-cfg.c (group_case_labels_stmt): Return whether we changed
835 anything.
836 (group_case_labels): Likewise.
837 (find_taken_edge): Push sanity checking on val to workers...
838 (find_taken_edge_cond_expr): ... here
839 (find_taken_edge_switch_expr): ... and here, handle cases
840 with just a default label.
841 * tree-cfg.h (group_case_labels_stmt): Adjust prototype.
842 (group_case_labels): Likewise.
843 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
844 group_case_labels does anything cleanup the CFG again.
845
846 2017-06-29 Bin Cheng <bin.cheng@arm.com>
847
848 PR tree-optimization/81196
849 * tree-ssa-loop-niter.c (number_of_iterations_cond): Handle loop
850 exit condition comparing two IVs.
851
852 2017-06-29 Richard Earnshaw <rearnsha@arm.com>
853
854 * config/arm/parsecpu.awk (gen_comm_data): Add initializer for
855 profile to the dummy entry at the end of the list of architectures.
856 * config/arm/arm-cpu-cdata.h: Regenerated.
857
858 2017-06-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
859 Michael Collison <michael.collison@arm.com>
860
861 PR target/70119
862 * config/aarch64/aarch64.md (*aarch64_<optab>_reg_<mode>3_mask1):
863 New pattern.
864 (*aarch64_reg_<mode>3_neg_mask2): New pattern.
865 (*aarch64_reg_<mode>3_minus_mask): New pattern.
866 (*aarch64_<optab>_reg_di3_mask2): New pattern.
867 * config/aarch64/aarch64.c (aarch64_rtx_costs): Account for cost
868 of shift when the shift amount is masked with constant equal to
869 the size of the mode.
870 * config/aarch64/predicates.md (subreg_lowpart_operator): New
871 predicate.
872
873 2017-06-29 Martin Liska <mliska@suse.cz>
874
875 * config/i386/i386.opt: Change range from [1,5] to [0,5].
876
877 2017-06-29 Yury Gribov <tetra2005@gmail.com>
878
879 PR bootstrap/80565
880 * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization
881 code.
882 * ipa-inline.h
883 (edge_growth_cache_entry::edge_growth_cache_entry): New
884 function.
885 (reset_edge_growth_cache): Update to use constructor.
886
887 2017-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
888
889 * config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
890 (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
891 (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
892
893 2017-06-28 Sebastian Peryt <sebastian.peryt@intel.com>
894
895 * config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
896 (_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.
897
898 2017-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
899
900 * config.gcc (*-linux-musl*): Add t-musl tmake_file.
901 (*-linux-uclibc*): Add t-uclibc tmake_file.
902 * config/t-musl: New.
903 * config/t-uclibc: New.
904
905 2017-06-28 Richard Earnshaw <rearnsha@arm.com>
906
907 * config/arm/parsecpu.awk (profile): Parse new keyword in an arch
908 context.
909 (gen_comm_data): Emit architectural setting of arch_prof.
910 * config/arm/arm-cpus.in (armv6-m, armv6s-m, armv7-a, armv7ve): Set the
911 profile.
912 (armv7-r, armv7-m, armv7e-m, armv8-a, armv8.1-a, armv8.2-a): Likewise.
913 (armv8-m.base, armv8-m.main): Likewise.
914 * arm-protos.h (arm_build_target): Add profile field.
915 (arch_option): Likewise.
916 * config/arm/arm.c (arm_configure_build_target): Copy the profile to
917 the active target.
918 * config/arm/arm.h (TARGET_ARM_ARCH_PROFILE): Use
919 arm_active_target.profile.
920
921 2017-06-28 Richard Biener <rguenther@suse.de>
922
923 PR middle-end/81227
924 * fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
925 TYPE_OVERFLOW_WRAPS.
926 * match.pd (negate_expr_p): Likewise.
927 * tree-ssa-reassoc.c (optimize_range_tests_diff): Use
928 fold_build2, not fold_binary.
929
930 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
931
932 * config/aarch64/aarch64 (aarch64_expand_mov_immediate):
933 Convert memory address to Pmode.
934 (aarch64_print_operand): Assert MEM operands are always Pmode.
935
936 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
937
938 PR target/79665
939 * config/arm/aarch-common.c (arm_no_early_alu_shift_dep):
940 Remove redundant if.
941 (aarch_forward_to_shift_is_not_shifted_reg): Remove.
942 * config/arm/aarch-common-protos.h
943 (aarch_forward_to_shift_is_not_shifted_re): Remove.
944 * config/arm/cortex-a53.md: Use arm_no_early_alu_shift_dep in bypass.
945
946 2017-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
947
948 PR ipa/81238
949 * multiple_target.c (create_dispatcher_calls): Set the default
950 clone to be static, not public.
951
952 2017-06-28 Richard Biener <rguenther@suse.de>
953
954 * tree-vect-loop.c (vectorizable_reduction): Move special
955 cond reduction IV var creation ...
956 (vect_create_epilog_for_reduction): ... here. Remove induction_index
957 parameter. Use STMT_VINFO_VECTYPE.
958 * tree-vect-slp.c (vect_get_constant_vectors): Properly reset
959 constant_p.
960
961 2017-06-28 Martin Liska <mliska@suse.cz>
962
963 PR ipa/81128
964 * ipa-visibility.c (non_local_p): Handle visibility.
965
966 2017-06-28 Martin Liska <mliska@suse.cz>
967
968 PR driver/79659
969 * common.opt: Add IntegerRange to various options.
970 * opt-functions.awk (integer_range_info): New function.
971 * optc-gen.awk: Add integer_range_info to cl_options struct.
972 * opts-common.c (decode_cmdline_option): Handle
973 CL_ERR_INT_RANGE_ARG.
974 (cmdline_handle_error): Likewise.
975 * opts.c (print_filtered_help): Show valid interval in
976 when --help is provided.
977 * opts.h (struct cl_option): Add range_min and range_max fields.
978 * config/i386/i386.opt: Add IntegerRange for -mbranch-cost.
979
980 2017-06-28 Marc Glisse <marc.glisse@inria.fr>
981
982 * match.pd ((X & ~Y) | (~X & Y)): Generalize to + and ^.
983 (x * C EQ/NE y * C): New transformation.
984
985 2017-06-28 Christophe Lyon <christophe.lyon@linaro.org>
986
987 * genmultilib (combination_space): Accept '+' in option names.
988
989 2017-06-28 Martin Liska <mliska@suse.cz>
990
991 PR sanitizer/81224
992 * asan.c (instrument_derefs): Bail out inner references
993 that are hard register variables.
994
995 2017-06-28 Jakub Jelinek <jakub@redhat.com>
996
997 PR target/81175
998 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use def_builtin
999 rather than def_builtin_pure for __builtin_ia32_gatherpf*.
1000
1001 2017-06-28 Richard Biener <rguenther@suse.de>
1002
1003 * tree-vectorizer.h (vect_get_vec_defs): Remove.
1004 (vect_get_slp_defs): Adjust.
1005 * tree-vect-loop.c (get_initial_defs_for_reduction): Split
1006 out from ...
1007 * tree-vect-slp.c (vect_get_constant_vectors): ... here and
1008 simplify.
1009 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
1010 get_initial_defs_for_reduction instead of vect_get_vec_defs.
1011 (vectorizable_reduction): Adjust.
1012 * tree-vect-slp.c (vect_get_constant_vectors): Remove reduction
1013 handling.
1014 (vect_get_slp_defs): Likewise.
1015 * tree-vect-stmts.c (vect_get_vec_defs): Make static and adjust.
1016 (vectorizable_bswap): Adjust.
1017 (vectorizable_call): Likewise.
1018 (vectorizable_conversion): Likewise.
1019 (vectorizable_assignment): Likewise.
1020 (vectorizable_shift): Likewise.
1021 (vectorizable_operation): Likewise.
1022 (vectorizable_store): Likewise.
1023 (vectorizable_condition): Likewise.
1024 (vectorizable_comparison): Likewise.
1025
1026 2017-06-28 Michael Collison <michael.collison@arm.com>
1027
1028 PR target/68535
1029 * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
1030 set of base_reg
1031 (arm_gen_movmemqi): Removed unused variable 'i'.
1032 Convert 'for' loop into 'while' loop.
1033 (arm_expand_prologue): Remove last unnecessary set of insn.
1034 (thumb_pop): Remove unused variable 'pushed_words'.
1035 (thumb_exit): Remove last unnecessary set of regs_to_pop.
1036
1037 2017-06-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1038
1039 * config/s390/predicates.md: Use s390_rel_address_ok_p.
1040 * config/s390/s390-protos.h: Add prototype of
1041 s390_rel_address_ok_p.
1042 * config/s390/s390.c (s390_got_symbol): New function.
1043 (s390_rel_address_ok_p): New function.
1044 (legitimize_pic_address): Use s390_rel_address_ok_p.
1045 (s390_load_got): Use s390_got_symbol.
1046 (s390_option_override): Issue error if
1047 -mno-pic-data-is-text-relative is used without -fpic/-fPIC.
1048 * config/s390/s390.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
1049 New macro.
1050 * config/s390/s390.opt: New option mpic-data-is-text-relative.
1051
1052 2017-06-27 Andrew Pinski <apinski@cavium.com>
1053
1054 * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
1055 (X * copysign (1.0, X)): New pattern.
1056 (X * copysign (1.0, -X)): New pattern.
1057 (copysign (-1.0, CST)): New pattern.
1058
1059 2017-06-27 Joseph Myers <joseph@codesourcery.com>
1060
1061 * genmultilib (combination_space): Remove variable.
1062 Validate reuse rules against regular expression for any sequence
1063 of multilib options in any order.
1064
1065 2017-06-27 Michael Collison <michael.collison@arm.com>
1066
1067 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Directly
1068 call aarch64_split_simd_combine.
1069 * (aarch64_combine_internal<mode>): Delete pattern.
1070 * config/aarch64/aarch64.c (aarch64_split_simd_combine):
1071 Allow register and subreg operands.
1072
1073 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
1074
1075 * config/i386/vxworks.h (ASM_SPEC): Remove definition. No target
1076 specific need, just fallback on defaults.
1077 (ASM_OUTPUT_ALIGNED_BSS): Add #undef before #define.
1078
1079 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
1080 Olivier Hainque <hainque@adacore.com>
1081
1082 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
1083 map for 64bits.
1084 (TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
1085 targets. Pick a default if no particular attempt applied.
1086 (STACK_CHECK_PROTECT): Double for 64bit targets, which have
1087 larger contexts.
1088
1089 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
1090
1091 * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
1092 (x86_64-wrs-vxworks7): Likewise.
1093
1094 2017-06-27 Marek Polacek <polacek@redhat.com>
1095
1096 PR sanitizer/81223
1097 * ubsan.c (instrument_null): Check get_base_address's result for null.
1098
1099 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
1100
1101 * match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.
1102
1103 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
1104
1105 * builtin-types.def (BT_FENV_T_PTR, BT_CONST_FENV_T_PTR,
1106 BT_FEXCEPT_T_PTR, BT_CONST_FEXCEPT_T_PTR): New primitive types.
1107 (BT_FN_INT_FENV_T_PTR, BT_FN_INT_CONST_FENV_T_PTR,
1108 BT_FN_INT_FEXCEPT_T_PTR_INT, BT_FN_INT_CONST_FEXCEPT_T_PTR_INT):
1109 New function types.
1110 * builtins.def (BUILT_IN_FECLEAREXCEPT, BUILT_IN_FEGETENV,
1111 BUILT_IN_FEGETEXCEPTFLAG, BUILT_IN_FEGETROUND,
1112 BUILT_IN_FEHOLDEXCEPT, BUILT_IN_FERAISEEXCEPT,
1113 BUILT_IN_FESETENV, BUILT_IN_FESETEXCEPTFLAG,
1114 BUILT_IN_FESETROUND, BUILT_IN_FETESTEXCEPT,
1115 BUILT_IN_FEUPDATEENV): New builtins.
1116 * tree-core.h (TI_FENV_T_PTR_TYPE, TI_CONST_FENV_T_PTR_TYPE,
1117 TI_FEXCEPT_T_PTR_TYPE, TI_CONST_FEXCEPT_T_PTR_TYPE): New entries.
1118 * tree.h (fenv_t_ptr_type_node, const_fenv_t_ptr_type_node,
1119 fexcept_t_ptr_type_node, const_fexcept_t_ptr_type_node): New
1120 macros.
1121 (builtin_structptr_types): Adjust size.
1122 * tree.c (builtin_structptr_types): Add four entries.
1123
1124 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
1125 Olivier Hainque <hainque@adacore.com>
1126
1127 * config/vxworks.h (VXWORKS_LIB_SPEC): Incorporate ...
1128 (TLS_SYM): New local macro, forcing reference to __tls__ on
1129 link command lines for VxWorks 7 RTPs, triggering initialization
1130 of tlsLib.
1131 (VXWORKS_HAVE_TLS): New macro. State whether the target VxWorks
1132 OS features TLS support, true for RTPs on VxWorks 7.
1133 * config/vxworks.c (vxworks_override_options): Setup emutls
1134 accordingly.
1135
1136 2017-06-27 Jakub Jelinek <jakub@redhat.com>
1137
1138 * predict.c (test_prediction_value_range): Use -1U instead of -1
1139 to avoid narrowing conversion warning.
1140 * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast
1141 to avoid narrowing conversion warning.
1142 * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of
1143 -1.
1144 * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1.
1145
1146 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
1147
1148 * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for
1149 64bit configurations.
1150 (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64.
1151 (SIZE_TYPE): Likewise.
1152 * config/vxworks.c (vxworks_emutls_var_fields): Use
1153 long_unsigned_type_node instead of unsigned_type_node as the offset
1154 field type, which is "pointer" mode in emutls.c.
1155
1156 2017-06-27 Jakub Jelinek <jakub@redhat.com>
1157
1158 PR sanitizer/81209
1159 * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
1160
1161 PR middle-end/81207
1162 * gimple-fold.c (replace_call_with_call_and_fold): Handle
1163 gimple_vuse copying separately from gimple_vdef copying.
1164
1165 2017-06-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1166
1167 * value-prof.c (free_hist): Remove call to memset and the enclosing if
1168 condition.
1169
1170 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
1171 Olivier Hainque <hainque@adacore.com>
1172
1173 * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
1174 for all vxworks7 targets.
1175 * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
1176 (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
1177 (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
1178 variations for VX6/VX7 and 32/64bits later on in ...
1179 (VXWORKS_LIB_SPEC): Leverage new macros.
1180 (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
1181 as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
1182
1183 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
1184
1185 * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
1186 _VX_TOOL_FAMILY and _VX_TOOL to gnu.
1187
1188 2017-06-26 Carl Love <cel@us.ibm.com>
1189
1190 * config/rs6000/rs6000-c.c: Add support for built-in functions
1191 vector bool char vec_reve (vector bool char);
1192 vector signed char vec_reve (vector signed char);
1193 vector unsigned char vec_reve (vector unsigned char);
1194 vector bool int vec_reve (vector bool int);
1195 vector signed int vec_reve (vector signed int);
1196 vector unsigned int vec_reve (vector unsigned int);
1197 vector bool long long vec_reve (vector bool long long);
1198 vector signed long long vec_reve (vector signed long long);
1199 vector unsigned long long vec_reve (vector unsigned long long);
1200 vector bool short vec_reve (vector bool short);
1201 vector signed short vec_reve (vector signed short);
1202 vector double vec_reve (vector double);
1203 vector float vec_reve (vector float);
1204 * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
1205 VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
1206 * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
1207 (altivec_vreve): New pattern.
1208 * config/rs6000/altivec.h (vec_reve): New define.
1209 * doc/extend.texi (vec_rev): Update the built-in documentation file
1210 for the new built-in functions.
1211
1212 2016-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1213
1214 PR tree-optimization/71815
1215 * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
1216 function.
1217 (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
1218 has_single_use.
1219 (slsr_process_phi): Likewise.
1220 (replace_uncond_cands_and_profitable_phis): Don't replace a
1221 multiply candidate with a stride of 1 (copy or cast).
1222 (phi_incr_cost): Call uses_consumed_by_stmt rather than
1223 has_single_use.
1224 (lowest_cost_path): Likewise.
1225 (total_savings): Likewise.
1226
1227 2017-06-26 Richard Biener <rguenther@suse.de>
1228
1229 PR target/81175
1230 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
1231 Use def_builtin_pure for all gather builtins.
1232
1233 2017-06-26 Richard Biener <rguenther@suse.de>
1234
1235 PR tree-optimization/81203
1236 * tree-tailcall.c (find_tail_calls): Do not move stmts into
1237 non-dominating BBs.
1238
1239 2017-06-26 Marek Polacek <polacek@redhat.com>
1240
1241 PR c/80116
1242 * doc/invoke.texi: Document -Wmultistatement-macros.
1243
1244 2017-06-26 Christophe Lyon <christophe.lyon@linaro.org>
1245
1246 * doc/sourcebuild.texi (ARM-specific attributes): Document new
1247 arm_neon_ok_no_float_abi effective target.
1248
1249 2017-06-26 Richard Biener <rguenther@suse.de>
1250
1251 PR tree-optimization/80928
1252 * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
1253 (copy_bbs): Set BB_DUPLICATED flag early.
1254 (execute_on_growing_pred): Do not execute for BB_DUPLICATED
1255 marked blocks.
1256 (execute_on_shrinking_pred): Likewise.
1257 * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
1258 BB_DUPLICATED blocks.
1259 * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
1260 iterate over all PHIs considering removal of *gsi.
1261
1262 2017-06-23 Jim Wilson <jim.wilson@linaro.org>
1263
1264 * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
1265 qdf24xx.
1266
1267 2017-06-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1268
1269 * config/rs6000/rs6000-string.c: (expand_block_clear,
1270 do_load_for_compare, select_block_compare_mode,
1271 compute_current_alignment, expand_block_compare,
1272 expand_strncmp_align_check, expand_strn_compare,
1273 expand_block_move, rs6000_output_load_multiple)
1274 Move functions related to string/block move/compare
1275 to a separate file.
1276 * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
1277 * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
1278 for this function which is now used in two files.
1279 * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
1280 * config.gcc: Add rs6000-string.o to extra_objs for
1281 targets powerpc*-*-* and rs6000*-*-*.
1282
1283 2017-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1284
1285 PR target/80510
1286 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
1287 32-bit, since indexed is not valid for DImode.
1288 (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
1289 3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
1290 (define_peephole2 for Altivec d-form load): Add 32-bit support.
1291 (define_peephole2 for Altivec d-form store): Likewise.
1292
1293 PR ipa/81185
1294 * multiple_target.c (create_dispatcher_calls): Only create the
1295 dispatcher call if the function is the default clone of a
1296 versioned function.
1297
1298 2017-06-23 Segher Boessenkool <segher@kernel.crashing.org>
1299
1300 PR middle-end/80902
1301 * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
1302 a call, force the call to not be a tail call.
1303
1304 2017-06-23 Jeff Law <law@redhat.com>
1305
1306 * doc/contrib.texi: Add entry for Steven Pemberton's work on
1307 enquire.
1308
1309 2017-06-23 Will Schmidt <will_schmidt@vnet.ibm.com>
1310
1311 * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
1312 update_call_from_tree(). (rs6000_gimple_fold_builtin): Add
1313 handling for early expansion of vector shifts (sl,sr,sra,rl).
1314 (builtin_function_type): Add vector shift right instructions
1315 to the unsigned argument list.
1316
1317 2017-06-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
1318
1319 rtl-optimizatoin/79286
1320 * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
1321 * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
1322 trap. PIC register plus a const unspec without offset can never trap.
1323
1324 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
1325
1326 * tree.h (builtin_structptr_type): New type.
1327 (builtin_structptr_types): Declare new array.
1328 * tree.c (builtin_structptr_types): New array.
1329 (free_lang_data, build_common_tree_nodes): Use it.
1330
1331 2017-06-23 Jonathan Wakely <jwakely@redhat.com>
1332
1333 PR c++/81187
1334 * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
1335 -Wnoexcept.
1336
1337 2017-06-22 Matt Turner <mattst88@gmail.com>
1338
1339 * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
1340 Lake models to skylake case. Assume skylake for unknown
1341 models with clflushopt.
1342
1343 2017-06-22 Jeff Law <law@redhat.com>
1344
1345 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
1346 frame sizes that do not satisfy aarch64_uimm12_shift.
1347
1348 2017-06-22 Jan Hubicka <hubicka@ucw.cz>
1349
1350 * profile-count.h (apply_probability,
1351 apply_scale, probability_in): Fix checks for zero.
1352
1353 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1354
1355 * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
1356 * doc/cppdiropts.texi (-I @var{dir}): Document it.
1357
1358 2016-06-22 Richard Biener <rguenther@suse.de>
1359
1360 * tree-vect-loop.c (vect_model_reduction_cost): Handle
1361 COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
1362 REDUC_MAX_EXPR support.
1363 (vectorizable_reduction): Likewise.
1364 (vect_create_epilog_for_reduction): Likewise.
1365
1366 2017-06-22 James Greenhalgh <james.greenhalgh@arm.com>
1367
1368 * match.pd (A / (1 << B) -> A >> B): New.
1369 * generic-match-head.c: Include optabs-tree.h.
1370 * gimple-match-head.c: Likewise.
1371 * optabs-tree.h (target_supports_op_p): New.
1372 * optabs-tree.c (target_supports_op_p): New.
1373
1374 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1375
1376 * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
1377 $gcc_cv_ld --help output.
1378 (gcc_cv_ld_demangle): Likewise.
1379 (gcc_cv_ld_eh_frame_hdr): Likewise.
1380 (gcc_cv_ld_pie): Likewise.
1381 (gcc_cv_ld_as_needed): Likewise. Prefer native forms unless $gnu_ld.
1382 (gcc_cv_ld_buildid): Likewise.
1383 (gcc_cv_ld_sysroot): Likewise.
1384 (ld_bndplt_support): Likewise.
1385 (ld_pushpopstate_support): Likewise.
1386 * configure: Regenerate.
1387 * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
1388
1389 2017-06-21 Jakub Jelinek <jakub@redhat.com>
1390
1391 PR target/81151
1392 * config/i386/sse.md (round<mode>2): Renumber match_dup and
1393 operands indexes to avoid gap between operands and match_dups.
1394
1395 2017-06-21 Andrew Pinski <apinski@cavium.com>
1396
1397 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
1398 Increment Arith_shift and Arith_shift_reg by 1.
1399 * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
1400 New tuning flag.
1401 * config/aarch64/aarch64.c (thunderx_tunings): Enable
1402 AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
1403 (aarch64_strip_extend): Add new argument and test for it.
1404 (aarch64_cheap_mult_shift_p): New function.
1405 (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
1406 add a cost if it is true.
1407 Update calls to aarch64_strip_extend.
1408 (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
1409
1410 2017-06-21 Andrew Pinski <apinski@cavium.com>
1411
1412 * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
1413 tunings.
1414 (thunderxt88): Likewise.
1415 * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
1416 (thunderx_prefetch_tune): New variable.
1417 (thunderx2t99_prefetch_tune): Update for the correct values.
1418 (thunderxt88_tunings): New variable.
1419 (thunderx_tunings): Use thunderx_prefetch_tune instead of
1420 generic_prefetch_tune.
1421 (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
1422
1423 2017-06-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1424
1425 * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
1426 SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
1427 (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
1428 (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
1429 (aarch64_atomic_cas<mode>, GPI): Likewise.
1430
1431 2017-06-21 Martin Liska <mliska@suse.cz>
1432
1433 * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
1434 statements on cold and hot labels.
1435 * predict.c (tree_estimate_probability_bb): Remove the
1436 prediction from this place.
1437
1438 2017-06-21 Martin Liska <mliska@suse.cz>
1439
1440 PR tree-optimization/79489
1441 * gimplify.c (maybe_add_early_return_predict_stmt): New
1442 function.
1443 (gimplify_return_expr): Call the function.
1444 * predict.c (tree_estimate_probability_bb): Remove handling
1445 of early return.
1446 * predict.def: Update comment about early return predictor.
1447 * gimple-predict.h (is_gimple_predict): New function.
1448 * predict.def: Change default value of early return to 66.
1449 * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
1450 statements.
1451 * passes.def: Put pass_strip_predict_hints to the beginning of
1452 IPA passes.
1453
1454 2017-06-21 Pierre-Marie de Rodat <derodat@adacore.com>
1455
1456 * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
1457 FUNCTION_DECL declarations.
1458 (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
1459 declarations.
1460 (dwaf2out_decl): Likewise.
1461 * godump.c (go_early_global_decl): Skip call to the real debug hook
1462 for FUNCTION_DECL declarations.
1463 * passes.c (rest_of_decl_compilation): Skip call to the
1464 early_global_decl debug hook for FUNCTION_DECL declarations, unless
1465 -fdump-go-spec is passed.
1466
1467 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
1468
1469 * config/i386/i386.c (struct builtin_isa): New field pure_p.
1470 Reorder for compactness.
1471 (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
1472 (def_builtin_pure, def_builtin_pure2): New functions.
1473 (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
1474
1475 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
1476
1477 * match.pd (nop_convert): New predicate.
1478 ((A +- CST1) +- CST2): Allow some NOP conversions.
1479
1480 2017-06-21 Jakub Jelinek <jakub@redhat.com>
1481
1482 PR c++/81130
1483 * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
1484 with ctors/dtors if GOVD_SHARED is set.
1485
1486 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
1487
1488 * config/aarch64/aarch64.md (movti_aarch64):
1489 Emit mov rather than orr.
1490 (movtf_aarch64): Likewise.
1491 * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
1492 Emit mov rather than orr.
1493
1494 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
1495
1496 * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
1497 Swap alternatives, make integer dup more expensive.
1498
1499 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
1500
1501 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
1502 Return true for non-tls symbols.
1503
1504 2017-06-21 James Greenhalgh <james.greenhalgh@arm.com>
1505
1506 * config/aarch64/aarch64-cores.def (cortex-a55): New.
1507 (cortex-a75): Likewise.
1508 (cortex-a75.cortex-a55): Likewise.
1509 * config/aarch64/aarch64-tune.md: Regenerate.
1510 * doc/invoke.texi (-mtune): Document new values for -mtune.
1511
1512 2017-06-21 Tom de Vries <tom@codesourcery.com>
1513
1514 * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
1515 stack_size feature.
1516 (Effective-Target Keywords, Other attributes): Suggest using
1517 dg-add-options stack_size feature to get stack limit in stack_size
1518 effective target documentation.
1519
1520 2017-06-21 Julian Brown <julian@codesourcery.com>
1521 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1522
1523 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
1524 (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
1525 * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
1526 reservation.
1527 * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
1528 attribute type list for neon_multiply.
1529 * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
1530 attribute type list for neon_multiply.
1531 * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
1532 * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
1533 attribute type list for neon_multiply.
1534 * config/arm/types.md (crypto_pmull): Add.
1535 * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
1536 attribute type list.
1537
1538 2017-06-20 Andreas Tobler <andreast@gcc.gnu.org>
1539
1540 * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
1541 arm1176jzf-s.
1542
1543 2017-06-20 Jakub Jelinek <jakub@redhat.com>
1544
1545 * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
1546 to make sure not to dereference a NULL cost_classes_ptr pointer.
1547
1548 2017-06-20 Carl Love <cel@us.ibm.com>
1549
1550 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1551 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
1552 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
1553 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
1554 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
1555 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
1556 VMULOSW): New enum "unspec" values.
1557 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
1558 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
1559 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
1560 altivec_vmulosw): New patterns.
1561 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
1562 VMULOSW): Add definitions.
1563
1564 2017-06-20 Julia Koval <julia.koval@intel.com>
1565
1566 * config/i386/i386.c: Fix rounding expand for new pattern.
1567 * config/i386/subst.md: Fix pattern (parallel -> unspec).
1568
1569 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
1570
1571 * config/aarch64/aarch64-option-extensions.def (rcpc): New.
1572 * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
1573
1574 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
1575
1576 * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
1577 feature string.
1578
1579 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
1580
1581 * config/aarch64/aarch64-cores.def: Rearrange to sort by
1582 architecture, then by implementer ID.
1583 * config/aarch64/aarch64-tune.md: Regenerate.
1584
1585 2017-06-20 Richard Biener <rguenther@suse.de>
1586
1587 PR middle-end/81097
1588 * fold-const.c (split_tree): Fold to type before negating.
1589
1590 2017-06-20 David Malcolm <dmalcolm@redhat.com>
1591
1592 * diagnostic-show-locus.c
1593 (selftest::test_fixit_deletion_affecting_newline): New function.
1594 (selftest::diagnostic_show_locus_c_tests): Call it.
1595
1596 2017-06-20 Andreas Schwab <schwab@suse.de>
1597
1598 PR target/80970
1599 * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
1600 instead of "+d".
1601
1602 2017-06-20 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
1603
1604 * config/arm/arm-c.c (arm_cpu_builtins): New block to define
1605 __ARM_FEATURE_COPROC according to support.
1606
1607 2017-06-20 Jakub Jelinek <jakub@redhat.com>
1608
1609 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
1610 Rewritten to avoid overflow for > 32-bit pointers.
1611
1612 PR sanitizer/81125
1613 * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
1614 by removing enum keyword.
1615 (ubsan_type_descriptor): Likewise. Formatting fix.
1616
1617 PR target/81121
1618 * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
1619 splitter): Require TARGET_SSE2 in the condition.
1620
1621 2017-06-20 Michael Meissner <meissner@linux.vnet.ibm.com>
1622
1623 PR target/79799
1624 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
1625 for doing vector set of SFmode on ISA 3.0.
1626 * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
1627 (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
1628 element.
1629 (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
1630 SFmode value into a V4SF variable that was extracted from another
1631 V4SF variable without converting the element to double precision
1632 and back to single precision vector format.
1633 (vsx_insert_extract_v4sf_p9_2): Likewise.
1634
1635 2017-06-19 Jakub Jelinek <jakub@redhat.com>
1636
1637 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
1638 in UWHI to avoid undefined overflow.
1639
1640 PR sanitizer/81125
1641 * ubsan.h (enum ubsan_encode_value_phase): New.
1642 (ubsan_encode_value): Change second argument to
1643 enum ubsan_encode_value_phase with default value of
1644 UBSAN_ENCODE_VALUE_GENERIC.
1645 * ubsan.c (ubsan_encode_value): Change second argument to
1646 enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
1647 adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
1648 create_tmp_var_raw instead of create_tmp_var and use a
1649 TARGET_EXPR.
1650 (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
1651 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
1652 ubsan_encode_value callers.
1653
1654 PR sanitizer/81111
1655 * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
1656 use create_tmp_var_raw instead of create_tmp_var, mark it addressable
1657 just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
1658
1659 2017-06-19 Richard Biener <rguenther@suse.de>
1660
1661 PR middle-end/81118
1662 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
1663 estimates if we changed anything.
1664
1665 2017-06-19 Richard Biener <rguenther@suse.de>
1666
1667 PR tree-optimization/80887
1668 * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
1669 (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
1670 simplified lookups, then reset mprts_hook.
1671 (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
1672 simplifying.
1673 (try_to_simplify): Likewise.
1674
1675 2017-06-19 Martin Liska <mliska@suse.cz>
1676
1677 PR sanitizer/80879
1678 * gimplify.c (gimplify_switch_expr):
1679 Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
1680
1681 2017-06-19 Martin Liska <mliska@suse.cz>
1682
1683 * doc/install.texi: Document that PGO runs in 4 stages.
1684
1685 2017-06-19 Martin Liska <mliska@suse.cz>
1686
1687 PR ipa/80732
1688 * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
1689 to dispatcher function name.
1690 * multiple_target.c (replace_function_decl): New function.
1691 (create_dispatcher_calls): Redirect both edges and references.
1692
1693 2017-06-19 Jan Hubicka <hubicka@ucw.cz>
1694
1695 * profile-count.c (profile_count::dump): Dump quality.
1696 (profile_count::differs_from_p): Update for unsigned val.
1697 * profile-count.h (profile_count_quality): New enum.
1698 (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
1699
1700 2017-06-19 Richard Biener <rguenther@suse.de>
1701
1702 * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
1703 struct function as arg.
1704 (estimate_numbers_of_iterations): Export overload with loop arg.
1705 (free_numbers_of_iterations_estimates_loop): Use an overload of
1706 free_numbers_of_iterations_estimates instead.
1707 * tree-cfg.c (remove_bb): Adjust.
1708 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
1709 * tree-parloops.c (gen_parallel_loop): Likewise.
1710 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
1711 Likewise.
1712 (tree_unroll_loops_completely): Likewise.
1713 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
1714 Use an overload instead and export.
1715 (estimated_loop_iterations): Adjust.
1716 (max_loop_iterations): Likewise.
1717 (likely_max_loop_iterations): Likewise.
1718 (estimate_numbers_of_iterations): Take struct function as arg
1719 and adjust.
1720 (loop_exits_before_overflow): Adjust.
1721 (free_numbers_of_iterations_estimates_loop): Use an overload.
1722 * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
1723 * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
1724
1725 2017-06-19 Richard Biener <rguenther@suse.de>
1726
1727 PR ipa/81112
1728 * ipa-prop.c (find_constructor_constant_at_offset): Handle
1729 RANGE_EXPR conservatively.
1730
1731 2017-06-16 Carl Love <cel@us.ibm.com>
1732
1733 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1734 definitions for vec_float, vec_float2, vec_floato,
1735 vec_floate built-ins.
1736 * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
1737 for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
1738 floate.
1739 * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
1740 FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
1741 UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
1742 * config/altivec.md (define_insn "p8_vmrgew_<mode>",
1743 define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
1744 * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
1745 vec_floato): Add builtin defines.
1746 * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
1747 Update the built-in documentation file for the new built-in
1748 functions.
1749
1750 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1751
1752 * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
1753 (mthumb): Mark as the negative of -marm.
1754
1755 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1756
1757 * doc/invoke.texi (ARM Options, -mcpu): Document supported
1758 extension options.
1759 (ARM Options, -mtune): Document that this accepts the same
1760 extension options as -mcpu.
1761 (ARM Options, -mfpu): Document addition of -mfpu=auto.
1762
1763 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1764
1765 * doc/invoke.texi (ARM Options, -march=): Document new syntax and
1766 permitted extensions.
1767
1768 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1769
1770 * config/arm/arm-cpus.in (armv7): Add extension +nofp.
1771 (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
1772 (armv8-m.main): Add option +nodsp.
1773 * config/arm/arm-cpu-cdata.h: Regenerated.
1774
1775 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1776
1777 * config/arm/t-fuchsia: New file.
1778 * config.gcc (arm*-*-fuchsia*): Use it.
1779
1780 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1781
1782 * config/arm/t-symbian: Rewrite for new option infrastructure.
1783
1784 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1785
1786 * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
1787 (MULTILIB_REQUIRED): Likewise.
1788
1789 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1790
1791 * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
1792 (MULTILIB_RESUE): Likewise.
1793 (MULTILIB_MATCHES): Likewise.
1794 (MULTLIB_REQUIRED): Likewise.
1795
1796 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1797
1798 * config/arm/t-rtems: Rewrite for new option framework.
1799
1800 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1801
1802 * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
1803 (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
1804 (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
1805 (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
1806 * config/arm/t-multilib: ... here.
1807 (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
1808 (MULTILIB_MATCHES): Use armv7 libraries for armv7-r. Also use for
1809 armv7-a and armv8*-a when A-profile libraries have not been built.
1810 * config/arm/t-rmprofile: Rewrite.
1811
1812 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1813
1814 * genmultilib (multilib_reuse): Allow an explicit period to be escaped
1815 with a backslash. Remove the backslash after substituting unescaped
1816 periods.
1817 * doc/fragments.texi (MULTILIB_REUSE): Document it.
1818
1819 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1820
1821 * config.gcc: (arm*-*-*): When building a-profile libraries, force
1822 the driver to pass through the default setting of -mfloat-abi.
1823 * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
1824 rather than NULL.
1825 * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
1826 (all_feat_combs): New rule.
1827 (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories. Rework
1828 default libraries.
1829 * config/arm/t-aprofile: Rewrite.
1830
1831 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1832
1833 * config/arm/arm.h (FPUTYPE_AUTO): Define.
1834 * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
1835 fpu is not specified by the user/command-line.
1836 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
1837 * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
1838 * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
1839 * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
1840 * common/config/arm/arm-common.c (arm_canon_arch_option): Use
1841 FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
1842
1843 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1844
1845 * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
1846 * config/arm/t-arm-elf: Rewritten.
1847
1848 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1849
1850 * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
1851 have some floating-point instructions.
1852 (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
1853 (TARGET_MAYBE_HARD_FLOAT): New macro.
1854 * config/arm/arm-builtins.c (arm_init_builtins): Use
1855 TARGET_MAYBE_HARD_FLOAT.
1856 * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
1857
1858 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1859
1860 * common/config/arm/arm-common.c: Define INCLUDE_LIST.
1861 (configargs.h): Include it.
1862 (arm_print_hint_for_fpu_option): New function.
1863 (arm_parse_fpu_option): New function.
1864 (candidate_extension): New class.
1865 (arm_canon_for_multilib): New function.
1866 * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
1867 (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
1868 (ARCH_CANONICAL_SPECS): New macro.
1869 (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
1870
1871 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1872
1873 * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
1874 are set after handling multilib fragments. Set target_cpu_default2
1875 from with_cpu.
1876
1877 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1878
1879 * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
1880 cpu name.
1881 (arm*-*-*): Set target_cpu_default2 to a quoted string.
1882 * config/arm/parsecpu.awk (check_cpu): Validate any extension
1883 options.
1884 (check_arch): Likewise.
1885 * config/arm/arm.c (arm_configure_build_target): Handle
1886 TARGET_CPU_DEFAULT being a string constant. Scan any feature
1887 options in the default.
1888
1889 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1890
1891 * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
1892 when an option is an alias of another.
1893 * config/arm/parsecpu.awk (optalias): New parser token.
1894 (gen_comm_data): Mark non-alias options as such. Emit entries
1895 for extension aliases.
1896 * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
1897 (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
1898 (armv6kz, armv6zk, armv6t2): Likewise.
1899 (armv7): Make vfpv3-d16 an alias.
1900 (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases. Sort in
1901 canonical order.
1902 (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
1903 Sort in canonical order.
1904 (armv8-a): Sort in canonical order.
1905 (armv8.1-a, armv8.2-a): Likewise.
1906 (generic-armv7-a): Make neon and neon-vfpv3 aliases. Sort in
1907 canonical order.
1908 (cortex-a9): Sort in canonical order.
1909 * config/arm/arm.c (selftests.h): Include it.
1910 (arm_test_cpu_arch_data): New function.
1911 (arm_run_self_tests): New function.
1912 (TARGET_RUN_TARGET_SELFTESTS): Redefine.
1913 (targetm): Move declaration to the end of the file.
1914 * arm-cpu-cdata.h: Regenerated.
1915
1916 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1917
1918 * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
1919 call to target_mode_check describing the type of option passed.
1920 * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
1921 (arm_target_thumb_only): Use arm_parse_arch_option_name or
1922 arm_parse_cpu_option_name to match parameters against list of
1923 available targets.
1924 * config/arm/parsecpu.awk (gen_comm_data): Don't generate
1925 arm_arch_core_flags data structure.
1926 * config/arm/arm-cpu_cdata.h: Regenerated.
1927
1928 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1929
1930 * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
1931 config/arm/arm.c.
1932 (arm_print_hint_for_cpu_option): Likewise.
1933 (arm_print_hint_for_arch_option): Likewise.
1934 (arm_parse_cpu_option_name): Likewise.
1935 (arm_parse_arch_option_name): Likewise.
1936 * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
1937 of entries in the all_fpus list.
1938 * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
1939 (arm_parse_cpu_option_name): Declare.
1940 (arm_parse_arch_option_name): Declare.
1941 (arm_parse_option_features): Declare.
1942 (arm_intialize_isa): Declare.
1943 * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
1944 data tables to ...
1945 (gen_comm_data): ... here. Make definitions non-static.
1946 * config/arm/arm-cpu-data.h: Regenerated.
1947 * config/arm/arm-cpu-cdata.h: Regenerated.
1948
1949 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1950
1951 * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
1952 (cpu_arch_extension): New structure.
1953 (cpu_arch_option, arch_option, cpu_option): New structures.
1954 * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
1955 architecture types.
1956 (gen_data): Generate new format data tables.
1957 * config/arm/arm.c (cpu_tune): New structure.
1958 (cpu_option, processors): Delete.
1959 (arm_print_hint_for_core_or_arch): Delete. Replace with ...
1960 (arm_print_hint_for_cpu_option): ... this and ...
1961 (arm_print_hint_for_arch_option): ... this.
1962 (arm_parse_arch_cpu_name): Delete. Replace with ...
1963 (arm_parse_cpu_option_name): ... this and ...
1964 (arm_parse_arch_option_name): ... this.
1965 (arm_unrecognized_feature): Change type of target parameter to
1966 cpu_arch_option.
1967 (arm_parse_arch_cpu_features): Delete. Replace with ...
1968 (arm_parse_option_features): ... this.
1969 (arm_configure_build_target): Rework to use new configuration data
1970 tables.
1971 (arm_print_tune_info): Rework for new configuration data tables.
1972 * config/arm/arm-cpu-data.h: Regenerated.
1973 * config/arm/arm-cpu.h: Regenerated.
1974
1975 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1976
1977 * Makefile.in (OBJS): Move sbitmap.o from here ...
1978 (OBJS-libcommon): ... to here.
1979
1980 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1981
1982 * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
1983 (ISA_ALL_CRYPTO): New macro.
1984 (ISA_ALL_SIMD): New macro
1985 (ISA_ALL_FP): New macro.
1986 * config/arm/arm.c (fpu_bitlist): Update initializer.
1987 * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
1988 simd or fp.
1989 (arm9e): Add fpu. Add option for nofp
1990 (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
1991 (arm926ej-s, arm1026ej-s): Likewise.
1992 (generic-armv7-a): Add fpu. Add options for simd, vfpv3, vfpv3-d16,
1993 vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
1994 neon-fp16, neon-vfpv4, nofp and nosimd.
1995 (cortex-a5, cortex-a7): Add fpu. Add options for nosimd and nofp.
1996 (cortex-a8): Add fpu. Add option for nofp.
1997 (cortex-a9): Add fpu. Add options for nosimd and nofp.
1998 (cortex-a12, cortex-a15, cortex-a17): Add fpu. Add option for nofp.
1999 (cortex-r4f): Add fpu.
2000 (cortex-r5): Add fpu. Add options for nofp.dp and nofp.
2001 (cortex-r7): Use idiv option from architecture. Add fpu. Add option
2002 for nofp.
2003 (cortex-r8): Likewise.
2004 (cortex-m4): Add fpu. Add option for nofp.
2005 (cortex-a15.cortex-a7): Add fpu. Add option for nofp.
2006 (cortex-a17.cortex-a7): Likewise.
2007 (cortex-a32): Add fpu. Add options for crypto and nofp.
2008 (cortex-a35, cortex-a53): Likewise.
2009 (cortex-a57): Add fpu. Add option for crypto.
2010 (cortex-a72, cortex-a73): Likewise.
2011 (exynos-m1): Likewise.
2012 (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
2013 (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
2014 (cortex-m33): Add fpu. Add option for nofp.
2015 * config/arm/arm-cpu-cdata.h: Regenerated
2016 * config/arm/arm-cpu-data.h: Regenerated.
2017
2018 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2019
2020 * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
2021 (armv5te, armv5tej): Likewise.
2022 (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
2023 (armv7): Add options fp and vfpv3-d16.
2024 (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
2025 vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
2026 nofp and nosimd.
2027 (armv7ve): Likewise.
2028 (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
2029 (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
2030 (armv8-a): Add nocrypto option.
2031 (armv8.1-a, armv8.2-a): Likewise.
2032 (armv8-m.main): add options fp, fp.dp and nofp.
2033
2034 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2035
2036 * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
2037 nofp.
2038 (armv8-a+crc): Delete.
2039 (armv8.1-a): Add options simd, crypto and nofp.
2040 (armv8.2-a): Add options fp16, simd, crypto and nofp.
2041 (armv8.2-a+fp16): Delete.
2042 (armv8-m.main): Add option dsp.
2043 (armv8-m.main+dsp): Delete.
2044 (cortex-a8): Add fpu. Add nofp option.
2045 (cortex-a9): Add fpu. Add nofp and nosimd options.
2046 * config/arm/parsecpu.awk (gen_data): Generate option tables and
2047 link to main cpu and architecture data structures.
2048 (gen_comm_data): Only put isa attributes from the main architecture
2049 in common tables.
2050 (option): New statement for architecture and CPU entries.
2051 * arm.c (struct cpu_option): New structure.
2052 (struct processors): Add entry for options.
2053 (arm_unrecognized_feature): New function.
2054 (arm_parse_arch_cpu_name): Ignore any characters after the first
2055 '+' character.
2056 (arm_parse_arch_cpu_feature): New function.
2057 (arm_configure_build_target): Separate out any CPU and architecture
2058 features and parse separately. Don't error out if -mfpu=auto is
2059 used with only an architecture string.
2060 (arm_print_asm_arch_directives): New function.
2061 (arm_file_start): Call it.
2062 * config/arm/arm-cpu-cdata.h: Regenerated.
2063 * config/arm/arm-cpu-data.h: Likewise.
2064 * config/arm/arm-tables.opt: Likewise.
2065
2066 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2067
2068 * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
2069 assembler when it is not -mfpu=auto.
2070
2071 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2072
2073 * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
2074 (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
2075 (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
2076 (ASM_CPU_SPEC): Rewrite.
2077 (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
2078 (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef. Use
2079 MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS. Remove
2080 reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
2081 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
2082 copied string is NUL-terminated. Also strip any characters prefixed
2083 by '+'.
2084 (arm_rewrite_selected_arch): New function.
2085 (arm_rewrite_march): New function.
2086
2087 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2088
2089 * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
2090 (x_arm_cpu_string, x_arm_tune_string): Likewise.
2091 (march, mcpu, mtune): Convert to string-based options.
2092 * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
2093 (arm_parse_arch_cpu_name): New function.
2094 (arm_configure_build_target): Use arm_parse_arch_cpu_name to
2095 identify selected architecture or CPU.
2096 (arm_option_save): New function.
2097 (TARGET_OPTION_SAVE): Redefine.
2098 (arm_option_restore): Restore string options.
2099 (arm_option_print): Print string options.
2100
2101 2017-06-16 Martin Sebor <msebor@redhat.com>
2102
2103 PR tree-optimization/80933
2104 PR tree-optimization/80934
2105 * builtins.c (fold_builtin_3): Do not handle bcmp here.
2106 * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
2107 (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
2108 (gimple_fold_builtin): Call them.
2109
2110 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
2111
2112 * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
2113 as unlikely; update profile.
2114
2115 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
2116
2117 * predict.c (force_edge_cold): Handle declaring edges impossible
2118 more aggresively.
2119
2120 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
2121
2122 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
2123 profile.
2124 (try_unroll_loop_completely): Fix reporting.
2125
2126 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
2127
2128 * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
2129
2130 2017-06-16 James Greenhalgh <james.greenhalgh@arm.com>
2131
2132 PR target/71778
2133 * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
2134 if given a non-constant argument for an intrinsic which requires a
2135 constant.
2136
2137 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
2138
2139 * profile.c (compare_freqs): New function.
2140 (branch_prob): Sort edge list.
2141 (find_spanning_tree): Assume that the list is priority sorted.
2142
2143 2017-06-16 Richard Biener <rguenther@suse.de>
2144
2145 PR tree-optimization/81090
2146 * passes.def (pass_record_bounds): Remove.
2147 * tree-pass.h (make_pass_record_bounds): Likewise.
2148 * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
2149 make_pass_record_bounds): Likewise.
2150 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
2151 not free niter estimates at the beginning but at the end.
2152 * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
2153
2154 2017-06-16 Richard Biener <rguenther@suse.de>
2155
2156 * tree-switch-conversion.c (emit_case_bit_tests): Adjust
2157 initializer to workaround ICE in host GCC 4.8.
2158
2159 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
2160
2161 * ipa-inline-transform.c (update_noncloned_frequencies): Update also
2162 counts.
2163 (clone_inlined_nodes): Update.
2164
2165 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2166
2167 * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
2168 prefetch settings, and enable prefetching by default at -O3.
2169
2170 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2171
2172 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2173 Set flag_prefetch_loop_arrays according to tuning data.
2174
2175 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2176
2177 * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
2178 New tune structure.
2179 (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
2180 [Unrelated to main purpose of the patch] Place the pointer field last
2181 to enable type checking errors when tune structure are wrongly merged.
2182 * config/aarch64/aarch64.c (generic_prefetch_tune,)
2183 (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
2184 (thunderx2t99_prefetch_tune): New tune constants.
2185 (tune_params *_tunings): Update all tunings (no functional change).
2186 (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
2187 PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
2188 from tunings structures.
2189
2190 2017-06-16 Jakub Jelinek <jakub@redhat.com>
2191
2192 PR sanitizer/81094
2193 * ubsan.c (instrument_null): Add T argument, use it instead
2194 of computing it based on IS_LHS.
2195 (instrument_object_size): Likewise.
2196 (pass_ubsan::execute): Adjust instrument_null and
2197 instrument_object_size callers to pass gimple_get_lhs or
2198 gimple_assign_rhs1 result to it. Use instrument_null instead of
2199 calling get_base_address and instrument_mem_ref. Handle
2200 aggregate call arguments for object-size sanitization.
2201
2202 2017-06-16 Yury Gribov <tetra2005@gmail.com>
2203
2204 PR tree-optimization/81089
2205 * tree-vrp.c (is_masked_range_test): Validate operands of
2206 subexpression.
2207
2208 2017-06-15 Martin Sebor <msebor@redhat.com>
2209
2210 PR c++/80560
2211 * dumpfile.c (dump_register): Avoid calling memset to initialize
2212 a class with a default ctor.
2213 * gcc.c (struct compiler): Remove const qualification.
2214 * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
2215 * hash-table.h: Ditto.
2216 * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
2217 assignment.
2218 * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
2219 * omp-low.c (lower_omp_ordered_clauses): Replace memset with
2220 default ctor.
2221 * params.h (struct param_info): Make struct members non-const.
2222 * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
2223 with default initialization.
2224 * vec.h (vec_copy_construct, vec_default_construct): New helper
2225 functions.
2226 (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
2227 with vec_copy_construct.
2228 (vect<T>::quick_grow_cleared): Replace memset with default ctor.
2229 (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
2230 * doc/invoke.texi (-Wclass-memaccess): Document.
2231
2232 2017-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2233
2234 * emit-rtl.h (is_leaf): Update comment about local
2235 register allocator.
2236
2237 2017-06-15 Jozef Lawrynowicz <jozef.l@somniumtech.com>
2238
2239 PR target/78818
2240 * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
2241 for a variable to have a section before checking if the section has a
2242 name.
2243 Set section to.persistent if persistent attribute is set.
2244 Warn if .persistent attribute is used on an automatic variable.
2245
2246 2017-06-15 Eric Botcazou <ebotcazou@adacore.com>
2247
2248 PR rtl-optimization/80474
2249 * reorg.c (update_block): Do not ignore instructions in a delay slot.
2250
2251 2017-06-15 Segher Boessenkool <segher@kernel.crashing.org>
2252
2253 * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
2254 of REGNO.
2255
2256 2017-06-14 Maciej W. Rozycki <macro@imgtec.com>
2257
2258 * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
2259 (casesi): Emit bounds checking as RTL.
2260 (casesi_internal_mips16_<mode>): Remove bounds checking.
2261
2262 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
2263
2264 * config/xtensa/xtensa.c (xtensa_option_override): Append
2265 MASK_CONST16 to target_flags in the absence of TARGET_L32R.
2266 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
2267 xtensa_doloop_hooks): Define unconditionally.
2268 (xtensa_reorg_loops): Only call reorg_loops in the presence of
2269 TARGET_LOOPS.
2270 * config/xtensa/xtensa.h (TARGET_L32R): New definition.
2271 (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
2272 for it in xtensa_option_override.
2273 (HARD_FRAME_POINTER_IS_FRAME_POINTER,
2274 HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
2275
2276 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
2277
2278 * doc/cppopts.texi: Document '-' special value to -MF.
2279
2280 2017-06-14 Wilco Dijkstra <wdijkstr@arm.com>
2281
2282 * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
2283 (cortex_a53_fconst): Likewise.
2284 (cortex_a53_fpmul): Likewise.
2285 (cortex_a53_f_load_64): Likewise.
2286 (cortex_a53_f_load_many): Likewise.
2287 (cortex_a53_advsimd_alu): Likewise.
2288 (cortex_a53_advsimd_alu_q): Likewise.
2289 (cortex_a53_advsimd_mul): Likewise.
2290 (cortex_a53_advsimd_mul_q): Likewise.
2291 (fpmac bypass): Add new bypass for fpmac-fpmac case.
2292 Add missing fmul, r2f_cvt and fconst cases.
2293
2294 2017-06-14 Richard Biener <rguenther@suse.de>
2295
2296 PR middle-end/81088
2297 * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
2298 literal constants.
2299 (fold_binary_loc): When associating do not treat pre-existing
2300 TREE_OVERFLOW on literal constants as a reason to allow
2301 TREE_OVERFLOW on associated literal constants.
2302
2303 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
2304
2305 * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
2306 (MASK_FEATURES): New macro.
2307 * config/sparc/sparc.c (sparc_option_override): Remove the special
2308 handling of -mfpu and generalize it to all MASK_FEATURES switches.
2309
2310 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
2311
2312 * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
2313 a division of 0 if non-call exceptions are enabled.
2314
2315 2017-06-14 Andrew Pinski <apinski@cavium.com>
2316 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
2317
2318 PR target/71663
2319 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
2320 Improve vector initialization code gen for only variable case.
2321
2322 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
2323
2324 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
2325
2326 2017-06-14 Richard Biener <rguenther@suse.de>
2327
2328 PR tree-optimization/81083
2329 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
2330 as values.
2331
2332 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2333
2334 * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
2335 (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
2336 * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
2337 * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete. Adjust former use.
2338 * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
2339 * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
2340
2341 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2342
2343 * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
2344 * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
2345
2346 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2347
2348 * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
2349
2350 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2351
2352 * config/rs6000/t-rtems: Don't handle SPE.
2353
2354 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2355
2356 * config/rs6000/t-linux: Don't handle SPE.
2357
2358 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2359
2360 * config/rs6000/eabispe.h: Delete file.
2361
2362 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2363
2364 * config/rs6000/t-spe: Delete file.
2365
2366 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2367
2368 * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
2369 (rs6000_legitimate_offset_address_p): Return false for anything in
2370 V2SImode or V2SFmode.
2371
2372 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2373
2374 * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
2375 except V2SF and V2SI. Rearrange the vector modes, and add comments.
2376 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
2377 and V4HImode.
2378 (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
2379 (rs6000_legitimate_offset_address_p): Ditto.
2380 (rs6000_emit_move): Ditto.
2381 (rs6000_init_builtins): Remove V4HI_type_node.
2382
2383 2017-06-13 Martin Liska <mliska@suse.cz>
2384
2385 PR sanitize/78204
2386 * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
2387 (gate_asan): Likewise.
2388 * asan.h (asan_no_sanitize_address_p): Remove the function.
2389 (sanitize_flags_p): New function.
2390 * builtins.def: Fix coding style.
2391 * common.opt: Use renamed enum value.
2392 * convert.c (convert_to_integer_1): Use sanitize_flags_p.
2393 * doc/extend.texi: Document no_sanitize attribute.
2394 * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
2395 to SANITIZE_UNDEFINED_NONDEFAULT.
2396 * gcc.c (sanitize_spec_function): Use the renamed enum value.
2397 * gimple-fold.c (optimize_atomic_compare_exchange_p):
2398 Use sanitize_flags_p.
2399 * gimplify.c (gimplify_function_tree): Likewise.
2400 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
2401 * opts.c (parse_no_sanitize_attribute): New function.
2402 (common_handle_option): Use renamed enum value.
2403 * opts.h (parse_no_sanitize_attribute): Declare.
2404 * tree.c (sanitize_flags_p): New function.
2405 * tree.h: Declared here.
2406 * tsan.c: Use sanitize_flags_p.
2407 * ubsan.c (ubsan_expand_null_ifn): Likewise.
2408 (instrument_mem_ref): Likewise.
2409 (instrument_bool_enum_load): Likewise.
2410 (do_ubsan_in_current_function): Remove the function.
2411 (pass_ubsan::execute): Use sanitize_flags_p.
2412 * ubsan.h: Remove do_ubsan_in_current_function
2413 * tree-cfg.c (print_no_sanitize_attr_value): New function.
2414 (dump_function_to_file): Use it here.
2415
2416 2017-06-13 Martin Jambor <mjambor@suse.cz>
2417
2418 PR tree-optimization/80803
2419 PR tree-optimization/81063
2420 * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
2421 (propagate_subaccesses_across_link): Enqueue subtree whenever
2422 necessary instead of relying on the caller.
2423
2424 2017-06-13 Martin Jambor <mjambor@suse.cz>
2425
2426 * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
2427 that have a first_link.
2428 (sort_and_splice_var_accesses): Do not check first_link before
2429 enquing.
2430 (subtree_mark_written_and_enqueue): Likewise.
2431 (propagate_all_subaccesses): Likewise and do not stop at first
2432 parent with a first_link.
2433
2434 2017-06-13 Martin Jambor <mjambor@suse.cz>
2435
2436 * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
2437 instead of f.
2438
2439 2017-06-13 Yury Gribov <tetra2005@gmail.com>
2440
2441 * match.pd: New pattern.
2442
2443 2017-06-13 Yury Gribov <tetra2005@gmail.com>
2444
2445 * tree-vrp.c (is_masked_range_test): New function.
2446 (register_edge_assert_for): Determine ranges for
2447 some bit tests.
2448
2449 2017-06-13 Yury Gribov <tetra2005@gmail.com>
2450
2451 PR tree-optimization/67328
2452 * fold-const.c (maskable_range_p): New function.
2453 (build_range_check): Generate bittests if possible.
2454
2455 2017-06-13 Martin Liska <mliska@suse.cz>
2456
2457 * gimple-pretty-print.c (dump_probability): Add new argument.
2458 (dump_edge_probability): Dump both probability and count.
2459 (dump_gimple_label): Likewise.
2460 (dump_gimple_bb_header): Likewise.
2461
2462 2017-06-13 Georg-Johann Lay <avr@gjlay.de>
2463
2464 PR target/81072
2465 * config/avr/avr-devices.c: Fix indentation.
2466 * config/avr/gen-avr-mmcu-specs.c: Dito.
2467
2468 2017-06-13 Richard Biener <rguenther@suse.de>
2469
2470 * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
2471 instead get vector type from stmt_info.
2472 (vectorizable_reduction): Adjust. Remove dead code.
2473
2474 2017-06-13 Richard Biener <rguenther@suse.de>
2475
2476 PR middle-end/81065
2477 * fold-const.c (extract_muldiv_1): Remove bogus distribution
2478 case of C * (x * C2 + C3).
2479 (fold_addr_of_array_ref_difference): Properly fold index difference.
2480
2481 2017-06-12 David S. Miller <davem@davemloft.net>
2482
2483 PR target/80968
2484 * config/sparc/sparc.md (return expander): Emit frame blockage if
2485 function uses alloca.
2486
2487 2017-06-12 Richard Sandiford <richard.sandiford@linaro.org>
2488
2489 * combine.c (make_field_assignment): Check len rather than the mode
2490 precision when calling force_to_mode.
2491
2492 2017-06-12 Georg-Johann Lay <avr@gjlay.de>
2493
2494 Support multilibs and devices that see flash in RAM address range.
2495
2496 PR target/81072
2497 * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
2498 (avr_mcu_t) <flash_pm_offset>: New field.
2499 (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
2500 * config/avr/avr.h (AVR_SHORT_CALLS): New define.
2501 (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
2502 (AVR_TINY_PM_OFFSET): Remove macro.
2503 * config/avr/avr.opt (-mshort-calls): New option.
2504 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2505 [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
2506 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
2507 <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
2508 <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
2509 instead of avr_arch->have_jmp_call.
2510 <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
2511 [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
2512 avr_arch->flash_pm_offset to define.
2513 * config/avr/avr-devices.c (avr_arch_types): Add initializers for
2514 new field flash_pm_offset. Add entry for avrxmega3.
2515 (avr_texinfo): Add entry for avrxmega3.
2516 * config/avr/avr-mcus.def: Add entries for: avrxmega3,
2517 attiny212, attiny214,
2518 attiny412, attiny414, attiny416, attiny417,
2519 attiny814, attiny816, attiny817,
2520 attiny1614, attiny1616, attiny1617,
2521 attiny3214, attiny3216, attiny3217.
2522 * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
2523 avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
2524 (avr_print_operand_address) [AVR_TINY]: Same.
2525 (avr_asm_init_sections) <readonly_data_section>: Only patch
2526 callback if avr_arch->flash_pm_offset = 0.
2527 (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
2528 for rodata if avr_arch->flash_pm_offset != 0.
2529 (avr_encode_section_info) [AVR_TINY]: Adjust comment.
2530 * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
2531 (opts) [AVR_ISA_RCALL]: Append opt_rcall.
2532 (m_options): Append opt_rcall.
2533 (m_dirnames): Append dir_rcall.
2534 * config/avr/t-multilib: Regenerate.
2535
2536 * configure.ac [target=avr]: Check whether avrxmega3 default
2537 linker description file works as needed.
2538 * configure: Regenerate.
2539 * doc/avr-mmcu.texi: Regenerate.
2540 * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
2541 <__AVR_ARCH__>: Document avrxmega3 and 103.
2542 <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
2543 <__AVR_SHORT_CALLS__>: Document it.
2544 <__AVR_PM_BASE_ADDRESS__>: Document it.
2545 * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
2546 (AVR Variable Attributes) <progmem>: Document this is
2547 not needed for avrxmega3.
2548 (AVR Named Address Spaces) <__flash>: Dito.
2549
2550 2017-06-12 Jan Hubicka <hubicka@ucw.cz>
2551
2552 * cgraph.c (cgraph_node::dump): Complain about profile insanities.
2553
2554 2017-06-12 Doug Rupp <rupp@adacore.com>
2555
2556 * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
2557 Append vxworks-stdint.h to the tm_file list.
2558 * config/vxworks-stdint.h: New file.
2559
2560 2017-06-12 Martin Liska <mliska@suse.cz>
2561
2562 PR tree-optimization/81041
2563 * tree-profile.c (gimple_gen_ic_func_profiler):
2564 Create an extra BB in profile-generate
2565 (gimple_gen_time_profiler): Likewise.
2566
2567 2017-06-12 Jakub Jelinek <jakub@redhat.com>
2568
2569 PR tree-optimization/81003
2570 * tree-ssa-reassoc.c (force_into_ssa_name): New function.
2571 (update_range_test): Use it instead of force_gimple_operand_gsi.
2572
2573 2017-06-12 Richard Biener <rguenther@suse.de>
2574
2575 PR tree-optimization/81053
2576 * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
2577 with backedge value not defined in loop. Simplify def stmt
2578 compute.
2579
2580 2017-06-11 Tom de Vries <tom@codesourcery.com>
2581
2582 PR target/79939
2583 * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
2584 Return true.
2585 (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
2586 nvptx_cannot_force_const_mem.
2587
2588 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
2589
2590 * opts.c (finish_options): Move test for flag_split_stack after
2591 it has been initialized.
2592
2593 2017-06-11 Jason Merrill <jason@redhat.com>
2594
2595 * tree.h (id_equal): New.
2596 * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
2597 omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
2598 instead of strcmp of IDENTIFIER_POINTER.
2599
2600 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
2601
2602 * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
2603 (mark_all_inlined_calls_cdtor): Fix formating.
2604 (inline_transform): Rescale profile before inlining.
2605
2606 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
2607
2608 * cgraph.h (cgraph_edge::clone): Update prototype.
2609 * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
2610 (cgraph_node::create_clone): Update.
2611 (cgraph_node::create_version_clone): Update.
2612 * tree-inline.c (copy_bb): Update.
2613 (expand_call_inline): Update.
2614
2615 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
2616
2617 * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
2618 factored out from ...
2619 (rs6000_emit_prologue): ... here.
2620
2621 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
2622
2623 * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
2624 factored out from ...
2625 (rs6000_emit_prologue): ... here.
2626
2627 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
2628
2629 * predict.c (drop_profile): Also drop individual bb/edge and cgraph
2630 edge counts.
2631 (handle_missing_profiles): Fix computation of tp_first_run.
2632 (counts_to_freqs): Do not touch freqs when count is 0.
2633
2634 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
2635
2636 * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
2637 profile.
2638
2639 2017-06-10 Tom de Vries <tom@codesourcery.com>
2640
2641 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
2642 attributes): Document signal effective target.
2643
2644 2017-06-10 Tom de Vries <tom@codesourcery.com>
2645
2646 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
2647 Document effective target stack_size.
2648
2649 2017-06-09 David Malcolm <dmalcolm@redhat.com>
2650
2651 * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
2652 to the edit_context if they can be auto-applied.
2653
2654 2017-06-9 Ian Lance Taylor <iant@golang.org>
2655
2656 * opts.c (finish_options): If -fsplit-stack, disable implicit
2657 -forder-blocks-and-partition.
2658 * doc/invoke.texi (Optimize Options): Document that when using
2659 -fsplit-stack -forder-blocks-and-partition is not implicitly
2660 enabled.
2661
2662 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
2663
2664 * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
2665 ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
2666 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
2667 * builtins.def (abort, trap, unreachable): Declare cold.
2668 * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
2669 * tree-core.h (ECF_COLD): New.
2670 * tree.c (set_call_expr_flags): Handle ECF_COLD.
2671 (build_common_builtin_nodes): Mark unreachable and abort as cold.
2672
2673 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
2674
2675 * predict.c (unlikely_executed_stmt_p): Cleanup.
2676
2677 2017-06-09 Richard Biener <rguenther@suse.de>
2678
2679 * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
2680 model if the ref is always written to.
2681
2682 2017-06-09 Tamar Christina <tamar.christina@arm.com>
2683
2684 * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
2685
2686 2017-06-09 Tamar Christina <tamar.christina@arm.com>
2687
2688 * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
2689 than udiv.
2690
2691 2017-06-09 Tom de Vries <tom@codesourcery.com>
2692
2693 PR target/80855
2694 * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
2695 "target cannot support label values" when encountering LABEL_REF.
2696
2697 2017-06-09 Martin Liska <mliska@suse.cz>
2698
2699 * tree-profile.c (gimple_gen_ic_profiler): Update comment.
2700 (gimple_gen_ic_func_profiler): Emit direct comparison
2701 of __gcov_indirect_call_callee with NULL.
2702 (gimple_gen_time_profiler): Change probability from
2703 PROB_VERY_UNLIKELY to PROB_UNLIKELY.
2704
2705 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
2706
2707 * profile.c (edge_gcov_counts): Turn to pointer.
2708 (compute_branch_probabilities, compute_branch_probabilities): Update.
2709 (branch_prob): Do not clear edge_gcov_count.
2710 * profile.h (edge_gcov_counts): Turn to pointer.
2711 (edge_gcov_count): Update.
2712
2713 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
2714
2715 * gimple.h (gimple_check_failed): Mark cold.
2716
2717 2017-06-09 Richard Biener <rguenther@suse.de>
2718
2719 PR tree-optimization/66623
2720 * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
2721 refactor check_reduction into two parts, properly computing
2722 whether we have to check reduction validity for outer loop
2723 vectorization.
2724
2725 2017-06-09 Richard Biener <rguenther@suse.de>
2726
2727 PR tree-optimization/79483
2728 * graphite-scop-detection.c (order): New global.
2729 (get_order): Compute bb to order mapping that satisfies code
2730 generation constraints.
2731 (cmp_pbbs): New helper.
2732 (build_scops): Start domwalk at entry block, sort generated
2733 pbbs.
2734
2735 2017-06-09 Richard Biener <rguenther@suse.de>
2736
2737 PR middle-end/81007
2738 * ipa-polymorphic-call.c
2739 (ipa_polymorphic_call_context::restrict_to_inner_class):
2740 Skip FIELD_DECLs with error_mark_node type.
2741 * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
2742 last again.
2743
2744 2017-06-09 Martin Liska <mliska@suse.cz>
2745
2746 * predict.c (struct branch_predictor): New struct.
2747 (test_prediction_value_range): New test.
2748 (predict_c_tests): New function.
2749 * selftest-run-tests.c (selftest::run_tests): Run the function.
2750 * selftest.h: Declare new tests.
2751
2752 2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
2753
2754 PR target/80966
2755 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
2756 gen_add3_insn did not fail.
2757 * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
2758 r0, construct that number in a temporary reg and add that reg to r0.
2759 If asked to put the result in r0 as well, fail.
2760
2761 2017-06-08 Will Schmidt <will_schmidt@vnet.ibm.com>
2762
2763 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
2764 for early expansion of vec_eqv.
2765
2766 2017-06-08 Jakub Jelinek <jakub@redhat.com>
2767
2768 PR middle-end/81005
2769 * ubsan.c (instrument_null): Avoid pointless code temporary.
2770 (pass_ubsan::execute): Instrument aggregate arguments of calls.
2771
2772 2017-06-08 Uros Bizjak <ubizjak@gmail.com>
2773
2774 PR target/81015
2775 Revert:
2776 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
2777
2778 PR target/59874
2779 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
2780 (*clzhi2): Ditto.
2781
2782 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
2783
2784 * predict.c (unlikely_executed_edge_p): Move ahead.
2785 (probably_never_executed_edge_p): Use it.
2786
2787 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2788
2789 PR middle-end/79988
2790 * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
2791 gimple_call_builtin_p call.
2792
2793 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
2794
2795 * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
2796 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
2797 rtl_check_failed_type2, rtl_check_failed_code1,
2798 rtl_check_failed_code2, rtl_check_failed_code_mode,
2799 rtl_check_failed_block_symbol, cwi_check_failed_bounds,
2800 rtvec_check_failed_bounds, rtl_check_failed_flag,
2801 _fatal_insn_not_found, _fatal_insn): Likewise.
2802 * tree.h (tree_contains_struct_check_failed,
2803 tree_check_failed, tree_not_check_failed,
2804 tree_class_check_failed, tree_range_check_failed,
2805 tree_not_class_check_failed, tree_int_cst_elt_check_failed,
2806 tree_vec_elt_check_failed, phi_node_elt_check_failed,
2807 tree_operand_check_failed, omp_clause_check_failed,
2808 omp_clause_operand_check_failed, omp_clause_range_check_failed):
2809 Likewise.
2810
2811 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
2812
2813 * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
2814 flag_branch_probabilities.
2815 * ipa-inline.c (edge_badness): Likewise.
2816 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
2817 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
2818 * predict.c (maybe_hot_frequency_p): Likewise.
2819 (probably_never_executed): Likewise.
2820 * sched-ebb.c (schedule_ebbs): Likewise.
2821 * sched-rgn.c (find_single_block_region): Likewise.
2822 * tracer.c (tail_duplicate): Likewise.
2823
2824 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
2825
2826 * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
2827 longer requires x_flag_profile_use.
2828
2829 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
2830
2831 * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
2832 instead of flag_reorder_blocks_and_partition.
2833 * dbxout.c (dbxout_function_end): Likewise.
2834 * dwarf2out.c (gen_subprogram_die): Likewise.
2835 * haifa-sched.c (sched_create_recovery_edges): Likewise.
2836 * hw-doloop.c (reorg_loops): Likewise.
2837 * varasm.c (assemble_start_function,
2838 assemble_end_function): Likewise.
2839 (decide_function_section): Do not check for
2840 flag_reorder_blocks_and_partition.
2841
2842 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2843
2844 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
2845 New function.
2846 (chkp_get_hard_register_fake_addr_expr): Ditto.
2847 (chkp_build_addr_expr): Add check for hard reg case.
2848 (chkp_parse_array_and_component_ref): Ditto.
2849 (chkp_find_bounds_1): Ditto.
2850 (chkp_process_stmt): Don't generate bounds store for
2851 hard reg case.
2852
2853 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
2854
2855 * predict.c (maybe_hot_bb_p): Do not check profile status.
2856 (maybe_hot_edge_p): Likewise.
2857 (probably_never_executed): Check for zero counts even if profile
2858 is not read.
2859 (unlikely_executed_edge_p): New function.
2860 (unlikely_executed_stmt_p): New function.
2861 (unlikely_executed_bb_p): New function.
2862 (set_even_probabilities): Use unlikely predicates.
2863 (combine_predictions_for_bb): Likewise.
2864 (predict_paths_for_bb): Likewise.
2865 (predict_paths_leading_to_edge): Likewise.
2866 (determine_unlikely_bbs): New function.
2867 (estimate_bb_frequencies): Use it.
2868 (compute_function_frequency): Use zero counts even if profile is
2869 not read.
2870 * profile-count.h: Fix typo.
2871
2872 2017-08-08 Julia Koval <julia.koval@intel.com>
2873
2874 * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
2875 _mm512_mask_cvtsepi16_storeu_epi8,
2876 _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
2877 * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
2878 _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
2879 _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
2880 _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
2881 * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
2882 (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
2883 VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
2884 * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
2885 __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
2886 __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
2887 __builtin_ia32_pmovuswb256mem_mask,
2888 __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
2889 __builtin_ia32_pmovwb512mem_mask): New builtins.
2890
2891 2017-08-08 Julia Koval <julia.koval@intel.com>
2892
2893 PR target/73350,80862
2894 * config/i386/subst.md (round): Fix round pattern.
2895 * config/i386/i386.c (ix86_erase_embedded_rounding):
2896 Fix erasing rounding for the fixed pattern.
2897
2898 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
2899
2900 * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
2901
2902 2017-06-08 Martin Liska <mliska@suse.cz>
2903
2904 PR gcov-profile/80911
2905 * gcov.c (block_info::block_info): New constructor.
2906
2907 2017-06-07 Carl Love <cel@us.ibm.com>
2908
2909 * config/rs6000/rs6000-c: The return type of the following
2910 built-in functions was implemented as int not long long. Fix sign
2911 of return value for the unsigned version of vec_mulo and vec_mule.
2912 vector unsigned long long vec_bperm (vector unsigned long long,
2913 vector unsigned char)
2914 vector signed long long vec_mule (vector signed int,
2915 vector signed int)
2916 vector unsigned long long vec_mule (vector unsigned int,
2917 vector unsigned int)
2918 vector signed long long vec_mulo (vector signed int,
2919 vector signed int)
2920 vector unsigned long long vec_mulo (vector unsigned int,
2921 vector unsigned int)
2922 * doc/extend.texi: Fix the documentation for the built-in
2923 functions.
2924
2925 2017-06-07 Carl Love <cel@us.ibm.com>
2926
2927 PR target/80982
2928 * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
2929 for BE.
2930
2931 2017-06-07 Carl Love <cel@us.ibm.com>
2932
2933 * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
2934 support, Generate doublehv for signed int/float for BE case only.
2935
2936 2017-06-07 Alexander Monakov <amonakov@ispras.ru>
2937
2938 * doc/invoke.texi (mcx16): Rewrite.
2939
2940 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2941
2942 * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
2943 * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
2944 *mov<mode>_softfloat, and an anonymous splitter): Use
2945 nonimmediate_operand instead of rs6000_nonimmediate_operand.
2946
2947 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2948
2949 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
2950 SPEFSCR registers.
2951 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
2952 (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
2953 (rs6000_debug_reg_global): Adjust.
2954 (rs6000_init_hard_regno_mode_ok): Adjust.
2955 (rs6000_dbx_register_number): Adjust.
2956 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
2957 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2958 Remove SPE_ACC and SPEFSCR.
2959 (REG_ALLOC_ORDER): Ditto.
2960 (FRAME_POINTER_REGNUM): Change to 111.
2961 (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
2962 (REG_CLASS_NAMES): Ditto.
2963 (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
2964 (REGISTER_NAMES): Ditto.
2965 (ADDITIONAL_REG_NAMES): Ditto.
2966 (rs6000_reg_names): Ditto.
2967 * config/rs6000/rs6000.md: Renumber some register number
2968 define_constants.
2969
2970 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2971
2972 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
2973 registers.
2974 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
2975 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
2976 to 117.
2977 (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
2978 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2979 Delete the SPE high registers.
2980 (REG_ALLOC_ORDER): Ditto.
2981 (enum reg_class): Remove SPE_HIGH_REGS.
2982 (REG_CLASS_NAMES): Ditto.
2983 (REG_CLASS_CONTENTS): Delete the SPE high registers.
2984 (REGISTER_NAMES): Ditto.
2985 (rs6000_reg_names): Ditto.
2986 * doc/tm.texi.in: Remove SPE as example.
2987 * doc/tm.texi: Regenerate.
2988
2989 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2990
2991 * config/rs6000/8540.md (ppc8540_brinc): Delete.
2992 * config/rs6000/e500mc.md (e500mc_brinc): Delete.
2993 * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
2994 * config/rs6000/rs6000.md (type): Remove "brinc".
2995
2996 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2997
2998 * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
2999 (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
3000 * config/rs6000/linuxspe.h: Delete file.
3001 * config/rs6000/rs6000.md: Don't include spe.md.
3002 * config/rs6000/spe.h: Delete file.
3003 * config/rs6000/spe.md: Delete file.
3004 * config/rs6000/t-rs6000: Remove spe.md.
3005
3006 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
3007
3008 * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
3009 (reg_or_none500mem_operand): Delete.
3010 * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
3011 instead of reg_or_none500mem_operand.
3012
3013 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
3014
3015 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
3016 handling of SPE flags.
3017 * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
3018
3019 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
3020
3021 * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
3022 SPE ABI handling.
3023 * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
3024 (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
3025 paired_divv2sf3): Similar.
3026 * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
3027 SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
3028 * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
3029 RS6000_BUILTIN_S.
3030 Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
3031 Rename the paired_* instruction patterns.
3032 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
3033 define __SPE__.
3034 * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
3035 * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
3036 (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
3037 spe_padding_size, and spe_64bit_regs_used. Replace TARGET_SPE and
3038 TARGET_SPE_ABI with 0, simplify. Replace SPE_VECTOR_MODE with
3039 PAIRED_VECTOR_MODE.
3040 (struct machine_function): Delete field spe_insn_chain_scanned_p.
3041 (spe_func_has_64bit_regs_p): Delete.
3042 (spe_expand_predicate_builtin): Delete.
3043 (spe_expand_evsel_builtin): Delete.
3044 (TARGET_DWARF_REGISTER_SPAN): Do not define.
3045 (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
3046 (invalid_e500_subreg): Delete.
3047 (rs6000_legitimize_address): Always force_reg op2 as well, for
3048 paired single memory accesses.
3049 (rs6000_member_type_forces_blk): Delete.
3050 (rs6000_spe_function_arg): Delete.
3051 (rs6000_expand_unop_builtin): Delete SPE handling.
3052 (rs6000_expand_binop_builtin): Ditto.
3053 (spe_expand_stv_builtin): Delete.
3054 (bdesc_2arg_spe): Delete.
3055 (spe_expand_builtin): Delete.
3056 (spe_expand_predicate_builtin): Delete.
3057 (spe_expand_evsel_builtin): Delete.
3058 (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
3059 (spe_init_builtins): Delete.
3060 (spe_func_has_64bit_regs_p): Delete.
3061 (savres_routine_name): Delete "info" parameter. Adjust callers.
3062 (rs6000_emit_stack_reset): Ditto.
3063 (rs6000_dwarf_register_span): Delete.
3064 * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
3065 UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
3066 SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
3067 Delete.
3068 * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
3069 Delete.
3070 * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
3071 * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
3072 * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
3073 mulv2sf3, divv2sf3): Delete expanders.
3074
3075 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
3076
3077 config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
3078
3079 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
3080
3081 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
3082 * config/rs6000/rs6000.c: Ditto.
3083
3084 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
3085
3086 * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
3087 * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
3088 comparison_operator.
3089
3090 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
3091
3092 * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
3093 * config/rs6000/rs6000.opt: Ditto.
3094 * config/rs6000/t-rtems: Ditto.
3095
3096 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
3097
3098 * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
3099 TARGET_E500_SINGLE by 0, simplify.
3100 * config/rs6000/rs6000.c: Ditto.
3101 (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
3102 (spe_build_register_parallel): Delete.
3103 * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
3104 TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
3105 * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
3106 TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
3107 (E500_CONVERT): Delete.
3108 * config/rs6000/spe.md: Remove many patterns and all define_constants.
3109
3110 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
3111
3112 * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
3113 * config/rs6000/dfp.md: Ditto.
3114 (negdd2, *negdd2_fpr): Merge.
3115 (absdd2, *absdd2_fpr): Merge.
3116 (negtd2, *negtd2_fpr): Merge.
3117 (abstd2, *abstd2_fpr): Merge.
3118 * config/rs6000/e500.h: Delete file.
3119 * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
3120 TARGET_FPRS by 1 and simplify.
3121 * config/rs6000/rs6000-c.c: Ditto.
3122 * config/rs6000/rs6000.c: Ditto. Also replace TARGET_SF_SPE and
3123 TARGET_DF_SPE by 0.
3124 * config/rs6000/rs6000.h: Ditto. Delete TARGET_SF_SPE and
3125 TARGET_DF_SPE.
3126 * config/rs6000/rs6000.md: Ditto.
3127 (floatdidf2, *floatdidf2_fpr): Merge.
3128 (move_from_CR_gt_bit): Delete.
3129 * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
3130 (E500_CR_IOR_COMPARE): Delete.
3131 (All patterns that require !TARGET_FPRS): Delete.
3132 * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
3133
3134 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3135
3136 * passes.def (pass_iv_canon): Move before pass_loop_distribution.
3137
3138 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3139
3140 * graphds.c (add_edge): Intitialize edge's attached data.
3141 (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
3142 pointer parameter. Call pointed function on each edge during
3143 graph traversing. Skip traversing the edge when the function
3144 returns true.
3145 (graphds_dfs, graphds_scc): Ditto.
3146 (for_each_edge): New parameter. Pass the new parameter to callback
3147 function.
3148 * graphds.h (skip_edge_callback): New function pointer type.
3149 (graphds_dfs, graphds_scc): New function pointer parameter.
3150 (graphds_edge_callback, for_each_edge): New parameter.
3151
3152 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3153
3154 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
3155 out code checking if runtime alias check is possible to below ...
3156 Call the new function.
3157 * tree-data-ref.c (runtime_alias_check_p): ... to new function.
3158 * tree-data-ref.h (runtime_alias_check_p): New decalaration.
3159
3160 2017-06-07 Marek Polacek <polacek@redhat.com>
3161
3162 PR sanitizer/80932
3163 * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
3164 TYPE_OVERFLOW_WRAPS check.
3165
3166 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3167
3168 * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
3169 if versioning is required.
3170 * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
3171 peeling with the check for versioning.
3172
3173 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3174
3175 * tree-vectorizer.h (vect_build_loop_niters): New parameter.
3176 * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
3177 Set true to new parameter if new ssa variable is defined.
3178 (vect_gen_vector_loop_niters): Refactor. Set range information
3179 for the new vector loop bound variable.
3180 (vect_do_peeling): Ditto.
3181
3182 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3183
3184 * tree-affine.c (ssa.h): Include header file.
3185 (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
3186 has wrapping overflow behavior.
3187
3188 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3189
3190 * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
3191
3192 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3193
3194 (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
3195 (tree_to_aff_combination): ... here.
3196
3197 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3198
3199 * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
3200 reg_pressure model function.
3201 (ivopts_global_cost_for_size): Delete.
3202 (determine_set_costs, iv_ca_recount_cost): Call new model function
3203 ivopts_estimate_reg_pressure.
3204
3205 2017-06-07 Tamar Christina <tamar.christina@arm.com>
3206
3207 * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more expensive than udiv.
3208 Remove floating point cases from mod.
3209
3210 2017-06-07 Tamar Christina <tamar.christina@arm.com>
3211
3212 * config/arm/aarch-cost-tables.h (cortexa53_extra_cost): Increase idiv cost.
3213
3214 2017-06-07 Tamar Christina <tamar.christina@arm.com>
3215
3216 * config/aarch64/aarch64.md
3217 (copysignsf3): Fix mask generation.
3218
3219 2017-06-07 Jakub Jelinek <jakub@redhat.com>
3220
3221 * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
3222 TDI_gimple.
3223 (class dump_manager): Add register_dumps method.
3224 * dumpfile.c: Include langhooks.h.
3225 (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
3226 (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
3227 (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
3228 (dump_manager::dump_register): Start with 512 entries instead of 32.
3229 (dump_manager::register_dumps): New method.
3230 * toplev.c (general_init): Instead of invoking register_dumps
3231 langhook, invoke register_dumps method on the dump manager.
3232 * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
3233 TDI_generic.
3234
3235 2017-06-07 Richard Sandiford <richard.sandiford@linaro.org>
3236
3237 * doc/md.texi: Clarify the restrictions on a define_insn condition.
3238 Say that # requires an associated define_split to exist, and that
3239 the define_split must be suitable for use after register allocation.
3240
3241 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
3242
3243 * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
3244 (compute_outgoing_frequencies): Also initialize zero counts.
3245 (find_many_sub_basic_blocks): Do not produce uninitialized profile
3246 around loops; preserve more of profile when nothing changes.
3247
3248 2017-06-06 Jim Wilson <jim.wilson@linaro.org>
3249
3250 * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
3251 here.
3252 * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
3253 * config/arm/arm-cpu-cdata.h: Regenerate.
3254 * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
3255 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
3256 * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
3257 * config/arm/arm.c (arm_qdf24xx_tune): Delete.
3258 * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
3259 support.
3260 * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
3261 support.
3262 * config/arm/t-rmprofile: Likewise.
3263 * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
3264
3265 2017-06-06 David S. Miller <davem@davemloft.net>
3266
3267 PR target/80968
3268 * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
3269 blockage if function uses alloca.
3270
3271 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3272
3273 * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
3274 New "uid" fields to hold pretty-print IDs of group and ref.
3275 Memory references are now identified as <group_id>:<ref_id>
3276 instead of using [random] addresses.
3277 (dump_mem_details): Simplify, no functional change.
3278 (dump_mem_ref): Simplify and make output more concise.
3279 Replace couple of fprintf's throughout code with calls to dump_mem_ref.
3280 (find_or_create_group): Initialize group uid.
3281 (record_ref): Initialize ref uid. Improve debug output.
3282 (prune_group_by_reuse, should_issue_prefetch_p,)
3283 (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
3284 (mark_nontemporal_store, determine_loop_nest_reuse):
3285 Improve debug output.
3286
3287 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3288
3289 * dbgcnt.def (prefetch): New debug counter.
3290 * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
3291 (schedule_prefetches): Stop issueing prefetches if debug counter
3292 tripped.
3293
3294 2017-06-06 Tom de Vries <tom@codesourcery.com>
3295
3296 * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
3297 gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
3298
3299 2017-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3300
3301 * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
3302 Use aarch64_reg_or_zero predicate for operand 4.
3303 (aarch64_compare_and_swap<mode> define_insn_and_split):
3304 Use aarch64_reg_or_zero predicate for operand 3. Add 'Z' constraint.
3305 (aarch64_store_exclusive<mode>): Likewise for operand 2.
3306
3307 2017-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
3308
3309 * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
3310 (arm_compute_save_core_reg_mask): This.
3311 (thumb1_compute_save_reg_mask): Rename into ...
3312 (thumb1_compute_save_core_reg_mask): This.
3313 (arm_compute_save_reg0_reg12_mask): Adapt comment.
3314 (arm_compute_frame_layout): Likewise.
3315
3316 2017-06-06 Richard Biener <rguenther@suse.de>
3317
3318 PR tree-optimization/80974
3319 * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
3320 keep or clear leaders SSA info.
3321
3322 2017-06-06 Tom de Vries <tom@codesourcery.com>
3323
3324 * config/nvptx/nvptx.c (split_mode_p): New function.
3325 (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
3326
3327 2017-06-06 Tom de Vries <tom@codesourcery.com>
3328
3329 * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
3330
3331 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
3332
3333 PR bootstrap/80978
3334 * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
3335 profile.
3336
3337 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
3338
3339 * shrink-wrap.c (handle_simple_exit): Update profile.
3340 (try_shrink_wrapping): Upate profile.
3341
3342 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
3343
3344 * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
3345 (tree_guess_outgoing_edge_probabilities): New.
3346 * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
3347 * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
3348
3349 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
3350
3351 * ipa-split.c (split_function): Initialize return bb profile.
3352
3353 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
3354
3355 * profile.c (compute_branch_probabilities): Also initialize
3356 EXIT_BLOCK profile.
3357
3358 2017-06-06 Richard Biener <rguenther@suse.de>
3359
3360 PR tree-optimization/80928
3361 * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
3362 (vect_analyze_loop_operations): Properly guard analysis for
3363 pure SLP case.
3364 (vect_transform_loop): Likewise.
3365 (vect_analyze_loop_2): Also reset SLP type on PHIs.
3366 (vect_model_induction_cost): Do not cost for pure SLP.
3367 (vectorizable_induction): Pass in SLP node, implement SLP vectorization
3368 of induction in inner loop vectorization.
3369 * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
3370 (vect_get_and_check_slp_defs): Handle vect_induction_def.
3371 (vect_build_slp_tree): Likewise. Handle PHIs as terminating the
3372 recursion.
3373 (vect_analyze_slp_cost_1): Cost induction.
3374 (vect_detect_hybrid_slp_stmts): Handle PHIs.
3375 (vect_get_slp_vect_defs): Likewise.
3376 * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
3377 (vect_transform_stmt): Handle SLP reductions.
3378 * tree-vectorizer.h (vectorizable_induction): Adjust.
3379
3380 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
3381
3382 * config/rs6000/rs6000.c (make_resolver_func): Update
3383 init_lowered_empty_function call.
3384
3385 2017-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3386
3387 * doc/invoke.texi: Document the -fprofile-abs-path option.
3388 * common.opt (fprofile-abs-path): New option.
3389 * gcov-io.h (gcov_write_filename): Declare.
3390 * gcov-io.c (gcov_write_filename): New function.
3391 * coverage.c (coverage_begin_function): Use gcov_write_filename.
3392 * profile.c (output_location): Likewise.
3393
3394 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
3395
3396 * shring-wrap.c: Revert accidental commit.
3397
3398 2017-06-05 Volker Reichelt <v.reichelt@netcologne.de>
3399
3400 * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
3401
3402 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
3403
3404 * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
3405 new edge.
3406 * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
3407 profile in callgraph edge.
3408 * profile-count.h (apply_probability): If THIS is 0, then result is 0
3409 (apply_scale): Likewise.
3410 * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
3411 Also scale profile when inlining function with zero profile.
3412 (initialize_cfun): Update exit block profile even when it is zero.
3413 * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
3414 when profile is read.
3415
3416 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
3417
3418 * config/rs6000/rs6000.c (toplevel): Include attribs.h.
3419 (CLONE_*): New constants to define the processors we can generate
3420 code for with the target_clone attribute.
3421 (rs6000_clone_map): New array to identify which clone processors
3422 the current program is running on.
3423 (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
3424 target_clone attribute.
3425 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
3426 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
3427 (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
3428 (cpu_expand_builtin): Add support for target_clone attribute.
3429 (rs6000_valid_attribute_p): Allow "default" attribute.
3430 (get_decl_name): New debug function to simplify printing the
3431 current function name in debugging statements.
3432 (rs6000_clone_priority): New functions to support the target_clone
3433 attribute, and be able to generate code to switch between ISA 2.05
3434 through ISA 3.0 (power6 through power9).
3435 (rs6000_compare_version_priority): Likewise.
3436 (rs6000_get_function_versions_dispatcher): Likewise.
3437 (make_resolver_func): Likewise.
3438 (add_condition_to_bb): Likewise.
3439 (dispatch_function_versions): Likewise.
3440 (rs6000_generate_version_dispatcher_body): Likewise.
3441 (rs6000_can_inline_p): Call get_decl_name for debugging usage.
3442 (fusion_gpr_load_p): Fix a spacing issue.
3443 * doc/extend.texi (Common Function Attributes): Document that the
3444 PowerPC supports the target_clone attribute.
3445
3446 2017-06-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
3447
3448 * config/arm/arm.h: explain F symbol found in description of ARM
3449 register allocation in its legend.
3450
3451 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
3452
3453 * config/mips/frame-header-opt.c: Include profile-count.h.
3454 * config/riscv/riscv.c: Include profile-count.h
3455
3456 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
3457
3458 * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
3459 update profile.
3460 (sm_set_flag_if_changed): Add bbs field.
3461 (execute_sm_if_changed_flag_set): Pass BBS.
3462 (execute_sm): Update.
3463
3464 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3465
3466 * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
3467 New pattern.
3468
3469 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3470
3471 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
3472 (peephole2): New peephole2 to emit the above.
3473 * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
3474
3475 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3476
3477 * config/aarch64/aarch64.c (define_peephole2 above
3478 *sub_<shift>_<mode>): New peephole.
3479
3480 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
3481
3482 * config/i386/i386.c (make_resolver_func): Update.
3483 * Makefile.in: Add profile-count.h and profile-count.o
3484 * auto-profile.c (afdo_indirect_call): Update to new API.
3485 (afdo_set_bb_count): Update.
3486 (afdo_propagate_edge): Update.
3487 (afdo_propagate_circuit): Update.
3488 (afdo_calculate_branch_prob): Update.
3489 (afdo_annotate_cfg): Update.
3490 * basic-block.h: Include profile-count.h
3491 (struct edge_def): Turn count to profile_count.
3492 (struct basic_block_def): Likewie.
3493 (REG_BR_PROB_BASE): Move to profile-count.h
3494 (RDIV): Move to profile-count.h
3495 * bb-reorder.c (max_entry_count): Turn to profile_count.
3496 (find_traces): Update.
3497 (rotate_loop):Update.
3498 (connect_traces):Update.
3499 (sanitize_hot_paths):Update.
3500 * bt-load.c (migrate_btr_defs): Update.
3501 * cfg.c (RDIV): Remove.
3502 (init_flow): Use alloc_block.
3503 (alloc_block): Uninitialize count.
3504 (unchecked_make_edge): Uninitialize count.
3505 (check_bb_profile): Update.
3506 (dump_edge_info): Update.
3507 (dump_bb_info): Update.
3508 (update_bb_profile_for_threading): Update.
3509 (scale_bbs_frequencies_int): Update.
3510 (scale_bbs_frequencies_gcov_type): Update.
3511 (scale_bbs_frequencies_profile_count): New.
3512 * cfg.h (update_bb_profile_for_threading): Update.
3513 (scale_bbs_frequencies_profile_count): Declare.
3514 * cfgbuild.c (compute_outgoing_frequencies): Update.
3515 (find_many_sub_basic_blocks): Update.
3516 * cfgcleanup.c (try_forward_edges): Update.
3517 (try_crossjump_to_edge): Update.
3518 * cfgexpand.c (expand_gimple_tailcall): Update.
3519 (construct_exit_block): Update.
3520 * cfghooks.c (verify_flow_info): Update.
3521 (dump_bb_for_graph): Update.
3522 (split_edge): Update.
3523 (make_forwarder_block): Update.
3524 (duplicate_block): Update.
3525 (account_profile_record): Update.
3526 * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
3527 (get_estimated_loop_iterations): Update.
3528 * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
3529 (single_likely_exit): Update.
3530 * cfgloopmanip.c (scale_loop_profile): Update.
3531 (loopify): Update.
3532 (set_zero_probability): Update.
3533 (lv_adjust_loop_entry_edge): Update.
3534 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
3535 (purge_dead_edges): Update.
3536 (rtl_account_profile_record): Update.
3537 * cgraph.c (cgraph_node::create): Uninitialize count.
3538 (symbol_table::create_edge): Uninitialize count.
3539 (cgraph_update_edges_for_call_stmt_node): Update.
3540 (cgraph_edge::dump_edge_flags): Update.
3541 (cgraph_node::dump): Update.
3542 (cgraph_edge::maybe_hot_p): Update.
3543 * cgraph.h: Include profile-count.h
3544 (create_clone), create_edge, create_indirect_edge): Update.
3545 (cgraph_node): Turn count to profile_count.
3546 (cgraph_edge0: Likewise.
3547 (make_speculative, clone): Update.
3548 (create_edge): Update.
3549 (init_lowered_empty_function): Update.
3550 * cgraphclones.c (cgraph_edge::clone): Update.
3551 (duplicate_thunk_for_node): Update.
3552 (cgraph_node::create_clone): Update.
3553 * cgraphunit.c (cgraph_node::analyze): Update.
3554 (cgraph_node::expand_thunk): Update.
3555 * final.c (dump_basic_block_info): Update.
3556 * gimple-streamer-in.c (input_bb): Update.
3557 * gimple-streamer-out.c (output_bb): Update.
3558 * graphite.c (print_global_statistics): Update.
3559 (print_graphite_scop_statistics): Update.
3560 * hsa-brig.c: Include basic-block.h.
3561 * hsa-dump.c: Include basic-block.h.
3562 * hsa-gen.c (T sum_slice): Update.
3563 (convert_switch_statements):Update.
3564 * hsa-regalloc.c: Include basic-block.h.
3565 * ipa-chkp.c (chkp_produce_thunks): Update.
3566 * ipa-cp.c (struct caller_statistics): Update.
3567 (init_caller_stats): Update.
3568 (gather_caller_stats): Update.
3569 (ipcp_cloning_candidate_p): Update.
3570 (good_cloning_opportunity_p): Update.
3571 (get_info_about_necessary_edges): Update.
3572 (dump_profile_updates): Update.
3573 (update_profiling_info): Update.
3574 (update_specialized_profile): Update.
3575 (perhaps_add_new_callers): Update.
3576 (decide_about_value): Update.
3577 (ipa_cp_c_finalize): Update.
3578 * ipa-devirt.c (struct odr_type_warn_count): Update.
3579 (struct decl_warn_count): Update.
3580 (struct final_warning_record): Update.
3581 (possible_polymorphic_call_targets): Update.
3582 (ipa_devirt): Update.
3583 * ipa-fnsummary.c (redirect_to_unreachable): Update.
3584 * ipa-icf.c (sem_function::merge): Update.
3585 * ipa-inline-analysis.c (do_estimate_edge_time): Update.
3586 * ipa-inline.c (compute_uninlined_call_time): Update.
3587 (compute_inlined_call_time): Update.
3588 (want_inline_small_function_p): Update.
3589 (want_inline_self_recursive_call_p): Update.
3590 (edge_badness): Update.
3591 (lookup_recursive_calls): Update.
3592 (recursive_inlining): Update.
3593 (inline_small_functions): Update.
3594 (dump_overall_stats): Update.
3595 (dump_inline_stats): Update.
3596 * ipa-profile.c (ipa_profile_generate_summary): Update.
3597 (ipa_propagate_frequency): Update.
3598 (ipa_profile): Update.
3599 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
3600 * ipa-utils.c (ipa_merge_profiles): Update.
3601 * loop-doloop.c (doloop_modify): Update.
3602 * loop-unroll.c (report_unroll): Update.
3603 (unroll_loop_runtime_iterations): Update.
3604 * lto-cgraph.c (lto_output_edge): Update.
3605 (lto_output_node): Update.
3606 (input_node): Update.
3607 (input_edge): Update.
3608 (merge_profile_summaries): Update.
3609 * lto-streamer-in.c (input_cfg): Update.
3610 * lto-streamer-out.c (output_cfg): Update.
3611 * mcf.c (create_fixup_graph): Update.
3612 (adjust_cfg_counts): Update.
3613 (sum_edge_counts): Update.
3614 * modulo-sched.c (sms_schedule): Update.
3615 * postreload-gcse.c (eliminate_partially_redundant_load): Update.
3616 * predict.c (maybe_hot_count_p): Update.
3617 (probably_never_executed): Update.
3618 (dump_prediction): Update.
3619 (combine_predictions_for_bb): Update.
3620 (propagate_freq): Update.
3621 (handle_missing_profiles): Update.
3622 (counts_to_freqs): Update.
3623 (rebuild_frequencies): Update.
3624 (force_edge_cold): Update.
3625 * predict.h: Include profile-count.h
3626 (maybe_hot_count_p, counts_to_freqs): UPdate.
3627 * print-rtl-function.c: Do not include cfg.h
3628 * print-rtl.c: Include basic-block.h
3629 * profile-count.c: New file.
3630 * profile-count.h: New file.
3631 * profile.c (is_edge_inconsistent): Update.
3632 (correct_negative_edge_counts): Update.
3633 (is_inconsistent): Update.
3634 (set_bb_counts): Update.
3635 (read_profile_edge_counts): Update.
3636 (compute_frequency_overlap): Update.
3637 (compute_branch_probabilities): Update; Initialize and deinitialize
3638 gcov_count tables.
3639 (branch_prob): Update.
3640 * profile.h (bb_gcov_counts, edge_gcov_counts): New.
3641 (edge_gcov_count): New.
3642 (bb_gcov_count): New.
3643 * shrink-wrap.c (try_shrink_wrapping): Update.
3644 * tracer.c (better_p): Update.
3645 * trans-mem.c (expand_transaction): Update.
3646 (ipa_tm_insert_irr_call): Update.
3647 (ipa_tm_insert_gettmclone_call): Update.
3648 * tree-call-cdce.c: Update.
3649 * tree-cfg.c (gimple_duplicate_sese_region): Update.
3650 (gimple_duplicate_sese_tail): Update.
3651 (gimple_account_profile_record): Update.
3652 (execute_fixup_cfg): Update.
3653 * tree-inline.c (copy_bb): Update.
3654 (copy_edges_for_bb): Update.
3655 (initialize_cfun): Update.
3656 (freqs_to_counts): Update.
3657 (copy_cfg_body): Update.
3658 (expand_call_inline): Update.
3659 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
3660 * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
3661 (try_unroll_loop_completely): Update.
3662 (try_peel_loop): Update.
3663 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
3664 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
3665 * tree-ssa-loop-split.c (connect_loops): Update.
3666 * tree-ssa-loop-unswitch.c (hoist_guard): Update.
3667 * tree-ssa-reassoc.c (branch_fixup): Update.
3668 * tree-ssa-tail-merge.c (replace_block_by): Update.
3669 * tree-ssa-threadupdate.c (create_block_for_threading): Update.
3670 (compute_path_counts): Update.
3671 (update_profile): Update.
3672 (recompute_probabilities): Update.
3673 (update_joiner_offpath_counts): Update.
3674 (estimated_freqs_path): Update.
3675 (freqs_to_counts_path): Update.
3676 (clear_counts_path): Update.
3677 (ssa_fix_duplicate_block_edges): Update.
3678 (duplicate_thread_path): Update.
3679 * tree-switch-conversion.c (case_bit_test_cmp): Update.
3680 (struct switch_conv_info): Update.
3681 * tree-tailcall.c (decrease_profile): Update.
3682 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
3683 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
3684 * value-prof.c (check_counter): Update.
3685 (gimple_divmod_fixed_value): Update.
3686 (gimple_mod_pow2): Update.
3687 (gimple_mod_subtract): Update.
3688 (gimple_ic_transform): Update.
3689 (gimple_stringop_fixed_value): Update.
3690 * value-prof.h (gimple_ic): Update.
3691
3692 2017-06-02 Carl Love <cel@us.ibm.com>
3693
3694 * config/rs6000/rs6000-c: Add support for built-in functions
3695 vector double vec_doublee (vector signed int);
3696 vector double vec_doublee (vector unsigned int);
3697 vector double vec_doublee (vector float);
3698 vector double vec_doubleh (vector signed int);
3699 vector double vec_doubleh (vector unsigned int);
3700 vector double vec_doubleh (vector float);
3701 vector double vec_doublel (vector signed int);
3702 vector double vec_doublel (vector unsigned int);
3703 vector double vec_doublel (vector float);
3704 vector double vec_doubleo (vector signed int);
3705 vector double vec_doubleo (vector unsigned int);
3706 vector double vec_doubleo (vector float);.
3707 * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
3708 DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
3709 UNS_DOUBLEL.
3710 * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
3711 unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
3712 unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
3713 VS_sxwsp.
3714 * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
3715 vec_doublel, vec_doubleh.
3716 * doc/extend.texi: Update the built-in documentation file for the
3717 new built-in functions.
3718
3719 2017-06-02 David Malcolm <dmalcolm@redhat.com>
3720
3721 PR jit/80954
3722 * ipa-inline-analysis.c (free_growth_caches): Set
3723 edge_removal_hook_holder to NULL after removing it.
3724
3725 2017-06-02 Sudakshina Das <sudi.das@arm.com>
3726
3727 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
3728 comparision with zero.
3729
3730 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
3731 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
3732 for early expansion of vec_min and vec_max builtins.
3733 (builtin_function_type): Add min/max unsigned variants to those
3734 identified as having unsigned arguments.
3735
3736 2017-06-02 Olivier Hainque <hainque@adacore.com>
3737
3738 * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
3739
3740 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3741
3742 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
3743 Use VALL_F16 iterator rather than VALL.
3744
3745 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3746
3747 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
3748 Emit CBNZ inside loop when doing a strong exchange and comparing
3749 against zero. Generate the CC flags after the loop.
3750
3751 2017-06-02 David Edelsohn <dje.gcc@gmail.com>
3752
3753 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
3754 (dl_section_ref): New.
3755 (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
3756 On AIX, append an expression to subtract the size of the
3757 section length to dl_section_ref.
3758
3759 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
3760
3761 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
3762 for early expansion of vector absolute builtins.
3763
3764 2017-06-02 Richard Biener <rguenther@suse.de>
3765
3766 * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
3767 what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
3768
3769 2017-06-02 Richard Biener <rguenther@suse.de>
3770
3771 PR tree-optimization/80948
3772 * tree-tailcall.c (find_tail_calls): Track stmts to move in
3773 stmt order as well.
3774
3775 2017-06-02 Richard Biener <rguenther@suse.de>
3776
3777 * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
3778 PHIs are ok.
3779 * tree-vect-stmts.c (process_use): Do not mark backedge defs
3780 for inductions as relevant.
3781
3782 2017-06-02 Richard Biener <rguenther@suse.de>
3783
3784 * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
3785 (vectorizable_induction): ... this. Remove dead code.
3786
3787 2017-06-02 Eric Botcazou <ebotcazou@adacore.com>
3788
3789 * builtins. (expand_builtin_alloca): Remove second parameter and
3790 infer its value from the first parameter instead.
3791 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
3792
3793 2017-06-02 Jakub Jelinek <jakub@redhat.com>
3794
3795 PR rtl-optimization/80903
3796 * loop-doloop.c (add_test): Unshare sequence.
3797
3798 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3799
3800 * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
3801
3802 2017-06-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3803
3804 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
3805 static.
3806 (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
3807 xlogue_layout::get_instance, logue_layout::xlogue_layout,
3808 sp_valid_at, fp_valid_at, choose_basereg): Formatting.
3809 (xlogue_layout::get_stub_rtx): Make static.
3810 (xlogue_layout::get_stub_name): Avoid const-cast, make static.
3811 (xlogue_layout::compute_stub_managed_regs): Rename to...
3812 (xlogue_layout::count_stub_managed_regs): ...this.
3813 (xlogue_layout::is_stub_managed_reg): New function.
3814 (xlogue_layout::m_stub_names): Rename to...
3815 (xlogue_layout::s_stub_names): ...this, make static.
3816 (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
3817 xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
3818 xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
3819 xlogue_layout::s_stub_names): Instantiate statics.
3820 (stub_managed_regs): Remove.
3821 (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
3822 (disable_call_ms2sysv_xlogues): Rename to...
3823 (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
3824 (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
3825 warning logic.
3826 (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
3827 change after reload_completed.
3828 (ix86_can_use_return_insn_p): Use the ix86_frame data structure
3829 directly.
3830 (ix86_expand_prologue): Likewise.
3831 (ix86_expand_epilogue): Likewise.
3832 (ix86_expand_split_stack_prologue): Likewise.
3833 (ix86_compute_frame_layout): Remove frame parameter ...
3834 (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
3835 (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
3836 only if necessary.
3837 (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
3838 (ix86_frame): Move from here ...
3839 * config/i386/i386.h (ix86_frame): ... to here.
3840 (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
3841 complete ix86_frame data structure instead. Remove some_ld_name.
3842
3843 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
3844
3845 * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
3846 symbols that hold a DECL_VALUE_EXPR.
3847
3848 2017-06-01 Martin Jambor <mjambor@suse.cz>
3849
3850 PR tree-optimization/80898
3851 * tree-sra.c (process_subtree_disqualification): Removed.
3852 (disqualify_candidate): Do not acll
3853 process_subtree_disqualification.
3854 (subtree_mark_written_and_enqueue): New function.
3855 (propagate_all_subaccesses): Set grp_write of LHS subtree if the
3856 RHS has been disqualified and re-queue LHS if necessary. Apart
3857 from that, ignore disqualified RHS.
3858
3859 2017-06-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3860
3861 * config/s390/s390.c (s390_emit_epilogue): Disable early return
3862 address fetch for z10 or later.
3863
3864 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3865
3866 * config/arc/arc.md (tst_movb): Add guard when splitting.
3867
3868 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3869
3870 * config/arc/arc.c (arc_can_eliminate): Test against
3871 arc_frame_pointer_needed.
3872
3873 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3874
3875 * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
3876 to prevent store reordering.
3877 * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
3878 (type): Add block type.
3879 (stack_tie): Define special instruction to be used in
3880 expand_prologue.
3881
3882 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3883
3884 * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
3885 constraint. It is not valid for the pattern.
3886 (noncommutative_binary_comparison): Likewise.
3887
3888 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3889
3890 * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
3891 scaled addresses.
3892
3893 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3894
3895 * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
3896 be used by the reg-alloc.
3897
3898 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3899
3900 * config/arc/arc.md (mulsi3): Avoid use of hard registers before
3901 reg-alloc when having mul64 or mul32x16 instructions.
3902 (mulsidi3): Likewise.
3903 (umulsidi3): Likewise.
3904 (mulsi32x16): New pattern.
3905 (mulsi64): Likewise.
3906 (mulsidi64): Likewise.
3907 (umulsidi64): Likewise.
3908 (MUL32x16_REG): Define.
3909 (mul64_600): Use MUL32x16_REG.
3910 (mac64_600): Likewise.
3911 (umul64_600): Likewise.
3912 (umac64_600): Likewise.
3913
3914 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3915
3916 * config/arc/arc.md (mulsi3_700): Make it commutative.
3917
3918 2017-06-01 Jose E. Marchesi <jose.marchesi@oracle.com>
3919
3920 * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
3921 type for movstouw.
3922 (*sign_extendsidi2_insn): Likewise for movstosw.
3923
3924 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
3925
3926 * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
3927 the type of the input discriminant value. Convert the
3928 discriminant value of signedness vary.
3929
3930 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
3931
3932 * doc/invoke.texi (-Wcatch-value): Document new shortcut.
3933 Add to -Wall section.
3934
3935 2017-06-01 Richard Biener <rguenther@suse.de>
3936
3937 PR middle-end/66313
3938 * fold-const.c (fold_plusminus_mult_expr): If the factored
3939 factor may be zero use a wrapping type for the inner operation.
3940 * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
3941 and handle moved defs.
3942 (process_assignment): Properly guard the unary op case. Return a
3943 tri-state indicating that moving the stmt before the call may allow
3944 to continue. Pass through to_move.
3945 (find_tail_calls): Handle moving unrelated defs before
3946 the call.
3947
3948 2017-05-31 Segher Boessenkool <segher@kernel.crashing.org>
3949
3950 PR target/80618
3951 * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
3952 splitter result in the canonical way.
3953
3954 2017-05-31 Uros Bizjak <ubizjak@gmail.com>
3955
3956 * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
3957 also for 32bit target. Update insn attributes.
3958 (zero-extendsidi2 splitter): Allow all registers for operand 1.
3959
3960 2017-05-31 Sebastian Peryt <sebastian.peryt@intel.com>
3961
3962 * config/i386/avx512fintrin.h (_mm_mask_max_sd)
3963 (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
3964 (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
3965 (_mm_maskz_min_ss): New intrinsics.
3966
3967 2017-05-31 Martin Liska <mliska@suse.cz>
3968
3969 * tree-vect-loop.c (vect_create_epilog_for_reduction):
3970 Change comment style to one we normally use.
3971 (vectorizable_reduction): Likewise.
3972 (vectorizable_induction): Likewise.
3973 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
3974 (vectorizable_call): Likewise.
3975 (vectorizable_simd_clone_call): Likewise.
3976 (vectorizable_conversion): Likewise.
3977 (vectorizable_assignment): Likewise.
3978 (vectorizable_shift): Likewise.
3979 (vectorizable_operation): Likewise.
3980 (vectorizable_store): Likewise.
3981 (vectorizable_load): Likewise.
3982 * tree-vectorizer.h: Likewise.
3983
3984 2017-05-31 Alexander Monakov <amonakov@ispras.ru>
3985
3986 * passes.c (emergency_dump_function): New.
3987 * tree-pass.h (emergency_dump_function): Declare.
3988 * plugin.c (plugins_internal_error_function): Remove.
3989 * plugin.h (plugins_internal_error_function): Remove declaration.
3990 * toplev.c (internal_error_function): New static function. Use it...
3991 (general_init): ...here.
3992
3993 2017-05-31 Graham Markall <graham.markall@embecosm.com>
3994
3995 * config/arc/arc.c (arc_print_operand): Handle constant operands.
3996 (arc_rtx_costs): Add costs for new patterns.
3997 * config/arc/arc.md: Additional *add_n and *sub_n patterns.
3998 * config/arc/predicates.md: Add _1_2_3_operand predicate.
3999
4000 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
4001
4002 * tree-ssa-strlen.c (get_next_strinfo): New function.
4003 (get_stridx_plus_constant): Use it.
4004 (zero_length_string): Likewise.
4005 (adjust_related_strinfos): Likewise.
4006 (adjust_last_stmt): Likewise.
4007
4008 2017-05-31 Richard Biener <rguenther@suse.de>
4009
4010 PR target/80880
4011 * config/i386/i386.c (ix86_expand_builtin): Remove assert
4012 for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
4013
4014 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
4015
4016 * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
4017 loop_vinfo argument and use of dependence distance vectors.
4018 Check instead whether the two references differ only in their
4019 initial value and assume that they have the same alignment if the
4020 difference is a multiple of the vector alignment.
4021 (vect_analyze_data_refs_alignment): Update call accordingly.
4022
4023 2017-05-31 Martin Liska <mliska@suse.cz>
4024
4025 PR target/79155
4026 * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
4027
4028 2017-05-31 Bin Cheng <bin.cheng@arm.com>
4029
4030 * tree-vect-loop-manip.c (create_intersect_range_checks_index)
4031 (create_intersect_range_checks): Move from ...
4032 * tree-data-ref.c (create_intersect_range_checks_index)
4033 (create_intersect_range_checks): ... to here.
4034 (create_runtime_alias_checks): New function factored from ...
4035 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
4036 here. Call above function.
4037 * tree-data-ref.h (create_runtime_alias_checks): New function.
4038
4039 2017-05-31 Bin Cheng <bin.cheng@arm.com>
4040
4041 * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
4042 segment length for dr_b and compute it in wide_int.
4043
4044 2017-05-31 Richard Biener <rguenther@suse.de>
4045
4046 PR tree-optimization/80906
4047 * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
4048 and pass through iv_map.
4049 (copy_bb_and_scalar_dependences): Adjust.
4050 (translate_pending_phi_nodes): Likewise.
4051 (copy_loop_close_phi_args): Handle code-generating IVs instead
4052 of ICEing.
4053
4054 2017-05-30 David Malcolm <dmalcolm@redhat.com>
4055
4056 * diagnostic-color.c (color_dict): Add "type-diff".
4057 (parse_gcc_colors): Update comment.
4058 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
4059 -fdiagnostics-show-template-tree and -fno-elide-type.
4060 (GCC_COLORS): Add type-diff to example.
4061 (type-diff=): New.
4062 (-fdiagnostics-show-template-tree): New.
4063 (-fno-elide-type): New.
4064 * pretty-print.c (pp_format): Pass quote and formatters[argno] to
4065 the pp_format_decoder callback. Call any m_format_postprocessor's
4066 "handle" method.
4067 (pretty_printer::pretty_printer): Initialize
4068 m_format_postprocessor.
4069 (pretty_printer::~pretty_printer): Delete any
4070 m_format_postprocessor.
4071 * pretty-print.h (printer_fn): Add bool and const char ** parameters.
4072 (class format_postprocessor): New class.
4073 (struct pretty_printer::format_decoder): Document the new parameters.
4074 (struct pretty_printer::m_format_postprocessor): New field.
4075 * tree-diagnostic.c (default_tree_printer): Update for new
4076 bool and const char ** params.
4077 * tree-diagnostic.h (default_tree_printer): Likewise.
4078
4079 2017-05-30 Segher Boessenkool <segher@kernel.crashing.org>
4080
4081 * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
4082 (lwa_operand): Delete rs6000_gen_cell_microcode test.
4083 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
4084 rs6000_gen_cell_microcode code.
4085 (rs6000_final_prescan_insn): Delete.
4086 (rs6000_opt_vars): Delete the "gen-cell-microcode" and
4087 "warn-cell-microcode" entries.
4088 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
4089 * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
4090 throughout. Change cc_reg_not_micro_cr0_operand to
4091 cc_reg_not_cr0_operand throughout.
4092 (*extendhi<mode>2_noload): Delete.
4093 * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
4094 (mwarn-cell-microcode): Delete.
4095 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
4096 -mgen-cell-microcode and -mwarn-cell-microcode.
4097
4098 2017-05-30 Uros Bizjak <ubizjak@gmail.com>
4099
4100 PR target/80833
4101 * config/i386/constraints.md (Yd): New constraint.
4102 (Ye): Ditto.
4103 * config/i386/i386.md (*movti_internal): Add (?r, Ye)
4104 and (?Yd, r) alternatives. Update insn attributes.
4105 * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
4106 and (?*Yd, r) alternatives. Update insn attributes.
4107 (double-mode inter-unit splitters): Add new GR<->XMM splitters.
4108
4109 2017-05-30 Pierre-Marie de Rodat <derodat@adacore.com>
4110
4111 * gimplify.c (gimplify_modify_expr): Don't create a
4112 DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
4113 function.
4114
4115 2017-05-30 Wilco Dijkstra <wdijkstr@arm.com>
4116
4117 * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
4118
4119 2017-05-30 Richard Biener <rguenther@suse.de>
4120
4121 * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
4122 and reduc_def fields.
4123 (STMT_VINFO_REDUC_TYPE): New define.
4124 (STMT_VINFO_REDUC_DEF): Likewise.
4125 (vect_force_simple_reduction): Adjust prototype.
4126 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
4127 (vect_is_simple_reduction): Remove check_reduction argument.
4128 (vect_force_simple_reduction): Adjust and set
4129 STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
4130 (vectorizable_reduction): Do not re-do reduction analysis
4131 but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
4132 * tree-parloops.c (gather_scalar_reductions): Adjust.
4133
4134 2017-05-30 Richard Biener <rguenther@suse.de>
4135
4136 PR middle-end/80901
4137 * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
4138 split_edge code.
4139
4140 2017-05-24 Robin Dapp <rdapp@linux.vnet.ibm.com>
4141
4142 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
4143 Introduce unknown_misalignment parameter and remove vf.
4144 (vect_peeling_hash_get_lowest_cost):
4145 Pass unknown_misalignment parameter.
4146 (vect_enhance_data_refs_alignment):
4147 Fix unsupportable data ref treatment.
4148
4149 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
4150
4151 * tree-vect-data-refs.c (vect_get_data_access_cost):
4152 Workaround for SLP handling.
4153 (vect_enhance_data_refs_alignment):
4154 Compute costs for doing no peeling at all, compare to the best
4155 peeling costs so far and avoid peeling if cheaper.
4156
4157 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
4158
4159 * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
4160 Return peeling info and set costs to zero for unlimited cost
4161 model.
4162 (vect_enhance_data_refs_alignment): Also inspect all datarefs
4163 with unknown misalignment. Compute and costs for unknown
4164 misalignment, compare them to the costs for known misalignment
4165 and choose the cheapest for peeling.
4166
4167 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
4168
4169 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
4170 (vect_get_peeling_costs_all_drs): Create function.
4171 (vect_peeling_hash_get_lowest_cost):
4172 Use vect_get_peeling_costs_all_drs.
4173 (vect_peeling_supportable): Create function.
4174 (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
4175
4176 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
4177
4178 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
4179 DR_HAS_NEGATIVE_STEP.
4180 (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
4181 (vect_enhance_data_refs_alignment): Use.
4182 (vect_duplicate_ssa_name_ptr_info): Use.
4183 * tree-vectorizer.h (dr_misalignment): Use.
4184 (known_alignment_for_access_p): Use.
4185
4186 2017-05-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
4187
4188 PR target/78838
4189 * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
4190 .lowtext.
4191 (has_section_name): New function.
4192
4193 2017-05-30 Martin Liska <mliska@suse.cz>
4194
4195 PR other/80909
4196 * auto-profile.c (get_function_decl_from_block): Fix
4197 parenthesis.
4198
4199 2017-05-30 Richard Biener <rguenther@suse.de>
4200
4201 PR middle-end/80876
4202 * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
4203
4204 2017-05-30 Martin Liska <mliska@suse.cz>
4205
4206 * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
4207 * dumpfile.h (struct dump_file_info): Remove ctors.
4208
4209 2017-05-30 Martin Liska <mliska@suse.cz>
4210
4211 * predict.def: Fix GNU coding style.
4212
4213 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
4214
4215 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
4216 Mark 'to' argument with ATTRIBUTE_UNUSED.
4217
4218 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
4219
4220 * config/xtensa/xtensa.c (xtensa_emit_call): Use
4221 HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
4222 (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
4223 format string.
4224
4225 2017-05-29 Eric Botcazou <ebotcazou@adacore.com>
4226
4227 * doc/install.texi (Options specification): Restore entry of
4228 --enable-sjlj-exceptions.
4229
4230 2017-05-27 Michael Eager <eager@eagercon.com>
4231
4232 Revert:
4233 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
4234
4235 See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
4236
4237 * config/microblaze/microblaze.h
4238 (FIXED_REGISTERS): Update in macro.
4239 (CALL_USED_REGISTERS): Update in macro.
4240
4241 2017-05-27 François-Xavier Coudett <fxcoudert@gcc.gnu.org>
4242
4243 * doc/install.texi: Add links to macOS binary distributions.
4244
4245 2017-05-27 Jakub Jelinek <jakub@redhat.com>
4246
4247 PR bootstrap/80887
4248 Revert:
4249 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
4250
4251 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
4252
4253 2017-05-26 Martin Liska <mliska@suse.cz>
4254
4255 * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
4256
4257 2017-05-26 Martin Liska <mliska@suse.cz>
4258
4259 * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
4260 always leading ';; '.
4261 (dump_bb_info): Likewise.
4262 (brief_dump_cfg): Likewise.
4263 * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
4264 * dumpfile.c: Remove usage of TDF_VERBOSE.
4265 * dumpfile.h (enum dump_kind): Likewise.
4266 (dump_gimple_bb_header): Do not use TDF_COMMENT.
4267 * print-tree.c (debug_verbose): Remove.
4268 * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
4269 (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
4270 * tree-diagnostic.c (default_tree_printer): Replace
4271 TDF_DIAGNOSTIC with TDF_SLIM.
4272
4273 2017-05-26 Bin Cheng <bin.cheng@arm.com>
4274
4275 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
4276 in parameter loop, rather than loop_vinfo.
4277 (create_intersect_range_checks): Ditto.
4278 (vect_create_cond_for_alias_checks): Update call to above functions.
4279
4280 2017-05-26 Bin Cheng <bin.cheng@arm.com>
4281
4282 PR tree-optimization/80815
4283 * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
4284 for merging runtime alias checks. Handle negative DR_STEPs.
4285
4286 2017-05-26 Bin Cheng <bin.cheng@arm.com>
4287
4288 * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
4289 Move from ...
4290 * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
4291 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
4292 out code pruning runtime alias checks.
4293 * tree-data-ref.c (prune_runtime_alias_test_list): New function
4294 factored out from above.
4295 * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
4296 Move from ...
4297 * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
4298 ... to here.
4299 (prune_runtime_alias_test_list): New decalaration.
4300
4301 2017-05-26 Bin Cheng <bin.cheng@arm.com>
4302
4303 * tree-vect-data-refs.c (compare_tree): Rename and move ...
4304 * tree-data-ref.c (data_ref_compare_tree): ... to here.
4305 * tree-data-ref.h (data_ref_compare_tree): New decalaration.
4306 * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
4307 (operator==, comp_dr_with_seg_len_pair): Ditto.
4308 (vect_prune_runtime_alias_test_list): Ditto.
4309
4310 2017-05-26 Martin Liska <mliska@suse.cz>
4311
4312 PR ipa/80663
4313 * params.def: Bound partial-inlining-entry-probability param.
4314
4315 2017-05-26 Marek Polacek <polacek@redhat.com>
4316
4317 PR sanitizer/80875
4318 * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
4319 can be negated.
4320
4321 2017-05-26 Richard Biener <rguenther@suse.de>
4322
4323 PR tree-optimization/80842
4324 * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
4325 value.
4326
4327 2017-05-26 Richard Biener <rguenther@suse.de>
4328
4329 PR tree-optimization/80844
4330 * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
4331
4332 2017-05-25 Sebastian Peryt <sebastian.peryt@intel.com>
4333
4334 * doc/md.texi (Machine Constraints): Update x86 family
4335 machine constraints section to match 'config/i386/constraints.md'.
4336
4337 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
4338
4339 * doc/invoke.texi (-Wcatch-value=): Document new warning option.
4340
4341 2017-05-25 Nathan Sidwell <nathan@acm.org>
4342
4343 * doc/invoke.texi (--enable-languages): Update documentation.
4344
4345 2017-05-25 Martin Liska <mliska@suse.cz>
4346
4347 * dumpfile.c: Add TDF_FOLDING.
4348 * dumpfile.h (enum dump_kind): Likewise.
4349 * genmatch.c (dt_simplify::gen_1): Use it.
4350
4351 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
4352
4353 * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
4354
4355 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
4356
4357 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
4358 * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
4359
4360 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
4361
4362 * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
4363 * match.pd (X == C): Rewrite it here.
4364 (with_possible_nonzero_bits, with_possible_nonzero_bits2,
4365 with_certain_nonzero_bits2): New predicates.
4366 * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
4367
4368 2017-05-24 Nathan Sidwell <nathan@acm.org>
4369
4370 * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
4371 avoid warning.
4372
4373 * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
4374 warning.
4375
4376 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
4377
4378 * config/powerpcspe: New port. Files are copied from the rs6000
4379 port, with "rs6000" in filenames replaced by "powerpcspe".
4380
4381 2017-05-24 Wilco Dijkstra <wdijkstr@arm.com>
4382
4383 PR rtl-optimization/80754
4384 * lra-remat.c (do_remat): Add overlap checks for dst_regno.
4385
4386 2017-05-24 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
4387
4388 * config/sparc/sparc.md (length): Return the correct value for -mflat
4389 sibcalls to match output_sibcall.
4390
4391 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
4392
4393 PR bootstrap/80860
4394 PR bootstrap/80843
4395 * config/rs6000/rs6000.c (struct machine_function): Add new field
4396 n_components.
4397 (rs6000_get_separate_components): Init that field, use it.
4398 (rs6000_components_for_bb): Use the field.
4399
4400 2017-05-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
4401
4402 * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
4403
4404 2017-05-24 Peter Bergner <bergner@vnet.ibm.com>
4405
4406 PR middle-end/80823
4407 * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
4408
4409 2017-05-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4410
4411 PR target/80725
4412 * config/s390/s390.c (s390_check_qrst_address): Check incoming
4413 address against address_operand predicate.
4414 * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
4415
4416 2017-05-24 Eric Botcazou <ebotcazou@adacore.com>
4417
4418 * var-tracking.c (track_expr_p): Do not return 0 for tracked record
4419 parameters passed indirectly.
4420
4421 2017-05-23 Uros Bizjak <ubizjak@gmail.com>
4422
4423 * config/i386/i386.md (*movdi_internal): Remove SSE4
4424 alternative 18 (?r, *v). Update insn attributes.
4425 (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
4426 Update insn attributes.
4427 (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
4428 Update insn attributes.
4429 * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
4430 alternative 1 (r, v). Remove isa attribute.
4431 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
4432 Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
4433 and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
4434
4435 2017-05-23 Tom de Vries <tom@codesourcery.com>
4436
4437 * doc/sourcebuild.texi (Directives, Verify compiler message): Document
4438 dg-line directive.
4439
4440 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
4441
4442 * cgraphunit.c (symbol_table::process_new_functions): Update.
4443 * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
4444 (inline_generate_summary): Rename to ...
4445 (ipa_fn_summary_generate): ... this one.
4446 (inline_read_summary): Rename to ...
4447 (ipa_fn_summary_read): ... this one.
4448 (inline_write_summary): Rename to ...
4449 (ipa_fn_summary_write): ... this one.
4450 (inline_free_summary): Rename to ...
4451 (ipa_free_fn_summary): ... this one.
4452 (pass_data_local_fn_summary, pass_local_fn_summary,
4453 make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
4454 pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
4455 pass_data_ipa_fn_summary, pass_ipa_fn_summary,
4456 make_pass_ipa_fn_summary): New.
4457 * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
4458 inline_write_summary, inline_free_summary): Remove.
4459 (ipa_free_fn_summary) : New.
4460 * ipa-inline.c (ipa_inline): Update.
4461 (pass_ipa_inline): Do not generate summaries.
4462 * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
4463 Remove.
4464 * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
4465 and add pass_ipa_fn_summary.
4466 * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
4467 New.
4468 (make_pass_inline_parameters): Remove.
4469
4470 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4471
4472 * omp-low.c (struct omp_context): Remove "default_kind" member.
4473 Adjust all users.
4474
4475 * omp-offload.c (execute_oacc_device_lower): Remove the
4476 parallelism dimensions function attributes for unparallelized
4477 OpenACC kernels constructs.
4478
4479 2017-05-23 Martin Liska <mliska@suse.cz>
4480
4481 * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
4482 functions.
4483 (cgraph_edge::make_speculative): Likewise.
4484 (cgraph_edge::resolve_speculation): Likewise.
4485 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4486 (cgraph_node::dump): Likewise.
4487 * cgraph.h: Likewise.
4488 * cgraphunit.c (analyze_functions): Likewise.
4489 (symbol_table::compile): Likewise.
4490 * ipa-cp.c (print_all_lattices): Likewise.
4491 (determine_versionability): Likewise.
4492 (initialize_node_lattices): Likewise.
4493 (ipcp_verify_propagated_values): Likewise.
4494 (estimate_local_effects): Likewise.
4495 (update_profiling_info): Likewise.
4496 (create_specialized_node): Likewise.
4497 (perhaps_add_new_callers): Likewise.
4498 (decide_about_value): Likewise.
4499 (decide_whether_version_node): Likewise.
4500 (identify_dead_nodes): Likewise.
4501 (ipcp_store_bits_results): Likewise.
4502 * ipa-devirt.c (dump_targets): Likewise.
4503 (ipa_devirt): Likewise.
4504 * ipa-icf.c (sem_item::dump): Likewise.
4505 (sem_function::equals): Likewise.
4506 (sem_variable::equals): Likewise.
4507 (sem_item_optimizer::read_section): Likewise.
4508 (sem_item_optimizer::execute): Likewise.
4509 (congruence_class::dump): Likewise.
4510 * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
4511 (dump_inline_summary): Likewise.
4512 (estimate_node_size_and_time): Likewise.
4513 (inline_analyze_function): Likewise.
4514 * ipa-inline-transform.c (inline_call): Likewise.
4515 * ipa-inline.c (report_inline_failed_reason): Likewise.
4516 (want_early_inline_function_p): Likewise.
4517 (edge_badness): Likewise.
4518 (update_edge_key): Likewise.
4519 (inline_small_functions): Likewise.
4520 * ipa-profile.c (ipa_profile): Likewise.
4521 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
4522 (ipa_make_edge_direct_to_target): Likewise.
4523 (remove_described_reference): Likewise.
4524 (ipa_impossible_devirt_target): Likewise.
4525 (propagate_controlled_uses): Likewise.
4526 (ipa_print_node_params): Likewise.
4527 (ipcp_transform_function): Likewise.
4528 * ipa-pure-const.c (pure_const_read_summary): Likewise.
4529 (propagate_pure_const): Likewise.
4530 * ipa-reference.c (generate_summary): Likewise.
4531 (read_write_all_from_decl): Likewise.
4532 (propagate): Likewise.
4533 (ipa_reference_read_optimization_summary): Likewise.
4534 * ipa-utils.c (ipa_merge_profiles): Likewise.
4535 * ipa.c (walk_polymorphic_call_targets): Likewise.
4536 (symbol_table::remove_unreachable_nodes): Likewise.
4537 (ipa_single_use): Likewise.
4538 * passes.c (execute_todo): Likewise.
4539 * predict.c (drop_profile): Likewise.
4540 * symtab.c (symtab_node::get_dump_name): New function.
4541 (symtab_node::dump_name): Likewise.
4542 (symtab_node::dump_asm_name): Likewise.
4543 (symtab_node::dump_references): Likewise.
4544 (symtab_node::dump_referring): Likewise.
4545 (symtab_node::dump_base): Likewise.
4546 (symtab_node::debug_symtab): Likewise.
4547 * tree-sra.c (convert_callers_for_node): Likewise.
4548 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
4549 * value-prof.c (init_node_map): Likewise.
4550
4551 2017-05-23 Martin Liska <mliska@suse.cz>
4552
4553 * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
4554 and symtab_node::debug_symtab to symbol_table::debug.
4555 * cgraphunit.c (analyze_functions): Use the renamed function.
4556 (symbol_table::compile): Likewise.
4557 * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
4558 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
4559 * passes.c (execute_todo): Likewise.
4560 * symtab.c (symbol_table::dump): New function.
4561 * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
4562
4563 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
4564
4565 * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
4566 that nonconst implies exec.
4567
4568 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
4569
4570 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
4571 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
4572 (inline_edge_summary_vec): Turn into ...
4573 (ipa_call_summaries): ... this one.
4574 (redirect_to_unreachable, edge_set_predicate,
4575 evaluate_properties_for_edge, inline_summary_alloc,
4576 reset_ipa_call_summary, reset_inline_summary,
4577 inline_summary_t::duplicate): Update.
4578 (inline_edge_duplication_hook): Turn to ...
4579 (ipa_call_summary_t::duplicate): ... this one.
4580 (inline_edge_removal_hook): Turn to ...
4581 (ipa_call_summary_t::remove): ... this one.
4582 (dump_inline_edge_summary): Turn to ...
4583 (dump_ipa_call_summary): ... this one.
4584 (estimate_function_body_sizes): Update.
4585 (inline_update_callee_summaries): Update.
4586 (remap_edge_change_prob): Update.
4587 (remap_edge_summaries): Update.
4588 (inline_merge_summary): Update.
4589 (do_estimate_edge_time): Update.
4590 (inline_generate_summary): Update.
4591 (inline_read_section): Update.
4592 (inline_read_summary): Update.
4593 (inline_free_summary): Update.
4594 * ipa-inline.c (can_inline_edge_p): Update.
4595 (compute_inlined_call_time): Update.
4596 (want_inline_small_function_p): Update.
4597 (edge_badness): Update.
4598 (early_inliner): Update.
4599 * ipa-inline.h (inline_edge_summary): Turn to ...
4600 (ipa_call_summary): ... this one.
4601 (ipa_call_summary_t): New class.
4602 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
4603 (ipa_call_summaries): New.
4604 (inline_edge_summary): Remove.
4605 (estimate_edge_growth): Update.
4606 * ipa-profile.c (ipa_propagate_frequency_1): Update.
4607 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
4608 * ipa-split.c (execute_split_functions): Update.
4609 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
4610
4611 2017-05-23 Tom de Vries <tom@codesourcery.com>
4612
4613 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
4614 attributes): Document rdrand effective target.
4615
4616 2017-05-23 Tom de Vries <tom@codesourcery.com>
4617
4618 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
4619 attributes): Sort alphabetically.
4620
4621 2017-05-23 Georg-Johann Lay <avr@gjlay.de>
4622
4623 * config/avr/genmultilib.awk: Use gsub instead of gensub.
4624
4625 2017-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4626
4627 PR target/80718
4628 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
4629 V2DF/V2DI splat into two separate patterns, one that handles
4630 registers, and the other that only handles memory. Drop support
4631 for splatting from a GPR on ISA 2.07 and then splitting the
4632 splat into direct move and splat.
4633 (vsx_splat_<mode>_reg): Likewise.
4634 (vsx_splat_<mode>_mem): Likewise.
4635
4636 2017-05-22 Segher Boessenkool <segher@kernel.crashing.org>
4637
4638 * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
4639
4640 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4641
4642 PR middle-end/80809
4643 * omp-low.c (finish_taskreg_remap): New function.
4644 (finish_taskreg_scan): If unit size of ctx->record_type
4645 is non-constant, unshare the size expression and replace
4646 decls in it with possible outer var refs.
4647
4648 PR middle-end/80809
4649 * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
4650 GOVD_SHARED rather than GOVD_PRIVATE with it.
4651 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
4652 GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
4653
4654 PR middle-end/80853
4655 * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
4656 as last argument to build_outer_var_ref for pointer bases of array
4657 section reductions.
4658
4659 2017-05-19 Martin Sebor <msebor@redhat.com>
4660
4661 * print-tree.c (print_node): Print DECL_READ_P flag.
4662
4663 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
4664
4665 * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
4666 * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
4667 * cgraph.c: Likewise.
4668 * cgraphunit.c: Likewise.
4669 * gengtype.c: Likewise.
4670 * ipa-cp.c: Likewise.
4671 * ipa-devirt.c: Likewise.
4672 * ipa-icf.c: Likewise.
4673 * ipa-predicate.c: Likewise.
4674 * ipa-profile.c: Likewise.
4675 * ipa-prop.c: Likewise.
4676 * ipa-split.c: Likewise.
4677 * ipa.c: Likewise.
4678 * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
4679 edge_predicate_pool, dump_inline_hints,
4680 inline_summary::account_size_time, redirect_to_unreachable,
4681 edge_set_predicate, set_hint_predicate,
4682 evaluate_conditions_for_known_args, evaluate_properties_for_edge,
4683 inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
4684 inline_summary_t::remove, remap_hint_predicate_after_duplication,
4685 inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
4686 ipa_call_summary_t::remove, initialize_growth_caches,
4687 free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
4688 debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
4689 mark_modified, unmodified_parm_1, unmodified_parm,
4690 unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
4691 set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
4692 compute_bb_predicates, will_be_nonconstant_expr_predicate,
4693 will_be_nonconstant_predicate, record_modified_bb_info,
4694 get_minimal_bb, record_modified, param_change_prob,
4695 phi_result_unknown_predicate, predicate_for_phi_result,
4696 array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
4697 estimate_function_body_sizes, compute_inline_parameters,
4698 compute_inline_parameters_for_curren, pass_data_inline_parameters,
4699 estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
4700 inline_update_callee_summaries, remap_edge_change_prob,
4701 remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
4702 inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
4703 inline_analyze_function, inline_summary_t::insert,
4704 inline_generate_summary, read_ipa_call_summary, inline_read_section,
4705 inline_read_summary, write_ipa_call_summary, inline_write_summary,
4706 inline_free_summary): Move to ipa-fnsummary.h
4707 (predicate_t): Remove.
4708 * ipa-fnsummary.c: New file.
4709 * ipa-inline.h: Do not include sreal.h and ipa-predicate.h
4710 (enum inline_hints_vals, inline_hints, agg_position_info,
4711 INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
4712 inline_summaries, ipa_call_summary, ipa_call_summary_t,
4713 ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
4714 dump_inline_summary, dump_inline_hints, inline_generate_summary,
4715 inline_read_summary, inline_write_summary, inline_free_summary,
4716 inline_analyze_function, initialize_inline_failed,
4717 inline_merge_summary, inline_update_overall_summary,
4718 compute_inline_parameters): Move to ipa-fnsummary.h
4719 * ipa-fnsummary.h: New file.
4720 * ipa-inline-transform.h: Include ipa-inline.h.
4721 * ipa-inline.c: LIkewise.
4722
4723 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
4724
4725 * ipa-inline.c (edge_badness): Use inlined_time instead of
4726 inline_summaries->get.
4727
4728 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
4729
4730 * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
4731
4732 2017-05-22 Nathan Sidwell <nathan@acm.org>
4733
4734 * doc/invoke.texi (fdump-translation-unit): Delete documentation.
4735 (fdump-lang): Document 'raw' option.
4736 * dumpfile.h (TDI_tu): Delete.
4737 * dumpfile.c (dump_files): Remove translation-unit.
4738 (FIRST_AUTO_NUMBERED_DUMP): Decrement.
4739
4740 2017-05-22 Georg-Johann Lay <avr@gjlay.de>
4741
4742 * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
4743 command option from $(AWK) call.
4744 * config/avr/genmultilib.awk: Simplify and rewrite so that it
4745 generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
4746 [FORMAT]: Remove handling of variable.
4747 * config/avr/t-multilib: Regenerate.
4748
4749 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
4750
4751 * ipa-inline-analysis.c (inline_summary::reset): Do not reset
4752 self_time.
4753 (dump_inline_summary): Do not print self_time.
4754 (estimate_function_body_sizes): Do not set self_time.
4755 (compute_inline_parameters): Likewise.
4756 (inline_read_section, inline_write_summary): Do not stream self_time.
4757 * ipa-inline.h (inline_summary): Drop self_time.
4758
4759 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
4760
4761 * ipa-inline-analysis.c (account_size_time): Rename to ...
4762 (inline_summary::account_size_time): ... this one.
4763 (reset_ipa_call_summary): Turn to ...
4764 (ipa_call_summary::reset): ... this one.
4765 (reset_inline_summary): Turn to ...
4766 (inline_summary::reset): ... this one.
4767 (inline_summary_t::remove): Update.
4768 (inline_summary_t::duplicate): Update.
4769 (ipa_call_summary_t::remove): Update.
4770 (dump_inline_summary): Update.
4771 (estimate_function_body_sizes): Update.
4772 (compute_inline_parameters): Update.
4773 (estimate_node_size_and_time): Update.
4774 (inline_merge_summary): Update.
4775 (inline_update_overall_summary): Update.
4776 (inline_read_section): Update.
4777 (inline_write_summary): Update.
4778 * ipa-inline.h (inline_summary): Rename entry to size_time_table;
4779 add account_size_time and reset member functions.
4780 (ipa_call_summary): Add reset function.
4781 * ipa-predicate.h (predicate::operator &): Constify.
4782
4783 2017-05-22 Richard Biener <rguenther@suse.de>
4784
4785 * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
4786
4787 2017-05-19 Jason Merrill <jason@redhat.com>
4788
4789 * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
4790
4791 2017-05-19 Marek Polacek <polacek@redhat.com>
4792
4793 PR sanitizer/80800
4794 * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
4795 TYPE_OVERFLOW_WRAPS checks.
4796
4797 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4798
4799 * tree-core.h (enum omp_clause_default_kind): Add
4800 "OMP_CLAUSE_DEFAULT_PRESENT".
4801 * tree-pretty-print.c (dump_omp_clause): Handle it.
4802 * gimplify.c (enum gimplify_omp_var_data): Add
4803 "GOVD_MAP_FORCE_PRESENT".
4804 (gimplify_adjust_omp_clauses_1): Map it to
4805 "GOMP_MAP_FORCE_PRESENT".
4806 (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
4807
4808 * gimplify.c (oacc_default_clause): Clarify.
4809
4810 2017-05-19 Nathan Sidwell <nathan@acm.org>
4811
4812 LANG_HOOK_REGISTER_DUMPS
4813 * toplev.c (general_init): Call register dump lang hook.
4814 * doc/invoke.texi: Document -fdump-lang option family.
4815 * dumpfile.c (dump_files): Remove class dump here.
4816 (FIRST_AUTO_NUMBERED_DUMP): Adjust.
4817 * dumpfile.h (tree_dump_index): Remove TDI_class.
4818 * langhooks-def.h (lhd_register_dumps): Declare.
4819 (LANG_HOOKS_REGISTER_DUMPS): Define.
4820 (LANG_HOOKS_INITIALIZER): Add it.
4821 * langhooks.c (lhd_register_dumps): Define.
4822 * langhooks.h (struct lang_hooks): Add register_dumps.
4823
4824 2017-05-19 Nathan Sidwell <nathan@acm.org>
4825
4826 * context.h (context::set_passes): New.
4827 * context.c (context::context): Do not create pass manager.
4828 * toplev.c (general_init): Create pass manager here.
4829
4830 2017-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4831
4832 * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
4833 use this splitter if two add or or instructions would also work for
4834 the constant we want to generate.
4835
4836 2017-05-19 Richard Biener <rguenther@suse.de>
4837
4838 PR build/80821
4839 * genmatch.c (dt_node::gen_kids_1): Add missing scope around
4840 predicate evaluation.
4841
4842 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
4843
4844 * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
4845 add ctor.
4846 * ipa-inline.c (want_inline_small_function_p): Do not cast to
4847 unsigned.
4848
4849 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
4850
4851 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
4852 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
4853 (inline_edge_summary_vec): Turn into ...
4854 (ipa_call_summaries): ... this one.
4855 (redirect_to_unreachable, edge_set_predicate,
4856 evaluate_properties_for_edge, inline_summary_alloc,
4857 reset_ipa_call_summary, reset_inline_summary,
4858 inline_summary_t::duplicate): Update.
4859 (inline_edge_duplication_hook): Turn to ...
4860 (ipa_call_summary_t::duplicate): ... this one.
4861 (inline_edge_removal_hook): Turn to ...
4862 (ipa_call_summary_t::remove): ... this one.
4863 (dump_inline_edge_summary): Turn to ...
4864 (dump_ipa_call_summary): ... this one.
4865 (estimate_function_body_sizes): Update.
4866 (inline_update_callee_summaries): Update.
4867 (remap_edge_change_prob): Update.
4868 (remap_edge_summaries): Update.
4869 (inline_merge_summary): Update.
4870 (do_estimate_edge_time): Update.
4871 (inline_generate_summary): Update.
4872 (inline_read_section): Update.
4873 (inline_read_summary): Update.
4874 (inline_free_summary): Update.
4875 * ipa-inline.c (can_inline_edge_p): Update.
4876 (compute_inlined_call_time): Update.
4877 (want_inline_small_function_p): Update.
4878 (edge_badness): Update.
4879 (early_inliner): Update.
4880 * ipa-inline.h (inline_edge_summary): Turn to ...
4881 (ipa_call_summary): ... this one.
4882 (ipa_call_summary_t): New class.
4883 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
4884 (ipa_call_summaries): New.
4885 (inline_edge_summary): Remove.
4886 (estimate_edge_growth): Update.
4887 * ipa-profile.c (ipa_propagate_frequency_1): Update.
4888 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
4889 * ipa-split.c (execute_split_functions): Update.
4890 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
4891
4892 2017-05-19 Richard Biener <rguenther@suse.de>
4893
4894 PR middle-end/80764
4895 * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
4896
4897 2017-05-18 Segher Boessenkool <segher@kernel.crashing.org>
4898
4899 * config/rs6000/rs6000.c (struct machine_function): Add field
4900 fpr_is_wrapped_separately.
4901 (rs6000_get_separate_components): Use 64 components. Handle the
4902 new FPR components.
4903 (rs6000_components_for_bb): Handle the FPR components.
4904 (rs6000_emit_prologue_components): Handle the FPR components.
4905 (rs6000_emit_epilogue_components): Handle the FPR components.
4906 (rs6000_set_handled_components): Handle the FPR components.
4907 (rs6000_emit_prologue): Don't output prologue code for those FPRs
4908 that are already separately shrink-wrapped.
4909 (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
4910 that are already separately shrink-wrapped.
4911
4912 2017-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4913
4914 PR target/80510
4915 * config/rs6000/predicates.md (simple_offsettable_mem_operand):
4916 New predicate.
4917
4918 * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
4919 (define_peephole2 for Altivec d-form load): Add peepholes to catch
4920 cases where the register allocator uses a move and an offsettable
4921 memory operation to/from a FPR register on ISA 2.06/2.07.
4922 (define_peephole2 for Altivec d-form store): Likewise.
4923
4924 2017-05-18 Uros Bizjak <ubizjak@gmail.com>
4925
4926 PR target/80799
4927 * config/i386/mmx.md (*mov<mode>_internal): Enable
4928 alternatives 11, 12, 13 and 14 also for 32bit targets.
4929 Remove alternatives 15, 16, 17 and 18.
4930 * config/i386/sse.md (vec_concatv2di): Change
4931 alternative (!x, *y) to (x, ?!*Yn).
4932
4933 2017-05-18 Paolo Carlini <paolo.carlini@oracle.com>
4934
4935 * dumpfile.h (enum dump_kind): Remove stray comma.
4936
4937 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
4938
4939 * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
4940 * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
4941 predicate::num_conditions
4942 (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
4943 (CHANGED): turn into predicate::changed.
4944 (agg_position_info): Move to ipa-predicate.h
4945 (add_condition, predicate::add_clause, predicate::operator &=,
4946 predicate::or_with, predicate::evaluate, predicate::probability,
4947 dump_condition, dump_clause, predicate::dump,
4948 predicate::remap_after_duplication, predicate::remap_after_inlining,
4949 predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
4950 (evaluate_conditions_for_known_args): Update.
4951 (set_cond_stmt_execution_predicate): Update.
4952 * ipa-inline.h: Include ipa-predicate.h
4953 (condition, inline_param_summary, conditions, agg_position_info,
4954 predicate): Move to ipa-predicate.h
4955 * ipa-predicate.c: New file.
4956 * ipa-predicate.h: New file.
4957
4958 2017-05-18 Wilco Dijkstra <wdijkstr@arm.com>
4959
4960 * final.c (leaf_function_p): Check we are not in a sequence.
4961
4962 2017-05-18 Martin Liska <mliska@suse.cz>
4963
4964 * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
4965 * dumpfile.c (dump_register): Use new enum dump_kind.
4966 (get_dump_file_name): Likewise.
4967 (dump_enable_all): Likewise.
4968 (dump_switch_p_1): Likewise.
4969 (enable_rtl_dump_file): Remove usage of TDF_RTL.
4970 * dumpfile.h (enum dump_kind): New enum type.
4971 (struct dump_file_info): Create constructor and
4972 format fields and comments.
4973 * passes.c (pass_manager::register_one_dump_file):
4974 Use num dump_kind.
4975 * statistics.c (statistics_early_init): Likewise.
4976 * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
4977 TDF_TREE with TDF_SLIM.
4978 (gather_memory_references_ref): Likewise.
4979
4980 2017-05-18 Martin Liska <mliska@suse.cz>
4981
4982 * vec.h (struct vnull): Use it.
4983
4984 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
4985
4986 * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
4987 (true_predicate, false_predicate, true_predicate_p,
4988 false_predicate_p): Remove.
4989 (single_cond_predicate, not_inlined_predicate): Turn to member function
4990 in ipa-inline.h
4991 (add_condition): Update.
4992 (add_clause): Turn to...
4993 (predicate::add_clause): ... this one; update; allow passing NULL
4994 as parameter.
4995 (and_predicates): Turn to ...
4996 (predicate::operator &=): ... this one.
4997 (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
4998 (or_predicates): Turn to ...
4999 (predicate::or_with): ... this one.
5000 (evaluate_predicate): Turn to ...
5001 (predicate::evaluate): ... this one.
5002 (predicate_probability): Turn to ...
5003 (predicate::probability): ... this one.
5004 (dump_condition): Update.
5005 (dump_predicate): Turn to ...
5006 (predicate::dump): ... this one.
5007 (account_size_time): Update.
5008 (edge_set_predicate): Update.
5009 (set_hint_predicate): UPdate.
5010 (evaluate_conditions_for_known_args): Update.
5011 (evaluate_properties_for_edge): Update.
5012 (remap_predicate_after_duplication): Turn to...
5013 (predicate::remap_after_duplication): ... this one.
5014 (remap_hint_predicate_after_duplication): Update.
5015 (inline_summary_t::duplicate): UPdate.
5016 (dump_inline_edge_summary): Update.
5017 (dump_inline_summary): Update.
5018 (set_cond_stmt_execution_predicate): Update.
5019 (set_switch_stmt_execution_predicate): Update.
5020 (compute_bb_predicates): Update.
5021 (will_be_nonconstant_expr_predicate): Update.
5022 (will_be_nonconstant_predicate): Update.
5023 (phi_result_unknown_predicate): Update.
5024 (predicate_for_phi_result): Update.
5025 (array_index_predicate): Update.
5026 (estimate_function_body_sizes): Update.
5027 (estimate_node_size_and_time): Update.
5028 (estimate_ipcp_clone_size_and_time): Update.
5029 (remap_predicate): Rename to ...
5030 (predicate::remap_after_inlining): ... this one.
5031 (remap_hint_predicate): Update.
5032 (inline_merge_summary): Update.
5033 (inline_update_overall_summary): Update.
5034 (estimate_size_after_inlining): Update.
5035 (read_predicate): Rename to ...
5036 (predicate::stream_in): ... this one.
5037 (read_inline_edge_summary): Update.
5038 (write_predicate): Rename to ...
5039 (predicate::stream_out): ... this one.
5040 (write_inline_edge_summary): Update.
5041 * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
5042 (clause_t): Turn to uint32_t
5043 (predicate): Turn to class; implement constructor and operators
5044 ==, !=, &
5045 (size_time_entry): Update.
5046 (inline_summary): Update.
5047 (inline_edge_summary): Update.
5048
5049 2017-05-18 Marc Glisse <marc.glisse@inria.fr>
5050
5051 * fold-const.c (fold_binary_loc): Move transformation...
5052 * match.pd (C - X CMP X): ... here.
5053
5054 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com>
5055
5056 * config/sparc/sparc.c (sparc_option_override): Set function
5057 alignment for -mcpu=niagara7 to 64 to match the I$ line.
5058 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
5059 latency to 1.
5060 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
5061 latency to 2.
5062 * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
5063
5064 2017-05-18 Marek Polacek <polacek@redhat.com>
5065
5066 PR sanitizer/80797
5067 * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
5068 (pass_ubsan::execute): Call gimple_assign_single_p instead of
5069 gimple_assign_load_p.
5070
5071 2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
5072
5073 PR middle-end/80692
5074 * real.c (do_compare): Give decimal_do_compare preference over
5075 comparing just the signs.
5076
5077 2017-05-17 Uros Bizjak <ubizjak@gmail.com>
5078
5079 * doc/md.texi (Canonicalization of Instructions): Describe the
5080 canonical form of instructions that inherently set a condition
5081 code register.
5082
5083 2017-05-17 Peter Bergner <bergner@vnet.ibm.com>
5084
5085 PR middle-end/80775
5086 * tree-cfg.c: Move deletion of unreachable case statements to after
5087 the merging of consecutive case labels.
5088
5089 2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
5090
5091 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
5092 readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
5093 restoring of callee-saved registers.
5094
5095 2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
5096
5097 * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
5098 * config/visium/visium.c (single_set_and_flags): Likewise.
5099 * config/visium/visium.md (Substitutions): Likewise.
5100
5101 2017-05-17 Martin Liska <mliska@suse.cz>
5102
5103 * cfg.c: Introduce dump_flags_t type and
5104 use it instead of int type.
5105 * cfg.h: Likewise.
5106 * cfghooks.c: Likewise.
5107 * cfghooks.h (struct cfg_hooks): Likewise.
5108 * cfgrtl.c: Likewise.
5109 * cfgrtl.h: Likewise.
5110 * cgraph.c (cgraph_node::get_body): Likewise.
5111 * coretypes.h: Likewise.
5112 * domwalk.c: Likewise.
5113 * domwalk.h: Likewise.
5114 * dumpfile.c (struct dump_option_value_info): Likewise.
5115 (dump_enable_all): Likewise.
5116 (dump_switch_p_1): Likewise.
5117 (opt_info_switch_p): Likewise.
5118 * dumpfile.h (enum tree_dump_index): Likewise.
5119 (struct dump_file_info): Likewise.
5120 * genemit.c: Likewise.
5121 * generic-match-head.c: Likewise.
5122 * gengtype.c (open_base_files): Likewise.
5123 * gimple-pretty-print.c: Likewise.
5124 * gimple-pretty-print.h: Likewise.
5125 * graph.c (print_graph_cfg): Likewise.
5126 * graphite-scop-detection.c (dot_all_sese): Likewise.
5127 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
5128 * loop-unroll.c (report_unroll): Likewise.
5129 * passes.c (pass_manager::register_one_dump_file): Likewise.
5130 * print-tree.c: Likewise.
5131 * statistics.c: Likewise.
5132 * tree-cfg.c: Likewise.
5133 * tree-cfg.h: Likewise.
5134 * tree-dfa.c: Likewise.
5135 * tree-dfa.h: Likewise.
5136 * tree-dump.c (dump_function): Likewise.
5137 * tree-dump.h (struct dump_info): Likewise.
5138 * tree-pretty-print.c: Likewise.
5139 * tree-pretty-print.h: Likewise.
5140 * tree-ssa-live.c: Likewise.
5141 * tree-ssa-live.h: Likewise.
5142 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
5143 * tree-vect-loop.c: Likewise.
5144 * tree-vect-slp.c: Likewise.
5145
5146 2017-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5147 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5148
5149 PR tree-optimization/80457
5150 * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
5151 of all arguments to a statement as scalar_to_vec operations.
5152 (vectorizable_call): Adjust call to vect_model_simple_cost for
5153 new parameter.
5154 (vectorizable_conversion): Likewise.
5155 (vectorizable_assignment): Likewise.
5156 (vectorizable_shift): Likewise.
5157 (vectorizable_operation): Likewise.
5158 (vectorizable_comparison): Likewise.
5159 (vect_is_simple_cond): Record the def types for operands.
5160 (vectorizable_condition): Likewise, call vect_model_simple_cost.
5161 * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
5162 for statement argument count.
5163
5164 2017-05-16 Carl Love <cel@us.ibm.com>
5165
5166 * config/rs6000/rs6000-c: Add support for built-in functions
5167 vector unsigned long long vec_bperm (vector unsigned long long,
5168 vector unsigned char)
5169 vector signed long long vec_mule (vector signed int,
5170 vector signed int)
5171 vector unsigned long long vec_mule (vector unsigned int,
5172 vector unsigned int)
5173 vector signed long long vec_mulo (vector signed int,
5174 vector signed int)
5175 vector unsigned long long vec_mulo (vector unsigned int,
5176 vector unsigned int)
5177 vector signed char vec_sldw (vector signed char,
5178 vector signed char,
5179 const int)
5180 vector unsigned char vec_sldw (vector unsigned char,
5181 vector unsigned char,
5182 const int)
5183 vector signed short vec_sldw (vector signed short,
5184 vector signed short,
5185 const int)
5186 vector unsigned short vec_sldw (vector unsigned short,
5187 vector unsigned short,
5188 const int)
5189 vector signed int vec_sldw (vector signed int,
5190 vector signed int,
5191 const int)
5192 vector unsigned int vec_sldw (vector unsigned int,
5193 vector unsigned int,
5194 const int)
5195 vector signed long long vec_sldw (vector signed long long,
5196 vector signed long long,
5197 const int)
5198 vector unsigned long long vec_sldw (vector unsigned long long,
5199 vector unsigned long long,
5200 const int)
5201 * config/rs6000/rs6000-c: Add support for built-in functions
5202 * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
5203 * config/rs6000/altivec.h: Add defintion for vec_sldw.
5204 * doc/extend.texi: Update the built-in documentation for the
5205 new built-in functions.
5206
5207 2017-05-16 Marek Polacek <polacek@redhat.com>
5208
5209 PR sanitizer/80536
5210 PR sanitizer/80386
5211 * tree.c (save_expr): Don't fold the expression.
5212
5213 2017-05-16 Uros Bizjak <ubizjak@gmail.com>
5214
5215 * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
5216 to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
5217 and (?*y,m). Update insn attributes.
5218
5219 2017-05-16 Martin Liska <mliska@suse.cz>
5220
5221 * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
5222 flags argument of print_gimple_stmt, print_gimple_expr,
5223 print_generic_stmt and print_generic_expr.
5224 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
5225 * coretypes.h: Likewise.
5226 * except.c (dump_eh_tree): Likewise.
5227 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5228 * gimple-pretty-print.h: Likewise.
5229 * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
5230 (backprop::push_to_worklist): Likewise.
5231 (backprop::pop_from_worklist): Likewise.
5232 (backprop::process_use): Likewise.
5233 (backprop::intersect_uses): Likewise.
5234 (note_replacement): Likewise.
5235 * gimple-ssa-store-merging.c
5236 (pass_store_merging::terminate_all_aliasing_chains): Likewise.
5237 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
5238 (pass_store_merging::execute): Likewise.
5239 * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
5240 (ssa_base_cand_dump_callback): Likewise.
5241 (dump_incr_vec): Likewise.
5242 (replace_refs): Likewise.
5243 (replace_mult_candidate): Likewise.
5244 (create_add_on_incoming_edge): Likewise.
5245 (create_phi_basis): Likewise.
5246 (insert_initializers): Likewise.
5247 (all_phi_incrs_profitable): Likewise.
5248 (introduce_cast_before_cand): Likewise.
5249 (replace_one_candidate): Likewise.
5250 * gimplify.c (gimplify_expr): Likewise.
5251 * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
5252 (set_rename): Likewise.
5253 (rename_uses): Likewise.
5254 (copy_loop_phi_nodes): Likewise.
5255 (add_close_phis_to_merge_points): Likewise.
5256 (copy_loop_close_phi_args): Likewise.
5257 (copy_cond_phi_args): Likewise.
5258 (graphite_copy_stmts_from_block): Likewise.
5259 (translate_pending_phi_nodes): Likewise.
5260 * graphite-poly.c (print_pdr): Likewise.
5261 (dump_gbb_cases): Likewise.
5262 (dump_gbb_conditions): Likewise.
5263 (print_scop_params): Likewise.
5264 * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
5265 (build_cross_bb_scalars_use): Likewise.
5266 (gather_bbs::before_dom_children): Likewise.
5267 * hsa-dump.c (dump_hsa_immed): Likewise.
5268 * ipa-cp.c (print_ipcp_constant_value): Likewise.
5269 (get_replacement_map): Likewise.
5270 * ipa-inline-analysis.c (dump_condition): Likewise.
5271 (estimate_function_body_sizes): Likewise.
5272 * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
5273 (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
5274 * ipa-prop.c (ipa_dump_param): Likewise.
5275 (ipa_print_node_jump_functions_for_edge): Likewise.
5276 (ipa_modify_call_arguments): Likewise.
5277 (ipa_modify_expr): Likewise.
5278 (ipa_dump_param_adjustments): Likewise.
5279 (ipa_dump_agg_replacement_values): Likewise.
5280 (ipcp_modif_dom_walker::before_dom_children): Likewise.
5281 * ipa-pure-const.c (check_stmt): Likewise.
5282 (pass_nothrow::execute): Likewise.
5283 * ipa-split.c (execute_split_functions): Likewise.
5284 * omp-offload.c (dump_oacc_loop_part): Likewise.
5285 (dump_oacc_loop): Likewise.
5286 * trans-mem.c (tm_log_emit): Likewise.
5287 (tm_memopt_accumulate_memops): Likewise.
5288 (dump_tm_memopt_set): Likewise.
5289 (dump_tm_memopt_transform): Likewise.
5290 * tree-cfg.c (gimple_verify_flow_info): Likewise.
5291 (print_loop): Likewise.
5292 * tree-chkp-opt.c (chkp_print_addr): Likewise.
5293 (chkp_gather_checks_info): Likewise.
5294 (chkp_get_check_result): Likewise.
5295 (chkp_remove_check_if_pass): Likewise.
5296 (chkp_use_outer_bounds_if_possible): Likewise.
5297 (chkp_reduce_bounds_lifetime): Likewise.
5298 * tree-chkp.c (chkp_register_addr_bounds): Likewise.
5299 (chkp_mark_completed_bounds): Likewise.
5300 (chkp_register_incomplete_bounds): Likewise.
5301 (chkp_mark_invalid_bounds): Likewise.
5302 (chkp_maybe_copy_and_register_bounds): Likewise.
5303 (chkp_build_returned_bound): Likewise.
5304 (chkp_get_bound_for_parm): Likewise.
5305 (chkp_build_bndldx): Likewise.
5306 (chkp_get_bounds_by_definition): Likewise.
5307 (chkp_generate_extern_var_bounds): Likewise.
5308 (chkp_get_bounds_for_decl_addr): Likewise.
5309 * tree-chrec.c (chrec_apply): Likewise.
5310 * tree-data-ref.c (dump_data_reference): Likewise.
5311 (dump_subscript): Likewise.
5312 (dump_data_dependence_relation): Likewise.
5313 (analyze_overlapping_iterations): Likewise.
5314 * tree-inline.c (expand_call_inline): Likewise.
5315 (tree_function_versioning): Likewise.
5316 * tree-into-ssa.c (dump_defs_stack): Likewise.
5317 (dump_currdefs): Likewise.
5318 (dump_names_replaced_by): Likewise.
5319 (dump_update_ssa): Likewise.
5320 (update_ssa): Likewise.
5321 * tree-object-size.c (pass_object_sizes::execute): Likewise.
5322 * tree-parloops.c (build_new_reduction): Likewise.
5323 (try_create_reduction_list): Likewise.
5324 (ref_conflicts_with_region): Likewise.
5325 (oacc_entry_exit_ok_1): Likewise.
5326 (oacc_entry_exit_single_gang): Likewise.
5327 * tree-pretty-print.h: Likewise.
5328 * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
5329 (get_scalar_evolution): Likewise.
5330 (add_to_evolution): Likewise.
5331 (get_loop_exit_condition): Likewise.
5332 (analyze_evolution_in_loop): Likewise.
5333 (analyze_initial_condition): Likewise.
5334 (analyze_scalar_evolution): Likewise.
5335 (instantiate_scev): Likewise.
5336 (number_of_latch_executions): Likewise.
5337 (gather_chrec_stats): Likewise.
5338 (final_value_replacement_loop): Likewise.
5339 (scev_const_prop): Likewise.
5340 * tree-sra.c (dump_access): Likewise.
5341 (disqualify_candidate): Likewise.
5342 (create_access): Likewise.
5343 (reject): Likewise.
5344 (maybe_add_sra_candidate): Likewise.
5345 (create_access_replacement): Likewise.
5346 (analyze_access_subtree): Likewise.
5347 (analyze_all_variable_accesses): Likewise.
5348 (sra_modify_assign): Likewise.
5349 (initialize_constant_pool_replacements): Likewise.
5350 (find_param_candidates): Likewise.
5351 (decide_one_param_reduction): Likewise.
5352 (replace_removed_params_ssa_names): Likewise.
5353 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5354 * tree-ssa-copy.c (dump_copy_of): Likewise.
5355 (copy_prop_visit_cond_stmt): Likewise.
5356 * tree-ssa-dce.c (mark_operand_necessary): Likewise.
5357 * tree-ssa-dom.c (pass_dominator::execute): Likewise.
5358 (record_equivalences_from_stmt): Likewise.
5359 * tree-ssa-dse.c (compute_trims): Likewise.
5360 (delete_dead_call): Likewise.
5361 (delete_dead_assignment): Likewise.
5362 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
5363 (forward_propagate_into_cond): Likewise.
5364 (pass_forwprop::execute): Likewise.
5365 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
5366 * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
5367 Likewise.
5368 (move_computations_worker): Likewise.
5369 (execute_sm): Likewise.
5370 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
5371 (remove_exits_and_undefined_stmts): Likewise.
5372 (remove_redundant_iv_tests): Likewise.
5373 * tree-ssa-loop-ivopts.c (dump_use): Likewise.
5374 (adjust_iv_update_pos): Likewise.
5375 * tree-ssa-math-opts.c (bswap_replace): Likewise.
5376 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
5377 (value_replacement): Likewise.
5378 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
5379 * tree-ssa-pre.c (print_pre_expr): Likewise.
5380 (get_representative_for): Likewise.
5381 (create_expression_by_pieces): Likewise.
5382 (insert_into_preds_of_block): Likewise.
5383 (eliminate_insert): Likewise.
5384 (eliminate_dom_walker::before_dom_children): Likewise.
5385 (eliminate): Likewise.
5386 (remove_dead_inserted_code): Likewise.
5387 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
5388 * tree-ssa-reassoc.c (get_rank): Likewise.
5389 (eliminate_duplicate_pair): Likewise.
5390 (eliminate_plus_minus_pair): Likewise.
5391 (eliminate_not_pairs): Likewise.
5392 (undistribute_ops_list): Likewise.
5393 (eliminate_redundant_comparison): Likewise.
5394 (update_range_test): Likewise.
5395 (optimize_range_tests_var_bound): Likewise.
5396 (optimize_vec_cond_expr): Likewise.
5397 (rewrite_expr_tree): Likewise.
5398 (rewrite_expr_tree_parallel): Likewise.
5399 (linearize_expr): Likewise.
5400 (break_up_subtract): Likewise.
5401 (linearize_expr_tree): Likewise.
5402 (attempt_builtin_powi): Likewise.
5403 (attempt_builtin_copysign): Likewise.
5404 (transform_stmt_to_copy): Likewise.
5405 (transform_stmt_to_multiply): Likewise.
5406 (dump_ops_vector): Likewise.
5407 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
5408 (print_scc): Likewise.
5409 (set_ssa_val_to): Likewise.
5410 (visit_reference_op_store): Likewise.
5411 (visit_use): Likewise.
5412 (sccvn_dom_walker::before_dom_children): Likewise.
5413 (run_scc_vn): Likewise.
5414 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
5415 Likewise.
5416 (expr_hash_elt::print): Likewise.
5417 (const_and_copies::pop_to_marker): Likewise.
5418 (const_and_copies::record_const_or_copy_raw): Likewise.
5419 * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
5420 * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
5421 (dump_predicates): Likewise.
5422 (find_uninit_use): Likewise.
5423 (warn_uninitialized_phi): Likewise.
5424 (pass_late_warn_uninitialized::execute): Likewise.
5425 * tree-ssa.c (verify_vssa): Likewise.
5426 (verify_ssa): Likewise.
5427 (maybe_optimize_var): Likewise.
5428 * tree-vrp.c (dump_value_range): Likewise.
5429 (dump_all_value_ranges): Likewise.
5430 (dump_asserts_for): Likewise.
5431 (register_edge_assert_for_2): Likewise.
5432 (vrp_visit_cond_stmt): Likewise.
5433 (vrp_visit_switch_stmt): Likewise.
5434 (vrp_visit_stmt): Likewise.
5435 (vrp_visit_phi_node): Likewise.
5436 (simplify_cond_using_ranges_1): Likewise.
5437 (fold_predicate_in): Likewise.
5438 (evrp_dom_walker::before_dom_children): Likewise.
5439 (evrp_dom_walker::push_value_range): Likewise.
5440 (evrp_dom_walker::pop_value_range): Likewise.
5441 (execute_early_vrp): Likewise.
5442
5443 2017-05-16 Richard Biener <rguenther@suse.de>
5444
5445 * dwarf2out.c (loc_list_from_tree_1): Do not create
5446 DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
5447
5448 2017-05-16 Richard Biener <rguenther@suse.de>
5449
5450 * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
5451 just generated.
5452 (note_variable_value_in_expr): If we resolved the decl ref
5453 do not push to the stack.
5454
5455 2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
5456
5457 * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
5458 operations in fast-math mode.
5459 (vaddq_f16): Likewise.
5460 (vmul_f16): Likewise.
5461 (vmulq_f16): Likewise.
5462 (vsub_f16): Likewise.
5463 (vsubq_f16): Likewise.
5464 * config/arm/neon.md (add<mode>3): New.
5465 (sub<mode>3): New.
5466 (fma:<VH:mode>3): New. Also remove outdated comment.
5467 (mul<mode>3): New.
5468
5469 2017-05-16 Martin Liska <mliska@suse.cz>
5470
5471 PR ipa/79849.
5472 PR ipa/79850.
5473 * ipa-devirt.c (warn_types_mismatch): Fix typo.
5474 (odr_types_equivalent_p): Likewise.
5475
5476 2017-05-15 Sylvestre Ledru <sylvestre@debian.org>
5477
5478 * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
5479
5480 2017-05-15 Uros Bizjak <ubizjak@gmail.com>
5481
5482 PR target/80425
5483 * config/i386.i386.md (*zero_extendsidi2): Do not penalize
5484 non-interunit SSE move alternatives with '?'.
5485 (zero-extendsidi peephole2): New peephole to skip intermediate
5486 general register in SSE zero-extend sequence.
5487
5488 2017-05-15 Jeff Law <law@redhat.com>
5489
5490 * reorg.c (relax_delay_slots): Create a new variable to hold
5491 the temporary target rather than clobbering TARGET_LABEL.
5492
5493 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
5494 missing argument to extract_bit_field call.
5495 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
5496
5497 2017-05-15 Martin Liska <mliska@suse.cz>
5498
5499 PR driver/31468
5500 * gcc.c (process_command): Do not allow empty argument of -o option.
5501
5502 2017-05-15 Renlin Li <renlin.li@arm.com>
5503
5504 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
5505 * config/aarch64/aarch64.c (aarch64_expand_call): Define.
5506 * config/aarch64/constraints.md (Usf): Add long call check.
5507 * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
5508 (call_value): Likewise.
5509 (sibcall): Likewise.
5510 (sibcall_value): Likewise.
5511 (call_insn): New.
5512 (call_value_insn): New.
5513 (sibcall_insn): Update rtx pattern.
5514 (sibcall_value_insn): Likewise.
5515 (call_internal): Remove.
5516 (call_value_internal): Likewise.
5517 (sibcall_internal): Likewise.
5518 (sibcall_value_internal): Likewise.
5519 (call_reg): Likewise.
5520 (call_symbol): Likewise.
5521 (call_value_reg): Likewise.
5522 (call_value_symbol): Likewise.
5523
5524 2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
5525
5526 PR target/80600
5527 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
5528
5529 2017-05-14 Uros Bizjak <ubizjak@gmail.com>
5530
5531 * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
5532 compatible with CCGOCmode and with CCZmode.
5533
5534 2017-05-14 Martin Sebor <msebor@redhat.com>
5535
5536 PR middle-end/77671
5537 * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
5538 (gimple_fold_builtin_snprintf): Same.
5539 * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
5540 (gimple_fold_builtin_snprintf): Same.
5541 * gimple-ssa-sprintf.c (get_format_string): Correct the detection
5542 of character types.
5543 (is_call_safe): New function.
5544 (try_substitute_return_value): Call it.
5545 (try_simplify_call): New function.
5546 (pass_sprintf_length::handle_gimple_call): Call it.
5547
5548 2017-05-14 Martin Sebor <msebor@redhat.com>
5549
5550 PR middle-end/80669
5551 * builtins.c (expand_builtin_stpncpy): Simplify.
5552
5553 2017-05-14 Daniel Santos <daniel.santos@pobox.com>
5554
5555 * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
5556 * config/i386/i386.h
5557 (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
5558 (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
5559 (struct machine_function): Add new members call_ms2sysv,
5560 call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
5561 (struct machine_frame_state): New fields sp_realigned and
5562 sp_realigned_offset.
5563 * config/i386/i386.c
5564 (enum xlogue_stub): New enum.
5565 (enum xlogue_stub_sets): New enum.
5566 (class xlogue_layout): New class.
5567 (struct ix86_frame): New fields stack_realign_allocate_offset,
5568 stack_realign_offset and outlined_save_offset. Modify comments to
5569 detail stack layout when using out-of-line stubs.
5570 (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
5571 (ix86_option_override_internal): Add sorry() for TARGET_SEH and
5572 -mcall-ms2sysv-xlogues.
5573 (stub_managed_regs): New static variable.
5574 (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
5575 registers managed by out-of-line stub.
5576 (disable_call_ms2sysv_xlogues): New function.
5577 (ix86_compute_frame_layout): Modify re-alignment calculations, disable
5578 m->call_ms2sysv when appropriate and compute frame layout for
5579 out-of-line stubs.
5580 (sp_valid_at, fp_valid_at): New inline functions.
5581 (choose_basereg): New function.
5582 (choose_baseaddr): Add align parameter, use choose_basereg and modify
5583 all callers.
5584 (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
5585 Use align parameter of choose_baseaddr to generated aligned SSE movs
5586 when possible.
5587 (pro_epilogue_adjust_stack): Modify to track
5588 machine_frame_state::sp_realigned.
5589 (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
5590 (ix86_nsaved_sseregs): Likewise.
5591 (ix86_emit_save_regs): Likewise.
5592 (ix86_emit_save_regs_using_mov): Likewise.
5593 (ix86_emit_save_sse_regs_using_mov): Likewise.
5594 (get_scratch_register_on_entry): Likewise.
5595 (gen_frame_set): New function.
5596 (gen_frame_load): Likewise.
5597 (gen_frame_store): Likewise.
5598 (emit_outlined_ms2sysv_save): Likewise.
5599 (emit_outlined_ms2sysv_restore): Likewise.
5600 (ix86_expand_prologue): Modify stack re-alignment code and call
5601 emit_outlined_ms2sysv_save when appropriate.
5602 (ix86_emit_leave): Clear machine_frame_state::sp_realigned. Add
5603 parameter rtx_insn *insn, which allows the function to be used to only
5604 generate the notes.
5605 (ix86_expand_epilogue): Modify validity checks of frame and stack
5606 pointers, and call emit_outlined_ms2sysv_restore when appropriate.
5607 (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
5608 * config/i386/predicates.md
5609 (save_multiple): New predicate.
5610 (restore_multiple): Likewise.
5611 * config/i386/sse.md
5612 (save_multiple<mode>): New pattern.
5613 (save_multiple_realign<mode>): Likewise.
5614 (restore_multiple<mode>): Likewise.
5615 (restore_multiple_and_return<mode>): Likewise.
5616 (restore_multiple_leave_return<mode>): Likewise.
5617 * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
5618
5619 2017-05-14 Julia Koval <julia.koval@intel.com>
5620
5621 * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
5622 * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
5623 (__builtin_ia32_xsetbv): New builtins.
5624 * config/i386/i386.c (ix86_expand_special_args_builtin):
5625 Process new types.
5626 (ix86_expand_builtin): Special expand for new intrinsics.
5627 * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
5628 (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
5629 * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
5630
5631 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5632
5633 * cfganal.c (inverted_post_order_compute): Change argument type
5634 to vec *.
5635 * cfganal.h (inverted_post_order_compute): Adjust prototype.
5636 * df-core.c (rest_of_handle_df_initialize): Adjust.
5637 (rest_of_handle_df_finish): Likewise.
5638 (df_analyze_1): Likewise.
5639 (df_analyze): Likewise.
5640 (loop_inverted_post_order_compute): Change argument to be a vec *.
5641 (df_analyze_loop): Adjust.
5642 (df_get_n_blocks): Likewise.
5643 (df_get_postorder): Likewise.
5644 * df.h (struct df_d): Change field to be a vec.
5645 * lcm.c (compute_laterin): Adjust.
5646 (compute_available): Likewise.
5647 * lra-lives.c (lra_create_live_ranges_1): Likewise.
5648 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
5649 * tree-ssa-pre.c (compute_antic): Likewise.
5650
5651 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5652
5653 * cfganal.c (connect_infinite_loops_to_exit): Adjust.
5654 (depth_first_search::depth_first_search): Change structure init
5655 function to this constructor.
5656 (depth_first_search::add_bb): Rename function to this member.
5657 (depth_first_search::execute): Likewise.
5658 (flow_dfs_compute_reverse_finish): Adjust.
5659
5660 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5661
5662 * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
5663 (longest_simple_path): Likewise.
5664 * shrink-wrap.c (spread_components): Likewise.
5665 (disqualify_problematic_components): Likewise.
5666 (emit_common_heads_for_components): Likewise.
5667 (emit_common_tails_for_components): Likewise.
5668 (insert_prologue_epilogue_for_components): Likewise.
5669
5670 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5671
5672 * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
5673 auto_sbitmap.
5674
5675 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5676
5677 * df-core.c (df_set_blocks): Start using auto_bitmap.
5678 (df_compact_blocks): Likewise.
5679 * df-problems.c (df_rd_confluence_n): Likewise.
5680 * df-scan.c (df_insn_rescan_all): Likewise.
5681 (df_process_deferred_rescans): Likewise.
5682 (df_update_entry_block_defs): Likewise.
5683 (df_update_exit_block_uses): Likewise.
5684 (df_entry_block_bitmap_verify): Likewise.
5685 (df_exit_block_bitmap_verify): Likewise.
5686 (df_scan_verify): Likewise.
5687 * lra-constraints.c (lra_constraints): Likewise.
5688 (undo_optional_reloads): Likewise.
5689 (lra_undo_inheritance): Likewise.
5690 * lra-remat.c (calculate_gen_cands): Likewise.
5691 (do_remat): Likewise.
5692 * lra-spills.c (assign_spill_hard_regs): Likewise.
5693 (spill_pseudos): Likewise.
5694 * tree-ssa-pre.c (bitmap_set_and): Likewise.
5695 (bitmap_set_subtract_values): Likewise.
5696
5697 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5698
5699 * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
5700 management with auto_bitmap.
5701 (fix_inter_tick): Likewise.
5702 (fix_recovery_deps): Likewise.
5703 * ira.c (add_store_equivs): Likewise.
5704 (find_moveable_pseudos): Likewise.
5705 (split_live_ranges_for_shrink_wrap): Likewise.
5706 * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
5707 (rtx_reuse_manager::seen_def_p): Likewise.
5708 (rtx_reuse_manager::set_seen_def): Likewise.
5709 * print-rtl.h (class rtx_reuse_manager): Likewise.
5710
5711 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5712
5713 * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
5714 lifetime.
5715 (migrate_btr_def): Likewise.
5716 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
5717 * df-core.c (loop_post_order_compute): Likewise.
5718 (loop_inverted_post_order_compute): Likewise.
5719 * hsa-common.h: Likewise.
5720 * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
5721 * init-regs.c (initialize_uninitialized_regs): Likewise.
5722 * ipa-inline.c (resolve_noninline_speculation): Likewise.
5723 (inline_small_functions): Likewise.
5724 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
5725 * ira.c (combine_and_move_insns): Likewise.
5726 (build_insn_chain): Likewise.
5727 * loop-invariant.c (find_invariants): Likewise.
5728 * lower-subreg.c (propagate_pseudo_copies): Likewise.
5729 * predict.c (tree_predict_by_opcode): Likewise.
5730 (predict_paths_leading_to): Likewise.
5731 (predict_paths_leading_to_edge): Likewise.
5732 (estimate_loops_at_level): Likewise.
5733 (estimate_loops): Likewise.
5734 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5735 (spread_components): Likewise.
5736 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
5737 * tree-loop-distribution.c (rdg_build_partitions): Likewise.
5738 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
5739 * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
5740 * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
5741 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
5742 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
5743 * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
5744 (mark_threaded_blocks): Likewise.
5745 (thread_through_all_blocks): Likewise.
5746 * tree-ssa.c (verify_ssa): Likewise.
5747 (execute_update_addresses_taken): Likewise.
5748 * tree-ssanames.c (verify_ssaname_freelists): Likewise.
5749
5750 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5751
5752 * cfganal.c (mark_dfs_back_edges): Replace manual stack with
5753 auto_vec.
5754 (post_order_compute): Likewise.
5755 (inverted_post_order_compute): Likewise.
5756 (pre_and_rev_post_order_compute_fn): Likewise.
5757
5758 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5759
5760 * genrecog.c (int_set::int_set): Explicitly construct our
5761 auto_vec base class.
5762 * vec.h (auto_vec::auto_vec): New constructor.
5763
5764 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5765
5766 * bitmap.h (class auto_bitmap): New constructor taking
5767 bitmap_obstack * argument.
5768
5769 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5770
5771 * bitmap.h (class auto_bitmap): Change type of m_bits to
5772 bitmap_head, and adjust ctor / dtor and member operators.
5773
5774 2017-05-13 Uros Bizjak <ubizjak@gmail.com>
5775
5776 * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
5777 when returned register mode doesn't match original mode.
5778
5779 2017-05-12 Jeff Law <law@redhat.com>
5780 Jakub Jelinek <jakub@redhat.com>
5781
5782 * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
5783 we look for cc setter after the compare-elim changes.
5784 * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
5785 within the vector to match what compare-elim now expects.
5786 (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
5787 (xorsi3_flags, one_cmplsi2_flags): Likewise.
5788
5789 * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
5790 after the compare-elim changes.
5791 * config/rx/rx.md (abssi2_flags): Fix order of patterns within
5792 the vector to match what compare-elim now expects.
5793 (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
5794 (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
5795 (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
5796 (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
5797 (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
5798
5799 * config/visium/visium.c (single_set_and_flags): Fix where
5800 we look for cc setter after the compare-elim changes.
5801 * config/visium/visium.md (flags_subst_logic): Fix order of patterns
5802 with the vector to match what compare-elim now expects.
5803 (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
5804 (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
5805 (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
5806 (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
5807 (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
5808 (neg<mode>2_insn_set_overflow): Likewise.
5809
5810 2017-05-12 Jim Wilson <jim.wilson@linaro.org>
5811
5812 PR middle-end/79794
5813 * expmed.c (extract_bit_field_1): Add alt_rtl argument. Before
5814 maybe_expand_insn call, set ops[0].target. If still set after call,
5815 set alt_rtl. Add extra arg to recursive calls.
5816 (extract_bit_field): Add alt_rtl argument. Pass to
5817 extract_bit_field.
5818 * expmed.h (extract_bit_field): Fix prototype.
5819 * expr.c (emit_group_load_1, copy_blkmode_from_reg)
5820 (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
5821 to extract_bit_field_calls.
5822 (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
5823 Pass alt_rtl to extract_bit_field calls.
5824 * calls.c (store_unaligned_arguments_into_psuedos)
5825 load_register_parameters): Pass extra NULL to extract_bit_field calls.
5826 * optabs.c (maybe_legitimize_operand): Clear op->target when call
5827 gen_reg_rtx.
5828 * optabs.h (struct expand_operand): Add target bitfield.
5829
5830 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
5831
5832 * compare-elim.c (try_eliminate_compare): Canonicalize
5833 operation with embedded compare to
5834 [(set (reg:CCM) (compare:CCM (operation) (immediate)))
5835 (set (reg) (operation)].
5836
5837 * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
5838
5839 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
5840
5841 PR target/80723
5842 * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
5843 cost of adding a carry flag for ADC instruction.
5844 [case MINUS]: Ignore the cost of subtracting a carry flag
5845 for SBB instruction.
5846
5847 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org>
5848
5849 * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
5850 and x86intrin.h
5851 * config/rs6000/bmiintrin.h: New file.
5852 * config/rs6000/bmi2intrin.h: New file.
5853 * config/rs6000/x86intrin.h: New file.
5854
5855 2017-05-12 Jeff Law <law@redhat.com>
5856
5857 * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
5858 markers.
5859
5860 2017-05-12 Peter Bergner <bergner@vnet.ibm.com>
5861
5862 PR middle-end/80707
5863 * tree-cfg.c: Remove cfg edges of unreachable case statements.
5864
5865 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
5866
5867 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
5868 early expansion of vector divide builtins.
5869 (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
5870 builtins identified as having unsigned arguments.
5871
5872 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
5873
5874 * config/rs6000/rs6000.c (gimple-fold.h): New #include.
5875 (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
5876 expansion of vector logical operations (and, andc, or, xor,
5877 nor, orc, nand).
5878
5879 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
5880
5881 * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
5882 * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
5883
5884 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
5885
5886 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
5887 early GIMPLE expansion of vector multiplies.
5888
5889 2017-05-12 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
5890
5891 * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
5892 TARGET_HAVE_MOVT conditional.
5893 (movt splitter): Likewise.
5894
5895 2017-05-12 Richard Biener <rguenther@suse.de>
5896
5897 * tree-ssa-sccvn.h (has_VN_INFO): Declare.
5898 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5899 Fold all stmts not inplace.
5900
5901 2017-05-12 Richard Biener <rguenther@suse.de>
5902
5903 PR tree-optimization/80713
5904 * tree-ssa-pre.c (remove_dead_inserted_code): Clear
5905 inserted_exprs bit for not removed stmts.
5906
5907 2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
5908
5909 PR middle-end/69921
5910 * tree-parloops.c (create_parallel_loop): Set "oacc kernels
5911 parallelized" attribute for parallelized OpenACC kernels.
5912 * omp-offload.c (execute_oacc_device_lower): Use it.
5913
5914 * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
5915 Set "oacc kernels" attribute.
5916 * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
5917 parameter. Adjust all users.
5918 (oacc_fn_attrib_kernels_p): Remove function.
5919 * omp-offload.c (execute_oacc_device_lower): Look for "oacc
5920 kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
5921 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
5922 * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
5923 assert "oacc kernels" attribute is set.
5924
5925 2017-05-11 Carl Love <cel@us.ibm.com>
5926
5927 * config/rs6000/rs6000-c: Add support for built-in functions
5928 vector unsigned char vec_popcnt (vector signed char)
5929 vector unsigned char vec_popcnt (vector unsigned char)
5930 vector unsigned short vec_popcnt (vector signed short)
5931 vector unsigned short vec_popcnt (vector unsigned short)
5932 vector unsigned int vec_popcnt (vector signed int)
5933 vector unsigned int vec_popcnt (vector unsigned int)
5934 vector unsigned long long vec_popcnt (vector signed long long)
5935 vector unsigned long long vec_popcnt (vector unsigned long long)
5936 vector signed long long vec_slo (vector signed long long,
5937 vector signed char)
5938 vector signed long long vec_slo (vector signed long long,
5939 vector unsigned char)
5940 vector unsigned long long vec_slo (vector unsigned long long,
5941 vector signed char)
5942 vector unsigned long long vec_slo (vector unsigned long long,
5943 vector unsigned char)
5944 * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
5945 VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
5946 * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
5947 vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
5948 * doc/extend.texi: Update the built-in documentation file for the
5949 new built-in functions.
5950
5951 2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5952
5953 * attribs.h (sorted_attr_string): Move machine independent
5954 functions for target clone support from the i386 port to common
5955 code. Rename ix86_function_versions to common_function_versions.
5956 Rename make_name to make_unique_name.
5957 (common_function_versions): Likewise.
5958 (make_unique_name): Likewise.
5959 (make_dispatcher_decl): Likewise.
5960 (is_function_default_version): Likewise.
5961 * attribs.c (attr_strcmp): Likewise.
5962 (sorted_attr_string): Likewise.
5963 (common_function_versions): Likewise.
5964 (make_unique_name): Likewise.
5965 (make_dispatcher_decl): Likewise.
5966 (is_function_default_version): Likewise.
5967 * config/i386/i386.c (attr_strcmp): Likewise.
5968 (sorted_attr_string): Likewise.
5969 (ix86_function_versions): Likewise.
5970 (make_name): Likewise.
5971 (make_dispatcher_decl): Likewise.
5972 (is_function_default_version): Likewise.
5973 (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
5974
5975 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5976
5977 PR target/80695
5978 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5979 Account for direct move costs for vec_construct of integer
5980 vectors.
5981
5982 2017-05-11 Uros Bizjak <ubizjak@gmail.com>
5983
5984 PR target/80706
5985 * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
5986 (UNSPEC_STX_ATOMIC): Ditto.
5987 (loaddi_via_sse): New insn.
5988 (storedi_via_sse): Ditto.
5989 (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
5990 Update corresponding peephole2 patterns.
5991 (atomic_storedi_fpu): Ditto.
5992
5993 2017-05-11 Julia Koval <julia.koval@intel.com>
5994
5995 * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
5996 (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
5997 New intrinsics.
5998 * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
5999 (__builtin_ia32_rsqrt14ss_mask): New builtins.
6000 * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
6001
6002 2017-05-11 Nathan Sidwell <nathan@acm.org>
6003
6004 * graphite-poly.c: Include dumpfile.h.
6005
6006 * dumpfle.h (dump_function): Declare here ...
6007 * tree-dump.h (dump_function): ... not here.
6008 * dumpfile.c: #include tree-cfg.h.
6009 (dump_function): Move here from ...
6010 * tree-dump.c (dump_function): ... here.
6011 * gimplify.c: #include splay-tree.h, not tree-dump.h.
6012 * graphite-poly.c: Don't include tree-dump.h.
6013 * cgraphclones.c: Include dumpfile.h not tree-dump.h.
6014 * print-tree.c: Likewise.
6015 * stor-layout.c: Likewise.
6016 * tree-nested.c: Likewise.
6017
6018 * dumpfile.c (dump_start): Use TDF_FLAGS.
6019 (dump_enable_all): Fix TDF_KIND check thinko.
6020
6021 2017-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
6022
6023 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6024 array entries to represent two legal parameterizations of the
6025 overloaded __builtin_cmpb function, as represented by the
6026 P6_OV_BUILTIN_CMPB constant.
6027 (altivec_resolve_overloaded_builtin): Add special case handling
6028 for the __builtin_cmpb function, as represented by the
6029 P6_OV_BUILTIN_CMPB constant.
6030 * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
6031 (BU_P6_64BIT_2): New macro.
6032 (BU_P6_OVERLOAD_2): New macro
6033 (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
6034 (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
6035 (CMPB): Add overload support to represent both 32-bit and 64-bit
6036 compare-bytes function.
6037 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
6038 support for TARGET_CMPB.
6039 * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
6040 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
6041 documentation of the __builtin_cmpb overloaded built-in function.
6042
6043 2017-05-11 Richard Biener <rguenther@suse.de>
6044
6045 PR tree-optimization/80705
6046 * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
6047 bases are not vectorizable.
6048
6049 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6050
6051 * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
6052 when counting register pressure.
6053
6054 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6055
6056 * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
6057 (iv_ca_more_deps): Renamed to ...
6058 (iv_ca_compare_deps): ... this.
6059 (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
6060
6061 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6062
6063 * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
6064 to ...
6065 (determine_group_iv_costs): ... here.
6066 (find_inv_vars_cb): Record inv var if it's not recorded before.
6067
6068 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6069
6070 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
6071 (get_shiftadd_cost): Ditto.
6072
6073 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6074
6075 * tree-ssa-address.c: Include header file.
6076 (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
6077 address.
6078 (add_to_parts): Refactor.
6079 (addr_to_parts): New parameter. Update use of move_hint_to_base.
6080 (create_mem_ref): Update use of addr_to_parts. Re-associate addr
6081 in new order.
6082
6083 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6084
6085 PR tree-optimization/53090
6086 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
6087 COMP_IV_EXPR_2.
6088 (extract_cond_operands): Detect condition with IV on both sides
6089 and return COMP_IV_EXPR_2.
6090 (find_interesting_uses_cond): Add iv_use for both IVs in condition.
6091 (rewrite_use_compare): Simplify by removing call to function
6092 extract_cond_operands.
6093
6094 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6095
6096 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
6097 (extract_cond_operands): Detect condition comparing against non-
6098 invariant bound and return appropriate enum value.
6099 (find_interesting_uses_cond): Update use of extract_cond_operands.
6100 Handle its return value accordingly.
6101 (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
6102
6103 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6104
6105 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
6106 nonlinear iv_use computation in loop invariant sensitive way.
6107
6108 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6109
6110 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
6111 (find_iv_candidates): Call relate_compare_use_with_all_cands.
6112
6113 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6114
6115 * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
6116 (dump_cand): Support iv_cand.inv_exprs.
6117 (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
6118 for candidates.
6119 (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
6120 iv_cand.inv_exprs.
6121
6122 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6123
6124 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
6125 from ...
6126 * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
6127 as local function. Include necessary header files.
6128 * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
6129
6130 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6131
6132 * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
6133
6134 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6135
6136 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
6137 operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
6138 RSHIFT_EXPR and BIT_NOT_EXPR.
6139
6140 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6141
6142 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
6143 (adjust_setup_cost): New parameter supporting round up adjustment.
6144 (struct address_cost_data): Delete.
6145 (force_expr_to_var_cost): Don't bound cost with spill_cost.
6146 (split_address_cost, ptr_difference_cost): Delete.
6147 (difference_cost, compare_aff_trees, record_inv_expr): Delete.
6148 (struct ainc_cost_data): New struct.
6149 (get_address_cost_ainc): New function.
6150 (get_address_cost, get_computation_cost): Reimplement.
6151 (determine_group_iv_cost_address): Record inv_expr for all uses of
6152 a group.
6153 (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
6154 (iv_ca_has_deps): Reimplemented to ...
6155 (iv_ca_more_deps): ... this. Check if NEW_CP introduces more deps
6156 than OLD_CP.
6157 (iv_ca_extend): Call iv_ca_more_deps.
6158
6159 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6160
6161 * tree-ssa-address.c (struct mem_address): Move to header file.
6162 (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
6163 * tree-ssa-address.h (struct mem_address): Move from C file.
6164 (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
6165
6166 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6167
6168 * tree-affine.h (aff_combination_type): New interface.
6169 (aff_combination_zero_p): Remove static.
6170 (aff_combination_const_p): New interface.
6171 (aff_combination_singleton_var_p): New interfaces.
6172
6173 2017-05-11 Richard Biener <rguenther@suse.de>
6174
6175 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6176 Skip unreachable blocks and destinations.
6177 (eliminate): Move stmt removal and fixup ...
6178 (fini_eliminate): ... here. Skip inserted exprs.
6179 (pass_pre::execute): Move fini_pre after fini_eliminate.
6180 * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
6181 (tail_merge_optimize): Run cleanup_tree_cfg if requested by
6182 PRE to get rid of dead code that has invalid SSA form and
6183 split critical edges again.
6184
6185 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6186
6187 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
6188
6189 2017-05-11 Richard Biener <rguenther@suse.de>
6190
6191 * passes.c (execute_function_todo): Verify loops if they are
6192 said to be up-to-date.
6193 * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
6194 * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
6195
6196 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
6197
6198 PR target/80090
6199 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
6200 handle calling assemble_external ourself.
6201
6202 PR target/79027
6203 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
6204 modes with zero size. Enhance comment.
6205
6206 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6207
6208 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
6209 built-ins for vec_xl and vec_xst with short and char pointer
6210 arguments.
6211
6212 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
6213
6214 * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
6215 (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
6216 (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
6217 (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
6218 (_mm_maskz_min_round_ss): New intrinsics.
6219 * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
6220 (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
6221 * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
6222 (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
6223 (__builtin_ia32_minss_mask_round): New builtins.
6224 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
6225 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
6226 * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
6227 Rename to ...
6228 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
6229 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
6230 Change to ...
6231 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
6232 ... this.
6233
6234 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
6235
6236 * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
6237 (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
6238 (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
6239 (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
6240 (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
6241 (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
6242 (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
6243 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
6244 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
6245 * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
6246 (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
6247 (__builtin_ia32_mulss_mask_round): New builtins.
6248 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
6249 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
6250 * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
6251 Rename to ...
6252 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
6253 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
6254 Change to ...
6255 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
6256 ... this.
6257
6258 2017-05-10 Julia Koval <julia.koval@intel.com>
6259
6260 * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
6261 (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
6262 (_mm256_setr_m128i): New intrinsics.
6263
6264 2017-05-10 Julia Koval <julia.koval@intel.com>
6265
6266 * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
6267 (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
6268 (_mm_maskz_rcp14_ss): New intrinsics.
6269 * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
6270 (__builtin_ia32_rcp14ss_mask): New builtins.
6271 * config/i386/sse.md (srcp14<mode>_mask): New pattern.
6272
6273 2017-05-10 Peter Bergner <bergner@vnet.ibm.com>
6274
6275 PR tree-optimization/51513
6276 * tree-cfg.c (gimple_seq_unreachable_p): New function.
6277 (assert_unreachable_fallthru_edge_p): Use it.
6278 (group_case_labels_stmt): Likewise.
6279 * tree-cfg.h: Prototype it.
6280 * stmt.c: Include cfghooks.h and tree-cfg.h.
6281 (emit_case_dispatch_table) <gap_label>: New local variable.
6282 Use it to fill dispatch table gaps.
6283 Test for default_label before updating probabilities.
6284 (expand_case) <default_label>: Remove unneeded initialization.
6285 Test for unreachable default case statement and remove its edge.
6286 Set default_label accordingly.
6287 * tree-ssa-ccp.c (optimize_unreachable): Update comment.
6288
6289 2017-05-10 Carl Love <cel@us.ibm.com>
6290
6291 * config/rs6000/rs6000-c: Add support for built-in functions
6292 vector signed char vec_neg (vector signed char)
6293 vector signed short int vec_neg (vector short int)
6294 vector signed int vec_neg (vector signed int)
6295 vector signed long long vec_neg (vector signed long long)
6296 vector float vec_neg (vector float)
6297 vector double vec_neg (vector double)
6298 * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
6299 overload.
6300 * config/rs6000/altivec.h: Add define for vec_neg
6301 * doc/extend.texi: Update the built-in documentation for the
6302 new built-in functions.
6303
6304 2017-05-10 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6305
6306 PR tree-optimization/77644
6307 * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
6308
6309 2017-05-10 Nathan Sidwell <nathan@acm.org>
6310
6311 * dumpfile.h (TDI_lang_all): New.
6312 (TDF_KIND): New. Renumber others
6313 (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
6314 than bits.
6315 * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add
6316 lang-all.
6317 (get_dump_file_name): Adjust suffix generation.
6318 (dump_enable_all): Use TDF_KIND.
6319 * doc/invoke.texi (-fdump-lang-all): Document.
6320
6321 * dumpfile.h: Tabify.
6322
6323 2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
6324
6325 PR target/80671
6326 * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
6327 Move member access before delete.
6328
6329 2017-05-10 Alexandre Oliva <aoliva@redhat.com>
6330
6331 * tree-inline.c (expand_call_inline): Split block at stmt
6332 before the call.
6333
6334 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6335
6336 PR target/68163
6337 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
6338 are now unused after splitting mov{sf,sd}_hardfloat.
6339 (f32_lr2): Likewise.
6340 (f32_lm): Likewise.
6341 (f32_lm2): Likewise.
6342 (f32_li): Likewise.
6343 (f32_li2): Likewise.
6344 (f32_lv): Likewise.
6345 (f32_sr): Likewise.
6346 (f32_sr2): Likewise.
6347 (f32_sm): Likewise.
6348 (f32_sm2): Likewise.
6349 (f32_si): Likewise.
6350 (f32_si2): Likewise.
6351 (f32_sv): Likewise.
6352 (f32_dm): Likewise.
6353 (f32_vsx): Likewise.
6354 (f32_av): Likewise.
6355 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
6356 For movsf, order stores so the VSX stores occur before the GPR
6357 store which encourages the register allocator to use a traditional
6358 FPR instead of a GPR. For movsd, order the stores so that the GPR
6359 store comes before the VSX stores to allow the power6 to work.
6360 This is due to the power6 not having a 32-bit integer store
6361 instruction from a FPR.
6362 (movsf_hardfloat): Likewise.
6363 (movsd_hardfloat): Likewise.
6364
6365 2017-05-09 Martin Sebor <msebor@redhat.com>
6366
6367 PR translation/80280
6368 * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
6369 added in r247778.
6370
6371 PR translation/80280
6372 * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
6373 data member added in r247778.
6374 (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
6375
6376 2017-05-09 Nathan Sidwell <nathan@acm.org>
6377
6378 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
6379
6380 * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
6381 typedefs.
6382
6383 2017-05-09 Marek Polacek <polacek@redhat.com>
6384
6385 * doc/invoke.texi: Fix typo.
6386
6387 2017-05-09 Richard Biener <rguenther@suse.de>
6388
6389 * tree-vrp.c (vrp_val_is_max): Adjust comment.
6390 (vrp_val_is_min): Likewise.
6391 (set_value_range_to_value): Likewise.
6392 (set_value_range_to_nonnegative): Likewise.
6393 (gimple_assign_nonzero_p): Likewise.
6394 (gimple_stmt_nonzero_p): Likewise.
6395 (vrp_int_const_binop): Likewise. Remove unreachable case.
6396 (adjust_range_with_scev): Adjust comments.
6397 (compare_range_with_value): Likewise.
6398 (extract_range_from_phi_node): Likewise.
6399 (test_for_singularity): Likewise.
6400
6401 2017-05-09 Richard Biener <rguenther@suse.de>
6402
6403 * tree-vrp.c (get_single_symbol): Add assert that we don't
6404 get overflowed constants as invariant part.
6405 (compare_values_warnv): Add comment before the TREE_NO_WARNING
6406 checks. Use wi::cmp instead of recursing for integer constants.
6407 (compare_values): Just ignore whether we assumed undefined
6408 overflow instead of failing the compare.
6409 (extract_range_for_var_from_comparison_expr): Add comment before the
6410 TREE_NO_WARNING sets.
6411 (test_for_singularity): Likewise.
6412 (extract_range_from_comparison): Do not disable optimization
6413 when we assumed undefined overflow.
6414 (extract_range_basic): Remove init of unused var.
6415
6416 2017-05-09 Richard Biener <rguenther@suse.de>
6417
6418 * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
6419 (extract_range_from_multiplicative_op_1): Adjust.
6420 (extract_range_from_binary_expr_1): Use int_const_binop.
6421
6422 2017-05-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
6423
6424 PR target/80101
6425 * config/rs6000/power6.md: Replace store_data_bypass_p calls with
6426 rs6000_store_data_bypass_p in seven define_bypass directives and
6427 in several comments.
6428 * config/rs6000/rs6000-protos.h: Add prototype for
6429 rs6000_store_data_bypass_p function.
6430 * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
6431 function implements slightly different (rs6000-specific) semantics
6432 than store_data_bypass_p, returning false rather than aborting
6433 with assertion error when arguments do not satisfy the
6434 requirements of store data bypass.
6435 (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
6436 rs6000_store_data_bypass_p.
6437
6438 2017-05-08 Max Filippov <jcmvbkbc@gmail.com>
6439
6440 * config/xtensa/xtensa-protos.h
6441 (xtensa_initial_elimination_offset): New declaration.
6442 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
6443 New function. Move its body from the INITIAL_ELIMINATION_OFFSET
6444 macro definition, add case for FRAME_POINTER_REGNUM when
6445 FRAME_GROWS_DOWNWARD.
6446 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
6447 (INITIAL_ELIMINATION_OFFSET): Replace body with call to
6448 xtensa_initial_elimination_offset.
6449
6450 2017-05-08 Nathan Sidwell <nathan@acm.org>
6451
6452 * doc/invoke.texi: Alphabetize -fdump options.
6453
6454 2017-05-08 Martin Sebor <msebor@redhat.com>
6455
6456 PR translation/80280
6457 * config/sol2-c.c (solaris_pragma_align): Correct quoting.
6458
6459 2017-05-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
6460
6461 * target.def (compute_frame_layout): New optional target hook.
6462 * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
6463 * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
6464 * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
6465 target hook.
6466 * reload1.c (verify_initial_elim_offsets): Likewise.
6467 * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
6468 (use_simple_return_p): Call arm_compute_frame_layout if needed.
6469 (arm_get_frame_offsets): Split up into this ...
6470 (arm_compute_frame_layout): ... and this function.
6471
6472 2017-05-08 Richard Sandiford <richard.sandiford@arm.com>
6473
6474 * config/aarch64/constraints.md (Usa): New constraint.
6475 * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
6476
6477 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
6478
6479 * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
6480 with_multilib_list after it has been checked.
6481
6482 2017-05-08 Richard Biener <rguenther@suse.de>
6483
6484 * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
6485 (bitmap_set_subtract_values): Likewise.
6486
6487 2017-05-08 Richard Biener <rguenther@suse.de>
6488
6489 * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
6490 (gimple_assign_nonzero): ... this and remove strict_overflow_p
6491 argument.
6492 (gimple_stmt_nonzero_warnv_p): Rename to ...
6493 (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
6494 argument.
6495 (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
6496 (extract_range_basic): Adjust, do not disable propagation on
6497 strict overflow sensitive simplification.
6498 (vrp_visit_cond_stmt): Likewise.
6499
6500 2017-05-05 Jan Hubicka <hubicka@ucw.cz>
6501
6502 * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
6503 body size unconditionally.
6504
6505 2017-05-07 Jeff Law <law@redhat.com>
6506
6507 Revert:
6508 2017-05-06 Jeff Law <law@redhat.com>
6509 PR tree-optimization/78496
6510 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
6511 code.
6512
6513 PR tree-optimization/78496
6514 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
6515 (simplify_stmt_using_ranges): Call it.
6516 (vrp_dom_walker::before_dom_children): Extract equivalences
6517 from an ASSERT_EXPR with an equality comparison against a
6518 constant.
6519
6520 2017-05-06 Jeff Law <law@redhat.com>
6521
6522 PR tree-optimization/78496
6523 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
6524 code.
6525
6526 PR tree-optimization/78496
6527 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
6528 (simplify_stmt_using_ranges): Call it.
6529 (vrp_dom_walker::before_dom_children): Extract equivalences
6530 from an ASSERT_EXPR with an equality comparison against a
6531 constant.
6532
6533 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
6534
6535 * lra-constraints.c (lra_copy_reg_equiv): New function.
6536 (split_reg): Use it to copy equivalence information from the
6537 original register to the spill register.
6538
6539 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
6540
6541 PR rtl-optimization/75964
6542 * simplify-rtx.c (simplify_const_relational_operation): Remove
6543 invalid handling of comparisons of integer ABS.
6544
6545 2017-05-06 Uros Bizjak <ubizjak@gmail.com>
6546
6547 * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
6548 initialize to zero.
6549 (init_regs): Remove declaration.
6550 (function_arg_advance_32): Initialize error_p as boolean variable.
6551
6552 2017-05-05 Nathan Sidwell <nathan@acm.org>
6553
6554 * store-motion.c (remove_reachable_equiv_notes): Reformat long
6555 lines. Use for (;;).
6556
6557 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6558
6559 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
6560 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
6561 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
6562 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
6563 VF=2 that require versioning.
6564
6565 2017-05-05 David Malcolm <dmalcolm@redhat.com>
6566
6567 * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
6568 int.
6569
6570 2017-05-05 David Malcolm <dmalcolm@redhat.com>
6571
6572 * diagnostic.h (diagnostic_override_option_index): Convert from
6573 macro to inline function.
6574
6575 2017-05-05 David Malcolm <dmalcolm@redhat.com>
6576
6577 * diagnostic.c (last_module_changed_p): New function.
6578 (set_last_module): New function.
6579 (diagnostic_report_current_module): Convert macro usage to
6580 the above functions.
6581 * diagnostic.h (diagnostic_context::last_module): Strengthen
6582 from const line_map * to const line_map_ordinary *.
6583 (diagnostic_last_module_changed): Delete macro.
6584 (diagnostic_set_last_module): Delete macro.
6585
6586 2017-05-05 David Malcolm <dmalcolm@redhat.com>
6587
6588 * diagnostic.c (diagnostic_impl): Replace report_diagnostic
6589 with diagnostic_report_diagnostic.
6590 (diagnostic_n_impl_richloc): Likewise.
6591 * diagnostic.h (report_diagnostic): Delete macro.
6592 * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
6593 with diagnostic_report_diagnostic.
6594 * substring-locations.c (format_warning_va): Likewise.
6595
6596 2017-05-05 David Malcolm <dmalcolm@redhat.com>
6597
6598 * diagnostic.c (diagnostic_report_diagnostic): Eliminate
6599 save/restor of format_spec. Move option-printing code to...
6600 (print_option_information): ...this new function, and
6601 reimplement by simply printing to the pretty_printer,
6602 rather than appending to the format string.
6603
6604 2017-05-05 David Malcolm <dmalcolm@redhat.com>
6605
6606 * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
6607 handling logic into...
6608 (update_effective_level_from_pragmas): ...this new function.
6609
6610 2017-05-04 Andrew Waterman <andrew@sifive.com>
6611
6612 * config/riscv/riscv.opt (mstrict-align): New option.
6613 * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it. Update comment.
6614 (SLOW_UNALIGNED_ACCESS): Define.
6615 (riscv_slow_unaligned_access): Declare.
6616 * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
6617 field.
6618 (riscv_slow_unaligned_access): New variable.
6619 (rocket_tune_info): Set slow_unaligned_access to true.
6620 (optimize_size_tune_info): Set slow_unaligned_access to false.
6621 (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
6622 (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
6623 (riscv_option_override): Set riscv_slow_unaligned_access.
6624 * doc/invoke.texi: Add -mstrict-align to RISC-V.
6625
6626 2017-05-04 Kito Cheng <kito.cheng@gmail.com>
6627
6628 * config/riscv/riscv.md: Unify indentation.
6629
6630 2017-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
6631
6632 PR target/79038
6633 PR target/79202
6634 PR target/79203
6635 * config/rs6000/rs6000.md (u code attribute): Add FIX and
6636 UNSIGNED_FIX.
6637 (extendsi<mode>2): Add support for doing sign extension via
6638 VUPKHSW and XXPERMDI if the value is in Altivec registers and we
6639 don't have ISA 3.0 instructions.
6640 (extendsi<mode>2 splitter): Likewise.
6641 (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
6642 generate the normal insns since SImode can now go in vector
6643 registers. Disallow the special UNSPECs needed for previous
6644 machines to hide SImode being used. Add new insns
6645 fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
6646 (fix_trunc<mode>si2_stfiwx): Likewise.
6647 (fix_trunc<mode>si2_internal): Likewise.
6648 (fixuns_trunc<mode>si2): Likewise.
6649 (fixuns_trunc<mode>si2_stfiwx): Likewise.
6650 (fctiw<u>z_<mode>_smallint): Likewise.
6651 (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
6652 of floating point to 32-bit integer from doing a direct move to
6653 the GPR registers to do a store.
6654 (fctiwz_<mode>): Break long line.
6655
6656 2017-05-05 Bin Cheng <bin.cheng@arm.com>
6657
6658 * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
6659 * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
6660 (addr_list, addr_offset_valid_p): New.
6661 (split_address_groups): Check offset validity with above function.
6662 (gt-tree-ssa-loop-ivopts.h): Include header file.
6663
6664 2017-05-05 Nathan Sidwell <nathan@acm.org>
6665
6666 * config.gcc (arm*-*-*): Add missing 'fi'.
6667
6668 2017-05-05 Steve Ellcey <sellcey@cavium.com>
6669
6670 * doc/invoke.texi (-fopt-info): Explicitly say order of options
6671 included in -fopt-info does not matter.
6672 * doc/optinfo.texi (-fopt-info): Fix description of default
6673 behavour. Explicitly say order of options included in -fopt-info
6674 does not matter.
6675
6676 2017-05-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
6677
6678 * config.gcc: Allow combinations of aprofile and rmprofile values for
6679 --with-multilib-list.
6680 * config/arm/t-multilib: New file.
6681 * config/arm/t-aprofile: Remove initialization of MULTILIB_*
6682 variables. Remove setting of ISA and floating-point ABI in
6683 MULTILIB_OPTIONS and MULTILIB_DIRNAMES. Set architecture and FPU in
6684 MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
6685 and MULTILIB_DIRNAMES respectively. Add comment to introduce all
6686 matches. Add architecture matches for marvel-pj4 and generic-armv7-a
6687 CPU options.
6688 * config/arm/t-rmprofile: Likewise except for the matches changes.
6689 * doc/install.texi (--with-multilib-list): Document the combination of
6690 aprofile and rmprofile values and warn about pitfalls in doing that.
6691
6692 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
6693
6694 * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
6695 (movdi_aarch64): Likewise.
6696
6697 2017-05-05 Jakub Jelinek <jakub@redhat.com>
6698
6699 PR tree-optimization/80632
6700 * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
6701 field.
6702 (build_arrays): Initialize it for virtual phis.
6703 (fix_phi_nodes): Use it for virtual phis.
6704
6705 PR tree-optimization/80558
6706 * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
6707 [x, y] op z into [x op, y op z] for op & or | if conditions
6708 are met.
6709
6710 2017-05-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
6711 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
6712
6713 PR target/71607
6714 * config/arm/arm.md (use_literal_pool): Remove.
6715 (64-bit immediate split): No longer takes cost into consideration
6716 if arm_disable_literal_pool is enabled.
6717 * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
6718 used when arm_disable_literal_pool is enabled.
6719 (arm_max_const_double_inline_cost): Remove use of
6720 arm_disable_literal_pool.
6721 (push_minipool_fix): Add assert.
6722 (arm_reorg): Add return if arm_disable_literal_pool is enabled.
6723 * config/arm/vfp.md (no_literal_pool_df_immediate): New.
6724 (no_literal_pool_sf_immediate): New.
6725
6726 2017-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6727
6728 PR tree-optimization/80613
6729 * tree-ssa-dce.c (propagate_necessity): Remove cases for
6730 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
6731
6732 2017-05-05 Richard Biener <rguenther@suse.de>
6733
6734 * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
6735
6736 2017-05-05 Georg-Johann Lay <avr@gjlay.de>
6737
6738 * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
6739 of this flag from insn conditions due to removal from r247495.
6740
6741 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
6742
6743 * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
6744 New function.
6745 (arm_early_store_addr_dep_ptr): Likewise.
6746 * config/arm/aarch-common-protos.h
6747 (arm_early_load_addr_dep_ptr): Add prototype.
6748 (arm_early_store_addr_dep_ptr): Likewise.
6749 * config/arm/cortex-a53.md: Add new bypasses.
6750
6751 2017-05-05 Jakub Jelinek <jakub@redhat.com>
6752
6753 * tree.c (next_type_uid): Change type to unsigned.
6754 (type_hash_canon): Decrement back next_type_uid if
6755 freeing a type node with the highest TYPE_UID. For INTEGER_TYPEs
6756 also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
6757 if possible.
6758
6759 2017-05-04 Martin Sebor <msebor@redhat.com>
6760
6761 * builtins.c: Fix a trivial typo in a comment.
6762
6763 PR middle-end/79234
6764 * builtins.c (check_sizes): Adjust to handle reading past the end.
6765 Avoid printing excessive upper bound of ranges. Use %E to print
6766 tree nodes instead of converting them to %wu.
6767 (expand_builtin_memchr): New function.
6768 (compute_dest_size): Rename...
6769 (compute_objsize): ...to this.
6770 (expand_builtin_memcpy): Adjust.
6771 (expand_builtin_mempcpy): Adjust.
6772 (expand_builtin_strcat): Adjust.
6773 (expand_builtin_strcpy): Adjust.
6774 (check_strncat_sizes): Adjust.
6775 (expand_builtin_strncat): Adjust.
6776 (expand_builtin_strncpy): Adjust and simplify.
6777 (expand_builtin_memset): Adjust.
6778 (expand_builtin_bzero): Adjust.
6779 (expand_builtin_memcmp): Adjust.
6780 (expand_builtin): Handle memcmp.
6781 (maybe_emit_chk_warning): Check strncat just once.
6782
6783 2017-05-04 Martin Sebor <msebor@redhat.com>
6784
6785 PR preprocessor/79214
6786 PR middle-end/79222
6787 PR middle-end/79223
6788 * builtins.c (check_sizes): Add inlining context and issue
6789 warnings even when -Wno-system-headers is set.
6790 (check_strncat_sizes): Same.
6791 (expand_builtin_strncat): Same.
6792 (expand_builtin_memmove): New function.
6793 (expand_builtin_stpncpy): Same.
6794 (expand_builtin): Handle memmove and stpncpy.
6795
6796 2017-05-04 Bin Cheng <bin.cheng@arm.com>
6797
6798 * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
6799 which is not used any more.
6800
6801 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
6802
6803 * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
6804
6805 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
6806
6807 * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
6808 (cortexa53_tunings): Likewise.
6809 (cortexa57_tunings): Likewise.
6810 (cortexa72_tunings): Likewise.
6811 (cortexa73_tunings): Likewise.
6812
6813 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
6814
6815 * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
6816 Set loop alignment to 8.
6817
6818 2017-05-04 Martin Sebor <msebor@redhat.com>
6819
6820 PR translation/80280
6821 * builtins.c (expand_builtin_object_size): Add missing quoting to
6822 %D and like directives.
6823 * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
6824 (hsa_type_for_tree_type): Same.
6825 (verify_function_arguments): Same.
6826 * symtab.c (symbol_table::change_decl_assembler_name): Same.
6827 * varasm.c (get_section): Same.
6828 (mark_weak): Same.
6829
6830 2017-05-04 Martin Sebor <msebor@redhat.com>
6831
6832 PR translation/80280
6833 * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
6834
6835 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
6836
6837 * config/aarch64/aarch64.c (generic_addrcost_table):
6838 Change HI/TI mode setting.
6839
6840 2017-05-04 Martin Jambor <mjambor@suse.cz>
6841
6842 PR tree-optimization/80622
6843 * tree-sra.c (comes_initialized_p): New function.
6844 (build_accesses_from_assign): Only set write lazily when
6845 comes_initialized_p is false.
6846 (analyze_access_subtree): Use comes_initialized_p.
6847 (propagate_subaccesses_across_link): Assert !comes_initialized_p
6848 instead of testing for PARM_DECL.
6849
6850 2017-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6851
6852 * config/aarch64/aarch64.md (prefetch); Adjust predicate and
6853 constraint on operand 0 to allow more general addressing modes.
6854 Adjust output template.
6855 * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
6856 New function.
6857 * config/aarch64/aarch64-protos.h
6858 (aarch64_address_valid_for_prefetch_p): Declare prototype.
6859 * config/aarch64/constraints.md (Dp): New address constraint.
6860 * config/aarch64/predicates.md (aarch64_prefetch_operand): New
6861 predicate.
6862
6863 2017-05-04 Jan Hubicka <hubicka@ucw.cz>
6864
6865 * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
6866 update use of estimate_ipcp_clone_size_and_time.
6867 (estimate_local_effects): Update use of
6868 estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
6869 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
6870 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
6871 Return nonspecialized time.
6872
6873 2017-05-04 Richard Biener <rguenther@suse.de>
6874
6875 * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
6876 for the last VUSE which def dominates the PHI. Directly call
6877 maybe_skip_until.
6878 (get_continuation_for_phi_1): Remove.
6879
6880 2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6881
6882 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
6883 to explain the use of truncating division. Cap the number of
6884 iterations to the maximum given by nb_iterations_upper_bound,
6885 if defined.
6886
6887 2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6888
6889 * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
6890 * configure: Regenerate.
6891 * config.in: Regenerate.
6892 * config/i386/driver-mingw32.c: new file.
6893 * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
6894 * config.host: Link driver-mingw32.o on MinGW host.
6895 * doc/install.texi: Document new --enable-mingw-wildcard configure
6896 option.
6897
6898 2017-05-04 Marek Polacek <polacek@redhat.com>
6899
6900 PR tree-optimization/80612
6901 * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
6902
6903 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
6904 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
6905
6906 * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
6907 (movt splitter): Likewise.
6908 * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
6909 to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
6910 (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
6911 block for Thumb-1 with MOVT.
6912 (thumb2_legitimate_address_p): Move code block ...
6913 (can_avoid_literal_pool_for_label_p): ... into this new function.
6914 (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
6915 literal pool.
6916 (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
6917 * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
6918 "M-profile targets with the MOVT instruction".
6919
6920 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
6921
6922 * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
6923 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
6924 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
6925
6926 2017-05-04 Martin Liska <mliska@suse.cz>
6927
6928 * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
6929 variable cond_code.
6930
6931 2017-05-04 Richard Biener <rguenther@suse.de>
6932
6933 * tree.c (array_at_struct_end_p): Handle arrays at struct
6934 end with flexarrays more conservatively. Refactor and treat
6935 arrays of arrays or aggregates more strict. Fix
6936 VIEW_CONVERT_EXPR handling. Remove allow_compref argument.
6937 * tree.c (array_at_struct_end_p): Adjust prototype.
6938 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
6939 * gimple-fold.c (get_range_strlen): Likewise.
6940 * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
6941
6942 2017-05-04 Richard Biener <rguenther@suse.de>
6943
6944 PR tree-optimization/31130
6945 * tree-vrp.c (needs_overflow_infinity): Remove as always returning
6946 false.
6947 (supports_overflow_infinity): Likewise.
6948 (is_negative_overflow_infinity): Likewise.
6949 (is_positive_overflow_infinity): Likewise.
6950 (is_overflow_infinity): Likewise.
6951 (stmt_overflow_infinity): Likewise.
6952 (overflow_infinity_range_p): Likewise.
6953 (usable_range_p): Remove as always returning true.
6954 (make_overflow_infinity): Remove.
6955 (negative_overflow_infinity): Likewise.
6956 (positive_overflow_infinity): Likewise.
6957 (avoid_overflow_infinity): Likewise.
6958 (set_value_range): Adjust accordingly.
6959 (set_value_range_to_nonnegative): Likewise, remove now unused
6960 overflow_infinity arg.
6961 (vrp_operand_equal_p): Adjust.
6962 (update_value_range): Likewise.
6963 (range_int_cst_singleton_p): Likewise.
6964 (operand_less_p): Likewise.
6965 (compare_values_warnv): Likewise.
6966 (extract_range_for_var_from_comparison_expr): Likewise.
6967 (vrp_int_const_binop): Likewise.
6968 (zero_nonzero_bits_from_vr): Likewise.
6969 (extract_range_from_multiplicative_op_1): Likewise.
6970 (extract_range_from_binary_expr_1): Likewise.
6971 (extract_range_from_unary_expr): Likewise.
6972 (extract_range_from_comparison): Likewise.
6973 (extract_range_basic): Likewise.
6974 (adjust_range_with_scev): Likewise.
6975 (compare_ranges): Likewise.
6976 (compare_range_with_value): Likewise.
6977 (dump_value_range): Likewise.
6978 (test_for_singularity): Likewise, remove strict_overflow_p parameter
6979 never used.
6980 (simplify_cond_using_ranges): Adjust.
6981
6982 2017-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
6983
6984 * brig-builtins.def: Added a builtin for class_f64.
6985 * builtin-types.def: Added a builtin type needed by class_f64.
6986
6987 2017-05-03 Jason Merrill <jason@redhat.com>
6988
6989 * timevar.def: Add TV_CONSTEXPR.
6990
6991 2017-05-03 David Malcolm <dmalcolm@redhat.com>
6992
6993 * common.opt (fdiagnostics-parseable-fixits): Fix typo.
6994
6995 2017-05-03 Martin Jambor <mjambor@suse.cz>
6996
6997 * ipa-prop.c (ipa_update_after_lto_read): Removed.
6998 * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
6999 * ipa-cp.c (ipcp_propagate_stage): Do not call
7000 ipa_update_after_lto_read.
7001 * ipa-inline.c (ipa_inline): Likewise.
7002
7003 2017-05-03 Martin Jambor <mjambor@suse.cz>
7004
7005 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY
7006 tag. Added a default constructor and a destructor.
7007 (ipa_edge_args_sum_t): New class;
7008 (ipa_edge_args_sum): Declare.
7009 (ipa_edge_args_vector): Remove declaration.
7010 (IPA_EDGE_REF): Use ipa_edge_args_sum.
7011 (ipa_free_edge_args_substructures): Remove declaration.
7012 (ipa_check_create_edge_args): Use ipa_edge_args_sum.
7013 (ipa_edge_args_info_available_for_edge_p): Likewise.
7014 * ipa-prop.c (ipa_edge_args_vector): Removed.
7015 (edge_removal_hook_holder): Likewise.
7016 (edge_duplication_hook_holder): Likewise.
7017 (ipa_edge_args_sum): New variable.
7018 (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
7019 ipa_edge_args_vector.
7020 (ipa_free_edge_args_substructures): Likewise.
7021 (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
7022 ipa_edge_args_vector.
7023 (ipa_edge_removal_hook): Turned into method
7024 ipa_edge_args_sum_t::remove.
7025 (ipa_edge_duplication_hook): Turned into method
7026 ipa_edge_args_sum_t::duplicate.
7027 (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
7028 registering edge hooks.
7029 (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
7030 * ipa-inline-analysis.c (estimate_function_body_sizes): Test
7031 ipa_edge_args_sum instead of ipa_edge_args_vector.
7032 * ipa-profile.c (ipa_profile): Likewise.
7033
7034 2017-05-03 Martin Jambor <mjambor@suse.cz>
7035
7036 * symbol-summary.h (function_summary): New method exists.
7037 (function_summary::symtab_removal): Deallocate through release.
7038 (call_summary): New class.
7039 (gt_ggc_mx): New overload.
7040 (gt_pch_nx): Likewise.
7041 (gt_pch_nx): Likewise.
7042
7043 2017-05-03 Jeff Law <law@redhat.com>
7044
7045 PR tree-optimization/78496
7046 * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
7047 from simplify_cond_using_ranges. Split off code to walk
7048 backwards through casts into ...
7049 (simplify_cond_using_ranges_2): New function.
7050 (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
7051 (execute_vrp): After identifying jump threads, call
7052 simplify_cond_using_ranges_2.
7053
7054 2017-05-03 Jan Hubicka <hubicka@ucw.cz>
7055
7056 PR bootstrap/80609
7057 * ipa-inline.h (inline_summary): Add ctor.
7058 (create_ggc): Do not use ggc_cleared_alloc.
7059
7060 2017-05-03 Jeff Downs <heydowns@somuchpressure.net>
7061 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7062
7063 * gcc.c (handle_braces): Support escaping in switch matching
7064 text.
7065 * doc/invoke.texi (Spec Files): Document it.
7066 Remove superfluous @code markup in items.
7067
7068 2017-05-03 David Malcolm <dmalcolm@redhat.com>
7069
7070 * diagnostic-show-locus.c (struct column_range): New struct.
7071 (get_affected_columns): New function.
7072 (get_printed_columns): New function.
7073 (struct correction): New struct.
7074 (correction::ensure_capacity): New function.
7075 (correction::ensure_terminated): New function.
7076 (struct line_corrections): New struct.
7077 (line_corrections::~line_corrections): New dtor.
7078 (line_corrections::add_hint): New function.
7079 (layout::print_trailing_fixits): Reimplement in terms of the new
7080 classes.
7081 (selftest::test_overlapped_fixit_printing): New function.
7082 (selftest::diagnostic_show_locus_c_tests): Call it.
7083
7084 2017-05-03 Nathan Sidwell <nathan@acm.org>
7085
7086 Canonicalize canonical type hashing
7087 * tree.h (type_hash_canon_hash): Declare.
7088 * tree.c (type_hash_list, attribute_hash_list): Move into
7089 type_hash_canon_hash.
7090 (build_type_attribute_qual_variant): Break out hash code calc into
7091 type_hash_canon_hash.
7092 (type_hash_canon_hash): New. Generic type hash computation.
7093 (build_range_type_1, build_array_type_1, build_function_type,
7094 build_method_type_directly, build_offset_type, build_complex_type,
7095 make_vector_type): Call it.
7096
7097 2017-05-03 Richard Biener <rguenther@suse.de>
7098
7099 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7100 When all DRs have unknown misaligned do not always peel
7101 when there is a store but apply the same costing model as if
7102 there were only loads.
7103
7104 2017-05-03 Richard Biener <rguenther@suse.de>
7105
7106 Revert
7107 PR tree-optimization/80492
7108 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
7109 compare_base_decls returning dont-know properly.
7110
7111 2017-05-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
7112
7113 * config/arm/iterators.md (CCSI): New mode iterator.
7114 (arch): New mode attribute.
7115 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
7116 (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
7117 (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This. Use CCSI
7118 code iterator for success result mode.
7119 * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
7120 the corresponding new insn generators.
7121
7122 2017-05-03 Bin Cheng <bin.cheng@arm.com>
7123
7124 Revert r247509
7125 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7126 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
7127
7128 2017-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7129
7130 * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
7131 (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
7132 (DDR_A): Wrap DDR argument in brackets.
7133 (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
7134 (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
7135 (DDR_REVERSED_P): Likewise.
7136
7137 2017-05-03 Jakub Jelinek <jakub@redhat.com>
7138
7139 PR tree-optimization/79472
7140 * tree-switch-conversion.c (struct switch_conv_info): Add
7141 contiguous_range and default_case_nonstandard fields.
7142 (collect_switch_conv_info): Compute contiguous_range and
7143 default_case_nonstandard fields, don't clear final_bb if
7144 contiguous_range and only the default case doesn't have the required
7145 structure.
7146 (check_all_empty_except_final): Set default_case_nonstandard instead
7147 of failing if contiguous_range and the default case doesn't have empty
7148 block.
7149 (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
7150 and only the default case doesn't have the required constants. Skip
7151 virtual phis.
7152 (gather_default_values): Skip virtual phis. Allow non-NULL CASE_LOW
7153 if default_case_nonstandard.
7154 (build_constructors): Build constant 1 just once. Assert that default
7155 values aren't inserted in between cases if contiguous_range. Skip
7156 virtual phis.
7157 (build_arrays): Skip virtual phis.
7158 (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
7159 (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
7160 Handle virtual phis.
7161 (gen_inbound_check): Handle default_case_nonstandard case.
7162 (process_switch): Adjust check_final_bb caller. Call
7163 gather_default_values with the first non-default case instead of
7164 default case if default_case_nonstandard.
7165
7166 2017-05-02 Nathan Sidwell <nathan@acm.org>
7167
7168 * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
7169 check. Fix formatting.
7170
7171 2017-05-02 Jan Hubicka <hubicka@ucw.cz>
7172
7173 * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
7174 errors when comparing specialized and unspecialized times.
7175
7176 2017-05-02 David Malcolm <dmalcolm@redhat.com>
7177
7178 * diagnostic-show-locus.c
7179 (layout::should_print_annotation_line_p): Make private.
7180 (layout::print_annotation_line): Make private.
7181 (layout::annotation_line_showed_range_p): Make private.
7182 (layout::show_ruler): Make private.
7183 (layout::print_source_line): Make private. Pass in line and
7184 line_width, rather than calling location_get_source_line. Drop
7185 returned value.
7186 (layout::print_leading_fixits): New method.
7187 (layout::print_any_fixits): Rename to...
7188 (layout::print_trailing_fixits): ...this, and make private.
7189 Don't print newline fixits.
7190 (diagnostic_show_locus): Move logic for printing one row into...
7191 (layout::print_line): ...this new function. Move the
7192 location_get_source_line call and error-handling from
7193 print_source_line to here. Call print_leading_fixits, and rename
7194 print_any_fixits to print_trailing_fixits.
7195 (selftest::test_fixit_insert_containing_newline): Update now that
7196 newlines are partially supported.
7197 (selftest::test_fixit_insert_containing_newline_2): New test.
7198 (selftest::test_fixit_replace_containing_newline): Update comments.
7199 (selftest::diagnostic_show_locus_c_tests): Call the new test.
7200 * edit-context.c (class added_line): New class.
7201 (class edited_line): Describe newline handling in comment.
7202 (edited_line::actually_edited_p): New method.
7203 (edited_line::print_content): Delete redundant decl.
7204 (edited_line::m_predecessors): New field.
7205 (edited_file::print_content): Call edited_line::print_content.
7206 (edited_file::print_diff): Update to support newlines.
7207 (edited_file::print_diff_hunk): Likewise.
7208 (edited_file::print_run_of_changed_lines): New function.
7209 (edited_file::print_diff_line): Convert to...
7210 (print_diff_line): ...this.
7211 (edited_file::get_effective_line_count): New function.
7212 (edited_line::edited_line): Initialize new field m_predecessors.
7213 (edited_line::~edited_line): Clean up m_predecessors.
7214 (edited_line::apply_fixit): Handle newlines.
7215 (edited_line::get_effective_line_count): New function.
7216 (edited_line::print_content): New function.
7217 (edited_line::print_diff_lines): New function.
7218 (selftest::test_applying_fixits_insert_containing_newline): New
7219 test.
7220 (selftest::test_applying_fixits_replace_containing_newline): New
7221 test.
7222 (selftest::insert_line): New function.
7223 (selftest::test_applying_fixits_multiple_lines): Add example of
7224 inserting a line.
7225 (selftest::edit_context_c_tests): Call the new tests.
7226
7227 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7228
7229 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
7230 parameter cand. Update dump information.
7231 (get_computation_cost): Update uses.
7232
7233 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7234
7235 * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
7236 (get_computation_aff): Reorder parameters. Use get_computation_aff_1.
7237 (get_computation_at, rewrite_use_address): Update use of
7238 get_computation_aff.
7239
7240 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7241
7242 * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
7243 (get_computation): Delete.
7244 (get_computation_cost): Implement like get_computation_cost_at.
7245 Use get_computation_at.
7246 (get_computation_cost_at): Delete.
7247 (rewrite_use_nonlinear_expr): Use get_computation_at.
7248 (rewrite_use_compare, remove_unused_ivs): Ditto.
7249
7250 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7251
7252 * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
7253
7254 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7255
7256 * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
7257 (ivopts_global_cost_for_size): Rename parameter and update uses.
7258 (iv_ca_recount_cost): Update uses.
7259 (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
7260 candidates seperately in n_invs and n_cands.
7261 (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
7262
7263 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7264
7265 * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
7266 (find_inv_vars_cb): New.
7267 (find_depends): Renamed to ...
7268 (find_inv_vars): ... this.
7269 (add_candidate_1, force_var_cost): Call find_inv_vars.
7270 (split_address_cost, determine_group_iv_cost_cond): Ditto.
7271
7272 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7273
7274 * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
7275 inv_vars. Add inv_exprs.
7276 (struct iv_cand): Rename depends_on to inv_vars.
7277 (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
7278 max_inv_var_id/n_inv_var_uses. Move max_inv_expr_id around.
7279 Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
7280 (dump_cand): Dump inv_vars.
7281 (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
7282 (record_invariant, find_depends, add_candidate_1): Ditto.
7283 (set_group_iv_cost, force_var_cost): Ditto.
7284 (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
7285 (get_computation_cost_at, get_computation_cost): Ditto.
7286 (determine_group_iv_cost_generic): Ditto.
7287 (determine_group_iv_cost_address): Ditto.
7288 (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
7289 (determine_group_iv_costs): Ditto.
7290 (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
7291 (iv_ca_set_remove_invariants): Renamed to ...
7292 (iv_ca_set_remove_invs): ... this. Support inv_vars and inv_exprs.
7293 (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
7294 (iv_ca_set_add_invariants): Renamed to ...
7295 (iv_ca_set_add_invs): ... this. Support inv_vars and inv_exprs.
7296 (iv_ca_set_cp): Use iv_ca_set_add_invs.
7297 (iv_ca_has_deps): Support inv_vars and inv_exprs.
7298 (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
7299 (create_new_ivs): Remove useless dump.
7300
7301 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7302
7303 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
7304 iv_cand code.
7305 (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
7306 (iv_ca_set_no_cp, create_new_iv): Ditto.
7307
7308 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7309
7310 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
7311
7312 2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
7313
7314 * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
7315 function tree_check2.
7316
7317 2017-05-02 Martin Liska <mliska@suse.cz>
7318
7319 * doc/gcov.texi: Add missing preposition.
7320 * gcov.c (function_info::function_info): Properly fill up
7321 all member variables.
7322
7323 2017-05-02 Tamar Christina <tamar.christina@arm.com>
7324
7325 * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
7326
7327 2017-05-02 Tamar Christina <tamar.christina@arm.com>
7328
7329 * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
7330
7331 2017-05-02 Martin Liska <mliska@suse.cz>
7332
7333 PR lto/77954.
7334 * lto-streamer-in.c (lto_read_tree_1): Remove
7335 LTO_STREAMER_DEBUG.
7336 * lto-streamer.c (struct tree_hash_entry): Likewise.
7337 (struct tree_entry_hasher): Likewise.
7338 (tree_entry_hasher::hash): Likewise.
7339 (tree_entry_hasher::equal): Likewise.
7340 (lto_streamer_init): Likewise.
7341 (lto_orig_address_map): Likewise.
7342 (lto_orig_address_get): Likewise.
7343 (lto_orig_address_remove): Likewise.
7344 * lto-streamer.h: Likewise.
7345 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
7346 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
7347
7348 2017-05-02 Sebastian Peryt <sebastian.peryt@intel.com>
7349
7350 * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
7351 (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
7352 (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
7353 (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
7354 (mm_maskz_sub_round_ss, _mm_mask_add_sd)
7355 (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
7356 (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
7357 (mm_maskz_sub_ss): New intrinsics.
7358 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
7359 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
7360 * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
7361 (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
7362 (__builtin_ia32_subss_mask_round): New builtins.
7363 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
7364 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
7365 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
7366 Renamed to ...
7367 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
7368 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
7369 Changed to ...
7370 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
7371 ... this.
7372
7373 2017-05-02 Martin Jambor <mjambor@suse.cz>
7374
7375 PR tree-optimization/78687
7376 * tree-sra.c (access): New field parent.
7377 (process_subtree_disqualification): New function.
7378 (disqualify_candidate): Call it.
7379 (build_accesses_from_assign): Reset write flag if creating an
7380 assighnment link.
7381 (build_access_subtree): Fill in parent field and also prpagate
7382 down grp_write flag.
7383 (create_artificial_child_access): New parameter set_grp_write, set
7384 grp_write to its value.
7385 (propagate_subaccesses_across_link): Also propagate grp_write flag
7386 values.
7387 (propagate_all_subaccesses): Push the closest parent back to work
7388 queue if add_access_to_work_queue returned true.
7389
7390 2017-05-02 Richard Biener <rguenther@suse.de>
7391
7392 * common.opt (fstrict-overflow): Alias negative to fwrapv.
7393 * doc/invoke.texi (fstrict-overflow): Remove all traces of
7394 -fstrict-overflow documentation.
7395 * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
7396 (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
7397 flag_strict_overflow.
7398 * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
7399 * lto-opts.c (lto_write_options): Do not stream it.
7400 * lto-wrapper.c (merge_and_complain): Do not handle it.
7401 * opts.c (default_options_table): Do not set -fstrict-overflow.
7402 (finish_options): Likewise do not clear it when sanitizing.
7403 * simplify-rtx.c (simplify_const_relational_operation): Do not
7404 test flag_strict_overflow.
7405
7406 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
7407
7408 * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
7409 using enabled attribute.
7410 (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
7411 (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
7412 (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
7413 (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
7414 (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
7415 (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
7416 (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
7417 (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
7418 (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
7419 (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
7420
7421 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
7422
7423 * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
7424
7425 2017-05-02 Richard Biener <rguenther@suse.de>
7426
7427 PR tree-optimization/80591
7428 Revert
7429 2017-04-10 Richard Biener <rguenther@suse.de>
7430
7431 * tree-ssa-structalias.c (find_func_aliases): Properly handle
7432 asm inputs.
7433
7434 2017-05-02 Richard Biener <rguenther@suse.de>
7435
7436 PR tree-optimization/80549
7437 * tree-cfgcleanup.c (mfb_keep_latches): New helper.
7438 (cleanup_tree_cfg_noloop): Create forwarders to known loop
7439 headers if they do not have a preheader.
7440
7441 2017-05-02 Martin Liska <mliska@suse.cz>
7442
7443 PR other/80589
7444 * common.opt: Fix typo.
7445 * doc/invoke.texi: Likewise.
7446
7447 2017-05-01 Jan Beulich <jbeulich@suse.com>
7448
7449 * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
7450 swapping, add (x,x,m,x,n) alternative.
7451
7452 2017-05-01 Nathan Sidwell <nathan@acm.org>
7453
7454 * calls.c (combine_pending_stack_adjustment_and_call): Remove
7455 unnecessary unadjusted_alignment check.
7456
7457 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
7458
7459 PR c++/80038
7460 * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
7461 operations here.
7462 * gimplify.c (gimplify_cilk_detach): New function.
7463 (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
7464 * tree-core.h: Document EXPR_CILK_SPAWN.
7465 * tree.h (EXPR_CILK_SPAWN): Define.
7466
7467 2017-05-01 David Malcolm <dmalcolm@redhat.com>
7468
7469 * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
7470 to use new fixit_hint representation, using the "replace" logic.
7471 (get_line_span_for_fixit_hint): Likewise.
7472 (layout::print_any_fixits): Likewise.
7473 (selftest::test_one_liner_many_fixits): Rename to...
7474 (selftest::test_one_liner_many_fixits_1): ...this, and update
7475 comment and expected output to reflect that the multiple fix-it
7476 hints are now consolidated into one insertion.
7477 (selftest::test_one_liner_many_fixits_2): New test.
7478 (selftest::test_diagnostic_show_locus_one_liner): Update for
7479 above.
7480 (selftest::test_fixit_consolidation): Update for fix-it API
7481 change.
7482 * diagnostic.c (print_parseable_fixits): Likewise.
7483 * edit-context.c (edited_line::m_line_events): Convert from
7484 auto_vec <line_event *> to auto_vec <line_event>.
7485 (class line_event): Convert from abstract base class to a concrete
7486 class, taking over the role of replace_event.
7487 (class insert_event): Delete.
7488 (class replace_event): Rename to class line_event. Convert to
7489 half-open range.
7490 (edit_context::add_fixits): Reimplement.
7491 (edit_context::apply_insert): Delete.
7492 (edit_context::apply_replace): Rename to...
7493 (edit_context::apply_fixit): ...this. Convert to half-open range.
7494 (edited_file::apply_insert): Delete.
7495 (edited_file::apply_replace): Rename to...
7496 (edited_file::apply_fixit): ...this.
7497 (edited_line::~edited_line): Drop deletion of events.
7498 (edited_line::apply_insert): Delete.
7499 (edited_line::apply_replace): Rename to...
7500 (edited_line::apply_fixit): ...this. Convert to half-open range.
7501 Update for change to type of m_line_events.
7502 * edit-context.h (edit_context::apply_insert): Delete.
7503 (edit_context::apply_replace): Rename to...
7504 (edit_context::apply_fixit): ...this.
7505
7506 2017-05-01 Martin Sebor <msebor@redhat.com>
7507
7508 * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
7509 known.
7510
7511 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
7512
7513 PR target/68491
7514 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
7515 __get_cpuid_max returns 0.
7516 (__get_cpuid_count): Ditto.
7517
7518 2017-05-01 Eric Botcazou <ebotcazou@adacore.com>
7519
7520 * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
7521 replacement expression is another instance of one of its arguments.
7522
7523 2017-05-01 Jakub Jelinek <jakub@redhat.com>
7524
7525 PR target/79430
7526 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
7527 check for stack push/pop autoinc.
7528 * config/i386/i386.c (ix86_agi_dependent): Return false
7529 if the only reason why modified_in_p returned true is that
7530 addr is SP based and set_insn is a push or pop.
7531
7532 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
7533
7534 * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
7535 overflow check.
7536
7537 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
7538
7539 PR ipa/79224
7540 * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
7541 (account_size_time): Use two predicates - exec_pred and
7542 nonconst_pred_ptr.
7543 (evaluate_conditions_for_known_args): Compute both clause and
7544 nonspec_clause.
7545 (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
7546 (inline_summary_t::duplicate): Update.
7547 (estimate_function_body_sizes): Caluculate exec and nonconst predicates
7548 separately.
7549 (compute_inline_parameters): Likewise.
7550 (estimate_edge_size_and_time): Update caluclation of time.
7551 (estimate_node_size_and_time): Compute both time and nonspecialized
7552 time.
7553 (estimate_ipcp_clone_size_and_time): Update.
7554 (inline_merge_summary): Update.
7555 (do_estimate_edge_time): Update.
7556 (do_estimate_edge_size): Update.
7557 (do_estimate_edge_hints): Update.
7558 (inline_read_section, inline_write_summary): Stream both new predicates.
7559 * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
7560 as argument.
7561 (compute_inlined_call_time): Cleanup.
7562 (big_speedup_p): Update.
7563 (edge_badness): Update.
7564 * ipa-inline.h (INLINE_TIME_SCALE): Remove.
7565 (size_time_entry): Replace predicate by exec_predicate and
7566 nonconst_predicate.
7567 (edge_growth_cache_entry): Cache both time nad nonspecialized time.
7568 (estimate_edge_time): Return also nonspec_time.
7569 (reset_edge_growth_cache): Update.
7570
7571 2017-04-29 Jakub Jelinek <jakub@redhat.com>
7572
7573 PR rtl-optimization/80491
7574 * ifcvt.c (noce_process_if_block): When looking for x setter
7575 with missing else_bb, don't check only the insn right before
7576 cond_earliest, but look for the last insn that x is modified in
7577 within the same bb.
7578
7579 PR rtl-optimization/80491
7580 * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
7581
7582 2017-04-29 Marc Glisse <marc.glisse@inria.fr>
7583
7584 PR tree-optimization/80487
7585 * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
7586
7587 2017-04-29 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7588
7589 PR tree-optimization/79697
7590 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
7591 is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
7592 (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
7593 BUILT_IN_STRNDUP.
7594 * gimple-fold.c (gimple_fold_builtin_realloc): New function.
7595 (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
7596
7597 2017-04-28 Martin Sebor <msebor@redhat.com>
7598
7599 PR tree-optimization/80523
7600 * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
7601 (init_target_to_host_charmap, target_to_host, target_strtol10): New
7602 functions.
7603 (maybe_warn, format_directive, parse_directive): Use new functions.
7604 (pass_sprintf_length::execute): Call init_target_to_host_charmap.
7605
7606 2017-04-28 Marc Glisse <marc.glisse@inria.fr>
7607
7608 * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
7609
7610 2017-04-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
7611
7612 * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
7613 target_header_dir): Set correctly.
7614 * configure: Regenerated.
7615 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
7616 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
7617 instead of SYSTEM_HEADER_DIR.
7618
7619 2017-04-28 Jan Hubicka <hubicka@ucw.cz>
7620
7621 * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
7622 (estimate_local_effects): Likewise.
7623 * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
7624 edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
7625 * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
7626 estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
7627 do_estimate_edge_time, estimate_edge_time): Likewise.
7628 * ipa-inline-analysis.c (estimate_node_size_and_time,
7629 estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
7630 (estimate_time_after_inlining): Remove.
7631
7632 2017-04-28 Martin Liska <mliska@suse.cz>
7633
7634 * doc/gcov.texi: Enhance documentation of gcov.
7635
7636 2017-04-28 Martin Liska <mliska@suse.cz>
7637
7638 * doc/gcov.texi: Sort options in alphabetic order.
7639 * doc/gcov-dump.texi: Likewise.
7640 * doc/gcov-tool.texi: Likewise.
7641 * gcov.c (print_usage): Likewise.
7642 * gcov-dump.c (print_usage): Likewise.
7643 * gcov-tool.c (print_merge_usage_message): Likewise.
7644 (print_rewrite_usage_message): Likewise.
7645 (print_overlap_usage_message): Likewise.
7646
7647 2017-04-28 Martin Liska <mliska@suse.cz>
7648
7649 PR gcov-profile/53915
7650 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
7651
7652 2017-04-28 Martin Liska <mliska@suse.cz>
7653
7654 PR gcov-profile/79891
7655 * gcov.c (add_line_counts): Assign BBs to lines just if the BB
7656 is marked by compiler as living on a line.
7657 (get_cycles_count): Remove usage of the union.
7658 (output_intermediate_file): Likewise.
7659 (find_source): Fix GNU coding style.
7660 (accumulate_line_counts): Remove old non-all block mode.
7661 (output_lines): Remove usage of the union.
7662 * profile.c (output_location): Include all BBs, even if
7663 belonging to a same line (and file) as a previous BB.
7664
7665 2017-04-28 Martin Liska <mliska@suse.cz>
7666
7667 * gcov.c (process_args): Handle new argument 'w'.
7668 (read_graph_file): Assign ID to BBs.
7669 (output_branch_count): Display BB # if verbose flag is set.
7670 (output_lines): Likewise for arcs.
7671 (print_usage): Add '--verbose' option help.
7672 * doc/gcov.texi: Document --verbose (-w) option.
7673
7674 2017-04-28 Martin Liska <mliska@suse.cz>
7675
7676 * gcov.c (struct block_location_info): New struct.
7677 (process_file): Fill up the new structure.
7678 (read_graph_file): Replace usage of encoding by the newly added
7679 struct.
7680 (add_line_counts): Likewise.
7681 (accumulate_line_counts): Remove usage of the union.
7682 (function_info::function_info): New function.
7683 (function_info::~function_info): Likewise.
7684 (process_file): Call delete instead of release_function.
7685 (release_function): Release the function.
7686 (release_structures): Call delete instead of release_function.
7687 (solve_flow_graph): Replace usage of num_blocks.
7688 (find_exception_blocks): Likewise.
7689 (output_lines): Fix GNU coding style.
7690
7691 2017-04-28 Martin Liska <mliska@suse.cz>
7692
7693 PR driver/56469
7694 * coverage.c (coverage_remove_note_file): New function.
7695 * coverage.h: Declare the function.
7696 * toplev.c (finalize): Clean if an error has been seen.
7697
7698 2017-04-28 Martin Liska <mliska@suse.cz>
7699
7700 PR gcov-profile/80031
7701 * gcov-dump.c (tag_blocks): Just print number of basic blocks.
7702 * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
7703 * gcov.c (read_graph_file): Read just number of blocks.
7704 * profile.c (branch_prob): Do not stream 0 flags per a basic
7705 block.
7706
7707 2017-04-28 Martin Liska <mliska@suse.cz>
7708
7709 * gcov-dump.c (tag_*): Add new argument to declarations.
7710 (dump_gcov_file): Likewise.
7711 (tag_blocks): Add and use new argument depth.
7712 (tag_arcs): Likewise.
7713 (tag_lines): Likewise.
7714 (tag_counters): Likewise.
7715 (tag_summary): Likewise.
7716 (dump_working_sets): Use depth to do a proper indentation.
7717
7718 2017-04-28 Jakub Jelinek <jakub@redhat.com>
7719
7720 PR bootstrap/80531
7721 * cgraph.h (symtab_node::debug_symtab): No longer inline.
7722 * symtab.c (symtab_node::debug_symtab): Move definition here.
7723
7724 2017-04-28 Richard Biener <rguenther@suse.de>
7725
7726 * lto-streamer.h (LTO_major_version): Bump to 7.
7727
7728 2017-04-28 Richard Biener <rguenther@suse.de>
7729
7730 * tree-vrp.c (assert_info): New struct.
7731 (add_assert_info): New helper.
7732 (register_edge_assert_for_2): Refactor to add asserts to a vector
7733 of assert_info.
7734 (register_edge_assert_for_1): Likewise.
7735 (register_edge_assert_for): Likewise.
7736 (finish_register_edge_assert_for): New helper actually registering
7737 asserts where live on edge.
7738 (find_conditional_asserts): Adjust.
7739 (find_switch_asserts): Likewise.
7740 (evrp_dom_walker::try_find_new_range): Generalize.
7741 (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
7742
7743 2017-04-27 Marek Polacek <polacek@redhat.com>
7744
7745 PR sanitizer/80349
7746 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
7747 arg10 and arg11 to itype.
7748
7749 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
7750
7751 * doc/extend.texi (Object Size Checking): Improve grammar.
7752
7753 2017-04-27 Richard Earnshaw <rearnsha@arm.com>
7754
7755 PR target/80530
7756 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
7757 that the logic for permitting reciprocal estimates matches that
7758 in use_rsqrt_p.
7759
7760 2017-04-27 Jakub Jelinek <jakub@redhat.com>
7761
7762 PR c++/80534
7763 * tree.c (type_cache_hasher::equal): Only compare
7764 TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
7765 (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
7766 non-aggregate element types.
7767 * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
7768 about the flag on ARRAY_TYPEs in the comment, formatting fix.
7769
7770 2017-04-27 Richard Biener <rguenther@suse.de>
7771
7772 PR middle-end/80533
7773 * emit-rtl.c (set_mem_attributes_minus_bitpos): When
7774 stripping ARRAY_REFs from MEM_EXPR make sure we're not
7775 keeping a reference to a trailing array.
7776
7777 2017-04-27 Richard Biener <rguenther@suse.de>
7778
7779 PR middle-end/80539
7780 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
7781 being in loop-closed SSA form conservatively.
7782 (chrec_fold_multiply_poly_poly): Likewise.
7783
7784 2017-04-27 Tamar Christina <tamar.christina@arm.com>
7785
7786 PR middle-end/79665
7787 * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
7788 CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
7789
7790 2017-04-27 Jakub Jelinek <jakub@redhat.com>
7791
7792 PR target/77728
7793 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
7794 (aarch64_function_arg_alignment): Return unsigned int again, but still
7795 ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
7796 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
7797 Don't emit -Wpsabi note.
7798 (aarch64_function_arg_boundary): Likewise.
7799 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
7800 caller.
7801
7802 2017-04-26 Nathan Sidwell <nathan@acm.org>
7803
7804 * tree.h (crc32_unsigned_n): Declare.
7805 (crc32_unsigned, crc32_unsigned): Make inline.
7806 * tree.c (crc32_unsigned_bits): Replace with ...
7807 (crc32_unsigned_n): ... this.
7808 (crc32_unsigned, crc32_byte): Remove.
7809 (crc32_string): Remove unnecessary braces.
7810
7811 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
7812
7813 * ipa-cp.c (estimate_local_effects): Convert sreal to int.
7814 * ipa-inline-analysis.c (MAX_TIME): Remove.
7815 (account_size_time): Use sreal for time.
7816 (dump_inline_summary): Update.
7817 (estimate_function_body_sizes): Update.
7818 (estimate_edge_size_and_time): Update.
7819 (estimate_calls_size_and_time): Update.
7820 (estimate_node_size_and_time): Update.
7821 (inline_merge_summary): Update.
7822 (inline_update_overall_summary): Update.
7823 (estimate_time_after_inlining): Update.
7824 (inline_read_section): Update.
7825 (inline_write_summary): Update.
7826 * ipa-inline.c (compute_uninlined_call_time): Update.
7827 (compute_inlined_call_time): Update.
7828 (recursive_inlining): Update.
7829 (inline_small_functions): Update.
7830 (dump_overall_stats): Update.
7831 * ipa-inline.h: Include sreal.h.
7832 (size_time_entry): Turn time to sreal.
7833 (inline_summary): Turn self_time nad time to sreal.
7834
7835 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
7836
7837 * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
7838 data-streamer.h
7839 (sreal::stream_out, sreal::stream_in): New.
7840 * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
7841
7842 2017-04-25 Jakub Jelinek <jakub@redhat.com>
7843
7844 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
7845 environment.
7846
7847 2017-04-25 Uros Bizjak <ubizjak@gmail.com>
7848
7849 PR target/70799
7850 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
7851 Handle ASHIFTRT.
7852 (dimode_scalar_chain::compute_convert_gain): Ditto.
7853 (dimode_scalar_chain::make_vector_copies): Ditto.
7854 (dimode_scalar_chain::convert_reg): Ditto.
7855 (dimode_scalar_chain::convert_insn): Ditto.
7856 * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
7857 (VI248_AVX512BW_1): New mode iterator.
7858 (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
7859 <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
7860 mode iterator.
7861
7862 2017-04-25 Martin Sebor <msebor@redhat.com>
7863
7864 PR tree-optimization/80497
7865 * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
7866 constants are representable in HOST_WIDE_INT.
7867 (parse_directive): Ditto.
7868
7869 2017-04-25 Martin Sebor <msebor@redhat.com>
7870
7871 PR bootstrap/80486
7872 * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
7873 (new_zero_array): Adjust signature.
7874 (dom_info::dom_init): Used unsigned rather that size_t.
7875 (dom_info::dom_info): Same.
7876
7877 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7878 Jakub Jelinek <jakub@redhat.com>
7879
7880 PR target/77728
7881 * config/arm/arm.c: Include gimple.h.
7882 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
7883 returns negative, increment ncrn only if it returned positive.
7884 (arm_needs_doubleword_align): Return int instead of bool,
7885 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
7886 members, but if there is any such non-FIELD_DECL
7887 > PARM_BOUNDARY aligned decl, return -1 instead of false.
7888 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
7889 returns negative, increment nregs only if it returned positive.
7890 (arm_setup_incoming_varargs): Likewise.
7891 (arm_function_arg_boundary): Emit -Wpsabi note if
7892 arm_needs_doubleword_align returns negative, return
7893 DOUBLEWORD_ALIGNMENT only if it returned positive.
7894
7895 2017-04-25 Marek Polacek <polacek@redhat.com>
7896
7897 PR sanitizer/80349
7898 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
7899 first argument to type.
7900
7901 2017-04-25 Bill Seurer <seurer@linux.vnet.ibm.com>
7902
7903 PR target/80482
7904 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
7905 type checks to test for compatibility instead of equality.
7906
7907 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7908 Jakub Jelinek <jakub@redhat.com>
7909
7910 PR target/77728
7911 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
7912 type.
7913 (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
7914 struct. Ignore DECL_ALIGN of decls other than FIELD_DECL for
7915 the alignment computation, but return their maximum in warn_alignment.
7916 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
7917 Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
7918 is smaller.
7919 (aarch64_function_arg_boundary): Likewise. Simplify using MIN/MAX.
7920 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
7921 caller.
7922
7923 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7924
7925 * config/arc/simdext.md (dmpyh): Fix typo.
7926
7927 2017-04-25 Richard Biener <rguenther@suse.de>
7928
7929 PR tree-optimization/80492
7930 * alias.c (compare_base_decls): Handle registers with asm
7931 specification conservatively.
7932 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
7933 compare_base_decls returning dont-know properly.
7934
7935 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7936
7937 * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
7938 (legitimate_offset_address_p): New function.
7939 (arc_legitimate_address_p): Use above function.
7940
7941 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7942
7943 * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
7944
7945 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7946
7947 * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
7948 ACCH registers whenever they are available.
7949
7950 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7951
7952 * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
7953 double regs fix when not used.
7954
7955 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7956
7957 * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
7958 core registers.
7959 (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
7960 (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
7961
7962 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7963
7964 * config/arc/arc.c (arc_output_addsi): Check for h-register class
7965 when emitting short ADD instructions.
7966
7967 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7968
7969 * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
7970 constraint.
7971 (cmpsi_cc_c_insn): Likewise.
7972 (cbranchsi4_scratch): Compute proper instruction length using
7973 compact_hreg_operand.
7974 * config/arc/predicates.md (compact_hreg_operand): New predicate.
7975
7976 2017-04-25 Richard Biener <rguenther@suse.de>
7977
7978 PR middle-end/80509
7979 * passes.c (pass_manager::pass_manager): Initialize
7980 m_name_to_pass_map.
7981
7982 2017-04-25 Richard Biener <rguenther@suse.de>
7983
7984 PR tree-optimization/79201
7985 * tree-ssa-sink.c (statement_sink_location): Handle calls.
7986
7987 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7988
7989 PR target/80464
7990 * config/s390/vector.md: Split MEM->GPR vector moves for
7991 non-s_operand addresses.
7992
7993 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7994
7995 PR target/79895
7996 * config/s390/predicates.md (reload_const_wide_int_operand): New
7997 predicate.
7998 * config/s390/s390.md ("movti"): Remove d/P alternative.
7999 ("movti_bigconst"): New pattern definition.
8000
8001 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
8002
8003 PR target/80080
8004 * s390-protos.h (s390_expand_cs_hqi): Removed.
8005 (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
8006 * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
8007 modes as well as CCZ1mode and CCZmode.
8008 (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
8009 signature of s390_emit_compare_and_swap.
8010 (s390_expand_cs_hqi): Likewise, make static.
8011 (s390_expand_cs_tdsi): Generate an explicit compare before trying
8012 compare-and-swap, in some cases.
8013 (s390_expand_cs): Wrapper function.
8014 (s390_expand_atomic_exchange_tdsi): New backend specific expander for
8015 atomic_exchange.
8016 (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
8017 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
8018 patterns for small and large integers. Forbid symref memory operands.
8019 Move expander to s390.c. Require cc register.
8020 ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
8021 ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
8022 ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
8023 ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
8024 symref memory operands. Remove CC mode and call s390_match_ccmode
8025 instead.
8026 ("atomic_exchange<mode>"): Allow and implement all integer modes.
8027
8028 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
8029
8030 * config/s390/s390.md (define_peephole2): New peephole to help
8031 combining the load-and-test pattern with volatile memory.
8032
8033 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
8034
8035 * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
8036 with CCZmode for TARGET_Z196.
8037
8038 2017-04-25 Jakub Jelinek <jakub@redhat.com>
8039
8040 PR rtl-optimization/80501
8041 * combine.c (make_compound_operation_int): Set subreg_code to SET
8042 even for AND with mask of the sign bit of mode.
8043
8044 PR rtl-optimization/80500
8045 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
8046 sum's initial value.
8047
8048 2017-04-25 Julian Brown <julian@codesourcery.com>
8049 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
8050
8051 * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
8052
8053 2017-04-25 Marc Glisse <marc.glisse@inria.fr>
8054
8055 * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
8056
8057 2017-04-25 Julian Brown <julian@codesourcery.com>
8058 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
8059
8060 * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
8061 (thunderx2t99_sha): New Reservation.
8062
8063 2017-04-25 Julian Brown <julian@codesourcery.com>
8064 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
8065
8066 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
8067 type for 1-element load.
8068
8069 2017-04-24 Marc Glisse <marc.glisse@inria.fr>
8070
8071 * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
8072
8073 2017-04-24 Martin Jambor <mjambor@suse.cz>
8074
8075 PR tree-optimization/80293
8076 * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
8077 char arrays not totally scalarizable if it is false.
8078 (analyze_all_variable_accesses): Pass correct value in the new
8079 parameter. Add a statistics counter.
8080
8081 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
8082
8083 PR middle-end/79931
8084 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
8085
8086 2017-04-24 Richard Biener <rguenther@suse.de>
8087
8088 PR tree-optimization/80494
8089 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
8090 out for complex types.
8091
8092 2017-04-24 Richard Biener <rguenther@suse.de>
8093
8094 * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
8095 * tree-ssa-sccvn.c (print_scc): Print SCC size.
8096 (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
8097 (DFS): Adjust and never fail.
8098 (sccvn_dom_walker::fail): Remove.
8099 (sccvn_dom_walker::before_dom_children): Adjust.
8100 (run_scc_vn): Likewise and never fail.
8101 * tree-ssa-pre.c (pass_pre::execute): Adjust.
8102 (pass_fre::execute): Likewise.
8103
8104 2017-04-24 Richard Biener <rguenther@suse.de>
8105
8106 PR tree-optimization/79725
8107 * tree-ssa-sink.c (statement_sink_location): Return whether
8108 failure reason was zero uses. Move that check later.
8109 (sink_code_in_bb): Deal with zero uses by removing the stmt
8110 if possible.
8111
8112 2017-04-24 Richard Biener <rguenther@suse.de>
8113
8114 PR c++/2972
8115 * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
8116 pointer-based references.
8117
8118 2017-04-24 Richard Biener <rguenther@suse.de>
8119
8120 PR bootstrap/79814
8121 * pass_manager.h (pass_manager::operator new): Remove.
8122 (pass_manager::operator delete): Likewise.
8123 * passes.c (pass_manager::operator new): Remove.
8124 (pass_manager::operator delete): Likewise.
8125 (pass_manager::pass_manager): Zero individual pass members.
8126
8127 2017-04-23 Uros Bizjak <ubizjak@gmail.com>
8128
8129 PR target/70799
8130 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
8131 <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
8132 Check "XEXP (src, 1)" operand here.
8133 <case PLUS, case MINUS, case IOR, case XOR, case AND>:
8134 Check "XEXP (src, 1)" operand here.
8135 (dimode_scalar_chain::make_vector_copies): Detect count register
8136 of a shift instruction. Zero extend count register from QImode
8137 to DImode to satisfy vector shift pattern count operand predicate.
8138 Substitute vector shift count operand with a DImode copy.
8139 (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
8140 vector register.
8141
8142 2017-04-21 Uros Bizjak <ubizjak@gmail.com>
8143
8144 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
8145 Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
8146 (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove
8147 UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
8148 (UNSPEC_NOREX_MEM): Remove definition.
8149
8150 2017-04-21 Richard Biener <rguenther@suse.de>
8151
8152 PR tree-optimization/79547
8153 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8154 Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
8155 bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
8156 without any constraints.
8157
8158 2017-04-21 Richard Biener <rguenther@suse.de>
8159
8160 PR tree-optimization/78847
8161 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
8162
8163 2017-04-21 Richard Biener <rguenther@suse.de>
8164
8165 * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
8166 (build_distinct_type_copy): Likewise.
8167 (build_variant_type_copy): Likewise.
8168 * tree.c (build_qualified_type): Pass down mem-stat info.
8169 (build_distinct_type_copy): Likewise.
8170 (build_variant_type_copy): Likewise.
8171
8172 2017-04-21 Richard Biener <rguenther@suse.de>
8173
8174 PR tree-optimization/80237
8175 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
8176 defaulted to NULL.
8177 (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
8178 for a simplified result.
8179
8180 2016-04-21 Richard Biener <rguenther@suse.de>
8181
8182 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
8183 sth as strict as a simple_iv but a chrec without symbols and an
8184 operand defined in the loop we are peeling (and not some subloop).
8185 (propagate_constants_for_unrolling): Propagate all constants.
8186
8187 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
8188
8189 PR target/79804
8190 * config/i386/i386.c (print_reg): Remove assert for disalowed
8191 regno values, call output_operand_lossage instead.
8192
8193 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
8194
8195 PR target/78090
8196 * config/i386/constraints.md (Yc): New register constraint.
8197 * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
8198 Use Yc constraint for alternative 2 of operand 0. Remove
8199 preferred_for_speed attribute.
8200
8201 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
8202
8203 * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
8204 lastprivate clauses in SIMT case.
8205
8206 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
8207
8208 * doc/invoke.texi (-Wextra-semi): Document new warning option.
8209
8210 2017-04-20 Richard Biener <rguenther@suse.de>
8211
8212 PR tree-optimization/57796
8213 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
8214 as N scalar stores.
8215 (vect_model_load_cost): Cost gathers as N scalar loads.
8216
8217 2017-04-20 Richard Biener <rguenther@suse.de>
8218
8219 * ggc-page.c (ggc_allocated_p): Rename to ...
8220 (safe_lookup_page_table_entry): ... this and return the lookup
8221 result.
8222 (gt_ggc_m_S): Use safe_lookup_page_table_entry.
8223
8224 2017-04-20 Richard Biener <rguenther@suse.de>
8225
8226 PR tree-optimization/80453
8227 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
8228 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
8229 from the conditions.
8230 (vn_phi_eq): Pass them down.
8231 (vn_phi_lookup): Record them.
8232 (vn_phi_insert): Likewise.
8233
8234 2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
8235
8236 * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
8237 uninitialized variable warning to avoid buffer overrun.
8238
8239 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
8240
8241 PR other/71250
8242 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
8243 is suppressed for '{ 0 }' in C.
8244
8245 2017-04-20 Jakub Jelinek <jakub@redhat.com>
8246
8247 * BASE-VER: Set to 8.0.0.
8248
8249 2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
8250
8251 * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
8252 priority .init_array and .fini_array section with SECTION_NOTYPE
8253 flag.
8254
8255 2017-04-20 Jakub Jelinek <jakub@redhat.com>
8256
8257 PR middle-end/80423
8258 * tree.h (build_array_type): Add typeless_storage default argument.
8259 * tree.c (type_cache_hasher::equal): Also compare
8260 TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
8261 (build_array_type): Add typeless_storage argument, set
8262 TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
8263 recursive call.
8264 (build_nonshared_array_type): Adjust build_array_type_1 caller.
8265 (build_array_type): Likewise. Add typeless_storage argument.
8266
8267 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
8268 Jakub Jelinek <jakub@redhat.com>
8269
8270 PR tree-optimization/80426
8271 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
8272 operation on symbolic operands, also compute the overflow for the
8273 invariant part when the operation degenerates into a negation.
8274
8275 2017-04-19 Jakub Jelinek <jakub@redhat.com>
8276
8277 PR debug/80461
8278 * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
8279 Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
8280
8281 PR debug/80436
8282 * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
8283
8284 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
8285
8286 PR target/80462
8287 * config/avr/avr.c (tree.h): Include it.
8288 (cgraph.h): Include it.
8289 (avr_encode_section_info): Don't warn for uninitialized progmem
8290 variable if it's just an alias.
8291
8292 2017-04-19 Richard Biener <rguenther@suse.de>
8293
8294 PR ipa/65972
8295 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
8296 when needed by AutoPGO.
8297
8298 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
8299
8300 PR lto/50345
8301 * doc/lto.texi: Remove an extra 'that'.
8302
8303 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
8304
8305 PR rtl-optimization/80429
8306 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
8307 are only used in debug insns.
8308
8309 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
8310 Vladimir Makarov <vmakarov@redhat.com>
8311
8312 * config/sparc/predicates.md (input_operand): Add comment. Return
8313 true for any memory operand when LRA is in progress.
8314 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
8315
8316 2017-04-18 Jeff Law <law@redhat.com>
8317
8318 PR target/74563
8319 * mips.md ({return,simple_return}_internal): Do not overwrite
8320 operands[0].
8321
8322 2017-04-18 Jakub Jelinek <jakub@redhat.com>
8323
8324 PR tree-optimization/80443
8325 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
8326 instead of adding 1, subtract -1 and similarly instead of subtracting
8327 1 add -1.
8328
8329 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
8330
8331 PR rtl-optimization/80357
8332 * haifa-sched.c (tmp_bitmap): New variable.
8333 (model_recompute): Handle duplicate use records.
8334 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
8335 (free_global_sched_pressure_data): Free it.
8336
8337 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8338
8339 Revert:
8340 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8341 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
8342 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
8343 instead of SYSTEM_HEADER_DIR.
8344
8345 2017-04-18 Jeff Law <law@redhat.com>
8346
8347 PR middle-end/80422
8348 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
8349 predecessors after walking up the insn chain.
8350
8351 2017-04-18 Jakub Jelinek <jakub@redhat.com>
8352
8353 PR debug/80263
8354 * dwarf2out.c (modified_type_die): Try harder not to emit internal
8355 sizetype type into debug info.
8356
8357 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8358
8359 PR target/80099
8360 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
8361 unneeded test for TARGET_UPPER_REGS_SF.
8362 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
8363
8364 2017-04-18 Jakub Jelinek <jakub@redhat.com>
8365
8366 PR sanitizer/80444
8367 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
8368 instead of gsi_after_labels.
8369
8370 2017-04-18 Jeff Law <law@redhat.com>
8371
8372 * regcprop.c (maybe_mode_change): Avoid creating copies of the
8373 stack pointer.
8374
8375 Revert:
8376 2017-04-13 Jeff Law <law@redhat.com>
8377 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
8378 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
8379
8380 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
8381
8382 PR target/79453
8383 * config/avr/avr.c (intl.h): Include it.
8384 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
8385
8386 2017-04-18 Martin Liska <mliska@suse.cz>
8387
8388 PR gcov-profile/78783
8389 * gcov-tool.c (gcov_output_files): Validate that destination
8390 file is either removed by the tool or by a user.
8391
8392 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
8393 Guy Benyei <guybe@mellanox.com>
8394
8395 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
8396 block, and do not negate it, the stored id is already negative.
8397
8398 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
8399
8400 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
8401
8402 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8403
8404 PR target/80098
8405 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
8406 masks of options that should be turned off if the VSX vector
8407 options are turned off.
8408 (OTHER_P8_VECTOR_MASKS): Likewise.
8409 (OTHER_VSX_VECTOR_MASKS): Likewise.
8410 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
8411 rs6000_disable_incompatible_switches to validate no type switches
8412 like -mvsx.
8413 (rs6000_incompatible_switch): New function to disallow turning on
8414 other vector options if -mno-vsx, -mno-power8-vector, or
8415 -mno-power9-vector are specified.
8416
8417 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
8418
8419 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
8420
8421 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
8422
8423 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
8424 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
8425 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
8426 (ARG_POINTER_CFA_OFFSET): Likewise.
8427
8428 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
8429
8430 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
8431 conditions to take advantage of various optimizations.
8432
8433 2017-04-13 Jeff Law <law@redhat.com>
8434
8435 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
8436 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
8437 (zero_extendsidi2_dext): Likewise.
8438
8439 2017-04-13 Jakub Jelinek <jakub@redhat.com>
8440
8441 PR sanitizer/80403
8442 * fold-const.c (fold_ternary_loc): Revert
8443 use op0 instead of fold_convert_loc (loc, type, arg0) part of
8444 2017-04-12 change.
8445
8446 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
8447
8448 PR rtl-optimization/80343
8449 * lra-remat.c (update_scratch_ops): Assign original hard reg to
8450 new scratch pseudo.
8451
8452 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
8453
8454 PR sanitizer/80414
8455 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
8456 to ubsan_encode_value.
8457
8458 2017-04-13 Jeff Law <law@redhat.com>
8459
8460 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
8461 appearing in DEBUG_INSNs.
8462
8463 2017-04-13 Martin Liska <mliska@suse.cz>
8464
8465 PR gcov-profile/80413
8466 * gcov-io.c (gcov_write_string): Copy to buffer just when
8467 allocated size is greater than zero.
8468
8469 2017-04-13 Jakub Jelinek <jakub@redhat.com>
8470
8471 PR debug/80321
8472 * dwarf2out.c (decls_for_scope): Ignore declarations of
8473 current_function_decl in BLOCK_NONLOCALIZED_VARS.
8474
8475 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
8476
8477 PR lto/69953
8478 * ipa-visibility.c (non_local_p): Fix typos.
8479 (localize_node): When localizing symbol in same comdat group,
8480 dissolve the group only when we know external symbols are going
8481 to be privatized.
8482 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
8483
8484 2017-04-12 Jakub Jelinek <jakub@redhat.com>
8485
8486 PR tree-optimization/79390
8487 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
8488 order does not result in usable sequence, retry with reversed operand
8489 order.
8490
8491 PR sanitizer/80403
8492 PR sanitizer/80404
8493 PR sanitizer/80405
8494 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
8495 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
8496 op0 instead of fold_convert_loc (loc, type, arg0).
8497
8498 2017-04-12 Jeff Law <law@redhat.com>
8499
8500 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
8501 has a delay slot in the generated code.
8502
8503 * config/cris/cris.md (cris_preferred_reload_class): Return
8504 GENNONACR_REGS rather than GENERAL_REGS.
8505
8506 2017-04-12 Jakub Jelinek <jakub@redhat.com>
8507
8508 PR c/80163
8509 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
8510 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
8511 signedness of the result type.
8512
8513 2017-04-12 Richard Biener <rguenther@suse.de>
8514 Jeff Law <law@redhat.com>
8515
8516 PR tree-optimization/80359
8517 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
8518 trim stores to TARGET_MEM_REFs.
8519
8520 2017-04-12 Richard Biener <rguenther@suse.de>
8521
8522 PR tree-optimization/79390
8523 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
8524 threading case even more.
8525
8526 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
8527
8528 PR target/80382
8529 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
8530 for quad_address_p for TImode, instead of just not indexed_address.
8531
8532 2017-04-12 Richard Biener <rguenther@suse.de>
8533 Bernd Edlinger <bernd.edlinger@hotmail.de>
8534
8535 PR middle-end/79671
8536 * alias.c (component_uses_parent_alias_set_from): Handle
8537 TYPE_TYPELESS_STORAGE.
8538 (get_alias_set): Likewise.
8539 * tree-core.h (tree_type_common): Add typeless_storage flag.
8540 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
8541 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
8542 for types containing members with TYPE_TYPELESS_STORAGE.
8543 (place_field): Likewise.
8544 (layout_type): Likewise for ARRAY_TYPE.
8545 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
8546 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
8547 TYPE_TYPELESS_STORAGE.
8548 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
8549
8550 2017-04-12 Jakub Jelinek <jakub@redhat.com>
8551
8552 PR sanitizer/80349
8553 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
8554 first argument to type.
8555
8556 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8557
8558 PR target/80376
8559 PR target/80315
8560 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
8561 CONST0_RTX (mode) rather than const0_rtx where appropriate.
8562 (rs6000_expand_binop_builtin): Likewise.
8563 (rs6000_expand_ternop_builtin): Likewise; also add missing
8564 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
8565 vshasigma built-ins.
8566 * doc/extend.texi: Document that vec_xxpermdi's third argument
8567 must be a constant.
8568
8569 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
8570
8571 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
8572 Use shift_const cost parameter when calculating gain of STV shifts.
8573
8574 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
8575
8576 PR rtl-optimization/70478
8577 * lra-constraints.c (process_alt_operands): Check memory for
8578 disfavoring memory insn operand.
8579
8580 2017-04-11 Jakub Jelinek <jakub@redhat.com>
8581
8582 PR middle-end/80100
8583 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
8584 left shift in unsigned HOST_WIDE_INT type.
8585
8586 PR rtl-optimization/80385
8587 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
8588 (not (neg X)) into (plus X -1) for complex or non-integral modes.
8589
8590 PR libgomp/80394
8591 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
8592 if they have any depend clauses.
8593
8594 2017-04-11 Martin Liska <mliska@suse.cz>
8595
8596 PR ipa/80212
8597 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
8598 * ipa-split.c (split_function): Create a local comdat symbol
8599 if caller is in a comdat group.
8600
8601 2017-04-11 Martin Liska <mliska@suse.cz>
8602
8603 PR ipa/80212
8604 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
8605 flags.
8606
8607 2017-04-11 Martin Sebor <msebor@redhat.com>
8608
8609 PR middle-end/80364
8610 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
8611 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
8612 for INTEGER_TYPE.
8613 (directive::set_width, directive::set_precision, format_character):
8614 Adjust.
8615 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
8616 INTEGER_TYPE.
8617
8618 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
8619
8620 PR target/80389
8621 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
8622 conflict, set target->arch_name instead of target->cpu_name.
8623
8624 2017-04-11 Richard Biener <rguenther@suse.de>
8625
8626 PR tree-optimization/80374
8627 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
8628 build_zero_cst, remove fold_convertible_p check again.
8629
8630 2017-04-11 Martin Liska <mliska@suse.cz>
8631
8632 PR sanitizer/70878
8633 * ubsan.c (instrument_object_size): Do not instrument register
8634 variables.
8635
8636 2017-04-11 Jakub Jelinek <jakub@redhat.com>
8637
8638 PR target/80381
8639 * config/i386/i386-builtin-types.def
8640 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
8641 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
8642 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
8643 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
8644 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
8645 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
8646 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
8647 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
8648 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
8649 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
8650 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
8651 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
8652 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
8653 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
8654 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
8655 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
8656 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
8657 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
8658 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
8659 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
8660 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
8661 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
8662 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
8663 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
8664 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
8665 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
8666 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
8667 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
8668 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
8669 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
8670 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
8671 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
8672 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
8673 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
8674 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
8675 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
8676 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
8677 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
8678 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
8679 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
8680 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
8681 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
8682 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
8683 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
8684 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
8685 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
8686 aliases.
8687 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
8688 flag to second_arg_count, handle 4 argument function type _COUNT
8689 aliases, handle second_arg_count on second argument rather than last.
8690
8691 2017-04-10 Jeff Law <law@redhat.com>
8692
8693 PR tree-optimization/80374
8694 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
8695 record anything if we can not convert integer_zero_node to the
8696 desired type.
8697
8698 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
8699
8700 PR target/80108
8701 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8702 Enhance special handling given to the TARGET_P9_MINMAX option in
8703 relation to certain other options.
8704
8705 2017-04-10 Bin Cheng <bin.cheng@arm.com>
8706
8707 PR tree-optimization/80153
8708 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
8709 remove POINTER_PLUS_EXPR's base part directly, rather than through
8710 aff_tree.
8711
8712 2017-04-10 Richard Biener <rguenther@suse.de>
8713 Bin Cheng <bin.cheng@arm.com>
8714
8715 PR tree-optimization/80153
8716 * tree-affine.c (aff_combination_to_tree): Get base pointer from
8717 the first element of pointer type aff_tree. Build result expr in
8718 aff_tree's type.
8719 (add_elt_to_tree): Convert to type unconditionally. Remove other
8720 fold_convert calls.
8721 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
8722 (rewrite_use_nonlinear_expr): Check invariant using iv information.
8723
8724 2017-04-10 Richard Biener <rguenther@suse.de>
8725
8726 * tree-ssa-structalias.c (find_func_aliases): Properly handle
8727 asm inputs.
8728
8729 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
8730
8731 PR rtl-optimization/70478
8732 * lra-constraints.c (curr_small_class_check): New.
8733 (update_and_check_small_class_inputs): New.
8734 (process_alt_operands): Update curr_small_class_check. Disfavor
8735 alternative insn memory operands. Check available regs for small
8736 class operands.
8737
8738 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
8739
8740 PR target/80057
8741 * config/mips/mips.opt (-mvirt): Update description.
8742 * doc/invoke.texi (-mvirt): Likewise.
8743
8744 2017-04-10 Richard Biener <rguenther@suse.de>
8745
8746 PR middle-end/80362
8747 * fold-const.c (fold_binary_loc): Look at unstripped ops when
8748 looking for NEGATE_EXPR in -A / -B to A / B folding.
8749
8750 2017-04-10 Martin Liska <mliska@suse.cz>
8751
8752 PR gcov-profile/80224
8753 * gcov.c (print_usage): Fix usage string.
8754 (get_gcov_intermediate_filename): Remove.
8755 (output_gcov_file): Use both for normal and intermediate format.
8756 (generate_results): Do not initialize special file for
8757 intermediate format.
8758
8759 2017-04-10 Richard Biener <rguenther@suse.de>
8760
8761 PR tree-optimization/80304
8762 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
8763 for safelen.
8764
8765 2017-04-10 Nathan Sidwell <nathan@acm.org>
8766
8767 PR target/79905
8768 * config/rs6000/rs6000.c (rs6000_vector_type): New.
8769 (rs6000_init_builtins): Use it.
8770
8771 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8772
8773 * config/arm/arm.md (<mrc>): Add mode to SET source.
8774 (<mrrc>): Likewise.
8775
8776 2017-04-10 Richard Biener <rguenther@suse.de>
8777
8778 PR middle-end/80344
8779 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
8780
8781 2017-04-10 Jakub Jelinek <jakub@redhat.com>
8782
8783 PR target/80324
8784 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
8785 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
8786 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
8787 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
8788 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
8789 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
8790 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
8791 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
8792 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
8793 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
8794 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
8795 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
8796 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
8797 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
8798 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
8799 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
8800 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
8801 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
8802 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
8803 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
8804 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
8805 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
8806 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
8807
8808 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
8809
8810 PR rtl-optimization/70478
8811 * lra-constraints.c: Reverse the last patch.
8812
8813 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
8814
8815 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
8816 Add comment for WCHAR_T.
8817
8818 2017-04-08 Martin Liska <mliska@suse.cz>
8819
8820 Revert:
8821 2017-04-07 Martin Liska <mliska@suse.cz>
8822
8823 PR ipa/80212
8824 * ipa-split.c (split_function): Add function part to a same comdat
8825 group.
8826
8827 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8828
8829 PR target/80358
8830 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
8831
8832 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
8833
8834 * rs6000/rs6000.c (vec_load_pendulum): Rename...
8835 (vec_pairing): ...to this.
8836 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
8837 (rs6000_sched_init): Adjust for name change.
8838 (struct rs6000_sched_context): Likewise.
8839 (rs6000_init_sched_context): Likewise.
8840 (rs6000_set_sched_context): Likewise.
8841
8842 2017-04-07 Jakub Jelinek <jakub@redhat.com>
8843
8844 PR target/80322
8845 PR target/80323
8846 PR target/80325
8847 PR target/80326
8848 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
8849 intrinsics.
8850 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
8851 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
8852 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
8853
8854 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
8855
8856 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
8857
8858 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
8859
8860 PR rtl-optimization/70703
8861 * ira-color.c (update_conflict_hard_regno_costs): Use
8862 int64_t instead of HOST_WIDE_INT.
8863
8864 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
8865
8866 PR rtl-optimization/70478
8867 * lra-constraints.c (process_alt_operands): Disfavor alternative
8868 insn memory operands.
8869
8870 2017-04-07 Jeff Law <law@redhat.com>
8871
8872 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
8873 CALL and NOTE_INSN_CALL_ARG_LOCATION.
8874
8875 2017-04-07 Martin Liska <mliska@suse.cz>
8876
8877 PR target/79889
8878 * config/aarch64/aarch64.c (aarch64_process_target_attr):
8879 Show error message instead of an ICE.
8880
8881 2017-04-07 Martin Liska <mliska@suse.cz>
8882
8883 PR ipa/80212
8884 * ipa-split.c (split_function): Add function part to a same comdat
8885 group.
8886
8887 2017-04-07 Richard Biener <rguenther@suse.de>
8888
8889 PR middle-end/80341
8890 * tree.c (get_unwidened): Also handle ! for_type case for
8891 INTEGER_CSTs.
8892 * convert.c (do_narrow): Split out from ...
8893 (convert_to_integer_1): ... here. Do not pass final truncation
8894 type to get_unwidened for TRUNC_DIV_EXPR.
8895
8896 2017-04-07 Richard Biener <rguenther@suse.de>
8897
8898 * tree-affine.c (wide_int_ext_for_comb): Take type rather
8899 than aff_tree.
8900 (aff_combination_const): Adjust.
8901 (aff_combination_scale): Likewise.
8902 (aff_combination_add_elt): Likewise.
8903 (aff_combination_add_cst): Likewise.
8904 (aff_combination_convert): Likewise.
8905 (add_elt_to_tree): Likewise. Remove unused argument.
8906 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
8907
8908 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
8909
8910 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
8911 definition.
8912 * config/arm/arm.c (arm_default_short_enums): Use
8913 ARM_DEFAULT_SHORT_ENUMS.
8914 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
8915
8916 2017-04-06 Jakub Jelinek <jakub@redhat.com>
8917
8918 PR debug/80234
8919 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
8920 members with redundant out-of-class redeclaration.
8921
8922 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
8923
8924 PR target/80286
8925 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
8926 * config/i386/i386.md (*zero_extendsidi2):
8927 Add (?*x,*x) and (?*v,*v) alternatives.
8928
8929 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
8930
8931 PR target/79733
8932 * config/i386/i386.c (ix86_expand_builtin)
8933 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
8934 mode from insn data. Convert operands to insn operand mode.
8935 Copy operands that don't satisfy insn predicate to a register.
8936
8937 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
8938
8939 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
8940 Update comments.
8941
8942 2017-04-06 Richard Biener <rguenther@suse.de>
8943
8944 PR tree-optimization/80334
8945 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
8946 preserve alignment of accesses.
8947
8948 2017-04-06 Richard Biener <rguenther@suse.de>
8949
8950 PR tree-optimization/80262
8951 * tree-sra.c (build_ref_for_offset): Preserve address-space
8952 information.
8953 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8954 Drop useless address-space information on MEM_REF offsets.
8955
8956 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
8957
8958 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
8959
8960 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
8961
8962 PR rtl-optimization/70703
8963 * ira-color.c (update_conflict_hard_regno_costs): Use
8964 HOST_WIDE_INT instead of long.
8965
8966 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
8967
8968 PR target/80298
8969 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
8970 not defined for x86_64 target. Add -mmmx target option when __SSE2__
8971 is not defined.
8972 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
8973 for x86_64 target. Handle -m3dnowa option.
8974
8975 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
8976
8977 PR rtl-optimization/70703
8978 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
8979 (update_conflict_hard_regno_costs): Use long instead of unsigned
8980 arithmetic for cost calculation.
8981
8982 2017-04-05 Jakub Jelinek <jakub@redhat.com>
8983 Bernd Edlinger <bernd.edlinger@hotmail.de>
8984
8985 PR sanitizer/80308
8986 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
8987 for big endian.
8988
8989 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
8990
8991 PR target/78002
8992 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
8993 ptr_mode with Pmode throughout.
8994 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
8995 into probe_stack_range and use DImode.
8996
8997 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
8998
8999 PR target/79890
9000 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
9001 call_eh_return is true.
9002
9003 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9004
9005 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
9006 Initialize last_match_fntype_index.
9007
9008 2017-04-05 Jakub Jelinek <jakub@redhat.com>
9009
9010 PR target/80310
9011 * tree-nvr.c: Include internal-fn.h.
9012 (pass_return_slot::execute): Ignore internal calls without
9013 direct optab.
9014
9015 2017-04-04 Jakub Jelinek <jakub@redhat.com>
9016 Richard Biener <rguenther@suse.de>
9017
9018 PR c++/80297
9019 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
9020 captures used multiple times, except for the last use.
9021 * generic-match-head.c: Include gimplify.h.
9022
9023 2017-04-04 Jakub Jelinek <jakub@redhat.com>
9024
9025 PR tree-optimization/79390
9026 * target.h (struct noce_if_info): Declare.
9027 * targhooks.h (default_noce_conversion_profitable_p): Declare.
9028 * target.def (noce_conversion_profitable_p): New target hook.
9029 * ifcvt.h (struct noce_if_info): New type, moved from ...
9030 * ifcvt.c (struct noce_if_info): ... here.
9031 (noce_conversion_profitable_p): Renamed to ...
9032 (default_noce_conversion_profitable_p): ... this. No longer
9033 static nor inline.
9034 (noce_try_store_flag_constants, noce_try_addcc,
9035 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
9036 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
9037 instead of noce_conversion_profitable_p.
9038 * config/i386/i386.c: Include ifcvt.h.
9039 (ix86_option_override_internal): Don't override
9040 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
9041 (ix86_noce_conversion_profitable_p): New function.
9042 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
9043 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
9044 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
9045 * doc/tm.texi: Regenerated.
9046
9047 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9048
9049 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
9050 correction.
9051
9052 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9053
9054 PR target/80307
9055 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
9056 instructions for small multiply cores.
9057
9058 2017-04-04 Jeff Law <law@redhat.com>
9059
9060 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
9061 added member.
9062 (mips_expand_vec_perm_const): Initialize elements in orig_perm
9063 that are not set by the loop over the elements.
9064
9065 2017-04-04 Jakub Jelinek <jakub@redhat.com>
9066
9067 PR target/80286
9068 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
9069 int mode, convert_modes it to mode as unsigned, otherwise use
9070 lowpart_subreg to mode rather than SImode.
9071 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
9072 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
9073 Use DImode instead of SImode for the shift count operand.
9074 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
9075 Likewise.
9076
9077 2017-04-04 Richard Biener <rguenther@suse.de>
9078
9079 PR middle-end/80281
9080 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
9081 arithmetic done for the negate or the plus. Simplify.
9082 (A - (-B) -> A + B): Likewise.
9083 * fold-const.c (split_tree): Make sure to not negate pointers.
9084
9085 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
9086
9087 PR rtl-optimization/60818
9088 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
9089 a compare of comparisons with the thing compared if this results
9090 in a different machine mode.
9091
9092 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
9093
9094 * alias.c (base_alias_check): Fix typo in comment.
9095 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
9096 * cgraphunit.c (symbol_table::compile): Likewise.
9097 * collect2.c (maybe_run_lto_and_relink): Likewise.
9098 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
9099 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
9100 * config/avr/avr.c (avr_map_op_t): Likewise.
9101 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
9102 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
9103 * config/epiphany/epiphany.md (movcc): Likewise.
9104 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
9105 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
9106 Likewise.
9107 * config/mips/mips.c (mips_save_restore_reg): Likewise.
9108 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
9109 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
9110 * config/sh/sh.c (sh_rtx_costs): Likewise.
9111 * fold-const.c (fold_truth_andor): Likewise.
9112 * genautomata.c (collapse_flag): Likewise.
9113 * gengtype.h (struct type::u::s): Likewise.
9114 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
9115 * input.c (FORMAT_AMOUNT): Likewise.
9116 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
9117 (known_aggs_to_agg_replacement_list): Likewise.
9118 * ipa-inline-analysis.c: Likewise.
9119 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
9120 * ipa-polymorphic-call.c
9121 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
9122 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
9123 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
9124 Likewise.
9125 * modulo-sched.c (apply_reg_moves): Likewise.
9126 * omp-expand.c (build_omp_regions_1): Likewise.
9127 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
9128 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
9129 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
9130 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
9131 * value-prof.c: Likewise.
9132 * var-tracking.c (val_reset): Likewise.
9133
9134 2017-04-03 Richard Biener <rguenther@suse.de>
9135
9136 PR tree-optimization/80275
9137 * fold-const.c (split_address_to_core_and_offset): Handle
9138 POINTER_PLUS_EXPR.
9139
9140 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
9141
9142 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
9143 descriptors is at least equal to that of functions.
9144
9145 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
9146
9147 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
9148
9149 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
9150
9151 PR target/80250
9152 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
9153 (mov<IMOD4:mode>): New expander.
9154 (*mov<IMOD4:mode>_internal): New insn and split pattern.
9155
9156 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
9157
9158 PR rtl-optimization/79405
9159 * fwprop.c (propagations_left): New variable.
9160 (forward_propagate_into): Decrement it.
9161 (fwprop_init): Initialize it.
9162 (fw_prop): If the variable has reached zero, stop propagating.
9163 (fwprop_addr): Ditto.
9164
9165 2017-03-31 Jakub Jelinek <jakub@redhat.com>
9166
9167 PR debug/79255
9168 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
9169 a FUNCTION_DECL, pass it as decl instead of origin to
9170 process_scope_var.
9171
9172 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
9173
9174 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
9175 string.
9176
9177 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
9178
9179 PR target/80107
9180 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
9181 TARGET_VSX_SMALL_INTEGER.
9182
9183 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9184
9185 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
9186 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
9187
9188 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
9189
9190 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
9191 extraction from odd-numbered MSA register.
9192
9193 2017-03-31 Jakub Jelinek <jakub@redhat.com>
9194
9195 PR middle-end/80173
9196 * expmed.c (store_bit_field_1): Don't attempt to create
9197 a word subreg out of hard registers wider than word if they
9198 have HARD_REGNO_NREGS of 1 for their mode.
9199
9200 PR middle-end/80163
9201 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
9202 conversions to integer types wider than word and pointer.
9203
9204 PR debug/80025
9205 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
9206 (rtx_equal_for_cselib_p): Pass 0 to it.
9207 * cselib.c (cselib_hasher::equal): Likewise.
9208 (rtx_equal_for_cselib_1): Add depth argument. If depth
9209 is 128, don't look up VALUE locs and punt. Increment
9210 depth in recursive calls when walking VALUE locs.
9211
9212 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
9213
9214 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
9215 (make_gcov_file_name): Use the canonical path name for generating
9216 the MD5 value.
9217 (read_line): Fix handling of files with ascii null bytes.
9218
9219 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
9220
9221 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
9222 to initialise a vector register instead
9223 of using a const_int.
9224
9225 2017-03-30 Jakub Jelinek <jakub@redhat.com>
9226
9227 PR translation/80189
9228 * gimplify.c (omp_default_clause): Use %qs instead of %s in
9229 diagnostic messages.
9230
9231 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
9232
9233 PR target/80246
9234 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
9235 (dfp_diex_<mode>): Update mode of operand 1.
9236 * doc/extend.texi (dxex, dxexq): Document change to return type.
9237 (diex, diexq): Document change to argument type.
9238
9239 2017-03-30 Martin Jambor <mjambor@suse.cz>
9240
9241 PR ipa/77333
9242 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
9243 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
9244 it reflects the signature changes performed at the callee side.
9245 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
9246 to cgraph_build_function_type_skip_args.
9247 (build_function_decl_skip_args): Adjust call to the above function.
9248
9249 2017-03-30 Jakub Jelinek <jakub@redhat.com>
9250
9251 PR target/80206
9252 * config/i386/sse.md
9253 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
9254 register as dest whenever it is a MEM not rtx_equal_p to the
9255 corresponding dup operand, and when forcing into reg move the
9256 reg into the memory afterwards.
9257 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
9258 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
9259 for the force_reg mode.
9260 (avx512vl_vextractf128<mode>): Use register as dest either
9261 always when a MEM, or when it is a MEM not rtx_equal_p to the
9262 corresponding dup operand, or even not when it is a CONST_VECTOR
9263 depending on the mode and lo vs. hi.
9264 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
9265 parens.
9266 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
9267 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
9268 Likewise. Require that operands[2] is even.
9269 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
9270 Remove extraneous parens. Require that operands[2] is a multiple
9271 of 4.
9272 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
9273 operands[0] is a MEM if <mask_applied>, the predicates/constraints
9274 disallow memory then.
9275
9276 2017-03-30 Richard Biener <rguenther@suse.de>
9277
9278 PR tree-optimization/77498
9279 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
9280 to non-constants over backedges.
9281
9282 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
9283
9284 PR rtl-optimization/80233
9285 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
9286 as last_combined_insn. Do not test for BARRIER_P separately.
9287
9288 2017-03-29 Andreas Schwab <schwab@suse.de>
9289
9290 PR ada/80146
9291 * calls.c (prepare_call_address): Convert funexp to Pmode before
9292 copying to temp reg.
9293
9294 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9295
9296 PR tree-optimization/80158
9297 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
9298 Handle possible future case of more than one alternate
9299 interpretation.
9300 (replace_rhs_if_not_dup): Likewise.
9301 (replace_one_candidate): Likewise.
9302
9303 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
9304
9305 PR rtl-optimization/80193
9306 * ira.c (ira): Do not check allocation for LRA.
9307
9308 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
9309
9310 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
9311 (nvptx_output_simt_exit): Declare.
9312 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
9313 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
9314 (init_softstack_frame): Move initialization of crtl->is_leaf to...
9315 (nvptx_declare_function_name): ...here. Emit declaration of local
9316 memory space buffer for omp_simt_enter insn.
9317 (nvptx_output_unisimt_switch): New.
9318 (nvptx_output_softstack_switch): New.
9319 (nvptx_output_simt_enter): New.
9320 (nvptx_output_simt_exit): New.
9321 * config/nvptx/nvptx.h (struct machine_function): New fields
9322 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
9323 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
9324 (UNSPECV_SIMT_EXIT): Ditto.
9325 (omp_simt_enter_insn): New insn.
9326 (omp_simt_enter): New expansion.
9327 (omp_simt_exit): New insn.
9328 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
9329
9330 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
9331 (expand_GOMP_SIMT_ENTER_ALLOC): New.
9332 (expand_GOMP_SIMT_EXIT): New.
9333 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
9334 (GOMP_SIMT_ENTER_ALLOC): Ditto.
9335 (GOMP_SIMT_EXIT): Ditto.
9336 * target-insns.def (omp_simt_enter): New insn.
9337 (omp_simt_exit): Ditto.
9338 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
9339 simt_dlist.
9340 (lower_rec_simd_input_clauses): Implement SIMT privatization.
9341 (lower_rec_input_clauses): Likewise.
9342 (lower_lastprivate_clauses): Handle SIMT privatization.
9343
9344 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
9345 (ompdevlow_adjust_simt_enter): New.
9346 (find_simtpriv_var_op): New.
9347 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
9348 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
9349
9350 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
9351 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
9352 (copy_decl_for_dup_finish): Ditto.
9353
9354 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
9355
9356 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
9357
9358 PR target/53383
9359 * config/i386/i386.c (ix86_option_override_internal): Always
9360 allow -mpreferred-stack-boundary=3 for 64-bit targets.
9361
9362 2017-03-28 Bin Cheng <bin.cheng@arm.com>
9363
9364 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
9365
9366 2017-03-28 Bin Cheng <bin.cheng@arm.com>
9367
9368 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
9369 mark new edge's irreducible flag accordign to it.
9370 (vect_do_peeling): Check loop preheader edge's irreducible flag
9371 and pass it to function slpeel_add_loop_guard.
9372
9373 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
9374
9375 PR tree-optimization/80218
9376 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
9377 Update block frequencies and counts.
9378
9379 2017-03-28 Richard Biener <rguenther@suse.de>
9380
9381 PR tree-optimization/78644
9382 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
9383 of a simplification result we may not use it at all.
9384
9385 2017-03-28 Richard Biener <rguenther@suse.de>
9386
9387 PR ipa/80205
9388 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
9389 without arguments, generate default definition of a SSA name.
9390
9391 2017-03-28 Richard Biener <rguenther@suse.de>
9392
9393 PR middle-end/80222
9394 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
9395 TYPE_REF_CAN_ALIAS_ALL references.
9396 * fold-const.c (fold_indirect_ref_1): Likewise.
9397
9398 2017-03-28 Martin Liska <mliska@suse.cz>
9399
9400 PR ipa/80104
9401 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
9402 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
9403
9404 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
9405 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9406
9407 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
9408 (EXTRA_SPECS): Define.
9409 (SUBTARGET_EXTRA_SPECS): Likewise.
9410 (SUBTARGET_CPP_SPEC): Likewise.
9411 * config/arc/elf.h (EXTRA_SPECS): Renamed to
9412 SUBTARGET_EXTRA_SPECS.
9413 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
9414
9415 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
9416
9417 * config/arc/simdext.md (vst64_insn): Update pattern.
9418 (vld32wh_insn): Likewise.
9419 (vld32wl_insn): Likewise.
9420 (vld64_insn): Likewise.
9421 (vld32_insn): Likewise.
9422
9423 2017-03-28 Marek Polacek <polacek@redhat.com>
9424
9425 PR sanitizer/80067
9426 * fold-const.c (fold_comparison): Use protected_set_expr_location
9427 instead of SET_EXPR_LOCATION.
9428
9429 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
9430
9431 * tree.c (add_expr): Avoid name lookup warning.
9432
9433 2017-03-27 Jeff Law <law@redhat.com>
9434
9435 PR tree-optimization/80216
9436 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
9437 function name. Limit recursion depth.
9438 (record_temporary_equivalences): Corresponding changes.
9439
9440 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
9441
9442 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
9443 covered first.
9444
9445 2017-03-27 Jakub Jelinek <jakub@redhat.com>
9446
9447 PR target/80102
9448 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
9449 notes.
9450 * cfgcleanup.c (reg_note_cfa_p): New array.
9451 (insns_have_identical_cfa_notes): New function.
9452 (old_insns_match_p): Don't cross-jump in between /f
9453 and non-/f instructions. If both i1 and i2 are frame related,
9454 verify all CFA notes, their order and content.
9455
9456 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
9457
9458 PR target/78543
9459 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
9460 HImode and SImode with zero extend to DImode to one insn.
9461 (bswap<mode>2_extenddi): Likewise.
9462 (bswapsi2_extenddi): Likewise.
9463 (bswaphi2_extendsi): Likewise.
9464 (bswaphi2): Combine bswap HImode and SImode into one insn.
9465 Separate memory insns from swapping register.
9466 (bswapsi2): Likewise.
9467 (bswap<mode>2): Likewise.
9468 (bswaphi2_internal): Delete, no longer used.
9469 (bswapsi2_internal): Likewise.
9470 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
9471 store, and gpr<-gpr swap insns.
9472 (bswap<mode>2_store): Likewise.
9473 (bswaphi2_reg): Register only splitter, combine with the splitter.
9474 (bswaphi2 splitter): Likewise.
9475 (bswapsi2_reg): Likewise.
9476 (bswapsi2 splitter): Likewise.
9477 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
9478 the insns into load, store, and register/register insns.
9479 (bswapdi2_ldbrx): Likewise.
9480 (bswapdi2_load): Likewise.
9481 (bswapdi2_store): Likewise.
9482 (bswapdi2_reg): Likewise.
9483
9484 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
9485
9486 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
9487 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
9488
9489 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
9490
9491 PR target/80103
9492 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
9493 add comments.
9494 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
9495 special handling for target option conflicts between dform
9496 options (-mpower9-dform, -mpower9-dform-vector,
9497 -mpower9-dform-scalar) and -mno-direct-move.
9498
9499 2017-03-27 Richard Biener <rguenther@suse.de>
9500
9501 PR tree-optimization/80181
9502 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
9503
9504 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
9505
9506 * config/arc/predicates.md (move_double_src_operand): Replace the
9507 call to move_double_src_operand with a call to address_operand.
9508
9509 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
9510
9511 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
9512 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
9513 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
9514
9515 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
9516
9517 * config/arc/predicates.md (long_immediate_loadstore_operand):
9518 Consider scaled addresses cases.
9519
9520 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
9521
9522 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
9523 restored when in interrupt.
9524 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
9525 doesn't have delay slot.
9526
9527 2017-03-27 Richard Biener <rguenther@suse.de>
9528
9529 PR ipa/79776
9530 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
9531 inlined thunk clones.
9532
9533 2017-03-27 Jakub Jelinek <jakub@redhat.com>
9534
9535 PR sanitizer/80168
9536 * asan.c (instrument_derefs): Copy over last operand from
9537 original COMPONENT_REF to the new COMPONENT_REF with
9538 DECL_BIT_FIELD_REPRESENTATIVE.
9539 * ubsan.c (instrument_object_size): Likewise.
9540
9541 2017-03-27 Richard Biener <rguenther@suse.de>
9542
9543 PR tree-optimization/80170
9544 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
9545 sure DR/SCEV didnt fold in constants we do not see when looking
9546 at the reference base alignment.
9547
9548 2017-03-27 Richard Biener <rguenther@suse.de>
9549
9550 PR middle-end/80171
9551 * gimple-fold.c (fold_ctor_reference): Properly guard against
9552 NULL return value from canonicalize_constructor_val.
9553
9554 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
9555
9556 PR target/80180
9557 * config/i386/i386.c (ix86_expand_builtin)
9558 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
9559 flags reg setting and flags reg using instructions.
9560 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
9561 clobbering instructions to zero extend op2.
9562
9563 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
9564
9565 * doc/install.texi (Configuration) <--with-aix-soname>:
9566 Update link to AIX ld.
9567
9568 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
9569
9570 PR rtl-optimization/80160
9571 PR rtl-optimization/80159
9572 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
9573 reg_alternate_class into account.
9574
9575 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
9576
9577 PR target/80148
9578 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
9579 to consider in curr_insn_transform.
9580
9581 2017-03-24 Jakub Jelinek <jakub@redhat.com>
9582
9583 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
9584 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
9585 and emit_mode_inner.
9586
9587 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9588
9589 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
9590 argument to the overloaded builtin variants. Use the new flag to
9591 deprecate certain builtin variants.
9592 * config/s390/s390-builtin-types.def: Add new builtin types.
9593 * config/s390/s390-builtins.h: Support new flags field for
9594 overloaded builtins.
9595 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
9596 (s390_macro_to_expand): Enable vector float data type.
9597 (s390_cpu_cpp_builtins_internal): Indicate support of the new
9598 builtins by incrementing the __VEC__ version number.
9599 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
9600 vec_xst.
9601 (s390_resolve_overloaded_builtin): Emit error messages depending
9602 on the builtin flags.
9603 * config/s390/s390.c (s390_expand_builtin): Support additional
9604 flags argument. Change error message to match the messages
9605 emitted in s390-c.c.
9606 * config/s390/s390.md: New UNSPEC_* constants.
9607 (op_type): Add new instruction types.
9608 * config/s390/vecintrin.h: Add new builtins and test data class
9609 constants.
9610 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
9611 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
9612 (VEC_INEXACT, VEC_NOINEXACT): New constants.
9613 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
9614 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
9615 ("vec_mergel<mode>"): V_HW -> VEC_HW.
9616
9617 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
9618 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
9619 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
9620 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
9621
9622 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
9623 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
9624 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
9625 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
9626
9627 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
9628 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
9629 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
9630 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
9631 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
9632 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
9633 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
9634
9635 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
9636 ("vec_scatter_element<V_HW_4:mode>_DI")
9637 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
9638 ("vec_fpint<mode>", "vflls")
9639 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
9640 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
9641 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
9642 ("*vec_cmphe<mode>_cc"): ... these.
9643
9644 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
9645 mode constant instead of magic value.
9646
9647 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9648
9649 * config/s390/s390.c (s390_expand_vec_compare): Support other
9650 vector floating point modes than just V2DF.
9651 (s390_expand_vcond): Likewise.
9652 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
9653 (s390_cannot_change_mode_class): Prevent mode changes between TF
9654 and V1TF in vector registers.
9655 * config/s390/s390.md (DF, SF): New mode attributes.
9656 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
9657 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
9658 SFmode support for VRs.
9659 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
9660 vector fp modes.
9661 (VFT, VF_HW): New mode iterators.
9662 (vw, sdx): New mode attributes.
9663 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
9664 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
9665 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
9666 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
9667 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
9668 also the new vector floating point modes. Renaming to ...
9669
9670 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
9671 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
9672 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
9673 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
9674 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
9675 ("vec_unordered<mode>"): ... these.
9676
9677 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
9678 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
9679 ("*vec_extendv2df"): New insn definitions.
9680
9681 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9682
9683 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
9684 ("mulditi3_2", "*muldi3_sign"): New patterns.
9685 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
9686 rename the pattern definition.
9687
9688 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9689
9690 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
9691 expander.
9692 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
9693
9694 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9695
9696 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
9697 instruction if possible.
9698 * config/s390/vector.md (vec_halfnumelts): New mode
9699 attribute.
9700 ("*vec_vllezlf<mode>"): New pattern.
9701
9702 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9703
9704 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
9705 ("popcountv4si2", "popcountv2di2"): Rename to ...
9706 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
9707 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
9708 condition.
9709 ("popcount<mode>2_vxe"): New pattern.
9710
9711 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9712
9713 * common/config/s390/s390-common.c (processor_flags_table): Add
9714 arch12.
9715 * config.gcc: Add arch12.
9716 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9717 Default to arch12 for unknown CPU model numbers.
9718 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
9719 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
9720 PROCESSOR_max sanity check.
9721 * config/s390/s390-opts.h (enum processor_type): Add
9722 PROCESSOR_ARCH12.
9723 * config/s390/s390.c (processor_table): Add arch12.
9724 (s390_expand_builtin): Add check for B_VXE flag.
9725 (s390_issue_rate): Add PROCESSOR_ARCH12.
9726 (s390_get_sched_attrmask): Likewise.
9727 (s390_get_unit_mask): Likewise.
9728 (s390_sched_score): Enable z13 scheduling for arch12.
9729 (s390_sched_reorder): Likewise.
9730 (s390_sched_variable_issue): Likewise.
9731 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
9732 PF_VXE.
9733 (s390_tune_attr): Use z13 scheduling also for arch12.
9734 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
9735 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
9736 (TARGET_VXE_P): New macros.
9737 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
9738 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
9739 * config/s390/s390.opt: Add arch12 as processor_type.
9740
9741 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9742
9743 * config/s390/s390.md
9744 ("fixuns_truncdddi2", "fixuns_trunctddi2")
9745 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
9746 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
9747
9748 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
9749 Rename expanders to ...
9750
9751 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
9752 ("fixuns_truncdddi2_emu"): ... these.
9753
9754 ("fixuns_trunc<mode>si2_emu"): New expander.
9755
9756 ("*fixuns_truncdfdi2_z13"): Rename to ...
9757 ("*fixuns_truncdfdi2_vx"): ... this.
9758
9759 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9760
9761 * config/s390/2964.md: Remove the single element vector compare
9762 instructions which are no longer used.
9763 * config/s390/s390.c (s390_select_ccmode): Remove handling of
9764 vector CCmodes.
9765 (s390_canonicalize_comparison): Remove handling of DFmode
9766 compares.
9767 (s390_expand_vec_compare_scalar): Remove function.
9768 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
9769 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
9770 pattern.
9771 ("*cmp<mode>_ccs"): Add wfcdb instruction.
9772
9773 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9774
9775 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
9776 FP zero.
9777 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
9778 will anyway by matched by mov<mode>_64dfp.
9779
9780 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9781
9782 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
9783 vlef/vstef. Add missing operand to vleif.
9784
9785 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9786
9787 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
9788 pair for all vector types with 64 bit elements.
9789 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
9790 * config/s390/vector.md (V_HW_64): ... here.
9791 (V_128_NOSINGLE): New mode iterator.
9792 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
9793 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
9794 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
9795 ("*vec_load_pairv2di"): Change to ...
9796 ("*vec_load_pair<mode>"): ... this one.
9797
9798 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9799
9800 * config/s390/constraints.md: Add comments.
9801 (jKK): Reject element sizes > 8 bytes.
9802 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
9803 s_operands.
9804 * config/s390/s390.md: Add the s_operand checks formerly in
9805 s390_split_ok_p to various splitters where they are still
9806 required.
9807 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
9808 for 128 bit vectors. Plus two splitters.
9809
9810 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9811
9812 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
9813 the file.
9814
9815 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9816
9817 PR target/79893
9818 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
9819 error if the boundary argument is not constant.
9820
9821 2017-03-24 Jakub Jelinek <jakub@redhat.com>
9822
9823 PR rtl-optimization/80112
9824 * loop-doloop.c (doloop_condition_get): Don't check condition
9825 if cmp isn't SET with IF_THEN_ELSE src.
9826
9827 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9828
9829 PR tree-optimization/80158
9830 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
9831 replacing a candidate statement, also replace it for the
9832 candidate's alternate interpretation.
9833 (replace_rhs_if_not_dup): Likewise.
9834 (replace_one_candidate): Likewise.
9835
9836 2017-03-24 Richard Biener <rguenther@suse.de>
9837
9838 PR tree-optimization/80167
9839 * graphite-isl-ast-to-gimple.c
9840 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
9841 properly.
9842 (translate_isl_ast_to_gimple::get_rename): Likewise.
9843
9844 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
9845
9846 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
9847 handling of certain combinations of target options, including the
9848 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
9849 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
9850
9851 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9852
9853 PR target/71436
9854 * config/arm/arm.md (*load_multiple): Add reload_completed to
9855 matching condition.
9856
9857 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9858 Richard Biener <rguenth@suse.de>
9859
9860 PR tree-optimization/79908
9861 PR tree-optimization/80136
9862 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
9863 been cast away, gimplify_and_add suffices.
9864
9865 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
9866
9867 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
9868
9869 2017-03-23 Richard Biener <rguenther@suse.de>
9870
9871 PR tree-optimization/80032
9872 * gimplify.c (gimple_push_cleanup): Forced unconditional
9873 cleanups still have to go to the conditional_cleanups
9874 sequence.
9875
9876 2017-03-22 Jakub Jelinek <jakub@redhat.com>
9877
9878 PR tree-optimization/80072
9879 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
9880 to unsigned int.
9881 (next_operand_entry_id): Change type to unsigned int.
9882 (sort_by_operand_rank): Make sure to return the right return value
9883 even if unsigned fields are bigger than INT_MAX.
9884 (struct oecount): Change cnt and id type to unsigned int.
9885 (oecount_hasher::equal): Formatting fix.
9886 (oecount_cmp): Make sure to return the right return value
9887 even if unsigned fields are bigger than INT_MAX.
9888 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
9889
9890 PR c++/80129
9891 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
9892 TREE_READONLY on result if writing it more than once.
9893
9894 PR sanitizer/80110
9895 * doc/invoke.texi (-fsanitize=thread): Document that with
9896 -fnon-call-exceptions atomics are not able to throw
9897 exceptions.
9898
9899 PR sanitizer/80110
9900 * tsan.c: Include tree-eh.h.
9901 (instrument_builtin_call): Call maybe_clean_eh_stmt or
9902 maybe_clean_or_replace_eh_stmt where needed.
9903 (instrument_memory_accesses): Add cfg_changed argument.
9904 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
9905 if it returned true.
9906 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
9907
9908 PR rtl-optimization/63191
9909 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
9910 wrapper function, moved the whole old content into ...
9911 (ix86_delegitimize_address_1): ... this. New inline function.
9912 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
9913 true as last argument instead of ix86_delegitimize_address.
9914
9915 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
9916
9917 * config/aarch64/aarch64.c (generic_branch_cost): Copy
9918 cortexa57_branch_cost.
9919
9920 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
9921
9922 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
9923
9924 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9925
9926 PR target/80123
9927 * doc/md.texi (Constraints): Document wA constraint.
9928 * config/rs6000/constraints.md (wA): New.
9929 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
9930 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
9931 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
9932 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
9933
9934 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
9935
9936 PR c++/80029
9937 * gimplify.c (is_oacc_declared): New function.
9938 (oacc_default_clause): Use it to set default flags for acc declared
9939 variables inside parallel regions.
9940 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
9941 declared variables.
9942 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
9943 declare attribute to any decl as necessary.
9944
9945 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
9946
9947 PR target/80082
9948 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
9949 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
9950 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
9951 (arm_arch_lpae): This.
9952 * config/arm/arm.c (arm_arch7ve): Rename into ...
9953 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
9954 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
9955 arm_arch_lpae.
9956
9957 2017-03-22 Martin Liska <mliska@suse.cz>
9958
9959 PR target/79906
9960 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
9961 error message instead of an ICE.
9962
9963 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9964
9965 * doc/extend.texi (6.11 Additional Floating Types): Revise.
9966
9967 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
9968
9969 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
9970 comments.
9971 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
9972 comments.
9973
9974 2017-03-21 Martin Sebor <msebor@redhat.com>
9975
9976 * doc/extend.texi: Use "cannot" instead of "can't."
9977 * doc/hostconfig.texi: Same.
9978 * doc/install.texi: Same.
9979 * doc/invoke.texi: Same.
9980 * doc/loop.texi: Same.
9981 * doc/md.texi: Same.
9982 * doc/objc.texi: Same.
9983 * doc/rtl.texi: Same.
9984 * doc/tm.texi: Same.
9985 * doc/tm.texi.in: Same.
9986 * doc/trouble.texi: Same.
9987
9988 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
9989
9990 PR debug/63238
9991 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
9992 (collect_checksum_attributes): Set it.
9993 (die_checksum_ordered): Use it.
9994
9995 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9996
9997 PR tree-optimization/79908
9998 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
9999 change: For a VA_ARG whose LHS has been cast away, use
10000 force_gimple_operand to construct the side effects.
10001
10002 2017-03-21 David Malcolm <dmalcolm@redhat.com>
10003
10004 PR translation/80001
10005 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
10006 more amenable to translation.
10007 (oacc_loop_auto_partitions): Likewise.
10008
10009 2017-03-21 Marek Polacek <polacek@redhat.com>
10010 Martin Sebor <msebor@redhat.com>
10011
10012 PR tree-optimization/80109
10013 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
10014 on INTEGRAL_TYPE_P.
10015
10016 2017-03-21 Jakub Jelinek <jakub@redhat.com>
10017 Segher Boessenkool <segher@kernel.crashing.org>
10018
10019 PR target/80125
10020 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
10021 check reg_used_between_p between insn and one of succ or succ2
10022 depending on if succ is artificial insn not inserted into insn
10023 stream.
10024
10025 2017-03-21 Martin Liska <mliska@suse.cz>
10026
10027 PR gcov-profile/80081
10028 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
10029 * doc/gcc.texi: Include gcov-dump stuff.
10030 * doc/gcov-dump.texi: New file.
10031
10032 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
10033
10034 PR rtl-optimization/79150
10035 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
10036 conditional jump, if the jump is the last insn of the loop.
10037
10038 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10039 Richard Biener <rguenth@suse.de>
10040
10041 PR tree-optimization/79908
10042 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
10043 been cast away, use force_gimple_operand to construct the side
10044 effects.
10045
10046 2017-03-21 Martin Liska <mliska@suse.cz>
10047
10048 PR libfortran/79956
10049 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
10050 to NULL.
10051
10052 2017-03-21 Brad Spengler <spender@grsecurity.net>
10053
10054 PR plugins/80094
10055 * plugin.c (htab_hash_plugin): New function.
10056 (add_new_plugin): Use it and adjust.
10057 (parse_plugin_arg_opt): Adjust.
10058 (init_one_plugin): Likewise.
10059
10060 2017-03-21 Richard Biener <rguenther@suse.de>
10061
10062 PR tree-optimization/80032
10063 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
10064 if set force the cleanup to happen unconditionally.
10065 (gimplify_target_expr): Push inserted clobbers with force_uncond
10066 to avoid them being removed by control-dependent DCE.
10067
10068 2017-03-21 Richard Biener <rguenther@suse.de>
10069
10070 PR tree-optimization/80122
10071 * tree-inline.c (copy_bb): Do not expans va-arg packs or
10072 va_arg_pack_len when the inlined call stmt requires pack
10073 expansion itself.
10074 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
10075
10076 2017-03-21 Jakub Jelinek <jakub@redhat.com>
10077
10078 PR sanitizer/78158
10079 * tsan.c (instrument_builtin_call): If the memory model argument
10080 is not a constant, assume it is valid.
10081
10082 PR c/67338
10083 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
10084 avoid UB.
10085
10086 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
10087
10088 PR rtl-optimization/79910
10089 * combine.c (can_combine_p): Do not allow combining an I0 or I1
10090 if its dest is used by an insn before I2 (other than the combined
10091 insns themselves, which are properly handled already).
10092
10093 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
10094
10095 Revert:
10096 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
10097
10098 * combine.c (record_used_regs): New static function.
10099 (try_combine): Handle situations where there is an additional
10100 instruction between I2 and I3 which needs to have a LOG_LINK
10101 updated.
10102
10103 Revert:
10104 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
10105
10106 * combine.c (try_combine): Delete redundant i1 test. Call
10107 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
10108
10109 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10110
10111 PR target/80083
10112 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
10113 alternatives 13/14.
10114
10115 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10116
10117 PR tree-optimization/80054
10118 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
10119 the optimization if a PHI or any of its arguments is not dominated
10120 by the candidate's basis. Use gphi* rather than gimple* as
10121 appropriate.
10122 (replace_profitable_candidates): Clean up a gimple* variable that
10123 should be a gphi* variable.
10124
10125 2017-03-20 Martin Sebor <msebor@redhat.com>
10126
10127 PR c++/52477
10128 * doc/extend.texi (attribute constructor): Document present limitation.
10129
10130 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
10131
10132 PR target/79963
10133 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
10134 __POWER9_VECTOR__ #ifdef control, change template definition to
10135 use Power9-specific built-in function.
10136 (vec_any_eq): Likewise.
10137 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
10138 to control outcomes from this test.
10139 (vector_ae_<mode>p): For VEC_F modes, likewise.
10140
10141 2017-03-20 Ian Lance Taylor <iant@google.com>
10142
10143 * config/i386/i386.c (ix86_function_regparm): Save an extra
10144 register for -fsplit-stack with DECL_STATIC_CHAIN.
10145
10146 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
10147
10148 PR target/79912
10149 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
10150 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
10151
10152 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
10153
10154 * config/riscv/riscv.c (riscv_print_operand): Use "fence
10155 iorw,ow".
10156 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
10157 iorw,iorw".
10158
10159 2017-03-20 Marek Polacek <polacek@redhat.com>
10160
10161 PR sanitizer/80063
10162 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
10163
10164 2017-03-20 Richard Biener <rguenther@suse.de>
10165
10166 PR tree-optimization/80113
10167 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
10168 allocate extra SSA name for PHI def.
10169 (add_close_phis_to_outer_loops): Likewise.
10170 (add_close_phis_to_merge_points): Likewise.
10171 (copy_loop_close_phi_args): Likewise.
10172 (copy_cond_phi_nodes): Likewise.
10173
10174 2017-03-20 Martin Liska <mliska@suse.cz>
10175
10176 PR middle-end/79753
10177 * tree-chkp.c (chkp_build_returned_bound): Do not build
10178 returned bounds for a LHS that's not a BOUNDED_P type.
10179
10180 2017-03-20 Martin Liska <mliska@suse.cz>
10181
10182 PR target/79769
10183 PR target/79770
10184 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
10185 COMPLEX_CST and VECTOR_CST.
10186
10187 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10188
10189 PR target/78857
10190 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
10191 target operand. A new splitter adds the clobber statement in case
10192 the target operand is dead anyway.
10193
10194 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
10195
10196 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
10197 to age-old versions of binutils and glibc.
10198
10199 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
10200
10201 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
10202
10203 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
10204
10205 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
10206
10207 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
10208
10209 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
10210 requirement for binutils 2.13.
10211
10212 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
10213
10214 * combine.c (try_combine): Delete redundant i1 test. Call
10215 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
10216
10217 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
10218
10219 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
10220 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
10221 contents.
10222 <riscv64-*-elf>: Re-arrange section
10223 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
10224 <riscv32-*-linux>: Likewise.
10225 <riscv64-*-elf>: Likewise
10226 <riscv64-*-linux>: Likewise.
10227
10228 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
10229
10230 PR target/80052
10231 * aarch64.opt(verbose-cost-dump): Fix typo.
10232
10233 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
10234
10235 PR target/79951
10236 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
10237 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
10238
10239 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
10240
10241 * reload.c (find_reloads): When reloading a nonoffsettable address,
10242 use RELOAD_OTHER for it and its address reloads.
10243
10244 PR rtl-optimization/79910
10245 * combine.c (record_used_regs): New static function.
10246 (try_combine): Handle situations where there is an additional
10247 instruction between I2 and I3 which needs to have a LOG_LINK
10248 updated.
10249
10250 2017-03-17 Jeff Law <law@redhat.com>
10251
10252 PR tree-optimization/71437
10253 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
10254 conditional in the hash table first.
10255 (vrp_dom_walker::before_dom_children): Extract condition from
10256 ASSERT_EXPR. Record condition, its inverion and any implied
10257 conditions as well.
10258
10259 2017-03-17 Marek Polacek <polacek@redhat.com>
10260 Markus Trippelsdorf <markus@trippelsdorf.de>
10261
10262 PR tree-optimization/80079
10263 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
10264 m_stores_head.
10265
10266 2017-03-17 Richard Biener <rguenther@suse.de>
10267
10268 PR middle-end/80075
10269 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
10270 Properly verify the LHS before the RHS possibly claims to be
10271 handled.
10272 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
10273 do not throw.
10274
10275 2017-03-17 Martin Jambor <mjambor@suse.cz>
10276
10277 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
10278 (List of -O2 options): Likewise.
10279 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
10280 (-fipa-vrp) New.
10281
10282 2017-03-17 Tom de Vries <tom@codesourcery.com>
10283
10284 * gcov-dump.c (print_usage): Print bug_report_url.
10285
10286 2017-03-17 Richard Biener <rguenther@suse.de>
10287
10288 PR middle-end/80050
10289 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
10290 (parser::peek): Likewise.
10291
10292 2017-03-17 Richard Biener <rguenther@suse.de>
10293
10294 PR tree-optimization/80048
10295 * sese.c (free_sese_info): Properly release rename_map and
10296 copied_bb_map elements.
10297
10298 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
10299
10300 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
10301 Add linked-list forward and backlinks. Insert on
10302 construction, remove on destruction.
10303 (class pass_store_merging): Add m_stores_head field.
10304 (pass_store_merging::terminate_and_process_all_chains):
10305 Iterate over m_stores_head list.
10306 (pass_store_merging::terminate_all_aliasing_chains):
10307 Likewise.
10308 (pass_store_merging::execute): Check for debug stmts first.
10309 Push new chains onto the m_stores_head stack.
10310
10311 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
10312
10313 PR target/71294
10314 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
10315 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
10316 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
10317
10318 2017-03-16 Jeff Law <law@redhat.com>
10319
10320 PR tree-optimization/71437
10321 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
10322 member function. Implementation moved into after_dom_children
10323 member function and into the threader's thread_outgoing_edges
10324 function.
10325 (dom_opt_dom_walker::after_dom_children): Simplify by moving
10326 some code into new thread_outgoing_edges.
10327 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
10328 definition. Simplify marker handling (do it here). Assume we always
10329 have the available expression and the const/copies tables.
10330 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
10331 and tree-vrp.c
10332 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
10333 * tree-vrp.c (equiv_stack): No longer file scoped.
10334 (vrp_dom_walker): New class.
10335 (vrp_dom_walker::before_dom_children): New member function.
10336 (vrp_dom_walker::after_dom_children): Likewise.
10337 (identify_jump_threads): Setup domwalker. Use it rather than
10338 walking edges in a random order by hand. Simplify setup/finalization.
10339 (finalize_jump_threads): Remove.
10340 (vrp_finalize): Do not call identify_jump_threads here.
10341 (execute_vrp): Do it here instead and call thread_through_all_blocks
10342 here too.
10343
10344 PR tree-optimization/71437
10345 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
10346 callers changed.
10347 (simplify_stmt_for_jump_threading): Add basic_block argument. All
10348 callers changed.
10349 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
10350 (dom_opt_dom_walker::thread_across_edge): Remove
10351 handle_dominating_asserts argument. All callers changed.
10352 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
10353 changes. Remove calls to lhs_of_dominating_assert. Other
10354 uses of handle_dominating_asserts turn into unconditional code
10355 (simplify_control_stmt_condition_1): Likewise.
10356 (simplify_control_stmt_condition): Likewise.
10357 (thread_through_normal_block, thread_across_edge): Likewise.
10358 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
10359 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
10360 object if it is not an SSA_NAME.
10361 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
10362 before calling into the VRP specific simplifiers.
10363 (identify_jump_threads): Remove handle_dominating_asserts
10364 argument.
10365
10366 2017-03-16 Jakub Jelinek <jakub@redhat.com>
10367
10368 PR fortran/79886
10369 * tree-diagnostic.c (default_tree_printer): No longer static.
10370 * tree-diagnostic.h (default_tree_printer): New prototype.
10371
10372 2017-03-16 Tamar Christina <tamar.christina@arm.com>
10373
10374 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
10375 Change ins into fmov.
10376
10377 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10378
10379 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
10380 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
10381 Use h_con constraint for operand 1.
10382 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
10383 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
10384
10385 2017-03-15 Jeff Law <law@redhat.com>
10386
10387 PR tree-optimization/71437
10388 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
10389 (record_temporary_equivalences): Use it.
10390
10391 PR tree-optimization/71437
10392 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
10393 tree-ssa-scopedtables.
10394 (lookup_avail_expr, build_and_record_new_cond): Likewise.
10395 (record_conditions, record_cond, vuse_eq): Likewise.
10396 (record_edge_info): Adjust to API tweak of record_conditions.
10397 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
10398 (record_temporary_equivalences, optimize_stmt): Likewise.
10399 (eliminate_redundant_computations): Likewise.
10400 (record_equivalences_from_stmt): Likewise.
10401 * tree-ssa-scopedtables.c: Include options.h and params.h.
10402 (vuse_eq): New function, moved from tree-ssa-dom.c
10403 (build_and_record_new_cond): Likewise.
10404 (record_conditions): Likewise. Accept vector of conditions rather
10405 than edge_equivalence structure for first argument.
10406 for the first argument.
10407 (avail_exprs_stack::lookup_avail_expr): New member function, moved
10408 from tree-ssa-dom.c.
10409 (avail_exprs_stack::record_cond): Likewise.
10410 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
10411 from tree-ssa-dom.c.
10412 (avail_exprs_stack): Add new member functions lookup_avail_expr
10413 and record_cond.
10414 (record_conditions): Declare.
10415
10416 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
10417
10418 PR target/80017
10419 * lra-constraints.c (process_alt_operands): Increase reject for
10420 reloading an input/output operand.
10421
10422 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10423
10424 PR target/79038
10425 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
10426 insns to convert from signed/unsigned char/short to IEEE 128-bit
10427 floating point.
10428 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
10429
10430 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
10431
10432 PR target/80019
10433 * config/i386/i386.c (ix86_vector_duplicate_value): Create
10434 subreg of inner mode for values already in registers.
10435
10436 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
10437
10438 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
10439 iteration reg is used after the loop.
10440
10441 2017-03-14 Martin Sebor <msebor@redhat.com>
10442
10443 PR tree-optimization/79800
10444 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
10445 precision in negative-positive range.
10446 (format_floating): Call non-const overload with adjusted precision.
10447
10448 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10449
10450 PR target/79947
10451 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
10452 -mpowerpc-gfxopt.
10453
10454 2017-03-14 Martin Sebor <msebor@redhat.com>
10455
10456 PR middle-end/80020
10457 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
10458 * builtins.def (aligned_alloc): Use it.
10459
10460 PR c/79936
10461 * Makefile.in (GTFILES): Add calls.c.
10462 * calls.c: Include "gt-calls.h".
10463
10464 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
10465
10466 PR rtl-optimization/79728
10467 * regs.h (struct target_regs): New field
10468 x_contains_allocatable_regs_of_mode.
10469 (contains_allocatable_regs_of_mode): New macro.
10470 * reginfo.c (init_reg_sets_1): Initialize it, and change
10471 contains_reg_of_mode so it includes global regs as well.
10472 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
10473 rather than contains_regs_of_mode.
10474
10475 2017-03-14 Martin Liska <mliska@suse.cz>
10476
10477 * doc/invoke.texi: Document options that can't be combined with
10478 -fcheck-pointer-bounds.
10479
10480 2017-03-14 Martin Liska <mliska@suse.cz>
10481
10482 PR middle-end/79831
10483 * doc/invoke.texi (-Wchkp): Document the option.
10484
10485 2017-03-14 Martin Liska <mliska@suse.cz>
10486
10487 * Makefile.in: Install gcov-dump.
10488
10489 2017-03-14 Martin Liska <mliska@suse.cz>
10490
10491 * multiple_target.c (expand_target_clones): Bail out for
10492 an invalid attribute.
10493
10494 2017-03-14 Richard Biener <rguenther@suse.de>
10495
10496 * alias.c (struct alias_set_entry): Pack properly.
10497 * cfgloop.h (struct loop): Likewise.
10498 * cse.c (struct set): Likewise.
10499 * ipa-utils.c (struct searchc_env): Likewise.
10500 * loop-invariant.c (struct invariant): Likewise.
10501 * lra-remat.c (struct cand): Likewise.
10502 * recog.c (struct change_t): Likewise.
10503 * rtl.h (struct address_info): Likewise.
10504 * symbol-summary.h (function_summary): Likewise.
10505 * tree-loop-distribution.c (struct partition): Likewise.
10506 * tree-object-size.c (struct object_size_info): Likewise.
10507 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
10508 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
10509 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
10510 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
10511 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
10512 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
10513 (struct _stmt_vec_info): Likewise.
10514
10515 2017-03-14 Martin Liska <mliska@suse.cz>
10516
10517 PR target/79892
10518 * multiple_target.c (create_dispatcher_calls): Check that
10519 a target can create a function dispatcher.
10520
10521 2017-03-14 Martin Liska <mliska@suse.cz>
10522
10523 PR lto/66295
10524 * multiple_target.c (expand_target_clones): Drop local.local
10525 flag for default implementation.
10526
10527 2017-03-14 Richard Biener <rguenther@suse.de>
10528
10529 PR tree-optimization/80030
10530 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
10531
10532 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
10533
10534 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
10535 gcc_fallthrough() instead of __attribute__((fallthrough));
10536
10537 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
10538
10539 * doc/gcc.texi: Remove "up" link to (DIR).
10540 * doc/gccint.texi: Ditto.
10541
10542 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
10543
10544 * doc/install.texi (Specific) <avr>: Remove reference to
10545 binutils 2.13.
10546
10547 2017-03-13 Jeff Law <law@redhat.com>
10548
10549 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
10550 attribute rather than comments.
10551
10552 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
10553 match_scratch operand is highest.
10554
10555 2017-03-13 Martin Liska <mliska@suse.cz>
10556
10557 PR middle-end/78339
10558 * ipa-pure-const.c (warn_function_noreturn): If the declarations
10559 is a CHKP clone, use original declaration.
10560
10561 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
10562
10563 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
10564 (arc_conditional_register_usage): Use a different allocation order
10565 when optimizing for size.
10566 * common/config/arc/arc-common.c (arc_option_optimization_table):
10567 Section anchors default on when optimizing for size.
10568
10569 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
10570
10571 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
10572
10573 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
10574
10575 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
10576 * config/arc/arc.md (cpu_facility): Add cd variant.
10577 (*movqi_insn): Add code density variant.
10578 (*movhi_insn): Likewise.
10579 (*movqi_insn): Likewise.
10580 (*addsi3_mixed): Likewise.
10581 (subsi3_insn): Likewise.
10582
10583 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
10584
10585 * config/arc/arc.md (movsi_cond_exec): Update constraint.
10586
10587 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
10588
10589 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
10590 expressions with MINUS and UNARY ops.
10591
10592 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10593
10594 PR target/79911
10595 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
10596 Rename to...
10597 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
10598 between vec_select and vector argument.
10599 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
10600 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
10601 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
10602 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
10603 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
10604 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
10605
10606 2017-03-13 Richard Biener <rguenther@suse.de>
10607
10608 PR other/79991
10609 * params.def (vect-max-peeling-for-alignment): Fix typo.
10610
10611 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
10612
10613 * doc/install.texi (Specific) <mips-*-*>: Remove description of
10614 issue that only occurred with binutils below 2.18.
10615
10616 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
10617
10618 * doc/install.texi (Specific) <cris-axis-elf>: No longer
10619 refer to binutils 2.11/2.12 minimum.
10620
10621 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
10622
10623 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
10624 ftp.kernel.org and simplify binutils requirement.
10625
10626 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
10627
10628 * doc/invoke.texi (Warning Options): Fix spelling of link-time
10629 optimization.
10630 (Optimize Options): Ditto. Also remove redundancy.
10631
10632 2017-03-10 David Malcolm <dmalcolm@redhat.com>
10633
10634 PR translation/79848
10635 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
10636 "%qs".
10637 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
10638 to G_ to avoid double translation.
10639
10640 2017-03-10 David Malcolm <dmalcolm@redhat.com>
10641
10642 PR translation/79923
10643 * auto-profile.c (get_combined_location): Convert leading
10644 character of diagnostics to lower case and remove trailing period.
10645 (read_profile): Likewise for various diagnostics.
10646 * config/arm/arm.c (arm_option_override): Remove trailing period
10647 from various diagnostics.
10648 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
10649 (msp430_expand_delay_cycles): Likewise.
10650
10651 2017-03-10 David Malcolm <dmalcolm@redhat.com>
10652
10653 PR target/79925
10654 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
10655 full command-line argument, rather than just "str".
10656 (aarch64_validate_march): Likewise.
10657 (aarch64_validate_mtune): Likewise.
10658
10659 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
10660
10661 PR rtl-optimization/78911
10662 * lra-assigns.c (must_not_spill_p): New function.
10663 (spill_for): Use it.
10664
10665 2017-03-10 Jakub Jelinek <jakub@redhat.com>
10666
10667 PR tree-optimization/79981
10668 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
10669 ATOMIC_COMPARE_EXCHANGE ifn result.
10670 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
10671 IFN_ATOMIC_COMPARE_EXCHANGE.
10672
10673 2017-03-10 David Malcolm <dmalcolm@redhat.com>
10674
10675 PR driver/79875
10676 * opts.c (parse_sanitizer_options): Add missing question mark to
10677 "did you mean" message.
10678
10679 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10680
10681 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
10682 built-in.
10683 (VMULEUH_UNS): Likewise.
10684 (VMULOUB_UNS): Likewise.
10685 (VMULOUH_UNS): Likewise.
10686 * config/rs6000/rs6000.c (builtin_function_type): Remove
10687 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
10688
10689 2017-03-10 David Malcolm <dmalcolm@redhat.com>
10690
10691 PR bootstrap/79952
10692 * read-rtl-function.c (function_reader::read_rtx_operand): Update
10693 x with result of extra_parsing_for_operand_code_0.
10694 (function_reader::extra_parsing_for_operand_code_0): Convert
10695 return type from void to rtx, returning x. When reading
10696 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
10697 larger size containing struct block_symbol.
10698
10699 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
10700
10701 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
10702 -mfloat128-hardware without -m64.
10703
10704 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
10705
10706 PR target/79941
10707 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
10708 entries to the case statement that marks unsigned arguments to
10709 overloaded functions.
10710
10711 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
10712
10713 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
10714 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
10715
10716 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
10717
10718 PR target/79907
10719 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
10720 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
10721
10722 2017-03-10 Martin Liska <mliska@suse.cz>
10723
10724 PR target/65705
10725 PR target/69804
10726 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
10727 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
10728 FIELD != NULL.
10729
10730 2017-03-10 Olivier Hainque <hainque@adacore.com>
10731
10732 * tree-switch-conversion (array_value_type): Start by resetting
10733 candidate type to it's main variant.
10734
10735 2017-03-10 Jakub Jelinek <jakub@redhat.com>
10736
10737 PR rtl-optimization/79909
10738 * combine.c (try_combine): Use simplify_replace_rtx on individual
10739 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
10740 of the whole CALL_INSN_FUNCTION_USAGE.
10741
10742 PR tree-optimization/79972
10743 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
10744 get_range_info on SSA_NAMEs. Formatting fixes.
10745
10746 2017-03-10 Richard Biener <rguenther@suse.de>
10747 Jakub Jelinek <jakub@redhat.com>
10748
10749 PR tree-optimization/77975
10750 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
10751 edge to be constant.
10752 (get_val_for): For constant x return it. Formatting fix.
10753 (loop_niter_by_eval): Avoid pointless looping if the next iteration
10754 would use the same bases as the current one.
10755
10756 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10757
10758 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
10759 instead of vec_select for V1TImode.
10760 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
10761 longer needed.
10762 (VSX_LE_128): Add V1TI to this mode iterator.
10763 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
10764 (*vsx_le_perm_store_<mode>): Likewise.
10765 (pre-reload splitter for VSX stores): Likewise.
10766 (post-reload splitter for VSX stores): Likewise.
10767 (*vsx_xxpermdi2_le_<mode>): Likewise.
10768 (*vsx_lxvd2x2_le_<mode>): Likewise.
10769 (*vsx_stxvd2x2_le_<mode>): Likewise.
10770
10771 2017-03-09 Michael Eager <eager@eagercon.com>
10772
10773 Correct failures with --enable-checking=yes,rtl.
10774
10775 * config/microblaze/microblaze.c (microblaze_expand_shift):
10776 Replace GET_CODE test with CONST_INT_P and INTVAL test with
10777 test for const0_rtx.
10778 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
10779 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
10780
10781 2017-03-09 Richard Biener <rguenther@suse.de>
10782
10783 PR tree-optimization/79977
10784 * graphite-scop-detection.c (scop_detection::merge_sese):
10785 Handle the case of extra exits to blocks dominating the entry.
10786
10787 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
10788
10789 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
10790 Document rdynamic.
10791
10792 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
10793
10794 PR rtl-optimization/79949
10795 * lra-constraints.c (process_alt_operands): Check memory when
10796 trying to predict a cycle. Print about the overall increase.
10797
10798 2017-03-09 Richard Biener <rguenther@suse.de>
10799
10800 PR middle-end/79971
10801 * gimple-expr.c (useless_type_conversion_p): Preserve
10802 TYPE_SATURATING for fixed-point types.
10803
10804 2017-03-09 Richard Biener <rguenther@suse.de>
10805
10806 PR ipa/79970
10807 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
10808 alignment of BLKmode params.
10809
10810 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10811
10812 PR target/79913
10813 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
10814 (VALL_NO_V2Q): Likewise.
10815 (VDQF_DF): Delete.
10816 * config/aarch64/aarch64-simd.md
10817 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
10818 iterator.
10819 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
10820 VALL_NO_V2Q mode iterator.
10821 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
10822
10823 2017-03-09 Martin Liska <mliska@suse.cz>
10824
10825 PR tree-optimization/79631
10826 * tree-chkp-opt.c (chkp_is_constant_addr): Call
10827 tree_int_cst_sign_bit just for INTEGER constants.
10828
10829 2017-03-09 Martin Liska <mliska@suse.cz>
10830
10831 PR target/65705
10832 PR target/69804
10833 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
10834 sanitizers.
10835
10836 2017-03-09 Marek Polacek <polacek@redhat.com>
10837
10838 PR c++/79672
10839 * tree.c (inchash::add_expr): Handle TREE_VEC.
10840
10841 2017-03-09 Martin Liska <mliska@suse.cz>
10842
10843 PR ipa/79764
10844 (chkp_narrow_size_and_offset): New function.
10845 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
10846 (void chkp_parse_bit_field_ref): New function.
10847 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
10848 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
10849
10850 2017-03-09 Martin Liska <mliska@suse.cz>
10851
10852 PR ipa/79761
10853 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
10854 (chkp_find_bounds_1): Remove gcc_unreachable.
10855
10856 2017-03-09 Jakub Jelinek <jakub@redhat.com>
10857
10858 PR sanitizer/79944
10859 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
10860 BUILT_IN_SYNC*, determine the access type from the size suffix and
10861 always build a MEM_REF with that type. Handle forgotten
10862 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
10863
10864 PR target/79932
10865 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
10866 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
10867 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
10868 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
10869 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
10870 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
10871 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
10872 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
10873 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
10874 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
10875 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
10876 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
10877 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
10878 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
10879 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
10880 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
10881 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
10882 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
10883 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
10884 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
10885 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
10886 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
10887 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
10888 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
10889 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
10890 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
10891 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
10892 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
10893 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
10894 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
10895 definitions outside of __OPTIMIZE__ guarded section.
10896
10897 PR target/79932
10898 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
10899 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
10900 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
10901 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
10902 guarded section.
10903
10904 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10905
10906 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
10907 ("vfenez<mode>"): Add missing constraints.
10908
10909 2017-03-08 Martin Sebor <msebor@redhat.com>
10910
10911 PR target/79928
10912 * config/nds32/nds32.c (nds32_option_override):
10913 Fix misspelled diagnostic.
10914
10915 2017-03-08 Jakub Jelinek <jakub@redhat.com>
10916
10917 PR c/79940
10918 * gimplify.c (gimplify_omp_for): Replace index var in outer
10919 taskloop statement with an artificial variable and add
10920 OMP_CLAUSE_PRIVATE clause for it.
10921
10922 2017-03-08 Richard Biener <rguenther@suse.de>
10923
10924 PR tree-optimization/79955
10925 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
10926 for accesses that are completely outside of the variable.
10927
10928 2017-03-08 Andrew Haley <aph@redhat.com>
10929
10930 PR tree-optimization/79943
10931 * tree-ssa-loop-split.c (compute_new_first_bound): When
10932 calculating the new upper bound, (END-BEG) should be added, not
10933 subtracted.
10934
10935 2017-03-08 Jakub Jelinek <jakub@redhat.com>
10936
10937 * config/avr/avr.md (setmemhi): Make sure match_dup
10938 operand number comes before match_scratch.
10939
10940 2017-03-08 Richard Biener <rguenther@suse.de>
10941
10942 PR tree-optimization/79920
10943 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
10944 with ncopies == 1 to ...
10945 (vect_transform_slp_perm_load): ... here. Properly compute
10946 all element loads by iterating VF times over the group. Do
10947 not handle ncopies (computed in a broken way) in
10948 vect_create_mask_and_perm.
10949
10950 2017-03-08 Jakub Jelinek <jakub@redhat.com>
10951
10952 PR sanitizer/79904
10953 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
10954 is a uniform vector, use uniform_vector_p return value instead of
10955 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
10956
10957 2017-03-07 Marek Polacek <polacek@redhat.com>
10958
10959 PR middle-end/79809
10960 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
10961 (alloca_call_type): Likewise.
10962
10963 2017-03-07 Martin Liska <mliska@suse.cz>
10964
10965 * gcov.c (process_args): Put comment to correct location.
10966
10967 2017-03-07 Martin Liska <mliska@suse.cz>
10968
10969 PR middle-end/68270
10970 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
10971 Use array_at_struct_end_p instead of DECL_CHAIN (field).
10972 (chkp_narrow_bounds_for_field): Likewise.
10973 (chkp_parse_array_and_component_ref): Pass one more argument to
10974 call.
10975
10976 2017-03-07 Richard Biener <rguenther@suse.de>
10977
10978 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
10979 preheaders.
10980
10981 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
10982
10983 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
10984 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
10985
10986 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10987
10988 PR c/79855
10989 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
10990 to end of description.
10991 (PARAM_MAX_STORES_TO_MERGE): Likewise.
10992
10993 2017-03-07 Jakub Jelinek <jakub@redhat.com>
10994
10995 PR rtl-optimization/79901
10996 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
10997 ...
10998 (*avx512f_<code><mode>3<mask_name>): ... this.
10999 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
11000 iterator instead of VI8_AVX2_AVX512BW.
11001
11002 PR rtl-optimization/79901
11003 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
11004 min/max expander, expand it using expand_vec_cond_expr.
11005
11006 PR sanitizer/79897
11007 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
11008 temporary.
11009
11010 2017-03-06 Jakub Jelinek <jakub@redhat.com>
11011
11012 PR c++/79821
11013 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
11014 to void * for PCH reasons.
11015 * dwarf2out.c (output_loc_operands, output_die): Cast
11016 v.val_vec.array to unsigned char *.
11017
11018 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
11019
11020 PR target/77850
11021 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
11022 vector types.
11023
11024 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
11025
11026 PR rtl-optimization/79571
11027 * lra-constraints.c (process_alt_operands): Calculate static
11028 reject and subtract it from overall when only addresses will be
11029 reloaded.
11030
11031 2017-03-06 Julia Koval <julia.koval@intel.com>
11032
11033 PR target/79793
11034 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
11035 incoming stack boundary to 128 for 64-bit targets.
11036
11037 2017-03-06 Richard Biener <rguenther@suse.de>
11038
11039 PR tree-optimization/79894
11040 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
11041 to NULL after folding it.
11042
11043 2017-03-06 Richard Biener <rguenther@suse.de>
11044
11045 PR tree-optimization/79824
11046 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
11047 check disabling peeling for gaps.
11048
11049 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
11050
11051 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
11052 attributes): Document gettimeofday.
11053
11054 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
11055
11056 * config/s390/s390.c (s390_option_override_internal): Set
11057 PARAM_MIN_VECT_LOOP_BOUND
11058
11059 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
11060
11061 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
11062 * config/s390/s390.md: Likewise.
11063
11064 2017-03-06 Jakub Jelinek <jakub@redhat.com>
11065
11066 PR target/79812
11067 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
11068 (<avx2_avx512>_perm<mode>): Rename to ...
11069 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
11070 of VI8F_256_512.
11071 (<avx512>_perm<mode>_mask): Rename to ...
11072 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
11073 of VI8F_256_512.
11074 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
11075 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
11076 instead of VI8F_256_512.
11077 (avx512f_perm<mode>): New define_expand.
11078 (avx512f_perm<mode>_mask): Likewise.
11079 (avx512f_perm<mode>_1<mask_name>): New define_insn.
11080 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
11081
11082 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
11083
11084 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
11085 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
11086 if_then_else.
11087 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
11088
11089 2017-03-06 Martin Liska <mliska@suse.cz>
11090
11091 PR sanitize/79783
11092 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
11093 when having a SSA NAME w/o VAR_DECL assigned to it.
11094
11095 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
11096
11097 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
11098 msa_dpsub_<su>_d): Fix MODE for vec_select.
11099
11100 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
11101
11102 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
11103 argument.
11104 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
11105
11106 2017-03-06 Richard Biener <rguenther@suse.de>
11107
11108 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
11109 * plugin.c (register_plugin_info): Likewise.
11110 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
11111
11112 2017-03-05 Jakub Jelinek <jakub@redhat.com>
11113
11114 * config/i386/sse.md (sse_storehps, sse_storelps,
11115 avx_<castmode><avxsizesuffix>_<castmode>,
11116 avx512f_<castmode><avxsizesuffix>_<castmode>,
11117 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
11118 in condition that at least one operand is not a MEM.
11119
11120 2017-03-03 Jakub Jelinek <jakub@redhat.com>
11121
11122 PR middle-end/79805
11123 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
11124 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
11125 ECF_NOTHROW.
11126 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
11127 gimple_call_nothrow_p flag based on whether original builtin can throw.
11128 If it can, emit following stmts on the fallthrough edge.
11129 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
11130 don't create new bb if inserting just debug stmts on the edge, try to
11131 insert them on the fallthru bb or just reset debug stmts.
11132
11133 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
11134
11135 PR target/43763
11136 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
11137 restore recog_data (including the operand rtxes inside it) around
11138 the call to get_insn_template.
11139
11140 2017-03-03 Martin Sebor <msebor@redhat.com>
11141
11142 PR tree-optimization/79699
11143 * context.c (context::~context): Free MPFR caches to avoid
11144 a memory leak on program exit.
11145
11146 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11147
11148 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
11149 Use wide_int::ulow () instead of .elt (0).
11150
11151 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
11152
11153 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
11154 (*pushxf): Limit oF constraint to 32bit targets and add oC
11155 constraint for 64bit targets.
11156 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
11157 (*pushdf): Change rmF constraint to rmC.
11158
11159 2017-03-03 Martin Liska <mliska@suse.cz>
11160
11161 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
11162 Remove unused variable.
11163
11164 2017-03-03 Jakub Jelinek <jakub@redhat.com>
11165
11166 PR target/79807
11167 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
11168 is a memory operand, increase num_memory.
11169 (ix86_expand_args_builtin): Likewise.
11170
11171 2017-03-03 Jan Hubicka <jh@suse.cz>
11172
11173 PR lto/79760
11174 * ipa-devirt.c (maybe_record_node): Properly handle
11175 __cxa_pure_virtual visibility.
11176
11177 2017-03-03 Martin Liska <mliska@suse.cz>
11178
11179 PR tree-optimization/79803
11180 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
11181 assert.
11182 (pass_loop_prefetch::execute): Disabled optimization if an
11183 assumption about L1 cache size is not met.
11184
11185 2017-03-03 Martin Liska <mliska@suse.cz>
11186
11187 PR rtl-optimization/79574
11188 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
11189 (hash_scan_set): Likewise.
11190 (dump_hash_table): Likewise.
11191 (hoist_code): Likewise.
11192
11193 2017-03-03 Richard Biener <rguenther@suse.de>
11194
11195 * fixed-value.c (fixed_from_string): Restore use of elt (1)
11196 in place of uhigh ().
11197 (fixed_convert_from_real): Likewise.
11198
11199 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
11200
11201 PR target/79514
11202 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
11203
11204 2017-03-03 Richard Biener <rguenther@suse.de>
11205
11206 PR middle-end/79818
11207 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
11208 TYPE_OVERFLOW_UNDEFINED check.
11209
11210 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11211
11212 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
11213 numbers.
11214 (vector_ae_<mode>_p): Likewise.
11215 (vector_nez_<mode>_p): Likewise.
11216 (vector_ne_v2di_p): Likewise.
11217 (vector_ae_v2di_p): Likewise.
11218 (vector_ne_<mode>_p): Likewise.
11219 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
11220 numbers.
11221 (vsx_tsqrt<mode>2_fe): Likewise.
11222
11223 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
11224
11225 PR target/79514
11226 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
11227
11228 2017-03-02 Jakub Jelinek <jakub@redhat.com>
11229
11230 PR rtl-optimization/79780
11231 * cprop.c (one_cprop_pass): When second and further conditional trap
11232 in a single basic block is turned into an unconditional trap, turn it
11233 into a deleted note to avoid RTL verification failures.
11234
11235 2017-03-02 Richard Biener <rguenther@suse.de>
11236
11237 * fold-const.c (const_binop): Use ulow () instead of elt (0).
11238
11239 2017-03-02 Richard Biener <rguenther@suse.de>
11240
11241 PR tree-optimization/79345
11242 PR c++/42000
11243 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
11244 param and abort the walk, returning -1 if it is hit.
11245 (walk_aliased_vdefs): Take a limit param and pass it on.
11246 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
11247 defaulting to 0 and return a signed int.
11248 * tree-ssa-uninit.c (struct check_defs_data): New struct.
11249 (check_defs): New helper.
11250 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
11251 about uninitialized memory.
11252 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
11253 bogus uninitialized warning.
11254 (fixed_convert_from_real): Likewise.
11255
11256 2017-03-02 Bin Cheng <bin.cheng@arm.com>
11257
11258 PR tree-optimization/66768
11259 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
11260 iv_use if base object can't be determined.
11261
11262 2017-03-02 Jakub Jelinek <jakub@redhat.com>
11263
11264 PR tree-optimization/79345
11265 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
11266 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
11267 (get_pattern_stats): Initialize it.
11268 * genemit.c (gen_expand): Verify match_scratch numbers come after
11269 match_operand/match_dup numbers.
11270 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
11271 match_scratch numbers.
11272 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
11273 Likewise.
11274 * config/s390/s390.md (trunctdsd2): Likewise.
11275
11276 2017-03-02 Richard Biener <rguenther@suse.de>
11277
11278 * wide-int.h (wide_int_storage::operator=): Implement in terms
11279 of wi::copy.
11280
11281 2017-03-02 Richard Biener <rguenther@suse.de>
11282
11283 PR tree-optimization/79777
11284 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
11285 the to insert expression to sth existing.
11286
11287 2017-03-01 Martin Sebor <msebor@redhat.com>
11288
11289 PR middle-end/79692
11290 * gimple-ssa-sprintf.c
11291 (directive::known_width_and_precision): New function.
11292 (format_integer): Use it.
11293 (get_mpfr_format_length): Consider the full range of precision
11294 when computing %g output with the # flag. Set the likely byte
11295 count to 3 rather than 1 when precision is indeterminate.
11296 (format_floating): Correct the lower bound of precision.
11297
11298 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11299
11300 * doc/invoke.texi: Document default code model for 64-bit Linux.
11301
11302 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11303
11304 PR target/79752
11305 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
11306 udiv rather than div since input pattern is unsigned.
11307
11308 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
11309
11310 * config/i386/i386.c (print_reg): Warn for values of
11311 unsupported size in integer register.
11312
11313 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11314
11315 PR target/79439
11316 * config/rs6000/predicates.md (current_file_function_operand): Do
11317 not allow self calls to be local if the function is replaceable.
11318
11319 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
11320
11321 PR target/79395
11322 * config/rs6000/altivec.h (vec_ctz and others): Change the
11323 preprocessor macro that controls conditional compilation from
11324 _ARCH_PWR9 to __POWER9_VECTOR__.
11325 (vec_all_ne): Change parameterization of __altivec_scalar_pred
11326 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
11327 control (instead of _ARCH_PWR9 control) so that template
11328 definition uses power9-specific function.
11329 (vec_any_eq): Likewise.
11330 (vec_all_ne): Change macro definition to use a power9-specific
11331 expansion under #ifdef __POWER9_VECTOR__ control (instead of
11332 _ARCH_PWR9 control).
11333 (vec_any_eq) Likewise.
11334 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
11335 expansion for CMPNEF to remove support for xvcmpnesp instruction.
11336 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
11337 support for xvcmpnedp instruction.
11338 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
11339 macro expansion so that Power9 implementation of vec_all_ne does
11340 not use the AltiVec predicate framework.
11341 (VCMPNEH_P): Likewise.
11342 (VCMPNEW_P): Likewise.
11343 (VCMPNED_P): Likewise.
11344 (VCMPNEFP_P): Likewise.
11345 (VCMPNEDP_P): Likewise.
11346 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
11347 implementation of vec_any_eq to not use AltiVec predicate
11348 framework.
11349 (VCMPAEH_P): Likewise.
11350 (VCMPAEW_P): Likewise.
11351 (VCMPAED_P): Likewise.
11352 (VCMPAEFP_P): Likewise.
11353 (VCMPAEDP_P): Likewise.
11354 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
11355 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
11356 not use the AltiVec predicate framework.
11357 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
11358 of vec_any_eq to not use AltiVec predicate framework.
11359 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
11360 support for predefined __POWER9_VECTOR__ macro to indicate that
11361 Power9 instruction selection is enabled.
11362 (altivec_overloaded_builtins): Remove extraneous
11363 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
11364 function argument types RS6000_BTI_bool_V16QI and
11365 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
11366 entry for overloaded function argument types RS6000_BTI_bool_V4SI
11367 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
11368 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
11369 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
11370 Power9 for implementations of vec_cmpne. Change the signature for
11371 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
11372 (representing vec_all_ne) to remove the previously described first
11373 argument of type RS6000_BTI_INTSI, as this was an artifact of
11374 reliance on the AltiVec predicate framework, which is no longer
11375 used in the implementation of these functions. Add
11376 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
11377 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
11378 since, unlike the AltiVec predicate framework implementation, we
11379 do not share function descriptors between vec_alle and vec_anyeq.
11380 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
11381 set of modes that receive special treatment even when
11382 TARGET_P9_VECTOR is true. The special treatment emits code that
11383 does not depend on Power9 instructions.
11384 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
11385 define_expand to not rely on AltiVec predicate framework.
11386 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
11387 function.
11388 (vector_ne_v2di_p): Change this define_expand to not rely on
11389 AltiVec predicate framework.
11390 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
11391 function.
11392 (vector_ne_<mode>_p): Change this define_expand to not rely on
11393 AltiVec predicate framework.
11394 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
11395 function.
11396 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
11397 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
11398 define_insn pattern.
11399 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
11400 define_insn pattern because the xvcmpne<VSs>. instruction is not
11401 supported.
11402 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
11403 instruction is not supported.
11404
11405 2017-03-01 Jakub Jelinek <jakub@redhat.com>
11406
11407 * config/nvptx/nvptx.c: Include intl.h.
11408
11409 2017-03-01 Martin Jambor <mjambor@suse.cz>
11410
11411 PR lto/78140
11412 * ipa-prop.h (ipa_bits): Removed field known.
11413 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
11414 to pointers. Adjusted their comments to warn about their sharing.
11415 (ipcp_transformation_summary): Change bits to a vector of pointers.
11416 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
11417 (ipa_get_ipa_bits_for_value): Declare.
11418 * tree-vrp.h (value_range): Mark as GTY((for_user)).
11419 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
11420 (ipa_bits_hash_table): Likewise.
11421 (ipa_vr_ggc_hash_traits): Likewise.
11422 (ipa_vr_hash_table): Likewise.
11423 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
11424 being pointers and vr_known being removed.
11425 (ipa_set_jf_unknown): Likewise.
11426 (ipa_get_ipa_bits_for_value): New function.
11427 (ipa_set_jfunc_bits): Likewise.
11428 (ipa_get_value_range): New overloaded functions.
11429 (ipa_set_jfunc_vr): Likewise.
11430 (ipa_compute_jump_functions_for_edge): Use the above functions to
11431 construct bits and vr parts of jump functions.
11432 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
11433 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
11434 exist.
11435 (ipcp_grow_transformations_if_necessary): Also allocate
11436 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
11437 exist.
11438 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
11439 them. Fix too long lines.
11440 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
11441 vr_known being removed.
11442 (ipa_read_jump_function): Use new setter functions to construct bits
11443 and vr parts of jump functions or set them to NULL.
11444 (write_ipcp_transformation_info): Adjust for bits being pointers.
11445 (read_ipcp_transformation_info): Likewise.
11446 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
11447 space.
11448 Include gt-ipa-prop.h.
11449 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
11450 being pointers.
11451 (ipcp_store_bits_results): Likewise.
11452 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
11453 Do not write to existing jump functions but use a temporary instead.
11454
11455 2017-03-01 Jakub Jelinek <jakub@redhat.com>
11456
11457 PR c++/79681
11458 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
11459 attempt to use its first operand as BIT_FIELD_REF base.
11460
11461 2017-03-01 Richard Biener <rguenther@suse.de>
11462
11463 PR middle-end/79721
11464 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
11465 interpolating formula in wrapping arithmetic.
11466 (chrec_apply): Convert chrec_evaluate return value to wanted type.
11467
11468 2017-03-01 Jakub Jelinek <jakub@redhat.com>
11469
11470 PR tree-optimization/79734
11471 * tree-vect-generic.c (expand_vector_condition): Optimize
11472 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
11473 Handle VEC_COND_EXPR where comparison has different inner width from
11474 type's inner width.
11475
11476 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
11477
11478 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
11479 markup, and similar issues. Remove @opindex entries for things
11480 that aren't options. Add missing -mmpy-option entries.
11481
11482 2017-02-28 Jakub Jelinek <jakub@redhat.com>
11483
11484 PR tree-optimization/79737
11485 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
11486 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
11487 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
11488 instead of byte_size. Formatting fix.
11489 (shift_bytes_in_array_right): Formatting fix.
11490
11491 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
11492
11493 PR target/79749
11494 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
11495 condition on optimize for the leaf function test.
11496
11497 2017-02-28 Martin Liska <mliska@suse.cz>
11498
11499 PR lto/79625
11500 * read-rtl-function.c (function_reader::handle_unknown_directive):
11501 Bail out when one uses -flto.
11502
11503 2017-02-28 Martin Liska <mliska@suse.cz>
11504
11505 * common.opt: Replace space with tabular for options of <number>
11506 type.
11507 * config/i386/i386.opt: Show <number> value for
11508 -mlarge-data-threshold.
11509 * opts.c (print_filtered_help): Do not display number in hexadecimal
11510 format.
11511
11512 2017-02-28 Martin Liska <mliska@suse.cz>
11513
11514 * common.opt: Fix --help=option -Q for options which are of
11515 an enum type.
11516
11517 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
11518
11519 * config/i386/i386.c (print_reg): Error out for values
11520 of 8-bit size in invalid integer register.
11521
11522 2017-02-28 Martin Sebor <msebor@redhat.com>
11523
11524 PR tree-optimization/79691
11525 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
11526
11527 2017-02-28 Jakub Jelinek <jakub@redhat.com>
11528
11529 PR target/79729
11530 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
11531 gcc_unreachable with output_operand_lossage.
11532
11533 2017-02-28 Richard Biener <rguenther@suse.de>
11534
11535 PR tree-optimization/79740
11536 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
11537 inserts.
11538 (visit_nary_op): Insert the nary into the hashtable if we
11539 pattern-matched sth.
11540 * tree-ssa-pre.c (eliminate_insert): Robustify.
11541
11542 2017-02-28 Richard Biener <rguenther@suse.de>
11543
11544 PR middle-end/79731
11545 * fold-const.c (decode_field_reference): Reject out-of-bound
11546 accesses.
11547
11548 2017-02-28 Jakub Jelinek <jakub@redhat.com>
11549
11550 * config/i386/i386.c: Include intl.h.
11551 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
11552 instead of just cond ? "..." : "...".
11553 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
11554 * coverage.c (read_counts_file): Likewise.
11555 * omp-offload.c: Include intl.h.
11556 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
11557 of just cond ? "..." : "...".
11558 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
11559 of just cond ? "..." : "...".
11560
11561 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
11562
11563 PR target/79742
11564 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
11565 entry, if present.
11566 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
11567 'tune for' CPU name.
11568 * config/arm/arm-cpu-data.h: Regenerated.
11569
11570 2017-02-28 Richard Biener <rguenther@suse.de>
11571
11572 PR tree-optimization/79732
11573 * tree-inline.c (expand_call_inline): Do not shadow var.
11574
11575 2017-02-28 Richard Biener <rguenther@suse.de>
11576
11577 PR tree-optimization/79723
11578 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
11579 address-space properly.
11580
11581 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
11582
11583 * doc/optinfo.texi (Optimization groups): Fix option used for
11584 OPTGROUP_ALL.
11585 * doc/invoke.texi (-fopt-info): Document "omp".
11586 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
11587 (OPTGROUP_ALL): Add OPTGROUP_OMP.
11588 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
11589 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
11590 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
11591
11592 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
11593 all users.
11594 * dumpfile.c (optgroup_options): Instead of "openmp", associate
11595 OPTGROUP_OMP with "omp".
11596
11597 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
11598
11599 PR target/79544
11600 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
11601 for arithmetic shift of unsigned V2DI.
11602
11603 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
11604
11605 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
11606 arc/linux.h headers.
11607 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
11608 (LINK_SPEC): Likewise.
11609 (ARC_TLS_EXTRA_START_SPEC): Likewise.
11610 (EXTRA_SPECS): Likewise.
11611 (STARTFILE_SPEC): Likewise.
11612 (ENDFILE_SPEC): Likewise.
11613 (LIB_SPEC): Likewise.
11614 (TARGET_SDATA_DEFAULT): Likewise.
11615 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
11616 (MULTILIB_DEFAULTS): Likewise.
11617 (DWARF2_UNWIND_INFO): Likewise.
11618 * config/arc/big.h: New file.
11619 * config/arc/elf.h: Likewise.
11620 * config/arc/linux.h: Likewise.
11621 * config/arc/t-uClibc: Remove.
11622
11623 2017-02-27 Bin Cheng <bin.cheng@arm.com>
11624
11625 PR tree-optimization/77536
11626 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
11627 (tree_transform_and_unroll_loop): Use above function to compute the
11628 estimated niter of unrolled loop and use it when scaling profile.
11629 Also use count info rather than frequency if it's non-zero.
11630 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
11631 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
11632 (vect_transform_loop): Call above function.
11633
11634 2017-02-27 Richard Biener <rguenther@suse.de>
11635
11636 PR tree-optimization/45397
11637 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
11638 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
11639 (visit_nary_op): Add pattern matching for CSEing sign-changed
11640 or truncated operations with wider ones.
11641
11642 2017-02-27 Richard Biener <rguenther@suse.de>
11643
11644 PR tree-optimization/79690
11645 * tree-vect-stmts.c (vectorizable_store): Use vector type
11646 built from the DR with address-space.
11647
11648 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11649
11650 * doc/invoke.texi (Optimize Options): Refine the description
11651 of asan-use-after-return.
11652
11653 2017-02-25 Alan Modra <amodra@gmail.com>
11654
11655 PR rtl-optimization/79584
11656 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
11657 base, not ad->base_term, the reg within base. Remove assertion
11658 that ad->base == ad->base_term. Replace gen_int_mode using
11659 bogus mode with const0_rtx.
11660
11661 2017-02-25 Jakub Jelinek <jakub@redhat.com>
11662
11663 PR middle-end/79396
11664 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
11665 FMA_EXPR like tcc_binary or tcc_unary.
11666
11667 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
11668
11669 PR debug/77589
11670 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
11671 bitfield.
11672 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
11673 (output_loc_operands): Handle DW_OP_call_ref and
11674 DW_OP_GNU_variable_value.
11675 (struct variable_value_struct): New type.
11676 (struct variable_value_hasher): Likewise.
11677 (variable_value_hash): New variable.
11678 (string_types): Remove.
11679 (copy_loc_descr): New function.
11680 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
11681 (prepend_loc_descr_to_each): New function.
11682 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
11683 instead of add_loc_descr_to_each if the first argument is single
11684 location list and the second has multiple.
11685 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
11686 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
11687 when looking for variable value which doesn't have other location info.
11688 (loc_list_from_tree): Formatting fix.
11689 (gen_array_type_die): Simplify DW_AT_string_length handling.
11690 (adjust_string_types): Remove.
11691 (gen_subprogram_die): Don't call adjust_string_types nor test/set
11692 string_types. Call resolve_variable_values.
11693 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
11694 (resolve_addr_in_expr): Likewise. Add A argument.
11695 (copy_deref_exprloc): Remove deref argument. Adjust for the
11696 original expression being DW_OP_GNU_variable_value with optionally
11697 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
11698 optionally after it.
11699 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
11700 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
11701 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
11702 (variable_value_hasher::hash, variable_value_hasher::equal): New
11703 methods.
11704 (resolve_variable_value_in_expr, resolve_variable_value,
11705 resolve_variable_values, note_variable_value_in_expr,
11706 note_variable_value): New functions.
11707 (dwarf2out_early_finish): Call note_variable_value on all toplevel
11708 DIEs.
11709
11710 2017-02-24 Jakub Jelinek <jakub@redhat.com>
11711
11712 PR c/79677
11713 * opts.h (handle_generated_option): Add GENERATED_P argument.
11714 * opts-common.c (handle_option): Adjust function comment.
11715 (handle_generated_option): Add GENERATED_P argument, pass it to
11716 handle_option.
11717 (control_warning_option): Pass false to handle_generated_option
11718 GENERATED_P.
11719 * opts.c (maybe_default_option): Pass true to handle_generated_option
11720 GENERATED_P.
11721 * optc-gen.awk: Likewise.
11722
11723 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
11724
11725 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
11726 a REG, look at the REG it is a SUBREG of.
11727 (splitter for cmpeqsi_t): Ditto.
11728
11729 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
11730
11731 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
11732 the special USEs with the pattern of the insn, not the insn itself.
11733
11734 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
11735
11736 PR target/79473
11737 * doc/invoke.texi: Document -mload-store-pairs.
11738
11739 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
11740 Sandra Loosemore <sandra@codesourcery.com>
11741
11742 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
11743 argument isn't a CONST_INT.
11744 (nios2_alternate_compare_const): Assert op is a CONST_INT.
11745 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
11746 (nios2_validate_compare): Bypass alternate compare logic if *op2
11747 is not a CONST_INT.
11748 (ldstwm_operation_p): Return false if first_base is not a REG or
11749 if first_offset is not a CONST_INT.
11750
11751 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
11752
11753 * config/cris/cris.md: Use correct operand in a define_peephole2.
11754
11755 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
11756
11757 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
11758
11759 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
11760
11761 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
11762 this_insn if it is an INSN or JUMP_INSN.
11763 (force_offsettable): Look at base, not at addr.
11764 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
11765 on things that aren't necessarily CONST_INTs.
11766
11767 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
11768
11769 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
11770 -mfpmath=sse is the default also for x86-32 targets with SSE2
11771 instruction set when @option{-ffast-math} is enabled
11772
11773 2017-02-24 Jeff Law <law@redhat.com>
11774
11775 PR rtl-optimizatoin/79286
11776 * ira.c (update_equiv_regs): Drop may_trap_p exception to
11777 dominance test.
11778
11779 2017-02-24 Richard Biener <rguenther@suse.de>
11780
11781 PR tree-optimization/79389
11782 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
11783 debug insns.
11784
11785 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
11786
11787 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
11788 function comment to reflect reality.
11789 (loop_exits_before_overflow): Fix typo in function description.
11790
11791 2017-02-24 Richard Biener <rguenther@suse.de>
11792
11793 PR tree-optimization/79389
11794 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
11795 properly that a threading opportunity exists. Detect conditional
11796 copy/constant propagation opportunities.
11797
11798 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
11799
11800 * config/visium/visium.md (type): Add trap.
11801 (b): New mode attribute.
11802 (*btst): Rename into...
11803 (*btst<mode>): ...this and adjust.
11804 (*cbranchsi4_btst_insn): Rename into...
11805 (*cbranch<mode>4_btst_insn): ...this and adjust.
11806 (trap): New define_insn.
11807
11808 2017-02-23 Jakub Jelinek <jakub@redhat.com>
11809
11810 PR tree-optimization/79389
11811 * ifcvt.c (struct noce_if_info): Add rev_cond field.
11812 (noce_reversed_cond_code): New function.
11813 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
11814 reversed_comparison_code. Formatting fix.
11815 (noce_try_store_flag): Test rev_cond != NULL in addition to
11816 reversed_comparison_code.
11817 (noce_try_store_flag_constants): Likewise.
11818 (noce_try_store_flag_mask): Likewise.
11819 (noce_try_addcc): Use rev_cond if non-NULL instead of
11820 reversed_comparison_code.
11821 (noce_try_cmove_arith): Likewise. Formatting fixes.
11822 (noce_try_minmax, noce_try_abs): Clear rev_cond.
11823 (noce_find_if_block): Initialize rev_cond.
11824 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
11825 instead of false as last argument never attempt to reverse it
11826 afterwards.
11827
11828 2017-02-23 Bin Cheng <bin.cheng@arm.com>
11829
11830 PR tree-optimization/79663
11831 * tree-predcom.c (combine_chains): Process refs in reverse order
11832 only for ZERO length chains, and add explaining comment.
11833
11834 2017-02-23 Jeff Law <law@redhat.com>
11835
11836 PR tree-optimization/79578
11837 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
11838 in call to operand_equal_p.
11839
11840 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
11841
11842 PR target/71017
11843 * config/i386/cpuid.h: Fix another undefined behavior.
11844
11845 2017-02-23 Richard Biener <rguenther@suse.de>
11846
11847 PR tree-optimization/79683
11848 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
11849 vector types for data-refs.
11850
11851 2017-02-23 Martin Liska <mliska@suse.cz>
11852
11853 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
11854
11855 2017-02-23 Jakub Jelinek <jakub@redhat.com>
11856
11857 PR middle-end/79665
11858 * internal-fn.c (get_range_pos_neg): Moved to ...
11859 * tree.c (get_range_pos_neg): ... here. No longer static.
11860 * tree.h (get_range_pos_neg): New prototype.
11861 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
11862 are known to be in between 0 and signed maximum inclusive, try to
11863 expand both unsigned and signed divmod and use the cheaper one from
11864 those.
11865
11866 2017-02-22 Jeff Law <law@redhat.com>
11867
11868 PR tree-optimization/79578
11869 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
11870 to compare base operands.
11871
11872 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
11873
11874 PR target/79211
11875 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
11876 gpc_reg_operand instead of fpr_reg_operand.
11877
11878 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
11879
11880 * config/mips/mips.c (mips_return_in_memory): Force FP
11881 vector types to be returned in memory for o32 ABI.
11882
11883 2017-02-22 Jakub Jelinek <jakub@redhat.com>
11884
11885 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
11886 instead of DW_TAG_member for static data member declarations and don't
11887 set no_linkage_name for static inline data members.
11888 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
11889 to DW_TAG_member.
11890
11891 2017-02-22 Martin Liska <mliska@suse.cz>
11892
11893 * doc/invoke.texi: Replace inequality signs with square brackets
11894 for -Wnormalized.
11895
11896 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11897
11898 PR tree-optimization/68644
11899 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
11900
11901 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
11902
11903 PR target/78660
11904 * lra-constraints.c (simplify_operand_subreg): Handle
11905 WORD_REGISTER_OPERATIONS targets.
11906
11907 2017-02-22 Jakub Jelinek <jakub@redhat.com>
11908
11909 PR target/70465
11910 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
11911 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
11912 elimination by swapping fld*.
11913
11914 2017-02-22 Richard Biener <rguenther@suse.de>
11915
11916 PR tree-optimization/79673
11917 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
11918 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
11919 irrelevant address-space qualifiers and avoiding a
11920 ADDR_SPACE_CONVERT_EXPR from fold_convert.
11921
11922 2017-02-22 Richard Biener <rguenther@suse.de>
11923
11924 PR tree-optimization/79666
11925 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
11926 to not symbolically negate if that may introduce undefined
11927 overflow.
11928
11929 2017-02-22 Martin Liska <mliska@suse.cz>
11930
11931 PR lto/79587
11932 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
11933 * data-streamer-out.c (streamer_write_gcov_count_stream):
11934 Likewise.
11935 * value-prof.c (stream_out_histogram_value): Make assert more
11936 precise based on type of counter.
11937
11938 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
11939
11940 PR target/79593
11941 * config/i386/i386.md (standard_x87sse_constant_load splitter):
11942 Use nonimmediate_operand instead of memory_operand for operand 1.
11943 (float-extend standard_x87sse_constant_load splitter): Ditto.
11944
11945 2017-02-21 Jeff Law <law@redhat.com>
11946
11947 PR tree-optimization/79621
11948 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
11949 blocks with edges to themselves.
11950
11951 2017-02-21 Jakub Jelinek <jakub@redhat.com>
11952
11953 PR target/79633
11954 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
11955 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
11956 Use gimple_call_builtin_p.
11957
11958 PR target/79570
11959 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
11960 on temporarily removed DEBUG_INSNs.
11961
11962 PR tree-optimization/79649
11963 * tree-loop-distribution.c (classify_partition): Give up on
11964 non-generic address space loads/stores.
11965
11966 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
11967
11968 * doc/loop.texi (Loop manipulation): Remove nonexistent
11969 tree_ssa_loop_version from the documentation.
11970 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
11971
11972 2017-02-21 Jakub Jelinek <jakub@redhat.com>
11973
11974 PR target/79494
11975 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
11976 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
11977 * config/rs6000/rs6000.c: Include except.h.
11978 (rs6000_expand_split_stack_prologue): Call
11979 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
11980
11981 2017-02-21 Martin Jambor <mjambor@suse.cz>
11982
11983 PR lto/79579
11984 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
11985 have been analyzed.
11986
11987 2017-02-21 Martin Jambor <mjambor@suse.cz>
11988
11989 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
11990 for backward compatibility only.
11991 * doc/invoke.texi (Option Summary): Remove all references to
11992 -fipa-cp-alignment.
11993
11994 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
11995
11996 PR target/78660
11997 Revert:
11998 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
11999
12000 * lra-constraints.c (curr_insn_transform): Handle
12001 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
12002
12003 2017-02-21 Martin Liska <mliska@suse.cz>
12004
12005 * config/i386/i386.opt: Replace -masm-dialect with -masm.
12006
12007 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
12008
12009 PR translation/79638
12010 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
12011
12012 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
12013
12014 PR ada/67205
12015 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
12016 (arm_function_ok_for_sibcall): Return false for an indirect call by
12017 descriptor if all the argument registers are used.
12018 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
12019 alignment of the function.
12020
12021 2017-02-21 Jakub Jelinek <jakub@redhat.com>
12022
12023 PR tree-optimization/61441
12024 * simplify-rtx.c (simplify_const_unary_operation): For
12025 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
12026 the sNaN unmodified.
12027
12028 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12029
12030 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
12031 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
12032 instead of SYSTEM_HEADER_DIR.
12033
12034 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
12035 Martin Liška <mliska@suse.cz>
12036
12037 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
12038 Fix typos and grammar, use active voice, and clarify.
12039
12040 2017-02-20 Marek Polacek <polacek@redhat.com>
12041
12042 PR middle-end/79537
12043 * gimplify.c (gimplify_expr): Handle unused *&&L;.
12044
12045 PR sanitizer/79558
12046 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
12047
12048 2017-02-20 Jakub Jelinek <jakub@redhat.com>
12049
12050 PR target/79568
12051 * config/i386/i386.c (ix86_expand_builtin): Handle
12052 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
12053 ix86_builtins_isa[fcode].isa as a requirement of those
12054 flags and any other flag in the bitmask.
12055 (ix86_init_mmx_sse_builtins): Use 0 instead of
12056 ~OPTION_MASK_ISA_64BIT as mask.
12057 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
12058 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
12059 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
12060 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
12061
12062 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
12063
12064 PR target/78012
12065 * lra-constraints.c (split_reg): Check requested split mode
12066 is supported by the register.
12067
12068 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
12069
12070 * lra-constraints.c (simplify_operand_subreg): Remove early
12071 return false.
12072
12073 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
12074
12075 PR target/78660
12076 * lra-constraints.c (curr_insn_transform): Tighten condition
12077 for converting SUBREG reloads from OP_OUT to OP_INOUT.
12078
12079 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
12080
12081 PR target/78660
12082 * lra-constraints.c (curr_insn_transform): Handle
12083 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
12084
12085 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
12086
12087 Revert:
12088 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
12089
12090 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
12091
12092 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
12093
12094 PR c++/69523
12095 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
12096 description.
12097
12098 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12099
12100 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
12101 for FMA_EXPR.
12102
12103 2017-02-18 Jakub Jelinek <jakub@redhat.com>
12104
12105 * final.c (last_columnnum, override_columnnum): New variables.
12106 (final_start_function): Set last_columnnum, pass it to begin_prologue
12107 hook and pass 0 to dwarf2out_begin_prologue.
12108 (final_scan_insn): Update override_columnnum. Pass last_columnnum
12109 to source_line debug hook.
12110 (notice_source_line): Compute last_columnnum and for debug_column_info
12111 return true on column changes.
12112 * debug.h (struct gcc_debug_hooks): Add column argument to
12113 source_line and begin_prologue hooks.
12114 (debug_nothing_int_charstar_int_bool): Remove prototype.
12115 (debug_nothing_int_int_charstar,
12116 debug_nothing_int_int_charstar_int_bool): New prototypes.
12117 (dwarf2out_begin_prologue): Add column argument.
12118 * debug.c (do_nothing_debug_hooks): Adjust source_line and
12119 begin_prologue hooks.
12120 (debug_nothing_int_charstar_int_bool): Remove.
12121 (debug_nothing_int_int_charstar,
12122 debug_nothing_int_int_charstar_int_bool): New functions.
12123 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
12124 through to dwarf2out_source_line.
12125 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
12126 (dwarf2out_source_line): Add column argument, emit it if requested.
12127 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
12128 arguments.
12129 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
12130 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
12131 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
12132 through to dwarf2out_begin_prologue.
12133 (vmsdbgout_source_line): Add column argument, pass it through to
12134 dwarf2out_source_line.
12135 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
12136 dbxout_source_line caller.
12137 (dbxout_source_line): Add column argument.
12138
12139 * common.opt (gno-column-info, gcolumn-info): New options.
12140 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
12141 (check_die): Also test for multiple DW_AT_decl_column attributes.
12142 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
12143 DW_AT_decl_column if requested.
12144 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
12145 if requested.
12146 (gen_variable_die): Likewise.
12147 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
12148 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
12149
12150 PR target/79569
12151 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
12152 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
12153 (ix86_handle_option): Handle OPT_m3dnowa.
12154 * doc/invoke.texi (-m3dnowa): Document.
12155 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
12156 -m3dnowa instead of -m3dnow -march=athlon.
12157
12158 PR target/79559
12159 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
12160 instead of gcc_assert for K, r and R code checks. Formatting fixes.
12161
12162 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12163
12164 PR target/79261
12165 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
12166 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
12167 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
12168 generator for vsx_xxpermdi_<mode>_be.
12169 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
12170 force big-endian semantics.
12171 (vsx_xxpermdi_<mode>_be): New define_expand with same
12172 implementation as previous version of vsx_xxpermdi_<mode>.
12173
12174 2017-02-17 Jakub Jelinek <jakub@redhat.com>
12175
12176 PR tree-optimization/79327
12177 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
12178 variable, its initialization and use.
12179
12180 2017-02-17 Julia Koval <julia.koval@intel.com>
12181
12182 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
12183 (OPTION_MASK_ISA_PKU_UNSET): New.
12184 (ix86_handle_option): Handle -mrdpid.
12185 * config/i386/cpuid.h (bit_RDPID): New.
12186 * config/i386/driver-i386.c (host_detect_local_cpu):
12187 Detect RDPID feature.
12188 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
12189 * config/i386/i386-c.c (ix86_target_macros_internal):
12190 Handle RDPID flag.
12191 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
12192 (ix86_valid_target_attribute_inner_p): Add "rdpid".
12193 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
12194 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
12195 * config/i386/i386.md (define_insn "rdpid"): New.
12196 * config/i386/i386.opt Add -mrdpid.
12197 * config/i386/immintrin.h (_rdpid_u32): New.
12198
12199 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
12200
12201 PR rtl-optimization/79541
12202 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
12203 instead of transforming it into USE.
12204
12205 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
12206
12207 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
12208 If HONOR_SNANS (SFmode) force the input to a register.
12209 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
12210 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
12211 an frsp or similar insn.
12212
12213 2017-02-17 Martin Liska <mliska@suse.cz>
12214
12215 PR rtl-optimization/79577
12216 * params.def (selsched-max-sched-times): Increase minimum to 1.
12217
12218 2017-02-17 Martin Liska <mliska@suse.cz>
12219
12220 PR rtl-optimization/79574
12221 * gcse.c (want_to_gcse_p): Prevent integer overflow.
12222
12223 2017-02-17 Martin Liska <mliska@suse.cz>
12224
12225 PR tree-optimization/79529
12226 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
12227 ssa_defined_default_def_p to handle cases which are implicitly
12228 defined.
12229 * tree-ssa.c (ssa_defined_default_def_p): New function.
12230 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
12231 which are implicitly defined.
12232 * tree-ssa.h (ssa_defined_default_def_p): Declare.
12233
12234 2017-02-17 Richard Biener <rguenther@suse.de>
12235
12236 PR middle-end/79576
12237 * params.def (max-ssa-name-query-depth): Limit to 10.
12238
12239 2017-02-17 Richard Biener <rguenther@suse.de>
12240
12241 PR tree-optimization/79552
12242 * tree-ssa-structalias.c (visit_loadstore): Properly verify
12243 default defs.
12244
12245 2017-02-17 Richard Biener <rguenther@suse.de>
12246
12247 PR bootstrap/79567
12248 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
12249
12250 2017-02-17 Marek Polacek <polacek@redhat.com>
12251
12252 PR middle-end/79536
12253 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
12254 (fold_negate_expr): New wrapper.
12255
12256 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
12257
12258 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
12259 Correct terminology and de-emphasize pre-standard behavior.
12260
12261 2017-02-16 Alan Modra <amodra@gmail.com>
12262
12263 PR rtl-optimization/79286
12264 * ira.c (def_dominates_uses): New function.
12265 (update_equiv_regs): Don't create an equivalence for insns that
12266 may trap where the register def does not dominate the use.
12267
12268 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
12269
12270 PR rtl-optimization/78127
12271 * lra.c (lra): Call lra_eliminate before finish the loop after
12272 lra_constraint.
12273
12274 2017-02-16 Richard Biener <rguenther@suse.de>
12275
12276 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
12277 isl/isl_val.h.
12278 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
12279 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
12280 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
12281 (isl_val_int_from_wi): New function.
12282 (extract_affine_gmp): Rename to ...
12283 (extract_affine_wi): ... this, take a widest_int.
12284 (extract_affine_int): Just wrap extract_affine_wi.
12285 (add_param_constraints): Use isl_val_int_from_wi.
12286 (add_loop_constraints): Likewise, and extract_affine_wi.
12287
12288 2017-02-15 Jeff Law <law@redhat.com>
12289
12290 PR middle-end/79521
12291 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
12292 ira_init_register_move_cost_if_necessary.
12293
12294 2017-02-15 Martin Sebor <msebor@redhat.com>
12295
12296 PR middle-end/32003
12297 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
12298 removed in a prior commit.
12299
12300 2017-02-15 Bin Cheng <bin.cheng@arm.com>
12301
12302 PR tree-optimization/79347
12303 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
12304 counters during peeling.
12305
12306 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
12307
12308 * Makefile.in (site.exp): Remove "set ISLVER".
12309
12310 2017-02-15 Jakub Jelinek <jakub@redhat.com>
12311
12312 PR target/79487
12313 * real.c (real_from_integer): Call real_convert even for decimal.
12314
12315 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
12316
12317 PR target/79421
12318 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
12319
12320 2017-02-14 Andrew Pinski <apinski@cavium.com>
12321
12322 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
12323 cores and change the partno/implementer to be correct.
12324 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
12325 the 'B" as the implementer.
12326 * config/aarch64/aarch64-tune.md: Regenerate.
12327
12328 2017-02-14 Carl Love <cel@us.ibm.com>
12329
12330 * config/rs6000/rs6000.c: Add case statement entry to make the
12331 xvcvuxdsp built-in argument unsigned.
12332 * config/rs6000/vsx.md: Fix the source and return operand types so they
12333 match the instruction definitions from the ISA document. Fix typo
12334 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
12335 statement.
12336
12337 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
12338
12339 PR target/79282
12340 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
12341 member early_clobber_alts.
12342 * lra-lives.c (reg_early_clobber_p): New.
12343 (process_bb_lives): Use it.
12344 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
12345 (debug_operand_data): Initialize early_clobber_alts.
12346 (setup_operand_alternative): Set up early_clobber_alts.
12347 (collect_non_operand_hard_regs): Ditto. Pass early clobber
12348 alternatives to new_insn_reg.
12349 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
12350 it.
12351 (lra_update_insn_regno_info): Pass the new arg.
12352
12353 2017-02-14 Jakub Jelinek <jakub@redhat.com>
12354
12355 PR middle-end/79505
12356 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
12357 (new_oacc_loop_raw): Don't clear already cleared fields.
12358
12359 PR target/79481
12360 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
12361 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
12362 _mm512_prefetch_i64gather_ps): New inline functions and macros.
12363
12364 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
12365
12366 PR target/79495
12367 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
12368
12369 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
12370
12371 PR target/79498
12372 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
12373 the extra instruction to the right place to store 128-bit constant
12374 when needed.
12375
12376 2017-02-14 Martin Sebor <msebor@redhat.com>
12377
12378 PR middle-end/79448
12379 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
12380 warning for strings of unknown length.
12381
12382 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
12383
12384 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
12385
12386 2017-02-14 Jeff Law <law@redhat.com>
12387
12388 PR target/79404
12389 * ira-costs.c (scan_one_insn): Initialize register move costs
12390 for pseudos seen in USE/CLOBBER insns.
12391
12392 PR tree-optimization/79095
12393 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
12394 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
12395 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
12396 if the operands are known to be not equal, then the resulting range
12397 is ~[0,0].
12398 (intersect_ranges): If the new range is ~[0,0] and the old range is
12399 wide, then prefer ~[0,0].
12400 * tree-vrp.c (overflow_comparison_p_1): New function.
12401 (overflow_comparison_p): New function.
12402 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
12403 if NAME is used in an overflow test.
12404 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
12405 overflow check that can be expressed as an equality test, then adjust
12406 ops to be that equality test.
12407
12408 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12409
12410 * config/s390/s390-builtin-types.def: Remove flags argument.
12411 * config/s390/s390.c (s390_init_builtins): Likewise.
12412
12413 2017-02-14 Martin Liska <mliska@suse.cz>
12414
12415 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
12416 vector. Fix trailing white spaces.
12417
12418 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
12419
12420 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
12421 HFmode.
12422
12423 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12424
12425 PR rtl-optimization/68664
12426 * config/arm/arm.c (arm_sched_can_speculate_insn):
12427 New function. Declare prototype.
12428 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
12429
12430 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12431
12432 PR rtl-optimization/68664
12433 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
12434 New function.
12435 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
12436
12437 2017-02-14 Amit Pawar <amit.pawar@amd.com>
12438
12439 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
12440 max skip bytes for function, loop and jump.
12441
12442 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12443
12444 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
12445 ABS_EXPR for gimple dump.
12446
12447 2017-02-14 Jakub Jelinek <jakub@redhat.com>
12448
12449 PR target/79462
12450 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
12451
12452 PR tree-optimization/79408
12453 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
12454 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
12455 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
12456 also if rhs1 is INTEGER_CST.
12457
12458 2017-02-14 Richard Biener <rguenther@suse.de>
12459
12460 PR middle-end/79432
12461 * tree-into-ssa.c (insert_phi_nodes): When the function can
12462 have abnormal edges rewrite SSA names with broken use-def
12463 dominance out of SSA and register them for PHI insertion.
12464
12465 2017-02-13 Martin Sebor <msebor@redhat.com>
12466
12467 PR middle-end/79496
12468 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
12469 clearing info.nowrite flag when snprintf size argument is a range.
12470
12471 2017-02-13 Jakub Jelinek <jakub@redhat.com>
12472
12473 * cprop.c (cprop_jump): Add missing space in string literal.
12474 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
12475 (get_constraint_for_component_ref): Likewise.
12476 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
12477 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
12478 * lra-constraints.c (process_alt_operands): Likewise.
12479 * ipa-inline.c (inline_small_functions): Likewise.
12480 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
12481 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
12482 * trans-mem.c (diagnose_tm_1_op): Likewise.
12483 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
12484 (grid_parallel_clauses_gridifiable): Likewise.
12485
12486 * config/nvptx/mkoffload.c (process): Add space in between
12487 , and %d.
12488
12489 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
12490 "MOD4_SSE_REGS" and "ALL_REGS".
12491
12492 * spellcheck.c (test_data): Add , in between "foo" and "food".
12493
12494 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
12495
12496 PR target/79449
12497 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
12498 boundary crossing check and subsequent code generation agree.
12499
12500 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12501
12502 * config/aarch64/aarch64.c (has_memory_op): Delete.
12503 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
12504 has_memory_op.
12505
12506 2017-02-13 Jakub Jelinek <jakub@redhat.com>
12507
12508 PR rtl-optimization/79388
12509 PR rtl-optimization/79450
12510 * combine.c (distribute_notes): When removing TEM_INSN for which
12511 corresponding dest has last value recorded, invalidate that last
12512 value.
12513
12514 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12515
12516 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
12517 of explicit '@'. Add missing assembly comment marker on branch costs
12518 printout.
12519
12520 2017-02-13 Nathan Sidwell <nathan@acm.org>
12521
12522 * gengtype-lex.l (<in_struct>): Add '/'.
12523
12524 2017-02-13 Martin Liska <mliska@suse.cz>
12525
12526 PR c/79471
12527 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
12528
12529 2017-02-13 Richard Biener <rguenther@suse.de>
12530
12531 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
12532 Remove.
12533 * configure: Re-generate.
12534 * config.in: Likewise.
12535 * graphite-dependences.c: Simplify as if
12536 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
12537 * graphite-isl-ast-to-gimple.c: Likewise.
12538 * graphite-optimize-isl.c: Likewise.
12539 * graphite-poly.c: Likewise.
12540 * graphite-sese-to-poly.c: Likewise.
12541 * graphite.h: Likewise.
12542 * toplev.c: Include isl/version.h and use isl_version () for
12543 printing the ISL version.
12544 * doc/install.texi: Update ISL requirement.
12545
12546 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
12547
12548 * doc/standards.texi (Standards): Update reference to
12549 Objective-C 2.0.
12550
12551 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
12552
12553 * doc/extend.texi (Named Address Spaces): sourceware.org now
12554 defaults to https.
12555 * doc/install.texi (Binaries): Ditto.
12556 (Specific): Ditto.
12557
12558 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
12559
12560 * doc/cpp.texi: Replace "stringify"/"stringification" with C
12561 standard terminology "stringize"/"stringizing" throughout.
12562 * doc/cppinternals.texi: Likewise.
12563
12564 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
12565
12566 * doc/extend.texi: Fix some spelling mistakes and typos.
12567 * doc/invoke.texi: Likewise.
12568
12569 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
12570
12571 PR ipa/79224
12572 * params.def (inline-min-speedup) Change from 10 to 8.
12573
12574 2017-02-11 Jakub Jelinek <jakub@redhat.com>
12575
12576 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
12577 4.5.
12578
12579 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
12580
12581 PR ipa/79224
12582 * ipa-inline-analysis.c (get_minimal_bb): New function.
12583 (record_modified): Use it.
12584 (remap_edge_change_prob): Handle also ancestor functions.
12585
12586 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
12587
12588 * doc/contrib.texi (Contributors): Remove broken link into
12589 the Mauve CVS repository.
12590
12591 2017-02-11 Jakub Jelinek <jakub@redhat.com>
12592
12593 PR middle-end/79454
12594 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
12595 result computation whenever lhs doesn't have vector mode, not
12596 just when it has BLKmode.
12597
12598 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
12599
12600 * doc/makefile.texi (profiledbootstrap): Refer to the
12601 installation instructions only in textual form.
12602
12603 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
12604
12605 PR target/79295
12606 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
12607
12608 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
12609
12610 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
12611 (Specific): Update mingw-w64 reference.
12612 (Binaries): Ditto.
12613 (Specific): Remove broken link to Renesas RX processor.
12614
12615 2017-02-10 Richard Biener <rguenther@suse.de>
12616
12617 * toplev.c (process_options): Do not mention obsolete graphite
12618 options when printing sorry message about missing graphite support.
12619 Mention -floop-nest-optimize.
12620
12621 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
12622
12623 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
12624 (vtst_p16): Likewise.
12625 (vtstq_p8): Likewise.
12626 (vtstq_p16): Likewise.
12627 (vtst_p64): New.
12628 (vtstq_p64): Likewise.
12629 * config/arm/arm_neon.h (vgetq_lane_p64): New.
12630 (vset_lane_p64): New.
12631 (vsetq_lane_p64): New.
12632
12633 2017-02-10 Jakub Jelinek <jakub@redhat.com>
12634
12635 PR tree-optimization/79411
12636 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
12637 stmt operands are SSA_NAMEs used in abnormal phis.
12638 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
12639 phis.
12640
12641 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
12642
12643 PR ipa/70795
12644 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
12645 flag if needed.
12646
12647 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
12648
12649 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
12650
12651 2017-02-09 Jakub Jelinek <jakub@redhat.com>
12652
12653 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
12654 to avoid warning.
12655
12656 PR c/79413
12657 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
12658 not arbitrary TREE_CONSTANT.
12659
12660 PR c/79431
12661 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
12662 "omp declare target link" attribute unless is_global_var.
12663 * omp-offload.c (find_link_var_op): Likewise.
12664
12665 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
12666 Chung-Lin Tang <cltang@codesourcery.com>
12667
12668 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
12669 OMP_CLAUSE_TILE.
12670 (gimplify_adjust_omp_clauses): Don't delete TILE.
12671 (gimplify_omp_for): Deal with TILE.
12672 * internal-fn.c (expand_GOACC_TILE): New function.
12673 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
12674 (GOACC_TILE): New.
12675 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
12676 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
12677 element fields.
12678 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
12679 avoid DIV for outermost collapse var.
12680 (expand_oacc_for): Insert tile element loop as needed. Adjust.
12681 Remove out of date comments, fix whitespace.
12682 * omp-general.c (omp_extract_for_data): Deal with tiling.
12683 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
12684 adjust OLF_DIM_BASE value.
12685 (struct omp_for_data): Add tiling field.
12686 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
12687 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
12688 for auto loops. Remove default auto determining, moved to
12689 oacc_loop_fixed_partitions.
12690 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
12691 stmts, add e_mask field.
12692 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
12693 (oacc_thread_numbers): Use oacc_dim_call.
12694 (oacc_xform_tile): New.
12695 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
12696 (finish_oacc_loop): Adjust for ifns vector.
12697 (oacc_loop_discover_walk): Append loop abstraction sites to list,
12698 add case for GOACC_TILE fns.
12699 (oacc_loop_xform_loop): Delete.
12700 (oacc_loop_process): Iterate over call list directly, and add
12701 handling for GOACC_TILE fns.
12702 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
12703 dump partitioning.
12704 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
12705 vector partitioning to outer loops. Assign 2 partitions to loops
12706 when available. Add TILE handling.
12707 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
12708 (execite_oacc_device_lower): Process GOACC_TILE fns,
12709 ignore unknown specs.
12710 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
12711 * tree.c (omp_clause_num_ops): Adjust TILE ops.
12712 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
12713
12714 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
12715
12716 * configure.ac (ACX_BUGURL): Update.
12717 * configure: Regenerate.
12718
12719 2017-02-09 Richard Biener <rguenther@suse.de>
12720
12721 PR tree-optimization/69823
12722 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
12723 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
12724
12725 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
12726
12727 * config/arc/arc-c.def: Add __NPS400__ definition.
12728 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
12729 (TARGET_NPS400): Define.
12730
12731 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
12732
12733 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
12734 file.
12735 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
12736 pointer, arch_info.
12737 (arc_cpu_types): Fill the arch_info field with a pointer into the
12738 arc_arch_types table.
12739 (arc_selected_cpu): Declare.
12740 * config/arc/arc.c (arc_selected_cpu): Make global.
12741 (arc_selected_arch): Delete.
12742 (arc_base_cpu): Delete.
12743 (arc_override_options): Remove references to deleted variables,
12744 update access to arch information.
12745 (ARC_OPT): Update access to arch information.
12746 (ARC_OPTX): Likewise.
12747 * config/arc/arc.h (arc_base_cpu): Remove declaration.
12748 (TARGET_ARC600): Update access to arch information.
12749 (TARGET_ARC601): Likewise.
12750 (TARGET_ARC700): Likewise.
12751 (TARGET_EM): Likewise.
12752 (TARGET_HS): Likewise.
12753 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
12754 information.
12755
12756 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
12757
12758 PR target/78604
12759 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
12760 condition/operands for integer GE/LE/GEU/LEU operations.
12761
12762 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
12763
12764 PR translation/79397
12765 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
12766 of AltiVec.
12767
12768 2017-02-08 Martin Jambor <mjambor@suse.cz>
12769
12770 PR ipa/79375
12771 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
12772 whether allocation happened.
12773 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
12774 nothing was allocated.
12775
12776 2017-02-08 Jakub Jelinek <jakub@redhat.com>
12777
12778 PR tree-optimization/79408
12779 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
12780 constant, but SSA_NAME with a known integer range, use the minimum
12781 of that range instead of op1 to determine if modulo can be replaced
12782 with its first operand.
12783
12784 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12785
12786 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
12787
12788 2017-02-08 Richard Biener <rguenther@suse.de>
12789
12790 PR tree-optimization/71824
12791 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
12792 Check all loops contained in the merged region.
12793
12794 2017-02-07 Andrew Pinski <apinski@cavium.com>
12795
12796 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
12797
12798 2017-02-07 Andrew Pinski <apinski@cavium.com>
12799
12800 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
12801 (thunderxt88): Likewise.
12802 (thunderxt81): Disable LSE and change v8.1 to v8.
12803 (thunderxt83): Likewise.
12804
12805 2017-02-07 Jakub Jelinek <jakub@redhat.com>
12806 Richard Biener <rguenther@suse.de>
12807
12808 PR middle-end/79399
12809 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
12810 type from int to size_t.
12811 * ira-costs.c (struct_costs_size): Change type from int to size_t.
12812
12813 2017-02-07 Jakub Jelinek <jakub@redhat.com>
12814
12815 PR rtl-optimization/79386
12816 * cprop.c (bypass_conditional_jumps): Initialize
12817 bypass_last_basic_block already before splitting bbs after
12818 unconditional traps...
12819 (bypass_conditional_jumps): ... rather than here.
12820
12821 PR target/79299
12822 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
12823 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
12824 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
12825 fix -masm=intel patterns.
12826
12827 2017-02-07 Richard Biener <rguenther@suse.de>
12828
12829 PR tree-optimization/79256
12830 PR middle-end/79278
12831 * builtins.c (get_object_alignment_2): Use min_align_of_type
12832 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
12833 and ADJUST_FIELD_ALIGN.
12834
12835 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
12836 type parameter.
12837 * doc/tm.texi: Regenerate.
12838 * stor-layout.c (layout_decl): Adjust.
12839 (update_alignment_for_field): Likewise.
12840 (place_field): Likewise.
12841 (min_align_of_type): Likewise.
12842 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
12843 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
12844 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
12845 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
12846 * config/frv/frv.c (frv_adjust_field_align): Likewise.
12847 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
12848 * config/i386/i386.c (x86_field_alignment): Likewise.
12849 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
12850 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
12851 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12852 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12853 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
12854 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
12855 Likewise.
12856
12857 Revert
12858 2017-01-30 Richard Biener <rguenther@suse.de>
12859
12860 PR tree-optimization/79256
12861 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
12862 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
12863 alignment on TYPE.
12864
12865 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
12866
12867 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
12868 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
12869 builtins to SImode and emit a zero-extend, if necessary.
12870
12871 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
12872
12873 * docs/invoke.texi (RISC-V Options): Alphabetize.
12874
12875 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
12876
12877 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
12878 options.
12879
12880 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
12881
12882 * config/riscv/riscv.c: New file.
12883 * gcc/common/config/riscv/riscv-common.c: Likewise.
12884 * config.gcc: Likewise.
12885 * config/riscv/constraints.md: Likewise.
12886 * config/riscv/elf.h: Likewise.
12887 * config/riscv/generic.md: Likewise.
12888 * config/riscv/linux.h: Likewise.
12889 * config/riscv/multilib-generator: Likewise.
12890 * config/riscv/peephole.md: Likewise.
12891 * config/riscv/pic.md: Likewise.
12892 * config/riscv/predicates.md: Likewise.
12893 * config/riscv/riscv-builtins.c: Likewise.
12894 * config/riscv/riscv-c.c: Likewise.
12895 * config/riscv/riscv-ftypes.def: Likewise.
12896 * config/riscv/riscv-modes.def: Likewise.
12897 * config/riscv/riscv-opts.h: Likewise.
12898 * config/riscv/riscv-protos.h: Likewise.
12899 * config/riscv/riscv.h: Likewise.
12900 * config/riscv/riscv.md: Likewise.
12901 * config/riscv/riscv.opt: Likewise.
12902 * config/riscv/sync.md: Likewise.
12903 * config/riscv/t-elf-multilib: Likewise.
12904 * config/riscv/t-linux: Likewise.
12905 * config/riscv/t-linux-multilib: Likewise.
12906 * config/riscv/t-riscv: Likewise.
12907 * configure.ac: Likewise.
12908 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
12909 Waterman as RISC-V maintainers.
12910 * doc/install.texi: Add RISC-V entries.
12911 * doc/invoke.texi: Add RISC-V options section.
12912 * doc/md.texi: Add RISC-V constraints section.
12913 * configure: Regenerated.
12914
12915 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12916
12917 PR target/66144
12918 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
12919 false values to be constant vectors with all 0 or all 1 bits set.
12920 (vcondu<mode><mode>): Likewise.
12921 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
12922 predicate.
12923 (fpmask_comparison_operator): Update comment.
12924 (vecint_comparison_operator): New predicate.
12925 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
12926 vector conditionals when the true and false values are constant
12927 vectors with all 0 bits or all 1 bits set.
12928
12929 2017-02-06 Martin Sebor <msebor@redhat.com>
12930
12931 PR tree-optimization/79376
12932 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
12933
12934 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
12935
12936 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
12937 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
12938 to simplify split condition.
12939
12940 2017-02-06 Jakub Jelinek <jakub@redhat.com>
12941
12942 * omp-expand.c (oxpand_omp_atomic_fetch_op,
12943 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
12944 false.
12945
12946 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
12947
12948 PR rtl-optimization/68664
12949 * target.def (can_speculate_insn): New hook.
12950 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
12951 * doc/tm.texi: Regenerate.
12952 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
12953 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
12954 (rs6000_sched_can_speculate_insn): New function.
12955
12956 2017-02-06 Jakub Jelinek <jakub@redhat.com>
12957
12958 PR tree-optimization/79284
12959 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
12960 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
12961 vectorizable_mask_load_store, vectorizable_operation,
12962 vect_is_simple_cond, get_same_sized_vectype): Use it instead
12963 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
12964 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
12965 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
12966 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
12967 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
12968 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
12969 is_gimple_assign (stmt). Replace another such test with
12970 is_gimple_assign (stmt).
12971
12972 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
12973
12974 PR target/78883
12975 * config/avr/avr.c (rtl-iter.h): Include it.
12976 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
12977 (avr_legitimate_combined_insn): ...and implementation.
12978
12979 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
12980
12981 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
12982 * config/s390/s390.c (s390_const_operand_ok)
12983 (s390_canonicalize_comparison, s390_extract_part)
12984 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
12985 (s390_contiguous_bitmask_p, s390_rtx_costs)
12986 (legitimize_pic_address): Likewise.
12987 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
12988 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
12989 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
12990 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
12991 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
12992
12993 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
12994
12995 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
12996 REGNO($0) == REGNO($1).
12997
12998 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12999
13000 * config/s390/linux.h(SIZE_TYPE): Add comment.
13001
13002 2017-02-06 Julian Brown <julian@codesourcery.com>
13003 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
13004 Virendra Pathak <virendra.pathak@broadcom.com>
13005
13006 * config/aarch64/aarch64-cores.def: Change the scheduler
13007 to Thunderx2t99.
13008 * config/aarch64/aarch64.md: Include thunderx2t99.md.
13009 * config/aarch64/thunderx2t99.md: New file.
13010
13011 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
13012
13013 * doc/standards.texi (Go Language): Update link to language
13014 standard.
13015
13016 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
13017
13018 * tree-eh.c (lower_resx): Sanitize profile.
13019 (cleanup_empty_eh_move_lp): Likewise.
13020
13021 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
13022
13023 PR tree-ssa/79347
13024 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
13025 ELSE_PROB.
13026 * cfgloopmanip.h (loop_version): Update prototype.
13027 * modulo-sched.c (sms_schedule): Update call of loop_version.
13028 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
13029 * tree-parloops.c (gen_parallel_loop): Likewise.
13030 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
13031 * tree-ssa-loop-split.c (split_loop): Likewise.
13032 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
13033 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
13034
13035 2017-02-05 Martin Liska <mliska@suse.cz>
13036
13037 PR bootstrap/78985
13038 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
13039 variable to NULL.
13040 (print_operand_address): Initialize a struct to zero.
13041
13042 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
13043
13044 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
13045 garbage collector only in textual form.
13046
13047 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
13048
13049 * doc/extend.texi (x86 specific memory model extensions for
13050 transactional memory): Simplify a phrase.
13051
13052 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
13053
13054 PR target/79353
13055 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
13056 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
13057 (atomic_storedi_1): Likewise.
13058
13059 2017-02-04 Jakub Jelinek <jakub@redhat.com>
13060
13061 PR tree-optimization/79338
13062 * tree-parloops.c (gather_scalar_reductions): Don't call
13063 vect_analyze_loop_form for loop->inner before destroying loop's
13064 loop_vinfo.
13065
13066 2017-02-03 Martin Sebor <msebor@redhat.com>
13067
13068 PR tree-optimization/79327
13069 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
13070 when precision has resulted in leading zeros.
13071 (format_integer): Adjust the likely counter to assume an unknown
13072 argument that may be zero is non-zero.
13073
13074 2017-02-03 Jason Merrill <jason@redhat.com>
13075
13076 PR c++/78689
13077 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
13078 avoid copying non-taken branch.
13079
13080 2017-02-03 Jakub Jelinek <jakub@redhat.com>
13081
13082 PR tree-optimization/79340
13083 * tree-vect-loop.c (vectorizable_reduction): Release
13084 vec_defs elements after safe_splicing them into other vectors.
13085 Formatting fixes.
13086
13087 PR tree-optimization/79327
13088 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
13089 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
13090 dirtype.
13091 (format_integer): Use wide_int_to_tree instead of build_int_cst
13092 + to_?hwi. If argmin is NULL, just set argmin and argmax to
13093 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
13094 of shortest and longest sequence.
13095
13096 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
13097
13098 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
13099 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
13100
13101 2017-02-03 Walter Lee <walt@tilera.com>
13102
13103 PR target/78862
13104 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
13105 after initial stackframe link reg save.
13106 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
13107
13108 2017-02-03 Jakub Jelinek <jakub@redhat.com>
13109
13110 PR target/79354
13111 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
13112 wu for stxssp alternative.
13113
13114 2017-02-03 Martin Sebor <msebor@redhat.com>
13115
13116 PR tree-optimization/79352
13117 * gimple-fold.c (get_range_strlen): Add argument.
13118 (get_range_strlen): Change return type to bool.
13119 (get_maxval_strlen): Pass in a dummy argument.
13120 * gimple-fold.h (get_range_strlen): Change return type to bool.
13121 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
13122 * tree.h (array_at_struct_end_p): Add argument.
13123 * tree.c (array_at_struct_end_p): Handle it.
13124
13125 2017-02-03 Martin Liska <mliska@suse.cz>
13126
13127 PR lto/66295
13128 * multiple_target.c (create_dispatcher_calls): Redirect edge
13129 from a caller of a dispatcher.
13130 (expand_target_clones): Make the clones local.
13131 (ipa_target_clone): Do both target clones and resolvers.
13132 (ipa_dispatcher_calls): Remove the pass.
13133 (pass_dispatcher_calls::gate): Likewise.
13134 (make_pass_dispatcher_calls): Likewise.
13135 * passes.def (pass_target_clone): Put as very first IPA early
13136 pass.
13137
13138 2017-02-03 Martin Liska <mliska@suse.cz>
13139
13140 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
13141 in case of a function with ifunc attribute.
13142
13143 2017-02-03 Martin Liska <mliska@suse.cz>
13144
13145 * cgraph.c (cgraph_node::dump): Dump function version info.
13146 * symtab.c (symtab_node::dump_base): Add missing new line.
13147
13148 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
13149
13150 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
13151 (ifcombine_ifandif): Use it.
13152
13153 2017-02-03 Martin Liska <mliska@suse.cz>
13154
13155 * doc/invoke.texi: Document default value for
13156 use-after-scope-direct-emission-threshold.
13157
13158 2017-02-03 Martin Liska <mliska@suse.cz>
13159
13160 PR tree-optimization/79339
13161 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
13162 (format_floating): Likewise.
13163
13164 2017-02-03 Martin Liska <mliska@suse.cz>
13165
13166 PR ipa/79337
13167 * ipa-prop.c (ipa_node_params_t::insert): Remove current
13168 implementation.
13169 (ipa_node_params_t::remove): Likewise.
13170 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
13171 initialization from removed ipa_node_params_t::insert.
13172 (ipa_node_params::~ipa_node_params): Move from removed
13173 ipa_node_params_t::release.
13174 * symbol-summary.h (symbol_summary::m_released): New member.
13175 Do not release a summary twice. Do not allow to call finalizer
13176 for types of a summary that live in GGC memory.
13177
13178 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
13179
13180 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
13181 cmp_branch fusion.
13182
13183 2017-02-02 Martin Sebor <msebor@redhat.com>
13184
13185 PR middle-end/79275
13186 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
13187 (format_string): Tighten up the range of output for non-constant
13188 strings and correct the expected range for wide non-constant strings.
13189
13190 2017-02-02 Martin Sebor <msebor@redhat.com>
13191
13192 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
13193
13194 PR middle-end/32003
13195 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
13196 index.
13197 (-fdump-tree-@var): Add to index and document how to come up
13198 with pass-specific option and dump file names.
13199 (-fdump-passes): Clarify where to look for output.
13200
13201 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
13202
13203 PR middle-end/77445
13204 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
13205 statistics of the analyzed path; allow threading for speed when
13206 any of BBs along the path are optimized for speed.
13207
13208 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
13209
13210 PR middle-end/78468
13211 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
13212 settings of the virtual registers.
13213
13214 Revert again
13215 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13216
13217 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13218 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13219 needed.
13220
13221 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13222
13223 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
13224 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
13225
13226 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13227
13228 * config/s390/s390.md: Add missing comments with the expanded
13229 mnemonics.
13230 * config/s390/vector.md: Likewise.
13231 * config/s390/vx-builtins.md: Likewise.
13232
13233 2017-02-02 Jakub Jelinek <jakub@redhat.com>
13234
13235 PR target/79197
13236 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
13237 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
13238 conditions on a single line.
13239
13240 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13241
13242 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
13243 __S390_VX__ to __VX__.
13244
13245 2017-02-01 Andrew Pinski <apinski@cavium.com>
13246
13247 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
13248 stmt_info to record_stmt_cost.
13249 (vect_get_known_peeling_cost): Pass stmt_info if known to
13250 record_stmt_cost.
13251 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
13252 cpu_vector_cost field into
13253 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
13254 field into vec_int_stmt_cost and vec_fp_stmt_cost.
13255 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
13256 splitting of scalar_stmt_cost and vec_stmt_cost.
13257 (thunderx_vector_cost): Likewise.
13258 (cortexa57_vector_cost): LIkewise.
13259 (exynosm1_vector_cost): Likewise.
13260 (xgene1_vector_cost): Likewise.
13261 (thunderx2t99_vector_cost): Improve after the splitting of the two
13262 fields.
13263 (aarch64_builtin_vectorization_cost): Update for the splitting of
13264 scalar_stmt_cost and vec_stmt_cost.
13265
13266 2017-02-01 Torvald Riegel <triegel@redhat.com>
13267 Richard Henderson <rth@redhat.com>
13268
13269 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
13270 conditional on existance of a fast atomic load.
13271 * optabs-query.c (can_atomic_load_p): New function.
13272 * optabs-query.h (can_atomic_load_p): Declare it.
13273 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
13274 no fast atomic load is available for the particular size of access.
13275 (expand_atomic_compare_and_swap): Likewise.
13276 (expand_atomic_load): Likewise.
13277 (expand_atomic_store): Likewise.
13278 (expand_atomic_fetch_op): Likewise.
13279 * testsuite/lib/target-supports.exp
13280 (check_effective_target_sync_int_128): Remove x86 because it provides
13281 no fast atomic load.
13282 (check_effective_target_sync_int_128_runtime): Likewise.
13283
13284 2017-02-01 Richard Biener <rguenther@suse.de>
13285
13286 * graphite.c: Include tree-vectorizer.h for find_loop_location.
13287 (graphite_transform_loops): Provide opt-info for optimized nests.
13288 * tree-parloop.c (parallelize_loops): Provide opt-info for
13289 parallelized loops.
13290
13291 2017-02-01 Richard Biener <rguenther@suse.de>
13292
13293 PR middle-end/79315
13294 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
13295 was not set before.
13296
13297 2017-02-01 Richard Biener <rguenther@suse.de>
13298
13299 PR tree-optimization/71824
13300 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
13301 Verify the loops are valid in the merged SESE region.
13302 (scop_detection::can_represent_loop_1): Check analyzing the
13303 evolution of the number of iterations in the region succeeds.
13304
13305 2017-01-31 Ian Lance Taylor <iant@golang.org>
13306
13307 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
13308 REG_ARGS_SIZE note to 32-bit push insns and call insn.
13309
13310 2017-01-31 David Malcolm <dmalcolm@redhat.com>
13311
13312 PR preprocessor/79210
13313 * input.c (get_substring_ranges_for_loc): Replace line_width
13314 assertion with error-handling.
13315
13316 2017-01-31 Richard Biener <rguenther@suse.de>
13317
13318 PR tree-optimization/77318
13319 * graphite-sese-to-poly.c (extract_affine): Fix assert.
13320 (create_pw_aff_from_tree): Take loop parameter.
13321 (add_condition_to_pbb): Pass loop of the condition to
13322 create_pw_aff_from_tree.
13323
13324 2017-01-31 Jakub Jelinek <jakub@redhat.com>
13325
13326 * config/s390/s390.c (s390_asan_shadow_offset): New function.
13327 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
13328
13329 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
13330
13331 PR target/78597
13332 PR target/79038
13333 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
13334 no longer used.
13335 (convert_int_to_float128): Likewise.
13336 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
13337 (convert_int_to_float128): Likewise.
13338 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
13339 (UNSPEC_IEEE128_CONVERT): Likewise.
13340 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
13341 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
13342 Use local variables for IBM extended format.
13343 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
13344 (fix_trunc<mode>si2_fprs): Likewise.
13345 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
13346 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
13347 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
13348 to know that we can now have integers of all sizes in vector
13349 registers.
13350 (fix<uns>_<mode>di2_hw): Likewise.
13351 (float<uns>_<mode>si2_hw): Likewise.
13352 (fix_<mode>si2_hw): Likewise.
13353 (fixuns_<mode>si2_hw): Likewise.
13354 (float<uns>_<mode>di2_hw): Likewise.
13355 (float_<mode>di2_hw): Likewise.
13356 (float_<mode>si2_hw): Likewise.
13357 (floatuns_<mode>di2_hw): Likewise.
13358 (floatuns_<mode>si2_hw): Likewise.
13359 (xscvqp<su>wz_<mode>): Delete, no longer used.
13360 (xscvqp<su>dz_<mode>): Likewise.
13361 (xscv<su>dqp_<mode>): Likewise.
13362 (ieee128_mfvsrd_64bit): Likewise.
13363 (ieee128_mfvsrd_32bit): Likewise.
13364 (ieee128_mfvsrwz): Likewise.
13365 (ieee128_mtvsrw): Likewise.
13366 (ieee128_mtvsrd_64bit): Likewise.
13367 (ieee128_mtvsrd_32bit): Likewise.
13368
13369 2017-01-31 Martin Liska <mliska@suse.cz>
13370
13371 PR ipa/79285
13372 * ipa-prop.c (ipa_free_all_node_params): Call release method
13373 instead of ~sumbol_summary to not to trigger double times
13374 dtor of hash_map.
13375
13376 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
13377
13378 PR tree-optimization/71691
13379 * bitmap.h (class auto_bitmap): New.
13380 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
13381 is_maybe_undefined instead of ssa_undefined_value_p.
13382
13383 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13384
13385 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
13386 __S390_ARCH_LEVEL__ to __ARCH__.
13387
13388 2017-01-31 Jakub Jelinek <jakub@redhat.com>
13389
13390 PR tree-optimization/79267
13391 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
13392 if should_remove_lhs_p is true.
13393
13394 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
13395
13396 PR debug/63238
13397 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
13398 (add_alignment_attribute): New.
13399 (base_type_die): Add alignment attribute.
13400 (subrange_type_die): Likewise.
13401 (modified_type_die): Likewise.
13402 (gen_array_type_die): Likewise.
13403 (gen_descr_array_type_die: Likewise.
13404 (gen_enumeration_type_die): Likewise.
13405 (gen_subprogram_die): Likewise.
13406 (gen_variable_die): Likewise.
13407 (gen_field_die): Likewise.
13408 (gen_ptr_to_mbr_type_die): Likewise.
13409 (gen_struct_or_union_type_die): Likewise.
13410 (gen_subroutine_type_die): Likewise.
13411 (gen_typedef_die): Likewise.
13412 (base_type_cmp): Compare alignment attribute.
13413
13414 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
13415
13416 PR target/79170
13417 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
13418 (setb_unsigned) New pattern for setb with CCUNS.
13419 * config/rs6000/rs6000.c (expand_block_compare): Use a different
13420 subfc./subfe sequence to avoid overflow problems. Generate a
13421 shorter sequence with cmpld/setb for power9.
13422 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
13423 for generating subfc. instruction.
13424 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
13425 now uses this instruction.
13426
13427 2017-01-30 Ian Lance Taylor <iant@google.com>
13428
13429 PR debug/79289
13430 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
13431 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
13432
13433 2017-01-30 Martin Sebor <msebor@redhat.com>
13434
13435 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
13436 Move constant to the right of a relational operator.
13437 (get_mpfr_format_length, format_character, format_string): Ditto.
13438 (should_warn_p, maybe_warn): Same.
13439
13440 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
13441
13442 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
13443
13444 PR lto/79061
13445 * asan.c (get_translation_unit_decl): Remove function.
13446 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
13447
13448 2017-01-30 Martin Liska <mliska@suse.cz>
13449
13450 PR gcov-profile/79259
13451 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
13452 -fprofile-generate.
13453
13454 2017-01-30 Martin Liska <mliska@suse.cz>
13455
13456 PR bootstrap/78985
13457 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
13458 Initialize variables with NULL value.
13459
13460 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
13461
13462 PR target/79260
13463 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
13464 tm_p_file.
13465 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
13466
13467 2017-01-30 Richard Biener <rguenther@suse.de>
13468
13469 PR tree-optimization/79276
13470 * tree-vrp.c (process_assert_insertions): Properly adjust common
13471 when removing a duplicate.
13472
13473 * gcc.dg/torture/pr79276.c: New testcase.
13474
13475 2017-01-30 Richard Biener <rguenther@suse.de>
13476
13477 PR tree-optimization/79256
13478 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
13479 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
13480 alignment on TYPE.
13481 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
13482
13483 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
13484
13485 PR target/79240
13486 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
13487 ("*r<noxa>sbg_<mode>_sll_bitmask")
13488 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
13489 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
13490 Use contiguous_bitmask_nowrap_operand.
13491
13492 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13493
13494 PR target/79268
13495 * config/rs6000/altivec.h (vec_xl): Revise #define.
13496 (vec_xst): Likewise.
13497
13498 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
13499
13500 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
13501
13502 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
13503
13504 PR rtl-optimization/79194
13505 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
13506 traps before call to bypass_conditional_jumps.
13507
13508 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
13509
13510 PR tree-optimization/71374
13511 * lra-constraints.c (check_conflict_input_operands): New.
13512 (match_reload): Use it.
13513
13514 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
13515
13516 PR target/79131
13517 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
13518 account to calculate conflict_set.
13519
13520 2017-01-27 Bin Cheng <bin.cheng@arm.com>
13521
13522 PR rtl-optimization/78559
13523 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
13524 other_insn in combine.
13525
13526 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
13527
13528 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
13529 uint16_type_node for BT_UINT16.
13530
13531 2017-01-27 David Malcolm <dmalcolm@redhat.com>
13532
13533 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
13534 "RTL Tests" to menu.
13535 (GIMPLE Tests): New node.
13536 (RTL Tests): New node.
13537
13538 2017-01-27 Richard Biener <rguenther@suse.de>
13539
13540 PR tree-optimization/79245
13541 * tree-loop-distribution.c (distribute_loop): Apply cost
13542 modeling also to detected patterns.
13543
13544 2017-01-27 Richard Biener <rguenther@suse.de>
13545
13546 PR tree-optimization/71433
13547 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
13548 (compare_assert_loc): New function.
13549 (process_assert_insertions): Sort and optimize assert locations
13550 to remove duplicates and push down identical assertions on
13551 edges to their destination block.
13552
13553 2017-01-27 Richard Biener <rguenther@suse.de>
13554
13555 PR tree-optimization/79244
13556 * tree-vrp.c (remove_range_assertions): Forcefully propagate
13557 out SSA names even if abnormal.
13558
13559 2017-01-27 Jakub Jelinek <jakub@redhat.com>
13560
13561 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
13562 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
13563 instead of MPFR_RNDN.
13564
13565 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
13566
13567 PR target/79239
13568 * arm.c (arm_option_override): Don't call build_target_option_node
13569 until after doing all option overrides.
13570 (arm_valid_target_attribute_tree): Likewise.
13571
13572 2017-01-27 Martin Liska <mliska@suse.cz>
13573
13574 * doc/invoke.texi (-fprofile-arcs): Document profiling support
13575 for {cd}tors and C++ {cd}tors.
13576
13577 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
13578
13579 * config/s390/s390.md ("*setmem_long_and")
13580 ("*setmem_long_and_31z"): Use zero_extend instead of and.
13581
13582 2017-01-26 Martin Sebor <msebor@redhat.com>
13583
13584 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
13585 of precision.
13586
13587 2017-01-26 Martin Sebor <msebor@redhat.com>
13588
13589 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
13590 HAVE_DFmode before using XFmode or DFmode.
13591 (parse_directive): Avoid using the z length modifier to avoid
13592 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
13593
13594 PR middle-end/78703
13595 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
13596 to accept adjustment as an array.
13597 (get_int_range): New function.
13598 (struct directive): Make width and prec arrays.
13599 (directive::set_width, directive::set_precision): Call get_int_range.
13600 (format_integer, format_floating): Handle width and precision ranges.
13601 (format_string, parse_directive): Same.
13602
13603 2017-01-26 Jakub Jelinek <jakub@redhat.com>
13604
13605 PR debug/79129
13606 * dwarf2out.c (generate_skeleton_bottom_up): For children with
13607 comdat_type_p set, just clone them, but keep the children in the
13608 original DIE.
13609
13610 PR debug/78835
13611 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
13612 which have direct callers with -fvar-tracking-assignments enabled
13613 in the current TU.
13614 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
13615 inside of type units.
13616
13617 2017-01-26 Martin Sebor <msebor@redhat.com>
13618
13619 PR middle-end/78703
13620 * gimple-ssa-sprintf.c (struct result_range): Add likely and
13621 unlikely counters.
13622 (struct format_result): Replace number_chars, number_chars_min,
13623 and number_chars_max with a single member of struct result_range.
13624 Remove bounded.
13625 (format_result::operator+=): Adjust.
13626 (struct fmtresult): Remove bounded. Handle likely and unlikely
13627 counters.
13628 (fmtresult::adjust_for_width_or_precision): New function.
13629 (fmtresult:type_max_digits): New function.
13630 (bytes_remaining): Handle likely and unlikely counters.
13631 (min_bytes_remaining): Remove.
13632 (format_percent): Simplify.
13633 (format_integer, format_floating): Set likely and unlikely counters.
13634 (get_string_length, format_character, format_string): Same.
13635 (format_plain, should_warn_p): New function.
13636 (maybe_warn): Call should_warn_p. Update diagnostic messages
13637 and handle those for all directives, including plain strings.
13638 (format_directive): Handle likely and unlikely counters.
13639 Remove unnecessary quoting from diagnostics. Add an informational
13640 note.
13641 (add_bytes): Remove.
13642 (pass_sprintf_length::compute_format_length): Simplify.
13643 (try_substitute_return_value): Handle likely and unlikely counters.
13644
13645 2017-01-26 Carl Love <cel@us.ibm.com>
13646
13647 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
13648 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
13649
13650 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
13651
13652 PR target/79131
13653 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
13654 endianess for subregs into account.
13655 * lra-constraints.c (lra_constraints): Do risky transformations
13656 always on the first iteration.
13657 * lra-lives.c (check_pseudos_live_through_calls): Add arg
13658 last_call_used_reg_set.
13659 (process_bb_lives): Define and use last_call_used_reg_set.
13660 * lra.c (lra): Always continue after lra_constraints on the first
13661 iteration.
13662
13663 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
13664
13665 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
13666 constant.
13667 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
13668
13669 2017-01-26 Jakub Jelinek <jakub@redhat.com>
13670
13671 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
13672 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
13673 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
13674 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
13675 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
13676 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
13677 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
13678 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
13679 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
13680
13681 2017-01-26 Marek Polacek <polacek@redhat.com>
13682
13683 PR c/79199
13684 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
13685 for the third operand.
13686
13687 2017-01-26 Jakub Jelinek <jakub@redhat.com>
13688
13689 PR middle-end/79236
13690 * omp-low.c (struct omp_context): Add simt_stmt field.
13691 (scan_omp_for): Return omp_context *.
13692 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
13693 context to the _simt_ SIMD stmt.
13694 (lower_omp_for): For combined SIMD with sibling _simt_
13695 SIMD, make sure to use the same decls in _looptemp_
13696 clauses as in the sibling.
13697
13698 2017-01-26 David Sherwood <david.sherwood@arm.com>
13699
13700 PR middle-end/79212
13701 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
13702 all contexts.
13703
13704 2017-01-26 Jakub Jelinek <jakub@redhat.com>
13705
13706 PR target/70465
13707 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
13708 emit fld b; fld a; if possible.
13709
13710 * brig-builtins.def: Update copyright years.
13711 * config/arm/arm_acle_builtins.def: Update copyright years.
13712
13713 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13714
13715 PR target/79179
13716 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
13717 constraint instead of o for the stxsd instruction.
13718
13719 2017-01-25 Carl Love <cel@us.ibm.com>
13720
13721 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
13722 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
13723
13724 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
13725
13726 * doc/invoke.texi (C++ Dialect Options): Fix typo.
13727
13728 2017-01-25 Richard Biener <rguenther@suse.de>
13729
13730 PR tree-optimization/69264
13731 * target.def (vector_alignment_reachable): Improve documentation.
13732 * doc/tm.texi: Regenerate.
13733 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
13734 and add a comment.
13735 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
13736 earlier changes with respect to TYPE_USER_ALIGN.
13737 (vector_alignment_reachable_p): Likewise. Improve dumping.
13738
13739 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13740
13741 PR target/79145
13742 * config/arm/arm.md (xordi3): Force constant operand into a register
13743 for TARGET_IWMMXT.
13744
13745 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13746
13747 * doc/invoke.texi (-fstore-merging): Correct default optimization
13748 levels at which it is enabled.
13749 (-O): Move -fstore-merging from list to...
13750 (-O2): ... Here.
13751
13752 2017-01-25 Richard Biener <rguenther@suse.de>
13753
13754 PR debug/78363
13755 * omp-expand.c: Include debug.h.
13756 (expand_omp_taskreg): Make sure to generate early debug before
13757 outlining anything from a function.
13758 (expand_omp_target): Likewise.
13759 (grid_expand_target_grid_body): Likewise.
13760
13761 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
13762
13763 PR lto/79061
13764 * asan.c (get_translation_unit_decl): New function.
13765 (asan_add_global): Extract modules file name from globals
13766 TRANSLATION_UNIT_DECL name.
13767
13768 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
13769
13770 PR target/77439
13771 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
13772 for long calls with APCS frame and VFP.
13773
13774 2017-01-24 David Malcolm <dmalcolm@redhat.com>
13775
13776 * cfg.c (original_copy_tables_initialized_p): New function.
13777 * cfg.h (original_copy_tables_initialized_p): New decl.
13778 * cfgrtl.c (relink_block_chain): Guard the call to
13779 free_original_copy_tables with a call to
13780 original_copy_tables_initialized_p.
13781 * cgraph.h (symtab_node::native_rtl_p): New decl.
13782 * cgraphunit.c (symtab_node::native_rtl_p): New function.
13783 (symtab_node::needed_p): Don't assert for early assembly output
13784 for __RTL functions.
13785 (cgraph_node::finalize_function): Set "force_output" for __RTL
13786 functions.
13787 (cgraph_node::analyze): Bail out early for __RTL functions.
13788 (analyze_functions): Update assertion to support __RTL functions.
13789 (cgraph_node::expand): Bail out early for __RTL functions.
13790 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
13791 __RTL functions.
13792 * function.h (struct function): Update comment for field
13793 "pass_startwith".
13794 * gimple-expr.c: Include "tree-pass.h".
13795 (gimple_has_body_p): Return false for __RTL functions.
13796 * Makefile.in (OBJS): Add run-rtl-passes.o.
13797 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
13798 accessor.
13799 (gcc::pass_manager::get_clean_slate): New accessor.
13800 * passes.c: Include "insn-addr.h".
13801 (should_skip_pass_p): Add logging. Update logic for running
13802 "expand" to be compatible with both __GIMPLE and __RTL. Guard
13803 property-provider override so it is only done for gimple passes.
13804 Don't skip dfinit.
13805 (skip_pass): New function.
13806 (execute_one_pass): Call skip_pass when skipping passes.
13807 * read-md.c (md_reader::read_char): Support filtering
13808 the input to a subset of line numbers.
13809 (md_reader::md_reader): Initialize fields
13810 m_first_line and m_last_line.
13811 (md_reader::read_file_fragment): New function.
13812 * read-md.h (md_reader::read_file_fragment): New decl.
13813 (md_reader::m_first_line): New field.
13814 (md_reader::m_last_line): New field.
13815 * read-rtl-function.c (function_reader::create_function): Only
13816 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
13817 curr_properties. Set DECL_INITIAL to a dummy block.
13818 (read_rtl_function_body_from_file_range): New function.
13819 * read-rtl-function.h (read_rtl_function_body_from_file_range):
13820 New decl.
13821 * run-rtl-passes.c: New file.
13822 * run-rtl-passes.h: New file.
13823
13824 2017-01-24 Jeff Law <law@redhat.com>
13825
13826 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
13827 buffer size.
13828
13829 2017-01-24 Bin Cheng <bin.cheng@arm.com>
13830
13831 PR tree-optimization/79159
13832 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
13833 (record_nonwrapping_iv): Improve boundary using above function if no
13834 value range information.
13835
13836 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
13837 Martin Jambor <mjambor@suse.cz>
13838
13839 * brig-builtins.def: New file.
13840 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
13841 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
13842 (DEF_HSAIL_SAT_BUILTIN): Likewise.
13843 (DEF_HSAIL_INTR_BUILTIN): Likewise.
13844 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
13845 * builtin-types.def (BT_INT8): New.
13846 (BT_INT16): Likewise.
13847 (BT_UINT8): Likewise.
13848 (BT_UINT16): Likewise.
13849 (BT_FN_ULONG): Likewise.
13850 (BT_FN_UINT_INT): Likewise.
13851 (BT_FN_UINT_ULONG): Likewise.
13852 (BT_FN_UINT_LONG): Likewise.
13853 (BT_FN_UINT_PTR): Likewise.
13854 (BT_FN_ULONG_PTR): Likewise.
13855 (BT_FN_INT8_FLOAT): Likewise.
13856 (BT_FN_INT16_FLOAT): Likewise.
13857 (BT_FN_UINT32_FLOAT): Likewise.
13858 (BT_FN_UINT16_FLOAT): Likewise.
13859 (BT_FN_UINT8_FLOAT): Likewise.
13860 (BT_FN_UINT64_FLOAT): Likewise.
13861 (BT_FN_UINT16_UINT32): Likewise.
13862 (BT_FN_UINT32_UINT16): Likewise.
13863 (BT_FN_UINT16_UINT16_UINT16): Likewise.
13864 (BT_FN_INT_PTR_INT): Likewise.
13865 (BT_FN_UINT_PTR_UINT): Likewise.
13866 (BT_FN_LONG_PTR_LONG): Likewise.
13867 (BT_FN_ULONG_PTR_ULONG): Likewise.
13868 (BT_FN_VOID_UINT64_UINT64): Likewise.
13869 (BT_FN_UINT8_UINT8_UINT8): Likewise.
13870 (BT_FN_INT8_INT8_INT8): Likewise.
13871 (BT_FN_INT16_INT16_INT16): Likewise.
13872 (BT_FN_INT_INT_INT): Likewise.
13873 (BT_FN_UINT_FLOAT_UINT): Likewise.
13874 (BT_FN_FLOAT_UINT_UINT): Likewise.
13875 (BT_FN_ULONG_UINT_UINT): Likewise.
13876 (BT_FN_ULONG_UINT_PTR): Likewise.
13877 (BT_FN_ULONG_ULONG_ULONG): Likewise.
13878 (BT_FN_UINT_UINT_UINT): Likewise.
13879 (BT_FN_VOID_UINT_PTR): Likewise.
13880 (BT_FN_UINT_UINT_PTR: Likewise.
13881 (BT_FN_UINT32_UINT64_PTR): Likewise.
13882 (BT_FN_INT_INT_UINT_UINT): Likewise.
13883 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
13884 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
13885 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
13886 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
13887 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
13888 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
13889 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
13890 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
13891 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
13892 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
13893 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
13894 * doc/frontends.texi: List BRIG FE.
13895 * doc/install.texi (Testing): Add BRIG tesring requirements.
13896 * doc/invoke.texi (Overall Options): Mention BRIG.
13897 * doc/standards.texi (Standards): Doucment BRIG HSA version.
13898
13899 2017-01-24 Richard Biener <rguenther@suse.de>
13900
13901 PR translation/79208
13902 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
13903
13904 2017-01-24 Martin Jambor <mjambor@suse.cz>
13905
13906 PR bootstrap/79198
13907 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
13908 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
13909 and known_contexts.
13910
13911 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
13912
13913 PR middle-end/79123
13914 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
13915 casts from signed to unsigned really don't have a range.
13916
13917 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
13918
13919 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
13920 GMP_RNDx for compatiblity.
13921
13922 2017-01-24 Martin Liska <mliska@suse.cz>
13923
13924 PR bootstrap/79132
13925 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
13926 that would prevent us to call alloca with -1 as argument.
13927
13928 2017-01-24 Jakub Jelinek <jakub@redhat.com>
13929
13930 * dwarf2out.c (output_compilation_unit_header, output_file_names):
13931 Avoid -Wformat-security warning.
13932
13933 2017-01-23 Andrew Pinski <apinski@cavium.com>
13934
13935 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
13936 cost table.
13937
13938 2017-01-23 Martin Sebor <msebor@redhat.com>
13939
13940 PR middle-end/78703
13941 * gimple-ssa-sprintf.c (warn_level): New global.
13942 (format_integer): Use it here and throughout the rest of the file.
13943 Use the same switch to compute sign as base.
13944 (maybe_warn): New function.
13945 (format_directive): Factor out warnings into maybe_warn.
13946 Add debugging output. Use warn_level.
13947 (add_bytes): Use warn_level.
13948 (pass_sprintf_length::compute_format_length): Add debugging output.
13949 (try_substitute_return_value): Same.
13950 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
13951
13952 PR middle-end/78703
13953 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
13954 (struct fmtresult, format_integer, format_floating): Adjust.
13955 (fmtresult::fmtresult): Set max correctly in two argument ctor.
13956 (get_string_length, format_string,format_directive): Same.
13957 (pass_sprintf_length::compute_format_length): Same.
13958 (try_substitute_return_value): Simplify slightly.
13959
13960 PR middle-end/78703
13961 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
13962 (fmtresult::operator+=): Outlined.
13963 (struct fmtresult): Add ctors.
13964 (struct conversion_spec): Rename...
13965 (struct directive): ...to this. Add and remove data members.
13966 (directive::set_width, directive::set_precision): New functions.
13967 (format_percent): Use fmtresult ctor.
13968 (get_width_and_precision): Remove.
13969 (format_integer): Make naming changes. Avoid computing width and
13970 precision.
13971 (format_floating): Same. Adjust indentation.
13972 (format_character, format_none): New functions.
13973 (format_string): Moved character handling to format_character.
13974 (format_directive): Remove arguments, change return type.
13975 (parse_directive): New function.
13976 (pass_sprintf_length::compute_format_length): Move directive
13977 parsing to parse_directive.
13978
13979 2017-01-23 Jakub Jelinek <jakub@redhat.com>
13980
13981 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
13982 (assign_assembler_name_if_needed): ... this.
13983 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
13984 (assign_assembler_name_if_needed): ... this.
13985 (free_lang_data_in_cgraph): Adjust callers.
13986 * cgraphunit.c (cgraph_node::analyze): Likewise.
13987 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
13988 Likewise.
13989
13990 2017-01-23 Richard Biener <rguenther@suse.de>
13991
13992 PR tree-optimization/79088
13993 PR tree-optimization/79188
13994 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
13995 resetting loop bounds after last path deletion. Reset loop
13996 bounds of the target loop, make code match the comments.
13997 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
13998 Make sure loops need no fixups.
13999
14000 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
14001
14002 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
14003 exponent support with double type for first argument.
14004 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
14005 type returned by __builtin_vec_extract_sig,
14006 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
14007 functions from "vector int" to "vector unsigned int" or from
14008 "vector long long int" to "vector unsigned long long int".
14009 Changed type returned by __builtin_vec_extract_exp,
14010 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
14011 functions from "vector int" to "vector unsigned int" or from
14012 "vector long long int" to "vector unsigned long long int".
14013 Changed return type of __builtin_vec_test_data_class,
14014 __builtin_vec_test_data_class_sp, and
14015 __builtin_vec_test_data_class_dp from "vector int" to
14016 "vector bool int" or from "vector long long int" to "vector bool
14017 long long int" and changed second argument type from "unsigned
14018 int" to "int". Added new overloaded function forms "vector float
14019 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
14020 "vector float __builtin_vec_insert_exp_sp (vector float, vector
14021 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
14022 double, vector unsigned long long int)" and "vector double
14023 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
14024 long int)". Changed return type of
14025 __builtin_scalar_test_data_class and
14026 __builtin_scalar_test_data_class_sp and
14027 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
14028 int" and changed second argument from "unsigned int" to "int".
14029 Changed type returned by __builtin_scalar_test_neg,
14030 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
14031 from "int" to "bool int". Added new overloaded function form
14032 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
14033 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
14034 exponent double-precision with floating point first argument.
14035 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
14036 documentation of scalar_test_data_class, scalar_test_neg,
14037 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
14038 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
14039 vec_test_data_class built-in functions to reflect refinements in
14040 their type signatures.
14041
14042 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
14043
14044 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
14045 size of buf.
14046 (aarch64_elf_asm_destructor): Likewise.
14047
14048 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
14049
14050 PR rtl-optimization/78634
14051 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
14052 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
14053 * ifcvt.c (noce_try_cmove): Add missing cost check.
14054
14055 PR rtl-optimization/71724
14056 * combine.c (if_then_else_cond): Look for situations where it is
14057 beneficial to undo the work of one of the recursive calls.
14058
14059 2017-01-23 Bin Cheng <bin.cheng@arm.com>
14060
14061 PR tree-optimization/70754
14062 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
14063 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
14064 combined stmt before it if not NULL.
14065 (combine_chains): Process refs reversely and compute dominance point
14066 for root ref.
14067
14068 2017-01-23 Martin Liska <mliska@suse.cz>
14069
14070 PR tree-optimization/79196
14071 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
14072 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
14073 instead of memcmp.
14074 (strlen_optimize_stmt): Call the renamed function.
14075
14076 2017-01-23 Michael Matz <matz@suse.de>
14077
14078 PR tree-optimization/78384
14079 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
14080
14081 2017-01-23 Richard Biener <rguenther@suse.de>
14082
14083 PR tree-optimization/79186
14084 * tree-vrp.c (register_new_assert_for): Make sure we've seen
14085 both incoming edges before moving an assert.
14086
14087 2017-01-23 Martin Jambor <mjambor@suse.cz>
14088
14089 * ipa-prop.c (load_from_param_1): Removed.
14090 (load_from_unmodified_param): Bits from load_from_param_1 put back
14091 here.
14092 (load_from_param): Removed.
14093 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
14094 with stmt. Reverted back to use of load_from_unmodified_param.
14095
14096 2017-01-23 Martin Jambor <mjambor@suse.cz>
14097
14098 PR ipa/79108
14099 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
14100 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
14101 field a pointer to garbage collected vector, mark lattices and
14102 ipcp_orig_node with GTY((skip)).
14103 (ipa_get_param_count): Adjust to descriptors being a pointer.
14104 (ipa_get_param): Likewise.
14105 (ipa_get_type): Likewise.
14106 (ipa_get_param_move_cost): Likewise.
14107 (ipa_set_param_used): Likewise.
14108 (ipa_get_controlled_uses): Likewise.
14109 (ipa_set_controlled_uses): Likewise.
14110 (ipa_is_param_used): Likewise.
14111 (ipa_node_params_t): Move into garbage collector. New methods insert
14112 and remove.
14113 (ipa_node_params_sum): Annotate wth GTY(()).
14114 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
14115 garbage collected.
14116 (ipa_load_from_parm_agg): Adjust declaration.
14117 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
14118 * ipa-profile.c (ipa_profile): Likewise.
14119 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
14120 (ipa_populate_param_decls): Make descriptors parameter garbage
14121 collected.
14122 (ipa_dump_param): Adjust to descriptors being a pointer.
14123 (ipa_alloc_node_params): Likewise.
14124 (ipa_initialize_node_params): Likewise.
14125 (load_from_param_1): Make descriptors parameter garbage collected.
14126 (load_from_unmodified_param): Likewise.
14127 (load_from_param): Likewise.
14128 (ipa_load_from_parm_agg): Likewise.
14129 (ipa_node_params::~ipa_node_params): Removed.
14130 (ipa_free_all_node_params): Remove call to delete operator.
14131 (ipa_node_params_t::insert): New.
14132 (ipa_node_params_t::remove): Likewise.
14133 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
14134 copy known_csts and known_contexts vectors.
14135 (ipa_read_node_info): Adjust to descriptors being a pointer.
14136 (ipcp_modif_dom_walker): Make m_descriptors field garbage
14137 collected.
14138 (ipcp_transform_function): Make descriptors variable garbage
14139 collected.
14140
14141 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
14142
14143 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
14144 * config/i386/avx512dqintrin.h: Ditto.
14145 * config/i386/avx512fintrin.h: Ditto.
14146 * gcc/config/i386/i386.c: Handle new builtins.
14147 * config/i386/i386-builtin.def: Add new builtins.
14148 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
14149 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
14150
14151 2017-01-23 Jakub Jelinek <jakub@redhat.com>
14152 Martin Liska <mliska@suse.cz>
14153
14154 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
14155 * asan.c (asan_expand_poison_ifn): Support stores and use
14156 appropriate ASAN report function.
14157 * internal-fn.c (expand_ASAN_POISON_USE): New function.
14158 * internal-fn.def (ASAN_POISON_USE): Declare.
14159 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
14160 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
14161 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
14162 ASAN_POISON calls w/o LHS.
14163 * tree-ssa.c (execute_update_addresses_taken): Create clobber
14164 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
14165 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
14166 * gimplify.c (asan_poison_variables): Add attribute
14167 use_after_scope_memory to variables that really needs to live
14168 in memory.
14169 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
14170 having the attribute.
14171
14172 2017-01-23 Martin Liska <mliska@suse.cz>
14173
14174 * asan.c (create_asan_shadow_var): New function.
14175 (asan_expand_poison_ifn): Likewise.
14176 * asan.h (asan_expand_poison_ifn): New declaration.
14177 * internal-fn.c (expand_ASAN_POISON): Likewise.
14178 * internal-fn.def (ASAN_POISON): New builtin.
14179 * sanopt.c (pass_sanopt::execute): Expand
14180 asan_expand_poison_ifn.
14181 * tree-inline.c (copy_decl_for_dup_finish): Make function
14182 external.
14183 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
14184 * tree-ssa.c (is_asan_mark_p): New function.
14185 (execute_update_addresses_taken): Rewrite local variables
14186 (identified just by use-after-scope as addressable) into SSA.
14187
14188 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
14189
14190 * doc/install.texi (Specific): opensource.apple.com uses https
14191 now. Remove trailing slash.
14192
14193 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
14194
14195 * README.Portability: Remove note on an Irix compatibility issue.
14196
14197 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
14198
14199 * gcov.c (INCLUDE_ALGORITHM): Define.
14200 (INCLUDE_VECTOR): Define.
14201 No longer include <vector> and <algorithm> directly.
14202
14203 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
14204
14205 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
14206 to https.
14207 * doc/invoke.texi (Code Gen Options): Ditto.
14208
14209 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
14210
14211 PR lto/78407
14212 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
14213
14214 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
14215
14216 rtl-optimization/79125
14217 * cprop.c (local_cprop_pass): Handle cases where we make an
14218 unconditional trap.
14219
14220 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
14221
14222 PR target/61729
14223 PR target/77850
14224 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
14225 read from, for big endian.
14226
14227 2017-01-20 Jiong Wang <jiong.wang@arm.com>
14228
14229 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
14230 register pauth builtins for LP64 only.
14231
14232 2017-01-20 Marek Polacek <polacek@redhat.com>
14233
14234 PR c/79152
14235 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
14236 non-case labels.
14237
14238 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
14239
14240 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
14241 of safelen status.
14242 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
14243 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
14244 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
14245
14246 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14247
14248 PR target/71270
14249 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
14250 in big-endian mode when they are not a single duplicated value.
14251
14252 2017-01-20 Richard Biener <rguenther@suse.de>
14253
14254 * BASE-VER: Bump to 7.0.1.
14255
14256 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
14257
14258 * omp-low.c (omplow_simd_context): New struct. Use it...
14259 (lower_rec_simd_input_clauses): ...here and...
14260 (lower_rec_input_clauses): ...here to hold common data. Adjust all
14261 references to idx, lane, max_vf, is_simt.
14262
14263 2017-01-20 Graham Markall <graham.markall@embecosm.com>
14264
14265 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
14266 mcpu=nps400.
14267
14268 2017-01-20 Martin Jambor <mjambor@suse.cz>
14269
14270 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
14271 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
14272 gt-hsa-common.h.
14273 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
14274 (GTFILES): Rename hsa.c to hsa-common.c.
14275 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
14276 * hsa-dump.c: Likewise.
14277 * hsa-gen.c: Likewise.
14278 * hsa-regalloc.c: Likewise.
14279 * ipa-hsa.c: Likewise.
14280 * omp-expand.c: Likewise.
14281 * omp-low.c: Likewise.
14282 * toplev.c: Likewise.
14283
14284 2017-01-20 Marek Polacek <polacek@redhat.com>
14285
14286 PR c/64279
14287 * doc/invoke.texi: Document -Wduplicated-branches.
14288 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
14289 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
14290 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
14291 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
14292 return 0 only when not OEP_LEXICOGRAPHIC.
14293 (fold_build_cleanup_point_expr): Use the expression
14294 location when building CLEANUP_POINT_EXPR.
14295 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
14296 * tree.c (add_expr): Handle error_mark_node.
14297
14298 2017-01-20 Martin Liska <mliska@suse.cz>
14299
14300 PR lto/69188
14301 * tree-profile.c (init_ic_make_global_vars): Do not call
14302 finalize_decl.
14303 (gimple_init_gcov_profiler): Likewise.
14304
14305 2017-01-20 Martin Liska <mliska@suse.cz>
14306
14307 PR ipa/71190
14308 * cgraph.h (maybe_create_reference): Remove argument and
14309 update comment.
14310 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
14311 argument.
14312 * ipa-cp.c (create_specialized_node): Likewise.
14313 * symtab.c (symtab_node::maybe_create_reference): Handle
14314 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
14315
14316 2017-01-20 Martin Liska <mliska@suse.cz>
14317
14318 * read-rtl-function.c (function_reader::create_function): Use
14319 build_decl instread of build_decl_stat.
14320
14321 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
14322
14323 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
14324 * config/i386/avx512dqintrin.h: Ditto.
14325 * config/i386/avx512fintrin.h: Ditto.
14326 * config/i386/i386-builtin-types.def: Add new types.
14327 * gcc/config/i386/i386.c: Handle new types.
14328 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
14329 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
14330 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
14331 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
14332 (__builtin_ia32_kshiftridi): New.
14333 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
14334
14335 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
14336
14337 PR target/78875
14338 PR target/79140
14339 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
14340 define to rs6000_init_stack_protect_guard.
14341 (rs6000_init_stack_protect_guard): New function.
14342
14343 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
14344 Yunqiang Su <yunqiang.su@imgtec.com>
14345
14346 * config.gcc (supported_defaults): Add madd4.
14347 (with_madd4): Add validation.
14348 (all_defaults): Add madd4.
14349 * config/mips/mips.opt (mmadd4): New option.
14350 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
14351 mmadd4.
14352 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
14353 __mips_no_madd4.
14354 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
14355 (ISA_HAS_FUSED_MADD4): Likewise.
14356 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
14357 * gcc/doc/install.texi (--with-madd4): Document the new option.
14358
14359 2017-01-19 Jiong Wang <jiong.wang@arm.com>
14360
14361 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
14362 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
14363 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
14364 (aarch64_init_pauth_hint_builtins): New.
14365 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
14366 (aarch64_expand_builtin): Expand new builtins.
14367
14368 2017-01-19 Jiong Wang <jiong.wang@arm.com>
14369
14370 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
14371 * combine-stack-adj.c (no_unhandled_cfa): Handle
14372 REG_CFA_TOGGLE_RA_MANGLE.
14373 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
14374 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
14375 info for return address signing.
14376 (aarch64_expand_epilogue): Likewise.
14377
14378 2017-01-19 Jiong Wang <jiong.wang@arm.com>
14379
14380 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
14381 * config/aarch64/aarch64-protos.h
14382 (aarch64_return_address_signing_enabled): New declaration.
14383 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
14384 New function.
14385 (aarch64_expand_prologue): Sign return address before it's pushed onto
14386 stack.
14387 (aarch64_expand_epilogue): Authenticate return address fetched from
14388 stack.
14389 (aarch64_override_options): Sanity check for ILP32 and ISA level.
14390 (aarch64_attributes): New function attributes for "sign-return-address".
14391 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
14392 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
14393 ("*do_return"): Generate combined instructions according to key index.
14394 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
14395 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
14396 iterators.
14397 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
14398 * config/aarch64/aarch64.opt (msign-return-address=): New.
14399 * doc/extend.texi (AArch64 Function Attributes): Documents
14400 "sign-return-address=".
14401 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
14402
14403 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
14404
14405 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
14406 overall option summary.
14407
14408 2017-01-19 Jiong Wang <jiong.wang@arm.com>
14409
14410 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
14411 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
14412 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
14413 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
14414
14415 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
14416
14417 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
14418 -mpower9-minmax by default for -mcpu=power9.
14419 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
14420 128-bit floating point.
14421
14422 2017-01-20 Alan Modra <amodra@gmail.com>
14423
14424 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
14425 optimizing for size.
14426
14427 2017-01-20 Alan Modra <amodra@gmail.com>
14428
14429 PR target/79144
14430 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
14431 for strcmp and strncmp from corresponding builtin decl.
14432
14433 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
14434
14435 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
14436 instead of i386/rtems-64.h.
14437 * config/i386/rtems-64.h: Remove.
14438
14439 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
14440
14441 PR target/78478
14442 Revert:
14443 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
14444
14445 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
14446
14447 2017-01-19 Tamar Christina <tamar.christina@arm.com>
14448
14449 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
14450 Change int to HOST_WIDE_INT.
14451 * config/aarch64/aarch64-protos.h
14452 (aarch64_simd_gen_const_vector_dup): Likewise.
14453 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
14454
14455 2017-01-19 David Malcolm <dmalcolm@redhat.com>
14456
14457 * langhooks-def.h (lhd_type_for_size): New decl.
14458 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
14459 * langhooks.c (lhd_type_for_size): New function, taken from
14460 lto_type_for_size.
14461
14462 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
14463
14464 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
14465 define_bypass for CR latency.
14466 (power9-cracked-alu): Update bypass latency and remove power9-branch.
14467 (power9-alu2): Add define_bypass for CR latency.
14468 (power9-cmp): New.
14469 (power9-mul): Update insn latency.
14470 (power9-mul-compare): Update insn latency, bypass latency and remove
14471 power9-branch.
14472
14473 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14474
14475 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
14476 Delete.
14477 * config/aarch64/aarch64.md
14478 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
14479 aarch64_nopcrelative_literal_loads.
14480 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
14481
14482 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
14483
14484 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
14485 TARGET_LOONGSON_3A.
14486 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
14487
14488 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
14489
14490 PR target/78176
14491 * config.gcc (supported_defaults): Add lxc1-sxc1.
14492 (with_lxc1_sxc1): Add validation.
14493 (all_defaults): Add lxc1-sxc1.
14494 * config/mips/mips.opt (mlxc1-sxc1): New option.
14495 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
14496 mlxc1-sxc1.
14497 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
14498 __mips_no_lxc1_sxc1.
14499 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
14500 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
14501 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
14502
14503 2017-01-19 Richard Biener <rguenther@suse.de>
14504
14505 PR tree-optimization/72488
14506 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
14507 sure to restore SSA info.
14508 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
14509
14510 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
14511
14512 PR rtl-optimization/79121
14513 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
14514 of the inner type when shifting an extended value.
14515
14516 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
14517
14518 PR lto/78407
14519 * symtab.c (symtab_node::equal_address_to): Fix comparing of
14520 interposable aliases.
14521
14522 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
14523
14524 PR target/78516
14525 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
14526 Use the evmergelohi instruction.
14527 (mov_si<mode>_e500_subreg4_2_le): Likewise.
14528 (mov_sitf_e500_subreg8_2_be): Likewise.
14529 (mov_sitf_e500_subreg12_2_le): Likewise.
14530 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
14531 (mov_si<mode>_e500_subreg4_2_be): Likewise.
14532 (mov_sitf_e500_subreg8_2_le): Likewise.
14533 (mov_sitf_e500_subreg12_2_be): Likewise.
14534
14535 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14536
14537 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
14538 attribute from vecsimple to vecperm.
14539 (altivec_vbpermq2): Likewise.
14540
14541 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14542
14543 PR target/79040
14544 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
14545
14546 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
14547 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
14548 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
14549 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
14550 case where N arg is SIZE_MAX.
14551 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
14552 (cmpstrsi): Add pattern.
14553
14554 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14555
14556 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14557 __builtin_vec_revb builtins.
14558 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
14559 built-in functions to support generation of the ISA 3.0 XXBR<x>
14560 vector byte reverse instructions.
14561 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
14562 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
14563 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
14564 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
14565 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
14566 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
14567 (P9V_BUILTIN_VEC_REVB): Likewise.
14568 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
14569 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
14570 (p9_xxbrq_v16qi): Likewise.
14571 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
14572 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
14573 (p9_xxbrh_v8hi): Likewise.
14574 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
14575 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
14576 vec_revb built-in functions.
14577
14578 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
14579
14580 PR rtl-optimization/78952
14581 * config/i386/i386.md (any_extract): New code iterator.
14582 (*insvqi_2): Use any_extract for source operand.
14583 (*insvqi_3): Use any_shiftrt for source operand.
14584
14585 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
14586
14587 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
14588 New function.
14589 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
14590
14591 2017-01-18 Matthias Klose <doko@ubuntu.com>
14592
14593 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
14594
14595 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14596
14597 * config/rs6000/altivec.h (vec_bperm): Change #define.
14598 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
14599 (altivec_vbpermq2): New define_insn.
14600 (altivec_vbpermd): Likewise.
14601 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
14602 function interface.
14603 (VBPERMD): Likewise.
14604 (VBPERM): New polymorphic function interface.
14605 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
14606 Add entries for P9V_BUILTIN_VEC_VBPERM.
14607 * doc/extend.texi: Add interfaces for vec_bperm.
14608
14609 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14610
14611 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
14612 first letter of error messages.
14613 (s390_resolve_overloaded_builtin): Likewise.
14614 * config/s390/s390.c (s390_expand_builtin): Likewise.
14615 (s390_invalid_arg_for_unprototyped_fn): Likewise.
14616 (s390_valid_target_attribute_inner_p): Likewise.
14617 * config/s390/s390.md ("tabort"): Likewise.
14618
14619 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
14620
14621 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
14622 (ISA_AVOID_DIV_HILO): New macro.
14623 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
14624 (ISA_HAS_DDIV): Likewise.
14625
14626 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
14627
14628 * doc/invoke.texi (fabi-version): Correct number of occurrences.
14629
14630 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
14631
14632 * doc/invoke.texi (fabi-version): Spelling fix.
14633
14634 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
14635
14636 PR c++/70182
14637 * doc/invoke.texi (fabi-version): Mention mangling fix for
14638 operator names.
14639
14640 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
14641
14642 PR c++/77489
14643 * doc/invoke.texi (fabi-version): Document discriminator mangling.
14644
14645 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
14646
14647 PR target/78875
14648 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
14649 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
14650 the new options.
14651 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
14652 flexible settings.
14653 (stack_protect_test): Ditto.
14654 * config/rs6000/rs6000.opt (mstack-protector-guard=,
14655 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
14656 options.
14657 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
14658 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
14659 -mstack-protector-guard-offset=.
14660 (RS/6000 and PowerPC Options): Ditto.
14661
14662 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
14663
14664 * config/i386/i386.h (MASK_CLASS_P): New define.
14665 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
14666 there are no registers from different register sets also when
14667 mask registers are used. Update function comment.
14668 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
14669 to (*k/*r) and (*k/*km) alternatives.
14670
14671 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
14672
14673 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
14674 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
14675 (EH_RETURN_HANDLER_RTX): New define.
14676 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
14677 Force frame pointer in EH return functions.
14678 (aarch64_expand_epilogue): Add barrier for eh_return.
14679 (aarch64_final_eh_return_addr): Remove.
14680 (aarch64_eh_return_handler_rtx): New function.
14681 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
14682 Remove.
14683 (aarch64_eh_return_handler_rtx): New prototype.
14684
14685 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14686
14687 * config/rs6000/altivec.h (vec_rlmi): New #define.
14688 (vec_vrlnm): Likewise.
14689 (vec_rlnm): Likewise.
14690 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
14691 (UNSPEC_VRLNM): Likewise.
14692 (VIlong): New mode iterator.
14693 (altivec_vrl<VI_char>mi): New define_insn.
14694 (altivec_vrl<VI_char>nm): Likewise.
14695 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
14696 function entry.
14697 (VRLDNM): Likewise.
14698 (RLNM): New polymorphic function entry.
14699 (VRLWMI): New monomorphic function entry.
14700 (VRLDMI): Likewise.
14701 (RLMI): New polymorphic function entry.
14702 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
14703 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
14704 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
14705 vec_vrlnm.
14706
14707 2017-01-17 Jakub Jelinek <jakub@redhat.com>
14708
14709 PR debug/78839
14710 * dwarf2out.c (field_byte_offset): Restore the
14711 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
14712 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
14713 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
14714 of build2 + fold.
14715
14716 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
14717
14718 PR ada/67205
14719 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
14720
14721 2017-01-17 Jakub Jelinek <jakub@redhat.com>
14722
14723 PR debug/71669
14724 * dwarf2out.c (add_data_member_location_attribute): For constant
14725 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
14726 instead of DW_AT_data_member_location, DW_AT_bit_offset and
14727 DW_AT_byte_size attributes.
14728
14729 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
14730
14731 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
14732 after forcing to constant memory when the code model is medium.
14733
14734 2017-01-17 Julia Koval <julia.koval@intel.com>
14735
14736 PR target/76731
14737 * config/i386/avx512fintrin.h
14738 (_mm512_i32gather_ps): Change __addr type to void const*.
14739 (_mm512_mask_i32gather_ps): Ditto.
14740 (_mm512_i32gather_pd): Ditto.
14741 (_mm512_mask_i32gather_pd): Ditto.
14742 (_mm512_i64gather_ps): Ditto.
14743 (_mm512_mask_i64gather_ps): Ditto.
14744 (_mm512_i64gather_pd): Ditto.
14745 (_mm512_mask_i64gather_pd): Ditto.
14746 (_mm512_i32gather_epi32): Ditto.
14747 (_mm512_mask_i32gather_epi32): Ditto.
14748 (_mm512_i32gather_epi64): Ditto.
14749 (_mm512_mask_i32gather_epi64): Ditto.
14750 (_mm512_i64gather_epi32): Ditto.
14751 (_mm512_mask_i64gather_epi32): Ditto.
14752 (_mm512_i64gather_epi64): Ditto.
14753 (_mm512_mask_i64gather_epi64): Ditto.
14754 (_mm512_i32scatter_ps): Change __addr type to void*.
14755 (_mm512_mask_i32scatter_ps): Ditto.
14756 (_mm512_i32scatter_pd): Ditto.
14757 (_mm512_mask_i32scatter_pd): Ditto.
14758 (_mm512_i64scatter_ps): Ditto.
14759 (_mm512_mask_i64scatter_ps): Ditto.
14760 (_mm512_i64scatter_pd): Ditto.
14761 (_mm512_mask_i64scatter_pd): Ditto.
14762 (_mm512_i32scatter_epi32): Ditto.
14763 (_mm512_mask_i32scatter_epi32): Ditto.
14764 (_mm512_i32scatter_epi64): Ditto.
14765 (_mm512_mask_i32scatter_epi64): Ditto.
14766 (_mm512_i64scatter_epi32): Ditto.
14767 (_mm512_mask_i64scatter_epi32): Ditto.
14768 (_mm512_i64scatter_epi64): Ditto.
14769 (_mm512_mask_i64scatter_epi64): Ditto.
14770 * config/i386/avx512pfintrin.h
14771 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
14772 (_mm512_mask_prefetch_i32gather_ps): Ditto.
14773 (_mm512_mask_prefetch_i64gather_pd): Ditto.
14774 (_mm512_mask_prefetch_i64gather_ps): Ditto.
14775 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
14776 (_mm512_prefetch_i32scatter_ps): Ditto.
14777 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
14778 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
14779 (_mm512_prefetch_i64scatter_pd): Ditto.
14780 (_mm512_prefetch_i64scatter_ps): Ditto.
14781 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
14782 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
14783 * config/i386/avx512vlintrin.h
14784 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
14785 (_mm_mmask_i32gather_ps): Ditto.
14786 (_mm256_mmask_i32gather_pd): Ditto.
14787 (_mm_mmask_i32gather_pd): Ditto.
14788 (_mm256_mmask_i64gather_ps): Ditto.
14789 (_mm_mmask_i64gather_ps): Ditto.
14790 (_mm256_mmask_i64gather_pd): Ditto.
14791 (_mm_mmask_i64gather_pd): Ditto.
14792 (_mm256_mmask_i32gather_epi32): Ditto.
14793 (_mm_mmask_i32gather_epi32): Ditto.
14794 (_mm256_mmask_i32gather_epi64): Ditto.
14795 (_mm_mmask_i32gather_epi64): Ditto.
14796 (_mm256_mmask_i64gather_epi32): Ditto.
14797 (_mm_mmask_i64gather_epi32): Ditto.
14798 (_mm256_mmask_i64gather_epi64): Ditto.
14799 (_mm_mmask_i64gather_epi64): Ditto.
14800 (_mm256_i32scatter_ps): Change __addr type to void*.
14801 (_mm256_mask_i32scatter_ps): Ditto.
14802 (_mm_i32scatter_ps): Ditto.
14803 (_mm_mask_i32scatter_ps): Ditto.
14804 (_mm256_i32scatter_pd): Ditto.
14805 (_mm256_mask_i32scatter_pd): Ditto.
14806 (_mm_i32scatter_pd): Ditto.
14807 (_mm_mask_i32scatter_pd): Ditto.
14808 (_mm256_i64scatter_ps): Ditto.
14809 (_mm256_mask_i64scatter_ps): Ditto.
14810 (_mm_i64scatter_ps): Ditto.
14811 (_mm_mask_i64scatter_ps): Ditto.
14812 (_mm256_i64scatter_pd): Ditto.
14813 (_mm256_mask_i64scatter_pd): Ditto.
14814 (_mm_i64scatter_pd): Ditto.
14815 (_mm_mask_i64scatter_pd): Ditto.
14816 (_mm256_i32scatter_epi32): Ditto.
14817 (_mm256_mask_i32scatter_epi32): Ditto.
14818 (_mm_i32scatter_epi32): Ditto.
14819 (_mm_mask_i32scatter_epi32): Ditto.
14820 (_mm256_i32scatter_epi64): Ditto.
14821 (_mm256_mask_i32scatter_epi64): Ditto.
14822 (_mm_i32scatter_epi64): Ditto.
14823 (_mm_mask_i32scatter_epi64): Ditto.
14824 (_mm256_i64scatter_epi32): Ditto.
14825 (_mm256_mask_i64scatter_epi32): Ditto.
14826 (_mm_i64scatter_epi32): Ditto.
14827 (_mm_mask_i64scatter_epi32): Ditto.
14828 (_mm256_i64scatter_epi64): Ditto.
14829 (_mm256_mask_i64scatter_epi64): Ditto.
14830 (_mm_i64scatter_epi64): Ditto.
14831 (_mm_mask_i64scatter_epi64): Ditto.
14832 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
14833 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
14834 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
14835 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
14836 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
14837 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
14838 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
14839 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
14840 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
14841 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
14842 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
14843 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
14844 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
14845 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
14846 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
14847 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
14848 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
14849 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
14850 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
14851 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
14852 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
14853 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
14854 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
14855 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
14856 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
14857 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
14858 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
14859 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
14860 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
14861 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
14862 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
14863 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
14864 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
14865 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
14866 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
14867 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
14868 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
14869 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
14870 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
14871 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
14872 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
14873 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
14874 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
14875 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
14876 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
14877 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
14878 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
14879 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
14880 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
14881 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
14882 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
14883 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
14884 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
14885 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
14886 definitions accordingly.
14887
14888 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
14889 Kuan-Lin Chen <kuanlinchentw@gmail.com>
14890
14891 PR target/79079
14892 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
14893 gen_lowpart.
14894
14895 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
14896
14897 PR target/79058
14898 * ira-conflicts.c (ira_build_conflicts): Update total conflict
14899 hard regs for inner regno.
14900
14901 2017-01-17 Martin Liska <mliska@suse.cz>
14902
14903 PR ipa/71207
14904 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
14905 assumption and add comment.
14906
14907 2017-01-17 Nathan Sidwell <nathan@acm.org>
14908
14909 * ipa-visibility.c (localize_node): New function, broken out of ...
14910 (function_and_variable_visibility): ... here. Call it.
14911
14912 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
14913
14914 PR middle-end/77445
14915 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
14916 correctly set frequency of oudgoing edge.
14917 (duplicate_thread_path): Fix profile updating.
14918
14919 2017-01-17 Jakub Jelinek <jakub@redhat.com>
14920
14921 PR other/79046
14922 * configure.ac: Add GCC_BASE_VER.
14923 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
14924 version from BASE-VER file.
14925 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
14926 (gcc.o): Depend on $(BASEVER).
14927 * common.opt (dumpfullversion): New option.
14928 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
14929 * doc/invoke.texi: Document -dumpfullversion.
14930 * doc/install.texi: Document --with-gcc-major-version-only.
14931 * configure: Regenerated.
14932
14933 2017-01-17 Richard Biener <rguenther@suse.de>
14934
14935 PR tree-optimization/71433
14936 * tree-vrp.c (register_new_assert_for): Merge same asserts
14937 on all incoming edges.
14938 (process_assert_insertions_for): Handle insertions at the
14939 beginning of BBs.
14940
14941 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
14942
14943 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
14944 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
14945
14946 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
14947
14948 PR target/78633
14949 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
14950 RTL sharing.
14951
14952 2017-01-17 Alan Modra <amodra@gmail.com>
14953
14954 PR target/79066
14955 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
14956 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
14957 symbolic stack limit when pic.
14958
14959 2017-01-16 Martin Sebor <msebor@redhat.com>
14960
14961 PR tree-optimization/78608
14962 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
14963
14964 2017-01-16 Jeff Law <law@redhat.com>
14965
14966 Revert:
14967 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
14968 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
14969 for several include directories that may be relative to sysroot.
14970 * config/i386/x-mingw32 (gplus_includedir): Define.
14971 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
14972 (native_system_includedir): Likewise.
14973 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
14974 override if TARGET_SYSTEM_ROOT is defined.
14975 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
14976
14977 PR tree-optimization/79090
14978 PR tree-optimization/33562
14979 PR tree-optimization/61912
14980 PR tree-optimization/77485
14981 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
14982 and computed trims into the dump file.
14983
14984 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
14985
14986 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
14987
14988 2017-01-16 Jakub Jelinek <jakub@redhat.com>
14989
14990 PR c/79089
14991 * gimplify.c (gimplify_init_constructor): If want_value and
14992 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
14993 fix.
14994
14995 PR target/79080
14996 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
14997 sequence. Formatting fixes.
14998 (doloop_optimize): Formatting fixes.
14999
15000 PR driver/49726
15001 * gcc.c (debug_level_greater_than_spec_func): New function.
15002 (static_spec_functions): Add debug-level-gt spec function.
15003 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
15004 !g0.
15005 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
15006 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
15007 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
15008 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
15009 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
15010 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
15011
15012 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
15013
15014 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
15015 QImode fixups to general and mask registers only.
15016
15017 2017-01-16 Carl Love <cel@us.ibm.com>
15018
15019 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
15020 for built-in functions
15021 vector signed char vec_nabs (vector signed char)
15022 vector signed short vec_nabs (vector signed short)
15023 vector signed int vec_nabs (vector signed int)
15024 vector signed long long vec_nabs (vector signed long long)
15025 vector float vec_nabs (vector float)
15026 vector double vec_nabs (vector double)
15027 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
15028 and NABS overload.
15029 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
15030 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
15031 * doc/extend.texi: Update the documentation file for the new built-in
15032 functions.
15033
15034 2017-01-16 Martin Sebor <msebor@redhat.com>
15035
15036 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
15037 message.
15038
15039 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15040
15041 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
15042 UNSPEC_VSX__XXSPLTD to require special splat handling.
15043
15044 2017-01-16 David Malcolm <dmalcolm@redhat.com>
15045
15046 PR bootstrap/78616
15047 * system.h: Poison strndup.
15048
15049 2017-01-16 Alan Modra <amodra@gmail.com>
15050
15051 PR target/79098
15052 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
15053 use a switch.
15054
15055 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
15056
15057 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
15058
15059 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
15060
15061 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
15062 call recog here. Assert that INSN_CODE (insn) is non-negative.
15063
15064 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
15065
15066 PR target/72749
15067 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
15068 fallthrough.
15069 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
15070 in the currently scheduled RTL fragment.
15071
15072 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
15073
15074 PR rtl-optimization/78751
15075 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
15076 give up.
15077
15078 2017-01-14 Jeff Law <law@redhat.com>
15079
15080 PR tree-optimization/79090
15081 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
15082 variable length stores.
15083 (compute_trims): Delete dead assignment to *trim_tail.
15084 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
15085 zero length.
15086
15087 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
15088
15089 PR rtl-optimization/78626
15090 PR rtl-optimization/78727
15091 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
15092 of a block, and split such blocks after everything else is finished.
15093
15094 2017-01-14 Alan Modra <amodra@gmail.com>
15095
15096 PR target/72749
15097 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
15098 target legitimate_combined_insn.
15099 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
15100 (rs6000_legitimate_combined_insn): New function.
15101 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
15102 all uses.
15103 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
15104 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
15105 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
15106
15107 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
15108
15109 * doc/frontends.texi (G++ and GCC): Remove references to Java.
15110
15111 2017-01-13 Jeff Law <law@redhat.com>
15112
15113 PR tree-optimization/33562
15114 PR tree-optimization/61912
15115 PR tree-optimization/77485
15116 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
15117 a statement.
15118 (delete_dead_assignment): Likewise.
15119 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
15120 statement to delete_dead_call and delete_dead_assignment.
15121
15122 2017-01-13 David Malcolm <dmalcolm@redhat.com>
15123
15124 PR c/78304
15125 * substring-locations.c (format_warning_va): Strengthen case 1 so
15126 that both endpoints of the substring must be within the format
15127 range for just the substring to be printed.
15128
15129 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
15130
15131 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
15132 * config/i386/i386.c (ix86_target_string): Add missing options
15133 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
15134 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
15135 flags_other and ix86_target_other to flags2_other. Display unknown
15136 isa2 options.
15137 (ix86_valid_target_attribute_inner_p): Add missing options and
15138 reorder options by implied ISAs, as in ix86_target_string.
15139
15140 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
15141
15142 * hash-table.h (hash_table::too_empty_p): New function.
15143 (hash_table::expand): Use it.
15144 (hash_table::traverse): Likewise.
15145 (hash_table::empty_slot): Use sizeof (value_type) instead of
15146 sizeof (PTR) to convert bytes to elements. Shrink the table
15147 if the current size is excessive for the current number of
15148 elements.
15149
15150 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
15151
15152 * ira-costs.c (record_reg_classes): Break from the inner loop
15153 early once alt_fail is known to be true. Update outer loop
15154 handling accordingly.
15155
15156 2017-01-13 Jeff Law <law@redhat.com>
15157
15158 * tree-ssa-dse.c (decrement_count): New function.
15159 (increment_start_addr, maybe_trim_memstar_call): Likewise.
15160 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
15161 when we know the partially dead statement is a mem* function.
15162
15163 PR tree-optimization/61912
15164 PR tree-optimization/77485
15165 * tree-ssa-dse.c: Include expr.h.
15166 (maybe_trim_constructor_store): New function.
15167 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
15168
15169 PR tree-optimization/33562
15170 PR tree-optimization/61912
15171 PR tree-optimization/77485
15172 * doc/invoke.texi: Document new dse-max-object-size param.
15173 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
15174 * tree-ssa-dse.c: Include params.h.
15175 (dse_store_status): New enum.
15176 (initialize_ao_ref_for_dse): New, partially extracted from
15177 dse_optimize_stmt.
15178 (valid_ao_ref_for_dse, normalize_ref): New.
15179 (setup_live_bytes_from_ref, compute_trims): Likewise.
15180 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
15181 (maybe_trim_partially_dead_store): Likewise.
15182 (maybe_trim_complex_store): Likewise.
15183 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
15184 Track what bytes live from the original store. Return tri-state
15185 for dead, partially dead or live.
15186 (dse_dom_walker): Add constructor, destructor and new private members.
15187 (delete_dead_call, delete_dead_assignment): New extracted from
15188 dse_optimize_stmt.
15189 (dse_optimize_stmt): Make a member of dse_dom_walker.
15190 Use initialize_ao_ref_for_dse.
15191
15192 PR tree-optimization/33562
15193 PR tree-optimization/61912
15194 PR tree-optimization/77485
15195 * sbitmap.h (bitmap_count_bits): Prototype.
15196 (bitmap_clear_range, bitmap_set_range): Likewise.
15197 * sbitmap.c (bitmap_clear_range): New function.
15198 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
15199
15200 2017-01-13 Martin Liska <mliska@suse.cz>
15201
15202 PR ipa/79043
15203 * function.c (set_cfun): Add new argument force.
15204 * function.h (set_cfun): Likewise.
15205 * ipa-inline-transform.c (inline_call): Use the function when
15206 strict alising from is dropped for function we inline to.
15207
15208 2017-01-13 Richard Biener <rguenther@suse.de>
15209
15210 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
15211 for dumping GIMPLE INTEGER_CSTs.
15212
15213 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15214
15215 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
15216 to 201112L since C++17.
15217
15218 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
15219
15220 PR sanitizer/78887
15221 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
15222 if -fsanitize=kernel-address is present.
15223
15224 2017-01-13 Richard Biener <rguenther@suse.de>
15225
15226 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
15227 as _Literal ( type ) number in case usual suffixes do not
15228 preserve all information.
15229
15230 2017-01-13 Richard Biener <rguenther@suse.de>
15231
15232 PR tree-optimization/77283
15233 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
15234 and ssa-iterators.h.
15235 (is_feasible_trace): Implement a cost model based on joiner
15236 PHI node uses.
15237
15238 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15239
15240 PR target/79004
15241 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
15242 char or short to __float128/_Float128 directly.
15243
15244 2017-01-12 Martin Sebor <msebor@redhat.com>
15245
15246 to -Wformat-overflow.
15247 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
15248 (min_bytes_remaining): Same.
15249 (get_string_length): Same.
15250 (format_string): Same.
15251 (format_directive): Same.
15252 (add_bytes): Same.
15253 (pass_sprintf_length::handle_gimple_call): Same.
15254
15255 2017-01-12 Jakub Jelinek <jakub@redhat.com>
15256
15257 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
15258 info.nowrite calls with no lhs that can't throw. Return bool
15259 whether gsi_remove has been called or not.
15260 (pass_sprintf_length::handle_gimple_call): Return bool whether
15261 try_substitute_return_value called gsi_remove. Formatting fix.
15262 (pass_sprintf_length::execute): Don't use gsi_remove if
15263 handle_gimple_call returned true.
15264
15265 PR bootstrap/79069
15266 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
15267 be removed due to side-effects, don't remove following barrier nor
15268 turn the successor edge into fallthru edge.
15269
15270 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15271
15272 PR target/79044
15273 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
15274 element-reversing loads and stores as not swappable.
15275
15276 2017-01-12 Nathan Sidwell <nathan@acm.org>
15277 Nicolai Stange <nicstange@gmail.com>
15278
15279 * combine.c (try_combine): Don't ignore result of overlap checking
15280 loop. Combine overlap & asm check into single loop.
15281
15282 2017-01-12 Richard Biener <rguenther@suse.de>
15283
15284 * tree-pretty-print.c (dump_generic_node): Provide -gimple
15285 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
15286
15287 2017-01-12 Richard Biener <rguenther@suse.de>
15288
15289 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
15290 and TS_TARGET_OPTION directly derive from TS_BASE.
15291 * tree-core.h (tree_optimization_option): Derive from tree_base.
15292 (tree_target_option): Likewise.
15293
15294 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
15295
15296 * config/i386/i386.c (memory_address_length): Increase len
15297 only when rip_relative_addr_p returns false.
15298
15299 2017-01-11 Julia Koval <julia.koval@intel.com>
15300
15301 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
15302 (OPTION_MASK_ISA_SGX_SET): New.
15303 (ix86_handle_option): Handle OPT_msgx.
15304 * config.gcc: Added sgxintrin.h.
15305 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
15306 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
15307 * config/i386/i386.c (ix86_target_string): Add -msgx.
15308 (PTA_SGX): New.
15309 (ix86_option_override_internal): Handle new options.
15310 (ix86_valid_target_attribute_inner_p): Add sgx.
15311 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
15312 * config/i386/i386.opt: Add msgx.
15313 * config/i386/sgxintrin.h: New file.
15314 * config/i386/x86intrin.h: Add sgxintrin.h.
15315
15316 2017-01-11 Jakub Jelinek <jakub@redhat.com>
15317
15318 PR c++/71537
15319 * fold-const.c (maybe_nonzero_address): Return 1 for function
15320 local objects.
15321 (tree_single_nonzero_warnv_p): Don't handle function local objects
15322 here.
15323
15324 PR c++/72813
15325 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
15326 of c-header.
15327
15328 2017-01-11 David Malcolm <dmalcolm@redhat.com>
15329
15330 PR driver/78877
15331 * opts.c: Include "spellcheck.h"
15332 (struct string_fragment): New struct.
15333 (struct edit_distance_traits<const string_fragment &>): New
15334 struct.
15335 (get_closest_sanitizer_option): New function.
15336 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
15337
15338 2017-01-11 Jakub Jelinek <jakub@redhat.com>
15339
15340 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
15341 by 12.
15342 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
15343 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
15344 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
15345 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
15346 for initial die_offset if dwarf_split_debug_info.
15347 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
15348 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
15349 fields.
15350 (output_skeleton_debug_sections): Formatting fix. Use
15351 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
15352 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
15353
15354 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
15355
15356 * config/arm/cortex-a53.md: Add bypasses for
15357 cortex_a53_r2f_cvt.
15358 (cortex_a53_r2f): Only use for transfers.
15359 (cortex_a53_f2r): Likewise.
15360 (cortex_a53_r2f_cvt): Add reservation for conversions.
15361 (cortex_a53_f2r_cvt): Likewise.
15362
15363 2017-01-11 Tamar Christina <tamar.christina@arm.com>
15364
15365 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
15366 to all inlined functions, change static to extern.
15367
15368 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
15369
15370 PR target/78253
15371 * config/arm/arm.c (legitimize_pic_address): Handle reference to
15372 weak symbol.
15373 (arm_assemble_integer): Likewise.
15374
15375 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
15376
15377 * config.gcc: Use new awk script to check CPU, FPU and architecture
15378 parameters for --with-... options.
15379 * config/arm/parsecpu.awk: New file
15380 * config/arm/arm-cpus.in: New file.
15381 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
15382 files.
15383 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
15384 files.
15385 * config/arm/t-arm: Update dependency rules.
15386 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
15387 of processing .def files.
15388 * config/arm/genopt.sh: Deleted.
15389 * config/arm/gentune.sh: Deleted.
15390 * config/arm/arm-cores.def: Deleted.
15391 * config/arm/arm-arches.def: Deleted.
15392 * config/arm/arm-fpus.def: Deleted.
15393 * config/arm/arm-tune.md: Regenerated.
15394 * config/arm/arm-tables.opt: Regenerated.
15395 * config/arm/arm-cpu.h: New generated file.
15396 * config/arm/arm-cpu-data.h: New generated file.
15397 * config/arm/arm-cpu-cdata.h: New generated file.
15398
15399 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
15400
15401 PR lto/79042
15402 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
15403 bit.
15404 (input_varpool_node): Unpack dynamically_initialized bit.
15405
15406 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
15407
15408 PR rtl-optimization/79032
15409 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
15410 the alignment of the adjusted memory reference against that of MODE,
15411 instead of the alignment of the original memory reference.
15412
15413 2017-01-11 Martin Jambor <mjambor@suse.cz>
15414
15415 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
15416 test.
15417 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
15418 decorated functions.
15419
15420 2017-01-11 Richard Biener <rguenther@suse.de>
15421
15422 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
15423 set range/nonnull info for PHI results. Do not set it on
15424 stmts marked for removal.
15425
15426 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
15427
15428 * expr.c (store_field): In the bitfield case, fetch the return value
15429 from the registers before applying a single big-endian adjustment.
15430 Always do a final load for a BLKmode value not larger than a word.
15431
15432 2017-01-10 David Malcolm <dmalcolm@redhat.com>
15433
15434 PR c++/77949
15435 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
15436 that we correctly handle column numbers greater than
15437 LINE_MAP_MAX_COLUMN_NUMBER.
15438
15439 2017-01-10 Martin Sebor <msebor@redhat.com>
15440
15441 PR middle-end/78245
15442 * gimple-ssa-sprintf.c (get_destination_size): Call
15443 {init,fini}object_sizes.
15444 * tree-object-size.c (addr_object_size): Adjust.
15445 (pass_through_call): Adjust.
15446 (pass_object_sizes::execute): Adjust.
15447 * tree-object-size.h (fini_object_sizes): Declare.
15448
15449 2017-01-10 Martin Sebor <msebor@redhat.com>
15450
15451 PR tree-optimization/78775
15452 * builtins.c (get_size_range): Move...
15453 * calls.c: ...to here.
15454 (alloc_max_size): Accept zero argument.
15455 (operand_signed_p): Remove.
15456 (maybe_warn_alloc_args_overflow): Call get_size_range.
15457 * calls.h (get_size_range): Declare.
15458
15459 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
15460
15461 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
15462 from TI's devices.csv file as of September 2016.
15463 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
15464
15465 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
15466
15467 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
15468 * doc/invoke.texi: Likewise.
15469 * doc/md.texi: Likewise.
15470 * doc/objc.texi: Likewise.
15471
15472 2017-01-10 Joshua Conner <joshconner@google.com>
15473
15474 * config/arm/fuchsia-elf.h: New file.
15475 * config/fuchsia.h: New file.
15476 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
15477 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
15478 targets.
15479 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
15480
15481 2016-01-10 Richard Biener <rguenther@suse.de>
15482
15483 PR tree-optimization/79034
15484 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
15485 Propagate out degenerate PHIs in the joiner.
15486
15487 2017-01-10 Martin Liska <mliska@suse.cz>
15488
15489 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
15490 (sort_congruence_classes_by_decl_uid): Likewise.
15491 (sort_congruence_class_groups_by_decl_uid): Likewise.
15492 (sem_item_optimizer::merge_classes): Sort class, groups in these
15493 classes and members in the groups by DECL_UID of declarations.
15494 This would make merge operations stable.
15495
15496 2017-01-10 Martin Liska <mliska@suse.cz>
15497
15498 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
15499 usage of m_classes_vec.
15500 (sem_item_optimizer::~sem_item_optimizer): Likewise.
15501 (sem_item_optimizer::get_group_by_hash): Likewise.
15502 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
15503 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
15504 (sem_item_optimizer::verify_classes): Likewise.
15505 (sem_item_optimizer::process_cong_reduction): Likewise.
15506 (sem_item_optimizer::dump_cong_classes): Likewise.
15507 (sem_item_optimizer::merge_classes): Likewise.
15508 * ipa-icf.h (congruence_class_hash): Rename from
15509 congruence_class_group_hash. Remove declaration of m_classes_vec.
15510
15511 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
15512
15513 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
15514 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
15515 * config.gcc: Add avx512vpopcntdqintrin.h.
15516 * config/i386/avx512vpopcntdqintrin.h: New.
15517 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
15518 * config/i386/i386-builtin-types.def: Add new types.
15519 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
15520 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
15521 __builtin_ia32_vpopcountq_v8di_mask): New.
15522 * config/i386/i386-c.c (ix86_target_macros_internal): Define
15523 __AVX512VPOPCNTDQ__.
15524 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
15525 (PTA_AVX512VPOPCNTDQ): Define.
15526 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
15527 TARGET_AVX512VPOPCNTDQ_P): Define.
15528 * config/i386/i386.opt: Add mavx512vpopcntdq.
15529 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
15530 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
15531
15532 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
15533
15534 PR middle-end/77484
15535 * predict.def (PRED_CALL): Set to 67.
15536
15537 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
15538
15539 * expr.c (store_field): In the bitfield case, if the value comes from
15540 a function call and is of an aggregate type returned in registers, do
15541 not modify the field mode; extract the value in all cases if the mode
15542 is BLKmode and the size is not larger than a word.
15543
15544 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
15545
15546 PR target/71017
15547 * config/i386/cpuid.h: Fix undefined behavior.
15548
15549 2017-01-04 Jeff Law <law@redhat.com>
15550
15551 PR tree-optimization/79007
15552 PR tree-optimization/67955
15553 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
15554 conservative for pt.null when flag_non_call_exceptions is on.
15555
15556 2017-01-09 Jakub Jelinek <jakub@redhat.com>
15557
15558 PR translation/79019
15559 PR translation/79020
15560 * params.def (PARAM_INLINE_MIN_SPEEDUP,
15561 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
15562 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
15563 in descriptions.
15564 * config/avr/avr.opt (maccumulate-args): Likewise.
15565 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
15566 * common.opt (freport-bug): Likewise.
15567 * cif-code.def (CIF_FINAL_ERROR): Likewise.
15568 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
15569 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
15570 translatable string.
15571 * config/i386/i386.c (function_value_32): Likewise.
15572 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
15573 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
15574 Likewise.
15575 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
15576 * common/config/msp430/msp430-common.c (msp430_handle_option):
15577 Likewise.
15578 * symtab.c (symtab_node::verify_base): Likewise.
15579 * opts.c (set_debug_level): Likewise.
15580 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
15581 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
15582 missing whitespace to translatable strings.
15583 * config/avr/avr.md (bswapsi2): Fix typo in comment.
15584 * config/sh/superh.h: Likewise.
15585 * config/i386/xopintrin.h: Likewise.
15586 * config/i386/znver1.md: Likewise.
15587 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
15588 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
15589 * double-int.h (struct double_int): Likewise.
15590 * double-int.c (div_and_round_double): Likewise.
15591 * wide-int.cc: Likewise.
15592 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
15593 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
15594 * cfgcleanup.c (crossjumps_occured): Renamed to ...
15595 (crossjumps_occurred): ... this.
15596 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
15597 Adjust all uses.
15598
15599 PR tree-optimization/78899
15600 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
15601 returning bool return struct loop *, NULL for failure and the new
15602 loop on success.
15603 (versionable_outer_loop_p): Don't version outer loop if it has
15604 dont_vectorized bit set.
15605 (tree_if_conversion): When versioning outer loop, ensure
15606 tree_if_conversion is performed also on the inner loop of the
15607 non-vectorizable outer loop copy.
15608 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
15609 LOOP_VECTORIZED in inner loop of the scalar outer loop and
15610 prevent vectorization of it.
15611 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
15612 the outer loop vectorization of the non-scalar version is attempted
15613 before vectorization of the inner loop in scalar version. If
15614 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
15615 vectorization of its inner loop.
15616 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
15617 has 2 inner loops, rename also on edges from bb whose single pred
15618 is outer_loop->header. Fix typo in function comment.
15619
15620 2017-01-09 Martin Sebor <msebor@redhat.com>
15621
15622 PR bootstrap/79033
15623 * asan.c (asan_emit_stack_protection): Increase local buffer size
15624 to avoid snprintf truncation warning.
15625
15626 2017-01-09 Andrew Pinski <apinski@cavium.com>
15627
15628 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
15629 to reference thunderx2t99 for the tuning structure
15630 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
15631 Rename to ...
15632 (thunderx2t99_extra_costs): This.
15633 * config/aarch64/aarch64-tune.md: Regenerate.
15634 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
15635 (vulcan_addrcost_table): This.
15636 (vulcan_regmove_cost): Rename to ...
15637 (thunderx2t99_regmove_cost): This.
15638 (vulcan_vector_cost): Rename to ...
15639 (thunderx2t99_vector_cost): this.
15640 (vulcan_branch_cost): Rename to ...
15641 (thunderx2t99_branch_cost): This.
15642 (vulcan_tunings): Rename to ...
15643 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
15644 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
15645
15646 2017-01-09 Martin Jambor <mjambor@suse.cz>
15647
15648 PR ipa/78365
15649 PR ipa/78599
15650 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
15651 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
15652 (propagate_vr_accross_jump_function): Use the above function for all
15653 value range computations for pass-through jump functions and type
15654 converasion from explicit value range values.
15655 (ipcp_propagate_stage): Do not attempt to deduce types of formal
15656 parameters from TYPE_ARG_TYPES.
15657 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
15658 (ipa_write_node_info): Stream type of the actual argument.
15659 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
15660
15661 2017-01-09 Martin Liska <mliska@suse.cz>
15662
15663 PR pch/78970
15664 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
15665 (lookup_compiler): Do not show error message with have_E.
15666
15667 2017-01-09 Jakub Jelinek <jakub@redhat.com>
15668
15669 PR tree-optimization/78938
15670 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
15671 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
15672 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
15673 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
15674 fixes.
15675
15676 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15677
15678 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
15679 is const0_rtx.
15680
15681 2017-01-09 Richard Biener <rguenther@suse.de>
15682
15683 PR tree-optimization/78997
15684 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
15685 name condition properly.
15686
15687 2017-01-09 Richard Biener <rguenther@suse.de>
15688
15689 PR debug/79000
15690 * dwarf2out.c (is_cxx): New overload with context.
15691 (is_naming_typedef_decl): Use it.
15692
15693 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
15694
15695 * invoke.texi (Option Summary): Correct spacing in option lists
15696 and add line breaks to fix over-long lines.
15697
15698 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
15699
15700 PR middle-end/17660
15701
15702 * extend.texi (Common Variable Attributes): Add xref to GCC
15703 Internals manual to explain mode attribute keywords.
15704
15705 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
15706
15707 PR other/16519
15708 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
15709 and Preprocessor Options.
15710 (Options for Linking): Document -pthread here....
15711 (RS/6000 and PowerPC Options): ...not here.
15712 (Solaris 2 Options): ...or here.
15713 * doc/cppopts.texi: Document -pthread.
15714
15715 2017-01-08 Martin Sebor <msebor@redhat.com>
15716
15717 PR middle-end/77708
15718 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
15719 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
15720 New member functions.
15721 (format_directive): Used them.
15722 (add_bytes): Same.
15723 (pass_sprintf_length::handle_gimple_call): Same.
15724 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
15725 to avoid truncation for any argument.
15726 (extract_affine_mul): Same.
15727 * tree.c (get_file_function_name): Same.
15728
15729 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
15730
15731 PR middle-end/77484
15732 * predict.def (PRED_INDIR_CALL): Set to 86.
15733
15734 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
15735
15736 PR preprocessor/54124
15737 * doc/cppopts.texi: Reformat -d subtable to list the full name
15738 of the options. Add cross-reference to the docs for the general
15739 compiler -d options.
15740 * doc/invoke.texi (Developer Options): Add cross-reference to the
15741 preprocessor-specific -d option documentation.
15742
15743 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
15744
15745 PR preprocessor/13498
15746 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
15747 redudant material, and reflect new command-line options.
15748 (System Headers): Likewise.
15749
15750 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
15751
15752 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
15753 -isystem, and -idirafter. Copy-edit.
15754 * doc/cppopts.texi: Copy-edit. Remove contradiction about
15755 default for -ftrack-macro-expansion. Delete obsolete and
15756 badly-formatted implementation details about -fdebug-cpp output.
15757 * doc/cppwarnopts.texi: Copy-edit.
15758
15759 2017-01-07 David Malcolm <dmalcolm@redhat.com>
15760
15761 PR c++/72803
15762 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
15763 that the transition from a max line width >= 1<<10 to narrower
15764 lines works correctly.
15765
15766 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
15767
15768 * doc/options.texi (PerFunction): New.
15769 * opt-functions.awk (switch_flags): Map both Optimization and
15770 PerFunction to CL_OPTIMIZATION.
15771 * opth-gen.awk: Test for PerFunction flag along with
15772 Optimization.
15773 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
15774 it only when the latter is present. Skip those that don't in
15775 the hash function generator.
15776 * common.opt (fvar-tracking): Mark as PerFunction instead of
15777 Optimization.
15778 (fvar-tracking-assignments): Likewise.
15779 (fvar-tracking-assignments-toggle): Likewise.
15780 (fvar-tracking-uninit): Likewise.
15781
15782 2017-01-07 Jakub Jelinek <jakub@redhat.com>
15783
15784 PR translation/79018
15785 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
15786 the and store.
15787
15788 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
15789
15790 PR target/57583
15791 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
15792 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
15793 TARGET_LONG_JUMP_TABLE_OFFSETS.
15794 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
15795 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
15796 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
15797 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
15798 * config/m68k/m68k.md (tablejump expander): Likewise.
15799 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
15800 TARGET_LONG_JUMP_TABLE_OFFSETS.
15801 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
15802 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
15803
15804 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
15805 David Holsgrove <david.holsgrove@xilinx.com>
15806
15807 * common/config/microblaze/microblaze-common.c
15808 (TARGET_EXCEPT_UNWIND_INFO): Remove.
15809 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
15810 New prototype.
15811 * config/microblaze/microblaze.c (microblaze_must_save_register)
15812 (microblaze_expand_epilogue, microblaze_return_addr): Handle
15813 calls_eh_return.
15814 (microblaze_eh_return): New function.
15815 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
15816 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
15817 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
15818 * config/microblaze/microblaze.md (eh_return): New pattern.
15819
15820 2017-01-06 Jakub Jelinek <jakub@redhat.com>
15821
15822 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
15823 GCC_DIAGNOSTIC_STRINGIFY): Define.
15824
15825 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
15826
15827 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
15828
15829 * config/arm/arm.md (<mcrr>): New.
15830 (<mrrc>): New.
15831 * config/arm/arm.c (arm_arch5te): New.
15832 (arm_option_override): Set arm_arch5te.
15833 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
15834 and mrrc2.
15835 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
15836 (arm_mcrr_qualifiers): ... this. New.
15837 (MRRC_QUALIFIERS): Define to...
15838 (arm_mrrc_qualifiers): ... this. New.
15839 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
15840 __arm_mrrc2): New.
15841 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
15842 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
15843 (MRRCI, mrrc, MRRC): New.
15844 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
15845 VUNSPEC_MRRC2): New.
15846
15847 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
15848
15849 * config/arm/arm.md (<mcr>): New.
15850 (<mrc>): New.
15851 * config/arm/arm.c (arm_coproc_builtin_available): Add
15852 support for mcr, mrc, mcr2 and mrc2.
15853 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
15854 (arm_mcr_qualifiers): ... this. New.
15855 (MRC_QUALIFIERS): Define to ...
15856 (arm_mrc_qualifiers): ... this. New.
15857 (MCR_QUALIFIERS): Define to ...
15858 (arm_mcr_qualifiers): ... this. New.
15859 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
15860 __arm_mrc2): New.
15861 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
15862 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
15863 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
15864 VUNSPEC_MRC2): New.
15865
15866 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
15867
15868 * config/arm/arm.md (*ldc): New.
15869 (*stc): New.
15870 (<ldc>): New.
15871 (<stc>): New.
15872 * config/arm/arm.c (arm_coproc_builtin_available): Add
15873 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
15874 (arm_coproc_ldc_stc_legitimate_address): New.
15875 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
15876 'qualifier_const_pointer'.
15877 (LDC_QUALIFIERS): Define to...
15878 (arm_ldc_qualifiers): ... this. New.
15879 (STC_QUALIFIERS): Define to...
15880 (arm_stc_qualifiers): ... this. New.
15881 * config/arm/arm-protos.h
15882 (arm_coproc_ldc_stc_legitimate_address): New.
15883 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
15884 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
15885 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
15886 stc2, stcl, stc2l): New.
15887 * config/arm/constraints.md (Uz): New.
15888 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
15889 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
15890 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
15891 VUNSPEC_STC2L): New.
15892
15893 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
15894
15895 * config/arm/arm.md (<cdp>): New.
15896 * config/arm/arm.c (neon_const_bounds): Rename this ...
15897 (arm_const_bounds): ... this.
15898 (arm_coproc_builtin_available): New.
15899 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
15900 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
15901 (CDP_QUALIFIERS): Define to...
15902 (arm_cdp_qualifiers): ... this. New.
15903 (void_UP): Define.
15904 (arm_expand_builtin_args): Add case for 6 arguments.
15905 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
15906 (arm_const_bounds): ... this.
15907 (arm_coproc_builtin_available): New.
15908 * config/arm/arm_acle.h (__arm_cdp): New.
15909 (__arm_cdp2): New.
15910 * config/arm/arm_acle_builtins.def (cdp): New.
15911 (cdp2): New.
15912 * config/arm/iterators.md (CDPI,CDP,cdp): New.
15913 * config/arm/neon.md: Rename all 'neon_const_bounds' to
15914 'arm_const_bounds'.
15915 * config/arm/types.md (coproc): New.
15916 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
15917 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
15918 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
15919 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
15920
15921 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
15922
15923 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
15924 (UBINOP_QUALIFIERS): New.
15925 (si_UP): Define.
15926 (acle_builtin_data): New. Change comment.
15927 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
15928 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
15929 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
15930 arm_acle_builtins.def.
15931 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
15932 (arm_init_acle_builtins): New.
15933 (CRC32_BUILTIN): Remove.
15934 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
15935 crc32cb, crc32ch and crc32cw.
15936 (arm_init_crc32_builtins): Remove.
15937 (arm_init_builtins): Use arm_init_acle_builtins rather
15938 than arm_init_crc32_builtins.
15939 (arm_expand_acle_builtin): New.
15940 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
15941 * config/arm/arm_acle_builtins.def: New.
15942
15943 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
15944
15945 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
15946 (arm_builtin_datum): ... this.
15947 (arm_init_neon_builtin): Rename to ...
15948 (arm_init_builtin): ... this. Add a new parameters PREFIX
15949 and USE_SIG_IN_NAME.
15950 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
15951 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
15952 'arm_builtin_datum'.
15953 (arm_init_vfp_builtins): Likewise.
15954 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
15955 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
15956 (arm_expand_neon_args): Rename to ...
15957 (arm_expand_builtin_args): ... this. Rename builtin_arg
15958 enum values and differentiate between ARG_BUILTIN_MEMORY
15959 and ARG_BUILTIN_NEON_MEMORY.
15960 (arm_expand_neon_builtin_1): Rename to ...
15961 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
15962 values, arm_expand_builtin_args and add bool parameter NEON.
15963 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
15964 (arm_expand_vfp_builtin): Likewise.
15965 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
15966
15967 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
15968
15969 PR middle-end/77484
15970 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
15971 * predict.c (tree_estimate_probability_bb): Reverse direction of
15972 polymorphic call predictor.
15973
15974 2017-01-06 David Malcolm <dmalcolm@redhat.com>
15975
15976 * passes.c (execute_one_pass): Split out pass-skipping logic into...
15977 (determine_pass_name_match): ...this new function and...
15978 (should_skip_pass_p): ...this new function.
15979
15980 2017-01-06 Nathan Sidwell <nathan@acm.org>
15981
15982 * ipa-visibility.c (function_and_variable_visibility): Reformat
15983 comments and long lines. Remove extrneous if.
15984 * symtab.c (symtab_node::make_decl_local): Fix code format.
15985 (symtab_node::set_section_for_node): Fix comment typo.
15986
15987 2017-01-06 Martin Liska <mliska@suse.cz>
15988
15989 PR bootstrap/79003
15990 * lra-constraints.c: Rename invariant to lra_invariant.
15991 * predict.c (set_even_probabilities): Initialize e to NULL.
15992
15993 2017-01-05 Martin Sebor <msebor@redhat.com>
15994
15995 PR tree-optimization/78910
15996 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
15997 (format_integer): Correct off-by-one error in the handling
15998 of precision with negative numbers in signed conversions..
15999
16000 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
16001
16002 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
16003
16004 2017-01-05 Jakub Jelinek <jakub@redhat.com>
16005
16006 PR tree-optimization/71016
16007 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
16008 factor_out_conditional_conversion. Formatting fix.
16009 (factor_out_conditional_conversion): Add cond_stmt argument.
16010 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
16011 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
16012 Formatting fix.
16013
16014 2017-01-05 David Malcolm <dmalcolm@redhat.com>
16015
16016 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
16017 read-rtl-function.o, and selftest-rtl.o.
16018 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
16019 (selftest::aarch64_test_loading_full_dump): New function.
16020 (selftest::aarch64_run_selftests): New function.
16021 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
16022 selftest::aarch64_run_selftests.
16023 * config/i386/i386.c
16024 (selftest::ix86_test_loading_dump_fragment_1): New function.
16025 (selftest::ix86_test_loading_call_insn): New function.
16026 (selftest::ix86_test_loading_full_dump): New function.
16027 (selftest::ix86_test_loading_unspec): New function.
16028 (selftest::ix86_run_selftests): Call the new functions.
16029 * emit-rtl.c (maybe_set_max_label_num): New function.
16030 * emit-rtl.h (maybe_set_max_label_num): New decl.
16031 * function.c (instantiate_decls): Guard call to
16032 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
16033 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
16034 "static".
16035 * gensupport.c (gen_reader::gen_reader): Pass "false"
16036 for new "compact" param of rtx_reader.
16037 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
16038 rather than an empty string for NULL strings.
16039 * read-md.c: Potentially include config.h rather than bconfig.h.
16040 Wrap include of errors.h with #ifdef GENERATOR_FILE.
16041 (have_error): New global, copied from errors.c.
16042 (md_reader::read_name): Rename to...
16043 (md_reader::read_name_1): ...this, adding "out_loc" param,
16044 and converting "missing name or number" to returning false, rather
16045 than failing.
16046 (md_reader::read_name): Reimplement in terms of read_name_1.
16047 (md_reader::read_name_or_nil): New function.
16048 (md_reader::read_string): Handle "(nil)" by returning NULL.
16049 (md_reader::md_reader): Add new param "compact".
16050 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
16051 (md_reader::read_file): New method.
16052 * read-md.h (md_reader::md_reader): Add new param "compact".
16053 (md_reader::read_file): New method.
16054 (md_reader::is_compact): New accessor.
16055 (md_reader::read_name): Convert return type from void to file_location.
16056 (md_reader::read_name_or_nil): New decl.
16057 (md_reader::read_name_1): New decl.
16058 (md_reader::m_compact): New field.
16059 (noop_reader::noop_reader): Pass "false" for new "compact" param
16060 of rtx_reader.
16061 (rtx_reader::rtx_reader): Add new "compact" param.
16062 (rtx_reader::read_rtx_operand): Make virtual and convert return
16063 type from void to rtx.
16064 (rtx_reader::read_until): New decl.
16065 (rtx_reader::handle_any_trailing_information): New virtual function.
16066 (rtx_reader::postprocess): New virtual function.
16067 (rtx_reader::finalize_string): New virtual function.
16068 (rtx_reader::m_in_call_function_usage): New field.
16069 (rtx_reader::m_reuse_rtx_by_id): New field.
16070 * read-rtl-function.c: New file.
16071 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
16072 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
16073 (selftest::verify_three_block_rtl_cfg): New decl.
16074 * read-rtl-function.h: New file.
16075 * read-rtl.c: Potentially include config.h rather than bconfig.h.
16076 For host, include function.h, memmodel.h, and emit-rtl.h.
16077 (one_time_initialization): New function.
16078 (struct compact_insn_name): New struct.
16079 (compact_insn_names): New array.
16080 (find_code): Handle insn codes in compact dumps.
16081 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
16082 (bind_subst_iter_and_attr): Likewise.
16083 (add_condition_to_string): Likewise.
16084 (add_condition_to_rtx): Likewise.
16085 (apply_attribute_uses): Likewise.
16086 (add_current_iterators): Likewise.
16087 (apply_iterators): Likewise.
16088 (initialize_iterators): Guard usage of apply_subst_iterator with
16089 #ifdef GENERATOR_FILE.
16090 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
16091 (md_reader::read_mapping): Likewise.
16092 (add_define_attr_for_define_subst): Likewise.
16093 (add_define_subst_attr): Likewise.
16094 (read_subst_mapping): Likewise.
16095 (check_code_iterator): Likewise.
16096 (rtx_reader::read_rtx): Likewise. Move one-time initialization
16097 logic to...
16098 (one_time_initialization): New function.
16099 (rtx_reader::read_until): New method.
16100 (read_flags): New function.
16101 (parse_reg_note_name): New function.
16102 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
16103 Handle reuse_rtx ids.
16104 Wrap iterator lookup within #ifdef GENERATOR_FILE.
16105 Add parsing support for RTL dumps, mirroring the special-cases in
16106 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
16107 values, and calling handle_any_trailing_information.
16108 (rtx_reader::read_rtx_operand): Convert return type from void
16109 to rtx, returning return_rtx. Handle case 'e'. Call
16110 finalize_string on XSTR and XTMPL fields.
16111 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
16112 "(nil)" values were omitted. Call the postprocess vfunc on the
16113 return_rtx.
16114 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
16115 class ctor. Initialize m_in_call_function_usage. Call
16116 one_time_initialization.
16117 * rtl-tests.c (selftest::test_uncond_jump): Call
16118 set_new_first_and_last_insn.
16119 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
16120 * selftest-rtl.c: New file.
16121 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
16122 (selftest::get_insn_by_uid): New decl.
16123 * selftest-run-tests.c (selftest::run_tests): Call
16124 read_rtl_function_c_tests.
16125 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
16126 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
16127 dumps.
16128
16129 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
16130
16131 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
16132 operands in a special way. Assert that pos+len <= mode precision.
16133
16134 2017-01-05 Jakub Jelinek <jakub@redhat.com>
16135
16136 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
16137 3 argument Alias with unlimited for the negative form.
16138 (fno-vect-cost-model): Removed.
16139
16140 2017-01-05 Martin Liska <mliska@suse.cz>
16141
16142 * hsa-gen.c (gen_hsa_divmod): New function.
16143 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
16144
16145 2017-01-05 Martin Liska <mliska@suse.cz>
16146
16147 PR pch/78970
16148 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
16149 header.
16150
16151 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16152
16153 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
16154 small constant length operands.
16155
16156 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16157
16158 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
16159 between loop iterations.
16160
16161 2017-01-05 Martin Liska <mliska@suse.cz>
16162
16163 PR sanitizer/78815
16164 * gimplify.c (gimplify_decl_expr): Compare to
16165 asan_poisoned_variables instread of checking flags.
16166 (gimplify_target_expr): Likewise.
16167 (gimplify_expr): Likewise.
16168 (gimplify_function_tree): Conditionally initialize
16169 asan_poisoned_variables.
16170
16171 2017-01-04 Jeff Law <law@redhat.com>
16172
16173 PR tree-optimizatin/78812
16174 * rtl.h (contains_mem_rtx_p): Prototype.
16175 * ifcvt.c (containts_mem_rtx_p): Move from here to...
16176 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
16177 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
16178 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
16179 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
16180
16181 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
16182
16183 * input.c (assert_char_at_range): Default-initialize actual_range.
16184
16185 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
16186
16187 * df-scan.c (df_ref_create_structure): Make regno unsigned,
16188 to match the caller.
16189
16190 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
16191
16192 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
16193 insns after final jump in test to emit dummy move.
16194
16195 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
16196
16197 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
16198 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
16199
16200 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
16201
16202 * multiple_target.c (create_dispatcher_calls): Init e_next.
16203 * tree-ssa-loop-split.c (split_loop): Init border.
16204 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
16205 scalar_type.
16206
16207 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
16208
16209 PR target/71977
16210 PR target/70568
16211 PR target/78823
16212 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
16213 (altivec_register_operand): Do not return true if the operand
16214 contains a SUBREG mixing SImode and SFmode.
16215 (vsx_register_operand): Likewise.
16216 (vsx_reg_sfsubreg_ok): New predicate.
16217 (vfloat_operand): Do not return true if the operand contains a
16218 SUBREG mixing SImode and SFmode.
16219 (vint_operand): Likewise.
16220 (vlogical_operand): Likewise.
16221 (gpc_reg_operand): Likewise.
16222 (int_reg_operand): Likewise.
16223 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
16224 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
16225 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
16226 SImode and SFmode.
16227 (rs6000_emit_move_si_sf_subreg): New helper function.
16228 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
16229 fixup SUBREGs involving SImode and SFmode.
16230 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
16231 numbers for the new peephole2 optimization.
16232 (peephole2 for SFmode unions): New peephole2 to optimize cases in
16233 the GLIBC math library that do AND/IOR/XOR operations on single
16234 precision floating point.
16235 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
16236 target macros to say whether we need to avoid SUBREGs mixing
16237 SImode and SFmode.
16238 (TARGET_ALLOW_SF_SUBREG): Likewise.
16239 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
16240 (UNSPEC_SI_FROM_SF): Likewise.
16241 (iorxor): Change spacing.
16242 (and_ior_xor): New iterator for AND, IOR, and XOR.
16243 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
16244 (movdi_from_sf_zero_ext): Likewise.
16245 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
16246 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
16247 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
16248 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
16249 (fms<mode>4): Likewise.
16250 (fnma<mode>4): Likewise.
16251 (fnms<mode>4): Likewise.
16252 (nfma<mode>4): Likewise.
16253 (nfms<mode>4): Likewise.
16254
16255 2017-01-04 Marek Polacek <polacek@redhat.com>
16256
16257 PR c++/64767
16258 * doc/invoke.texi: Document -Wpointer-compare.
16259
16260 2017-01-04 Jakub Jelinek <jakub@redhat.com>
16261
16262 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
16263 RejectNegative.
16264
16265 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
16266 descriptions for -gdwarf-5 and emit them as uleb128 instead of
16267 2-byte data.
16268
16269 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
16270
16271 PR target/78056
16272 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
16273 documentation of the powerpc_popcntb_ok attribute.
16274 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16275 code to issue warning messages if a requested CPU configuration is
16276 not supported by the binary (assembler and loader) toolchain.
16277 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
16278 made to define a built-in function that has been disabled.
16279 (paired_init_builtins): Add assertion to prevent ICE if attempt is
16280 made to define a built-in function that has been disabled.
16281 (altivec_init_builtins): Add comment explaining why definition
16282 of the DST built-in functions is not preceded by an assertion
16283 check. Add assertions to prevent ICE if attempts are made to
16284 define an altivec predicate or an abs* built-in function that has
16285 been disabled.
16286 (htm_init_builtins): Add comment explaining why definition of the
16287 htm built-in functions is not preceded by an assertion check.
16288
16289 2017-01-04 Jeff Law <law@redhat.com>
16290
16291 PR tree-optimizatin/67955
16292 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
16293 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
16294 the points-to solution does not include pt_null. Use DECL_PT_UID
16295 unconditionally.
16296
16297 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
16298
16299 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
16300 Use gen_int_mode instead of gen_lopwart for const_int operands.
16301
16302 2017-01-04 Jakub Jelinek <jakub@redhat.com>
16303
16304 PR tree-optimization/71563
16305 * match.pd: Simplify X << Y into X if Y is known to be 0 or
16306 out of range value - has low bits known to be zero.
16307
16308 2017-01-04 Alan Modra <amodra@gmail.com>
16309
16310 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
16311 * configure: Regenerate.
16312 * config.in: Regenerate.
16313
16314 2017-01-04 Jakub Jelinek <jakub@redhat.com>
16315
16316 PR bootstrap/77569
16317 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
16318 a substring of the message, but strcmp with the whole message. Ifdef
16319 ENABLE_NLS, translate the message first using dgettext.
16320
16321 2017-01-03 Jeff Law <law@redhat.com>
16322
16323 PR tree-optimizatin/78856
16324 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
16325 (mark_threaded_blocks): Remove code to truncate thread paths that
16326 cross multiple loop headers. Instead invalidate the cached loop
16327 iteration information and handle case of a thread path walking
16328 into an irreducible region.
16329
16330 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16331
16332 PR target/78900
16333 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
16334 assertions. Add support for doing the signbit if the IEEE 128-bit
16335 floating point value is in a GPR.
16336 * config/rs6000/rs6000.md (Fsignbit): Delete.
16337 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
16338 Update the length attribute if the value is in a GPR.
16339 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
16340 the sign or zero extension instruction, since the value is always 0/1.
16341 (signbit<mode>2_dm2): Delete using <Fsignbit>.
16342
16343 PR target/78953
16344 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
16345 extracting SImode to a GPR register so that we can generate a
16346 store, limit the vector to be in a traditional Altivec register
16347 for the vextuwrx instruction.
16348
16349 2017-01-03 Ian Lance Taylor <iant@google.com>
16350
16351 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
16352
16353 2017-01-03 Martin Sebor <msebor@redhat.com>
16354
16355 PR tree-optimization/78696
16356 * gimple-ssa-sprintf.c (format_floating): Correct handling of
16357 precision. Use MPFR for %f for greater fidelity. Correct handling
16358 of %g.
16359 (pass_sprintf_length::compute_format_length): Set width and precision
16360 specified by asrerisk to void_node for vararg functions.
16361 (try_substitute_return_value): Adjust dump output.
16362
16363 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
16364
16365 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
16366
16367 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
16368
16369 * doc/invoke.texi (SPARC options): Document -mlra as the default.
16370 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
16371 -mlra/-mno-lra was passed to the compiler.
16372
16373 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
16374
16375 PR rtl-optimization/65618
16376 * emit-rtl.c (try_split): Move initialization of "before" and
16377 "after" to just before the call to emit_insn_after_setloc.
16378
16379 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
16380
16381 * doc/md.texi (Standard Names): Remove reference to Java frontend.
16382
16383 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
16384
16385 * dwarf2out.c (gen_enumeration_type_die): When
16386 -gno-strict-dwarf, add a DW_AT_encoding attribute.
16387
16388 2017-01-03 Jakub Jelinek <jakub@redhat.com>
16389
16390 PR tree-optimization/78965
16391 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
16392 Change first argument from const call_info & to call_info &. For %n
16393 set info.nowrite to false.
16394
16395 PR middle-end/78901
16396 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
16397 possibly throwing calls.
16398
16399 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
16400 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
16401 and fns handling, rather than in a separate case SSA_NAME.
16402
16403 2017-01-02 Jeff Law <law@redhat.com>
16404
16405 * config/darwin-driver.c (darwin_driver_init): Const-correctness
16406 fixes for first_period and second_period variables.
16407
16408 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
16409
16410 PR target/78967
16411 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
16412 (*insvqi_1): New insn pattern.
16413 (*insvqi_1_mem_rex64): Ditto.
16414 (*insvqi_2): Ditto.
16415 (*insvqi_3): Rename from *insvqi.
16416
16417 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
16418
16419 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
16420
16421 * doc/cfg.texi (Edges): Remove reference to Java.
16422 (Maintaining the CFG): Ditto.
16423
16424 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
16425
16426 PR middle-end/77674
16427 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
16428 transparent aliases.
16429
16430 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
16431
16432 PR middle-end/77484
16433 * predict.def (PRED_CALL): Update hitrate.
16434 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
16435 * predict.c (tree_estimate_probability_bb): Split CALL predictor
16436 into direct/indirect/polymorphic variants.
16437
16438 2017-01-01 Jakub Jelinek <jakub@redhat.com>
16439
16440 Update copyright years.
16441
16442 * gcc.c (process_command): Update copyright notice dates.
16443 * gcov-dump.c (print_version): Ditto.
16444 * gcov.c (print_version): Ditto.
16445 * gcov-tool.c (print_version): Ditto.
16446 * gengtype.c (create_file): Ditto.
16447 * doc/cpp.texi: Bump @copying's copyright year.
16448 * doc/cppinternals.texi: Ditto.
16449 * doc/gcc.texi: Ditto.
16450 * doc/gccint.texi: Ditto.
16451 * doc/gcov.texi: Ditto.
16452 * doc/install.texi: Ditto.
16453 * doc/invoke.texi: Ditto.
16454 \f
16455 Copyright (C) 2017 Free Software Foundation, Inc.
16456
16457 Copying and distribution of this file, with or without modification,
16458 are permitted in any medium without royalty provided the copyright
16459 notice and this notice are preserved.