* tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
[gcc.git] / gcc / ChangeLog
1 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
2
3 * tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
4
5 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
6
7 * tree-cfgcleanup.c (want_merge_blocks_p): New function.
8 (cleanup_tree_cfg_bb): Use it.
9 * profile-count.h (profile_count::of_for_merging, profile_count::merge):
10 New functions.
11 * tree-cfg.c (gimple_merge_blocks): Use profile_count::merge.
12
13 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
14
15 PR bootstrap/81285
16 * loop-doloop.c (add_test): Update profile.
17
18 2017-07-03 Martin Liska <mliska@suse.cz>
19
20 PR sanitize/81040
21 * sanopt.c (rewrite_usage_of_param): New function.
22 (sanitize_rewrite_addressable_params): Likewise.
23 (pass_sanopt::execute): Call rewrite_usage_of_param.
24
25 2017-07-03 Richard Biener <rguenther@suse.de>
26
27 * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
28 back to using VIEW_CONVERT_EXPR.
29
30 2017-07-03 Martin Liska <mliska@suse.cz>
31
32 PR other/78366
33 * doc/extend.texi: Document when a resolver function is
34 generated for target_clones.
35
36 2017-07-03 Martin Liska <mliska@suse.cz>
37
38 * asan.c (asan_emit_stack_protection): Unpoison just red zones
39 and shadow memory of auto variables which are subject of
40 use-after-scope sanitization.
41 (asan_expand_mark_ifn): Add do set only when is_poison.
42
43 2016-07-03 Richard Biener <rguenther@suse.de>
44
45 * tree-vect-loop.c (vect_analyze_loop_operations): Also analyze
46 reduction PHIs.
47 (vect_force_simple_reduction): Record reduction def -> phi mapping.
48 (vectorizable_reduction): Perform reduction PHI creation when
49 visiting a reduction PHI and adjust and simplify code generation
50 phase of the reduction op. Cache dts, use fold_binary, not fold_build2.
51 (vect_transform_loop): Visit reduction PHIs.
52 * tree-vect-slp.c (vect_get_and_check_slp_defs): Record reduction
53 defs into the SLP tree.
54 (vect_build_slp_tree): Reduction defs terminate the recursion.
55 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Allow lookup
56 of reduction defs.
57 (vect_get_vec_defs_for_stmt_copy): Export.
58 (vect_get_vec_defs): Likewise.
59 * tree-vectorizer.h (struct _stmt_vec_info): Amend reduc_def
60 purpose.
61 (vect_get_vec_defs_for_stmt_copy): Declare.
62 (vect_get_vec_defs): Likewise.
63
64 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
65
66 * tree-data-ref.c (dr_analyze_innermost): Replace the "nest"
67 parameter with a "loop" parameter and use it instead of the
68 loop containing DR_STMT. Don't check simple_iv when doing
69 BB analysis. Describe the two analysis modes in the comment.
70
71 2017-07-03 Tom de Vries <tom@codesourcery.com>
72
73 PR tree-optimization/69468
74 * tree-ssa-tail-merge.c (ignore_edge_flags): New constant.
75 (find_same_succ_bb): Handle ignore_edge_flags.
76
77 2017-07-03 Tom de Vries <tom@codesourcery.com>
78
79 PR tree-optimization/81192
80 * tree-ssa-tail-merge.c (same_succ_hash): Use bb->loop_father->num in
81 hash.
82 (same_succ::equal): Don't find bbs to be equal if bb->loop_father
83 differs.
84 (find_same_succ_bb): Remove obsolete test on bb->loop_father->latch.
85
86 2017-07-03 Tom de Vries <tom@codesourcery.com>
87
88 PR tree-optimization/81192
89 * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
90 BB_SAME_SUCC (bb) == NULL.
91
92 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
93
94 * cfgrtl.c (rtl_verify_edges): Enable checking of profile_probability
95 consistency.
96
97 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
98
99 * dumpfile.c: Include profile-count.h
100 * tree-cfg.c (gimple_duplicate_sese_tail): Drop UNUSED attributes; update
101 profile.
102 (insert_cond_bb): Update profile.
103 * tree-cfg.h (insert_cond_bb): Update prototype.
104 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Update.
105 * tree-dump.c: Do not include tree-cfg.
106
107 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
108
109 * bb-reorder.c (fix_up_crossing_landing_pad): Update profile.
110
111 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
112
113 * expect.c (dw2_build_landing_pads): Update profile of the landing pad
114 bb.
115
116 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
117
118 * tree-complex.c (expand_complex_div_wide): update profile.
119
120 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
121 Alan Hayward <alan.hayward@arm.com>
122 David Sherwood <david.sherwood@arm.com>
123
124 * Makefile.in (MACHMODE_H): Remove insn-modes.h
125 (CORETYPES_H): New define.
126 (MOSTLYCLEANFILES): Add insn-modes-inline.h.
127 (insn-modes-inline.h, s-modes-inline-h): New rules.
128 (generated_files): Add insn-modes-inline.h.
129 (RTL_BASE_H, TREE_CORE_H): Use CORETYPES_H instead of coretypes.h.
130 (build/gensupport.o, build/ggc-none.o, build/print-rtl.o): Likewise.
131 (build/read-md.o, build/read-rtl.o, build/rtl.o): Likewise.
132 (build/vec.o, build/hash-table.o, build/inchash.o): Likewise.
133 (build/gencondmd.o, build/genattr.o, build/genattr-common.o): Likewise.
134 (build/genattrtab.o, build/genautomata.o, build/gencheck.o): Likewise.
135 (build/gencodes.o, build/genconditions.o): Likewise.
136 (build/genconfig.o, build/genconstants.o, build/genemit.o): Likewise.
137 (build/genenums.o, build/genextract.o, build/genflags.o): Likewise.
138 (build/gentarget-def.o, build/genmddeps.o, build/genopinit.o)
139 (build/genoutput.o, build/genpeep.o, build/genpreds.o): Likewise.
140 (build/genrecog.o, build/genmddump.o, build/genmatch.o): Likewise.
141 (build/gencfn-macros.o, build/gcov-iov.o): Likewise.
142 * coretypes.h: Include everything up to real.h for generators.
143 Include insn-modes.h first. Include wide-int-print.h after
144 wide-int.h. Include insn-modes-inline.h and then machmode.h.
145 * machmode.h: Don't include insn-modes.h here.
146 * function-tests.c: Remove includes of signop.h, machmode.h,
147 double-int.h and wide-int.h.
148 * rtl.h: Likewise.
149 * gcc-rich-location.c: Remove includes of machmode.h, double-int.h
150 and wide-int.h.
151 * optc-save-gen.awk: Likewise.
152 * gencheck.c (BITS_PER_UNIT): Delete dummy definition.
153 * godump.c: Remove include of wide-int-print.h.
154 * pretty-print.h: Likewise.
155 * wide-int-print.cc: Likewise.
156 * wide-int.cc: Likewise.
157 * hash-map-tests.c: Remove include of signop.h.
158 * hash-set-tests.c: Likewise.
159 * rtl-tests.c: Likewise.
160 * mkconfig.sh: Remove include of machmode.h.
161 * genmodes.c (emit_insn_modes_h): Split emission of inline functions
162 into...
163 (emit_insn_modes_inline_h): ...this new function. Emit the code
164 into an insn-modes-inline.h header file, adding appropriate
165 include guards and end comments.
166 (emit_insn_modes_c_header): Remove include of machmode.h.
167 (emit_min_insn_modes_c_header): Include coretypes.h rather than
168 machmode.h.
169 (main): Handle -i flag and call emit_insn_modes_inline_h when
170 it is passed.
171
172 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
173
174 * tree-ssa-strlen.c (strinfo): Rename the length field to
175 nonzero_chars. Add a full_string_p field.
176 (compare_nonzero_chars, zero_length_string_p): New functions.
177 (get_addr_stridx): Add an offset_out parameter.
178 Use compare_nonzero_chars.
179 (get_stridx): Update accordingly. Use compare_nonzero_chars.
180 (new_strinfo): Update after above changes to strinfo.
181 (set_endptr_and_length): Set full_string_p.
182 (get_string_length): Update after above changes to strinfo.
183 (unshare_strinfo): Update call to new_strinfo.
184 (maybe_invalidate): Likewise.
185 (get_stridx_plus_constant): Change off to unsigned HOST_WIDE_INT.
186 Use compare_nonzero_chars and zero_string_p. Treat nonzero_chars
187 as a uhwi instead of an shwi. Update after above changes to
188 strinfo and new_strinfo.
189 (zero_length_string): Assert that chainsi contains full strings.
190 Use zero_length_string_p. Update call to new_strinfo.
191 (adjust_related_strinfos): Update after above changes to strinfo.
192 Copy full_string_p from origsi.
193 (adjust_last_stmt): Use zero_length_string_p.
194 (handle_builtin_strlen): Update after above changes to strinfo and
195 new_strinfo. Install the lhs as the string length if the previous
196 entry didn't describe a full string.
197 (handle_builtin_strchr): Update after above changes to strinfo
198 and new_strinfo.
199 (handle_builtin_strcpy): Likewise.
200 (handle_builtin_strcat): Likewise.
201 (handle_builtin_malloc): Likewise.
202 (handle_pointer_plus): Likewise.
203 (handle_builtin_memcpy): Likewise. Track nonzero characters
204 that aren't necessarily followed by a nul terminator.
205 (handle_char_store): Likewise.
206
207 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
208
209 PR tree-optimization/80769
210 * tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
211 for malloc and calloc. Document the new invariant that all related
212 strinfos have delayed lengths or none do.
213 (verify_related_strinfos): Move earlier in file.
214 (set_endptr_and_length): New function, split out from...
215 (get_string_length): ...here. Also set the lengths of related
216 strinfos.
217 (zero_length_string): Assert that chainsi has known (rather than
218 delayed) lengths.
219 (adjust_related_strinfos): Likewise.
220
221 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
222
223 PR tree-optimization/81136
224 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Only
225 assert that two references with the same misalignment have the same
226 compile-time misalignment if those compile-time misalignments
227 are known.
228
229 2017-07-01 Andi Kleen <ak@linux.intel.com>
230
231 * print-tree.c (print_node): Print all attributes.
232
233 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
234
235 * cfg.c (scale_bbs_frequencies): New function.
236 * cfg.h (scale_bbs_frequencies): Declare it.
237 * cfgloopanal.c (single_likely_exit): Cleanup.
238 * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability
239 as parameter.
240 (scale_loop_profile): Likewise.
241 (loop_version): Likewise.
242 (create_empty_loop_on_edge): Update.
243 * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile,
244 scale_loop_frequencies, scale_loop_profile, loopify,
245 loop_version): Update prototypes.
246 * modulo-sched.c (sms_schedule): Update.
247 * predict.c (unlikely_executed_edge_p): Also check probability.
248 (probably_never_executed_edge_p): Fix typo.
249 * tree-if-conv.c (version_loop_for_if_conversion): Update.
250 * tree-parloops.c (gen_parallel_loop): Update.
251 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update.
252 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
253 * tree-ssa-loop-split.c (split_loop): Update.
254 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
255 * tree-vect-loop-manip.c (vect_do_peeling): Update.
256 (vect_loop_versioning): Update.
257 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
258
259 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
260
261 * trans-mem.c (split_bb_make_tm_edge): Update profile.
262
263 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
264
265 * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
266 to keep profile consistent.
267
268 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
269
270 * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
271 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
272 * profile-count.h (max_safe_multiplier): Make unsigned.
273 (profile_count::guessed_zero): New.
274
275 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
276
277 * bb-reorder.c (fix_up_crossing_landing_pad,
278 fix_crossing_conditional_branches): Use make_single_succ_edge
279 to keep profile consistent.
280
281 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
282
283 * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
284 to update profile.
285
286 2017-07-01 Jakub Jelinek <jakub@redhat.com>
287
288 PR sanitizer/81262
289 * bb-reorder.c (fix_up_fall_thru_edges): Move variable declarations to
290 the right scopes, make sure cond_jump isn't preserved between multiple
291 iterations. Search for fallthru edge whenever there are 3+ edges and
292 use find_fallthru_edge for it.
293
294 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
295
296 Patch by Alexander Monakov <amonakov@ispras.ru>
297 * sel-sched-ir.c (compute_succs_info): Handle uninitialized
298 probabilities consistently.
299
300 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
301
302 * pa.c (pa_expand_compare_and_swap_loop): Update call of
303 emit_cmp_and_jump_insns.
304
305 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
306
307 PR ipa/81261
308 * tree-inline.c (expand_call_inline): Combine profile statuses.
309
310 2017-06-30 Andrew Pinski <apinski@cavium.com>
311
312 * tree-if-conv.c (predicate_scalar_phi): Update new_stmt if
313 fold_stmt returned true.
314
315 2017-06-30 Nathan Sidwell <nathan@acm.org>
316
317 * ggc.h (empty_string): Delete.
318 * cfgexpand.c (expand_asm_stmt): Use plain "".
319 * optabs.c (expand_asm_memory_barrier): Likewise.
320 * stringpool.c (empty_string): Delete.
321 (digit_vector, digit_string): Delete.
322 (ggc_alloc_string): Use plain "", don't optimize single digit
323 strings. Use ggc_alloc_atomic.
324
325 2017-06-30 Richard Earnshaw <rearnsha@arm.com>
326
327 * rtlanal.c (insn_rtx_cost): If a parallel contains exactly one
328 comparison set and one other set, use the cost of the non-comparison
329 set.
330
331 2017-06-30 Nathan Sidwell <nathan@acm.org>
332
333 * ggc.h: Replace all 'static inline' with plain 'inline'. Fix
334 some formatting.
335
336 2017-06-30 Peter Bergner <bergner@vnet.ibm.com>
337
338 * tree-cfg.c (group_case_labels_stmt): Merge scanning and compressing
339 loops. Remove now unneeded calls to gimple_switch_set_label() that
340 just set removed labels to NULL_TREE.
341
342 2017-06-30 Aldy Hernandez <aldyh@redhat.com>
343
344 * tree-ssanames.c (set_range_info_raw): Abstract from ...
345 (set_range_info): ...here. Only call set_range_info_raw if domain
346 is useful.
347 (set_nonzero_bits): Call set_range_info_raw.
348 * tree-ssanames.h (set_range_info_raw): New.
349
350 2017-06-30 Jakub Jelinek <jakub@redhat.com>
351
352 PR target/81225
353 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For V8FI,
354 V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
355 of nonimmediate_operand and <store_mask_constraint> instead of m
356 for the input operand. For V8FI iterator, always split if input
357 is a MEM. For V16FI and V8SF_256 iterators, don't test if both
358 operands are MEM if <mask_applied>. For VI4F_256 iterator, use
359 <store_mask_predicate> instead of register_operand and
360 <store_mask_constraint> instead of v for the input operand. Make
361 sure both operands aren't MEMs for if not <mask_applied>.
362
363 2017-06-30 Sylvestre Ledru <sylvestre@debian.org>
364
365 * lto-wrapper.c (copy_file) Close both file descriptors before
366 exiting normally.
367
368 2017-06-30 Martin Liska <mliska@suse.cz>
369
370 PR ipa/81214
371 * multiple_target.c (create_dispatcher_calls): Make ifunc
372 also for function that don't have calls or are not referenced.
373
374 2017-06-30 Richard Biener <rguenther@suse.de>
375
376 * tree-vect-slp.c (vect_slp_analyze_node_operations): Only
377 analyze the first scalar stmt. Move vector type computation
378 for the BB case here from ...
379 * tree-vect-stmts.c (vect_analyze_stmt): ... here. Guard
380 live operation processing in the SLP case properly.
381
382 2017-06-30 Richard Biener <rguenther@suse.de>
383
384 * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
385
386 2017-06-30 Martin Liska <mliska@suse.cz>
387
388 PR sanitizer/81021
389 * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
390 before BUILT_IN_UNWIND_RESUME when ASAN is used.
391
392 2017-06-30 Yvan Roux <yvan.roux@linaro.org>
393
394 * doc/invoke.texi (AArch64): Add missing options and remove redundant
395 ones.
396
397 2017-06-30 Richard Biener <rguenther@suse.de>
398
399 PR tree-optimization/81249
400 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
401 condition reduction result to original scalar type.
402
403 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
404
405 * profile-count.h (enum profile_quality): Fix typos and whitespace
406 issues.
407
408 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
409
410 * config/s390/s390.c (s390_expand_setmem): Adjust to the new data
411 type for branch probabilities.
412
413 2017-06-29 Julian Brown <julian@codesourcery.com>
414 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
415
416 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
417 * config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
418 (thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
419 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
420
421 2017-06-29 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
422
423 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
424 check for CC usage into AARCH64_FUSE_CMP_BRANCH.
425 * config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
426 CC usage from generic code to here.
427 * sched-deps.c (sched_macro_fuse_insns): Move the condition for
428 CC usage into the target macros.
429
430 2017-06-29 Maya Rashish <coypu@sdf.org>
431
432 * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
433 objects.
434
435 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
436
437 * arm/arm-builtins.c: Include profile-count.h
438 * except.c (sjlj_emit_function_enter): Use
439 profile_probability::unlikely.
440
441 2017-06-29 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
442
443 * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
444 and tocrel_offset be pointer args rather than implicitly using
445 static versions.
446 (legitimate_constant_pool_address_p, rs6000_emit_move,
447 const_load_sequence_p, adjust_vperm): Add local tocrel_base and
448 tocrel_offset and use in toc_relative_expr_p call.
449 (print_operand, print_operand_address): Use static tocrel_base_oac
450 and tocrel_offset_oac.
451 (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
452 tocrel_offset_oac.
453
454 2017-06-29 Maya Rashish <coypu@sdf.org>
455
456 * config/vax/builtins.md (ffssi2_internal): Correct constraint.
457
458 2017-06-29 Eric Botcazou <ebotcazou@adacore.com>
459
460 * expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
461 objects, take into account only the alignment of 'op0' and 'mode1' if
462 'op0' is a MEM.
463
464 2017-06-29 Steve Ellcey <sellcey@cavium.com>
465
466 * ccmp.c (ccmp_tree_comparison_p): New function.
467 (ccmp_candidate_p): Update to use above function.
468 (get_compare_parts): New function.
469 (expand_ccmp_next): Update to use new functions.
470 (expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
471 new functions.
472 (expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
473 take mode as argument.
474 * ccmp.h (expand_ccmp_expr): Add mode as argument.
475 * expr.c (expand_expr_real_1): Pass mode as argument.
476
477 2017-06-29 Segher Boessenkool <segher@kernel.crashing.org>
478
479 * combine.c (combine_instructions): Print insns to dump_file, together
480 with their costs.
481
482 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
483
484 * asan.c (asan_emit_stack_protection): Update.
485 (create_cond_insert_point): Update.
486 * auto-profile.c (afdo_propagate_circuit): Update.
487 * basic-block.h (struct edge_def): Turn probability to
488 profile_probability.
489 (EDGE_FREQUENCY): Update.
490 * bb-reorder.c (find_traces_1_round): Update.
491 (better_edge_p): Update.
492 (sanitize_hot_paths): Update.
493 * cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
494 (make_single_succ_edge): Update.
495 (check_bb_profile): Update.
496 (dump_edge_info): Update.
497 (update_bb_profile_for_threading): Update.
498 * cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
499 probabilitycount to 0.
500 * cfgbuild.c (compute_outgoing_frequencies): Update.
501 * cfgcleanup.c (try_forward_edges): Update.
502 (outgoing_edges_match): Update.
503 (try_crossjump_to_edge): Update.
504 * cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
505 (expand_gimple_tailcall): Update.
506 (construct_init_block): Use make_single_succ_edge.
507 (construct_exit_block): Use make_single_succ_edge.
508 * cfghooks.c (verify_flow_info): Update.
509 (redirect_edge_succ_nodup): Update.
510 (split_edge): Update.
511 (account_profile_record): Update.
512 * cfgloopanal.c (single_likely_exit): Update.
513 * cfgloopmanip.c (scale_loop_profile): Update.
514 (set_zero_probability): Remove.
515 (duplicate_loop_to_header_edge): Update.
516 * cfgloopmanip.h (loop_version): Update prototype.
517 * cfgrtl.c (try_redirect_by_replacing_jump): Update.
518 (force_nonfallthru_and_redirect): Update.
519 (update_br_prob_note): Update.
520 (rtl_verify_edges): Update.
521 (purge_dead_edges): Update.
522 (rtl_lv_add_condition_to_bb): Update.
523 * cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
524 * cgraphunit.c (init_lowered_empty_function): Update.
525 (cgraph_node::expand_thunk): Update.
526 * cilk-common.c: Include profile-count.h
527 * dojump.c (inv): Remove.
528 (jumpifnot): Update.
529 (jumpifnot_1): Update.
530 (do_jump_1): Update.
531 (do_jump): Update.
532 (do_jump_by_parts_greater_rtx): Update.
533 (do_compare_rtx_and_jump): Update.
534 * dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
535 do_jump_1. do_compare_rtx_and_jump): Update prototype.
536 * dwarf2cfi.c: Include profile-count.h
537 * except.c (dw2_build_landing_pads): Use make_single_succ_edge.
538 (sjlj_emit_dispatch_table): Likewise.
539 * explow.c: Include profile-count.h
540 * expmed.c (emit_store_flag_force): Update.
541 (do_cmp_and_jump): Update.
542 * expr.c (compare_by_pieces_d::generate): Update.
543 (compare_by_pieces_d::finish_mode): Update.
544 (emit_block_move_via_loop): Update.
545 (store_expr_with_bounds): Update.
546 (store_constructor): Update.
547 (expand_expr_real_2): Update.
548 (expand_expr_real_1): Update.
549 * expr.h (try_casesi, try_tablejump): Update prototypes.
550 * gimple-pretty-print.c (dump_probability): Update.
551 (dump_profile): New.
552 (dump_gimple_label): Update.
553 (dump_gimple_bb_header): Update.
554 * graph.c (draw_cfg_node_succ_edges): Update.
555 * hsa-gen.c (convert_switch_statements): Update.
556 * ifcvt.c (cheap_bb_rtx_cost_p): Update.
557 (find_if_case_1): Update.
558 (find_if_case_2): Update.
559 * internal-fn.c (expand_arith_overflow_result_store): Update.
560 (expand_addsub_overflow): Update.
561 (expand_neg_overflow): Update.
562 (expand_mul_overflow): Update.
563 (expand_vector_ubsan_overflow): Update.
564 * ipa-cp.c (good_cloning_opportunity_p): Update.
565 * ipa-split.c (split_function): Use make_single_succ_edge.
566 * ipa-utils.c (ipa_merge_profiles): Update.
567 * loop-doloop.c (add_test): Update.
568 (doloop_modify): Update.
569 * loop-unroll.c (compare_and_jump_seq): Update.
570 (unroll_loop_runtime_iterations): Update.
571 * lra-constraints.c (lra_inheritance): Update.
572 * lto-streamer-in.c (input_cfg): Update.
573 * lto-streamer-out.c (output_cfg): Update.
574 * mcf.c (adjust_cfg_counts): Update.
575 * modulo-sched.c (sms_schedule): Update.
576 * omp-expand.c (expand_omp_for_init_counts): Update.
577 (extract_omp_for_update_vars): Update.
578 (expand_omp_ordered_sink): Update.
579 (expand_omp_for_ordered_loops): Update.
580 (expand_omp_for_generic): Update.
581 (expand_omp_for_static_nochunk): Update.
582 (expand_omp_for_static_chunk): Update.
583 (expand_cilk_for): Update.
584 (expand_omp_simd): Update.
585 (expand_omp_taskloop_for_outer): Update.
586 (expand_omp_taskloop_for_inner): Update.
587 * omp-simd-clone.c (simd_clone_adjust): Update.
588 * optabs.c (expand_doubleword_shift): Update.
589 (expand_abs): Update.
590 (emit_cmp_and_jump_insn_1): Update.
591 (expand_compare_and_swap_loop): Update.
592 * optabs.h (emit_cmp_and_jump_insns): Update prototype.
593 * predict.c (predictable_edge_p): Update.
594 (edge_probability_reliable_p): Update.
595 (set_even_probabilities): Update.
596 (combine_predictions_for_insn): Update.
597 (combine_predictions_for_bb): Update.
598 (propagate_freq): Update.
599 (estimate_bb_frequencies): Update.
600 (force_edge_cold): Update.
601 * profile-count.c (profile_count::dump): Add missing space into dump.
602 (profile_count::debug): Add newline.
603 (profile_count::differs_from_p): Explicitly convert to unsigned.
604 (profile_count::stream_in): Update.
605 (profile_probability::dump): New member function.
606 (profile_probability::debug): New member function.
607 (profile_probability::differs_from_p): New member function.
608 (profile_probability::differs_lot_from_p): New member function.
609 (profile_probability::stream_in): New member function.
610 (profile_probability::stream_out): New member function.
611 * profile-count.h (profile_count_quality): Rename to ...
612 (profile_quality): ... this one.
613 (profile_probability): New.
614 (profile_count): Update.
615 * profile.c (compute_branch_probabilities): Update.
616 * recog.c (peep2_attempt): Update.
617 * sched-ebb.c (schedule_ebbs): Update.
618 * sched-rgn.c (find_single_block_region): Update.
619 (compute_dom_prob_ps): Update.
620 (schedule_region): Update.
621 * sel-sched-ir.c (compute_succs_info): Update.
622 * stmt.c (struct case_node): Update.
623 (do_jump_if_equal): Update.
624 (get_outgoing_edge_probs): Update.
625 (conditional_probability): Update.
626 (emit_case_dispatch_table): Update.
627 (expand_case): Update.
628 (expand_sjlj_dispatch_table): Update.
629 (emit_case_nodes): Update.
630 * targhooks.c: Update.
631 * tracer.c (better_p): Update.
632 (find_best_successor): Update.
633 * trans-mem.c (expand_transaction): Update.
634 * tree-call-cdce.c: Update.
635 * tree-cfg.c (gimple_split_edge): Upate.
636 (move_sese_region_to_fn): Upate.
637 * tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
638 * tree-eh.c (lower_resx): Upate.
639 (cleanup_empty_eh_move_lp): Upate.
640 * tree-if-conv.c (version_loop_for_if_conversion): Update.
641 * tree-inline.c (copy_edges_for_bb): Update.
642 (copy_cfg_body): Update.
643 * tree-parloops.c (gen_parallel_loop): Update.
644 * tree-profile.c (gimple_gen_ic_func_profiler): Update.
645 (gimple_gen_time_profiler): Update.
646 * tree-ssa-dce.c (remove_dead_stmt): Update.
647 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
648 * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
649 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
650 (unloop_loops): Update.
651 (try_peel_loop): Update.
652 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
653 * tree-ssa-loop-split.c (connect_loops): Update.
654 (split_loop): Update.
655 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
656 (hoist_guard): Update.
657 * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
658 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
659 (value_replacement): Update.
660 * tree-ssa-reassoc.c (branch_fixup): Update.
661 * tree-ssa-tail-merge.c (replace_block_by): Update.
662 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
663 (create_edge_and_update_destination_phis): Update.
664 (compute_path_counts): Update.
665 (recompute_probabilities): Update.
666 (update_joiner_offpath_counts): Update.
667 (freqs_to_counts_path): Update.
668 (duplicate_thread_path): Update.
669 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
670 (struct switch_conv_info): Update.
671 (gen_inbound_check): Update.
672 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
673 (vect_do_peeling): Update.
674 (vect_loop_versioning): Update.
675 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
676 (optimize_mask_stores): Update.
677 * ubsan.c (ubsan_expand_null_ifn): Update.
678 * value-prof.c (gimple_divmod_fixed_value): Update.
679 (gimple_divmod_fixed_value_transform): Update.
680 (gimple_mod_pow2): Update.
681 (gimple_mod_pow2_value_transform): Update.
682 (gimple_mod_subtract): Update.
683 (gimple_mod_subtract_transform): Update.
684 (gimple_ic): Update.
685 (gimple_stringop_fixed_value): Update.
686 (gimple_stringops_transform): Update.
687 * value-prof.h: Update.
688
689 2017-06-29 Carl Love <cel@us.ibm.com>
690
691 * config/rs6000/rs6000-c.c: Add support for built-in functions
692 vector signed int vec_signed (vector float);
693 vector signed long long vec_signed (vector double);
694 vector signed int vec_signed2 (vector double, vector double);
695 vector signed int vec_signede (vector double);
696 vector signed int vec_signedo (vector double);
697 * config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
698 instruction generator.
699 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
700 UNSPEC_VSX_VSIGNED2): Add UNSPECS.
701 (vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
702 Add define_insn.
703 (vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
704 vunsignede_v2df): Add define_expands.
705 * config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
706 VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
707 VEC_UNSIGNEDO): Add definitions.
708 * config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
709 UNSPEC_VSX_VSIGNED2): Add UNSPECs.
710 (vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
711 (vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
712 vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
713 * config/rs6000/altivec.h (vec_signed, vec_signed2,
714 vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
715 vec_unsignede, vec_unsignedo): Add builtin defines.
716 * config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
717 declaration.
718 * doc/extend.texi: Update the built-in documentation file for the
719 new built-in functions.
720
721 2017-06-29 Richard Biener <rguenther@suse.de>
722
723 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
724 reduction chains to LOOP_VINFO_REDUCTIONS.
725 * tree-vect-slp.c (vect_analyze_slp): Continue looking for
726 SLP reductions after processing reduction chains.
727
728 2017-06-29 Nathan Sidwell <nathan@acm.org>
729
730 * builtins.c (fold_builtin_FUNCTION): Use
731 lang_hooks.decl_printable_name.
732
733 2017-06-29 Peter Bergner <bergner@vnet.ibm.com>
734
735 PR middle-end/81194
736 * cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
737 with only one label.
738 * stmt.c (expand_case): Assert NCASES is greater than one.
739
740 2017-06-29 Richard Biener <rguenther@suse.de>
741
742 * tree-cfg.c (group_case_labels_stmt): Return whether we changed
743 anything.
744 (group_case_labels): Likewise.
745 (find_taken_edge): Push sanity checking on val to workers...
746 (find_taken_edge_cond_expr): ... here
747 (find_taken_edge_switch_expr): ... and here, handle cases
748 with just a default label.
749 * tree-cfg.h (group_case_labels_stmt): Adjust prototype.
750 (group_case_labels): Likewise.
751 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
752 group_case_labels does anything cleanup the CFG again.
753
754 2017-06-29 Bin Cheng <bin.cheng@arm.com>
755
756 PR tree-optimization/81196
757 * tree-ssa-loop-niter.c (number_of_iterations_cond): Handle loop
758 exit condition comparing two IVs.
759
760 2017-06-29 Richard Earnshaw <rearnsha@arm.com>
761
762 * config/arm/parsecpu.awk (gen_comm_data): Add initializer for
763 profile to the dummy entry at the end of the list of architectures.
764 * config/arm/arm-cpu-cdata.h: Regenerated.
765
766 2017-06-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
767 Michael Collison <michael.collison@arm.com>
768
769 PR target/70119
770 * config/aarch64/aarch64.md (*aarch64_<optab>_reg_<mode>3_mask1):
771 New pattern.
772 (*aarch64_reg_<mode>3_neg_mask2): New pattern.
773 (*aarch64_reg_<mode>3_minus_mask): New pattern.
774 (*aarch64_<optab>_reg_di3_mask2): New pattern.
775 * config/aarch64/aarch64.c (aarch64_rtx_costs): Account for cost
776 of shift when the shift amount is masked with constant equal to
777 the size of the mode.
778 * config/aarch64/predicates.md (subreg_lowpart_operator): New
779 predicate.
780
781 2017-06-29 Martin Liska <mliska@suse.cz>
782
783 * config/i386/i386.opt: Change range from [1,5] to [0,5].
784
785 2017-06-29 Yury Gribov <tetra2005@gmail.com>
786
787 PR bootstrap/80565
788 * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization
789 code.
790 * ipa-inline.h
791 (edge_growth_cache_entry::edge_growth_cache_entry): New
792 function.
793 (reset_edge_growth_cache): Update to use constructor.
794
795 2017-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
796
797 * config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
798 (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
799 (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
800
801 2017-06-28 Sebastian Peryt <sebastian.peryt@intel.com>
802
803 * config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
804 (_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.
805
806 2017-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
807
808 * config.gcc (*-linux-musl*): Add t-musl tmake_file.
809 (*-linux-uclibc*): Add t-uclibc tmake_file.
810 * config/t-musl: New.
811 * config/t-uclibc: New.
812
813 2017-06-28 Richard Earnshaw <rearnsha@arm.com>
814
815 * config/arm/parsecpu.awk (profile): Parse new keyword in an arch
816 context.
817 (gen_comm_data): Emit architectural setting of arch_prof.
818 * config/arm/arm-cpus.in (armv6-m, armv6s-m, armv7-a, armv7ve): Set the
819 profile.
820 (armv7-r, armv7-m, armv7e-m, armv8-a, armv8.1-a, armv8.2-a): Likewise.
821 (armv8-m.base, armv8-m.main): Likewise.
822 * arm-protos.h (arm_build_target): Add profile field.
823 (arch_option): Likewise.
824 * config/arm/arm.c (arm_configure_build_target): Copy the profile to
825 the active target.
826 * config/arm/arm.h (TARGET_ARM_ARCH_PROFILE): Use
827 arm_active_target.profile.
828
829 2017-06-28 Richard Biener <rguenther@suse.de>
830
831 PR middle-end/81227
832 * fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
833 TYPE_OVERFLOW_WRAPS.
834 * match.pd (negate_expr_p): Likewise.
835 * tree-ssa-reassoc.c (optimize_range_tests_diff): Use
836 fold_build2, not fold_binary.
837
838 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
839
840 * config/aarch64/aarch64 (aarch64_expand_mov_immediate):
841 Convert memory address to Pmode.
842 (aarch64_print_operand): Assert MEM operands are always Pmode.
843
844 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
845
846 PR target/79665
847 * config/arm/aarch-common.c (arm_no_early_alu_shift_dep):
848 Remove redundant if.
849 (aarch_forward_to_shift_is_not_shifted_reg): Remove.
850 * config/arm/aarch-common-protos.h
851 (aarch_forward_to_shift_is_not_shifted_re): Remove.
852 * config/arm/cortex-a53.md: Use arm_no_early_alu_shift_dep in bypass.
853
854 2017-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
855
856 PR ipa/81238
857 * multiple_target.c (create_dispatcher_calls): Set the default
858 clone to be static, not public.
859
860 2017-06-28 Richard Biener <rguenther@suse.de>
861
862 * tree-vect-loop.c (vectorizable_reduction): Move special
863 cond reduction IV var creation ...
864 (vect_create_epilog_for_reduction): ... here. Remove induction_index
865 parameter. Use STMT_VINFO_VECTYPE.
866 * tree-vect-slp.c (vect_get_constant_vectors): Properly reset
867 constant_p.
868
869 2017-06-28 Martin Liska <mliska@suse.cz>
870
871 PR ipa/81128
872 * ipa-visibility.c (non_local_p): Handle visibility.
873
874 2017-06-28 Martin Liska <mliska@suse.cz>
875
876 PR driver/79659
877 * common.opt: Add IntegerRange to various options.
878 * opt-functions.awk (integer_range_info): New function.
879 * optc-gen.awk: Add integer_range_info to cl_options struct.
880 * opts-common.c (decode_cmdline_option): Handle
881 CL_ERR_INT_RANGE_ARG.
882 (cmdline_handle_error): Likewise.
883 * opts.c (print_filtered_help): Show valid interval in
884 when --help is provided.
885 * opts.h (struct cl_option): Add range_min and range_max fields.
886 * config/i386/i386.opt: Add IntegerRange for -mbranch-cost.
887
888 2017-06-28 Marc Glisse <marc.glisse@inria.fr>
889
890 * match.pd ((X & ~Y) | (~X & Y)): Generalize to + and ^.
891 (x * C EQ/NE y * C): New transformation.
892
893 2017-06-28 Christophe Lyon <christophe.lyon@linaro.org>
894
895 * genmultilib (combination_space): Accept '+' in option names.
896
897 2017-06-28 Martin Liska <mliska@suse.cz>
898
899 PR sanitizer/81224
900 * asan.c (instrument_derefs): Bail out inner references
901 that are hard register variables.
902
903 2017-06-28 Jakub Jelinek <jakub@redhat.com>
904
905 PR target/81175
906 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use def_builtin
907 rather than def_builtin_pure for __builtin_ia32_gatherpf*.
908
909 2017-06-28 Richard Biener <rguenther@suse.de>
910
911 * tree-vectorizer.h (vect_get_vec_defs): Remove.
912 (vect_get_slp_defs): Adjust.
913 * tree-vect-loop.c (get_initial_defs_for_reduction): Split
914 out from ...
915 * tree-vect-slp.c (vect_get_constant_vectors): ... here and
916 simplify.
917 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
918 get_initial_defs_for_reduction instead of vect_get_vec_defs.
919 (vectorizable_reduction): Adjust.
920 * tree-vect-slp.c (vect_get_constant_vectors): Remove reduction
921 handling.
922 (vect_get_slp_defs): Likewise.
923 * tree-vect-stmts.c (vect_get_vec_defs): Make static and adjust.
924 (vectorizable_bswap): Adjust.
925 (vectorizable_call): Likewise.
926 (vectorizable_conversion): Likewise.
927 (vectorizable_assignment): Likewise.
928 (vectorizable_shift): Likewise.
929 (vectorizable_operation): Likewise.
930 (vectorizable_store): Likewise.
931 (vectorizable_condition): Likewise.
932 (vectorizable_comparison): Likewise.
933
934 2017-06-28 Michael Collison <michael.collison@arm.com>
935
936 PR target/68535
937 * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
938 set of base_reg
939 (arm_gen_movmemqi): Removed unused variable 'i'.
940 Convert 'for' loop into 'while' loop.
941 (arm_expand_prologue): Remove last unnecessary set of insn.
942 (thumb_pop): Remove unused variable 'pushed_words'.
943 (thumb_exit): Remove last unnecessary set of regs_to_pop.
944
945 2017-06-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
946
947 * config/s390/predicates.md: Use s390_rel_address_ok_p.
948 * config/s390/s390-protos.h: Add prototype of
949 s390_rel_address_ok_p.
950 * config/s390/s390.c (s390_got_symbol): New function.
951 (s390_rel_address_ok_p): New function.
952 (legitimize_pic_address): Use s390_rel_address_ok_p.
953 (s390_load_got): Use s390_got_symbol.
954 (s390_option_override): Issue error if
955 -mno-pic-data-is-text-relative is used without -fpic/-fPIC.
956 * config/s390/s390.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
957 New macro.
958 * config/s390/s390.opt: New option mpic-data-is-text-relative.
959
960 2017-06-27 Andrew Pinski <apinski@cavium.com>
961
962 * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
963 (X * copysign (1.0, X)): New pattern.
964 (X * copysign (1.0, -X)): New pattern.
965 (copysign (-1.0, CST)): New pattern.
966
967 2017-06-27 Joseph Myers <joseph@codesourcery.com>
968
969 * genmultilib (combination_space): Remove variable.
970 Validate reuse rules against regular expression for any sequence
971 of multilib options in any order.
972
973 2017-06-27 Michael Collison <michael.collison@arm.com>
974
975 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Directly
976 call aarch64_split_simd_combine.
977 * (aarch64_combine_internal<mode>): Delete pattern.
978 * config/aarch64/aarch64.c (aarch64_split_simd_combine):
979 Allow register and subreg operands.
980
981 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
982
983 * config/i386/vxworks.h (ASM_SPEC): Remove definition. No target
984 specific need, just fallback on defaults.
985 (ASM_OUTPUT_ALIGNED_BSS): Add #undef before #define.
986
987 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
988 Olivier Hainque <hainque@adacore.com>
989
990 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
991 map for 64bits.
992 (TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
993 targets. Pick a default if no particular attempt applied.
994 (STACK_CHECK_PROTECT): Double for 64bit targets, which have
995 larger contexts.
996
997 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
998
999 * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
1000 (x86_64-wrs-vxworks7): Likewise.
1001
1002 2017-06-27 Marek Polacek <polacek@redhat.com>
1003
1004 PR sanitizer/81223
1005 * ubsan.c (instrument_null): Check get_base_address's result for null.
1006
1007 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
1008
1009 * match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.
1010
1011 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
1012
1013 * builtin-types.def (BT_FENV_T_PTR, BT_CONST_FENV_T_PTR,
1014 BT_FEXCEPT_T_PTR, BT_CONST_FEXCEPT_T_PTR): New primitive types.
1015 (BT_FN_INT_FENV_T_PTR, BT_FN_INT_CONST_FENV_T_PTR,
1016 BT_FN_INT_FEXCEPT_T_PTR_INT, BT_FN_INT_CONST_FEXCEPT_T_PTR_INT):
1017 New function types.
1018 * builtins.def (BUILT_IN_FECLEAREXCEPT, BUILT_IN_FEGETENV,
1019 BUILT_IN_FEGETEXCEPTFLAG, BUILT_IN_FEGETROUND,
1020 BUILT_IN_FEHOLDEXCEPT, BUILT_IN_FERAISEEXCEPT,
1021 BUILT_IN_FESETENV, BUILT_IN_FESETEXCEPTFLAG,
1022 BUILT_IN_FESETROUND, BUILT_IN_FETESTEXCEPT,
1023 BUILT_IN_FEUPDATEENV): New builtins.
1024 * tree-core.h (TI_FENV_T_PTR_TYPE, TI_CONST_FENV_T_PTR_TYPE,
1025 TI_FEXCEPT_T_PTR_TYPE, TI_CONST_FEXCEPT_T_PTR_TYPE): New entries.
1026 * tree.h (fenv_t_ptr_type_node, const_fenv_t_ptr_type_node,
1027 fexcept_t_ptr_type_node, const_fexcept_t_ptr_type_node): New
1028 macros.
1029 (builtin_structptr_types): Adjust size.
1030 * tree.c (builtin_structptr_types): Add four entries.
1031
1032 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
1033 Olivier Hainque <hainque@adacore.com>
1034
1035 * config/vxworks.h (VXWORKS_LIB_SPEC): Incorporate ...
1036 (TLS_SYM): New local macro, forcing reference to __tls__ on
1037 link command lines for VxWorks 7 RTPs, triggering initialization
1038 of tlsLib.
1039 (VXWORKS_HAVE_TLS): New macro. State whether the target VxWorks
1040 OS features TLS support, true for RTPs on VxWorks 7.
1041 * config/vxworks.c (vxworks_override_options): Setup emutls
1042 accordingly.
1043
1044 2017-06-27 Jakub Jelinek <jakub@redhat.com>
1045
1046 * predict.c (test_prediction_value_range): Use -1U instead of -1
1047 to avoid narrowing conversion warning.
1048 * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast
1049 to avoid narrowing conversion warning.
1050 * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of
1051 -1.
1052 * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1.
1053
1054 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
1055
1056 * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for
1057 64bit configurations.
1058 (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64.
1059 (SIZE_TYPE): Likewise.
1060 * config/vxworks.c (vxworks_emutls_var_fields): Use
1061 long_unsigned_type_node instead of unsigned_type_node as the offset
1062 field type, which is "pointer" mode in emutls.c.
1063
1064 2017-06-27 Jakub Jelinek <jakub@redhat.com>
1065
1066 PR sanitizer/81209
1067 * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
1068
1069 PR middle-end/81207
1070 * gimple-fold.c (replace_call_with_call_and_fold): Handle
1071 gimple_vuse copying separately from gimple_vdef copying.
1072
1073 2017-06-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1074
1075 * value-prof.c (free_hist): Remove call to memset and the enclosing if
1076 condition.
1077
1078 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
1079 Olivier Hainque <hainque@adacore.com>
1080
1081 * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
1082 for all vxworks7 targets.
1083 * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
1084 (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
1085 (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
1086 variations for VX6/VX7 and 32/64bits later on in ...
1087 (VXWORKS_LIB_SPEC): Leverage new macros.
1088 (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
1089 as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
1090
1091 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
1092
1093 * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
1094 _VX_TOOL_FAMILY and _VX_TOOL to gnu.
1095
1096 2017-06-26 Carl Love <cel@us.ibm.com>
1097
1098 * config/rs6000/rs6000-c.c: Add support for built-in functions
1099 vector bool char vec_reve (vector bool char);
1100 vector signed char vec_reve (vector signed char);
1101 vector unsigned char vec_reve (vector unsigned char);
1102 vector bool int vec_reve (vector bool int);
1103 vector signed int vec_reve (vector signed int);
1104 vector unsigned int vec_reve (vector unsigned int);
1105 vector bool long long vec_reve (vector bool long long);
1106 vector signed long long vec_reve (vector signed long long);
1107 vector unsigned long long vec_reve (vector unsigned long long);
1108 vector bool short vec_reve (vector bool short);
1109 vector signed short vec_reve (vector signed short);
1110 vector double vec_reve (vector double);
1111 vector float vec_reve (vector float);
1112 * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
1113 VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
1114 * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
1115 (altivec_vreve): New pattern.
1116 * config/rs6000/altivec.h (vec_reve): New define.
1117 * doc/extend.texi (vec_rev): Update the built-in documentation file
1118 for the new built-in functions.
1119
1120 2016-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1121
1122 PR tree-optimization/71815
1123 * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
1124 function.
1125 (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
1126 has_single_use.
1127 (slsr_process_phi): Likewise.
1128 (replace_uncond_cands_and_profitable_phis): Don't replace a
1129 multiply candidate with a stride of 1 (copy or cast).
1130 (phi_incr_cost): Call uses_consumed_by_stmt rather than
1131 has_single_use.
1132 (lowest_cost_path): Likewise.
1133 (total_savings): Likewise.
1134
1135 2017-06-26 Richard Biener <rguenther@suse.de>
1136
1137 PR target/81175
1138 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
1139 Use def_builtin_pure for all gather builtins.
1140
1141 2017-06-26 Richard Biener <rguenther@suse.de>
1142
1143 PR tree-optimization/81203
1144 * tree-tailcall.c (find_tail_calls): Do not move stmts into
1145 non-dominating BBs.
1146
1147 2017-06-26 Marek Polacek <polacek@redhat.com>
1148
1149 PR c/80116
1150 * doc/invoke.texi: Document -Wmultistatement-macros.
1151
1152 2017-06-26 Christophe Lyon <christophe.lyon@linaro.org>
1153
1154 * doc/sourcebuild.texi (ARM-specific attributes): Document new
1155 arm_neon_ok_no_float_abi effective target.
1156
1157 2017-06-26 Richard Biener <rguenther@suse.de>
1158
1159 PR tree-optimization/80928
1160 * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
1161 (copy_bbs): Set BB_DUPLICATED flag early.
1162 (execute_on_growing_pred): Do not execute for BB_DUPLICATED
1163 marked blocks.
1164 (execute_on_shrinking_pred): Likewise.
1165 * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
1166 BB_DUPLICATED blocks.
1167 * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
1168 iterate over all PHIs considering removal of *gsi.
1169
1170 2017-06-23 Jim Wilson <jim.wilson@linaro.org>
1171
1172 * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
1173 qdf24xx.
1174
1175 2017-06-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1176
1177 * config/rs6000/rs6000-string.c: (expand_block_clear,
1178 do_load_for_compare, select_block_compare_mode,
1179 compute_current_alignment, expand_block_compare,
1180 expand_strncmp_align_check, expand_strn_compare,
1181 expand_block_move, rs6000_output_load_multiple)
1182 Move functions related to string/block move/compare
1183 to a separate file.
1184 * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
1185 * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
1186 for this function which is now used in two files.
1187 * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
1188 * config.gcc: Add rs6000-string.o to extra_objs for
1189 targets powerpc*-*-* and rs6000*-*-*.
1190
1191 2017-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1192
1193 PR target/80510
1194 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
1195 32-bit, since indexed is not valid for DImode.
1196 (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
1197 3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
1198 (define_peephole2 for Altivec d-form load): Add 32-bit support.
1199 (define_peephole2 for Altivec d-form store): Likewise.
1200
1201 PR ipa/81185
1202 * multiple_target.c (create_dispatcher_calls): Only create the
1203 dispatcher call if the function is the default clone of a
1204 versioned function.
1205
1206 2017-06-23 Segher Boessenkool <segher@kernel.crashing.org>
1207
1208 PR middle-end/80902
1209 * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
1210 a call, force the call to not be a tail call.
1211
1212 2017-06-23 Jeff Law <law@redhat.com>
1213
1214 * doc/contrib.texi: Add entry for Steven Pemberton's work on
1215 enquire.
1216
1217 2017-06-23 Will Schmidt <will_schmidt@vnet.ibm.com>
1218
1219 * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
1220 update_call_from_tree(). (rs6000_gimple_fold_builtin): Add
1221 handling for early expansion of vector shifts (sl,sr,sra,rl).
1222 (builtin_function_type): Add vector shift right instructions
1223 to the unsigned argument list.
1224
1225 2017-06-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
1226
1227 rtl-optimizatoin/79286
1228 * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
1229 * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
1230 trap. PIC register plus a const unspec without offset can never trap.
1231
1232 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
1233
1234 * tree.h (builtin_structptr_type): New type.
1235 (builtin_structptr_types): Declare new array.
1236 * tree.c (builtin_structptr_types): New array.
1237 (free_lang_data, build_common_tree_nodes): Use it.
1238
1239 2017-06-23 Jonathan Wakely <jwakely@redhat.com>
1240
1241 PR c++/81187
1242 * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
1243 -Wnoexcept.
1244
1245 2017-06-22 Matt Turner <mattst88@gmail.com>
1246
1247 * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
1248 Lake models to skylake case. Assume skylake for unknown
1249 models with clflushopt.
1250
1251 2017-06-22 Jeff Law <law@redhat.com>
1252
1253 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
1254 frame sizes that do not satisfy aarch64_uimm12_shift.
1255
1256 2017-06-22 Jan Hubicka <hubicka@ucw.cz>
1257
1258 * profile-count.h (apply_probability,
1259 apply_scale, probability_in): Fix checks for zero.
1260
1261 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1262
1263 * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
1264 * doc/cppdiropts.texi (-I @var{dir}): Document it.
1265
1266 2016-06-22 Richard Biener <rguenther@suse.de>
1267
1268 * tree-vect-loop.c (vect_model_reduction_cost): Handle
1269 COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
1270 REDUC_MAX_EXPR support.
1271 (vectorizable_reduction): Likewise.
1272 (vect_create_epilog_for_reduction): Likewise.
1273
1274 2017-06-22 James Greenhalgh <james.greenhalgh@arm.com>
1275
1276 * match.pd (A / (1 << B) -> A >> B): New.
1277 * generic-match-head.c: Include optabs-tree.h.
1278 * gimple-match-head.c: Likewise.
1279 * optabs-tree.h (target_supports_op_p): New.
1280 * optabs-tree.c (target_supports_op_p): New.
1281
1282 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1283
1284 * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
1285 $gcc_cv_ld --help output.
1286 (gcc_cv_ld_demangle): Likewise.
1287 (gcc_cv_ld_eh_frame_hdr): Likewise.
1288 (gcc_cv_ld_pie): Likewise.
1289 (gcc_cv_ld_as_needed): Likewise. Prefer native forms unless $gnu_ld.
1290 (gcc_cv_ld_buildid): Likewise.
1291 (gcc_cv_ld_sysroot): Likewise.
1292 (ld_bndplt_support): Likewise.
1293 (ld_pushpopstate_support): Likewise.
1294 * configure: Regenerate.
1295 * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
1296
1297 2017-06-21 Jakub Jelinek <jakub@redhat.com>
1298
1299 PR target/81151
1300 * config/i386/sse.md (round<mode>2): Renumber match_dup and
1301 operands indexes to avoid gap between operands and match_dups.
1302
1303 2017-06-21 Andrew Pinski <apinski@cavium.com>
1304
1305 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
1306 Increment Arith_shift and Arith_shift_reg by 1.
1307 * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
1308 New tuning flag.
1309 * config/aarch64/aarch64.c (thunderx_tunings): Enable
1310 AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
1311 (aarch64_strip_extend): Add new argument and test for it.
1312 (aarch64_cheap_mult_shift_p): New function.
1313 (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
1314 add a cost if it is true.
1315 Update calls to aarch64_strip_extend.
1316 (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
1317
1318 2017-06-21 Andrew Pinski <apinski@cavium.com>
1319
1320 * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
1321 tunings.
1322 (thunderxt88): Likewise.
1323 * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
1324 (thunderx_prefetch_tune): New variable.
1325 (thunderx2t99_prefetch_tune): Update for the correct values.
1326 (thunderxt88_tunings): New variable.
1327 (thunderx_tunings): Use thunderx_prefetch_tune instead of
1328 generic_prefetch_tune.
1329 (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
1330
1331 2017-06-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1332
1333 * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
1334 SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
1335 (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
1336 (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
1337 (aarch64_atomic_cas<mode>, GPI): Likewise.
1338
1339 2017-06-21 Martin Liska <mliska@suse.cz>
1340
1341 * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
1342 statements on cold and hot labels.
1343 * predict.c (tree_estimate_probability_bb): Remove the
1344 prediction from this place.
1345
1346 2017-06-21 Martin Liska <mliska@suse.cz>
1347
1348 PR tree-optimization/79489
1349 * gimplify.c (maybe_add_early_return_predict_stmt): New
1350 function.
1351 (gimplify_return_expr): Call the function.
1352 * predict.c (tree_estimate_probability_bb): Remove handling
1353 of early return.
1354 * predict.def: Update comment about early return predictor.
1355 * gimple-predict.h (is_gimple_predict): New function.
1356 * predict.def: Change default value of early return to 66.
1357 * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
1358 statements.
1359 * passes.def: Put pass_strip_predict_hints to the beginning of
1360 IPA passes.
1361
1362 2017-06-21 Pierre-Marie de Rodat <derodat@adacore.com>
1363
1364 * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
1365 FUNCTION_DECL declarations.
1366 (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
1367 declarations.
1368 (dwaf2out_decl): Likewise.
1369 * godump.c (go_early_global_decl): Skip call to the real debug hook
1370 for FUNCTION_DECL declarations.
1371 * passes.c (rest_of_decl_compilation): Skip call to the
1372 early_global_decl debug hook for FUNCTION_DECL declarations, unless
1373 -fdump-go-spec is passed.
1374
1375 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
1376
1377 * config/i386/i386.c (struct builtin_isa): New field pure_p.
1378 Reorder for compactness.
1379 (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
1380 (def_builtin_pure, def_builtin_pure2): New functions.
1381 (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
1382
1383 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
1384
1385 * match.pd (nop_convert): New predicate.
1386 ((A +- CST1) +- CST2): Allow some NOP conversions.
1387
1388 2017-06-21 Jakub Jelinek <jakub@redhat.com>
1389
1390 PR c++/81130
1391 * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
1392 with ctors/dtors if GOVD_SHARED is set.
1393
1394 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
1395
1396 * config/aarch64/aarch64.md (movti_aarch64):
1397 Emit mov rather than orr.
1398 (movtf_aarch64): Likewise.
1399 * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
1400 Emit mov rather than orr.
1401
1402 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
1403
1404 * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
1405 Swap alternatives, make integer dup more expensive.
1406
1407 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
1408
1409 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
1410 Return true for non-tls symbols.
1411
1412 2017-06-21 James Greenhalgh <james.greenhalgh@arm.com>
1413
1414 * config/aarch64/aarch64-cores.def (cortex-a55): New.
1415 (cortex-a75): Likewise.
1416 (cortex-a75.cortex-a55): Likewise.
1417 * config/aarch64/aarch64-tune.md: Regenerate.
1418 * doc/invoke.texi (-mtune): Document new values for -mtune.
1419
1420 2017-06-21 Tom de Vries <tom@codesourcery.com>
1421
1422 * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
1423 stack_size feature.
1424 (Effective-Target Keywords, Other attributes): Suggest using
1425 dg-add-options stack_size feature to get stack limit in stack_size
1426 effective target documentation.
1427
1428 2017-06-21 Julian Brown <julian@codesourcery.com>
1429 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1430
1431 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
1432 (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
1433 * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
1434 reservation.
1435 * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
1436 attribute type list for neon_multiply.
1437 * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
1438 attribute type list for neon_multiply.
1439 * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
1440 * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
1441 attribute type list for neon_multiply.
1442 * config/arm/types.md (crypto_pmull): Add.
1443 * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
1444 attribute type list.
1445
1446 2017-06-20 Andreas Tobler <andreast@gcc.gnu.org>
1447
1448 * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
1449 arm1176jzf-s.
1450
1451 2017-06-20 Jakub Jelinek <jakub@redhat.com>
1452
1453 * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
1454 to make sure not to dereference a NULL cost_classes_ptr pointer.
1455
1456 2017-06-20 Carl Love <cel@us.ibm.com>
1457
1458 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1459 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
1460 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
1461 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
1462 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
1463 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
1464 VMULOSW): New enum "unspec" values.
1465 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
1466 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
1467 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
1468 altivec_vmulosw): New patterns.
1469 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
1470 VMULOSW): Add definitions.
1471
1472 2017-06-20 Julia Koval <julia.koval@intel.com>
1473
1474 * config/i386/i386.c: Fix rounding expand for new pattern.
1475 * config/i386/subst.md: Fix pattern (parallel -> unspec).
1476
1477 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
1478
1479 * config/aarch64/aarch64-option-extensions.def (rcpc): New.
1480 * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
1481
1482 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
1483
1484 * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
1485 feature string.
1486
1487 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
1488
1489 * config/aarch64/aarch64-cores.def: Rearrange to sort by
1490 architecture, then by implementer ID.
1491 * config/aarch64/aarch64-tune.md: Regenerate.
1492
1493 2017-06-20 Richard Biener <rguenther@suse.de>
1494
1495 PR middle-end/81097
1496 * fold-const.c (split_tree): Fold to type before negating.
1497
1498 2017-06-20 David Malcolm <dmalcolm@redhat.com>
1499
1500 * diagnostic-show-locus.c
1501 (selftest::test_fixit_deletion_affecting_newline): New function.
1502 (selftest::diagnostic_show_locus_c_tests): Call it.
1503
1504 2017-06-20 Andreas Schwab <schwab@suse.de>
1505
1506 PR target/80970
1507 * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
1508 instead of "+d".
1509
1510 2017-06-20 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
1511
1512 * config/arm/arm-c.c (arm_cpu_builtins): New block to define
1513 __ARM_FEATURE_COPROC according to support.
1514
1515 2017-06-20 Jakub Jelinek <jakub@redhat.com>
1516
1517 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
1518 Rewritten to avoid overflow for > 32-bit pointers.
1519
1520 PR sanitizer/81125
1521 * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
1522 by removing enum keyword.
1523 (ubsan_type_descriptor): Likewise. Formatting fix.
1524
1525 PR target/81121
1526 * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
1527 splitter): Require TARGET_SSE2 in the condition.
1528
1529 2017-06-20 Michael Meissner <meissner@linux.vnet.ibm.com>
1530
1531 PR target/79799
1532 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
1533 for doing vector set of SFmode on ISA 3.0.
1534 * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
1535 (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
1536 element.
1537 (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
1538 SFmode value into a V4SF variable that was extracted from another
1539 V4SF variable without converting the element to double precision
1540 and back to single precision vector format.
1541 (vsx_insert_extract_v4sf_p9_2): Likewise.
1542
1543 2017-06-19 Jakub Jelinek <jakub@redhat.com>
1544
1545 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
1546 in UWHI to avoid undefined overflow.
1547
1548 PR sanitizer/81125
1549 * ubsan.h (enum ubsan_encode_value_phase): New.
1550 (ubsan_encode_value): Change second argument to
1551 enum ubsan_encode_value_phase with default value of
1552 UBSAN_ENCODE_VALUE_GENERIC.
1553 * ubsan.c (ubsan_encode_value): Change second argument to
1554 enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
1555 adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
1556 create_tmp_var_raw instead of create_tmp_var and use a
1557 TARGET_EXPR.
1558 (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
1559 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
1560 ubsan_encode_value callers.
1561
1562 PR sanitizer/81111
1563 * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
1564 use create_tmp_var_raw instead of create_tmp_var, mark it addressable
1565 just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
1566
1567 2017-06-19 Richard Biener <rguenther@suse.de>
1568
1569 PR middle-end/81118
1570 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
1571 estimates if we changed anything.
1572
1573 2017-06-19 Richard Biener <rguenther@suse.de>
1574
1575 PR tree-optimization/80887
1576 * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
1577 (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
1578 simplified lookups, then reset mprts_hook.
1579 (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
1580 simplifying.
1581 (try_to_simplify): Likewise.
1582
1583 2017-06-19 Martin Liska <mliska@suse.cz>
1584
1585 PR sanitizer/80879
1586 * gimplify.c (gimplify_switch_expr):
1587 Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
1588
1589 2017-06-19 Martin Liska <mliska@suse.cz>
1590
1591 * doc/install.texi: Document that PGO runs in 4 stages.
1592
1593 2017-06-19 Martin Liska <mliska@suse.cz>
1594
1595 PR ipa/80732
1596 * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
1597 to dispatcher function name.
1598 * multiple_target.c (replace_function_decl): New function.
1599 (create_dispatcher_calls): Redirect both edges and references.
1600
1601 2017-06-19 Jan Hubicka <hubicka@ucw.cz>
1602
1603 * profile-count.c (profile_count::dump): Dump quality.
1604 (profile_count::differs_from_p): Update for unsigned val.
1605 * profile-count.h (profile_count_quality): New enum.
1606 (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
1607
1608 2017-06-19 Richard Biener <rguenther@suse.de>
1609
1610 * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
1611 struct function as arg.
1612 (estimate_numbers_of_iterations): Export overload with loop arg.
1613 (free_numbers_of_iterations_estimates_loop): Use an overload of
1614 free_numbers_of_iterations_estimates instead.
1615 * tree-cfg.c (remove_bb): Adjust.
1616 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
1617 * tree-parloops.c (gen_parallel_loop): Likewise.
1618 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
1619 Likewise.
1620 (tree_unroll_loops_completely): Likewise.
1621 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
1622 Use an overload instead and export.
1623 (estimated_loop_iterations): Adjust.
1624 (max_loop_iterations): Likewise.
1625 (likely_max_loop_iterations): Likewise.
1626 (estimate_numbers_of_iterations): Take struct function as arg
1627 and adjust.
1628 (loop_exits_before_overflow): Adjust.
1629 (free_numbers_of_iterations_estimates_loop): Use an overload.
1630 * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
1631 * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
1632
1633 2017-06-19 Richard Biener <rguenther@suse.de>
1634
1635 PR ipa/81112
1636 * ipa-prop.c (find_constructor_constant_at_offset): Handle
1637 RANGE_EXPR conservatively.
1638
1639 2017-06-16 Carl Love <cel@us.ibm.com>
1640
1641 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1642 definitions for vec_float, vec_float2, vec_floato,
1643 vec_floate built-ins.
1644 * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
1645 for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
1646 floate.
1647 * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
1648 FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
1649 UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
1650 * config/altivec.md (define_insn "p8_vmrgew_<mode>",
1651 define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
1652 * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
1653 vec_floato): Add builtin defines.
1654 * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
1655 Update the built-in documentation file for the new built-in
1656 functions.
1657
1658 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1659
1660 * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
1661 (mthumb): Mark as the negative of -marm.
1662
1663 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1664
1665 * doc/invoke.texi (ARM Options, -mcpu): Document supported
1666 extension options.
1667 (ARM Options, -mtune): Document that this accepts the same
1668 extension options as -mcpu.
1669 (ARM Options, -mfpu): Document addition of -mfpu=auto.
1670
1671 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1672
1673 * doc/invoke.texi (ARM Options, -march=): Document new syntax and
1674 permitted extensions.
1675
1676 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1677
1678 * config/arm/arm-cpus.in (armv7): Add extension +nofp.
1679 (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
1680 (armv8-m.main): Add option +nodsp.
1681 * config/arm/arm-cpu-cdata.h: Regenerated.
1682
1683 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1684
1685 * config/arm/t-fuchsia: New file.
1686 * config.gcc (arm*-*-fuchsia*): Use it.
1687
1688 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1689
1690 * config/arm/t-symbian: Rewrite for new option infrastructure.
1691
1692 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1693
1694 * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
1695 (MULTILIB_REQUIRED): Likewise.
1696
1697 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1698
1699 * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
1700 (MULTILIB_RESUE): Likewise.
1701 (MULTILIB_MATCHES): Likewise.
1702 (MULTLIB_REQUIRED): Likewise.
1703
1704 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1705
1706 * config/arm/t-rtems: Rewrite for new option framework.
1707
1708 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1709
1710 * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
1711 (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
1712 (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
1713 (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
1714 * config/arm/t-multilib: ... here.
1715 (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
1716 (MULTILIB_MATCHES): Use armv7 libraries for armv7-r. Also use for
1717 armv7-a and armv8*-a when A-profile libraries have not been built.
1718 * config/arm/t-rmprofile: Rewrite.
1719
1720 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1721
1722 * genmultilib (multilib_reuse): Allow an explicit period to be escaped
1723 with a backslash. Remove the backslash after substituting unescaped
1724 periods.
1725 * doc/fragments.texi (MULTILIB_REUSE): Document it.
1726
1727 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1728
1729 * config.gcc: (arm*-*-*): When building a-profile libraries, force
1730 the driver to pass through the default setting of -mfloat-abi.
1731 * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
1732 rather than NULL.
1733 * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
1734 (all_feat_combs): New rule.
1735 (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories. Rework
1736 default libraries.
1737 * config/arm/t-aprofile: Rewrite.
1738
1739 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1740
1741 * config/arm/arm.h (FPUTYPE_AUTO): Define.
1742 * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
1743 fpu is not specified by the user/command-line.
1744 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
1745 * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
1746 * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
1747 * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
1748 * common/config/arm/arm-common.c (arm_canon_arch_option): Use
1749 FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
1750
1751 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1752
1753 * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
1754 * config/arm/t-arm-elf: Rewritten.
1755
1756 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1757
1758 * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
1759 have some floating-point instructions.
1760 (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
1761 (TARGET_MAYBE_HARD_FLOAT): New macro.
1762 * config/arm/arm-builtins.c (arm_init_builtins): Use
1763 TARGET_MAYBE_HARD_FLOAT.
1764 * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
1765
1766 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1767
1768 * common/config/arm/arm-common.c: Define INCLUDE_LIST.
1769 (configargs.h): Include it.
1770 (arm_print_hint_for_fpu_option): New function.
1771 (arm_parse_fpu_option): New function.
1772 (candidate_extension): New class.
1773 (arm_canon_for_multilib): New function.
1774 * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
1775 (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
1776 (ARCH_CANONICAL_SPECS): New macro.
1777 (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
1778
1779 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1780
1781 * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
1782 are set after handling multilib fragments. Set target_cpu_default2
1783 from with_cpu.
1784
1785 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1786
1787 * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
1788 cpu name.
1789 (arm*-*-*): Set target_cpu_default2 to a quoted string.
1790 * config/arm/parsecpu.awk (check_cpu): Validate any extension
1791 options.
1792 (check_arch): Likewise.
1793 * config/arm/arm.c (arm_configure_build_target): Handle
1794 TARGET_CPU_DEFAULT being a string constant. Scan any feature
1795 options in the default.
1796
1797 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1798
1799 * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
1800 when an option is an alias of another.
1801 * config/arm/parsecpu.awk (optalias): New parser token.
1802 (gen_comm_data): Mark non-alias options as such. Emit entries
1803 for extension aliases.
1804 * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
1805 (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
1806 (armv6kz, armv6zk, armv6t2): Likewise.
1807 (armv7): Make vfpv3-d16 an alias.
1808 (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases. Sort in
1809 canonical order.
1810 (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
1811 Sort in canonical order.
1812 (armv8-a): Sort in canonical order.
1813 (armv8.1-a, armv8.2-a): Likewise.
1814 (generic-armv7-a): Make neon and neon-vfpv3 aliases. Sort in
1815 canonical order.
1816 (cortex-a9): Sort in canonical order.
1817 * config/arm/arm.c (selftests.h): Include it.
1818 (arm_test_cpu_arch_data): New function.
1819 (arm_run_self_tests): New function.
1820 (TARGET_RUN_TARGET_SELFTESTS): Redefine.
1821 (targetm): Move declaration to the end of the file.
1822 * arm-cpu-cdata.h: Regenerated.
1823
1824 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1825
1826 * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
1827 call to target_mode_check describing the type of option passed.
1828 * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
1829 (arm_target_thumb_only): Use arm_parse_arch_option_name or
1830 arm_parse_cpu_option_name to match parameters against list of
1831 available targets.
1832 * config/arm/parsecpu.awk (gen_comm_data): Don't generate
1833 arm_arch_core_flags data structure.
1834 * config/arm/arm-cpu_cdata.h: Regenerated.
1835
1836 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1837
1838 * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
1839 config/arm/arm.c.
1840 (arm_print_hint_for_cpu_option): Likewise.
1841 (arm_print_hint_for_arch_option): Likewise.
1842 (arm_parse_cpu_option_name): Likewise.
1843 (arm_parse_arch_option_name): Likewise.
1844 * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
1845 of entries in the all_fpus list.
1846 * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
1847 (arm_parse_cpu_option_name): Declare.
1848 (arm_parse_arch_option_name): Declare.
1849 (arm_parse_option_features): Declare.
1850 (arm_intialize_isa): Declare.
1851 * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
1852 data tables to ...
1853 (gen_comm_data): ... here. Make definitions non-static.
1854 * config/arm/arm-cpu-data.h: Regenerated.
1855 * config/arm/arm-cpu-cdata.h: Regenerated.
1856
1857 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1858
1859 * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
1860 (cpu_arch_extension): New structure.
1861 (cpu_arch_option, arch_option, cpu_option): New structures.
1862 * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
1863 architecture types.
1864 (gen_data): Generate new format data tables.
1865 * config/arm/arm.c (cpu_tune): New structure.
1866 (cpu_option, processors): Delete.
1867 (arm_print_hint_for_core_or_arch): Delete. Replace with ...
1868 (arm_print_hint_for_cpu_option): ... this and ...
1869 (arm_print_hint_for_arch_option): ... this.
1870 (arm_parse_arch_cpu_name): Delete. Replace with ...
1871 (arm_parse_cpu_option_name): ... this and ...
1872 (arm_parse_arch_option_name): ... this.
1873 (arm_unrecognized_feature): Change type of target parameter to
1874 cpu_arch_option.
1875 (arm_parse_arch_cpu_features): Delete. Replace with ...
1876 (arm_parse_option_features): ... this.
1877 (arm_configure_build_target): Rework to use new configuration data
1878 tables.
1879 (arm_print_tune_info): Rework for new configuration data tables.
1880 * config/arm/arm-cpu-data.h: Regenerated.
1881 * config/arm/arm-cpu.h: Regenerated.
1882
1883 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1884
1885 * Makefile.in (OBJS): Move sbitmap.o from here ...
1886 (OBJS-libcommon): ... to here.
1887
1888 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1889
1890 * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
1891 (ISA_ALL_CRYPTO): New macro.
1892 (ISA_ALL_SIMD): New macro
1893 (ISA_ALL_FP): New macro.
1894 * config/arm/arm.c (fpu_bitlist): Update initializer.
1895 * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
1896 simd or fp.
1897 (arm9e): Add fpu. Add option for nofp
1898 (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
1899 (arm926ej-s, arm1026ej-s): Likewise.
1900 (generic-armv7-a): Add fpu. Add options for simd, vfpv3, vfpv3-d16,
1901 vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
1902 neon-fp16, neon-vfpv4, nofp and nosimd.
1903 (cortex-a5, cortex-a7): Add fpu. Add options for nosimd and nofp.
1904 (cortex-a8): Add fpu. Add option for nofp.
1905 (cortex-a9): Add fpu. Add options for nosimd and nofp.
1906 (cortex-a12, cortex-a15, cortex-a17): Add fpu. Add option for nofp.
1907 (cortex-r4f): Add fpu.
1908 (cortex-r5): Add fpu. Add options for nofp.dp and nofp.
1909 (cortex-r7): Use idiv option from architecture. Add fpu. Add option
1910 for nofp.
1911 (cortex-r8): Likewise.
1912 (cortex-m4): Add fpu. Add option for nofp.
1913 (cortex-a15.cortex-a7): Add fpu. Add option for nofp.
1914 (cortex-a17.cortex-a7): Likewise.
1915 (cortex-a32): Add fpu. Add options for crypto and nofp.
1916 (cortex-a35, cortex-a53): Likewise.
1917 (cortex-a57): Add fpu. Add option for crypto.
1918 (cortex-a72, cortex-a73): Likewise.
1919 (exynos-m1): Likewise.
1920 (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
1921 (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
1922 (cortex-m33): Add fpu. Add option for nofp.
1923 * config/arm/arm-cpu-cdata.h: Regenerated
1924 * config/arm/arm-cpu-data.h: Regenerated.
1925
1926 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1927
1928 * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
1929 (armv5te, armv5tej): Likewise.
1930 (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
1931 (armv7): Add options fp and vfpv3-d16.
1932 (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
1933 vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
1934 nofp and nosimd.
1935 (armv7ve): Likewise.
1936 (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
1937 (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
1938 (armv8-a): Add nocrypto option.
1939 (armv8.1-a, armv8.2-a): Likewise.
1940 (armv8-m.main): add options fp, fp.dp and nofp.
1941
1942 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1943
1944 * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
1945 nofp.
1946 (armv8-a+crc): Delete.
1947 (armv8.1-a): Add options simd, crypto and nofp.
1948 (armv8.2-a): Add options fp16, simd, crypto and nofp.
1949 (armv8.2-a+fp16): Delete.
1950 (armv8-m.main): Add option dsp.
1951 (armv8-m.main+dsp): Delete.
1952 (cortex-a8): Add fpu. Add nofp option.
1953 (cortex-a9): Add fpu. Add nofp and nosimd options.
1954 * config/arm/parsecpu.awk (gen_data): Generate option tables and
1955 link to main cpu and architecture data structures.
1956 (gen_comm_data): Only put isa attributes from the main architecture
1957 in common tables.
1958 (option): New statement for architecture and CPU entries.
1959 * arm.c (struct cpu_option): New structure.
1960 (struct processors): Add entry for options.
1961 (arm_unrecognized_feature): New function.
1962 (arm_parse_arch_cpu_name): Ignore any characters after the first
1963 '+' character.
1964 (arm_parse_arch_cpu_feature): New function.
1965 (arm_configure_build_target): Separate out any CPU and architecture
1966 features and parse separately. Don't error out if -mfpu=auto is
1967 used with only an architecture string.
1968 (arm_print_asm_arch_directives): New function.
1969 (arm_file_start): Call it.
1970 * config/arm/arm-cpu-cdata.h: Regenerated.
1971 * config/arm/arm-cpu-data.h: Likewise.
1972 * config/arm/arm-tables.opt: Likewise.
1973
1974 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1975
1976 * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
1977 assembler when it is not -mfpu=auto.
1978
1979 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1980
1981 * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
1982 (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
1983 (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
1984 (ASM_CPU_SPEC): Rewrite.
1985 (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
1986 (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef. Use
1987 MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS. Remove
1988 reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
1989 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
1990 copied string is NUL-terminated. Also strip any characters prefixed
1991 by '+'.
1992 (arm_rewrite_selected_arch): New function.
1993 (arm_rewrite_march): New function.
1994
1995 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
1996
1997 * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
1998 (x_arm_cpu_string, x_arm_tune_string): Likewise.
1999 (march, mcpu, mtune): Convert to string-based options.
2000 * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
2001 (arm_parse_arch_cpu_name): New function.
2002 (arm_configure_build_target): Use arm_parse_arch_cpu_name to
2003 identify selected architecture or CPU.
2004 (arm_option_save): New function.
2005 (TARGET_OPTION_SAVE): Redefine.
2006 (arm_option_restore): Restore string options.
2007 (arm_option_print): Print string options.
2008
2009 2017-06-16 Martin Sebor <msebor@redhat.com>
2010
2011 PR tree-optimization/80933
2012 PR tree-optimization/80934
2013 * builtins.c (fold_builtin_3): Do not handle bcmp here.
2014 * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
2015 (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
2016 (gimple_fold_builtin): Call them.
2017
2018 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
2019
2020 * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
2021 as unlikely; update profile.
2022
2023 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
2024
2025 * predict.c (force_edge_cold): Handle declaring edges impossible
2026 more aggresively.
2027
2028 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
2029
2030 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
2031 profile.
2032 (try_unroll_loop_completely): Fix reporting.
2033
2034 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
2035
2036 * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
2037
2038 2017-06-16 James Greenhalgh <james.greenhalgh@arm.com>
2039
2040 PR target/71778
2041 * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
2042 if given a non-constant argument for an intrinsic which requires a
2043 constant.
2044
2045 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
2046
2047 * profile.c (compare_freqs): New function.
2048 (branch_prob): Sort edge list.
2049 (find_spanning_tree): Assume that the list is priority sorted.
2050
2051 2017-06-16 Richard Biener <rguenther@suse.de>
2052
2053 PR tree-optimization/81090
2054 * passes.def (pass_record_bounds): Remove.
2055 * tree-pass.h (make_pass_record_bounds): Likewise.
2056 * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
2057 make_pass_record_bounds): Likewise.
2058 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
2059 not free niter estimates at the beginning but at the end.
2060 * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
2061
2062 2017-06-16 Richard Biener <rguenther@suse.de>
2063
2064 * tree-switch-conversion.c (emit_case_bit_tests): Adjust
2065 initializer to workaround ICE in host GCC 4.8.
2066
2067 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
2068
2069 * ipa-inline-transform.c (update_noncloned_frequencies): Update also
2070 counts.
2071 (clone_inlined_nodes): Update.
2072
2073 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2074
2075 * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
2076 prefetch settings, and enable prefetching by default at -O3.
2077
2078 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2079
2080 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2081 Set flag_prefetch_loop_arrays according to tuning data.
2082
2083 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2084
2085 * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
2086 New tune structure.
2087 (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
2088 [Unrelated to main purpose of the patch] Place the pointer field last
2089 to enable type checking errors when tune structure are wrongly merged.
2090 * config/aarch64/aarch64.c (generic_prefetch_tune,)
2091 (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
2092 (thunderx2t99_prefetch_tune): New tune constants.
2093 (tune_params *_tunings): Update all tunings (no functional change).
2094 (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
2095 PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
2096 from tunings structures.
2097
2098 2017-06-16 Jakub Jelinek <jakub@redhat.com>
2099
2100 PR sanitizer/81094
2101 * ubsan.c (instrument_null): Add T argument, use it instead
2102 of computing it based on IS_LHS.
2103 (instrument_object_size): Likewise.
2104 (pass_ubsan::execute): Adjust instrument_null and
2105 instrument_object_size callers to pass gimple_get_lhs or
2106 gimple_assign_rhs1 result to it. Use instrument_null instead of
2107 calling get_base_address and instrument_mem_ref. Handle
2108 aggregate call arguments for object-size sanitization.
2109
2110 2017-06-16 Yury Gribov <tetra2005@gmail.com>
2111
2112 PR tree-optimization/81089
2113 * tree-vrp.c (is_masked_range_test): Validate operands of
2114 subexpression.
2115
2116 2017-06-15 Martin Sebor <msebor@redhat.com>
2117
2118 PR c++/80560
2119 * dumpfile.c (dump_register): Avoid calling memset to initialize
2120 a class with a default ctor.
2121 * gcc.c (struct compiler): Remove const qualification.
2122 * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
2123 * hash-table.h: Ditto.
2124 * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
2125 assignment.
2126 * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
2127 * omp-low.c (lower_omp_ordered_clauses): Replace memset with
2128 default ctor.
2129 * params.h (struct param_info): Make struct members non-const.
2130 * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
2131 with default initialization.
2132 * vec.h (vec_copy_construct, vec_default_construct): New helper
2133 functions.
2134 (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
2135 with vec_copy_construct.
2136 (vect<T>::quick_grow_cleared): Replace memset with default ctor.
2137 (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
2138 * doc/invoke.texi (-Wclass-memaccess): Document.
2139
2140 2017-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2141
2142 * emit-rtl.h (is_leaf): Update comment about local
2143 register allocator.
2144
2145 2017-06-15 Jozef Lawrynowicz <jozef.l@somniumtech.com>
2146
2147 PR target/78818
2148 * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
2149 for a variable to have a section before checking if the section has a
2150 name.
2151 Set section to.persistent if persistent attribute is set.
2152 Warn if .persistent attribute is used on an automatic variable.
2153
2154 2017-06-15 Eric Botcazou <ebotcazou@adacore.com>
2155
2156 PR rtl-optimization/80474
2157 * reorg.c (update_block): Do not ignore instructions in a delay slot.
2158
2159 2017-06-15 Segher Boessenkool <segher@kernel.crashing.org>
2160
2161 * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
2162 of REGNO.
2163
2164 2017-06-14 Maciej W. Rozycki <macro@imgtec.com>
2165
2166 * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
2167 (casesi): Emit bounds checking as RTL.
2168 (casesi_internal_mips16_<mode>): Remove bounds checking.
2169
2170 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
2171
2172 * config/xtensa/xtensa.c (xtensa_option_override): Append
2173 MASK_CONST16 to target_flags in the absence of TARGET_L32R.
2174 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
2175 xtensa_doloop_hooks): Define unconditionally.
2176 (xtensa_reorg_loops): Only call reorg_loops in the presence of
2177 TARGET_LOOPS.
2178 * config/xtensa/xtensa.h (TARGET_L32R): New definition.
2179 (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
2180 for it in xtensa_option_override.
2181 (HARD_FRAME_POINTER_IS_FRAME_POINTER,
2182 HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
2183
2184 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
2185
2186 * doc/cppopts.texi: Document '-' special value to -MF.
2187
2188 2017-06-14 Wilco Dijkstra <wdijkstr@arm.com>
2189
2190 * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
2191 (cortex_a53_fconst): Likewise.
2192 (cortex_a53_fpmul): Likewise.
2193 (cortex_a53_f_load_64): Likewise.
2194 (cortex_a53_f_load_many): Likewise.
2195 (cortex_a53_advsimd_alu): Likewise.
2196 (cortex_a53_advsimd_alu_q): Likewise.
2197 (cortex_a53_advsimd_mul): Likewise.
2198 (cortex_a53_advsimd_mul_q): Likewise.
2199 (fpmac bypass): Add new bypass for fpmac-fpmac case.
2200 Add missing fmul, r2f_cvt and fconst cases.
2201
2202 2017-06-14 Richard Biener <rguenther@suse.de>
2203
2204 PR middle-end/81088
2205 * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
2206 literal constants.
2207 (fold_binary_loc): When associating do not treat pre-existing
2208 TREE_OVERFLOW on literal constants as a reason to allow
2209 TREE_OVERFLOW on associated literal constants.
2210
2211 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
2212
2213 * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
2214 (MASK_FEATURES): New macro.
2215 * config/sparc/sparc.c (sparc_option_override): Remove the special
2216 handling of -mfpu and generalize it to all MASK_FEATURES switches.
2217
2218 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
2219
2220 * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
2221 a division of 0 if non-call exceptions are enabled.
2222
2223 2017-06-14 Andrew Pinski <apinski@cavium.com>
2224 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
2225
2226 PR target/71663
2227 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
2228 Improve vector initialization code gen for only variable case.
2229
2230 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
2231
2232 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
2233
2234 2017-06-14 Richard Biener <rguenther@suse.de>
2235
2236 PR tree-optimization/81083
2237 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
2238 as values.
2239
2240 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2241
2242 * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
2243 (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
2244 * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
2245 * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete. Adjust former use.
2246 * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
2247 * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
2248
2249 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2250
2251 * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
2252 * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
2253
2254 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2255
2256 * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
2257
2258 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2259
2260 * config/rs6000/t-rtems: Don't handle SPE.
2261
2262 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2263
2264 * config/rs6000/t-linux: Don't handle SPE.
2265
2266 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2267
2268 * config/rs6000/eabispe.h: Delete file.
2269
2270 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2271
2272 * config/rs6000/t-spe: Delete file.
2273
2274 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2275
2276 * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
2277 (rs6000_legitimate_offset_address_p): Return false for anything in
2278 V2SImode or V2SFmode.
2279
2280 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
2281
2282 * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
2283 except V2SF and V2SI. Rearrange the vector modes, and add comments.
2284 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
2285 and V4HImode.
2286 (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
2287 (rs6000_legitimate_offset_address_p): Ditto.
2288 (rs6000_emit_move): Ditto.
2289 (rs6000_init_builtins): Remove V4HI_type_node.
2290
2291 2017-06-13 Martin Liska <mliska@suse.cz>
2292
2293 PR sanitize/78204
2294 * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
2295 (gate_asan): Likewise.
2296 * asan.h (asan_no_sanitize_address_p): Remove the function.
2297 (sanitize_flags_p): New function.
2298 * builtins.def: Fix coding style.
2299 * common.opt: Use renamed enum value.
2300 * convert.c (convert_to_integer_1): Use sanitize_flags_p.
2301 * doc/extend.texi: Document no_sanitize attribute.
2302 * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
2303 to SANITIZE_UNDEFINED_NONDEFAULT.
2304 * gcc.c (sanitize_spec_function): Use the renamed enum value.
2305 * gimple-fold.c (optimize_atomic_compare_exchange_p):
2306 Use sanitize_flags_p.
2307 * gimplify.c (gimplify_function_tree): Likewise.
2308 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
2309 * opts.c (parse_no_sanitize_attribute): New function.
2310 (common_handle_option): Use renamed enum value.
2311 * opts.h (parse_no_sanitize_attribute): Declare.
2312 * tree.c (sanitize_flags_p): New function.
2313 * tree.h: Declared here.
2314 * tsan.c: Use sanitize_flags_p.
2315 * ubsan.c (ubsan_expand_null_ifn): Likewise.
2316 (instrument_mem_ref): Likewise.
2317 (instrument_bool_enum_load): Likewise.
2318 (do_ubsan_in_current_function): Remove the function.
2319 (pass_ubsan::execute): Use sanitize_flags_p.
2320 * ubsan.h: Remove do_ubsan_in_current_function
2321 * tree-cfg.c (print_no_sanitize_attr_value): New function.
2322 (dump_function_to_file): Use it here.
2323
2324 2017-06-13 Martin Jambor <mjambor@suse.cz>
2325
2326 PR tree-optimization/80803
2327 PR tree-optimization/81063
2328 * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
2329 (propagate_subaccesses_across_link): Enqueue subtree whenever
2330 necessary instead of relying on the caller.
2331
2332 2017-06-13 Martin Jambor <mjambor@suse.cz>
2333
2334 * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
2335 that have a first_link.
2336 (sort_and_splice_var_accesses): Do not check first_link before
2337 enquing.
2338 (subtree_mark_written_and_enqueue): Likewise.
2339 (propagate_all_subaccesses): Likewise and do not stop at first
2340 parent with a first_link.
2341
2342 2017-06-13 Martin Jambor <mjambor@suse.cz>
2343
2344 * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
2345 instead of f.
2346
2347 2017-06-13 Yury Gribov <tetra2005@gmail.com>
2348
2349 * match.pd: New pattern.
2350
2351 2017-06-13 Yury Gribov <tetra2005@gmail.com>
2352
2353 * tree-vrp.c (is_masked_range_test): New function.
2354 (register_edge_assert_for): Determine ranges for
2355 some bit tests.
2356
2357 2017-06-13 Yury Gribov <tetra2005@gmail.com>
2358
2359 PR tree-optimization/67328
2360 * fold-const.c (maskable_range_p): New function.
2361 (build_range_check): Generate bittests if possible.
2362
2363 2017-06-13 Martin Liska <mliska@suse.cz>
2364
2365 * gimple-pretty-print.c (dump_probability): Add new argument.
2366 (dump_edge_probability): Dump both probability and count.
2367 (dump_gimple_label): Likewise.
2368 (dump_gimple_bb_header): Likewise.
2369
2370 2017-06-13 Georg-Johann Lay <avr@gjlay.de>
2371
2372 PR target/81072
2373 * config/avr/avr-devices.c: Fix indentation.
2374 * config/avr/gen-avr-mmcu-specs.c: Dito.
2375
2376 2017-06-13 Richard Biener <rguenther@suse.de>
2377
2378 * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
2379 instead get vector type from stmt_info.
2380 (vectorizable_reduction): Adjust. Remove dead code.
2381
2382 2017-06-13 Richard Biener <rguenther@suse.de>
2383
2384 PR middle-end/81065
2385 * fold-const.c (extract_muldiv_1): Remove bogus distribution
2386 case of C * (x * C2 + C3).
2387 (fold_addr_of_array_ref_difference): Properly fold index difference.
2388
2389 2017-06-12 David S. Miller <davem@davemloft.net>
2390
2391 PR target/80968
2392 * config/sparc/sparc.md (return expander): Emit frame blockage if
2393 function uses alloca.
2394
2395 2017-06-12 Richard Sandiford <richard.sandiford@linaro.org>
2396
2397 * combine.c (make_field_assignment): Check len rather than the mode
2398 precision when calling force_to_mode.
2399
2400 2017-06-12 Georg-Johann Lay <avr@gjlay.de>
2401
2402 Support multilibs and devices that see flash in RAM address range.
2403
2404 PR target/81072
2405 * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
2406 (avr_mcu_t) <flash_pm_offset>: New field.
2407 (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
2408 * config/avr/avr.h (AVR_SHORT_CALLS): New define.
2409 (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
2410 (AVR_TINY_PM_OFFSET): Remove macro.
2411 * config/avr/avr.opt (-mshort-calls): New option.
2412 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2413 [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
2414 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
2415 <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
2416 <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
2417 instead of avr_arch->have_jmp_call.
2418 <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
2419 [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
2420 avr_arch->flash_pm_offset to define.
2421 * config/avr/avr-devices.c (avr_arch_types): Add initializers for
2422 new field flash_pm_offset. Add entry for avrxmega3.
2423 (avr_texinfo): Add entry for avrxmega3.
2424 * config/avr/avr-mcus.def: Add entries for: avrxmega3,
2425 attiny212, attiny214,
2426 attiny412, attiny414, attiny416, attiny417,
2427 attiny814, attiny816, attiny817,
2428 attiny1614, attiny1616, attiny1617,
2429 attiny3214, attiny3216, attiny3217.
2430 * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
2431 avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
2432 (avr_print_operand_address) [AVR_TINY]: Same.
2433 (avr_asm_init_sections) <readonly_data_section>: Only patch
2434 callback if avr_arch->flash_pm_offset = 0.
2435 (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
2436 for rodata if avr_arch->flash_pm_offset != 0.
2437 (avr_encode_section_info) [AVR_TINY]: Adjust comment.
2438 * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
2439 (opts) [AVR_ISA_RCALL]: Append opt_rcall.
2440 (m_options): Append opt_rcall.
2441 (m_dirnames): Append dir_rcall.
2442 * config/avr/t-multilib: Regenerate.
2443
2444 * configure.ac [target=avr]: Check whether avrxmega3 default
2445 linker description file works as needed.
2446 * configure: Regenerate.
2447 * doc/avr-mmcu.texi: Regenerate.
2448 * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
2449 <__AVR_ARCH__>: Document avrxmega3 and 103.
2450 <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
2451 <__AVR_SHORT_CALLS__>: Document it.
2452 <__AVR_PM_BASE_ADDRESS__>: Document it.
2453 * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
2454 (AVR Variable Attributes) <progmem>: Document this is
2455 not needed for avrxmega3.
2456 (AVR Named Address Spaces) <__flash>: Dito.
2457
2458 2017-06-12 Jan Hubicka <hubicka@ucw.cz>
2459
2460 * cgraph.c (cgraph_node::dump): Complain about profile insanities.
2461
2462 2017-06-12 Doug Rupp <rupp@adacore.com>
2463
2464 * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
2465 Append vxworks-stdint.h to the tm_file list.
2466 * config/vxworks-stdint.h: New file.
2467
2468 2017-06-12 Martin Liska <mliska@suse.cz>
2469
2470 PR tree-optimization/81041
2471 * tree-profile.c (gimple_gen_ic_func_profiler):
2472 Create an extra BB in profile-generate
2473 (gimple_gen_time_profiler): Likewise.
2474
2475 2017-06-12 Jakub Jelinek <jakub@redhat.com>
2476
2477 PR tree-optimization/81003
2478 * tree-ssa-reassoc.c (force_into_ssa_name): New function.
2479 (update_range_test): Use it instead of force_gimple_operand_gsi.
2480
2481 2017-06-12 Richard Biener <rguenther@suse.de>
2482
2483 PR tree-optimization/81053
2484 * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
2485 with backedge value not defined in loop. Simplify def stmt
2486 compute.
2487
2488 2017-06-11 Tom de Vries <tom@codesourcery.com>
2489
2490 PR target/79939
2491 * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
2492 Return true.
2493 (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
2494 nvptx_cannot_force_const_mem.
2495
2496 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
2497
2498 * opts.c (finish_options): Move test for flag_split_stack after
2499 it has been initialized.
2500
2501 2017-06-11 Jason Merrill <jason@redhat.com>
2502
2503 * tree.h (id_equal): New.
2504 * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
2505 omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
2506 instead of strcmp of IDENTIFIER_POINTER.
2507
2508 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
2509
2510 * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
2511 (mark_all_inlined_calls_cdtor): Fix formating.
2512 (inline_transform): Rescale profile before inlining.
2513
2514 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
2515
2516 * cgraph.h (cgraph_edge::clone): Update prototype.
2517 * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
2518 (cgraph_node::create_clone): Update.
2519 (cgraph_node::create_version_clone): Update.
2520 * tree-inline.c (copy_bb): Update.
2521 (expand_call_inline): Update.
2522
2523 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
2524
2525 * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
2526 factored out from ...
2527 (rs6000_emit_prologue): ... here.
2528
2529 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
2530
2531 * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
2532 factored out from ...
2533 (rs6000_emit_prologue): ... here.
2534
2535 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
2536
2537 * predict.c (drop_profile): Also drop individual bb/edge and cgraph
2538 edge counts.
2539 (handle_missing_profiles): Fix computation of tp_first_run.
2540 (counts_to_freqs): Do not touch freqs when count is 0.
2541
2542 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
2543
2544 * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
2545 profile.
2546
2547 2017-06-10 Tom de Vries <tom@codesourcery.com>
2548
2549 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
2550 attributes): Document signal effective target.
2551
2552 2017-06-10 Tom de Vries <tom@codesourcery.com>
2553
2554 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
2555 Document effective target stack_size.
2556
2557 2017-06-09 David Malcolm <dmalcolm@redhat.com>
2558
2559 * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
2560 to the edit_context if they can be auto-applied.
2561
2562 2017-06-9 Ian Lance Taylor <iant@golang.org>
2563
2564 * opts.c (finish_options): If -fsplit-stack, disable implicit
2565 -forder-blocks-and-partition.
2566 * doc/invoke.texi (Optimize Options): Document that when using
2567 -fsplit-stack -forder-blocks-and-partition is not implicitly
2568 enabled.
2569
2570 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
2571
2572 * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
2573 ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
2574 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
2575 * builtins.def (abort, trap, unreachable): Declare cold.
2576 * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
2577 * tree-core.h (ECF_COLD): New.
2578 * tree.c (set_call_expr_flags): Handle ECF_COLD.
2579 (build_common_builtin_nodes): Mark unreachable and abort as cold.
2580
2581 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
2582
2583 * predict.c (unlikely_executed_stmt_p): Cleanup.
2584
2585 2017-06-09 Richard Biener <rguenther@suse.de>
2586
2587 * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
2588 model if the ref is always written to.
2589
2590 2017-06-09 Tamar Christina <tamar.christina@arm.com>
2591
2592 * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
2593
2594 2017-06-09 Tamar Christina <tamar.christina@arm.com>
2595
2596 * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
2597 than udiv.
2598
2599 2017-06-09 Tom de Vries <tom@codesourcery.com>
2600
2601 PR target/80855
2602 * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
2603 "target cannot support label values" when encountering LABEL_REF.
2604
2605 2017-06-09 Martin Liska <mliska@suse.cz>
2606
2607 * tree-profile.c (gimple_gen_ic_profiler): Update comment.
2608 (gimple_gen_ic_func_profiler): Emit direct comparison
2609 of __gcov_indirect_call_callee with NULL.
2610 (gimple_gen_time_profiler): Change probability from
2611 PROB_VERY_UNLIKELY to PROB_UNLIKELY.
2612
2613 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
2614
2615 * profile.c (edge_gcov_counts): Turn to pointer.
2616 (compute_branch_probabilities, compute_branch_probabilities): Update.
2617 (branch_prob): Do not clear edge_gcov_count.
2618 * profile.h (edge_gcov_counts): Turn to pointer.
2619 (edge_gcov_count): Update.
2620
2621 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
2622
2623 * gimple.h (gimple_check_failed): Mark cold.
2624
2625 2017-06-09 Richard Biener <rguenther@suse.de>
2626
2627 PR tree-optimization/66623
2628 * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
2629 refactor check_reduction into two parts, properly computing
2630 whether we have to check reduction validity for outer loop
2631 vectorization.
2632
2633 2017-06-09 Richard Biener <rguenther@suse.de>
2634
2635 PR tree-optimization/79483
2636 * graphite-scop-detection.c (order): New global.
2637 (get_order): Compute bb to order mapping that satisfies code
2638 generation constraints.
2639 (cmp_pbbs): New helper.
2640 (build_scops): Start domwalk at entry block, sort generated
2641 pbbs.
2642
2643 2017-06-09 Richard Biener <rguenther@suse.de>
2644
2645 PR middle-end/81007
2646 * ipa-polymorphic-call.c
2647 (ipa_polymorphic_call_context::restrict_to_inner_class):
2648 Skip FIELD_DECLs with error_mark_node type.
2649 * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
2650 last again.
2651
2652 2017-06-09 Martin Liska <mliska@suse.cz>
2653
2654 * predict.c (struct branch_predictor): New struct.
2655 (test_prediction_value_range): New test.
2656 (predict_c_tests): New function.
2657 * selftest-run-tests.c (selftest::run_tests): Run the function.
2658 * selftest.h: Declare new tests.
2659
2660 2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
2661
2662 PR target/80966
2663 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
2664 gen_add3_insn did not fail.
2665 * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
2666 r0, construct that number in a temporary reg and add that reg to r0.
2667 If asked to put the result in r0 as well, fail.
2668
2669 2017-06-08 Will Schmidt <will_schmidt@vnet.ibm.com>
2670
2671 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
2672 for early expansion of vec_eqv.
2673
2674 2017-06-08 Jakub Jelinek <jakub@redhat.com>
2675
2676 PR middle-end/81005
2677 * ubsan.c (instrument_null): Avoid pointless code temporary.
2678 (pass_ubsan::execute): Instrument aggregate arguments of calls.
2679
2680 2017-06-08 Uros Bizjak <ubizjak@gmail.com>
2681
2682 PR target/81015
2683 Revert:
2684 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
2685
2686 PR target/59874
2687 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
2688 (*clzhi2): Ditto.
2689
2690 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
2691
2692 * predict.c (unlikely_executed_edge_p): Move ahead.
2693 (probably_never_executed_edge_p): Use it.
2694
2695 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2696
2697 PR middle-end/79988
2698 * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
2699 gimple_call_builtin_p call.
2700
2701 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
2702
2703 * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
2704 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
2705 rtl_check_failed_type2, rtl_check_failed_code1,
2706 rtl_check_failed_code2, rtl_check_failed_code_mode,
2707 rtl_check_failed_block_symbol, cwi_check_failed_bounds,
2708 rtvec_check_failed_bounds, rtl_check_failed_flag,
2709 _fatal_insn_not_found, _fatal_insn): Likewise.
2710 * tree.h (tree_contains_struct_check_failed,
2711 tree_check_failed, tree_not_check_failed,
2712 tree_class_check_failed, tree_range_check_failed,
2713 tree_not_class_check_failed, tree_int_cst_elt_check_failed,
2714 tree_vec_elt_check_failed, phi_node_elt_check_failed,
2715 tree_operand_check_failed, omp_clause_check_failed,
2716 omp_clause_operand_check_failed, omp_clause_range_check_failed):
2717 Likewise.
2718
2719 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
2720
2721 * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
2722 flag_branch_probabilities.
2723 * ipa-inline.c (edge_badness): Likewise.
2724 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
2725 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
2726 * predict.c (maybe_hot_frequency_p): Likewise.
2727 (probably_never_executed): Likewise.
2728 * sched-ebb.c (schedule_ebbs): Likewise.
2729 * sched-rgn.c (find_single_block_region): Likewise.
2730 * tracer.c (tail_duplicate): Likewise.
2731
2732 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
2733
2734 * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
2735 longer requires x_flag_profile_use.
2736
2737 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
2738
2739 * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
2740 instead of flag_reorder_blocks_and_partition.
2741 * dbxout.c (dbxout_function_end): Likewise.
2742 * dwarf2out.c (gen_subprogram_die): Likewise.
2743 * haifa-sched.c (sched_create_recovery_edges): Likewise.
2744 * hw-doloop.c (reorg_loops): Likewise.
2745 * varasm.c (assemble_start_function,
2746 assemble_end_function): Likewise.
2747 (decide_function_section): Do not check for
2748 flag_reorder_blocks_and_partition.
2749
2750 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2751
2752 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
2753 New function.
2754 (chkp_get_hard_register_fake_addr_expr): Ditto.
2755 (chkp_build_addr_expr): Add check for hard reg case.
2756 (chkp_parse_array_and_component_ref): Ditto.
2757 (chkp_find_bounds_1): Ditto.
2758 (chkp_process_stmt): Don't generate bounds store for
2759 hard reg case.
2760
2761 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
2762
2763 * predict.c (maybe_hot_bb_p): Do not check profile status.
2764 (maybe_hot_edge_p): Likewise.
2765 (probably_never_executed): Check for zero counts even if profile
2766 is not read.
2767 (unlikely_executed_edge_p): New function.
2768 (unlikely_executed_stmt_p): New function.
2769 (unlikely_executed_bb_p): New function.
2770 (set_even_probabilities): Use unlikely predicates.
2771 (combine_predictions_for_bb): Likewise.
2772 (predict_paths_for_bb): Likewise.
2773 (predict_paths_leading_to_edge): Likewise.
2774 (determine_unlikely_bbs): New function.
2775 (estimate_bb_frequencies): Use it.
2776 (compute_function_frequency): Use zero counts even if profile is
2777 not read.
2778 * profile-count.h: Fix typo.
2779
2780 2017-08-08 Julia Koval <julia.koval@intel.com>
2781
2782 * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
2783 _mm512_mask_cvtsepi16_storeu_epi8,
2784 _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
2785 * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
2786 _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
2787 _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
2788 _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
2789 * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
2790 (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
2791 VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
2792 * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
2793 __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
2794 __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
2795 __builtin_ia32_pmovuswb256mem_mask,
2796 __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
2797 __builtin_ia32_pmovwb512mem_mask): New builtins.
2798
2799 2017-08-08 Julia Koval <julia.koval@intel.com>
2800
2801 PR target/73350,80862
2802 * config/i386/subst.md (round): Fix round pattern.
2803 * config/i386/i386.c (ix86_erase_embedded_rounding):
2804 Fix erasing rounding for the fixed pattern.
2805
2806 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
2807
2808 * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
2809
2810 2017-06-08 Martin Liska <mliska@suse.cz>
2811
2812 PR gcov-profile/80911
2813 * gcov.c (block_info::block_info): New constructor.
2814
2815 2017-06-07 Carl Love <cel@us.ibm.com>
2816
2817 * config/rs6000/rs6000-c: The return type of the following
2818 built-in functions was implemented as int not long long. Fix sign
2819 of return value for the unsigned version of vec_mulo and vec_mule.
2820 vector unsigned long long vec_bperm (vector unsigned long long,
2821 vector unsigned char)
2822 vector signed long long vec_mule (vector signed int,
2823 vector signed int)
2824 vector unsigned long long vec_mule (vector unsigned int,
2825 vector unsigned int)
2826 vector signed long long vec_mulo (vector signed int,
2827 vector signed int)
2828 vector unsigned long long vec_mulo (vector unsigned int,
2829 vector unsigned int)
2830 * doc/extend.texi: Fix the documentation for the built-in
2831 functions.
2832
2833 2017-06-07 Carl Love <cel@us.ibm.com>
2834
2835 PR target/80982
2836 * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
2837 for BE.
2838
2839 2017-06-07 Carl Love <cel@us.ibm.com>
2840
2841 * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
2842 support, Generate doublehv for signed int/float for BE case only.
2843
2844 2017-06-07 Alexander Monakov <amonakov@ispras.ru>
2845
2846 * doc/invoke.texi (mcx16): Rewrite.
2847
2848 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2849
2850 * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
2851 * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
2852 *mov<mode>_softfloat, and an anonymous splitter): Use
2853 nonimmediate_operand instead of rs6000_nonimmediate_operand.
2854
2855 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2856
2857 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
2858 SPEFSCR registers.
2859 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
2860 (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
2861 (rs6000_debug_reg_global): Adjust.
2862 (rs6000_init_hard_regno_mode_ok): Adjust.
2863 (rs6000_dbx_register_number): Adjust.
2864 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
2865 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2866 Remove SPE_ACC and SPEFSCR.
2867 (REG_ALLOC_ORDER): Ditto.
2868 (FRAME_POINTER_REGNUM): Change to 111.
2869 (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
2870 (REG_CLASS_NAMES): Ditto.
2871 (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
2872 (REGISTER_NAMES): Ditto.
2873 (ADDITIONAL_REG_NAMES): Ditto.
2874 (rs6000_reg_names): Ditto.
2875 * config/rs6000/rs6000.md: Renumber some register number
2876 define_constants.
2877
2878 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2879
2880 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
2881 registers.
2882 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
2883 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
2884 to 117.
2885 (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
2886 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2887 Delete the SPE high registers.
2888 (REG_ALLOC_ORDER): Ditto.
2889 (enum reg_class): Remove SPE_HIGH_REGS.
2890 (REG_CLASS_NAMES): Ditto.
2891 (REG_CLASS_CONTENTS): Delete the SPE high registers.
2892 (REGISTER_NAMES): Ditto.
2893 (rs6000_reg_names): Ditto.
2894 * doc/tm.texi.in: Remove SPE as example.
2895 * doc/tm.texi: Regenerate.
2896
2897 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2898
2899 * config/rs6000/8540.md (ppc8540_brinc): Delete.
2900 * config/rs6000/e500mc.md (e500mc_brinc): Delete.
2901 * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
2902 * config/rs6000/rs6000.md (type): Remove "brinc".
2903
2904 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2905
2906 * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
2907 (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
2908 * config/rs6000/linuxspe.h: Delete file.
2909 * config/rs6000/rs6000.md: Don't include spe.md.
2910 * config/rs6000/spe.h: Delete file.
2911 * config/rs6000/spe.md: Delete file.
2912 * config/rs6000/t-rs6000: Remove spe.md.
2913
2914 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2915
2916 * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
2917 (reg_or_none500mem_operand): Delete.
2918 * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
2919 instead of reg_or_none500mem_operand.
2920
2921 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2922
2923 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
2924 handling of SPE flags.
2925 * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
2926
2927 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2928
2929 * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
2930 SPE ABI handling.
2931 * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
2932 (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
2933 paired_divv2sf3): Similar.
2934 * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
2935 SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
2936 * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
2937 RS6000_BUILTIN_S.
2938 Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
2939 Rename the paired_* instruction patterns.
2940 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
2941 define __SPE__.
2942 * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
2943 * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
2944 (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
2945 spe_padding_size, and spe_64bit_regs_used. Replace TARGET_SPE and
2946 TARGET_SPE_ABI with 0, simplify. Replace SPE_VECTOR_MODE with
2947 PAIRED_VECTOR_MODE.
2948 (struct machine_function): Delete field spe_insn_chain_scanned_p.
2949 (spe_func_has_64bit_regs_p): Delete.
2950 (spe_expand_predicate_builtin): Delete.
2951 (spe_expand_evsel_builtin): Delete.
2952 (TARGET_DWARF_REGISTER_SPAN): Do not define.
2953 (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
2954 (invalid_e500_subreg): Delete.
2955 (rs6000_legitimize_address): Always force_reg op2 as well, for
2956 paired single memory accesses.
2957 (rs6000_member_type_forces_blk): Delete.
2958 (rs6000_spe_function_arg): Delete.
2959 (rs6000_expand_unop_builtin): Delete SPE handling.
2960 (rs6000_expand_binop_builtin): Ditto.
2961 (spe_expand_stv_builtin): Delete.
2962 (bdesc_2arg_spe): Delete.
2963 (spe_expand_builtin): Delete.
2964 (spe_expand_predicate_builtin): Delete.
2965 (spe_expand_evsel_builtin): Delete.
2966 (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
2967 (spe_init_builtins): Delete.
2968 (spe_func_has_64bit_regs_p): Delete.
2969 (savres_routine_name): Delete "info" parameter. Adjust callers.
2970 (rs6000_emit_stack_reset): Ditto.
2971 (rs6000_dwarf_register_span): Delete.
2972 * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
2973 UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
2974 SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
2975 Delete.
2976 * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
2977 Delete.
2978 * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
2979 * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
2980 * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
2981 mulv2sf3, divv2sf3): Delete expanders.
2982
2983 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2984
2985 config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
2986
2987 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2988
2989 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
2990 * config/rs6000/rs6000.c: Ditto.
2991
2992 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2993
2994 * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
2995 * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
2996 comparison_operator.
2997
2998 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
2999
3000 * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
3001 * config/rs6000/rs6000.opt: Ditto.
3002 * config/rs6000/t-rtems: Ditto.
3003
3004 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
3005
3006 * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
3007 TARGET_E500_SINGLE by 0, simplify.
3008 * config/rs6000/rs6000.c: Ditto.
3009 (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
3010 (spe_build_register_parallel): Delete.
3011 * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
3012 TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
3013 * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
3014 TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
3015 (E500_CONVERT): Delete.
3016 * config/rs6000/spe.md: Remove many patterns and all define_constants.
3017
3018 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
3019
3020 * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
3021 * config/rs6000/dfp.md: Ditto.
3022 (negdd2, *negdd2_fpr): Merge.
3023 (absdd2, *absdd2_fpr): Merge.
3024 (negtd2, *negtd2_fpr): Merge.
3025 (abstd2, *abstd2_fpr): Merge.
3026 * config/rs6000/e500.h: Delete file.
3027 * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
3028 TARGET_FPRS by 1 and simplify.
3029 * config/rs6000/rs6000-c.c: Ditto.
3030 * config/rs6000/rs6000.c: Ditto. Also replace TARGET_SF_SPE and
3031 TARGET_DF_SPE by 0.
3032 * config/rs6000/rs6000.h: Ditto. Delete TARGET_SF_SPE and
3033 TARGET_DF_SPE.
3034 * config/rs6000/rs6000.md: Ditto.
3035 (floatdidf2, *floatdidf2_fpr): Merge.
3036 (move_from_CR_gt_bit): Delete.
3037 * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
3038 (E500_CR_IOR_COMPARE): Delete.
3039 (All patterns that require !TARGET_FPRS): Delete.
3040 * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
3041
3042 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3043
3044 * passes.def (pass_iv_canon): Move before pass_loop_distribution.
3045
3046 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3047
3048 * graphds.c (add_edge): Intitialize edge's attached data.
3049 (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
3050 pointer parameter. Call pointed function on each edge during
3051 graph traversing. Skip traversing the edge when the function
3052 returns true.
3053 (graphds_dfs, graphds_scc): Ditto.
3054 (for_each_edge): New parameter. Pass the new parameter to callback
3055 function.
3056 * graphds.h (skip_edge_callback): New function pointer type.
3057 (graphds_dfs, graphds_scc): New function pointer parameter.
3058 (graphds_edge_callback, for_each_edge): New parameter.
3059
3060 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3061
3062 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
3063 out code checking if runtime alias check is possible to below ...
3064 Call the new function.
3065 * tree-data-ref.c (runtime_alias_check_p): ... to new function.
3066 * tree-data-ref.h (runtime_alias_check_p): New decalaration.
3067
3068 2017-06-07 Marek Polacek <polacek@redhat.com>
3069
3070 PR sanitizer/80932
3071 * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
3072 TYPE_OVERFLOW_WRAPS check.
3073
3074 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3075
3076 * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
3077 if versioning is required.
3078 * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
3079 peeling with the check for versioning.
3080
3081 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3082
3083 * tree-vectorizer.h (vect_build_loop_niters): New parameter.
3084 * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
3085 Set true to new parameter if new ssa variable is defined.
3086 (vect_gen_vector_loop_niters): Refactor. Set range information
3087 for the new vector loop bound variable.
3088 (vect_do_peeling): Ditto.
3089
3090 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3091
3092 * tree-affine.c (ssa.h): Include header file.
3093 (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
3094 has wrapping overflow behavior.
3095
3096 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3097
3098 * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
3099
3100 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3101
3102 (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
3103 (tree_to_aff_combination): ... here.
3104
3105 2017-06-07 Bin Cheng <bin.cheng@arm.com>
3106
3107 * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
3108 reg_pressure model function.
3109 (ivopts_global_cost_for_size): Delete.
3110 (determine_set_costs, iv_ca_recount_cost): Call new model function
3111 ivopts_estimate_reg_pressure.
3112
3113 2017-06-07 Tamar Christina <tamar.christina@arm.com>
3114
3115 * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more expensive than udiv.
3116 Remove floating point cases from mod.
3117
3118 2017-06-07 Tamar Christina <tamar.christina@arm.com>
3119
3120 * config/arm/aarch-cost-tables.h (cortexa53_extra_cost): Increase idiv cost.
3121
3122 2017-06-07 Tamar Christina <tamar.christina@arm.com>
3123
3124 * config/aarch64/aarch64.md
3125 (copysignsf3): Fix mask generation.
3126
3127 2017-06-07 Jakub Jelinek <jakub@redhat.com>
3128
3129 * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
3130 TDI_gimple.
3131 (class dump_manager): Add register_dumps method.
3132 * dumpfile.c: Include langhooks.h.
3133 (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
3134 (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
3135 (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
3136 (dump_manager::dump_register): Start with 512 entries instead of 32.
3137 (dump_manager::register_dumps): New method.
3138 * toplev.c (general_init): Instead of invoking register_dumps
3139 langhook, invoke register_dumps method on the dump manager.
3140 * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
3141 TDI_generic.
3142
3143 2017-06-07 Richard Sandiford <richard.sandiford@linaro.org>
3144
3145 * doc/md.texi: Clarify the restrictions on a define_insn condition.
3146 Say that # requires an associated define_split to exist, and that
3147 the define_split must be suitable for use after register allocation.
3148
3149 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
3150
3151 * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
3152 (compute_outgoing_frequencies): Also initialize zero counts.
3153 (find_many_sub_basic_blocks): Do not produce uninitialized profile
3154 around loops; preserve more of profile when nothing changes.
3155
3156 2017-06-06 Jim Wilson <jim.wilson@linaro.org>
3157
3158 * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
3159 here.
3160 * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
3161 * config/arm/arm-cpu-cdata.h: Regenerate.
3162 * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
3163 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
3164 * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
3165 * config/arm/arm.c (arm_qdf24xx_tune): Delete.
3166 * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
3167 support.
3168 * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
3169 support.
3170 * config/arm/t-rmprofile: Likewise.
3171 * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
3172
3173 2017-06-06 David S. Miller <davem@davemloft.net>
3174
3175 PR target/80968
3176 * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
3177 blockage if function uses alloca.
3178
3179 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3180
3181 * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
3182 New "uid" fields to hold pretty-print IDs of group and ref.
3183 Memory references are now identified as <group_id>:<ref_id>
3184 instead of using [random] addresses.
3185 (dump_mem_details): Simplify, no functional change.
3186 (dump_mem_ref): Simplify and make output more concise.
3187 Replace couple of fprintf's throughout code with calls to dump_mem_ref.
3188 (find_or_create_group): Initialize group uid.
3189 (record_ref): Initialize ref uid. Improve debug output.
3190 (prune_group_by_reuse, should_issue_prefetch_p,)
3191 (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
3192 (mark_nontemporal_store, determine_loop_nest_reuse):
3193 Improve debug output.
3194
3195 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3196
3197 * dbgcnt.def (prefetch): New debug counter.
3198 * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
3199 (schedule_prefetches): Stop issueing prefetches if debug counter
3200 tripped.
3201
3202 2017-06-06 Tom de Vries <tom@codesourcery.com>
3203
3204 * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
3205 gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
3206
3207 2017-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3208
3209 * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
3210 Use aarch64_reg_or_zero predicate for operand 4.
3211 (aarch64_compare_and_swap<mode> define_insn_and_split):
3212 Use aarch64_reg_or_zero predicate for operand 3. Add 'Z' constraint.
3213 (aarch64_store_exclusive<mode>): Likewise for operand 2.
3214
3215 2017-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
3216
3217 * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
3218 (arm_compute_save_core_reg_mask): This.
3219 (thumb1_compute_save_reg_mask): Rename into ...
3220 (thumb1_compute_save_core_reg_mask): This.
3221 (arm_compute_save_reg0_reg12_mask): Adapt comment.
3222 (arm_compute_frame_layout): Likewise.
3223
3224 2017-06-06 Richard Biener <rguenther@suse.de>
3225
3226 PR tree-optimization/80974
3227 * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
3228 keep or clear leaders SSA info.
3229
3230 2017-06-06 Tom de Vries <tom@codesourcery.com>
3231
3232 * config/nvptx/nvptx.c (split_mode_p): New function.
3233 (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
3234
3235 2017-06-06 Tom de Vries <tom@codesourcery.com>
3236
3237 * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
3238
3239 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
3240
3241 PR bootstrap/80978
3242 * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
3243 profile.
3244
3245 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
3246
3247 * shrink-wrap.c (handle_simple_exit): Update profile.
3248 (try_shrink_wrapping): Upate profile.
3249
3250 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
3251
3252 * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
3253 (tree_guess_outgoing_edge_probabilities): New.
3254 * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
3255 * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
3256
3257 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
3258
3259 * ipa-split.c (split_function): Initialize return bb profile.
3260
3261 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
3262
3263 * profile.c (compute_branch_probabilities): Also initialize
3264 EXIT_BLOCK profile.
3265
3266 2017-06-06 Richard Biener <rguenther@suse.de>
3267
3268 PR tree-optimization/80928
3269 * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
3270 (vect_analyze_loop_operations): Properly guard analysis for
3271 pure SLP case.
3272 (vect_transform_loop): Likewise.
3273 (vect_analyze_loop_2): Also reset SLP type on PHIs.
3274 (vect_model_induction_cost): Do not cost for pure SLP.
3275 (vectorizable_induction): Pass in SLP node, implement SLP vectorization
3276 of induction in inner loop vectorization.
3277 * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
3278 (vect_get_and_check_slp_defs): Handle vect_induction_def.
3279 (vect_build_slp_tree): Likewise. Handle PHIs as terminating the
3280 recursion.
3281 (vect_analyze_slp_cost_1): Cost induction.
3282 (vect_detect_hybrid_slp_stmts): Handle PHIs.
3283 (vect_get_slp_vect_defs): Likewise.
3284 * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
3285 (vect_transform_stmt): Handle SLP reductions.
3286 * tree-vectorizer.h (vectorizable_induction): Adjust.
3287
3288 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
3289
3290 * config/rs6000/rs6000.c (make_resolver_func): Update
3291 init_lowered_empty_function call.
3292
3293 2017-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3294
3295 * doc/invoke.texi: Document the -fprofile-abs-path option.
3296 * common.opt (fprofile-abs-path): New option.
3297 * gcov-io.h (gcov_write_filename): Declare.
3298 * gcov-io.c (gcov_write_filename): New function.
3299 * coverage.c (coverage_begin_function): Use gcov_write_filename.
3300 * profile.c (output_location): Likewise.
3301
3302 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
3303
3304 * shring-wrap.c: Revert accidental commit.
3305
3306 2017-06-05 Volker Reichelt <v.reichelt@netcologne.de>
3307
3308 * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
3309
3310 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
3311
3312 * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
3313 new edge.
3314 * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
3315 profile in callgraph edge.
3316 * profile-count.h (apply_probability): If THIS is 0, then result is 0
3317 (apply_scale): Likewise.
3318 * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
3319 Also scale profile when inlining function with zero profile.
3320 (initialize_cfun): Update exit block profile even when it is zero.
3321 * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
3322 when profile is read.
3323
3324 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
3325
3326 * config/rs6000/rs6000.c (toplevel): Include attribs.h.
3327 (CLONE_*): New constants to define the processors we can generate
3328 code for with the target_clone attribute.
3329 (rs6000_clone_map): New array to identify which clone processors
3330 the current program is running on.
3331 (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
3332 target_clone attribute.
3333 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
3334 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
3335 (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
3336 (cpu_expand_builtin): Add support for target_clone attribute.
3337 (rs6000_valid_attribute_p): Allow "default" attribute.
3338 (get_decl_name): New debug function to simplify printing the
3339 current function name in debugging statements.
3340 (rs6000_clone_priority): New functions to support the target_clone
3341 attribute, and be able to generate code to switch between ISA 2.05
3342 through ISA 3.0 (power6 through power9).
3343 (rs6000_compare_version_priority): Likewise.
3344 (rs6000_get_function_versions_dispatcher): Likewise.
3345 (make_resolver_func): Likewise.
3346 (add_condition_to_bb): Likewise.
3347 (dispatch_function_versions): Likewise.
3348 (rs6000_generate_version_dispatcher_body): Likewise.
3349 (rs6000_can_inline_p): Call get_decl_name for debugging usage.
3350 (fusion_gpr_load_p): Fix a spacing issue.
3351 * doc/extend.texi (Common Function Attributes): Document that the
3352 PowerPC supports the target_clone attribute.
3353
3354 2017-06-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
3355
3356 * config/arm/arm.h: explain F symbol found in description of ARM
3357 register allocation in its legend.
3358
3359 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
3360
3361 * config/mips/frame-header-opt.c: Include profile-count.h.
3362 * config/riscv/riscv.c: Include profile-count.h
3363
3364 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
3365
3366 * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
3367 update profile.
3368 (sm_set_flag_if_changed): Add bbs field.
3369 (execute_sm_if_changed_flag_set): Pass BBS.
3370 (execute_sm): Update.
3371
3372 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3373
3374 * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
3375 New pattern.
3376
3377 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3378
3379 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
3380 (peephole2): New peephole2 to emit the above.
3381 * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
3382
3383 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3384
3385 * config/aarch64/aarch64.c (define_peephole2 above
3386 *sub_<shift>_<mode>): New peephole.
3387
3388 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
3389
3390 * config/i386/i386.c (make_resolver_func): Update.
3391 * Makefile.in: Add profile-count.h and profile-count.o
3392 * auto-profile.c (afdo_indirect_call): Update to new API.
3393 (afdo_set_bb_count): Update.
3394 (afdo_propagate_edge): Update.
3395 (afdo_propagate_circuit): Update.
3396 (afdo_calculate_branch_prob): Update.
3397 (afdo_annotate_cfg): Update.
3398 * basic-block.h: Include profile-count.h
3399 (struct edge_def): Turn count to profile_count.
3400 (struct basic_block_def): Likewie.
3401 (REG_BR_PROB_BASE): Move to profile-count.h
3402 (RDIV): Move to profile-count.h
3403 * bb-reorder.c (max_entry_count): Turn to profile_count.
3404 (find_traces): Update.
3405 (rotate_loop):Update.
3406 (connect_traces):Update.
3407 (sanitize_hot_paths):Update.
3408 * bt-load.c (migrate_btr_defs): Update.
3409 * cfg.c (RDIV): Remove.
3410 (init_flow): Use alloc_block.
3411 (alloc_block): Uninitialize count.
3412 (unchecked_make_edge): Uninitialize count.
3413 (check_bb_profile): Update.
3414 (dump_edge_info): Update.
3415 (dump_bb_info): Update.
3416 (update_bb_profile_for_threading): Update.
3417 (scale_bbs_frequencies_int): Update.
3418 (scale_bbs_frequencies_gcov_type): Update.
3419 (scale_bbs_frequencies_profile_count): New.
3420 * cfg.h (update_bb_profile_for_threading): Update.
3421 (scale_bbs_frequencies_profile_count): Declare.
3422 * cfgbuild.c (compute_outgoing_frequencies): Update.
3423 (find_many_sub_basic_blocks): Update.
3424 * cfgcleanup.c (try_forward_edges): Update.
3425 (try_crossjump_to_edge): Update.
3426 * cfgexpand.c (expand_gimple_tailcall): Update.
3427 (construct_exit_block): Update.
3428 * cfghooks.c (verify_flow_info): Update.
3429 (dump_bb_for_graph): Update.
3430 (split_edge): Update.
3431 (make_forwarder_block): Update.
3432 (duplicate_block): Update.
3433 (account_profile_record): Update.
3434 * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
3435 (get_estimated_loop_iterations): Update.
3436 * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
3437 (single_likely_exit): Update.
3438 * cfgloopmanip.c (scale_loop_profile): Update.
3439 (loopify): Update.
3440 (set_zero_probability): Update.
3441 (lv_adjust_loop_entry_edge): Update.
3442 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
3443 (purge_dead_edges): Update.
3444 (rtl_account_profile_record): Update.
3445 * cgraph.c (cgraph_node::create): Uninitialize count.
3446 (symbol_table::create_edge): Uninitialize count.
3447 (cgraph_update_edges_for_call_stmt_node): Update.
3448 (cgraph_edge::dump_edge_flags): Update.
3449 (cgraph_node::dump): Update.
3450 (cgraph_edge::maybe_hot_p): Update.
3451 * cgraph.h: Include profile-count.h
3452 (create_clone), create_edge, create_indirect_edge): Update.
3453 (cgraph_node): Turn count to profile_count.
3454 (cgraph_edge0: Likewise.
3455 (make_speculative, clone): Update.
3456 (create_edge): Update.
3457 (init_lowered_empty_function): Update.
3458 * cgraphclones.c (cgraph_edge::clone): Update.
3459 (duplicate_thunk_for_node): Update.
3460 (cgraph_node::create_clone): Update.
3461 * cgraphunit.c (cgraph_node::analyze): Update.
3462 (cgraph_node::expand_thunk): Update.
3463 * final.c (dump_basic_block_info): Update.
3464 * gimple-streamer-in.c (input_bb): Update.
3465 * gimple-streamer-out.c (output_bb): Update.
3466 * graphite.c (print_global_statistics): Update.
3467 (print_graphite_scop_statistics): Update.
3468 * hsa-brig.c: Include basic-block.h.
3469 * hsa-dump.c: Include basic-block.h.
3470 * hsa-gen.c (T sum_slice): Update.
3471 (convert_switch_statements):Update.
3472 * hsa-regalloc.c: Include basic-block.h.
3473 * ipa-chkp.c (chkp_produce_thunks): Update.
3474 * ipa-cp.c (struct caller_statistics): Update.
3475 (init_caller_stats): Update.
3476 (gather_caller_stats): Update.
3477 (ipcp_cloning_candidate_p): Update.
3478 (good_cloning_opportunity_p): Update.
3479 (get_info_about_necessary_edges): Update.
3480 (dump_profile_updates): Update.
3481 (update_profiling_info): Update.
3482 (update_specialized_profile): Update.
3483 (perhaps_add_new_callers): Update.
3484 (decide_about_value): Update.
3485 (ipa_cp_c_finalize): Update.
3486 * ipa-devirt.c (struct odr_type_warn_count): Update.
3487 (struct decl_warn_count): Update.
3488 (struct final_warning_record): Update.
3489 (possible_polymorphic_call_targets): Update.
3490 (ipa_devirt): Update.
3491 * ipa-fnsummary.c (redirect_to_unreachable): Update.
3492 * ipa-icf.c (sem_function::merge): Update.
3493 * ipa-inline-analysis.c (do_estimate_edge_time): Update.
3494 * ipa-inline.c (compute_uninlined_call_time): Update.
3495 (compute_inlined_call_time): Update.
3496 (want_inline_small_function_p): Update.
3497 (want_inline_self_recursive_call_p): Update.
3498 (edge_badness): Update.
3499 (lookup_recursive_calls): Update.
3500 (recursive_inlining): Update.
3501 (inline_small_functions): Update.
3502 (dump_overall_stats): Update.
3503 (dump_inline_stats): Update.
3504 * ipa-profile.c (ipa_profile_generate_summary): Update.
3505 (ipa_propagate_frequency): Update.
3506 (ipa_profile): Update.
3507 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
3508 * ipa-utils.c (ipa_merge_profiles): Update.
3509 * loop-doloop.c (doloop_modify): Update.
3510 * loop-unroll.c (report_unroll): Update.
3511 (unroll_loop_runtime_iterations): Update.
3512 * lto-cgraph.c (lto_output_edge): Update.
3513 (lto_output_node): Update.
3514 (input_node): Update.
3515 (input_edge): Update.
3516 (merge_profile_summaries): Update.
3517 * lto-streamer-in.c (input_cfg): Update.
3518 * lto-streamer-out.c (output_cfg): Update.
3519 * mcf.c (create_fixup_graph): Update.
3520 (adjust_cfg_counts): Update.
3521 (sum_edge_counts): Update.
3522 * modulo-sched.c (sms_schedule): Update.
3523 * postreload-gcse.c (eliminate_partially_redundant_load): Update.
3524 * predict.c (maybe_hot_count_p): Update.
3525 (probably_never_executed): Update.
3526 (dump_prediction): Update.
3527 (combine_predictions_for_bb): Update.
3528 (propagate_freq): Update.
3529 (handle_missing_profiles): Update.
3530 (counts_to_freqs): Update.
3531 (rebuild_frequencies): Update.
3532 (force_edge_cold): Update.
3533 * predict.h: Include profile-count.h
3534 (maybe_hot_count_p, counts_to_freqs): UPdate.
3535 * print-rtl-function.c: Do not include cfg.h
3536 * print-rtl.c: Include basic-block.h
3537 * profile-count.c: New file.
3538 * profile-count.h: New file.
3539 * profile.c (is_edge_inconsistent): Update.
3540 (correct_negative_edge_counts): Update.
3541 (is_inconsistent): Update.
3542 (set_bb_counts): Update.
3543 (read_profile_edge_counts): Update.
3544 (compute_frequency_overlap): Update.
3545 (compute_branch_probabilities): Update; Initialize and deinitialize
3546 gcov_count tables.
3547 (branch_prob): Update.
3548 * profile.h (bb_gcov_counts, edge_gcov_counts): New.
3549 (edge_gcov_count): New.
3550 (bb_gcov_count): New.
3551 * shrink-wrap.c (try_shrink_wrapping): Update.
3552 * tracer.c (better_p): Update.
3553 * trans-mem.c (expand_transaction): Update.
3554 (ipa_tm_insert_irr_call): Update.
3555 (ipa_tm_insert_gettmclone_call): Update.
3556 * tree-call-cdce.c: Update.
3557 * tree-cfg.c (gimple_duplicate_sese_region): Update.
3558 (gimple_duplicate_sese_tail): Update.
3559 (gimple_account_profile_record): Update.
3560 (execute_fixup_cfg): Update.
3561 * tree-inline.c (copy_bb): Update.
3562 (copy_edges_for_bb): Update.
3563 (initialize_cfun): Update.
3564 (freqs_to_counts): Update.
3565 (copy_cfg_body): Update.
3566 (expand_call_inline): Update.
3567 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
3568 * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
3569 (try_unroll_loop_completely): Update.
3570 (try_peel_loop): Update.
3571 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
3572 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
3573 * tree-ssa-loop-split.c (connect_loops): Update.
3574 * tree-ssa-loop-unswitch.c (hoist_guard): Update.
3575 * tree-ssa-reassoc.c (branch_fixup): Update.
3576 * tree-ssa-tail-merge.c (replace_block_by): Update.
3577 * tree-ssa-threadupdate.c (create_block_for_threading): Update.
3578 (compute_path_counts): Update.
3579 (update_profile): Update.
3580 (recompute_probabilities): Update.
3581 (update_joiner_offpath_counts): Update.
3582 (estimated_freqs_path): Update.
3583 (freqs_to_counts_path): Update.
3584 (clear_counts_path): Update.
3585 (ssa_fix_duplicate_block_edges): Update.
3586 (duplicate_thread_path): Update.
3587 * tree-switch-conversion.c (case_bit_test_cmp): Update.
3588 (struct switch_conv_info): Update.
3589 * tree-tailcall.c (decrease_profile): Update.
3590 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
3591 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
3592 * value-prof.c (check_counter): Update.
3593 (gimple_divmod_fixed_value): Update.
3594 (gimple_mod_pow2): Update.
3595 (gimple_mod_subtract): Update.
3596 (gimple_ic_transform): Update.
3597 (gimple_stringop_fixed_value): Update.
3598 * value-prof.h (gimple_ic): Update.
3599
3600 2017-06-02 Carl Love <cel@us.ibm.com>
3601
3602 * config/rs6000/rs6000-c: Add support for built-in functions
3603 vector double vec_doublee (vector signed int);
3604 vector double vec_doublee (vector unsigned int);
3605 vector double vec_doublee (vector float);
3606 vector double vec_doubleh (vector signed int);
3607 vector double vec_doubleh (vector unsigned int);
3608 vector double vec_doubleh (vector float);
3609 vector double vec_doublel (vector signed int);
3610 vector double vec_doublel (vector unsigned int);
3611 vector double vec_doublel (vector float);
3612 vector double vec_doubleo (vector signed int);
3613 vector double vec_doubleo (vector unsigned int);
3614 vector double vec_doubleo (vector float);.
3615 * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
3616 DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
3617 UNS_DOUBLEL.
3618 * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
3619 unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
3620 unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
3621 VS_sxwsp.
3622 * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
3623 vec_doublel, vec_doubleh.
3624 * doc/extend.texi: Update the built-in documentation file for the
3625 new built-in functions.
3626
3627 2017-06-02 David Malcolm <dmalcolm@redhat.com>
3628
3629 PR jit/80954
3630 * ipa-inline-analysis.c (free_growth_caches): Set
3631 edge_removal_hook_holder to NULL after removing it.
3632
3633 2017-06-02 Sudakshina Das <sudi.das@arm.com>
3634
3635 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
3636 comparision with zero.
3637
3638 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
3639 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
3640 for early expansion of vec_min and vec_max builtins.
3641 (builtin_function_type): Add min/max unsigned variants to those
3642 identified as having unsigned arguments.
3643
3644 2017-06-02 Olivier Hainque <hainque@adacore.com>
3645
3646 * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
3647
3648 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3649
3650 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
3651 Use VALL_F16 iterator rather than VALL.
3652
3653 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3654
3655 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
3656 Emit CBNZ inside loop when doing a strong exchange and comparing
3657 against zero. Generate the CC flags after the loop.
3658
3659 2017-06-02 David Edelsohn <dje.gcc@gmail.com>
3660
3661 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
3662 (dl_section_ref): New.
3663 (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
3664 On AIX, append an expression to subtract the size of the
3665 section length to dl_section_ref.
3666
3667 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
3668
3669 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
3670 for early expansion of vector absolute builtins.
3671
3672 2017-06-02 Richard Biener <rguenther@suse.de>
3673
3674 * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
3675 what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
3676
3677 2017-06-02 Richard Biener <rguenther@suse.de>
3678
3679 PR tree-optimization/80948
3680 * tree-tailcall.c (find_tail_calls): Track stmts to move in
3681 stmt order as well.
3682
3683 2017-06-02 Richard Biener <rguenther@suse.de>
3684
3685 * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
3686 PHIs are ok.
3687 * tree-vect-stmts.c (process_use): Do not mark backedge defs
3688 for inductions as relevant.
3689
3690 2017-06-02 Richard Biener <rguenther@suse.de>
3691
3692 * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
3693 (vectorizable_induction): ... this. Remove dead code.
3694
3695 2017-06-02 Eric Botcazou <ebotcazou@adacore.com>
3696
3697 * builtins. (expand_builtin_alloca): Remove second parameter and
3698 infer its value from the first parameter instead.
3699 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
3700
3701 2017-06-02 Jakub Jelinek <jakub@redhat.com>
3702
3703 PR rtl-optimization/80903
3704 * loop-doloop.c (add_test): Unshare sequence.
3705
3706 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3707
3708 * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
3709
3710 2017-06-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3711
3712 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
3713 static.
3714 (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
3715 xlogue_layout::get_instance, logue_layout::xlogue_layout,
3716 sp_valid_at, fp_valid_at, choose_basereg): Formatting.
3717 (xlogue_layout::get_stub_rtx): Make static.
3718 (xlogue_layout::get_stub_name): Avoid const-cast, make static.
3719 (xlogue_layout::compute_stub_managed_regs): Rename to...
3720 (xlogue_layout::count_stub_managed_regs): ...this.
3721 (xlogue_layout::is_stub_managed_reg): New function.
3722 (xlogue_layout::m_stub_names): Rename to...
3723 (xlogue_layout::s_stub_names): ...this, make static.
3724 (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
3725 xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
3726 xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
3727 xlogue_layout::s_stub_names): Instantiate statics.
3728 (stub_managed_regs): Remove.
3729 (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
3730 (disable_call_ms2sysv_xlogues): Rename to...
3731 (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
3732 (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
3733 warning logic.
3734 (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
3735 change after reload_completed.
3736 (ix86_can_use_return_insn_p): Use the ix86_frame data structure
3737 directly.
3738 (ix86_expand_prologue): Likewise.
3739 (ix86_expand_epilogue): Likewise.
3740 (ix86_expand_split_stack_prologue): Likewise.
3741 (ix86_compute_frame_layout): Remove frame parameter ...
3742 (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
3743 (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
3744 only if necessary.
3745 (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
3746 (ix86_frame): Move from here ...
3747 * config/i386/i386.h (ix86_frame): ... to here.
3748 (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
3749 complete ix86_frame data structure instead. Remove some_ld_name.
3750
3751 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
3752
3753 * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
3754 symbols that hold a DECL_VALUE_EXPR.
3755
3756 2017-06-01 Martin Jambor <mjambor@suse.cz>
3757
3758 PR tree-optimization/80898
3759 * tree-sra.c (process_subtree_disqualification): Removed.
3760 (disqualify_candidate): Do not acll
3761 process_subtree_disqualification.
3762 (subtree_mark_written_and_enqueue): New function.
3763 (propagate_all_subaccesses): Set grp_write of LHS subtree if the
3764 RHS has been disqualified and re-queue LHS if necessary. Apart
3765 from that, ignore disqualified RHS.
3766
3767 2017-06-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3768
3769 * config/s390/s390.c (s390_emit_epilogue): Disable early return
3770 address fetch for z10 or later.
3771
3772 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3773
3774 * config/arc/arc.md (tst_movb): Add guard when splitting.
3775
3776 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3777
3778 * config/arc/arc.c (arc_can_eliminate): Test against
3779 arc_frame_pointer_needed.
3780
3781 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3782
3783 * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
3784 to prevent store reordering.
3785 * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
3786 (type): Add block type.
3787 (stack_tie): Define special instruction to be used in
3788 expand_prologue.
3789
3790 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3791
3792 * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
3793 constraint. It is not valid for the pattern.
3794 (noncommutative_binary_comparison): Likewise.
3795
3796 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3797
3798 * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
3799 scaled addresses.
3800
3801 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3802
3803 * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
3804 be used by the reg-alloc.
3805
3806 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3807
3808 * config/arc/arc.md (mulsi3): Avoid use of hard registers before
3809 reg-alloc when having mul64 or mul32x16 instructions.
3810 (mulsidi3): Likewise.
3811 (umulsidi3): Likewise.
3812 (mulsi32x16): New pattern.
3813 (mulsi64): Likewise.
3814 (mulsidi64): Likewise.
3815 (umulsidi64): Likewise.
3816 (MUL32x16_REG): Define.
3817 (mul64_600): Use MUL32x16_REG.
3818 (mac64_600): Likewise.
3819 (umul64_600): Likewise.
3820 (umac64_600): Likewise.
3821
3822 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3823
3824 * config/arc/arc.md (mulsi3_700): Make it commutative.
3825
3826 2017-06-01 Jose E. Marchesi <jose.marchesi@oracle.com>
3827
3828 * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
3829 type for movstouw.
3830 (*sign_extendsidi2_insn): Likewise for movstosw.
3831
3832 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
3833
3834 * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
3835 the type of the input discriminant value. Convert the
3836 discriminant value of signedness vary.
3837
3838 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
3839
3840 * doc/invoke.texi (-Wcatch-value): Document new shortcut.
3841 Add to -Wall section.
3842
3843 2017-06-01 Richard Biener <rguenther@suse.de>
3844
3845 PR middle-end/66313
3846 * fold-const.c (fold_plusminus_mult_expr): If the factored
3847 factor may be zero use a wrapping type for the inner operation.
3848 * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
3849 and handle moved defs.
3850 (process_assignment): Properly guard the unary op case. Return a
3851 tri-state indicating that moving the stmt before the call may allow
3852 to continue. Pass through to_move.
3853 (find_tail_calls): Handle moving unrelated defs before
3854 the call.
3855
3856 2017-05-31 Segher Boessenkool <segher@kernel.crashing.org>
3857
3858 PR target/80618
3859 * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
3860 splitter result in the canonical way.
3861
3862 2017-05-31 Uros Bizjak <ubizjak@gmail.com>
3863
3864 * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
3865 also for 32bit target. Update insn attributes.
3866 (zero-extendsidi2 splitter): Allow all registers for operand 1.
3867
3868 2017-05-31 Sebastian Peryt <sebastian.peryt@intel.com>
3869
3870 * config/i386/avx512fintrin.h (_mm_mask_max_sd)
3871 (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
3872 (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
3873 (_mm_maskz_min_ss): New intrinsics.
3874
3875 2017-05-31 Martin Liska <mliska@suse.cz>
3876
3877 * tree-vect-loop.c (vect_create_epilog_for_reduction):
3878 Change comment style to one we normally use.
3879 (vectorizable_reduction): Likewise.
3880 (vectorizable_induction): Likewise.
3881 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
3882 (vectorizable_call): Likewise.
3883 (vectorizable_simd_clone_call): Likewise.
3884 (vectorizable_conversion): Likewise.
3885 (vectorizable_assignment): Likewise.
3886 (vectorizable_shift): Likewise.
3887 (vectorizable_operation): Likewise.
3888 (vectorizable_store): Likewise.
3889 (vectorizable_load): Likewise.
3890 * tree-vectorizer.h: Likewise.
3891
3892 2017-05-31 Alexander Monakov <amonakov@ispras.ru>
3893
3894 * passes.c (emergency_dump_function): New.
3895 * tree-pass.h (emergency_dump_function): Declare.
3896 * plugin.c (plugins_internal_error_function): Remove.
3897 * plugin.h (plugins_internal_error_function): Remove declaration.
3898 * toplev.c (internal_error_function): New static function. Use it...
3899 (general_init): ...here.
3900
3901 2017-05-31 Graham Markall <graham.markall@embecosm.com>
3902
3903 * config/arc/arc.c (arc_print_operand): Handle constant operands.
3904 (arc_rtx_costs): Add costs for new patterns.
3905 * config/arc/arc.md: Additional *add_n and *sub_n patterns.
3906 * config/arc/predicates.md: Add _1_2_3_operand predicate.
3907
3908 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
3909
3910 * tree-ssa-strlen.c (get_next_strinfo): New function.
3911 (get_stridx_plus_constant): Use it.
3912 (zero_length_string): Likewise.
3913 (adjust_related_strinfos): Likewise.
3914 (adjust_last_stmt): Likewise.
3915
3916 2017-05-31 Richard Biener <rguenther@suse.de>
3917
3918 PR target/80880
3919 * config/i386/i386.c (ix86_expand_builtin): Remove assert
3920 for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
3921
3922 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
3923
3924 * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
3925 loop_vinfo argument and use of dependence distance vectors.
3926 Check instead whether the two references differ only in their
3927 initial value and assume that they have the same alignment if the
3928 difference is a multiple of the vector alignment.
3929 (vect_analyze_data_refs_alignment): Update call accordingly.
3930
3931 2017-05-31 Martin Liska <mliska@suse.cz>
3932
3933 PR target/79155
3934 * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
3935
3936 2017-05-31 Bin Cheng <bin.cheng@arm.com>
3937
3938 * tree-vect-loop-manip.c (create_intersect_range_checks_index)
3939 (create_intersect_range_checks): Move from ...
3940 * tree-data-ref.c (create_intersect_range_checks_index)
3941 (create_intersect_range_checks): ... to here.
3942 (create_runtime_alias_checks): New function factored from ...
3943 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
3944 here. Call above function.
3945 * tree-data-ref.h (create_runtime_alias_checks): New function.
3946
3947 2017-05-31 Bin Cheng <bin.cheng@arm.com>
3948
3949 * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
3950 segment length for dr_b and compute it in wide_int.
3951
3952 2017-05-31 Richard Biener <rguenther@suse.de>
3953
3954 PR tree-optimization/80906
3955 * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
3956 and pass through iv_map.
3957 (copy_bb_and_scalar_dependences): Adjust.
3958 (translate_pending_phi_nodes): Likewise.
3959 (copy_loop_close_phi_args): Handle code-generating IVs instead
3960 of ICEing.
3961
3962 2017-05-30 David Malcolm <dmalcolm@redhat.com>
3963
3964 * diagnostic-color.c (color_dict): Add "type-diff".
3965 (parse_gcc_colors): Update comment.
3966 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
3967 -fdiagnostics-show-template-tree and -fno-elide-type.
3968 (GCC_COLORS): Add type-diff to example.
3969 (type-diff=): New.
3970 (-fdiagnostics-show-template-tree): New.
3971 (-fno-elide-type): New.
3972 * pretty-print.c (pp_format): Pass quote and formatters[argno] to
3973 the pp_format_decoder callback. Call any m_format_postprocessor's
3974 "handle" method.
3975 (pretty_printer::pretty_printer): Initialize
3976 m_format_postprocessor.
3977 (pretty_printer::~pretty_printer): Delete any
3978 m_format_postprocessor.
3979 * pretty-print.h (printer_fn): Add bool and const char ** parameters.
3980 (class format_postprocessor): New class.
3981 (struct pretty_printer::format_decoder): Document the new parameters.
3982 (struct pretty_printer::m_format_postprocessor): New field.
3983 * tree-diagnostic.c (default_tree_printer): Update for new
3984 bool and const char ** params.
3985 * tree-diagnostic.h (default_tree_printer): Likewise.
3986
3987 2017-05-30 Segher Boessenkool <segher@kernel.crashing.org>
3988
3989 * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
3990 (lwa_operand): Delete rs6000_gen_cell_microcode test.
3991 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
3992 rs6000_gen_cell_microcode code.
3993 (rs6000_final_prescan_insn): Delete.
3994 (rs6000_opt_vars): Delete the "gen-cell-microcode" and
3995 "warn-cell-microcode" entries.
3996 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
3997 * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
3998 throughout. Change cc_reg_not_micro_cr0_operand to
3999 cc_reg_not_cr0_operand throughout.
4000 (*extendhi<mode>2_noload): Delete.
4001 * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
4002 (mwarn-cell-microcode): Delete.
4003 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
4004 -mgen-cell-microcode and -mwarn-cell-microcode.
4005
4006 2017-05-30 Uros Bizjak <ubizjak@gmail.com>
4007
4008 PR target/80833
4009 * config/i386/constraints.md (Yd): New constraint.
4010 (Ye): Ditto.
4011 * config/i386/i386.md (*movti_internal): Add (?r, Ye)
4012 and (?Yd, r) alternatives. Update insn attributes.
4013 * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
4014 and (?*Yd, r) alternatives. Update insn attributes.
4015 (double-mode inter-unit splitters): Add new GR<->XMM splitters.
4016
4017 2017-05-30 Pierre-Marie de Rodat <derodat@adacore.com>
4018
4019 * gimplify.c (gimplify_modify_expr): Don't create a
4020 DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
4021 function.
4022
4023 2017-05-30 Wilco Dijkstra <wdijkstr@arm.com>
4024
4025 * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
4026
4027 2017-05-30 Richard Biener <rguenther@suse.de>
4028
4029 * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
4030 and reduc_def fields.
4031 (STMT_VINFO_REDUC_TYPE): New define.
4032 (STMT_VINFO_REDUC_DEF): Likewise.
4033 (vect_force_simple_reduction): Adjust prototype.
4034 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
4035 (vect_is_simple_reduction): Remove check_reduction argument.
4036 (vect_force_simple_reduction): Adjust and set
4037 STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
4038 (vectorizable_reduction): Do not re-do reduction analysis
4039 but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
4040 * tree-parloops.c (gather_scalar_reductions): Adjust.
4041
4042 2017-05-30 Richard Biener <rguenther@suse.de>
4043
4044 PR middle-end/80901
4045 * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
4046 split_edge code.
4047
4048 2017-05-24 Robin Dapp <rdapp@linux.vnet.ibm.com>
4049
4050 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
4051 Introduce unknown_misalignment parameter and remove vf.
4052 (vect_peeling_hash_get_lowest_cost):
4053 Pass unknown_misalignment parameter.
4054 (vect_enhance_data_refs_alignment):
4055 Fix unsupportable data ref treatment.
4056
4057 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
4058
4059 * tree-vect-data-refs.c (vect_get_data_access_cost):
4060 Workaround for SLP handling.
4061 (vect_enhance_data_refs_alignment):
4062 Compute costs for doing no peeling at all, compare to the best
4063 peeling costs so far and avoid peeling if cheaper.
4064
4065 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
4066
4067 * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
4068 Return peeling info and set costs to zero for unlimited cost
4069 model.
4070 (vect_enhance_data_refs_alignment): Also inspect all datarefs
4071 with unknown misalignment. Compute and costs for unknown
4072 misalignment, compare them to the costs for known misalignment
4073 and choose the cheapest for peeling.
4074
4075 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
4076
4077 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
4078 (vect_get_peeling_costs_all_drs): Create function.
4079 (vect_peeling_hash_get_lowest_cost):
4080 Use vect_get_peeling_costs_all_drs.
4081 (vect_peeling_supportable): Create function.
4082 (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
4083
4084 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
4085
4086 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
4087 DR_HAS_NEGATIVE_STEP.
4088 (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
4089 (vect_enhance_data_refs_alignment): Use.
4090 (vect_duplicate_ssa_name_ptr_info): Use.
4091 * tree-vectorizer.h (dr_misalignment): Use.
4092 (known_alignment_for_access_p): Use.
4093
4094 2017-05-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
4095
4096 PR target/78838
4097 * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
4098 .lowtext.
4099 (has_section_name): New function.
4100
4101 2017-05-30 Martin Liska <mliska@suse.cz>
4102
4103 PR other/80909
4104 * auto-profile.c (get_function_decl_from_block): Fix
4105 parenthesis.
4106
4107 2017-05-30 Richard Biener <rguenther@suse.de>
4108
4109 PR middle-end/80876
4110 * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
4111
4112 2017-05-30 Martin Liska <mliska@suse.cz>
4113
4114 * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
4115 * dumpfile.h (struct dump_file_info): Remove ctors.
4116
4117 2017-05-30 Martin Liska <mliska@suse.cz>
4118
4119 * predict.def: Fix GNU coding style.
4120
4121 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
4122
4123 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
4124 Mark 'to' argument with ATTRIBUTE_UNUSED.
4125
4126 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
4127
4128 * config/xtensa/xtensa.c (xtensa_emit_call): Use
4129 HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
4130 (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
4131 format string.
4132
4133 2017-05-29 Eric Botcazou <ebotcazou@adacore.com>
4134
4135 * doc/install.texi (Options specification): Restore entry of
4136 --enable-sjlj-exceptions.
4137
4138 2017-05-27 Michael Eager <eager@eagercon.com>
4139
4140 Revert:
4141 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
4142
4143 See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
4144
4145 * config/microblaze/microblaze.h
4146 (FIXED_REGISTERS): Update in macro.
4147 (CALL_USED_REGISTERS): Update in macro.
4148
4149 2017-05-27 François-Xavier Coudett <fxcoudert@gcc.gnu.org>
4150
4151 * doc/install.texi: Add links to macOS binary distributions.
4152
4153 2017-05-27 Jakub Jelinek <jakub@redhat.com>
4154
4155 PR bootstrap/80887
4156 Revert:
4157 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
4158
4159 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
4160
4161 2017-05-26 Martin Liska <mliska@suse.cz>
4162
4163 * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
4164
4165 2017-05-26 Martin Liska <mliska@suse.cz>
4166
4167 * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
4168 always leading ';; '.
4169 (dump_bb_info): Likewise.
4170 (brief_dump_cfg): Likewise.
4171 * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
4172 * dumpfile.c: Remove usage of TDF_VERBOSE.
4173 * dumpfile.h (enum dump_kind): Likewise.
4174 (dump_gimple_bb_header): Do not use TDF_COMMENT.
4175 * print-tree.c (debug_verbose): Remove.
4176 * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
4177 (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
4178 * tree-diagnostic.c (default_tree_printer): Replace
4179 TDF_DIAGNOSTIC with TDF_SLIM.
4180
4181 2017-05-26 Bin Cheng <bin.cheng@arm.com>
4182
4183 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
4184 in parameter loop, rather than loop_vinfo.
4185 (create_intersect_range_checks): Ditto.
4186 (vect_create_cond_for_alias_checks): Update call to above functions.
4187
4188 2017-05-26 Bin Cheng <bin.cheng@arm.com>
4189
4190 PR tree-optimization/80815
4191 * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
4192 for merging runtime alias checks. Handle negative DR_STEPs.
4193
4194 2017-05-26 Bin Cheng <bin.cheng@arm.com>
4195
4196 * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
4197 Move from ...
4198 * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
4199 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
4200 out code pruning runtime alias checks.
4201 * tree-data-ref.c (prune_runtime_alias_test_list): New function
4202 factored out from above.
4203 * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
4204 Move from ...
4205 * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
4206 ... to here.
4207 (prune_runtime_alias_test_list): New decalaration.
4208
4209 2017-05-26 Bin Cheng <bin.cheng@arm.com>
4210
4211 * tree-vect-data-refs.c (compare_tree): Rename and move ...
4212 * tree-data-ref.c (data_ref_compare_tree): ... to here.
4213 * tree-data-ref.h (data_ref_compare_tree): New decalaration.
4214 * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
4215 (operator==, comp_dr_with_seg_len_pair): Ditto.
4216 (vect_prune_runtime_alias_test_list): Ditto.
4217
4218 2017-05-26 Martin Liska <mliska@suse.cz>
4219
4220 PR ipa/80663
4221 * params.def: Bound partial-inlining-entry-probability param.
4222
4223 2017-05-26 Marek Polacek <polacek@redhat.com>
4224
4225 PR sanitizer/80875
4226 * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
4227 can be negated.
4228
4229 2017-05-26 Richard Biener <rguenther@suse.de>
4230
4231 PR tree-optimization/80842
4232 * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
4233 value.
4234
4235 2017-05-26 Richard Biener <rguenther@suse.de>
4236
4237 PR tree-optimization/80844
4238 * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
4239
4240 2017-05-25 Sebastian Peryt <sebastian.peryt@intel.com>
4241
4242 * doc/md.texi (Machine Constraints): Update x86 family
4243 machine constraints section to match 'config/i386/constraints.md'.
4244
4245 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
4246
4247 * doc/invoke.texi (-Wcatch-value=): Document new warning option.
4248
4249 2017-05-25 Nathan Sidwell <nathan@acm.org>
4250
4251 * doc/invoke.texi (--enable-languages): Update documentation.
4252
4253 2017-05-25 Martin Liska <mliska@suse.cz>
4254
4255 * dumpfile.c: Add TDF_FOLDING.
4256 * dumpfile.h (enum dump_kind): Likewise.
4257 * genmatch.c (dt_simplify::gen_1): Use it.
4258
4259 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
4260
4261 * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
4262
4263 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
4264
4265 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
4266 * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
4267
4268 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
4269
4270 * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
4271 * match.pd (X == C): Rewrite it here.
4272 (with_possible_nonzero_bits, with_possible_nonzero_bits2,
4273 with_certain_nonzero_bits2): New predicates.
4274 * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
4275
4276 2017-05-24 Nathan Sidwell <nathan@acm.org>
4277
4278 * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
4279 avoid warning.
4280
4281 * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
4282 warning.
4283
4284 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
4285
4286 * config/powerpcspe: New port. Files are copied from the rs6000
4287 port, with "rs6000" in filenames replaced by "powerpcspe".
4288
4289 2017-05-24 Wilco Dijkstra <wdijkstr@arm.com>
4290
4291 PR rtl-optimization/80754
4292 * lra-remat.c (do_remat): Add overlap checks for dst_regno.
4293
4294 2017-05-24 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
4295
4296 * config/sparc/sparc.md (length): Return the correct value for -mflat
4297 sibcalls to match output_sibcall.
4298
4299 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
4300
4301 PR bootstrap/80860
4302 PR bootstrap/80843
4303 * config/rs6000/rs6000.c (struct machine_function): Add new field
4304 n_components.
4305 (rs6000_get_separate_components): Init that field, use it.
4306 (rs6000_components_for_bb): Use the field.
4307
4308 2017-05-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
4309
4310 * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
4311
4312 2017-05-24 Peter Bergner <bergner@vnet.ibm.com>
4313
4314 PR middle-end/80823
4315 * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
4316
4317 2017-05-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4318
4319 PR target/80725
4320 * config/s390/s390.c (s390_check_qrst_address): Check incoming
4321 address against address_operand predicate.
4322 * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
4323
4324 2017-05-24 Eric Botcazou <ebotcazou@adacore.com>
4325
4326 * var-tracking.c (track_expr_p): Do not return 0 for tracked record
4327 parameters passed indirectly.
4328
4329 2017-05-23 Uros Bizjak <ubizjak@gmail.com>
4330
4331 * config/i386/i386.md (*movdi_internal): Remove SSE4
4332 alternative 18 (?r, *v). Update insn attributes.
4333 (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
4334 Update insn attributes.
4335 (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
4336 Update insn attributes.
4337 * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
4338 alternative 1 (r, v). Remove isa attribute.
4339 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
4340 Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
4341 and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
4342
4343 2017-05-23 Tom de Vries <tom@codesourcery.com>
4344
4345 * doc/sourcebuild.texi (Directives, Verify compiler message): Document
4346 dg-line directive.
4347
4348 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
4349
4350 * cgraphunit.c (symbol_table::process_new_functions): Update.
4351 * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
4352 (inline_generate_summary): Rename to ...
4353 (ipa_fn_summary_generate): ... this one.
4354 (inline_read_summary): Rename to ...
4355 (ipa_fn_summary_read): ... this one.
4356 (inline_write_summary): Rename to ...
4357 (ipa_fn_summary_write): ... this one.
4358 (inline_free_summary): Rename to ...
4359 (ipa_free_fn_summary): ... this one.
4360 (pass_data_local_fn_summary, pass_local_fn_summary,
4361 make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
4362 pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
4363 pass_data_ipa_fn_summary, pass_ipa_fn_summary,
4364 make_pass_ipa_fn_summary): New.
4365 * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
4366 inline_write_summary, inline_free_summary): Remove.
4367 (ipa_free_fn_summary) : New.
4368 * ipa-inline.c (ipa_inline): Update.
4369 (pass_ipa_inline): Do not generate summaries.
4370 * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
4371 Remove.
4372 * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
4373 and add pass_ipa_fn_summary.
4374 * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
4375 New.
4376 (make_pass_inline_parameters): Remove.
4377
4378 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4379
4380 * omp-low.c (struct omp_context): Remove "default_kind" member.
4381 Adjust all users.
4382
4383 * omp-offload.c (execute_oacc_device_lower): Remove the
4384 parallelism dimensions function attributes for unparallelized
4385 OpenACC kernels constructs.
4386
4387 2017-05-23 Martin Liska <mliska@suse.cz>
4388
4389 * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
4390 functions.
4391 (cgraph_edge::make_speculative): Likewise.
4392 (cgraph_edge::resolve_speculation): Likewise.
4393 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4394 (cgraph_node::dump): Likewise.
4395 * cgraph.h: Likewise.
4396 * cgraphunit.c (analyze_functions): Likewise.
4397 (symbol_table::compile): Likewise.
4398 * ipa-cp.c (print_all_lattices): Likewise.
4399 (determine_versionability): Likewise.
4400 (initialize_node_lattices): Likewise.
4401 (ipcp_verify_propagated_values): Likewise.
4402 (estimate_local_effects): Likewise.
4403 (update_profiling_info): Likewise.
4404 (create_specialized_node): Likewise.
4405 (perhaps_add_new_callers): Likewise.
4406 (decide_about_value): Likewise.
4407 (decide_whether_version_node): Likewise.
4408 (identify_dead_nodes): Likewise.
4409 (ipcp_store_bits_results): Likewise.
4410 * ipa-devirt.c (dump_targets): Likewise.
4411 (ipa_devirt): Likewise.
4412 * ipa-icf.c (sem_item::dump): Likewise.
4413 (sem_function::equals): Likewise.
4414 (sem_variable::equals): Likewise.
4415 (sem_item_optimizer::read_section): Likewise.
4416 (sem_item_optimizer::execute): Likewise.
4417 (congruence_class::dump): Likewise.
4418 * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
4419 (dump_inline_summary): Likewise.
4420 (estimate_node_size_and_time): Likewise.
4421 (inline_analyze_function): Likewise.
4422 * ipa-inline-transform.c (inline_call): Likewise.
4423 * ipa-inline.c (report_inline_failed_reason): Likewise.
4424 (want_early_inline_function_p): Likewise.
4425 (edge_badness): Likewise.
4426 (update_edge_key): Likewise.
4427 (inline_small_functions): Likewise.
4428 * ipa-profile.c (ipa_profile): Likewise.
4429 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
4430 (ipa_make_edge_direct_to_target): Likewise.
4431 (remove_described_reference): Likewise.
4432 (ipa_impossible_devirt_target): Likewise.
4433 (propagate_controlled_uses): Likewise.
4434 (ipa_print_node_params): Likewise.
4435 (ipcp_transform_function): Likewise.
4436 * ipa-pure-const.c (pure_const_read_summary): Likewise.
4437 (propagate_pure_const): Likewise.
4438 * ipa-reference.c (generate_summary): Likewise.
4439 (read_write_all_from_decl): Likewise.
4440 (propagate): Likewise.
4441 (ipa_reference_read_optimization_summary): Likewise.
4442 * ipa-utils.c (ipa_merge_profiles): Likewise.
4443 * ipa.c (walk_polymorphic_call_targets): Likewise.
4444 (symbol_table::remove_unreachable_nodes): Likewise.
4445 (ipa_single_use): Likewise.
4446 * passes.c (execute_todo): Likewise.
4447 * predict.c (drop_profile): Likewise.
4448 * symtab.c (symtab_node::get_dump_name): New function.
4449 (symtab_node::dump_name): Likewise.
4450 (symtab_node::dump_asm_name): Likewise.
4451 (symtab_node::dump_references): Likewise.
4452 (symtab_node::dump_referring): Likewise.
4453 (symtab_node::dump_base): Likewise.
4454 (symtab_node::debug_symtab): Likewise.
4455 * tree-sra.c (convert_callers_for_node): Likewise.
4456 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
4457 * value-prof.c (init_node_map): Likewise.
4458
4459 2017-05-23 Martin Liska <mliska@suse.cz>
4460
4461 * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
4462 and symtab_node::debug_symtab to symbol_table::debug.
4463 * cgraphunit.c (analyze_functions): Use the renamed function.
4464 (symbol_table::compile): Likewise.
4465 * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
4466 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
4467 * passes.c (execute_todo): Likewise.
4468 * symtab.c (symbol_table::dump): New function.
4469 * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
4470
4471 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
4472
4473 * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
4474 that nonconst implies exec.
4475
4476 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
4477
4478 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
4479 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
4480 (inline_edge_summary_vec): Turn into ...
4481 (ipa_call_summaries): ... this one.
4482 (redirect_to_unreachable, edge_set_predicate,
4483 evaluate_properties_for_edge, inline_summary_alloc,
4484 reset_ipa_call_summary, reset_inline_summary,
4485 inline_summary_t::duplicate): Update.
4486 (inline_edge_duplication_hook): Turn to ...
4487 (ipa_call_summary_t::duplicate): ... this one.
4488 (inline_edge_removal_hook): Turn to ...
4489 (ipa_call_summary_t::remove): ... this one.
4490 (dump_inline_edge_summary): Turn to ...
4491 (dump_ipa_call_summary): ... this one.
4492 (estimate_function_body_sizes): Update.
4493 (inline_update_callee_summaries): Update.
4494 (remap_edge_change_prob): Update.
4495 (remap_edge_summaries): Update.
4496 (inline_merge_summary): Update.
4497 (do_estimate_edge_time): Update.
4498 (inline_generate_summary): Update.
4499 (inline_read_section): Update.
4500 (inline_read_summary): Update.
4501 (inline_free_summary): Update.
4502 * ipa-inline.c (can_inline_edge_p): Update.
4503 (compute_inlined_call_time): Update.
4504 (want_inline_small_function_p): Update.
4505 (edge_badness): Update.
4506 (early_inliner): Update.
4507 * ipa-inline.h (inline_edge_summary): Turn to ...
4508 (ipa_call_summary): ... this one.
4509 (ipa_call_summary_t): New class.
4510 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
4511 (ipa_call_summaries): New.
4512 (inline_edge_summary): Remove.
4513 (estimate_edge_growth): Update.
4514 * ipa-profile.c (ipa_propagate_frequency_1): Update.
4515 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
4516 * ipa-split.c (execute_split_functions): Update.
4517 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
4518
4519 2017-05-23 Tom de Vries <tom@codesourcery.com>
4520
4521 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
4522 attributes): Document rdrand effective target.
4523
4524 2017-05-23 Tom de Vries <tom@codesourcery.com>
4525
4526 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
4527 attributes): Sort alphabetically.
4528
4529 2017-05-23 Georg-Johann Lay <avr@gjlay.de>
4530
4531 * config/avr/genmultilib.awk: Use gsub instead of gensub.
4532
4533 2017-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4534
4535 PR target/80718
4536 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
4537 V2DF/V2DI splat into two separate patterns, one that handles
4538 registers, and the other that only handles memory. Drop support
4539 for splatting from a GPR on ISA 2.07 and then splitting the
4540 splat into direct move and splat.
4541 (vsx_splat_<mode>_reg): Likewise.
4542 (vsx_splat_<mode>_mem): Likewise.
4543
4544 2017-05-22 Segher Boessenkool <segher@kernel.crashing.org>
4545
4546 * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
4547
4548 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4549
4550 PR middle-end/80809
4551 * omp-low.c (finish_taskreg_remap): New function.
4552 (finish_taskreg_scan): If unit size of ctx->record_type
4553 is non-constant, unshare the size expression and replace
4554 decls in it with possible outer var refs.
4555
4556 PR middle-end/80809
4557 * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
4558 GOVD_SHARED rather than GOVD_PRIVATE with it.
4559 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
4560 GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
4561
4562 PR middle-end/80853
4563 * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
4564 as last argument to build_outer_var_ref for pointer bases of array
4565 section reductions.
4566
4567 2017-05-19 Martin Sebor <msebor@redhat.com>
4568
4569 * print-tree.c (print_node): Print DECL_READ_P flag.
4570
4571 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
4572
4573 * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
4574 * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
4575 * cgraph.c: Likewise.
4576 * cgraphunit.c: Likewise.
4577 * gengtype.c: Likewise.
4578 * ipa-cp.c: Likewise.
4579 * ipa-devirt.c: Likewise.
4580 * ipa-icf.c: Likewise.
4581 * ipa-predicate.c: Likewise.
4582 * ipa-profile.c: Likewise.
4583 * ipa-prop.c: Likewise.
4584 * ipa-split.c: Likewise.
4585 * ipa.c: Likewise.
4586 * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
4587 edge_predicate_pool, dump_inline_hints,
4588 inline_summary::account_size_time, redirect_to_unreachable,
4589 edge_set_predicate, set_hint_predicate,
4590 evaluate_conditions_for_known_args, evaluate_properties_for_edge,
4591 inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
4592 inline_summary_t::remove, remap_hint_predicate_after_duplication,
4593 inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
4594 ipa_call_summary_t::remove, initialize_growth_caches,
4595 free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
4596 debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
4597 mark_modified, unmodified_parm_1, unmodified_parm,
4598 unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
4599 set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
4600 compute_bb_predicates, will_be_nonconstant_expr_predicate,
4601 will_be_nonconstant_predicate, record_modified_bb_info,
4602 get_minimal_bb, record_modified, param_change_prob,
4603 phi_result_unknown_predicate, predicate_for_phi_result,
4604 array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
4605 estimate_function_body_sizes, compute_inline_parameters,
4606 compute_inline_parameters_for_curren, pass_data_inline_parameters,
4607 estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
4608 inline_update_callee_summaries, remap_edge_change_prob,
4609 remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
4610 inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
4611 inline_analyze_function, inline_summary_t::insert,
4612 inline_generate_summary, read_ipa_call_summary, inline_read_section,
4613 inline_read_summary, write_ipa_call_summary, inline_write_summary,
4614 inline_free_summary): Move to ipa-fnsummary.h
4615 (predicate_t): Remove.
4616 * ipa-fnsummary.c: New file.
4617 * ipa-inline.h: Do not include sreal.h and ipa-predicate.h
4618 (enum inline_hints_vals, inline_hints, agg_position_info,
4619 INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
4620 inline_summaries, ipa_call_summary, ipa_call_summary_t,
4621 ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
4622 dump_inline_summary, dump_inline_hints, inline_generate_summary,
4623 inline_read_summary, inline_write_summary, inline_free_summary,
4624 inline_analyze_function, initialize_inline_failed,
4625 inline_merge_summary, inline_update_overall_summary,
4626 compute_inline_parameters): Move to ipa-fnsummary.h
4627 * ipa-fnsummary.h: New file.
4628 * ipa-inline-transform.h: Include ipa-inline.h.
4629 * ipa-inline.c: LIkewise.
4630
4631 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
4632
4633 * ipa-inline.c (edge_badness): Use inlined_time instead of
4634 inline_summaries->get.
4635
4636 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
4637
4638 * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
4639
4640 2017-05-22 Nathan Sidwell <nathan@acm.org>
4641
4642 * doc/invoke.texi (fdump-translation-unit): Delete documentation.
4643 (fdump-lang): Document 'raw' option.
4644 * dumpfile.h (TDI_tu): Delete.
4645 * dumpfile.c (dump_files): Remove translation-unit.
4646 (FIRST_AUTO_NUMBERED_DUMP): Decrement.
4647
4648 2017-05-22 Georg-Johann Lay <avr@gjlay.de>
4649
4650 * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
4651 command option from $(AWK) call.
4652 * config/avr/genmultilib.awk: Simplify and rewrite so that it
4653 generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
4654 [FORMAT]: Remove handling of variable.
4655 * config/avr/t-multilib: Regenerate.
4656
4657 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
4658
4659 * ipa-inline-analysis.c (inline_summary::reset): Do not reset
4660 self_time.
4661 (dump_inline_summary): Do not print self_time.
4662 (estimate_function_body_sizes): Do not set self_time.
4663 (compute_inline_parameters): Likewise.
4664 (inline_read_section, inline_write_summary): Do not stream self_time.
4665 * ipa-inline.h (inline_summary): Drop self_time.
4666
4667 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
4668
4669 * ipa-inline-analysis.c (account_size_time): Rename to ...
4670 (inline_summary::account_size_time): ... this one.
4671 (reset_ipa_call_summary): Turn to ...
4672 (ipa_call_summary::reset): ... this one.
4673 (reset_inline_summary): Turn to ...
4674 (inline_summary::reset): ... this one.
4675 (inline_summary_t::remove): Update.
4676 (inline_summary_t::duplicate): Update.
4677 (ipa_call_summary_t::remove): Update.
4678 (dump_inline_summary): Update.
4679 (estimate_function_body_sizes): Update.
4680 (compute_inline_parameters): Update.
4681 (estimate_node_size_and_time): Update.
4682 (inline_merge_summary): Update.
4683 (inline_update_overall_summary): Update.
4684 (inline_read_section): Update.
4685 (inline_write_summary): Update.
4686 * ipa-inline.h (inline_summary): Rename entry to size_time_table;
4687 add account_size_time and reset member functions.
4688 (ipa_call_summary): Add reset function.
4689 * ipa-predicate.h (predicate::operator &): Constify.
4690
4691 2017-05-22 Richard Biener <rguenther@suse.de>
4692
4693 * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
4694
4695 2017-05-19 Jason Merrill <jason@redhat.com>
4696
4697 * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
4698
4699 2017-05-19 Marek Polacek <polacek@redhat.com>
4700
4701 PR sanitizer/80800
4702 * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
4703 TYPE_OVERFLOW_WRAPS checks.
4704
4705 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4706
4707 * tree-core.h (enum omp_clause_default_kind): Add
4708 "OMP_CLAUSE_DEFAULT_PRESENT".
4709 * tree-pretty-print.c (dump_omp_clause): Handle it.
4710 * gimplify.c (enum gimplify_omp_var_data): Add
4711 "GOVD_MAP_FORCE_PRESENT".
4712 (gimplify_adjust_omp_clauses_1): Map it to
4713 "GOMP_MAP_FORCE_PRESENT".
4714 (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
4715
4716 * gimplify.c (oacc_default_clause): Clarify.
4717
4718 2017-05-19 Nathan Sidwell <nathan@acm.org>
4719
4720 LANG_HOOK_REGISTER_DUMPS
4721 * toplev.c (general_init): Call register dump lang hook.
4722 * doc/invoke.texi: Document -fdump-lang option family.
4723 * dumpfile.c (dump_files): Remove class dump here.
4724 (FIRST_AUTO_NUMBERED_DUMP): Adjust.
4725 * dumpfile.h (tree_dump_index): Remove TDI_class.
4726 * langhooks-def.h (lhd_register_dumps): Declare.
4727 (LANG_HOOKS_REGISTER_DUMPS): Define.
4728 (LANG_HOOKS_INITIALIZER): Add it.
4729 * langhooks.c (lhd_register_dumps): Define.
4730 * langhooks.h (struct lang_hooks): Add register_dumps.
4731
4732 2017-05-19 Nathan Sidwell <nathan@acm.org>
4733
4734 * context.h (context::set_passes): New.
4735 * context.c (context::context): Do not create pass manager.
4736 * toplev.c (general_init): Create pass manager here.
4737
4738 2017-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4739
4740 * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
4741 use this splitter if two add or or instructions would also work for
4742 the constant we want to generate.
4743
4744 2017-05-19 Richard Biener <rguenther@suse.de>
4745
4746 PR build/80821
4747 * genmatch.c (dt_node::gen_kids_1): Add missing scope around
4748 predicate evaluation.
4749
4750 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
4751
4752 * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
4753 add ctor.
4754 * ipa-inline.c (want_inline_small_function_p): Do not cast to
4755 unsigned.
4756
4757 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
4758
4759 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
4760 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
4761 (inline_edge_summary_vec): Turn into ...
4762 (ipa_call_summaries): ... this one.
4763 (redirect_to_unreachable, edge_set_predicate,
4764 evaluate_properties_for_edge, inline_summary_alloc,
4765 reset_ipa_call_summary, reset_inline_summary,
4766 inline_summary_t::duplicate): Update.
4767 (inline_edge_duplication_hook): Turn to ...
4768 (ipa_call_summary_t::duplicate): ... this one.
4769 (inline_edge_removal_hook): Turn to ...
4770 (ipa_call_summary_t::remove): ... this one.
4771 (dump_inline_edge_summary): Turn to ...
4772 (dump_ipa_call_summary): ... this one.
4773 (estimate_function_body_sizes): Update.
4774 (inline_update_callee_summaries): Update.
4775 (remap_edge_change_prob): Update.
4776 (remap_edge_summaries): Update.
4777 (inline_merge_summary): Update.
4778 (do_estimate_edge_time): Update.
4779 (inline_generate_summary): Update.
4780 (inline_read_section): Update.
4781 (inline_read_summary): Update.
4782 (inline_free_summary): Update.
4783 * ipa-inline.c (can_inline_edge_p): Update.
4784 (compute_inlined_call_time): Update.
4785 (want_inline_small_function_p): Update.
4786 (edge_badness): Update.
4787 (early_inliner): Update.
4788 * ipa-inline.h (inline_edge_summary): Turn to ...
4789 (ipa_call_summary): ... this one.
4790 (ipa_call_summary_t): New class.
4791 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
4792 (ipa_call_summaries): New.
4793 (inline_edge_summary): Remove.
4794 (estimate_edge_growth): Update.
4795 * ipa-profile.c (ipa_propagate_frequency_1): Update.
4796 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
4797 * ipa-split.c (execute_split_functions): Update.
4798 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
4799
4800 2017-05-19 Richard Biener <rguenther@suse.de>
4801
4802 PR middle-end/80764
4803 * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
4804
4805 2017-05-18 Segher Boessenkool <segher@kernel.crashing.org>
4806
4807 * config/rs6000/rs6000.c (struct machine_function): Add field
4808 fpr_is_wrapped_separately.
4809 (rs6000_get_separate_components): Use 64 components. Handle the
4810 new FPR components.
4811 (rs6000_components_for_bb): Handle the FPR components.
4812 (rs6000_emit_prologue_components): Handle the FPR components.
4813 (rs6000_emit_epilogue_components): Handle the FPR components.
4814 (rs6000_set_handled_components): Handle the FPR components.
4815 (rs6000_emit_prologue): Don't output prologue code for those FPRs
4816 that are already separately shrink-wrapped.
4817 (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
4818 that are already separately shrink-wrapped.
4819
4820 2017-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4821
4822 PR target/80510
4823 * config/rs6000/predicates.md (simple_offsettable_mem_operand):
4824 New predicate.
4825
4826 * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
4827 (define_peephole2 for Altivec d-form load): Add peepholes to catch
4828 cases where the register allocator uses a move and an offsettable
4829 memory operation to/from a FPR register on ISA 2.06/2.07.
4830 (define_peephole2 for Altivec d-form store): Likewise.
4831
4832 2017-05-18 Uros Bizjak <ubizjak@gmail.com>
4833
4834 PR target/80799
4835 * config/i386/mmx.md (*mov<mode>_internal): Enable
4836 alternatives 11, 12, 13 and 14 also for 32bit targets.
4837 Remove alternatives 15, 16, 17 and 18.
4838 * config/i386/sse.md (vec_concatv2di): Change
4839 alternative (!x, *y) to (x, ?!*Yn).
4840
4841 2017-05-18 Paolo Carlini <paolo.carlini@oracle.com>
4842
4843 * dumpfile.h (enum dump_kind): Remove stray comma.
4844
4845 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
4846
4847 * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
4848 * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
4849 predicate::num_conditions
4850 (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
4851 (CHANGED): turn into predicate::changed.
4852 (agg_position_info): Move to ipa-predicate.h
4853 (add_condition, predicate::add_clause, predicate::operator &=,
4854 predicate::or_with, predicate::evaluate, predicate::probability,
4855 dump_condition, dump_clause, predicate::dump,
4856 predicate::remap_after_duplication, predicate::remap_after_inlining,
4857 predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
4858 (evaluate_conditions_for_known_args): Update.
4859 (set_cond_stmt_execution_predicate): Update.
4860 * ipa-inline.h: Include ipa-predicate.h
4861 (condition, inline_param_summary, conditions, agg_position_info,
4862 predicate): Move to ipa-predicate.h
4863 * ipa-predicate.c: New file.
4864 * ipa-predicate.h: New file.
4865
4866 2017-05-18 Wilco Dijkstra <wdijkstr@arm.com>
4867
4868 * final.c (leaf_function_p): Check we are not in a sequence.
4869
4870 2017-05-18 Martin Liska <mliska@suse.cz>
4871
4872 * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
4873 * dumpfile.c (dump_register): Use new enum dump_kind.
4874 (get_dump_file_name): Likewise.
4875 (dump_enable_all): Likewise.
4876 (dump_switch_p_1): Likewise.
4877 (enable_rtl_dump_file): Remove usage of TDF_RTL.
4878 * dumpfile.h (enum dump_kind): New enum type.
4879 (struct dump_file_info): Create constructor and
4880 format fields and comments.
4881 * passes.c (pass_manager::register_one_dump_file):
4882 Use num dump_kind.
4883 * statistics.c (statistics_early_init): Likewise.
4884 * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
4885 TDF_TREE with TDF_SLIM.
4886 (gather_memory_references_ref): Likewise.
4887
4888 2017-05-18 Martin Liska <mliska@suse.cz>
4889
4890 * vec.h (struct vnull): Use it.
4891
4892 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
4893
4894 * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
4895 (true_predicate, false_predicate, true_predicate_p,
4896 false_predicate_p): Remove.
4897 (single_cond_predicate, not_inlined_predicate): Turn to member function
4898 in ipa-inline.h
4899 (add_condition): Update.
4900 (add_clause): Turn to...
4901 (predicate::add_clause): ... this one; update; allow passing NULL
4902 as parameter.
4903 (and_predicates): Turn to ...
4904 (predicate::operator &=): ... this one.
4905 (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
4906 (or_predicates): Turn to ...
4907 (predicate::or_with): ... this one.
4908 (evaluate_predicate): Turn to ...
4909 (predicate::evaluate): ... this one.
4910 (predicate_probability): Turn to ...
4911 (predicate::probability): ... this one.
4912 (dump_condition): Update.
4913 (dump_predicate): Turn to ...
4914 (predicate::dump): ... this one.
4915 (account_size_time): Update.
4916 (edge_set_predicate): Update.
4917 (set_hint_predicate): UPdate.
4918 (evaluate_conditions_for_known_args): Update.
4919 (evaluate_properties_for_edge): Update.
4920 (remap_predicate_after_duplication): Turn to...
4921 (predicate::remap_after_duplication): ... this one.
4922 (remap_hint_predicate_after_duplication): Update.
4923 (inline_summary_t::duplicate): UPdate.
4924 (dump_inline_edge_summary): Update.
4925 (dump_inline_summary): Update.
4926 (set_cond_stmt_execution_predicate): Update.
4927 (set_switch_stmt_execution_predicate): Update.
4928 (compute_bb_predicates): Update.
4929 (will_be_nonconstant_expr_predicate): Update.
4930 (will_be_nonconstant_predicate): Update.
4931 (phi_result_unknown_predicate): Update.
4932 (predicate_for_phi_result): Update.
4933 (array_index_predicate): Update.
4934 (estimate_function_body_sizes): Update.
4935 (estimate_node_size_and_time): Update.
4936 (estimate_ipcp_clone_size_and_time): Update.
4937 (remap_predicate): Rename to ...
4938 (predicate::remap_after_inlining): ... this one.
4939 (remap_hint_predicate): Update.
4940 (inline_merge_summary): Update.
4941 (inline_update_overall_summary): Update.
4942 (estimate_size_after_inlining): Update.
4943 (read_predicate): Rename to ...
4944 (predicate::stream_in): ... this one.
4945 (read_inline_edge_summary): Update.
4946 (write_predicate): Rename to ...
4947 (predicate::stream_out): ... this one.
4948 (write_inline_edge_summary): Update.
4949 * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
4950 (clause_t): Turn to uint32_t
4951 (predicate): Turn to class; implement constructor and operators
4952 ==, !=, &
4953 (size_time_entry): Update.
4954 (inline_summary): Update.
4955 (inline_edge_summary): Update.
4956
4957 2017-05-18 Marc Glisse <marc.glisse@inria.fr>
4958
4959 * fold-const.c (fold_binary_loc): Move transformation...
4960 * match.pd (C - X CMP X): ... here.
4961
4962 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com>
4963
4964 * config/sparc/sparc.c (sparc_option_override): Set function
4965 alignment for -mcpu=niagara7 to 64 to match the I$ line.
4966 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
4967 latency to 1.
4968 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
4969 latency to 2.
4970 * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
4971
4972 2017-05-18 Marek Polacek <polacek@redhat.com>
4973
4974 PR sanitizer/80797
4975 * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
4976 (pass_ubsan::execute): Call gimple_assign_single_p instead of
4977 gimple_assign_load_p.
4978
4979 2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
4980
4981 PR middle-end/80692
4982 * real.c (do_compare): Give decimal_do_compare preference over
4983 comparing just the signs.
4984
4985 2017-05-17 Uros Bizjak <ubizjak@gmail.com>
4986
4987 * doc/md.texi (Canonicalization of Instructions): Describe the
4988 canonical form of instructions that inherently set a condition
4989 code register.
4990
4991 2017-05-17 Peter Bergner <bergner@vnet.ibm.com>
4992
4993 PR middle-end/80775
4994 * tree-cfg.c: Move deletion of unreachable case statements to after
4995 the merging of consecutive case labels.
4996
4997 2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
4998
4999 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
5000 readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
5001 restoring of callee-saved registers.
5002
5003 2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
5004
5005 * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
5006 * config/visium/visium.c (single_set_and_flags): Likewise.
5007 * config/visium/visium.md (Substitutions): Likewise.
5008
5009 2017-05-17 Martin Liska <mliska@suse.cz>
5010
5011 * cfg.c: Introduce dump_flags_t type and
5012 use it instead of int type.
5013 * cfg.h: Likewise.
5014 * cfghooks.c: Likewise.
5015 * cfghooks.h (struct cfg_hooks): Likewise.
5016 * cfgrtl.c: Likewise.
5017 * cfgrtl.h: Likewise.
5018 * cgraph.c (cgraph_node::get_body): Likewise.
5019 * coretypes.h: Likewise.
5020 * domwalk.c: Likewise.
5021 * domwalk.h: Likewise.
5022 * dumpfile.c (struct dump_option_value_info): Likewise.
5023 (dump_enable_all): Likewise.
5024 (dump_switch_p_1): Likewise.
5025 (opt_info_switch_p): Likewise.
5026 * dumpfile.h (enum tree_dump_index): Likewise.
5027 (struct dump_file_info): Likewise.
5028 * genemit.c: Likewise.
5029 * generic-match-head.c: Likewise.
5030 * gengtype.c (open_base_files): Likewise.
5031 * gimple-pretty-print.c: Likewise.
5032 * gimple-pretty-print.h: Likewise.
5033 * graph.c (print_graph_cfg): Likewise.
5034 * graphite-scop-detection.c (dot_all_sese): Likewise.
5035 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
5036 * loop-unroll.c (report_unroll): Likewise.
5037 * passes.c (pass_manager::register_one_dump_file): Likewise.
5038 * print-tree.c: Likewise.
5039 * statistics.c: Likewise.
5040 * tree-cfg.c: Likewise.
5041 * tree-cfg.h: Likewise.
5042 * tree-dfa.c: Likewise.
5043 * tree-dfa.h: Likewise.
5044 * tree-dump.c (dump_function): Likewise.
5045 * tree-dump.h (struct dump_info): Likewise.
5046 * tree-pretty-print.c: Likewise.
5047 * tree-pretty-print.h: Likewise.
5048 * tree-ssa-live.c: Likewise.
5049 * tree-ssa-live.h: Likewise.
5050 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
5051 * tree-vect-loop.c: Likewise.
5052 * tree-vect-slp.c: Likewise.
5053
5054 2017-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5055 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5056
5057 PR tree-optimization/80457
5058 * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
5059 of all arguments to a statement as scalar_to_vec operations.
5060 (vectorizable_call): Adjust call to vect_model_simple_cost for
5061 new parameter.
5062 (vectorizable_conversion): Likewise.
5063 (vectorizable_assignment): Likewise.
5064 (vectorizable_shift): Likewise.
5065 (vectorizable_operation): Likewise.
5066 (vectorizable_comparison): Likewise.
5067 (vect_is_simple_cond): Record the def types for operands.
5068 (vectorizable_condition): Likewise, call vect_model_simple_cost.
5069 * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
5070 for statement argument count.
5071
5072 2017-05-16 Carl Love <cel@us.ibm.com>
5073
5074 * config/rs6000/rs6000-c: Add support for built-in functions
5075 vector unsigned long long vec_bperm (vector unsigned long long,
5076 vector unsigned char)
5077 vector signed long long vec_mule (vector signed int,
5078 vector signed int)
5079 vector unsigned long long vec_mule (vector unsigned int,
5080 vector unsigned int)
5081 vector signed long long vec_mulo (vector signed int,
5082 vector signed int)
5083 vector unsigned long long vec_mulo (vector unsigned int,
5084 vector unsigned int)
5085 vector signed char vec_sldw (vector signed char,
5086 vector signed char,
5087 const int)
5088 vector unsigned char vec_sldw (vector unsigned char,
5089 vector unsigned char,
5090 const int)
5091 vector signed short vec_sldw (vector signed short,
5092 vector signed short,
5093 const int)
5094 vector unsigned short vec_sldw (vector unsigned short,
5095 vector unsigned short,
5096 const int)
5097 vector signed int vec_sldw (vector signed int,
5098 vector signed int,
5099 const int)
5100 vector unsigned int vec_sldw (vector unsigned int,
5101 vector unsigned int,
5102 const int)
5103 vector signed long long vec_sldw (vector signed long long,
5104 vector signed long long,
5105 const int)
5106 vector unsigned long long vec_sldw (vector unsigned long long,
5107 vector unsigned long long,
5108 const int)
5109 * config/rs6000/rs6000-c: Add support for built-in functions
5110 * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
5111 * config/rs6000/altivec.h: Add defintion for vec_sldw.
5112 * doc/extend.texi: Update the built-in documentation for the
5113 new built-in functions.
5114
5115 2017-05-16 Marek Polacek <polacek@redhat.com>
5116
5117 PR sanitizer/80536
5118 PR sanitizer/80386
5119 * tree.c (save_expr): Don't fold the expression.
5120
5121 2017-05-16 Uros Bizjak <ubizjak@gmail.com>
5122
5123 * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
5124 to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
5125 and (?*y,m). Update insn attributes.
5126
5127 2017-05-16 Martin Liska <mliska@suse.cz>
5128
5129 * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
5130 flags argument of print_gimple_stmt, print_gimple_expr,
5131 print_generic_stmt and print_generic_expr.
5132 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
5133 * coretypes.h: Likewise.
5134 * except.c (dump_eh_tree): Likewise.
5135 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5136 * gimple-pretty-print.h: Likewise.
5137 * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
5138 (backprop::push_to_worklist): Likewise.
5139 (backprop::pop_from_worklist): Likewise.
5140 (backprop::process_use): Likewise.
5141 (backprop::intersect_uses): Likewise.
5142 (note_replacement): Likewise.
5143 * gimple-ssa-store-merging.c
5144 (pass_store_merging::terminate_all_aliasing_chains): Likewise.
5145 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
5146 (pass_store_merging::execute): Likewise.
5147 * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
5148 (ssa_base_cand_dump_callback): Likewise.
5149 (dump_incr_vec): Likewise.
5150 (replace_refs): Likewise.
5151 (replace_mult_candidate): Likewise.
5152 (create_add_on_incoming_edge): Likewise.
5153 (create_phi_basis): Likewise.
5154 (insert_initializers): Likewise.
5155 (all_phi_incrs_profitable): Likewise.
5156 (introduce_cast_before_cand): Likewise.
5157 (replace_one_candidate): Likewise.
5158 * gimplify.c (gimplify_expr): Likewise.
5159 * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
5160 (set_rename): Likewise.
5161 (rename_uses): Likewise.
5162 (copy_loop_phi_nodes): Likewise.
5163 (add_close_phis_to_merge_points): Likewise.
5164 (copy_loop_close_phi_args): Likewise.
5165 (copy_cond_phi_args): Likewise.
5166 (graphite_copy_stmts_from_block): Likewise.
5167 (translate_pending_phi_nodes): Likewise.
5168 * graphite-poly.c (print_pdr): Likewise.
5169 (dump_gbb_cases): Likewise.
5170 (dump_gbb_conditions): Likewise.
5171 (print_scop_params): Likewise.
5172 * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
5173 (build_cross_bb_scalars_use): Likewise.
5174 (gather_bbs::before_dom_children): Likewise.
5175 * hsa-dump.c (dump_hsa_immed): Likewise.
5176 * ipa-cp.c (print_ipcp_constant_value): Likewise.
5177 (get_replacement_map): Likewise.
5178 * ipa-inline-analysis.c (dump_condition): Likewise.
5179 (estimate_function_body_sizes): Likewise.
5180 * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
5181 (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
5182 * ipa-prop.c (ipa_dump_param): Likewise.
5183 (ipa_print_node_jump_functions_for_edge): Likewise.
5184 (ipa_modify_call_arguments): Likewise.
5185 (ipa_modify_expr): Likewise.
5186 (ipa_dump_param_adjustments): Likewise.
5187 (ipa_dump_agg_replacement_values): Likewise.
5188 (ipcp_modif_dom_walker::before_dom_children): Likewise.
5189 * ipa-pure-const.c (check_stmt): Likewise.
5190 (pass_nothrow::execute): Likewise.
5191 * ipa-split.c (execute_split_functions): Likewise.
5192 * omp-offload.c (dump_oacc_loop_part): Likewise.
5193 (dump_oacc_loop): Likewise.
5194 * trans-mem.c (tm_log_emit): Likewise.
5195 (tm_memopt_accumulate_memops): Likewise.
5196 (dump_tm_memopt_set): Likewise.
5197 (dump_tm_memopt_transform): Likewise.
5198 * tree-cfg.c (gimple_verify_flow_info): Likewise.
5199 (print_loop): Likewise.
5200 * tree-chkp-opt.c (chkp_print_addr): Likewise.
5201 (chkp_gather_checks_info): Likewise.
5202 (chkp_get_check_result): Likewise.
5203 (chkp_remove_check_if_pass): Likewise.
5204 (chkp_use_outer_bounds_if_possible): Likewise.
5205 (chkp_reduce_bounds_lifetime): Likewise.
5206 * tree-chkp.c (chkp_register_addr_bounds): Likewise.
5207 (chkp_mark_completed_bounds): Likewise.
5208 (chkp_register_incomplete_bounds): Likewise.
5209 (chkp_mark_invalid_bounds): Likewise.
5210 (chkp_maybe_copy_and_register_bounds): Likewise.
5211 (chkp_build_returned_bound): Likewise.
5212 (chkp_get_bound_for_parm): Likewise.
5213 (chkp_build_bndldx): Likewise.
5214 (chkp_get_bounds_by_definition): Likewise.
5215 (chkp_generate_extern_var_bounds): Likewise.
5216 (chkp_get_bounds_for_decl_addr): Likewise.
5217 * tree-chrec.c (chrec_apply): Likewise.
5218 * tree-data-ref.c (dump_data_reference): Likewise.
5219 (dump_subscript): Likewise.
5220 (dump_data_dependence_relation): Likewise.
5221 (analyze_overlapping_iterations): Likewise.
5222 * tree-inline.c (expand_call_inline): Likewise.
5223 (tree_function_versioning): Likewise.
5224 * tree-into-ssa.c (dump_defs_stack): Likewise.
5225 (dump_currdefs): Likewise.
5226 (dump_names_replaced_by): Likewise.
5227 (dump_update_ssa): Likewise.
5228 (update_ssa): Likewise.
5229 * tree-object-size.c (pass_object_sizes::execute): Likewise.
5230 * tree-parloops.c (build_new_reduction): Likewise.
5231 (try_create_reduction_list): Likewise.
5232 (ref_conflicts_with_region): Likewise.
5233 (oacc_entry_exit_ok_1): Likewise.
5234 (oacc_entry_exit_single_gang): Likewise.
5235 * tree-pretty-print.h: Likewise.
5236 * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
5237 (get_scalar_evolution): Likewise.
5238 (add_to_evolution): Likewise.
5239 (get_loop_exit_condition): Likewise.
5240 (analyze_evolution_in_loop): Likewise.
5241 (analyze_initial_condition): Likewise.
5242 (analyze_scalar_evolution): Likewise.
5243 (instantiate_scev): Likewise.
5244 (number_of_latch_executions): Likewise.
5245 (gather_chrec_stats): Likewise.
5246 (final_value_replacement_loop): Likewise.
5247 (scev_const_prop): Likewise.
5248 * tree-sra.c (dump_access): Likewise.
5249 (disqualify_candidate): Likewise.
5250 (create_access): Likewise.
5251 (reject): Likewise.
5252 (maybe_add_sra_candidate): Likewise.
5253 (create_access_replacement): Likewise.
5254 (analyze_access_subtree): Likewise.
5255 (analyze_all_variable_accesses): Likewise.
5256 (sra_modify_assign): Likewise.
5257 (initialize_constant_pool_replacements): Likewise.
5258 (find_param_candidates): Likewise.
5259 (decide_one_param_reduction): Likewise.
5260 (replace_removed_params_ssa_names): Likewise.
5261 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5262 * tree-ssa-copy.c (dump_copy_of): Likewise.
5263 (copy_prop_visit_cond_stmt): Likewise.
5264 * tree-ssa-dce.c (mark_operand_necessary): Likewise.
5265 * tree-ssa-dom.c (pass_dominator::execute): Likewise.
5266 (record_equivalences_from_stmt): Likewise.
5267 * tree-ssa-dse.c (compute_trims): Likewise.
5268 (delete_dead_call): Likewise.
5269 (delete_dead_assignment): Likewise.
5270 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
5271 (forward_propagate_into_cond): Likewise.
5272 (pass_forwprop::execute): Likewise.
5273 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
5274 * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
5275 Likewise.
5276 (move_computations_worker): Likewise.
5277 (execute_sm): Likewise.
5278 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
5279 (remove_exits_and_undefined_stmts): Likewise.
5280 (remove_redundant_iv_tests): Likewise.
5281 * tree-ssa-loop-ivopts.c (dump_use): Likewise.
5282 (adjust_iv_update_pos): Likewise.
5283 * tree-ssa-math-opts.c (bswap_replace): Likewise.
5284 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
5285 (value_replacement): Likewise.
5286 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
5287 * tree-ssa-pre.c (print_pre_expr): Likewise.
5288 (get_representative_for): Likewise.
5289 (create_expression_by_pieces): Likewise.
5290 (insert_into_preds_of_block): Likewise.
5291 (eliminate_insert): Likewise.
5292 (eliminate_dom_walker::before_dom_children): Likewise.
5293 (eliminate): Likewise.
5294 (remove_dead_inserted_code): Likewise.
5295 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
5296 * tree-ssa-reassoc.c (get_rank): Likewise.
5297 (eliminate_duplicate_pair): Likewise.
5298 (eliminate_plus_minus_pair): Likewise.
5299 (eliminate_not_pairs): Likewise.
5300 (undistribute_ops_list): Likewise.
5301 (eliminate_redundant_comparison): Likewise.
5302 (update_range_test): Likewise.
5303 (optimize_range_tests_var_bound): Likewise.
5304 (optimize_vec_cond_expr): Likewise.
5305 (rewrite_expr_tree): Likewise.
5306 (rewrite_expr_tree_parallel): Likewise.
5307 (linearize_expr): Likewise.
5308 (break_up_subtract): Likewise.
5309 (linearize_expr_tree): Likewise.
5310 (attempt_builtin_powi): Likewise.
5311 (attempt_builtin_copysign): Likewise.
5312 (transform_stmt_to_copy): Likewise.
5313 (transform_stmt_to_multiply): Likewise.
5314 (dump_ops_vector): Likewise.
5315 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
5316 (print_scc): Likewise.
5317 (set_ssa_val_to): Likewise.
5318 (visit_reference_op_store): Likewise.
5319 (visit_use): Likewise.
5320 (sccvn_dom_walker::before_dom_children): Likewise.
5321 (run_scc_vn): Likewise.
5322 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
5323 Likewise.
5324 (expr_hash_elt::print): Likewise.
5325 (const_and_copies::pop_to_marker): Likewise.
5326 (const_and_copies::record_const_or_copy_raw): Likewise.
5327 * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
5328 * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
5329 (dump_predicates): Likewise.
5330 (find_uninit_use): Likewise.
5331 (warn_uninitialized_phi): Likewise.
5332 (pass_late_warn_uninitialized::execute): Likewise.
5333 * tree-ssa.c (verify_vssa): Likewise.
5334 (verify_ssa): Likewise.
5335 (maybe_optimize_var): Likewise.
5336 * tree-vrp.c (dump_value_range): Likewise.
5337 (dump_all_value_ranges): Likewise.
5338 (dump_asserts_for): Likewise.
5339 (register_edge_assert_for_2): Likewise.
5340 (vrp_visit_cond_stmt): Likewise.
5341 (vrp_visit_switch_stmt): Likewise.
5342 (vrp_visit_stmt): Likewise.
5343 (vrp_visit_phi_node): Likewise.
5344 (simplify_cond_using_ranges_1): Likewise.
5345 (fold_predicate_in): Likewise.
5346 (evrp_dom_walker::before_dom_children): Likewise.
5347 (evrp_dom_walker::push_value_range): Likewise.
5348 (evrp_dom_walker::pop_value_range): Likewise.
5349 (execute_early_vrp): Likewise.
5350
5351 2017-05-16 Richard Biener <rguenther@suse.de>
5352
5353 * dwarf2out.c (loc_list_from_tree_1): Do not create
5354 DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
5355
5356 2017-05-16 Richard Biener <rguenther@suse.de>
5357
5358 * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
5359 just generated.
5360 (note_variable_value_in_expr): If we resolved the decl ref
5361 do not push to the stack.
5362
5363 2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
5364
5365 * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
5366 operations in fast-math mode.
5367 (vaddq_f16): Likewise.
5368 (vmul_f16): Likewise.
5369 (vmulq_f16): Likewise.
5370 (vsub_f16): Likewise.
5371 (vsubq_f16): Likewise.
5372 * config/arm/neon.md (add<mode>3): New.
5373 (sub<mode>3): New.
5374 (fma:<VH:mode>3): New. Also remove outdated comment.
5375 (mul<mode>3): New.
5376
5377 2017-05-16 Martin Liska <mliska@suse.cz>
5378
5379 PR ipa/79849.
5380 PR ipa/79850.
5381 * ipa-devirt.c (warn_types_mismatch): Fix typo.
5382 (odr_types_equivalent_p): Likewise.
5383
5384 2017-05-15 Sylvestre Ledru <sylvestre@debian.org>
5385
5386 * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
5387
5388 2017-05-15 Uros Bizjak <ubizjak@gmail.com>
5389
5390 PR target/80425
5391 * config/i386.i386.md (*zero_extendsidi2): Do not penalize
5392 non-interunit SSE move alternatives with '?'.
5393 (zero-extendsidi peephole2): New peephole to skip intermediate
5394 general register in SSE zero-extend sequence.
5395
5396 2017-05-15 Jeff Law <law@redhat.com>
5397
5398 * reorg.c (relax_delay_slots): Create a new variable to hold
5399 the temporary target rather than clobbering TARGET_LABEL.
5400
5401 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
5402 missing argument to extract_bit_field call.
5403 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
5404
5405 2017-05-15 Martin Liska <mliska@suse.cz>
5406
5407 PR driver/31468
5408 * gcc.c (process_command): Do not allow empty argument of -o option.
5409
5410 2017-05-15 Renlin Li <renlin.li@arm.com>
5411
5412 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
5413 * config/aarch64/aarch64.c (aarch64_expand_call): Define.
5414 * config/aarch64/constraints.md (Usf): Add long call check.
5415 * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
5416 (call_value): Likewise.
5417 (sibcall): Likewise.
5418 (sibcall_value): Likewise.
5419 (call_insn): New.
5420 (call_value_insn): New.
5421 (sibcall_insn): Update rtx pattern.
5422 (sibcall_value_insn): Likewise.
5423 (call_internal): Remove.
5424 (call_value_internal): Likewise.
5425 (sibcall_internal): Likewise.
5426 (sibcall_value_internal): Likewise.
5427 (call_reg): Likewise.
5428 (call_symbol): Likewise.
5429 (call_value_reg): Likewise.
5430 (call_value_symbol): Likewise.
5431
5432 2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
5433
5434 PR target/80600
5435 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
5436
5437 2017-05-14 Uros Bizjak <ubizjak@gmail.com>
5438
5439 * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
5440 compatible with CCGOCmode and with CCZmode.
5441
5442 2017-05-14 Martin Sebor <msebor@redhat.com>
5443
5444 PR middle-end/77671
5445 * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
5446 (gimple_fold_builtin_snprintf): Same.
5447 * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
5448 (gimple_fold_builtin_snprintf): Same.
5449 * gimple-ssa-sprintf.c (get_format_string): Correct the detection
5450 of character types.
5451 (is_call_safe): New function.
5452 (try_substitute_return_value): Call it.
5453 (try_simplify_call): New function.
5454 (pass_sprintf_length::handle_gimple_call): Call it.
5455
5456 2017-05-14 Martin Sebor <msebor@redhat.com>
5457
5458 PR middle-end/80669
5459 * builtins.c (expand_builtin_stpncpy): Simplify.
5460
5461 2017-05-14 Daniel Santos <daniel.santos@pobox.com>
5462
5463 * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
5464 * config/i386/i386.h
5465 (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
5466 (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
5467 (struct machine_function): Add new members call_ms2sysv,
5468 call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
5469 (struct machine_frame_state): New fields sp_realigned and
5470 sp_realigned_offset.
5471 * config/i386/i386.c
5472 (enum xlogue_stub): New enum.
5473 (enum xlogue_stub_sets): New enum.
5474 (class xlogue_layout): New class.
5475 (struct ix86_frame): New fields stack_realign_allocate_offset,
5476 stack_realign_offset and outlined_save_offset. Modify comments to
5477 detail stack layout when using out-of-line stubs.
5478 (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
5479 (ix86_option_override_internal): Add sorry() for TARGET_SEH and
5480 -mcall-ms2sysv-xlogues.
5481 (stub_managed_regs): New static variable.
5482 (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
5483 registers managed by out-of-line stub.
5484 (disable_call_ms2sysv_xlogues): New function.
5485 (ix86_compute_frame_layout): Modify re-alignment calculations, disable
5486 m->call_ms2sysv when appropriate and compute frame layout for
5487 out-of-line stubs.
5488 (sp_valid_at, fp_valid_at): New inline functions.
5489 (choose_basereg): New function.
5490 (choose_baseaddr): Add align parameter, use choose_basereg and modify
5491 all callers.
5492 (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
5493 Use align parameter of choose_baseaddr to generated aligned SSE movs
5494 when possible.
5495 (pro_epilogue_adjust_stack): Modify to track
5496 machine_frame_state::sp_realigned.
5497 (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
5498 (ix86_nsaved_sseregs): Likewise.
5499 (ix86_emit_save_regs): Likewise.
5500 (ix86_emit_save_regs_using_mov): Likewise.
5501 (ix86_emit_save_sse_regs_using_mov): Likewise.
5502 (get_scratch_register_on_entry): Likewise.
5503 (gen_frame_set): New function.
5504 (gen_frame_load): Likewise.
5505 (gen_frame_store): Likewise.
5506 (emit_outlined_ms2sysv_save): Likewise.
5507 (emit_outlined_ms2sysv_restore): Likewise.
5508 (ix86_expand_prologue): Modify stack re-alignment code and call
5509 emit_outlined_ms2sysv_save when appropriate.
5510 (ix86_emit_leave): Clear machine_frame_state::sp_realigned. Add
5511 parameter rtx_insn *insn, which allows the function to be used to only
5512 generate the notes.
5513 (ix86_expand_epilogue): Modify validity checks of frame and stack
5514 pointers, and call emit_outlined_ms2sysv_restore when appropriate.
5515 (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
5516 * config/i386/predicates.md
5517 (save_multiple): New predicate.
5518 (restore_multiple): Likewise.
5519 * config/i386/sse.md
5520 (save_multiple<mode>): New pattern.
5521 (save_multiple_realign<mode>): Likewise.
5522 (restore_multiple<mode>): Likewise.
5523 (restore_multiple_and_return<mode>): Likewise.
5524 (restore_multiple_leave_return<mode>): Likewise.
5525 * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
5526
5527 2017-05-14 Julia Koval <julia.koval@intel.com>
5528
5529 * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
5530 * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
5531 (__builtin_ia32_xsetbv): New builtins.
5532 * config/i386/i386.c (ix86_expand_special_args_builtin):
5533 Process new types.
5534 (ix86_expand_builtin): Special expand for new intrinsics.
5535 * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
5536 (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
5537 * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
5538
5539 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5540
5541 * cfganal.c (inverted_post_order_compute): Change argument type
5542 to vec *.
5543 * cfganal.h (inverted_post_order_compute): Adjust prototype.
5544 * df-core.c (rest_of_handle_df_initialize): Adjust.
5545 (rest_of_handle_df_finish): Likewise.
5546 (df_analyze_1): Likewise.
5547 (df_analyze): Likewise.
5548 (loop_inverted_post_order_compute): Change argument to be a vec *.
5549 (df_analyze_loop): Adjust.
5550 (df_get_n_blocks): Likewise.
5551 (df_get_postorder): Likewise.
5552 * df.h (struct df_d): Change field to be a vec.
5553 * lcm.c (compute_laterin): Adjust.
5554 (compute_available): Likewise.
5555 * lra-lives.c (lra_create_live_ranges_1): Likewise.
5556 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
5557 * tree-ssa-pre.c (compute_antic): Likewise.
5558
5559 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5560
5561 * cfganal.c (connect_infinite_loops_to_exit): Adjust.
5562 (depth_first_search::depth_first_search): Change structure init
5563 function to this constructor.
5564 (depth_first_search::add_bb): Rename function to this member.
5565 (depth_first_search::execute): Likewise.
5566 (flow_dfs_compute_reverse_finish): Adjust.
5567
5568 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5569
5570 * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
5571 (longest_simple_path): Likewise.
5572 * shrink-wrap.c (spread_components): Likewise.
5573 (disqualify_problematic_components): Likewise.
5574 (emit_common_heads_for_components): Likewise.
5575 (emit_common_tails_for_components): Likewise.
5576 (insert_prologue_epilogue_for_components): Likewise.
5577
5578 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5579
5580 * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
5581 auto_sbitmap.
5582
5583 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5584
5585 * df-core.c (df_set_blocks): Start using auto_bitmap.
5586 (df_compact_blocks): Likewise.
5587 * df-problems.c (df_rd_confluence_n): Likewise.
5588 * df-scan.c (df_insn_rescan_all): Likewise.
5589 (df_process_deferred_rescans): Likewise.
5590 (df_update_entry_block_defs): Likewise.
5591 (df_update_exit_block_uses): Likewise.
5592 (df_entry_block_bitmap_verify): Likewise.
5593 (df_exit_block_bitmap_verify): Likewise.
5594 (df_scan_verify): Likewise.
5595 * lra-constraints.c (lra_constraints): Likewise.
5596 (undo_optional_reloads): Likewise.
5597 (lra_undo_inheritance): Likewise.
5598 * lra-remat.c (calculate_gen_cands): Likewise.
5599 (do_remat): Likewise.
5600 * lra-spills.c (assign_spill_hard_regs): Likewise.
5601 (spill_pseudos): Likewise.
5602 * tree-ssa-pre.c (bitmap_set_and): Likewise.
5603 (bitmap_set_subtract_values): Likewise.
5604
5605 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5606
5607 * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
5608 management with auto_bitmap.
5609 (fix_inter_tick): Likewise.
5610 (fix_recovery_deps): Likewise.
5611 * ira.c (add_store_equivs): Likewise.
5612 (find_moveable_pseudos): Likewise.
5613 (split_live_ranges_for_shrink_wrap): Likewise.
5614 * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
5615 (rtx_reuse_manager::seen_def_p): Likewise.
5616 (rtx_reuse_manager::set_seen_def): Likewise.
5617 * print-rtl.h (class rtx_reuse_manager): Likewise.
5618
5619 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5620
5621 * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
5622 lifetime.
5623 (migrate_btr_def): Likewise.
5624 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
5625 * df-core.c (loop_post_order_compute): Likewise.
5626 (loop_inverted_post_order_compute): Likewise.
5627 * hsa-common.h: Likewise.
5628 * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
5629 * init-regs.c (initialize_uninitialized_regs): Likewise.
5630 * ipa-inline.c (resolve_noninline_speculation): Likewise.
5631 (inline_small_functions): Likewise.
5632 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
5633 * ira.c (combine_and_move_insns): Likewise.
5634 (build_insn_chain): Likewise.
5635 * loop-invariant.c (find_invariants): Likewise.
5636 * lower-subreg.c (propagate_pseudo_copies): Likewise.
5637 * predict.c (tree_predict_by_opcode): Likewise.
5638 (predict_paths_leading_to): Likewise.
5639 (predict_paths_leading_to_edge): Likewise.
5640 (estimate_loops_at_level): Likewise.
5641 (estimate_loops): Likewise.
5642 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5643 (spread_components): Likewise.
5644 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
5645 * tree-loop-distribution.c (rdg_build_partitions): Likewise.
5646 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
5647 * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
5648 * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
5649 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
5650 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
5651 * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
5652 (mark_threaded_blocks): Likewise.
5653 (thread_through_all_blocks): Likewise.
5654 * tree-ssa.c (verify_ssa): Likewise.
5655 (execute_update_addresses_taken): Likewise.
5656 * tree-ssanames.c (verify_ssaname_freelists): Likewise.
5657
5658 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5659
5660 * cfganal.c (mark_dfs_back_edges): Replace manual stack with
5661 auto_vec.
5662 (post_order_compute): Likewise.
5663 (inverted_post_order_compute): Likewise.
5664 (pre_and_rev_post_order_compute_fn): Likewise.
5665
5666 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5667
5668 * genrecog.c (int_set::int_set): Explicitly construct our
5669 auto_vec base class.
5670 * vec.h (auto_vec::auto_vec): New constructor.
5671
5672 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5673
5674 * bitmap.h (class auto_bitmap): New constructor taking
5675 bitmap_obstack * argument.
5676
5677 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5678
5679 * bitmap.h (class auto_bitmap): Change type of m_bits to
5680 bitmap_head, and adjust ctor / dtor and member operators.
5681
5682 2017-05-13 Uros Bizjak <ubizjak@gmail.com>
5683
5684 * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
5685 when returned register mode doesn't match original mode.
5686
5687 2017-05-12 Jeff Law <law@redhat.com>
5688 Jakub Jelinek <jakub@redhat.com>
5689
5690 * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
5691 we look for cc setter after the compare-elim changes.
5692 * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
5693 within the vector to match what compare-elim now expects.
5694 (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
5695 (xorsi3_flags, one_cmplsi2_flags): Likewise.
5696
5697 * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
5698 after the compare-elim changes.
5699 * config/rx/rx.md (abssi2_flags): Fix order of patterns within
5700 the vector to match what compare-elim now expects.
5701 (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
5702 (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
5703 (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
5704 (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
5705 (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
5706
5707 * config/visium/visium.c (single_set_and_flags): Fix where
5708 we look for cc setter after the compare-elim changes.
5709 * config/visium/visium.md (flags_subst_logic): Fix order of patterns
5710 with the vector to match what compare-elim now expects.
5711 (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
5712 (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
5713 (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
5714 (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
5715 (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
5716 (neg<mode>2_insn_set_overflow): Likewise.
5717
5718 2017-05-12 Jim Wilson <jim.wilson@linaro.org>
5719
5720 PR middle-end/79794
5721 * expmed.c (extract_bit_field_1): Add alt_rtl argument. Before
5722 maybe_expand_insn call, set ops[0].target. If still set after call,
5723 set alt_rtl. Add extra arg to recursive calls.
5724 (extract_bit_field): Add alt_rtl argument. Pass to
5725 extract_bit_field.
5726 * expmed.h (extract_bit_field): Fix prototype.
5727 * expr.c (emit_group_load_1, copy_blkmode_from_reg)
5728 (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
5729 to extract_bit_field_calls.
5730 (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
5731 Pass alt_rtl to extract_bit_field calls.
5732 * calls.c (store_unaligned_arguments_into_psuedos)
5733 load_register_parameters): Pass extra NULL to extract_bit_field calls.
5734 * optabs.c (maybe_legitimize_operand): Clear op->target when call
5735 gen_reg_rtx.
5736 * optabs.h (struct expand_operand): Add target bitfield.
5737
5738 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
5739
5740 * compare-elim.c (try_eliminate_compare): Canonicalize
5741 operation with embedded compare to
5742 [(set (reg:CCM) (compare:CCM (operation) (immediate)))
5743 (set (reg) (operation)].
5744
5745 * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
5746
5747 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
5748
5749 PR target/80723
5750 * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
5751 cost of adding a carry flag for ADC instruction.
5752 [case MINUS]: Ignore the cost of subtracting a carry flag
5753 for SBB instruction.
5754
5755 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org>
5756
5757 * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
5758 and x86intrin.h
5759 * config/rs6000/bmiintrin.h: New file.
5760 * config/rs6000/bmi2intrin.h: New file.
5761 * config/rs6000/x86intrin.h: New file.
5762
5763 2017-05-12 Jeff Law <law@redhat.com>
5764
5765 * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
5766 markers.
5767
5768 2017-05-12 Peter Bergner <bergner@vnet.ibm.com>
5769
5770 PR middle-end/80707
5771 * tree-cfg.c: Remove cfg edges of unreachable case statements.
5772
5773 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
5774
5775 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
5776 early expansion of vector divide builtins.
5777 (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
5778 builtins identified as having unsigned arguments.
5779
5780 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
5781
5782 * config/rs6000/rs6000.c (gimple-fold.h): New #include.
5783 (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
5784 expansion of vector logical operations (and, andc, or, xor,
5785 nor, orc, nand).
5786
5787 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
5788
5789 * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
5790 * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
5791
5792 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
5793
5794 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
5795 early GIMPLE expansion of vector multiplies.
5796
5797 2017-05-12 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
5798
5799 * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
5800 TARGET_HAVE_MOVT conditional.
5801 (movt splitter): Likewise.
5802
5803 2017-05-12 Richard Biener <rguenther@suse.de>
5804
5805 * tree-ssa-sccvn.h (has_VN_INFO): Declare.
5806 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5807 Fold all stmts not inplace.
5808
5809 2017-05-12 Richard Biener <rguenther@suse.de>
5810
5811 PR tree-optimization/80713
5812 * tree-ssa-pre.c (remove_dead_inserted_code): Clear
5813 inserted_exprs bit for not removed stmts.
5814
5815 2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
5816
5817 PR middle-end/69921
5818 * tree-parloops.c (create_parallel_loop): Set "oacc kernels
5819 parallelized" attribute for parallelized OpenACC kernels.
5820 * omp-offload.c (execute_oacc_device_lower): Use it.
5821
5822 * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
5823 Set "oacc kernels" attribute.
5824 * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
5825 parameter. Adjust all users.
5826 (oacc_fn_attrib_kernels_p): Remove function.
5827 * omp-offload.c (execute_oacc_device_lower): Look for "oacc
5828 kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
5829 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
5830 * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
5831 assert "oacc kernels" attribute is set.
5832
5833 2017-05-11 Carl Love <cel@us.ibm.com>
5834
5835 * config/rs6000/rs6000-c: Add support for built-in functions
5836 vector unsigned char vec_popcnt (vector signed char)
5837 vector unsigned char vec_popcnt (vector unsigned char)
5838 vector unsigned short vec_popcnt (vector signed short)
5839 vector unsigned short vec_popcnt (vector unsigned short)
5840 vector unsigned int vec_popcnt (vector signed int)
5841 vector unsigned int vec_popcnt (vector unsigned int)
5842 vector unsigned long long vec_popcnt (vector signed long long)
5843 vector unsigned long long vec_popcnt (vector unsigned long long)
5844 vector signed long long vec_slo (vector signed long long,
5845 vector signed char)
5846 vector signed long long vec_slo (vector signed long long,
5847 vector unsigned char)
5848 vector unsigned long long vec_slo (vector unsigned long long,
5849 vector signed char)
5850 vector unsigned long long vec_slo (vector unsigned long long,
5851 vector unsigned char)
5852 * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
5853 VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
5854 * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
5855 vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
5856 * doc/extend.texi: Update the built-in documentation file for the
5857 new built-in functions.
5858
5859 2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5860
5861 * attribs.h (sorted_attr_string): Move machine independent
5862 functions for target clone support from the i386 port to common
5863 code. Rename ix86_function_versions to common_function_versions.
5864 Rename make_name to make_unique_name.
5865 (common_function_versions): Likewise.
5866 (make_unique_name): Likewise.
5867 (make_dispatcher_decl): Likewise.
5868 (is_function_default_version): Likewise.
5869 * attribs.c (attr_strcmp): Likewise.
5870 (sorted_attr_string): Likewise.
5871 (common_function_versions): Likewise.
5872 (make_unique_name): Likewise.
5873 (make_dispatcher_decl): Likewise.
5874 (is_function_default_version): Likewise.
5875 * config/i386/i386.c (attr_strcmp): Likewise.
5876 (sorted_attr_string): Likewise.
5877 (ix86_function_versions): Likewise.
5878 (make_name): Likewise.
5879 (make_dispatcher_decl): Likewise.
5880 (is_function_default_version): Likewise.
5881 (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
5882
5883 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5884
5885 PR target/80695
5886 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5887 Account for direct move costs for vec_construct of integer
5888 vectors.
5889
5890 2017-05-11 Uros Bizjak <ubizjak@gmail.com>
5891
5892 PR target/80706
5893 * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
5894 (UNSPEC_STX_ATOMIC): Ditto.
5895 (loaddi_via_sse): New insn.
5896 (storedi_via_sse): Ditto.
5897 (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
5898 Update corresponding peephole2 patterns.
5899 (atomic_storedi_fpu): Ditto.
5900
5901 2017-05-11 Julia Koval <julia.koval@intel.com>
5902
5903 * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
5904 (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
5905 New intrinsics.
5906 * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
5907 (__builtin_ia32_rsqrt14ss_mask): New builtins.
5908 * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
5909
5910 2017-05-11 Nathan Sidwell <nathan@acm.org>
5911
5912 * graphite-poly.c: Include dumpfile.h.
5913
5914 * dumpfle.h (dump_function): Declare here ...
5915 * tree-dump.h (dump_function): ... not here.
5916 * dumpfile.c: #include tree-cfg.h.
5917 (dump_function): Move here from ...
5918 * tree-dump.c (dump_function): ... here.
5919 * gimplify.c: #include splay-tree.h, not tree-dump.h.
5920 * graphite-poly.c: Don't include tree-dump.h.
5921 * cgraphclones.c: Include dumpfile.h not tree-dump.h.
5922 * print-tree.c: Likewise.
5923 * stor-layout.c: Likewise.
5924 * tree-nested.c: Likewise.
5925
5926 * dumpfile.c (dump_start): Use TDF_FLAGS.
5927 (dump_enable_all): Fix TDF_KIND check thinko.
5928
5929 2017-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
5930
5931 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5932 array entries to represent two legal parameterizations of the
5933 overloaded __builtin_cmpb function, as represented by the
5934 P6_OV_BUILTIN_CMPB constant.
5935 (altivec_resolve_overloaded_builtin): Add special case handling
5936 for the __builtin_cmpb function, as represented by the
5937 P6_OV_BUILTIN_CMPB constant.
5938 * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
5939 (BU_P6_64BIT_2): New macro.
5940 (BU_P6_OVERLOAD_2): New macro
5941 (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
5942 (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
5943 (CMPB): Add overload support to represent both 32-bit and 64-bit
5944 compare-bytes function.
5945 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
5946 support for TARGET_CMPB.
5947 * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
5948 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
5949 documentation of the __builtin_cmpb overloaded built-in function.
5950
5951 2017-05-11 Richard Biener <rguenther@suse.de>
5952
5953 PR tree-optimization/80705
5954 * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
5955 bases are not vectorizable.
5956
5957 2017-05-11 Bin Cheng <bin.cheng@arm.com>
5958
5959 * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
5960 when counting register pressure.
5961
5962 2017-05-11 Bin Cheng <bin.cheng@arm.com>
5963
5964 * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
5965 (iv_ca_more_deps): Renamed to ...
5966 (iv_ca_compare_deps): ... this.
5967 (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
5968
5969 2017-05-11 Bin Cheng <bin.cheng@arm.com>
5970
5971 * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
5972 to ...
5973 (determine_group_iv_costs): ... here.
5974 (find_inv_vars_cb): Record inv var if it's not recorded before.
5975
5976 2017-05-11 Bin Cheng <bin.cheng@arm.com>
5977
5978 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
5979 (get_shiftadd_cost): Ditto.
5980
5981 2017-05-11 Bin Cheng <bin.cheng@arm.com>
5982
5983 * tree-ssa-address.c: Include header file.
5984 (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
5985 address.
5986 (add_to_parts): Refactor.
5987 (addr_to_parts): New parameter. Update use of move_hint_to_base.
5988 (create_mem_ref): Update use of addr_to_parts. Re-associate addr
5989 in new order.
5990
5991 2017-05-11 Bin Cheng <bin.cheng@arm.com>
5992
5993 PR tree-optimization/53090
5994 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
5995 COMP_IV_EXPR_2.
5996 (extract_cond_operands): Detect condition with IV on both sides
5997 and return COMP_IV_EXPR_2.
5998 (find_interesting_uses_cond): Add iv_use for both IVs in condition.
5999 (rewrite_use_compare): Simplify by removing call to function
6000 extract_cond_operands.
6001
6002 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6003
6004 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
6005 (extract_cond_operands): Detect condition comparing against non-
6006 invariant bound and return appropriate enum value.
6007 (find_interesting_uses_cond): Update use of extract_cond_operands.
6008 Handle its return value accordingly.
6009 (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
6010
6011 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6012
6013 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
6014 nonlinear iv_use computation in loop invariant sensitive way.
6015
6016 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6017
6018 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
6019 (find_iv_candidates): Call relate_compare_use_with_all_cands.
6020
6021 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6022
6023 * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
6024 (dump_cand): Support iv_cand.inv_exprs.
6025 (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
6026 for candidates.
6027 (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
6028 iv_cand.inv_exprs.
6029
6030 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6031
6032 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
6033 from ...
6034 * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
6035 as local function. Include necessary header files.
6036 * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
6037
6038 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6039
6040 * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
6041
6042 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6043
6044 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
6045 operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
6046 RSHIFT_EXPR and BIT_NOT_EXPR.
6047
6048 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6049
6050 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
6051 (adjust_setup_cost): New parameter supporting round up adjustment.
6052 (struct address_cost_data): Delete.
6053 (force_expr_to_var_cost): Don't bound cost with spill_cost.
6054 (split_address_cost, ptr_difference_cost): Delete.
6055 (difference_cost, compare_aff_trees, record_inv_expr): Delete.
6056 (struct ainc_cost_data): New struct.
6057 (get_address_cost_ainc): New function.
6058 (get_address_cost, get_computation_cost): Reimplement.
6059 (determine_group_iv_cost_address): Record inv_expr for all uses of
6060 a group.
6061 (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
6062 (iv_ca_has_deps): Reimplemented to ...
6063 (iv_ca_more_deps): ... this. Check if NEW_CP introduces more deps
6064 than OLD_CP.
6065 (iv_ca_extend): Call iv_ca_more_deps.
6066
6067 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6068
6069 * tree-ssa-address.c (struct mem_address): Move to header file.
6070 (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
6071 * tree-ssa-address.h (struct mem_address): Move from C file.
6072 (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
6073
6074 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6075
6076 * tree-affine.h (aff_combination_type): New interface.
6077 (aff_combination_zero_p): Remove static.
6078 (aff_combination_const_p): New interface.
6079 (aff_combination_singleton_var_p): New interfaces.
6080
6081 2017-05-11 Richard Biener <rguenther@suse.de>
6082
6083 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6084 Skip unreachable blocks and destinations.
6085 (eliminate): Move stmt removal and fixup ...
6086 (fini_eliminate): ... here. Skip inserted exprs.
6087 (pass_pre::execute): Move fini_pre after fini_eliminate.
6088 * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
6089 (tail_merge_optimize): Run cleanup_tree_cfg if requested by
6090 PRE to get rid of dead code that has invalid SSA form and
6091 split critical edges again.
6092
6093 2017-05-11 Bin Cheng <bin.cheng@arm.com>
6094
6095 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
6096
6097 2017-05-11 Richard Biener <rguenther@suse.de>
6098
6099 * passes.c (execute_function_todo): Verify loops if they are
6100 said to be up-to-date.
6101 * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
6102 * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
6103
6104 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
6105
6106 PR target/80090
6107 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
6108 handle calling assemble_external ourself.
6109
6110 PR target/79027
6111 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
6112 modes with zero size. Enhance comment.
6113
6114 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6115
6116 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
6117 built-ins for vec_xl and vec_xst with short and char pointer
6118 arguments.
6119
6120 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
6121
6122 * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
6123 (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
6124 (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
6125 (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
6126 (_mm_maskz_min_round_ss): New intrinsics.
6127 * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
6128 (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
6129 * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
6130 (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
6131 (__builtin_ia32_minss_mask_round): New builtins.
6132 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
6133 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
6134 * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
6135 Rename to ...
6136 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
6137 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
6138 Change to ...
6139 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
6140 ... this.
6141
6142 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
6143
6144 * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
6145 (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
6146 (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
6147 (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
6148 (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
6149 (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
6150 (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
6151 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
6152 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
6153 * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
6154 (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
6155 (__builtin_ia32_mulss_mask_round): New builtins.
6156 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
6157 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
6158 * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
6159 Rename to ...
6160 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
6161 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
6162 Change to ...
6163 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
6164 ... this.
6165
6166 2017-05-10 Julia Koval <julia.koval@intel.com>
6167
6168 * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
6169 (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
6170 (_mm256_setr_m128i): New intrinsics.
6171
6172 2017-05-10 Julia Koval <julia.koval@intel.com>
6173
6174 * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
6175 (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
6176 (_mm_maskz_rcp14_ss): New intrinsics.
6177 * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
6178 (__builtin_ia32_rcp14ss_mask): New builtins.
6179 * config/i386/sse.md (srcp14<mode>_mask): New pattern.
6180
6181 2017-05-10 Peter Bergner <bergner@vnet.ibm.com>
6182
6183 PR tree-optimization/51513
6184 * tree-cfg.c (gimple_seq_unreachable_p): New function.
6185 (assert_unreachable_fallthru_edge_p): Use it.
6186 (group_case_labels_stmt): Likewise.
6187 * tree-cfg.h: Prototype it.
6188 * stmt.c: Include cfghooks.h and tree-cfg.h.
6189 (emit_case_dispatch_table) <gap_label>: New local variable.
6190 Use it to fill dispatch table gaps.
6191 Test for default_label before updating probabilities.
6192 (expand_case) <default_label>: Remove unneeded initialization.
6193 Test for unreachable default case statement and remove its edge.
6194 Set default_label accordingly.
6195 * tree-ssa-ccp.c (optimize_unreachable): Update comment.
6196
6197 2017-05-10 Carl Love <cel@us.ibm.com>
6198
6199 * config/rs6000/rs6000-c: Add support for built-in functions
6200 vector signed char vec_neg (vector signed char)
6201 vector signed short int vec_neg (vector short int)
6202 vector signed int vec_neg (vector signed int)
6203 vector signed long long vec_neg (vector signed long long)
6204 vector float vec_neg (vector float)
6205 vector double vec_neg (vector double)
6206 * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
6207 overload.
6208 * config/rs6000/altivec.h: Add define for vec_neg
6209 * doc/extend.texi: Update the built-in documentation for the
6210 new built-in functions.
6211
6212 2017-05-10 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6213
6214 PR tree-optimization/77644
6215 * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
6216
6217 2017-05-10 Nathan Sidwell <nathan@acm.org>
6218
6219 * dumpfile.h (TDI_lang_all): New.
6220 (TDF_KIND): New. Renumber others
6221 (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
6222 than bits.
6223 * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add
6224 lang-all.
6225 (get_dump_file_name): Adjust suffix generation.
6226 (dump_enable_all): Use TDF_KIND.
6227 * doc/invoke.texi (-fdump-lang-all): Document.
6228
6229 * dumpfile.h: Tabify.
6230
6231 2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
6232
6233 PR target/80671
6234 * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
6235 Move member access before delete.
6236
6237 2017-05-10 Alexandre Oliva <aoliva@redhat.com>
6238
6239 * tree-inline.c (expand_call_inline): Split block at stmt
6240 before the call.
6241
6242 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6243
6244 PR target/68163
6245 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
6246 are now unused after splitting mov{sf,sd}_hardfloat.
6247 (f32_lr2): Likewise.
6248 (f32_lm): Likewise.
6249 (f32_lm2): Likewise.
6250 (f32_li): Likewise.
6251 (f32_li2): Likewise.
6252 (f32_lv): Likewise.
6253 (f32_sr): Likewise.
6254 (f32_sr2): Likewise.
6255 (f32_sm): Likewise.
6256 (f32_sm2): Likewise.
6257 (f32_si): Likewise.
6258 (f32_si2): Likewise.
6259 (f32_sv): Likewise.
6260 (f32_dm): Likewise.
6261 (f32_vsx): Likewise.
6262 (f32_av): Likewise.
6263 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
6264 For movsf, order stores so the VSX stores occur before the GPR
6265 store which encourages the register allocator to use a traditional
6266 FPR instead of a GPR. For movsd, order the stores so that the GPR
6267 store comes before the VSX stores to allow the power6 to work.
6268 This is due to the power6 not having a 32-bit integer store
6269 instruction from a FPR.
6270 (movsf_hardfloat): Likewise.
6271 (movsd_hardfloat): Likewise.
6272
6273 2017-05-09 Martin Sebor <msebor@redhat.com>
6274
6275 PR translation/80280
6276 * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
6277 added in r247778.
6278
6279 PR translation/80280
6280 * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
6281 data member added in r247778.
6282 (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
6283
6284 2017-05-09 Nathan Sidwell <nathan@acm.org>
6285
6286 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
6287
6288 * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
6289 typedefs.
6290
6291 2017-05-09 Marek Polacek <polacek@redhat.com>
6292
6293 * doc/invoke.texi: Fix typo.
6294
6295 2017-05-09 Richard Biener <rguenther@suse.de>
6296
6297 * tree-vrp.c (vrp_val_is_max): Adjust comment.
6298 (vrp_val_is_min): Likewise.
6299 (set_value_range_to_value): Likewise.
6300 (set_value_range_to_nonnegative): Likewise.
6301 (gimple_assign_nonzero_p): Likewise.
6302 (gimple_stmt_nonzero_p): Likewise.
6303 (vrp_int_const_binop): Likewise. Remove unreachable case.
6304 (adjust_range_with_scev): Adjust comments.
6305 (compare_range_with_value): Likewise.
6306 (extract_range_from_phi_node): Likewise.
6307 (test_for_singularity): Likewise.
6308
6309 2017-05-09 Richard Biener <rguenther@suse.de>
6310
6311 * tree-vrp.c (get_single_symbol): Add assert that we don't
6312 get overflowed constants as invariant part.
6313 (compare_values_warnv): Add comment before the TREE_NO_WARNING
6314 checks. Use wi::cmp instead of recursing for integer constants.
6315 (compare_values): Just ignore whether we assumed undefined
6316 overflow instead of failing the compare.
6317 (extract_range_for_var_from_comparison_expr): Add comment before the
6318 TREE_NO_WARNING sets.
6319 (test_for_singularity): Likewise.
6320 (extract_range_from_comparison): Do not disable optimization
6321 when we assumed undefined overflow.
6322 (extract_range_basic): Remove init of unused var.
6323
6324 2017-05-09 Richard Biener <rguenther@suse.de>
6325
6326 * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
6327 (extract_range_from_multiplicative_op_1): Adjust.
6328 (extract_range_from_binary_expr_1): Use int_const_binop.
6329
6330 2017-05-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
6331
6332 PR target/80101
6333 * config/rs6000/power6.md: Replace store_data_bypass_p calls with
6334 rs6000_store_data_bypass_p in seven define_bypass directives and
6335 in several comments.
6336 * config/rs6000/rs6000-protos.h: Add prototype for
6337 rs6000_store_data_bypass_p function.
6338 * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
6339 function implements slightly different (rs6000-specific) semantics
6340 than store_data_bypass_p, returning false rather than aborting
6341 with assertion error when arguments do not satisfy the
6342 requirements of store data bypass.
6343 (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
6344 rs6000_store_data_bypass_p.
6345
6346 2017-05-08 Max Filippov <jcmvbkbc@gmail.com>
6347
6348 * config/xtensa/xtensa-protos.h
6349 (xtensa_initial_elimination_offset): New declaration.
6350 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
6351 New function. Move its body from the INITIAL_ELIMINATION_OFFSET
6352 macro definition, add case for FRAME_POINTER_REGNUM when
6353 FRAME_GROWS_DOWNWARD.
6354 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
6355 (INITIAL_ELIMINATION_OFFSET): Replace body with call to
6356 xtensa_initial_elimination_offset.
6357
6358 2017-05-08 Nathan Sidwell <nathan@acm.org>
6359
6360 * doc/invoke.texi: Alphabetize -fdump options.
6361
6362 2017-05-08 Martin Sebor <msebor@redhat.com>
6363
6364 PR translation/80280
6365 * config/sol2-c.c (solaris_pragma_align): Correct quoting.
6366
6367 2017-05-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
6368
6369 * target.def (compute_frame_layout): New optional target hook.
6370 * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
6371 * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
6372 * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
6373 target hook.
6374 * reload1.c (verify_initial_elim_offsets): Likewise.
6375 * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
6376 (use_simple_return_p): Call arm_compute_frame_layout if needed.
6377 (arm_get_frame_offsets): Split up into this ...
6378 (arm_compute_frame_layout): ... and this function.
6379
6380 2017-05-08 Richard Sandiford <richard.sandiford@arm.com>
6381
6382 * config/aarch64/constraints.md (Usa): New constraint.
6383 * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
6384
6385 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
6386
6387 * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
6388 with_multilib_list after it has been checked.
6389
6390 2017-05-08 Richard Biener <rguenther@suse.de>
6391
6392 * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
6393 (bitmap_set_subtract_values): Likewise.
6394
6395 2017-05-08 Richard Biener <rguenther@suse.de>
6396
6397 * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
6398 (gimple_assign_nonzero): ... this and remove strict_overflow_p
6399 argument.
6400 (gimple_stmt_nonzero_warnv_p): Rename to ...
6401 (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
6402 argument.
6403 (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
6404 (extract_range_basic): Adjust, do not disable propagation on
6405 strict overflow sensitive simplification.
6406 (vrp_visit_cond_stmt): Likewise.
6407
6408 2017-05-05 Jan Hubicka <hubicka@ucw.cz>
6409
6410 * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
6411 body size unconditionally.
6412
6413 2017-05-07 Jeff Law <law@redhat.com>
6414
6415 Revert:
6416 2017-05-06 Jeff Law <law@redhat.com>
6417 PR tree-optimization/78496
6418 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
6419 code.
6420
6421 PR tree-optimization/78496
6422 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
6423 (simplify_stmt_using_ranges): Call it.
6424 (vrp_dom_walker::before_dom_children): Extract equivalences
6425 from an ASSERT_EXPR with an equality comparison against a
6426 constant.
6427
6428 2017-05-06 Jeff Law <law@redhat.com>
6429
6430 PR tree-optimization/78496
6431 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
6432 code.
6433
6434 PR tree-optimization/78496
6435 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
6436 (simplify_stmt_using_ranges): Call it.
6437 (vrp_dom_walker::before_dom_children): Extract equivalences
6438 from an ASSERT_EXPR with an equality comparison against a
6439 constant.
6440
6441 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
6442
6443 * lra-constraints.c (lra_copy_reg_equiv): New function.
6444 (split_reg): Use it to copy equivalence information from the
6445 original register to the spill register.
6446
6447 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
6448
6449 PR rtl-optimization/75964
6450 * simplify-rtx.c (simplify_const_relational_operation): Remove
6451 invalid handling of comparisons of integer ABS.
6452
6453 2017-05-06 Uros Bizjak <ubizjak@gmail.com>
6454
6455 * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
6456 initialize to zero.
6457 (init_regs): Remove declaration.
6458 (function_arg_advance_32): Initialize error_p as boolean variable.
6459
6460 2017-05-05 Nathan Sidwell <nathan@acm.org>
6461
6462 * store-motion.c (remove_reachable_equiv_notes): Reformat long
6463 lines. Use for (;;).
6464
6465 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6466
6467 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
6468 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
6469 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
6470 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
6471 VF=2 that require versioning.
6472
6473 2017-05-05 David Malcolm <dmalcolm@redhat.com>
6474
6475 * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
6476 int.
6477
6478 2017-05-05 David Malcolm <dmalcolm@redhat.com>
6479
6480 * diagnostic.h (diagnostic_override_option_index): Convert from
6481 macro to inline function.
6482
6483 2017-05-05 David Malcolm <dmalcolm@redhat.com>
6484
6485 * diagnostic.c (last_module_changed_p): New function.
6486 (set_last_module): New function.
6487 (diagnostic_report_current_module): Convert macro usage to
6488 the above functions.
6489 * diagnostic.h (diagnostic_context::last_module): Strengthen
6490 from const line_map * to const line_map_ordinary *.
6491 (diagnostic_last_module_changed): Delete macro.
6492 (diagnostic_set_last_module): Delete macro.
6493
6494 2017-05-05 David Malcolm <dmalcolm@redhat.com>
6495
6496 * diagnostic.c (diagnostic_impl): Replace report_diagnostic
6497 with diagnostic_report_diagnostic.
6498 (diagnostic_n_impl_richloc): Likewise.
6499 * diagnostic.h (report_diagnostic): Delete macro.
6500 * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
6501 with diagnostic_report_diagnostic.
6502 * substring-locations.c (format_warning_va): Likewise.
6503
6504 2017-05-05 David Malcolm <dmalcolm@redhat.com>
6505
6506 * diagnostic.c (diagnostic_report_diagnostic): Eliminate
6507 save/restor of format_spec. Move option-printing code to...
6508 (print_option_information): ...this new function, and
6509 reimplement by simply printing to the pretty_printer,
6510 rather than appending to the format string.
6511
6512 2017-05-05 David Malcolm <dmalcolm@redhat.com>
6513
6514 * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
6515 handling logic into...
6516 (update_effective_level_from_pragmas): ...this new function.
6517
6518 2017-05-04 Andrew Waterman <andrew@sifive.com>
6519
6520 * config/riscv/riscv.opt (mstrict-align): New option.
6521 * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it. Update comment.
6522 (SLOW_UNALIGNED_ACCESS): Define.
6523 (riscv_slow_unaligned_access): Declare.
6524 * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
6525 field.
6526 (riscv_slow_unaligned_access): New variable.
6527 (rocket_tune_info): Set slow_unaligned_access to true.
6528 (optimize_size_tune_info): Set slow_unaligned_access to false.
6529 (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
6530 (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
6531 (riscv_option_override): Set riscv_slow_unaligned_access.
6532 * doc/invoke.texi: Add -mstrict-align to RISC-V.
6533
6534 2017-05-04 Kito Cheng <kito.cheng@gmail.com>
6535
6536 * config/riscv/riscv.md: Unify indentation.
6537
6538 2017-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
6539
6540 PR target/79038
6541 PR target/79202
6542 PR target/79203
6543 * config/rs6000/rs6000.md (u code attribute): Add FIX and
6544 UNSIGNED_FIX.
6545 (extendsi<mode>2): Add support for doing sign extension via
6546 VUPKHSW and XXPERMDI if the value is in Altivec registers and we
6547 don't have ISA 3.0 instructions.
6548 (extendsi<mode>2 splitter): Likewise.
6549 (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
6550 generate the normal insns since SImode can now go in vector
6551 registers. Disallow the special UNSPECs needed for previous
6552 machines to hide SImode being used. Add new insns
6553 fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
6554 (fix_trunc<mode>si2_stfiwx): Likewise.
6555 (fix_trunc<mode>si2_internal): Likewise.
6556 (fixuns_trunc<mode>si2): Likewise.
6557 (fixuns_trunc<mode>si2_stfiwx): Likewise.
6558 (fctiw<u>z_<mode>_smallint): Likewise.
6559 (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
6560 of floating point to 32-bit integer from doing a direct move to
6561 the GPR registers to do a store.
6562 (fctiwz_<mode>): Break long line.
6563
6564 2017-05-05 Bin Cheng <bin.cheng@arm.com>
6565
6566 * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
6567 * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
6568 (addr_list, addr_offset_valid_p): New.
6569 (split_address_groups): Check offset validity with above function.
6570 (gt-tree-ssa-loop-ivopts.h): Include header file.
6571
6572 2017-05-05 Nathan Sidwell <nathan@acm.org>
6573
6574 * config.gcc (arm*-*-*): Add missing 'fi'.
6575
6576 2017-05-05 Steve Ellcey <sellcey@cavium.com>
6577
6578 * doc/invoke.texi (-fopt-info): Explicitly say order of options
6579 included in -fopt-info does not matter.
6580 * doc/optinfo.texi (-fopt-info): Fix description of default
6581 behavour. Explicitly say order of options included in -fopt-info
6582 does not matter.
6583
6584 2017-05-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
6585
6586 * config.gcc: Allow combinations of aprofile and rmprofile values for
6587 --with-multilib-list.
6588 * config/arm/t-multilib: New file.
6589 * config/arm/t-aprofile: Remove initialization of MULTILIB_*
6590 variables. Remove setting of ISA and floating-point ABI in
6591 MULTILIB_OPTIONS and MULTILIB_DIRNAMES. Set architecture and FPU in
6592 MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
6593 and MULTILIB_DIRNAMES respectively. Add comment to introduce all
6594 matches. Add architecture matches for marvel-pj4 and generic-armv7-a
6595 CPU options.
6596 * config/arm/t-rmprofile: Likewise except for the matches changes.
6597 * doc/install.texi (--with-multilib-list): Document the combination of
6598 aprofile and rmprofile values and warn about pitfalls in doing that.
6599
6600 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
6601
6602 * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
6603 (movdi_aarch64): Likewise.
6604
6605 2017-05-05 Jakub Jelinek <jakub@redhat.com>
6606
6607 PR tree-optimization/80632
6608 * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
6609 field.
6610 (build_arrays): Initialize it for virtual phis.
6611 (fix_phi_nodes): Use it for virtual phis.
6612
6613 PR tree-optimization/80558
6614 * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
6615 [x, y] op z into [x op, y op z] for op & or | if conditions
6616 are met.
6617
6618 2017-05-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
6619 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
6620
6621 PR target/71607
6622 * config/arm/arm.md (use_literal_pool): Remove.
6623 (64-bit immediate split): No longer takes cost into consideration
6624 if arm_disable_literal_pool is enabled.
6625 * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
6626 used when arm_disable_literal_pool is enabled.
6627 (arm_max_const_double_inline_cost): Remove use of
6628 arm_disable_literal_pool.
6629 (push_minipool_fix): Add assert.
6630 (arm_reorg): Add return if arm_disable_literal_pool is enabled.
6631 * config/arm/vfp.md (no_literal_pool_df_immediate): New.
6632 (no_literal_pool_sf_immediate): New.
6633
6634 2017-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6635
6636 PR tree-optimization/80613
6637 * tree-ssa-dce.c (propagate_necessity): Remove cases for
6638 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
6639
6640 2017-05-05 Richard Biener <rguenther@suse.de>
6641
6642 * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
6643
6644 2017-05-05 Georg-Johann Lay <avr@gjlay.de>
6645
6646 * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
6647 of this flag from insn conditions due to removal from r247495.
6648
6649 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
6650
6651 * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
6652 New function.
6653 (arm_early_store_addr_dep_ptr): Likewise.
6654 * config/arm/aarch-common-protos.h
6655 (arm_early_load_addr_dep_ptr): Add prototype.
6656 (arm_early_store_addr_dep_ptr): Likewise.
6657 * config/arm/cortex-a53.md: Add new bypasses.
6658
6659 2017-05-05 Jakub Jelinek <jakub@redhat.com>
6660
6661 * tree.c (next_type_uid): Change type to unsigned.
6662 (type_hash_canon): Decrement back next_type_uid if
6663 freeing a type node with the highest TYPE_UID. For INTEGER_TYPEs
6664 also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
6665 if possible.
6666
6667 2017-05-04 Martin Sebor <msebor@redhat.com>
6668
6669 * builtins.c: Fix a trivial typo in a comment.
6670
6671 PR middle-end/79234
6672 * builtins.c (check_sizes): Adjust to handle reading past the end.
6673 Avoid printing excessive upper bound of ranges. Use %E to print
6674 tree nodes instead of converting them to %wu.
6675 (expand_builtin_memchr): New function.
6676 (compute_dest_size): Rename...
6677 (compute_objsize): ...to this.
6678 (expand_builtin_memcpy): Adjust.
6679 (expand_builtin_mempcpy): Adjust.
6680 (expand_builtin_strcat): Adjust.
6681 (expand_builtin_strcpy): Adjust.
6682 (check_strncat_sizes): Adjust.
6683 (expand_builtin_strncat): Adjust.
6684 (expand_builtin_strncpy): Adjust and simplify.
6685 (expand_builtin_memset): Adjust.
6686 (expand_builtin_bzero): Adjust.
6687 (expand_builtin_memcmp): Adjust.
6688 (expand_builtin): Handle memcmp.
6689 (maybe_emit_chk_warning): Check strncat just once.
6690
6691 2017-05-04 Martin Sebor <msebor@redhat.com>
6692
6693 PR preprocessor/79214
6694 PR middle-end/79222
6695 PR middle-end/79223
6696 * builtins.c (check_sizes): Add inlining context and issue
6697 warnings even when -Wno-system-headers is set.
6698 (check_strncat_sizes): Same.
6699 (expand_builtin_strncat): Same.
6700 (expand_builtin_memmove): New function.
6701 (expand_builtin_stpncpy): Same.
6702 (expand_builtin): Handle memmove and stpncpy.
6703
6704 2017-05-04 Bin Cheng <bin.cheng@arm.com>
6705
6706 * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
6707 which is not used any more.
6708
6709 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
6710
6711 * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
6712
6713 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
6714
6715 * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
6716 (cortexa53_tunings): Likewise.
6717 (cortexa57_tunings): Likewise.
6718 (cortexa72_tunings): Likewise.
6719 (cortexa73_tunings): Likewise.
6720
6721 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
6722
6723 * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
6724 Set loop alignment to 8.
6725
6726 2017-05-04 Martin Sebor <msebor@redhat.com>
6727
6728 PR translation/80280
6729 * builtins.c (expand_builtin_object_size): Add missing quoting to
6730 %D and like directives.
6731 * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
6732 (hsa_type_for_tree_type): Same.
6733 (verify_function_arguments): Same.
6734 * symtab.c (symbol_table::change_decl_assembler_name): Same.
6735 * varasm.c (get_section): Same.
6736 (mark_weak): Same.
6737
6738 2017-05-04 Martin Sebor <msebor@redhat.com>
6739
6740 PR translation/80280
6741 * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
6742
6743 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
6744
6745 * config/aarch64/aarch64.c (generic_addrcost_table):
6746 Change HI/TI mode setting.
6747
6748 2017-05-04 Martin Jambor <mjambor@suse.cz>
6749
6750 PR tree-optimization/80622
6751 * tree-sra.c (comes_initialized_p): New function.
6752 (build_accesses_from_assign): Only set write lazily when
6753 comes_initialized_p is false.
6754 (analyze_access_subtree): Use comes_initialized_p.
6755 (propagate_subaccesses_across_link): Assert !comes_initialized_p
6756 instead of testing for PARM_DECL.
6757
6758 2017-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6759
6760 * config/aarch64/aarch64.md (prefetch); Adjust predicate and
6761 constraint on operand 0 to allow more general addressing modes.
6762 Adjust output template.
6763 * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
6764 New function.
6765 * config/aarch64/aarch64-protos.h
6766 (aarch64_address_valid_for_prefetch_p): Declare prototype.
6767 * config/aarch64/constraints.md (Dp): New address constraint.
6768 * config/aarch64/predicates.md (aarch64_prefetch_operand): New
6769 predicate.
6770
6771 2017-05-04 Jan Hubicka <hubicka@ucw.cz>
6772
6773 * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
6774 update use of estimate_ipcp_clone_size_and_time.
6775 (estimate_local_effects): Update use of
6776 estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
6777 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
6778 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
6779 Return nonspecialized time.
6780
6781 2017-05-04 Richard Biener <rguenther@suse.de>
6782
6783 * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
6784 for the last VUSE which def dominates the PHI. Directly call
6785 maybe_skip_until.
6786 (get_continuation_for_phi_1): Remove.
6787
6788 2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6789
6790 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
6791 to explain the use of truncating division. Cap the number of
6792 iterations to the maximum given by nb_iterations_upper_bound,
6793 if defined.
6794
6795 2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6796
6797 * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
6798 * configure: Regenerate.
6799 * config.in: Regenerate.
6800 * config/i386/driver-mingw32.c: new file.
6801 * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
6802 * config.host: Link driver-mingw32.o on MinGW host.
6803 * doc/install.texi: Document new --enable-mingw-wildcard configure
6804 option.
6805
6806 2017-05-04 Marek Polacek <polacek@redhat.com>
6807
6808 PR tree-optimization/80612
6809 * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
6810
6811 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
6812 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
6813
6814 * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
6815 (movt splitter): Likewise.
6816 * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
6817 to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
6818 (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
6819 block for Thumb-1 with MOVT.
6820 (thumb2_legitimate_address_p): Move code block ...
6821 (can_avoid_literal_pool_for_label_p): ... into this new function.
6822 (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
6823 literal pool.
6824 (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
6825 * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
6826 "M-profile targets with the MOVT instruction".
6827
6828 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
6829
6830 * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
6831 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
6832 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
6833
6834 2017-05-04 Martin Liska <mliska@suse.cz>
6835
6836 * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
6837 variable cond_code.
6838
6839 2017-05-04 Richard Biener <rguenther@suse.de>
6840
6841 * tree.c (array_at_struct_end_p): Handle arrays at struct
6842 end with flexarrays more conservatively. Refactor and treat
6843 arrays of arrays or aggregates more strict. Fix
6844 VIEW_CONVERT_EXPR handling. Remove allow_compref argument.
6845 * tree.c (array_at_struct_end_p): Adjust prototype.
6846 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
6847 * gimple-fold.c (get_range_strlen): Likewise.
6848 * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
6849
6850 2017-05-04 Richard Biener <rguenther@suse.de>
6851
6852 PR tree-optimization/31130
6853 * tree-vrp.c (needs_overflow_infinity): Remove as always returning
6854 false.
6855 (supports_overflow_infinity): Likewise.
6856 (is_negative_overflow_infinity): Likewise.
6857 (is_positive_overflow_infinity): Likewise.
6858 (is_overflow_infinity): Likewise.
6859 (stmt_overflow_infinity): Likewise.
6860 (overflow_infinity_range_p): Likewise.
6861 (usable_range_p): Remove as always returning true.
6862 (make_overflow_infinity): Remove.
6863 (negative_overflow_infinity): Likewise.
6864 (positive_overflow_infinity): Likewise.
6865 (avoid_overflow_infinity): Likewise.
6866 (set_value_range): Adjust accordingly.
6867 (set_value_range_to_nonnegative): Likewise, remove now unused
6868 overflow_infinity arg.
6869 (vrp_operand_equal_p): Adjust.
6870 (update_value_range): Likewise.
6871 (range_int_cst_singleton_p): Likewise.
6872 (operand_less_p): Likewise.
6873 (compare_values_warnv): Likewise.
6874 (extract_range_for_var_from_comparison_expr): Likewise.
6875 (vrp_int_const_binop): Likewise.
6876 (zero_nonzero_bits_from_vr): Likewise.
6877 (extract_range_from_multiplicative_op_1): Likewise.
6878 (extract_range_from_binary_expr_1): Likewise.
6879 (extract_range_from_unary_expr): Likewise.
6880 (extract_range_from_comparison): Likewise.
6881 (extract_range_basic): Likewise.
6882 (adjust_range_with_scev): Likewise.
6883 (compare_ranges): Likewise.
6884 (compare_range_with_value): Likewise.
6885 (dump_value_range): Likewise.
6886 (test_for_singularity): Likewise, remove strict_overflow_p parameter
6887 never used.
6888 (simplify_cond_using_ranges): Adjust.
6889
6890 2017-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
6891
6892 * brig-builtins.def: Added a builtin for class_f64.
6893 * builtin-types.def: Added a builtin type needed by class_f64.
6894
6895 2017-05-03 Jason Merrill <jason@redhat.com>
6896
6897 * timevar.def: Add TV_CONSTEXPR.
6898
6899 2017-05-03 David Malcolm <dmalcolm@redhat.com>
6900
6901 * common.opt (fdiagnostics-parseable-fixits): Fix typo.
6902
6903 2017-05-03 Martin Jambor <mjambor@suse.cz>
6904
6905 * ipa-prop.c (ipa_update_after_lto_read): Removed.
6906 * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
6907 * ipa-cp.c (ipcp_propagate_stage): Do not call
6908 ipa_update_after_lto_read.
6909 * ipa-inline.c (ipa_inline): Likewise.
6910
6911 2017-05-03 Martin Jambor <mjambor@suse.cz>
6912
6913 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY
6914 tag. Added a default constructor and a destructor.
6915 (ipa_edge_args_sum_t): New class;
6916 (ipa_edge_args_sum): Declare.
6917 (ipa_edge_args_vector): Remove declaration.
6918 (IPA_EDGE_REF): Use ipa_edge_args_sum.
6919 (ipa_free_edge_args_substructures): Remove declaration.
6920 (ipa_check_create_edge_args): Use ipa_edge_args_sum.
6921 (ipa_edge_args_info_available_for_edge_p): Likewise.
6922 * ipa-prop.c (ipa_edge_args_vector): Removed.
6923 (edge_removal_hook_holder): Likewise.
6924 (edge_duplication_hook_holder): Likewise.
6925 (ipa_edge_args_sum): New variable.
6926 (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
6927 ipa_edge_args_vector.
6928 (ipa_free_edge_args_substructures): Likewise.
6929 (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
6930 ipa_edge_args_vector.
6931 (ipa_edge_removal_hook): Turned into method
6932 ipa_edge_args_sum_t::remove.
6933 (ipa_edge_duplication_hook): Turned into method
6934 ipa_edge_args_sum_t::duplicate.
6935 (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
6936 registering edge hooks.
6937 (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
6938 * ipa-inline-analysis.c (estimate_function_body_sizes): Test
6939 ipa_edge_args_sum instead of ipa_edge_args_vector.
6940 * ipa-profile.c (ipa_profile): Likewise.
6941
6942 2017-05-03 Martin Jambor <mjambor@suse.cz>
6943
6944 * symbol-summary.h (function_summary): New method exists.
6945 (function_summary::symtab_removal): Deallocate through release.
6946 (call_summary): New class.
6947 (gt_ggc_mx): New overload.
6948 (gt_pch_nx): Likewise.
6949 (gt_pch_nx): Likewise.
6950
6951 2017-05-03 Jeff Law <law@redhat.com>
6952
6953 PR tree-optimization/78496
6954 * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
6955 from simplify_cond_using_ranges. Split off code to walk
6956 backwards through casts into ...
6957 (simplify_cond_using_ranges_2): New function.
6958 (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
6959 (execute_vrp): After identifying jump threads, call
6960 simplify_cond_using_ranges_2.
6961
6962 2017-05-03 Jan Hubicka <hubicka@ucw.cz>
6963
6964 PR bootstrap/80609
6965 * ipa-inline.h (inline_summary): Add ctor.
6966 (create_ggc): Do not use ggc_cleared_alloc.
6967
6968 2017-05-03 Jeff Downs <heydowns@somuchpressure.net>
6969 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6970
6971 * gcc.c (handle_braces): Support escaping in switch matching
6972 text.
6973 * doc/invoke.texi (Spec Files): Document it.
6974 Remove superfluous @code markup in items.
6975
6976 2017-05-03 David Malcolm <dmalcolm@redhat.com>
6977
6978 * diagnostic-show-locus.c (struct column_range): New struct.
6979 (get_affected_columns): New function.
6980 (get_printed_columns): New function.
6981 (struct correction): New struct.
6982 (correction::ensure_capacity): New function.
6983 (correction::ensure_terminated): New function.
6984 (struct line_corrections): New struct.
6985 (line_corrections::~line_corrections): New dtor.
6986 (line_corrections::add_hint): New function.
6987 (layout::print_trailing_fixits): Reimplement in terms of the new
6988 classes.
6989 (selftest::test_overlapped_fixit_printing): New function.
6990 (selftest::diagnostic_show_locus_c_tests): Call it.
6991
6992 2017-05-03 Nathan Sidwell <nathan@acm.org>
6993
6994 Canonicalize canonical type hashing
6995 * tree.h (type_hash_canon_hash): Declare.
6996 * tree.c (type_hash_list, attribute_hash_list): Move into
6997 type_hash_canon_hash.
6998 (build_type_attribute_qual_variant): Break out hash code calc into
6999 type_hash_canon_hash.
7000 (type_hash_canon_hash): New. Generic type hash computation.
7001 (build_range_type_1, build_array_type_1, build_function_type,
7002 build_method_type_directly, build_offset_type, build_complex_type,
7003 make_vector_type): Call it.
7004
7005 2017-05-03 Richard Biener <rguenther@suse.de>
7006
7007 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7008 When all DRs have unknown misaligned do not always peel
7009 when there is a store but apply the same costing model as if
7010 there were only loads.
7011
7012 2017-05-03 Richard Biener <rguenther@suse.de>
7013
7014 Revert
7015 PR tree-optimization/80492
7016 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
7017 compare_base_decls returning dont-know properly.
7018
7019 2017-05-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
7020
7021 * config/arm/iterators.md (CCSI): New mode iterator.
7022 (arch): New mode attribute.
7023 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
7024 (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
7025 (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This. Use CCSI
7026 code iterator for success result mode.
7027 * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
7028 the corresponding new insn generators.
7029
7030 2017-05-03 Bin Cheng <bin.cheng@arm.com>
7031
7032 Revert r247509
7033 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7034 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
7035
7036 2017-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7037
7038 * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
7039 (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
7040 (DDR_A): Wrap DDR argument in brackets.
7041 (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
7042 (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
7043 (DDR_REVERSED_P): Likewise.
7044
7045 2017-05-03 Jakub Jelinek <jakub@redhat.com>
7046
7047 PR tree-optimization/79472
7048 * tree-switch-conversion.c (struct switch_conv_info): Add
7049 contiguous_range and default_case_nonstandard fields.
7050 (collect_switch_conv_info): Compute contiguous_range and
7051 default_case_nonstandard fields, don't clear final_bb if
7052 contiguous_range and only the default case doesn't have the required
7053 structure.
7054 (check_all_empty_except_final): Set default_case_nonstandard instead
7055 of failing if contiguous_range and the default case doesn't have empty
7056 block.
7057 (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
7058 and only the default case doesn't have the required constants. Skip
7059 virtual phis.
7060 (gather_default_values): Skip virtual phis. Allow non-NULL CASE_LOW
7061 if default_case_nonstandard.
7062 (build_constructors): Build constant 1 just once. Assert that default
7063 values aren't inserted in between cases if contiguous_range. Skip
7064 virtual phis.
7065 (build_arrays): Skip virtual phis.
7066 (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
7067 (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
7068 Handle virtual phis.
7069 (gen_inbound_check): Handle default_case_nonstandard case.
7070 (process_switch): Adjust check_final_bb caller. Call
7071 gather_default_values with the first non-default case instead of
7072 default case if default_case_nonstandard.
7073
7074 2017-05-02 Nathan Sidwell <nathan@acm.org>
7075
7076 * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
7077 check. Fix formatting.
7078
7079 2017-05-02 Jan Hubicka <hubicka@ucw.cz>
7080
7081 * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
7082 errors when comparing specialized and unspecialized times.
7083
7084 2017-05-02 David Malcolm <dmalcolm@redhat.com>
7085
7086 * diagnostic-show-locus.c
7087 (layout::should_print_annotation_line_p): Make private.
7088 (layout::print_annotation_line): Make private.
7089 (layout::annotation_line_showed_range_p): Make private.
7090 (layout::show_ruler): Make private.
7091 (layout::print_source_line): Make private. Pass in line and
7092 line_width, rather than calling location_get_source_line. Drop
7093 returned value.
7094 (layout::print_leading_fixits): New method.
7095 (layout::print_any_fixits): Rename to...
7096 (layout::print_trailing_fixits): ...this, and make private.
7097 Don't print newline fixits.
7098 (diagnostic_show_locus): Move logic for printing one row into...
7099 (layout::print_line): ...this new function. Move the
7100 location_get_source_line call and error-handling from
7101 print_source_line to here. Call print_leading_fixits, and rename
7102 print_any_fixits to print_trailing_fixits.
7103 (selftest::test_fixit_insert_containing_newline): Update now that
7104 newlines are partially supported.
7105 (selftest::test_fixit_insert_containing_newline_2): New test.
7106 (selftest::test_fixit_replace_containing_newline): Update comments.
7107 (selftest::diagnostic_show_locus_c_tests): Call the new test.
7108 * edit-context.c (class added_line): New class.
7109 (class edited_line): Describe newline handling in comment.
7110 (edited_line::actually_edited_p): New method.
7111 (edited_line::print_content): Delete redundant decl.
7112 (edited_line::m_predecessors): New field.
7113 (edited_file::print_content): Call edited_line::print_content.
7114 (edited_file::print_diff): Update to support newlines.
7115 (edited_file::print_diff_hunk): Likewise.
7116 (edited_file::print_run_of_changed_lines): New function.
7117 (edited_file::print_diff_line): Convert to...
7118 (print_diff_line): ...this.
7119 (edited_file::get_effective_line_count): New function.
7120 (edited_line::edited_line): Initialize new field m_predecessors.
7121 (edited_line::~edited_line): Clean up m_predecessors.
7122 (edited_line::apply_fixit): Handle newlines.
7123 (edited_line::get_effective_line_count): New function.
7124 (edited_line::print_content): New function.
7125 (edited_line::print_diff_lines): New function.
7126 (selftest::test_applying_fixits_insert_containing_newline): New
7127 test.
7128 (selftest::test_applying_fixits_replace_containing_newline): New
7129 test.
7130 (selftest::insert_line): New function.
7131 (selftest::test_applying_fixits_multiple_lines): Add example of
7132 inserting a line.
7133 (selftest::edit_context_c_tests): Call the new tests.
7134
7135 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7136
7137 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
7138 parameter cand. Update dump information.
7139 (get_computation_cost): Update uses.
7140
7141 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7142
7143 * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
7144 (get_computation_aff): Reorder parameters. Use get_computation_aff_1.
7145 (get_computation_at, rewrite_use_address): Update use of
7146 get_computation_aff.
7147
7148 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7149
7150 * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
7151 (get_computation): Delete.
7152 (get_computation_cost): Implement like get_computation_cost_at.
7153 Use get_computation_at.
7154 (get_computation_cost_at): Delete.
7155 (rewrite_use_nonlinear_expr): Use get_computation_at.
7156 (rewrite_use_compare, remove_unused_ivs): Ditto.
7157
7158 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7159
7160 * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
7161
7162 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7163
7164 * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
7165 (ivopts_global_cost_for_size): Rename parameter and update uses.
7166 (iv_ca_recount_cost): Update uses.
7167 (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
7168 candidates seperately in n_invs and n_cands.
7169 (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
7170
7171 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7172
7173 * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
7174 (find_inv_vars_cb): New.
7175 (find_depends): Renamed to ...
7176 (find_inv_vars): ... this.
7177 (add_candidate_1, force_var_cost): Call find_inv_vars.
7178 (split_address_cost, determine_group_iv_cost_cond): Ditto.
7179
7180 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7181
7182 * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
7183 inv_vars. Add inv_exprs.
7184 (struct iv_cand): Rename depends_on to inv_vars.
7185 (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
7186 max_inv_var_id/n_inv_var_uses. Move max_inv_expr_id around.
7187 Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
7188 (dump_cand): Dump inv_vars.
7189 (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
7190 (record_invariant, find_depends, add_candidate_1): Ditto.
7191 (set_group_iv_cost, force_var_cost): Ditto.
7192 (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
7193 (get_computation_cost_at, get_computation_cost): Ditto.
7194 (determine_group_iv_cost_generic): Ditto.
7195 (determine_group_iv_cost_address): Ditto.
7196 (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
7197 (determine_group_iv_costs): Ditto.
7198 (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
7199 (iv_ca_set_remove_invariants): Renamed to ...
7200 (iv_ca_set_remove_invs): ... this. Support inv_vars and inv_exprs.
7201 (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
7202 (iv_ca_set_add_invariants): Renamed to ...
7203 (iv_ca_set_add_invs): ... this. Support inv_vars and inv_exprs.
7204 (iv_ca_set_cp): Use iv_ca_set_add_invs.
7205 (iv_ca_has_deps): Support inv_vars and inv_exprs.
7206 (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
7207 (create_new_ivs): Remove useless dump.
7208
7209 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7210
7211 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
7212 iv_cand code.
7213 (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
7214 (iv_ca_set_no_cp, create_new_iv): Ditto.
7215
7216 2017-05-02 Bin Cheng <bin.cheng@arm.com>
7217
7218 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
7219
7220 2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
7221
7222 * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
7223 function tree_check2.
7224
7225 2017-05-02 Martin Liska <mliska@suse.cz>
7226
7227 * doc/gcov.texi: Add missing preposition.
7228 * gcov.c (function_info::function_info): Properly fill up
7229 all member variables.
7230
7231 2017-05-02 Tamar Christina <tamar.christina@arm.com>
7232
7233 * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
7234
7235 2017-05-02 Tamar Christina <tamar.christina@arm.com>
7236
7237 * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
7238
7239 2017-05-02 Martin Liska <mliska@suse.cz>
7240
7241 PR lto/77954.
7242 * lto-streamer-in.c (lto_read_tree_1): Remove
7243 LTO_STREAMER_DEBUG.
7244 * lto-streamer.c (struct tree_hash_entry): Likewise.
7245 (struct tree_entry_hasher): Likewise.
7246 (tree_entry_hasher::hash): Likewise.
7247 (tree_entry_hasher::equal): Likewise.
7248 (lto_streamer_init): Likewise.
7249 (lto_orig_address_map): Likewise.
7250 (lto_orig_address_get): Likewise.
7251 (lto_orig_address_remove): Likewise.
7252 * lto-streamer.h: Likewise.
7253 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
7254 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
7255
7256 2017-05-02 Sebastian Peryt <sebastian.peryt@intel.com>
7257
7258 * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
7259 (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
7260 (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
7261 (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
7262 (mm_maskz_sub_round_ss, _mm_mask_add_sd)
7263 (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
7264 (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
7265 (mm_maskz_sub_ss): New intrinsics.
7266 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
7267 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
7268 * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
7269 (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
7270 (__builtin_ia32_subss_mask_round): New builtins.
7271 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
7272 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
7273 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
7274 Renamed to ...
7275 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
7276 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
7277 Changed to ...
7278 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
7279 ... this.
7280
7281 2017-05-02 Martin Jambor <mjambor@suse.cz>
7282
7283 PR tree-optimization/78687
7284 * tree-sra.c (access): New field parent.
7285 (process_subtree_disqualification): New function.
7286 (disqualify_candidate): Call it.
7287 (build_accesses_from_assign): Reset write flag if creating an
7288 assighnment link.
7289 (build_access_subtree): Fill in parent field and also prpagate
7290 down grp_write flag.
7291 (create_artificial_child_access): New parameter set_grp_write, set
7292 grp_write to its value.
7293 (propagate_subaccesses_across_link): Also propagate grp_write flag
7294 values.
7295 (propagate_all_subaccesses): Push the closest parent back to work
7296 queue if add_access_to_work_queue returned true.
7297
7298 2017-05-02 Richard Biener <rguenther@suse.de>
7299
7300 * common.opt (fstrict-overflow): Alias negative to fwrapv.
7301 * doc/invoke.texi (fstrict-overflow): Remove all traces of
7302 -fstrict-overflow documentation.
7303 * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
7304 (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
7305 flag_strict_overflow.
7306 * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
7307 * lto-opts.c (lto_write_options): Do not stream it.
7308 * lto-wrapper.c (merge_and_complain): Do not handle it.
7309 * opts.c (default_options_table): Do not set -fstrict-overflow.
7310 (finish_options): Likewise do not clear it when sanitizing.
7311 * simplify-rtx.c (simplify_const_relational_operation): Do not
7312 test flag_strict_overflow.
7313
7314 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
7315
7316 * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
7317 using enabled attribute.
7318 (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
7319 (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
7320 (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
7321 (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
7322 (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
7323 (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
7324 (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
7325 (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
7326 (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
7327 (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
7328
7329 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
7330
7331 * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
7332
7333 2017-05-02 Richard Biener <rguenther@suse.de>
7334
7335 PR tree-optimization/80591
7336 Revert
7337 2017-04-10 Richard Biener <rguenther@suse.de>
7338
7339 * tree-ssa-structalias.c (find_func_aliases): Properly handle
7340 asm inputs.
7341
7342 2017-05-02 Richard Biener <rguenther@suse.de>
7343
7344 PR tree-optimization/80549
7345 * tree-cfgcleanup.c (mfb_keep_latches): New helper.
7346 (cleanup_tree_cfg_noloop): Create forwarders to known loop
7347 headers if they do not have a preheader.
7348
7349 2017-05-02 Martin Liska <mliska@suse.cz>
7350
7351 PR other/80589
7352 * common.opt: Fix typo.
7353 * doc/invoke.texi: Likewise.
7354
7355 2017-05-01 Jan Beulich <jbeulich@suse.com>
7356
7357 * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
7358 swapping, add (x,x,m,x,n) alternative.
7359
7360 2017-05-01 Nathan Sidwell <nathan@acm.org>
7361
7362 * calls.c (combine_pending_stack_adjustment_and_call): Remove
7363 unnecessary unadjusted_alignment check.
7364
7365 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
7366
7367 PR c++/80038
7368 * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
7369 operations here.
7370 * gimplify.c (gimplify_cilk_detach): New function.
7371 (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
7372 * tree-core.h: Document EXPR_CILK_SPAWN.
7373 * tree.h (EXPR_CILK_SPAWN): Define.
7374
7375 2017-05-01 David Malcolm <dmalcolm@redhat.com>
7376
7377 * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
7378 to use new fixit_hint representation, using the "replace" logic.
7379 (get_line_span_for_fixit_hint): Likewise.
7380 (layout::print_any_fixits): Likewise.
7381 (selftest::test_one_liner_many_fixits): Rename to...
7382 (selftest::test_one_liner_many_fixits_1): ...this, and update
7383 comment and expected output to reflect that the multiple fix-it
7384 hints are now consolidated into one insertion.
7385 (selftest::test_one_liner_many_fixits_2): New test.
7386 (selftest::test_diagnostic_show_locus_one_liner): Update for
7387 above.
7388 (selftest::test_fixit_consolidation): Update for fix-it API
7389 change.
7390 * diagnostic.c (print_parseable_fixits): Likewise.
7391 * edit-context.c (edited_line::m_line_events): Convert from
7392 auto_vec <line_event *> to auto_vec <line_event>.
7393 (class line_event): Convert from abstract base class to a concrete
7394 class, taking over the role of replace_event.
7395 (class insert_event): Delete.
7396 (class replace_event): Rename to class line_event. Convert to
7397 half-open range.
7398 (edit_context::add_fixits): Reimplement.
7399 (edit_context::apply_insert): Delete.
7400 (edit_context::apply_replace): Rename to...
7401 (edit_context::apply_fixit): ...this. Convert to half-open range.
7402 (edited_file::apply_insert): Delete.
7403 (edited_file::apply_replace): Rename to...
7404 (edited_file::apply_fixit): ...this.
7405 (edited_line::~edited_line): Drop deletion of events.
7406 (edited_line::apply_insert): Delete.
7407 (edited_line::apply_replace): Rename to...
7408 (edited_line::apply_fixit): ...this. Convert to half-open range.
7409 Update for change to type of m_line_events.
7410 * edit-context.h (edit_context::apply_insert): Delete.
7411 (edit_context::apply_replace): Rename to...
7412 (edit_context::apply_fixit): ...this.
7413
7414 2017-05-01 Martin Sebor <msebor@redhat.com>
7415
7416 * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
7417 known.
7418
7419 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
7420
7421 PR target/68491
7422 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
7423 __get_cpuid_max returns 0.
7424 (__get_cpuid_count): Ditto.
7425
7426 2017-05-01 Eric Botcazou <ebotcazou@adacore.com>
7427
7428 * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
7429 replacement expression is another instance of one of its arguments.
7430
7431 2017-05-01 Jakub Jelinek <jakub@redhat.com>
7432
7433 PR target/79430
7434 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
7435 check for stack push/pop autoinc.
7436 * config/i386/i386.c (ix86_agi_dependent): Return false
7437 if the only reason why modified_in_p returned true is that
7438 addr is SP based and set_insn is a push or pop.
7439
7440 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
7441
7442 * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
7443 overflow check.
7444
7445 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
7446
7447 PR ipa/79224
7448 * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
7449 (account_size_time): Use two predicates - exec_pred and
7450 nonconst_pred_ptr.
7451 (evaluate_conditions_for_known_args): Compute both clause and
7452 nonspec_clause.
7453 (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
7454 (inline_summary_t::duplicate): Update.
7455 (estimate_function_body_sizes): Caluculate exec and nonconst predicates
7456 separately.
7457 (compute_inline_parameters): Likewise.
7458 (estimate_edge_size_and_time): Update caluclation of time.
7459 (estimate_node_size_and_time): Compute both time and nonspecialized
7460 time.
7461 (estimate_ipcp_clone_size_and_time): Update.
7462 (inline_merge_summary): Update.
7463 (do_estimate_edge_time): Update.
7464 (do_estimate_edge_size): Update.
7465 (do_estimate_edge_hints): Update.
7466 (inline_read_section, inline_write_summary): Stream both new predicates.
7467 * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
7468 as argument.
7469 (compute_inlined_call_time): Cleanup.
7470 (big_speedup_p): Update.
7471 (edge_badness): Update.
7472 * ipa-inline.h (INLINE_TIME_SCALE): Remove.
7473 (size_time_entry): Replace predicate by exec_predicate and
7474 nonconst_predicate.
7475 (edge_growth_cache_entry): Cache both time nad nonspecialized time.
7476 (estimate_edge_time): Return also nonspec_time.
7477 (reset_edge_growth_cache): Update.
7478
7479 2017-04-29 Jakub Jelinek <jakub@redhat.com>
7480
7481 PR rtl-optimization/80491
7482 * ifcvt.c (noce_process_if_block): When looking for x setter
7483 with missing else_bb, don't check only the insn right before
7484 cond_earliest, but look for the last insn that x is modified in
7485 within the same bb.
7486
7487 PR rtl-optimization/80491
7488 * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
7489
7490 2017-04-29 Marc Glisse <marc.glisse@inria.fr>
7491
7492 PR tree-optimization/80487
7493 * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
7494
7495 2017-04-29 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7496
7497 PR tree-optimization/79697
7498 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
7499 is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
7500 (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
7501 BUILT_IN_STRNDUP.
7502 * gimple-fold.c (gimple_fold_builtin_realloc): New function.
7503 (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
7504
7505 2017-04-28 Martin Sebor <msebor@redhat.com>
7506
7507 PR tree-optimization/80523
7508 * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
7509 (init_target_to_host_charmap, target_to_host, target_strtol10): New
7510 functions.
7511 (maybe_warn, format_directive, parse_directive): Use new functions.
7512 (pass_sprintf_length::execute): Call init_target_to_host_charmap.
7513
7514 2017-04-28 Marc Glisse <marc.glisse@inria.fr>
7515
7516 * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
7517
7518 2017-04-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
7519
7520 * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
7521 target_header_dir): Set correctly.
7522 * configure: Regenerated.
7523 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
7524 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
7525 instead of SYSTEM_HEADER_DIR.
7526
7527 2017-04-28 Jan Hubicka <hubicka@ucw.cz>
7528
7529 * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
7530 (estimate_local_effects): Likewise.
7531 * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
7532 edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
7533 * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
7534 estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
7535 do_estimate_edge_time, estimate_edge_time): Likewise.
7536 * ipa-inline-analysis.c (estimate_node_size_and_time,
7537 estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
7538 (estimate_time_after_inlining): Remove.
7539
7540 2017-04-28 Martin Liska <mliska@suse.cz>
7541
7542 * doc/gcov.texi: Enhance documentation of gcov.
7543
7544 2017-04-28 Martin Liska <mliska@suse.cz>
7545
7546 * doc/gcov.texi: Sort options in alphabetic order.
7547 * doc/gcov-dump.texi: Likewise.
7548 * doc/gcov-tool.texi: Likewise.
7549 * gcov.c (print_usage): Likewise.
7550 * gcov-dump.c (print_usage): Likewise.
7551 * gcov-tool.c (print_merge_usage_message): Likewise.
7552 (print_rewrite_usage_message): Likewise.
7553 (print_overlap_usage_message): Likewise.
7554
7555 2017-04-28 Martin Liska <mliska@suse.cz>
7556
7557 PR gcov-profile/53915
7558 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
7559
7560 2017-04-28 Martin Liska <mliska@suse.cz>
7561
7562 PR gcov-profile/79891
7563 * gcov.c (add_line_counts): Assign BBs to lines just if the BB
7564 is marked by compiler as living on a line.
7565 (get_cycles_count): Remove usage of the union.
7566 (output_intermediate_file): Likewise.
7567 (find_source): Fix GNU coding style.
7568 (accumulate_line_counts): Remove old non-all block mode.
7569 (output_lines): Remove usage of the union.
7570 * profile.c (output_location): Include all BBs, even if
7571 belonging to a same line (and file) as a previous BB.
7572
7573 2017-04-28 Martin Liska <mliska@suse.cz>
7574
7575 * gcov.c (process_args): Handle new argument 'w'.
7576 (read_graph_file): Assign ID to BBs.
7577 (output_branch_count): Display BB # if verbose flag is set.
7578 (output_lines): Likewise for arcs.
7579 (print_usage): Add '--verbose' option help.
7580 * doc/gcov.texi: Document --verbose (-w) option.
7581
7582 2017-04-28 Martin Liska <mliska@suse.cz>
7583
7584 * gcov.c (struct block_location_info): New struct.
7585 (process_file): Fill up the new structure.
7586 (read_graph_file): Replace usage of encoding by the newly added
7587 struct.
7588 (add_line_counts): Likewise.
7589 (accumulate_line_counts): Remove usage of the union.
7590 (function_info::function_info): New function.
7591 (function_info::~function_info): Likewise.
7592 (process_file): Call delete instead of release_function.
7593 (release_function): Release the function.
7594 (release_structures): Call delete instead of release_function.
7595 (solve_flow_graph): Replace usage of num_blocks.
7596 (find_exception_blocks): Likewise.
7597 (output_lines): Fix GNU coding style.
7598
7599 2017-04-28 Martin Liska <mliska@suse.cz>
7600
7601 PR driver/56469
7602 * coverage.c (coverage_remove_note_file): New function.
7603 * coverage.h: Declare the function.
7604 * toplev.c (finalize): Clean if an error has been seen.
7605
7606 2017-04-28 Martin Liska <mliska@suse.cz>
7607
7608 PR gcov-profile/80031
7609 * gcov-dump.c (tag_blocks): Just print number of basic blocks.
7610 * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
7611 * gcov.c (read_graph_file): Read just number of blocks.
7612 * profile.c (branch_prob): Do not stream 0 flags per a basic
7613 block.
7614
7615 2017-04-28 Martin Liska <mliska@suse.cz>
7616
7617 * gcov-dump.c (tag_*): Add new argument to declarations.
7618 (dump_gcov_file): Likewise.
7619 (tag_blocks): Add and use new argument depth.
7620 (tag_arcs): Likewise.
7621 (tag_lines): Likewise.
7622 (tag_counters): Likewise.
7623 (tag_summary): Likewise.
7624 (dump_working_sets): Use depth to do a proper indentation.
7625
7626 2017-04-28 Jakub Jelinek <jakub@redhat.com>
7627
7628 PR bootstrap/80531
7629 * cgraph.h (symtab_node::debug_symtab): No longer inline.
7630 * symtab.c (symtab_node::debug_symtab): Move definition here.
7631
7632 2017-04-28 Richard Biener <rguenther@suse.de>
7633
7634 * lto-streamer.h (LTO_major_version): Bump to 7.
7635
7636 2017-04-28 Richard Biener <rguenther@suse.de>
7637
7638 * tree-vrp.c (assert_info): New struct.
7639 (add_assert_info): New helper.
7640 (register_edge_assert_for_2): Refactor to add asserts to a vector
7641 of assert_info.
7642 (register_edge_assert_for_1): Likewise.
7643 (register_edge_assert_for): Likewise.
7644 (finish_register_edge_assert_for): New helper actually registering
7645 asserts where live on edge.
7646 (find_conditional_asserts): Adjust.
7647 (find_switch_asserts): Likewise.
7648 (evrp_dom_walker::try_find_new_range): Generalize.
7649 (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
7650
7651 2017-04-27 Marek Polacek <polacek@redhat.com>
7652
7653 PR sanitizer/80349
7654 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
7655 arg10 and arg11 to itype.
7656
7657 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
7658
7659 * doc/extend.texi (Object Size Checking): Improve grammar.
7660
7661 2017-04-27 Richard Earnshaw <rearnsha@arm.com>
7662
7663 PR target/80530
7664 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
7665 that the logic for permitting reciprocal estimates matches that
7666 in use_rsqrt_p.
7667
7668 2017-04-27 Jakub Jelinek <jakub@redhat.com>
7669
7670 PR c++/80534
7671 * tree.c (type_cache_hasher::equal): Only compare
7672 TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
7673 (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
7674 non-aggregate element types.
7675 * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
7676 about the flag on ARRAY_TYPEs in the comment, formatting fix.
7677
7678 2017-04-27 Richard Biener <rguenther@suse.de>
7679
7680 PR middle-end/80533
7681 * emit-rtl.c (set_mem_attributes_minus_bitpos): When
7682 stripping ARRAY_REFs from MEM_EXPR make sure we're not
7683 keeping a reference to a trailing array.
7684
7685 2017-04-27 Richard Biener <rguenther@suse.de>
7686
7687 PR middle-end/80539
7688 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
7689 being in loop-closed SSA form conservatively.
7690 (chrec_fold_multiply_poly_poly): Likewise.
7691
7692 2017-04-27 Tamar Christina <tamar.christina@arm.com>
7693
7694 PR middle-end/79665
7695 * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
7696 CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
7697
7698 2017-04-27 Jakub Jelinek <jakub@redhat.com>
7699
7700 PR target/77728
7701 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
7702 (aarch64_function_arg_alignment): Return unsigned int again, but still
7703 ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
7704 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
7705 Don't emit -Wpsabi note.
7706 (aarch64_function_arg_boundary): Likewise.
7707 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
7708 caller.
7709
7710 2017-04-26 Nathan Sidwell <nathan@acm.org>
7711
7712 * tree.h (crc32_unsigned_n): Declare.
7713 (crc32_unsigned, crc32_unsigned): Make inline.
7714 * tree.c (crc32_unsigned_bits): Replace with ...
7715 (crc32_unsigned_n): ... this.
7716 (crc32_unsigned, crc32_byte): Remove.
7717 (crc32_string): Remove unnecessary braces.
7718
7719 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
7720
7721 * ipa-cp.c (estimate_local_effects): Convert sreal to int.
7722 * ipa-inline-analysis.c (MAX_TIME): Remove.
7723 (account_size_time): Use sreal for time.
7724 (dump_inline_summary): Update.
7725 (estimate_function_body_sizes): Update.
7726 (estimate_edge_size_and_time): Update.
7727 (estimate_calls_size_and_time): Update.
7728 (estimate_node_size_and_time): Update.
7729 (inline_merge_summary): Update.
7730 (inline_update_overall_summary): Update.
7731 (estimate_time_after_inlining): Update.
7732 (inline_read_section): Update.
7733 (inline_write_summary): Update.
7734 * ipa-inline.c (compute_uninlined_call_time): Update.
7735 (compute_inlined_call_time): Update.
7736 (recursive_inlining): Update.
7737 (inline_small_functions): Update.
7738 (dump_overall_stats): Update.
7739 * ipa-inline.h: Include sreal.h.
7740 (size_time_entry): Turn time to sreal.
7741 (inline_summary): Turn self_time nad time to sreal.
7742
7743 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
7744
7745 * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
7746 data-streamer.h
7747 (sreal::stream_out, sreal::stream_in): New.
7748 * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
7749
7750 2017-04-25 Jakub Jelinek <jakub@redhat.com>
7751
7752 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
7753 environment.
7754
7755 2017-04-25 Uros Bizjak <ubizjak@gmail.com>
7756
7757 PR target/70799
7758 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
7759 Handle ASHIFTRT.
7760 (dimode_scalar_chain::compute_convert_gain): Ditto.
7761 (dimode_scalar_chain::make_vector_copies): Ditto.
7762 (dimode_scalar_chain::convert_reg): Ditto.
7763 (dimode_scalar_chain::convert_insn): Ditto.
7764 * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
7765 (VI248_AVX512BW_1): New mode iterator.
7766 (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
7767 <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
7768 mode iterator.
7769
7770 2017-04-25 Martin Sebor <msebor@redhat.com>
7771
7772 PR tree-optimization/80497
7773 * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
7774 constants are representable in HOST_WIDE_INT.
7775 (parse_directive): Ditto.
7776
7777 2017-04-25 Martin Sebor <msebor@redhat.com>
7778
7779 PR bootstrap/80486
7780 * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
7781 (new_zero_array): Adjust signature.
7782 (dom_info::dom_init): Used unsigned rather that size_t.
7783 (dom_info::dom_info): Same.
7784
7785 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7786 Jakub Jelinek <jakub@redhat.com>
7787
7788 PR target/77728
7789 * config/arm/arm.c: Include gimple.h.
7790 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
7791 returns negative, increment ncrn only if it returned positive.
7792 (arm_needs_doubleword_align): Return int instead of bool,
7793 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
7794 members, but if there is any such non-FIELD_DECL
7795 > PARM_BOUNDARY aligned decl, return -1 instead of false.
7796 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
7797 returns negative, increment nregs only if it returned positive.
7798 (arm_setup_incoming_varargs): Likewise.
7799 (arm_function_arg_boundary): Emit -Wpsabi note if
7800 arm_needs_doubleword_align returns negative, return
7801 DOUBLEWORD_ALIGNMENT only if it returned positive.
7802
7803 2017-04-25 Marek Polacek <polacek@redhat.com>
7804
7805 PR sanitizer/80349
7806 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
7807 first argument to type.
7808
7809 2017-04-25 Bill Seurer <seurer@linux.vnet.ibm.com>
7810
7811 PR target/80482
7812 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
7813 type checks to test for compatibility instead of equality.
7814
7815 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7816 Jakub Jelinek <jakub@redhat.com>
7817
7818 PR target/77728
7819 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
7820 type.
7821 (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
7822 struct. Ignore DECL_ALIGN of decls other than FIELD_DECL for
7823 the alignment computation, but return their maximum in warn_alignment.
7824 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
7825 Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
7826 is smaller.
7827 (aarch64_function_arg_boundary): Likewise. Simplify using MIN/MAX.
7828 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
7829 caller.
7830
7831 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7832
7833 * config/arc/simdext.md (dmpyh): Fix typo.
7834
7835 2017-04-25 Richard Biener <rguenther@suse.de>
7836
7837 PR tree-optimization/80492
7838 * alias.c (compare_base_decls): Handle registers with asm
7839 specification conservatively.
7840 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
7841 compare_base_decls returning dont-know properly.
7842
7843 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7844
7845 * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
7846 (legitimate_offset_address_p): New function.
7847 (arc_legitimate_address_p): Use above function.
7848
7849 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7850
7851 * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
7852
7853 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7854
7855 * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
7856 ACCH registers whenever they are available.
7857
7858 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7859
7860 * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
7861 double regs fix when not used.
7862
7863 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7864
7865 * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
7866 core registers.
7867 (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
7868 (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
7869
7870 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7871
7872 * config/arc/arc.c (arc_output_addsi): Check for h-register class
7873 when emitting short ADD instructions.
7874
7875 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
7876
7877 * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
7878 constraint.
7879 (cmpsi_cc_c_insn): Likewise.
7880 (cbranchsi4_scratch): Compute proper instruction length using
7881 compact_hreg_operand.
7882 * config/arc/predicates.md (compact_hreg_operand): New predicate.
7883
7884 2017-04-25 Richard Biener <rguenther@suse.de>
7885
7886 PR middle-end/80509
7887 * passes.c (pass_manager::pass_manager): Initialize
7888 m_name_to_pass_map.
7889
7890 2017-04-25 Richard Biener <rguenther@suse.de>
7891
7892 PR tree-optimization/79201
7893 * tree-ssa-sink.c (statement_sink_location): Handle calls.
7894
7895 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7896
7897 PR target/80464
7898 * config/s390/vector.md: Split MEM->GPR vector moves for
7899 non-s_operand addresses.
7900
7901 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7902
7903 PR target/79895
7904 * config/s390/predicates.md (reload_const_wide_int_operand): New
7905 predicate.
7906 * config/s390/s390.md ("movti"): Remove d/P alternative.
7907 ("movti_bigconst"): New pattern definition.
7908
7909 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
7910
7911 PR target/80080
7912 * s390-protos.h (s390_expand_cs_hqi): Removed.
7913 (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
7914 * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
7915 modes as well as CCZ1mode and CCZmode.
7916 (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
7917 signature of s390_emit_compare_and_swap.
7918 (s390_expand_cs_hqi): Likewise, make static.
7919 (s390_expand_cs_tdsi): Generate an explicit compare before trying
7920 compare-and-swap, in some cases.
7921 (s390_expand_cs): Wrapper function.
7922 (s390_expand_atomic_exchange_tdsi): New backend specific expander for
7923 atomic_exchange.
7924 (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
7925 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
7926 patterns for small and large integers. Forbid symref memory operands.
7927 Move expander to s390.c. Require cc register.
7928 ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
7929 ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
7930 ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
7931 ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
7932 symref memory operands. Remove CC mode and call s390_match_ccmode
7933 instead.
7934 ("atomic_exchange<mode>"): Allow and implement all integer modes.
7935
7936 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
7937
7938 * config/s390/s390.md (define_peephole2): New peephole to help
7939 combining the load-and-test pattern with volatile memory.
7940
7941 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
7942
7943 * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
7944 with CCZmode for TARGET_Z196.
7945
7946 2017-04-25 Jakub Jelinek <jakub@redhat.com>
7947
7948 PR rtl-optimization/80501
7949 * combine.c (make_compound_operation_int): Set subreg_code to SET
7950 even for AND with mask of the sign bit of mode.
7951
7952 PR rtl-optimization/80500
7953 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
7954 sum's initial value.
7955
7956 2017-04-25 Julian Brown <julian@codesourcery.com>
7957 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
7958
7959 * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
7960
7961 2017-04-25 Marc Glisse <marc.glisse@inria.fr>
7962
7963 * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
7964
7965 2017-04-25 Julian Brown <julian@codesourcery.com>
7966 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
7967
7968 * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
7969 (thunderx2t99_sha): New Reservation.
7970
7971 2017-04-25 Julian Brown <julian@codesourcery.com>
7972 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
7973
7974 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
7975 type for 1-element load.
7976
7977 2017-04-24 Marc Glisse <marc.glisse@inria.fr>
7978
7979 * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
7980
7981 2017-04-24 Martin Jambor <mjambor@suse.cz>
7982
7983 PR tree-optimization/80293
7984 * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
7985 char arrays not totally scalarizable if it is false.
7986 (analyze_all_variable_accesses): Pass correct value in the new
7987 parameter. Add a statistics counter.
7988
7989 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
7990
7991 PR middle-end/79931
7992 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
7993
7994 2017-04-24 Richard Biener <rguenther@suse.de>
7995
7996 PR tree-optimization/80494
7997 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
7998 out for complex types.
7999
8000 2017-04-24 Richard Biener <rguenther@suse.de>
8001
8002 * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
8003 * tree-ssa-sccvn.c (print_scc): Print SCC size.
8004 (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
8005 (DFS): Adjust and never fail.
8006 (sccvn_dom_walker::fail): Remove.
8007 (sccvn_dom_walker::before_dom_children): Adjust.
8008 (run_scc_vn): Likewise and never fail.
8009 * tree-ssa-pre.c (pass_pre::execute): Adjust.
8010 (pass_fre::execute): Likewise.
8011
8012 2017-04-24 Richard Biener <rguenther@suse.de>
8013
8014 PR tree-optimization/79725
8015 * tree-ssa-sink.c (statement_sink_location): Return whether
8016 failure reason was zero uses. Move that check later.
8017 (sink_code_in_bb): Deal with zero uses by removing the stmt
8018 if possible.
8019
8020 2017-04-24 Richard Biener <rguenther@suse.de>
8021
8022 PR c++/2972
8023 * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
8024 pointer-based references.
8025
8026 2017-04-24 Richard Biener <rguenther@suse.de>
8027
8028 PR bootstrap/79814
8029 * pass_manager.h (pass_manager::operator new): Remove.
8030 (pass_manager::operator delete): Likewise.
8031 * passes.c (pass_manager::operator new): Remove.
8032 (pass_manager::operator delete): Likewise.
8033 (pass_manager::pass_manager): Zero individual pass members.
8034
8035 2017-04-23 Uros Bizjak <ubizjak@gmail.com>
8036
8037 PR target/70799
8038 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
8039 <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
8040 Check "XEXP (src, 1)" operand here.
8041 <case PLUS, case MINUS, case IOR, case XOR, case AND>:
8042 Check "XEXP (src, 1)" operand here.
8043 (dimode_scalar_chain::make_vector_copies): Detect count register
8044 of a shift instruction. Zero extend count register from QImode
8045 to DImode to satisfy vector shift pattern count operand predicate.
8046 Substitute vector shift count operand with a DImode copy.
8047 (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
8048 vector register.
8049
8050 2017-04-21 Uros Bizjak <ubizjak@gmail.com>
8051
8052 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
8053 Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
8054 (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove
8055 UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
8056 (UNSPEC_NOREX_MEM): Remove definition.
8057
8058 2017-04-21 Richard Biener <rguenther@suse.de>
8059
8060 PR tree-optimization/79547
8061 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8062 Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
8063 bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
8064 without any constraints.
8065
8066 2017-04-21 Richard Biener <rguenther@suse.de>
8067
8068 PR tree-optimization/78847
8069 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
8070
8071 2017-04-21 Richard Biener <rguenther@suse.de>
8072
8073 * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
8074 (build_distinct_type_copy): Likewise.
8075 (build_variant_type_copy): Likewise.
8076 * tree.c (build_qualified_type): Pass down mem-stat info.
8077 (build_distinct_type_copy): Likewise.
8078 (build_variant_type_copy): Likewise.
8079
8080 2017-04-21 Richard Biener <rguenther@suse.de>
8081
8082 PR tree-optimization/80237
8083 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
8084 defaulted to NULL.
8085 (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
8086 for a simplified result.
8087
8088 2016-04-21 Richard Biener <rguenther@suse.de>
8089
8090 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
8091 sth as strict as a simple_iv but a chrec without symbols and an
8092 operand defined in the loop we are peeling (and not some subloop).
8093 (propagate_constants_for_unrolling): Propagate all constants.
8094
8095 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
8096
8097 PR target/79804
8098 * config/i386/i386.c (print_reg): Remove assert for disalowed
8099 regno values, call output_operand_lossage instead.
8100
8101 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
8102
8103 PR target/78090
8104 * config/i386/constraints.md (Yc): New register constraint.
8105 * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
8106 Use Yc constraint for alternative 2 of operand 0. Remove
8107 preferred_for_speed attribute.
8108
8109 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
8110
8111 * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
8112 lastprivate clauses in SIMT case.
8113
8114 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
8115
8116 * doc/invoke.texi (-Wextra-semi): Document new warning option.
8117
8118 2017-04-20 Richard Biener <rguenther@suse.de>
8119
8120 PR tree-optimization/57796
8121 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
8122 as N scalar stores.
8123 (vect_model_load_cost): Cost gathers as N scalar loads.
8124
8125 2017-04-20 Richard Biener <rguenther@suse.de>
8126
8127 * ggc-page.c (ggc_allocated_p): Rename to ...
8128 (safe_lookup_page_table_entry): ... this and return the lookup
8129 result.
8130 (gt_ggc_m_S): Use safe_lookup_page_table_entry.
8131
8132 2017-04-20 Richard Biener <rguenther@suse.de>
8133
8134 PR tree-optimization/80453
8135 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
8136 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
8137 from the conditions.
8138 (vn_phi_eq): Pass them down.
8139 (vn_phi_lookup): Record them.
8140 (vn_phi_insert): Likewise.
8141
8142 2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
8143
8144 * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
8145 uninitialized variable warning to avoid buffer overrun.
8146
8147 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
8148
8149 PR other/71250
8150 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
8151 is suppressed for '{ 0 }' in C.
8152
8153 2017-04-20 Jakub Jelinek <jakub@redhat.com>
8154
8155 * BASE-VER: Set to 8.0.0.
8156
8157 2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
8158
8159 * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
8160 priority .init_array and .fini_array section with SECTION_NOTYPE
8161 flag.
8162
8163 2017-04-20 Jakub Jelinek <jakub@redhat.com>
8164
8165 PR middle-end/80423
8166 * tree.h (build_array_type): Add typeless_storage default argument.
8167 * tree.c (type_cache_hasher::equal): Also compare
8168 TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
8169 (build_array_type): Add typeless_storage argument, set
8170 TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
8171 recursive call.
8172 (build_nonshared_array_type): Adjust build_array_type_1 caller.
8173 (build_array_type): Likewise. Add typeless_storage argument.
8174
8175 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
8176 Jakub Jelinek <jakub@redhat.com>
8177
8178 PR tree-optimization/80426
8179 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
8180 operation on symbolic operands, also compute the overflow for the
8181 invariant part when the operation degenerates into a negation.
8182
8183 2017-04-19 Jakub Jelinek <jakub@redhat.com>
8184
8185 PR debug/80461
8186 * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
8187 Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
8188
8189 PR debug/80436
8190 * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
8191
8192 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
8193
8194 PR target/80462
8195 * config/avr/avr.c (tree.h): Include it.
8196 (cgraph.h): Include it.
8197 (avr_encode_section_info): Don't warn for uninitialized progmem
8198 variable if it's just an alias.
8199
8200 2017-04-19 Richard Biener <rguenther@suse.de>
8201
8202 PR ipa/65972
8203 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
8204 when needed by AutoPGO.
8205
8206 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
8207
8208 PR lto/50345
8209 * doc/lto.texi: Remove an extra 'that'.
8210
8211 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
8212
8213 PR rtl-optimization/80429
8214 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
8215 are only used in debug insns.
8216
8217 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
8218 Vladimir Makarov <vmakarov@redhat.com>
8219
8220 * config/sparc/predicates.md (input_operand): Add comment. Return
8221 true for any memory operand when LRA is in progress.
8222 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
8223
8224 2017-04-18 Jeff Law <law@redhat.com>
8225
8226 PR target/74563
8227 * mips.md ({return,simple_return}_internal): Do not overwrite
8228 operands[0].
8229
8230 2017-04-18 Jakub Jelinek <jakub@redhat.com>
8231
8232 PR tree-optimization/80443
8233 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
8234 instead of adding 1, subtract -1 and similarly instead of subtracting
8235 1 add -1.
8236
8237 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
8238
8239 PR rtl-optimization/80357
8240 * haifa-sched.c (tmp_bitmap): New variable.
8241 (model_recompute): Handle duplicate use records.
8242 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
8243 (free_global_sched_pressure_data): Free it.
8244
8245 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8246
8247 Revert:
8248 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8249 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
8250 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
8251 instead of SYSTEM_HEADER_DIR.
8252
8253 2017-04-18 Jeff Law <law@redhat.com>
8254
8255 PR middle-end/80422
8256 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
8257 predecessors after walking up the insn chain.
8258
8259 2017-04-18 Jakub Jelinek <jakub@redhat.com>
8260
8261 PR debug/80263
8262 * dwarf2out.c (modified_type_die): Try harder not to emit internal
8263 sizetype type into debug info.
8264
8265 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8266
8267 PR target/80099
8268 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
8269 unneeded test for TARGET_UPPER_REGS_SF.
8270 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
8271
8272 2017-04-18 Jakub Jelinek <jakub@redhat.com>
8273
8274 PR sanitizer/80444
8275 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
8276 instead of gsi_after_labels.
8277
8278 2017-04-18 Jeff Law <law@redhat.com>
8279
8280 * regcprop.c (maybe_mode_change): Avoid creating copies of the
8281 stack pointer.
8282
8283 Revert:
8284 2017-04-13 Jeff Law <law@redhat.com>
8285 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
8286 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
8287
8288 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
8289
8290 PR target/79453
8291 * config/avr/avr.c (intl.h): Include it.
8292 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
8293
8294 2017-04-18 Martin Liska <mliska@suse.cz>
8295
8296 PR gcov-profile/78783
8297 * gcov-tool.c (gcov_output_files): Validate that destination
8298 file is either removed by the tool or by a user.
8299
8300 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
8301 Guy Benyei <guybe@mellanox.com>
8302
8303 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
8304 block, and do not negate it, the stored id is already negative.
8305
8306 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
8307
8308 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
8309
8310 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8311
8312 PR target/80098
8313 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
8314 masks of options that should be turned off if the VSX vector
8315 options are turned off.
8316 (OTHER_P8_VECTOR_MASKS): Likewise.
8317 (OTHER_VSX_VECTOR_MASKS): Likewise.
8318 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
8319 rs6000_disable_incompatible_switches to validate no type switches
8320 like -mvsx.
8321 (rs6000_incompatible_switch): New function to disallow turning on
8322 other vector options if -mno-vsx, -mno-power8-vector, or
8323 -mno-power9-vector are specified.
8324
8325 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
8326
8327 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
8328
8329 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
8330
8331 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
8332 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
8333 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
8334 (ARG_POINTER_CFA_OFFSET): Likewise.
8335
8336 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
8337
8338 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
8339 conditions to take advantage of various optimizations.
8340
8341 2017-04-13 Jeff Law <law@redhat.com>
8342
8343 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
8344 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
8345 (zero_extendsidi2_dext): Likewise.
8346
8347 2017-04-13 Jakub Jelinek <jakub@redhat.com>
8348
8349 PR sanitizer/80403
8350 * fold-const.c (fold_ternary_loc): Revert
8351 use op0 instead of fold_convert_loc (loc, type, arg0) part of
8352 2017-04-12 change.
8353
8354 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
8355
8356 PR rtl-optimization/80343
8357 * lra-remat.c (update_scratch_ops): Assign original hard reg to
8358 new scratch pseudo.
8359
8360 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
8361
8362 PR sanitizer/80414
8363 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
8364 to ubsan_encode_value.
8365
8366 2017-04-13 Jeff Law <law@redhat.com>
8367
8368 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
8369 appearing in DEBUG_INSNs.
8370
8371 2017-04-13 Martin Liska <mliska@suse.cz>
8372
8373 PR gcov-profile/80413
8374 * gcov-io.c (gcov_write_string): Copy to buffer just when
8375 allocated size is greater than zero.
8376
8377 2017-04-13 Jakub Jelinek <jakub@redhat.com>
8378
8379 PR debug/80321
8380 * dwarf2out.c (decls_for_scope): Ignore declarations of
8381 current_function_decl in BLOCK_NONLOCALIZED_VARS.
8382
8383 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
8384
8385 PR lto/69953
8386 * ipa-visibility.c (non_local_p): Fix typos.
8387 (localize_node): When localizing symbol in same comdat group,
8388 dissolve the group only when we know external symbols are going
8389 to be privatized.
8390 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
8391
8392 2017-04-12 Jakub Jelinek <jakub@redhat.com>
8393
8394 PR tree-optimization/79390
8395 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
8396 order does not result in usable sequence, retry with reversed operand
8397 order.
8398
8399 PR sanitizer/80403
8400 PR sanitizer/80404
8401 PR sanitizer/80405
8402 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
8403 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
8404 op0 instead of fold_convert_loc (loc, type, arg0).
8405
8406 2017-04-12 Jeff Law <law@redhat.com>
8407
8408 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
8409 has a delay slot in the generated code.
8410
8411 * config/cris/cris.md (cris_preferred_reload_class): Return
8412 GENNONACR_REGS rather than GENERAL_REGS.
8413
8414 2017-04-12 Jakub Jelinek <jakub@redhat.com>
8415
8416 PR c/80163
8417 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
8418 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
8419 signedness of the result type.
8420
8421 2017-04-12 Richard Biener <rguenther@suse.de>
8422 Jeff Law <law@redhat.com>
8423
8424 PR tree-optimization/80359
8425 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
8426 trim stores to TARGET_MEM_REFs.
8427
8428 2017-04-12 Richard Biener <rguenther@suse.de>
8429
8430 PR tree-optimization/79390
8431 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
8432 threading case even more.
8433
8434 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
8435
8436 PR target/80382
8437 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
8438 for quad_address_p for TImode, instead of just not indexed_address.
8439
8440 2017-04-12 Richard Biener <rguenther@suse.de>
8441 Bernd Edlinger <bernd.edlinger@hotmail.de>
8442
8443 PR middle-end/79671
8444 * alias.c (component_uses_parent_alias_set_from): Handle
8445 TYPE_TYPELESS_STORAGE.
8446 (get_alias_set): Likewise.
8447 * tree-core.h (tree_type_common): Add typeless_storage flag.
8448 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
8449 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
8450 for types containing members with TYPE_TYPELESS_STORAGE.
8451 (place_field): Likewise.
8452 (layout_type): Likewise for ARRAY_TYPE.
8453 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
8454 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
8455 TYPE_TYPELESS_STORAGE.
8456 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
8457
8458 2017-04-12 Jakub Jelinek <jakub@redhat.com>
8459
8460 PR sanitizer/80349
8461 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
8462 first argument to type.
8463
8464 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8465
8466 PR target/80376
8467 PR target/80315
8468 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
8469 CONST0_RTX (mode) rather than const0_rtx where appropriate.
8470 (rs6000_expand_binop_builtin): Likewise.
8471 (rs6000_expand_ternop_builtin): Likewise; also add missing
8472 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
8473 vshasigma built-ins.
8474 * doc/extend.texi: Document that vec_xxpermdi's third argument
8475 must be a constant.
8476
8477 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
8478
8479 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
8480 Use shift_const cost parameter when calculating gain of STV shifts.
8481
8482 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
8483
8484 PR rtl-optimization/70478
8485 * lra-constraints.c (process_alt_operands): Check memory for
8486 disfavoring memory insn operand.
8487
8488 2017-04-11 Jakub Jelinek <jakub@redhat.com>
8489
8490 PR middle-end/80100
8491 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
8492 left shift in unsigned HOST_WIDE_INT type.
8493
8494 PR rtl-optimization/80385
8495 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
8496 (not (neg X)) into (plus X -1) for complex or non-integral modes.
8497
8498 PR libgomp/80394
8499 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
8500 if they have any depend clauses.
8501
8502 2017-04-11 Martin Liska <mliska@suse.cz>
8503
8504 PR ipa/80212
8505 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
8506 * ipa-split.c (split_function): Create a local comdat symbol
8507 if caller is in a comdat group.
8508
8509 2017-04-11 Martin Liska <mliska@suse.cz>
8510
8511 PR ipa/80212
8512 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
8513 flags.
8514
8515 2017-04-11 Martin Sebor <msebor@redhat.com>
8516
8517 PR middle-end/80364
8518 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
8519 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
8520 for INTEGER_TYPE.
8521 (directive::set_width, directive::set_precision, format_character):
8522 Adjust.
8523 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
8524 INTEGER_TYPE.
8525
8526 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
8527
8528 PR target/80389
8529 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
8530 conflict, set target->arch_name instead of target->cpu_name.
8531
8532 2017-04-11 Richard Biener <rguenther@suse.de>
8533
8534 PR tree-optimization/80374
8535 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
8536 build_zero_cst, remove fold_convertible_p check again.
8537
8538 2017-04-11 Martin Liska <mliska@suse.cz>
8539
8540 PR sanitizer/70878
8541 * ubsan.c (instrument_object_size): Do not instrument register
8542 variables.
8543
8544 2017-04-11 Jakub Jelinek <jakub@redhat.com>
8545
8546 PR target/80381
8547 * config/i386/i386-builtin-types.def
8548 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
8549 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
8550 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
8551 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
8552 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
8553 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
8554 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
8555 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
8556 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
8557 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
8558 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
8559 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
8560 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
8561 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
8562 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
8563 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
8564 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
8565 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
8566 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
8567 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
8568 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
8569 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
8570 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
8571 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
8572 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
8573 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
8574 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
8575 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
8576 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
8577 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
8578 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
8579 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
8580 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
8581 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
8582 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
8583 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
8584 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
8585 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
8586 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
8587 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
8588 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
8589 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
8590 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
8591 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
8592 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
8593 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
8594 aliases.
8595 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
8596 flag to second_arg_count, handle 4 argument function type _COUNT
8597 aliases, handle second_arg_count on second argument rather than last.
8598
8599 2017-04-10 Jeff Law <law@redhat.com>
8600
8601 PR tree-optimization/80374
8602 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
8603 record anything if we can not convert integer_zero_node to the
8604 desired type.
8605
8606 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
8607
8608 PR target/80108
8609 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8610 Enhance special handling given to the TARGET_P9_MINMAX option in
8611 relation to certain other options.
8612
8613 2017-04-10 Bin Cheng <bin.cheng@arm.com>
8614
8615 PR tree-optimization/80153
8616 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
8617 remove POINTER_PLUS_EXPR's base part directly, rather than through
8618 aff_tree.
8619
8620 2017-04-10 Richard Biener <rguenther@suse.de>
8621 Bin Cheng <bin.cheng@arm.com>
8622
8623 PR tree-optimization/80153
8624 * tree-affine.c (aff_combination_to_tree): Get base pointer from
8625 the first element of pointer type aff_tree. Build result expr in
8626 aff_tree's type.
8627 (add_elt_to_tree): Convert to type unconditionally. Remove other
8628 fold_convert calls.
8629 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
8630 (rewrite_use_nonlinear_expr): Check invariant using iv information.
8631
8632 2017-04-10 Richard Biener <rguenther@suse.de>
8633
8634 * tree-ssa-structalias.c (find_func_aliases): Properly handle
8635 asm inputs.
8636
8637 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
8638
8639 PR rtl-optimization/70478
8640 * lra-constraints.c (curr_small_class_check): New.
8641 (update_and_check_small_class_inputs): New.
8642 (process_alt_operands): Update curr_small_class_check. Disfavor
8643 alternative insn memory operands. Check available regs for small
8644 class operands.
8645
8646 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
8647
8648 PR target/80057
8649 * config/mips/mips.opt (-mvirt): Update description.
8650 * doc/invoke.texi (-mvirt): Likewise.
8651
8652 2017-04-10 Richard Biener <rguenther@suse.de>
8653
8654 PR middle-end/80362
8655 * fold-const.c (fold_binary_loc): Look at unstripped ops when
8656 looking for NEGATE_EXPR in -A / -B to A / B folding.
8657
8658 2017-04-10 Martin Liska <mliska@suse.cz>
8659
8660 PR gcov-profile/80224
8661 * gcov.c (print_usage): Fix usage string.
8662 (get_gcov_intermediate_filename): Remove.
8663 (output_gcov_file): Use both for normal and intermediate format.
8664 (generate_results): Do not initialize special file for
8665 intermediate format.
8666
8667 2017-04-10 Richard Biener <rguenther@suse.de>
8668
8669 PR tree-optimization/80304
8670 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
8671 for safelen.
8672
8673 2017-04-10 Nathan Sidwell <nathan@acm.org>
8674
8675 PR target/79905
8676 * config/rs6000/rs6000.c (rs6000_vector_type): New.
8677 (rs6000_init_builtins): Use it.
8678
8679 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8680
8681 * config/arm/arm.md (<mrc>): Add mode to SET source.
8682 (<mrrc>): Likewise.
8683
8684 2017-04-10 Richard Biener <rguenther@suse.de>
8685
8686 PR middle-end/80344
8687 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
8688
8689 2017-04-10 Jakub Jelinek <jakub@redhat.com>
8690
8691 PR target/80324
8692 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
8693 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
8694 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
8695 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
8696 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
8697 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
8698 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
8699 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
8700 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
8701 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
8702 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
8703 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
8704 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
8705 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
8706 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
8707 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
8708 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
8709 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
8710 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
8711 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
8712 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
8713 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
8714 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
8715
8716 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
8717
8718 PR rtl-optimization/70478
8719 * lra-constraints.c: Reverse the last patch.
8720
8721 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
8722
8723 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
8724 Add comment for WCHAR_T.
8725
8726 2017-04-08 Martin Liska <mliska@suse.cz>
8727
8728 Revert:
8729 2017-04-07 Martin Liska <mliska@suse.cz>
8730
8731 PR ipa/80212
8732 * ipa-split.c (split_function): Add function part to a same comdat
8733 group.
8734
8735 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8736
8737 PR target/80358
8738 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
8739
8740 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
8741
8742 * rs6000/rs6000.c (vec_load_pendulum): Rename...
8743 (vec_pairing): ...to this.
8744 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
8745 (rs6000_sched_init): Adjust for name change.
8746 (struct rs6000_sched_context): Likewise.
8747 (rs6000_init_sched_context): Likewise.
8748 (rs6000_set_sched_context): Likewise.
8749
8750 2017-04-07 Jakub Jelinek <jakub@redhat.com>
8751
8752 PR target/80322
8753 PR target/80323
8754 PR target/80325
8755 PR target/80326
8756 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
8757 intrinsics.
8758 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
8759 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
8760 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
8761
8762 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
8763
8764 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
8765
8766 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
8767
8768 PR rtl-optimization/70703
8769 * ira-color.c (update_conflict_hard_regno_costs): Use
8770 int64_t instead of HOST_WIDE_INT.
8771
8772 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
8773
8774 PR rtl-optimization/70478
8775 * lra-constraints.c (process_alt_operands): Disfavor alternative
8776 insn memory operands.
8777
8778 2017-04-07 Jeff Law <law@redhat.com>
8779
8780 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
8781 CALL and NOTE_INSN_CALL_ARG_LOCATION.
8782
8783 2017-04-07 Martin Liska <mliska@suse.cz>
8784
8785 PR target/79889
8786 * config/aarch64/aarch64.c (aarch64_process_target_attr):
8787 Show error message instead of an ICE.
8788
8789 2017-04-07 Martin Liska <mliska@suse.cz>
8790
8791 PR ipa/80212
8792 * ipa-split.c (split_function): Add function part to a same comdat
8793 group.
8794
8795 2017-04-07 Richard Biener <rguenther@suse.de>
8796
8797 PR middle-end/80341
8798 * tree.c (get_unwidened): Also handle ! for_type case for
8799 INTEGER_CSTs.
8800 * convert.c (do_narrow): Split out from ...
8801 (convert_to_integer_1): ... here. Do not pass final truncation
8802 type to get_unwidened for TRUNC_DIV_EXPR.
8803
8804 2017-04-07 Richard Biener <rguenther@suse.de>
8805
8806 * tree-affine.c (wide_int_ext_for_comb): Take type rather
8807 than aff_tree.
8808 (aff_combination_const): Adjust.
8809 (aff_combination_scale): Likewise.
8810 (aff_combination_add_elt): Likewise.
8811 (aff_combination_add_cst): Likewise.
8812 (aff_combination_convert): Likewise.
8813 (add_elt_to_tree): Likewise. Remove unused argument.
8814 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
8815
8816 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
8817
8818 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
8819 definition.
8820 * config/arm/arm.c (arm_default_short_enums): Use
8821 ARM_DEFAULT_SHORT_ENUMS.
8822 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
8823
8824 2017-04-06 Jakub Jelinek <jakub@redhat.com>
8825
8826 PR debug/80234
8827 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
8828 members with redundant out-of-class redeclaration.
8829
8830 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
8831
8832 PR target/80286
8833 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
8834 * config/i386/i386.md (*zero_extendsidi2):
8835 Add (?*x,*x) and (?*v,*v) alternatives.
8836
8837 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
8838
8839 PR target/79733
8840 * config/i386/i386.c (ix86_expand_builtin)
8841 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
8842 mode from insn data. Convert operands to insn operand mode.
8843 Copy operands that don't satisfy insn predicate to a register.
8844
8845 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
8846
8847 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
8848 Update comments.
8849
8850 2017-04-06 Richard Biener <rguenther@suse.de>
8851
8852 PR tree-optimization/80334
8853 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
8854 preserve alignment of accesses.
8855
8856 2017-04-06 Richard Biener <rguenther@suse.de>
8857
8858 PR tree-optimization/80262
8859 * tree-sra.c (build_ref_for_offset): Preserve address-space
8860 information.
8861 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8862 Drop useless address-space information on MEM_REF offsets.
8863
8864 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
8865
8866 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
8867
8868 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
8869
8870 PR rtl-optimization/70703
8871 * ira-color.c (update_conflict_hard_regno_costs): Use
8872 HOST_WIDE_INT instead of long.
8873
8874 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
8875
8876 PR target/80298
8877 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
8878 not defined for x86_64 target. Add -mmmx target option when __SSE2__
8879 is not defined.
8880 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
8881 for x86_64 target. Handle -m3dnowa option.
8882
8883 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
8884
8885 PR rtl-optimization/70703
8886 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
8887 (update_conflict_hard_regno_costs): Use long instead of unsigned
8888 arithmetic for cost calculation.
8889
8890 2017-04-05 Jakub Jelinek <jakub@redhat.com>
8891 Bernd Edlinger <bernd.edlinger@hotmail.de>
8892
8893 PR sanitizer/80308
8894 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
8895 for big endian.
8896
8897 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
8898
8899 PR target/78002
8900 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
8901 ptr_mode with Pmode throughout.
8902 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
8903 into probe_stack_range and use DImode.
8904
8905 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
8906
8907 PR target/79890
8908 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
8909 call_eh_return is true.
8910
8911 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8912
8913 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
8914 Initialize last_match_fntype_index.
8915
8916 2017-04-05 Jakub Jelinek <jakub@redhat.com>
8917
8918 PR target/80310
8919 * tree-nvr.c: Include internal-fn.h.
8920 (pass_return_slot::execute): Ignore internal calls without
8921 direct optab.
8922
8923 2017-04-04 Jakub Jelinek <jakub@redhat.com>
8924 Richard Biener <rguenther@suse.de>
8925
8926 PR c++/80297
8927 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
8928 captures used multiple times, except for the last use.
8929 * generic-match-head.c: Include gimplify.h.
8930
8931 2017-04-04 Jakub Jelinek <jakub@redhat.com>
8932
8933 PR tree-optimization/79390
8934 * target.h (struct noce_if_info): Declare.
8935 * targhooks.h (default_noce_conversion_profitable_p): Declare.
8936 * target.def (noce_conversion_profitable_p): New target hook.
8937 * ifcvt.h (struct noce_if_info): New type, moved from ...
8938 * ifcvt.c (struct noce_if_info): ... here.
8939 (noce_conversion_profitable_p): Renamed to ...
8940 (default_noce_conversion_profitable_p): ... this. No longer
8941 static nor inline.
8942 (noce_try_store_flag_constants, noce_try_addcc,
8943 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
8944 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
8945 instead of noce_conversion_profitable_p.
8946 * config/i386/i386.c: Include ifcvt.h.
8947 (ix86_option_override_internal): Don't override
8948 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
8949 (ix86_noce_conversion_profitable_p): New function.
8950 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
8951 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
8952 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
8953 * doc/tm.texi: Regenerated.
8954
8955 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8956
8957 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
8958 correction.
8959
8960 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
8961
8962 PR target/80307
8963 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
8964 instructions for small multiply cores.
8965
8966 2017-04-04 Jeff Law <law@redhat.com>
8967
8968 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
8969 added member.
8970 (mips_expand_vec_perm_const): Initialize elements in orig_perm
8971 that are not set by the loop over the elements.
8972
8973 2017-04-04 Jakub Jelinek <jakub@redhat.com>
8974
8975 PR target/80286
8976 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
8977 int mode, convert_modes it to mode as unsigned, otherwise use
8978 lowpart_subreg to mode rather than SImode.
8979 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
8980 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
8981 Use DImode instead of SImode for the shift count operand.
8982 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
8983 Likewise.
8984
8985 2017-04-04 Richard Biener <rguenther@suse.de>
8986
8987 PR middle-end/80281
8988 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
8989 arithmetic done for the negate or the plus. Simplify.
8990 (A - (-B) -> A + B): Likewise.
8991 * fold-const.c (split_tree): Make sure to not negate pointers.
8992
8993 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
8994
8995 PR rtl-optimization/60818
8996 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
8997 a compare of comparisons with the thing compared if this results
8998 in a different machine mode.
8999
9000 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
9001
9002 * alias.c (base_alias_check): Fix typo in comment.
9003 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
9004 * cgraphunit.c (symbol_table::compile): Likewise.
9005 * collect2.c (maybe_run_lto_and_relink): Likewise.
9006 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
9007 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
9008 * config/avr/avr.c (avr_map_op_t): Likewise.
9009 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
9010 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
9011 * config/epiphany/epiphany.md (movcc): Likewise.
9012 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
9013 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
9014 Likewise.
9015 * config/mips/mips.c (mips_save_restore_reg): Likewise.
9016 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
9017 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
9018 * config/sh/sh.c (sh_rtx_costs): Likewise.
9019 * fold-const.c (fold_truth_andor): Likewise.
9020 * genautomata.c (collapse_flag): Likewise.
9021 * gengtype.h (struct type::u::s): Likewise.
9022 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
9023 * input.c (FORMAT_AMOUNT): Likewise.
9024 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
9025 (known_aggs_to_agg_replacement_list): Likewise.
9026 * ipa-inline-analysis.c: Likewise.
9027 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
9028 * ipa-polymorphic-call.c
9029 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
9030 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
9031 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
9032 Likewise.
9033 * modulo-sched.c (apply_reg_moves): Likewise.
9034 * omp-expand.c (build_omp_regions_1): Likewise.
9035 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
9036 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
9037 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
9038 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
9039 * value-prof.c: Likewise.
9040 * var-tracking.c (val_reset): Likewise.
9041
9042 2017-04-03 Richard Biener <rguenther@suse.de>
9043
9044 PR tree-optimization/80275
9045 * fold-const.c (split_address_to_core_and_offset): Handle
9046 POINTER_PLUS_EXPR.
9047
9048 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
9049
9050 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
9051 descriptors is at least equal to that of functions.
9052
9053 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
9054
9055 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
9056
9057 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
9058
9059 PR target/80250
9060 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
9061 (mov<IMOD4:mode>): New expander.
9062 (*mov<IMOD4:mode>_internal): New insn and split pattern.
9063
9064 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
9065
9066 PR rtl-optimization/79405
9067 * fwprop.c (propagations_left): New variable.
9068 (forward_propagate_into): Decrement it.
9069 (fwprop_init): Initialize it.
9070 (fw_prop): If the variable has reached zero, stop propagating.
9071 (fwprop_addr): Ditto.
9072
9073 2017-03-31 Jakub Jelinek <jakub@redhat.com>
9074
9075 PR debug/79255
9076 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
9077 a FUNCTION_DECL, pass it as decl instead of origin to
9078 process_scope_var.
9079
9080 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
9081
9082 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
9083 string.
9084
9085 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
9086
9087 PR target/80107
9088 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
9089 TARGET_VSX_SMALL_INTEGER.
9090
9091 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9092
9093 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
9094 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
9095
9096 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
9097
9098 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
9099 extraction from odd-numbered MSA register.
9100
9101 2017-03-31 Jakub Jelinek <jakub@redhat.com>
9102
9103 PR middle-end/80173
9104 * expmed.c (store_bit_field_1): Don't attempt to create
9105 a word subreg out of hard registers wider than word if they
9106 have HARD_REGNO_NREGS of 1 for their mode.
9107
9108 PR middle-end/80163
9109 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
9110 conversions to integer types wider than word and pointer.
9111
9112 PR debug/80025
9113 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
9114 (rtx_equal_for_cselib_p): Pass 0 to it.
9115 * cselib.c (cselib_hasher::equal): Likewise.
9116 (rtx_equal_for_cselib_1): Add depth argument. If depth
9117 is 128, don't look up VALUE locs and punt. Increment
9118 depth in recursive calls when walking VALUE locs.
9119
9120 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
9121
9122 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
9123 (make_gcov_file_name): Use the canonical path name for generating
9124 the MD5 value.
9125 (read_line): Fix handling of files with ascii null bytes.
9126
9127 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
9128
9129 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
9130 to initialise a vector register instead
9131 of using a const_int.
9132
9133 2017-03-30 Jakub Jelinek <jakub@redhat.com>
9134
9135 PR translation/80189
9136 * gimplify.c (omp_default_clause): Use %qs instead of %s in
9137 diagnostic messages.
9138
9139 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
9140
9141 PR target/80246
9142 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
9143 (dfp_diex_<mode>): Update mode of operand 1.
9144 * doc/extend.texi (dxex, dxexq): Document change to return type.
9145 (diex, diexq): Document change to argument type.
9146
9147 2017-03-30 Martin Jambor <mjambor@suse.cz>
9148
9149 PR ipa/77333
9150 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
9151 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
9152 it reflects the signature changes performed at the callee side.
9153 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
9154 to cgraph_build_function_type_skip_args.
9155 (build_function_decl_skip_args): Adjust call to the above function.
9156
9157 2017-03-30 Jakub Jelinek <jakub@redhat.com>
9158
9159 PR target/80206
9160 * config/i386/sse.md
9161 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
9162 register as dest whenever it is a MEM not rtx_equal_p to the
9163 corresponding dup operand, and when forcing into reg move the
9164 reg into the memory afterwards.
9165 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
9166 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
9167 for the force_reg mode.
9168 (avx512vl_vextractf128<mode>): Use register as dest either
9169 always when a MEM, or when it is a MEM not rtx_equal_p to the
9170 corresponding dup operand, or even not when it is a CONST_VECTOR
9171 depending on the mode and lo vs. hi.
9172 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
9173 parens.
9174 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
9175 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
9176 Likewise. Require that operands[2] is even.
9177 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
9178 Remove extraneous parens. Require that operands[2] is a multiple
9179 of 4.
9180 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
9181 operands[0] is a MEM if <mask_applied>, the predicates/constraints
9182 disallow memory then.
9183
9184 2017-03-30 Richard Biener <rguenther@suse.de>
9185
9186 PR tree-optimization/77498
9187 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
9188 to non-constants over backedges.
9189
9190 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
9191
9192 PR rtl-optimization/80233
9193 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
9194 as last_combined_insn. Do not test for BARRIER_P separately.
9195
9196 2017-03-29 Andreas Schwab <schwab@suse.de>
9197
9198 PR ada/80146
9199 * calls.c (prepare_call_address): Convert funexp to Pmode before
9200 copying to temp reg.
9201
9202 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9203
9204 PR tree-optimization/80158
9205 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
9206 Handle possible future case of more than one alternate
9207 interpretation.
9208 (replace_rhs_if_not_dup): Likewise.
9209 (replace_one_candidate): Likewise.
9210
9211 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
9212
9213 PR rtl-optimization/80193
9214 * ira.c (ira): Do not check allocation for LRA.
9215
9216 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
9217
9218 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
9219 (nvptx_output_simt_exit): Declare.
9220 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
9221 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
9222 (init_softstack_frame): Move initialization of crtl->is_leaf to...
9223 (nvptx_declare_function_name): ...here. Emit declaration of local
9224 memory space buffer for omp_simt_enter insn.
9225 (nvptx_output_unisimt_switch): New.
9226 (nvptx_output_softstack_switch): New.
9227 (nvptx_output_simt_enter): New.
9228 (nvptx_output_simt_exit): New.
9229 * config/nvptx/nvptx.h (struct machine_function): New fields
9230 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
9231 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
9232 (UNSPECV_SIMT_EXIT): Ditto.
9233 (omp_simt_enter_insn): New insn.
9234 (omp_simt_enter): New expansion.
9235 (omp_simt_exit): New insn.
9236 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
9237
9238 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
9239 (expand_GOMP_SIMT_ENTER_ALLOC): New.
9240 (expand_GOMP_SIMT_EXIT): New.
9241 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
9242 (GOMP_SIMT_ENTER_ALLOC): Ditto.
9243 (GOMP_SIMT_EXIT): Ditto.
9244 * target-insns.def (omp_simt_enter): New insn.
9245 (omp_simt_exit): Ditto.
9246 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
9247 simt_dlist.
9248 (lower_rec_simd_input_clauses): Implement SIMT privatization.
9249 (lower_rec_input_clauses): Likewise.
9250 (lower_lastprivate_clauses): Handle SIMT privatization.
9251
9252 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
9253 (ompdevlow_adjust_simt_enter): New.
9254 (find_simtpriv_var_op): New.
9255 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
9256 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
9257
9258 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
9259 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
9260 (copy_decl_for_dup_finish): Ditto.
9261
9262 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
9263
9264 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
9265
9266 PR target/53383
9267 * config/i386/i386.c (ix86_option_override_internal): Always
9268 allow -mpreferred-stack-boundary=3 for 64-bit targets.
9269
9270 2017-03-28 Bin Cheng <bin.cheng@arm.com>
9271
9272 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
9273
9274 2017-03-28 Bin Cheng <bin.cheng@arm.com>
9275
9276 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
9277 mark new edge's irreducible flag accordign to it.
9278 (vect_do_peeling): Check loop preheader edge's irreducible flag
9279 and pass it to function slpeel_add_loop_guard.
9280
9281 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
9282
9283 PR tree-optimization/80218
9284 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
9285 Update block frequencies and counts.
9286
9287 2017-03-28 Richard Biener <rguenther@suse.de>
9288
9289 PR tree-optimization/78644
9290 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
9291 of a simplification result we may not use it at all.
9292
9293 2017-03-28 Richard Biener <rguenther@suse.de>
9294
9295 PR ipa/80205
9296 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
9297 without arguments, generate default definition of a SSA name.
9298
9299 2017-03-28 Richard Biener <rguenther@suse.de>
9300
9301 PR middle-end/80222
9302 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
9303 TYPE_REF_CAN_ALIAS_ALL references.
9304 * fold-const.c (fold_indirect_ref_1): Likewise.
9305
9306 2017-03-28 Martin Liska <mliska@suse.cz>
9307
9308 PR ipa/80104
9309 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
9310 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
9311
9312 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
9313 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9314
9315 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
9316 (EXTRA_SPECS): Define.
9317 (SUBTARGET_EXTRA_SPECS): Likewise.
9318 (SUBTARGET_CPP_SPEC): Likewise.
9319 * config/arc/elf.h (EXTRA_SPECS): Renamed to
9320 SUBTARGET_EXTRA_SPECS.
9321 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
9322
9323 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
9324
9325 * config/arc/simdext.md (vst64_insn): Update pattern.
9326 (vld32wh_insn): Likewise.
9327 (vld32wl_insn): Likewise.
9328 (vld64_insn): Likewise.
9329 (vld32_insn): Likewise.
9330
9331 2017-03-28 Marek Polacek <polacek@redhat.com>
9332
9333 PR sanitizer/80067
9334 * fold-const.c (fold_comparison): Use protected_set_expr_location
9335 instead of SET_EXPR_LOCATION.
9336
9337 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
9338
9339 * tree.c (add_expr): Avoid name lookup warning.
9340
9341 2017-03-27 Jeff Law <law@redhat.com>
9342
9343 PR tree-optimization/80216
9344 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
9345 function name. Limit recursion depth.
9346 (record_temporary_equivalences): Corresponding changes.
9347
9348 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
9349
9350 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
9351 covered first.
9352
9353 2017-03-27 Jakub Jelinek <jakub@redhat.com>
9354
9355 PR target/80102
9356 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
9357 notes.
9358 * cfgcleanup.c (reg_note_cfa_p): New array.
9359 (insns_have_identical_cfa_notes): New function.
9360 (old_insns_match_p): Don't cross-jump in between /f
9361 and non-/f instructions. If both i1 and i2 are frame related,
9362 verify all CFA notes, their order and content.
9363
9364 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
9365
9366 PR target/78543
9367 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
9368 HImode and SImode with zero extend to DImode to one insn.
9369 (bswap<mode>2_extenddi): Likewise.
9370 (bswapsi2_extenddi): Likewise.
9371 (bswaphi2_extendsi): Likewise.
9372 (bswaphi2): Combine bswap HImode and SImode into one insn.
9373 Separate memory insns from swapping register.
9374 (bswapsi2): Likewise.
9375 (bswap<mode>2): Likewise.
9376 (bswaphi2_internal): Delete, no longer used.
9377 (bswapsi2_internal): Likewise.
9378 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
9379 store, and gpr<-gpr swap insns.
9380 (bswap<mode>2_store): Likewise.
9381 (bswaphi2_reg): Register only splitter, combine with the splitter.
9382 (bswaphi2 splitter): Likewise.
9383 (bswapsi2_reg): Likewise.
9384 (bswapsi2 splitter): Likewise.
9385 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
9386 the insns into load, store, and register/register insns.
9387 (bswapdi2_ldbrx): Likewise.
9388 (bswapdi2_load): Likewise.
9389 (bswapdi2_store): Likewise.
9390 (bswapdi2_reg): Likewise.
9391
9392 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
9393
9394 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
9395 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
9396
9397 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
9398
9399 PR target/80103
9400 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
9401 add comments.
9402 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
9403 special handling for target option conflicts between dform
9404 options (-mpower9-dform, -mpower9-dform-vector,
9405 -mpower9-dform-scalar) and -mno-direct-move.
9406
9407 2017-03-27 Richard Biener <rguenther@suse.de>
9408
9409 PR tree-optimization/80181
9410 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
9411
9412 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
9413
9414 * config/arc/predicates.md (move_double_src_operand): Replace the
9415 call to move_double_src_operand with a call to address_operand.
9416
9417 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
9418
9419 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
9420 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
9421 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
9422
9423 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
9424
9425 * config/arc/predicates.md (long_immediate_loadstore_operand):
9426 Consider scaled addresses cases.
9427
9428 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
9429
9430 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
9431 restored when in interrupt.
9432 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
9433 doesn't have delay slot.
9434
9435 2017-03-27 Richard Biener <rguenther@suse.de>
9436
9437 PR ipa/79776
9438 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
9439 inlined thunk clones.
9440
9441 2017-03-27 Jakub Jelinek <jakub@redhat.com>
9442
9443 PR sanitizer/80168
9444 * asan.c (instrument_derefs): Copy over last operand from
9445 original COMPONENT_REF to the new COMPONENT_REF with
9446 DECL_BIT_FIELD_REPRESENTATIVE.
9447 * ubsan.c (instrument_object_size): Likewise.
9448
9449 2017-03-27 Richard Biener <rguenther@suse.de>
9450
9451 PR tree-optimization/80170
9452 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
9453 sure DR/SCEV didnt fold in constants we do not see when looking
9454 at the reference base alignment.
9455
9456 2017-03-27 Richard Biener <rguenther@suse.de>
9457
9458 PR middle-end/80171
9459 * gimple-fold.c (fold_ctor_reference): Properly guard against
9460 NULL return value from canonicalize_constructor_val.
9461
9462 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
9463
9464 PR target/80180
9465 * config/i386/i386.c (ix86_expand_builtin)
9466 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
9467 flags reg setting and flags reg using instructions.
9468 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
9469 clobbering instructions to zero extend op2.
9470
9471 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
9472
9473 * doc/install.texi (Configuration) <--with-aix-soname>:
9474 Update link to AIX ld.
9475
9476 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
9477
9478 PR rtl-optimization/80160
9479 PR rtl-optimization/80159
9480 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
9481 reg_alternate_class into account.
9482
9483 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
9484
9485 PR target/80148
9486 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
9487 to consider in curr_insn_transform.
9488
9489 2017-03-24 Jakub Jelinek <jakub@redhat.com>
9490
9491 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
9492 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
9493 and emit_mode_inner.
9494
9495 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9496
9497 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
9498 argument to the overloaded builtin variants. Use the new flag to
9499 deprecate certain builtin variants.
9500 * config/s390/s390-builtin-types.def: Add new builtin types.
9501 * config/s390/s390-builtins.h: Support new flags field for
9502 overloaded builtins.
9503 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
9504 (s390_macro_to_expand): Enable vector float data type.
9505 (s390_cpu_cpp_builtins_internal): Indicate support of the new
9506 builtins by incrementing the __VEC__ version number.
9507 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
9508 vec_xst.
9509 (s390_resolve_overloaded_builtin): Emit error messages depending
9510 on the builtin flags.
9511 * config/s390/s390.c (s390_expand_builtin): Support additional
9512 flags argument. Change error message to match the messages
9513 emitted in s390-c.c.
9514 * config/s390/s390.md: New UNSPEC_* constants.
9515 (op_type): Add new instruction types.
9516 * config/s390/vecintrin.h: Add new builtins and test data class
9517 constants.
9518 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
9519 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
9520 (VEC_INEXACT, VEC_NOINEXACT): New constants.
9521 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
9522 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
9523 ("vec_mergel<mode>"): V_HW -> VEC_HW.
9524
9525 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
9526 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
9527 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
9528 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
9529
9530 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
9531 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
9532 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
9533 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
9534
9535 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
9536 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
9537 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
9538 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
9539 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
9540 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
9541 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
9542
9543 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
9544 ("vec_scatter_element<V_HW_4:mode>_DI")
9545 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
9546 ("vec_fpint<mode>", "vflls")
9547 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
9548 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
9549 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
9550 ("*vec_cmphe<mode>_cc"): ... these.
9551
9552 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
9553 mode constant instead of magic value.
9554
9555 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9556
9557 * config/s390/s390.c (s390_expand_vec_compare): Support other
9558 vector floating point modes than just V2DF.
9559 (s390_expand_vcond): Likewise.
9560 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
9561 (s390_cannot_change_mode_class): Prevent mode changes between TF
9562 and V1TF in vector registers.
9563 * config/s390/s390.md (DF, SF): New mode attributes.
9564 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
9565 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
9566 SFmode support for VRs.
9567 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
9568 vector fp modes.
9569 (VFT, VF_HW): New mode iterators.
9570 (vw, sdx): New mode attributes.
9571 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
9572 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
9573 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
9574 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
9575 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
9576 also the new vector floating point modes. Renaming to ...
9577
9578 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
9579 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
9580 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
9581 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
9582 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
9583 ("vec_unordered<mode>"): ... these.
9584
9585 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
9586 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
9587 ("*vec_extendv2df"): New insn definitions.
9588
9589 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9590
9591 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
9592 ("mulditi3_2", "*muldi3_sign"): New patterns.
9593 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
9594 rename the pattern definition.
9595
9596 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9597
9598 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
9599 expander.
9600 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
9601
9602 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9603
9604 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
9605 instruction if possible.
9606 * config/s390/vector.md (vec_halfnumelts): New mode
9607 attribute.
9608 ("*vec_vllezlf<mode>"): New pattern.
9609
9610 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9611
9612 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
9613 ("popcountv4si2", "popcountv2di2"): Rename to ...
9614 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
9615 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
9616 condition.
9617 ("popcount<mode>2_vxe"): New pattern.
9618
9619 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9620
9621 * common/config/s390/s390-common.c (processor_flags_table): Add
9622 arch12.
9623 * config.gcc: Add arch12.
9624 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9625 Default to arch12 for unknown CPU model numbers.
9626 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
9627 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
9628 PROCESSOR_max sanity check.
9629 * config/s390/s390-opts.h (enum processor_type): Add
9630 PROCESSOR_ARCH12.
9631 * config/s390/s390.c (processor_table): Add arch12.
9632 (s390_expand_builtin): Add check for B_VXE flag.
9633 (s390_issue_rate): Add PROCESSOR_ARCH12.
9634 (s390_get_sched_attrmask): Likewise.
9635 (s390_get_unit_mask): Likewise.
9636 (s390_sched_score): Enable z13 scheduling for arch12.
9637 (s390_sched_reorder): Likewise.
9638 (s390_sched_variable_issue): Likewise.
9639 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
9640 PF_VXE.
9641 (s390_tune_attr): Use z13 scheduling also for arch12.
9642 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
9643 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
9644 (TARGET_VXE_P): New macros.
9645 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
9646 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
9647 * config/s390/s390.opt: Add arch12 as processor_type.
9648
9649 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9650
9651 * config/s390/s390.md
9652 ("fixuns_truncdddi2", "fixuns_trunctddi2")
9653 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
9654 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
9655
9656 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
9657 Rename expanders to ...
9658
9659 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
9660 ("fixuns_truncdddi2_emu"): ... these.
9661
9662 ("fixuns_trunc<mode>si2_emu"): New expander.
9663
9664 ("*fixuns_truncdfdi2_z13"): Rename to ...
9665 ("*fixuns_truncdfdi2_vx"): ... this.
9666
9667 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9668
9669 * config/s390/2964.md: Remove the single element vector compare
9670 instructions which are no longer used.
9671 * config/s390/s390.c (s390_select_ccmode): Remove handling of
9672 vector CCmodes.
9673 (s390_canonicalize_comparison): Remove handling of DFmode
9674 compares.
9675 (s390_expand_vec_compare_scalar): Remove function.
9676 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
9677 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
9678 pattern.
9679 ("*cmp<mode>_ccs"): Add wfcdb instruction.
9680
9681 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9682
9683 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
9684 FP zero.
9685 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
9686 will anyway by matched by mov<mode>_64dfp.
9687
9688 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9689
9690 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
9691 vlef/vstef. Add missing operand to vleif.
9692
9693 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9694
9695 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
9696 pair for all vector types with 64 bit elements.
9697 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
9698 * config/s390/vector.md (V_HW_64): ... here.
9699 (V_128_NOSINGLE): New mode iterator.
9700 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
9701 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
9702 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
9703 ("*vec_load_pairv2di"): Change to ...
9704 ("*vec_load_pair<mode>"): ... this one.
9705
9706 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9707
9708 * config/s390/constraints.md: Add comments.
9709 (jKK): Reject element sizes > 8 bytes.
9710 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
9711 s_operands.
9712 * config/s390/s390.md: Add the s_operand checks formerly in
9713 s390_split_ok_p to various splitters where they are still
9714 required.
9715 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
9716 for 128 bit vectors. Plus two splitters.
9717
9718 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9719
9720 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
9721 the file.
9722
9723 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9724
9725 PR target/79893
9726 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
9727 error if the boundary argument is not constant.
9728
9729 2017-03-24 Jakub Jelinek <jakub@redhat.com>
9730
9731 PR rtl-optimization/80112
9732 * loop-doloop.c (doloop_condition_get): Don't check condition
9733 if cmp isn't SET with IF_THEN_ELSE src.
9734
9735 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9736
9737 PR tree-optimization/80158
9738 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
9739 replacing a candidate statement, also replace it for the
9740 candidate's alternate interpretation.
9741 (replace_rhs_if_not_dup): Likewise.
9742 (replace_one_candidate): Likewise.
9743
9744 2017-03-24 Richard Biener <rguenther@suse.de>
9745
9746 PR tree-optimization/80167
9747 * graphite-isl-ast-to-gimple.c
9748 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
9749 properly.
9750 (translate_isl_ast_to_gimple::get_rename): Likewise.
9751
9752 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
9753
9754 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
9755 handling of certain combinations of target options, including the
9756 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
9757 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
9758
9759 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9760
9761 PR target/71436
9762 * config/arm/arm.md (*load_multiple): Add reload_completed to
9763 matching condition.
9764
9765 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9766 Richard Biener <rguenth@suse.de>
9767
9768 PR tree-optimization/79908
9769 PR tree-optimization/80136
9770 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
9771 been cast away, gimplify_and_add suffices.
9772
9773 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
9774
9775 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
9776
9777 2017-03-23 Richard Biener <rguenther@suse.de>
9778
9779 PR tree-optimization/80032
9780 * gimplify.c (gimple_push_cleanup): Forced unconditional
9781 cleanups still have to go to the conditional_cleanups
9782 sequence.
9783
9784 2017-03-22 Jakub Jelinek <jakub@redhat.com>
9785
9786 PR tree-optimization/80072
9787 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
9788 to unsigned int.
9789 (next_operand_entry_id): Change type to unsigned int.
9790 (sort_by_operand_rank): Make sure to return the right return value
9791 even if unsigned fields are bigger than INT_MAX.
9792 (struct oecount): Change cnt and id type to unsigned int.
9793 (oecount_hasher::equal): Formatting fix.
9794 (oecount_cmp): Make sure to return the right return value
9795 even if unsigned fields are bigger than INT_MAX.
9796 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
9797
9798 PR c++/80129
9799 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
9800 TREE_READONLY on result if writing it more than once.
9801
9802 PR sanitizer/80110
9803 * doc/invoke.texi (-fsanitize=thread): Document that with
9804 -fnon-call-exceptions atomics are not able to throw
9805 exceptions.
9806
9807 PR sanitizer/80110
9808 * tsan.c: Include tree-eh.h.
9809 (instrument_builtin_call): Call maybe_clean_eh_stmt or
9810 maybe_clean_or_replace_eh_stmt where needed.
9811 (instrument_memory_accesses): Add cfg_changed argument.
9812 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
9813 if it returned true.
9814 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
9815
9816 PR rtl-optimization/63191
9817 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
9818 wrapper function, moved the whole old content into ...
9819 (ix86_delegitimize_address_1): ... this. New inline function.
9820 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
9821 true as last argument instead of ix86_delegitimize_address.
9822
9823 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
9824
9825 * config/aarch64/aarch64.c (generic_branch_cost): Copy
9826 cortexa57_branch_cost.
9827
9828 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
9829
9830 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
9831
9832 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9833
9834 PR target/80123
9835 * doc/md.texi (Constraints): Document wA constraint.
9836 * config/rs6000/constraints.md (wA): New.
9837 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
9838 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
9839 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
9840 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
9841
9842 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
9843
9844 PR c++/80029
9845 * gimplify.c (is_oacc_declared): New function.
9846 (oacc_default_clause): Use it to set default flags for acc declared
9847 variables inside parallel regions.
9848 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
9849 declared variables.
9850 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
9851 declare attribute to any decl as necessary.
9852
9853 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
9854
9855 PR target/80082
9856 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
9857 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
9858 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
9859 (arm_arch_lpae): This.
9860 * config/arm/arm.c (arm_arch7ve): Rename into ...
9861 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
9862 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
9863 arm_arch_lpae.
9864
9865 2017-03-22 Martin Liska <mliska@suse.cz>
9866
9867 PR target/79906
9868 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
9869 error message instead of an ICE.
9870
9871 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9872
9873 * doc/extend.texi (6.11 Additional Floating Types): Revise.
9874
9875 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
9876
9877 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
9878 comments.
9879 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
9880 comments.
9881
9882 2017-03-21 Martin Sebor <msebor@redhat.com>
9883
9884 * doc/extend.texi: Use "cannot" instead of "can't."
9885 * doc/hostconfig.texi: Same.
9886 * doc/install.texi: Same.
9887 * doc/invoke.texi: Same.
9888 * doc/loop.texi: Same.
9889 * doc/md.texi: Same.
9890 * doc/objc.texi: Same.
9891 * doc/rtl.texi: Same.
9892 * doc/tm.texi: Same.
9893 * doc/tm.texi.in: Same.
9894 * doc/trouble.texi: Same.
9895
9896 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
9897
9898 PR debug/63238
9899 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
9900 (collect_checksum_attributes): Set it.
9901 (die_checksum_ordered): Use it.
9902
9903 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9904
9905 PR tree-optimization/79908
9906 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
9907 change: For a VA_ARG whose LHS has been cast away, use
9908 force_gimple_operand to construct the side effects.
9909
9910 2017-03-21 David Malcolm <dmalcolm@redhat.com>
9911
9912 PR translation/80001
9913 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
9914 more amenable to translation.
9915 (oacc_loop_auto_partitions): Likewise.
9916
9917 2017-03-21 Marek Polacek <polacek@redhat.com>
9918 Martin Sebor <msebor@redhat.com>
9919
9920 PR tree-optimization/80109
9921 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
9922 on INTEGRAL_TYPE_P.
9923
9924 2017-03-21 Jakub Jelinek <jakub@redhat.com>
9925 Segher Boessenkool <segher@kernel.crashing.org>
9926
9927 PR target/80125
9928 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
9929 check reg_used_between_p between insn and one of succ or succ2
9930 depending on if succ is artificial insn not inserted into insn
9931 stream.
9932
9933 2017-03-21 Martin Liska <mliska@suse.cz>
9934
9935 PR gcov-profile/80081
9936 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
9937 * doc/gcc.texi: Include gcov-dump stuff.
9938 * doc/gcov-dump.texi: New file.
9939
9940 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
9941
9942 PR rtl-optimization/79150
9943 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
9944 conditional jump, if the jump is the last insn of the loop.
9945
9946 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9947 Richard Biener <rguenth@suse.de>
9948
9949 PR tree-optimization/79908
9950 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
9951 been cast away, use force_gimple_operand to construct the side
9952 effects.
9953
9954 2017-03-21 Martin Liska <mliska@suse.cz>
9955
9956 PR libfortran/79956
9957 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
9958 to NULL.
9959
9960 2017-03-21 Brad Spengler <spender@grsecurity.net>
9961
9962 PR plugins/80094
9963 * plugin.c (htab_hash_plugin): New function.
9964 (add_new_plugin): Use it and adjust.
9965 (parse_plugin_arg_opt): Adjust.
9966 (init_one_plugin): Likewise.
9967
9968 2017-03-21 Richard Biener <rguenther@suse.de>
9969
9970 PR tree-optimization/80032
9971 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
9972 if set force the cleanup to happen unconditionally.
9973 (gimplify_target_expr): Push inserted clobbers with force_uncond
9974 to avoid them being removed by control-dependent DCE.
9975
9976 2017-03-21 Richard Biener <rguenther@suse.de>
9977
9978 PR tree-optimization/80122
9979 * tree-inline.c (copy_bb): Do not expans va-arg packs or
9980 va_arg_pack_len when the inlined call stmt requires pack
9981 expansion itself.
9982 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
9983
9984 2017-03-21 Jakub Jelinek <jakub@redhat.com>
9985
9986 PR sanitizer/78158
9987 * tsan.c (instrument_builtin_call): If the memory model argument
9988 is not a constant, assume it is valid.
9989
9990 PR c/67338
9991 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
9992 avoid UB.
9993
9994 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
9995
9996 PR rtl-optimization/79910
9997 * combine.c (can_combine_p): Do not allow combining an I0 or I1
9998 if its dest is used by an insn before I2 (other than the combined
9999 insns themselves, which are properly handled already).
10000
10001 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
10002
10003 Revert:
10004 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
10005
10006 * combine.c (record_used_regs): New static function.
10007 (try_combine): Handle situations where there is an additional
10008 instruction between I2 and I3 which needs to have a LOG_LINK
10009 updated.
10010
10011 Revert:
10012 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
10013
10014 * combine.c (try_combine): Delete redundant i1 test. Call
10015 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
10016
10017 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10018
10019 PR target/80083
10020 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
10021 alternatives 13/14.
10022
10023 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10024
10025 PR tree-optimization/80054
10026 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
10027 the optimization if a PHI or any of its arguments is not dominated
10028 by the candidate's basis. Use gphi* rather than gimple* as
10029 appropriate.
10030 (replace_profitable_candidates): Clean up a gimple* variable that
10031 should be a gphi* variable.
10032
10033 2017-03-20 Martin Sebor <msebor@redhat.com>
10034
10035 PR c++/52477
10036 * doc/extend.texi (attribute constructor): Document present limitation.
10037
10038 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
10039
10040 PR target/79963
10041 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
10042 __POWER9_VECTOR__ #ifdef control, change template definition to
10043 use Power9-specific built-in function.
10044 (vec_any_eq): Likewise.
10045 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
10046 to control outcomes from this test.
10047 (vector_ae_<mode>p): For VEC_F modes, likewise.
10048
10049 2017-03-20 Ian Lance Taylor <iant@google.com>
10050
10051 * config/i386/i386.c (ix86_function_regparm): Save an extra
10052 register for -fsplit-stack with DECL_STATIC_CHAIN.
10053
10054 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
10055
10056 PR target/79912
10057 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
10058 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
10059
10060 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
10061
10062 * config/riscv/riscv.c (riscv_print_operand): Use "fence
10063 iorw,ow".
10064 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
10065 iorw,iorw".
10066
10067 2017-03-20 Marek Polacek <polacek@redhat.com>
10068
10069 PR sanitizer/80063
10070 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
10071
10072 2017-03-20 Richard Biener <rguenther@suse.de>
10073
10074 PR tree-optimization/80113
10075 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
10076 allocate extra SSA name for PHI def.
10077 (add_close_phis_to_outer_loops): Likewise.
10078 (add_close_phis_to_merge_points): Likewise.
10079 (copy_loop_close_phi_args): Likewise.
10080 (copy_cond_phi_nodes): Likewise.
10081
10082 2017-03-20 Martin Liska <mliska@suse.cz>
10083
10084 PR middle-end/79753
10085 * tree-chkp.c (chkp_build_returned_bound): Do not build
10086 returned bounds for a LHS that's not a BOUNDED_P type.
10087
10088 2017-03-20 Martin Liska <mliska@suse.cz>
10089
10090 PR target/79769
10091 PR target/79770
10092 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
10093 COMPLEX_CST and VECTOR_CST.
10094
10095 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10096
10097 PR target/78857
10098 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
10099 target operand. A new splitter adds the clobber statement in case
10100 the target operand is dead anyway.
10101
10102 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
10103
10104 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
10105 to age-old versions of binutils and glibc.
10106
10107 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
10108
10109 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
10110
10111 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
10112
10113 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
10114
10115 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
10116
10117 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
10118 requirement for binutils 2.13.
10119
10120 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
10121
10122 * combine.c (try_combine): Delete redundant i1 test. Call
10123 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
10124
10125 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
10126
10127 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
10128 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
10129 contents.
10130 <riscv64-*-elf>: Re-arrange section
10131 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
10132 <riscv32-*-linux>: Likewise.
10133 <riscv64-*-elf>: Likewise
10134 <riscv64-*-linux>: Likewise.
10135
10136 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
10137
10138 PR target/80052
10139 * aarch64.opt(verbose-cost-dump): Fix typo.
10140
10141 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
10142
10143 PR target/79951
10144 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
10145 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
10146
10147 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
10148
10149 * reload.c (find_reloads): When reloading a nonoffsettable address,
10150 use RELOAD_OTHER for it and its address reloads.
10151
10152 PR rtl-optimization/79910
10153 * combine.c (record_used_regs): New static function.
10154 (try_combine): Handle situations where there is an additional
10155 instruction between I2 and I3 which needs to have a LOG_LINK
10156 updated.
10157
10158 2017-03-17 Jeff Law <law@redhat.com>
10159
10160 PR tree-optimization/71437
10161 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
10162 conditional in the hash table first.
10163 (vrp_dom_walker::before_dom_children): Extract condition from
10164 ASSERT_EXPR. Record condition, its inverion and any implied
10165 conditions as well.
10166
10167 2017-03-17 Marek Polacek <polacek@redhat.com>
10168 Markus Trippelsdorf <markus@trippelsdorf.de>
10169
10170 PR tree-optimization/80079
10171 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
10172 m_stores_head.
10173
10174 2017-03-17 Richard Biener <rguenther@suse.de>
10175
10176 PR middle-end/80075
10177 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
10178 Properly verify the LHS before the RHS possibly claims to be
10179 handled.
10180 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
10181 do not throw.
10182
10183 2017-03-17 Martin Jambor <mjambor@suse.cz>
10184
10185 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
10186 (List of -O2 options): Likewise.
10187 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
10188 (-fipa-vrp) New.
10189
10190 2017-03-17 Tom de Vries <tom@codesourcery.com>
10191
10192 * gcov-dump.c (print_usage): Print bug_report_url.
10193
10194 2017-03-17 Richard Biener <rguenther@suse.de>
10195
10196 PR middle-end/80050
10197 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
10198 (parser::peek): Likewise.
10199
10200 2017-03-17 Richard Biener <rguenther@suse.de>
10201
10202 PR tree-optimization/80048
10203 * sese.c (free_sese_info): Properly release rename_map and
10204 copied_bb_map elements.
10205
10206 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
10207
10208 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
10209 Add linked-list forward and backlinks. Insert on
10210 construction, remove on destruction.
10211 (class pass_store_merging): Add m_stores_head field.
10212 (pass_store_merging::terminate_and_process_all_chains):
10213 Iterate over m_stores_head list.
10214 (pass_store_merging::terminate_all_aliasing_chains):
10215 Likewise.
10216 (pass_store_merging::execute): Check for debug stmts first.
10217 Push new chains onto the m_stores_head stack.
10218
10219 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
10220
10221 PR target/71294
10222 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
10223 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
10224 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
10225
10226 2017-03-16 Jeff Law <law@redhat.com>
10227
10228 PR tree-optimization/71437
10229 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
10230 member function. Implementation moved into after_dom_children
10231 member function and into the threader's thread_outgoing_edges
10232 function.
10233 (dom_opt_dom_walker::after_dom_children): Simplify by moving
10234 some code into new thread_outgoing_edges.
10235 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
10236 definition. Simplify marker handling (do it here). Assume we always
10237 have the available expression and the const/copies tables.
10238 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
10239 and tree-vrp.c
10240 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
10241 * tree-vrp.c (equiv_stack): No longer file scoped.
10242 (vrp_dom_walker): New class.
10243 (vrp_dom_walker::before_dom_children): New member function.
10244 (vrp_dom_walker::after_dom_children): Likewise.
10245 (identify_jump_threads): Setup domwalker. Use it rather than
10246 walking edges in a random order by hand. Simplify setup/finalization.
10247 (finalize_jump_threads): Remove.
10248 (vrp_finalize): Do not call identify_jump_threads here.
10249 (execute_vrp): Do it here instead and call thread_through_all_blocks
10250 here too.
10251
10252 PR tree-optimization/71437
10253 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
10254 callers changed.
10255 (simplify_stmt_for_jump_threading): Add basic_block argument. All
10256 callers changed.
10257 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
10258 (dom_opt_dom_walker::thread_across_edge): Remove
10259 handle_dominating_asserts argument. All callers changed.
10260 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
10261 changes. Remove calls to lhs_of_dominating_assert. Other
10262 uses of handle_dominating_asserts turn into unconditional code
10263 (simplify_control_stmt_condition_1): Likewise.
10264 (simplify_control_stmt_condition): Likewise.
10265 (thread_through_normal_block, thread_across_edge): Likewise.
10266 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
10267 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
10268 object if it is not an SSA_NAME.
10269 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
10270 before calling into the VRP specific simplifiers.
10271 (identify_jump_threads): Remove handle_dominating_asserts
10272 argument.
10273
10274 2017-03-16 Jakub Jelinek <jakub@redhat.com>
10275
10276 PR fortran/79886
10277 * tree-diagnostic.c (default_tree_printer): No longer static.
10278 * tree-diagnostic.h (default_tree_printer): New prototype.
10279
10280 2017-03-16 Tamar Christina <tamar.christina@arm.com>
10281
10282 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
10283 Change ins into fmov.
10284
10285 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10286
10287 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
10288 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
10289 Use h_con constraint for operand 1.
10290 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
10291 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
10292
10293 2017-03-15 Jeff Law <law@redhat.com>
10294
10295 PR tree-optimization/71437
10296 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
10297 (record_temporary_equivalences): Use it.
10298
10299 PR tree-optimization/71437
10300 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
10301 tree-ssa-scopedtables.
10302 (lookup_avail_expr, build_and_record_new_cond): Likewise.
10303 (record_conditions, record_cond, vuse_eq): Likewise.
10304 (record_edge_info): Adjust to API tweak of record_conditions.
10305 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
10306 (record_temporary_equivalences, optimize_stmt): Likewise.
10307 (eliminate_redundant_computations): Likewise.
10308 (record_equivalences_from_stmt): Likewise.
10309 * tree-ssa-scopedtables.c: Include options.h and params.h.
10310 (vuse_eq): New function, moved from tree-ssa-dom.c
10311 (build_and_record_new_cond): Likewise.
10312 (record_conditions): Likewise. Accept vector of conditions rather
10313 than edge_equivalence structure for first argument.
10314 for the first argument.
10315 (avail_exprs_stack::lookup_avail_expr): New member function, moved
10316 from tree-ssa-dom.c.
10317 (avail_exprs_stack::record_cond): Likewise.
10318 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
10319 from tree-ssa-dom.c.
10320 (avail_exprs_stack): Add new member functions lookup_avail_expr
10321 and record_cond.
10322 (record_conditions): Declare.
10323
10324 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
10325
10326 PR target/80017
10327 * lra-constraints.c (process_alt_operands): Increase reject for
10328 reloading an input/output operand.
10329
10330 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10331
10332 PR target/79038
10333 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
10334 insns to convert from signed/unsigned char/short to IEEE 128-bit
10335 floating point.
10336 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
10337
10338 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
10339
10340 PR target/80019
10341 * config/i386/i386.c (ix86_vector_duplicate_value): Create
10342 subreg of inner mode for values already in registers.
10343
10344 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
10345
10346 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
10347 iteration reg is used after the loop.
10348
10349 2017-03-14 Martin Sebor <msebor@redhat.com>
10350
10351 PR tree-optimization/79800
10352 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
10353 precision in negative-positive range.
10354 (format_floating): Call non-const overload with adjusted precision.
10355
10356 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10357
10358 PR target/79947
10359 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
10360 -mpowerpc-gfxopt.
10361
10362 2017-03-14 Martin Sebor <msebor@redhat.com>
10363
10364 PR middle-end/80020
10365 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
10366 * builtins.def (aligned_alloc): Use it.
10367
10368 PR c/79936
10369 * Makefile.in (GTFILES): Add calls.c.
10370 * calls.c: Include "gt-calls.h".
10371
10372 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
10373
10374 PR rtl-optimization/79728
10375 * regs.h (struct target_regs): New field
10376 x_contains_allocatable_regs_of_mode.
10377 (contains_allocatable_regs_of_mode): New macro.
10378 * reginfo.c (init_reg_sets_1): Initialize it, and change
10379 contains_reg_of_mode so it includes global regs as well.
10380 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
10381 rather than contains_regs_of_mode.
10382
10383 2017-03-14 Martin Liska <mliska@suse.cz>
10384
10385 * doc/invoke.texi: Document options that can't be combined with
10386 -fcheck-pointer-bounds.
10387
10388 2017-03-14 Martin Liska <mliska@suse.cz>
10389
10390 PR middle-end/79831
10391 * doc/invoke.texi (-Wchkp): Document the option.
10392
10393 2017-03-14 Martin Liska <mliska@suse.cz>
10394
10395 * Makefile.in: Install gcov-dump.
10396
10397 2017-03-14 Martin Liska <mliska@suse.cz>
10398
10399 * multiple_target.c (expand_target_clones): Bail out for
10400 an invalid attribute.
10401
10402 2017-03-14 Richard Biener <rguenther@suse.de>
10403
10404 * alias.c (struct alias_set_entry): Pack properly.
10405 * cfgloop.h (struct loop): Likewise.
10406 * cse.c (struct set): Likewise.
10407 * ipa-utils.c (struct searchc_env): Likewise.
10408 * loop-invariant.c (struct invariant): Likewise.
10409 * lra-remat.c (struct cand): Likewise.
10410 * recog.c (struct change_t): Likewise.
10411 * rtl.h (struct address_info): Likewise.
10412 * symbol-summary.h (function_summary): Likewise.
10413 * tree-loop-distribution.c (struct partition): Likewise.
10414 * tree-object-size.c (struct object_size_info): Likewise.
10415 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
10416 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
10417 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
10418 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
10419 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
10420 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
10421 (struct _stmt_vec_info): Likewise.
10422
10423 2017-03-14 Martin Liska <mliska@suse.cz>
10424
10425 PR target/79892
10426 * multiple_target.c (create_dispatcher_calls): Check that
10427 a target can create a function dispatcher.
10428
10429 2017-03-14 Martin Liska <mliska@suse.cz>
10430
10431 PR lto/66295
10432 * multiple_target.c (expand_target_clones): Drop local.local
10433 flag for default implementation.
10434
10435 2017-03-14 Richard Biener <rguenther@suse.de>
10436
10437 PR tree-optimization/80030
10438 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
10439
10440 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
10441
10442 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
10443 gcc_fallthrough() instead of __attribute__((fallthrough));
10444
10445 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
10446
10447 * doc/gcc.texi: Remove "up" link to (DIR).
10448 * doc/gccint.texi: Ditto.
10449
10450 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
10451
10452 * doc/install.texi (Specific) <avr>: Remove reference to
10453 binutils 2.13.
10454
10455 2017-03-13 Jeff Law <law@redhat.com>
10456
10457 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
10458 attribute rather than comments.
10459
10460 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
10461 match_scratch operand is highest.
10462
10463 2017-03-13 Martin Liska <mliska@suse.cz>
10464
10465 PR middle-end/78339
10466 * ipa-pure-const.c (warn_function_noreturn): If the declarations
10467 is a CHKP clone, use original declaration.
10468
10469 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
10470
10471 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
10472 (arc_conditional_register_usage): Use a different allocation order
10473 when optimizing for size.
10474 * common/config/arc/arc-common.c (arc_option_optimization_table):
10475 Section anchors default on when optimizing for size.
10476
10477 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
10478
10479 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
10480
10481 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
10482
10483 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
10484 * config/arc/arc.md (cpu_facility): Add cd variant.
10485 (*movqi_insn): Add code density variant.
10486 (*movhi_insn): Likewise.
10487 (*movqi_insn): Likewise.
10488 (*addsi3_mixed): Likewise.
10489 (subsi3_insn): Likewise.
10490
10491 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
10492
10493 * config/arc/arc.md (movsi_cond_exec): Update constraint.
10494
10495 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
10496
10497 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
10498 expressions with MINUS and UNARY ops.
10499
10500 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10501
10502 PR target/79911
10503 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
10504 Rename to...
10505 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
10506 between vec_select and vector argument.
10507 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
10508 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
10509 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
10510 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
10511 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
10512 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
10513
10514 2017-03-13 Richard Biener <rguenther@suse.de>
10515
10516 PR other/79991
10517 * params.def (vect-max-peeling-for-alignment): Fix typo.
10518
10519 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
10520
10521 * doc/install.texi (Specific) <mips-*-*>: Remove description of
10522 issue that only occurred with binutils below 2.18.
10523
10524 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
10525
10526 * doc/install.texi (Specific) <cris-axis-elf>: No longer
10527 refer to binutils 2.11/2.12 minimum.
10528
10529 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
10530
10531 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
10532 ftp.kernel.org and simplify binutils requirement.
10533
10534 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
10535
10536 * doc/invoke.texi (Warning Options): Fix spelling of link-time
10537 optimization.
10538 (Optimize Options): Ditto. Also remove redundancy.
10539
10540 2017-03-10 David Malcolm <dmalcolm@redhat.com>
10541
10542 PR translation/79848
10543 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
10544 "%qs".
10545 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
10546 to G_ to avoid double translation.
10547
10548 2017-03-10 David Malcolm <dmalcolm@redhat.com>
10549
10550 PR translation/79923
10551 * auto-profile.c (get_combined_location): Convert leading
10552 character of diagnostics to lower case and remove trailing period.
10553 (read_profile): Likewise for various diagnostics.
10554 * config/arm/arm.c (arm_option_override): Remove trailing period
10555 from various diagnostics.
10556 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
10557 (msp430_expand_delay_cycles): Likewise.
10558
10559 2017-03-10 David Malcolm <dmalcolm@redhat.com>
10560
10561 PR target/79925
10562 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
10563 full command-line argument, rather than just "str".
10564 (aarch64_validate_march): Likewise.
10565 (aarch64_validate_mtune): Likewise.
10566
10567 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
10568
10569 PR rtl-optimization/78911
10570 * lra-assigns.c (must_not_spill_p): New function.
10571 (spill_for): Use it.
10572
10573 2017-03-10 Jakub Jelinek <jakub@redhat.com>
10574
10575 PR tree-optimization/79981
10576 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
10577 ATOMIC_COMPARE_EXCHANGE ifn result.
10578 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
10579 IFN_ATOMIC_COMPARE_EXCHANGE.
10580
10581 2017-03-10 David Malcolm <dmalcolm@redhat.com>
10582
10583 PR driver/79875
10584 * opts.c (parse_sanitizer_options): Add missing question mark to
10585 "did you mean" message.
10586
10587 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10588
10589 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
10590 built-in.
10591 (VMULEUH_UNS): Likewise.
10592 (VMULOUB_UNS): Likewise.
10593 (VMULOUH_UNS): Likewise.
10594 * config/rs6000/rs6000.c (builtin_function_type): Remove
10595 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
10596
10597 2017-03-10 David Malcolm <dmalcolm@redhat.com>
10598
10599 PR bootstrap/79952
10600 * read-rtl-function.c (function_reader::read_rtx_operand): Update
10601 x with result of extra_parsing_for_operand_code_0.
10602 (function_reader::extra_parsing_for_operand_code_0): Convert
10603 return type from void to rtx, returning x. When reading
10604 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
10605 larger size containing struct block_symbol.
10606
10607 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
10608
10609 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
10610 -mfloat128-hardware without -m64.
10611
10612 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
10613
10614 PR target/79941
10615 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
10616 entries to the case statement that marks unsigned arguments to
10617 overloaded functions.
10618
10619 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
10620
10621 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
10622 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
10623
10624 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
10625
10626 PR target/79907
10627 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
10628 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
10629
10630 2017-03-10 Martin Liska <mliska@suse.cz>
10631
10632 PR target/65705
10633 PR target/69804
10634 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
10635 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
10636 FIELD != NULL.
10637
10638 2017-03-10 Olivier Hainque <hainque@adacore.com>
10639
10640 * tree-switch-conversion (array_value_type): Start by resetting
10641 candidate type to it's main variant.
10642
10643 2017-03-10 Jakub Jelinek <jakub@redhat.com>
10644
10645 PR rtl-optimization/79909
10646 * combine.c (try_combine): Use simplify_replace_rtx on individual
10647 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
10648 of the whole CALL_INSN_FUNCTION_USAGE.
10649
10650 PR tree-optimization/79972
10651 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
10652 get_range_info on SSA_NAMEs. Formatting fixes.
10653
10654 2017-03-10 Richard Biener <rguenther@suse.de>
10655 Jakub Jelinek <jakub@redhat.com>
10656
10657 PR tree-optimization/77975
10658 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
10659 edge to be constant.
10660 (get_val_for): For constant x return it. Formatting fix.
10661 (loop_niter_by_eval): Avoid pointless looping if the next iteration
10662 would use the same bases as the current one.
10663
10664 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10665
10666 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
10667 instead of vec_select for V1TImode.
10668 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
10669 longer needed.
10670 (VSX_LE_128): Add V1TI to this mode iterator.
10671 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
10672 (*vsx_le_perm_store_<mode>): Likewise.
10673 (pre-reload splitter for VSX stores): Likewise.
10674 (post-reload splitter for VSX stores): Likewise.
10675 (*vsx_xxpermdi2_le_<mode>): Likewise.
10676 (*vsx_lxvd2x2_le_<mode>): Likewise.
10677 (*vsx_stxvd2x2_le_<mode>): Likewise.
10678
10679 2017-03-09 Michael Eager <eager@eagercon.com>
10680
10681 Correct failures with --enable-checking=yes,rtl.
10682
10683 * config/microblaze/microblaze.c (microblaze_expand_shift):
10684 Replace GET_CODE test with CONST_INT_P and INTVAL test with
10685 test for const0_rtx.
10686 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
10687 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
10688
10689 2017-03-09 Richard Biener <rguenther@suse.de>
10690
10691 PR tree-optimization/79977
10692 * graphite-scop-detection.c (scop_detection::merge_sese):
10693 Handle the case of extra exits to blocks dominating the entry.
10694
10695 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
10696
10697 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
10698 Document rdynamic.
10699
10700 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
10701
10702 PR rtl-optimization/79949
10703 * lra-constraints.c (process_alt_operands): Check memory when
10704 trying to predict a cycle. Print about the overall increase.
10705
10706 2017-03-09 Richard Biener <rguenther@suse.de>
10707
10708 PR middle-end/79971
10709 * gimple-expr.c (useless_type_conversion_p): Preserve
10710 TYPE_SATURATING for fixed-point types.
10711
10712 2017-03-09 Richard Biener <rguenther@suse.de>
10713
10714 PR ipa/79970
10715 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
10716 alignment of BLKmode params.
10717
10718 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10719
10720 PR target/79913
10721 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
10722 (VALL_NO_V2Q): Likewise.
10723 (VDQF_DF): Delete.
10724 * config/aarch64/aarch64-simd.md
10725 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
10726 iterator.
10727 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
10728 VALL_NO_V2Q mode iterator.
10729 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
10730
10731 2017-03-09 Martin Liska <mliska@suse.cz>
10732
10733 PR tree-optimization/79631
10734 * tree-chkp-opt.c (chkp_is_constant_addr): Call
10735 tree_int_cst_sign_bit just for INTEGER constants.
10736
10737 2017-03-09 Martin Liska <mliska@suse.cz>
10738
10739 PR target/65705
10740 PR target/69804
10741 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
10742 sanitizers.
10743
10744 2017-03-09 Marek Polacek <polacek@redhat.com>
10745
10746 PR c++/79672
10747 * tree.c (inchash::add_expr): Handle TREE_VEC.
10748
10749 2017-03-09 Martin Liska <mliska@suse.cz>
10750
10751 PR ipa/79764
10752 (chkp_narrow_size_and_offset): New function.
10753 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
10754 (void chkp_parse_bit_field_ref): New function.
10755 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
10756 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
10757
10758 2017-03-09 Martin Liska <mliska@suse.cz>
10759
10760 PR ipa/79761
10761 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
10762 (chkp_find_bounds_1): Remove gcc_unreachable.
10763
10764 2017-03-09 Jakub Jelinek <jakub@redhat.com>
10765
10766 PR sanitizer/79944
10767 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
10768 BUILT_IN_SYNC*, determine the access type from the size suffix and
10769 always build a MEM_REF with that type. Handle forgotten
10770 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
10771
10772 PR target/79932
10773 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
10774 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
10775 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
10776 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
10777 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
10778 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
10779 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
10780 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
10781 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
10782 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
10783 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
10784 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
10785 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
10786 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
10787 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
10788 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
10789 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
10790 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
10791 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
10792 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
10793 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
10794 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
10795 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
10796 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
10797 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
10798 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
10799 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
10800 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
10801 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
10802 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
10803 definitions outside of __OPTIMIZE__ guarded section.
10804
10805 PR target/79932
10806 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
10807 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
10808 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
10809 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
10810 guarded section.
10811
10812 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10813
10814 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
10815 ("vfenez<mode>"): Add missing constraints.
10816
10817 2017-03-08 Martin Sebor <msebor@redhat.com>
10818
10819 PR target/79928
10820 * config/nds32/nds32.c (nds32_option_override):
10821 Fix misspelled diagnostic.
10822
10823 2017-03-08 Jakub Jelinek <jakub@redhat.com>
10824
10825 PR c/79940
10826 * gimplify.c (gimplify_omp_for): Replace index var in outer
10827 taskloop statement with an artificial variable and add
10828 OMP_CLAUSE_PRIVATE clause for it.
10829
10830 2017-03-08 Richard Biener <rguenther@suse.de>
10831
10832 PR tree-optimization/79955
10833 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
10834 for accesses that are completely outside of the variable.
10835
10836 2017-03-08 Andrew Haley <aph@redhat.com>
10837
10838 PR tree-optimization/79943
10839 * tree-ssa-loop-split.c (compute_new_first_bound): When
10840 calculating the new upper bound, (END-BEG) should be added, not
10841 subtracted.
10842
10843 2017-03-08 Jakub Jelinek <jakub@redhat.com>
10844
10845 * config/avr/avr.md (setmemhi): Make sure match_dup
10846 operand number comes before match_scratch.
10847
10848 2017-03-08 Richard Biener <rguenther@suse.de>
10849
10850 PR tree-optimization/79920
10851 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
10852 with ncopies == 1 to ...
10853 (vect_transform_slp_perm_load): ... here. Properly compute
10854 all element loads by iterating VF times over the group. Do
10855 not handle ncopies (computed in a broken way) in
10856 vect_create_mask_and_perm.
10857
10858 2017-03-08 Jakub Jelinek <jakub@redhat.com>
10859
10860 PR sanitizer/79904
10861 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
10862 is a uniform vector, use uniform_vector_p return value instead of
10863 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
10864
10865 2017-03-07 Marek Polacek <polacek@redhat.com>
10866
10867 PR middle-end/79809
10868 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
10869 (alloca_call_type): Likewise.
10870
10871 2017-03-07 Martin Liska <mliska@suse.cz>
10872
10873 * gcov.c (process_args): Put comment to correct location.
10874
10875 2017-03-07 Martin Liska <mliska@suse.cz>
10876
10877 PR middle-end/68270
10878 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
10879 Use array_at_struct_end_p instead of DECL_CHAIN (field).
10880 (chkp_narrow_bounds_for_field): Likewise.
10881 (chkp_parse_array_and_component_ref): Pass one more argument to
10882 call.
10883
10884 2017-03-07 Richard Biener <rguenther@suse.de>
10885
10886 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
10887 preheaders.
10888
10889 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
10890
10891 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
10892 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
10893
10894 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10895
10896 PR c/79855
10897 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
10898 to end of description.
10899 (PARAM_MAX_STORES_TO_MERGE): Likewise.
10900
10901 2017-03-07 Jakub Jelinek <jakub@redhat.com>
10902
10903 PR rtl-optimization/79901
10904 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
10905 ...
10906 (*avx512f_<code><mode>3<mask_name>): ... this.
10907 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
10908 iterator instead of VI8_AVX2_AVX512BW.
10909
10910 PR rtl-optimization/79901
10911 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
10912 min/max expander, expand it using expand_vec_cond_expr.
10913
10914 PR sanitizer/79897
10915 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
10916 temporary.
10917
10918 2017-03-06 Jakub Jelinek <jakub@redhat.com>
10919
10920 PR c++/79821
10921 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
10922 to void * for PCH reasons.
10923 * dwarf2out.c (output_loc_operands, output_die): Cast
10924 v.val_vec.array to unsigned char *.
10925
10926 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
10927
10928 PR target/77850
10929 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
10930 vector types.
10931
10932 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
10933
10934 PR rtl-optimization/79571
10935 * lra-constraints.c (process_alt_operands): Calculate static
10936 reject and subtract it from overall when only addresses will be
10937 reloaded.
10938
10939 2017-03-06 Julia Koval <julia.koval@intel.com>
10940
10941 PR target/79793
10942 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
10943 incoming stack boundary to 128 for 64-bit targets.
10944
10945 2017-03-06 Richard Biener <rguenther@suse.de>
10946
10947 PR tree-optimization/79894
10948 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
10949 to NULL after folding it.
10950
10951 2017-03-06 Richard Biener <rguenther@suse.de>
10952
10953 PR tree-optimization/79824
10954 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
10955 check disabling peeling for gaps.
10956
10957 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
10958
10959 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
10960 attributes): Document gettimeofday.
10961
10962 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
10963
10964 * config/s390/s390.c (s390_option_override_internal): Set
10965 PARAM_MIN_VECT_LOOP_BOUND
10966
10967 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
10968
10969 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
10970 * config/s390/s390.md: Likewise.
10971
10972 2017-03-06 Jakub Jelinek <jakub@redhat.com>
10973
10974 PR target/79812
10975 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
10976 (<avx2_avx512>_perm<mode>): Rename to ...
10977 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
10978 of VI8F_256_512.
10979 (<avx512>_perm<mode>_mask): Rename to ...
10980 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
10981 of VI8F_256_512.
10982 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
10983 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
10984 instead of VI8F_256_512.
10985 (avx512f_perm<mode>): New define_expand.
10986 (avx512f_perm<mode>_mask): Likewise.
10987 (avx512f_perm<mode>_1<mask_name>): New define_insn.
10988 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
10989
10990 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
10991
10992 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
10993 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
10994 if_then_else.
10995 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
10996
10997 2017-03-06 Martin Liska <mliska@suse.cz>
10998
10999 PR sanitize/79783
11000 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
11001 when having a SSA NAME w/o VAR_DECL assigned to it.
11002
11003 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
11004
11005 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
11006 msa_dpsub_<su>_d): Fix MODE for vec_select.
11007
11008 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
11009
11010 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
11011 argument.
11012 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
11013
11014 2017-03-06 Richard Biener <rguenther@suse.de>
11015
11016 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
11017 * plugin.c (register_plugin_info): Likewise.
11018 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
11019
11020 2017-03-05 Jakub Jelinek <jakub@redhat.com>
11021
11022 * config/i386/sse.md (sse_storehps, sse_storelps,
11023 avx_<castmode><avxsizesuffix>_<castmode>,
11024 avx512f_<castmode><avxsizesuffix>_<castmode>,
11025 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
11026 in condition that at least one operand is not a MEM.
11027
11028 2017-03-03 Jakub Jelinek <jakub@redhat.com>
11029
11030 PR middle-end/79805
11031 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
11032 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
11033 ECF_NOTHROW.
11034 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
11035 gimple_call_nothrow_p flag based on whether original builtin can throw.
11036 If it can, emit following stmts on the fallthrough edge.
11037 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
11038 don't create new bb if inserting just debug stmts on the edge, try to
11039 insert them on the fallthru bb or just reset debug stmts.
11040
11041 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
11042
11043 PR target/43763
11044 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
11045 restore recog_data (including the operand rtxes inside it) around
11046 the call to get_insn_template.
11047
11048 2017-03-03 Martin Sebor <msebor@redhat.com>
11049
11050 PR tree-optimization/79699
11051 * context.c (context::~context): Free MPFR caches to avoid
11052 a memory leak on program exit.
11053
11054 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11055
11056 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
11057 Use wide_int::ulow () instead of .elt (0).
11058
11059 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
11060
11061 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
11062 (*pushxf): Limit oF constraint to 32bit targets and add oC
11063 constraint for 64bit targets.
11064 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
11065 (*pushdf): Change rmF constraint to rmC.
11066
11067 2017-03-03 Martin Liska <mliska@suse.cz>
11068
11069 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
11070 Remove unused variable.
11071
11072 2017-03-03 Jakub Jelinek <jakub@redhat.com>
11073
11074 PR target/79807
11075 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
11076 is a memory operand, increase num_memory.
11077 (ix86_expand_args_builtin): Likewise.
11078
11079 2017-03-03 Jan Hubicka <jh@suse.cz>
11080
11081 PR lto/79760
11082 * ipa-devirt.c (maybe_record_node): Properly handle
11083 __cxa_pure_virtual visibility.
11084
11085 2017-03-03 Martin Liska <mliska@suse.cz>
11086
11087 PR tree-optimization/79803
11088 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
11089 assert.
11090 (pass_loop_prefetch::execute): Disabled optimization if an
11091 assumption about L1 cache size is not met.
11092
11093 2017-03-03 Martin Liska <mliska@suse.cz>
11094
11095 PR rtl-optimization/79574
11096 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
11097 (hash_scan_set): Likewise.
11098 (dump_hash_table): Likewise.
11099 (hoist_code): Likewise.
11100
11101 2017-03-03 Richard Biener <rguenther@suse.de>
11102
11103 * fixed-value.c (fixed_from_string): Restore use of elt (1)
11104 in place of uhigh ().
11105 (fixed_convert_from_real): Likewise.
11106
11107 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
11108
11109 PR target/79514
11110 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
11111
11112 2017-03-03 Richard Biener <rguenther@suse.de>
11113
11114 PR middle-end/79818
11115 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
11116 TYPE_OVERFLOW_UNDEFINED check.
11117
11118 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11119
11120 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
11121 numbers.
11122 (vector_ae_<mode>_p): Likewise.
11123 (vector_nez_<mode>_p): Likewise.
11124 (vector_ne_v2di_p): Likewise.
11125 (vector_ae_v2di_p): Likewise.
11126 (vector_ne_<mode>_p): Likewise.
11127 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
11128 numbers.
11129 (vsx_tsqrt<mode>2_fe): Likewise.
11130
11131 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
11132
11133 PR target/79514
11134 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
11135
11136 2017-03-02 Jakub Jelinek <jakub@redhat.com>
11137
11138 PR rtl-optimization/79780
11139 * cprop.c (one_cprop_pass): When second and further conditional trap
11140 in a single basic block is turned into an unconditional trap, turn it
11141 into a deleted note to avoid RTL verification failures.
11142
11143 2017-03-02 Richard Biener <rguenther@suse.de>
11144
11145 * fold-const.c (const_binop): Use ulow () instead of elt (0).
11146
11147 2017-03-02 Richard Biener <rguenther@suse.de>
11148
11149 PR tree-optimization/79345
11150 PR c++/42000
11151 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
11152 param and abort the walk, returning -1 if it is hit.
11153 (walk_aliased_vdefs): Take a limit param and pass it on.
11154 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
11155 defaulting to 0 and return a signed int.
11156 * tree-ssa-uninit.c (struct check_defs_data): New struct.
11157 (check_defs): New helper.
11158 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
11159 about uninitialized memory.
11160 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
11161 bogus uninitialized warning.
11162 (fixed_convert_from_real): Likewise.
11163
11164 2017-03-02 Bin Cheng <bin.cheng@arm.com>
11165
11166 PR tree-optimization/66768
11167 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
11168 iv_use if base object can't be determined.
11169
11170 2017-03-02 Jakub Jelinek <jakub@redhat.com>
11171
11172 PR tree-optimization/79345
11173 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
11174 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
11175 (get_pattern_stats): Initialize it.
11176 * genemit.c (gen_expand): Verify match_scratch numbers come after
11177 match_operand/match_dup numbers.
11178 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
11179 match_scratch numbers.
11180 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
11181 Likewise.
11182 * config/s390/s390.md (trunctdsd2): Likewise.
11183
11184 2017-03-02 Richard Biener <rguenther@suse.de>
11185
11186 * wide-int.h (wide_int_storage::operator=): Implement in terms
11187 of wi::copy.
11188
11189 2017-03-02 Richard Biener <rguenther@suse.de>
11190
11191 PR tree-optimization/79777
11192 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
11193 the to insert expression to sth existing.
11194
11195 2017-03-01 Martin Sebor <msebor@redhat.com>
11196
11197 PR middle-end/79692
11198 * gimple-ssa-sprintf.c
11199 (directive::known_width_and_precision): New function.
11200 (format_integer): Use it.
11201 (get_mpfr_format_length): Consider the full range of precision
11202 when computing %g output with the # flag. Set the likely byte
11203 count to 3 rather than 1 when precision is indeterminate.
11204 (format_floating): Correct the lower bound of precision.
11205
11206 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11207
11208 * doc/invoke.texi: Document default code model for 64-bit Linux.
11209
11210 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11211
11212 PR target/79752
11213 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
11214 udiv rather than div since input pattern is unsigned.
11215
11216 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
11217
11218 * config/i386/i386.c (print_reg): Warn for values of
11219 unsupported size in integer register.
11220
11221 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11222
11223 PR target/79439
11224 * config/rs6000/predicates.md (current_file_function_operand): Do
11225 not allow self calls to be local if the function is replaceable.
11226
11227 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
11228
11229 PR target/79395
11230 * config/rs6000/altivec.h (vec_ctz and others): Change the
11231 preprocessor macro that controls conditional compilation from
11232 _ARCH_PWR9 to __POWER9_VECTOR__.
11233 (vec_all_ne): Change parameterization of __altivec_scalar_pred
11234 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
11235 control (instead of _ARCH_PWR9 control) so that template
11236 definition uses power9-specific function.
11237 (vec_any_eq): Likewise.
11238 (vec_all_ne): Change macro definition to use a power9-specific
11239 expansion under #ifdef __POWER9_VECTOR__ control (instead of
11240 _ARCH_PWR9 control).
11241 (vec_any_eq) Likewise.
11242 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
11243 expansion for CMPNEF to remove support for xvcmpnesp instruction.
11244 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
11245 support for xvcmpnedp instruction.
11246 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
11247 macro expansion so that Power9 implementation of vec_all_ne does
11248 not use the AltiVec predicate framework.
11249 (VCMPNEH_P): Likewise.
11250 (VCMPNEW_P): Likewise.
11251 (VCMPNED_P): Likewise.
11252 (VCMPNEFP_P): Likewise.
11253 (VCMPNEDP_P): Likewise.
11254 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
11255 implementation of vec_any_eq to not use AltiVec predicate
11256 framework.
11257 (VCMPAEH_P): Likewise.
11258 (VCMPAEW_P): Likewise.
11259 (VCMPAED_P): Likewise.
11260 (VCMPAEFP_P): Likewise.
11261 (VCMPAEDP_P): Likewise.
11262 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
11263 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
11264 not use the AltiVec predicate framework.
11265 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
11266 of vec_any_eq to not use AltiVec predicate framework.
11267 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
11268 support for predefined __POWER9_VECTOR__ macro to indicate that
11269 Power9 instruction selection is enabled.
11270 (altivec_overloaded_builtins): Remove extraneous
11271 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
11272 function argument types RS6000_BTI_bool_V16QI and
11273 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
11274 entry for overloaded function argument types RS6000_BTI_bool_V4SI
11275 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
11276 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
11277 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
11278 Power9 for implementations of vec_cmpne. Change the signature for
11279 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
11280 (representing vec_all_ne) to remove the previously described first
11281 argument of type RS6000_BTI_INTSI, as this was an artifact of
11282 reliance on the AltiVec predicate framework, which is no longer
11283 used in the implementation of these functions. Add
11284 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
11285 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
11286 since, unlike the AltiVec predicate framework implementation, we
11287 do not share function descriptors between vec_alle and vec_anyeq.
11288 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
11289 set of modes that receive special treatment even when
11290 TARGET_P9_VECTOR is true. The special treatment emits code that
11291 does not depend on Power9 instructions.
11292 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
11293 define_expand to not rely on AltiVec predicate framework.
11294 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
11295 function.
11296 (vector_ne_v2di_p): Change this define_expand to not rely on
11297 AltiVec predicate framework.
11298 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
11299 function.
11300 (vector_ne_<mode>_p): Change this define_expand to not rely on
11301 AltiVec predicate framework.
11302 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
11303 function.
11304 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
11305 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
11306 define_insn pattern.
11307 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
11308 define_insn pattern because the xvcmpne<VSs>. instruction is not
11309 supported.
11310 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
11311 instruction is not supported.
11312
11313 2017-03-01 Jakub Jelinek <jakub@redhat.com>
11314
11315 * config/nvptx/nvptx.c: Include intl.h.
11316
11317 2017-03-01 Martin Jambor <mjambor@suse.cz>
11318
11319 PR lto/78140
11320 * ipa-prop.h (ipa_bits): Removed field known.
11321 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
11322 to pointers. Adjusted their comments to warn about their sharing.
11323 (ipcp_transformation_summary): Change bits to a vector of pointers.
11324 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
11325 (ipa_get_ipa_bits_for_value): Declare.
11326 * tree-vrp.h (value_range): Mark as GTY((for_user)).
11327 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
11328 (ipa_bits_hash_table): Likewise.
11329 (ipa_vr_ggc_hash_traits): Likewise.
11330 (ipa_vr_hash_table): Likewise.
11331 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
11332 being pointers and vr_known being removed.
11333 (ipa_set_jf_unknown): Likewise.
11334 (ipa_get_ipa_bits_for_value): New function.
11335 (ipa_set_jfunc_bits): Likewise.
11336 (ipa_get_value_range): New overloaded functions.
11337 (ipa_set_jfunc_vr): Likewise.
11338 (ipa_compute_jump_functions_for_edge): Use the above functions to
11339 construct bits and vr parts of jump functions.
11340 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
11341 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
11342 exist.
11343 (ipcp_grow_transformations_if_necessary): Also allocate
11344 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
11345 exist.
11346 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
11347 them. Fix too long lines.
11348 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
11349 vr_known being removed.
11350 (ipa_read_jump_function): Use new setter functions to construct bits
11351 and vr parts of jump functions or set them to NULL.
11352 (write_ipcp_transformation_info): Adjust for bits being pointers.
11353 (read_ipcp_transformation_info): Likewise.
11354 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
11355 space.
11356 Include gt-ipa-prop.h.
11357 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
11358 being pointers.
11359 (ipcp_store_bits_results): Likewise.
11360 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
11361 Do not write to existing jump functions but use a temporary instead.
11362
11363 2017-03-01 Jakub Jelinek <jakub@redhat.com>
11364
11365 PR c++/79681
11366 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
11367 attempt to use its first operand as BIT_FIELD_REF base.
11368
11369 2017-03-01 Richard Biener <rguenther@suse.de>
11370
11371 PR middle-end/79721
11372 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
11373 interpolating formula in wrapping arithmetic.
11374 (chrec_apply): Convert chrec_evaluate return value to wanted type.
11375
11376 2017-03-01 Jakub Jelinek <jakub@redhat.com>
11377
11378 PR tree-optimization/79734
11379 * tree-vect-generic.c (expand_vector_condition): Optimize
11380 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
11381 Handle VEC_COND_EXPR where comparison has different inner width from
11382 type's inner width.
11383
11384 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
11385
11386 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
11387 markup, and similar issues. Remove @opindex entries for things
11388 that aren't options. Add missing -mmpy-option entries.
11389
11390 2017-02-28 Jakub Jelinek <jakub@redhat.com>
11391
11392 PR tree-optimization/79737
11393 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
11394 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
11395 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
11396 instead of byte_size. Formatting fix.
11397 (shift_bytes_in_array_right): Formatting fix.
11398
11399 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
11400
11401 PR target/79749
11402 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
11403 condition on optimize for the leaf function test.
11404
11405 2017-02-28 Martin Liska <mliska@suse.cz>
11406
11407 PR lto/79625
11408 * read-rtl-function.c (function_reader::handle_unknown_directive):
11409 Bail out when one uses -flto.
11410
11411 2017-02-28 Martin Liska <mliska@suse.cz>
11412
11413 * common.opt: Replace space with tabular for options of <number>
11414 type.
11415 * config/i386/i386.opt: Show <number> value for
11416 -mlarge-data-threshold.
11417 * opts.c (print_filtered_help): Do not display number in hexadecimal
11418 format.
11419
11420 2017-02-28 Martin Liska <mliska@suse.cz>
11421
11422 * common.opt: Fix --help=option -Q for options which are of
11423 an enum type.
11424
11425 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
11426
11427 * config/i386/i386.c (print_reg): Error out for values
11428 of 8-bit size in invalid integer register.
11429
11430 2017-02-28 Martin Sebor <msebor@redhat.com>
11431
11432 PR tree-optimization/79691
11433 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
11434
11435 2017-02-28 Jakub Jelinek <jakub@redhat.com>
11436
11437 PR target/79729
11438 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
11439 gcc_unreachable with output_operand_lossage.
11440
11441 2017-02-28 Richard Biener <rguenther@suse.de>
11442
11443 PR tree-optimization/79740
11444 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
11445 inserts.
11446 (visit_nary_op): Insert the nary into the hashtable if we
11447 pattern-matched sth.
11448 * tree-ssa-pre.c (eliminate_insert): Robustify.
11449
11450 2017-02-28 Richard Biener <rguenther@suse.de>
11451
11452 PR middle-end/79731
11453 * fold-const.c (decode_field_reference): Reject out-of-bound
11454 accesses.
11455
11456 2017-02-28 Jakub Jelinek <jakub@redhat.com>
11457
11458 * config/i386/i386.c: Include intl.h.
11459 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
11460 instead of just cond ? "..." : "...".
11461 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
11462 * coverage.c (read_counts_file): Likewise.
11463 * omp-offload.c: Include intl.h.
11464 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
11465 of just cond ? "..." : "...".
11466 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
11467 of just cond ? "..." : "...".
11468
11469 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
11470
11471 PR target/79742
11472 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
11473 entry, if present.
11474 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
11475 'tune for' CPU name.
11476 * config/arm/arm-cpu-data.h: Regenerated.
11477
11478 2017-02-28 Richard Biener <rguenther@suse.de>
11479
11480 PR tree-optimization/79732
11481 * tree-inline.c (expand_call_inline): Do not shadow var.
11482
11483 2017-02-28 Richard Biener <rguenther@suse.de>
11484
11485 PR tree-optimization/79723
11486 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
11487 address-space properly.
11488
11489 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
11490
11491 * doc/optinfo.texi (Optimization groups): Fix option used for
11492 OPTGROUP_ALL.
11493 * doc/invoke.texi (-fopt-info): Document "omp".
11494 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
11495 (OPTGROUP_ALL): Add OPTGROUP_OMP.
11496 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
11497 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
11498 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
11499
11500 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
11501 all users.
11502 * dumpfile.c (optgroup_options): Instead of "openmp", associate
11503 OPTGROUP_OMP with "omp".
11504
11505 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
11506
11507 PR target/79544
11508 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
11509 for arithmetic shift of unsigned V2DI.
11510
11511 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
11512
11513 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
11514 arc/linux.h headers.
11515 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
11516 (LINK_SPEC): Likewise.
11517 (ARC_TLS_EXTRA_START_SPEC): Likewise.
11518 (EXTRA_SPECS): Likewise.
11519 (STARTFILE_SPEC): Likewise.
11520 (ENDFILE_SPEC): Likewise.
11521 (LIB_SPEC): Likewise.
11522 (TARGET_SDATA_DEFAULT): Likewise.
11523 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
11524 (MULTILIB_DEFAULTS): Likewise.
11525 (DWARF2_UNWIND_INFO): Likewise.
11526 * config/arc/big.h: New file.
11527 * config/arc/elf.h: Likewise.
11528 * config/arc/linux.h: Likewise.
11529 * config/arc/t-uClibc: Remove.
11530
11531 2017-02-27 Bin Cheng <bin.cheng@arm.com>
11532
11533 PR tree-optimization/77536
11534 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
11535 (tree_transform_and_unroll_loop): Use above function to compute the
11536 estimated niter of unrolled loop and use it when scaling profile.
11537 Also use count info rather than frequency if it's non-zero.
11538 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
11539 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
11540 (vect_transform_loop): Call above function.
11541
11542 2017-02-27 Richard Biener <rguenther@suse.de>
11543
11544 PR tree-optimization/45397
11545 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
11546 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
11547 (visit_nary_op): Add pattern matching for CSEing sign-changed
11548 or truncated operations with wider ones.
11549
11550 2017-02-27 Richard Biener <rguenther@suse.de>
11551
11552 PR tree-optimization/79690
11553 * tree-vect-stmts.c (vectorizable_store): Use vector type
11554 built from the DR with address-space.
11555
11556 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11557
11558 * doc/invoke.texi (Optimize Options): Refine the description
11559 of asan-use-after-return.
11560
11561 2017-02-25 Alan Modra <amodra@gmail.com>
11562
11563 PR rtl-optimization/79584
11564 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
11565 base, not ad->base_term, the reg within base. Remove assertion
11566 that ad->base == ad->base_term. Replace gen_int_mode using
11567 bogus mode with const0_rtx.
11568
11569 2017-02-25 Jakub Jelinek <jakub@redhat.com>
11570
11571 PR middle-end/79396
11572 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
11573 FMA_EXPR like tcc_binary or tcc_unary.
11574
11575 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
11576
11577 PR debug/77589
11578 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
11579 bitfield.
11580 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
11581 (output_loc_operands): Handle DW_OP_call_ref and
11582 DW_OP_GNU_variable_value.
11583 (struct variable_value_struct): New type.
11584 (struct variable_value_hasher): Likewise.
11585 (variable_value_hash): New variable.
11586 (string_types): Remove.
11587 (copy_loc_descr): New function.
11588 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
11589 (prepend_loc_descr_to_each): New function.
11590 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
11591 instead of add_loc_descr_to_each if the first argument is single
11592 location list and the second has multiple.
11593 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
11594 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
11595 when looking for variable value which doesn't have other location info.
11596 (loc_list_from_tree): Formatting fix.
11597 (gen_array_type_die): Simplify DW_AT_string_length handling.
11598 (adjust_string_types): Remove.
11599 (gen_subprogram_die): Don't call adjust_string_types nor test/set
11600 string_types. Call resolve_variable_values.
11601 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
11602 (resolve_addr_in_expr): Likewise. Add A argument.
11603 (copy_deref_exprloc): Remove deref argument. Adjust for the
11604 original expression being DW_OP_GNU_variable_value with optionally
11605 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
11606 optionally after it.
11607 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
11608 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
11609 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
11610 (variable_value_hasher::hash, variable_value_hasher::equal): New
11611 methods.
11612 (resolve_variable_value_in_expr, resolve_variable_value,
11613 resolve_variable_values, note_variable_value_in_expr,
11614 note_variable_value): New functions.
11615 (dwarf2out_early_finish): Call note_variable_value on all toplevel
11616 DIEs.
11617
11618 2017-02-24 Jakub Jelinek <jakub@redhat.com>
11619
11620 PR c/79677
11621 * opts.h (handle_generated_option): Add GENERATED_P argument.
11622 * opts-common.c (handle_option): Adjust function comment.
11623 (handle_generated_option): Add GENERATED_P argument, pass it to
11624 handle_option.
11625 (control_warning_option): Pass false to handle_generated_option
11626 GENERATED_P.
11627 * opts.c (maybe_default_option): Pass true to handle_generated_option
11628 GENERATED_P.
11629 * optc-gen.awk: Likewise.
11630
11631 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
11632
11633 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
11634 a REG, look at the REG it is a SUBREG of.
11635 (splitter for cmpeqsi_t): Ditto.
11636
11637 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
11638
11639 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
11640 the special USEs with the pattern of the insn, not the insn itself.
11641
11642 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
11643
11644 PR target/79473
11645 * doc/invoke.texi: Document -mload-store-pairs.
11646
11647 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
11648 Sandra Loosemore <sandra@codesourcery.com>
11649
11650 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
11651 argument isn't a CONST_INT.
11652 (nios2_alternate_compare_const): Assert op is a CONST_INT.
11653 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
11654 (nios2_validate_compare): Bypass alternate compare logic if *op2
11655 is not a CONST_INT.
11656 (ldstwm_operation_p): Return false if first_base is not a REG or
11657 if first_offset is not a CONST_INT.
11658
11659 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
11660
11661 * config/cris/cris.md: Use correct operand in a define_peephole2.
11662
11663 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
11664
11665 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
11666
11667 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
11668
11669 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
11670 this_insn if it is an INSN or JUMP_INSN.
11671 (force_offsettable): Look at base, not at addr.
11672 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
11673 on things that aren't necessarily CONST_INTs.
11674
11675 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
11676
11677 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
11678 -mfpmath=sse is the default also for x86-32 targets with SSE2
11679 instruction set when @option{-ffast-math} is enabled
11680
11681 2017-02-24 Jeff Law <law@redhat.com>
11682
11683 PR rtl-optimizatoin/79286
11684 * ira.c (update_equiv_regs): Drop may_trap_p exception to
11685 dominance test.
11686
11687 2017-02-24 Richard Biener <rguenther@suse.de>
11688
11689 PR tree-optimization/79389
11690 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
11691 debug insns.
11692
11693 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
11694
11695 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
11696 function comment to reflect reality.
11697 (loop_exits_before_overflow): Fix typo in function description.
11698
11699 2017-02-24 Richard Biener <rguenther@suse.de>
11700
11701 PR tree-optimization/79389
11702 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
11703 properly that a threading opportunity exists. Detect conditional
11704 copy/constant propagation opportunities.
11705
11706 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
11707
11708 * config/visium/visium.md (type): Add trap.
11709 (b): New mode attribute.
11710 (*btst): Rename into...
11711 (*btst<mode>): ...this and adjust.
11712 (*cbranchsi4_btst_insn): Rename into...
11713 (*cbranch<mode>4_btst_insn): ...this and adjust.
11714 (trap): New define_insn.
11715
11716 2017-02-23 Jakub Jelinek <jakub@redhat.com>
11717
11718 PR tree-optimization/79389
11719 * ifcvt.c (struct noce_if_info): Add rev_cond field.
11720 (noce_reversed_cond_code): New function.
11721 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
11722 reversed_comparison_code. Formatting fix.
11723 (noce_try_store_flag): Test rev_cond != NULL in addition to
11724 reversed_comparison_code.
11725 (noce_try_store_flag_constants): Likewise.
11726 (noce_try_store_flag_mask): Likewise.
11727 (noce_try_addcc): Use rev_cond if non-NULL instead of
11728 reversed_comparison_code.
11729 (noce_try_cmove_arith): Likewise. Formatting fixes.
11730 (noce_try_minmax, noce_try_abs): Clear rev_cond.
11731 (noce_find_if_block): Initialize rev_cond.
11732 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
11733 instead of false as last argument never attempt to reverse it
11734 afterwards.
11735
11736 2017-02-23 Bin Cheng <bin.cheng@arm.com>
11737
11738 PR tree-optimization/79663
11739 * tree-predcom.c (combine_chains): Process refs in reverse order
11740 only for ZERO length chains, and add explaining comment.
11741
11742 2017-02-23 Jeff Law <law@redhat.com>
11743
11744 PR tree-optimization/79578
11745 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
11746 in call to operand_equal_p.
11747
11748 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
11749
11750 PR target/71017
11751 * config/i386/cpuid.h: Fix another undefined behavior.
11752
11753 2017-02-23 Richard Biener <rguenther@suse.de>
11754
11755 PR tree-optimization/79683
11756 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
11757 vector types for data-refs.
11758
11759 2017-02-23 Martin Liska <mliska@suse.cz>
11760
11761 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
11762
11763 2017-02-23 Jakub Jelinek <jakub@redhat.com>
11764
11765 PR middle-end/79665
11766 * internal-fn.c (get_range_pos_neg): Moved to ...
11767 * tree.c (get_range_pos_neg): ... here. No longer static.
11768 * tree.h (get_range_pos_neg): New prototype.
11769 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
11770 are known to be in between 0 and signed maximum inclusive, try to
11771 expand both unsigned and signed divmod and use the cheaper one from
11772 those.
11773
11774 2017-02-22 Jeff Law <law@redhat.com>
11775
11776 PR tree-optimization/79578
11777 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
11778 to compare base operands.
11779
11780 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
11781
11782 PR target/79211
11783 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
11784 gpc_reg_operand instead of fpr_reg_operand.
11785
11786 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
11787
11788 * config/mips/mips.c (mips_return_in_memory): Force FP
11789 vector types to be returned in memory for o32 ABI.
11790
11791 2017-02-22 Jakub Jelinek <jakub@redhat.com>
11792
11793 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
11794 instead of DW_TAG_member for static data member declarations and don't
11795 set no_linkage_name for static inline data members.
11796 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
11797 to DW_TAG_member.
11798
11799 2017-02-22 Martin Liska <mliska@suse.cz>
11800
11801 * doc/invoke.texi: Replace inequality signs with square brackets
11802 for -Wnormalized.
11803
11804 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11805
11806 PR tree-optimization/68644
11807 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
11808
11809 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
11810
11811 PR target/78660
11812 * lra-constraints.c (simplify_operand_subreg): Handle
11813 WORD_REGISTER_OPERATIONS targets.
11814
11815 2017-02-22 Jakub Jelinek <jakub@redhat.com>
11816
11817 PR target/70465
11818 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
11819 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
11820 elimination by swapping fld*.
11821
11822 2017-02-22 Richard Biener <rguenther@suse.de>
11823
11824 PR tree-optimization/79673
11825 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
11826 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
11827 irrelevant address-space qualifiers and avoiding a
11828 ADDR_SPACE_CONVERT_EXPR from fold_convert.
11829
11830 2017-02-22 Richard Biener <rguenther@suse.de>
11831
11832 PR tree-optimization/79666
11833 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
11834 to not symbolically negate if that may introduce undefined
11835 overflow.
11836
11837 2017-02-22 Martin Liska <mliska@suse.cz>
11838
11839 PR lto/79587
11840 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
11841 * data-streamer-out.c (streamer_write_gcov_count_stream):
11842 Likewise.
11843 * value-prof.c (stream_out_histogram_value): Make assert more
11844 precise based on type of counter.
11845
11846 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
11847
11848 PR target/79593
11849 * config/i386/i386.md (standard_x87sse_constant_load splitter):
11850 Use nonimmediate_operand instead of memory_operand for operand 1.
11851 (float-extend standard_x87sse_constant_load splitter): Ditto.
11852
11853 2017-02-21 Jeff Law <law@redhat.com>
11854
11855 PR tree-optimization/79621
11856 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
11857 blocks with edges to themselves.
11858
11859 2017-02-21 Jakub Jelinek <jakub@redhat.com>
11860
11861 PR target/79633
11862 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
11863 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
11864 Use gimple_call_builtin_p.
11865
11866 PR target/79570
11867 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
11868 on temporarily removed DEBUG_INSNs.
11869
11870 PR tree-optimization/79649
11871 * tree-loop-distribution.c (classify_partition): Give up on
11872 non-generic address space loads/stores.
11873
11874 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
11875
11876 * doc/loop.texi (Loop manipulation): Remove nonexistent
11877 tree_ssa_loop_version from the documentation.
11878 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
11879
11880 2017-02-21 Jakub Jelinek <jakub@redhat.com>
11881
11882 PR target/79494
11883 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
11884 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
11885 * config/rs6000/rs6000.c: Include except.h.
11886 (rs6000_expand_split_stack_prologue): Call
11887 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
11888
11889 2017-02-21 Martin Jambor <mjambor@suse.cz>
11890
11891 PR lto/79579
11892 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
11893 have been analyzed.
11894
11895 2017-02-21 Martin Jambor <mjambor@suse.cz>
11896
11897 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
11898 for backward compatibility only.
11899 * doc/invoke.texi (Option Summary): Remove all references to
11900 -fipa-cp-alignment.
11901
11902 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
11903
11904 PR target/78660
11905 Revert:
11906 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
11907
11908 * lra-constraints.c (curr_insn_transform): Handle
11909 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
11910
11911 2017-02-21 Martin Liska <mliska@suse.cz>
11912
11913 * config/i386/i386.opt: Replace -masm-dialect with -masm.
11914
11915 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
11916
11917 PR translation/79638
11918 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
11919
11920 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
11921
11922 PR ada/67205
11923 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
11924 (arm_function_ok_for_sibcall): Return false for an indirect call by
11925 descriptor if all the argument registers are used.
11926 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
11927 alignment of the function.
11928
11929 2017-02-21 Jakub Jelinek <jakub@redhat.com>
11930
11931 PR tree-optimization/61441
11932 * simplify-rtx.c (simplify_const_unary_operation): For
11933 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
11934 the sNaN unmodified.
11935
11936 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
11937
11938 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
11939 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
11940 instead of SYSTEM_HEADER_DIR.
11941
11942 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
11943 Martin Liška <mliska@suse.cz>
11944
11945 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
11946 Fix typos and grammar, use active voice, and clarify.
11947
11948 2017-02-20 Marek Polacek <polacek@redhat.com>
11949
11950 PR middle-end/79537
11951 * gimplify.c (gimplify_expr): Handle unused *&&L;.
11952
11953 PR sanitizer/79558
11954 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
11955
11956 2017-02-20 Jakub Jelinek <jakub@redhat.com>
11957
11958 PR target/79568
11959 * config/i386/i386.c (ix86_expand_builtin): Handle
11960 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
11961 ix86_builtins_isa[fcode].isa as a requirement of those
11962 flags and any other flag in the bitmask.
11963 (ix86_init_mmx_sse_builtins): Use 0 instead of
11964 ~OPTION_MASK_ISA_64BIT as mask.
11965 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
11966 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
11967 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
11968 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
11969
11970 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
11971
11972 PR target/78012
11973 * lra-constraints.c (split_reg): Check requested split mode
11974 is supported by the register.
11975
11976 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
11977
11978 * lra-constraints.c (simplify_operand_subreg): Remove early
11979 return false.
11980
11981 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
11982
11983 PR target/78660
11984 * lra-constraints.c (curr_insn_transform): Tighten condition
11985 for converting SUBREG reloads from OP_OUT to OP_INOUT.
11986
11987 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
11988
11989 PR target/78660
11990 * lra-constraints.c (curr_insn_transform): Handle
11991 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
11992
11993 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
11994
11995 Revert:
11996 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
11997
11998 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
11999
12000 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
12001
12002 PR c++/69523
12003 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
12004 description.
12005
12006 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12007
12008 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
12009 for FMA_EXPR.
12010
12011 2017-02-18 Jakub Jelinek <jakub@redhat.com>
12012
12013 * final.c (last_columnnum, override_columnnum): New variables.
12014 (final_start_function): Set last_columnnum, pass it to begin_prologue
12015 hook and pass 0 to dwarf2out_begin_prologue.
12016 (final_scan_insn): Update override_columnnum. Pass last_columnnum
12017 to source_line debug hook.
12018 (notice_source_line): Compute last_columnnum and for debug_column_info
12019 return true on column changes.
12020 * debug.h (struct gcc_debug_hooks): Add column argument to
12021 source_line and begin_prologue hooks.
12022 (debug_nothing_int_charstar_int_bool): Remove prototype.
12023 (debug_nothing_int_int_charstar,
12024 debug_nothing_int_int_charstar_int_bool): New prototypes.
12025 (dwarf2out_begin_prologue): Add column argument.
12026 * debug.c (do_nothing_debug_hooks): Adjust source_line and
12027 begin_prologue hooks.
12028 (debug_nothing_int_charstar_int_bool): Remove.
12029 (debug_nothing_int_int_charstar,
12030 debug_nothing_int_int_charstar_int_bool): New functions.
12031 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
12032 through to dwarf2out_source_line.
12033 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
12034 (dwarf2out_source_line): Add column argument, emit it if requested.
12035 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
12036 arguments.
12037 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
12038 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
12039 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
12040 through to dwarf2out_begin_prologue.
12041 (vmsdbgout_source_line): Add column argument, pass it through to
12042 dwarf2out_source_line.
12043 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
12044 dbxout_source_line caller.
12045 (dbxout_source_line): Add column argument.
12046
12047 * common.opt (gno-column-info, gcolumn-info): New options.
12048 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
12049 (check_die): Also test for multiple DW_AT_decl_column attributes.
12050 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
12051 DW_AT_decl_column if requested.
12052 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
12053 if requested.
12054 (gen_variable_die): Likewise.
12055 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
12056 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
12057
12058 PR target/79569
12059 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
12060 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
12061 (ix86_handle_option): Handle OPT_m3dnowa.
12062 * doc/invoke.texi (-m3dnowa): Document.
12063 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
12064 -m3dnowa instead of -m3dnow -march=athlon.
12065
12066 PR target/79559
12067 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
12068 instead of gcc_assert for K, r and R code checks. Formatting fixes.
12069
12070 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12071
12072 PR target/79261
12073 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
12074 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
12075 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
12076 generator for vsx_xxpermdi_<mode>_be.
12077 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
12078 force big-endian semantics.
12079 (vsx_xxpermdi_<mode>_be): New define_expand with same
12080 implementation as previous version of vsx_xxpermdi_<mode>.
12081
12082 2017-02-17 Jakub Jelinek <jakub@redhat.com>
12083
12084 PR tree-optimization/79327
12085 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
12086 variable, its initialization and use.
12087
12088 2017-02-17 Julia Koval <julia.koval@intel.com>
12089
12090 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
12091 (OPTION_MASK_ISA_PKU_UNSET): New.
12092 (ix86_handle_option): Handle -mrdpid.
12093 * config/i386/cpuid.h (bit_RDPID): New.
12094 * config/i386/driver-i386.c (host_detect_local_cpu):
12095 Detect RDPID feature.
12096 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
12097 * config/i386/i386-c.c (ix86_target_macros_internal):
12098 Handle RDPID flag.
12099 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
12100 (ix86_valid_target_attribute_inner_p): Add "rdpid".
12101 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
12102 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
12103 * config/i386/i386.md (define_insn "rdpid"): New.
12104 * config/i386/i386.opt Add -mrdpid.
12105 * config/i386/immintrin.h (_rdpid_u32): New.
12106
12107 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
12108
12109 PR rtl-optimization/79541
12110 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
12111 instead of transforming it into USE.
12112
12113 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
12114
12115 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
12116 If HONOR_SNANS (SFmode) force the input to a register.
12117 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
12118 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
12119 an frsp or similar insn.
12120
12121 2017-02-17 Martin Liska <mliska@suse.cz>
12122
12123 PR rtl-optimization/79577
12124 * params.def (selsched-max-sched-times): Increase minimum to 1.
12125
12126 2017-02-17 Martin Liska <mliska@suse.cz>
12127
12128 PR rtl-optimization/79574
12129 * gcse.c (want_to_gcse_p): Prevent integer overflow.
12130
12131 2017-02-17 Martin Liska <mliska@suse.cz>
12132
12133 PR tree-optimization/79529
12134 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
12135 ssa_defined_default_def_p to handle cases which are implicitly
12136 defined.
12137 * tree-ssa.c (ssa_defined_default_def_p): New function.
12138 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
12139 which are implicitly defined.
12140 * tree-ssa.h (ssa_defined_default_def_p): Declare.
12141
12142 2017-02-17 Richard Biener <rguenther@suse.de>
12143
12144 PR middle-end/79576
12145 * params.def (max-ssa-name-query-depth): Limit to 10.
12146
12147 2017-02-17 Richard Biener <rguenther@suse.de>
12148
12149 PR tree-optimization/79552
12150 * tree-ssa-structalias.c (visit_loadstore): Properly verify
12151 default defs.
12152
12153 2017-02-17 Richard Biener <rguenther@suse.de>
12154
12155 PR bootstrap/79567
12156 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
12157
12158 2017-02-17 Marek Polacek <polacek@redhat.com>
12159
12160 PR middle-end/79536
12161 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
12162 (fold_negate_expr): New wrapper.
12163
12164 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
12165
12166 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
12167 Correct terminology and de-emphasize pre-standard behavior.
12168
12169 2017-02-16 Alan Modra <amodra@gmail.com>
12170
12171 PR rtl-optimization/79286
12172 * ira.c (def_dominates_uses): New function.
12173 (update_equiv_regs): Don't create an equivalence for insns that
12174 may trap where the register def does not dominate the use.
12175
12176 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
12177
12178 PR rtl-optimization/78127
12179 * lra.c (lra): Call lra_eliminate before finish the loop after
12180 lra_constraint.
12181
12182 2017-02-16 Richard Biener <rguenther@suse.de>
12183
12184 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
12185 isl/isl_val.h.
12186 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
12187 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
12188 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
12189 (isl_val_int_from_wi): New function.
12190 (extract_affine_gmp): Rename to ...
12191 (extract_affine_wi): ... this, take a widest_int.
12192 (extract_affine_int): Just wrap extract_affine_wi.
12193 (add_param_constraints): Use isl_val_int_from_wi.
12194 (add_loop_constraints): Likewise, and extract_affine_wi.
12195
12196 2017-02-15 Jeff Law <law@redhat.com>
12197
12198 PR middle-end/79521
12199 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
12200 ira_init_register_move_cost_if_necessary.
12201
12202 2017-02-15 Martin Sebor <msebor@redhat.com>
12203
12204 PR middle-end/32003
12205 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
12206 removed in a prior commit.
12207
12208 2017-02-15 Bin Cheng <bin.cheng@arm.com>
12209
12210 PR tree-optimization/79347
12211 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
12212 counters during peeling.
12213
12214 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
12215
12216 * Makefile.in (site.exp): Remove "set ISLVER".
12217
12218 2017-02-15 Jakub Jelinek <jakub@redhat.com>
12219
12220 PR target/79487
12221 * real.c (real_from_integer): Call real_convert even for decimal.
12222
12223 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
12224
12225 PR target/79421
12226 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
12227
12228 2017-02-14 Andrew Pinski <apinski@cavium.com>
12229
12230 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
12231 cores and change the partno/implementer to be correct.
12232 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
12233 the 'B" as the implementer.
12234 * config/aarch64/aarch64-tune.md: Regenerate.
12235
12236 2017-02-14 Carl Love <cel@us.ibm.com>
12237
12238 * config/rs6000/rs6000.c: Add case statement entry to make the
12239 xvcvuxdsp built-in argument unsigned.
12240 * config/rs6000/vsx.md: Fix the source and return operand types so they
12241 match the instruction definitions from the ISA document. Fix typo
12242 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
12243 statement.
12244
12245 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
12246
12247 PR target/79282
12248 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
12249 member early_clobber_alts.
12250 * lra-lives.c (reg_early_clobber_p): New.
12251 (process_bb_lives): Use it.
12252 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
12253 (debug_operand_data): Initialize early_clobber_alts.
12254 (setup_operand_alternative): Set up early_clobber_alts.
12255 (collect_non_operand_hard_regs): Ditto. Pass early clobber
12256 alternatives to new_insn_reg.
12257 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
12258 it.
12259 (lra_update_insn_regno_info): Pass the new arg.
12260
12261 2017-02-14 Jakub Jelinek <jakub@redhat.com>
12262
12263 PR middle-end/79505
12264 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
12265 (new_oacc_loop_raw): Don't clear already cleared fields.
12266
12267 PR target/79481
12268 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
12269 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
12270 _mm512_prefetch_i64gather_ps): New inline functions and macros.
12271
12272 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
12273
12274 PR target/79495
12275 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
12276
12277 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
12278
12279 PR target/79498
12280 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
12281 the extra instruction to the right place to store 128-bit constant
12282 when needed.
12283
12284 2017-02-14 Martin Sebor <msebor@redhat.com>
12285
12286 PR middle-end/79448
12287 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
12288 warning for strings of unknown length.
12289
12290 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
12291
12292 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
12293
12294 2017-02-14 Jeff Law <law@redhat.com>
12295
12296 PR target/79404
12297 * ira-costs.c (scan_one_insn): Initialize register move costs
12298 for pseudos seen in USE/CLOBBER insns.
12299
12300 PR tree-optimization/79095
12301 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
12302 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
12303 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
12304 if the operands are known to be not equal, then the resulting range
12305 is ~[0,0].
12306 (intersect_ranges): If the new range is ~[0,0] and the old range is
12307 wide, then prefer ~[0,0].
12308 * tree-vrp.c (overflow_comparison_p_1): New function.
12309 (overflow_comparison_p): New function.
12310 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
12311 if NAME is used in an overflow test.
12312 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
12313 overflow check that can be expressed as an equality test, then adjust
12314 ops to be that equality test.
12315
12316 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12317
12318 * config/s390/s390-builtin-types.def: Remove flags argument.
12319 * config/s390/s390.c (s390_init_builtins): Likewise.
12320
12321 2017-02-14 Martin Liska <mliska@suse.cz>
12322
12323 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
12324 vector. Fix trailing white spaces.
12325
12326 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
12327
12328 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
12329 HFmode.
12330
12331 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12332
12333 PR rtl-optimization/68664
12334 * config/arm/arm.c (arm_sched_can_speculate_insn):
12335 New function. Declare prototype.
12336 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
12337
12338 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12339
12340 PR rtl-optimization/68664
12341 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
12342 New function.
12343 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
12344
12345 2017-02-14 Amit Pawar <amit.pawar@amd.com>
12346
12347 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
12348 max skip bytes for function, loop and jump.
12349
12350 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12351
12352 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
12353 ABS_EXPR for gimple dump.
12354
12355 2017-02-14 Jakub Jelinek <jakub@redhat.com>
12356
12357 PR target/79462
12358 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
12359
12360 PR tree-optimization/79408
12361 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
12362 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
12363 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
12364 also if rhs1 is INTEGER_CST.
12365
12366 2017-02-14 Richard Biener <rguenther@suse.de>
12367
12368 PR middle-end/79432
12369 * tree-into-ssa.c (insert_phi_nodes): When the function can
12370 have abnormal edges rewrite SSA names with broken use-def
12371 dominance out of SSA and register them for PHI insertion.
12372
12373 2017-02-13 Martin Sebor <msebor@redhat.com>
12374
12375 PR middle-end/79496
12376 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
12377 clearing info.nowrite flag when snprintf size argument is a range.
12378
12379 2017-02-13 Jakub Jelinek <jakub@redhat.com>
12380
12381 * cprop.c (cprop_jump): Add missing space in string literal.
12382 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
12383 (get_constraint_for_component_ref): Likewise.
12384 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
12385 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
12386 * lra-constraints.c (process_alt_operands): Likewise.
12387 * ipa-inline.c (inline_small_functions): Likewise.
12388 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
12389 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
12390 * trans-mem.c (diagnose_tm_1_op): Likewise.
12391 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
12392 (grid_parallel_clauses_gridifiable): Likewise.
12393
12394 * config/nvptx/mkoffload.c (process): Add space in between
12395 , and %d.
12396
12397 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
12398 "MOD4_SSE_REGS" and "ALL_REGS".
12399
12400 * spellcheck.c (test_data): Add , in between "foo" and "food".
12401
12402 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
12403
12404 PR target/79449
12405 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
12406 boundary crossing check and subsequent code generation agree.
12407
12408 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12409
12410 * config/aarch64/aarch64.c (has_memory_op): Delete.
12411 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
12412 has_memory_op.
12413
12414 2017-02-13 Jakub Jelinek <jakub@redhat.com>
12415
12416 PR rtl-optimization/79388
12417 PR rtl-optimization/79450
12418 * combine.c (distribute_notes): When removing TEM_INSN for which
12419 corresponding dest has last value recorded, invalidate that last
12420 value.
12421
12422 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12423
12424 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
12425 of explicit '@'. Add missing assembly comment marker on branch costs
12426 printout.
12427
12428 2017-02-13 Nathan Sidwell <nathan@acm.org>
12429
12430 * gengtype-lex.l (<in_struct>): Add '/'.
12431
12432 2017-02-13 Martin Liska <mliska@suse.cz>
12433
12434 PR c/79471
12435 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
12436
12437 2017-02-13 Richard Biener <rguenther@suse.de>
12438
12439 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
12440 Remove.
12441 * configure: Re-generate.
12442 * config.in: Likewise.
12443 * graphite-dependences.c: Simplify as if
12444 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
12445 * graphite-isl-ast-to-gimple.c: Likewise.
12446 * graphite-optimize-isl.c: Likewise.
12447 * graphite-poly.c: Likewise.
12448 * graphite-sese-to-poly.c: Likewise.
12449 * graphite.h: Likewise.
12450 * toplev.c: Include isl/version.h and use isl_version () for
12451 printing the ISL version.
12452 * doc/install.texi: Update ISL requirement.
12453
12454 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
12455
12456 * doc/standards.texi (Standards): Update reference to
12457 Objective-C 2.0.
12458
12459 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
12460
12461 * doc/extend.texi (Named Address Spaces): sourceware.org now
12462 defaults to https.
12463 * doc/install.texi (Binaries): Ditto.
12464 (Specific): Ditto.
12465
12466 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
12467
12468 * doc/cpp.texi: Replace "stringify"/"stringification" with C
12469 standard terminology "stringize"/"stringizing" throughout.
12470 * doc/cppinternals.texi: Likewise.
12471
12472 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
12473
12474 * doc/extend.texi: Fix some spelling mistakes and typos.
12475 * doc/invoke.texi: Likewise.
12476
12477 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
12478
12479 PR ipa/79224
12480 * params.def (inline-min-speedup) Change from 10 to 8.
12481
12482 2017-02-11 Jakub Jelinek <jakub@redhat.com>
12483
12484 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
12485 4.5.
12486
12487 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
12488
12489 PR ipa/79224
12490 * ipa-inline-analysis.c (get_minimal_bb): New function.
12491 (record_modified): Use it.
12492 (remap_edge_change_prob): Handle also ancestor functions.
12493
12494 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
12495
12496 * doc/contrib.texi (Contributors): Remove broken link into
12497 the Mauve CVS repository.
12498
12499 2017-02-11 Jakub Jelinek <jakub@redhat.com>
12500
12501 PR middle-end/79454
12502 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
12503 result computation whenever lhs doesn't have vector mode, not
12504 just when it has BLKmode.
12505
12506 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
12507
12508 * doc/makefile.texi (profiledbootstrap): Refer to the
12509 installation instructions only in textual form.
12510
12511 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
12512
12513 PR target/79295
12514 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
12515
12516 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
12517
12518 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
12519 (Specific): Update mingw-w64 reference.
12520 (Binaries): Ditto.
12521 (Specific): Remove broken link to Renesas RX processor.
12522
12523 2017-02-10 Richard Biener <rguenther@suse.de>
12524
12525 * toplev.c (process_options): Do not mention obsolete graphite
12526 options when printing sorry message about missing graphite support.
12527 Mention -floop-nest-optimize.
12528
12529 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
12530
12531 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
12532 (vtst_p16): Likewise.
12533 (vtstq_p8): Likewise.
12534 (vtstq_p16): Likewise.
12535 (vtst_p64): New.
12536 (vtstq_p64): Likewise.
12537 * config/arm/arm_neon.h (vgetq_lane_p64): New.
12538 (vset_lane_p64): New.
12539 (vsetq_lane_p64): New.
12540
12541 2017-02-10 Jakub Jelinek <jakub@redhat.com>
12542
12543 PR tree-optimization/79411
12544 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
12545 stmt operands are SSA_NAMEs used in abnormal phis.
12546 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
12547 phis.
12548
12549 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
12550
12551 PR ipa/70795
12552 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
12553 flag if needed.
12554
12555 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
12556
12557 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
12558
12559 2017-02-09 Jakub Jelinek <jakub@redhat.com>
12560
12561 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
12562 to avoid warning.
12563
12564 PR c/79413
12565 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
12566 not arbitrary TREE_CONSTANT.
12567
12568 PR c/79431
12569 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
12570 "omp declare target link" attribute unless is_global_var.
12571 * omp-offload.c (find_link_var_op): Likewise.
12572
12573 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
12574 Chung-Lin Tang <cltang@codesourcery.com>
12575
12576 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
12577 OMP_CLAUSE_TILE.
12578 (gimplify_adjust_omp_clauses): Don't delete TILE.
12579 (gimplify_omp_for): Deal with TILE.
12580 * internal-fn.c (expand_GOACC_TILE): New function.
12581 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
12582 (GOACC_TILE): New.
12583 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
12584 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
12585 element fields.
12586 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
12587 avoid DIV for outermost collapse var.
12588 (expand_oacc_for): Insert tile element loop as needed. Adjust.
12589 Remove out of date comments, fix whitespace.
12590 * omp-general.c (omp_extract_for_data): Deal with tiling.
12591 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
12592 adjust OLF_DIM_BASE value.
12593 (struct omp_for_data): Add tiling field.
12594 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
12595 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
12596 for auto loops. Remove default auto determining, moved to
12597 oacc_loop_fixed_partitions.
12598 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
12599 stmts, add e_mask field.
12600 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
12601 (oacc_thread_numbers): Use oacc_dim_call.
12602 (oacc_xform_tile): New.
12603 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
12604 (finish_oacc_loop): Adjust for ifns vector.
12605 (oacc_loop_discover_walk): Append loop abstraction sites to list,
12606 add case for GOACC_TILE fns.
12607 (oacc_loop_xform_loop): Delete.
12608 (oacc_loop_process): Iterate over call list directly, and add
12609 handling for GOACC_TILE fns.
12610 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
12611 dump partitioning.
12612 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
12613 vector partitioning to outer loops. Assign 2 partitions to loops
12614 when available. Add TILE handling.
12615 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
12616 (execite_oacc_device_lower): Process GOACC_TILE fns,
12617 ignore unknown specs.
12618 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
12619 * tree.c (omp_clause_num_ops): Adjust TILE ops.
12620 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
12621
12622 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
12623
12624 * configure.ac (ACX_BUGURL): Update.
12625 * configure: Regenerate.
12626
12627 2017-02-09 Richard Biener <rguenther@suse.de>
12628
12629 PR tree-optimization/69823
12630 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
12631 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
12632
12633 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
12634
12635 * config/arc/arc-c.def: Add __NPS400__ definition.
12636 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
12637 (TARGET_NPS400): Define.
12638
12639 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
12640
12641 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
12642 file.
12643 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
12644 pointer, arch_info.
12645 (arc_cpu_types): Fill the arch_info field with a pointer into the
12646 arc_arch_types table.
12647 (arc_selected_cpu): Declare.
12648 * config/arc/arc.c (arc_selected_cpu): Make global.
12649 (arc_selected_arch): Delete.
12650 (arc_base_cpu): Delete.
12651 (arc_override_options): Remove references to deleted variables,
12652 update access to arch information.
12653 (ARC_OPT): Update access to arch information.
12654 (ARC_OPTX): Likewise.
12655 * config/arc/arc.h (arc_base_cpu): Remove declaration.
12656 (TARGET_ARC600): Update access to arch information.
12657 (TARGET_ARC601): Likewise.
12658 (TARGET_ARC700): Likewise.
12659 (TARGET_EM): Likewise.
12660 (TARGET_HS): Likewise.
12661 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
12662 information.
12663
12664 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
12665
12666 PR target/78604
12667 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
12668 condition/operands for integer GE/LE/GEU/LEU operations.
12669
12670 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
12671
12672 PR translation/79397
12673 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
12674 of AltiVec.
12675
12676 2017-02-08 Martin Jambor <mjambor@suse.cz>
12677
12678 PR ipa/79375
12679 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
12680 whether allocation happened.
12681 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
12682 nothing was allocated.
12683
12684 2017-02-08 Jakub Jelinek <jakub@redhat.com>
12685
12686 PR tree-optimization/79408
12687 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
12688 constant, but SSA_NAME with a known integer range, use the minimum
12689 of that range instead of op1 to determine if modulo can be replaced
12690 with its first operand.
12691
12692 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12693
12694 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
12695
12696 2017-02-08 Richard Biener <rguenther@suse.de>
12697
12698 PR tree-optimization/71824
12699 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
12700 Check all loops contained in the merged region.
12701
12702 2017-02-07 Andrew Pinski <apinski@cavium.com>
12703
12704 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
12705
12706 2017-02-07 Andrew Pinski <apinski@cavium.com>
12707
12708 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
12709 (thunderxt88): Likewise.
12710 (thunderxt81): Disable LSE and change v8.1 to v8.
12711 (thunderxt83): Likewise.
12712
12713 2017-02-07 Jakub Jelinek <jakub@redhat.com>
12714 Richard Biener <rguenther@suse.de>
12715
12716 PR middle-end/79399
12717 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
12718 type from int to size_t.
12719 * ira-costs.c (struct_costs_size): Change type from int to size_t.
12720
12721 2017-02-07 Jakub Jelinek <jakub@redhat.com>
12722
12723 PR rtl-optimization/79386
12724 * cprop.c (bypass_conditional_jumps): Initialize
12725 bypass_last_basic_block already before splitting bbs after
12726 unconditional traps...
12727 (bypass_conditional_jumps): ... rather than here.
12728
12729 PR target/79299
12730 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
12731 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
12732 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
12733 fix -masm=intel patterns.
12734
12735 2017-02-07 Richard Biener <rguenther@suse.de>
12736
12737 PR tree-optimization/79256
12738 PR middle-end/79278
12739 * builtins.c (get_object_alignment_2): Use min_align_of_type
12740 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
12741 and ADJUST_FIELD_ALIGN.
12742
12743 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
12744 type parameter.
12745 * doc/tm.texi: Regenerate.
12746 * stor-layout.c (layout_decl): Adjust.
12747 (update_alignment_for_field): Likewise.
12748 (place_field): Likewise.
12749 (min_align_of_type): Likewise.
12750 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
12751 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
12752 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
12753 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
12754 * config/frv/frv.c (frv_adjust_field_align): Likewise.
12755 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
12756 * config/i386/i386.c (x86_field_alignment): Likewise.
12757 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
12758 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
12759 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12760 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12761 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
12762 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
12763 Likewise.
12764
12765 Revert
12766 2017-01-30 Richard Biener <rguenther@suse.de>
12767
12768 PR tree-optimization/79256
12769 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
12770 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
12771 alignment on TYPE.
12772
12773 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
12774
12775 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
12776 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
12777 builtins to SImode and emit a zero-extend, if necessary.
12778
12779 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
12780
12781 * docs/invoke.texi (RISC-V Options): Alphabetize.
12782
12783 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
12784
12785 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
12786 options.
12787
12788 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
12789
12790 * config/riscv/riscv.c: New file.
12791 * gcc/common/config/riscv/riscv-common.c: Likewise.
12792 * config.gcc: Likewise.
12793 * config/riscv/constraints.md: Likewise.
12794 * config/riscv/elf.h: Likewise.
12795 * config/riscv/generic.md: Likewise.
12796 * config/riscv/linux.h: Likewise.
12797 * config/riscv/multilib-generator: Likewise.
12798 * config/riscv/peephole.md: Likewise.
12799 * config/riscv/pic.md: Likewise.
12800 * config/riscv/predicates.md: Likewise.
12801 * config/riscv/riscv-builtins.c: Likewise.
12802 * config/riscv/riscv-c.c: Likewise.
12803 * config/riscv/riscv-ftypes.def: Likewise.
12804 * config/riscv/riscv-modes.def: Likewise.
12805 * config/riscv/riscv-opts.h: Likewise.
12806 * config/riscv/riscv-protos.h: Likewise.
12807 * config/riscv/riscv.h: Likewise.
12808 * config/riscv/riscv.md: Likewise.
12809 * config/riscv/riscv.opt: Likewise.
12810 * config/riscv/sync.md: Likewise.
12811 * config/riscv/t-elf-multilib: Likewise.
12812 * config/riscv/t-linux: Likewise.
12813 * config/riscv/t-linux-multilib: Likewise.
12814 * config/riscv/t-riscv: Likewise.
12815 * configure.ac: Likewise.
12816 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
12817 Waterman as RISC-V maintainers.
12818 * doc/install.texi: Add RISC-V entries.
12819 * doc/invoke.texi: Add RISC-V options section.
12820 * doc/md.texi: Add RISC-V constraints section.
12821 * configure: Regenerated.
12822
12823 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12824
12825 PR target/66144
12826 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
12827 false values to be constant vectors with all 0 or all 1 bits set.
12828 (vcondu<mode><mode>): Likewise.
12829 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
12830 predicate.
12831 (fpmask_comparison_operator): Update comment.
12832 (vecint_comparison_operator): New predicate.
12833 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
12834 vector conditionals when the true and false values are constant
12835 vectors with all 0 bits or all 1 bits set.
12836
12837 2017-02-06 Martin Sebor <msebor@redhat.com>
12838
12839 PR tree-optimization/79376
12840 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
12841
12842 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
12843
12844 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
12845 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
12846 to simplify split condition.
12847
12848 2017-02-06 Jakub Jelinek <jakub@redhat.com>
12849
12850 * omp-expand.c (oxpand_omp_atomic_fetch_op,
12851 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
12852 false.
12853
12854 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
12855
12856 PR rtl-optimization/68664
12857 * target.def (can_speculate_insn): New hook.
12858 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
12859 * doc/tm.texi: Regenerate.
12860 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
12861 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
12862 (rs6000_sched_can_speculate_insn): New function.
12863
12864 2017-02-06 Jakub Jelinek <jakub@redhat.com>
12865
12866 PR tree-optimization/79284
12867 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
12868 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
12869 vectorizable_mask_load_store, vectorizable_operation,
12870 vect_is_simple_cond, get_same_sized_vectype): Use it instead
12871 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
12872 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
12873 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
12874 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
12875 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
12876 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
12877 is_gimple_assign (stmt). Replace another such test with
12878 is_gimple_assign (stmt).
12879
12880 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
12881
12882 PR target/78883
12883 * config/avr/avr.c (rtl-iter.h): Include it.
12884 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
12885 (avr_legitimate_combined_insn): ...and implementation.
12886
12887 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
12888
12889 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
12890 * config/s390/s390.c (s390_const_operand_ok)
12891 (s390_canonicalize_comparison, s390_extract_part)
12892 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
12893 (s390_contiguous_bitmask_p, s390_rtx_costs)
12894 (legitimize_pic_address): Likewise.
12895 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
12896 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
12897 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
12898 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
12899 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
12900
12901 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
12902
12903 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
12904 REGNO($0) == REGNO($1).
12905
12906 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12907
12908 * config/s390/linux.h(SIZE_TYPE): Add comment.
12909
12910 2017-02-06 Julian Brown <julian@codesourcery.com>
12911 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
12912 Virendra Pathak <virendra.pathak@broadcom.com>
12913
12914 * config/aarch64/aarch64-cores.def: Change the scheduler
12915 to Thunderx2t99.
12916 * config/aarch64/aarch64.md: Include thunderx2t99.md.
12917 * config/aarch64/thunderx2t99.md: New file.
12918
12919 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
12920
12921 * doc/standards.texi (Go Language): Update link to language
12922 standard.
12923
12924 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
12925
12926 * tree-eh.c (lower_resx): Sanitize profile.
12927 (cleanup_empty_eh_move_lp): Likewise.
12928
12929 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
12930
12931 PR tree-ssa/79347
12932 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
12933 ELSE_PROB.
12934 * cfgloopmanip.h (loop_version): Update prototype.
12935 * modulo-sched.c (sms_schedule): Update call of loop_version.
12936 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
12937 * tree-parloops.c (gen_parallel_loop): Likewise.
12938 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
12939 * tree-ssa-loop-split.c (split_loop): Likewise.
12940 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
12941 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
12942
12943 2017-02-05 Martin Liska <mliska@suse.cz>
12944
12945 PR bootstrap/78985
12946 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
12947 variable to NULL.
12948 (print_operand_address): Initialize a struct to zero.
12949
12950 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
12951
12952 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
12953 garbage collector only in textual form.
12954
12955 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
12956
12957 * doc/extend.texi (x86 specific memory model extensions for
12958 transactional memory): Simplify a phrase.
12959
12960 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
12961
12962 PR target/79353
12963 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
12964 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
12965 (atomic_storedi_1): Likewise.
12966
12967 2017-02-04 Jakub Jelinek <jakub@redhat.com>
12968
12969 PR tree-optimization/79338
12970 * tree-parloops.c (gather_scalar_reductions): Don't call
12971 vect_analyze_loop_form for loop->inner before destroying loop's
12972 loop_vinfo.
12973
12974 2017-02-03 Martin Sebor <msebor@redhat.com>
12975
12976 PR tree-optimization/79327
12977 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
12978 when precision has resulted in leading zeros.
12979 (format_integer): Adjust the likely counter to assume an unknown
12980 argument that may be zero is non-zero.
12981
12982 2017-02-03 Jason Merrill <jason@redhat.com>
12983
12984 PR c++/78689
12985 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
12986 avoid copying non-taken branch.
12987
12988 2017-02-03 Jakub Jelinek <jakub@redhat.com>
12989
12990 PR tree-optimization/79340
12991 * tree-vect-loop.c (vectorizable_reduction): Release
12992 vec_defs elements after safe_splicing them into other vectors.
12993 Formatting fixes.
12994
12995 PR tree-optimization/79327
12996 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
12997 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
12998 dirtype.
12999 (format_integer): Use wide_int_to_tree instead of build_int_cst
13000 + to_?hwi. If argmin is NULL, just set argmin and argmax to
13001 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
13002 of shortest and longest sequence.
13003
13004 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
13005
13006 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
13007 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
13008
13009 2017-02-03 Walter Lee <walt@tilera.com>
13010
13011 PR target/78862
13012 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
13013 after initial stackframe link reg save.
13014 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
13015
13016 2017-02-03 Jakub Jelinek <jakub@redhat.com>
13017
13018 PR target/79354
13019 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
13020 wu for stxssp alternative.
13021
13022 2017-02-03 Martin Sebor <msebor@redhat.com>
13023
13024 PR tree-optimization/79352
13025 * gimple-fold.c (get_range_strlen): Add argument.
13026 (get_range_strlen): Change return type to bool.
13027 (get_maxval_strlen): Pass in a dummy argument.
13028 * gimple-fold.h (get_range_strlen): Change return type to bool.
13029 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
13030 * tree.h (array_at_struct_end_p): Add argument.
13031 * tree.c (array_at_struct_end_p): Handle it.
13032
13033 2017-02-03 Martin Liska <mliska@suse.cz>
13034
13035 PR lto/66295
13036 * multiple_target.c (create_dispatcher_calls): Redirect edge
13037 from a caller of a dispatcher.
13038 (expand_target_clones): Make the clones local.
13039 (ipa_target_clone): Do both target clones and resolvers.
13040 (ipa_dispatcher_calls): Remove the pass.
13041 (pass_dispatcher_calls::gate): Likewise.
13042 (make_pass_dispatcher_calls): Likewise.
13043 * passes.def (pass_target_clone): Put as very first IPA early
13044 pass.
13045
13046 2017-02-03 Martin Liska <mliska@suse.cz>
13047
13048 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
13049 in case of a function with ifunc attribute.
13050
13051 2017-02-03 Martin Liska <mliska@suse.cz>
13052
13053 * cgraph.c (cgraph_node::dump): Dump function version info.
13054 * symtab.c (symtab_node::dump_base): Add missing new line.
13055
13056 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
13057
13058 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
13059 (ifcombine_ifandif): Use it.
13060
13061 2017-02-03 Martin Liska <mliska@suse.cz>
13062
13063 * doc/invoke.texi: Document default value for
13064 use-after-scope-direct-emission-threshold.
13065
13066 2017-02-03 Martin Liska <mliska@suse.cz>
13067
13068 PR tree-optimization/79339
13069 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
13070 (format_floating): Likewise.
13071
13072 2017-02-03 Martin Liska <mliska@suse.cz>
13073
13074 PR ipa/79337
13075 * ipa-prop.c (ipa_node_params_t::insert): Remove current
13076 implementation.
13077 (ipa_node_params_t::remove): Likewise.
13078 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
13079 initialization from removed ipa_node_params_t::insert.
13080 (ipa_node_params::~ipa_node_params): Move from removed
13081 ipa_node_params_t::release.
13082 * symbol-summary.h (symbol_summary::m_released): New member.
13083 Do not release a summary twice. Do not allow to call finalizer
13084 for types of a summary that live in GGC memory.
13085
13086 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
13087
13088 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
13089 cmp_branch fusion.
13090
13091 2017-02-02 Martin Sebor <msebor@redhat.com>
13092
13093 PR middle-end/79275
13094 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
13095 (format_string): Tighten up the range of output for non-constant
13096 strings and correct the expected range for wide non-constant strings.
13097
13098 2017-02-02 Martin Sebor <msebor@redhat.com>
13099
13100 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
13101
13102 PR middle-end/32003
13103 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
13104 index.
13105 (-fdump-tree-@var): Add to index and document how to come up
13106 with pass-specific option and dump file names.
13107 (-fdump-passes): Clarify where to look for output.
13108
13109 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
13110
13111 PR middle-end/77445
13112 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
13113 statistics of the analyzed path; allow threading for speed when
13114 any of BBs along the path are optimized for speed.
13115
13116 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
13117
13118 PR middle-end/78468
13119 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
13120 settings of the virtual registers.
13121
13122 Revert again
13123 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13124
13125 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13126 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13127 needed.
13128
13129 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13130
13131 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
13132 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
13133
13134 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13135
13136 * config/s390/s390.md: Add missing comments with the expanded
13137 mnemonics.
13138 * config/s390/vector.md: Likewise.
13139 * config/s390/vx-builtins.md: Likewise.
13140
13141 2017-02-02 Jakub Jelinek <jakub@redhat.com>
13142
13143 PR target/79197
13144 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
13145 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
13146 conditions on a single line.
13147
13148 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13149
13150 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
13151 __S390_VX__ to __VX__.
13152
13153 2017-02-01 Andrew Pinski <apinski@cavium.com>
13154
13155 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
13156 stmt_info to record_stmt_cost.
13157 (vect_get_known_peeling_cost): Pass stmt_info if known to
13158 record_stmt_cost.
13159 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
13160 cpu_vector_cost field into
13161 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
13162 field into vec_int_stmt_cost and vec_fp_stmt_cost.
13163 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
13164 splitting of scalar_stmt_cost and vec_stmt_cost.
13165 (thunderx_vector_cost): Likewise.
13166 (cortexa57_vector_cost): LIkewise.
13167 (exynosm1_vector_cost): Likewise.
13168 (xgene1_vector_cost): Likewise.
13169 (thunderx2t99_vector_cost): Improve after the splitting of the two
13170 fields.
13171 (aarch64_builtin_vectorization_cost): Update for the splitting of
13172 scalar_stmt_cost and vec_stmt_cost.
13173
13174 2017-02-01 Torvald Riegel <triegel@redhat.com>
13175 Richard Henderson <rth@redhat.com>
13176
13177 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
13178 conditional on existance of a fast atomic load.
13179 * optabs-query.c (can_atomic_load_p): New function.
13180 * optabs-query.h (can_atomic_load_p): Declare it.
13181 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
13182 no fast atomic load is available for the particular size of access.
13183 (expand_atomic_compare_and_swap): Likewise.
13184 (expand_atomic_load): Likewise.
13185 (expand_atomic_store): Likewise.
13186 (expand_atomic_fetch_op): Likewise.
13187 * testsuite/lib/target-supports.exp
13188 (check_effective_target_sync_int_128): Remove x86 because it provides
13189 no fast atomic load.
13190 (check_effective_target_sync_int_128_runtime): Likewise.
13191
13192 2017-02-01 Richard Biener <rguenther@suse.de>
13193
13194 * graphite.c: Include tree-vectorizer.h for find_loop_location.
13195 (graphite_transform_loops): Provide opt-info for optimized nests.
13196 * tree-parloop.c (parallelize_loops): Provide opt-info for
13197 parallelized loops.
13198
13199 2017-02-01 Richard Biener <rguenther@suse.de>
13200
13201 PR middle-end/79315
13202 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
13203 was not set before.
13204
13205 2017-02-01 Richard Biener <rguenther@suse.de>
13206
13207 PR tree-optimization/71824
13208 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
13209 Verify the loops are valid in the merged SESE region.
13210 (scop_detection::can_represent_loop_1): Check analyzing the
13211 evolution of the number of iterations in the region succeeds.
13212
13213 2017-01-31 Ian Lance Taylor <iant@golang.org>
13214
13215 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
13216 REG_ARGS_SIZE note to 32-bit push insns and call insn.
13217
13218 2017-01-31 David Malcolm <dmalcolm@redhat.com>
13219
13220 PR preprocessor/79210
13221 * input.c (get_substring_ranges_for_loc): Replace line_width
13222 assertion with error-handling.
13223
13224 2017-01-31 Richard Biener <rguenther@suse.de>
13225
13226 PR tree-optimization/77318
13227 * graphite-sese-to-poly.c (extract_affine): Fix assert.
13228 (create_pw_aff_from_tree): Take loop parameter.
13229 (add_condition_to_pbb): Pass loop of the condition to
13230 create_pw_aff_from_tree.
13231
13232 2017-01-31 Jakub Jelinek <jakub@redhat.com>
13233
13234 * config/s390/s390.c (s390_asan_shadow_offset): New function.
13235 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
13236
13237 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
13238
13239 PR target/78597
13240 PR target/79038
13241 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
13242 no longer used.
13243 (convert_int_to_float128): Likewise.
13244 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
13245 (convert_int_to_float128): Likewise.
13246 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
13247 (UNSPEC_IEEE128_CONVERT): Likewise.
13248 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
13249 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
13250 Use local variables for IBM extended format.
13251 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
13252 (fix_trunc<mode>si2_fprs): Likewise.
13253 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
13254 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
13255 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
13256 to know that we can now have integers of all sizes in vector
13257 registers.
13258 (fix<uns>_<mode>di2_hw): Likewise.
13259 (float<uns>_<mode>si2_hw): Likewise.
13260 (fix_<mode>si2_hw): Likewise.
13261 (fixuns_<mode>si2_hw): Likewise.
13262 (float<uns>_<mode>di2_hw): Likewise.
13263 (float_<mode>di2_hw): Likewise.
13264 (float_<mode>si2_hw): Likewise.
13265 (floatuns_<mode>di2_hw): Likewise.
13266 (floatuns_<mode>si2_hw): Likewise.
13267 (xscvqp<su>wz_<mode>): Delete, no longer used.
13268 (xscvqp<su>dz_<mode>): Likewise.
13269 (xscv<su>dqp_<mode>): Likewise.
13270 (ieee128_mfvsrd_64bit): Likewise.
13271 (ieee128_mfvsrd_32bit): Likewise.
13272 (ieee128_mfvsrwz): Likewise.
13273 (ieee128_mtvsrw): Likewise.
13274 (ieee128_mtvsrd_64bit): Likewise.
13275 (ieee128_mtvsrd_32bit): Likewise.
13276
13277 2017-01-31 Martin Liska <mliska@suse.cz>
13278
13279 PR ipa/79285
13280 * ipa-prop.c (ipa_free_all_node_params): Call release method
13281 instead of ~sumbol_summary to not to trigger double times
13282 dtor of hash_map.
13283
13284 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
13285
13286 PR tree-optimization/71691
13287 * bitmap.h (class auto_bitmap): New.
13288 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
13289 is_maybe_undefined instead of ssa_undefined_value_p.
13290
13291 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13292
13293 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
13294 __S390_ARCH_LEVEL__ to __ARCH__.
13295
13296 2017-01-31 Jakub Jelinek <jakub@redhat.com>
13297
13298 PR tree-optimization/79267
13299 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
13300 if should_remove_lhs_p is true.
13301
13302 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
13303
13304 PR debug/63238
13305 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
13306 (add_alignment_attribute): New.
13307 (base_type_die): Add alignment attribute.
13308 (subrange_type_die): Likewise.
13309 (modified_type_die): Likewise.
13310 (gen_array_type_die): Likewise.
13311 (gen_descr_array_type_die: Likewise.
13312 (gen_enumeration_type_die): Likewise.
13313 (gen_subprogram_die): Likewise.
13314 (gen_variable_die): Likewise.
13315 (gen_field_die): Likewise.
13316 (gen_ptr_to_mbr_type_die): Likewise.
13317 (gen_struct_or_union_type_die): Likewise.
13318 (gen_subroutine_type_die): Likewise.
13319 (gen_typedef_die): Likewise.
13320 (base_type_cmp): Compare alignment attribute.
13321
13322 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
13323
13324 PR target/79170
13325 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
13326 (setb_unsigned) New pattern for setb with CCUNS.
13327 * config/rs6000/rs6000.c (expand_block_compare): Use a different
13328 subfc./subfe sequence to avoid overflow problems. Generate a
13329 shorter sequence with cmpld/setb for power9.
13330 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
13331 for generating subfc. instruction.
13332 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
13333 now uses this instruction.
13334
13335 2017-01-30 Ian Lance Taylor <iant@google.com>
13336
13337 PR debug/79289
13338 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
13339 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
13340
13341 2017-01-30 Martin Sebor <msebor@redhat.com>
13342
13343 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
13344 Move constant to the right of a relational operator.
13345 (get_mpfr_format_length, format_character, format_string): Ditto.
13346 (should_warn_p, maybe_warn): Same.
13347
13348 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
13349
13350 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
13351
13352 PR lto/79061
13353 * asan.c (get_translation_unit_decl): Remove function.
13354 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
13355
13356 2017-01-30 Martin Liska <mliska@suse.cz>
13357
13358 PR gcov-profile/79259
13359 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
13360 -fprofile-generate.
13361
13362 2017-01-30 Martin Liska <mliska@suse.cz>
13363
13364 PR bootstrap/78985
13365 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
13366 Initialize variables with NULL value.
13367
13368 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
13369
13370 PR target/79260
13371 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
13372 tm_p_file.
13373 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
13374
13375 2017-01-30 Richard Biener <rguenther@suse.de>
13376
13377 PR tree-optimization/79276
13378 * tree-vrp.c (process_assert_insertions): Properly adjust common
13379 when removing a duplicate.
13380
13381 * gcc.dg/torture/pr79276.c: New testcase.
13382
13383 2017-01-30 Richard Biener <rguenther@suse.de>
13384
13385 PR tree-optimization/79256
13386 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
13387 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
13388 alignment on TYPE.
13389 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
13390
13391 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
13392
13393 PR target/79240
13394 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
13395 ("*r<noxa>sbg_<mode>_sll_bitmask")
13396 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
13397 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
13398 Use contiguous_bitmask_nowrap_operand.
13399
13400 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13401
13402 PR target/79268
13403 * config/rs6000/altivec.h (vec_xl): Revise #define.
13404 (vec_xst): Likewise.
13405
13406 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
13407
13408 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
13409
13410 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
13411
13412 PR rtl-optimization/79194
13413 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
13414 traps before call to bypass_conditional_jumps.
13415
13416 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
13417
13418 PR tree-optimization/71374
13419 * lra-constraints.c (check_conflict_input_operands): New.
13420 (match_reload): Use it.
13421
13422 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
13423
13424 PR target/79131
13425 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
13426 account to calculate conflict_set.
13427
13428 2017-01-27 Bin Cheng <bin.cheng@arm.com>
13429
13430 PR rtl-optimization/78559
13431 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
13432 other_insn in combine.
13433
13434 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
13435
13436 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
13437 uint16_type_node for BT_UINT16.
13438
13439 2017-01-27 David Malcolm <dmalcolm@redhat.com>
13440
13441 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
13442 "RTL Tests" to menu.
13443 (GIMPLE Tests): New node.
13444 (RTL Tests): New node.
13445
13446 2017-01-27 Richard Biener <rguenther@suse.de>
13447
13448 PR tree-optimization/79245
13449 * tree-loop-distribution.c (distribute_loop): Apply cost
13450 modeling also to detected patterns.
13451
13452 2017-01-27 Richard Biener <rguenther@suse.de>
13453
13454 PR tree-optimization/71433
13455 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
13456 (compare_assert_loc): New function.
13457 (process_assert_insertions): Sort and optimize assert locations
13458 to remove duplicates and push down identical assertions on
13459 edges to their destination block.
13460
13461 2017-01-27 Richard Biener <rguenther@suse.de>
13462
13463 PR tree-optimization/79244
13464 * tree-vrp.c (remove_range_assertions): Forcefully propagate
13465 out SSA names even if abnormal.
13466
13467 2017-01-27 Jakub Jelinek <jakub@redhat.com>
13468
13469 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
13470 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
13471 instead of MPFR_RNDN.
13472
13473 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
13474
13475 PR target/79239
13476 * arm.c (arm_option_override): Don't call build_target_option_node
13477 until after doing all option overrides.
13478 (arm_valid_target_attribute_tree): Likewise.
13479
13480 2017-01-27 Martin Liska <mliska@suse.cz>
13481
13482 * doc/invoke.texi (-fprofile-arcs): Document profiling support
13483 for {cd}tors and C++ {cd}tors.
13484
13485 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
13486
13487 * config/s390/s390.md ("*setmem_long_and")
13488 ("*setmem_long_and_31z"): Use zero_extend instead of and.
13489
13490 2017-01-26 Martin Sebor <msebor@redhat.com>
13491
13492 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
13493 of precision.
13494
13495 2017-01-26 Martin Sebor <msebor@redhat.com>
13496
13497 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
13498 HAVE_DFmode before using XFmode or DFmode.
13499 (parse_directive): Avoid using the z length modifier to avoid
13500 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
13501
13502 PR middle-end/78703
13503 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
13504 to accept adjustment as an array.
13505 (get_int_range): New function.
13506 (struct directive): Make width and prec arrays.
13507 (directive::set_width, directive::set_precision): Call get_int_range.
13508 (format_integer, format_floating): Handle width and precision ranges.
13509 (format_string, parse_directive): Same.
13510
13511 2017-01-26 Jakub Jelinek <jakub@redhat.com>
13512
13513 PR debug/79129
13514 * dwarf2out.c (generate_skeleton_bottom_up): For children with
13515 comdat_type_p set, just clone them, but keep the children in the
13516 original DIE.
13517
13518 PR debug/78835
13519 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
13520 which have direct callers with -fvar-tracking-assignments enabled
13521 in the current TU.
13522 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
13523 inside of type units.
13524
13525 2017-01-26 Martin Sebor <msebor@redhat.com>
13526
13527 PR middle-end/78703
13528 * gimple-ssa-sprintf.c (struct result_range): Add likely and
13529 unlikely counters.
13530 (struct format_result): Replace number_chars, number_chars_min,
13531 and number_chars_max with a single member of struct result_range.
13532 Remove bounded.
13533 (format_result::operator+=): Adjust.
13534 (struct fmtresult): Remove bounded. Handle likely and unlikely
13535 counters.
13536 (fmtresult::adjust_for_width_or_precision): New function.
13537 (fmtresult:type_max_digits): New function.
13538 (bytes_remaining): Handle likely and unlikely counters.
13539 (min_bytes_remaining): Remove.
13540 (format_percent): Simplify.
13541 (format_integer, format_floating): Set likely and unlikely counters.
13542 (get_string_length, format_character, format_string): Same.
13543 (format_plain, should_warn_p): New function.
13544 (maybe_warn): Call should_warn_p. Update diagnostic messages
13545 and handle those for all directives, including plain strings.
13546 (format_directive): Handle likely and unlikely counters.
13547 Remove unnecessary quoting from diagnostics. Add an informational
13548 note.
13549 (add_bytes): Remove.
13550 (pass_sprintf_length::compute_format_length): Simplify.
13551 (try_substitute_return_value): Handle likely and unlikely counters.
13552
13553 2017-01-26 Carl Love <cel@us.ibm.com>
13554
13555 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
13556 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
13557
13558 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
13559
13560 PR target/79131
13561 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
13562 endianess for subregs into account.
13563 * lra-constraints.c (lra_constraints): Do risky transformations
13564 always on the first iteration.
13565 * lra-lives.c (check_pseudos_live_through_calls): Add arg
13566 last_call_used_reg_set.
13567 (process_bb_lives): Define and use last_call_used_reg_set.
13568 * lra.c (lra): Always continue after lra_constraints on the first
13569 iteration.
13570
13571 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
13572
13573 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
13574 constant.
13575 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
13576
13577 2017-01-26 Jakub Jelinek <jakub@redhat.com>
13578
13579 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
13580 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
13581 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
13582 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
13583 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
13584 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
13585 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
13586 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
13587 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
13588
13589 2017-01-26 Marek Polacek <polacek@redhat.com>
13590
13591 PR c/79199
13592 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
13593 for the third operand.
13594
13595 2017-01-26 Jakub Jelinek <jakub@redhat.com>
13596
13597 PR middle-end/79236
13598 * omp-low.c (struct omp_context): Add simt_stmt field.
13599 (scan_omp_for): Return omp_context *.
13600 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
13601 context to the _simt_ SIMD stmt.
13602 (lower_omp_for): For combined SIMD with sibling _simt_
13603 SIMD, make sure to use the same decls in _looptemp_
13604 clauses as in the sibling.
13605
13606 2017-01-26 David Sherwood <david.sherwood@arm.com>
13607
13608 PR middle-end/79212
13609 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
13610 all contexts.
13611
13612 2017-01-26 Jakub Jelinek <jakub@redhat.com>
13613
13614 PR target/70465
13615 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
13616 emit fld b; fld a; if possible.
13617
13618 * brig-builtins.def: Update copyright years.
13619 * config/arm/arm_acle_builtins.def: Update copyright years.
13620
13621 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13622
13623 PR target/79179
13624 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
13625 constraint instead of o for the stxsd instruction.
13626
13627 2017-01-25 Carl Love <cel@us.ibm.com>
13628
13629 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
13630 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
13631
13632 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
13633
13634 * doc/invoke.texi (C++ Dialect Options): Fix typo.
13635
13636 2017-01-25 Richard Biener <rguenther@suse.de>
13637
13638 PR tree-optimization/69264
13639 * target.def (vector_alignment_reachable): Improve documentation.
13640 * doc/tm.texi: Regenerate.
13641 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
13642 and add a comment.
13643 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
13644 earlier changes with respect to TYPE_USER_ALIGN.
13645 (vector_alignment_reachable_p): Likewise. Improve dumping.
13646
13647 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13648
13649 PR target/79145
13650 * config/arm/arm.md (xordi3): Force constant operand into a register
13651 for TARGET_IWMMXT.
13652
13653 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13654
13655 * doc/invoke.texi (-fstore-merging): Correct default optimization
13656 levels at which it is enabled.
13657 (-O): Move -fstore-merging from list to...
13658 (-O2): ... Here.
13659
13660 2017-01-25 Richard Biener <rguenther@suse.de>
13661
13662 PR debug/78363
13663 * omp-expand.c: Include debug.h.
13664 (expand_omp_taskreg): Make sure to generate early debug before
13665 outlining anything from a function.
13666 (expand_omp_target): Likewise.
13667 (grid_expand_target_grid_body): Likewise.
13668
13669 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
13670
13671 PR lto/79061
13672 * asan.c (get_translation_unit_decl): New function.
13673 (asan_add_global): Extract modules file name from globals
13674 TRANSLATION_UNIT_DECL name.
13675
13676 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
13677
13678 PR target/77439
13679 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
13680 for long calls with APCS frame and VFP.
13681
13682 2017-01-24 David Malcolm <dmalcolm@redhat.com>
13683
13684 * cfg.c (original_copy_tables_initialized_p): New function.
13685 * cfg.h (original_copy_tables_initialized_p): New decl.
13686 * cfgrtl.c (relink_block_chain): Guard the call to
13687 free_original_copy_tables with a call to
13688 original_copy_tables_initialized_p.
13689 * cgraph.h (symtab_node::native_rtl_p): New decl.
13690 * cgraphunit.c (symtab_node::native_rtl_p): New function.
13691 (symtab_node::needed_p): Don't assert for early assembly output
13692 for __RTL functions.
13693 (cgraph_node::finalize_function): Set "force_output" for __RTL
13694 functions.
13695 (cgraph_node::analyze): Bail out early for __RTL functions.
13696 (analyze_functions): Update assertion to support __RTL functions.
13697 (cgraph_node::expand): Bail out early for __RTL functions.
13698 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
13699 __RTL functions.
13700 * function.h (struct function): Update comment for field
13701 "pass_startwith".
13702 * gimple-expr.c: Include "tree-pass.h".
13703 (gimple_has_body_p): Return false for __RTL functions.
13704 * Makefile.in (OBJS): Add run-rtl-passes.o.
13705 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
13706 accessor.
13707 (gcc::pass_manager::get_clean_slate): New accessor.
13708 * passes.c: Include "insn-addr.h".
13709 (should_skip_pass_p): Add logging. Update logic for running
13710 "expand" to be compatible with both __GIMPLE and __RTL. Guard
13711 property-provider override so it is only done for gimple passes.
13712 Don't skip dfinit.
13713 (skip_pass): New function.
13714 (execute_one_pass): Call skip_pass when skipping passes.
13715 * read-md.c (md_reader::read_char): Support filtering
13716 the input to a subset of line numbers.
13717 (md_reader::md_reader): Initialize fields
13718 m_first_line and m_last_line.
13719 (md_reader::read_file_fragment): New function.
13720 * read-md.h (md_reader::read_file_fragment): New decl.
13721 (md_reader::m_first_line): New field.
13722 (md_reader::m_last_line): New field.
13723 * read-rtl-function.c (function_reader::create_function): Only
13724 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
13725 curr_properties. Set DECL_INITIAL to a dummy block.
13726 (read_rtl_function_body_from_file_range): New function.
13727 * read-rtl-function.h (read_rtl_function_body_from_file_range):
13728 New decl.
13729 * run-rtl-passes.c: New file.
13730 * run-rtl-passes.h: New file.
13731
13732 2017-01-24 Jeff Law <law@redhat.com>
13733
13734 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
13735 buffer size.
13736
13737 2017-01-24 Bin Cheng <bin.cheng@arm.com>
13738
13739 PR tree-optimization/79159
13740 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
13741 (record_nonwrapping_iv): Improve boundary using above function if no
13742 value range information.
13743
13744 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
13745 Martin Jambor <mjambor@suse.cz>
13746
13747 * brig-builtins.def: New file.
13748 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
13749 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
13750 (DEF_HSAIL_SAT_BUILTIN): Likewise.
13751 (DEF_HSAIL_INTR_BUILTIN): Likewise.
13752 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
13753 * builtin-types.def (BT_INT8): New.
13754 (BT_INT16): Likewise.
13755 (BT_UINT8): Likewise.
13756 (BT_UINT16): Likewise.
13757 (BT_FN_ULONG): Likewise.
13758 (BT_FN_UINT_INT): Likewise.
13759 (BT_FN_UINT_ULONG): Likewise.
13760 (BT_FN_UINT_LONG): Likewise.
13761 (BT_FN_UINT_PTR): Likewise.
13762 (BT_FN_ULONG_PTR): Likewise.
13763 (BT_FN_INT8_FLOAT): Likewise.
13764 (BT_FN_INT16_FLOAT): Likewise.
13765 (BT_FN_UINT32_FLOAT): Likewise.
13766 (BT_FN_UINT16_FLOAT): Likewise.
13767 (BT_FN_UINT8_FLOAT): Likewise.
13768 (BT_FN_UINT64_FLOAT): Likewise.
13769 (BT_FN_UINT16_UINT32): Likewise.
13770 (BT_FN_UINT32_UINT16): Likewise.
13771 (BT_FN_UINT16_UINT16_UINT16): Likewise.
13772 (BT_FN_INT_PTR_INT): Likewise.
13773 (BT_FN_UINT_PTR_UINT): Likewise.
13774 (BT_FN_LONG_PTR_LONG): Likewise.
13775 (BT_FN_ULONG_PTR_ULONG): Likewise.
13776 (BT_FN_VOID_UINT64_UINT64): Likewise.
13777 (BT_FN_UINT8_UINT8_UINT8): Likewise.
13778 (BT_FN_INT8_INT8_INT8): Likewise.
13779 (BT_FN_INT16_INT16_INT16): Likewise.
13780 (BT_FN_INT_INT_INT): Likewise.
13781 (BT_FN_UINT_FLOAT_UINT): Likewise.
13782 (BT_FN_FLOAT_UINT_UINT): Likewise.
13783 (BT_FN_ULONG_UINT_UINT): Likewise.
13784 (BT_FN_ULONG_UINT_PTR): Likewise.
13785 (BT_FN_ULONG_ULONG_ULONG): Likewise.
13786 (BT_FN_UINT_UINT_UINT): Likewise.
13787 (BT_FN_VOID_UINT_PTR): Likewise.
13788 (BT_FN_UINT_UINT_PTR: Likewise.
13789 (BT_FN_UINT32_UINT64_PTR): Likewise.
13790 (BT_FN_INT_INT_UINT_UINT): Likewise.
13791 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
13792 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
13793 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
13794 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
13795 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
13796 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
13797 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
13798 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
13799 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
13800 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
13801 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
13802 * doc/frontends.texi: List BRIG FE.
13803 * doc/install.texi (Testing): Add BRIG tesring requirements.
13804 * doc/invoke.texi (Overall Options): Mention BRIG.
13805 * doc/standards.texi (Standards): Doucment BRIG HSA version.
13806
13807 2017-01-24 Richard Biener <rguenther@suse.de>
13808
13809 PR translation/79208
13810 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
13811
13812 2017-01-24 Martin Jambor <mjambor@suse.cz>
13813
13814 PR bootstrap/79198
13815 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
13816 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
13817 and known_contexts.
13818
13819 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
13820
13821 PR middle-end/79123
13822 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
13823 casts from signed to unsigned really don't have a range.
13824
13825 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
13826
13827 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
13828 GMP_RNDx for compatiblity.
13829
13830 2017-01-24 Martin Liska <mliska@suse.cz>
13831
13832 PR bootstrap/79132
13833 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
13834 that would prevent us to call alloca with -1 as argument.
13835
13836 2017-01-24 Jakub Jelinek <jakub@redhat.com>
13837
13838 * dwarf2out.c (output_compilation_unit_header, output_file_names):
13839 Avoid -Wformat-security warning.
13840
13841 2017-01-23 Andrew Pinski <apinski@cavium.com>
13842
13843 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
13844 cost table.
13845
13846 2017-01-23 Martin Sebor <msebor@redhat.com>
13847
13848 PR middle-end/78703
13849 * gimple-ssa-sprintf.c (warn_level): New global.
13850 (format_integer): Use it here and throughout the rest of the file.
13851 Use the same switch to compute sign as base.
13852 (maybe_warn): New function.
13853 (format_directive): Factor out warnings into maybe_warn.
13854 Add debugging output. Use warn_level.
13855 (add_bytes): Use warn_level.
13856 (pass_sprintf_length::compute_format_length): Add debugging output.
13857 (try_substitute_return_value): Same.
13858 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
13859
13860 PR middle-end/78703
13861 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
13862 (struct fmtresult, format_integer, format_floating): Adjust.
13863 (fmtresult::fmtresult): Set max correctly in two argument ctor.
13864 (get_string_length, format_string,format_directive): Same.
13865 (pass_sprintf_length::compute_format_length): Same.
13866 (try_substitute_return_value): Simplify slightly.
13867
13868 PR middle-end/78703
13869 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
13870 (fmtresult::operator+=): Outlined.
13871 (struct fmtresult): Add ctors.
13872 (struct conversion_spec): Rename...
13873 (struct directive): ...to this. Add and remove data members.
13874 (directive::set_width, directive::set_precision): New functions.
13875 (format_percent): Use fmtresult ctor.
13876 (get_width_and_precision): Remove.
13877 (format_integer): Make naming changes. Avoid computing width and
13878 precision.
13879 (format_floating): Same. Adjust indentation.
13880 (format_character, format_none): New functions.
13881 (format_string): Moved character handling to format_character.
13882 (format_directive): Remove arguments, change return type.
13883 (parse_directive): New function.
13884 (pass_sprintf_length::compute_format_length): Move directive
13885 parsing to parse_directive.
13886
13887 2017-01-23 Jakub Jelinek <jakub@redhat.com>
13888
13889 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
13890 (assign_assembler_name_if_needed): ... this.
13891 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
13892 (assign_assembler_name_if_needed): ... this.
13893 (free_lang_data_in_cgraph): Adjust callers.
13894 * cgraphunit.c (cgraph_node::analyze): Likewise.
13895 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
13896 Likewise.
13897
13898 2017-01-23 Richard Biener <rguenther@suse.de>
13899
13900 PR tree-optimization/79088
13901 PR tree-optimization/79188
13902 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
13903 resetting loop bounds after last path deletion. Reset loop
13904 bounds of the target loop, make code match the comments.
13905 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
13906 Make sure loops need no fixups.
13907
13908 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
13909
13910 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
13911 exponent support with double type for first argument.
13912 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
13913 type returned by __builtin_vec_extract_sig,
13914 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
13915 functions from "vector int" to "vector unsigned int" or from
13916 "vector long long int" to "vector unsigned long long int".
13917 Changed type returned by __builtin_vec_extract_exp,
13918 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
13919 functions from "vector int" to "vector unsigned int" or from
13920 "vector long long int" to "vector unsigned long long int".
13921 Changed return type of __builtin_vec_test_data_class,
13922 __builtin_vec_test_data_class_sp, and
13923 __builtin_vec_test_data_class_dp from "vector int" to
13924 "vector bool int" or from "vector long long int" to "vector bool
13925 long long int" and changed second argument type from "unsigned
13926 int" to "int". Added new overloaded function forms "vector float
13927 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
13928 "vector float __builtin_vec_insert_exp_sp (vector float, vector
13929 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
13930 double, vector unsigned long long int)" and "vector double
13931 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
13932 long int)". Changed return type of
13933 __builtin_scalar_test_data_class and
13934 __builtin_scalar_test_data_class_sp and
13935 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
13936 int" and changed second argument from "unsigned int" to "int".
13937 Changed type returned by __builtin_scalar_test_neg,
13938 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
13939 from "int" to "bool int". Added new overloaded function form
13940 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
13941 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
13942 exponent double-precision with floating point first argument.
13943 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
13944 documentation of scalar_test_data_class, scalar_test_neg,
13945 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
13946 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
13947 vec_test_data_class built-in functions to reflect refinements in
13948 their type signatures.
13949
13950 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
13951
13952 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
13953 size of buf.
13954 (aarch64_elf_asm_destructor): Likewise.
13955
13956 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
13957
13958 PR rtl-optimization/78634
13959 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
13960 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
13961 * ifcvt.c (noce_try_cmove): Add missing cost check.
13962
13963 PR rtl-optimization/71724
13964 * combine.c (if_then_else_cond): Look for situations where it is
13965 beneficial to undo the work of one of the recursive calls.
13966
13967 2017-01-23 Bin Cheng <bin.cheng@arm.com>
13968
13969 PR tree-optimization/70754
13970 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
13971 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
13972 combined stmt before it if not NULL.
13973 (combine_chains): Process refs reversely and compute dominance point
13974 for root ref.
13975
13976 2017-01-23 Martin Liska <mliska@suse.cz>
13977
13978 PR tree-optimization/79196
13979 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
13980 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
13981 instead of memcmp.
13982 (strlen_optimize_stmt): Call the renamed function.
13983
13984 2017-01-23 Michael Matz <matz@suse.de>
13985
13986 PR tree-optimization/78384
13987 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
13988
13989 2017-01-23 Richard Biener <rguenther@suse.de>
13990
13991 PR tree-optimization/79186
13992 * tree-vrp.c (register_new_assert_for): Make sure we've seen
13993 both incoming edges before moving an assert.
13994
13995 2017-01-23 Martin Jambor <mjambor@suse.cz>
13996
13997 * ipa-prop.c (load_from_param_1): Removed.
13998 (load_from_unmodified_param): Bits from load_from_param_1 put back
13999 here.
14000 (load_from_param): Removed.
14001 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
14002 with stmt. Reverted back to use of load_from_unmodified_param.
14003
14004 2017-01-23 Martin Jambor <mjambor@suse.cz>
14005
14006 PR ipa/79108
14007 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
14008 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
14009 field a pointer to garbage collected vector, mark lattices and
14010 ipcp_orig_node with GTY((skip)).
14011 (ipa_get_param_count): Adjust to descriptors being a pointer.
14012 (ipa_get_param): Likewise.
14013 (ipa_get_type): Likewise.
14014 (ipa_get_param_move_cost): Likewise.
14015 (ipa_set_param_used): Likewise.
14016 (ipa_get_controlled_uses): Likewise.
14017 (ipa_set_controlled_uses): Likewise.
14018 (ipa_is_param_used): Likewise.
14019 (ipa_node_params_t): Move into garbage collector. New methods insert
14020 and remove.
14021 (ipa_node_params_sum): Annotate wth GTY(()).
14022 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
14023 garbage collected.
14024 (ipa_load_from_parm_agg): Adjust declaration.
14025 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
14026 * ipa-profile.c (ipa_profile): Likewise.
14027 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
14028 (ipa_populate_param_decls): Make descriptors parameter garbage
14029 collected.
14030 (ipa_dump_param): Adjust to descriptors being a pointer.
14031 (ipa_alloc_node_params): Likewise.
14032 (ipa_initialize_node_params): Likewise.
14033 (load_from_param_1): Make descriptors parameter garbage collected.
14034 (load_from_unmodified_param): Likewise.
14035 (load_from_param): Likewise.
14036 (ipa_load_from_parm_agg): Likewise.
14037 (ipa_node_params::~ipa_node_params): Removed.
14038 (ipa_free_all_node_params): Remove call to delete operator.
14039 (ipa_node_params_t::insert): New.
14040 (ipa_node_params_t::remove): Likewise.
14041 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
14042 copy known_csts and known_contexts vectors.
14043 (ipa_read_node_info): Adjust to descriptors being a pointer.
14044 (ipcp_modif_dom_walker): Make m_descriptors field garbage
14045 collected.
14046 (ipcp_transform_function): Make descriptors variable garbage
14047 collected.
14048
14049 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
14050
14051 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
14052 * config/i386/avx512dqintrin.h: Ditto.
14053 * config/i386/avx512fintrin.h: Ditto.
14054 * gcc/config/i386/i386.c: Handle new builtins.
14055 * config/i386/i386-builtin.def: Add new builtins.
14056 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
14057 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
14058
14059 2017-01-23 Jakub Jelinek <jakub@redhat.com>
14060 Martin Liska <mliska@suse.cz>
14061
14062 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
14063 * asan.c (asan_expand_poison_ifn): Support stores and use
14064 appropriate ASAN report function.
14065 * internal-fn.c (expand_ASAN_POISON_USE): New function.
14066 * internal-fn.def (ASAN_POISON_USE): Declare.
14067 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
14068 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
14069 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
14070 ASAN_POISON calls w/o LHS.
14071 * tree-ssa.c (execute_update_addresses_taken): Create clobber
14072 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
14073 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
14074 * gimplify.c (asan_poison_variables): Add attribute
14075 use_after_scope_memory to variables that really needs to live
14076 in memory.
14077 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
14078 having the attribute.
14079
14080 2017-01-23 Martin Liska <mliska@suse.cz>
14081
14082 * asan.c (create_asan_shadow_var): New function.
14083 (asan_expand_poison_ifn): Likewise.
14084 * asan.h (asan_expand_poison_ifn): New declaration.
14085 * internal-fn.c (expand_ASAN_POISON): Likewise.
14086 * internal-fn.def (ASAN_POISON): New builtin.
14087 * sanopt.c (pass_sanopt::execute): Expand
14088 asan_expand_poison_ifn.
14089 * tree-inline.c (copy_decl_for_dup_finish): Make function
14090 external.
14091 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
14092 * tree-ssa.c (is_asan_mark_p): New function.
14093 (execute_update_addresses_taken): Rewrite local variables
14094 (identified just by use-after-scope as addressable) into SSA.
14095
14096 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
14097
14098 * doc/install.texi (Specific): opensource.apple.com uses https
14099 now. Remove trailing slash.
14100
14101 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
14102
14103 * README.Portability: Remove note on an Irix compatibility issue.
14104
14105 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
14106
14107 * gcov.c (INCLUDE_ALGORITHM): Define.
14108 (INCLUDE_VECTOR): Define.
14109 No longer include <vector> and <algorithm> directly.
14110
14111 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
14112
14113 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
14114 to https.
14115 * doc/invoke.texi (Code Gen Options): Ditto.
14116
14117 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
14118
14119 PR lto/78407
14120 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
14121
14122 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
14123
14124 rtl-optimization/79125
14125 * cprop.c (local_cprop_pass): Handle cases where we make an
14126 unconditional trap.
14127
14128 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
14129
14130 PR target/61729
14131 PR target/77850
14132 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
14133 read from, for big endian.
14134
14135 2017-01-20 Jiong Wang <jiong.wang@arm.com>
14136
14137 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
14138 register pauth builtins for LP64 only.
14139
14140 2017-01-20 Marek Polacek <polacek@redhat.com>
14141
14142 PR c/79152
14143 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
14144 non-case labels.
14145
14146 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
14147
14148 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
14149 of safelen status.
14150 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
14151 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
14152 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
14153
14154 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14155
14156 PR target/71270
14157 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
14158 in big-endian mode when they are not a single duplicated value.
14159
14160 2017-01-20 Richard Biener <rguenther@suse.de>
14161
14162 * BASE-VER: Bump to 7.0.1.
14163
14164 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
14165
14166 * omp-low.c (omplow_simd_context): New struct. Use it...
14167 (lower_rec_simd_input_clauses): ...here and...
14168 (lower_rec_input_clauses): ...here to hold common data. Adjust all
14169 references to idx, lane, max_vf, is_simt.
14170
14171 2017-01-20 Graham Markall <graham.markall@embecosm.com>
14172
14173 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
14174 mcpu=nps400.
14175
14176 2017-01-20 Martin Jambor <mjambor@suse.cz>
14177
14178 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
14179 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
14180 gt-hsa-common.h.
14181 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
14182 (GTFILES): Rename hsa.c to hsa-common.c.
14183 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
14184 * hsa-dump.c: Likewise.
14185 * hsa-gen.c: Likewise.
14186 * hsa-regalloc.c: Likewise.
14187 * ipa-hsa.c: Likewise.
14188 * omp-expand.c: Likewise.
14189 * omp-low.c: Likewise.
14190 * toplev.c: Likewise.
14191
14192 2017-01-20 Marek Polacek <polacek@redhat.com>
14193
14194 PR c/64279
14195 * doc/invoke.texi: Document -Wduplicated-branches.
14196 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
14197 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
14198 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
14199 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
14200 return 0 only when not OEP_LEXICOGRAPHIC.
14201 (fold_build_cleanup_point_expr): Use the expression
14202 location when building CLEANUP_POINT_EXPR.
14203 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
14204 * tree.c (add_expr): Handle error_mark_node.
14205
14206 2017-01-20 Martin Liska <mliska@suse.cz>
14207
14208 PR lto/69188
14209 * tree-profile.c (init_ic_make_global_vars): Do not call
14210 finalize_decl.
14211 (gimple_init_gcov_profiler): Likewise.
14212
14213 2017-01-20 Martin Liska <mliska@suse.cz>
14214
14215 PR ipa/71190
14216 * cgraph.h (maybe_create_reference): Remove argument and
14217 update comment.
14218 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
14219 argument.
14220 * ipa-cp.c (create_specialized_node): Likewise.
14221 * symtab.c (symtab_node::maybe_create_reference): Handle
14222 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
14223
14224 2017-01-20 Martin Liska <mliska@suse.cz>
14225
14226 * read-rtl-function.c (function_reader::create_function): Use
14227 build_decl instread of build_decl_stat.
14228
14229 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
14230
14231 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
14232 * config/i386/avx512dqintrin.h: Ditto.
14233 * config/i386/avx512fintrin.h: Ditto.
14234 * config/i386/i386-builtin-types.def: Add new types.
14235 * gcc/config/i386/i386.c: Handle new types.
14236 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
14237 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
14238 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
14239 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
14240 (__builtin_ia32_kshiftridi): New.
14241 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
14242
14243 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
14244
14245 PR target/78875
14246 PR target/79140
14247 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
14248 define to rs6000_init_stack_protect_guard.
14249 (rs6000_init_stack_protect_guard): New function.
14250
14251 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
14252 Yunqiang Su <yunqiang.su@imgtec.com>
14253
14254 * config.gcc (supported_defaults): Add madd4.
14255 (with_madd4): Add validation.
14256 (all_defaults): Add madd4.
14257 * config/mips/mips.opt (mmadd4): New option.
14258 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
14259 mmadd4.
14260 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
14261 __mips_no_madd4.
14262 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
14263 (ISA_HAS_FUSED_MADD4): Likewise.
14264 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
14265 * gcc/doc/install.texi (--with-madd4): Document the new option.
14266
14267 2017-01-19 Jiong Wang <jiong.wang@arm.com>
14268
14269 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
14270 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
14271 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
14272 (aarch64_init_pauth_hint_builtins): New.
14273 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
14274 (aarch64_expand_builtin): Expand new builtins.
14275
14276 2017-01-19 Jiong Wang <jiong.wang@arm.com>
14277
14278 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
14279 * combine-stack-adj.c (no_unhandled_cfa): Handle
14280 REG_CFA_TOGGLE_RA_MANGLE.
14281 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
14282 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
14283 info for return address signing.
14284 (aarch64_expand_epilogue): Likewise.
14285
14286 2017-01-19 Jiong Wang <jiong.wang@arm.com>
14287
14288 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
14289 * config/aarch64/aarch64-protos.h
14290 (aarch64_return_address_signing_enabled): New declaration.
14291 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
14292 New function.
14293 (aarch64_expand_prologue): Sign return address before it's pushed onto
14294 stack.
14295 (aarch64_expand_epilogue): Authenticate return address fetched from
14296 stack.
14297 (aarch64_override_options): Sanity check for ILP32 and ISA level.
14298 (aarch64_attributes): New function attributes for "sign-return-address".
14299 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
14300 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
14301 ("*do_return"): Generate combined instructions according to key index.
14302 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
14303 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
14304 iterators.
14305 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
14306 * config/aarch64/aarch64.opt (msign-return-address=): New.
14307 * doc/extend.texi (AArch64 Function Attributes): Documents
14308 "sign-return-address=".
14309 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
14310
14311 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
14312
14313 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
14314 overall option summary.
14315
14316 2017-01-19 Jiong Wang <jiong.wang@arm.com>
14317
14318 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
14319 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
14320 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
14321 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
14322
14323 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
14324
14325 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
14326 -mpower9-minmax by default for -mcpu=power9.
14327 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
14328 128-bit floating point.
14329
14330 2017-01-20 Alan Modra <amodra@gmail.com>
14331
14332 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
14333 optimizing for size.
14334
14335 2017-01-20 Alan Modra <amodra@gmail.com>
14336
14337 PR target/79144
14338 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
14339 for strcmp and strncmp from corresponding builtin decl.
14340
14341 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
14342
14343 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
14344 instead of i386/rtems-64.h.
14345 * config/i386/rtems-64.h: Remove.
14346
14347 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
14348
14349 PR target/78478
14350 Revert:
14351 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
14352
14353 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
14354
14355 2017-01-19 Tamar Christina <tamar.christina@arm.com>
14356
14357 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
14358 Change int to HOST_WIDE_INT.
14359 * config/aarch64/aarch64-protos.h
14360 (aarch64_simd_gen_const_vector_dup): Likewise.
14361 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
14362
14363 2017-01-19 David Malcolm <dmalcolm@redhat.com>
14364
14365 * langhooks-def.h (lhd_type_for_size): New decl.
14366 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
14367 * langhooks.c (lhd_type_for_size): New function, taken from
14368 lto_type_for_size.
14369
14370 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
14371
14372 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
14373 define_bypass for CR latency.
14374 (power9-cracked-alu): Update bypass latency and remove power9-branch.
14375 (power9-alu2): Add define_bypass for CR latency.
14376 (power9-cmp): New.
14377 (power9-mul): Update insn latency.
14378 (power9-mul-compare): Update insn latency, bypass latency and remove
14379 power9-branch.
14380
14381 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14382
14383 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
14384 Delete.
14385 * config/aarch64/aarch64.md
14386 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
14387 aarch64_nopcrelative_literal_loads.
14388 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
14389
14390 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
14391
14392 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
14393 TARGET_LOONGSON_3A.
14394 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
14395
14396 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
14397
14398 PR target/78176
14399 * config.gcc (supported_defaults): Add lxc1-sxc1.
14400 (with_lxc1_sxc1): Add validation.
14401 (all_defaults): Add lxc1-sxc1.
14402 * config/mips/mips.opt (mlxc1-sxc1): New option.
14403 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
14404 mlxc1-sxc1.
14405 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
14406 __mips_no_lxc1_sxc1.
14407 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
14408 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
14409 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
14410
14411 2017-01-19 Richard Biener <rguenther@suse.de>
14412
14413 PR tree-optimization/72488
14414 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
14415 sure to restore SSA info.
14416 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
14417
14418 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
14419
14420 PR rtl-optimization/79121
14421 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
14422 of the inner type when shifting an extended value.
14423
14424 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
14425
14426 PR lto/78407
14427 * symtab.c (symtab_node::equal_address_to): Fix comparing of
14428 interposable aliases.
14429
14430 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
14431
14432 PR target/78516
14433 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
14434 Use the evmergelohi instruction.
14435 (mov_si<mode>_e500_subreg4_2_le): Likewise.
14436 (mov_sitf_e500_subreg8_2_be): Likewise.
14437 (mov_sitf_e500_subreg12_2_le): Likewise.
14438 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
14439 (mov_si<mode>_e500_subreg4_2_be): Likewise.
14440 (mov_sitf_e500_subreg8_2_le): Likewise.
14441 (mov_sitf_e500_subreg12_2_be): Likewise.
14442
14443 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14444
14445 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
14446 attribute from vecsimple to vecperm.
14447 (altivec_vbpermq2): Likewise.
14448
14449 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14450
14451 PR target/79040
14452 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
14453
14454 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
14455 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
14456 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
14457 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
14458 case where N arg is SIZE_MAX.
14459 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
14460 (cmpstrsi): Add pattern.
14461
14462 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14463
14464 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14465 __builtin_vec_revb builtins.
14466 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
14467 built-in functions to support generation of the ISA 3.0 XXBR<x>
14468 vector byte reverse instructions.
14469 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
14470 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
14471 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
14472 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
14473 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
14474 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
14475 (P9V_BUILTIN_VEC_REVB): Likewise.
14476 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
14477 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
14478 (p9_xxbrq_v16qi): Likewise.
14479 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
14480 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
14481 (p9_xxbrh_v8hi): Likewise.
14482 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
14483 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
14484 vec_revb built-in functions.
14485
14486 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
14487
14488 PR rtl-optimization/78952
14489 * config/i386/i386.md (any_extract): New code iterator.
14490 (*insvqi_2): Use any_extract for source operand.
14491 (*insvqi_3): Use any_shiftrt for source operand.
14492
14493 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
14494
14495 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
14496 New function.
14497 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
14498
14499 2017-01-18 Matthias Klose <doko@ubuntu.com>
14500
14501 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
14502
14503 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14504
14505 * config/rs6000/altivec.h (vec_bperm): Change #define.
14506 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
14507 (altivec_vbpermq2): New define_insn.
14508 (altivec_vbpermd): Likewise.
14509 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
14510 function interface.
14511 (VBPERMD): Likewise.
14512 (VBPERM): New polymorphic function interface.
14513 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
14514 Add entries for P9V_BUILTIN_VEC_VBPERM.
14515 * doc/extend.texi: Add interfaces for vec_bperm.
14516
14517 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14518
14519 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
14520 first letter of error messages.
14521 (s390_resolve_overloaded_builtin): Likewise.
14522 * config/s390/s390.c (s390_expand_builtin): Likewise.
14523 (s390_invalid_arg_for_unprototyped_fn): Likewise.
14524 (s390_valid_target_attribute_inner_p): Likewise.
14525 * config/s390/s390.md ("tabort"): Likewise.
14526
14527 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
14528
14529 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
14530 (ISA_AVOID_DIV_HILO): New macro.
14531 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
14532 (ISA_HAS_DDIV): Likewise.
14533
14534 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
14535
14536 * doc/invoke.texi (fabi-version): Correct number of occurrences.
14537
14538 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
14539
14540 * doc/invoke.texi (fabi-version): Spelling fix.
14541
14542 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
14543
14544 PR c++/70182
14545 * doc/invoke.texi (fabi-version): Mention mangling fix for
14546 operator names.
14547
14548 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
14549
14550 PR c++/77489
14551 * doc/invoke.texi (fabi-version): Document discriminator mangling.
14552
14553 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
14554
14555 PR target/78875
14556 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
14557 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
14558 the new options.
14559 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
14560 flexible settings.
14561 (stack_protect_test): Ditto.
14562 * config/rs6000/rs6000.opt (mstack-protector-guard=,
14563 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
14564 options.
14565 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
14566 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
14567 -mstack-protector-guard-offset=.
14568 (RS/6000 and PowerPC Options): Ditto.
14569
14570 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
14571
14572 * config/i386/i386.h (MASK_CLASS_P): New define.
14573 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
14574 there are no registers from different register sets also when
14575 mask registers are used. Update function comment.
14576 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
14577 to (*k/*r) and (*k/*km) alternatives.
14578
14579 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
14580
14581 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
14582 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
14583 (EH_RETURN_HANDLER_RTX): New define.
14584 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
14585 Force frame pointer in EH return functions.
14586 (aarch64_expand_epilogue): Add barrier for eh_return.
14587 (aarch64_final_eh_return_addr): Remove.
14588 (aarch64_eh_return_handler_rtx): New function.
14589 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
14590 Remove.
14591 (aarch64_eh_return_handler_rtx): New prototype.
14592
14593 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14594
14595 * config/rs6000/altivec.h (vec_rlmi): New #define.
14596 (vec_vrlnm): Likewise.
14597 (vec_rlnm): Likewise.
14598 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
14599 (UNSPEC_VRLNM): Likewise.
14600 (VIlong): New mode iterator.
14601 (altivec_vrl<VI_char>mi): New define_insn.
14602 (altivec_vrl<VI_char>nm): Likewise.
14603 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
14604 function entry.
14605 (VRLDNM): Likewise.
14606 (RLNM): New polymorphic function entry.
14607 (VRLWMI): New monomorphic function entry.
14608 (VRLDMI): Likewise.
14609 (RLMI): New polymorphic function entry.
14610 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
14611 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
14612 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
14613 vec_vrlnm.
14614
14615 2017-01-17 Jakub Jelinek <jakub@redhat.com>
14616
14617 PR debug/78839
14618 * dwarf2out.c (field_byte_offset): Restore the
14619 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
14620 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
14621 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
14622 of build2 + fold.
14623
14624 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
14625
14626 PR ada/67205
14627 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
14628
14629 2017-01-17 Jakub Jelinek <jakub@redhat.com>
14630
14631 PR debug/71669
14632 * dwarf2out.c (add_data_member_location_attribute): For constant
14633 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
14634 instead of DW_AT_data_member_location, DW_AT_bit_offset and
14635 DW_AT_byte_size attributes.
14636
14637 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
14638
14639 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
14640 after forcing to constant memory when the code model is medium.
14641
14642 2017-01-17 Julia Koval <julia.koval@intel.com>
14643
14644 PR target/76731
14645 * config/i386/avx512fintrin.h
14646 (_mm512_i32gather_ps): Change __addr type to void const*.
14647 (_mm512_mask_i32gather_ps): Ditto.
14648 (_mm512_i32gather_pd): Ditto.
14649 (_mm512_mask_i32gather_pd): Ditto.
14650 (_mm512_i64gather_ps): Ditto.
14651 (_mm512_mask_i64gather_ps): Ditto.
14652 (_mm512_i64gather_pd): Ditto.
14653 (_mm512_mask_i64gather_pd): Ditto.
14654 (_mm512_i32gather_epi32): Ditto.
14655 (_mm512_mask_i32gather_epi32): Ditto.
14656 (_mm512_i32gather_epi64): Ditto.
14657 (_mm512_mask_i32gather_epi64): Ditto.
14658 (_mm512_i64gather_epi32): Ditto.
14659 (_mm512_mask_i64gather_epi32): Ditto.
14660 (_mm512_i64gather_epi64): Ditto.
14661 (_mm512_mask_i64gather_epi64): Ditto.
14662 (_mm512_i32scatter_ps): Change __addr type to void*.
14663 (_mm512_mask_i32scatter_ps): Ditto.
14664 (_mm512_i32scatter_pd): Ditto.
14665 (_mm512_mask_i32scatter_pd): Ditto.
14666 (_mm512_i64scatter_ps): Ditto.
14667 (_mm512_mask_i64scatter_ps): Ditto.
14668 (_mm512_i64scatter_pd): Ditto.
14669 (_mm512_mask_i64scatter_pd): Ditto.
14670 (_mm512_i32scatter_epi32): Ditto.
14671 (_mm512_mask_i32scatter_epi32): Ditto.
14672 (_mm512_i32scatter_epi64): Ditto.
14673 (_mm512_mask_i32scatter_epi64): Ditto.
14674 (_mm512_i64scatter_epi32): Ditto.
14675 (_mm512_mask_i64scatter_epi32): Ditto.
14676 (_mm512_i64scatter_epi64): Ditto.
14677 (_mm512_mask_i64scatter_epi64): Ditto.
14678 * config/i386/avx512pfintrin.h
14679 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
14680 (_mm512_mask_prefetch_i32gather_ps): Ditto.
14681 (_mm512_mask_prefetch_i64gather_pd): Ditto.
14682 (_mm512_mask_prefetch_i64gather_ps): Ditto.
14683 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
14684 (_mm512_prefetch_i32scatter_ps): Ditto.
14685 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
14686 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
14687 (_mm512_prefetch_i64scatter_pd): Ditto.
14688 (_mm512_prefetch_i64scatter_ps): Ditto.
14689 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
14690 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
14691 * config/i386/avx512vlintrin.h
14692 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
14693 (_mm_mmask_i32gather_ps): Ditto.
14694 (_mm256_mmask_i32gather_pd): Ditto.
14695 (_mm_mmask_i32gather_pd): Ditto.
14696 (_mm256_mmask_i64gather_ps): Ditto.
14697 (_mm_mmask_i64gather_ps): Ditto.
14698 (_mm256_mmask_i64gather_pd): Ditto.
14699 (_mm_mmask_i64gather_pd): Ditto.
14700 (_mm256_mmask_i32gather_epi32): Ditto.
14701 (_mm_mmask_i32gather_epi32): Ditto.
14702 (_mm256_mmask_i32gather_epi64): Ditto.
14703 (_mm_mmask_i32gather_epi64): Ditto.
14704 (_mm256_mmask_i64gather_epi32): Ditto.
14705 (_mm_mmask_i64gather_epi32): Ditto.
14706 (_mm256_mmask_i64gather_epi64): Ditto.
14707 (_mm_mmask_i64gather_epi64): Ditto.
14708 (_mm256_i32scatter_ps): Change __addr type to void*.
14709 (_mm256_mask_i32scatter_ps): Ditto.
14710 (_mm_i32scatter_ps): Ditto.
14711 (_mm_mask_i32scatter_ps): Ditto.
14712 (_mm256_i32scatter_pd): Ditto.
14713 (_mm256_mask_i32scatter_pd): Ditto.
14714 (_mm_i32scatter_pd): Ditto.
14715 (_mm_mask_i32scatter_pd): Ditto.
14716 (_mm256_i64scatter_ps): Ditto.
14717 (_mm256_mask_i64scatter_ps): Ditto.
14718 (_mm_i64scatter_ps): Ditto.
14719 (_mm_mask_i64scatter_ps): Ditto.
14720 (_mm256_i64scatter_pd): Ditto.
14721 (_mm256_mask_i64scatter_pd): Ditto.
14722 (_mm_i64scatter_pd): Ditto.
14723 (_mm_mask_i64scatter_pd): Ditto.
14724 (_mm256_i32scatter_epi32): Ditto.
14725 (_mm256_mask_i32scatter_epi32): Ditto.
14726 (_mm_i32scatter_epi32): Ditto.
14727 (_mm_mask_i32scatter_epi32): Ditto.
14728 (_mm256_i32scatter_epi64): Ditto.
14729 (_mm256_mask_i32scatter_epi64): Ditto.
14730 (_mm_i32scatter_epi64): Ditto.
14731 (_mm_mask_i32scatter_epi64): Ditto.
14732 (_mm256_i64scatter_epi32): Ditto.
14733 (_mm256_mask_i64scatter_epi32): Ditto.
14734 (_mm_i64scatter_epi32): Ditto.
14735 (_mm_mask_i64scatter_epi32): Ditto.
14736 (_mm256_i64scatter_epi64): Ditto.
14737 (_mm256_mask_i64scatter_epi64): Ditto.
14738 (_mm_i64scatter_epi64): Ditto.
14739 (_mm_mask_i64scatter_epi64): Ditto.
14740 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
14741 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
14742 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
14743 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
14744 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
14745 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
14746 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
14747 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
14748 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
14749 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
14750 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
14751 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
14752 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
14753 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
14754 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
14755 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
14756 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
14757 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
14758 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
14759 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
14760 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
14761 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
14762 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
14763 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
14764 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
14765 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
14766 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
14767 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
14768 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
14769 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
14770 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
14771 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
14772 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
14773 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
14774 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
14775 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
14776 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
14777 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
14778 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
14779 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
14780 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
14781 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
14782 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
14783 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
14784 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
14785 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
14786 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
14787 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
14788 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
14789 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
14790 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
14791 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
14792 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
14793 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
14794 definitions accordingly.
14795
14796 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
14797 Kuan-Lin Chen <kuanlinchentw@gmail.com>
14798
14799 PR target/79079
14800 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
14801 gen_lowpart.
14802
14803 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
14804
14805 PR target/79058
14806 * ira-conflicts.c (ira_build_conflicts): Update total conflict
14807 hard regs for inner regno.
14808
14809 2017-01-17 Martin Liska <mliska@suse.cz>
14810
14811 PR ipa/71207
14812 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
14813 assumption and add comment.
14814
14815 2017-01-17 Nathan Sidwell <nathan@acm.org>
14816
14817 * ipa-visibility.c (localize_node): New function, broken out of ...
14818 (function_and_variable_visibility): ... here. Call it.
14819
14820 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
14821
14822 PR middle-end/77445
14823 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
14824 correctly set frequency of oudgoing edge.
14825 (duplicate_thread_path): Fix profile updating.
14826
14827 2017-01-17 Jakub Jelinek <jakub@redhat.com>
14828
14829 PR other/79046
14830 * configure.ac: Add GCC_BASE_VER.
14831 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
14832 version from BASE-VER file.
14833 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
14834 (gcc.o): Depend on $(BASEVER).
14835 * common.opt (dumpfullversion): New option.
14836 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
14837 * doc/invoke.texi: Document -dumpfullversion.
14838 * doc/install.texi: Document --with-gcc-major-version-only.
14839 * configure: Regenerated.
14840
14841 2017-01-17 Richard Biener <rguenther@suse.de>
14842
14843 PR tree-optimization/71433
14844 * tree-vrp.c (register_new_assert_for): Merge same asserts
14845 on all incoming edges.
14846 (process_assert_insertions_for): Handle insertions at the
14847 beginning of BBs.
14848
14849 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
14850
14851 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
14852 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
14853
14854 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
14855
14856 PR target/78633
14857 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
14858 RTL sharing.
14859
14860 2017-01-17 Alan Modra <amodra@gmail.com>
14861
14862 PR target/79066
14863 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
14864 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
14865 symbolic stack limit when pic.
14866
14867 2017-01-16 Martin Sebor <msebor@redhat.com>
14868
14869 PR tree-optimization/78608
14870 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
14871
14872 2017-01-16 Jeff Law <law@redhat.com>
14873
14874 Revert:
14875 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
14876 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
14877 for several include directories that may be relative to sysroot.
14878 * config/i386/x-mingw32 (gplus_includedir): Define.
14879 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
14880 (native_system_includedir): Likewise.
14881 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
14882 override if TARGET_SYSTEM_ROOT is defined.
14883 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
14884
14885 PR tree-optimization/79090
14886 PR tree-optimization/33562
14887 PR tree-optimization/61912
14888 PR tree-optimization/77485
14889 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
14890 and computed trims into the dump file.
14891
14892 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
14893
14894 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
14895
14896 2017-01-16 Jakub Jelinek <jakub@redhat.com>
14897
14898 PR c/79089
14899 * gimplify.c (gimplify_init_constructor): If want_value and
14900 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
14901 fix.
14902
14903 PR target/79080
14904 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
14905 sequence. Formatting fixes.
14906 (doloop_optimize): Formatting fixes.
14907
14908 PR driver/49726
14909 * gcc.c (debug_level_greater_than_spec_func): New function.
14910 (static_spec_functions): Add debug-level-gt spec function.
14911 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
14912 !g0.
14913 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
14914 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
14915 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
14916 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
14917 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
14918 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
14919
14920 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
14921
14922 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
14923 QImode fixups to general and mask registers only.
14924
14925 2017-01-16 Carl Love <cel@us.ibm.com>
14926
14927 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
14928 for built-in functions
14929 vector signed char vec_nabs (vector signed char)
14930 vector signed short vec_nabs (vector signed short)
14931 vector signed int vec_nabs (vector signed int)
14932 vector signed long long vec_nabs (vector signed long long)
14933 vector float vec_nabs (vector float)
14934 vector double vec_nabs (vector double)
14935 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
14936 and NABS overload.
14937 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
14938 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
14939 * doc/extend.texi: Update the documentation file for the new built-in
14940 functions.
14941
14942 2017-01-16 Martin Sebor <msebor@redhat.com>
14943
14944 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
14945 message.
14946
14947 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14948
14949 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
14950 UNSPEC_VSX__XXSPLTD to require special splat handling.
14951
14952 2017-01-16 David Malcolm <dmalcolm@redhat.com>
14953
14954 PR bootstrap/78616
14955 * system.h: Poison strndup.
14956
14957 2017-01-16 Alan Modra <amodra@gmail.com>
14958
14959 PR target/79098
14960 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
14961 use a switch.
14962
14963 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
14964
14965 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
14966
14967 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
14968
14969 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
14970 call recog here. Assert that INSN_CODE (insn) is non-negative.
14971
14972 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
14973
14974 PR target/72749
14975 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
14976 fallthrough.
14977 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
14978 in the currently scheduled RTL fragment.
14979
14980 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
14981
14982 PR rtl-optimization/78751
14983 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
14984 give up.
14985
14986 2017-01-14 Jeff Law <law@redhat.com>
14987
14988 PR tree-optimization/79090
14989 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
14990 variable length stores.
14991 (compute_trims): Delete dead assignment to *trim_tail.
14992 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
14993 zero length.
14994
14995 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
14996
14997 PR rtl-optimization/78626
14998 PR rtl-optimization/78727
14999 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
15000 of a block, and split such blocks after everything else is finished.
15001
15002 2017-01-14 Alan Modra <amodra@gmail.com>
15003
15004 PR target/72749
15005 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
15006 target legitimate_combined_insn.
15007 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
15008 (rs6000_legitimate_combined_insn): New function.
15009 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
15010 all uses.
15011 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
15012 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
15013 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
15014
15015 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
15016
15017 * doc/frontends.texi (G++ and GCC): Remove references to Java.
15018
15019 2017-01-13 Jeff Law <law@redhat.com>
15020
15021 PR tree-optimization/33562
15022 PR tree-optimization/61912
15023 PR tree-optimization/77485
15024 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
15025 a statement.
15026 (delete_dead_assignment): Likewise.
15027 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
15028 statement to delete_dead_call and delete_dead_assignment.
15029
15030 2017-01-13 David Malcolm <dmalcolm@redhat.com>
15031
15032 PR c/78304
15033 * substring-locations.c (format_warning_va): Strengthen case 1 so
15034 that both endpoints of the substring must be within the format
15035 range for just the substring to be printed.
15036
15037 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
15038
15039 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
15040 * config/i386/i386.c (ix86_target_string): Add missing options
15041 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
15042 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
15043 flags_other and ix86_target_other to flags2_other. Display unknown
15044 isa2 options.
15045 (ix86_valid_target_attribute_inner_p): Add missing options and
15046 reorder options by implied ISAs, as in ix86_target_string.
15047
15048 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
15049
15050 * hash-table.h (hash_table::too_empty_p): New function.
15051 (hash_table::expand): Use it.
15052 (hash_table::traverse): Likewise.
15053 (hash_table::empty_slot): Use sizeof (value_type) instead of
15054 sizeof (PTR) to convert bytes to elements. Shrink the table
15055 if the current size is excessive for the current number of
15056 elements.
15057
15058 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
15059
15060 * ira-costs.c (record_reg_classes): Break from the inner loop
15061 early once alt_fail is known to be true. Update outer loop
15062 handling accordingly.
15063
15064 2017-01-13 Jeff Law <law@redhat.com>
15065
15066 * tree-ssa-dse.c (decrement_count): New function.
15067 (increment_start_addr, maybe_trim_memstar_call): Likewise.
15068 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
15069 when we know the partially dead statement is a mem* function.
15070
15071 PR tree-optimization/61912
15072 PR tree-optimization/77485
15073 * tree-ssa-dse.c: Include expr.h.
15074 (maybe_trim_constructor_store): New function.
15075 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
15076
15077 PR tree-optimization/33562
15078 PR tree-optimization/61912
15079 PR tree-optimization/77485
15080 * doc/invoke.texi: Document new dse-max-object-size param.
15081 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
15082 * tree-ssa-dse.c: Include params.h.
15083 (dse_store_status): New enum.
15084 (initialize_ao_ref_for_dse): New, partially extracted from
15085 dse_optimize_stmt.
15086 (valid_ao_ref_for_dse, normalize_ref): New.
15087 (setup_live_bytes_from_ref, compute_trims): Likewise.
15088 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
15089 (maybe_trim_partially_dead_store): Likewise.
15090 (maybe_trim_complex_store): Likewise.
15091 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
15092 Track what bytes live from the original store. Return tri-state
15093 for dead, partially dead or live.
15094 (dse_dom_walker): Add constructor, destructor and new private members.
15095 (delete_dead_call, delete_dead_assignment): New extracted from
15096 dse_optimize_stmt.
15097 (dse_optimize_stmt): Make a member of dse_dom_walker.
15098 Use initialize_ao_ref_for_dse.
15099
15100 PR tree-optimization/33562
15101 PR tree-optimization/61912
15102 PR tree-optimization/77485
15103 * sbitmap.h (bitmap_count_bits): Prototype.
15104 (bitmap_clear_range, bitmap_set_range): Likewise.
15105 * sbitmap.c (bitmap_clear_range): New function.
15106 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
15107
15108 2017-01-13 Martin Liska <mliska@suse.cz>
15109
15110 PR ipa/79043
15111 * function.c (set_cfun): Add new argument force.
15112 * function.h (set_cfun): Likewise.
15113 * ipa-inline-transform.c (inline_call): Use the function when
15114 strict alising from is dropped for function we inline to.
15115
15116 2017-01-13 Richard Biener <rguenther@suse.de>
15117
15118 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
15119 for dumping GIMPLE INTEGER_CSTs.
15120
15121 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15122
15123 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
15124 to 201112L since C++17.
15125
15126 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
15127
15128 PR sanitizer/78887
15129 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
15130 if -fsanitize=kernel-address is present.
15131
15132 2017-01-13 Richard Biener <rguenther@suse.de>
15133
15134 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
15135 as _Literal ( type ) number in case usual suffixes do not
15136 preserve all information.
15137
15138 2017-01-13 Richard Biener <rguenther@suse.de>
15139
15140 PR tree-optimization/77283
15141 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
15142 and ssa-iterators.h.
15143 (is_feasible_trace): Implement a cost model based on joiner
15144 PHI node uses.
15145
15146 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15147
15148 PR target/79004
15149 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
15150 char or short to __float128/_Float128 directly.
15151
15152 2017-01-12 Martin Sebor <msebor@redhat.com>
15153
15154 to -Wformat-overflow.
15155 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
15156 (min_bytes_remaining): Same.
15157 (get_string_length): Same.
15158 (format_string): Same.
15159 (format_directive): Same.
15160 (add_bytes): Same.
15161 (pass_sprintf_length::handle_gimple_call): Same.
15162
15163 2017-01-12 Jakub Jelinek <jakub@redhat.com>
15164
15165 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
15166 info.nowrite calls with no lhs that can't throw. Return bool
15167 whether gsi_remove has been called or not.
15168 (pass_sprintf_length::handle_gimple_call): Return bool whether
15169 try_substitute_return_value called gsi_remove. Formatting fix.
15170 (pass_sprintf_length::execute): Don't use gsi_remove if
15171 handle_gimple_call returned true.
15172
15173 PR bootstrap/79069
15174 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
15175 be removed due to side-effects, don't remove following barrier nor
15176 turn the successor edge into fallthru edge.
15177
15178 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15179
15180 PR target/79044
15181 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
15182 element-reversing loads and stores as not swappable.
15183
15184 2017-01-12 Nathan Sidwell <nathan@acm.org>
15185 Nicolai Stange <nicstange@gmail.com>
15186
15187 * combine.c (try_combine): Don't ignore result of overlap checking
15188 loop. Combine overlap & asm check into single loop.
15189
15190 2017-01-12 Richard Biener <rguenther@suse.de>
15191
15192 * tree-pretty-print.c (dump_generic_node): Provide -gimple
15193 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
15194
15195 2017-01-12 Richard Biener <rguenther@suse.de>
15196
15197 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
15198 and TS_TARGET_OPTION directly derive from TS_BASE.
15199 * tree-core.h (tree_optimization_option): Derive from tree_base.
15200 (tree_target_option): Likewise.
15201
15202 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
15203
15204 * config/i386/i386.c (memory_address_length): Increase len
15205 only when rip_relative_addr_p returns false.
15206
15207 2017-01-11 Julia Koval <julia.koval@intel.com>
15208
15209 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
15210 (OPTION_MASK_ISA_SGX_SET): New.
15211 (ix86_handle_option): Handle OPT_msgx.
15212 * config.gcc: Added sgxintrin.h.
15213 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
15214 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
15215 * config/i386/i386.c (ix86_target_string): Add -msgx.
15216 (PTA_SGX): New.
15217 (ix86_option_override_internal): Handle new options.
15218 (ix86_valid_target_attribute_inner_p): Add sgx.
15219 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
15220 * config/i386/i386.opt: Add msgx.
15221 * config/i386/sgxintrin.h: New file.
15222 * config/i386/x86intrin.h: Add sgxintrin.h.
15223
15224 2017-01-11 Jakub Jelinek <jakub@redhat.com>
15225
15226 PR c++/71537
15227 * fold-const.c (maybe_nonzero_address): Return 1 for function
15228 local objects.
15229 (tree_single_nonzero_warnv_p): Don't handle function local objects
15230 here.
15231
15232 PR c++/72813
15233 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
15234 of c-header.
15235
15236 2017-01-11 David Malcolm <dmalcolm@redhat.com>
15237
15238 PR driver/78877
15239 * opts.c: Include "spellcheck.h"
15240 (struct string_fragment): New struct.
15241 (struct edit_distance_traits<const string_fragment &>): New
15242 struct.
15243 (get_closest_sanitizer_option): New function.
15244 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
15245
15246 2017-01-11 Jakub Jelinek <jakub@redhat.com>
15247
15248 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
15249 by 12.
15250 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
15251 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
15252 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
15253 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
15254 for initial die_offset if dwarf_split_debug_info.
15255 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
15256 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
15257 fields.
15258 (output_skeleton_debug_sections): Formatting fix. Use
15259 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
15260 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
15261
15262 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
15263
15264 * config/arm/cortex-a53.md: Add bypasses for
15265 cortex_a53_r2f_cvt.
15266 (cortex_a53_r2f): Only use for transfers.
15267 (cortex_a53_f2r): Likewise.
15268 (cortex_a53_r2f_cvt): Add reservation for conversions.
15269 (cortex_a53_f2r_cvt): Likewise.
15270
15271 2017-01-11 Tamar Christina <tamar.christina@arm.com>
15272
15273 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
15274 to all inlined functions, change static to extern.
15275
15276 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
15277
15278 PR target/78253
15279 * config/arm/arm.c (legitimize_pic_address): Handle reference to
15280 weak symbol.
15281 (arm_assemble_integer): Likewise.
15282
15283 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
15284
15285 * config.gcc: Use new awk script to check CPU, FPU and architecture
15286 parameters for --with-... options.
15287 * config/arm/parsecpu.awk: New file
15288 * config/arm/arm-cpus.in: New file.
15289 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
15290 files.
15291 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
15292 files.
15293 * config/arm/t-arm: Update dependency rules.
15294 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
15295 of processing .def files.
15296 * config/arm/genopt.sh: Deleted.
15297 * config/arm/gentune.sh: Deleted.
15298 * config/arm/arm-cores.def: Deleted.
15299 * config/arm/arm-arches.def: Deleted.
15300 * config/arm/arm-fpus.def: Deleted.
15301 * config/arm/arm-tune.md: Regenerated.
15302 * config/arm/arm-tables.opt: Regenerated.
15303 * config/arm/arm-cpu.h: New generated file.
15304 * config/arm/arm-cpu-data.h: New generated file.
15305 * config/arm/arm-cpu-cdata.h: New generated file.
15306
15307 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
15308
15309 PR lto/79042
15310 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
15311 bit.
15312 (input_varpool_node): Unpack dynamically_initialized bit.
15313
15314 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
15315
15316 PR rtl-optimization/79032
15317 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
15318 the alignment of the adjusted memory reference against that of MODE,
15319 instead of the alignment of the original memory reference.
15320
15321 2017-01-11 Martin Jambor <mjambor@suse.cz>
15322
15323 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
15324 test.
15325 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
15326 decorated functions.
15327
15328 2017-01-11 Richard Biener <rguenther@suse.de>
15329
15330 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
15331 set range/nonnull info for PHI results. Do not set it on
15332 stmts marked for removal.
15333
15334 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
15335
15336 * expr.c (store_field): In the bitfield case, fetch the return value
15337 from the registers before applying a single big-endian adjustment.
15338 Always do a final load for a BLKmode value not larger than a word.
15339
15340 2017-01-10 David Malcolm <dmalcolm@redhat.com>
15341
15342 PR c++/77949
15343 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
15344 that we correctly handle column numbers greater than
15345 LINE_MAP_MAX_COLUMN_NUMBER.
15346
15347 2017-01-10 Martin Sebor <msebor@redhat.com>
15348
15349 PR middle-end/78245
15350 * gimple-ssa-sprintf.c (get_destination_size): Call
15351 {init,fini}object_sizes.
15352 * tree-object-size.c (addr_object_size): Adjust.
15353 (pass_through_call): Adjust.
15354 (pass_object_sizes::execute): Adjust.
15355 * tree-object-size.h (fini_object_sizes): Declare.
15356
15357 2017-01-10 Martin Sebor <msebor@redhat.com>
15358
15359 PR tree-optimization/78775
15360 * builtins.c (get_size_range): Move...
15361 * calls.c: ...to here.
15362 (alloc_max_size): Accept zero argument.
15363 (operand_signed_p): Remove.
15364 (maybe_warn_alloc_args_overflow): Call get_size_range.
15365 * calls.h (get_size_range): Declare.
15366
15367 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
15368
15369 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
15370 from TI's devices.csv file as of September 2016.
15371 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
15372
15373 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
15374
15375 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
15376 * doc/invoke.texi: Likewise.
15377 * doc/md.texi: Likewise.
15378 * doc/objc.texi: Likewise.
15379
15380 2017-01-10 Joshua Conner <joshconner@google.com>
15381
15382 * config/arm/fuchsia-elf.h: New file.
15383 * config/fuchsia.h: New file.
15384 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
15385 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
15386 targets.
15387 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
15388
15389 2016-01-10 Richard Biener <rguenther@suse.de>
15390
15391 PR tree-optimization/79034
15392 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
15393 Propagate out degenerate PHIs in the joiner.
15394
15395 2017-01-10 Martin Liska <mliska@suse.cz>
15396
15397 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
15398 (sort_congruence_classes_by_decl_uid): Likewise.
15399 (sort_congruence_class_groups_by_decl_uid): Likewise.
15400 (sem_item_optimizer::merge_classes): Sort class, groups in these
15401 classes and members in the groups by DECL_UID of declarations.
15402 This would make merge operations stable.
15403
15404 2017-01-10 Martin Liska <mliska@suse.cz>
15405
15406 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
15407 usage of m_classes_vec.
15408 (sem_item_optimizer::~sem_item_optimizer): Likewise.
15409 (sem_item_optimizer::get_group_by_hash): Likewise.
15410 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
15411 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
15412 (sem_item_optimizer::verify_classes): Likewise.
15413 (sem_item_optimizer::process_cong_reduction): Likewise.
15414 (sem_item_optimizer::dump_cong_classes): Likewise.
15415 (sem_item_optimizer::merge_classes): Likewise.
15416 * ipa-icf.h (congruence_class_hash): Rename from
15417 congruence_class_group_hash. Remove declaration of m_classes_vec.
15418
15419 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
15420
15421 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
15422 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
15423 * config.gcc: Add avx512vpopcntdqintrin.h.
15424 * config/i386/avx512vpopcntdqintrin.h: New.
15425 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
15426 * config/i386/i386-builtin-types.def: Add new types.
15427 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
15428 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
15429 __builtin_ia32_vpopcountq_v8di_mask): New.
15430 * config/i386/i386-c.c (ix86_target_macros_internal): Define
15431 __AVX512VPOPCNTDQ__.
15432 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
15433 (PTA_AVX512VPOPCNTDQ): Define.
15434 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
15435 TARGET_AVX512VPOPCNTDQ_P): Define.
15436 * config/i386/i386.opt: Add mavx512vpopcntdq.
15437 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
15438 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
15439
15440 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
15441
15442 PR middle-end/77484
15443 * predict.def (PRED_CALL): Set to 67.
15444
15445 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
15446
15447 * expr.c (store_field): In the bitfield case, if the value comes from
15448 a function call and is of an aggregate type returned in registers, do
15449 not modify the field mode; extract the value in all cases if the mode
15450 is BLKmode and the size is not larger than a word.
15451
15452 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
15453
15454 PR target/71017
15455 * config/i386/cpuid.h: Fix undefined behavior.
15456
15457 2017-01-04 Jeff Law <law@redhat.com>
15458
15459 PR tree-optimization/79007
15460 PR tree-optimization/67955
15461 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
15462 conservative for pt.null when flag_non_call_exceptions is on.
15463
15464 2017-01-09 Jakub Jelinek <jakub@redhat.com>
15465
15466 PR translation/79019
15467 PR translation/79020
15468 * params.def (PARAM_INLINE_MIN_SPEEDUP,
15469 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
15470 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
15471 in descriptions.
15472 * config/avr/avr.opt (maccumulate-args): Likewise.
15473 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
15474 * common.opt (freport-bug): Likewise.
15475 * cif-code.def (CIF_FINAL_ERROR): Likewise.
15476 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
15477 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
15478 translatable string.
15479 * config/i386/i386.c (function_value_32): Likewise.
15480 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
15481 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
15482 Likewise.
15483 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
15484 * common/config/msp430/msp430-common.c (msp430_handle_option):
15485 Likewise.
15486 * symtab.c (symtab_node::verify_base): Likewise.
15487 * opts.c (set_debug_level): Likewise.
15488 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
15489 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
15490 missing whitespace to translatable strings.
15491 * config/avr/avr.md (bswapsi2): Fix typo in comment.
15492 * config/sh/superh.h: Likewise.
15493 * config/i386/xopintrin.h: Likewise.
15494 * config/i386/znver1.md: Likewise.
15495 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
15496 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
15497 * double-int.h (struct double_int): Likewise.
15498 * double-int.c (div_and_round_double): Likewise.
15499 * wide-int.cc: Likewise.
15500 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
15501 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
15502 * cfgcleanup.c (crossjumps_occured): Renamed to ...
15503 (crossjumps_occurred): ... this.
15504 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
15505 Adjust all uses.
15506
15507 PR tree-optimization/78899
15508 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
15509 returning bool return struct loop *, NULL for failure and the new
15510 loop on success.
15511 (versionable_outer_loop_p): Don't version outer loop if it has
15512 dont_vectorized bit set.
15513 (tree_if_conversion): When versioning outer loop, ensure
15514 tree_if_conversion is performed also on the inner loop of the
15515 non-vectorizable outer loop copy.
15516 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
15517 LOOP_VECTORIZED in inner loop of the scalar outer loop and
15518 prevent vectorization of it.
15519 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
15520 the outer loop vectorization of the non-scalar version is attempted
15521 before vectorization of the inner loop in scalar version. If
15522 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
15523 vectorization of its inner loop.
15524 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
15525 has 2 inner loops, rename also on edges from bb whose single pred
15526 is outer_loop->header. Fix typo in function comment.
15527
15528 2017-01-09 Martin Sebor <msebor@redhat.com>
15529
15530 PR bootstrap/79033
15531 * asan.c (asan_emit_stack_protection): Increase local buffer size
15532 to avoid snprintf truncation warning.
15533
15534 2017-01-09 Andrew Pinski <apinski@cavium.com>
15535
15536 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
15537 to reference thunderx2t99 for the tuning structure
15538 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
15539 Rename to ...
15540 (thunderx2t99_extra_costs): This.
15541 * config/aarch64/aarch64-tune.md: Regenerate.
15542 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
15543 (vulcan_addrcost_table): This.
15544 (vulcan_regmove_cost): Rename to ...
15545 (thunderx2t99_regmove_cost): This.
15546 (vulcan_vector_cost): Rename to ...
15547 (thunderx2t99_vector_cost): this.
15548 (vulcan_branch_cost): Rename to ...
15549 (thunderx2t99_branch_cost): This.
15550 (vulcan_tunings): Rename to ...
15551 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
15552 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
15553
15554 2017-01-09 Martin Jambor <mjambor@suse.cz>
15555
15556 PR ipa/78365
15557 PR ipa/78599
15558 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
15559 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
15560 (propagate_vr_accross_jump_function): Use the above function for all
15561 value range computations for pass-through jump functions and type
15562 converasion from explicit value range values.
15563 (ipcp_propagate_stage): Do not attempt to deduce types of formal
15564 parameters from TYPE_ARG_TYPES.
15565 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
15566 (ipa_write_node_info): Stream type of the actual argument.
15567 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
15568
15569 2017-01-09 Martin Liska <mliska@suse.cz>
15570
15571 PR pch/78970
15572 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
15573 (lookup_compiler): Do not show error message with have_E.
15574
15575 2017-01-09 Jakub Jelinek <jakub@redhat.com>
15576
15577 PR tree-optimization/78938
15578 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
15579 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
15580 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
15581 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
15582 fixes.
15583
15584 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15585
15586 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
15587 is const0_rtx.
15588
15589 2017-01-09 Richard Biener <rguenther@suse.de>
15590
15591 PR tree-optimization/78997
15592 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
15593 name condition properly.
15594
15595 2017-01-09 Richard Biener <rguenther@suse.de>
15596
15597 PR debug/79000
15598 * dwarf2out.c (is_cxx): New overload with context.
15599 (is_naming_typedef_decl): Use it.
15600
15601 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
15602
15603 * invoke.texi (Option Summary): Correct spacing in option lists
15604 and add line breaks to fix over-long lines.
15605
15606 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
15607
15608 PR middle-end/17660
15609
15610 * extend.texi (Common Variable Attributes): Add xref to GCC
15611 Internals manual to explain mode attribute keywords.
15612
15613 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
15614
15615 PR other/16519
15616 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
15617 and Preprocessor Options.
15618 (Options for Linking): Document -pthread here....
15619 (RS/6000 and PowerPC Options): ...not here.
15620 (Solaris 2 Options): ...or here.
15621 * doc/cppopts.texi: Document -pthread.
15622
15623 2017-01-08 Martin Sebor <msebor@redhat.com>
15624
15625 PR middle-end/77708
15626 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
15627 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
15628 New member functions.
15629 (format_directive): Used them.
15630 (add_bytes): Same.
15631 (pass_sprintf_length::handle_gimple_call): Same.
15632 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
15633 to avoid truncation for any argument.
15634 (extract_affine_mul): Same.
15635 * tree.c (get_file_function_name): Same.
15636
15637 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
15638
15639 PR middle-end/77484
15640 * predict.def (PRED_INDIR_CALL): Set to 86.
15641
15642 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
15643
15644 PR preprocessor/54124
15645 * doc/cppopts.texi: Reformat -d subtable to list the full name
15646 of the options. Add cross-reference to the docs for the general
15647 compiler -d options.
15648 * doc/invoke.texi (Developer Options): Add cross-reference to the
15649 preprocessor-specific -d option documentation.
15650
15651 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
15652
15653 PR preprocessor/13498
15654 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
15655 redudant material, and reflect new command-line options.
15656 (System Headers): Likewise.
15657
15658 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
15659
15660 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
15661 -isystem, and -idirafter. Copy-edit.
15662 * doc/cppopts.texi: Copy-edit. Remove contradiction about
15663 default for -ftrack-macro-expansion. Delete obsolete and
15664 badly-formatted implementation details about -fdebug-cpp output.
15665 * doc/cppwarnopts.texi: Copy-edit.
15666
15667 2017-01-07 David Malcolm <dmalcolm@redhat.com>
15668
15669 PR c++/72803
15670 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
15671 that the transition from a max line width >= 1<<10 to narrower
15672 lines works correctly.
15673
15674 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
15675
15676 * doc/options.texi (PerFunction): New.
15677 * opt-functions.awk (switch_flags): Map both Optimization and
15678 PerFunction to CL_OPTIMIZATION.
15679 * opth-gen.awk: Test for PerFunction flag along with
15680 Optimization.
15681 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
15682 it only when the latter is present. Skip those that don't in
15683 the hash function generator.
15684 * common.opt (fvar-tracking): Mark as PerFunction instead of
15685 Optimization.
15686 (fvar-tracking-assignments): Likewise.
15687 (fvar-tracking-assignments-toggle): Likewise.
15688 (fvar-tracking-uninit): Likewise.
15689
15690 2017-01-07 Jakub Jelinek <jakub@redhat.com>
15691
15692 PR translation/79018
15693 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
15694 the and store.
15695
15696 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
15697
15698 PR target/57583
15699 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
15700 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
15701 TARGET_LONG_JUMP_TABLE_OFFSETS.
15702 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
15703 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
15704 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
15705 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
15706 * config/m68k/m68k.md (tablejump expander): Likewise.
15707 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
15708 TARGET_LONG_JUMP_TABLE_OFFSETS.
15709 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
15710 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
15711
15712 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
15713 David Holsgrove <david.holsgrove@xilinx.com>
15714
15715 * common/config/microblaze/microblaze-common.c
15716 (TARGET_EXCEPT_UNWIND_INFO): Remove.
15717 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
15718 New prototype.
15719 * config/microblaze/microblaze.c (microblaze_must_save_register)
15720 (microblaze_expand_epilogue, microblaze_return_addr): Handle
15721 calls_eh_return.
15722 (microblaze_eh_return): New function.
15723 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
15724 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
15725 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
15726 * config/microblaze/microblaze.md (eh_return): New pattern.
15727
15728 2017-01-06 Jakub Jelinek <jakub@redhat.com>
15729
15730 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
15731 GCC_DIAGNOSTIC_STRINGIFY): Define.
15732
15733 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
15734
15735 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
15736
15737 * config/arm/arm.md (<mcrr>): New.
15738 (<mrrc>): New.
15739 * config/arm/arm.c (arm_arch5te): New.
15740 (arm_option_override): Set arm_arch5te.
15741 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
15742 and mrrc2.
15743 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
15744 (arm_mcrr_qualifiers): ... this. New.
15745 (MRRC_QUALIFIERS): Define to...
15746 (arm_mrrc_qualifiers): ... this. New.
15747 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
15748 __arm_mrrc2): New.
15749 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
15750 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
15751 (MRRCI, mrrc, MRRC): New.
15752 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
15753 VUNSPEC_MRRC2): New.
15754
15755 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
15756
15757 * config/arm/arm.md (<mcr>): New.
15758 (<mrc>): New.
15759 * config/arm/arm.c (arm_coproc_builtin_available): Add
15760 support for mcr, mrc, mcr2 and mrc2.
15761 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
15762 (arm_mcr_qualifiers): ... this. New.
15763 (MRC_QUALIFIERS): Define to ...
15764 (arm_mrc_qualifiers): ... this. New.
15765 (MCR_QUALIFIERS): Define to ...
15766 (arm_mcr_qualifiers): ... this. New.
15767 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
15768 __arm_mrc2): New.
15769 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
15770 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
15771 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
15772 VUNSPEC_MRC2): New.
15773
15774 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
15775
15776 * config/arm/arm.md (*ldc): New.
15777 (*stc): New.
15778 (<ldc>): New.
15779 (<stc>): New.
15780 * config/arm/arm.c (arm_coproc_builtin_available): Add
15781 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
15782 (arm_coproc_ldc_stc_legitimate_address): New.
15783 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
15784 'qualifier_const_pointer'.
15785 (LDC_QUALIFIERS): Define to...
15786 (arm_ldc_qualifiers): ... this. New.
15787 (STC_QUALIFIERS): Define to...
15788 (arm_stc_qualifiers): ... this. New.
15789 * config/arm/arm-protos.h
15790 (arm_coproc_ldc_stc_legitimate_address): New.
15791 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
15792 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
15793 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
15794 stc2, stcl, stc2l): New.
15795 * config/arm/constraints.md (Uz): New.
15796 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
15797 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
15798 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
15799 VUNSPEC_STC2L): New.
15800
15801 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
15802
15803 * config/arm/arm.md (<cdp>): New.
15804 * config/arm/arm.c (neon_const_bounds): Rename this ...
15805 (arm_const_bounds): ... this.
15806 (arm_coproc_builtin_available): New.
15807 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
15808 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
15809 (CDP_QUALIFIERS): Define to...
15810 (arm_cdp_qualifiers): ... this. New.
15811 (void_UP): Define.
15812 (arm_expand_builtin_args): Add case for 6 arguments.
15813 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
15814 (arm_const_bounds): ... this.
15815 (arm_coproc_builtin_available): New.
15816 * config/arm/arm_acle.h (__arm_cdp): New.
15817 (__arm_cdp2): New.
15818 * config/arm/arm_acle_builtins.def (cdp): New.
15819 (cdp2): New.
15820 * config/arm/iterators.md (CDPI,CDP,cdp): New.
15821 * config/arm/neon.md: Rename all 'neon_const_bounds' to
15822 'arm_const_bounds'.
15823 * config/arm/types.md (coproc): New.
15824 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
15825 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
15826 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
15827 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
15828
15829 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
15830
15831 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
15832 (UBINOP_QUALIFIERS): New.
15833 (si_UP): Define.
15834 (acle_builtin_data): New. Change comment.
15835 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
15836 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
15837 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
15838 arm_acle_builtins.def.
15839 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
15840 (arm_init_acle_builtins): New.
15841 (CRC32_BUILTIN): Remove.
15842 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
15843 crc32cb, crc32ch and crc32cw.
15844 (arm_init_crc32_builtins): Remove.
15845 (arm_init_builtins): Use arm_init_acle_builtins rather
15846 than arm_init_crc32_builtins.
15847 (arm_expand_acle_builtin): New.
15848 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
15849 * config/arm/arm_acle_builtins.def: New.
15850
15851 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
15852
15853 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
15854 (arm_builtin_datum): ... this.
15855 (arm_init_neon_builtin): Rename to ...
15856 (arm_init_builtin): ... this. Add a new parameters PREFIX
15857 and USE_SIG_IN_NAME.
15858 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
15859 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
15860 'arm_builtin_datum'.
15861 (arm_init_vfp_builtins): Likewise.
15862 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
15863 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
15864 (arm_expand_neon_args): Rename to ...
15865 (arm_expand_builtin_args): ... this. Rename builtin_arg
15866 enum values and differentiate between ARG_BUILTIN_MEMORY
15867 and ARG_BUILTIN_NEON_MEMORY.
15868 (arm_expand_neon_builtin_1): Rename to ...
15869 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
15870 values, arm_expand_builtin_args and add bool parameter NEON.
15871 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
15872 (arm_expand_vfp_builtin): Likewise.
15873 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
15874
15875 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
15876
15877 PR middle-end/77484
15878 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
15879 * predict.c (tree_estimate_probability_bb): Reverse direction of
15880 polymorphic call predictor.
15881
15882 2017-01-06 David Malcolm <dmalcolm@redhat.com>
15883
15884 * passes.c (execute_one_pass): Split out pass-skipping logic into...
15885 (determine_pass_name_match): ...this new function and...
15886 (should_skip_pass_p): ...this new function.
15887
15888 2017-01-06 Nathan Sidwell <nathan@acm.org>
15889
15890 * ipa-visibility.c (function_and_variable_visibility): Reformat
15891 comments and long lines. Remove extrneous if.
15892 * symtab.c (symtab_node::make_decl_local): Fix code format.
15893 (symtab_node::set_section_for_node): Fix comment typo.
15894
15895 2017-01-06 Martin Liska <mliska@suse.cz>
15896
15897 PR bootstrap/79003
15898 * lra-constraints.c: Rename invariant to lra_invariant.
15899 * predict.c (set_even_probabilities): Initialize e to NULL.
15900
15901 2017-01-05 Martin Sebor <msebor@redhat.com>
15902
15903 PR tree-optimization/78910
15904 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
15905 (format_integer): Correct off-by-one error in the handling
15906 of precision with negative numbers in signed conversions..
15907
15908 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
15909
15910 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
15911
15912 2017-01-05 Jakub Jelinek <jakub@redhat.com>
15913
15914 PR tree-optimization/71016
15915 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
15916 factor_out_conditional_conversion. Formatting fix.
15917 (factor_out_conditional_conversion): Add cond_stmt argument.
15918 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
15919 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
15920 Formatting fix.
15921
15922 2017-01-05 David Malcolm <dmalcolm@redhat.com>
15923
15924 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
15925 read-rtl-function.o, and selftest-rtl.o.
15926 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
15927 (selftest::aarch64_test_loading_full_dump): New function.
15928 (selftest::aarch64_run_selftests): New function.
15929 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
15930 selftest::aarch64_run_selftests.
15931 * config/i386/i386.c
15932 (selftest::ix86_test_loading_dump_fragment_1): New function.
15933 (selftest::ix86_test_loading_call_insn): New function.
15934 (selftest::ix86_test_loading_full_dump): New function.
15935 (selftest::ix86_test_loading_unspec): New function.
15936 (selftest::ix86_run_selftests): Call the new functions.
15937 * emit-rtl.c (maybe_set_max_label_num): New function.
15938 * emit-rtl.h (maybe_set_max_label_num): New decl.
15939 * function.c (instantiate_decls): Guard call to
15940 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
15941 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
15942 "static".
15943 * gensupport.c (gen_reader::gen_reader): Pass "false"
15944 for new "compact" param of rtx_reader.
15945 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
15946 rather than an empty string for NULL strings.
15947 * read-md.c: Potentially include config.h rather than bconfig.h.
15948 Wrap include of errors.h with #ifdef GENERATOR_FILE.
15949 (have_error): New global, copied from errors.c.
15950 (md_reader::read_name): Rename to...
15951 (md_reader::read_name_1): ...this, adding "out_loc" param,
15952 and converting "missing name or number" to returning false, rather
15953 than failing.
15954 (md_reader::read_name): Reimplement in terms of read_name_1.
15955 (md_reader::read_name_or_nil): New function.
15956 (md_reader::read_string): Handle "(nil)" by returning NULL.
15957 (md_reader::md_reader): Add new param "compact".
15958 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
15959 (md_reader::read_file): New method.
15960 * read-md.h (md_reader::md_reader): Add new param "compact".
15961 (md_reader::read_file): New method.
15962 (md_reader::is_compact): New accessor.
15963 (md_reader::read_name): Convert return type from void to file_location.
15964 (md_reader::read_name_or_nil): New decl.
15965 (md_reader::read_name_1): New decl.
15966 (md_reader::m_compact): New field.
15967 (noop_reader::noop_reader): Pass "false" for new "compact" param
15968 of rtx_reader.
15969 (rtx_reader::rtx_reader): Add new "compact" param.
15970 (rtx_reader::read_rtx_operand): Make virtual and convert return
15971 type from void to rtx.
15972 (rtx_reader::read_until): New decl.
15973 (rtx_reader::handle_any_trailing_information): New virtual function.
15974 (rtx_reader::postprocess): New virtual function.
15975 (rtx_reader::finalize_string): New virtual function.
15976 (rtx_reader::m_in_call_function_usage): New field.
15977 (rtx_reader::m_reuse_rtx_by_id): New field.
15978 * read-rtl-function.c: New file.
15979 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
15980 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
15981 (selftest::verify_three_block_rtl_cfg): New decl.
15982 * read-rtl-function.h: New file.
15983 * read-rtl.c: Potentially include config.h rather than bconfig.h.
15984 For host, include function.h, memmodel.h, and emit-rtl.h.
15985 (one_time_initialization): New function.
15986 (struct compact_insn_name): New struct.
15987 (compact_insn_names): New array.
15988 (find_code): Handle insn codes in compact dumps.
15989 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
15990 (bind_subst_iter_and_attr): Likewise.
15991 (add_condition_to_string): Likewise.
15992 (add_condition_to_rtx): Likewise.
15993 (apply_attribute_uses): Likewise.
15994 (add_current_iterators): Likewise.
15995 (apply_iterators): Likewise.
15996 (initialize_iterators): Guard usage of apply_subst_iterator with
15997 #ifdef GENERATOR_FILE.
15998 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
15999 (md_reader::read_mapping): Likewise.
16000 (add_define_attr_for_define_subst): Likewise.
16001 (add_define_subst_attr): Likewise.
16002 (read_subst_mapping): Likewise.
16003 (check_code_iterator): Likewise.
16004 (rtx_reader::read_rtx): Likewise. Move one-time initialization
16005 logic to...
16006 (one_time_initialization): New function.
16007 (rtx_reader::read_until): New method.
16008 (read_flags): New function.
16009 (parse_reg_note_name): New function.
16010 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
16011 Handle reuse_rtx ids.
16012 Wrap iterator lookup within #ifdef GENERATOR_FILE.
16013 Add parsing support for RTL dumps, mirroring the special-cases in
16014 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
16015 values, and calling handle_any_trailing_information.
16016 (rtx_reader::read_rtx_operand): Convert return type from void
16017 to rtx, returning return_rtx. Handle case 'e'. Call
16018 finalize_string on XSTR and XTMPL fields.
16019 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
16020 "(nil)" values were omitted. Call the postprocess vfunc on the
16021 return_rtx.
16022 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
16023 class ctor. Initialize m_in_call_function_usage. Call
16024 one_time_initialization.
16025 * rtl-tests.c (selftest::test_uncond_jump): Call
16026 set_new_first_and_last_insn.
16027 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
16028 * selftest-rtl.c: New file.
16029 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
16030 (selftest::get_insn_by_uid): New decl.
16031 * selftest-run-tests.c (selftest::run_tests): Call
16032 read_rtl_function_c_tests.
16033 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
16034 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
16035 dumps.
16036
16037 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
16038
16039 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
16040 operands in a special way. Assert that pos+len <= mode precision.
16041
16042 2017-01-05 Jakub Jelinek <jakub@redhat.com>
16043
16044 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
16045 3 argument Alias with unlimited for the negative form.
16046 (fno-vect-cost-model): Removed.
16047
16048 2017-01-05 Martin Liska <mliska@suse.cz>
16049
16050 * hsa-gen.c (gen_hsa_divmod): New function.
16051 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
16052
16053 2017-01-05 Martin Liska <mliska@suse.cz>
16054
16055 PR pch/78970
16056 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
16057 header.
16058
16059 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16060
16061 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
16062 small constant length operands.
16063
16064 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16065
16066 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
16067 between loop iterations.
16068
16069 2017-01-05 Martin Liska <mliska@suse.cz>
16070
16071 PR sanitizer/78815
16072 * gimplify.c (gimplify_decl_expr): Compare to
16073 asan_poisoned_variables instread of checking flags.
16074 (gimplify_target_expr): Likewise.
16075 (gimplify_expr): Likewise.
16076 (gimplify_function_tree): Conditionally initialize
16077 asan_poisoned_variables.
16078
16079 2017-01-04 Jeff Law <law@redhat.com>
16080
16081 PR tree-optimizatin/78812
16082 * rtl.h (contains_mem_rtx_p): Prototype.
16083 * ifcvt.c (containts_mem_rtx_p): Move from here to...
16084 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
16085 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
16086 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
16087 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
16088
16089 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
16090
16091 * input.c (assert_char_at_range): Default-initialize actual_range.
16092
16093 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
16094
16095 * df-scan.c (df_ref_create_structure): Make regno unsigned,
16096 to match the caller.
16097
16098 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
16099
16100 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
16101 insns after final jump in test to emit dummy move.
16102
16103 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
16104
16105 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
16106 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
16107
16108 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
16109
16110 * multiple_target.c (create_dispatcher_calls): Init e_next.
16111 * tree-ssa-loop-split.c (split_loop): Init border.
16112 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
16113 scalar_type.
16114
16115 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
16116
16117 PR target/71977
16118 PR target/70568
16119 PR target/78823
16120 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
16121 (altivec_register_operand): Do not return true if the operand
16122 contains a SUBREG mixing SImode and SFmode.
16123 (vsx_register_operand): Likewise.
16124 (vsx_reg_sfsubreg_ok): New predicate.
16125 (vfloat_operand): Do not return true if the operand contains a
16126 SUBREG mixing SImode and SFmode.
16127 (vint_operand): Likewise.
16128 (vlogical_operand): Likewise.
16129 (gpc_reg_operand): Likewise.
16130 (int_reg_operand): Likewise.
16131 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
16132 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
16133 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
16134 SImode and SFmode.
16135 (rs6000_emit_move_si_sf_subreg): New helper function.
16136 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
16137 fixup SUBREGs involving SImode and SFmode.
16138 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
16139 numbers for the new peephole2 optimization.
16140 (peephole2 for SFmode unions): New peephole2 to optimize cases in
16141 the GLIBC math library that do AND/IOR/XOR operations on single
16142 precision floating point.
16143 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
16144 target macros to say whether we need to avoid SUBREGs mixing
16145 SImode and SFmode.
16146 (TARGET_ALLOW_SF_SUBREG): Likewise.
16147 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
16148 (UNSPEC_SI_FROM_SF): Likewise.
16149 (iorxor): Change spacing.
16150 (and_ior_xor): New iterator for AND, IOR, and XOR.
16151 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
16152 (movdi_from_sf_zero_ext): Likewise.
16153 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
16154 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
16155 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
16156 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
16157 (fms<mode>4): Likewise.
16158 (fnma<mode>4): Likewise.
16159 (fnms<mode>4): Likewise.
16160 (nfma<mode>4): Likewise.
16161 (nfms<mode>4): Likewise.
16162
16163 2017-01-04 Marek Polacek <polacek@redhat.com>
16164
16165 PR c++/64767
16166 * doc/invoke.texi: Document -Wpointer-compare.
16167
16168 2017-01-04 Jakub Jelinek <jakub@redhat.com>
16169
16170 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
16171 RejectNegative.
16172
16173 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
16174 descriptions for -gdwarf-5 and emit them as uleb128 instead of
16175 2-byte data.
16176
16177 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
16178
16179 PR target/78056
16180 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
16181 documentation of the powerpc_popcntb_ok attribute.
16182 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16183 code to issue warning messages if a requested CPU configuration is
16184 not supported by the binary (assembler and loader) toolchain.
16185 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
16186 made to define a built-in function that has been disabled.
16187 (paired_init_builtins): Add assertion to prevent ICE if attempt is
16188 made to define a built-in function that has been disabled.
16189 (altivec_init_builtins): Add comment explaining why definition
16190 of the DST built-in functions is not preceded by an assertion
16191 check. Add assertions to prevent ICE if attempts are made to
16192 define an altivec predicate or an abs* built-in function that has
16193 been disabled.
16194 (htm_init_builtins): Add comment explaining why definition of the
16195 htm built-in functions is not preceded by an assertion check.
16196
16197 2017-01-04 Jeff Law <law@redhat.com>
16198
16199 PR tree-optimizatin/67955
16200 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
16201 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
16202 the points-to solution does not include pt_null. Use DECL_PT_UID
16203 unconditionally.
16204
16205 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
16206
16207 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
16208 Use gen_int_mode instead of gen_lopwart for const_int operands.
16209
16210 2017-01-04 Jakub Jelinek <jakub@redhat.com>
16211
16212 PR tree-optimization/71563
16213 * match.pd: Simplify X << Y into X if Y is known to be 0 or
16214 out of range value - has low bits known to be zero.
16215
16216 2017-01-04 Alan Modra <amodra@gmail.com>
16217
16218 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
16219 * configure: Regenerate.
16220 * config.in: Regenerate.
16221
16222 2017-01-04 Jakub Jelinek <jakub@redhat.com>
16223
16224 PR bootstrap/77569
16225 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
16226 a substring of the message, but strcmp with the whole message. Ifdef
16227 ENABLE_NLS, translate the message first using dgettext.
16228
16229 2017-01-03 Jeff Law <law@redhat.com>
16230
16231 PR tree-optimizatin/78856
16232 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
16233 (mark_threaded_blocks): Remove code to truncate thread paths that
16234 cross multiple loop headers. Instead invalidate the cached loop
16235 iteration information and handle case of a thread path walking
16236 into an irreducible region.
16237
16238 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16239
16240 PR target/78900
16241 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
16242 assertions. Add support for doing the signbit if the IEEE 128-bit
16243 floating point value is in a GPR.
16244 * config/rs6000/rs6000.md (Fsignbit): Delete.
16245 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
16246 Update the length attribute if the value is in a GPR.
16247 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
16248 the sign or zero extension instruction, since the value is always 0/1.
16249 (signbit<mode>2_dm2): Delete using <Fsignbit>.
16250
16251 PR target/78953
16252 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
16253 extracting SImode to a GPR register so that we can generate a
16254 store, limit the vector to be in a traditional Altivec register
16255 for the vextuwrx instruction.
16256
16257 2017-01-03 Ian Lance Taylor <iant@google.com>
16258
16259 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
16260
16261 2017-01-03 Martin Sebor <msebor@redhat.com>
16262
16263 PR tree-optimization/78696
16264 * gimple-ssa-sprintf.c (format_floating): Correct handling of
16265 precision. Use MPFR for %f for greater fidelity. Correct handling
16266 of %g.
16267 (pass_sprintf_length::compute_format_length): Set width and precision
16268 specified by asrerisk to void_node for vararg functions.
16269 (try_substitute_return_value): Adjust dump output.
16270
16271 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
16272
16273 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
16274
16275 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
16276
16277 * doc/invoke.texi (SPARC options): Document -mlra as the default.
16278 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
16279 -mlra/-mno-lra was passed to the compiler.
16280
16281 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
16282
16283 PR rtl-optimization/65618
16284 * emit-rtl.c (try_split): Move initialization of "before" and
16285 "after" to just before the call to emit_insn_after_setloc.
16286
16287 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
16288
16289 * doc/md.texi (Standard Names): Remove reference to Java frontend.
16290
16291 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
16292
16293 * dwarf2out.c (gen_enumeration_type_die): When
16294 -gno-strict-dwarf, add a DW_AT_encoding attribute.
16295
16296 2017-01-03 Jakub Jelinek <jakub@redhat.com>
16297
16298 PR tree-optimization/78965
16299 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
16300 Change first argument from const call_info & to call_info &. For %n
16301 set info.nowrite to false.
16302
16303 PR middle-end/78901
16304 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
16305 possibly throwing calls.
16306
16307 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
16308 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
16309 and fns handling, rather than in a separate case SSA_NAME.
16310
16311 2017-01-02 Jeff Law <law@redhat.com>
16312
16313 * config/darwin-driver.c (darwin_driver_init): Const-correctness
16314 fixes for first_period and second_period variables.
16315
16316 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
16317
16318 PR target/78967
16319 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
16320 (*insvqi_1): New insn pattern.
16321 (*insvqi_1_mem_rex64): Ditto.
16322 (*insvqi_2): Ditto.
16323 (*insvqi_3): Rename from *insvqi.
16324
16325 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
16326
16327 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
16328
16329 * doc/cfg.texi (Edges): Remove reference to Java.
16330 (Maintaining the CFG): Ditto.
16331
16332 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
16333
16334 PR middle-end/77674
16335 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
16336 transparent aliases.
16337
16338 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
16339
16340 PR middle-end/77484
16341 * predict.def (PRED_CALL): Update hitrate.
16342 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
16343 * predict.c (tree_estimate_probability_bb): Split CALL predictor
16344 into direct/indirect/polymorphic variants.
16345
16346 2017-01-01 Jakub Jelinek <jakub@redhat.com>
16347
16348 Update copyright years.
16349
16350 * gcc.c (process_command): Update copyright notice dates.
16351 * gcov-dump.c (print_version): Ditto.
16352 * gcov.c (print_version): Ditto.
16353 * gcov-tool.c (print_version): Ditto.
16354 * gengtype.c (create_file): Ditto.
16355 * doc/cpp.texi: Bump @copying's copyright year.
16356 * doc/cppinternals.texi: Ditto.
16357 * doc/gcc.texi: Ditto.
16358 * doc/gccint.texi: Ditto.
16359 * doc/gcov.texi: Ditto.
16360 * doc/install.texi: Ditto.
16361 * doc/invoke.texi: Ditto.
16362 \f
16363 Copyright (C) 2017 Free Software Foundation, Inc.
16364
16365 Copying and distribution of this file, with or without modification,
16366 are permitted in any medium without royalty provided the copyright
16367 notice and this notice are preserved.