[SFN] Introduce -gstatement-frontiers option, enable debug markers
[gcc.git] / gcc / ChangeLog
1 2017-12-12 Alexandre Oliva <aoliva@redhat.com>
2
3 * common.opt (gstatement-frontiers): New, setting
4 debug_nonbind_markers_p.
5 * rtl.h (MAY_HAVE_DEBUG_MARKER_INSNS): Activate.
6 * toplev.c (process_options): Autodetect value for debug statement
7 frontiers option.
8 * tree.h (MAY_HAVE_DEBUG_MARKER_STMTS): Activate.
9 * doc/invoke.texi (gstatement-frontiers, gno-statement-frontiers): New.
10
11 * cfgexpand.c (expand_gimple_basic_block): Handle begin stmt
12 markers. Integrate source bind into debug stmt expand loop.
13 (pass_expand::execute): Check debug marker limit. Avoid deep
14 TER and expand debug locations for debug bind insns only.
15 * cse.c (insn_live_p): Keep nonbind markers and debug bindings
16 followed by them.
17 * df-scan.c (df_insn_delete): Accept out-of-block debug insn.
18 * final.c (reemit_insn_block_notes): Take current block from
19 nonbind markers. Declare note where it's first set.
20 (final_scan_insn): Handle begin stmt notes. Emit is_stmt according to
21 begin stmt markers if enabled.
22 (notice_source_line): Handle nonbind markers. Fail if their
23 location is unknown or that of builtins.
24 (rest_of_handle_final): Convert begin stmt markers to notes if
25 var-tracking didn't run.
26 (rest_of_clean_state): Skip begin stmt markers.
27 * gimple-pretty-print.c (dump_gimple_debug): Handle begin stmt
28 markers.
29 * function.c (allocate_struct_function): Set begin_stmt_markers.
30 * function.h (struct function): Add debug_marker_count counter
31 and debug_nonbind_markers flag.
32 * gimple-iterator.c (gsi_remove): Adjust debug_marker_count.
33 * gimple-low.c (lower_function_body): Adjust
34 debug_nonbind_markers.
35 (lower_stmt): Drop or skip gimple debug stmts.
36 (lower_try_catch): Skip debug stmts.
37 * gimple.c (gimple_build_debug_begin_stmt): New.
38 (gimple_copy): Increment debug_marker_count if copying one.
39 * gimple.h (gimple_build_debug_begin_stmt): Declare.
40 * gimplify.c (rexpr_location): New.
41 (rexpr_has_location): New.
42 (warn_switch_unreachable_r): Handle gimple debug stmts.
43 (shortcut_cond_r): Call expr_location.
44 (find_goto): New.
45 (find_goto_label): New.
46 (shortcut_cond_expr): Call expr_has_location, expr_location, and
47 find_goto_label.
48 (gimplify_cond_expr): Call find_goto_label, expr_has_location, and
49 expr_location.
50 (gimplify_expr): Handle begin stmt markers. Reject debug expr decls.
51 * langhooks-def.h (LANG_HOOKS_EMITS_BEGIN_STMT): New. Add to...
52 (LANG_HOOKS_INITIALIZER): ... this.
53 * langhooks.h (struct lang_hooks): Add emits_begin_stmt.
54 * lra-contraints.c (inherit_reload_reg): Tolerate between-blocks
55 debug insns.
56 (update_ebb_live_info): Skip debug insn markers.
57 * lra.c (debug_insn_static_data): Rename to...
58 (debug_bind_static_data): ... this.
59 (debug_marker_static_data): New.
60 (lra_set_insn_recog_data): Select one of the above depending
61 on debug insn kind.
62 (lra_update_isn_regno_info): Don't assume debug insns have
63 freqs.
64 (push_insns): Skip debug insns.
65 * lto-streamer-in.c (input_function): Drop debug stmts
66 depending on active options. Adjust debug_nonbind_markers.
67 * params.def (PARAM_MAX_DEBUG_MARKER_COUNT): New.
68 * print-rtl.c (rtx_writer::print_rtx_operand_code_0): Handle
69 begin stmt marker notes.
70 (print_insn): Likewise.
71 * recog.c (extract_insn): Recognize rtl for debug markers.
72 * rtl.def (DEBUG_MARKER): New.
73 * tree-inline.c: Include params.h.
74 (remap_gimple_stmt): Handle nonbind markers.
75 (maybe_move_debug_stmts_to_successors): Likewise.
76 (copy_debug_stmt): Likewise.
77 * tree-iterator.c (append_to_statement_list_1): Append begin stmt
78 markers regardless of no side effects.
79 (tsi_link_before): Don't update container's side effects when adding
80 a begin stmt marker.
81 (tsi_link_after): Likewise.
82 (expr_first): Skip begin stmt markers.
83 (expr_last): Likewise.
84 * tree-pretty-print (dump_generic_node): Handle begin stmt markers.
85 * tree-ssa-threadedge.c (propagate_threaded_block_debug_info):
86 Disregard nonbind markers.
87 * tree.c (make_node_stat): Don't set side effects for begin stmt
88 markers.
89 (build1_stat): Likewise.
90 * tree.def (DEBUG_BEGIN_STMT): New.
91 * tree.h (GOTO_DESTINATION): Require a GOTO_EXPR.
92 * var-tracking.c (delete_debug_insns): Renamed to...
93 (delete_vta_debug_insns): ... this.
94 (reemit_marker_as_note): New.
95 (vt_initialize): Reemit markers.
96 (delete_vta_debug_insns): Likewise.
97 (vt_debug_insns_local): Reemit or delete markers.
98 (variable_tracking_main_1): Likewise.
99 * doc/generic.texi (DEBUG_BEGIN_STMT): Document.
100 * doc/gimple.texi (gimple_debug_begin_stmt_p): New.
101 (gimple_debug_nonbind_marker_p): New.
102 (gimple_build_debug_bind): Adjust.
103 (gimple_build_debug_begin_stmt): New.
104 * doc/invoke.texi (max-debug-marker-count): New param.
105 * doc/rtl.texi (debug_implicit_ptr, entry_value): New.
106 (debug_parameter_ref, debug_marker): New.
107 (NOTE_INSN_BEGIN_STMT): New.
108 (DEBUG_INSN): Describe begin stmt markers.
109
110 * cfgbuild.c (find_bb_boundaries): Don't purge dead edges if,
111 without debug insns, we wouldn't, but clean up debug insns
112 after a control flow insn nevertheless.
113
114 * cfgcleanup.c (delete_unreachable_blocks): Use alternate
115 block removal order if MAY_HAVE_DEBUG_BIND_INSNS.
116 * cfgexpand.c (label_rtx_for_bb): Skip debug insns.
117 * cfgrtl.c (try_redirect_by_replacing_jump): Skip debug insns.
118 (rtl_tidy_fallthru_edge): Likewise.
119 (rtl_verify_fallthru): Likewise.
120 (rtl_verify_bb_layout): Likewise.
121 (skip_insns_after_block): Likewise.
122 (duplicate_insn_chain): Use DEBUG_BIND_INSN_P.
123 * dwarf2out.c: Include print-rtl.h.
124 (dwarf2out_next_real_insn): New.
125 (dwarf2out_var_location): Call it. Disregard begin stmt markers.
126 Dump debug binds in asm comments.
127 * gimple-iterator.c (gimple_find_edge_insert_loc): Skip debug stmts.
128 * gimple-iterator.h (gsi_start_bb_nondebug): Remove; adjust
129 callers to use gsi_start_nondebug_bb instead.
130 (gsi_after_labels): Skip gimple debug stmts.
131 (gsi_start_nondebug): New.
132 * gimple-loop-interchange.c (find_deps_in_bb_for_stmt): Adjust.
133 (proper_loop_form_for_interchange): Adjust.
134 * gimple-low.c (gimple_seq_may_fallthru): Take last nondebug stmt.
135 * gimple.h (gimple_seq_last_nondebug_stmt): New.
136 * gimplify.c (last_stmt_in_scope): Skip debug stmts.
137 (collect_fallthrough_labels): Likewise.
138 (should_warn_for_implicit_fallthrough): Likewise.
139 (warn_implicit_fallthrough_r): Likewise.
140 (expand_FALLTHROUGH_r): Likewise.
141 * graphite-isl-ast-to-gimple.c (gsi_insert_earliest): Adjust.
142 (graphite_copy_stmts_from_block): Skip nonbind markers.
143 * haifa-sched.c (sched_extend_bb): Skip debug insns.
144 * ipa-icf-gimple.c (func_checker::compare_bb): Adjust.
145 * jump.c (clean_barriers): Skip debug insns.
146 * omp-expand.c (expand_parallel_call): Skip debug insns.
147 (expand_task_call): Likewise.
148 (remove_exit_barrier): Likewise.
149 (expand_omp_taskreg): Likewise.
150 (expand_omp_for_init_counts): Likewise.
151 (expand_omp_for_generic): Likewise.
152 (expand_omp_for_static_nochunk): Likewise.
153 (expand_omp_for_static_chunk): Likewise.
154 (expand_omp_simd): Likewise.
155 (expand_omp_taskloop_for_outer): Likewise.
156 (expand_omp_taskloop_for_inner): Likewise.
157 (expand_oacc_for): Likewise.
158 (expand_omp_sections): Likewise.
159 (expand_omp_single): Likewise.
160 (expand_omp_synch): Likewise.
161 (expand_omp_atomic_load): Likewise.
162 (expand_omp_atomic_store): Likewise.
163 (expand_omp_atomic_fetch_op): Likewise.
164 (expand_omp_atomic_pipeline): Likewise.
165 (expand_omp_atomic_mutex): Likewise.
166 (expand_omp_target): Likewise.
167 (grid_expand_omp_for_loop): Likewise.
168 (grid_expand_target_grid_body): Likewise.
169 (build_omp_regions_1): Likewise.
170 * omp-low.c (check_combined_parallel): Skip debug stmts.
171 * postreload.c (fixup_debug_insns): Skip nonbind debug insns.
172 * regcprop.c (find_oldest_value_reg): Ensure REGNO is not a pseudo.
173 * sese.c (sese_trivially_empty_bb_p): Call is_gimple_debug in
174 test.
175 * tree-cfg.c (make_blobs_1): Skip debug stmts.
176 (make_edges): Likewise.
177 (cleanup_dead_labels): Likewise.
178 (gimple_can_merge_blocks_p): Likewise.
179 (stmt_starts_bb_p): Likewise.
180 (gimple_block_label): Likewise.
181 (gimple_redirect_edge_and_branch): Likewise.
182 * tree-cfgcleanup.c (remove_forwarder_block): Rearrange skipping
183 of debug stmts.
184 (execute_cleanup_cfg_post_optimizing): Dump enumerated decls with
185 TDF_SLIM.
186 * tree-pretty-print (print_declaration): Omit initializer in slim
187 dumps.
188 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark begin stmt
189 markers.
190 (eliminate_unnecessary_stmts): Stabilize block removal order.
191 * tree-ssa-tail-merge.c (find_duplicate): Skip debug stmts.
192 * var-tracking.c (get_first_insn): New.
193 (vt_emit_notes): Call it.
194 (vt_initialize): Walk any insns before the first BB.
195 (delete_debug_insns): Likewise.
196
197 * gimple.h (enum gimple_debug_subcode): Add
198 GIMPLE_DEBUG_BEGIN_STMT.
199 (gimple_debug_begin_stmt_p): New.
200 (gimple_debug_nonbind_marker_p): New.
201 * tree.h (MAY_HAVE_DEBUG_MARKER_STMTS): New.
202 (MAY_HAVE_DEBUG_BIND_STMTS): Renamed from....
203 (MAY_HAVE_DEBUG_STMTS): ... this. Check both.
204 * insn-notes.def (BEGIN_STMT): New.
205 * rtl.h (MAY_HAVE_DEBUG_MARKER_INSNS): New.
206 (MAY_HAVE_DEBUG_BIND_INSNS): Renamed from....
207 (MAY_HAVE_DEBUG_INSNS): ... this. Check both.
208 (NOTE_MARKER_LOCATION, NOTE_MARKER_P): New.
209 (DEBUG_BIND_INSN_P, DEBUG_MARKER_INSN_P): New.
210 (INSN_DEBUG_MARKER_KIND): New.
211 (GEN_RTX_DEBUG_MARKER_BEGIN_STMT_PAT): New.
212 (INSN_VAR_LOCATION): Check for VAR_LOCATION.
213 (INSN_VAR_LOCATION_PTR): New.
214 * cfgexpand.c (expand_debug_locations): Handle debug bind insns
215 only.
216 (expand_gimple_basic_block): Likewise. Emit debug temps for TER
217 deps only if debug bind insns are enabled.
218 (pass_expand::execute): Avoid deep TER and expand
219 debug locations for debug bind insns only.
220 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Narrow
221 debug stmts special handling down to debug bind stmts.
222 * combine.c (try_combine): Narrow debug insns special handling
223 down to debug bind insns.
224 * cse.c (delete_trivially_dead_insns): Handle debug bindings.
225 Narrow debug insns preexisting special handling down to debug
226 bind insns.
227 * dce.c (rest_of_handle_ud_dce): Narrow debug insns special
228 handling down to debug bind insns.
229 * function.c (instantiate_virtual_regs): Skip debug markers,
230 adjust handling of debug binds.
231 * gimple-ssa-backprop.c (backprop::prepare_change): Try debug
232 temp insertion iff MAY_HAVE_DEBUG_BIND_STMTS.
233 * haifa-sched.c (schedule_insn): Narrow special handling of debug
234 insns to debug bind insns.
235 * ipa-param-manipulation.c (ipa_modify_call_arguments): Narrow
236 special handling of debug stmts to debug bind stmts.
237 * ipa-split.c (split_function): Likewise.
238 * ira.c (combine_and_move_insns): Adjust debug bind insns only.
239 * loop-unroll.c (apply_opt_in_copies): Adjust tests on bind
240 debug insns.
241 * reg-stack.c (convert_regs_1): Use DEBUG_BIND_INSN_P.
242 * regrename.c (build_def_use): Likewise.
243 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
244 (pass_cprop_hardreg): Narrow special casing of debug insns to
245 debug bind insns.
246 * regstat.c (regstat_init_n_sets_and_refs): Likewise.
247 * reload1.c (reload): Likewise.
248 * sese.c (sese_insert_phis_for_liveouts): Narrow special
249 casing of debug stmts to debug bind stmts.
250 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
251 * ssa-iterators.h (num_imm_uses): Likewise.
252 * tree-cfg.c (gimple_merge_blocks): Narrow special casing of
253 debug stmts to debug bind stmts.
254 * tree-inline.c (tree_function_versioning): Narrow special casing
255 of debug stmts to debug bind stmts.
256 * tree-loop-distribution.c (generate_loops_for_partition):
257 Narrow special casing of debug stmts to debug bind stmts.
258 * tree-sra.c (analyze_access_subtree): Narrow special casing
259 of debug stmts to debug bind stmts.
260 * tree-ssa-dce.c (remove_dead_stmt): Narrow special casing of debug
261 stmts to debug bind stmts.
262 * tree-ssa-loop-ivopt.c (remove_unused_ivs): Narrow special
263 casing of debug stmts to debug bind stmts.
264 * tree-ssa-reassoc.c (reassoc_remove_stmt): Likewise.
265 * tree-ssa-tail-merge.c (tail_merge_optimize): Narrow special
266 casing of debug stmts to debug bind stmts.
267 * tree-ssa-threadedge.c (propagate_threaded_block_debug_info):
268 Likewise.
269 * tree-ssa.c (flush_pending_stmts): Narrow special casing of
270 debug stmts to debug bind stmts.
271 (gimple_replace_ssa_lhs): Likewise.
272 (insert_debug_temp_for_var_def): Likewise.
273 (insert_debug_temps_for_defs): Likewise.
274 (reset_debug_uses): Likewise.
275 * tree-ssanames.c (release_ssa_name_fn): Likewise.
276 * tree-vect-loop-manip.c (adjust_debug_stmts_now): Likewise.
277 (adjust_debug_stmts): Likewise.
278 (adjust_phi_and_debug_stmts): Likewise.
279 (vect_do_peeling): Likewise.
280 * tree-vect-loop.c (vect_transform_loop): Likewise.
281 * valtrack.c (propagate_for_debug): Use BIND_DEBUG_INSN_P.
282 * var-tracking.c (adjust_mems): Narrow special casing of debug
283 insns to debug bind insns.
284 (dv_onepart_p, dataflow_set_clar_at_call, use_type): Likewise.
285 (compute_bb_dataflow, vt_find_locations): Likewise.
286 (vt_expand_loc, emit_notes_for_changes): Likewise.
287 (vt_init_cfa_base): Likewise.
288 (vt_emit_notes): Likewise.
289 (vt_initialize): Likewise.
290 (vt_finalize): Likewise.
291
292 * emit-rtl.c (next_nondebug_insn, prev_nondebug_insn): Reorder.
293 (next_nonnote_nondebug_insn, prev_nonnote_nondebug_insn): Reorder.
294 (next_nonnote_nondebug_insn_bb): New.
295 (prev_nonnote_nondebug_insn_bb): New.
296 (prev_nonnote_insn_bb, next_nonnote_insn_bb): Remove.
297 * rtl.h (prev_nonnote_insn_bb, next_nonnote_insn_bb): Remove decls.
298 (prev_nonnote_nondebug_insn_bb): Declare.
299 (next_nonnote_nondebug_insn_bb): Declare.
300 * cfgbuild.c (find_bb_boundaries): Adjust to skip debug insns.
301 * cfgrtl.c (get_last_bb_insn): Likewise.
302 * lra.c (push_insns): Likewise.
303
304 2017-12-11 David Malcolm <dmalcolm@redhat.com>
305
306 PR c/82050
307 * selftest-run-tests.c (selftest::run_tests): Move start/finish code
308 to...
309 * selftest.c (selftest::test_runner::test_runner): New ctor.
310 (selftest::test_runner::~test_runner): New dtor.
311 * selftest.h (class selftest::test_runner): New class.
312
313 2017-12-11 Carl Love <cel@us.ibm.com>
314
315 * config/rs6000/altivec.h (vec_extract_fp32_from_shorth,
316 vec_extract_fp32_from_shortl]): Add #defines.
317 * config/rs6000/rs6000-builtin.def (VSLDOI_2DI): Add macro expansion.
318 * config/rs6000/rs6000-c.c (ALTIVEC_BUILTIN_VEC_UNPACKH,
319 ALTIVEC_BUILTIN_VEC_UNPACKL, ALTIVEC_BUILTIN_VEC_AND,
320 ALTIVEC_BUILTIN_VEC_SLD, ALTIVEC_BUILTIN_VEC_SRL,
321 ALTIVEC_BUILTIN_VEC_SRO, ALTIVEC_BUILTIN_VEC_SLD,
322 ALTIVEC_BUILTIN_VEC_SLL): Add expansions.
323 * doc/extend.texi: Add documentation for the added builtins.
324
325 2017-12-11 Alexandre Oliva <aoliva@redhat.com>
326
327 PR rtl-optimization/80693
328 PR rtl-optimization/81019
329 PR rtl-optimization/81020
330 * combine.c (distribute_notes): Reset any REG_UNUSED REGs that
331 are not mentioned in i3. Place the REG_UNUSED note on i2,
332 possibly modified to REG_DEAD, if it did not originate in i3.
333
334 2017-12-11 Jakub Jelinek <jakub@redhat.com>
335
336 * recog.c (store_data_bypass_p_1): New function.
337 (store_data_bypass_p): Handle USE in a PARALLEL like CLOBBER. Use
338 store_data_bypass_p_1 to avoid code duplication. Formatting fixes.
339
340 2017-12-11 Segher Boessenkool <segher@kernel.crashing.org>
341
342 PR rtl-optimization/83361
343 * ifcvt.c (if_convert): Call fixup_partitions.
344
345 2017-12-11 Will Schmidt <will_schmidt@vnet.ibm.com>
346
347 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add support for
348 early folding of splat_u{8,16,32}.
349
350 2017-12-11 Jakub Jelinek <jakub@redhat.com>
351
352 * config/aarch64/aarch64.c (aarch64_print_operand): Don't start
353 output_operand_lossage first argument with capital letter.
354 (aarch64_override_options): Don't start error and sorry first argument
355 with capital letter.
356
357 2017-12-11 Andi Kleen <ak@linux.intel.com>
358
359 PR gcov-profile/83355
360 * auto-profile.c (string_table::get_index_by_decl): Don't
361 recurse when abstract origin points to itself.
362
363 2017-12-11 Bin Cheng <bin.cheng@arm.com>
364
365 PR tree-optimization/83320
366 * gimple-loop-interchange.cc (free_data_refs_with_aux): Use delete.
367 (prune_datarefs_not_in_loop): Ditto.
368
369 2017-12-10 Gerald Pfeifer <gerald@pfeifer.com>
370
371 * doc/install.texi (Specific): Tweak link to mkssoftware.com.
372
373 2017-12-10 Jakub Jelinek <jakub@redhat.com>
374
375 PR tree-optimization/83337
376 * gimple-loop-interchange.cc (compute_access_stride): Handle
377 bitfield DRs properly.
378
379 2017-12-09 Jakub Jelinek <jakub@redhat.com>
380
381 PR tree-optimization/83338
382 * tree-vect-stmts.c (vectorizable_operation): Handle POINTER_DIFF_EXPR
383 vectorization as MINUS_EXPR with a subsequent VIEW_CONVERT_EXPR from
384 vector of unsigned integers to vector of signed integers.
385
386 2017-12-08 Vladimir Makarov <vmakarov@redhat.com>
387
388 PR rtl-optimization/83317
389 * lra-constraints.c (process_address_1): Add insn code check.
390
391 2017-12-08 Michael Matz <matz@suse.de>
392
393 Fix PR tree-optimization/83323
394 * gimple-loop-jam (unroll_jam_possible_p): Correct test for
395 head-controlled loops and loop BBs.
396 * common.opt (funroll-and-jam): Remove, instead ...
397 (floop-unroll-and-jam): ... reuse this option.
398 * opts.c (default_options_table): Use OPT_floop_unroll_and_jam.
399 * doc/invoke.texi (-funroll-and-jam): Move docu to ...
400 (-floop-unroll-and-jam): ... this option.
401
402 2017-12-08 Jakub Jelinek <jakub@redhat.com>
403
404 * ipa-polymorphic-call.c (noncall_stmt_may_be_vtbl_ptr_store): Fix
405 a comment typo, get_base_ref_and_offset -> get_ref_base_and_extent.
406 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Likewise.
407
408 2017-12-08 Richard Biener <rguenther@suse.de>
409
410 PR middle-end/81782
411 * tree-ssa-uninit.c (warn_uninitialized_vars): Properly
412 handle accesses outside of zero-sized vars.
413
414 2017-12-08 Martin Jambor <mjambor@suse.cz>
415
416 PR tree-optimization/83141
417 * tree-sra.c (contains_vce_or_bfcref_p): Move up in the file, also
418 test for MEM_REFs implicitely changing types with padding. Remove
419 inline keyword.
420 (build_accesses_from_assign): Added contains_vce_or_bfcref_p checks.
421
422 2017-12-08 Jakub Jelinek <jakub@redhat.com>
423
424 * config/arc/arc.c (arc_attribute_table): Add exclusions to
425 the comment.
426 * config/avr/avr.c (avr_attribute_table): Likewise.
427 * config/msp430/msp430.c (msp430_attribute_table): Likewise.
428 * config/rl78/rl78.c (rl78_attribute_table): Likewise.
429 * config/nds32/nds32.c (nds32_attribute_table): Likewise.
430 * config/darwin.h (SUBTARGET_ATTRIBUTE_TABLE): Initialize new member
431 of struct attribute_spec.
432 * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Likewise.
433
434 2017-12-08 Ulrich Weigand <uweigand@de.ibm.com>
435
436 PR target/82960
437 * config/spu/spu.c (pad_bb): Only check INSN_CODE when INSN_P is true.
438
439 2017-12-08 Jan Hubicka <hubicka@ucw.cz>
440
441 PR middle-end/83609
442 * profile-count.c (profile_count::from_gcov_type): Move from
443 profile-count.h; handle overflow.
444 * profile-count.h (profile_count::from_gcov_type): Move offline.
445
446 2017-12-08 Segher Boessenkool <segher@kernel.crashing.org>
447
448 PR rtl-optimization/83304
449 * combine.c (move_deaths): If we do not know where a register died,
450 search for it.
451
452 2017-12-08 Richard Biener <rguenther@suse.de>
453
454 * gimple-loop-interchange.cc (tree_loop_interchange::interchange):
455 Provide -fopt-info-loop feedback when we interchange in a nest.
456
457 2017-06-08 Richard Earnshaw <rearnsha@arm.com>
458
459 * config/arm/driver-arm.c (arm_cpu_table): Use fp-capable product names
460 for armv6 ARM CPU IDs.
461
462 2017-06-08 Richard Earnshaw <rearnsha@arm.com>
463
464 * common/config/arm/arm-common.c: Include <algorithm>.
465 (INCLUDE_VECTOR): Define.
466 (compare_opt_names): New function.
467 (arm_rewrite_selected_arch): Only strip out extensions that can be
468 expressed through -mfpu. Sort the remaining extensions
469 alphabetically.
470
471 2017-06-08 Richard Earnshaw <rearnsha@arm.com>
472
473 * config/arm/arm.h (arm_asm_auto_mfpu): Declare.
474 (ASM_CPU_SPEC_FUNCTIONS): Add new rule asm_auto_mfpu.
475 (ASM_CPU_SPEC): Use it if -mfpu is set to auto.
476 * common/config/arm/arm-common.c (arm_asm_auto_mfpu): New function.
477
478 2017-06-08 Tristan Gingold <gindold@adacore.com>
479
480 PR ada/81470
481 * dwarf2out.c (dwarf2out_do_cfi_startproc): Only emit
482 .cfi_personality or .cfi_lsda if the eh data format is dwarf2.
483
484 2017-12-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
485
486 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE): Initialize new member
487 of struct attribute_spec.
488
489 2017-12-08 Julia Koval <julia.koval@intel.com>
490
491 * config/i386/avx512vnniintrin.h (_mm512_dpwssds_epi32,
492 _mm512_mask_dpwssds_epi32, _mm512_maskz_dpwssds_epi32): New intrinsics.
493 * config/i386/avx512vnnivlintrin.h (_mm256_dpwssds_epi32,
494 _mm256_mask_dpwssds_epi32, _mm256_maskz_dpwssds_epi32,
495 _mm_dpwssds_epi32, _mm_mask_dpwssds_epi32,
496 _mm_maskz_dpwssds_epi32): Ditto.
497
498 2017-12-08 Richard Biener <rguenther@suse.de>
499
500 PR tree-optimization/81303
501 * tree-vect-stmts.c (vect_is_simple_cond): For invariant
502 conditions try to create a comparison vector type matching
503 the data vector type.
504 (vectorizable_condition): Adjust.
505 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
506 Leave invariant conditions alone in case we can vectorize those.
507
508 2017-12-08 Julia Koval <julia.koval@intel.com>
509
510 * config/i386/avx512vnniintrin.h (_mm512_dpwssd_epi32,
511 _mm512_mask_dpwssd_epi32, _mm512_maskz_dpwssd_epi32): New intrinsics.
512 * config/i386/avx512vnnivlintrin.h (_mm256_dpwssd_epi32,
513 _mm256_mask_dpwssd_epi32, _mm256_maskz_dpwssd_epi32, _mm_dpwssd_epi32,
514 _mm_mask_dpwssd_epi32, _mm_maskz_dpwssd_epi32): Ditto.
515
516 2017-12-08 Julia Koval <julia.koval@intel.com>
517
518 * config/i386/avx512vnniintrin.h (_mm512_dpbusds_epi32,
519 _mm512_mask_dpbusds_epi32, _mm512_maskz_dpbusds_epi32): New.
520 * config/i386/avx512vnnivlintrin.h (_mm256_dpbusds_epi32,
521 _mm256_mask_dpbusds_epi32, _mm256_maskz_dpbusds_epi32,
522 _mm_dpbusds_epi32, _mm_mask_dpbusds_epi32,
523 _mm_maskz_dpbusds_epi32): New intrinsics.
524
525 2017-12-07 Sandra Loosemore <sandra@codesourcery.com>
526
527 * config/nios2/nios2.md (ld<bhw_uns>io): Add splitter for memory
528 operand.
529 (ld<bh>io_signed): Likewise.
530 (st<bhw>io): Likewise.
531 * config/nios2/predicates.md (ldstio_memory_operand): Allow
532 SMALL_INT12 constant integer operand.
533
534 2017-12-07 Sandra Loosemore <sandra@codesourcery.com>
535
536 * config/nios2/nios2.c (nios2_symbolic_constant_allowed):
537 Rename to...
538 (nios2_large_constant_allowed): ...this. Adjust uses.
539 (nios2_plus_symbolic_constant_p): Rename to...
540 (nios2_plus_large_constant_p): ...this. Adjust uses.
541 (nios2_legitimate_address_p): Correct CONST_INT handling.
542 (nios2_symbolic_memory_operand_p): Rename to...
543 (nios2_large_constant_memory_operand_p): ...this. Adjust uses.
544 (nios2_large_constant_p): Check for large constant integers too.
545 (nios2_split_large_constant): Handle constant integers.
546 (nios2_split_symbolic_memory_operand): Rename to...
547 (nios2_split_large_constant_memory_operand): ...this. Adjust uses.
548 (nios2_legitimize_constant_address): Handle constant integers.
549 (r0rel_constant_p): Handle small constant integers.
550 (nios2_print_operand_address): Handle r0-relative integer addresses.
551 * config/nios2/nios2-protos.h: Adjust for renamed functions.
552 * config/nios2/nios2.md: Adjust for renamed functions.
553
554 2017-12-07 Andrew Waterman <andrew@sifive.com>
555
556 * config/riscv/riscv.c (TARGET_ASM_SELECT_SECTION): New define.
557 (TARGET_HAVE_SRODATA_SECTION): New define.
558 (riscv_select_section): New function.
559
560 2017-12-08 Joseph Myers <joseph@codesourcery.com>
561 Alexander Monakov <amonakov@ispras.ru>
562 Jakub Jelinek <jakub@redhat.com>
563
564 PR target/81906
565 * config/i386/i386.c (ix86_expand_rint): Handle flag_rounding_math.
566
567 2017-12-07 Richard Sandiford <richard.sandiford@linaro.org>
568
569 * config/aarch64/aarch64.c (aarch64_print_address_internal): Return
570 a bool success value. Don't call output_operand_lossage here.
571 (aarch64_print_ldpstp_address): Return a bool success value.
572 (aarch64_print_operand_address): Call output_addr_const if
573 aarch64_print_address_internal fails.
574 (aarch64_print_operand): Don't assert that the mode is 16 bytes for
575 'y'; call output_operand_lossage instead. Call output_operand_lossage
576 if aarch64_print_ldpstp_address fails.
577
578 2017-12-07 Richard Sandiford <richard.sandiford@linaro.org>
579
580 * tree-vector-builder.h
581 (tree_vector_builder::binary_encoded_nelts): Declare.
582 * tree-vector-builder.c
583 (tree_vector_builder::binary_encoded_nelts): New function.
584 * fold-const.c (negate_expr_p): Likewise.
585 (operand_equal_p, fold_checksum_tree): Likewise.
586 * tree-loop-distribution.c (const_with_all_bytes_same): Likewise.
587 * tree.c (integer_zerop, integer_onep, integer_all_onesp, real_zerop)
588 (real_onep, real_minus_onep, add_expr, initializer_zerop): Likewise.
589 (uniform_vector_p): Likewise.
590 * varasm.c (const_hash_1, compare_constant): Likewise.
591 * tree-ssa-ccp.c: Include tree-vector-builder.h.
592 (valid_lattice_transition): Operate directly on the VECTOR_CST
593 encoding.
594 * ipa-icf.c: Include tree-vector-builder.h.
595 (sem_variable::equals): Operate directly on the VECTOR_CST encoding.
596 * print-tree.c (print_node): Print encoding of VECTOR_CSTs.
597
598 2017-12-07 Richard Sandiford <richard.sandiford@linaro.org>
599
600 * tree.c (build_vector): Delete.
601 * tree.h (build_vector): Make static and move into the self-testing
602 block.
603
604 2017-12-07 Richard Sandiford <richard.sandiford@linaro.org>
605
606 * vector-builder.h (vector_builder::derived): New const overload.
607 (vector_builder::elt): New function.
608 * tree-vector-builder.h (tree_vector_builder::type): New function.
609 (tree_vector_builder::apply_step): Declare.
610 * tree-vector-builder.c (tree_vector_builder::apply_step): New
611 function.
612 * gimple-fold.h (tree_vector_builder): Declare.
613 (gimple_build_vector): Take a tree_vector_builder instead of a
614 type and vector of elements.
615 * gimple-fold.c (gimple_build_vector): Likewise.
616 * tree-vect-loop.c (get_initial_def_for_reduction): Update call
617 accordingly.
618 (get_initial_defs_for_reduction): Likewise.
619 (vectorizable_induction): Likewise.
620
621 2017-12-07 Richard Sandiford <richard.sandiford@linaro.org>
622
623 * tree-vector-builder.h
624 (tree_vector_builder::new_binary_operation): Declare.
625 * tree-vector-builder.c
626 (tree_vector_builder::new_binary_operation): New function.
627 * fold-const.c (fold_relational_const): Use it.
628 (const_binop): Likewise. Check that both input vectors have
629 the same number of elements, thus excluding things like WIDEN_SUM.
630 Check whether it is possible to operate directly on the encodings
631 of stepped inputs.
632
633 2017-12-07 Richard Sandiford <richard.sandiford@linaro.org>
634
635 * fold-const.c (fold_negate_expr_1): Use tree_vector_builder and
636 new_unary_operation, operating only on the encoded elements.
637 (const_unop): Likewise.
638 (exact_inverse): Likewise.
639 (distributes_over_addition_p): New function.
640 (const_binop): Use tree_vector_builder and new_unary_operation
641 for combinations of VECTOR_CST and INTEGER_CST. Operate only
642 on the encoded elements unless the encoding is strided and the
643 operation does not distribute over addition.
644 (fold_convert_const): Use tree_vector_builder and
645 new_unary_operation. Operate only on the encoded elements
646 for truncating integer conversions, or for non-stepped encodings.
647
648 2017-12-07 Richard Sandiford <richard.sandiford@linaro.org>
649
650 * config/sparc/sparc.c: Include tree-vector-builder.h.
651 (sparc_fold_builtin): Use tree_vector_builder instead of build_vector.
652 * expmed.c: Include tree-vector-builder.h.
653 (make_tree): Use tree_vector_builder instead of build_vector.
654 * fold-const.c: Include tree-vector-builder.h.
655 (const_binop): Use tree_vector_builder instead of build_vector.
656 (const_unop): Likewise.
657 (native_interpret_vector): Likewise.
658 (fold_vec_perm): Likewise.
659 (fold_ternary_loc): Likewise.
660 * gimple-fold.c: Include tree-vector-builder.h.
661 (gimple_fold_stmt_to_constant_1): Use tree_vector_builder instead
662 of build_vector.
663 * tree-ssa-forwprop.c: Include tree-vector-builder.h.
664 (simplify_vector_constructor): Use tree_vector_builder instead
665 of build_vector.
666 * tree-vect-generic.c: Include tree-vector-builder.h.
667 (add_rshift): Use tree_vector_builder instead of build_vector.
668 (expand_vector_divmod): Likewise.
669 (optimize_vector_constructor): Likewise.
670 * tree-vect-loop.c: Include tree-vector-builder.h.
671 (vect_create_epilog_for_reduction): Use tree_vector_builder instead
672 of build_vector. Explicitly use a stepped encoding for
673 { 1, 2, 3, ... }.
674 * tree-vect-slp.c: Include tree-vector-builder.h.
675 (vect_get_constant_vectors): Use tree_vector_builder instead
676 of build_vector.
677 (vect_transform_slp_perm_load): Likewise.
678 (vect_schedule_slp_instance): Likewise.
679 * tree-vect-stmts.c: Include tree-vector-builder.h.
680 (vectorizable_bswap): Use tree_vector_builder instead of build_vector.
681 (vect_gen_perm_mask_any): Likewise.
682 (vectorizable_call): Likewise. Explicitly use a stepped encoding.
683 * tree.c: (build_vector_from_ctor): Use tree_vector_builder instead
684 of build_vector.
685 (build_vector_from_val): Likewise. Explicitly use a duplicate
686 encoding.
687
688 2017-12-07 Richard Sandiford <richard.sandiford@arm.com>
689
690 * doc/generic.texi (VECTOR_CST): Describe new representation of
691 vector constants.
692 * vector-builder.h: New file.
693 * tree-vector-builder.h: Likewise.
694 * tree-vector-builder.c: Likewise.
695 * Makefile.in (OBJS): Add tree-vector-builder.o.
696 * tree.def (VECTOR_CST): Update comment to refer to generic.texi.
697 * tree-core.h (tree_base): Add a vector_cst field to the u union.
698 (tree_vector): Change the number of elements to
699 vector_cst_encoded_nelts.
700 * tree.h (VECTOR_CST_NELTS): Redefine using TYPE_VECTOR_SUBPARTS.
701 (VECTOR_CST_ELTS): Delete.
702 (VECTOR_CST_ELT): Redefine using vector_cst_elt.
703 (VECTOR_CST_LOG2_NPATTERNS, VECTOR_CST_NPATTERNS): New macros.
704 (VECTOR_CST_NELTS_PER_PATTERN, VECTOR_CST_DUPLICATE_P): Likewise.
705 (VECTOR_CST_STEPPED_P, VECTOR_CST_ENCODED_ELTS): Likewise.
706 (VECTOR_CST_ENCODED_ELT): Likewise.
707 (vector_cst_encoded_nelts): New function.
708 (make_vector): Take the values of VECTOR_CST_LOG2_NPATTERNS and
709 VECTOR_CST_NELTS_PER_PATTERN as arguments.
710 (vector_cst_int_elt, vector_cst_elt): Declare.
711 * tree.c: Include tree-vector-builder.h.
712 (tree_code_size): Abort if passed VECTOR_CST.
713 (tree_size): Update for new VECTOR_CST layout.
714 (make_vector): Take the values of VECTOR_CST_LOG2_NPATTERNS and
715 VECTOR_CST_NELTS_PER_PATTERN as arguments.
716 (build_vector): Use tree_vector_builder.
717 (vector_cst_int_elt, vector_cst_elt): New functions.
718 (drop_tree_overflow): For VECTOR_CST, drop the TREE_OVERFLOW from the
719 encoded elements and then create the vector in the canonical form.
720 (check_vector_cst, check_vector_cst_duplicate, check_vector_cst_fill)
721 (check_vector_cst_stepped, test_vector_cst_patterns): New functions.
722 (tree_c_tests): Call test_vector_cst_patterns.
723 * lto-streamer-out.c (DFS::DFS_write_tree_body): Handle the new
724 VECTOR_CST fields.
725 (hash_tree): Likewise.
726 * tree-streamer-out.c (write_ts_vector_tree_pointers): Likewise.
727 (streamer_write_tree_header): Likewise.
728 * tree-streamer-in.c (lto_input_ts_vector_tree_pointers): Likewise.
729 (streamer_alloc_tree): Likewise. Update call to make_vector.
730 * fold-const.c (fold_ternary_loc): Avoid using VECTOR_CST_ELTS.
731
732 2017-12-07 Richard Sandiford <richard.sandiford@linaro.org>
733
734 * selftest.h (ASSERT_TRUE_AT, ASSERT_FALSE_AT, ASSERT_EQ_AT)
735 (ASSERT_NE, ASSERT_PRED1): Add underscores to local variable names
736 * selftest-rtl.h (ASSERT_RTX_EQ, ASSERT_RTX_PTR_EQ): Likewise.
737
738 2017-12-07 Bin Cheng <bin.cheng@arm.com>
739 Richard Biener <rguenther@suse.de>
740
741 PR tree-optimization/81303
742 * Makefile.in (gimple-loop-interchange.o): New object file.
743 * common.opt (floop-interchange): Reuse the option from graphite.
744 * doc/invoke.texi (-floop-interchange): Ditto. New document for
745 -floop-interchange and mention it for -O3.
746 * opts.c (default_options_table): Enable -floop-interchange at -O3.
747 * gimple-loop-interchange.cc: New file.
748 * params.def (PARAM_LOOP_INTERCHANGE_MAX_NUM_STMTS): New parameter.
749 (PARAM_LOOP_INTERCHANGE_STRIDE_RATIO): New parameter.
750 * passes.def (pass_linterchange): New pass.
751 * timevar.def (TV_LINTERCHANGE): New time var.
752 * tree-pass.h (make_pass_linterchange): New declaration.
753 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Change to external
754 interchange. Record IV before/after increment in new parameters.
755 * tree-ssa-loop-ivopts.h (create_canonical_iv): New declaration.
756 * tree-vect-loop.c (vect_is_simple_reduction): Factor out reduction
757 path check into...
758 (check_reduction_path): ...New function here.
759 * tree-vectorizer.h (check_reduction_path): New declaration.
760
761 2017-12-07 Vladimir Makarov <vmakarov@redhat.com>
762
763 PR target/83252
764 PR rtl-optimization/80818
765 * lra.c (add_regs_to_insn_regno_info): Make a hard reg in CLOBBER
766 always early clobbered.
767 * lra-lives.c (process_bb_lives): Check input hard regs for early
768 clobbered non-operand hard reg.
769
770 2017-12-07 Jakub Jelinek <jakub@redhat.com>
771
772 PR middle-end/83164
773 * tree-cfg.c (verify_gimple_assign_binary): Don't require
774 types_compatible_p, just that TYPE_MODE is the same.
775
776 2017-12-07 Martin Sebor <msebor@redhat.com>
777
778 PR c/81544
779 * attribs.c (empty_attribute_table): Initialize new member of
780 struct attribute_spec.
781 (decl_attributes): Add argument. Handle mutually exclusive
782 combinations of attributes.
783 (selftests::test_attribute_exclusions): New function.
784 (selftests::attribute_c_tests): Ditto.
785 * attribs.h (decl_attributes): Add default argument.
786 * selftest.h (attribute_c_tests): Declare.
787 * selftest-run-tests.c (selftest::run_tests): Call attribute_c_tests.
788 * tree-core.h (attribute_spec::exclusions, exclude): New type and
789 member.
790 * doc/extend.texi (Common Function Attributes): Update const and pure.
791 * config/alpha/alpha.c (vms_attribute_table): Initialize new member
792 of struct attribute_spec.
793 * config/arc/arc.c (arc_attribute_table): Same.
794 * config/arm/arm.c (arm_attribute_table): Same.
795 * config/avr/avr.c ( avr_attribute_table): Same.
796 * config/bfin/bfin.c (bfin_attribute_table): Same.
797 * config/cr16/cr16.c (cr16_attribute_table): Same.
798 * config/epiphany/epiphany.c (epiphany_attribute_table): Same.
799 * config/h8300/h8300.c (h8300_attribute_table): Same.
800 * config/i386/i386.c (ix86_attribute_table): Same.
801 * config/ia64/ia64.c (ia64_attribute_table): Same.
802 * config/m32c/m32c.c (m32c_attribute_table): Same.
803 * config/m32r/m32r.c (m32r_attribute_table): Same.
804 * config/m68k/m68k.c (m68k_attribute_table): Same.
805 * config/mcore/mcore.c (mcore_attribute_table): Same.
806 * config/microblaze/microblaze.c (microblaze_attribute_table): Same.
807 * config/mips/mips.c (mips_attribute_table): Same.
808 * config/msp430/msp430.c (msp430_attribute_table): Same.
809 * config/nds32/nds32.c (nds32_attribute_table): Same.
810 * config/nvptx/nvptx.c (nvptx_attribute_table): Same.
811 * config/powerpcspe/powerpcspe.c (rs6000_attribute_table): Same.
812 * config/rl78/rl78.c (rl78__attribute_table): Same.
813 * config/rs6000/rs6000.c (rs6000_attribute_table): Same.
814 * onfig/rx/rx.c (rx_attribute_table): Same.
815 * config/s390/s390.c (s390_handle_vectorbool_attribute): Same.
816 * config/sh/sh.c (sh_attribute_table): Same.
817 * config/sparc/sparc.c (sparc_attribute_table): Same.
818 * config/spu/spu.c (spu_attribute_table): Same.
819 * config/stormy16/stormy16.c (xstormy16_attribute_table): Same.
820 * config/v850/v850.c (v850_attribute_table): Same.
821 * config/visium/visium.c (visium_attribute_table): Same.
822
823 2017-12-07 Tamar Christina <tamar.christina@arm.com>
824
825 PR target/82641
826 * config/arm/arm.c (INCLUDE_STRING): Define.
827 (arm_last_printed_arch_string, arm_last_printed_fpu_string): New.
828 (arm_declare_function_name): Conservatively emit .arch, .arch_extensions
829 and .fpu.
830
831 2017-12-07 Michael Matz <matz@suse.de>
832
833 Add unroll and jam pass
834
835 * gimple-loop-jam.c: New file.
836 * Makefile.in (OBJS): Add gimple-loop-jam.o.
837 * common.opt (funroll-and-jam): New option.
838 * opts.c (default_options_table): Add unroll-and-jam at -O3.
839 * params.def (PARAM_UNROLL_JAM_MIN_PERCENT): New param.
840 (PARAM_UNROLL_JAM_MAX_UNROLL): Ditto.
841 * passes.def: Add pass_loop_jam.
842 * timevar.def (TV_LOOP_JAM): Add.
843 * tree-pass.h (make_pass_loop_jam): Declare.
844 * cfgloop.c (flow_loop_tree_node_add): Add AT argument.
845 * cfgloop.h (flow_loop_tree_node_add): Adjust declaration.
846 * cfgloopmanip.c (duplicate_loop): Add AT argument, adjust call
847 to flow_loop_tree_node_add.
848 (duplicate_subloops, copy_loops_to): Append to sibling list.
849 * cfgloopmanip.h: (duplicate_loop): Adjust declaration.
850 * doc/invoke.texi (-funroll-and-jam): Document new option.
851 (unroll-jam-min-percent, unroll-jam-max-unroll): Document new params.
852
853 2017-12-07 Richard Biener <rguenther@suse.de>
854
855 PR tree-optimization/83296
856 PR tree-optimization/67769
857 * tree-ssa-phiopt.c (conditional_replacement): Do not reset
858 flow sensitive info in an unrelated BB.
859 (value_replacement): Use reset_flow_sensitive_info.
860 (minmax_replacement): Reset flow sensitive info on the def
861 we move. Do not reset flow sensitive info in the whole BB
862 we move the stmt to.
863 (abs_replacement): Likewise.
864
865 2017-12-07 Segher Boessenkool <segher@kernel.crashing.org>
866
867 PR target/43871
868 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
869 rs6000_cpu to the given -mcpu=, or to the default processor.
870
871 2017-12-07 Segher Boessenkool <segher@kernel.crashing.org>
872
873 * config/rs6000/rs6000.h (rs6000_cpu_attr): Delete.
874 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Use rs6000_tune
875 instead of rs6000_cpu_attr.
876 (rs6000_adjust_cost): Ditto.
877 (is_microcoded_insn): Ditto.
878 (rs6000_adjust_priority): Ditto.
879 (rs6000_issue_rate): Ditto.
880 (rs6000_use_sched_lookahead): Ditto.
881 (rs6000_use_sched_lookahead_guard): Ditto.
882 (rs6000_sched_reorder): Ditto.
883 (force_new_group): Ditto.
884 * config/rs6000/rs6000.md (cpu attribute): Ditto.
885 (group_ending_nop): Ditto.
886
887 2017-12-07 Segher Boessenkool <segher@kernel.crashing.org>
888
889 * config/rs6000/rs6000.opt (rs6000_tune): New variable.
890 * config/rs6000/rs6000.c (rs6000_option_override_internal): Also set
891 rs6000_tune. Use rs6000_tune instead of rs6000_cpu where appropriate.
892 (rs6000_loop_align): Use rs6000_tune instead of rs6000_cpu where
893 appropriate.
894 (rs6000_reassociation_width): Ditto.
895 (rs6000_emit_epilogue): Ditto.
896 (rs6000_adjust_cost): Ditto.
897 (is_microcoded_insn): Ditto.
898 (is_cracked_insn): Ditto.
899 (rs6000_adjust_priority): Ditto.
900 (rs6000_sched_reorder): Ditto.
901 (rs6000_sched_reorder2): Ditto.
902 (insn_must_be_first_in_group): Ditto.
903 (insn_must_be_last_in_group): Ditto.
904 (rs6000_register_move_cost): Ditto.
905 * config/rs6000/rs6000.h (rs6000_cpu_attr): Use rs6000_tune instead of
906 rs6000_cpu.
907
908 2017-12-07 Julia Koval <julia.koval@intel.com>
909
910 * config.gcc: Add vaesintrin.h.
911 * config/i386/i386-builtin-types.def (V64QI_FTYPE_V64QI_V64QI):
912 New type.
913 * config/i386/i386-builtin.def (__builtin_ia32_vaesdec_v16qi,
914 __builtin_ia32_vaesdec_v32qi, __builtin_ia32_vaesdec_v64qi):
915 New builtins.
916 * config/i386/i386.c (ix86_expand_args_builtin): Handle new type.
917 * config/i386/immintrin.h: Include vaesintrin.h.
918 * config/i386/sse.md (vaesdec_<mode>): New pattern.
919 * config/i386/vaesintrin.h (_mm256_aesdec_epi128, _mm512_aesdec_epi128,
920 _mm_aesdec_epi128): New intrinsics.
921
922 2017-12-06 David Malcolm <dmalcolm@redhat.com>
923
924 * Makefile.in (C_COMMON_OBJS): Add c-family/c-spellcheck.o.
925 * spellcheck-tree.c (find_closest_macro_cpp_cb): Move to
926 c-family/c-spellcheck.cc.
927 (best_macro_match::best_macro_match): Likewise.
928 * spellcheck-tree.h
929 (struct edit_distance_traits<cpp_hashnode *>): Move to
930 c-family/c-spellcheck.h.
931 (class best_macro_match): Likewise.
932
933 2017-12-06 Jakub Jelinek <jakub@redhat.com>
934
935 PR tree-optimization/83293
936 * gimple-ssa-strength-reduction.c (insert_initializers): Use
937 GSI_NEW_STMT instead of GSI_SAME_STMT in gsi_insert_after that
938 might insert into empty bb.
939
940 PR sanitizer/81281
941 * match.pd ((T)(P + A) - (T)P -> (T) A): Split into separate
942 simplify for plus with :c added, and pointer_plus without that.
943 ((T)P - (T)(P + A) -> -(T) A): Likewise. If type is integral
944 with undefined overflow and the conversion is not widening,
945 perform negation in utype and only convert to type afterwards.
946 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Split into separate
947 simplify for plus with :c added, and pointer_plus without that.
948 If type is integral with undefined overflow and the conversion is
949 not widening, perform minus in utype and only convert to type
950 afterwards. Move the last pointer_diff_expr simplify into the
951 two outermost ifs.
952
953 2017-12-06 Martin Sebor <msebor@redhat.com>
954
955 PR tree-optimization/82646
956 * builtins.c (maybe_emit_chk_warning): Use size as the bound for
957 strncpy, not maxlen.
958
959 2017-12-06 Martin Sebor <msebor@redhat.com>
960
961 * doc/invoke.texi (-Wstringop-truncation): Mention attribute
962 nonstring.
963
964 PR tree-optimization/83075
965 * tree-ssa-strlen.c (handle_builtin_stxncpy): Avoid assuming
966 strncat/strncpy don't change length of source string.
967
968 2017-12-06 Eric Botcazou <ebotcazou@adacore.com>
969
970 Revert
971 2017-11-29 Martin Aberg <maberg@gaisler.com>
972
973 * config/sparc/sparc.md (divdf3_fix): Add NOP and adjust length
974 to prevent b2bst errata sequence.
975 (sqrtdf2_fix): Likewise.
976
977 2017-12-06 Jakub Jelinek <jakub@redhat.com>
978
979 PR tree-optimization/81945
980 * cfgloop.h (FOR_EACH_LOOP_FN): Use FN instead of hardcoding fn.
981 * tree-cfg.c (move_sese_region_to_fn): If any of the loops moved
982 to dest_cfun has orig_loop_num set, either remap it to the new
983 loop number if the loop got moved too, or clear it.
984
985 2017-12-05 Steve Ellcey <sellcey@cavium.com>
986
987 * config/aarch64/thunderx2-t99.md (thunderx2t99_branch): Add trap
988 to reservation.
989 (thunderx2t99_nothing): New insn reservation.
990 (thunderx2t99_mrs): New insn reservation.
991 (thunderx2t99_multiple): New insn reservation.
992 (thunderx2t99_alu_basi): Add bfx to reservation.
993 (thunderx2t99_fp_cmp): Add fccmps and fccmpd to reservation.
994
995 2017-12-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
996
997 PR target/82248
998 * config/arm/arm.md (probe_stack) : Use the 'o' constraint.
999
1000 2017-12-05 Bin Cheng <bin.cheng@arm.com>
1001
1002 * tree-ssa-dce.c (simple_dce_from_worklist): Move and rename from
1003 tree-ssa-pre.c::remove_dead_inserted_code.
1004 * tree-ssa-dce.h: New file.
1005 * tree-ssa-pre.c (tree-ssa-dce.h): Include new header file.
1006 (remove_dead_inserted_code): Move and rename to function
1007 tree-ssa-dce.c::simple_dce_from_worklist.
1008 (pass_pre::execute): Update use.
1009
1010 2017-12-05 Richard Biener <rguenther@suse.de>
1011
1012 PR tree-optimization/83277
1013 * graphite-isl-ast-to-gimple.c (should_copy_to_new_region): Make sure
1014 to code-gen liveout vars.
1015
1016 2017-12-05 Richard Sandiford <richard.sandiford@linaro.org>
1017
1018 * config/aarch64/aarch64-simd.md (aarch64_simd_bsldi_internal)
1019 (aarch64_simd_bsldi_alt): Check REG_P before GP_REGNUM_P.
1020 (aarch64_cm<optab>di, aarch64_cmtstdi): Add leading "&&" to
1021 split condition.
1022
1023 2017-12-05 Max Filippov <jcmvbkbc@gmail.com>
1024
1025 * config/xtensa/xtensa.c (xtensa_asan_shadow_offset): New
1026 function.
1027 (TARGET_ASAN_SHADOW_OFFSET): New macro definition.
1028 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): Set to 1 if
1029 ASAN is enabled.
1030
1031 2017-12-05 Richard Biener <rguenther@suse.de>
1032
1033 * timevar.def (TV_TREE_RECIP, TV_TREE_SINCOS, TV_TREE_WIDEN_MUL): Add.
1034 * tree-ssa-math-opts.c (pass_data_cse_reciprocal): Use TV_TREE_RECIP.
1035 (pass_data_cse_sincos): Use TV_TREE_SINCOS.
1036 (pass_data_optimize_widening_mul): Use TV_TREE_WIDEN_MUL.
1037
1038 2017-12-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1039
1040 * dbxout.c (dbxout_block): Grow buf to 30 bytes.
1041
1042 2017-12-05 Martin Liska <mliska@suse.cz>
1043 Jakub Jelinek <jakub@redhat.com>
1044
1045 * doc/invoke.texi: Document the options.
1046 * flag-types.h (enum sanitize_code): Add
1047 SANITIZE_POINTER_COMPARE and SANITIZE_POINTER_SUBTRACT.
1048 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Add handling
1049 of SANITIZE_POINTER_COMPARE and SANITIZE_POINTER_SUBTRACT.
1050 * opts.c: Define new sanitizer options.
1051 * sanitizer.def (BUILT_IN_ASAN_POINTER_COMPARE): Likewise.
1052 (BUILT_IN_ASAN_POINTER_SUBTRACT): Likewise.
1053
1054 2017-12-05 Julia Koval <julia.koval@intel.com>
1055
1056 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VNNI_SET,
1057 OPTION_MASK_ISA_AVX512VNNI_UNSET): New.
1058 (ix86_handle_option): Handle -mavx512vnni.
1059 * config/i386/cpuid.h (bit_AVX512VNNI): New bit.
1060 * config/i386/driver-i386.c (host_detect_local_cpu): Handle new bit.
1061 * config/i386/i386-c (__AVX512VNNI__): New.
1062 * config/i386/i386.c (ix86_target_string): Handle new option.
1063 (ix86_valid_target_attribute_inner_p): Handle new option.
1064 * config/i386/i386.h (TARGET_AVX512VNNI, TARGET_AVX512VNNI_P): New.
1065 * config/i386/i386.opt (mavx512vnni): New option.
1066
1067 2017-12-01 Jan Hubicka <hubicka@ucw.cz>
1068
1069 PR target/81616
1070 * athlon.md: Disable for generic.
1071 * haswell.md: Enable for generic.
1072 * i386.c (ix86_sched_init_global): Add core hooks for generic.
1073 * x86-tune-sched.c (ix86_issue_rate): Increase issue rate for generic
1074 to 4.
1075 (ix86_adjust_cost): Move generic to haswell path.
1076
1077 2017-12-04 Eric Botcazou <ebotcazou@adacore.com>
1078
1079 * config/sparc/sparc.c (sparc_do_work_around_errata): Use mem_ref
1080 instead of MEM_P in a couple more places. Fix formatting issues.
1081
1082 2017-12-04 Jim Wilson <jimw@sifive.com>
1083
1084 * config/riscv/riscv.c (riscv_for_each_saved_reg): Use GP_REG_LAST
1085 instead of GP_REG_LAST-1.
1086 (riscv_adjust_libcall_cfi_prologue): Likewise.
1087 (riscv_adjust_libcall_cri_epilogue): Likewise.
1088 * config/riscv/riscv.h (CALL_USED_REGISTERS): Change a6 to t6 in
1089 comment.
1090
1091 2017-12-04 Luis Machado <luis.machado@linaro.org>
1092
1093 * ipa-pure-const.c (check_decl): Add missing newline.
1094 (state_from_flags): Likewise.
1095
1096 2017-12-04 Jeff Law <law@redhat.com>
1097
1098 PR tree-optimizatin/78496
1099 * gimple-ssa-evrp-analyze.h
1100 (evrp_range_analyzer::get_vr_values): Simplify.
1101 * gimple-ssa-evrp-analyze.c: Corresponding changes.
1102 * tree-ssa-dom.c: Include alloc-pool.h, tree-vrp.h, vr-values.h
1103 and gimple-ssa-evrp-analyze.h.
1104 (dom_opt_dom_walker class): Add evrp_range_analyzer member.
1105 (simplify_stmt_for_jump_threading): Copy a blob of code from
1106 tree-vrp.c to use ranges to simplify statements.
1107 (dom_opt_dom_walker::before_dom_children): Call
1108 evrp_range_analyzer::{enter,record_ranges_from_stmt} methods.
1109 (dom_opt_dom_walker::after_dom_children): Similarly for
1110 evrp_range_analyzer::leave.
1111 (dom_opt_dom_walker::optimize_stmt): Use EVRP ranges to optimize
1112 conditionals.
1113
1114 * gimple-ssa-evrp-analyze.c
1115 (evrp_range_analyzer::extract_range_from_stmt): Always use
1116 vr_values::update_value_range so preexisting range info is
1117 medged with new range info, even if the new range is VR_VARYING.
1118
1119 2017-12-04 Segher Boessenkool <segher@kernel.crashing.org>
1120
1121 * combine.c: Adjust comment.
1122 (use_crosses_set_p): Delete.
1123 (can_combine_p): Use modified_between_p instead of use_crosses_set_p.
1124 (try_combine): Ditto.
1125
1126 2017-12-04 Richard Biener <rguenther@suse.de>
1127
1128 PR tree-optimization/83255
1129 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_for):
1130 Re-add zero-iteration check.
1131
1132 2017-12-04 Segher Boessenkool <segher@kernel.crashing.org>
1133
1134 PR rtl-optimization/83245
1135 * lra.c (collect_non_operand_hard_regs): Treat clobbers of non-operand
1136 hard registers as earlyclobber, also if not in an asm.
1137
1138 2017-12-04 Segher Boessenkool <segher@kernel.crashing.org>
1139
1140 PR bootstrap/83265
1141 Revert
1142 2017-12-01 Segher Boessenkool <segher@kernel.crashing.org>
1143
1144 PR target/43871
1145 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
1146 rs6000_cpu based on cpu_index, not tune_index.
1147
1148 2017-12-04 Richard Biener <rguenther@suse.de>
1149
1150 PR tree-optimization/83238
1151 * graphite-scop-detection.c (scop_detection::merge_sese): Make
1152 code match comment, rejecting invalid SESE regions.
1153
1154 2017-12-03 John David Anglin <danglin@gcc.gnu.org>
1155
1156 * config/pa/pa.c (pa_legitimate_address_p): For scaled indexing,
1157 require base operand is a REG_POINTER prior to reload on targets
1158 with non-equivalent space registers.
1159
1160 2017-12-01 Jan Hubicka <hubicka@ucw.cz>
1161
1162 * ipa-cp.c (ipcp_lattice<valtype>::print): Update dumping.
1163 (update_specialized_profile): Fix updating of counts.
1164 (perhaps_add_new_callers): Likewise.
1165
1166 2017-12-01 Jan Hubicka <hubicka@ucw.cz>
1167
1168 PR target/81616
1169 * x86-tune.def: Remove obsolette FIXMEs.
1170 (X86_TUNE_PARTIAL_FLAG_REG_STALL): Disable for generic
1171 (X86_TUNE_FUSE_CMP_AND_BRANCH_32, X86_TUNE_FUSE_CMP_AND_BRANCH_64,
1172 X86_TUNE_FUSE_CMP_AND_BRANCH_SOFLAGS, X86_TUNE_FUSE_ALU_AND_BRANCH):
1173 Enable for generic.
1174 (X86_TUNE_PAD_RETURNS): Disable for generic.
1175
1176 2017-12-02 Jakub Jelinek <jakub@redhat.com>
1177
1178 PR tree-optimization/83170
1179 PR tree-optimization/83241
1180 * gimple-ssa-store-merging.c
1181 (imm_store_chain_info::try_coalesce_bswap): Update vuse field from
1182 gimple_vuse (ins_stmt) in case it has changed.
1183 (imm_store_chain_info::output_merged_store): Likewise.
1184
1185 * tree-chkp.c (chkp_compute_bounds_for_assignment): Handle
1186 POINTER_DIFF_EXPR.
1187
1188 PR c++/81212
1189 * tree-cfg.c (pass_warn_function_return::execute): Handle
1190 __builtin_ubsan_handle_missing_return like __builtin_unreachable
1191 with BUILTINS_LOCATION.
1192
1193 PR target/78643
1194 PR target/80583
1195 * expr.c (get_inner_reference): If DECL_MODE of a non-bitfield
1196 is BLKmode for vector field with vector raw mode, use TYPE_MODE
1197 instead of DECL_MODE.
1198
1199 * config/i386/i386-protos.h (standard_sse_constant_opcode): Change
1200 last argument to rtx pointer.
1201 * config/i386/i386.c (standard_sse_constant_opcode): Replace X argument
1202 with OPERANDS. For AVX+ 128-bit VEX encoded instructions over 256-bit
1203 or 512-bit. If setting EXT_REX_SSE_REG_P, use EVEX encoded insn
1204 depending on the chosen ISAs.
1205 * config/i386/i386.md (*movxi_internal_avx512f, *movoi_internal_avx,
1206 *movti_internal, *movdi_internal, *movsi_internal, *movtf_internal,
1207 *movdf_internal, *movsf_internal): Adjust standard_sse_constant_opcode
1208 callers.
1209 * config/i386/sse.md (mov<mode>_internal): Likewise.
1210 * config/i386/mmx.md (*mov<mode>_internal): Likewise.
1211
1212 2017-12-01 Segher Boessenkool <segher@kernel.crashing.org>
1213
1214 * doc/invoke.texi (-dp): Say that instruction cost is printed as well.
1215
1216 2017-12-01 Segher Boessenkool <segher@kernel.crashing.org>
1217
1218 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Remove last two
1219 parameters from prototype.
1220 * config/rs6000/rs6000.c (emit_fusion_addis): Remove last two
1221 parameters. Don't print a comment.
1222 (emit_fusion_gpr_load): Adjust.
1223 (emit_fusion_load_store): Adjust.
1224 * config/rs6000/rs6000.md (*fusion_p9_<mode>_constant): Adjust.
1225 * config/rs6000/vsx.md (two peepholes): Print the "vector load fusion"
1226 comment on the second line.
1227
1228 2017-12-01 Segher Boessenkool <segher@kernel.crashing.org>
1229
1230 PR target/43871
1231 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
1232 rs6000_cpu based on cpu_index, not tune_index.
1233
1234 2017-12-01 Segher Boessenkool <segher@kernel.crashing.org>
1235
1236 * final.c (output_asm_name): Print insn_cost. Shorten output. Print
1237 which_alternative instead of which_alternative + 1.
1238 (output_asm_insn): Print an extra tab if the template is short.
1239
1240 2017-12-01 Jim Wilson <jimw@sifive.com>
1241
1242 * common.opt (use_gnu_debug_info_extensions): Delete DWARF_DEBUG from
1243 comment.
1244 * config/vx-common.h (DWARF_DEBUGGING_INFO): Delete undef.
1245 * doc/tm.texi.in (PREFERRED_DEBUGGING_TYPE): Delete DWARF_DEBUG
1246 reference.
1247 * doc/tm.texi: Regenerate.
1248
1249 2017-12-01 Michael Meissner <meissner@linux.vnet.ibm.com>
1250
1251 PR target/81959
1252 * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Check for
1253 whether we can allocate pseudos before trying to fix an address.
1254 * config/rs6000/rs6000.md (float_<mode>si2_hw): Make sure the
1255 memory address is indexed or indirect.
1256 (floatuns_<mode>si2_hw2): Likewise.
1257
1258 2017-12-01 Jason Merrill <jason@redhat.com>
1259
1260 * Makefile.in (TAGS): Add c-family/*.cc.
1261
1262 2017-12-01 Wilco Dijkstra <wdijkstr@arm.com>
1263
1264 * config/aarch64/aarch64.md (call_insn): Use %c rather than %a.
1265 (call_value_insn): Likewise.
1266 (sibcall_insn): Likewise.
1267 (sibcall_value_insn): Likewise.
1268 (movsi_aarch64): Likewise.
1269 (movdi_aarch64): Likewise.
1270 (add_losym_): Likewise.
1271 (ldr_got_small_): Likewise.
1272 (ldr_got_small_sidi): Likewise.
1273 (ldr_got_small_28k_): Likewise.
1274 (ldr_got_small_28k_sidi): Likewise.
1275 * config/aarch64/aarch64.c (aarch64_print_address_internal):
1276 Move output_addr_const to symbolic case. Add error check.
1277
1278 2017-12-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1279
1280 * config/s390/predicates.md (plus16_Q_operand): New predicate.
1281 * config/s390/s390.md: Disable MVC merging peephole if it would
1282 disable operand forwarding.
1283 (new peephole2): Split MVCs if it would turn them into up to 2
1284 forwardable MVCs.
1285
1286 2017-12-01 Richard Biener <rguenther@suse.de>
1287
1288 PR tree-optimization/83232
1289 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Fix
1290 detection of same access. Instead of breaking the group here
1291 do not consider the duplicate. Add comment explaining real fix.
1292
1293 2017-12-01 Jonathan Wakely <jwakely@redhat.com>
1294
1295 * doc/md.texi (Insn Splitting): Fix "central flowgraph" typo.
1296
1297 2017-12-01 Sudakshina Das <sudi.das@arm.com>
1298
1299 * config/arm/vfp.md (*movhf_vfp_fp16): Add conds attribute.
1300
1301 2017-12-01 Jakub Jelinek <jakub@redhat.com>
1302
1303 * function.h (struct function): Remove cilk_frame_decl,
1304 is_cilk_function and calls_cilk_spawn fields.
1305 * tree-inline.h (struct copy_body_data): Remove remap_var_for_cilk
1306 field.
1307 * omp-simd-clone.c (simd_clone_clauses_extract): Don't clear
1308 cilk_elemental field.
1309 * cgraph.h (struct cgraph_simd_clone): Remove cilk_elemental field.
1310 * target.def: Adjust comment.
1311 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1312 Don't test cilk_elemental.
1313
1314 PR tree-optimization/83233
1315 * gimple-ssa-store-merging.c (nop_stats, bswap_stats): Use
1316 bswap_stat name for the struct.
1317
1318 PR c/79153
1319 * tree.h (SWITCH_BREAK_LABEL_P): Define.
1320 * gimplify.c (collect_fallthrough_labels): Handle GIMPLE_BIND
1321 starting with a GIMPLE_SWITCH and ending with GIMPLE_LABEL with
1322 SWITCH_BREAK_LABEL_P set on the label.
1323 (gimplify_switch_expr): Set SWITCH_BREAK_LABEL_P on the label
1324 added for default case if it was missing and not all cases covered.
1325 Wrap GIMPLE_SWITCH and the switch_body_seq into a GIMPLE_BIND if
1326 switch_body_seq ends with a GIMPLE_LABEL with SWITCH_BREAK_LABEL_P
1327 set on the label.
1328 * tree-chrec.c (evolution_function_is_univariate_p): Add return true;
1329 to avoid -Wimplicit-fallthrough warning.
1330 * config/i386/i386.c (ix86_expand_special_args_builtin): Add
1331 FALLTHRU comment to avoid -Wimplicit-fallthrough warning.
1332
1333 PR tree-optimization/83221
1334 * tree-ssa-reassoc.c (sort_by_operand_rank): Shift bb_rank
1335 down by 16.
1336 (init_reassoc): Formatting fix.
1337
1338 PR sanitizer/81275
1339 * tree-cfg.c (group_case_labels_stmt): Don't optimize away
1340 C++ FE implicitly added __builtin_unreachable () until -Wreturn-type
1341 is diagnosed.
1342
1343 PR sanitizer/83219
1344 * tree-cfg.c: Include asan.h.
1345 (gimple_seq_unreachable_p): Return false for -fsanitize=unreachable.
1346
1347 2017-12-01 Sergey Shalnov <Sergey.Shalnov@intel.com>
1348
1349 * config/i386/i386.md: Fix AVX512 register width in AVX512 instruction.
1350
1351 2017-12-01 Sergey Shalnov <Sergey.Shalnov@intel.com>
1352
1353 * config/i386/i386.c (standard_sse_constant_opcode): Fix wrong form for
1354 vpcmpeqd instruction.
1355
1356 2017-12-01 Sergey Shalnov <Sergey.Shalnov@intel.com>
1357
1358 * config/i386/i386.c (standard_sse_constant_opcode): Fix
1359 registers type for 128bit mode.
1360
1361 2017-11-30 Jakub Jelinek <jakub@redhat.com>
1362
1363 * spellcheck-tree.c (test_find_closest_identifier): Use ; instead
1364 of ;;.
1365 * gengtype-state.c (read_state_pair): Likewise.
1366 * gimple-fold.c (gimple_fold_builtin_string_compare): Likewise.
1367 * sel-sched-dump.c (dump_insn_rtx_1): Likewise.
1368 * ipa-cp.c (intersect_aggregates_with_edge): Likewise.
1369 * ifcvt.c (noce_try_store_flag_constants): Likewise.
1370 * tree-ssa-ccp.c (ccp_finalize): Likewise.
1371 * omp-grid.c (grid_process_kernel_body_copy): Likewise.
1372 * builtins.c (fold_builtin_3): Likewise.
1373 * graphite-scop-detection.c
1374 (scop_detection::stmt_has_simple_data_refs_p): Likewise.
1375 * hsa-gen.c (hsa_function_representation::hsa_function_representation):
1376 Likewise.
1377
1378 2017-12-01 Maxim Ostapenko <m.ostapenko@samsung.com>
1379
1380 PR sanitizer/81697
1381 * asan.c (asan_protect_global): Add new ignore_decl_rtl_set_p
1382 parameter. Return true if ignore_decl_rtl_set_p is true and other
1383 conditions are satisfied.
1384 * asan.h (asan_protect_global): Add new parameter.
1385 * varasm.c (categorize_decl_for_section): Pass true as second parameter
1386 to asan_protect_global calls.
1387
1388 2017-11-30 Jim Wilson <jimw@sifive.com>
1389
1390 * doc/invoke.texi (RISC-V Options): Delete nonexistent -mmemcpy and
1391 -mno-memcpy options. For -mplt, -mfdiv, -mdiv, -msave-restore, and
1392 -mstrict-align, add info on default value. Delete redundant lines for
1393 -mabi. Add missing -mexplicit-relocs docs.
1394
1395 2017-11-30 Claudiu Zissulescu <claziss@synopsys.com>
1396
1397 * config/arc/arc.md (trap): New pattern.
1398
1399 2017-11-30 Claudiu Zissulescu <claziss@synopsys.com>
1400
1401 * config/arc/arc.c (hwloop_optimize): Prevent the last ZOL
1402 instruction to end into a delay slot.
1403 * config/arc/arc.md (cond_delay_insn): Check if the instruction
1404 can be placed into a delay slot against reg_note.
1405
1406 2017-11-30 Claudiu Zissulescu <claziss@synopsys.com>
1407
1408 * config/arc/arc.c (hwloop_optimize): Update hw-loop's end/start
1409 labels number of usages.
1410
1411 2017-11-30 Claudiu Zissulescu <claziss@synopsys.com>
1412
1413 * config/arc/arc.c (arc_cannot_substitue_mem_equiv_p): New
1414 function.
1415 (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): Define.
1416
1417 2017-11-30 Jakub Jelinek <jakub@redhat.com>
1418
1419 PR target/83210
1420 * internal-fn.c (expand_mul_overflow): Optimize unsigned
1421 multiplication by power of 2 constant into two shifts + comparison.
1422
1423 2017-11-30 Jan Hubicka <hubicka@ucw.cz>
1424
1425 PR target/81616
1426 * config/i386/x86-tune-costs.h (generic_cost): Revise for modern CPUs.
1427
1428 2017-11-30 Richard Biener <rguenther@suse.de>
1429
1430 PR tree-optimization/83202
1431 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add
1432 allow_peel argument and guard peeling.
1433 (canonicalize_loop_induction_variables): Likewise.
1434 (canonicalize_induction_variables): Pass false.
1435 (tree_unroll_loops_completely_1): Pass unroll_outer to disallow
1436 peeling from cunrolli.
1437
1438 2017-11-29 Segher Boessenkool <segher@kernel.crashing.org>
1439
1440 * combine.c (try_combine): Print a message to dump file whenever
1441 I0, I1, or I2 cannot be combined into I3.
1442
1443 2017-11-29 Segher Boessenkool <segher@kernel.crashing.org>
1444
1445 PR rtl-optimization/83156
1446 PR rtl-optimization/82621
1447 * combine.c (try_combine): Don't split an I2 if one of the dests is
1448 set again before I3. Allow unused dests.
1449
1450 2017-11-29 Segher Boessenkool <segher@kernel.crashing.org>
1451
1452 * config/rs6000/rs6000.md (*add<mode>3_carry_in_internal2): New.
1453
1454 2017-11-29 Vladimir Makarov <vmakarov@redhat.com>
1455
1456 PR rtl-optimization/80818
1457 * lra.c (collect_non_operand_hard_regs): New arg insn. Pass it
1458 recursively. Use insn code for clobber.
1459 (lra_set_insn_recog_data): Pass the new arg to
1460 collect_non_operand_hard_regs.
1461 (add_regs_to_insn_regno_info): Pass insn instead of uid. Use insn
1462 code for clobber.
1463 (lra_update_insn_regno_info): Pass insn to
1464 add_regs_to_insn_regno_info.
1465
1466 2017-11-29 Jim Wilson <jimw@sifive.com>
1467 Andrew Waterman <andrew@sifive.com>
1468
1469 * config/riscv/riscv.c (SINGLE_SHIFT_COST): New.
1470 (riscv_rtx_costs): Case ZERO_EXTRACT, match new pattern, and return
1471 SINGLE_SHIFT_COST. Case LT and ZERO_EXTEND, likewise. Case ASHIFT,
1472 use SINGLE_SHIFT_COST.
1473 * config/riscv/riscv.md (lshrsi3_zero_extend_1): New.
1474 (lshrsi3_zero_extend_2, lshrsi3_zero_extend_3): New.
1475
1476 2017-11-29 Julia Koval <julia.koval@intel.com>
1477
1478 * config/i386/avx512vbmi2intrin.h (_mm512_shldv_epi16,
1479 _mm512_mask_shldv_epi16, _mm512_maskz_shldv_epi16, _mm512_shldv_epi32,
1480 _mm512_mask_shldv_epi32, _mm512_maskz_shldv_epi32, _mm512_shldv_epi64,
1481 _mm512_mask_shldv_epi64, _mm512_maskz_shldv_epi64): New intrinsics.
1482 * config/i386/avx512vbmi2vlintrin.h (_mm256_shldv_epi16,
1483 _mm256_mask_shldv_epi16, _mm256_maskz_shldv_epi16, _mm256_shldv_epi32,
1484 _mm256_mask_shldv_epi32, _mm256_maskz_shldv_epi32, _mm256_shldv_epi64,
1485 _mm256_mask_shldv_epi64, _mm256_maskz_shldv_epi64, _mm_shldv_epi16,
1486 _mm_mask_shldv_epi16, _mm_maskz_shldv_epi16, _mm_shldv_epi32,
1487 _mm_mask_shldv_epi32, _mm_maskz_shldv_epi32, _mm_shldv_epi64,
1488 _mm_mask_shldv_epi64, _mm_maskz_shldv_epi64): Ditto.
1489 * config/i386/i386-builtin.def (__builtin_ia32_vpshldv_v32hi,
1490 __builtin_ia32_vpshldv_v32hi_mask, __builtin_ia32_vpshldv_v32hi_maskz,
1491 __builtin_ia32_vpshldv_v16hi, __builtin_ia32_vpshldv_v16hi_mask,
1492 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi,
1493 __builtin_ia32_vpshldv_v8hi_mask, __builtin_ia32_vpshldv_v8hi_maskz,
1494 __builtin_ia32_vpshldv_v16si, __builtin_ia32_vpshldv_v16si_mask,
1495 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si,
1496 __builtin_ia32_vpshldv_v8si_mask, __builtin_ia32_vpshldv_v8si_maskz,
1497 __builtin_ia32_vpshldv_v4si, __builtin_ia32_vpshldv_v4si_mask,
1498 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di,
1499 __builtin_ia32_vpshldv_v8di_mask, __builtin_ia32_vpshldv_v8di_maskz,
1500 __builtin_ia32_vpshldv_v4di, __builtin_ia32_vpshldv_v4di_mask,
1501 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di,
1502 __builtin_ia32_vpshldv_v2di_mask,
1503 __builtin_ia32_vpshldv_v2di_maskz): New builtins.
1504 * config/i386/sse.md (vpshldv_<mode>, vpshldv_<mode>_mask,
1505 vpshldv_<mode>_maskz, vpshldv_<mode>_maskz_1): New patterns.
1506
1507 2017-11-29 Julia Koval <julia.koval@intel.com>
1508
1509 * config/i386/avx512vbmi2intrin.h (_mm512_shrdv_epi16,
1510 _mm512_mask_shrdv_epi16, _mm512_maskz_shrdv_epi16, _mm512_shrdv_epi32,
1511 _mm512_mask_shrdv_epi32, _mm512_maskz_shrdv_epi32, _mm512_shrdv_epi64,
1512 _mm512_mask_shrdv_epi64, _mm512_maskz_shrdv_epi64): New intrinsics.
1513 * config/i386/avx512vbmi2vlintrin.h (_mm256_shrdv_epi16,
1514 _mm256_mask_shrdv_epi16, _mm256_maskz_shrdv_epi16, _mm256_shrdv_epi32,
1515 _mm256_mask_shrdv_epi32, _mm256_maskz_shrdv_epi32, _mm256_shrdv_epi64,
1516 _mm256_mask_shrdv_epi64, _mm256_maskz_shrdv_epi64, _mm_shrdv_epi16,
1517 _mm_mask_shrdv_epi16, _mm_maskz_shrdv_epi16, _mm_shrdv_epi32,
1518 _mm_mask_shrdv_epi32, _mm_maskz_shrdv_epi32, _mm_shrdv_epi64,
1519 _mm_mask_shrdv_epi64, _mm_maskz_shrdv_epi64): Ditto.
1520 * config/i386/i386-builtin-types.def (V32HI_FTYPE_V32HI_V32HI_V32HI,
1521 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
1522 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
1523 V4SI_FTYPE_V4SI_V4SI_V4SI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI,
1524 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
1525 V16SI_FTYPE_V16SI_V16SI_V16SI, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
1526 V2DI_FTYPE_V2DI_V2DI_V2DI_INT): New types.
1527 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
1528 * config/i386/sse.md (vpshrdv_<mode>, vpshrdv_<mode>_mask,
1529 vpshrdv_<mode>_maskz, vpshrdv_<mode>_maskz_1): New pattern.
1530
1531 2017-11-29 Daniel Cederman <cederman@gaisler.com>
1532
1533 * config/sparc/sparc.c (sparc_do_work_around_errata): Treat the
1534 movsi_pic_gotdata_op instruction as a load for the UT699 errata
1535 workaround.
1536
1537 2017-11-29 Martin Aberg <maberg@gaisler.com>
1538
1539 * config/sparc/sparc.md (divdf3_fix): Add NOP and adjust length
1540 to prevent b2bst errata sequence.
1541 (sqrtdf2_fix): Likewise.
1542
1543 2017-11-29 Daniel Cederman <cederman@gaisler.com>
1544
1545 * config/sparc/sparc.c (fpop_reg_depend_p): New function.
1546 (div_sqrt_insn_p): New function.
1547 (sparc_do_work_around_errata): Insert NOP instructions to
1548 prevent sequences that could trigger the TN-0013 errata for
1549 certain LEON3 processors.
1550 (pass_work_around_errata::gate): Also test sparc_fix_lost_divsqrt.
1551 (sparc_option_override): Set sparc_fix_lost_divsqrt appropriately.
1552 * config/sparc/sparc.md (fix_lost_divsqrt): New attribute.
1553 (in_branch_delay): Prevent div and sqrt in delay slot if
1554 fix_lost_divsqrt.
1555 * config/sparc/sparc.opt (sparc_fix_lost_divsqrt): New variable.
1556
1557 2017-11-29 Daniel Cederman <cederman@gaisler.com>
1558
1559 * config/sparc/sparc.c (atomic_insn_p): New function.
1560 (sparc_do_work_around_errata): Insert NOP instructions to
1561 prevent sequences that could trigger the TN-0010 errata for
1562 UT700.
1563 * config/sparc/sync.md (atomic_compare_and_swap_leon3_1): Make
1564 instruction referable in atomic_insns_p.
1565
1566 2017-11-29 Daniel Cederman <cederman@gaisler.com>
1567
1568 * config/sparc/sync.md (swapsi): 16-byte align if sparc_fix_gr712rc.
1569 (atomic_compare_and_swap_leon3_1): Likewise.
1570 (ldstub): Likewise.
1571
1572 2017-11-29 Daniel Cederman <cederman@gaisler.com>
1573
1574 * config/sparc/sparc.c (fpop_insn_p): New function.
1575 (sparc_do_work_around_errata): Insert NOP instructions to
1576 prevent sequences that could trigger the TN-0012 errata for
1577 GR712RC.
1578 (pass_work_around_errata::gate): Also test sparc_fix_gr712rc.
1579 * config/sparc/sparc.md (fix_gr712rc): New attribute.
1580 (in_branch_annul_delay): Prevent floating-point instructions
1581 in delay slot of annulled integer branch.
1582
1583 2017-11-29 Richard Biener <rguenther@suse.de>
1584
1585 PR tree-optimization/83202
1586 * tree-vect-slp.c (scalar_stmts_set_t): New typedef.
1587 (bst_fail): Use it.
1588 (vect_analyze_slp_cost_1): Add visited set, do not account SLP
1589 nodes vectorized to the same stmts multiple times.
1590 (vect_analyze_slp_cost): Allocate a visited set and pass it down.
1591 (vect_analyze_slp_instance): Adjust.
1592 (scalar_stmts_to_slp_tree_map_t): New typedef.
1593 (vect_schedule_slp_instance): Add a map recording the SLP node
1594 representing the vectorized stmts for a set of scalar stmts.
1595 Avoid code-generating redundancies.
1596 (vect_schedule_slp): Allocate map and pass it down.
1597
1598 2017-11-29 Nathan Sidwell <nathan@acm.org>
1599
1600 PR c++/83187
1601 * tree.c (build_complex_type): Fix canonicalization. Only fill in
1602 type if it is new.
1603
1604 2017-11-29 Wilco Dijkstra <wdijkstr@arm.com>
1605
1606 * config/aarch64/aarch64.c (aarch64_print_operand): Add new
1607 cases for printing LDP/STP memory addresses.
1608 (aarch64_print_address_internal): Renamed from
1609 aarch64_print_operand_address, added parameter, add Pmode check.
1610 (aarch64_print_ldpstp_address): New function for LDP/STP addresses.
1611 (aarch64_print_operand_address): Indirect to
1612 aarch64_print_address_internal.
1613 * config/aarch64/aarch64-simd.md (store_pair_lanes): Use new
1614 'y' operand output specifier.
1615
1616 2017-11-29 Jakub Jelinek <jakub@redhat.com>
1617
1618 PR middle-end/83185
1619 * tree.c (build_simple_mem_ref_loc): Handle
1620 get_addr_base_and_unit_offset returning a MEM_REF.
1621
1622 PR middle-end/80929
1623 * rtlanal.c (seq_cost): For non-single_set insns try to use insn_cost.
1624
1625 PR target/80819
1626 * config/i386/sse.md (vec_concatv2di): Remove * from (=Yr,0,*rm)
1627 alternative.
1628
1629 2017-11-28 David Malcolm <dmalcolm@redhat.com>
1630
1631 * diagnostic-show-locus.c (layout::print_trailing_fixits): Handle
1632 m_x_offset.
1633 (layout::move_to_column): Likewise.
1634
1635 2017-11-28 Jakub Jelinek <jakub@redhat.com>
1636
1637 PR sanitizer/81275
1638 * tree.c (block_may_fallthru): Return false if SWITCH_ALL_CASES_P
1639 is set on SWITCH_EXPR and !block_may_fallthru (SWITCH_BODY ()).
1640
1641 2017-11-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1642 Martin Jambor <mjambor@suse.cz>
1643
1644 PR ipa/82808
1645 * tree.h (expr_type_first_operand_type_p): Declare
1646 * tree.c (expr_type_first_operand_type_p): New function.
1647 * ipa-prop.h (ipa_get_type): Allow i to be out of bounds.
1648 (ipa_value_from_jfunc): Adjust declaration.
1649 * ipa-cp.c (ipa_get_jf_pass_through_result): New parameter RES_TYPE.
1650 Use it as result type for arithmetics, unless it is NULL in which case
1651 be more conservative.
1652 (ipa_value_from_jfunc): New parameter PARM_TYPE, pass it to
1653 ipa_get_jf_pass_through_result.
1654 (propagate_vals_across_pass_through): Likewise.
1655 (propagate_scalar_across_jump_function): New parameter PARM_TYPE, pass
1656 is to propagate_vals_across_pass_through.
1657 (propagate_constants_across_call): Pass PARM_TYPE to
1658 propagate_scalar_across_jump_function.
1659 (find_more_scalar_values_for_callers_subset): Pass parameter type to
1660 ipa_value_from_jfunc.
1661 (cgraph_edge_brings_all_scalars_for_node): Likewise.
1662 * ipa-fnsummary.c (evaluate_properties_for_edge): Renamed parms_info
1663 to caller_parms_info, pass parameter type to ipa_value_from_jfunc.
1664 * ipa-prop.c (try_make_edge_direct_simple_call): New parameter
1665 target_type, pass it to ipa_value_from_jfunc.
1666 (update_indirect_edges_after_inlining): Pass parameter type to
1667 try_make_edge_direct_simple_call.
1668
1669 2017-11-28 Jeff Law <law@redhat.com>
1670
1671 * gimple-ssa-evrp-analyze.c
1672 (evrp_range_analyzer::record_ranges_from_phis): Only use SCEV to
1673 refine ranges if scev_initialized_p returns true.
1674 * vr-values.c (vr_values::extract_range_from_phi_node): Likewise.
1675
1676 2017-11-28 Julia Koval <julia.koval@intel.com>
1677
1678 * config/i386/avx512vbmi2intrin.h (_mm512_shrdi_epi16,
1679 _mm512_mask_shrdi_epi16, _mm512_maskz_shrdi_epi16, _mm512_shrdi_epi32,
1680 _mm512_mask_shrdi_epi32, _mm512_maskz_shrdi_epi32, _mm512_shrdi_epi64,
1681 _mm512_mask_shrdi_epi64, _mm512_maskz_shrdi_epi64): New intrinsics.
1682 * config/i386/avx512vbmi2vlintrin.h (_mm256_shrdi_epi16,
1683 _mm256_mask_shrdi_epi16, _mm256_maskz_shrdi_epi16,
1684 _mm256_mask_shrdi_epi32, _mm256_maskz_shrdi_epi32, _mm256_shrdi_epi32,
1685 _mm256_mask_shrdi_epi64, _mm256_maskz_shrdi_epi64, _mm256_shrdi_epi64,
1686 _mm_mask_shrdi_epi16, _mm_maskz_shrdi_epi16, _mm_shrdi_epi16,
1687 _mm_mask_shrdi_epi32, _mm_maskz_shrdi_epi32, _mm_shrdi_epi32,
1688 _mm_mask_shrdi_epi64, _mm_maskz_shrdi_epi64, _mm_shrdi_epi64): Ditto.
1689 * config/i386/i386-builtin.def (__builtin_ia32_vpshrd_v32hi,
1690 __builtin_ia32_vpshrd_v32hi_mask, __builtin_ia32_vpshrd_v16hi,
1691 __builtin_ia32_vpshrd_v16hi_mask, __builtin_ia32_vpshrd_v8hi,
1692 __builtin_ia32_vpshrd_v8hi_mask, __builtin_ia32_vpshrd_v16si,
1693 __builtin_ia32_vpshrd_v16si_mask, __builtin_ia32_vpshrd_v8si,
1694 __builtin_ia32_vpshrd_v8si_mask, __builtin_ia32_vpshrd_v4si,
1695 __builtin_ia32_vpshrd_v4si_mask, __builtin_ia32_vpshrd_v8di,
1696 __builtin_ia32_vpshrd_v8di_mask, __builtin_ia32_vpshrd_v4di,
1697 __builtin_ia32_vpshrd_v4di_mask, __builtin_ia32_vpshrd_v2di,
1698 __builtin_ia32_vpshrd_v2di_mask): New builtins.
1699 * config/i386/sse.md (vpshrd_<mode><mask_name>): New pattern.
1700
1701 2017-11-28 Julia Koval <julia.koval@intel.com>
1702
1703 * config/i386/avx512vbmi2intrin.h (_mm512_shldi_epi16,
1704 _mm512_mask_shldi_epi16, _mm512_maskz_shldi_epi16, _mm512_shldi_epi32,
1705 _mm512_mask_shldi_epi32, _mm512_maskz_shldi_epi32, _mm512_shldi_epi64,
1706 _mm512_mask_shldi_epi64, _mm512_maskz_shldi_epi64): New intrinsics.
1707 * config/i386/avx512vbmi2vlintrin.h (_mm256_shldi_epi16,
1708 _mm256_mask_shldi_epi16, _mm256_maskz_shldi_epi16,
1709 _mm256_mask_shldi_epi32, _mm256_maskz_shldi_epi32, _mm256_shldi_epi32,
1710 _mm256_mask_shldi_epi64, _mm256_maskz_shldi_epi64, _mm256_shldi_epi64,
1711 _mm_mask_shldi_epi16, _mm_maskz_shldi_epi16, _mm_shldi_epi16,
1712 _mm_mask_shldi_epi32, _mm_maskz_shldi_epi32, _mm_shldi_epi32,
1713 _mm_mask_shldi_epi64, _mm_maskz_shldi_epi64, _mm_shldi_epi64): Ditto.
1714 * config/i386/i386-builtin-types.def (V32HI_FTYPE_V32HI_V32HI_INT,
1715 V32HI_FTYPE_V32HI_V32HI_INT_V32HI_INT, V16SI_FTYPE_V16SI_V16SI_INT,
1716 V16SI_FTYPE_V16SI_V16SI_INT_V16SI_INT,
1717 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_INT, V8SI_FTYPE_V8SI_V8SI_INT_V8SI_INT,
1718 V16HI_FTYPE_V16HI_V16HI_INT_V16HI_INT,
1719 V4DI_FTYPE_V4DI_V4DI_INT_V4DI_INT,
1720 V8HI_FTYPE_V8HI_V8HI_INT_V8HI_INT,
1721 V4SI_FTYPE_V4SI_V4SI_INT_V4SI_INT,
1722 V2DI_FTYPE_V2DI_V2DI_INT_V2DI_INT): New types.
1723 * config/i386/i386-builtin.def (__builtin_ia32_vpshld_v32hi,
1724 __builtin_ia32_vpshld_v32hi_mask, __builtin_ia32_vpshld_v16hi,
1725 __builtin_ia32_vpshld_v16hi_mask, __builtin_ia32_vpshld_v8hi,
1726 __builtin_ia32_vpshld_v8hi_mask, __builtin_ia32_vpshld_v16si,
1727 __builtin_ia32_vpshld_v16si_mask, __builtin_ia32_vpshld_v8si,
1728 __builtin_ia32_vpshld_v8si_mask, __builtin_ia32_vpshld_v4si,
1729 __builtin_ia32_vpshld_v4si_mask, __builtin_ia32_vpshld_v8di,
1730 __builtin_ia32_vpshld_v8di_mask, __builtin_ia32_vpshld_v4di,
1731 __builtin_ia32_vpshld_v4di_mask, __builtin_ia32_vpshld_v2di,
1732 __builtin_ia32_vpshld_v2di_mask): New builtins.
1733 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
1734 * config/i386/sse.md (vpshld_<mode><mask_name>): New pattern.
1735
1736 2017-11-28 Richard Biener <rguenther@suse.de>
1737
1738 PR tree-optimization/80776
1739 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::set_ssa_range_info):
1740 Declare.
1741 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
1742 New function.
1743 (evrp_range_analyzer::record_ranges_from_incoming_edges):
1744 If the incoming edge is an effective fallthru because the other
1745 edge only reaches a __builtin_unreachable () then record ranges
1746 derived from the controlling condition in SSA info.
1747 (evrp_range_analyzer::record_ranges_from_phis): Use set_ssa_range_info.
1748 (evrp_range_analyzer::record_ranges_from_stmt): Likewise.
1749
1750 2017-11-28 Olivier Hainque <hainque@adacore.com>
1751
1752 * Makefile.in (SELFTEST_FLAGS): Use nul instead of /dev/null
1753 on mingw build hosts.
1754
1755 2017-11-28 Jakub Jelinek <jakub@redhat.com>
1756
1757 PR debug/81307
1758 * dbxout.c (dbx_block_with_cold_children): Fix function comment.
1759
1760 2017-11-28 Richard Biener <rguenther@suse.de>
1761
1762 PR middle-end/83141
1763 * gimple-fold.c (gimple_fold_builtin_memory_op): For aggregate
1764 copies generated from memcpy use a character array as reference
1765 type.
1766
1767 2017-11-28 Julia Koval <julia.koval@intel.com>
1768 Sebastian Peryt <sebastian.peryt@intel.com>
1769
1770 * Makefile.in (cilkplus.def, cilk-builtins.def, c-family/cilk.o,
1771 c-family/c-cilkplus.o, c-family/array-notation-common.o,
1772 cilk-common.o, cilk.h, cilk-common.c): Remove.
1773 * builtin-types.def
1774 (BT_FN_INT_PTR_PTR_PTR_FTYPE_BT_INT_BT_PTR_BT_PTR_BT_PTR): Remove.
1775 * builtins.c (is_builtin_name): Remove cilkplus condition.
1776 (BUILT_IN_CILK_DETACH, BUILT_IN_CILK_POP_FRAME): Remove.
1777 * builtins.def (DEF_CILK_BUILTIN_STUB, DEF_CILKPLUS_BUILTIN,
1778 cilk-builtins.def, cilkplus.def): Remove.
1779 * cif-code.def (CILK_SPAWN): Remove.
1780 * cilk-builtins.def: Delete.
1781 * cilk-common.c: Ditto.
1782 * cilk.h: Ditto.
1783 * cilkplus.def: Ditto.
1784 * config/darwin.h (fcilkplus): Delete.
1785 * cppbuiltin.c: Ditto.
1786 * doc/extend.texi: Remove cilkplus doc.
1787 * doc/generic.texi: Ditto.
1788 * doc/invoke.texi: Ditto.
1789 * doc/passes.texi: Ditto.
1790 * gcc.c (fcilkplus): Remove.
1791 * gengtype.c (cilk.h): Remove.
1792 * gimple-pretty-print.c (dump_gimple_omp_for): Remove cilkplus
1793 support.
1794 * gimple.h (GF_OMP_FOR_KIND_CILKFOR, GF_OMP_FOR_KIND_CILKSIMD):
1795 Remove.
1796 * gimplify.c (gimplify_return_expr, maybe_fold_stmt,
1797 gimplify_call_expr,
1798 is_gimple_stmt, gimplify_modify_expr, gimplify_scan_omp_clauses,
1799 gimplify_adjust_omp_clauses, gimplify_omp_for, gimplify_expr): Remove
1800 cilkplus conditions.
1801 * ipa-fnsummary.c (ipa_dump_fn_summary, compute_fn_summary,
1802 inline_read_section): Ditto.
1803 * ipa-inline-analysis.c (cilk.h): Remove.
1804 * ira.c (ira_setup_eliminable_regset): Remove cilkplus support.
1805 * lto-wrapper.c (merge_and_complain, append_compiler_options,
1806 append_linker_options): Remove condition for fcilkplus.
1807 * lto/lto-lang.c (cilk.h): Remove.
1808 (lto_init): Remove condition for fcilkplus.
1809 * omp-expand.c (expand_cilk_for_call): Delete.
1810 (expand_omp_taskreg, expand_omp_for_static_chunk,
1811 expand_omp_for): Remove cilkplus
1812 conditions.
1813 (expand_cilk_for): Delete.
1814 * omp-general.c (omp_extract_for_data): Remove cilkplus support.
1815 * omp-low.c (scan_sharing_clauses, create_omp_child_function,
1816 execute_lower_omp, diagnose_sb_0): Ditto.
1817 * omp-simd-clone.c (simd_clone_clauses_extract): Ditto.
1818 * tree-core.h (OMP_CLAUSE__CILK_FOR_COUNT_): Delete.
1819 * tree-nested.c: Ditto.
1820 * tree-pretty-print.c (dump_omp_clause): Remove cilkplus support.
1821 (dump_generic_node): Ditto.
1822 * tree.c (OMP_CLAUSE__CILK_FOR_COUNT_): Delete.
1823 * tree.def (cilk_simd, cilk_for, cilk_spawn_stmt, cilk_sync_stmt):
1824 Delete.
1825 * tree.h (CILK_SPAWN_FN, EXPR_CILK_SPAWN): Delete.
1826
1827 2017-11-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1828
1829 * config/aarch64/aarch64.md (div<mode>3): Change check to TARGET_FLOAT.
1830 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Add early exit
1831 for vector mode and !TARGET_SIMD.
1832
1833 2017-11-28 Jakub Jelinek <jakub@redhat.com>
1834
1835 * tree.def (SWITCH_EXPR): Change from 3 operand to 2 operand tree.
1836 Adjust comment.
1837 * tree.h (SWITCH_LABELS): Remove.
1838 * gimplify.c (gimplify_switch_expr): Don't test SWITCH_LABELS,
1839 assert SWITCH_BODY is non-NULL.
1840 * tree-pretty-print.c (dump_generic_node): Remove SWITCH_LABELS
1841 handling.
1842 * tree.c (block_may_fallthru): Always return true; for SWITCH_EXPR.
1843
1844 PR tree-optimization/80788
1845 * match.pd (X +- C1 CMP C2 -> X CMP C2 -+ C1): If res
1846 has TREE_OVERFLOW set, call drop_tree_overflow.
1847
1848 2017-11-28 Richard Biener <rguenther@suse.de>
1849
1850 PR tree-optimization/83158
1851 * tree-vrp.c (intersect_ranges): Prefer ~[0, 0] in a few more cases.
1852
1853 2017-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1854
1855 PR 81288/target
1856 * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not handle
1857 TARGET_ISEL && !TARGET_MFCRF differently. Simplify code.
1858
1859 2017-11-27 Segher Boessenkool <segher@kernel.crashing.org>
1860
1861 * config/rs6000/rs6000.md (<code><GPR:mode><GPR2:mode>2_isel): Change
1862 LT/GT/LTU/GTU to LE/GE/LEU/GEU where possible.
1863
1864 2017-11-27 Michael Meissner <meissner@linux.vnet.ibm.com>
1865
1866 PR middle_end/82333
1867 * varasm.c (compare_constant): Take the mode of the constants into
1868 account when comparing floating point constants.
1869
1870 2017-11-27 Gerald Pfeifer <gerald@pfeifer.com>
1871
1872 * hash-set.h (DEFINE_DEBUG_HASH_SET): Remove static qualifier
1873 from explicit instantiation of debug_helper.
1874 * vec.h (DEFINE_DEBUG_VEC): Ditto.
1875
1876 2017-11-27 Richard Biener <rguenther@suse.de>
1877
1878 * gimple-fold.c (gimple_fold_builtin_memory_op): Remove dead code,
1879 refactor a bit.
1880
1881 2017-11-27 Richard Biener <rguenther@suse.de>
1882
1883 * tree.c (wide_int_to_tree): Free discarded INTEGER_CST.
1884 (type_hash_canon): Also clear int_cst_hash_table entry for
1885 TYPE_MIN/MAX_VALUE.
1886 (build_nonstandard_integer_type): Hash all TYPE_MAX_VALUEs.
1887
1888 2017-11-27 Tamar Christina <tamar.christina@arm.com>
1889
1890 * doc/extend.texi: Add -A suffix (ARMv8*-A, ARMv7-A).
1891 * doc/invoke.texi: Add -A suffix (ARMv8*-A, ARMv7-A).
1892 * doc/sourcebuild.texi: Add -A suffix (ARMv8*-A, ARMv7-A).
1893
1894 2017-11-27 Markus Trippelsdorf <markus@trippelsdorf.de>
1895
1896 * hash-map.h (gt_cleare_cache): Avoid UB.
1897
1898 2017-11-27 Eric Botcazou <ebotcazou@adacore.com>
1899
1900 * cfgloop.h (struct loop): Document usage of USHRT_MAX for unroll.
1901 * loop-unroll.c (decide_unroll_constant_iterations): Implement it.
1902 (decide_unroll_runtime_iterations): Likewise.
1903 (decide_unroll_stupid): Likewise.
1904
1905 2017-11-27 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1906
1907 PR target/83109
1908 * config/i386/i386.md: Add a loop with incssp.
1909
1910 2017-11-27 Martin Jambor <mjambor@suse.cz>
1911
1912 PR tree-optimization/81248
1913 * tree-sra.c (splice_param_accesses): Remove size check.
1914 (decide_one_param_reduction): Fix size check.
1915 * gimple-pretty-print.c (dump_profile): Silence warning.
1916 * params.def (PARAM_IPA_SRA_PTR_GROWTH_FACTOR): Adjust description.
1917
1918 2017-11-27 Jakub Jelinek <jakub@redhat.com>
1919
1920 PR debug/81307
1921 * dbxout.c (lastlineno): New variable.
1922 (dbx_debug_hooks): Use dbxout_switch_text_section as
1923 switch_text_section debug hook.
1924 (dbxout_function_end): Switch to current_function_section
1925 rather than function_section. If crtl->has_bb_partition,
1926 output just one N_FUN, depending on in_cold_section_p.
1927 (dbxout_source_line): Remember last lineno in lastlineno.
1928 (dbxout_switch_text_section): New function.
1929 (dbxout_function_decl): Adjust dbxout_block caller.
1930 (dbx_block_with_cold_children): New function.
1931 (dbxout_block): Return true if any LBRAC/RBRAC have been
1932 emitted. Use dbx_block_with_cold_children at depth == 0
1933 in second partition. Add PARENT_BLOCKNUM argument, pass
1934 it optionally adjusted to children. Output LBRAC/RBRAC
1935 around recursive call only if the block is in the current
1936 partition, if not and anything was output, emit empty
1937 range LBRAC/RBRAC.
1938 * final.c (final_scan_insn): Compute cold_function_name
1939 before calling switch_text_section debug hook. Call
1940 that hook even if dwarf2out_do_frame if not emitting
1941 dwarf debug info.
1942
1943 PR target/83100
1944 * varasm.c (bss_initializer_p): Return true for DECL_COMMON
1945 TREE_READONLY decls.
1946
1947 2017-11-27 Markus Trippelsdorf <markus@trippelsdorf.de>
1948
1949 PR rtl-optimization/82488
1950 * expr.c (fixup_args_size_notes): Avoid signed integer overflow.
1951
1952 2017-11-26 Julia Koval <julia.koval@intel.com>
1953
1954 * config/i386/i386.c (processor_target_table): Add skylake_cost for
1955 skylake-avx512.
1956 * config/i386/x86-tune-costs.h (skylake_memcpy, skylake_memset,
1957 skylake_cost): New.
1958
1959 2017-11-26 Julia Koval <julia.koval@intel.com>
1960
1961 * config/i386/driver-i386.c (host_detect_local_cpu):
1962 Detect skylake-avx512.
1963
1964 2017-11-26 Julia Koval <julia.koval@intel.com>
1965
1966 * config.gcc: Add -march=cannonlake.
1967 * config/i386/driver-i386.c (host_detect_local_cpu): Detect cannonlake.
1968 * config/i386/i386-c.c (ix86_target_macros_internal): Handle cannonlake.
1969 * config/i386/i386.c (processor_costs): Add m_CANNONLAKE.
1970 (PTA_CANNONLAKE): New.
1971 (processor_target_table): Add cannonlake.
1972 (ix86_option_override_internal): Ditto.
1973 (fold_builtin_cpu): Ditto.
1974 (get_builtin_code_for_version): Handle cannonlake.
1975 (M_INTEL_COREI7_CANNONLAKE): New.
1976 * config/i386/i386.h (TARGET_CANNONLAKE, PROCESSOR_CANNONLAKE): New.
1977 * doc/invoke.texi: Add -march=cannonlake.
1978
1979 2017-11-14 Boris Kolpackov <boris@codesynthesis.com>
1980
1981 * plugin.c (add_new_plugin): Use platform-specific library extensions.
1982 (try_init_one_plugin): Alternative implementation for MinGW.
1983 * Makefile.in (plugin_implib): New.
1984 (gengtype-lex.c): Fix broken AIX workaround.
1985 * configure: Regenerate.
1986 * doc/plugins.texi: Document support for MinGW.
1987
1988 2017-11-25 Jakub Jelinek <jakub@redhat.com>
1989
1990 PR rtl-optimization/81553
1991 * combine.c (simplify_if_then_else): In (if_then_else COND (OP Z C1) Z)
1992 to (OP Z (mult COND (C1 * STORE_FLAG_VALUE))) optimization, if OP
1993 is a shift where C1 has different mode than the whole shift, use C1's
1994 mode for MULT rather than the shift's mode.
1995
1996 PR target/82848
1997 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Don't fold
1998 builtins not enabled in the currently selected ISA.
1999
2000 2017-11-24 Jackson Woodruff <jackson.woodruff@arm.com>
2001
2002 PR tree-optimization/71026
2003 * tree-ssa-math-opts (is_division_by_square, is_square_of): New.
2004 (insert_reciprocals): Change to insert reciprocals before a division
2005 by a square and to insert the square of a reciprocal.
2006 (execute_cse_reciprocals_1): Change to consider division by a square.
2007 (register_division_in): Add importance parameter.
2008
2009 2017-11-24 Richard Biener <rguenther@suse.de>
2010
2011 PR tree-optimization/82402
2012 * tree-vect-loop-manip.c (create_lcssa_for_virtual_phi): Properly
2013 set SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2014
2015 2017-11-24 Marc Glisse <marc.glisse@inria.fr>
2016
2017 * match.pd (0-ptr): New transformation.
2018
2019 2017-11-24 Jan Hubicka <hubicka@ucw.cz>
2020
2021 PR bootstrap/83015
2022 * ipa-inline.c (inline_small_functions): Set current badnes correctly
2023 when skipping checking.
2024
2025 2017-11-24 Richard Biener <rguenther@suse.de>
2026
2027 PR tree-optimization/83128
2028 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle STRING_CSTs.
2029 (vn_reference_lookup_3): Likewise.
2030
2031 2017-11-24 Jakub Jelinek <jakub@redhat.com>
2032
2033 PR sanitizer/83014
2034 * ubsan.c (ubsan_type_descriptor): Use pp_unsigned_wide_integer
2035 instead of pp_printf with HOST_WIDE_INT_PRINT_DEC. Avoid calling
2036 tree_to_uhwi twice.
2037
2038 * tree-object-size.c (pass_through_call): Use gimple_call_return_flags
2039 ERF_RETURN*ARG* for builtins other than BUILT_IN_ASSUME_ALIGNED,
2040 check for the latter with gimple_call_builtin_p. Do not handle
2041 BUILT_IN_STPNCPY_CHK which is not a pass through call.
2042
2043 2017-11-24 Christophe Lyon <christophe.lyon@linaro.org>
2044
2045 * config/arm/arm_neon.h: Fix pragma GCC push_options before
2046 vdot_u32.
2047
2048 2017-11-23 Julia Koval <julia.koval@intel.com>
2049
2050 * config/i386/avx512vbmi2intrin.h (_mm512_mask_expand_epi8,
2051 _mm512_maskz_expand_epi8, _mm512_mask_expandloadu_epi8,
2052 _mm512_maskz_expandloadu_epi8, _mm512_mask_expand_epi16,
2053 _mm512_maskz_expand_epi16, _mm512_mask_expandloadu_epi16,
2054 _mm512_maskz_expandloadu_epi16): New intrinsics.
2055 * config/i386/avx512vbmi2vlintrin.h (_mm_mask_expand_epi8,
2056 _mm_maskz_expand_epi8, _mm_mask_expandloadu_epi8,
2057 _mm_maskz_expandloadu_epi8, _mm_mask_expand_epi16,
2058 _mm_maskz_expand_epi16, _mm_mask_expandloadu_epi16,
2059 _mm_maskz_expandloadu_epi16, _mm256_mask_expand_epi16,
2060 _mm256_maskz_expand_epi16, _mm256_mask_expandloadu_epi16,
2061 _mm256_maskz_expandloadu_epi16, _mm256_mask_expand_epi8,
2062 _mm256_maskz_expand_epi8, _mm256_mask_expandloadu_epi8,
2063 _mm256_maskz_expandloadu_epi8): New intrinsics.
2064 * config/i386/i386-builtin-types.def (V64QI_FTYPE_PCV64QI_V64QI_UDI,
2065 V32HI_FTYPE_PCV32HI_V32HI_USI, V32QI_FTYPE_PCV32QI_V32QI_USI,
2066 V16HI_FTYPE_PCV16HI_V16HI_UHI, V16QI_FTYPE_PCV16QI_V16QI_UHI,
2067 V8HI_FTYPE_PCV8HI_V8HI_UQI): New types.
2068 * config/i386/i386.c (ix86_expand_special_args_builtin): Use new types.
2069 * config/i386/sse.md (VI248_VLBW): New iterator.
2070 (expand<mode>_mask, expand<mode>_maskz): New patterns.
2071
2072 2017-11-23 Julia Koval <julia.koval@intel.com>
2073
2074 * config.gcc (avx512vbmi2intrin.h, avx512vbmi2vlintrin): New headers.
2075 * config/i386/avx512vbmi2intrin.h (_mm512_mask_compress_epi8,
2076 _mm512_maskz_compress_epi8, _mm512_mask_compressstoreu_epi8,
2077 _mm512_mask_compress_epi16, _mm512_maskz_compress_epi16,
2078 _mm512_mask_compressstoreu_epi16): New.
2079 * config/i386/avx512vbmi2vlintrin.h (_mm_mask_compress_epi8,
2080 _mm_maskz_compress_epi8, _mm256_mask_compressstoreu_epi16,
2081 _mm_mask_compress_epi16, _mm_maskz_compress_epi16,
2082 _mm256_mask_compress_epi16, _mm256_maskz_compress_epi16,
2083 _mm_mask_compressstoreu_epi8, _mm_mask_compressstoreu_epi16,
2084 _mm256_mask_compress_epi8, _mm256_maskz_compress_epi8,
2085 _mm256_mask_compressstoreu_epi8): New.
2086 * config/i386/i386-builtin-types.def (VOID_FTYPE_PV64QI_V64QI_UDI,
2087 VOID_FTYPE_PV32HI_V32HI_USI, VOID_FTYPE_PV32QI_V32QI_USI,
2088 VOID_FTYPE_PV16QI_V16QI_UHI, VOID_FTYPE_PV16HI_V16HI_UHI,
2089 VOID_FTYPE_PV8HI_V8HI_UQI): New types.
2090 * config/i386/i386-builtin.def (__builtin_ia32_compressqi512_mask,
2091 __builtin_ia32_compresshi512_mask, __builtin_ia32_compressqi256_mask,
2092 __builtin_ia32_compressqi128_mask, __builtin_ia32_compresshi256_mask,
2093 __builtin_ia32_compresshi128_mask,
2094 __builtin_ia32_compressstoreuqi512_mask,
2095 __builtin_ia32_compressstoreuhi512_mask,
2096 __builtin_ia32_compressstoreuqi256_mask,
2097 __builtin_ia32_compressstoreuqi128_mask,
2098 __builtin_ia32_compressstoreuhi256_mask,
2099 __builtin_ia32_compressstoreuhi128_mask): New builtins.
2100 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Create special args
2101 array for flags2.
2102 (ix86_expand_special_args_builtin): Handle new types.
2103 (s4fma_expand): Handle new builtin array.
2104 * config/i386/immintrin.h: Include new headers.
2105 * config/i386/sse.md (VI12_AVX512VLBW): New iterator.
2106 (compress<mode>_mask, compressstore<mode>_mask): New patterns.
2107
2108 2017-11-23 Jakub Jelinek <jakub@redhat.com>
2109
2110 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Formatting
2111 fixes. Declare temp and g variables at the top in order to avoid
2112 {} in most of the cases.
2113
2114 2017-11-23 Marc Glisse <marc.glisse@inria.fr>
2115
2116 * match.pd (ptr-0): New transformation.
2117
2118 2017-11-23 Charles Baylis <charles.baylis@linaro.org>
2119
2120 * config/arm/arm-protos.h (enum arm_addr_mode_op): New.
2121 (struct addr_mode_cost_table): New.
2122 (struct tune_params): Add field addr_mode_costs.
2123 * config/arm/arm.c (generic_addr_mode_costs): New.
2124 (arm_slowmul_tune): Initialise addr_mode_costs field.
2125 (arm_fastmul_tune): Likewise.
2126 (arm_strongarm_tune): Likewise.
2127 (arm_xscale_tune): Likewise.
2128 (arm_9e_tune): Likewise.
2129 (arm_marvell_pj4_tune): Likewise.
2130 (arm_v6t2_tune): Likewise.
2131 (arm_cortex_tune): Likewise.
2132 (arm_cortex_a8_tune): Likewise.
2133 (arm_cortex_a7_tune): Likewise.
2134 (arm_cortex_a15_tune): Likewise.
2135 (arm_cortex_a35_tune): Likewise.
2136 (arm_cortex_a53_tune): Likewise.
2137 (arm_cortex_a57_tune): Likewise.
2138 (arm_exynosm1_tune): Likewise.
2139 (arm_xgene1_tune): Likewise.
2140 (arm_cortex_a5_tune): Likewise.
2141 (arm_cortex_a9_tune): Likewise.
2142 (arm_cortex_a12_tune): Likewise.
2143 (arm_cortex_a73_tune): Likewise.
2144 (arm_v7m_tune): Likewise.
2145 (arm_cortex_m7_tune): Likewise.
2146 (arm_v6m_tune): Likewise.
2147 (arm_fa726te_tune): Likewise.
2148 (arm_mem_costs): Use table lookup to calculate cost of addressing mode.
2149
2150 2017-11-23 Charles Baylis <charles.baylis@linaro.org>
2151
2152 * config/arm/arm.c (arm_mem_costs): New function.
2153 (arm_rtx_costs_internal): Use arm_mem_costs.
2154
2155 2017-11-23 Mark Wielaard <mark@klomp.org>
2156
2157 * dwarf2out.c (init_sections_and_labels): Use generation to create
2158 unique ranges_section_label and ranges_base_label. Return generation.
2159 (output_rnglists): Add generation argument. Use generation to create
2160 unique ranges labels.
2161 (dwarf2out_finish): Get generation from init_sections_and_labels
2162 and pass generation to output_rnglists.
2163
2164 2017-11-23 Mike Stump <mikestump@comcast.net>
2165 Eric Botcazou <ebotcazou@adacore.com>
2166
2167 * doc/generic.texi (ANNOTATE_EXPR): Document 3rd operand.
2168 * cfgloop.h (struct loop): Add unroll field.
2169 * function.h (struct function): Add has_unroll bitfield.
2170 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Deal with unroll kind.
2171 (gimplify_expr) <ANNOTATE_EXPR>: Propagate 3rd operand.
2172 * loop-init.c (pass_loop2::gate): Return true if cfun->has_unroll.
2173 (pass_rtl_unroll_loops::gate): Likewise.
2174 * loop-unroll.c (decide_unrolling): Tweak note message. Skip loops
2175 for which loop->unroll==1.
2176 (decide_unroll_constant_iterations): Use note for consistency and
2177 take loop->unroll into account. Return early if loop->unroll is set.
2178 Fix thinko in existing test.
2179 (decide_unroll_runtime_iterations): Use note for consistency and
2180 take loop->unroll into account.
2181 (decide_unroll_stupid): Likewise.
2182 * lto-streamer-in.c (input_cfg): Read loop->unroll.
2183 * lto-streamer-out.c (output_cfg): Write loop->unroll.
2184 * tree-cfg.c (replace_loop_annotate_in_block) <annot_expr_unroll_kind>:
2185 New case.
2186 (replace_loop_annotate) <annot_expr_unroll_kind>: Likewise.
2187 (print_loop): Print loop->unroll if set.
2188 * tree-core.h (enum annot_expr_kind): Add annot_expr_unroll_kind.
2189 * tree-inline.c (copy_loops): Copy unroll and set cfun->has_unroll.
2190 * tree-pretty-print.c (dump_generic_node) <annot_expr_unroll_kind>:
2191 New case.
2192 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Bail out if
2193 loop->unroll is set and smaller than the trip count. Otherwise bypass
2194 entirely the heuristics if loop->unroll is set. Remove dead note.
2195 Fix off-by-one bug in other note.
2196 (try_peel_loop): Bail out if loop->unroll is set. Fix formatting.
2197 (tree_unroll_loops_completely_1): Force unrolling if loop->unroll
2198 is greater than 1.
2199 (tree_unroll_loops_completely): Make static.
2200 (pass_complete_unroll::execute): Use correct type for variable.
2201 (pass_complete_unrolli::execute): Fix formatting.
2202 * tree.def (ANNOTATE_EXPR): Add 3rd operand.
2203
2204 2017-11-23 Sergey Shalnov <Sergey.Shalnov@intel.com>
2205
2206 * config/i386/i386.h (TARGET_PREFER_AVX256): Also
2207 enable when TARGET_PREFER_AVX128 is set.
2208
2209 2017-11-23 Jan Hubicka <hubicka@ucw.cz>
2210
2211 * ipa-profile.c (ipa_propagate_frequency_1): Use count instead of
2212 frequency.
2213 * cgraph.c (cgraph_edge::dump_edge_flags): Dump sreal frequencies.
2214 (cgraph_edge::maybe_hot_p): Use sreal frequencies.
2215
2216 2017-11-23 Jan Hubicka <hubicka@ucw.cz>
2217
2218 * ipa-fnsummary.c (record_modified_bb_info): Use sreal
2219 frequencies. Fix estimation of aggregate parameters.
2220
2221 2017-11-23 Jan Hubicka <hubicka@ucw.cz>
2222
2223 * cgraphclones.c (cgraph_node::create_clone): Fix updating of profile
2224 when inlining.
2225
2226 2017-11-23 Tom de Vries <tom@codesourcery.com>
2227
2228 * config/sh/sh.h (ASM_OUTPUT_ADDR_VEC_ELT): Wrap in "do {} while (0)".
2229
2230 2017-11-23 Tom de Vries <tom@codesourcery.com>
2231
2232 * config/ft32/ft32.h (ASM_OUTPUT_ADDR_VEC_ELT): Remove semicolon after
2233 macro.
2234
2235 2017-11-23 Oleg Endo <olegendo@gcc.gnu.org>
2236
2237 PR target/83111
2238 * config/sh/sh.md (udivsi3, divsi3, sibcall_value_pcrel,
2239 sibcall_value_pcrel_fdpic): Use local variable instead of
2240 operands[3].
2241 (calli_tbr_rel): Add missing operand 2.
2242 (call_valuei_tbr_rel): Add missing operand 3.
2243
2244 2017-11-23 Jakub Jelinek <jakub@redhat.com>
2245
2246 PR middle-end/82253
2247 * expr.c (expand_assignment): For CONCAT to_rtx, complex type from and
2248 bitpos/bitsize covering the whole destination, use store_expr only if
2249 the complex mode is the same. Otherwise, use expand_normal and if
2250 it returns CONCAT, subreg each part separately instead of trying to
2251 subreg the whole result.
2252
2253 2017-11-23 Richard Biener <rguenther@suse.de>
2254
2255 PR tree-optimization/23094
2256 * tree-ssa-sccvn.c (vuse_ssa_val): Handle VN_TOP when we
2257 come here from walking over backedges in the first iteration.
2258 (vn_reference_lookup_3): Skip clobbers that store the same value.
2259
2260 2017-11-23 Richard Biener <rguenther@suse.de>
2261
2262 PR tree-optimization/81403
2263 * tree-ssa-pre.c (get_representative_for): Add parameter specifying
2264 a block we need a leader relative to.
2265 (phi_translate_1): For nary processing require a leader from
2266 get_representative_for given we run expression simplification
2267 using match-and-simplify. Remove previous fix.
2268
2269 2017-11-22 Jeff Law <law@redhat.com>
2270
2271 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
2272 Use new method allocate_value_range rather than accessing the
2273 vrp_value_range_pool data member directly.
2274 * tree-vrp.c (simplify_stmt_for_jump_threading): Tweak slightly
2275 to use extract_range_from_stmt method to avoid need for
2276 extract_range_from_assignment method.
2277 (vrp_prop::vrp_finalize): Use set_lattice_propagation_complete
2278 method rather than setting values_propgated data member directly.
2279 * vr-values.h (class vr_values): Privatize vrp_value_range_pool,
2280 and values propagated data members and extract_range_from_assignment
2281 method. Reorder private data members to conform to standards.
2282 Add new methods set_lattice_propagation_complete and
2283 allocate_value_range.
2284
2285 2017-11-22 Eric Botcazou <ebotcazou@adacore.com>
2286
2287 PR rtl-optimization/83030
2288 * doc/rtl.texi (Flags in an RTL Expression): Alphabetize, add entry
2289 for CROSSING_JUMP_P and mention usage of 'jump' for JUMP_INSNs.
2290 (Insns): Delete entry for REG_CROSSING_JUMP in register notes.
2291 * bb-reorder.c (update_crossing_jump_flags): Do not test whether the
2292 CROSSING_JUMP_P flag is already set before setting it.
2293 * cfgrtl.c (fixup_partition_crossing): Likewise.
2294 * reorg.c (relax_delay_slots): Do not consider a CROSSING_JUMP_P
2295 insn as useless.
2296
2297 2017-11-22 Jakub Jelinek <jakub@redhat.com>
2298
2299 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SERIES>:
2300 Handle the case where both arguments are using gen_const_vec_series.
2301
2302 2017-11-22 David Malcolm <dmalcolm@redhat.com>
2303
2304 PR c++/62170
2305 * pretty-print.c (pp_format): Move quoting implementation to
2306 pp_begin_quote and pp_end_quote. Update pp_format_decoder call
2307 to pass address of "quote" local.
2308 (pp_begin_quote): New function.
2309 (pp_end_quote): New function.
2310 * pretty-print.h (printer_fn): Convert penultimate param from bool
2311 to bool *.
2312 (pp_begin_quote): New decl.
2313 (pp_end_quote): New decl.
2314 * tree-diagnostic.c (default_tree_printer): Convert penultimate
2315 param from bool to bool *.
2316 * tree-diagnostic.h (default_tree_printer): Likewise.
2317
2318 2017-11-22 Jeff Law <law@redhat.com>
2319
2320 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::evrp_range_analyzer)
2321 Initialize vr_values.
2322 (evrp_range_analyzer::try_find_new_range): Call methods attached to
2323 vr_values via vr_values class instance rather than delegators.
2324 (evrp_range_analyzer::record_ranges_from_phis): Likewise.
2325 (evrp_range_analyzer::record_ranges_from_stmt): Likewise.
2326 (evrp_range_analyzer::push_value_range): Likewise.
2327 (evrp_range_analyzer::pop_value_range): Likewise.
2328 * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Remove
2329 most delegators. Those remaining are exposed as public interfaces.
2330 Make vr_values a pointer and private.
2331 (evrp_range_analyzer::~evrp_range_analyzer): Delete the attached
2332 vr_values.
2333 (evrp_range_analyzer::get_vr_value): New method.
2334 * gimple-ssa-evrp.c (class evrp_folder): Use DISABLE_COPY_AND_ASSIGN.
2335 (evrp_folder::evrp_folder): New ctor to initialize vr_values.
2336 (class evrp_dom_walker): Attach evrp_folder class, initialize
2337 it in the ctor. Remove temporary delegators.
2338 (evrp_dom_walker::before_dom_children): Call methods in attached
2339 evrp_range_analyzer class via class instance pointer. Use
2340 free value_range_constant_singleton to remove need for
2341 op_with_constant_singleton_value delegator method. Do not
2342 create a vrp_prop class instance for every call! Narrow
2343 scope of a couple variables.
2344 (evrp_dom_walker::cleanup): Call methods in attached
2345 evrp_range_analyzer class via class instance pointer.
2346 * vr-values.h (class vr_values): Privatize many methods and
2347 data members.
2348
2349 2017-11-22 Richard Sandiford <richard.sandiford@linaro.org>
2350
2351 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Delete.
2352 * cfgexpand.c (expand_debug_expr): Remove handling for them.
2353 * expr.c (expand_expr_real_2): Likewise.
2354 * fold-const.c (const_unop): Likewise.
2355 * optabs-tree.c (optab_for_tree_code): Likewise.
2356 * tree-cfg.c (verify_gimple_assign_unary): Likewise.
2357 * tree-inline.c (estimate_operator_cost): Likewise.
2358 * tree-pretty-print.c (dump_generic_node): Likewise.
2359 (op_code_prio): Likewise.
2360 (op_symbol_code): Likewise.
2361 * internal-fn.def (DEF_INTERNAL_SIGNED_OPTAB_FN): Define.
2362 (IFN_REDUC_PLUS, IFN_REDUC_MAX, IFN_REDUC_MIN): New internal functions.
2363 * internal-fn.c (direct_internal_fn_optab): New function.
2364 (direct_internal_fn_array, direct_internal_fn_supported_p
2365 (internal_fn_expanders): Handle DEF_INTERNAL_SIGNED_OPTAB_FN.
2366 * fold-const-call.c (fold_const_reduction): New function.
2367 (fold_const_call): Handle CFN_REDUC_PLUS, CFN_REDUC_MAX and
2368 CFN_REDUC_MIN.
2369 * tree-vect-loop.c: Include internal-fn.h.
2370 (reduction_code_for_scalar_code): Rename to...
2371 (reduction_fn_for_scalar_code): ...this and return an internal
2372 function.
2373 (vect_model_reduction_cost): Take an internal_fn rather than
2374 a tree_code.
2375 (vect_create_epilog_for_reduction): Likewise. Build calls rather
2376 than assignments.
2377 (vectorizable_reduction): Use internal functions rather than tree
2378 codes for the reduction operation. Update calls to the functions
2379 above.
2380 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
2381 Use calls to internal functions rather than REDUC tree codes.
2382 * config/aarch64/aarch64-simd.md: Update comment accordingly.
2383
2384 2017-11-22 Olivier Hainque <hainque@adacore.com>
2385
2386 * config/vxworks.c (vxworks_override_options): Pick default
2387 dwarf version from macro value, VXWORKS_DWARF_VERSION_DEFAULT.
2388 * config/vxworks.h: Define VXWORKS_DWARF_VERSION_DEFAULT and
2389 DWARF_GNAT_ENCODINGS_DEFAULT.
2390 * config/vxworksae.h: Likewise.
2391
2392 2017-11-22 Marc Glisse <marc.glisse@inria.fr>
2393
2394 PR tree-optimization/83104
2395 * vr-values.c (simplify_stmt_using_ranges): Check integral argument,
2396 not result.
2397
2398 2017-11-22 Marek Polacek <polacek@redhat.com>
2399 H.J. Lu <hongjiu.lu@intel.com>
2400 Jason Merrill <jason@redhat.com>
2401
2402 PR c++/60336
2403 PR middle-end/67239
2404 PR target/68355
2405 * calls.c (initialize_argument_information): Call
2406 warn_parameter_passing_abi target hook.
2407 (store_one_arg): Use 0 for empty record size. Don't push 0 size
2408 argument onto stack.
2409 (must_pass_in_stack_var_size_or_pad): Return false for empty types.
2410 * common.opt: Update -fabi-version description.
2411 * config/i386/i386.c (init_cumulative_args): Set cum->warn_empty.
2412 (ix86_gimplify_va_arg): Call arg_int_size_in_bytes instead of
2413 int_size_in_bytes.
2414 (ix86_is_empty_record): New function.
2415 (ix86_warn_parameter_passing_abi): New function.
2416 (TARGET_EMPTY_RECORD_P): Redefine.
2417 (TARGET_WARN_PARAMETER_PASSING_ABI): Redefine.
2418 * config/i386/i386.h (CUMULATIVE_ARGS): Add warn_empty.
2419 * doc/tm.texi: Regenerated.
2420 * doc/tm.texi.in (TARGET_EMPTY_RECORD_P,
2421 TARGET_WARN_PARAMETER_PASSING_ABI): Add.
2422 * dwarf2out.c (get_ultimate_context): Move to tree.c.
2423 * explow.c (hard_function_value): Call arg_int_size_in_bytes
2424 instead of int_size_in_bytes.
2425 * expr.c (copy_blkmode_to_reg): Likewise.
2426 * function.c (aggregate_value_p): Return 0 for empty types.
2427 (assign_parm_find_entry_rtl): Call warn_parameter_passing_abi
2428 target hook.
2429 (locate_and_pad_parm): Call arg size_in_bytes instead
2430 size_in_bytes.
2431 * lto-streamer-out.c (hash_tree): Hash TYPE_EMPTY_P and DECL_PADDING_P.
2432 * stor-layout.c (finalize_type_size): Set TYPE_EMPTY_P.
2433 * target.def (empty_record_p, warn_parameter_passing_abi): New target
2434 hooks.
2435 * targhooks.c (hook_void_CUMULATIVE_ARGS_tree): New hook.
2436 (std_gimplify_va_arg_expr): Skip empty records. Call
2437 arg_size_in_bytes instead size_in_bytes.
2438 * targhooks.h (hook_void_CUMULATIVE_ARGS_tree): Declare.
2439 * tree-core.h (tree_type_common): Add empty_flag.
2440 (tree_decl_common): Update comments.
2441 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Stream
2442 DECL_PADDING_P.
2443 (unpack_ts_type_common_value_fields): Stream TYPE_EMPTY_P.
2444 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream
2445 DECL_PADDING_P.
2446 (pack_ts_type_common_value_fields): Stream TYPE_EMPTY_P.
2447 * tree.c (default_is_empty_type): New function.
2448 (default_is_empty_record): New function.
2449 (arg_int_size_in_bytes): New function.
2450 (arg_size_in_bytes): New function.
2451 (get_ultimate_context): New function.
2452 * tree.h: Define TYPE_EMPTY_P, DECL_PADDING_P and
2453 TRANSLATION_UNIT_WARN_EMPTY_P.
2454 (default_is_empty_record, arg_int_size_in_bytes,
2455 arg_size_in_bytes, get_ultimate_context): Declare.
2456
2457 2017-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
2458
2459 * config/arm/arm.c (cmse_clear_registers): New function.
2460 (cmse_nonsecure_call_clear_caller_saved): Replace register clearing
2461 code by call to cmse_clear_registers.
2462 (cmse_nonsecure_entry_clear_before_return): Likewise.
2463
2464 2017-11-22 Tamar Christina <tamar.christina@arm.com>
2465
2466 * config/arm/arm_neon.h (vdot_u32, vdotq_u32)
2467 (vdot_s32, vdotq_s32): New.
2468 (vdot_lane_u32, vdotq_lane_u32): New.
2469 (vdot_lane_s32, vdotq_lane_s32): New.
2470
2471
2472 2017-11-22 Richard Sandiford <richard.sandiford@linaro.org>
2473
2474 PR middle-end/82547
2475 * wide-int.cc (wi::add_large, wi::sub_large): Fix overflow detection
2476 for unsigned values with fewer HWIs than the precision.
2477 (test_overflow): New function.
2478 (wide_int_cc_tests): Call it.
2479
2480 2017-11-22 Richard Sandiford <richard.sandiford@linaro.org>
2481
2482 * emit-rtl.c (init_derived_machine_modes): Make sure ptr_mode
2483 has the same mode class as Pmode.
2484
2485 2017-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
2486
2487 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Get rid of
2488 padding_bits_to_clear_ptr.
2489 (cmse_nonsecure_entry_clear_before_return): Likewise.
2490
2491 2017-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
2492
2493 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Use
2494 auto_sbitap instead of integer bitfield to control register needing
2495 clearing.
2496
2497 2017-11-22 Jakub Jelinek <jakub@redhat.com>
2498
2499 PR tree-optimization/83044
2500 * tree-vrp.c (vrp_prop::check_array_ref): If eltsize is not
2501 INTEGER_CST or is 0, clear up_bound{,_p1} and later ignore tests
2502 that need the upper bound. Subtract offset from
2503 get_addr_base_and_unit_offset only if positive and subtract it
2504 before division by eltsize rather than after it.
2505
2506 PR debug/83084
2507 * valtrack.c (propagate_for_debug_subst, propagate_for_debug): Reset
2508 debug insns if they would contain UNSPEC_VOLATILE or volatile asm.
2509 (dead_debug_insert_temp): Likewise, but also ignore even non-volatile
2510 asm.
2511
2512 PR middle-end/82875
2513 * optabs.c (expand_doubleword_mult, expand_binop): Before calling
2514 expand_binop with *mul_widen_optab, make sure at least one of the
2515 operands doesn't have VOIDmode.
2516
2517 PR debug/83034
2518 * dwarf2out.c (mem_loc_descriptor): Handle VEC_SERIES.
2519
2520 PR rtl-optimization/82044
2521 PR tree-optimization/82042
2522 * dse.c (record_store): Check for overflow.
2523 (check_mem_read_rtx): Properly check for overflow if width == -1, call
2524 add_wild_read instead of clear_rhs_from_active_local_stores on
2525 overflow and log it into dump_file.
2526
2527 2017-11-22 Richard Biener <rguenther@suse.de>
2528
2529 * gimple-iterator.c (gimple_find_edge_insert_loc): Ignore
2530 fake edges to exit when looking for a place to insert.
2531 * tree-ssa-pre.c (clear_expression_ids): Inline into callers
2532 and remove.
2533 (insert_into_preds_of_block): Commit edge insertion immediately,
2534 assert that doesn't require new BBs.
2535 (fini_pre): Release expressions.
2536 (pass_pre::execute): Shuffle things around a bit, if the fn
2537 is too large do not compute AVAIL either as this is really the
2538 quadratic bit.
2539
2540 2017-11-22 Richard Biener <rguenther@suse.de>
2541
2542 PR tree-optimization/83089
2543 * tree-if-conv.c (pass_if_conversion::execute): If anything
2544 changed reset SCEV and free the number of iteration estimates.
2545
2546 2017-11-21 Martin Sebor <msebor@redhat.com>
2547
2548 PR tree-optimization/82945
2549 * calls.h (warn_nonstring_bound): Remove unused function.
2550
2551 2017-11-21 Martin Sebor <msebor@redhat.com>
2552
2553 PR tree-optimization/82945
2554 * builtins.c (expand_builtin_strlen): Call maybe_warn_nonstring_arg.
2555 * calls.h (maybe_warn_nonstring_arg): Declare new function.
2556 * calls.c (get_attr_nonstring_decl, maybe_warn_nonstring_arg): New
2557 functions.
2558 (initialize_argument_information): Call maybe_warn_nonstring_arg.
2559 * calls.h (get_attr_nonstring_decl): Declare new function.
2560 * doc/extend.texi (attribute nonstring): Update.
2561 * gimple-fold.c (gimple_fold_builtin_strncpy): Call
2562 get_attr_nonstring_decl and handle it.
2563 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same. Improve
2564 detection of nul-termination.
2565 (strlen_to_stridx): Change to a pointer.
2566 (handle_builtin_strlen, handle_builtin_stxncpy): Adjust.
2567 (pass_strlen::execute): Same.
2568
2569 2017-11-21 Sergey Shalnov <Sergey.Shalnov@intel.com>
2570
2571 * config/i386/i386-opts.h (enum prefer_vector_width): Added new enum
2572 for the new option -mprefer-vector-width=[none|128|256|512].
2573 * config/i386/i386.c (ix86_target_string): remove old style options
2574 -mprefer-avx256 and make -mprefer-avx128 as alias.
2575 (ix86_option_override_internal): Apply defaults for the
2576 -mprefer-vector-width=[128|256] option.
2577 * config/i386/i386.h (TARGET_PREFER_AVX128, TARGET_PREFER_AVX256):
2578 Implement macros to work with -mprefer-vector-width=.
2579 * config/i386/i386.opt: Implemented option
2580 -mprefer-vector-width=[none|128|256|512].
2581 * doc/invoke.texi: Documentation for
2582 -mprefer-vector-width=[none|128|256|512].
2583
2584 2017-11-21 Pat Haugen <pthaugen@us.ibm.com>
2585
2586 * config/rs6000/ppc-asm.h (f50, vs50): Fix values.
2587
2588 2017-11-21 Jonathan Wakely <jwakely@redhat.com>
2589
2590 * doc/invoke.texi (-Wmaybe-uninitialized): Rephrase for clarity.
2591
2592 2017-11-21 Marc Glisse <marc.glisse@inria.fr>
2593
2594 * doc/generic.texi: Document POINTER_DIFF_EXPR, update
2595 POINTER_PLUS_EXPR.
2596 * cfgexpand.c (expand_debug_expr): Handle POINTER_DIFF_EXPR.
2597 * expr.c (expand_expr_real_2): Likewise.
2598 * fold-const.c (const_binop, fold_addr_of_array_ref_difference,
2599 fold_binary_loc): Likewise.
2600 * match.pd (X-X, P+(Q-P), &D-P, (P+N)-P, P-(P+N), (P+M)-(P+N),
2601 P-Q==0, -(A-B), X-Z<Y-Z, (X-Z)-(Y-Z), Z-X<Z-Y, (Z-X)-(Z-Y),
2602 (A-B)+(C-A)): New transformations for POINTER_DIFF_EXPR, based on
2603 MINUS_EXPR transformations.
2604 * optabs-tree.c (optab_for_tree_code): Handle POINTER_DIFF_EXPR.
2605 * tree-cfg.c (verify_expr, verify_gimple_assign_binary): Likewise.
2606 * tree-inline.c (estimate_operator_cost): Likewise.
2607 * tree-pretty-print.c (dump_generic_node, op_code_prio,
2608 op_symbol_code): Likewise.
2609 * tree-vect-stmts.c (vectorizable_operation): Likewise.
2610 * vr-values.c (extract_range_from_binary_expr): Likewise.
2611 * varasm.c (initializer_constant_valid_p_1): Likewise.
2612 * tree.def: New tree code POINTER_DIFF_EXPR.
2613
2614 2017-11-21 Uros Bizjak <ubizjak@gmail.com>
2615
2616 * config/i386/i386.md (*bswap<mode>2_movbe): Add
2617 integer suffix to movbe mnemonic.
2618 (*bswaphi2_movbe): Ditto.
2619 (bswaphi_lowpart): Merge with *bswaphi_lowpart_1.
2620
2621 2017-11-21 Jakub Jelinek <jakub@redhat.com>
2622
2623 PR c++/83045
2624 * tree-cfg.c (pass_warn_function_return::execute): Formatting fix.
2625 Also warn if seen __builtin_unreachable () call with BUILTINS_LOCATION.
2626 Use LOCATION_LOCUS when comparing against UNKNOWN_LOCATION.
2627
2628 2017-11-21 Martin Liska <mliska@suse.cz>
2629
2630 * tree-inline.c (expand_call_inline): Remove not needed
2631 xstrdup_for_dump.
2632
2633 2017-11-21 James Cowgill <James.Cowgill@imgtec.com>
2634 Jakub Jelinek <jakub@redhat.com>
2635
2636 PR target/82880
2637 * config/mips/frame-header-opt.c (mips_register_frame_header_opt):
2638 Remove static keyword from f variable.
2639
2640 2017-11-21 Jakub Jelinek <jakub@redhat.com>
2641
2642 PR tree-optimization/83086
2643 * gimple-ssa-store-merging.c
2644 (imm_store_chain_info::try_coalesce_bswap): Test this_n.base_addr
2645 rather than n.base_addr.
2646
2647 2017-11-21 Martin Liska <mliska@suse.cz>
2648
2649 PR rtl-optimization/82044
2650 PR tree-optimization/82042
2651 * dse.c (check_mem_read_rtx): Check for overflow.
2652
2653 2017-11-21 Aldy Hernandez <aldyh@redhat.com>
2654
2655 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Fix
2656 typo in comment.
2657
2658 2017-11-21 Claudiu Zissulescu <claziss@synopsys.com>
2659
2660 * cfgrtl.c (force_nonfallthru_and_redirect): Don't split a call
2661 and its corresponding call arg location note.
2662
2663 2017-11-21 Claudiu Zissulescu <claziss@synopsys.com>
2664 Andrew Burgess <andrew.burgess@embecosm.com>
2665
2666 * config/arc/arc-protos.h (arc_compute_frame_size): Delete
2667 declaration.
2668 (arc_return_slot_offset): Likewise.
2669 (arc_eh_return_address_location): New declaration.
2670 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2671 (MUST_SAVE_REGISTER): Add exception handler case.
2672 (MUST_SAVE_RETURN_ADDR): Likewise.
2673 (arc_frame_pointer_required): Likewise.
2674 (arc_frame_pointer_needed): New function.
2675 (arc_compute_frame_size): Changed.
2676 (arc_expand_prologue): Likewise.
2677 (arc_expand_epilogue): Likewise.
2678 (arc_initial_elimination_offset): Likewise.
2679 (arc_return_slot_offset): Delete.
2680 (arc_eh_return_address_location): New function.
2681 (arc_builtin_setjmp_frame_value): Likewise.
2682 * config/arc/arc.h (EH_RETURN_DATA_REGNO): Use 2 registers.
2683 (EH_RETURN_STACKADJ_RTX): Define.
2684 (EH_RETURN_HANDLER_RTX): Likewise.
2685 * config/arc/arc.md (eh_return): Delete.
2686
2687 2017-11-21 Aldy Hernandez <aldyh@redhat.com>
2688
2689 * print-tree.h (debug_vec_tree): Remove prototype.
2690 * gdbinit.in (pvt): Remove macro.
2691
2692 2017-11-21 Jakub Jelinek <jakub@redhat.com>
2693
2694 PR tree-optimization/83047
2695 * gimple-ssa-store-merging.c
2696 (imm_store_chain_info::output_merged_store): If the loads with the
2697 same vuse are in different basic blocks, for load_gsi pick a load
2698 location that is dominated by the other loads.
2699
2700 PR c++/83059
2701 * config/i386/i386.c (ix86_memmodel_check): Start
2702 -Winvalid-memory-model diagnostics with lowercase letter.
2703
2704 PR debug/82718
2705 * dwarf2out.c (dw_loc_list): If crtl->has_bb_partition, temporarily
2706 set in_cold_section_p to the partition containing loc_list->first.
2707 When seeing loc_list->last_before_switch node, update secname and
2708 perform range_across_switch second partition handling only after that.
2709
2710 PR debug/82933
2711 * run-rtl-passes.c: Include debug.h.
2712 (run_rtl_passes): Call debug_hooks->assembly_start.
2713 * dwarf2out.c (dwarf2out_assembly_start): Return early if invoked
2714 multiple times.
2715
2716 PR target/82981
2717 * internal-fn.c (expand_mul_overflow): Use OPTAB_WIDEN instead of
2718 OPTAB_DIRECT in calls to expand_simple_binop.
2719
2720 2017-11-20 David Malcolm <dmalcolm@redhat.com>
2721
2722 PR c/81404
2723 * Makefile.in (C_COMMON_OBJS): Add c-family/known-headers.o.
2724
2725 2017-11-20 David Malcolm <dmalcolm@redhat.com>
2726
2727 PR c++/72786
2728 * spellcheck.h (best_match::blithely_get_best_candidate): New
2729 accessor.
2730
2731 2017-11-20 Jakub Jelinek <jakub@redhat.com>
2732
2733 * config/i386/i386.c (parse_mtune_ctrl_str): Start diagnostics
2734 with lower case letter.
2735
2736 2017-11-20 Uros Bizjak <ubizjak@gmail.com>
2737
2738 * config/i386/i386.md (bswaphi2): New expander.
2739 (*bswaphi2_movbe): New insn pattern.
2740 (bswaphi -> rorhi pepehole2): New peephole pattern.
2741
2742 2017-11-20 Jeff Law <law@redhat.com>
2743
2744 * Makefile.in (OBJS): Add gimple-ssa-evrp-analyze.o.
2745 * gimple-ssa-evrp-analyze.c: New file pulled from gimple-ssa-evrp.c.
2746 * gimple-ssa-evrp-analyze.h: New file pulled from gimple-ssa-evrp.c.
2747 * gimple-ssa-evrp.c: Remove bits moved into new files. Include
2748 gimple-ssa-evrp-analyze.h.
2749
2750 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Do not
2751 set BB_VISITED here.
2752 (evrp_range_analyzer::enter): Set BB_VISITED here instead.
2753
2754 2017-11-20 Bin Cheng <bin.cheng@arm.com>
2755
2756 * tree-predcom.c: Add general comment on Store-Store chains.
2757 (split_data_refs_to_components): Postpone clearing eliminate_store_p
2758 flag in component.
2759 (get_chain_last_ref_at): Rename into...
2760 (get_chain_last_write_at): ...this.
2761 (get_chain_last_write_before_load): New function.
2762 (add_ref_to_chain): Promote type of chain from CT_STORE_LOAD to
2763 CT_STORE_STORE when write reference is added.
2764 (determine_roots_comp): Support load ref in CT_STORE_STORE chains.
2765 (is_inv_store_elimination_chain): Update get_chain_last_write_at call.
2766 (initialize_root_vars_store_elim_1): Ditto.
2767 (initialize_root_vars_store_elim_2): Ditto. Replace rhs once default
2768 definition is created.
2769 (execute_pred_commoning_chain): Support load ref in CT_STORE_STORE
2770 chain by replacing it with dominant stored value.
2771
2772 2017-11-20 Bin Cheng <bin.cheng@arm.com>
2773
2774 * tree-predcom.c (add_ref_to_chain): Remove check on distance.
2775
2776 2017-11-20 Marc Glisse <marc.glisse@inria.fr>
2777
2778 * vr-values.c (extract_range_from_binary_expr): Use a full range
2779 for VR_VARYING.
2780
2781 2017-11-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
2782
2783 * config/arm/arm.md (R4_REGNUM): Define constant.
2784 (nonsecure_call_internal): Remove r4 clobber.
2785 (nonsecure_call_value_internal): Likewise.
2786 * config/arm/thumb1.md (nonsecure_call_reg_thumb1_v5): Remove second
2787 clobber and resequence match_operands.
2788 (nonsecure_call_value_reg_thumb1_v5): Likewise.
2789 * config/arm/thumb2.md (nonsecure_call_reg_thumb2): Likewise.
2790 (nonsecure_call_value_reg_thumb2): Likewise.
2791
2792 2017-11-20 Jakub Jelinek <jakub@redhat.com>
2793
2794 PR tree-optimization/78821
2795 * gimple-ssa-store-merging.c (find_bswap_or_nop_load): Give up
2796 if base is TARGET_MEM_REF. If base is not MEM_REF, set base_addr
2797 to the address of the base rather than the base itself.
2798 (find_bswap_or_nop_1): Just use pointer comparison for vuse check.
2799 (find_bswap_or_nop_finalize): New function.
2800 (find_bswap_or_nop): Use it.
2801 (bswap_replace): Return a tree rather than bool, change first
2802 argument from gimple * to gimple_stmt_iterator, allow inserting
2803 into an empty sequence, allow ins_stmt to be NULL - then emit
2804 all stmts into gsi. Fix up MEM_REF address gimplification.
2805 (pass_optimize_bswap::execute): Adjust bswap_replace caller.
2806 (struct store_immediate_info): Add N and INS_STMT non-static
2807 data members.
2808 (store_immediate_info::store_immediate_info): Initialize them
2809 from newly added ctor args.
2810 (merged_store_group::apply_stores): Formatting fixes. Sort by
2811 bitpos at the end.
2812 (stmts_may_clobber_ref_p): For stores call also
2813 refs_anti_dependent_p.
2814 (gather_bswap_load_refs): New function.
2815 (imm_store_chain_info::try_coalesce_bswap): New method.
2816 (imm_store_chain_info::coalesce_immediate_stores): Use it.
2817 (split_group): Handle LROTATE_EXPR and NOP_EXPR rhs_code specially.
2818 (imm_store_chain_info::output_merged_store): Fail if number of
2819 new estimated stmts is bigger or equal than old. Handle LROTATE_EXPR
2820 and NOP_EXPR rhs_code.
2821 (pass_store_merging::process_store): Compute n and ins_stmt, if
2822 ins_stmt is non-NULL and the store rhs is otherwise invalid, use
2823 LROTATE_EXPR rhs_code. Pass n and ins_stmt to store_immediate_info
2824 ctor.
2825 (pass_store_merging::execute): Calculate dominators.
2826
2827 * tree-ssa-math-opts.c (nop_stats, bswap_stats, struct symbolic_number,
2828 BITS_PER_MARKER, MARKER_MASK, MARKER_BYTE_UNKNOWN, HEAD_MARKER, CMPNOP,
2829 CMPXCHG, do_shift_rotate, verify_symbolic_number_p,
2830 init_symbolic_number, find_bswap_or_nop_load, perform_symbolic_merge,
2831 find_bswap_or_nop_1, find_bswap_or_nop, pass_data_optimize_bswap,
2832 class pass_optimize_bswap, bswap_replace,
2833 pass_optimize_bswap::execute): Moved to ...
2834 * gimple-ssa-store-merging.c: ... this file.
2835 Include optabs-tree.h.
2836 (nop_stats, bswap_stats, do_shift_rotate, verify_symbolic_number_p,
2837 init_symbolic_number, find_bswap_or_nop_load, perform_symbolic_merge,
2838 find_bswap_or_nop_1, find_bswap_or_nop, bswap_replace): Put into
2839 anonymous namespace, remove static keywords.
2840 (pass_optimize_bswap::gate): Test BITS_PER_UNIT == 8 here...
2841 (pass_optimize_bswap::execute): ... rather than here. Formatting fix.
2842
2843 2017-11-20 Jan Hubicka <hubicka@ucw.cz>
2844
2845 PR bootstrap/83062
2846 * ipa-inline.c (can_inline_edge_p): Fix typo in previous patch.
2847
2848 2017-11-20 Aldy Hernandez <aldyh@redhat.com>
2849
2850 * vec.h (debug_helper): New function.
2851 (DEFINE_DEBUG_VEC): New macro.
2852 * hash-set.h (debug_helper): New function.
2853 (DEFINE_DEBUG_HASH_SET): New macro.
2854 * cfg.c (debug_slim (edge)): New function.
2855 Call DEFINE_DEBUG_VEC for edges.
2856 Call DEFINE_DEBUG_HASH_SET for edges.
2857 * cfghooks.c (debug_slim (basic_block)): New function.
2858 Call DEFINE_DEBUG_VEC for basic blocks.
2859 Call DEFINE_DEBUG_HASH_SET for basic blocks.
2860 * print-tree.c (debug_slim): New function to handle trees.
2861 Call DEFINE_DEBUG_VEC for trees.
2862 Call DEFINE_DEBUG_HASH_SET for trees.
2863 (debug (vec<tree, va_gc>) &): Remove.
2864 (debug (<vec<tree, va_gc>) *): Remove.
2865 * print-rtl.c (debug_slim): New function to handle const_rtx.
2866 Call DEFINE_DEBUG_VEC for rtx_def.
2867 Call DEFINE_DEBUG_VEC for rtx_insn.
2868 Call DEFINE_DEBUG_HASH_SET for rtx_def.
2869 Call DEFINE_DEBUG_HASH_SET for rtx_insn.
2870 * sel-sched-dump.c (debug (vec<rtx_insn *> &): Remove.
2871 (debug (vec<rtx_insn *> *ptr): Remove.
2872 (debug_insn_vector): Remove.
2873 * stor-layout.c (debug_rli): Call debug() instead of debug_vec_tree.
2874
2875 2017-11-20 Tom de Vries <tom@codesourcery.com>
2876
2877 PR rtl-optimization/82020
2878 * simplify-rtx.c (simplify_ternary_operation): Fix comparison mode of
2879 IF_THEN_ELSE condition.
2880
2881 2017-11-19 Jeff Law <law@redhat.com>
2882
2883 * tree-ssa-dom.c (record_equivalences_from_phis): Fix handling
2884 of degenerates resulting from ignoring an edge.
2885
2886 2017-11-19 Jan Hubicka <hubicka@ucw.cz>
2887
2888 PR ipa/81360
2889 * ipa-inline.c (can_inline_edge_p): Also check that caller is optimized
2890
2891 2017-11-19 Jan Hubicka <hubicka@ucw.cz>
2892
2893 PR ipa/83001
2894 * profile-count.c (profile_count::to_sreal_scale): Fix return value
2895 for uninitialied counts.
2896
2897 2017-11-19 Jan Hubicka <hubicka@ucw.cz>
2898
2899 PR ipa/60243
2900 * tree-inline.c (estimate_num_insns): Set to 1 at least.
2901
2902 2017-11-19 Jan Hubicka <hubicka@ucw.cz>
2903
2904 PR target/82713
2905 * i386.c (ix86_builtin_vectorization_cost): Be ready for insane types.
2906
2907 2017-11-19 Tom de Vries <tom@codesourcery.com>
2908
2909 * config/arc/arc.h (FUNCTION_PROFILER): Remove semicolon after
2910 "do while (0)".
2911
2912 2017-11-19 Tom de Vries <tom@codesourcery.com>
2913
2914 * config/phoenix.h (TARGET_OS_CPP_BUILTINS): Remove semicolon after
2915 "do {} while (0)".
2916
2917 2017-11-19 Tom de Vries <tom@codesourcery.com>
2918
2919 * config/visium/visium.h (ASM_OUTPUT_CASE_END): Remove semicolon after
2920 macro body.
2921
2922 2017-11-19 Tom de Vries <tom@codesourcery.com>
2923
2924 * config/ft32/ft32.h (REGISTER_TARGET_PRAGMAS): Remove semicolon after
2925 "do {} while (0)".
2926 * config/spu/spu.h (REGISTER_TARGET_PRAGMAS): Same.
2927
2928 2017-11-19 Tom de Vries <tom@codesourcery.com>
2929
2930 * config/mcore/mcore-elf.h (MCORE_EXPORT_NAME): Remove semicolon after
2931 "do {} while (0)".
2932 * config/mcore/mcore.h (ASM_OUTPUT_ALIGNED_COMMON): After missing
2933 semicolon after MCORE_EXPORT_NAME call.
2934
2935 2017-11-19 Tom de Vries <tom@codesourcery.com>
2936
2937 PR target/82961
2938 * vmsdbgout.c (vmsdbgout_early_finish): New function.
2939 (vmsdbg_debug_hooks): Set early_finish field to vmsdbgout_early_finish.
2940
2941 2017-11-18 Jan Hubicka <hubicka@ucw.cz>
2942
2943 * cgraphclones.c (cgraph_edge::clone): Rename gcov_count to prof_count.
2944 (cgraph_edge::clone): Cleanup updating of profile.
2945 * ipa-cp.c (update_profiling_info): Likewise.
2946 * ipa-inline-transform.c (inline_transform): Likewise.
2947 * ipa-inline.c (inline_small_functions): Add missing space to dump.
2948 * ipa-split.c (execute_split_functions): Do not split when function
2949 is cold.
2950 * predict.c (estimate_bb_frequencies): Cleanup updating of profile.
2951 * profile-count.c (profile_count::dump): Add global0.
2952 (profile_count::to_cgraph_frequency): Do not ICE when entry is
2953 undefined.
2954 (profile_count::to_sreal_scale): Likewise.
2955 (profile_count::adjust_for_ipa_scaling): Fix typo in comment.
2956 (profile_count::combine_with_ipa_count): New function.
2957 * profile-count.h (profile_guessed_global0adjusted): New.
2958 (profile_count::adjusted_zero): New.
2959 (profile_count::global0adjusted): New.
2960 (profile_count::combine_with_ipa_count): New.
2961 * tree-inline.c (copy_edges_for_bb): Add NUM/DEN arugment;
2962 correct profile of return block of split functions.
2963 (copy_cfg_body): Remove unused profile_count.
2964 (copy_body): Likewise.
2965 (expand_call_inline): Update.
2966 (tree_function_versioning): Update.
2967
2968 2017-11-18 Aldy Hernandez <aldyh@redhat.com>
2969
2970 * hash-set.h (hash_set::empty): New.
2971 * tree-ssa-threadbackward.h: Delete.
2972 * tree-ssa-threadbackward.c (class thread_jumps): New.
2973 Move max_threaded_paths into class.
2974 (fsm_find_thread_path): Remove arguments that are now in class.
2975 (profitable_jump_thread_path): Rename to...
2976 (thread_jumps::profitable_jump_thread_path): ...this.
2977 (convert_and_register_jump_thread_path): Rename to...
2978 (thread_jumps::convert_and_register_current_path): ...this.
2979 (check_subpath_and_update_thread_path): Rename to...
2980 (thread_jumps::check_subpath_and_update_thread_path): ...this.
2981 (register_jump_thread_path_if_profitable): Rename to...
2982 (thread_jumps::register_jump_thread_path_if_profitable): ...this.
2983 (handle_phi): Rename to...
2984 (thread_jumps::handle_phi): ...this.
2985 (handle_assignment): Rename to...
2986 (thread_jumps::handle_assignment): ...this.
2987 (fsm_find_control_statement_thread_paths): Rename to...
2988 (thread_jumps::fsm_find_control_statement_thread_paths): ...this.
2989 (find_jump_threads_backwards): Rename to...
2990 (thread_jumps::find_jump_threads_backwards): ...this.
2991 Initialize path local data.
2992 (pass_thread_jumps::execute): Call find_jump_threads_backwards
2993 from within thread_jumps class.
2994 (pass_early_thread_jumps::execute): Same.
2995
2996 2017-11-17 Jan Hubicka <hubicka@ucw.cz>
2997
2998 * cgraph.c (cgraph_node::dump): Do IPA sanity checking on IPA counts.
2999
3000 2017-11-17 Steve Ellcey <sellcey@cavium.com>
3001
3002 * config/aarch64/aarch64-simd.md (fnma<mode>4): Move neg operator
3003 to canonical location.
3004
3005 2017-11-17 Steve Ellcey <sellcey@cavium.com>
3006
3007 PR target/81356
3008 * config/aarch64/aarch64.c (aarch64_use_by_pieces_infrastructure_p):
3009 Remove.
3010 (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Remove define.
3011
3012 2017-11-17 H.J. Lu <hongjiu.lu@intel.com>
3013
3014 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
3015 rcrt1.o%s/grcrt1.o%s for -static-pie.
3016
3017 2017-11-17 Jan Hubicka <hubicka@ucw.cz>
3018
3019 * i386.c (ix86_multiplication_cost, ix86_division_cost,
3020 ix86_shift_rotate_cost): Break out from ...
3021 (ix86_rtx_costs): ... here.
3022 (ix86_add_stmt_cost): Use rtx cost machinery to compute cost of
3023 vector operations.
3024
3025 2017-11-17 Jan Hubicka <hubicka@ucw.cz>
3026
3027 * predict.c (determine_unlikely_bbs): Set cgraph node count to 0
3028 when entry block was promoted unlikely.
3029 (estimate_bb_frequencies): Increase frequency scale.
3030 * profile-count.h (profile_count): Export precision info.
3031
3032 2017-11-17 Jan Hubicka <hubicka@ucw.cz>
3033
3034 * tree-tailcall.c (eliminate_tail_call): Be more careful about not
3035 disturbin profile of entry block.
3036
3037 2017-11-17 Jan Hubicka <hubicka@ucw.cz>
3038
3039 * ipa-fnsummary.c (estimate_node_size_and_time): Be more tolerant for
3040 roundoff errors.
3041
3042 2017-11-17 Jan Hubicka <hubicka@ucw.cz>
3043
3044 * ipa-cp.c (update_profiling_info): Handle conversion to local profile.
3045 * tree-cfg.c (execute_fixup_cfg): Do fixup same way as inliner does.
3046
3047 2017-11-17 Jeff Law <law@redhat.com>
3048
3049 * gimple-ssa-evrp.c (class evrp_range_analyzer): New class extracted
3050 from evrp_dom_walker class. Various methods moved into new class.
3051 (evrp_range_analyzer::evrp_range_analyzer): Constructor for new class.
3052 (evrp_range_analyzer::enter): New method.
3053 (evrp_range_analyzer::leave): New method.
3054 (evrp_dom_walker): Remove delegators no longer needed by this class.
3055 Replace vr_values data member with evrp_range_analyzer
3056
3057 * gimple-ssa-evrp.c (evrp_dom_walker::record_ranges_from_phis): New
3058 method extracted from evrp_dom_walker::before_dom_children.
3059 (evrp_dom_walker::record_ranges_from_stmt): Likewise.
3060 (evrp_dom_walker::record_ranges_from_incoming_edge): Likewise.
3061
3062 * gimple-ssa-evrp.c (evrp_dom_walker): Add cleanup method.
3063 Add private copy constructor and move assignment operators.
3064 Privatize methods and class data where trivially possible.
3065 (evrp_dom_walker::cleanup): New function, extracted from
3066 execute_early_vrp. Simplify access to class data.
3067
3068 * vr-values.h (get_output_for_vrp): Prototype.
3069 * vr-values.c (get_output_for_vrp): New function extracted from
3070 vrp_visit_assignment_or_call and extract_range_from_stmt.
3071 (vrp_visit_assignment_or_call): Use get_output_for_vrp. Simplify.
3072
3073 2017-11-17 Luis Machado <luis.machado@linaro.org>
3074
3075 * config/aarch64/aarch64.c
3076 (qdf24xx_prefetch_tune) <default_opt_level>: Set to -1.
3077 (qdf24xx_tunings) <autoprefetcher_model>: Set to
3078 tune_params::AUTOPREFETCHER_WEAK.
3079
3080 2017-11-17 Tamar Christina <tamar.christina@arm.com>
3081
3082 PR target/82641
3083 * config/arm/arm.c (arm_valid_target_attribute_rec):
3084 Parse "arch=" and "+<ext>".
3085 (arm_valid_target_attribute_tree): Re-init global options.
3086 (arm_option_override): Make non-static.
3087 (arm_options_perform_arch_sanity_checks): Make errors fatal.
3088 * gcc/config/arm/arm-c.c (__ARM_FEATURE_CMSE): Support undef.
3089 (__ARM_FEATURE_CRC32): Support undef.
3090 * config/arm/arm_acle.h (__ARM_FEATURE_CRC32): Replace with pragma.
3091 * doc/extend.texi (ARM Function Attributes): Add pragma and target.
3092
3093 2017-11-17 David Malcolm <dmalcolm@redhat.com>
3094
3095 * gdbinit.in (break-on-diagnostic): New command.
3096
3097 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3098
3099 * config/i386/i386.c (ix86_expand_epilogue): Change simple
3100 return to indirect jump for EH return if control-flow
3101 protection is enabled. Change explicit 'false' argument in
3102 pro_epilogue_adjust_stack with a value of
3103 flag_cf_protection.
3104 * config/i386/i386.md (simple_return_indirect_internal):
3105 Remove SImode restriction to support 64-bit.
3106
3107 2017-11-17 Segher Boessenkool <segher@kernel.crashing.org>
3108
3109 * combine.c (added_notes_insn): New.
3110 (try_combine): Handle added_notes_insn like added_links_insn.
3111 Rewrite return value code.
3112 (distribute_notes): Set added_notes_insn to the earliest insn we added
3113 a note to.
3114
3115 2017-11-17 Segher Boessenkool <segher@kernel.crashing.org>
3116
3117 PR rtl-optimization/82621
3118 * combine.c (try_combine): Do not split PARALLELs of two SETs if the
3119 dest of one of those SETs is unused.
3120
3121 2017-11-17 Richard Biener <rguenther@suse.de>
3122
3123 PR fortran/83017
3124 * tree-core.h (enum annot_expr_kind): Add annot_expr_parallel_kind.
3125 * tree-pretty-print.c (dump_generic_node): Handle
3126 annot_expr_parallel_kind.
3127 * tree-cfg.c (replace_loop_annotate_in_block): Likewise.
3128 * gimplify.c (gimple_boolify): Likewise.
3129
3130 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3131
3132 * config.gcc (extra_headers): Add cet.h for x86 targets.
3133 * config/i386/cet.h: New file.
3134 * doc/install.texi: Add --enable-cet/--disable-cet.
3135
3136 2017-11-17 Richard Biener <rguenther@suse.de>
3137
3138 PR tree-optimization/83017
3139 * tree-parloops.c (MIN_PER_THREAD): Use --param parloops-min-per-thread.
3140 (gen_parallel_loop): Properly count iterations.
3141 (parallelize_loops): Handle loop->can_be_parallel independent
3142 of flag_loop_parallelize_all. Make static profitability test match
3143 the runtime one.
3144 * params.def (PARAM_PARLOOPS_MIN_PER_THREAD): New.
3145 * invoke.texi (parloops-min-per-thread): Document.
3146
3147 2017-11-17 Vineet Gupta <vgupta@synopsys.com>
3148
3149 * config/arc/linux.h: GLIBC_DYNAMIC_LINKER update per glibc
3150 upstreaming review comments.
3151
3152 2017-11-17 Tamar Christina <tamar.christina@arm.com>
3153
3154 * expr.c (copy_blkmode_to_reg): Fix bitsize for targets
3155 with fast unaligned access.
3156 * doc/sourcebuild.texi (word_mode_no_slow_unalign): New.
3157
3158 2017-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
3159
3160 * config/arm/arm.c (cmse_nonsecure_entry_clear_before_return): Allocate
3161 to_clear_arg_regs_bitmap to the same size as to_clear_bitmap.
3162
3163 2017-11-17 Richard Biener <rguenther@suse.de>
3164
3165 * tree-ssa-pre.c (phi_translate_1): Remove redundant constant
3166 folding of references.
3167
3168 2017-11-17 Qing Zhao <qing.zhao@oracle.com>
3169
3170 PR middle-end/78809
3171 * gimple-fold.c (gimple_fold_builtin_string_compare): Add handling
3172 of replacing call to strncmp with corresponding call to strcmp when
3173 meeting conditions.
3174
3175 2017-11-17 Sergey Shalnov <Sergey.Shalnov@intel.com>
3176
3177 * config/i386/x86-tune.def (X86_TUNE_AVX256_OPTIMAL): Add tuning
3178 option prefer-avx256 for skylake-avx512 configuration.
3179 * config/i386/i386.c (ix86_option_override_internal): Ditto.
3180 (get_builtin_code_for_version): Ditto.
3181
3182 2017-11-17 Chung-Ju Wu <jasonwucj@gmail.com>
3183 Monk Chiang <sh.chiang04@gmail.com>
3184
3185 * config/nds32/nds32.h (FIRST_PSEUDO_REGISTER): Modify.
3186 (FIXED_REGISTERS): Reserve more register numbers.
3187 (CALL_USED_REGISTERS): Likewise.
3188 (REG_ALLOC_ORDER): Likewise.
3189 (REG_CLASS_CONTENTS): Likewise.
3190 (REGISTER_NAMES): Likewise.
3191
3192 2017-11-17 Chung-Ju Wu <jasonwucj@gmail.com>
3193 Kito Cheng <kito.cheng@gmail.com>
3194
3195 * config/nds32/nds32-modes.def: Add vector mode V4QI V2HI V8QI V4HI
3196 V2SI.
3197 * config/nds32/iterators.md: Add vector mode iterators and attributes.
3198
3199 2017-11-16 Steven Munroe <munroesj@gcc.gnu.org>
3200
3201 * config/rs6000/mmintrin.h (_mm_add_pi32[_ARCH_PWR]): Correct
3202 parameter list for vec_splats.
3203
3204 2017-11-16 Joseph Myers <joseph@codesourcery.com>
3205
3206 * doc/invoke.texi (-std=c17): Refer to 2018 expected publication
3207 date of C17.
3208 (-std=c18, -std=iso9899:2018, -std=gnu18): Document option aliases.
3209
3210 2017-11-16 Thomas Koenig <tkoenig@gcc.gnu.org>
3211
3212 PR bootstrap/82856
3213 * doc/install.texi: Document incompatibility of Perl >=5.6.26
3214 with the required version of automake 1.11.6.
3215
3216 2017-11-16 Pat Haugen <pthaugen@us.ibm.com>
3217
3218 * rs6000/power9.md (power9fpdiv): New automaton and cpu_unit defined
3219 for it.
3220 (DU_C2_3_power9): Correct reservation combinations.
3221 (FP_DIV_power9, VEC_DIV_power9): New.
3222 (power9-alu): Split out rotate/shift...
3223 (power9-rot): ...to here, correct dispatch resource.
3224 (power9-cracked-alu, power9-mul, power9-mul-compare): Correct dispatch
3225 resource.
3226 (power9-fp): Correct latency.
3227 (power9-sdiv): Add div/sqrt resource.
3228 (power9-ddiv): Correct latency, add div/sqrt resource.
3229 (power9-sqrt, power9-dsqrt): Add div/sqrt resource.
3230 (power9-vecfdiv, power9-vecdiv): Correct latency, add div/sqrt
3231 resource.
3232 (power9-qpdiv, power9-qpmul): Adjust resource usage.
3233
3234 2017-11-15 Michael Meissner <meissner@linux.vnet.ibm.com>
3235
3236 * config/rs6000/rs6000.c (rs6000_expand_builtin): Do not do the
3237 switch statement mapping KF built-ins to TF built-ins if we don't
3238 have the proper ISA 3.0 assembler support.
3239
3240 2017-11-16 Jan Hubicka <hubicka@ucw.cz>
3241
3242 * tree-emutls.c (lower_emutls_data): Remove unused bb_freq.
3243 (lower_emutls_function_body): Do not compute it.
3244
3245 2017-11-16 Jan Hubicka <hubicka@ucw.cz>
3246
3247 * ipa-split.c (split_bb_info): Turn time to sreal.
3248 (split_point): Likewise.
3249 (dump_split_point): Likewise.
3250 (fine_split_points): Likewise.
3251 (execute_split_functions): Only zero split_bbs; turn time to sreals.
3252
3253 2017-11-16 Jan Hubicka <hubicka@ucw.cz>
3254
3255 * ipa-fnsummary.c (analyze_function_body): Accumulate time consistently
3256 in sreal.
3257
3258 2017-11-16 Jan Hubicka <hubicka@ucw.cz>
3259
3260 * predict.c (combine_predictions_for_bb): Preserve zero predicted
3261 edges.
3262 (expensive_function_p): Remove useless assert.
3263 (determine_unlikely_bbs): Propagate also forward; determine cold blocks
3264
3265 2017-11-16 Martin Sebor <msebor@redhat.com>
3266
3267 PR tree-optimization/82588
3268 PR tree-optimization/82583
3269 * tree-vrp.c (check_array_ref): Handle flexible array members,
3270 string literals, and inner indices.
3271 (search_for_addr_array): Add detail to diagnostics.
3272
3273 2017-11-16 Nathan Sidwell <nathan@acm.org>
3274
3275 PR c++/82836
3276 PR c++/82737
3277 * tree.h (COPY_DECL_RTL): Rename parms for clarity.
3278 (SET_DECL_ASSEMBLER_NAME): Forward to
3279 overwrite_decl_assembler_name.
3280 (COPY_DECL_ASSEMBLER_NAME): Rename parms for clarity.
3281 (overwrite_decl_assembler_name): Declare.
3282 * tree.c (overwrite_decl_assembler_name): New.
3283 * langhooks-def.h (lhd_overwrite_decl_assembler_name): Declare.
3284 (LANG_HOOKS_OVERWRITE_DECL_ASSEMBLER_NAME): Provide default.
3285 (LANG_HOOKS_INITIALIZER): Add it.
3286 * langhooks.h (struct lang_hooks): Add overwrite_decl_assembler_name.
3287 * langhooks.c (lhd_set_decl_assembler_name): Use
3288 SET_DECL_ASSEMBLER_NAME.
3289 (lhd_overwrite_decl_assembler_name): Default implementation.
3290
3291 2017-11-16 Wilco Dijkstra <wdijkstr@arm.com>
3292 Jackson Woodruff <jackson.woodruff@arm.com>
3293
3294 PR tree-optimization/71026
3295 * match.pd: Canonicalize constant multiplies in division.
3296
3297 2017-11-16 Wilco Dijkstra <wdijkstr@arm.com>
3298
3299 * opts.c (default_options_table): Add OPT_fomit_frame_pointer entry.
3300 * common/config/alpha/alpha-common.c (TARGET_OPTION_OPTIMIZATION_TABLE):
3301 Remove OPT_fomit_frame_pointer entry.
3302 * common/config/arc/arc-common.c: Likewise.
3303 * common/config/arm/arm-common.c: Likewise.
3304 * common/config/avr/avr-common.c: Likewise.
3305 * common/config/c6x/c6x-common.c: Likewise.
3306 * common/config/cr16/cr16-common.c: Likewise.
3307 * common/config/cris/cris-common.c: Likewise.
3308 * common/config/epiphany/epiphany-common.c: Likewise.
3309 * common/config/fr30/fr30-common.c: Likewise.
3310 * common/config/frv/frv-common.c: Likewise.
3311 * common/config/ia64/ia64-common.c: Likewise.
3312 * common/config/iq2000/iq2000-common.c: Likewise.
3313 * common/config/lm32/lm32-common.c: Likewise.
3314 * common/config/m32r/m32r-common.c: Likewise.
3315 * common/config/mcore/mcore-common.c: Likewise.
3316 * common/config/microblaze/microblaze-common.c: Likewise.
3317 * common/config/mips/mips-common.c: Likewise.
3318 * common/config/mmix/mmix-common.c: Likewise.
3319 * common/config/mn10300/mn10300-common.c: Likewise.
3320 * common/config/nios2/nios2-common.c: Likewise.
3321 * common/config/pa/pa-common.c: Likewise.
3322 * common/config/pdp11/pdp11-common.c: Likewise.
3323 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3324 * common/config/riscv/riscv-common.c: Likewise.
3325 * common/config/rs6000/rs6000-common.c: Likewise.
3326 * common/config/rx/rx-common.c: Likewise.
3327 * common/config/s390/s390-common.c: Likewise.
3328 * common/config/sh/sh-common.c: Likewise.
3329 * common/config/sparc/sparc-common.c: Likewise.
3330 * common/config/tilegx/tilegx-common.c: Likewise.
3331 * common/config/tilepro/tilepro-common.c: Likewise.
3332 * common/config/v850/v850-common.c: Likewise.
3333 * common/config/visium/visium-common.c: Likewise.
3334 * common/config/xstormy16/xstormy16-common.c: Likewise.
3335 * common/config/xtensa/xtensa-common.c: Likewise.
3336 * invoke.texi (-fomit-frame-pointer): Update documentation.
3337
3338 2017-11-16 Jan Hubicka <hubicka@ucw.cz>
3339
3340 * tree-cfg.c (gimple_find_sub_bbs): Do not compute freq.
3341
3342 2017-11-14 Jan Hubicka <hubicka@ucw.cz>
3343
3344 * cfg.c (scale_bbs_frequencies_int,
3345 cale_bbs_frequencies_gcov_type): Remove.
3346 * cfg.h (scale_bbs_frequencies_int,
3347 cale_bbs_frequencies_gcov_type): Remove.
3348
3349 2017-11-14 Jan Hubicka <hubicka@ucw.cz>
3350
3351 * tree-ssa-loop-manip.c
3352 (scale_dominated_blocks_in_loop): Update to profile counts.
3353 (tree_transform_and_unroll_loop): Likewise.
3354
3355 2017-11-14 Jan Hubicka <hubicka@ucw.cz>
3356
3357 * tree-vect-loop-manip.c (vect_do_peeling): Do not use
3358 scale_bbs_frequencies_int.
3359
3360 2017-11-14 Jan Hubicka <hubicka@ucw.cz>
3361
3362 * final.c (compute_alignments): Use counts rather than frequencies.
3363
3364 2017-11-14 Jan Hubicka <hubicka@ucw.cz>
3365
3366 * cfgloopanal.c: Include sreal.h
3367 (average_num_loop_insns): Use counts and sreal for accounting.
3368
3369 2017-11-14 Jan Hubicka <hubicka@ucw.cz>
3370
3371 * cfgloopmanip.c (duplicate_loop_to_header_edge): Cleanup profile
3372 manipulation.
3373
3374 2017-11-16 Chung-Ju Wu <jasonwucj@gmail.com>
3375 Kito Cheng <kito.cheng@gmail.com>
3376
3377 * config/nds32/constraints.md: Provide more constraints.
3378 * config/nds32/nds32.h (enum reg_class, REG_CLASS_NAMES,
3379 REG_CLASS_CONTENTS): Define R5_REG, R8_REG, and FRAME_POINTER_REG to
3380 support constraints usage.
3381
3382 2017-11-16 Chung-Ju Wu <jasonwucj@gmail.com>
3383
3384 * config/nds32/constants.md (UNSPEC_VOLATILE_FUNC_RETURN): Remove.
3385
3386 2017-11-16 Chung-Ju Wu <jasonwucj@gmail.com>
3387 Kito Cheng <kito.cheng@gmail.com>
3388
3389 * config/nds32/nds32.opt: Add mext-perf, mext-perf2, mext-string.
3390 * config/nds32/nds32.opt: Refine the layout.
3391 * config/nds32/nds32.c (TARGET_EXT_PERF, TARGET_EXT_PERF2,
3392 TARGET_EXT_STRING): Support new options.
3393 * config/nds32/nds32.h: Likewise.
3394 * config/nds32/nds32.md: Likewise.
3395 * config/nds32/nds32-predicates.c: Likewise.
3396 * config/nds32/constraints.md: Likewise.
3397 * common/config/nds32/nds32-common.c: Likewise.
3398
3399 2017-11-16 Julia Koval <julia.koval@intel.com>
3400
3401 PR target/82983
3402 * config/i386/gfniintrin.h: Add sse check.
3403 * config/i386/i386.c (ix86_expand_builtin): Fix gfni check.
3404
3405 2017-11-16 Julia Koval <julia.koval@intel.com>
3406
3407 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI2_SET,
3408 OPTION_MASK_ISA_AVX512VBMI2_UNSET): New.
3409 (ix86_handle_option): Handle -mavx512vbmi2.
3410 * config/i386/cpuid.h: Add bit_AVX512VBMI2.
3411 * config/i386/driver-i386.c (host_detect_local_cpu): Handle new bit.
3412 * config/i386/i386-c.c (__AVX512VBMI2__): New.
3413 * config/i386/i386.c (ix86_target_string): Handle -mavx512vbmi2.
3414 (ix86_valid_target_attribute_inner_p): Ditto.
3415 * config/i386/i386.h (TARGET_AVX512VBMI2, TARGET_AVX512VBMI2_P): New.
3416 * config/i386/i386.opt (mavx512vbmi2): New option.
3417 * doc/invoke.texi: Add new option.
3418
3419 2017-11-16 Julia Koval <julia.koval@intel.com>
3420
3421 * config/i386/gfniintrin.h (_mm_gf2p8mul_epi8, _mm256_gf2p8mul_epi8,
3422 _mm_mask_gf2p8mul_epi8, _mm_maskz_gf2p8mul_epi8,
3423 _mm256_mask_gf2p8mul_epi8, _mm256_maskz_gf2p8mul_epi8,
3424 _mm512_mask_gf2p8mul_epi8, _mm512_maskz_gf2p8mul_epi8,
3425 _mm512_gf2p8mul_epi8): New intrinsics.
3426 * config/i386/i386-builtin-types.def
3427 (V64QI_FTYPE_V64QI_V64QI): New type.
3428 * config/i386/i386-builtin.def (__builtin_ia32_vgf2p8mulb_v64qi,
3429 __builtin_ia32_vgf2p8mulb_v64qi_mask, __builtin_ia32_vgf2p8mulb_v32qi,
3430 __builtin_ia32_vgf2p8mulb_v32qi_mask, __builtin_ia32_vgf2p8mulb_v16qi,
3431 __builtin_ia32_vgf2p8mulb_v16qi_mask): New builtins.
3432 * config/i386/sse.md (vgf2p8mulb_*): New pattern.
3433 * config/i386/i386.c (ix86_expand_args_builtin): Handle new type.
3434
3435 2017-11-15 Uros Bizjak <ubizjak@gmail.com>
3436
3437 * config/i386/i386.c (x86_print_call_or_nop): Emit 5 byte nop
3438 explicitly as a stream of bytes.
3439
3440 2017-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3441
3442 * config/rs6000/altivec.h (vec_xst_be): New #define.
3443 * config/rs6000/altivec.md (altivec_vperm_<mode>_direct): Rename
3444 and externalize from *altivec_vperm_<mode>_internal.
3445 * config/rs6000/rs6000-builtin.def (XL_BE_V16QI): Remove macro
3446 instantiation.
3447 (XL_BE_V8HI): Likewise.
3448 (XL_BE_V4SI): Likewise.
3449 (XL_BE_V4SI): Likewise.
3450 (XL_BE_V2DI): Likewise.
3451 (XL_BE_V4SF): Likewise.
3452 (XL_BE_V2DF): Likewise.
3453 (XST_BE): Add BU_VSX_OVERLOAD_X macro instantiation.
3454 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Correct
3455 all array entries with these keys: VSX_BUILTIN_VEC_XL,
3456 VSX_BUILTIN_VEC_XL_BE, VSX_BUILTIN_VEC_XST. Add entries for key
3457 VSX_BUILTIN_VEC_XST_BE.
3458 * config/rs6000/rs6000.c (altivec_expand_xl_be_builtin): Remove.
3459 (altivec_expand_builtin): Remove handling for VSX_BUILTIN_XL_BE_*
3460 built-ins.
3461 (altivec_init_builtins): Replace conditional calls to def_builtin
3462 for __builtin_vsx_ld_elemrev_{v8hi,v16qi} and
3463 __builtin_vsx_st_elemrev_{v8hi,v16qi} based on TARGET_P9_VECTOR
3464 with unconditional calls. Remove calls to def_builtin for
3465 __builtin_vsx_le_be_<mode>. Add a call to def_builtin for
3466 __builtin_vec_xst_be.
3467 * config/rs6000/vsx.md (vsx_ld_elemrev_v8hi): Convert define_insn
3468 to define_expand, and add alternate RTL generation for P8.
3469 (*vsx_ld_elemrev_v8hi_internal): New define_insn based on
3470 vsx_ld_elemrev_v8hi.
3471 (vsx_ld_elemrev_v16qi): Convert define_insn to define_expand, and
3472 add alternate RTL generation for P8.
3473 (*vsx_ld_elemrev_v16qi_internal): New define_insn based on
3474 vsx_ld_elemrev_v16qi.
3475 (vsx_st_elemrev_v8hi): Convert define_insn
3476 to define_expand, and add alternate RTL generation for P8.
3477 (*vsx_st_elemrev_v8hi_internal): New define_insn based on
3478 vsx_st_elemrev_v8hi.
3479 (vsx_st_elemrev_v16qi): Convert define_insn to define_expand, and
3480 add alternate RTL generation for P8.
3481 (*vsx_st_elemrev_v16qi_internal): New define_insn based on
3482 vsx_st_elemrev_v16qi.
3483
3484 2017-11-15 H.J. Lu <hongjiu.lu@intel.com>
3485
3486 PR target/82990
3487 * config/i386/i386.c (pass_insert_vzeroupper::gate): Remove
3488 TARGET_AVX512ER check.
3489 (ix86_option_override_internal): Set MASK_VZEROUPPER if
3490 neither -mzeroupper nor -mno-zeroupper is used and
3491 TARGET_EMIT_VZEROUPPER is set.
3492 * config/i386/i386.h (TARGET_EMIT_VZEROUPPER): New.
3493 * config/i386/x86-tune.def: Add X86_TUNE_EMIT_VZEROUPPER.
3494
3495 2017-11-15 Will Schmidt <will_schmidt@vnet.ibm.com>
3496
3497 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add support for
3498 folding of vector compares.
3499 (fold_build_vec_cmp): New helper function.
3500 (fold_compare_helper): New helper function.
3501 (builtin_function_type): Add compare builtins to the list of functions
3502 having unsigned arguments. Cosmetic updates to comment indentation.
3503 * config/rs6000/vsx.md (vcmpneb, vcmpneh, vcmpnew): Update to specify
3504 the not+eq combination.
3505
3506 2017-11-15 Bin Cheng <bin.cheng@arm.com>
3507
3508 PR tree-optimization/82726
3509 PR tree-optimization/70754
3510 * tree-predcom.c (order_drefs_by_pos): New function.
3511 (combine_chains): Move code setting has_max_use_after to...
3512 (try_combine_chains): ...here. New parameter. Sort combined chains
3513 according to position information.
3514 (tree_predictive_commoning_loop): Update call to above function.
3515 (update_pos_for_combined_chains, pcom_stmt_dominates_stmt_p): New.
3516
3517 2017-11-15 Bin Cheng <bin.cheng@arm.com>
3518
3519 PR tree-optimization/82726
3520 Revert
3521 2017-01-23 Bin Cheng <bin.cheng@arm.com>
3522
3523 PR tree-optimization/70754
3524 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
3525 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
3526 combined stmt before it if not NULL.
3527 (combine_chains): Process refs reversely and compute dominance point
3528 for root ref.
3529
3530 Revert
3531 2017-02-23 Bin Cheng <bin.cheng@arm.com>
3532
3533 PR tree-optimization/79663
3534 * tree-predcom.c (combine_chains): Process refs in reverse order
3535 only for ZERO length chains, and add explaining comment.
3536
3537 2017-11-15 Tamar Christina <tamar.christina@arm.com>
3538
3539 * config/arm/arm-cpus.in (armv8_3, ARMv8_3a, armv8.3-a): New
3540 * config/arm/arm-tables.opt (armv8.3-a): Regenerated.
3541 * doc/invoke.texi (ARM Options): Add armv8.3-a.
3542
3543 2017-11-15 Tamar Christina <tamar.christina@arm.com>
3544
3545 * config/arm/arm.h (TARGET_DOTPROD): Add arm_arch8_2.
3546
3547 2017-11-15 Martin Liska <mliska@suse.cz>
3548
3549 * tree-cfg.c (pass_warn_function_return::execute):
3550 Compare warn_return_type for greater than zero.
3551
3552 2017-11-15 Sebastian Peryt <sebastian.peryt@intel.com>
3553
3554 PR target/82941
3555 PR target/82942
3556 * config/i386/i386.c (pass_insert_vzeroupper): Modify gate condition
3557 to return true on Xeon and not on Xeon Phi.
3558 (ix86_check_avx256_register): Changed to ...
3559 (ix86_check_avx_upper_register): ... this. Add extra check for
3560 VALID_AVX512F_REG_OR_XI_MODE.
3561 (ix86_avx_u128_mode_needed): Changed
3562 ix86_check_avx256_register to ix86_check_avx_upper_register.
3563 (ix86_check_avx256_stores): Changed to ...
3564 (ix86_check_avx_upper_stores): ... this. Changed
3565 ix86_check_avx256_register to ix86_check_avx_upper_register.
3566 (ix86_avx_u128_mode_after): Changed
3567 avx_reg256_found to avx_upper_reg_found. Changed
3568 ix86_check_avx256_stores to ix86_check_avx_upper_stores.
3569 (ix86_avx_u128_mode_entry): Changed
3570 ix86_check_avx256_register to ix86_check_avx_upper_register.
3571 (ix86_avx_u128_mode_exit): Ditto.
3572 * config/i386/i386.h: (host_detect_local_cpu): New define.
3573
3574 2017-11-15 Dominik Infuehr <dominik.infuehr@theobroma-systems.com>
3575
3576 * config/arm/xgene1.md (xgene1): Split into automatons
3577 xgene1_main, xgene1_decoder, xgene1_div, xgene1_simd.
3578 (xgene1_f_load): Adjust reservations and/or types.
3579 (xgene1_f_store): Likewise.
3580 (xgene1_load_pair): Likewise.
3581 (xgene1_store_pair): Likewise.
3582 (xgene1_fp_load1): Likewise.
3583 (xgene1_load1): Likewise.
3584 (xgene1_store1): Likewise.
3585 (xgene1_move): Likewise.
3586 (xgene1_alu): Likewise.
3587 (xgene1_simd): Likewise.
3588 (xgene1_bfm): Likewise.
3589 (xgene1_neon_load1): Likewise.
3590 (xgene1_neon_store1): Likewise.
3591 (xgene1_neon_logic): Likewise.
3592 (xgene1_neon_st1): Likewise.
3593 (xgene1_neon_ld1r): Likewise.
3594 (xgene1_alu_cond): Added.
3595 (xgene1_shift_reg): Likwise.
3596 (xgene1_bfx): Likewise.
3597 (xgene1_mul): Split into xgene1_mul32, xgene1_mul64.
3598
3599 2017-11-15 Jakub Jelinek <jakub@redhat.com>
3600
3601 PR target/82981
3602 * internal-fn.c: Include gimple-ssa.h, tree-phinodes.h and
3603 ssa-iterators.h.
3604 (can_widen_mult_without_libcall): New function.
3605 (expand_mul_overflow): If only checking unsigned mul overflow,
3606 not result, and can do efficiently MULT_HIGHPART_EXPR, emit that.
3607 Don't use WIDEN_MULT_EXPR if it would involve a libcall, unless
3608 no other way works. Add MULT_HIGHPART_EXPR + MULT_EXPR support.
3609 (expand_DIVMOD): Formatting fix.
3610 * expmed.h (expand_mult): Add NO_LIBCALL argument.
3611 * expmed.c (expand_mult): Likewise. Use OPTAB_WIDEN rather
3612 than OPTAB_LIB_WIDEN if NO_LIBCALL is true, and allow it to fail.
3613
3614 PR tree-optimization/82977
3615 * tree-ssa-strlen.c (strlen_optimize_stmt): Pass a reference to a copy
3616 constructed temporary to strlen_to_stridx.put.
3617
3618 2017-11-15 Martin Liska <mliska@suse.cz>
3619
3620 * configure.ac: Remove -fkeep-inline-functions from coverage_flags.
3621 * configure: Regenerate.
3622
3623 2017-11-15 Martin Liska <mliska@suse.cz>
3624
3625 PR target/82927
3626 * config/sh/sh-mem.cc: Use proper probability for
3627 REG_BR_PROB_NOTE.
3628
3629 2017-11-14 Jeff Law <law@redhat.com>
3630
3631 * explow.c (anti_adjust_stack_and_probe_stack_clash): Avoid probing
3632 the red zone for stack_clash_protection_final_dynamic_probe targets
3633 when the total dynamic stack size is zero bytes.
3634
3635 * tree-ssa-threadupdate.c (thread_through_all_blocks): Thread
3636 blocks is post order.
3637
3638 2017-11-15 Alexandre Oliva <aoliva@redhat.com>
3639
3640 * dumpfile.h (TDF_COMPARE_DEBUG): New.
3641 * final.c (rest_of_clean_state): Set it for the
3642 -fcompare-debug dump.
3643 * tree-pretty-print.c (dump_generic_node): Omit OBJ_TYPE_REF
3644 class when TDF_COMPARE_DEBUG is set.
3645
3646 * dwarf2out.c (gen_producer_string): Discard
3647 OPT_fcompare_debug.
3648
3649 2017-11-15 Joseph Myers <joseph@codesourcery.com>
3650
3651 PR c/81156
3652 * doc/extend.texi (Other Builtins): Document __builtin_tgmath.
3653 * ginclude/tgmath.h (__tg_cplx, __tg_ldbl, __tg_dbl, __tg_choose)
3654 (__tg_choose_2, __tg_choose_3, __TGMATH_REAL_1_2)
3655 (__TGMATH_REAL_2_3): Remove macros.
3656 (__TGMATH_CPLX, __TGMATH_CPLX_2, __TGMATH_REAL, __TGMATH_REAL_2)
3657 (__TGMATH_REAL_3, __TGMATH_CPLX_ONLY): Define using
3658 __builtin_tgmath.
3659 (frexp, ldexp, nexttoward, scalbn, scalbln): Define using
3660 __TGMATH_REAL_2.
3661 (remquo): Define using __TGMATH_REAL_3.
3662
3663 2017-11-14 Jeff Law <law@redhat.com>
3664
3665 * vr-values.c: New file with contents extracted from tree-vrp.c.
3666 * Makefile.in (OBJS): Add vr-values.o
3667 * tree-vrp.h (set_value_range_to_nonnull): Prototype.
3668 (set_value_range, set_and_canonicalize_value_range): Likewise.
3669 (vrp_bitmap_equal_p, range_is_nonnull): Likewise.
3670 (value_range_constant_singleton, symbolic_range_p): Likewise.
3671 (compare_values, compare_values_warnv, vrp_val_is_min): Likewise.
3672 (vrp_val_is_max, copy_value_range, set_value_range_to_value): Likewise.
3673 (extract_range_from_binary_expr_1, vrp_val_min, vrp_val_max): Likewise.
3674 (set_value_range_to_null, range_int_cst_p, opreand_less_p): Likewise.
3675 (find_case_label_range, find_case_label_index): Likewise.
3676 (zero_nonzero_bits_from_vr, overflow_comparison_p): Likewise.
3677 (range_int_cst_singleton_p, value_inside_range): Likewise.
3678 (get_single_symbol): Likewise.
3679 (switch_update): Move structure definition here.
3680 (to_remove_edges, to_update_switch_stmts): Provide externs.
3681 * tree-vrp.c: Move all methods for vr-values class to vr-values.c
3682 (vrp_val_max, vrp_val_min, vrp_val_is_max): Make externally visible.
3683 (vrp_val_is_min, set_value_range): Likewise.
3684 (set_and_canonicalize_value_range, copy_value_range): Likewise.
3685 (set_value_range_to_value, set_value_range_to_nonnull): Likewise.
3686 (set_value_range_to_null, vrp_bitmap_equal_p): Likewise.
3687 (range_is_nonnull, range_int_cst_p): Likewwise.
3688 (range_int_cst_singleton_p, symbolic_range_p): Likewise.
3689 (get_single_symbol, operand_less_p): Likewise
3690 (compare_values_warnv, compare_values): Likewise.
3691 (value_inside_range, value_range_constant_singleton): Likewise.
3692 (zero_nonzero_bitgs_from_vr): Likewise.
3693 (extract_range_from_binary_expr_1): Likewise.
3694 (overflow_comparison_p): Likewise.
3695 (to_remove_edges, to_update_switch_stmts): Likewise.
3696 (find_case_label-index, find_case_label_range): Likewise.
3697 (switch_update, set_value_range_to_nonnegative): Remove.
3698 (set_value_range_to_truthvalue): Likewise.
3699 (symbolic_range_based_on_p, gimple_assign_nonzero_p): Likewise.
3700 (gimple_stmt_nonzero_p, compare_ranges): Likewise.
3701 (compare_range_with_value, vrp_valueize, vrp_valueize_1): Likewise.
3702 (find_case_label_ranges, test_for_singularity): Likewise.
3703 (range_fits_type_p, simplify_conversion_using_ranges): LIkewise.
3704 (x_vr_values): Move to its remaining use site.
3705
3706 2017-11-10 Jeff Law <law@redhat.com>
3707
3708 * vr-values.h (VR_INITIALIZER): Move #define here.
3709 * gimple-ssa-evrp.c: New file with contents extracted from tree-vrp.c
3710 * Makefile.in (OBJS): Add tree-evrp.o
3711 * tree-vrp.h (assert_info): Move structure definition here.
3712 (set_value_range_to_varying): Prototype.
3713 (vrp_operand_equal_p, range_includes_zero_p): Likewise.
3714 (infer_value_range, register_edge_assert_for): Likewise.
3715 (stmt_interesting_for_vrp): Likewise.
3716 * tree-vrp.c: Move all methods for evrp class into gimple-ssa-evrp.c.
3717 (set_value_range_to_varying): No longer static.
3718 (vrp_operand_equal_p, range_includes_zero_p): Likewise.
3719 (infer_value_range, register_edge_assert_for): Likewise.
3720
3721 2017-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3722
3723 * config/rs6000/rs6000.md (bswapdi2): On 32-bit ISA 3.0, don't
3724 generate the XXBRD instruction.
3725
3726 * config/rs6000/rs6000-c.c (is_float128_p): New helper function.
3727 (rs6000_builtin_type_compatible): Treat _Float128 and long double
3728 as being compatible if -mabi=ieeelongdouble.
3729 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_HW_1): New macros
3730 to setup float128 built-ins with hardware support.
3731 (BU_FLOAT128_HW_2): Likewise.
3732 (BU_FLOAT128_HW_3): Likewise.
3733 (BU_FLOAT128_HW_VSX_1): Likewise.
3734 (BU_FLOAT128_HW_VSX_2): Likewise.
3735 (scalar_extract_expq): Change float128 built-in functions to
3736 accommodate having both KFmode and TFmode functions. Use the
3737 KFmode variant as the default.
3738 (scalar_extract_sigq): Likewise.
3739 (scalar_test_neg_qp): Likewise.
3740 (scalar_insert_exp_q): Likewise.
3741 (scalar_insert_exp_qp): Likewise.
3742 (scalar_test_data_class_qp): Likewise.
3743 (sqrtf128_round_to_odd): Delete processing the round to odd
3744 built-in functions as special built-in functions, and define them
3745 as float128 built-ins. Use the KFmode variant as the default.
3746 (truncf128_round_to_odd): Likewise.
3747 (addf128_round_to_odd): Likewise.
3748 (subf128_round_to_odd): Likewise.
3749 (mulf128_round_to_odd): Likewise.
3750 (divf128_round_to_odd): Likewise.
3751 (fmaf128_round_to_odd): Likewise.
3752 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
3753 support for KFmode and TFmode xststdcqp calls.
3754 (rs6000_expand_builtin): If long double is IEEE 128-bit floating
3755 point, switch the built-in handlers for the get/set float128
3756 exponent, get float128 mantissa, float128 test built-ins, and the
3757 float128 round to odd built-in functions. Eliminate creating the
3758 float128 round to odd built-in functions as special built-ins.
3759 (rs6000_init_builtins): Eliminate special creation of the float128
3760 round to odd built-in functions.
3761 * config/rs6000/vsx.md (xsxexpqp_<mode>): Change float128 built-in
3762 function insns to support both TFmode and KFmode variants.
3763 (xsxsigqp_<mode>): Likewise.
3764 (xsiexpqpf_<mode>): Likewise.
3765 (xsiexpqp_<mode>): Likewise.
3766 (xststdcqp_<mode>): Likewise.
3767 (xststdcnegqp_<mode>): Likewise.
3768 (xststdcqp_<mode>): Likewise.
3769
3770 2017-11-14 Jan Hubicka <hubicka@ucw.cz>
3771
3772 * tree-ssa-threadupdate.c (compute_path_counts): Remove
3773 unused path_in_freq_ptr parameter.
3774 (ssa_fix_duplicate_block_edges): Do not pass around path_in_freq
3775
3776 2017-11-14 Jan Hubicka <hubicka@ucw.cz>
3777
3778 * ipa-inline.c (edge_badness): Dump sreal frequency.
3779 (compute_inlined_call_time): Match natural implementaiton ...
3780 * ipa-fnsummary.c (estimate_edge_size_and_time): ... here; remove
3781 forgotten division by CGRAPH_FREQ_BASE.
3782
3783 2017-11-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3784
3785 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit since
3786 Solaris 11. Update comment.
3787 * configure.ac (gcc_cv_ld_pid): Adapt comment for Solaris 12
3788 renaming.
3789 * config/sol2.h (STARTFILE_SPEC): Likewise.
3790 * configure: Regenerate.
3791
3792 2017-11-14 Carl Love <cel@us.ibm.com>
3793
3794 * config/rs6000/rs6000.c (swap_endian_selector_for_mode): Remove
3795 le_ and be_ prefixes to swap* variables. Remove
3796 if (VECTOR_ELT_ORDER_BIG) statement. Remove E_V16QImode case
3797 statements.
3798
3799 2017-11-14 Jason Merrill <jason@redhat.com>
3800
3801 Support GTY((cache)) on hash_map.
3802 * hash-traits.h (ggc_remove): Add ggc_maybe_mx member function.
3803 (ggc_cache_remove): Override it instead of ggc_mx.
3804 * hash-table.h (gt_ggc_mx): Call it instead of ggc_mx.
3805 (gt_cleare_cache): Call ggc_mx instead of gt_ggc_mx.
3806 * hash-map-traits.h (simple_hashmap_traits): Add maybe_mx member.
3807 (simple_cache_map_traits): Override maybe_mx.
3808 * hash-map.h (hash_entry): Add ggc_maybe_mx and keep_cache_entry.
3809 (hash_map): Friend gt_cleare_cache.
3810 (gt_cleare_cache): New.
3811 * tree.h (tree_cache_traits): New hash_map traits class.
3812 (tree_cache_map): New typedef.
3813
3814 2017-11-14 Richard Biener <rguenther@suse.de>
3815
3816 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove first_p
3817 paramter and handling.
3818 (cleanup_control_flow_bb): Likewise.
3819 (cleanup_control_flow_pre): New helper performing a DFS walk
3820 to call cleanup_control_flow_bb in PRE order.
3821 (cleanup_tree_cfg_1): Do the first phase of cleanup_control_flow_bb
3822 via cleanup_control_flow_pre.
3823
3824 2017-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3825
3826 * config/aarch64/aarch64-simd.md
3827 (aarch64_simd_bsl<mode>_internal): Remove DImode.
3828 (*aarch64_simd_bsl<mode>_alt): Likewise.
3829 (aarch64_simd_bsldi_internal): New.
3830 (aarch64_simd_bsldi_alt): Likewise.
3831
3832 2017-11-13 Jan Hubicka <hubicka@ucw.cz>
3833
3834 * tracer.c (better_p): Do not compare frequencies.
3835 * reg-stack.c (better_edge): Likewise.
3836 * shrink-wrap.c (try_shrink_wrapping): Do not convert to gcov counts
3837 and back.
3838
3839 2017-11-13 Jan Hubicka <hubicka@ucw.cz>
3840
3841 * auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
3842 * cgraphunit.c (cgraph_node::expand_thunk): Use update_max_bb_count.
3843 * ipa-utils.c (ipa_merge_profiles): Use update_max_bb_count.
3844 * lto-streamer-in.c (input_function): Use update_max_bb_count.
3845 * omp-expand.c (expand_omp_taskreg): Use update_max_bb_count.
3846 * predict.c (maybe_hot_frequency_p): Inline to ...
3847 (maybe_hot_count_p): ... here; rewrite to counts.
3848 (counts_to_freqs): Rename to ...
3849 (update_max_bb_count): ... this one.
3850 (expensive_function_p): Use counts.
3851 (estimate_bb_frequencies): Update.
3852 (rebuild_frequencies): Update.
3853 * predict.h (counts_to_freqs): Rename to ...
3854 (update_max_bb_count): ... this one.
3855 * profile.c (compute_branch_probabilities): Add debug info
3856 * tree-inline.c (expand_call_inline): Update debug info.
3857 (optimize_inline_calls): Use update_max_bb_count..
3858 (tree_function_versioning): Use update_max_bb_count..
3859 * value-prof.c (gimple_value_profile_transformations):
3860 Do not use update_max_bb_count.
3861
3862 2017-11-13 Jan Hubicka <hubicka@ucw.cz>
3863
3864 * ipa-inline.c (compute_uninlined_call_time, compute_inlined_call_time):
3865 always use frequencies.
3866
3867 2017-11-13 Jan Hubicka <hubicka@ucw.cz>
3868
3869 * bb-reorder.c: Remove frequencies from comments.
3870 (better_edge_p): Use profile counts.
3871 (find_traces): Dump profile counts.
3872 (rotate_loop): Use profile counts.
3873 (find_traces_1_round): Likewise.
3874 (connect_better_edge_p): Use counts instead of probabilities for
3875 reverse walk.
3876 (copy_bb_p): Drop early check for non-0 frequency.
3877 (sanitize_hot_paths): Update comments.
3878
3879 2017-11-13 Jan Hubicka <hubicka@ucw.cz>
3880
3881 * ipa-split.c (struct split_point): Add count.
3882 (consider_split): Do not compute incoming frequency; compute incoming
3883 count and store it to split_point.
3884 (split_function): Set count of the call to split part correctly.
3885
3886 2017-11-13 Carl Love <cel@us.ibm.com>
3887
3888 * config/rs6000/altivec.md (altivec_vsumsws_be): Add define_expand.
3889
3890 2017-11-13 Tom Tromey <tom@tromey.com>
3891
3892 * doc/cpp.texi (Variadic Macros): Document __VA_OPT__.
3893
3894 2017-11-13 Carl Love <cel@us.ibm.com>
3895
3896 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
3897 Add support for builtins:
3898 unsigned int vec_first_{,miss}_match_{,or_eos}index,
3899 vector {un,}signed {char,int,short},
3900 vector {un,}signed {char,int,short}) arguments.
3901 * config/rs6000/rs6000-builtin.def (VFIRSTMATCHINDEX,
3902 VFIRSTMATCHOREOSINDEX, VFIRSTMISMATCHINDEX, VFIRSTMISMATCHOREOSINDEX):
3903 Add BU_P9V_AV_2 expansions for the builtins.
3904 * config/rs6000/altivec.h (vec_first_match_index,
3905 vec_first_mismatch_index, vec_first_match_or_eos_index,
3906 vec_first_mismatch_or_eos_index): Add #defines for the builtins.
3907 * config/rs6000/rs6000-protos.h (bytes_in_mode): Add
3908 new extern declaration.
3909 * config/rs6000/rs6000.c (bytes_in_mode): Add new function.
3910 * config/rs6000/vsx.md (first_match_index_<mode>,
3911 first_match_or_eos_index_<mode>, first_mismatch_index_<mode>,
3912 first_mismatch_or_eos_index_<mode>): Add define expand.
3913 (vctzlsbb_<mode>): Add mode field to define_insn for vctzlsbb.
3914 * doc/extend.texi: Update the built-in documenation file for the new
3915 built-in functions.
3916
3917 2017-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3918
3919 * match.pd: Convert fminf<N>, fminf<N>x, fmax<N>, and fmax<N>x
3920 into the min/max operations for _Float<N> and _Float<N>X types.
3921
3922 2017-11-13 Eric Botcazou <ebotcazou@adacore.com>
3923
3924 PR lto/81351
3925 * dwarf2out.c (do_eh_frame): New static variable.
3926 (dwarf2out_begin_prologue): Set it.
3927 (dwarf2out_frame_finish): Test it instead of dwarf2out_do_eh_frame.
3928
3929 2017-11-13 Jan Hubicka <hubicka@ucw.cz>
3930
3931 * tree-ssa-coalesce.c (coalesce_cost): Fix formating.
3932
3933 * tree-ssa-sink.c (select_best_block): Do not use frequencies.
3934
3935 2017-11-13 Eric Botcazou <ebotcazou@adacore.com>
3936
3937 PR lto/81351
3938 * debug.h (dwarf2out_do_eh_frame): Declare.
3939 * dwarf2cfi.c (dwarf2out_do_eh_frame): New predicate.
3940 (dwarf2out_do_frame): Use it.
3941 (dwarf2out_do_cfi_asm): Likewise.
3942 * dwarf2out.c (dwarf2out_frame_finish): Likewise.
3943 (dwarf2out_assembly_start): Likewise.
3944 (dwarf2out_begin_prologue): Fix comment.
3945 * toplev.c (compile_file): Always call dwarf2out_frame_finish
3946 if the target needs either debug or unwind DWARF2 info.
3947 * lto-opts.c (lto_write_options): Do not save -fexceptions,
3948 -fnon-call-exceptions, -ffp-contract, -fmath-errno, -fsigned-zeros,
3949 -ftrapping-math, -ftrapv and -fwrapv.
3950
3951 2017-11-13 Jan Hubicka <hubicka@ucw.cz>
3952
3953 * cgraph.c (cgraph_edge::sreal_frequency): New function.
3954 * cgraph.h (cgraph_edge::sreal_frequency): Declare.
3955 * ipa-fnsummary.c (dump_ipa_call_summary): Use sreal_frequency.
3956 (estimate_edge_size_and_time): Likewise.
3957 (ipa_merge_fn_summary_after_inlining): Likewise.
3958 * ipa-inline.c (cgraph_freq_base_rec): Remove.
3959 (compute_uninlined_call_time): Use sreal_frequency.
3960 (compute_inlined_call_time): Likewise.
3961 (ipa_inline): Do not initialize cgraph_freq_base_rec.
3962 * profile-count.c: Include sreal.h.
3963 (profile_count::to_sreal_scale): New.
3964 * profile-count.h: Forward declare sreal.
3965 (profile_count::to_sreal_scale): Declare.
3966
3967 2017-11-13 Nathan Sidwell <nathan@acm.org>
3968
3969 * diagnostic.c (maybe_line_and_column): New.
3970 (diagnostic_get_location_text): Use it.
3971 (diagnostic_report_current_module): Likewise.
3972 (test_diagnostic_get_location_text): Add tests.
3973
3974 2017-11-13 Luis Machado <luis.machado@linaro.org>
3975
3976 * doc/md.texi (Specifying processor pipeline description): Fix
3977 incorrect latency for the div instruction example.
3978
3979 2017-11-13 Jakub Jelinek <jakub@redhat.com>
3980
3981 PR tree-optimization/78821
3982 * gimple-ssa-store-merging.c (compatible_load_p): Don't require
3983 that bit_not_p is the same.
3984 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3985 (split_group): Count precisely bit_not_p bits in each statement.
3986 (invert_op): New function.
3987 (imm_store_chain_info::output_merged_store): Use invert_op to
3988 emit BIT_XOR_EXPR with a xor_mask instead of BIT_NOT_EXPR if some
3989 but not all orig_stores have BIT_NOT_EXPR in the corresponding spots.
3990
3991 2017-11-13 Martin Liska <mliska@suse.cz>
3992
3993 * gcov.c (struct coverage_info): Remove typedef of coverage_t.
3994 (struct source_info): Likewise.
3995 (add_branch_counts): Likewise.
3996 (add_line_counts): Likewise.
3997 (function_summary): Likewise.
3998 (output_intermediate_line): Likewise.
3999 (generate_results): Likewise.
4000
4001 2017-11-13 Martin Liska <mliska@suse.cz>
4002
4003 * gcov.c (struct block_info): Remove typedef for block_t.
4004 (struct line_info): Likewise.
4005 (line_info::has_block): Likewise.
4006 (EXIT_BLOCK): Likewise.
4007 (unblock): Likewise.
4008 (circuit): Likewise.
4009 (get_cycles_count): Likewise.
4010 (process_file): Likewise.
4011 (read_graph_file): Likewise.
4012 (solve_flow_graph): Likewise.
4013 (find_exception_blocks): Likewise.
4014 (add_line_counts): Likewise.
4015 (accumulate_line_info): Likewise.
4016 (output_line_details): Likewise.
4017
4018 2017-11-13 Martin Liska <mliska@suse.cz>
4019
4020 * gcov.c (struct arc_info): Remove typedef for arc_t.
4021 (struct line_info): Likewise.
4022 (add_branch_counts): Likewise.
4023 (output_branch_count): Likewise.
4024 (function_info::~function_info): Likewise.
4025 (circuit): Likewise.
4026 (output_intermediate_line): Likewise.
4027 (read_graph_file): Likewise.
4028 (solve_flow_graph): Likewise.
4029 (find_exception_blocks): Likewise.
4030 (add_line_counts): Likewise.
4031 (accumulate_line_info): Likewise.
4032 (output_line_details): Likewise.
4033 (output_function_details): Likewise.
4034
4035 2017-11-13 Martin Liska <mliska@suse.cz>
4036
4037 * gcov.c (struct function_info): Remove typedef for function_t.
4038 (struct source_info): Likewise.
4039 (source_info::get_functions_at_location): Likewise.
4040 (solve_flow_graph): Likewise.
4041 (find_exception_blocks): Likewise.
4042 (add_line_counts): Likewise.
4043 (output_intermediate_file): Likewise.
4044 (process_file): Likewise.
4045 (generate_results): Likewise.
4046 (release_structures): Likewise.
4047 (read_graph_file): Likewise.
4048 (read_count_file): Likewise.
4049 (accumulate_line_counts): Likewise.
4050 (output_lines): Likewise.
4051
4052 2017-11-13 Martin Liska <mliska@suse.cz>
4053
4054 * gcov.c (function_info::function_info): Remove num_counts
4055 and add vector<gcov_type>.
4056 (function_info::~function_info): Use the vector.
4057 (process_file): Likewise.
4058 (read_graph_file): Likewise.
4059 (read_count_file): Likewise.
4060 (solve_flow_graph): Likewise.
4061
4062 2017-11-13 Martin Liska <mliska@suse.cz>
4063
4064 * gcov.c (function_info::is_artificial): New function.
4065 (process_file): Erase all artificial early.
4066 (generate_results): Skip as all artificial are already
4067 removed.
4068
4069 2017-11-13 Martin Liska <mliska@suse.cz>
4070
4071 * gcov.c (read_graph_file): Store to global vector of functions.
4072 (read_count_file): Iterate the vector.
4073 (process_file): Likewise.
4074 (generate_results): Likewise.
4075 (release_structures): Likewise.
4076
4077 2017-11-13 Jakub Jelinek <jakub@redhat.com>
4078
4079 PR tree-optimization/82954
4080 * gimple-ssa-store-merging.c
4081 (imm_store_chain_info::coalesce_immediate_stores): If
4082 !infof->ops[N].base_addr, split group if info->ops[N].base_addr.
4083
4084 2017-11-13 Richard Sandiford <richard.sandiford@linaro.org>
4085
4086 * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
4087 Upddate call to ENDIAN_LANE_N.
4088 (aarch64_<sur>dot_lane<vsi2qi>): Use aarch64_endian_lane_rtx.
4089 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
4090 (*aarch64_simd_vec_copy_lane<mode>): Update calls to ENDIAN_LANE_N
4091 and use aarch64_endian_lane_rtx.
4092 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
4093
4094 2017-11-12 Tom de Vries <tom@codesourcery.com>
4095
4096 * config/riscv/riscv.h (ASM_OUTPUT_LABELREF): Wrap in do {} while (0).
4097
4098 2017-11-12 Tom de Vries <tom@codesourcery.com>
4099
4100 * config/elfos.h (ASM_OUTPUT_ASCII): Remove semicolon after macro body.
4101
4102 2017-11-12 Tom de Vries <tom@codesourcery.com>
4103
4104 * config/cr16/cr16.h (ASM_OUTPUT_LABELREF): Remove semicolon after macro
4105 body.
4106 * config/powerpcspe/xcoff.h (ASM_OUTPUT_LABELREF): Same.
4107 * config/rs6000/xcoff.h (ASM_OUTPUT_LABELREF): Same.
4108 * defaults.h (ASM_OUTPUT_LABELREF): Same.
4109
4110 2017-11-11 Martin Sebor <msebor@redhat.com>
4111
4112 PR c/81117
4113 * doc/extend.texi (attribute nonstring): Remove spurious argument.
4114
4115 PR bootstrap/82948
4116 * prefic.c (translate_name): Replace strncpy with memcpy to
4117 avoid -Wstringop-truncation.
4118
4119 2017-11-10 Jan Hubicka <hubicka@ucw.cz>
4120
4121 * tree-ssa-loop-im.c (execute_sm_if_changed): Do not compute freq_sum.
4122
4123 2017-11-10 Jan Hubicka <hubicka@ucw.cz>
4124
4125 * predict.c (maybe_hot_frequency_p): Do not use cfun.
4126
4127 2017-11-10 Jan Hubicka <hubicka@ucw.cz>
4128
4129 * tree-ssa-tail-merge.c (replace_block_by): Fix and re-enable profile
4130 merging.
4131
4132 2017-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4133
4134 * config/rs6000/rs6000.md (bswaphi2_reg): On ISA 3.0 systems,
4135 enable generating XXBRH if the value is in a vector register.
4136 (bswapsi2_reg): On ISA 3.0 systems, enable generating XXBRW if the
4137 value is in a vector register.
4138 (bswapdi2_reg): On ISA 3.0 systems, always use XXBRD to do
4139 register to register bswap64's instead of doing the GPR sequence
4140 used on previous machines.
4141 (bswapdi2_xxbrd): New insn.
4142 (bswapdi2_reg): Disallow on ISA 3.0.
4143 (register to register bswap64 splitter): Do not split the insn on
4144 ISA 3.0 systems that use XXBRD.
4145
4146 2017-11-10 Martin Sebor <msebor@redhat.com>
4147
4148 PR c/81117
4149 * config/darwin-c.c (framework_construct_pathname): Replace strncpy
4150 with memcpy.
4151 (find_subframework_file): Same.
4152
4153 2017-11-10 Jan Hubicka <hubicka@ucw.cz>
4154
4155 * auto-profile.c (afdo_indirect_call): Drop frequency.
4156 * cgraph.c (symbol_table::create_edge): Drop frequency argument.
4157 (cgraph_node::create_edge): Drop frequency argument.
4158 (cgraph_node::create_indirect_edge): Drop frequency argument.
4159 (cgraph_edge::make_speculative): Drop frequency arguments.
4160 (cgraph_edge::resolve_speculation): Do not update frequencies
4161 (cgraph_edge::dump_edge_flags): Do not dump frequency.
4162 (cgraph_node::dump): Check consistency in IPA mode.
4163 (cgraph_edge::maybe_hot_p): Use IPA counter.
4164 (cgraph_edge::verify_count_and_frequency): Rename to ...
4165 (cgraph_edge::verify_count): ... this one; drop frequency checking.
4166 (cgraph_node::verify_node): Update.
4167 * cgraph.h (struct cgraph_edge): Drop frequency.
4168 (cgraph_edge::frequency): New function.
4169 * cgraphbuild.c (pass_build_cgraph_edges::execute): Donot pass
4170 frequencies.
4171 (cgraph_edge::rebuild_edges): Likewise.
4172 * cgraphclones.c (cgraph_edge::clone): Scale only counts.
4173 (duplicate_thunk_for_node): Do not pass frequency.
4174 (cgraph_node::create_clone): Scale only counts.
4175 (cgraph_node::create_virtual_clone): Do not pass frequency.
4176 (cgraph_node::create_edge_including_clones): Do not pass frequency.
4177 (cgraph_node::create_version_clone): Do not pass frequency.
4178 * cgraphunit.c (cgraph_node::analyze): Do not pass frequency.
4179 (cgraph_node::expand_thunk): Do not pass frequency.
4180 (cgraph_node::create_wrapper): Do not pass frequency.
4181 * gimple-iterator.c (update_call_edge_frequencies): Do not pass
4182 frequency.
4183 * gimple-streamer-in.c (input_bb): Scale only IPA counts.
4184 * ipa-chkp.c (chkp_produce_thunks): Do not pass frequency.
4185 * ipa-cp.c (ipcp_lattice::print): Use frequency function.
4186 (gather_caller_stats): Use frequency function.
4187 (ipcp_cloning_candidate_p): Use frequency function.
4188 (ipcp_propagate_stage): Use frequency function.
4189 (get_info_about_necessary_edges): Use frequency function.
4190 (update_profiling_info): Update only IPA profile.
4191 (update_specialized_profile): Use frequency functoin.
4192 (perhaps_add_new_callers): Update only IPA profile.
4193 * ipa-devirt.c (ipa_devirt): Use IPA profile.
4194 * ipa-fnsummary.c (redirect_to_unreachable): Do not set frequrency.
4195 (dump_ipa_call_summary): Use frequency function.
4196 (estimate_edge_size_and_time): Use frequency function.
4197 (ipa_merge_fn_summary_after_inlining): Use frequency function.
4198 * ipa-inline-analysis.c (do_estimate_edge_time): Use IPA profile.
4199 * ipa-inline-transform.c (update_noncloned_frequencies): Rename to ..
4200 (update_noncloned_counts): ... ths one; scale counts only.
4201 (clone_inlined_nodes): Do not scale frequency.
4202 (inline_call): Do not pass frequency.
4203 * ipa-inline.c (compute_uninlined_call_time): Use IPA profile.
4204 (compute_inlined_call_time): Use IPA profile.
4205 (want_inline_small_function_p): Use IPA profile.
4206 (want_inline_self_recursive_call_p): Use IPA profile.
4207 (edge_badness): Use IPA profile.
4208 (lookup_recursive_calls): Use IPA profile.
4209 (recursive_inlining): Do not pass frequency.
4210 (resolve_noninline_speculation): Do not update frequency.
4211 (inline_small_functions): Collect max of IPA profile.
4212 (dump_overall_stats): Dump IPA porfile.
4213 (dump_inline_stats): Dump IPA porfile.
4214 (ipa_inline): Collect IPA stats.
4215 * ipa-inline.h (clone_inlined_nodes): Update prototype.
4216 * ipa-profile.c (ipa_propagate_frequency_1): Use frequency function.
4217 (ipa_propagate_frequency): Use frequency function.
4218 (ipa_profile): Cleanup.
4219 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not pass frequency
4220 * ipa-utils.c (ipa_merge_profiles): Merge all profiles.
4221 * lto-cgraph.c (lto_output_edge): Do not stream frequency.
4222 (input_node): Do not stream frequency.
4223 (input_edge): Do not stream frequency.
4224 (merge_profile_summaries): Scale only IPA profiles.
4225 * omp-simd-clone.c (simd_clone_adjust): Do not pass frequency.
4226 * predict.c (drop_profile): Do not recompute frequency.
4227 * trans-mem.c (ipa_tm_insert_irr_call): Do not pass frequency.
4228 (ipa_tm_insert_gettmclone_call): Do not pass frequency.
4229 * tree-cfg.c (execute_fixup_cfg): Drop profile to global0 if needed.
4230 * tree-chkp.c (chkp_copy_bounds_for_assign): Do not pass frequency.
4231 * tree-emutls.c (gen_emutls_addr): Do not pass frequency.
4232 * tree-inline.c (copy_bb): Do not scale frequency.
4233 (expand_call_inline): Do not scale frequency.
4234 (tree_function_versioning): Do not scale frequency.
4235 * ubsan.c (ubsan_create_edge): Do not pass frequency.
4236
4237 2017-11-10 Julia Koval <julia.koval@intel.com>
4238
4239 * config/i386/gfniintrin.h (_mm_gf2p8affine_epi64_epi8)
4240 (_mm256_gf2p8affine_epi64_epi8, _mm_mask_gf2p8affine_epi64_epi8)
4241 (_mm_maskz_gf2p8affine_epi64_epi8, _mm256_mask_gf2p8affine_epi64_epi8)
4242 (_mm256_maskz_gf2p8affine_epi64_epi8)
4243 (_mm512_mask_gf2p8affine_epi64_epi8, _mm512_gf2p8affine_epi64_epi8)
4244 (_mm512_maskz_gf2p8affine_epi64_epi8): New intrinsics.
4245 * config/i386/i386-builtin.def (__builtin_ia32_vgf2p8affineqb_v64qi)
4246 (__builtin_ia32_vgf2p8affineqb_v32qi)
4247 (__builtin_ia32_vgf2p8affineqb_v16qi): New builtins.
4248 * config/i386/sse.md (vgf2p8affineqb_<mode><mask_name>): New pattern.
4249
4250 2017-11-10 Tamar Christina <tamar.christina@arm.com>
4251
4252 PR target/82641
4253 * config/arm/arm.c
4254 (arm_option_override): Refactor.
4255 (arm_option_reconfigure_globals): New.
4256 (arm_options_perform_arch_sanity_checks): New.
4257 * config/arm/arm-protos.h (arm_option_reconfigure_globals):
4258 New prototype.
4259 (arm_options_perform_arch_sanity_checks): Likewise
4260
4261 2017-11-10 Pat Haugen <pthaugen@us.ibm.com>
4262
4263 * rs6000/power9.md (power9-qpdiv): Correct DFU pipe usage.
4264 (power9-qpmul): New.
4265 * rs6000/rs6000.md ("type" attr): Add qmul.
4266 (mul<mode>3, fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw,
4267 *nfms<mode>4_hw, mul<mode>3_odd, fma<mode>4_odd, *fms<mode>4_odd,
4268 *nfma<mode>4_odd, *nfms<mode>4_odd): Change type to qmul.
4269
4270 2017-11-10 Martin Sebor <msebor@redhat.com>
4271
4272 PR c/81117
4273 * builtins.c (compute_objsize): Handle arrays that
4274 compute_builtin_object_size likes to fail for. Make extern.
4275 * builtins.h (compute_objsize): Declare.
4276 (check_strncpy_sizes): New function.
4277 (expand_builtin_strncpy): Call check_strncpy_sizes.
4278 * gimple-fold.c (gimple_fold_builtin_strncpy): Implement
4279 -Wstringop-truncation.
4280 (gimple_fold_builtin_strncat): Same.
4281 * gimple.c (gimple_build_call_from_tree): Set call location.
4282 * tree-ssa-strlen.c (strlen_to_stridx): New global variable.
4283 (maybe_diag_bound_equal_length, is_strlen_related_p): New functions.
4284 (handle_builtin_stxncpy, handle_builtin_strncat): Same.
4285 (handle_builtin_strlen): Use strlen_to_stridx.
4286 (strlen_optimize_stmt): Handle flavors of strncat, strncpy, and
4287 stpncpy.
4288 Use strlen_to_stridx.
4289 (pass_strlen::execute): Release strlen_to_stridx.
4290 * doc/invoke.texi (-Wsizeof-pointer-memaccess): Document enhancement.
4291 (-Wstringop-truncation): Document new option.
4292
4293 2017-11-10 Martin Liska <mliska@suse.cz>
4294
4295 PR gcov-profile/82702
4296 * gcov.c (main): Handle intermediate files in a different
4297 way.
4298 (get_gcov_intermediate_filename): New function.
4299 (output_gcov_file): Remove support of intermediate files.
4300 (generate_results): Allocate intermediate file.
4301 (release_structures): Clean-up properly fn_end.
4302 (output_intermediate_file): Start iterating with line 1.
4303
4304 2017-11-10 Jakub Jelinek <jakub@redhat.com>
4305
4306 PR tree-optimization/82929
4307 * gimple-ssa-store-merging.c (struct store_immediate_info): Add
4308 ops_swapped_p non-static data member.
4309 (store_immediate_info::store_immediate_info): Clear it.
4310 (imm_store_chain_info::coalesce_immediate_stores): If swapping
4311 ops set ops_swapped_p.
4312 (count_multiple_uses): Handle ops_swapped_p.
4313
4314 2017-11-10 Martin Liska <mliska@suse.cz>
4315
4316 * coverage.c (coverage_init): Stream information about
4317 support of has_unexecuted_blocks.
4318 * doc/gcov.texi: Document that.
4319 * gcov-dump.c (dump_gcov_file): Support it in gcov_dump tool.
4320 * gcov.c (read_graph_file): Likewise.
4321 (output_line_beginning): Fix a small issue with
4322 color output.
4323
4324 2017-11-10 Bin Cheng <bin.cheng@arm.com>
4325
4326 * tree-predcom.c (determine_roots_comp): Avoid memory leak by freeing
4327 reference of trivial component.
4328
4329 2017-11-10 Jakub Jelinek <jakub@redhat.com>
4330
4331 PR bootstrap/82916
4332 * gimple-ssa-store-merging.c
4333 (pass_store_merging::terminate_all_aliasing_chains): For
4334 gimple_store_p stmts also call refs_output_dependent_p.
4335
4336 PR rtl-optimization/82913
4337 * compare-elim.c (try_merge_compare): Punt if def_insn is not
4338 single set.
4339
4340 2017-11-09 Jeff Law <law@redhat.com>
4341
4342 * vr-values.h: New file with vr_values class.
4343 * tree-vrp.c: Include vr-values.h
4344 (vrp_value_range_pool, vrp_equiv_obstack, num_vr_values): Move static
4345 data objects into the vr_values class.
4346 (vr_value, values_propagated, vr_phi_edge_counts): Likewise.
4347 (get_value_range): Make it a member function within vr_values class.
4348 (set_defs_to_varying, update_value_range, add_equivalence): Likewise.
4349 (vrp_stmt_computes_nonzero_p, op_with_boolean_value_range_p): Likewise.
4350 (op_with_constant_singleton_value_range): Likewise.
4351 (extract_range_for_var_from_comparison_expr): Likewise.
4352 (extract_range_from_assert, extract_range_from_ssa_name): Likewise.
4353 (extract_range_from_binary_expr): Likewise.
4354 (extract_range_from_unary_expr): Likewise.
4355 (extract_range_from_cond_expr, extrat_range_from_comparison): Likewise.
4356 (check_for_binary_op_overflow, extract_range_basic): Likewise.
4357 (extract_range_from_assignment, adjust_range_with_scev): Likewise.
4358 (dump_all_value_ranges, get_vr_for_comparison): Likewise.
4359 (compare_name_with_value, compare_names): Likewise.
4360 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Likewise.
4361 (vrp_evaluate_conditional_warnv_with_ops): Likewise. Remove prototype.
4362 (vrp_evaluate_conditional, vrp_visit_cond_stmt): Likewise.
4363 (vrp_visit_switch_stmt, extract_range_from_stmt): Likewise.
4364 (extract_range_from_phi_node): Likewise.
4365 (simplify_truth_ops_using_ranges): Likewise.
4366 (simplify_div_or_mod_using_ranges): Likewise.
4367 (simplify_min_or_max_using_ranges, simplify_abs_using_ranges): Likewise.
4368 (simplify_bit_ops_using_ranges, simplify_cond_using_ranges_1): Likewise.
4369 (simplify_cond_using_ranges_2, simplify_switch_using_ranges): Likewise.
4370 (simplify_float_conversion_using_ranges): Likewise.
4371 (simplify_internal_call_using_ranges): Likewise.
4372 (two_valued_val_range_p, simplify_stmt_using_ranges): Likewise.
4373 (vrp_visit_assignment_or_call): Likewise. Smuggle class instance
4374 poitner via x_vr_values for calls into gimple folder.
4375 (vrp_initialize_lattice): Make this the vr_values ctor.
4376 (vrp_free_lattice): Make this the vr_values dtor.
4377 (set_vr_value): New function.
4378 (class vrp_prop): Add vr_values data member. Add various member
4379 functions as well as member functions that delegate to vr_values.
4380 (check_array_ref): Make a member function within vrp_prop class.
4381 (search_for_addr_array, vrp_initialize): Likewise.
4382 (vrp_finalize): Likewise. Revamp to avoid direct access to
4383 vr_value, values_propagated, etc.
4384 (check_array_bounds): Extract vrp_prop class instance pointer from
4385 walk info structure. Use it to call member functions.
4386 (check_all_array_refs): Make a member function within vrp_prop class.
4387 Smuggle class instance pointer via walk info structure.
4388 (x_vr_values): New local static.
4389 (vrp_valueize): Use x_vr_values to get class instance.
4390 (vr_valueize_1): Likewise.
4391 (class vrp_folder): Add vr_values data member. Add various member
4392 functions as well as member functions that delegate to vr_values.
4393 (fold_predicate_in): Make a mber fucntion within vrp_folder class.
4394 (simplify_stmt_for_jump_threading): Extract smuggled vr_values
4395 class instance from vr_values. Use it to call member functions.
4396 (vrp_dom_walker): Add vr_values data member.
4397 (vrp_dom_walker::after_dom_children): Smuggle vr_values class
4398 instance via x_vr_values.
4399 (identify_jump_threads): Accept vr_values as argument. Store
4400 it into the walker structure.
4401 (evrp_dom_walker): Add vr_values class data member. Add various
4402 delegators.
4403 (evrp_dom_walker::try_find_new_range): Use vr_values data
4404 member to access the memory allocator.
4405 (evrp_dom_walker::before_dom_children): Store vr_values class
4406 instance into the vrp_folder class.
4407 (evrp_dom_walker::push_value_range): Rework to avoid direct
4408 access to num_vr_values and vr_value.
4409 (evrp_dom_walker::pop_value_range): Likewise.
4410 (execute_early_vrp): Remove call to vrp_initialize_lattice.
4411 Use vr_values to get to dump_all_value_ranges member function.
4412 Remove call to vrp_free_lattice. Call vrp_initialize, vrp_finalize,
4413 and simplify_cond_using_ranges_2 via vrp_prop class instance.
4414 Pass vr_values class instance down to identify_jump_threads.
4415 Remove call to vrp_free_lattice.
4416 (debug_all_value_ranges): Remove.
4417
4418 * tree-vrp.c (vrp_prop): Move class to earlier point in the file.
4419 (vrp_folder): Likewise.
4420
4421 * tree-vrp.c (set_value_range): Do not reference vrp_equiv_obstack.
4422 Get it from the existing bitmap instead.
4423 (vrp_intersect_ranges_1): Likewise.
4424
4425 2017-11-09 Jakub Jelinek <jakub@redhat.com>
4426
4427 * gimple-ssa-store-merging.c (struct store_immediate_info): Add
4428 bit_not_p field.
4429 (store_immediate_info::store_immediate_info): Add bitnotp argument,
4430 set bit_not_p to it.
4431 (imm_store_chain_info::coalesce_immediate_stores): Break group
4432 if bit_not_p is different.
4433 (count_multiple_uses, split_group,
4434 imm_store_chain_info::output_merged_store): Handle info->bit_not_p.
4435 (handled_load): Avoid multiple chained BIT_NOT_EXPRs.
4436 (pass_store_merging::process_store): Handle BIT_{AND,IOR,XOR}_EXPR
4437 result inverted using BIT_NOT_EXPR, compute bit_not_p, pass it
4438 to store_immediate_info ctor.
4439
4440 2017-11-09 Jim Wilson <jimw@sifive.com>
4441
4442 * collect2.c (OBJECT_FORMAT_COFF): Remove EXTENDED_COFF support.
4443 (scan_prog_file): Likewise.
4444
4445 2017-11-09 Jan Hubicka <hubicka@ucw.cz>
4446
4447 * bb-reorder.c (max_entry_frequency): Remove.
4448 (find_traces, rotate_loop, mark_bb_visited, connect_better_edge_p,
4449 connect_traces, push_to_next_round_p): Remove prototypes.
4450 (find_traces_1_round): Use counts only.
4451 (push_to_next_round_p): Likewise.
4452 (find_traces): Likewise.
4453 (rotate_loop): Likewise.
4454 (find_traces_1_round): Likewise.
4455 (connect_traces): Likewise.
4456 (edge_order): Likewise.
4457
4458 2017-11-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
4459
4460 * config/arm/arm.c (output_return_instruction): Add comments to
4461 indicate requirement for cmse_nonsecure_entry return to account
4462 for the size of clearing instruction output here.
4463 (thumb_exit): Likewise.
4464 * config/arm/thumb2.md (thumb2_cmse_entry_return): Fix length for
4465 return in hardfloat mode.
4466
4467 2017-11-09 Segher Boessenkool <segher@kernel.crashing.org>
4468
4469 * config/rs6000/rs6000.c (machine_function): Add a bool,
4470 "toc_is_wrapped_separately".
4471 (rs6000_option_override_internal): Enable OPTION_MASK_SAVE_TOC_INDIRECT
4472 if it wasn't explicitly set or unset, we are optimizing for speed, and
4473 doing separate shrink-wrapping.
4474 (rs6000_get_separate_components): Enable the TOC component if
4475 saving the TOC register in the prologue.
4476 (rs6000_components_for_bb): Handle the TOC component.
4477 (rs6000_emit_prologue_components): Store the TOC register where needed.
4478 (rs6000_set_handled_components): Mark TOC as handled, if handled.
4479 (rs6000_emit_prologue): Don't save the TOC if that is already done.
4480
4481 2017-11-09 Martin Jambor <mjambor@suse.cz>
4482
4483 * ipa-param-manipulation.c: New file.
4484 * ipa-param-manipulation.h: Likewise.
4485 * Makefile.in (OBJS): Add ipa-param-manipulation.o.
4486 (PLUGIN_HEADERS): Addded ipa-param-manipulation.h
4487 * ipa-param.h (ipa_parm_op): Moved to ipa-param-manipulation.h.
4488 (ipa_parm_adjustment): Likewise.
4489 (ipa_parm_adjustment_vec): Likewise.
4490 (ipa_get_vector_of_formal_parms): Moved declaration to
4491 ipa-param-manipulation.h.
4492 (ipa_get_vector_of_formal_parm_types): Likewise.
4493 (ipa_modify_formal_parameters): Likewise.
4494 (ipa_modify_call_arguments): Likewise.
4495 (ipa_combine_adjustments): Likewise.
4496 (ipa_dump_param_adjustments): Likewise.
4497 (ipa_modify_expr): Likewise.
4498 (ipa_get_adjustment_candidate): Likewise.
4499 * ipa-prop.c (ipa_get_vector_of_formal_parms): Moved to
4500 ipa-param-manipulation.c.
4501 (ipa_get_vector_of_formal_parm_types): Likewise.
4502 (ipa_modify_formal_parameters): Likewise.
4503 (ipa_modify_call_arguments): Likewise.
4504 (ipa_modify_expr): Likewise.
4505 (get_ssa_base_param): Likewise.
4506 (ipa_get_adjustment_candidate): Likewise.
4507 (index_in_adjustments_multiple_times_p): Likewise.
4508 (ipa_combine_adjustments): Likewise.
4509 (ipa_dump_param_adjustments): Likewise.
4510 * tree-sra.c: Also include ipa-param-manipulation.h
4511 * omp-simd-clone.c: Include ipa-param-manipulation.h instead of
4512 ipa-param.h.
4513
4514 2017-11-09 Richard Sandiford <richard.sandiford@linaro.org>
4515 Alan Hayward <alan.hayward@arm.com>
4516 David Sherwood <david.sherwood@arm.com>
4517
4518 * doc/sourcebuild.texi (vect_masked_store): Document.
4519
4520 2017-11-09 Richard Sandiford <richard.sandiford@linaro.org>
4521 Alan Hayward <alan.hayward@arm.com>
4522 David Sherwood <david.sherwood@arm.com>
4523
4524 * doc/sourcebuild.texi (vect_align_stack_vars): Document.
4525
4526 2017-11-09 Richard Sandiford <richard.sandiford@linaro.org>
4527 Alan Hayward <alan.hayward@arm.com>
4528 David Sherwood <david.sherwood@arm.com>
4529
4530 * doc/sourcebuild.texi (vect_variable_length): Document.
4531
4532 2017-11-09 Richard Sandiford <richard.sandiford@linaro.org>
4533 Alan Hayward <alan.hayward@arm.com>
4534 David Sherwood <david.sherwood@arm.com>
4535
4536 * doc/sourcebuild.texi (vect_unaligned_possible): Document.
4537
4538 2017-11-09 Richard Sandiford <richard.sandiford@linaro.org>
4539 Alan Hayward <alan.hayward@arm.com>
4540 David Sherwood <david.sherwood@arm.com>
4541
4542 * doc/sourcebuild.texi (vect_element_align_preferred): Document.
4543
4544 2017-11-09 Richard Sandiford <richard.sandiford@linaro.org>
4545 Alan Hayward <alan.hayward@arm.com>
4546 David Sherwood <david.sherwood@arm.com>
4547
4548 * doc/sourcebuild.texi (vect_perm_short, vect_perm_byte): Document
4549 previously undocumented selectors.
4550 (vect_perm3_byte, vect_perm3_short, vect_perm3_int): Document.
4551
4552 2017-11-09 Richard Sandiford <richard.sandiford@linaro.org>
4553
4554 * doc/rtl.texi (const_vector): Say that elements can be
4555 const_wide_ints too.
4556 * emit-rtl.h (valid_for_const_vec_duplicate_p): Declare.
4557 * emit-rtl.c (valid_for_const_vec_duplicate_p): New function.
4558 (gen_vec_duplicate): Use it instead of CONSTANT_P.
4559 * optabs.c (expand_vector_broadcast): Likewise.
4560
4561 2017-11-09 Richard Sandiford <richard.sandiford@linaro.org>
4562 Alan Hayward <alan.hayward@arm.com>
4563 David Sherwood <david.sherwood@arm.com>
4564
4565 * tree-ssa-loop-ivopts.c (get_address_cost): Try using a
4566 scaled index even if the unscaled address was invalid.
4567 Don't increase the complexity of using a scale in that case.
4568
4569 2017-11-09 Richard Sandiford <richard.sandiford@linaro.org>
4570 Alan Hayward <alan.hayward@arm.com>
4571 David Sherwood <david.sherwood@arm.com>
4572
4573 * doc/rtl.texi: Rewrite the subreg rules so that they partition
4574 the inner register into REGMODE_NATURAL_SIZE bytes rather than
4575 UNITS_PER_WORD bytes.
4576 * emit-rtl.c (validate_subreg): Divide subregs into blocks
4577 based on REGMODE_NATURAL_SIZE of the inner mode.
4578 (gen_lowpart_common): Split the SCALAR_FLOAT_MODE_P and
4579 !SCALAR_FLOAT_MODE_P cases. Use REGMODE_NATURAL_SIZE for the latter.
4580 * expmed.c (lowpart_bit_field_p): Divide the value up into
4581 chunks of REGMODE_NATURAL_SIZE rather than UNITS_PER_WORD.
4582 * expr.c (store_constructor): Use REGMODE_NATURAL_SIZE to test
4583 whether something is likely to occupy more than one register.
4584
4585 2017-11-09 Jan Hubicka <hubicka@ucw.cz>
4586
4587 PR ipa/82879
4588 * ipa-inline-transform.c (update_noncloned_frequencies): Use
4589 profile_count::adjust_for_ipa_scaling.
4590 * tree-inline.c (copy_bb, copy_cfg_body): Likewise.
4591 * profile-count.c (profile_count::adjust_for_ipa_scaling): New member
4592 function.
4593 * profile-count.h (profile_count::adjust_for_ipa_scaling): Declare.
4594
4595 2017-11-09 Jakub Jelinek <jakub@redhat.com>
4596
4597 * gimple-ssa-store-merging.c (count_multiple_uses): New function.
4598 (split_group): Add total_orig and total_new arguments, estimate the
4599 number of statements related to the store group without store merging
4600 and with store merging.
4601 (imm_store_chain_info::output_merged_store): Adjust split_group
4602 callers, punt if estimated number of statements with store merging
4603 is not smaller than estimated number of statements without it.
4604 Formatting fix.
4605 (handled_load): Remove has_single_use checks.
4606 (pass_store_merging::process_store): Likewise.
4607
4608 2017-11-09 Richard Biener <rguenther@suse.de>
4609
4610 PR tree-optimization/82902
4611 * tree-ssa-phiprop.c (propagate_with_phi): Test proper type.
4612
4613 2017-11-09 Martin Liska <mliska@suse.cz>
4614
4615 PR target/82863
4616 * emit-rtl.c (init_emit_regs): Initialize split_branch_probability to
4617 uninitialized.
4618
4619 2017-11-09 Martin Liska <mliska@suse.cz>
4620
4621 PR tree-optimization/82669
4622 * sbitmap.h (bmp_iter_set_init): Remove non needed check.
4623
4624 2017-11-09 Martin Liska <mliska@suse.cz>
4625
4626 PR gcov-profile/48463
4627 * coverage.c (coverage_begin_function): Output also end locus
4628 of a function and information whether the function is
4629 artificial.
4630 * gcov-dump.c (tag_function): Parse and print the information.
4631 * gcov.c (INCLUDE_MAP): Add include.
4632 (INCLUDE_SET): Likewise.
4633 (struct line_info): Move earlier in the source file because
4634 of vector<line_info> in function_info structure.
4635 (line_info::line_info): Likewise.
4636 (line_info::has_block): Likewise.
4637 (struct source_info): Add new member index.
4638 (source_info::get_functions_at_location): New function.
4639 (function_info::group_line_p): New function.
4640 (output_intermediate_line): New function.
4641 (output_intermediate_file): Use the mentioned function.
4642 (struct function_start): New.
4643 (struct function_start_pair_hash): Likewise.
4644 (process_file): Add code that identifies group functions.
4645 Assign lines either to global or function scope.
4646 (generate_results): Skip artificial functions.
4647 (find_source): Assign index for each source file.
4648 (read_graph_file): Read new flag artificial and end_line.
4649 (add_line_counts): Assign it either to global of function scope.
4650 (accumulate_line_counts): Isolate core of the function to
4651 accumulate_line_info and call it for both function and global
4652 scope lines.
4653 (accumulate_line_info): New function.
4654 (output_line_beginning): Fix GNU coding style.
4655 (print_source_line): New function.
4656 (output_line_details): Likewise.
4657 (output_function_details): Likewise.
4658 (output_lines): Iterate both source (global) scope and function
4659 scope.
4660 (struct function_line_start_cmp): New class.
4661 * doc/gcov.texi: Reflect changes in documentation.
4662
4663 2017-11-09 Jakub Jelinek <jakub@redhat.com>
4664
4665 PR debug/82837
4666 * dwarf2out.c (const_ok_for_output_1): Reject NEG in addition to NOT.
4667 (mem_loc_descriptor): Handle (const (neg (...))) as (neg (const (...)))
4668 and similarly for not instead of neg.
4669
4670 2017-11-08 Andi Kleen <ak@linux.intel.com>
4671
4672 * config/i386/i386.opt: Add -mforce-indirect-call.
4673 * config/i386/predicates.md: Check for flag_force_indirect_call.
4674 * doc/invoke.texi: Document -mforce-indirect-call
4675
4676 2017-11-08 Kito Cheng <kito.cheng@gmail.com>
4677
4678 * config/riscv/riscv-protos.h (riscv_slow_unaligned_access_p):
4679 New extern.
4680 (MOVE_RATIO): Use riscv_slow_unaligned_access_p.
4681 config/riscv/riscv.c (predict.h): New include.
4682 (riscv_slow_unaligned_access_p): No longer static.
4683 (riscv_block_move_straight): Add require.
4684 * config/riscv/riscv-protos.h (riscv_hard_regno_nregs): Delete.
4685
4686 2017-11-08 Jakub Jelinek <jakub@redhat.com>
4687
4688 PR target/82855
4689 * config/i386/sse.md (<avx512>_eq<mode>3<mask_scalar_merge_name>,
4690 <avx512>_eq<mode>3<mask_scalar_merge_name>_1): Use
4691 nonimmediate_operand predicate for operand 1 instead of
4692 register_operand.
4693
4694 2017-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4695
4696 * config/aarch64/aarch64-simd.md (store_pair_lanes<mode>):
4697 New pattern.
4698 * config/aarch64/constraints.md (Uml): New constraint.
4699 * config/aarch64/predicates.md (aarch64_mem_pair_lanes_operand): New
4700 predicate.
4701
4702 2017-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4703
4704 * simplify-rtx.c (simplify_ternary_operation): Simplify vec_merge
4705 of two vec_duplicates into a vec_concat.
4706
4707 2017-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4708
4709 * simplify-rtx.c (simplify_ternary_operation, VEC_MERGE):
4710 Simplify vec_merge of vec_duplicate and vec_concat.
4711 * config/aarch64/constraints.md (Utq): New constraint.
4712 * config/aarch64/aarch64-simd.md (load_pair_lanes<mode>): New
4713 define_insn.
4714
4715 2017-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4716
4717 * simplify-rtx.c (simplify_ternary_operation, VEC_MERGE):
4718 Simplify vec_merge of vec_duplicate and const_vector.
4719 * config/aarch64/predicates.md (aarch64_simd_or_scalar_imm_zero):
4720 New predicate.
4721 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Use VDC
4722 mode iterator. Update predicate on operand 1 to
4723 handle non-const_vec constants. Delete constraints.
4724 (*aarch64_combinez_be<mode>): Likewise for operand 2.
4725
4726 2017-11-08 Jakub Jelinek <jakub@redhat.com>
4727
4728 PR tree-optimization/78821
4729 * gimple-ssa-store-merging.c (struct store_operand_info): Add bit_not_p
4730 data member.
4731 (store_operand_info::store_operand_info): Initialize it to false.
4732 (pass_store_merging::terminate_all_aliasing_chains): Rewritten to use
4733 ref_maybe_used_by_stmt_p and stmt_may_clobber_ref_p on lhs of each
4734 store in the group, and if chain_info is non-NULL, to ignore altogether
4735 that chain.
4736 (compatible_load_p): Fail if bit_not_p does not match.
4737 (imm_store_chain_info::output_merged_store): Handle bit_not_p loads.
4738 (handled_load): Fill in bit_not_p. Handle BIT_NOT_EXPR.
4739 (pass_store_merging::process_store): Adjust
4740 terminate_all_aliasing_chains calls to pass NULL in all current spots,
4741 call terminate_all_aliasing_chains newly when adding a store into
4742 a chain with non-NULL chain_info.
4743
4744 2017-11-08 Wilco Dijkstra <wdijkstr@arm.com>
4745
4746 * config/aarch64/aarch64.c (aarch64_can_eliminate): Simplify logic.
4747
4748 2017-11-08 Wilco Dijkstra <wdijkstr@arm.com>
4749
4750 * config/aarch64/aarch64.c (aarch64_frame_pointer_required)
4751 Remove.
4752 (aarch64_layout_frame): Initialise emit_frame_chain.
4753 (aarch64_can_eliminate): Remove omit leaf frame pointer code.
4754 (TARGET_FRAME_POINTER_REQUIRED): Remove define.
4755
4756 2017-11-08 Martin Liska <mliska@suse.cz>
4757
4758 * gimplify.c (expand_FALLTHROUGH_r): Simplify usage
4759 of gimple_call_internal_p.
4760
4761 2017-11-07 Tom de Vries <tom@codesourcery.com>
4762
4763 * config/mips/mips.h (ASM_OUTPUT_LABELREF): Wrap in "do {} while (0)".
4764
4765 2017-11-07 Tom de Vries <tom@codesourcery.com>
4766
4767 * config/mips/mips.h (ASM_OUTPUT_CASE_END): Remove semicolon after
4768 "do {} while (0)".
4769
4770 2017-11-08 Martin Liska <mliska@suse.cz>
4771
4772 PR sanitizer/82792
4773 * gimplify.c (expand_FALLTHROUGH_r): Skip IFN_ASAN_MARK.
4774
4775 2017-11-07 Eric Botcazou <ebotcazou@adacore.com>
4776
4777 * gimple-pretty-print.c (dump_profile): Return "" instead of NULL.
4778
4779 2017-11-07 Jakub Jelinek <jakub@redhat.com>
4780
4781 PR target/82855
4782 * config/i386/i386.md (SWI1248_AVX512BWDQ2_64): New mode iterator.
4783 (*cmp<mode>_ccz_1): New insn with $k alternative.
4784
4785 PR target/82855
4786 * config/i386/i386.c (ix86_swap_binary_operands_p): Treat
4787 RTX_COMM_COMPARE as commutative as well.
4788 (ix86_binary_operator_ok): Formatting fix.
4789 * config/i386/sse.md (*mul<mode>3<mask_name><round_name>,
4790 *<code><mode>3<mask_name><round_saeonly_name>,
4791 *<code><mode>3<mask_name>, *<code>tf3, *mul<mode>3<mask_name>,
4792 *<s>mul<mode>3_highpart<mask_name>,
4793 *vec_widen_umult_even_v16si<mask_name>,
4794 *vec_widen_umult_even_v8si<mask_name>,
4795 *vec_widen_umult_even_v4si<mask_name>,
4796 *vec_widen_smult_even_v16si<mask_name>,
4797 *vec_widen_smult_even_v8si<mask_name>, *sse4_1_mulv2siv2di3<mask_name>,
4798 *avx2_pmaddwd, *sse2_pmaddwd, *<sse4_1_avx2>_mul<mode>3<mask_name>,
4799 *avx2_<code><mode>3, *avx512f_<code><mode>3<mask_name>,
4800 *sse4_1_<code><mode>3<mask_name>, *<code>v8hi3,
4801 *sse4_1_<code><mode>3<mask_name>, *<code>v16qi3, *avx2_eq<mode>3,
4802 <avx512>_eq<mode>3<mask_scalar_merge_name>_1, *sse4_1_eqv2di3,
4803 *sse2_eq<mode>3, <mask_codefor><code><mode>3<mask_name>,
4804 *<code><mode>3, *<sse2_avx2>_uavg<mode>3<mask_name>,
4805 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, *ssse3_pmulhrswv4hi3): Use
4806 !(MEM_P (operands[1]) && MEM_P (operands[2])) condition instead of
4807 ix86_binary_operator_ok. Formatting fixes.
4808 (*<plusminus_insn><mode>3<mask_name><round_name>,
4809 *<plusminus_insn><mode>3, *<plusminus_insn><mode>3_m): Formatting
4810 fixes.
4811
4812 2017-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4813
4814 * config/rs6000/rs6000.md (GPR2): New mode_iterator.
4815 ("cstore<mode>4"): Don't always expand with rs6000_emit_int_cmove for
4816 eq and ne if TARGET_ISEL.
4817 (cmp): New code_iterator.
4818 (UNS, UNSU_, UNSIK): New code_attrs.
4819 (<code><GPR:mode><GPR2:mode>2_isel): New define_insn_and_split.
4820 ("eq<mode>3"): New define_expand, rename the define_insn_and_split
4821 to...
4822 ("eq<mode>3"): ... this.
4823 ("ne<mode>3"): New define_expand, rename the define_insn_and_split
4824 to...
4825 ("ne<mode>3"): ... this.
4826
4827 2017-11-07 Julia Koval <julia.koval@intel.com>
4828
4829 PR target/82812
4830 * common/config/i386/i386-common.c
4831 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): Remove MPX from flag.
4832 (ix86_handle_option): Move MPX to isa_flags2 and GFNI to isa_flags.
4833 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
4834 * config/i386/i386.opt: Ditto.
4835 * config/i386/i386.c (ix86_target_string): Ditto.
4836 (ix86_option_override_internal): Ditto.
4837 (ix86_init_mpx_builtins): Move MPX to args2.
4838 (ix86_expand_builtin): Special handling for OPTION_MASK_ISA_GFNI.
4839 * config/i386/i386-builtin.def (__builtin_ia32_vgf2p8affineinvqb_v64qi,
4840 __builtin_ia32_vgf2p8affineinvqb_v64qi_mask,
4841 __builtin_ia32_vgf2p8affineinvqb_v32qi,
4842 __builtin_ia32_vgf2p8affineinvqb_v32qi_mask,
4843 __builtin_ia32_vgf2p8affineinvqb_v16qi,
4844 __builtin_ia32_vgf2p8affineinvqb_v16qi_mask): Move to ARGS array.
4845
4846 2017-11-07 Uros Bizjak <ubizjak@gmail.com>
4847
4848 PR target/80425
4849 * config/i386.i386.md (*zero_extendsidi2): Change (?r,*Yj), (?*Yi,r)
4850 and (*x,m) to ($r,Yj), ($Yi,r) and ($x,m).
4851 (zero-extendsidi peephole2): Remove peephole.
4852
4853 2017-11-07 Eric Botcazou <ebotcazou@adacore.com>
4854
4855 PR c/53037
4856 * stor-layout.c: Include attribs.h.
4857 (handle_warn_if_not_align): Replace test on TYPE_USER_ALIGN with
4858 explicit lookup of "aligned" attribute.
4859
4860 2017-11-07 Andrew Waterman <andrew@sifive.com>
4861
4862 * config/riscv/riscv-protos.h (riscv_hard_regno_nregs): New prototype.
4863 (riscv_expand_block_move): Likewise.
4864 * config/riscv/riscv.h (MOVE_RATIO): Tune cost to movmemsi
4865 implementation.
4866 (RISCV_MAX_MOVE_BYTES_PER_LOOP_ITER): New define.
4867 (RISCV_MAX_MOVE_BYTES_STRAIGHT): New define.
4868 * config/riscv/riscv.c (riscv_block_move_straight): New function.
4869 (riscv_adjust_block_mem): Likewise.
4870 (riscv_block_move_loop): Likewise.
4871 (riscv_expand_block_move): Likewise.
4872 * config/riscv/riscv.md (movmemsi): New pattern.
4873
4874 2017-11-07 Michael Clark <michaeljclark@mac.com>
4875
4876 * config/riscv/linux.h (MUSL_ABI_SUFFIX): New define.
4877 (MUSL_DYNAMIC_LINKER): Likewise.
4878
4879 2017-11-07 Richard Sandiford <richard.sandiford@linaro.org>
4880
4881 * config/aarch64/aarch64.md (ashl<mode>3, ashr<mode>3, lshr<mode>3)
4882 (rotr<mode>3, rotl<mode>3): Use aarch64_reg_or_imm instead of
4883 nonmmory_operand.
4884
4885 2017-11-07 Richard Biener <rguenther@suse.de>
4886
4887 * match.pd: Fix build.
4888
4889 2017-11-07 Wilco Dijkstra <wdijkstr@arm.com>
4890 Jackson Woodruff <jackson.woodruff@arm.com>
4891
4892 PR tree-optimization/71026
4893 * match.pd: Canonicalize negate in division.
4894
4895 2017-11-07 Sudakshina Das <sudi.das@arm.com>
4896
4897 PR middle-end/80131
4898 * match.pd: Simplify 1 << (C - x) where C = precision (x) - 1.
4899
4900 2017-11-07 Marc Glisse <marc.glisse@inria.fr>
4901
4902 * match.pd ((a&~b)|(a^b),(a&~b)^~a,(a|b)&~(a^b),a|~(a^b),
4903 (a|b)|(a&^b),(a&b)|~(a^b),~(~a&b),~X^Y): New transformations.
4904
4905 2017-11-07 Marc Glisse <marc.glisse@inria.fr>
4906
4907 * fold-const.c (negate_expr_p) [PLUS_EXPR, MINUS_EXPR]: Handle
4908 non-scalar integral types.
4909 * match.pd (negate_expr_p): Handle MINUS_EXPR.
4910 (-(A-B), -(~A)): New transformations.
4911
4912 2017-11-07 Tom de Vries <tom@codesourcery.com>
4913
4914 * config/powerpcspe/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
4915 semicolon after "do {} while (0)".
4916 * config/powerpcspe/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
4917 * config/powerpcspe/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
4918 * config/powerpcspe/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
4919 * config/powerpcspe/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
4920 * config/powerpcspe/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
4921
4922 2017-11-07 Tom de Vries <tom@codesourcery.com>
4923
4924 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Remove semicolon
4925 after "do {} while (0)".
4926 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
4927 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
4928 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
4929 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
4930 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
4931
4932 2017-11-07 Tom de Vries <tom@codesourcery.com>
4933
4934 PR other/82784
4935 * config/arm/arm.c (HANDLE_NARROW_SHIFT_ARITH): Remove semicolon after
4936 "while {} do (0)".
4937 (arm_rtx_costs_internal): Add missing semicolon after
4938 HANDLE_NARROW_SHIFT_ARITH call.
4939
4940 2017-11-06 Segher Boessenkool <segher@kernel.crashing.org>
4941
4942 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4943 disable isel if it was not set explicitly.
4944
4945 2017-11-06 James Bowman <james.bowman@ftdichip.com>
4946
4947 * gcc/dwarf2out.c (modified_type_die): Retain ADDR_SPACE qualifiers.
4948 (add_type_attribute) likewise.
4949
4950 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
4951
4952 * config/i386/i386.c (ix86_can_use_return_insn_p): Use reference
4953 of struct ix86_frame.
4954 (ix86_initial_elimination_offset): Likewise.
4955 (ix86_expand_split_stack_prologue): Likewise.
4956
4957 2017-11-06 Marc Glisse <marc.glisse@inria.fr>
4958
4959 * tree-vrp.h (enum value_range_type): Update stale comment.
4960
4961 2017-11-06 Richard Sandiford <richard.sandiford@linaro.org>
4962 Alan Hayward <alan.hayward@arm.com>
4963 David Sherwood <david.sherwood@arm.com>
4964
4965 * config/aarch64/aarch64-protos.h (aarch64_expand_vec_perm)
4966 (aarch64_expand_vec_perm_const): Take the number of units too.
4967 * config/aarch64/aarch64.c (aarch64_expand_vec_perm)
4968 (aarch64_expand_vec_perm_const): Likewise.
4969 * config/aarch64/aarch64-simd.md (vec_perm_const<mode>)
4970 (vec_perm<mode>): Update accordingly.
4971
4972 2017-11-06 Richard Sandiford <richard.sandiford@linaro.org>
4973 Alan Hayward <alan.hayward@arm.com>
4974 David Sherwood <david.sherwood@arm.com>
4975
4976 * config/aarch64/aarch64-protos.h (aarch64_simd_vect_par_cnst_half):
4977 Take the number of units too.
4978 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Likewise.
4979 (aarch64_simd_check_vect_par_cnst_half): Update call accordingly,
4980 but check for a vector mode before rather than after the call.
4981 * config/aarch64/aarch64-simd.md (aarch64_split_simd_mov<mode>)
4982 (move_hi_quad_<mode>, vec_unpack<su>_hi_<mode>)
4983 (vec_unpack<su>_lo_<mode, vec_widen_<su>mult_lo_<mode>)
4984 (vec_widen_<su>mult_hi_<mode>, vec_unpacks_lo_<mode>)
4985 (vec_unpacks_hi_<mode>, aarch64_saddl2<mode>, aarch64_uaddl2<mode>)
4986 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>, widen_ssum<mode>3)
4987 (widen_usum<mode>3, aarch64_saddw2<mode>, aarch64_uaddw2<mode>)
4988 (aarch64_ssubw2<mode>, aarch64_usubw2<mode>, aarch64_sqdmlal2<mode>)
4989 (aarch64_sqdmlsl2<mode>, aarch64_sqdmlal2_lane<mode>)
4990 (aarch64_sqdmlal2_laneq<mode>, aarch64_sqdmlsl2_lane<mode>)
4991 (aarch64_sqdmlsl2_laneq<mode>, aarch64_sqdmlal2_n<mode>)
4992 (aarch64_sqdmlsl2_n<mode>, aarch64_sqdmull2<mode>)
4993 (aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>)
4994 (aarch64_sqdmull2_n<mode>): Update accordingly.
4995
4996 2017-11-06 Richard Sandiford <richard.sandiford@linaro.org>
4997 Alan Hayward <alan.hayward@arm.com>
4998 David Sherwood <david.sherwood@arm.com>
4999
5000 * config/aarch64/aarch64-protos.h (aarch64_reverse_mask): Take
5001 the number of units too.
5002 * config/aarch64/aarch64.c (aarch64_reverse_mask): Likewise.
5003 * config/aarch64/aarch64-simd.md (vec_load_lanesoi<mode>)
5004 (vec_store_lanesoi<mode>, vec_load_lanesci<mode>)
5005 (vec_store_lanesci<mode>, vec_load_lanesxi<mode>)
5006 (vec_store_lanesxi<mode>): Update accordingly.
5007
5008 2017-11-06 Richard Sandiford <richard.sandiford@linaro.org>
5009 Alan Hayward <alan.hayward@arm.com>
5010 David Sherwood <david.sherwood@arm.com>
5011
5012 * config/aarch64/aarch64-protos.h (aarch64_endian_lane_rtx): Declare.
5013 * config/aarch64/aarch64.c (aarch64_endian_lane_rtx): New function.
5014 * config/aarch64/aarch64.h (ENDIAN_LANE_N): Take the number
5015 of units rather than the mode.
5016 * config/aarch64/iterators.md (nunits): New mode attribute.
5017 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
5018 Use aarch64_endian_lane_rtx instead of GEN_INT (ENDIAN_LANE_N ...).
5019 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>)
5020 (aarch64_dup_lane_<vswap_width_name><mode>, *aarch64_mul3_elt<mode>)
5021 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
5022 (*aarch64_mul3_elt_to_64v2df, *aarch64_mla_elt<mode>): Likewise.
5023 (*aarch64_mla_elt_<vswap_width_name><mode>, *aarch64_mls_elt<mode>)
5024 (*aarch64_mls_elt_<vswap_width_name><mode>, *aarch64_fma4_elt<mode>)
5025 (*aarch64_fma4_elt_<vswap_width_name><mode>):: Likewise.
5026 (*aarch64_fma4_elt_to_64v2df, *aarch64_fnma4_elt<mode>): Likewise.
5027 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
5028 (*aarch64_fnma4_elt_to_64v2df, reduc_plus_scal_<mode>): Likewise.
5029 (reduc_plus_scal_v4sf, reduc_<maxmin_uns>_scal_<mode>): Likewise.
5030 (reduc_<maxmin_uns>_scal_<mode>): Likewise.
5031 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
5032 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
5033 (aarch64_get_lane<mode>, *aarch64_mulx_elt_<vswap_width_name><mode>)
5034 (*aarch64_mulx_elt<mode>, *aarch64_vgetfmulx<mode>): Likewise.
5035 (aarch64_sq<r>dmulh_lane<mode>, aarch64_sq<r>dmulh_laneq<mode>)
5036 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Likewise.
5037 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
5038 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Likewise.
5039 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Likewise.
5040 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
5041 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
5042 (aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Likewise.
5043 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
5044 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
5045 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
5046 (aarch64_vec_store_lanesoi_lane<mode>): Likewise.
5047 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
5048 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
5049 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
5050 (aarch64_vec_store_lanesxi_lane<mode>): Likewise.
5051 (aarch64_simd_vec_set<mode>): Update use of ENDIAN_LANE_N.
5052 (aarch64_simd_vec_setv2di): Likewise.
5053
5054 2017-11-06 Carl Love <cel@us.ibm.com>
5055
5056 * config/rs6000/rs6000-c.c (P8V_BUILTIN_VEC_REVB): Add power 8
5057 definitions.
5058 (P9V_BUILTIN_VEC_REVB): Remove the power 9 instance definitions.
5059 * config/rs6000/altivec.h (vec_revb): Change the #define from power 9
5060 to power 8.
5061 * config/rs6000/r6000-protos.h (swap_endian_selector_for_mode): Add new
5062 extern declaration.
5063 * config/rs6000/rs6000.c (swap_endian_selector_for_mode): Add function.
5064 * config/rs6000/rs6000-builtin.def (BU_P8V_VSX_1, BU_P8V_OVERLOAD_1):
5065 Add power 8 macro expansions.
5066 (BU_P9V_OVERLOAD_1): Remove power 9 overload expansion.
5067 * config/rs6000/vsx.md (revb_<mode>): Add define_expand to generate
5068 power 8 instructions. (VSX_XXBR): Add iterator.
5069
5070 2017-11-06 Wilco Dijkstra <wdijkstr@arm.com>
5071
5072 * config/arm/arm.md (predicable_short_it): Change default to "no",
5073 improve documentation, remove uses that are identical to the default.
5074 (enabled_for_depr_it): Rename to enabled_for_short_it.
5075 * gcc/config/arm/arm-fixed.md (predicable_short_it):
5076 Remove default uses.
5077 * gcc/config/arm/ldmstm.md (predicable_short_it): Likewise.
5078 * gcc/config/arm/sync.md (predicable_short_it): Likewise.
5079 * gcc/config/arm/thumb2.md (predicable_short_it): Likewise.
5080 * gcc/config/arm/vfp.md (predicable_short_it): Likewise.
5081
5082 2017-11-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5083
5084 PR target/82748
5085 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_1): Delete
5086 float128 helper macros, which are no longer used after deleting
5087 the old 'q' built-in functions, and moving the round to odd
5088 built-in functions to being special built-in functions.
5089 (BU_FLOAT128_2): Likewise.
5090 (BU_FLOAT128_1_HW): Likewise.
5091 (BU_FLOAT128_2_HW): Likewise.
5092 (BU_FLOAT128_3_HW): Likewise.
5093 (FABSQ): Delete old 'q' built-in functions.
5094 (COPYSIGNQ): Likewise.
5095 (SQRTF128_ODD): Move round to odd built-in functions to be
5096 special built-in functions, so that we can handle
5097 -mabi=ieeelongdouble.
5098 (TRUNCF128_ODD): Likewise.
5099 (ADDF128_ODD): Likewise.
5100 (SUBF128_ODD): Likewise.
5101 (MULF128_ODD): Likewise.
5102 (DIVF128_ODD): Likewise.
5103 (FMAF128_ODD): Likewise.
5104 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Map old 'q'
5105 built-in names to 'f128'.
5106 * config/rs6000/rs6000.c (rs6000_fold_builtin): Remove folding the
5107 old 'q' built-in functions, as the machine independent code for
5108 'f128' built-in functions handles this.
5109 (rs6000_expand_builtin): Add expansion for float128 round to odd
5110 functions, keying off on -mabi=ieeelongdouble of whether to use
5111 the KFmode or TFmode variant.
5112 (rs6000_init_builtins): Initialize the _Float128 round to odd
5113 built-in functions.
5114 * doc/extend.texi (PowerPC Built-in Functions): Document the old
5115 _Float128 'q' built-in functions are now mapped into the new
5116 'f128' built-in functions.
5117
5118 2017-11-06 David Edelsohn <dje.gcc@gmail.com>
5119
5120 * collect2.c (add_lto_object): Compile for OBJECT_COFF.
5121 (scan_prog_file): Don't skip PASS_LTOINFO. Scan for LTO objects.
5122
5123 2017-11-06 David Malcolm <dmalcolm@redhat.com>
5124
5125 PR jit/82826
5126 * ipa-fnsummary.c (ipa_fnsummary_c_finalize): New function.
5127 * ipa-fnsummary.h (ipa_fnsummary_c_finalize): New decl.
5128 * toplev.c: Include "ipa-fnsummary.h".
5129 (toplev::finalize): Call ipa_fnsummary_c_finalize.
5130
5131 2017-11-06 Jakub Jelinek <jakub@redhat.com>
5132
5133 PR tree-optimization/82838
5134 * gimple-ssa-store-merging.c
5135 (imm_store_chain_info::output_merged_store): Call force_gimple_operand_1
5136 on a separate gimple_seq which is then appended to seq.
5137
5138 2017-11-06 Jeff Law <law@redhat.com>
5139
5140 PR target/82788
5141 * config/i386/i386.c (PROBE_INTERVAL): Remove.
5142 (get_probe_interval): New functions.
5143 (ix86_adjust_stack_and_probe_stack_clash): Use get_probe_interval.
5144 (ix86_adjust_stack_and_probe): Likewise.
5145 (output_adjust_stack_and_probe): Likewise.
5146 (ix86_emit_probe_stack_range): Likewise.
5147 (ix86_expand_prologue): Likewise.
5148
5149 2017-11-06 Richard Sandiford <richard.sandiford@linaro.org>
5150
5151 PR tree-optimization/82816
5152 * tree-ssa-math-opts.c (convert_mult_to_widen): Return false
5153 if the modes of the two types are the same.
5154 (convert_plusminus_to_widen): Likewise.
5155
5156 2017-11-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5157
5158 * config/rs6000/altivec.md (*p9_vadu<mode>3) Rename to
5159 p9_vadu<mode>3.
5160 (usadv16qi): New define_expand.
5161 (usadv8hi): New define_expand.
5162
5163 2017-11-06 Jan Hubicka <hubicka@ucw.cz>
5164
5165 PR bootstrap/82832
5166 * ipa-inline-transform.c (update_noncloned_frequencies): Always
5167 scale.
5168 (inline_transform): Likewise.
5169 * predict.c (counts_to_freqs): Remove useless conditional.
5170 * profile-count.h (profile_count::apply_scale): Move sanity check.
5171 * tree-inline.c (copy_bb): Always scale.
5172 (copy_cfg_body): Likewise.
5173
5174 2017-11-06 Christophe Lyon <christophe.lyon@linaro.org>
5175
5176 PR target/67591
5177 * config/arm/arm.md (*sub_shiftsi): Add predicable_short_it
5178 attribute.
5179 (*cmp_ite0): Add enabled_for_depr_it attribute.
5180 (*cmp_ite1): Likewise.
5181
5182 2017-11-06 Segher Boessenkool <segher@kernel.crashing.org>
5183
5184 * config/rs6000/rs6000.c (rs6000_insn_cost): Handle TYPE_MFCR and
5185 TYPE_MFCRF.
5186
5187 2017-11-06 Richard Sandiford <richard.sandiford@linaro.org>
5188
5189 * tree-vrp.c (vrp_int_const_binop): Return true on success and
5190 return the value by pointer.
5191 (extract_range_from_multiplicative_op_1): Update accordingly.
5192 Return as soon as an operation fails.
5193
5194 2017-11-05 Tom de Vries <tom@codesourcery.com>
5195
5196 PR other/82784
5197 * asan.c (DEF_SANITIZER_BUILTIN_1): Factor out of ...
5198 (DEF_SANITIZER_BUILTIN): ... here.
5199 (initialize_sanitizer_builtins): Use DEF_SANITIZER_BUILTIN_1 instead of
5200 DEF_SANITIZER_BUILTIN in if stmt. Add missing semicolon.
5201
5202 2017-11-05 Tom de Vries <tom@codesourcery.com>
5203
5204 PR other/82784
5205 * config/elfos.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove semicolon after
5206 macro body.
5207 (ASM_OUTPUT_CASE_LABEL): Add semicolon after
5208 ASM_OUTPUT_BEFORE_CASE_LABEL call.
5209 * config/arc/arc.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove semicolon
5210 after macro body.
5211 * config/m68k/m68kelf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Same.
5212 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Same.
5213 * config/v850/v850.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Same.
5214
5215 2017-11-05 Tom de Vries <tom@codesourcery.com>
5216
5217 PR other/82784
5218 * graphite-scop-detection.c (DEBUG_PRINT): Remove semicolon after
5219 "do {} while (0)".
5220
5221 2017-11-04 Michael Clark <michaeljclark@mac.com>
5222
5223 * config/riscv/riscv.c (riscv_print_operand): Add a 'i' format.
5224 config/riscv/riscv.md (addsi3): Use 'i' for immediates.
5225 (adddi3): Likewise.
5226 (*addsi3_extended): Likewise.
5227 (*addsi3_extended2): Likewise.
5228 (<optab>si3): Likewise.
5229 (<optab>di3): Likewise.
5230 (<optab><mode>3): Likewise.
5231 (<*optabe>si3_internal): Likewise.
5232 (zero_extendqi<SUPERQI:mode>2): Likewise.
5233 (*add<mode>hi3): Likewise.
5234 (*xor<mode>hi3): Likewise.
5235 (<optab>di3): Likewise.
5236 (*<optab>si3_extend): Likewise.
5237 (*sge<u>_<X:mode><GPR:mode>): Likewise.
5238 (*slt<u>_<X:mode><GPR:mode>): Likewise.
5239 (*sle<u>_<X:mode><GPR:mode>): Likewise.
5240
5241 2017-11-04 Andrew Waterman <andrew@sifive.com>
5242
5243 * config/riscv/riscv.c (riscv_option_override): Conditionally set
5244 TARGET_STRICT_ALIGN based upon -mtune argument.
5245
5246 2017-11-04 Andrew Waterman <andrew@sifive.com>
5247
5248 * config/riscv/riscv.h (SLOW_BYTE_ACCESS): Change to 1.
5249
5250 2017-11-04 Daniel Santos <daniel.santos@pobox.com>
5251
5252 * config/i386/i386.c (choose_basereg): Use optional scratch
5253 register and add assertion.
5254 (x86_emit_outlined_ms2sysv_save): Use scratch register when
5255 needed, and don't allocate stack.
5256 (ix86_expand_prologue): Rearrange where SSE saves/stub call is
5257 emitted, correct wrong allocation with -mcall-ms2sysv-xlogues.
5258 (ix86_emit_outlined_ms2sysv_restore): Fix non-immediate offsets.
5259
5260 2017-11-03 Jeff Law <law@redhat.com>
5261
5262 * config/i386/i386.c (ix86_emit_restore_reg_using_pop): Prototype.
5263 (ix86_adjust_stack_and_probe_stack_clash): Use a push/pop sequence
5264 to probe at the start of a noreturn function.
5265
5266 2017-11-03 Jakub Jelinek <jakub@redhat.com>
5267
5268 PR tree-optimization/78821
5269 * gimple-ssa-store-merging.c: Update the file comment.
5270 (MAX_STORE_ALIAS_CHECKS): Define.
5271 (struct store_operand_info): New type.
5272 (store_operand_info::store_operand_info): New constructor.
5273 (struct store_immediate_info): Add rhs_code and ops data members.
5274 (store_immediate_info::store_immediate_info): Add rhscode, op0r
5275 and op1r arguments to the ctor, initialize corresponding data members.
5276 (struct merged_store_group): Add load_align_base and load_align
5277 data members.
5278 (merged_store_group::merged_store_group): Initialize them.
5279 (merged_store_group::do_merge): Update them.
5280 (merged_store_group::apply_stores): Pick the constant for
5281 encode_tree_to_bitpos from one of the two operands, or skip
5282 encode_tree_to_bitpos if neither operand is a constant.
5283 (class pass_store_merging): Add process_store method decl. Remove
5284 bool argument from terminate_all_aliasing_chains method decl.
5285 (pass_store_merging::terminate_all_aliasing_chains): Remove
5286 var_offset_p argument and corresponding handling.
5287 (stmts_may_clobber_ref_p): New function.
5288 (compatible_load_p): New function.
5289 (imm_store_chain_info::coalesce_immediate_stores): Terminate group
5290 if there is overlap and rhs_code is not INTEGER_CST. For
5291 non-overlapping stores terminate group if rhs is not mergeable.
5292 (get_alias_type_for_stmts): Change first argument from
5293 auto_vec<gimple *> & to vec<gimple *> &. Add IS_LOAD, CLIQUEP and
5294 BASEP arguments. If IS_LOAD is true, look at rhs1 of the stmts
5295 instead of lhs. Compute *CLIQUEP and *BASEP in addition to the
5296 alias type.
5297 (get_location_for_stmts): Change first argument from
5298 auto_vec<gimple *> & to vec<gimple *> &.
5299 (struct split_store): Remove orig_stmts data member, add orig_stores.
5300 (split_store::split_store): Create orig_stores rather than orig_stmts.
5301 (find_constituent_stmts): Renamed to ...
5302 (find_constituent_stores): ... this. Change second argument from
5303 vec<gimple *> * to vec<store_immediate_info *> *, push pointers
5304 to info structures rather than the statements.
5305 (split_group): Rename ALLOW_UNALIGNED argument to
5306 ALLOW_UNALIGNED_STORE, add ALLOW_UNALIGNED_LOAD argument and handle
5307 it. Adjust find_constituent_stores caller.
5308 (imm_store_chain_info::output_merged_store): Handle rhs_code other
5309 than INTEGER_CST, adjust split_group, get_alias_type_for_stmts and
5310 get_location_for_stmts callers. Set MR_DEPENDENCE_CLIQUE and
5311 MR_DEPENDENCE_BASE on the MEM_REFs if they are the same in all stores.
5312 (mem_valid_for_store_merging): New function.
5313 (handled_load): New function.
5314 (pass_store_merging::process_store): New method.
5315 (pass_store_merging::execute): Use process_store method. Adjust
5316 terminate_all_aliasing_chains caller.
5317
5318 2017-11-03 Wilco Dijkstra <wdijkstr@arm.com>
5319
5320 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
5321 Return true for more constants, symbols and label references.
5322 (aarch64_valid_floating_const): Remove unused function.
5323
5324 2017-11-03 Wilco Dijkstra <wdijkstr@arm.com>
5325
5326 PR target/82786
5327 * config/aarch64/aarch64.c (aarch64_layout_frame):
5328 Undo forcing of LR at bottom of frame.
5329
5330 2017-11-03 Jeff Law <law@redhat.com>
5331
5332 PR target/82823
5333 * config/i386/i386.c (ix86_expand_prologue): Tighten assert
5334 for int_registers_saved.
5335
5336 * cfganal.c (single_pred_edge_ignoring_loop_edges): New function
5337 extracted from tree-ssa-dom.c.
5338 * cfganal.h (single_pred_edge_ignoring_loop_edges): Prototype.
5339 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): Remove.
5340 (record_equivalences_from_incoming_edge): Add additional argument
5341 to single_pred_edge_ignoring_loop_edges call.
5342 * tree-ssa-uncprop.c (single_incoming_edge_ignoring_loop_edges): Remove.
5343 (uncprop_dom_walker::before_dom_children): Add additional argument
5344 to single_pred_edge_ignoring_loop_edges call.
5345 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Use
5346 single_pred_edge_ignoring_loop_edges rather than open coding.
5347 * tree-vrp.c (evrp_dom_walker::before_dom_children): Similarly.
5348
5349 2017-11-03 Marc Glisse <marc.glisse@inria.fr>
5350
5351 * match.pd (-(-A)): Rewrite.
5352
5353 2017-11-03 Segher Boessenkool <segher@kernel.crashing.org>
5354
5355 * config/rs6000/rs60000-protos.h (rs6000_emit_sISEL): Delete.
5356 (rs6000_emit_int_cmove): New declaration.
5357 * config/rs6000/rs6000.c (rs6000_emit_int_cmove): Delete declaration.
5358 (rs6000_emit_sISEL): Delete.
5359 (rs6000_emit_int_cmove): Make non-static.
5360 * config/rs6000/rs6000.md (cstore<mode>4): Use rs6000_emit_int_cmove
5361 instead of rs6000_emit_sISEL.
5362
5363 2017-11-03 Jan Hubicka <hubicka@ucw.cz>
5364
5365 * asan.c (create_cond_insert_point): Maintain profile.
5366 * ipa-utils.c (ipa_merge_profiles): Be sure only IPA profiles are
5367 merged.
5368 * basic-block.h (struct basic_block_def): Remove frequency.
5369 (EDGE_FREQUENCY): Use to_frequency
5370 * bb-reorder.c (push_to_next_round_p): Use only IPA counts for global
5371 heuristics.
5372 (find_traces): Update to use to_frequency.
5373 (find_traces_1_round): Likewise; use only IPA counts.
5374 (bb_to_key): Likewise.
5375 (connect_traces): Use IPA counts only.
5376 (copy_bb_p): Update to use to_frequency.
5377 (fix_up_crossing_landing_pad): Likewise.
5378 (sanitize_hot_paths): Likewise.
5379 * bt-load.c (basic_block_freq): Likewise.
5380 * cfg.c (init_flow): Set count_max to uninitialized.
5381 (check_bb_profile): Remove frequencies; check counts.
5382 (dump_bb_info): Do not dump frequencies.
5383 (update_bb_profile_for_threading): Update counts only.
5384 (scale_bbs_frequencies_int): Likewise.
5385 (MAX_SAFE_MULTIPLIER): Remove.
5386 (scale_bbs_frequencies_gcov_type): Update counts only.
5387 (scale_bbs_frequencies_profile_count): Update counts only.
5388 (scale_bbs_frequencies): Update counts only.
5389 * cfg.h (struct control_flow_graph): Add count-max.
5390 (update_bb_profile_for_threading): Update prototype.
5391 * cfgbuild.c (find_bb_boundaries): Do not update frequencies.
5392 (find_many_sub_basic_blocks): Likewise.
5393 * cfgcleanup.c (try_forward_edges): Likewise.
5394 (try_crossjump_to_edge): Likewise.
5395 * cfgexpand.c (expand_gimple_cond): Likewise.
5396 (expand_gimple_tailcall): Likewise.
5397 (construct_init_block): Likewise.
5398 (construct_exit_block): Likewise.
5399 * cfghooks.c (verify_flow_info): Check consistency of counts.
5400 (dump_bb_for_graph): Do not dump frequencies.
5401 (split_block_1): Do not update frequencies.
5402 (split_edge): Do not update frequencies.
5403 (make_forwarder_block): Do not update frequencies.
5404 (duplicate_block): Do not update frequencies.
5405 (account_profile_record): Do not update frequencies.
5406 * cfgloop.c (find_subloop_latch_edge_by_profile): Use IPA counts
5407 for global heuristics.
5408 * cfgloopanal.c (average_num_loop_insns): Update to use to_frequency.
5409 (expected_loop_iterations_unbounded): Use counts only.
5410 * cfgloopmanip.c (scale_loop_profile): Simplify.
5411 (create_empty_loop_on_edge): Simplify
5412 (loopify): Simplify
5413 (duplicate_loop_to_header_edge): Simplify
5414 * cfgrtl.c (force_nonfallthru_and_redirect): Update profile.
5415 (update_br_prob_note): Take care of removing note when profile
5416 becomes undefined.
5417 (relink_block_chain): Do not dump frequency.
5418 (rtl_account_profile_record): Use to_frequency.
5419 * cgraph.c (symbol_table::create_edge): Convert count to ipa count.
5420 (cgraph_edge::redirect_call_stmt_to_calle): Conver tcount to ipa count.
5421 (cgraph_update_edges_for_call_stmt_node): Likewise.
5422 (cgraph_edge::verify_count_and_frequency): Update.
5423 (cgraph_node::verify_node): Temporarily disable frequency verification.
5424 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
5425 to_cgraph_frequency.
5426 (cgraph_edge::rebuild_edges): Convert to ipa counts.
5427 * cgraphunit.c (init_lowered_empty_function): Do not initialize
5428 frequencies.
5429 (cgraph_node::expand_thunk): Update profile.
5430 * except.c (dw2_build_landing_pads): Do not update frequency.
5431 * final.c (compute_alignments): Use to_frequency.
5432 (dump_basic_block_info): Do not dump frequency.
5433 * gimple-pretty-print.c (dump_profile): Do not dump frequency.
5434 (dump_gimple_bb_header): Do not dump frequency.
5435 * gimple-ssa-isolate-paths.c (isolate_path): Do not update frequency;
5436 do update count.
5437 * gimple-streamer-in.c (input_bb): Do not stream frequency.
5438 * gimple-streamer-out.c (output_bb): Do not stream frequency.
5439 * haifa-sched.c (sched_pressure_start_bb): Use to_freuqency.
5440 (init_before_recovery): Do not update frequency.
5441 (sched_create_recovery_edges): Do not update frequency.
5442 * hsa-gen.c (convert_switch_statements): Do not update frequency.
5443 * ipa-cp.c (ipcp_propagate_stage): Update search for max_count.
5444 (ipa_cp_c_finalize): Set max_count to uninitialized.
5445 * ipa-fnsummary.c (get_minimal_bb): Use counts.
5446 (param_change_prob): Use counts.
5447 * ipa-profile.c (ipa_profile_generate_summary): Do not summarize
5448 local profiles.
5449 * ipa-split.c (consider_split): Use to_frequency.
5450 (split_function): Use to_frequency.
5451 * ira-build.c (loop_compare_func): Likewise.
5452 (mark_loops_for_removal): Likewise.
5453 (mark_all_loops_for_removal): Likewise.
5454 * loop-doloop.c (doloop_modify): Do not update frequency.
5455 * loop-unroll.c (unroll_loop_runtime_iterations): Do not update
5456 frequency.
5457 * lto-streamer-in.c (input_function): Update count_max.
5458 * omp-expand.c (expand_omp_taskreg): Update count_max.
5459 * omp-simd-clone.c (simd_clone_adjust): Update profile.
5460 * predict.c (maybe_hot_frequency_p): Use to_frequency.
5461 (maybe_hot_count_p): Use ipa counts only.
5462 (maybe_hot_bb_p): Simplify.
5463 (maybe_hot_edge_p): Simplify.
5464 (probably_never_executed): Do not take frequency argument.
5465 (probably_never_executed_bb_p): Do not pass frequency.
5466 (probably_never_executed_edge_p): Likewise.
5467 (combine_predictions_for_bb): Check that profile is nonzero.
5468 (propagate_freq): Do not set frequency.
5469 (drop_profile): Simplify.
5470 (counts_to_freqs): Simplify.
5471 (expensive_function_p): Use to_frequency.
5472 (propagate_unlikely_bbs_forward): Simplify.
5473 (determine_unlikely_bbs): Simplify.
5474 (estimate_bb_frequencies): Add hack to silence graphite issues.
5475 (compute_function_frequency): Use ipa counts.
5476 (pass_profile::execute): Update.
5477 (rebuild_frequencies): Use counts only.
5478 (force_edge_cold): Use counts only.
5479 * profile-count.c (profile_count::dump): Dump new count types.
5480 (profile_count::differs_from_p): Check compatiblity.
5481 (profile_count::to_frequency): New function.
5482 (profile_count::to_cgraph_frequency): New function.
5483 * profile-count.h (struct function): Declare.
5484 (enum profile_quality): Add profile_guessed_local and
5485 profile_guessed_global0.
5486 (class profile_proability): Decrease number of bits to 29;
5487 update from_reg_br_prob_note and to_reg_br_prob_note.
5488 (class profile_count: Update comment; decrease number of bits
5489 to 61. Check compatibility.
5490 (profile_count::compatible_p): New private member function.
5491 (profile_count::ipa_p): New member function.
5492 (profile_count::operator<): Handle global zero correctly.
5493 (profile_count::operator>): Handle global zero correctly.
5494 (profile_count::operator<=): Handle global zero correctly.
5495 (profile_count::operator>=): Handle global zero correctly.
5496 (profile_count::nonzero_p): New member function.
5497 (profile_count::force_nonzero): New member function.
5498 (profile_count::max): New member function.
5499 (profile_count::apply_scale): Handle IPA scalling.
5500 (profile_count::guessed_local): New member function.
5501 (profile_count::global0): New member function.
5502 (profile_count::ipa): New member function.
5503 (profile_count::to_frequency): Declare.
5504 (profile_count::to_cgraph_frequency): Declare.
5505 * profile.c (OVERLAP_BASE): Delete.
5506 (compute_frequency_overlap): Delete.
5507 (compute_branch_probabilities): Do not use compute_frequency_overlap.
5508 * regs.h (REG_FREQ_FROM_BB): Use to_frequency.
5509 * sched-ebb.c (rank): Use counts only.
5510 * shrink-wrap.c (handle_simple_exit): Use counts only.
5511 (try_shrink_wrapping): Use counts only.
5512 (place_prologue_for_one_component): Use counts only.
5513 * tracer.c (find_best_predecessor): Use to_frequency.
5514 (find_trace): Use to_frequency.
5515 (tail_duplicate): Use to_frequency.
5516 * trans-mem.c (expand_transaction): Do not update frequency.
5517 * tree-call-cdce.c: Do not update frequency.
5518 * tree-cfg.c (gimple_find_sub_bbs): Likewise.
5519 (gimple_merge_blocks): Likewise.
5520 (gimple_split_edge): Likewise.
5521 (gimple_duplicate_sese_region): Likewise.
5522 (gimple_duplicate_sese_tail): Likewise.
5523 (move_sese_region_to_fn): Likewise.
5524 (gimple_account_profile_record): Likewise.
5525 (insert_cond_bb): Likewise.
5526 * tree-complex.c (expand_complex_div_wide): Likewise.
5527 * tree-eh.c (lower_resx): Update profile.
5528 * tree-inline.c (copy_bb): Simplify count scaling; do not scale
5529 frequencies.
5530 (initialize_cfun): Do not initialize frequencies
5531 (freqs_to_counts): Delete.
5532 (copy_cfg_body): Ignore count parameter.
5533 (copy_body): Update.
5534 (expand_call_inline): Update count_max.
5535 (optimize_inline_calls): Update count_max.
5536 (tree_function_versioning): Update count_max.
5537 * tree-ssa-coalesce.c (coalesce_cost_bb): Use to_frequency.
5538 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Do not update
5539 frequency.
5540 * tree-ssa-loop-im.c (execute_sm_if_changed): Use counts only.
5541 * tree-ssa-loop-ivcanon.c (unloop_loops): Do not update freuqency.
5542 (try_peel_loop): Likewise.
5543 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Use
5544 to_frequency.
5545 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Pass -1.
5546 (tree_transform_and_unroll_loop): Do not use frequencies
5547 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations):
5548 Use reliable prediction only.
5549 * tree-ssa-loop-unswitch.c (hoist_guard): Do not use frequencies.
5550 * tree-ssa-sink.c (select_best_block): Use to_frequency.
5551 * tree-ssa-tail-merge.c (replace_block_by): Temporarily disable
5552 probability scaling.
5553 * tree-ssa-threadupdate.c (create_block_for_threading): Do
5554 not update frequency
5555 (any_remaining_duplicated_blocks): Likewise.
5556 (update_profile): Likewise.
5557 (estimated_freqs_path): Delete.
5558 (freqs_to_counts_path): Delete.
5559 (clear_counts_path): Delete.
5560 (ssa_fix_duplicate_block_edges): Likewise.
5561 (duplicate_thread_path): Likewise.
5562 * tree-switch-conversion.c (gen_inbound_check): Use counts.
5563 * tree-tailcall.c (decrease_profile): Do not update frequency.
5564 (eliminate_tail_call): Likewise.
5565 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
5566 * tree-vect-loop.c (scale_profile_for_vect_loop): Likewise.
5567 (optimize_mask_stores): Likewise.
5568 * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise.
5569 * ubsan.c (ubsan_expand_null_ifn): Update profile.
5570 (ubsan_expand_ptr_ifn): Update profile.
5571 * value-prof.c (gimple_ic): Simplify.
5572 * value-prof.h (gimple_ic): Update prototype.
5573 * ipa-inline-transform.c (inline_transform): Fix scaling conditoins.
5574 * ipa-inline.c (compute_uninlined_call_time): Be sure that
5575 counts are nonzero.
5576 (want_inline_self_recursive_call_p): Likewise.
5577 (resolve_noninline_speculation): Only cummulate defined counts.
5578 (inline_small_functions): Use nonzero_p.
5579 (ipa_inline): Do not access freed node.
5580
5581 2017-11-03 Wilco Dijkstra <wdijkstr@arm.com>
5582
5583 * config/aarch64/aarch64.c (aarch64_override_options_internal):
5584 Set PARAM_SCHED_PRESSURE_ALGORITHM to SCHED_PRESSURE_MODEL.
5585
5586 2017-11-03 Kito Cheng <kito.cheng@gmail.com>
5587
5588 * config/riscv/riscv.c (riscv_legitimize_move): Handle
5589 non-legitimate address.
5590
5591 2017-11-03 Segher Boessenkool <segher@kernel.crashing.org>
5592
5593 * config/rs6000/rs6000.md (*lt0_disi): Delete.
5594 (*lt0_<mode>di, *lt0_<mode>si): New.
5595
5596 2017-11-03 Segher Boessenkool <segher@kernel.crashing.org>
5597
5598 * config/rs6000/rs6000.md (move_from_CR_ov_bit): Change condition to
5599 TARGET_PAIRED_FLOAT.
5600
5601 2017-11-03 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
5602 Jim Wilson <jim.wilson@linaro.org>
5603
5604 * config/aarch64/aarch64-cores.def (saphira): New CPU.
5605 * config/aarch64/aarch64-tune.md: Regenerated.
5606 * doc/invoke.texi (AArch64 Options/-mtune): Add "saphira".
5607 * gcc/config/aarch64/aarch64.c (saphira_tunings): New tuning table.
5608
5609 2017-11-03 Cupertino Miranda <cmiranda@synopsys.com>
5610
5611 * config/arc/arc.c (arc_save_restore): Corrected CFA note.
5612 (arc_expand_prologue): Restore blink for millicode.
5613 * config/arc/linux.h (LINK_EH_SPEC): Defined.
5614
5615 2017-11-03 Richard Sandiford <richard.sandiford@linaro.org>
5616
5617 PR target/82809
5618 * config/i386/i386.c (ix86_vector_duplicate_value): Use
5619 gen_vec_duplicate after forcing the scalar into a register.
5620
5621 2017-11-02 Segher Boessenkool <segher@kernel.crashing.org>
5622
5623 * combine (try_combine): Print the insns input to try_combine to the
5624 dump file.
5625
5626 2017-11-02 Steve Ellcey <sellcey@cavium.com>
5627
5628 PR target/79868
5629 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
5630 Remove second argument from aarch64_process_target_attr call.
5631 * config/aarch64/aarch64-protos.h (aarch64_process_target_attr):
5632 Ditto.
5633 * config/aarch64/aarch64.c (aarch64_attribute_info): Change
5634 field type.
5635 (aarch64_handle_attr_arch): Remove second argument.
5636 (aarch64_handle_attr_cpu): Ditto.
5637 (aarch64_handle_attr_tune): Ditto.
5638 (aarch64_handle_attr_isa_flags): Ditto.
5639 (aarch64_process_one_target_attr): Ditto.
5640 (aarch64_process_target_attr): Ditto.
5641 (aarch64_option_valid_attribute_p): Remove second argument.
5642 on aarch64_process_target_attr call.
5643
5644 2017-11-02 David Malcolm <dmalcolm@redhat.com>
5645
5646 * diagnostic.c: Include "selftest-diagnostic.h".
5647 (selftest::assert_location_text): New function.
5648 (selftest::test_diagnostic_get_location_text): New function.
5649 (selftest::diagnostic_c_tests): Call it.
5650
5651 2017-11-02 David Malcolm <dmalcolm@redhat.com>
5652
5653 * Makefile.in (OBJS-libcommon): Add selftest-diagnostic.o.
5654 * diagnostic-show-locus.c: Include "selftest-diagnostic.h".
5655 (class selftest::test_diagnostic_context): Move to...
5656 * selftest-diagnostic.c: New file.
5657 * selftest-diagnostic.h: New file.
5658
5659 2017-11-02 James Bowman <james.bowman@ftdichip.com>
5660
5661 * config/ft32/ft32.c (ft32_addr_space_legitimate_address_p): increase
5662 offset range for FT32B.
5663 * config/ft32/ft32.h: option "mcompress" enables relaxation.
5664 * config/ft32/ft32.md: Add TARGET_NOPM.
5665 * config/ft32/ft32.opt: Add mft32b, mcompress, mnopm.
5666 * gcc/doc/invoke.texi: Add mft32b, mcompress, mnopm.
5667
5668 2017-11-02 Wilco Dijkstra <wdijkstr@arm.com>
5669
5670 * config/aarch64/aarch64.h (MALLOC_ABI_ALIGNMENT): New define.
5671
5672 2017-11-02 Jeff Law <law@redhat.com>
5673
5674 * gimple-ssa-sprintf.c (sprintf_dom_walker): Remove
5675 virtual keyword on FINAL OVERRIDE members.
5676
5677 * tree-ssa-propagate.h (ssa_propagation_engine): Group
5678 virtuals together. Add virtual destructor.
5679 (substitute_and_fold_engine): Similarly.
5680
5681 2017-11-02 Jan Hubicka <hubicka@ucw.cz>
5682
5683 * x86-tune.def (X86_TUNE_USE_INCDEC): Enable for Haswell+.
5684
5685 2017-11-02 Richard Biener <rguenther@suse.de>
5686
5687 PR tree-optimization/82795
5688 * tree-if-conv.c (predicate_mem_writes): Remove bogus assert.
5689
5690 2017-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5691
5692 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Don't require
5693 gcc_SUN_LD_VERSION.
5694 (gcc_GAS_CHECK_FEATURE): Remove.
5695 * configure.ac (ld_vers) <*-*-solaris2*>: Move comments from
5696 gcc_AC_INITFINI_ARRAY here. Update for Solaris 11.4 changes.
5697 * configure: Regenerate.
5698
5699 2017-11-02 Claudiu Zissulescu <claziss@synopsys.com>
5700
5701 * config/arc/arc.c (hwloop_optimize): Account for empty
5702 body loops.
5703
5704 2017-11-02 Richard Biener <rguenther@suse.de>
5705
5706 PR middle-end/82765
5707 * varasm.c (decode_addr_const): Make offset HOST_WIDE_INT.
5708 Truncate ARRAY_REF index and element size.
5709
5710 2017-11-01 Palmer Dabbelt <palmer@dabbelt.com>
5711
5712 * doc/invoke.texi (RISC-V Options): Use "@minus{}2 GB", not "-2 GB".
5713
5714 2017-11-01 Jeff Law <law@redhat.com>
5715
5716 * tree-ssa-ccp.c (ccp_folder): New class derived from
5717 substitute_and_fold_engine.
5718 (ccp_folder::get_value): New member function.
5719 (ccp_folder::fold_stmt): Renamed from ccp_fold_stmt.
5720 (ccp_fold_stmt): Remove prototype.
5721 (ccp_finalize): Call substitute_and_fold from the ccp_class.
5722 * tree-ssa-copy.c (copy_folder): New class derived from
5723 substitute_and_fold_engine.
5724 (copy_folder::get_value): Renamed from get_value.
5725 (fini_copy_prop): Call substitute_and_fold from copy_folder class.
5726 * tree-vrp.c (vrp_folder): New class derived from
5727 substitute_and_fold_engine.
5728 (vrp_folder::fold_stmt): Renamed from vrp_fold_stmt.
5729 (vrp_folder::get_value): New member function.
5730 (vrp_finalize): Call substitute_and_fold from vrp_folder class.
5731 (evrp_dom_walker::before_dom_children): Similarly for replace_uses_in.
5732 * tree-ssa-propagate.h (substitute_and_fold_engine): New class to
5733 provide a class interface to folder/substitute routines.
5734 (ssa_prop_fold_stmt_fn): Remove typedef.
5735 (ssa_prop_get_value_fn): Likewise.
5736 (subsitute_and_fold): Remove prototype.
5737 (replace_uses_in): Likewise.
5738 * tree-ssa-propagate.c (substitute_and_fold_engine::replace_uses_in):
5739 Renamed from replace_uses_in. Call the virtual member function
5740 (substitute_and_fold_engine::replace_phi_args_in): Similarly.
5741 (substitute_and_fold_dom_walker): Remove initialization of
5742 data member entries for calbacks. Add substitute_and_fold_engine
5743 member and initialize it.
5744 (substitute_and_fold_dom_walker::before_dom_children0: Use the
5745 member functions for get_value, replace_phi_args_in c
5746 replace_uses_in, and fold_stmt calls.
5747 (substitute_and_fold_engine::substitute_and_fold): Renamed from
5748 substitute_and_fold. Remove assert. Update ctor call.
5749
5750 * tree-ssa-propagate.h (ssa_prop_visit_stmt_fn): Remove typedef.
5751 (ssa_prop_visit_phi_fn): Likewise.
5752 (class ssa_propagation_engine): New class to provide an interface
5753 into ssa_propagate.
5754 * tree-ssa-propagate.c (ssa_prop_visit_stmt): Remove file scoped
5755 variable.
5756 (ssa_prop_visit_phi): Likewise.
5757 (ssa_propagation_engine::simulate_stmt): Moved into class.
5758 Call visit_phi/visit_stmt from the class rather than via
5759 file scoped static variables.
5760 (ssa_propagation_engine::simulate_block): Moved into class.
5761 (ssa_propagation_engine::process_ssa_edge_worklist): Similarly.
5762 (ssa_propagation_engine::ssa_propagate): Similarly. No longer
5763 set file scoped statics for the visit_stmt/visit_phi callbacks.
5764 * tree-complex.c (complex_propagate): New class derived from
5765 ssa_propagation_engine.
5766 (complex_propagate::visit_stmt): Renamed from complex_visit_stmt.
5767 (complex_propagate::visit_phi): Renamed from complex_visit_phi.
5768 (tree_lower_complex): Call ssa_propagate via the complex_propagate
5769 class.
5770 * tree-ssa-ccp.c: (ccp_propagate): New class derived from
5771 ssa_propagation_engine.
5772 (ccp_propagate::visit_phi): Renamed from ccp_visit_phi_node.
5773 (ccp_propagate::visit_stmt): Renamed from ccp_visit_stmt.
5774 (do_ssa_ccp): Call ssa_propagate from the ccp_propagate class.
5775 * tree-ssa-copy.c (copy_prop): New class derived from
5776 ssa_propagation_engine.
5777 (copy_prop::visit_stmt): Renamed from copy_prop_visit_stmt.
5778 (copy_prop::visit_phi): Renamed from copy_prop_visit_phi_node.
5779 (execute_copy_prop): Call ssa_propagate from the copy_prop class.
5780 * tree-vrp.c (vrp_prop): New class derived from ssa_propagation_engine.
5781 (vrp_prop::visit_stmt): Renamed from vrp_visit_stmt.
5782 (vrp_prop::visit_phi): Renamed from vrp_visit_phi_node.
5783 (execute_vrp): Call ssa_propagate from the vrp_prop class.
5784
5785 2017-11-01 Jakub Jelinek <jakub@redhat.com>
5786
5787 PR rtl-optimization/82778
5788 PR rtl-optimization/82597
5789 * compare-elim.c (struct comparison): Add in_a_setter field.
5790 (find_comparison_dom_walker::before_dom_children): Remove killed
5791 bitmap and df_simulate_find_defs call, instead walk the defs.
5792 Compute last_setter and initialize in_a_setter. Merge definitions
5793 with first initialization for a few variables.
5794 (try_validate_parallel): Use insn_invalid_p instead of
5795 recog_memoized. Return insn rather than just the pattern.
5796 (try_merge_compare): Fix up comment. Don't uselessly test if
5797 in_a is a REG_P. Use cmp->in_a_setter instead of walking UD
5798 chains.
5799 (execute_compare_elim_after_reload): Remove df_chain_add_problem
5800 call.
5801
5802 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5803 Alan Hayward <alan.hayward@arm.com>
5804 David Sherwood <david.sherwood@arm.com>
5805
5806 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
5807 aarch64_hard_regno_nregs to get the number of registers
5808 in a mode.
5809
5810 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5811 Alan Hayward <alan.hayward@arm.com>
5812 David Sherwood <david.sherwood@arm.com>
5813
5814 * config/aarch64/constraints.md (Upl): Rename to...
5815 (Uaa): ...this.
5816 * config/aarch64/aarch64.md
5817 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64, *addsi3_aarch64_uxtw):
5818 Update accordingly.
5819
5820 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5821 Alan Hayward <alan.hayward@arm.com>
5822 David Sherwood <david.sherwood@arm.com>
5823
5824 * config/aarch64/aarch64.c (aarch64_add_constant_internal)
5825 (aarch64_add_constant, aarch64_add_sp, aarch64_sub_sp): Move
5826 earlier in file.
5827
5828 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5829 Alan Hayward <alan.hayward@arm.com>
5830 David Sherwood <david.sherwood@arm.com>
5831
5832 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp)
5833 (aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev)
5834 (aarch64_evpc_dup): Generate rtl direcly, rather than using
5835 named expanders.
5836 (aarch64_expand_vec_perm_const_1): Explicitly check for permutes
5837 of a single element.
5838 * config/aarch64/iterators.md: Add a comment above the permute
5839 unspecs to say that they are generated directly by
5840 aarch64_expand_vec_perm_const.
5841 * config/aarch64/aarch64-simd.md: Likewise the permute instructions.
5842
5843 2017-11-01 Nathan Sidwell <nathan@acm.org>
5844
5845 * tree-dump.c (dequeue_and_dump): Use HAS_DECL_ASSEMBLER_NAME_P.
5846
5847 2017-11-01 Palmer Dabbelt <palmer@dabbelt.com>
5848
5849 * doc/invoke.texi (RISC-V Options): Explicitly name the medlow
5850 and medany code models, and describe what they do.
5851
5852 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5853
5854 Revert accidental duplicate:
5855
5856 * combine.c (can_change_dest_mode): Reject changes in
5857 REGMODE_NATURAL_SIZE.
5858
5859 2017-11-01 Segher Boessenkool <segher@kernel.crashing.org>
5860
5861 PR rtl-optimization/64682
5862 PR rtl-optimization/69567
5863 PR rtl-optimization/69737
5864 PR rtl-optimization/82683
5865 * combine.c (distribute_notes) <REG_DEAD>: If the new I2 sets the same
5866 register mentioned in the note, drop the note, unless it came from I3,
5867 in which case it should go to I3 again.
5868
5869 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5870
5871 * tree-ssa-dse.c (normalize_ref): Check whether the ranges overlap
5872 and return false if not.
5873 (clear_bytes_written_by, live_bytes_read): Update accordingly.
5874
5875 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5876
5877 * tree-ssa-alias.h (ranges_overlap_p): Return false if either
5878 range is known to be empty.
5879
5880 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5881 Alan Hayward <alan.hayward@arm.com>
5882 David Sherwood <david.sherwood@arm.com>
5883
5884 * simplify-rtx.c (simplify_const_unary_operation): Use GET_MODE_NUNITS
5885 and CONST_VECTOR_NUNITS instead of computing the number of units from
5886 the byte sizes of the vector and element.
5887 (simplify_binary_operation_1): Likewise.
5888 (simplify_const_binary_operation): Likewise.
5889 (simplify_ternary_operation): Likewise.
5890
5891 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5892 Alan Hayward <alan.hayward@arm.com>
5893 David Sherwood <david.sherwood@arm.com>
5894
5895 * var-tracking.c (INT_MEM_OFFSET): Replace with...
5896 (int_mem_offset): ...this new function.
5897 (var_mem_set, var_mem_delete_and_set, var_mem_delete)
5898 (find_mem_expr_in_1pdv, dataflow_set_preserve_mem_locs)
5899 (same_variable_part_p, use_type, add_stores, vt_get_decl_and_offset):
5900 Update accordingly.
5901
5902 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5903 Alan Hayward <alan.hayward@arm.com>
5904 David Sherwood <david.sherwood@arm.com>
5905
5906 * lower-subreg.c (interesting_mode_p): New function.
5907 (compute_costs, find_decomposable_subregs, decompose_register)
5908 (simplify_subreg_concatn, can_decompose_p, resolve_simple_move)
5909 (resolve_clobber, dump_choices): Use it.
5910
5911 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5912 Alan Hayward <alan.hayward@arm.com>
5913 David Sherwood <david.sherwood@arm.com>
5914
5915 * rtlhash.c (add_rtx): Use add_hwi for 'w' and add_int for 'i'.
5916
5917 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5918 Alan Hayward <alan.hayward@arm.com>
5919 David Sherwood <david.sherwood@arm.com>
5920
5921 * alias.c (find_base_value, find_base_term): Only process integer
5922 truncations. Check the precision rather than the size.
5923
5924 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5925 Alan Hayward <alan.hayward@arm.com>
5926 David Sherwood <david.sherwood@arm.com>
5927
5928 * machmode.h (is_narrower_int_mode): New function
5929 * optabs.c (expand_float, expand_fix): Use it.
5930 * dwarf2out.c (rotate_loc_descriptor): Likewise.
5931
5932 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5933 Alan Hayward <alan.hayward@arm.com>
5934 David Sherwood <david.sherwood@arm.com>
5935
5936 * rtl.h (narrower_subreg_mode): New function.
5937 * ira-color.c (update_costs_from_allocno): Use it.
5938
5939 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5940 Alan Hayward <alan.hayward@arm.com>
5941 David Sherwood <david.sherwood@arm.com>
5942
5943 * optabs-query.h (convert_optab_p): New function, split out from...
5944 (convert_optab_handler): ...here.
5945 (widening_optab_handler): Delete.
5946 (find_widening_optab_handler): Remove permit_non_widening parameter.
5947 (find_widening_optab_handler_and_mode): Likewise. Provide an
5948 override that operates on mode class wrappers.
5949 * optabs-query.c (widening_optab_handler): Delete.
5950 (find_widening_optab_handler_and_mode): Remove permit_non_widening
5951 parameter. Assert that the two modes are the same class and that
5952 the "from" mode is narrower than the "to" mode. Use
5953 convert_optab_handler instead of widening_optab_handler.
5954 * expmed.c (expmed_mult_highpart_optab): Use convert_optab_handler
5955 instead of widening_optab_handler.
5956 * expr.c (expand_expr_real_2): Update calls to
5957 find_widening_optab_handler.
5958 * optabs.c (expand_widen_pattern_expr): Likewise.
5959 (expand_binop_directly): Take the insn_code as a parameter.
5960 (expand_binop): Only call find_widening_optab_handler for
5961 conversion optabs; use optab_handler otherwise. Update calls
5962 to find_widening_optab_handler and expand_binop_directly.
5963 Use convert_optab_handler instead of widening_optab_handler.
5964 * tree-ssa-math-opts.c (convert_mult_to_widen): Update calls to
5965 find_widening_optab_handler and use scalar_mode rather than
5966 machine_mode.
5967 (convert_plusminus_to_widen): Likewise.
5968
5969 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5970 Alan Hayward <alan.hayward@arm.com>
5971 David Sherwood <david.sherwood@arm.com>
5972
5973 * machmode.h (fixed_size_mode): New class.
5974 * rtl.h (get_pool_mode): Return fixed_size_mode.
5975 * gengtype.c (main): Add fixed_size_mode.
5976 * target.def (get_raw_result_mode): Return a fixed_size_mode.
5977 (get_raw_arg_mode): Likewise.
5978 * doc/tm.texi: Regenerate.
5979 * targhooks.h (default_get_reg_raw_mode): Return a fixed_size_mode.
5980 * targhooks.c (default_get_reg_raw_mode): Likewise.
5981 * config/ia64/ia64.c (ia64_get_reg_raw_mode): Likewise.
5982 * config/mips/mips.c (mips_get_reg_raw_mode): Likewise.
5983 * config/msp430/msp430.c (msp430_get_raw_arg_mode): Likewise.
5984 (msp430_get_raw_result_mode): Likewise.
5985 * config/avr/avr-protos.h (regmask): Use as_a <fixed_side_mode>
5986 * dbxout.c (dbxout_parms): Require fixed-size modes.
5987 * expr.c (copy_blkmode_from_reg, copy_blkmode_to_reg): Likewise.
5988 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Likewise.
5989 * omp-low.c (lower_oacc_reductions): Likewise.
5990 * simplify-rtx.c (simplify_immed_subreg): Take fixed_size_modes.
5991 (simplify_subreg): Update accordingly.
5992 * varasm.c (constant_descriptor_rtx::mode): Change to fixed_size_mode.
5993 (force_const_mem): Update accordingly. Return NULL_RTX for modes
5994 that aren't fixed-size.
5995 (get_pool_mode): Return a fixed_size_mode.
5996 (output_constant_pool_2): Take a fixed_size_mode.
5997
5998 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
5999 Alan Hayward <alan.hayward@arm.com>
6000 David Sherwood <david.sherwood@arm.com>
6001
6002 * doc/rtl.texi (vec_series): Document.
6003 (const): Say that the operand can be a vec_series.
6004 * rtl.def (VEC_SERIES): New rtx code.
6005 * rtl.h (const_vec_series_p_1): Declare.
6006 (const_vec_series_p): New function.
6007 * emit-rtl.h (gen_const_vec_series): Declare.
6008 (gen_vec_series): Likewise.
6009 * emit-rtl.c (const_vec_series_p_1, gen_const_vec_series)
6010 (gen_vec_series): Likewise.
6011 * optabs.c (expand_mult_highpart): Use gen_const_vec_series.
6012 * simplify-rtx.c (simplify_unary_operation): Handle negations
6013 of vector series.
6014 (simplify_binary_operation_series): New function.
6015 (simplify_binary_operation_1): Use it. Handle VEC_SERIES.
6016 (test_vector_ops_series): New function.
6017 (test_vector_ops): Call it.
6018 * config/powerpcspe/altivec.md (altivec_lvsl): Use
6019 gen_const_vec_series.
6020 (altivec_lvsr): Likewise.
6021 * config/rs6000/altivec.md (altivec_lvsl, altivec_lvsr): Likewise.
6022
6023 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
6024 Alan Hayward <alan.hayward@arm.com>
6025 David Sherwood <david.sherwood@arm.com>
6026
6027 * doc/rtl.texi (const): Update description of address constants.
6028 Say that vector constants are allowed too.
6029 * common.md (E, F): Use CONSTANT_P instead of checking for
6030 CONST_VECTOR.
6031 * emit-rtl.c (gen_lowpart_common): Use const_vec_p instead of
6032 checking for CONST_VECTOR.
6033 * expmed.c (make_tree): Use build_vector_from_val for a CONST
6034 VEC_DUPLICATE.
6035 * expr.c (expand_expr_real_2): Check for vector modes instead
6036 of checking for CONST_VECTOR.
6037 * rtl.h (const_vec_p): New function.
6038 (const_vec_duplicate_p): Check for a CONST VEC_DUPLICATE.
6039 (unwrap_const_vec_duplicate): Handle them here too.
6040
6041 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
6042 David Malcolm <dmalcolm@redhat.com>
6043 Alan Hayward <alan.hayward@arm.com>
6044 David Sherwood <david.sherwood@arm.com>
6045
6046 * rtl.h (vec_duplicate_p): New function.
6047 * selftest-rtl.c (assert_rtx_eq_at): New function.
6048 * selftest-rtl.h (ASSERT_RTX_EQ): New macro.
6049 (assert_rtx_eq_at): Declare.
6050 * selftest.h (selftest::simplify_rtx_c_tests): Declare.
6051 * selftest-run-tests.c (selftest::run_tests): Call it.
6052 * simplify-rtx.c: Include selftest.h and selftest-rtl.h.
6053 (simplify_unary_operation_1): Recursively handle vector duplicates.
6054 (simplify_binary_operation_1): Likewise. Handle VEC_SELECTs of
6055 vector duplicates.
6056 (simplify_subreg): Handle subregs of vector duplicates.
6057 (make_test_reg, test_vector_ops_duplicate, test_vector_ops)
6058 (selftest::simplify_rtx_c_tests): New functions.
6059
6060 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
6061 Alan Hayward <alan.hayward@arm.com>
6062 David Sherwood <david.sherwood@arm.com>
6063
6064 * emit-rtl.h (gen_const_vec_duplicate): Declare.
6065 (gen_vec_duplicate): Likewise.
6066 * emit-rtl.c (gen_const_vec_duplicate_1): New function, split
6067 out from...
6068 (gen_const_vector): ...here.
6069 (gen_const_vec_duplicate, gen_vec_duplicate): New functions.
6070 (gen_rtx_CONST_VECTOR): Use gen_const_vec_duplicate for constants
6071 whose elements are all equal.
6072 * optabs.c (expand_vector_broadcast): Use gen_const_vec_duplicate.
6073 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6074 (simplify_relational_operation): Likewise.
6075 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
6076 Likewise.
6077 (aarch64_simd_dup_constant): Use gen_vec_duplicate.
6078 (aarch64_expand_vector_init): Likewise.
6079 * config/arm/arm.c (neon_vdup_constant): Likewise.
6080 (neon_expand_vector_init): Likewise.
6081 (arm_expand_vec_perm): Use gen_const_vec_duplicate.
6082 (arm_block_set_unaligned_vect): Likewise.
6083 (arm_block_set_aligned_vect): Likewise.
6084 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
6085 * config/i386/i386.c (ix86_expand_vec_perm): Likewise.
6086 (expand_vec_perm_even_odd_pack): Likewise.
6087 (ix86_vector_duplicate_value): Use gen_vec_duplicate.
6088 * config/i386/sse.md (one_cmpl<mode>2): Use CONSTM1_RTX.
6089 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use
6090 gen_const_vec_duplicate.
6091 * config/ia64/vect.md (addv2sf3, subv2sf3): Use CONST1_RTX.
6092 * config/mips/mips.c (mips_gen_const_int_vector): Use
6093 gen_const_vec_duplicate.
6094 (mips_expand_vector_init): Use CONST0_RTX.
6095 * config/powerpcspe/altivec.md (abs<mode>2, nabs<mode>2): Likewise.
6096 (define_split): Use gen_const_vec_duplicate.
6097 * config/rs6000/altivec.md (abs<mode>2, nabs<mode>2): Use CONST0_RTX.
6098 (define_split): Use gen_const_vec_duplicate.
6099 * config/s390/vx-builtins.md (vec_genmask<mode>): Likewise.
6100 (vec_ctd_s64, vec_ctd_u64, vec_ctsl, vec_ctul): Likewise.
6101 * config/spu/spu.c (spu_const): Likewise.
6102
6103 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org>
6104 Alan Hayward <alan.hayward@arm.com>
6105 David Sherwood <david.sherwood@arm.com>
6106
6107 * combine.c (can_change_dest_mode): Reject changes in
6108 REGMODE_NATURAL_SIZE.
6109
6110 2017-10-31 Sandra Loosemore <sandra@codesourcery.com>
6111
6112 * configure.ac (--enable-libssp): New.
6113 (gcc_cv_libc_provides_ssp): Check for explicit setting before
6114 trying to determine target-specific default. Adjust indentation.
6115 * configure: Regenerated.
6116 * doc/install.texi (Configuration): Expand --disable-libssp
6117 documentation.
6118
6119 2017-10-31 Daniel Santos <daniel.santos@pobox.com>
6120
6121 config/i386/i386.c (ix86_expand_epilogue): Correct stack
6122 calculation.
6123
6124 2017-10-31 Martin Jambor <mjambor@suse.cz>
6125
6126 PR c++/81702
6127 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert.
6128
6129 2017-10-31 David Malcolm <dmalcolm@redhat.com>
6130
6131 * auto-profile.c (autofdo_source_profile::read): Use
6132 UNKNOWN_LOCATION rather than 0.
6133 * diagnostic-core.h (warning_at_rich_loc): Rename to...
6134 (warning_at): ...this overload.
6135 (warning_at_rich_loc_n): Rename to...
6136 (warning_n): ...this overload.
6137 (error_at_rich_loc): Rename to...
6138 (error_at): ...this overload.
6139 (pedwarn_at_rich_loc): Rename to...
6140 (pedwarn): ...this overload.
6141 (permerror_at_rich_loc): Rename to...
6142 (permerror): ...this overload.
6143 (inform_at_rich_loc): Rename to...
6144 (inform): ...this overload.
6145 * diagnostic.c: (diagnostic_n_impl): Delete location_t-based decl.
6146 (diagnostic_n_impl_richloc): Rename to...
6147 (diagnostic_n_impl): ...this rich_location *-based decl.
6148 (inform_at_rich_loc): Rename to...
6149 (inform): ...this, and add an assertion.
6150 (inform_n): Update for removal of location_t-based diagnostic_n_impl.
6151 (warning_at_rich_loc): Rename to...
6152 (warning_at): ...this, and add an assertion.
6153 (warning_at_rich_loc_n): Rename to...
6154 (warning_n): ...this, and add an assertion.
6155 (warning_n): Update location_t-based implementation for removal of
6156 location_t-based diagnostic_n_impl.
6157 (pedwarn_at_rich_loc): Rename to...
6158 (pedwarn): ...this, and add an assertion.
6159 (permerror_at_rich_loc): Rename to...
6160 (permerror): ...this, and add an assertion.
6161 (error_n): Update for removal of location_t-based diagnostic_n_impl.
6162 (error_at_rich_loc): Rename to...
6163 (error_at): ...this, and add an assertion.
6164 * gcc.c (do_spec_1): Use UNKNOWN_LOCATION rather than 0.
6165 (driver::do_spec_on_infiles): Likewise.
6166 * substring-locations.c (format_warning_va): Update for renaming
6167 of inform_at_rich_loc.
6168
6169 2017-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
6170
6171 * builtins.def (DEF_FLOATN_BUILTIN): Change most _Float<N> and
6172 _Float<N>X built-in functions so that the variant without the
6173 "__builtin_" prefix is only enabled for the GNU C and Objective C
6174 languages when they are in non-strict ANSI/ISO mode.
6175 (DEF_EXT_LIB_FLOATN_NX_BUILTINS): Likewise.
6176 * target.def (floatn_builtin_p): Add a target hook to control
6177 whether _Float<N> and _Float<N>X built-in functions without the
6178 "__builtin_" prefix are enabled, and return true for C and
6179 Objective C in the default hook. Include langhooks.h in
6180 targhooks.c.
6181 * targhooks.h (default_floatn_builtin_p): Likewise.
6182 * targhooks.c (default_floatn_builtin_p): Likewise.
6183 * doc/tm.texi.in (TARGET_FLOATN_BUILTIN_P): Document the
6184 floatn_builtin_p target hook.
6185 * doc/tm.texi (TARGET_FLOATN_BUILTIN_P): Likewise.
6186
6187 2017-10-31 Matthew Fortune <matthew.fortune@imgtec.com>
6188 Eric Botcazou <ebotcazou@adacore.com>
6189
6190 PR rtl-optimization/81803
6191 * lra-constraints.c (curr_insn_transform): Also reload the whole
6192 register for a strict subreg no wider than a word if this is for
6193 a WORD_REGISTER_OPERATIONS target.
6194
6195 2017-10-31 Jason Merrill <jason@redhat.com>
6196
6197 * gdbinit.in: Skip over inlines from timevar.h.
6198
6199 2017-10-31 Martin Liska <mliska@suse.cz>
6200
6201 * doc/gcov.texi: Document new option.
6202 * gcov.c (print_usage): Likewise print it.
6203 (process_args): Support the argument.
6204 (format_count): New function.
6205 (format_gcov): Use the function.
6206
6207 2017-10-31 Martin Liska <mliska@suse.cz>
6208
6209 * gcov.c (struct name_map): do not use typedef.
6210 Define operator== and operator<.
6211 (name_search): Remove.
6212 (name_sort): Remove.
6213 (main): Do not allocate names.
6214 (process_file): Add vertical space.
6215 (generate_results): Use std::find.
6216 (release_structures): Do not release memory.
6217 (find_source): Use std::find.
6218
6219 2017-10-31 Martin Liska <mliska@suse.cz>
6220
6221 * gcov.c (struct line_info): Remove it's typedef.
6222 (line_info::line_info): Add proper ctor.
6223 (line_info::has_block): Do not use a typedef.
6224 (struct source_info): Do not use typedef.
6225 (circuit): Likewise.
6226 (get_cycles_count): Likewise.
6227 (output_intermediate_file): Iterate via vector iterator.
6228 (add_line_counts): Use std::vector methods.
6229 (accumulate_line_counts): Likewise.
6230 (output_lines): Likewise.
6231
6232 2017-10-31 Martin Liska <mliska@suse.cz>
6233
6234 * gcov.c (struct source_info): Remove typedef.
6235 (source_info::source_info): Add proper ctor.
6236 (accumulate_line_counts): Use struct, not it's typedef.
6237 (output_gcov_file): Likewise.
6238 (output_lines): Likewise.
6239 (main): Do not allocate an array.
6240 (output_intermediate_file): Use size of vector container.
6241 (process_file): Resize the vector.
6242 (generate_results): Do not preallocate, use newly added vector
6243 lines.
6244 (release_structures): Do not release sources.
6245 (find_source): Use vector methods.
6246 (add_line_counts): Do not use typedef.
6247
6248 2017-10-31 Martin Liska <mliska@suse.cz>
6249
6250 * doc/gcov.texi: Document that.
6251 * gcov.c (add_line_counts): Mark lines with a non-executed
6252 statement.
6253 (output_line_beginning): Handle such lines.
6254 (output_lines): Pass new argument.
6255 (output_intermediate_file): Print it in intermediate format.
6256
6257 2017-10-31 Martin Liska <mliska@suse.cz>
6258
6259 * color-macros.h: New file.
6260 * diagnostic-color.c: Factor out color related to macros to
6261 color-macros.h.
6262 * doc/gcov.texi: Document -k option.
6263 * gcov.c (INCLUDE_STRING): Include string.h.
6264 (print_usage): Add -k option.
6265 (process_args): Parse it.
6266 (pad_count_string): New function.
6267 (output_line_beginning): Likewise.
6268 (DEFAULT_LINE_START): New macro.
6269 (output_lines): Support color output.
6270
6271 2017-10-31 Martin Liska <mliska@suse.cz>
6272
6273 PR gcov-profile/82633
6274 * doc/gcov.texi: Document -fkeep-{static,inline}-functions and
6275 their interaction with GCOV infrastructure.
6276 * configure.ac: Add -fkeep-{inline,static}-functions to
6277 coverage_flags.
6278 * configure: Regenerate.
6279
6280 2017-10-31 Uros Bizjak <ubizjak@gmail.com>
6281
6282 PR target/82772
6283 * config/alpha/sync.md (fetchop_constr) <and>: Change to "rINM".
6284
6285 2017-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6286
6287 PR target/82674
6288 * config/rs6000/rs6000.md (allocate_stack): Force update interval
6289 into a register if it does not fit into an immediate offset field.
6290
6291 2017-10-31 Olivier Hainque <hainque@adacore.com>
6292
6293 * gcc/Makefile.in (FLAGS_TO_PASS): Pass libsubdir as well.
6294
6295 2017-10-31 Julia Koval <julia.koval@intel.com>
6296
6297 * config.gcc: Add gfniintrin.h.
6298 * config/i386/gfniintrin.h: New.
6299 * config/i386/i386-builtin-types.def
6300 (__builtin_ia32_vgf2p8affineinvqb_v64qi,
6301 __builtin_ia32_vgf2p8affineinvqb_v64qi_mask,
6302 __builtin_ia32_vgf2p8affineinvqb_v32qi,
6303 __builtin_ia32_vgf2p8affineinvqb_v32qi_mask,
6304 __builtin_ia32_vgf2p8affineinvqb_v16qi,
6305 __builtin_ia32_vgf2p8affineinvqb_v16qi_mask): New builtins.
6306 * config/i386/i386-builtin.def (V64QI_FTYPE_V64QI_V64QI_INT_V64QI_UDI,
6307 V32QI_FTYPE_V32QI_V32QI_INT_V32QI_USI,
6308 V16QI_FTYPE_V16QI_V16QI_INT_V16QI_UHI,
6309 V64QI_FTYPE_V64QI_V64QI_INT): New types.
6310 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
6311 * config/i386/immintrin.h: Include gfniintrin.h.
6312 * config/i386/sse.md (vgf2p8affineinvqb_*) New pattern.
6313
6314 2017-10-30 Eric Botcazou <ebotcazou@adacore.com>
6315
6316 * gcc.c (HAVE_TARGET_EXECUTABLE_SUFFIX): Remove old kludge.
6317
6318 2017-10-30 Wilco Dijkstra <wdijkstr@arm.com>
6319
6320 * config/arm/arm.md (ashldi3): Remove shift by 1 expansion.
6321 (arm_ashldi3_1bit): Remove pattern.
6322 (ashrdi3): Remove shift by 1 expansion.
6323 (arm_ashrdi3_1bit): Remove pattern.
6324 (lshrdi3): Remove shift by 1 expansion.
6325 (arm_lshrdi3_1bit): Remove pattern.
6326 * config/arm/arm.c (arm_rtx_costs_internal): Slightly increase
6327 cost of ashldi3 by 1.
6328 * config/arm/neon.md (ashldi3_neon): Remove shift by 1 expansion.
6329 (<shift>di3_neon): Likewise.
6330
6331 2017-10-30 Dominik Infuehr <dominik.infuehr@theobroma-systems.com>
6332
6333 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov): Rename
6334 both identically named patterns to (*aarch64_simd_mov<VD:mode>)
6335 and (*aarch64_simd_mov<VQ:mode>).
6336 (*aarch64_simd_mov<VD:mode>): Change type attribute to match
6337 pattern alternative.
6338 (*aarch64_simd_mov<VQ:mode>): Re-order and change type
6339 attributes to match pattern alternative.
6340
6341 2017-10-30 Steven Munroe <munroesj@gcc.gnu.org>
6342
6343 * config.gcc (powerpc*-*-*): Add emmintrin.h.
6344 * config/rs6000/emmintrin.h: New file.
6345 * config/rs6000/x86intrin.h [__ALTIVEC__]: Include emmintrin.h.
6346
6347 2017-10-30 Wilco Dijkstra <wdijkstr@arm.com>
6348
6349 * config/arm/vfp.md (movdi_vfp): Merge changes from movdi_vfp_cortexa8.
6350 * (movdi_vfp_cortexa8): Remove pattern.
6351
6352 2017-10-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6353
6354 * doc/install.texi (Specific, alpha*-*-*): Remove DEC OSF/1
6355 etc. reference.
6356 (Specific, alpha*-dec-osf5.1): Remove.
6357 (Specific, mips-sgi-irix5): Remove.
6358 (Specific, mips-sgi-irix6): Remove.
6359
6360 2017-10-30 Jakub Jelinek <jakub@redhat.com>
6361
6362 PR middle-end/22141
6363 * gimple-ssa-store-merging.c (merged_store_group::apply_stores): Fix
6364 arguments to clear_bit_region_be.
6365
6366 2017-10-30 Jim Wilson <wilson@tuliptree.org>
6367
6368 * gimplify.c: Include memmodel.h.
6369
6370 2017-10-30 Martin Jambor <mjambor@suse.cz>
6371
6372 * omp-grid.c (grid_attempt_target_gridification): Also insert a
6373 condition whether loop should be executed at all.
6374
6375 2017-10-30 Will Schmidt <will_schmidt@vnet.ibm.com>
6376
6377 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add support for
6378 gimple folding of vec_madd() intrinsics.
6379 * config/rs6000/altivec.md (mulv8hi3): Rename altivec_vmladduhm to
6380 fmav8hi4. (altivec_vmladduhm): Rename to fmav8hi4.
6381 * config/rs6000/rs6000-builtin.def: Rename vmladduhm to fmav8hi4
6382
6383 2017-10-30 Richard Biener <rguenther@suse.de>
6384
6385 PR tree-optimization/82762
6386 Revert
6387 2017-10-23 Richard Biener <rguenther@suse.de>
6388
6389 PR tree-optimization/82129
6390 Revert
6391 2017-08-01 Richard Biener <rguenther@suse.de>
6392
6393 PR tree-optimization/81181
6394 * tree-ssa-pre.c (compute_antic_aux): Defer clean() to ...
6395 (compute_antic): ... end of iteration here.
6396
6397 2017-10-30 Joseph Myers <joseph@codesourcery.com>
6398
6399 * doc/invoke.texi (C Dialect Options): Document -std=c17,
6400 -std=iso9899:2017 and -std=gnu17.
6401 * doc/standards.texi (C Language): Document C17 support.
6402 * doc/cpp.texi (Overview): Mention -std=c17.
6403 (Standard Predefined Macros): Document C11 and C17 values of
6404 __STDC_VERSION__. Do not refer to C99 support as incomplete.
6405 * doc/extend.texi (Inline): Do not list individual options for
6406 standards newer than C99.
6407 * dwarf2out.c (highest_c_language, gen_compile_unit_die): Handle
6408 "GNU C17".
6409 * config/rl78/rl78.c (rl78_option_override): Handle "GNU C17"
6410 language name.
6411
6412 2017-10-30 Maxim Ostapenko <m.ostapenko@samsung.com>
6413
6414 * asan.c (asan_finish_file): Align asan globals array by shadow
6415 granularity.
6416
6417 2017-10-30 Jakub Jelinek <jakub@redhat.com>
6418
6419 PR middle-end/22141
6420 * gimple-ssa-store-merging.c: Include rtl.h and expr.h.
6421 (struct store_immediate_info): Add bitregion_start and bitregion_end
6422 fields.
6423 (store_immediate_info::store_immediate_info): Add brs and bre
6424 arguments and initialize bitregion_{start,end} from those.
6425 (struct merged_store_group): Add bitregion_start, bitregion_end,
6426 align_base and mask fields. Drop unnecessary struct keyword from
6427 struct store_immediate_info. Add do_merge method.
6428 (clear_bit_region_be): Use memset instead of loop storing zeros.
6429 (merged_store_group::do_merge): New method.
6430 (merged_store_group::merge_into): Use do_merge. Allow gaps in between
6431 stores as long as the surrounding bitregions have no gaps.
6432 (merged_store_group::merge_overlapping): Use do_merge.
6433 (merged_store_group::apply_stores): Test that bitregion_{start,end}
6434 is byte aligned, rather than requiring that start and width are
6435 byte aligned. Drop unnecessary struct keyword from
6436 struct store_immediate_info. Allocate and populate also mask array.
6437 Make start of the arrays relative to bitregion_start rather than
6438 start and size them according to bitregion_{end,start} difference.
6439 (struct imm_store_chain_info): Drop unnecessary struct keyword from
6440 struct store_immediate_info.
6441 (pass_store_merging::gate): Punt if BITS_PER_UNIT or CHAR_BIT is not 8.
6442 (pass_store_merging::terminate_all_aliasing_chains): Drop unnecessary
6443 struct keyword from struct store_immediate_info.
6444 (imm_store_chain_info::coalesce_immediate_stores): Allow gaps in
6445 between stores as long as the surrounding bitregions have no gaps.
6446 Formatting fixes.
6447 (struct split_store): Add orig non-static data member.
6448 (split_store::split_store): Initialize orig to false.
6449 (find_constituent_stmts): Return store_immediate_info *, non-NULL
6450 if there is exactly a single original stmt. Change stmts argument
6451 to pointer from reference, if NULL, don't push anything to it. Add
6452 first argument, use it to optimize skipping over orig stmts that
6453 are known to be before bitpos already. Simplify.
6454 (split_group): Return unsigned int count how many stores are or
6455 would be needed rather than a bool. Add allow_unaligned argument.
6456 Change split_stores argument from reference to pointer, if NULL,
6457 only do a dry run computing how many stores would be produced.
6458 Rewritten algorithm to use both alignment and misalign if
6459 !allow_unaligned and handle bitfield stores with gaps.
6460 (imm_store_chain_info::output_merged_store): Set start_byte_pos
6461 from bitregion_start instead of start. Compute allow_unaligned
6462 here, if true, do 2 split_group dry runs to compute which one
6463 produces fewer stores and prefer aligned if equal. Punt if
6464 new count is bigger or equal than original before emitting any
6465 statements, rather than during that. Remove no longer needed
6466 new_ssa_names tracking. Replace num_stmts with
6467 split_stores.length (). Use 32-bit stack allocated entries
6468 in split_stores auto_vec. Try to reuse original store lhs/rhs1
6469 if possible. Handle bitfields with gaps.
6470 (pass_store_merging::execute): Ignore bitsize == 0 stores.
6471 Compute bitregion_{start,end} for the stores and construct
6472 store_immediate_info with that. Formatting fixes.
6473
6474 2017-10-30 Uros Bizjak <ubizjak@gmail.com>
6475
6476 PR target/82725
6477 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
6478 UNSPEC_DTPOFF and UNSPEC_NTPOFF with SImode immediate offset.
6479
6480 2017-10-29 Jim Wilson <wilson@tuliptree.org>
6481
6482 * gimplify.c: Include tm_p.h.
6483
6484 * common.opt (gcoff): Re-add as ignored option.
6485 (gcoff1, gcoff2, gcoff3): Likewise.
6486
6487 * Makefile.in (OBJS): Delete sdbout.o.
6488 (GTFILES): Delete $(srcdir)/sdbout.c.
6489 * debug.h: Delete sdb_debug_hooks.
6490 * final.c: Delete sdbout.h include.
6491 (final_scan_insn): Delete SDB_DEBUG check.
6492 (rest_of_clean_state): Likewise.
6493 * output.h: Delete sdb_begin_function_line.
6494 * sdbout.c: Delete.
6495 * sdbout.h: Delete.
6496 * toplev.c: Delete sdbout.h include.
6497 (process_options): Delete SDB_DEBUG check.
6498 * tree-core.h (tree_type_common): Delete pointer field of
6499 tree_type_symtab.
6500 * tree.c (copy_node): Clear TYPE_SYMTAB_DIE instead of
6501 TYPE_SYMTAB_POINTER.
6502 * tree.h (TYPE_SYMTAB_POINTER): Delete.
6503 (TYPE_SYMTAB_IS_POINTER): Delete.
6504 (TYPE_SYMTAB_IS_DIE): Renumber.
6505 * xcoffout.c: Refer to former sdbout.c file.
6506 (xcoffout_begin_prologue): Use past tense for sdbout.c reference.
6507
6508 * doc/install.texi (--with-stabs): Delete COFF and ECOFF info.
6509 * doc/invoke.texi (SEEALSO): Delete adb and sdb references.
6510 (Debugging Options): Delete -gcoff.
6511 (-gstabs): Delete SDB reference.
6512 (-gcoff): Delete.
6513 (-gcoff@var{level}): Delete.
6514 * doc/passes.texi (Debugging information output): Delete SDB and
6515 sdbout.c references.
6516 * doc/tm.texi: Regenerate.
6517 * doc/tm.texi.in (DWARF_CIE_DATA_ALIGNMENT): Delete SDB from xref.
6518 (SDB and DWARF): Change node name to DWARF and delete SDB and COFF
6519 references.
6520 (DEBUGGER_AUTO_OFFSET): Delete COFF and SDB references.
6521 (PREFERRED_DEBUGGING_TYPE): Delete SDB_DEBUG and -gcoff references.
6522 (SDB_DEBUGGING_INFO): Delete.
6523 (PUT_SDB_@dots{}, SDB_DELIM, SDB_ALLOW_UNKNOWN_REFERENCES)
6524 SDB_ALLOW_FORWARD_REFERENCES, SDB_OUTPUT_SOURCE_LINE): Delete.
6525 * target.def (output_source_filename): Delete COFF reference.
6526
6527 * common.opt (gcoff): Delete.
6528 (gxcoff+): Update Negative chain.
6529 * defaults.h: Delete all references to SDB_DEBUGGING_INFO and
6530 SDB_DEBUG.
6531 * dwarf2out.c (gen_array_type_die): Change SDB to debuggers.
6532 * flag-types.h (enum debug_info_type): Delete SDB_DEBUG.
6533 * function.c (number_blocks): Delete SDB_DEBUGGING_INFO, SDB_DEBUG,
6534 and SDB references.
6535 (expand_function_start): Change sdb reference to past tense.
6536 (expand_function_end): Change sdb reference to past tense.
6537 * gcc.c (cpp_unique_options): Delete gcoff3 reference.
6538 * opts.c (debug_type_names): Delete coff entry.
6539 (common_handle_option): Delete OPT_gcoff case.
6540 * system.h (SDB_DEBUG, SDB_DEBUGGING_INFO): Poison.
6541
6542 * config/dbxcoff.h (PREFERRED_DEBUGGING_TYPE): Set to DBX_DEBUG.
6543 * config/cris/cris.h: Delete SDB reference in comment.
6544 * config/i386/cygming.h: Don't define SDB_DEBUGGING_INFO.
6545 (ASM_DECLARE_FUNCTION_NAME): Delete SDB reference from comment.
6546 * config/i386/gas.h: Don't define SDB_DEBUGGING_INFO.
6547 * config/i386/i386.c (svr4_dbx_register_map): Change SDB references
6548 to past tense.
6549 (ix86_expand_prologue): Likewise.
6550 * config/i386/winnt.c (i386_pe_start_function): Don't check SDB_DEBUG.
6551 * config/ia64/ia64.h: Likewise.
6552 * config/m68k/m68kelf.h (DBX_REGISTER_NUMBER): Delete SDB reference.
6553 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Delete gcoff*
6554 support.
6555 * config/mmix/mmix.h: Likewise.
6556 * config/nds32/nds32.c: Likewise.
6557 * config/stormy/storym16.h: Likewise.
6558 * config/visium/visium.h: Likewise.
6559 * config/vx-common.h (SDB_DEBUGGING_INFO): Delete undef.
6560
6561 2017-10-28 Sandra Loosemore <sandra@codesourcery.com>
6562
6563 * config/nios2/nios2.h (FRAME_GROWS_DOWNWARD): Define to 1.
6564 * config/nios2/nios2.c (nios2_initial_elimination_offset): Make
6565 FRAME_POINTER_REGNUM point at high end of local var area.
6566
6567 2017-10-27 Eric Botcazou <ebotcazou@adacore.com>
6568
6569 * bb-reorder.c (find_traces_1_round): Fix off-by-one index.
6570 Move comment around. Do not reset best_edge for a copiable
6571 destination if the copy would cause a partition change.
6572 (better_edge_p): Remove redundant check.
6573
6574 2017-10-27 Uros Bizjak <ubizjak@gmail.com>
6575
6576 * config/i386/i386-protos.h (ix86_fp_compare_mode): Remove prototype.
6577
6578 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
6579
6580 * builtins.c (CASE_MATHFN_FLOATN): New helper macro to add cases
6581 for math functions that have _Float<N> and _Float<N>X variants.
6582 (mathfn_built_in_2): Add support for math functions that have
6583 _Float<N> and _Float<N>X variants.
6584 (DEF_INTERNAL_FLT_FLOATN_FN): New helper macro.
6585 (expand_builtin_mathfn_ternary): Add support for fma with
6586 _Float<N> and _Float<N>X variants.
6587 (expand_builtin): Likewise.
6588 (fold_builtin_3): Likewise.
6589 * builtins.def (DEF_EXT_LIB_FLOATN_NX_BUILTINS): New macro to
6590 create math function _Float<N> and _Float<N>X variants as external
6591 library builtins.
6592 (BUILT_IN_COPYSIGN _Float<N> and _Float<N>X variants) Use
6593 DEF_EXT_LIB_FLOATN_NX_BUILTINS to make built-in functions using
6594 the __builtin_ prefix and if not strict ansi, without the prefix.
6595 (BUILT_IN_FABS _Float<N> and _Float<N>X variants): Likewise.
6596 (BUILT_IN_FMA _Float<N> and _Float<N>X variants): Likewise.
6597 (BUILT_IN_FMAX _Float<N> and _Float<N>X variants): Likewise.
6598 (BUILT_IN_FMIN _Float<N> and _Float<N>X variants): Likewise.
6599 (BUILT_IN_NAN _Float<N> and _Float<N>X variants): Likewise.
6600 (BUILT_IN_SQRT _Float<N> and _Float<N>X variants): Likewise.
6601 * builtin-types.def (BT_FN_FLOAT16_FLOAT16_FLOAT16_FLOAT16): New
6602 function signatures for fma _Float<N> and _Float<N>X variants.
6603 (BT_FN_FLOAT32_FLOAT32_FLOAT32_FLOAT32): Likewise.
6604 (BT_FN_FLOAT64_FLOAT64_FLOAT64_FLOAT64): Likewise.
6605 (BT_FN_FLOAT128_FLOAT128_FLOAT128_FLOAT128): Likewise.
6606 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X_FLOAT32X): Likewise.
6607 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X_FLOAT64X): Likewise.
6608 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X_FLOAT128X): Likewise.
6609 * gencfn-macros.c (print_case_cfn): Add support for math functions
6610 that have _Float<N> and _Float<N>X variants.
6611 (print_define_operator_list): Likewise.
6612 (fltfn_suffixes): Likewise.
6613 (main): Likewise.
6614 * internal-fn.def (DEF_INTERNAL_FLT_FLOATN_FN): New helper macro
6615 for math functions that have _Float<N> and _Float<N>X variants.
6616 (SQRT): Add support for sqrt, copysign, fmin and fmax _Float<N>
6617 and _Float<N>X variants.
6618 (COPYSIGN): Likewise.
6619 (FMIN): Likewise.
6620 (FMAX): Likewise.
6621 * fold-const.c (tree_call_nonnegative_warnv_p): Add support for
6622 copysign, fma, fmax, fmin, and sqrt _Float<N> and _Float<N>X
6623 variants.
6624 (integer_valued_read_call_p): Likewise.
6625 * fold-const-call.c (fold_const_call_ss): Likewise.
6626 (fold_const_call_sss): Add support for copysign, fmin, and fmax
6627 _Float<N> and _Float<N>X variants.
6628 (fold_const_call_ssss): Add support for fma _Float<N> and
6629 _Float<N>X variants.
6630 * gimple-ssa-backprop.c (backprop::process_builtin_call_use): Add
6631 support for copysign and fma _Float<N> and _Float<N>X variants.
6632 (backprop::process_builtin_call_use): Likewise.
6633 * tree-call-cdce.c (can_test_argument_range); Add support for
6634 sqrt _Float<N> and _Float<N>X variants.
6635 (edom_only_function): Likewise.
6636 (get_no_error_domain): Likewise.
6637 * tree-ssa-math-opts.c (internal_fn_reciprocal): Likewise.
6638 * tree-ssa-reassoc.c (attempt_builtin_copysign): Add support for
6639 copysign _Float<N> and _Float<N>X variants.
6640 * config/rs6000/rs6000-builtin.def (SQRTF128): Delete, this is now
6641 handled by machine independent code.
6642 (FMAF128): Likewise.
6643 * doc/cpp.texi (Common Predefined Macros): Document defining
6644 __FP_FAST_FMAF<N> and __FP_FAST_FMAF<N>X if the backend supports
6645 fma _Float<N> and _Float<N>X variants.
6646
6647 2017-10-27 Uros Bizjak <ubizjak@gmail.com>
6648
6649 PR target/82692
6650 * config/i386/i386-modes.def (CCFPU): Remove definition.
6651 * config/i386/i386.c (put_condition_mode): Remove CCFPU mode handling.
6652 (ix86_cc_modes_compatible): Ditto.
6653 (ix86_expand_carry_flag_compare): Ditto.
6654 (ix86_expand_int_movcc): Ditto.
6655 (ix86_expand_int_addcc): Ditto.
6656 (ix86_reverse_condition): Ditto.
6657 (ix86_unordered_fp_compare): Rename from ix86_fp_compare_mode.
6658 Return true/false for unordered/ordered fp comparisons.
6659 (ix86_cc_mode): Always return CCFPmode for float mode comparisons.
6660 (ix86_prepare_fp_compare_args): Update for rename.
6661 (ix86_expand_fp_compare): Update for rename. Generate unordered
6662 compare RTXes wrapped with UNSPEC_NOTRAP unspec.
6663 (ix86_expand_sse_compare_and_jump): Ditto.
6664 * config/i386/predicates.md (fcmov_comparison_operator):
6665 Remove CCFPU mode handling.
6666 (ix86_comparison_operator): Ditto.
6667 (ix86_carry_flag_operator): Ditto.
6668 * config/i386/i386.md (UNSPEC_NOTRAP): New unspec.
6669 (*cmpu<mode>_i387): Wrap compare RTX with UNSPEC_NOTRAP unspec.
6670 (*cmpu<mode>_cc_i387): Ditto.
6671 (FPCMP): Remove mode iterator.
6672 (unord): Remove mode attribute.
6673 (unord_subst): New define_subst transformation
6674 (unord): New define_subst attribute.
6675 (unordered): Ditto.
6676 (*cmpi<unord><MODEF:mode>): Rewrite using unord_subst transformation.
6677 (*cmpi<unord>xf_i387): Ditto.
6678 * config/i386/sse.md (<sse>_<unord>comi<round_saeonly_name>): Merge
6679 from <sse>_comi<round_saeonly_name> and <sse>_ucomi<round_saeonly_name>
6680 using unord_subst transformation.
6681 * config/i386/subst.md (SUBST_A): Remove CCFP and CCFPU modes.
6682 (round_saeonly): Also handle CCFP mode.
6683 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_NOTRAP unspec.
6684 Remove UNSPEC_SAHF unspec handling.
6685
6686 2017-10-27 Jan Hubicka <hubicka@ucw.cz>
6687
6688 * x86-tune.def (X86_TUNE_INTER_UNIT_MOVES_TO_VEC): Disable for Zen.
6689
6690 2017-10-27 Jeff Law <law@redhat.com>
6691
6692 * gimple-ssa-sprintf.c: Include domwalk.h.
6693 (class sprintf_dom_walker): New class, derived from dom_walker.
6694 (sprintf_dom_walker::before_dom_children): New function.
6695 (struct call_info): Moved into sprintf_dom_walker class
6696 (compute_formath_length, handle_gimple_call): Likewise.
6697 (sprintf_length::execute): Call the dominator walker rather
6698 than walking the statements.
6699
6700 * tree-vrp.c (check_all_array_refs): Do not use wi->info to smuggle
6701 gimple statement locations.
6702 (check_array_bounds): Corresponding changes. Get the statement's
6703 location directly from wi->stmt.
6704
6705 2017-10-27 Palmer Dabbelt <palmer@dabbelt.com>
6706
6707 PR target/82717
6708 * doc/invoke.texi (RISC-V) <-mabi>: Correct and improve.
6709
6710 2017-10-27 Jan Hubicka <hubicka@ucw.cz>
6711
6712 * config/i386/x86-tune.def (X86_TUNE_PARTIAL_REG_DEPENDENCY,
6713 X86_TUNE_MOVX): Disable for Haswell and newer CPUs.
6714
6715 2017-10-27 Jakub Jelinek <jakub@redhat.com>
6716
6717 PR target/82703
6718 * config/i386/i386-protos.h (maybe_get_pool_constant): Removed.
6719 * config/i386/i386.c (maybe_get_pool_constant): Removed.
6720 (ix86_split_to_parts): Use avoid_constant_pool_reference instead of
6721 maybe_get_pool_constant.
6722 * config/i386/predicates.md (zero_extended_scalar_load_operand):
6723 Likewise.
6724
6725 2017-10-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6726
6727 * doc/install.texi (Specific, i?86-*-solaris2.10): Simplify gas
6728 2.26 caveat. Update gas and gld versions.
6729 (Specific, *-*-solaris2*): Update binutils version. Remove caveat
6730 reference.
6731
6732 2017-10-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6733
6734 * cgraph.h (set_malloc_flag): Declare.
6735 * cgraph.c (set_malloc_flag_1): New function.
6736 (set_malloc_flag): Likewise.
6737 * ipa-fnsummary.h (ipa_call_summary): Add new field is_return_callee.
6738 * ipa-fnsummary.c (ipa_call_summary::reset): Set is_return_callee to
6739 false.
6740 (read_ipa_call_summary): Add support for reading is_return_callee.
6741 (write_ipa_call_summary): Stream is_return_callee.
6742 * ipa-inline.c (ipa_inline): Remove call to ipa_free_fn_summary.
6743 * ipa-pure-const.c: Add headers ssa.h, alloc-pool.h, symbol-summary.h,
6744 ipa-prop.h, ipa-fnsummary.h.
6745 (pure_const_names): Change to static.
6746 (malloc_state_e): Define.
6747 (malloc_state_names): Define.
6748 (funct_state_d): Add field malloc_state.
6749 (varying_state): Set malloc_state to STATE_MALLOC_BOTTOM.
6750 (check_retval_uses): New function.
6751 (malloc_candidate_p): Likewise.
6752 (analyze_function): Add support for malloc attribute.
6753 (pure_const_write_summary): Stream malloc_state.
6754 (pure_const_read_summary): Add support for reading malloc_state.
6755 (dump_malloc_lattice): New function.
6756 (propagate_malloc): New function.
6757 (warn_function_malloc): New function.
6758 (ipa_pure_const::execute): Call propagate_malloc and
6759 ipa_free_fn_summary.
6760 (pass_local_pure_const::execute): Add support for malloc attribute.
6761 * ssa-iterators.h (RETURN_FROM_IMM_USE_STMT): New macro.
6762 * doc/invoke.texi: Document Wsuggest-attribute=malloc.
6763
6764 2017-10-27 Martin Liska <mliska@suse.cz>
6765
6766 PR gcov-profile/82457
6767 * doc/invoke.texi: Document that one needs a non-strict ISO mode
6768 for fork-like functions to be properly instrumented.
6769
6770 2017-10-27 Richard Biener <rguenther@suse.de>
6771
6772 PR middle-end/81659
6773 * tree-eh.c (pass_lower_eh_dispatch::execute): Free dominator
6774 info when we redirected EH.
6775
6776 2017-10-26 Michael Collison <michael.collison@arm.com>
6777
6778 * config/aarch64/aarch64.md(<optab>_trunc><vf><GPI:mode>2):
6779 New pattern.
6780 (<optab>_trunchf<GPI:mode>2: New pattern.
6781 (<optab>_trunc<vgp><GPI:mode>2: New pattern.
6782 * config/aarch64/iterators.md (wv): New mode attribute.
6783 (vf, VF): New mode attributes.
6784 (vgp, VGP): New mode attributes.
6785 (s): Update attribute with SImode and DImode prefixes.
6786
6787 2017-10-26 Sandra Loosemore <sandra@codesourcery.com>
6788
6789 * config/nios2/constraints.md ("S"): Match r0rel_constant_p too.
6790 * config/nios2/nios2-protos.h (r0rel_constant_p): Declare.
6791 * config/nios2/nios2.c: (nios2_r0rel_sec_regex): New.
6792 (nios2_option_overide): Initialize it. Don't allow R0-relative
6793 addressing with PIC.
6794 (nios2_rtx_costs): Handle r0rel_constant_p like gprel_constant_p.
6795 (nios2_symbolic_constant_p): Likewise.
6796 (nios2_legitimate_address_p): Likewise.
6797 (nios2_r0rel_section_name_p): New.
6798 (nios2_symbol_ref_in_r0rel_data_p): New.
6799 (nios2_emit_move_sequence): Handle r0rel_constant_p.
6800 (r0rel_constant_p): New.
6801 (nios2_print_operand_address): Handle r0rel_constant_p.
6802 (nios2_cdx_narrow_form_p): Likewise.
6803 * config/nios2/nios2.opt (mr0rel-sec=): New option.
6804 * doc/invoke.texi (Option Summary): Add -mr0rel-sec.
6805 (Nios II Options): Document -mr0rel-sec.
6806
6807 2017-10-26 Sandra Loosemore <sandra@codesourcery.com>
6808
6809 * config/nios2/nios2.c: Include xregex.h.
6810 (nios2_gprel_sec_regex): New.
6811 (nios2_option_overide): Initialize it. Don't allow GP-relative
6812 addressing with PIC.
6813 (nios2_small_section_name_p): Check for regex match.
6814 * config/nios2/nios2.opt (mgprel-sec=): New option.
6815 * doc/invoke.texi (Option Summary): Add -mgprel-sec.
6816 (Nios II Options): Document -mgprel-sec.
6817
6818 2017-10-26 Jim Wilson <wilson@tuliptree.org>
6819
6820 * doc/invoke.texi (-fdebug-prefix-map): Expand documentation.
6821
6822 2017-10-26 Tom de Vries <tom@codesourcery.com>
6823
6824 PR tree-optimization/82707
6825 * gimple.c (gimple_copy): Fix unsharing of
6826 GIMPLE_OMP_{SINGLE,TARGET,TEAMS}.
6827
6828 2017-10-26 Olga Makhotina <olga.makhotina@intel.com>
6829
6830 * config/i386/avx512fintrin.h (_mm512_cmpeq_pd_mask,
6831 _mm512_cmple_pd_mask, _mm512_cmplt_pd_mask,
6832 _mm512_cmpneq_pd_mask, _mm512_cmpnle_pd_mask,
6833 _mm512_cmpnlt_pd_mask, _mm512_cmpord_pd_mask,
6834 _mm512_cmpunord_pd_mask, _mm512_mask_cmpeq_pd_mask,
6835 _mm512_mask_cmple_pd_mask, _mm512_mask_cmplt_pd_mask,
6836 _mm512_mask_cmpneq_pd_mask, _mm512_mask_cmpnle_pd_mask,
6837 _mm512_mask_cmpnlt_pd_mask, _mm512_mask_cmpord_pd_mask,
6838 _mm512_mask_cmpunord_pd_mask, _mm512_cmpeq_ps_mask,
6839 _mm512_cmple_ps_mask, _mm512_cmplt_ps_mask,
6840 _mm512_cmpneq_ps_mask, _mm512_cmpnle_ps_mask,
6841 _mm512_cmpnlt_ps_mask, _mm512_cmpord_ps_mask,
6842 _mm512_cmpunord_ps_mask, _mm512_mask_cmpeq_ps_mask,
6843 _mm512_mask_cmple_ps_mask, _mm512_mask_cmplt_ps_mask,
6844 _mm512_mask_cmpneq_ps_mask, _mm512_mask_cmpnle_ps_mask,
6845 _mm512_mask_cmpnlt_ps_mask, _mm512_mask_cmpord_ps_mask,
6846 _mm512_mask_cmpunord_ps_mask): New intrinsics.
6847
6848 2017-10-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6849
6850 * config/rs6000/aix.h (TARGET_IEEEQUAD_DEFAULT): Set long double
6851 default to IBM.
6852 * config/rs6000/darwin.h (TARGET_IEEEQUAD_DEFAULT): Likewise.
6853 * config/rs6000/rs6000.opt (-mabi=ieeelongdouble): Move the
6854 warning to rs6000.c. Remove the Undocumented flag, since it has
6855 been documented.
6856 (-mabi=ibmlongdouble): Likewise.
6857 * config/rs6000/rs6000.c (TARGET_IEEEQUAD_DEFAULT): If it is not
6858 already set, set the default format for long double.
6859 (rs6000_debug_reg_global): Print whether long double is IBM or
6860 IEEE.
6861 (rs6000_option_override_internal): Rework setting long double
6862 format. Only warn if the user is changing the long double default
6863 and they did not use -Wno-psabi.
6864 * doc/invoke.texi (PowerPC options): Update the documentation for
6865 -mabi=ieeelongdouble and -mabi=ibmlongdouble.
6866
6867 2017-10-26 Richard Sandiford <richard.sandiford@linaro.org>
6868 Alan Hayward <alan.hayward@arm.com>
6869 David Sherwood <david.sherwood@arm.com>
6870
6871 * rtl.h (wider_subreg_mode): New function.
6872 * ira.h (ira_sort_regnos_for_alter_reg): Take a machine_mode *
6873 rather than an unsigned int *.
6874 * ira-color.c (regno_max_ref_width): Replace with...
6875 (regno_max_ref_mode): ...this new variable.
6876 (coalesced_pseudo_reg_slot_compare): Update accordingly.
6877 Use wider_subreg_mode.
6878 (ira_sort_regnos_for_alter_reg): Likewise. Take a machine_mode *
6879 rather than an unsigned int *.
6880 * lra-constraints.c (uses_hard_regs_p): Use wider_subreg_mode.
6881 (process_alt_operands): Likewise.
6882 (invariant_p): Likewise.
6883 * lra-spills.c (assign_mem_slot): Likewise.
6884 (add_pseudo_to_slot): Likewise.
6885 * lra.c (collect_non_operand_hard_regs): Likewise.
6886 (add_regs_to_insn_regno_info): Likewise.
6887 * reload1.c (regno_max_ref_width): Replace with...
6888 (regno_max_ref_mode): ...this new variable.
6889 (reload): Update accordingly. Update call to
6890 ira_sort_regnos_for_alter_reg.
6891 (alter_reg): Update to use regno_max_ref_mode. Call wider_subreg_mode.
6892 (init_eliminable_invariants): Update to use regno_max_ref_mode.
6893 (scan_paradoxical_subregs): Likewise.
6894
6895 2017-10-26 Wilco Dijkstra <wdijkstr@arm.com>
6896
6897 * config/aarch64/aarch64.h (EXIT_IGNORE_STACK): Set if alloca is used.
6898 (aarch64_frame): Add emit_frame_chain boolean.
6899 * config/aarch64/aarch64.c (aarch64_frame_pointer_required)
6900 Move eh_return case to aarch64_layout_frame.
6901 (aarch64_layout_frame): Initialize emit_frame_chain.
6902 (aarch64_expand_prologue): Use emit_frame_chain.
6903
6904 2017-10-26 Wilco Dijkstra <wdijkstr@arm.com>
6905
6906 * config/aarch64/aarch64.c (aarch64_layout_frame):
6907 Ensure LR is always stored at the bottom of the callee-saves.
6908 Remove rarely used frame layout which saves callee-saves at top of
6909 frame, so the store of LR can be used as a valid probe in all cases.
6910
6911 2017-10-26 Wilco Dijkstra <wdijkstr@arm.com>
6912
6913 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
6914 Improve unaligned TImode/TFmode base/offset split.
6915
6916 2017-10-26 Richard Sandiford <richard.sandiford@linaro.org>
6917 Alan Hayward <alan.hayward@arm.com>
6918 David Sherwood <david.sherwood@arm.com>
6919
6920 * caller-save.c (mark_referenced_regs): Use read_modify_subreg_p.
6921 * combine.c (find_single_use_1): Likewise.
6922 (expand_field_assignment): Likewise.
6923 (move_deaths): Likewise.
6924 * lra-constraints.c (simplify_operand_subreg): Likewise.
6925 (curr_insn_transform): Likewise.
6926 * lra.c (collect_non_operand_hard_regs): Likewise.
6927 (add_regs_to_insn_regno_info): Likewise.
6928 * rtlanal.c (reg_referenced_p): Likewise.
6929 (covers_regno_no_parallel_p): Likewise.
6930
6931 2017-10-26 Richard Sandiford <richard.sandiford@linaro.org>
6932
6933 * wide-int-print.cc (print_hex): Loop based on extract_uhwi.
6934 Don't print any bits outside the precision of the value.
6935 * wide-int.cc (test_printing): Add some new tests.
6936
6937 2017-10-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6938
6939 * configure.ac (gcc_cv_as_ix86_xbrace_comment): Check if assembler
6940 supports -xbrace_comment option.
6941 * configure: Regenerate.
6942 * config.in: Regenerate.
6943 * config/i386/sol2.h (ASM_XBRACE_COMMENT_SPEC): Define.
6944 (ASM_CPU_SPEC): Use it.
6945
6946 2017-10-26 Richard Sandiford <richard.sandiford@linaro.org>
6947
6948 * target.def (static_rtx_alignment): New hook.
6949 * targhooks.h (default_static_rtx_alignment): Declare.
6950 * targhooks.c (default_static_rtx_alignment): New function.
6951 * doc/tm.texi.in (TARGET_STATIC_RTX_ALIGNMENT): New hook.
6952 * doc/tm.texi: Regenerate.
6953 * varasm.c (force_const_mem): Use targetm.static_rtx_alignment
6954 instead of targetm.constant_alignment. Remove call to
6955 set_mem_attributes.
6956 * config/cris/cris.c (TARGET_STATIC_RTX_ALIGNMENT): Redefine.
6957 (cris_preferred_mininum_alignment): New function, split out from...
6958 (cris_constant_alignment): ...here.
6959 (cris_static_rtx_alignment): New function.
6960 * config/i386/i386.c (ix86_static_rtx_alignment): New function,
6961 split out from...
6962 (ix86_constant_alignment): ...here.
6963 (TARGET_STATIC_RTX_ALIGNMENT): Redefine.
6964 * config/mmix/mmix.c (TARGET_STATIC_RTX_ALIGNMENT): Redefine.
6965 (mmix_static_rtx_alignment): New function.
6966 * config/spu/spu.c (spu_static_rtx_alignment): New function.
6967 (TARGET_STATIC_RTX_ALIGNMENT): Redefine.
6968
6969 2017-10-26 Tamar Christina <tamar.christina@arm.com>
6970
6971 PR target/81800
6972 * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2):
6973 Add flag_trapping_math and flag_fp_int_builtin_inexact.
6974
6975 2017-10-25 Palmer Dabbelt <palmer@dabbelt.com>
6976
6977 * config/riscv/riscv.md (ZERO_EXTEND_LOAD): Define.
6978 * config/riscv/pic.md (local_pic_load): Rename to local_pic_load_s,
6979 mark as a sign-extending load.
6980 (local_pic_load_u): Define.
6981
6982 2017-10-25 Eric Botcazou <ebotcazou@adacore.com>
6983
6984 PR middle-end/82062
6985 * fold-const.c (operand_equal_for_comparison_p): Also return true
6986 if ARG0 is a simple variant of ARG1 with narrower precision.
6987 (fold_ternary_loc): Always pass unstripped operands to the predicate.
6988
6989 2017-10-25 Jan Hubicka <hubicka@ucw.cz>
6990
6991 * i386.c (ix86_builtin_vectorization_cost): Compute scatter/gather
6992 cost correctly.
6993 * i386.h (processor_costs): Add gather_static, gather_per_elt,
6994 scatter_static, scatter_per_elt.
6995 * x86-tune-costs.h: Add new cost entries.
6996
6997 2017-10-25 Richard Biener <rguenther@suse.de>
6998
6999 * tree-ssa-sccvn.h (vn_eliminate): Declare.
7000 * tree-ssa-pre.c (class eliminate_dom_walker, eliminate,
7001 class pass_fre): Move to ...
7002 * tree-ssa-sccvn.c (class eliminate_dom_walker, vn_eliminate,
7003 class pass_fre): ... here and adjust for statistics.
7004
7005 2017-10-25 Jakub Jelinek <jakub@redhat.com>
7006
7007 PR libstdc++/81706
7008 * attribs.c (attribute_value_equal): Use omp_declare_simd_clauses_equal
7009 for comparison of OMP_CLAUSEs regardless of flag_openmp{,_simd}.
7010 (duplicate_one_attribute, copy_attributes_to_builtin): New functions.
7011 * attribs.h (duplicate_one_attribute, copy_attributes_to_builtin): New
7012 declarations.
7013
7014 2017-10-25 Richard Biener <rguenther@suse.de>
7015
7016 * tree-ssa-pre.c (need_eh_cleanup, need_ab_cleanup, el_to_remove,
7017 el_to_fixup, el_todo, el_avail, el_avail_stack, eliminate_avail,
7018 eliminate_push_avail, eliminate_insert): Move inside...
7019 (class eliminate_dom_walker): ... this class in preparation
7020 of move.
7021 (fini_eliminate): Remove by merging with ...
7022 (eliminate): ... this function. Adjust for class changes.
7023 (pass_pre::execute): Remove fini_eliminate call.
7024 (pass_fre::execute): Likewise.
7025
7026 2017-10-24 Jakub Jelinek <jakub@redhat.com>
7027
7028 PR target/82460
7029 * config/i386/sse.md (UNSPEC_VPERMI2, UNSPEC_VPERMI2_MASK): Remove.
7030 (VPERMI2, VPERMI2I): New mode iterators.
7031 (<avx512>_vpermi2var<mode>3_maskz): Remove 3 define_expand patterns.
7032 (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Remove 3 define_insn
7033 patterns.
7034 (<avx512>_vpermi2var<mode>3_mask): New define_expand using VPERMI2
7035 mode iterator. Remove 3 old define_insn patterns.
7036 (*<avx512>_vpermi2var<mode>3_mask): 2 new define_insn patterns.
7037 (<avx512>_vpermt2var<mode>3_maskz): Adjust 1 define_expand to use
7038 VPERMI2 mode iterator, remove the other two expanders.
7039 (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Adjust 1 define_insn
7040 to use VPERMI2 mode iterator, add another alternative for vpermi2*
7041 instructions, remove the other two patterns.
7042 (<avx512>_vpermt2var<mode>3_mask): Adjust 1 define_insn to use VPERMI2
7043 mode iterator, remove the other two patterns.
7044 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Renamed to ...
7045 (ix86_expand_vec_perm_vpermt2): ... this. Swap mask and op0
7046 arguments, use gen_*vpermt2* expanders instead of gen_*vpermi2*
7047 and adjust argument order accordingly.
7048 (ix86_expand_vec_perm): Adjust caller.
7049 (expand_vec_perm_1): Likewise.
7050 (expand_vec_perm_vpermi2_vpshub2): Rename to ...
7051 (expand_vec_perm_vpermt2_vpshub2): ... this.
7052 (ix86_expand_vec_perm_const_1): Adjust caller.
7053 (ix86_vectorize_vec_perm_const_ok): Adjust comments.
7054
7055 PR target/82370
7056 * config/i386/sse.md (VIMAX_AVX2): Remove V4TImode.
7057 (VIMAX_AVX2_AVX512BW, VIMAX_AVX512VL): New mode iterators.
7058 (vec_shl_<mode>): Remove unused expander.
7059 (avx512bw_<shift_insn><mode>3): New define_insn.
7060 (<sse2_avx2>_ashl<mode>3, <sse2_avx2>_lshr<mode>3): Replaced by ...
7061 (<sse2_avx2>_<shift_insn><mode>3): ... this. New define_insn.
7062
7063 2017-10-24 Paolo Carlini <paolo.carlini@oracle.com>
7064
7065 PR c++/82466
7066 * doc/invoke.texi ([Wbuiltin-declaration-mismatch]): Extend
7067 description.
7068
7069 2017-10-24 Wilco Dijkstra <wdijkstr@arm.com>
7070
7071 PR rtl-optimization/82396
7072 * gcc/haifa-sched.c (ready_sort_real): Remove qsort workaround.
7073 (autopref_multipass_init): Simplify initialization.
7074 (autopref_rank_data): Simplify sort order.
7075 * gcc/sched-int.h (autopref_multipass_data_): Remove
7076 multi_mem_insn_p, min_offset and max_offset.
7077
7078 2017-10-24 Wilco Dijkstra <wdijkstr@arm.com>
7079
7080 PR middle-end/60580
7081 * config/aarch64/aarch64.c (aarch64_frame_pointer_required)
7082 Check special value of flag_omit_frame_pointer.
7083 (aarch64_can_eliminate): Likewise.
7084 (aarch64_override_options_after_change_1): Simplify handling of
7085 -fomit-frame-pointer and -fomit-leaf-frame-pointer.
7086
7087 2017-10-24 Richard Biener <rguenther@suse.de>
7088
7089 PR tree-optimization/82697
7090 * tree-ssa-phiopt.c (cond_store_replacement): Use alias-set
7091 zero for conditional load and unconditional store.
7092
7093 2017-10-24 H.J. Lu <hongjiu.lu@intel.com>
7094
7095 * doc/install.texi: Document bootstrap-cet.
7096
7097 2017-10-24 H.J. Lu <hongjiu.lu@intel.com>
7098
7099 PR target/82659
7100 * config/i386/i386.c (rest_of_insert_endbranch): Don't insert
7101 ENDBR instruction at function entrance if function is only
7102 called directly.
7103
7104 2017-10-24 Jakub Jelinek <jakub@redhat.com>
7105
7106 PR target/82628
7107 * config/i386/i386.md (addcarry<mode>, subborrow<mode>): Change
7108 patterns to better describe from which operation the CF is computed.
7109 (addcarry<mode>_0, subborrow<mode>_0): New patterns.
7110 * config/i386/i386.c (ix86_expand_builtin) <case handlecarry>: Pass
7111 one LTU with [DT]Imode and another one with [SD]Imode. If arg0
7112 is 0, use _0 suffixed expanders instead of emitting a comparison
7113 before it.
7114
7115 2017-10-06 Sergey Shalnov <Sergey.Shalnov@intel.com>
7116
7117 * config/i386/i386.md(*movsf_internal, *movdf_internal):
7118 Avoid 512-bit AVX modes for TARGET_PREFER_AVX256.
7119
7120 2017-10-24 Eric Botcazou <ebotcazou@adacore.com>
7121
7122 PR middle-end/82569
7123 * tree-outof-ssa.h (always_initialized_rtx_for_ssa_name_p): Delete.
7124 * expr.c (expand_expr_real_1) <expand_decl_rtl>: Revert latest change.
7125 * loop-iv.c (iv_get_reaching_def): Likewise.
7126 * cfgexpand.c (expand_one_ssa_partition): Initialize the RTX if the
7127 variable is promoted and the partition contains undefined values.
7128
7129 2017-10-23 Sandra Loosemore <sandra@codesourcery.com>
7130
7131 * config/nios2/nios2.c (nios2_rtx_costs): Make costs better
7132 reflect reality.
7133 (nios2_address_cost): Define.
7134 (nios2_legitimize_address): Recognize (exp + constant) directly.
7135 (TARGET_ADDRESS_COST): Define.
7136
7137 2017-10-23 Sandra Loosemore <sandra@codesourcery.com>
7138
7139 * config/nios2/nios2-protos.h (nios2_large_constant_p): Declare.
7140 (nios2_symbolic_memory_operand_p): Declare.
7141 (nios2_split_large_constant): Declare.
7142 (nios2_split_symbolic_memory_operand): Declare.
7143 * config/nios2/nios2.c: Adjust includes.
7144 (nios2_symbolic_constant_allowed): New.
7145 (nios2_symbolic_constant_p): New.
7146 (nios2_plus_symbolic_constant_p): New.
7147 (nios2_valid_addr_expr_p): Recognize addresses involving
7148 symbolic constants.
7149 (nios2_legitimate_address_p): Likewise, also LO_SUM.
7150 (nios2_symbolic_memory_operand_p): New.
7151 (nios2_large_constant_p): New.
7152 (nios2_split_large_constant): New.
7153 (nios2_split_plus_large_constant): New.
7154 (nios2_split_symbolic_memory_operand): New.
7155 (nios2_legitimize_address): Code refactoring. Handle addresses
7156 involving symbolic constants.
7157 (nios2_emit_move_sequence): Likewise.
7158 (nios2_print_operand): Improve error output.
7159 (nios2_print_operand_address): Handle LO_SUM.
7160 (nios2_cdx_narrow_form_p): Likewise.
7161 * config/nios2/nios2.md (movqi_internal): Add splitter for memory
7162 operands involving symbolic constants.
7163 (movhi_internal, movsi_internal): Likewise.
7164 (zero_extendhisi2, zero_extendqi<mode>2): Likewise.
7165 (extendhisi2, extendqi<mode>2): Likewise.
7166
7167 2017-10-23 Sandra Loosemore <sandra@codesourcery.com>
7168
7169 * tree-pass.h (PROP_rtl_split_insns): Define.
7170 * recog.c (pass_data_split_all_insns): Provide PROP_rtl_split_insns.
7171
7172 2017-10-23 Sandra Loosemore <sandra@codesourcery.com>
7173
7174 * config/nios2/nios2.c (TARGET_LRA_P): Don't override.
7175
7176 2017-10-23 Jakub Jelinek <jakub@redhat.com>
7177
7178 PR debug/82630
7179 * target.def (const_not_ok_for_debug_p): Default to
7180 default_const_not_ok_for_debug_p instead of hook_bool_rtx_false.
7181 * targhooks.h (default_const_not_ok_for_debug_p): New declaration.
7182 * targhooks.c (default_const_not_ok_for_debug_p): New function.
7183 * dwarf2out.c (const_ok_for_output_1): Only reject UNSPECs for
7184 which targetm.const_not_ok_for_debug_p returned true.
7185 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Return true
7186 for UNSPECs.
7187 * config/powerpcspe/powerpcspe.c (rs6000_const_not_ok_for_debug_p):
7188 Likewise.
7189 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): Likewise.
7190 * config/i386/i386.c (ix86_delegitimize_address_1): Don't delegitimize
7191 UNSPEC_GOTOFF with addend into addend - _GLOBAL_OFFSET_TABLE_ + symbol
7192 if !base_term_p.
7193 (ix86_const_not_ok_for_debug_p): New function.
7194 (i386_asm_output_addr_const_extra): Handle UNSPEC_GOTOFF.
7195 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
7196
7197 2017-10-23 David Malcolm <dmalcolm@redhat.com>
7198
7199 PR bootstrap/82610
7200 * system.h: Conditionally include "unique-ptr.h" if
7201 INCLUDE_UNIQUE_PTR is defined.
7202 * unique-ptr-tests.cc: Remove include of "unique-ptr.h" in favor
7203 of defining INCLUDE_UNIQUE_PTR before including "system.h".
7204
7205 2017-10-23 Sebastian Perta <sebastian.perta@renesas.com>
7206
7207 * config/rl78/rl78.md: New define_expand "subdi3".
7208
7209 2017-10-23 H.J. Lu <hongjiu.lu@intel.com>
7210
7211 PR target/82673
7212 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Skip
7213 DF_REF_INSN if DF_REF_INSN_INFO is false.
7214
7215 2017-10-23 Jan Hubicka <hubicka@ucw.cz>
7216
7217 * i386.c (dimode_scalar_chain::compute_convert_gain): Use
7218 xmm_move instead of sse_move.
7219 (sse_store_index): New function.
7220 (ix86_register_move_cost): Be more sensible about mismatch stall;
7221 model AVX moves correctly; make difference between sse->integer and
7222 integer->sse.
7223 (ix86_builtin_vectorization_cost): Model correctly aligned and unaligned
7224 moves; make difference between SSE and AVX.
7225 * i386.h (processor_costs): Remove sse_move; add xmm_move, ymm_move
7226 and zmm_move. Increase size of sse load and store tables;
7227 add unaligned load and store tables; add ssemmx_to_integer.
7228 * x86-tune-costs.h: Update all entries according to real
7229 move latencies from Agner Fog's manual and chip documentation.
7230
7231 2017-10-23 Jakub Jelinek <jakub@redhat.com>
7232
7233 PR target/82628
7234 * config/i386/predicates.md (x86_64_dwzext_immediate_operand): New.
7235 * config/i386/constraints.md (Wf): New constraint.
7236 * config/i386/i386.md (UNSPEC_SBB): New unspec.
7237 (cmp<dwi>_doubleword): Removed.
7238 (sub<mode>3_carry_ccc, *sub<mode>3_carry_ccc_1): New patterns.
7239 (sub<mode>3_carry_ccgz): Use unspec instead of compare.
7240 * config/i386/i386.c (ix86_expand_branch) <case E_TImode>: Don't
7241 expand with cmp<dwi>_doubleword. For LTU and GEU use
7242 sub<mode>3_carry_ccc instead of sub<mode>3_carry_ccgz and use CCCmode.
7243
7244 * common.opt (gcolumn-info): Enable by default.
7245 * doc/invoke.texi (gcolumn-info): Document new default.
7246
7247 2017-10-23 Richard Biener <rguenther@suse.de>
7248
7249 PR tree-optimization/82672
7250 * graphite-isl-ast-to-gimple.c (graphite_copy_stmts_from_block):
7251 Fold the stmt if we propagated into it.
7252
7253 2017-10-23 Richard Biener <rguenther@suse.de>
7254
7255 * tree-ssa-pre.c (bitmap_remove_from_set): Rename to...
7256 (bitmap_remove_expr_from_set): ... this. All callers call this
7257 for non-constant values.
7258 (bitmap_set_subtract): Rename to...
7259 (bitmap_set_subtract_expressions): ... this. Adjust and
7260 optimize.
7261 (bitmap_set_contains_value): Remove superfluous check.
7262 (bitmap_set_replace_value): Inline into single caller ...
7263 (bitmap_value_replace_in_set): ... here and simplify.
7264 (dependent_clean): Merge into ...
7265 (clean): ... this using an overload. Adjust.
7266 (prune_clobbered_mems): Adjust.
7267 (compute_antic_aux): Likewise.
7268 (compute_partial_antic_aux): Likewise.
7269
7270 2017-10-23 Richard Biener <rguenther@suse.de>
7271
7272 PR tree-optimization/82129
7273 Revert
7274 2017-08-01 Richard Biener <rguenther@suse.de>
7275
7276 PR tree-optimization/81181
7277 * tree-ssa-pre.c (compute_antic_aux): Defer clean() to ...
7278 (compute_antic): ... end of iteration here.
7279
7280 2017-10-23 Richard Sandiford <richard.sandiford@linaro.org>
7281
7282 * target.def (starting_frame_offset): New hook.
7283 * doc/tm.texi (STARTING_FRAME_OFFSET): Remove in favor of...
7284 (TARGET_STARTING_FRAME_OFFSET): ...this new hook.
7285 * doc/tm.texi.in: Regenerate.
7286 * hooks.h (hook_hwi_void_0): Declare.
7287 * hooks.c (hook_hwi_void_0): New function.
7288 * doc/rtl.texi: Refer to TARGET_STARTING_FRAME_OFFSET instead of
7289 STARTING_FRAME_OFFSET.
7290 * builtins.c (expand_builtin_setjmp_receiver): Likewise.
7291 * reload1.c (reload): Likewise.
7292 * cfgexpand.c (expand_used_vars): Use targetm.starting_frame_offset
7293 instead of STARTING_FRAME_OFFSET.
7294 * function.c (try_fit_stack_local): Likewise.
7295 (assign_stack_local_1): Likewise
7296 (instantiate_virtual_regs): Likewise.
7297 * rtlanal.c (rtx_addr_can_trap_p_1): Likewise.
7298 * config/avr/avr.md (nonlocal_goto_receiver): Likewise.
7299 * config/aarch64/aarch64.h (STARTING_FRAME_OFFSET): Delete.
7300 * config/alpha/alpha.h (STARTING_FRAME_OFFSET): Likewise.
7301 * config/arc/arc.h (STARTING_FRAME_OFFSET): Likewise.
7302 * config/arm/arm.h (STARTING_FRAME_OFFSET): Likewise.
7303 * config/bfin/bfin.h (STARTING_FRAME_OFFSET): Likewise.
7304 * config/c6x/c6x.h (STARTING_FRAME_OFFSET): Likewise.
7305 * config/cr16/cr16.h (STARTING_FRAME_OFFSET): Likewise.
7306 * config/cris/cris.h (STARTING_FRAME_OFFSET): Likewise.
7307 * config/fr30/fr30.h (STARTING_FRAME_OFFSET): Likewise.
7308 * config/frv/frv.h (STARTING_FRAME_OFFSET): Likewise.
7309 * config/ft32/ft32.h (STARTING_FRAME_OFFSET): Likewise.
7310 * config/h8300/h8300.h (STARTING_FRAME_OFFSET): Likewise.
7311 * config/i386/i386.h (STARTING_FRAME_OFFSET): Likewise.
7312 * config/ia64/ia64.h (STARTING_FRAME_OFFSET): Likewise.
7313 * config/m32c/m32c.h (STARTING_FRAME_OFFSET): Likewise.
7314 * config/m68k/m68k.h (STARTING_FRAME_OFFSET): Likewise.
7315 * config/mcore/mcore.h (STARTING_FRAME_OFFSET): Likewise.
7316 * config/mn10300/mn10300.h (STARTING_FRAME_OFFSET): Likewise.
7317 * config/moxie/moxie.h (STARTING_FRAME_OFFSET): Likewise.
7318 * config/msp430/msp430.h (STARTING_FRAME_OFFSET): Likewise.
7319 * config/nds32/nds32.h (STARTING_FRAME_OFFSET): Likewise.
7320 * config/nios2/nios2.h (STARTING_FRAME_OFFSET): Likewise.
7321 * config/nvptx/nvptx.h (STARTING_FRAME_OFFSET): Likewise.
7322 * config/pdp11/pdp11.h (STARTING_FRAME_OFFSET): Likewise.
7323 * config/riscv/riscv.h (STARTING_FRAME_OFFSET): Likewise.
7324 * config/rl78/rl78.h (STARTING_FRAME_OFFSET): Likewise.
7325 * config/rx/rx.h (STARTING_FRAME_OFFSET): Likewise.
7326 * config/s390/s390.h (STARTING_FRAME_OFFSET): Likewise.
7327 * config/sh/sh.h (STARTING_FRAME_OFFSET): Likewise.
7328 * config/sparc/sparc.c (sparc_compute_frame_size): Likewise.
7329 * config/sparc/sparc.h (STARTING_FRAME_OFFSET): Likewise.
7330 * config/spu/spu.h (STARTING_FRAME_OFFSET): Likewise.
7331 * config/stormy16/stormy16.h (STARTING_FRAME_OFFSET): Likewise.
7332 * config/tilegx/tilegx.h (STARTING_FRAME_OFFSET): Likewise.
7333 * config/tilepro/tilepro.h (STARTING_FRAME_OFFSET): Likewise.
7334 * config/v850/v850.h (STARTING_FRAME_OFFSET): Likewise.
7335 * config/visium/visium.h (STARTING_FRAME_OFFSET): Likewise.
7336 * config/avr/avr.h (STARTING_FRAME_OFFSET): Likewise.
7337 * config/avr/avr-protos.h (avr_starting_frame_offset): Likewise.
7338 * config/avr/avr.c (avr_starting_frame_offset): Make static and
7339 return a HOST_WIDE_INT.
7340 (avr_builtin_setjmp_frame_value): Use it instead of
7341 STARTING_FRAME_OFFSET.
7342 (TARGET_STARTING_FRAME_OFFSET): Redefine.
7343 * config/epiphany/epiphany.h (STARTING_FRAME_OFFSET): Delete.
7344 * config/epiphany/epiphany.c (epiphany_starting_frame_offset):
7345 New function.
7346 (TARGET_STARTING_FRAME_OFFSET): Redefine.
7347 * config/iq2000/iq2000.h (STARTING_FRAME_OFFSET): Delete.
7348 * config/iq2000/iq2000.c (iq2000_starting_frame_offset): New function.
7349 (TARGET_CONSTANT_ALIGNMENT): Redefine.
7350 * config/lm32/lm32.h (STARTING_FRAME_OFFSET): Delete.
7351 * config/lm32/lm32.c (lm32_starting_frame_offset): New function.
7352 (TARGET_STARTING_FRAME_OFFSET): Redefine.
7353 * config/m32r/m32r.h (STARTING_FRAME_OFFSET): Delete.
7354 * config/m32r/m32r.c (m32r_starting_frame_offset): New function.
7355 (TARGET_STARTING_FRAME_OFFSET): Redefine.
7356 * config/microblaze/microblaze.h (STARTING_FRAME_OFFSET): Delete.
7357 * config/microblaze/microblaze.c (microblaze_starting_frame_offset):
7358 New function.
7359 (TARGET_STARTING_FRAME_OFFSET): Redefine.
7360 * config/mips/mips.h (STARTING_FRAME_OFFSET): Delete.
7361 * config/mips/mips.c (mips_compute_frame_info): Refer to
7362 TARGET_STARTING_FRAME_OFFSET instead of STARTING_FRAME_OFFSET.
7363 (mips_starting_frame_offset): New function.
7364 (TARGET_STARTING_FRAME_OFFSET): Redefine.
7365 * config/mmix/mmix.h (STARTING_FRAME_OFFSET): Delete.
7366 * config/mmix/mmix-protos.h (mmix_starting_frame_offset): Delete.
7367 * config/mmix/mmix.c (mmix_starting_frame_offset): Make static
7368 and return a HOST_WIDE_INT.
7369 (TARGET_STARTING_FRAME_OFFSET): Redefine.
7370 (mmix_initial_elimination_offset): Refer to
7371 TARGET_STARTING_FRAME_OFFSET instead of STARTING_FRAME_OFFSET.
7372 * config/pa/pa.h (STARTING_FRAME_OFFSET): Delete.
7373 * config/pa/pa.c (pa_starting_frame_offset): New function.
7374 (pa_compute_frame_size): Use it instead of STARTING_FRAME_OFFSET.
7375 (pa_expand_prologue): Likewise.
7376 (TARGET_STARTING_FRAME_OFFSET): Redefine.
7377 * config/powerpcspe/aix.h (STARTING_FRAME_OFFSET): Split out
7378 !FRAME_GROWS_DOWNWARD handling to...
7379 (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
7380 * config/powerpcspe/darwin.h (STARTING_FRAME_OFFSET): Split out
7381 !FRAME_GROWS_DOWNWARD handling to...
7382 (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
7383 * config/powerpcspe/powerpcspe.h (STARTING_FRAME_OFFSET): Split out
7384 !FRAME_GROWS_DOWNWARD handling to...
7385 (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
7386 * config/powerpcspe/powerpcspe.c (TARGET_STARTING_FRAME_OFFSET):
7387 Redefine.
7388 (rs6000_starting_frame_offset): New function.
7389 * config/rs6000/aix.h (STARTING_FRAME_OFFSET): Split out
7390 !FRAME_GROWS_DOWNWARD handling to...
7391 (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
7392 * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Split out
7393 !FRAME_GROWS_DOWNWARD handling to...
7394 (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
7395 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET): Split out
7396 !FRAME_GROWS_DOWNWARD handling to...
7397 (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
7398 * config/rs6000/rs6000.c (TARGET_STARTING_FRAME_OFFSET): Refine.
7399 (rs6000_starting_frame_offset): New function.
7400 * config/vax/elf.h (STARTING_FRAME_OFFSET): Delete.
7401 * config/vax/vax.h (STARTING_FRAME_OFFSET): Delete.
7402 * config/vax/vax.c (vax_starting_frame_offset): New function.
7403 (vax_expand_prologue): Use it instead of STARTING_FRAME_OFFSET.
7404 (TARGET_STARTING_FRAME_OFFSET): Redefine.
7405 * config/xtensa/xtensa.h (STARTING_FRAME_OFFSET): Delete.
7406 * config/xtensa/xtensa.c (xtensa_starting_frame_offset): New function.
7407 (TARGET_STARTING_FRAME_OFFSET): Redefine.
7408 * system.h (STARTING_FRAME_OFFSET): Poison.
7409
7410 2017-10-23 Richard Sandiford <richard.sandiford@linaro.org>
7411
7412 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7413 SCALAR_TYPE_MODE instead of TYPE_MODE.
7414
7415 2017-10-23 Richard Sandiford <richard.sandiford@linaro.org>
7416 Alan Hayward <alan.hayward@arm.com>
7417 David Sherwood <david.sherwood@arm.com>
7418
7419 * dwarf2out.c (loc_list_from_tree_1): Use SCALAR_INT_TYPE_MODE
7420
7421 2017-10-23 Richard Sandiford <richard.sandiford@linaro.org>
7422 Alan Hayward <alan.hayward@arm.com>
7423 David Sherwood <david.sherwood@arm.com>
7424
7425 * expmed.c (expand_shift_1): Use scalar_mode for scalar_mode.
7426
7427 2017-10-23 Richard Biener <rguenther@suse.de>
7428
7429 PR tree-optimization/82129
7430 * tree-ssa-pre.c (bitmap_set_and): Remove.
7431 (compute_antic_aux): Compute ANTIC_OUT intersection in a way
7432 canonicalizing expressions in the set to those with lowest
7433 ID rather than taking that from the first edge.
7434
7435 2017-10-23 Richard Sandiford <richard.sandiford@linaro.org>
7436
7437 * combine.c (rtx_equal_for_field_assignment_p): Use
7438 byte_lowpart_offset.
7439
7440 2017-10-22 Richard Sandiford <richard.sandiford@linaro.org>
7441 Alan Hayward <alan.hayward@arm.com>
7442 David Sherwood <david.sherwood@arm.com>
7443
7444 * internal-fn.c (expand_direct_optab_fn): Don't assign directly
7445 to a SUBREG_PROMOTED_VAR.
7446
7447 2017-10-22 Richard Sandiford <richard.sandiford@linaro.org>
7448 Alan Hayward <alan.hayward@arm.com>
7449 David Sherwood <david.sherwood@arm.com>
7450
7451 * cfgexpand.c (expand_debug_expr): Use GET_MODE_UNIT_PRECISION.
7452 (expand_debug_source_expr): Likewise.
7453 * combine.c (combine_simplify_rtx): Likewise.
7454 * cse.c (fold_rtx): Likewise.
7455 * optabs.c (expand_float): Likewise.
7456 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
7457 (simplify_binary_operation_1): Likewise.
7458
7459 2017-10-22 Richard Sandiford <richard.sandiford@linaro.org>
7460 Alan Hayward <alan.hayward@arm.com>
7461 David Sherwood <david.sherwood@arm.com>
7462
7463 * combine.c (simplify_comparison): Use HWI_COMPUTABLE_MODE_P.
7464 (record_promoted_value): Likewise.
7465 * expr.c (expand_expr_real_2): Likewise.
7466 * ree.c (update_reg_equal_equiv_notes): Likewise.
7467 (combine_set_extension): Likewise.
7468 * rtlanal.c (low_bitmask_len): Likewise.
7469 * simplify-rtx.c (neg_const_int): Likewise.
7470 (simplify_binary_operation_1): Likewise.
7471
7472 2017-10-22 Richard Sandiford <richard.sandiford@linaro.org>
7473 Alan Hayward <alan.hayward@arm.com>
7474 David Sherwood <david.sherwood@arm.com>
7475
7476 * lra-spills.c (assign_mem_slot): Use subreg_size_lowpart_offset.
7477 * regcprop.c (maybe_mode_change): Likewise.
7478 * reload1.c (alter_reg): Likewise.
7479
7480 2017-10-22 Richard Sandiford <richard.sandiford@linaro.org>
7481
7482 * inchash.h (inchash::hash::add_wide_int): New function.
7483 * lto-streamer-out.c (hash_tree): Use it.
7484
7485 2017-10-22 Richard Sandiford <richard.sandiford@linaro.org>
7486
7487 * inchash.h (inchash::hash::add_wide_int): Rename to...
7488 (inchash::hash::add_hwi): ...this.
7489 * ipa-devirt.c (hash_odr_vtable): Update accordingly.
7490 (polymorphic_call_target_hasher::hash): Likewise.
7491 * ipa-icf.c (sem_function::get_hash, sem_function::init): Likewise.
7492 (sem_item::add_expr, sem_item::add_type, sem_variable::get_hash)
7493 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
7494 * lto-streamer-out.c (hash_tree): Likewise.
7495 * optc-save-gen.awk: Likewise.
7496 * tree.c (add_expr): Likewise.
7497
7498 2017-10-22 Uros Bizjak <ubizjak@gmail.com>
7499
7500 PR target/52451
7501 * config/i386/i386.c (ix86_fp_compare_mode): Return CCFPmode
7502 for ordered inequality comparisons even with TARGET_IEEE_FP.
7503
7504 2017-10-22 Uros Bizjak <ubizjak@gmail.com>
7505
7506 PR target/82628
7507 * config/i386/i386.md (cmp<dwi>_doubleword): New pattern.
7508 * config/i386/i386.c (ix86_expand_branch) <case E_TImode>:
7509 Expand with cmp<dwi>_doubleword.
7510
7511 2017-10-21 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7512
7513 * extend.texi: Add x86 specific to 'nocf_check' attribute.
7514 List CET intrinsics.
7515 * invoke.texi: Add -mcet, -mibt, -mshstk options. Add x86
7516 specific to -fcf-protection option.
7517
7518 2017-10-21 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7519
7520 * common/config/i386/i386-common.c (OPTION_MASK_ISA_IBT_SET): New.
7521 (OPTION_MASK_ISA_SHSTK_SET): Likewise.
7522 (OPTION_MASK_ISA_IBT_UNSET): Likewise.
7523 (OPTION_MASK_ISA_SHSTK_UNSET): Likewise.
7524 (ix86_handle_option): Add -mibt, -mshstk, -mcet handling.
7525 * config.gcc (extra_headers): Add cetintrin.h for x86 targets.
7526 (extra_objs): Add cet.o for Linux/x86 targets.
7527 (tmake_file): Add i386/t-cet for Linux/x86 targets.
7528 * config/i386/cet.c: New file.
7529 * config/i386/cetintrin.h: Likewise.
7530 * config/i386/t-cet: Likewise.
7531 * config/i386/cpuid.h (bit_SHSTK): New.
7532 (bit_IBT): Likewise.
7533 * config/i386/driver-i386.c (host_detect_local_cpu): Detect and
7534 pass IBT and SHSTK bits.
7535 * config/i386/i386-builtin-types.def
7536 (VOID_FTYPE_UNSIGNED_PVOID): New.
7537 (VOID_FTYPE_UINT64_PVOID): Likewise.
7538 * config/i386/i386-builtin.def: Add CET intrinsics.
7539 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7540 OPTION_MASK_ISA_IBT, OPTION_MASK_ISA_SHSTK handling.
7541 * config/i386/i386-passes.def: Add pass_insert_endbranch pass.
7542 * config/i386/i386-protos.h (make_pass_insert_endbranch): New
7543 prototype.
7544 * config/i386/i386.c (rest_of_insert_endbranch): New.
7545 (pass_data_insert_endbranch): Likewise.
7546 (pass_insert_endbranch): Likewise.
7547 (make_pass_insert_endbranch): Likewise.
7548 (ix86_notrack_prefixed_insn_p): Likewise.
7549 (ix86_target_string): Add -mibt, -mshstk flags.
7550 (ix86_option_override_internal): Add flag_cf_protection
7551 processing.
7552 (ix86_valid_target_attribute_inner_p): Set OPT_mibt, OPT_mshstk.
7553 (ix86_print_operand): Add 'notrack' prefix output.
7554 (ix86_init_mmx_sse_builtins): Add CET intrinsics.
7555 (ix86_expand_builtin): Expand CET intrinsics.
7556 (x86_output_mi_thunk): Add 'endbranch' instruction.
7557 * config/i386/i386.h (TARGET_IBT): New.
7558 (TARGET_IBT_P): Likewise.
7559 (TARGET_SHSTK): Likewise.
7560 (TARGET_SHSTK_P): Likewise.
7561 * config/i386/i386.md (unspecv): Add UNSPECV_NOP_RDSSP,
7562 UNSPECV_INCSSP, UNSPECV_SAVEPREVSSP, UNSPECV_RSTORSSP,
7563 UNSPECV_WRSS, UNSPECV_WRUSS, UNSPECV_SETSSBSY, UNSPECV_CLRSSBSY.
7564 (builtin_setjmp_setup): New pattern.
7565 (builtin_longjmp): Likewise.
7566 (rdssp<mode>): Likewise.
7567 (incssp<mode>): Likewise.
7568 (saveprevssp): Likewise.
7569 (rstorssp): Likewise.
7570 (wrss<mode>): Likewise.
7571 (wruss<mode>): Likewise.
7572 (setssbsy): Likewise.
7573 (clrssbsy): Likewise.
7574 (nop_endbr): Likewise.
7575 * config/i386/i386.opt: Add -mcet, -mibt, -mshstk and -mcet-switch
7576 options.
7577 * config/i386/immintrin.h: Include <cetintrin.h>.
7578 * config/i386/linux-common.h
7579 (file_end_indicate_exec_stack_and_cet): New prototype.
7580 (TARGET_ASM_FILE_END): New.
7581
7582 2017-10-20 Jan Hubicka <hubicka@ucw.cz>
7583
7584 * i386.c (ix86_builtin_vectorization_cost): Use existing rtx_cost
7585 latencies instead of having separate table; make difference between
7586 integer and float costs.
7587 * i386.h (processor_costs): Remove scalar_stmt_cost,
7588 scalar_load_cost, scalar_store_cost, vec_stmt_cost, vec_to_scalar_cost,
7589 scalar_to_vec_cost, vec_align_load_cost, vec_unalign_load_cost,
7590 vec_store_cost.
7591 * x86-tune-costs.h: Remove entries which has been removed in
7592 procesor_costs from all tables; make cond_taken_branch_cost
7593 and cond_not_taken_branch_cost COST_N_INSNS based.
7594
7595 2017-10-20 Jan Hubicka <hubicka@ucw.cz>
7596
7597 * x86-tune-costs.h (intel_cost, generic_cost): Fix move costs.
7598
7599 2017-10-20 Jakub Jelinek <jakub@redhat.com>
7600
7601 * config/i386/i386.md (isa): Remove fma_avx512f.
7602 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
7603 <avx512>_fmadd_<mode>_mask3<round_name>,
7604 <avx512>_fmsub_<mode>_mask<round_name>,
7605 <avx512>_fmsub_<mode>_mask3<round_name>,
7606 <avx512>_fnmadd_<mode>_mask<round_name>,
7607 <avx512>_fnmadd_<mode>_mask3<round_name>,
7608 <avx512>_fnmsub_<mode>_mask<round_name>,
7609 <avx512>_fnmsub_<mode>_mask3<round_name>,
7610 <avx512>_fmaddsub_<mode>_mask<round_name>,
7611 <avx512>_fmaddsub_<mode>_mask3<round_name>,
7612 <avx512>_fmsubadd_<mode>_mask<round_name>,
7613 <avx512>_fmsubadd_<mode>_mask3<round_name>): Remove isa attribute.
7614 (*vec_widen_umult_even_v16si<mask_name>,
7615 *vec_widen_smult_even_v16si<mask_name>): Likewise.
7616 (<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>): Likewise.
7617
7618 2017-10-20 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7619
7620 * extend.texi: Add 'nocf_check' documentation.
7621 * gimple.texi: Add second parameter to
7622 gimple_build_call_from_tree.
7623 * invoke.texi: Add -fcf-protection documentation.
7624 * rtl.texi: Add REG_CALL_NOTRACK documenation.
7625
7626 2017-10-20 Richard Biener <rguenther@suse.de>
7627
7628 PR tree-optimization/82473
7629 * tree-vect-loop.c (vectorizable_reduction): Properly get at
7630 the largest input type.
7631
7632 2017-10-20 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7633
7634 * c-attribs.c (handle_nocf_check_attribute): New function.
7635 (c_common_attribute_table): Add 'nocf_check' handling.
7636 * gimple-parser.c: Add second argument NULL to
7637 gimple_build_call_from_tree.
7638 * attrib.c (comp_type_attributes): Check nocf_check attribute.
7639 * cfgexpand.c (expand_call_stmt): Set REG_CALL_NOCF_CHECK for
7640 call insn.
7641 * combine.c (distribute_notes): Add REG_CALL_NOCF_CHECK handling.
7642 * common.opt: Add fcf-protection flag.
7643 * emit-rtl.c (try_split): Add REG_CALL_NOCF_CHECK handling.
7644 * flag-types.h: Add enum cf_protection_level.
7645 * gimple.c (gimple_build_call_from_tree): Add second parameter.
7646 Add 'nocf_check' attribute propagation to gimple call.
7647 * gimple.h (gf_mask): Add GF_CALL_NOCF_CHECK.
7648 (gimple_build_call_from_tree): Update prototype.
7649 (gimple_call_nocf_check_p): New function.
7650 (gimple_call_set_nocf_check): Likewise.
7651 * gimplify.c: Add second argument to gimple_build_call_from_tree.
7652 * ipa-icf.c: Add nocf_check attribute in statement hash.
7653 * recog.c (peep2_attempt): Add REG_CALL_NOCF_CHECK handling.
7654 * reg-notes.def: Add REG_NOTE (CALL_NOCF_CHECK).
7655 * toplev.c (process_options): Add flag_cf_protection handling.
7656
7657 2017-10-19 Jan Hubicka <hubicka@ucw.cz>
7658
7659 * x86-tune-costs.h (core_cost): Fix div, move and sqrt latencies.
7660
7661 2017-10-20 Richard Biener <rguenther@suse.de>
7662
7663 PR tree-optimization/82603
7664 * tree-if-conv.c (predicate_mem_writes): Make sure to only
7665 remove false predicated stores.
7666
7667 2017-10-20 Richard Biener <rguenther@suse.de>
7668
7669 * graphite-isl-ast-to-gimple.c
7670 (translate_isl_ast_to_gimple::graphite_copy_stmts_from_block):
7671 Remove return value and simplify, dump copied stmt after lhs
7672 adjustment.
7673 (translate_isl_ast_to_gimple::translate_isl_ast_node_user):
7674 Reduce dump verbosity.
7675 (gsi_insert_earliest): Likewise.
7676 (translate_isl_ast_to_gimple::copy_bb_and_scalar_dependences): Adjust.
7677 * graphite.c (print_global_statistics): Adjust dumping.
7678 (print_graphite_scop_statistics): Likewise.
7679 (print_graphite_statistics): Do not dump loops here.
7680 (graphite_transform_loops): But here.
7681
7682 2017-10-20 Nicolas Roche <roche@adacore.com>
7683
7684 * configure.ac (ACX_PROG_GNAT): Append "libgnat" to include search dir.
7685 * configure: Regenerate.
7686
7687 2017-10-20 Jakub Jelinek <jakub@redhat.com>
7688
7689 PR target/82158
7690 * tree-cfg.c (pass_warn_function_return::execute): In noreturn
7691 functions when optimizing replace GIMPLE_RETURN stmts with
7692 calls to __builtin_unreachable ().
7693
7694 PR sanitizer/82595
7695 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Add libtsan_preinit.o
7696 for -fsanitize=thread link of executables.
7697 (LIBLSAN_EARLY_SPEC): Add liblsan_preinit.o for -fsanitize=leak
7698 link of executables.
7699
7700 PR target/82370
7701 * config/i386/sse.md (VI248_AVX2, VI248_AVX512BW, VI248_AVX512BW_2):
7702 New mode iterators.
7703 (<shift_insn><mode>3<mask_name>): Change the last of the 3
7704 define_insns for logical vector shifts to use VI248_AVX512BW
7705 iterator instead of VI48_AVX512, remove <mask_mode512bit_condition>
7706 condition, useless isa and prefix attributes. Change the first
7707 2 of these define_insns to ...
7708 (<mask_codefor><shift_insn><mode>3<mask_name>): ... this, new
7709 define_insn for avx512vl.
7710 (<shift_insn><mode>3): ... and this, new define_insn without
7711 masking for non-avx512vl.
7712
7713 PR target/82370
7714 * config/i386/sse.md (*andnot<mode>3,
7715 <mask_codefor><code><mode>3<mask_name>, *<code><mode>3): Split
7716 (=v,v,vm) alternative into (=x,x,xm) and (=v,v,vm), for 128-bit
7717 and 256-bit vectors, the (=x,x,xm) alternative and when mask is
7718 not applied use empty suffix even for TARGET_AVX512VL.
7719 * config/i386/subst.md (mask_prefix3, mask_prefix4): When mask
7720 is applied, supply evex,evex or evex,evex,evex instead of just
7721 evex.
7722
7723 2017-10-20 Julia Koval <julia.koval@intel.com>
7724
7725 * common/config/i386/i386-common.c (OPTION_MASK_ISA_GFNI_SET,
7726 (OPTION_MASK_ISA_GFNI_UNSET): New.
7727 (ix86_handle_option): Handle OPT_mgfni.
7728 * config/i386/cpuid.h (bit_GFNI): New.
7729 * config/i386/driver-i386.c (host_detect_local_cpu): Detect gfni.
7730 * config/i386/i386-c.c (ix86_target_macros_internal): Define __GFNI__.
7731 * config/i386/i386.c (ix86_target_string): Add -mgfni.
7732 (ix86_valid_target_attribute_inner_p): Add OPT_mgfni.
7733 * config/i386/i386.h (TARGET_GFNI, TARGET_GFNI_P): New.
7734 * config/i386/i386.opt: Add mgfni.
7735
7736 2017-10-20 Orlando Arias <oarias@knights.ucf.edu>
7737
7738 * config/msp430/msp430.c (msp430_option_override): Disable
7739 -fdelete-null-pointer-checks.
7740 * doc/invoke.text (-fdelete-null-pointer-checks): Document that.
7741
7742 2017-10-19 Jan Hubicka <hubicka@ucw.cz>
7743
7744 * x86-tune-costs.h (generic_cost, core_cost): Correct costs
7745 of x87 and SSE instructions.
7746
7747 2017-10-19 Jan Hubicka <hubicka@ucw.cz>
7748
7749 * asan.c (create_cond_insert_point): Do not update edge count.
7750 * auto-profile.c (afdo_propagate_edge): Update for edge count removal.
7751 (afdo_propagate_circuit): Likewise.
7752 (afdo_calculate_branch_prob): Likewise.
7753 (afdo_annotate_cfg): Likewise.
7754 * basic-block.h (struct edge_def): Remove count.
7755 (edge_def::count): New accessor.
7756 * bb-reorder.c (rotate_loop): Update.
7757 (find_traces_1_round): Update.
7758 (connect_traces): Update.
7759 (sanitize_hot_paths): Update.
7760 * cfg.c (unchecked_make_edge): Update.
7761 (make_single_succ_edge): Update.
7762 (check_bb_profile): Update.
7763 (dump_edge_info): Update.
7764 (update_bb_profile_for_threading): Update.
7765 (scale_bbs_frequencies_int): Update.
7766 (scale_bbs_frequencies_gcov_type): Update.
7767 (scale_bbs_frequencies_profile_count): Update.
7768 (scale_bbs_frequencies): Update.
7769 * cfganal.c (connect_infinite_loops_to_exit): Update.
7770 * cfgbuild.c (compute_outgoing_frequencies): Update.
7771 (find_many_sub_basic_blocks): Update.
7772 * cfgcleanup.c (try_forward_edges): Update.
7773 (try_crossjump_to_edge): Update
7774 * cfgexpand.c (expand_gimple_cond): Update
7775 (expand_gimple_tailcall): Update
7776 (construct_exit_block): Update
7777 * cfghooks.c (verify_flow_info): Update
7778 (redirect_edge_succ_nodup): Update
7779 (split_edge): Update
7780 (make_forwarder_block): Update
7781 (duplicate_block): Update
7782 (account_profile_record): Update
7783 * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
7784 * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
7785 * cfgloopmanip.c (scale_loop_profile): Update.
7786 (loopify): Update.
7787 (lv_adjust_loop_entry_edge): Update.
7788 * cfgrtl.c (try_redirect_by_replacing_jump): Update.
7789 (force_nonfallthru_and_redirect): Update.
7790 (purge_dead_edges): Update.
7791 (rtl_flow_call_edges_add): Update.
7792 * cgraphunit.c (init_lowered_empty_function): Update.
7793 (cgraph_node::expand_thunk): Update.
7794 * gimple-pretty-print.c (dump_probability): Update.
7795 (dump_edge_probability): Update.
7796 * gimple-ssa-isolate-paths.c (isolate_path): Update.
7797 * haifa-sched.c (sched_create_recovery_edges): Update.
7798 * hsa-gen.c (convert_switch_statements): Update.
7799 * ifcvt.c (dead_or_predicable): Update.
7800 * ipa-inline-transform.c (inline_transform): Update.
7801 * ipa-split.c (split_function): Update.
7802 * ipa-utils.c (ipa_merge_profiles): Update.
7803 * loop-doloop.c (add_test): Update.
7804 * loop-unroll.c (unroll_loop_runtime_iterations): Update.
7805 * lto-streamer-in.c (input_cfg): Update.
7806 (input_function): Update.
7807 * lto-streamer-out.c (output_cfg): Update.
7808 * modulo-sched.c (sms_schedule): Update.
7809 * postreload-gcse.c (eliminate_partially_redundant_load): Update.
7810 * predict.c (maybe_hot_edge_p): Update.
7811 (unlikely_executed_edge_p): Update.
7812 (probably_never_executed_edge_p): Update.
7813 (dump_prediction): Update.
7814 (drop_profile): Update.
7815 (propagate_unlikely_bbs_forward): Update.
7816 (determine_unlikely_bbs): Update.
7817 (force_edge_cold): Update.
7818 * profile.c (compute_branch_probabilities): Update.
7819 * reg-stack.c (better_edge): Update.
7820 * shrink-wrap.c (handle_simple_exit): Update.
7821 * tracer.c (better_p): Update.
7822 * trans-mem.c (expand_transaction): Update.
7823 (split_bb_make_tm_edge): Update.
7824 * tree-call-cdce.c: Update.
7825 * tree-cfg.c (gimple_find_sub_bbs): Update.
7826 (gimple_split_edge): Update.
7827 (gimple_duplicate_sese_region): Update.
7828 (gimple_duplicate_sese_tail): Update.
7829 (gimple_flow_call_edges_add): Update.
7830 (insert_cond_bb): Update.
7831 (execute_fixup_cfg): Update.
7832 * tree-cfgcleanup.c (cleanup_control_expr_graph): Update.
7833 * tree-complex.c (expand_complex_div_wide): Update.
7834 * tree-eh.c (lower_resx): Update.
7835 (unsplit_eh): Update.
7836 (cleanup_empty_eh_move_lp): Update.
7837 * tree-inline.c (copy_edges_for_bb): Update.
7838 (freqs_to_counts): Update.
7839 (copy_cfg_body): Update.
7840 * tree-ssa-dce.c (remove_dead_stmt): Update.
7841 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
7842 * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
7843 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
7844 (unloop_loops): Update.
7845 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
7846 * tree-ssa-loop-split.c (connect_loops): Update.
7847 (split_loop): Update.
7848 * tree-ssa-loop-unswitch.c (hoist_guard): Update.
7849 * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
7850 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
7851 * tree-ssa-reassoc.c (branch_fixup): Update.
7852 * tree-ssa-tail-merge.c (replace_block_by): Update.
7853 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
7854 (compute_path_counts): Update.
7855 (update_profile): Update.
7856 (recompute_probabilities): Update.
7857 (update_joiner_offpath_counts): Update.
7858 (estimated_freqs_path): Update.
7859 (freqs_to_counts_path): Update.
7860 (clear_counts_path): Update.
7861 (ssa_fix_duplicate_block_edges): Update.
7862 (duplicate_thread_path): Update.
7863 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
7864 (case_bit_test_cmp): Update.
7865 (collect_switch_conv_info): Update.
7866 (gen_inbound_check): Update.
7867 (do_jump_if_equal): Update.
7868 (emit_cmp_and_jump_insns): Update.
7869 * tree-tailcall.c (decrease_profile): Update.
7870 (eliminate_tail_call): Update.
7871 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
7872 (vect_do_peeling): Update.
7873 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
7874 * ubsan.c (ubsan_expand_null_ifn): Update.
7875 (ubsan_expand_ptr_ifn): Update.
7876 * value-prof.c (gimple_divmod_fixed_value): Update.
7877 (gimple_mod_pow2): Update.
7878 (gimple_mod_subtract): Update.
7879 (gimple_ic): Update.
7880 (gimple_stringop_fixed_value): Update.
7881
7882 2017-10-19 Uros Bizjak <ubizjak@gmail.com>
7883
7884 PR target/82618
7885 * config/i386/i386.md (sub to cmp): New peephole2 pattern.
7886
7887 2017-10-19 Alexander Monakov <amonakov@ispras.ru>
7888
7889 PR rtl-optimization/82395
7890 * ira-color.c (allocno_priority_compare_func): Fix comparison step
7891 based on non_spilled_static_chain_regno_p.
7892
7893 2017-10-19 Uros Bizjak <ubizjak@gmail.com>
7894
7895 * config/i386/i386.c (output_387_binary_op): Rewrite SSE part.
7896 (ix86_emit_mode_set): Rewrite insn mnemonic construction.
7897 (ix86_prepare_fp_compare_args): Redefine is_sse as bool.
7898
7899 2017-10-19 Martin Sebor <msebor@redhat.com>
7900
7901 PR tree-optimization/82596
7902 * tree.c (array_at_struct_end_p): Handle STRING_CST.
7903
7904 2017-10-19 Eric Botcazou <ebotcazou@adacore.com>
7905
7906 * asan.c (handle_builtin_alloca): Deal with all alloca variants.
7907 (get_mem_refs_of_builtin_call): Likewise.
7908 * builtins.c (expand_builtin_apply): Adjust call to
7909 allocate_dynamic_stack_space.
7910 (expand_builtin_alloca): For __builtin_alloca_with_align_and_max, pass
7911 the third argument to allocate_dynamic_stack_space, otherwise -1.
7912 (expand_builtin): Deal with all alloca variants.
7913 (is_inexpensive_builtin): Likewise.
7914 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN_AND_MAX): New.
7915 * calls.c (special_function_p): Deal with all alloca variants.
7916 (initialize_argument_information): Adjust call to
7917 allocate_dynamic_stack_space.
7918 (expand_call): Likewise.
7919 * cfgexpand.c (expand_call_stmt): Deal with all alloca variants.
7920 * doc/extend.texi (Built-ins): Add __builtin_alloca_with_align_and_max
7921 * explow.c (allocate_dynamic_stack_space): Add MAX_SIZE parameter and
7922 use it for the stack usage computation.
7923 * explow.h (allocate_dynamic_stack_space): Adjust prototype.
7924 * function.c (gimplify_parameters): Call build_alloca_call_expr.
7925 * gimple-ssa-warn-alloca.c (alloca_call_type): Simplify control flow.
7926 Take into account 3rd argument of __builtin_alloca_with_align_and_max.
7927 (in_loop_p): Remove first argument and useless check.
7928 (pass_walloca::execute): Remove useless test and adjust call to above.
7929 * gimple.c (gimple_build_call_from_tree): Deal with all alloc variants
7930 * gimplify.c (gimplify_vla_decl): Call build_alloca_call_expr.
7931 (gimplify_call_expr): Deal with all alloca variants.
7932 * hsa-gen.c (gen_hsa_alloca): Likewise.
7933 (gen_hsa_insns_for_call): Likewise.
7934 * ipa-pure-const.c (special_builtin_state): Likewise.
7935 * tree-chkp.c (chkp_build_returned_bound): Likewise.
7936 * tree-object-size.c (alloc_object_size): Likewise.
7937 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7938 (call_may_clobber_ref_p_1): Likewise.
7939 * tree-ssa-ccp.c (evaluate_stmt): Likewise.
7940 (ccp_fold_stmt): Likewise.
7941 (optimize_stack_restore): Likewise.
7942 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7943 (mark_all_reaching_defs_necessary_1): Likewise.
7944 (propagate_necessity): Likewise.
7945 (eliminate_unnecessary_stmts): Likewise.
7946 * tree.c (build_common_builtin_nodes): Build
7947 BUILT_IN_ALLOCA_WITH_ALIGN_AND_MAX.
7948 (build_alloca_call_expr): New function.
7949 * tree.h (ALLOCA_FUNCTION_CODE_P): New macro.
7950 (CASE_BUILT_IN_ALLOCA): Likewise.
7951 (build_alloca_call_expr): Declare.
7952 * varasm.c (incorporeal_function_p): Deal with all alloca variants.
7953
7954 2017-10-19 Eric Botcazou <ebotcazou@adacore.com>
7955
7956 PR debug/82509
7957 * dwarf2out.c (new_die_raw): New static inline function.
7958 (new_die): Use it to create the DIE.
7959 (add_AT_external_die_ref): Likewise.
7960 (clone_die): Likewise.
7961 (clone_as_declaration): Likewise.
7962 (dwarf2out_vms_debug_main_pointer): Likewise.
7963 (base_type_die): Likewise. Remove early return for corner cases.
7964 Do not call add_pubtype on the DIE here.
7965 (is_base_type): Remove ERROR_MARK and return 0 for VOID_TYPE.
7966 (modified_type_die): Adjust the lookup for reverse order DIEs. Skip
7967 typedefs for base types with DW_AT_endianity. Make sure a DIE with
7968 native order exists for base types, attach the DIE manually and call
7969 add_pubtype on it. Do not equate a reverse order DIE to the type.
7970
7971 2017-10-19 Richard Earnshaw <rearnsha@arm.com>
7972
7973 * config/arm/arm.c (align_ok_ldrd_strd): New function.
7974 (mem_ok_for_ldrd_strd): New parameter align. Extract the alignment of
7975 the mem into it.
7976 (gen_operands_ldrd_strd): Validate the alignment of the accesses.
7977
7978 2017-10-19 Jakub Jelinek <jakub@redhat.com>
7979
7980 * flag-types.h (enum sanitize_code): Add SANITIZE_BUILTIN. Or
7981 SANITIZE_BUILTIN into SANITIZE_UNDEFINED.
7982 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_INVALID_BUILTIN,
7983 BUILT_IN_UBSAN_HANDLE_INVALID_BUILTIN_ABORT): New builtins.
7984 * opts.c (sanitizer_opts): Add builtin.
7985 * ubsan.c (instrument_builtin): New function.
7986 (pass_ubsan::execute): Call it.
7987 (pass_ubsan::gate): Enable even for SANITIZE_BUILTIN.
7988 * doc/invoke.texi: Document -fsanitize=builtin.
7989
7990 * ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
7991 builtins, store max (log2 (align), 0) into uchar field instead of
7992 align into uptr field.
7993 (ubsan_expand_objsize_ifn): Use _v1 suffixed type mismatch builtins,
7994 store uchar 0 field instead of uptr 0 field.
7995 (instrument_nonnull_return): Use _v1 suffixed nonnull return builtin,
7996 instead of passing one address of struct with 2 locations pass
7997 two addresses of structs with 1 location each.
7998 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH,
7999 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
8000 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
8001 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): Removed.
8002 (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_V1,
8003 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_V1_ABORT,
8004 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_V1,
8005 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_V1_ABORT): New builtins.
8006
8007 2017-10-19 Martin Liska <mliska@suse.cz>
8008
8009 PR driver/81829
8010 * file-find.c (remove_prefix): Remove.
8011 * file-find.h (remove_prefix): Likewise.
8012 * gcc-ar.c: Remove smartness of lookup.
8013
8014 2017-10-19 Segher Boessenkool <segher@kernel.crashing.org>
8015
8016 * config/rs6000/rs6000.md (*call_indirect_aix<mode>,
8017 *call_value_indirect_aix<mode>, *call_indirect_elfv2<mode>,
8018 *call_value_indirect_elfv2<mode>): Add correct mode to the unspec.
8019
8020 2017-10-19 Jakub Jelinek <jakub@redhat.com>
8021
8022 PR target/82580
8023 * config/i386/i386.md (setcc + movzbl to xor + setcc): New peephole2.
8024 (setcc + and to xor + setcc): New peephole2.
8025
8026 2017-10-19 Tom de Vries <tom@codesourcery.com>
8027
8028 * doc/sourcebuild.texi (Test Directives, Variants of
8029 dg-require-support): Add dg-require-stack-size.
8030
8031 2017-10-19 Martin Liska <mliska@suse.cz>
8032
8033 PR sanitizer/82517
8034 * gimplify.c (gimplify_decl_expr): Do not instrument variables
8035 that have a large alignment.
8036 (gimplify_target_expr): Likewise.
8037
8038 2017-10-18 Segher Boessenkool <segher@kernel.crashing.org>
8039
8040 PR rtl-optimization/82602
8041 * ira.c (rtx_moveable_p): Return false for volatile asm.
8042
8043 2017-10-18 Uros Bizjak <ubizjak@gmail.com>
8044
8045 PR target/82580
8046 * config/i386/i386-modes.def (CCGZ): New CC mode.
8047 * config/i386/i386.md (sub<mode>3_carry_ccgz): New insn pattern.
8048 * config/i386/predicates.md (ix86_comparison_operator):
8049 Handle CCGZmode.
8050 * config/i386/i386.c (ix86_expand_branch) <case E_TImode>:
8051 Emulate LE, LEU, GT, GTU, LT, LTU, GE and GEU double-word comparisons
8052 with double-word subtraction.
8053 (put_condition_code): Handle CCGZmode.
8054
8055 2017-10-18 Aldy Hernandez <aldyh@redhat.com>
8056
8057 * wide-int.cc (debug (const wide_int &)): New.
8058 (debug (const wide_int *)): New.
8059 (debug (const widest_int &)): New.
8060 (debug (const widest_int *)): New.
8061
8062 2017-10-18 Vladimir Makarov <vmakarov@redhat.com>
8063
8064 PR middle-end/82556
8065 * lra-constraints.c (curr_insn_transform): Use non-input operand
8066 instead of output one for matched reload.
8067
8068 2017-10-18 Bin Cheng <bin.cheng@arm.com>
8069
8070 * tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
8071 (tree-ssa-loop-ivopts.h): New header file.
8072 (struct builtin_info): New fields.
8073 (classify_builtin_1): Compute and record base and offset parts for
8074 memset builtin partition by calling strip_offset.
8075 (offset_cmp, fuse_memset_builtins): New functions.
8076 (finalize_partitions): Fuse adjacent memset partitions by calling
8077 above function.
8078 * tree-ssa-loop-ivopts.c (strip_offset): Delete static declaration.
8079 Expose the interface.
8080 * tree-ssa-loop-ivopts.h (strip_offset): New declaration.
8081
8082 2017-10-18 Bin Cheng <bin.cheng@arm.com>
8083
8084 PR tree-optimization/82574
8085 * tree-loop-distribution.c (find_single_drs): New parameter. Check
8086 that data reference must be executed exactly once per iteration
8087 against the outermost loop in nest.
8088 (classify_partition): Update call to above function.
8089
8090 2017-10-18 Richard Biener <rguenther@suse.de>
8091
8092 PR tree-optimization/82591
8093 * graphite.c (graphite_transform_loops): Move code gen message
8094 printing ...
8095 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
8096 Here. Handle scop_to_isl_ast failing.
8097 (scop_to_isl_ast): Limit the number of ISL operations.
8098
8099 2017-10-18 Richard Biener <rguenther@suse.de>
8100
8101 * graphite-isl-ast-to-gimple.c
8102 (translate_isl_ast_to_gimple::set_rename): Simplify.
8103 (translate_isl_ast_to_gimple::set_rename_for_each_def): Inline...
8104 (graphite_copy_stmts_from_block): ... here.
8105 (copy_bb_and_scalar_dependences): Simplify.
8106 (add_parameters_to_ivs_params): Canonicalize.
8107 (generate_entry_out_of_ssa_copies): Simplify.
8108 * graphite-sese-to-poly.c (extract_affine_name): Simplify
8109 by passing in ISL dimension.
8110 (parameter_index_in_region_1): Rename to ...
8111 (parameter_index_in_region): ... this.
8112 (extract_affine): Adjust assert, pass down parameter index.
8113 (add_param_constraints): Use range-info when available.
8114 (build_scop_context): Adjust.
8115 * sese.c (new_sese_info): Adjust.
8116 (free_sese_info): Likewise.
8117 * sese.h (bb_map_t, rename_map_t, phi_rename, init_back_edge_pair_t):
8118 Remove unused typedefs.
8119 (struct sese_info_t): Simplify rename_map, remove incomplete_phis.
8120
8121 2017-10-18 Martin Liska <mliska@suse.cz>
8122
8123 * combine.c (simplify_compare_const): Add gcc_fallthrough.
8124
8125 2017-10-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
8126
8127 * config/s390/s390.c (s390_bb_fallthru_entry_likely): New function.
8128 (s390_sched_init): Do not reset s390_sched_state if we entered the
8129 current basic block via a fallthru edge and all others are unlikely.
8130
8131 2017-10-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
8132
8133 * config/s390/s390.c (NUM_SIDES): New variable.
8134 (LONGRUNNING_THRESHOLD): New variable.
8135 (LATENCY_FACTOR): New variable.
8136 (s390_sched_score): Decrease score for long-running instructions on
8137 wrong side.
8138 (s390_sched_variable_issue): Perform bookkeeping for long-running
8139 instructions.
8140
8141 2017-10-18 Richard Biener <rguenther@suse.de>
8142
8143 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8144 Simplify with removal of the parameter rename map.
8145 (set_rename): Likewise.
8146 (should_copy_to_new_region): Likewise.
8147 (graphite_copy_stmts_from_block): Likewise.
8148 (copy_bb_and_scalar_dependences): Remove initialization of
8149 unused copied_bb_map.
8150 (copy_def): Remove.
8151 (copy_internal_parameters): Likewise.
8152 (graphite_regenerate_ast_isl): Do not call copy_internal_parameters.
8153 * graphite-scop-detection.c (scop_detection::stmt_simple_for_scop_p):
8154 Use INTEGRAL_TYPE_P.
8155 (parameter_index_in_region_1): Rename to ...
8156 (assign_parameter_index_in_region): ... this. Assert we have
8157 a parameter we handle.
8158 (scan_tree_for_params): Adjust.
8159 * sese.h (parameter_rename_map_t): Remove.
8160 (struct sese_info_t): Remove unused parameter_rename_map and
8161 copied_bb_map members.
8162 * sese.c (new_sese_info): Adjust.
8163 (free_sese_info): Likewise.
8164
8165 2017-10-18 Martin Liska <mliska@suse.cz>
8166
8167 PR sanitizer/82545
8168 * asan.c (asan_expand_poison_ifn): Do not put gimple stmt
8169 on an abnormal edge.
8170
8171 2017-10-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
8172
8173 * doc/invoke.texi (ffunction-sections and fdata-sections):
8174 Update.
8175
8176 2017-10-17 Eric Botcazou <ebotcazou@adacore.com>
8177
8178 * tree-ssa-loop-ivopts.c (add_autoinc_candidates): Bail out only if
8179 the use statement can throw internally.
8180
8181 2017-10-17 Eric Botcazou <ebotcazou@adacore.com>
8182
8183 * config/visium/visium.c (visium_select_cc_mode): Return CCmode for
8184 any RTX present on the RHS of a SET.
8185 * compare-elim.c (try_eliminate_compare): Restore comment.
8186
8187 2017-10-17 Jakub Jelinek <jakub@redhat.com>
8188
8189 * langhooks.h (struct lang_hooks): Document that tree_size langhook
8190 may be also called on tcc_type nodes.
8191 * langhooks.c (lhd_tree_size): Likewise.
8192
8193 2017-10-17 David Malcolm <dmalcolm@redhat.com>
8194
8195 * gimple-ssa-sprintf.c (fmtwarn): Update for changed signature of
8196 format_warning_at_substring.
8197 (maybe_warn): Convert source_range * param to a location_t. Pass
8198 UNKNOWN_LOCATION rather than NULL to fmtwarn.
8199 (format_directive): Remove code to extract source_ranges and
8200 source_range * in favor of just a location_t.
8201 (parse_directive): Pass UNKNOWN_LOCATION rather than NULL to
8202 fmtwarn.
8203 * substring-locations.c (format_warning_va): Convert
8204 source_range * param to a location_t.
8205 (format_warning_at_substring): Likewise.
8206 * substring-locations.h (format_warning_va): Likewise.
8207 (format_warning_at_substring): Likewise.
8208
8209 2017-10-17 Jan Hubicka <hubicka@ucw.cz>
8210
8211 * target.h (enum vect_cost_for_stmt): Add vec_gather_load and
8212 vec_scatter_store
8213 * tree-vect-stmts.c (record_stmt_cost): Make difference between normal
8214 and scatter/gather ops.
8215
8216 * aarch64/aarch64.c (aarch64_builtin_vectorization_cost): Add
8217 vec_gather_load and vec_scatter_store.
8218 * arm/arm.c (arm_builtin_vectorization_cost): Likewise.
8219 * powerpcspe/powerpcspe.c (rs6000_builtin_vectorization_cost): Likewise.
8220 * rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Likewise.
8221 * s390/s390.c (s390_builtin_vectorization_cost): Likewise.
8222 * spu/spu.c (spu_builtin_vectorization_cost): Likewise.
8223 * i386/i386.c (x86_builtin_vectorization_cost): Likewise.
8224
8225 2017-10-17 Uros Bizjak <ubizjak@gmail.com>
8226
8227 * reg-stack.c (compare_for_stack_reg): Add bool argument.
8228 Detect FTST instruction and handle its register pops. Only pop
8229 second operand if can_pop_second_op is true.
8230 (subst_stack_regs_pat) <case COMPARE>: Detect FCOMI instruction to
8231 set can_pop_second_op to false in the compare_for_stack_reg call.
8232
8233 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Only call
8234 output_fp_compare for stack register operands.
8235 * config/i386/i386.c (output_fp_compare): Do not output SSE compare
8236 instructions here. Do not emit stack register pops here. Assert
8237 that FCOMPP pops next to top stack register. Rewrite function.
8238
8239 2017-10-17 Nathan Sidwell <nathan@acm.org>
8240
8241 PR middle-end/82577
8242 * alias.c (compare_base_decls): Check HAS_DECL_ASSEMBLER_NAME_P,
8243 use DECL_ASSEMBLER_NAME_RAW.
8244
8245 PR middle-end/82546
8246 * tree.c (tree_code_size): Reformat. Punt to lang hook for unknown
8247 TYPE nodes.
8248
8249 2017-10-17 Qing Zhao <qing.zhao@oracle.com>
8250 Wilco Dijkstra <wilco.dijkstra@arm.com>
8251
8252 * builtins.c (expand_builtin_update_setjmp_buf): Add a
8253 converstion to Pmode from the buf_addr.
8254
8255 2017-10-17 Richard Biener <rguenther@suse.de>
8256
8257 * graphite-dependences.c (scop_get_reads_and_writes): Change
8258 output parameters to references.
8259
8260 2017-10-17 Jackson Woodruff <jackson.woodruff@arm.com>
8261
8262 PR 71026/tree-optimization
8263 * fold-const.c (distribute_real_division): Removed.
8264 (fold_binary_loc): Remove calls to distribute_real_divison.
8265
8266 2017-10-17 Richard Biener <rguenther@suse.de>
8267
8268 * graphite-scop-detection.c
8269 (scop_detection::stmt_has_simple_data_refs_p): Always use
8270 the full nest as region.
8271 (try_generate_gimple_bb): Likewise.
8272 * sese.c (scalar_evolution_in_region): Simplify now that
8273 SCEV can handle instantiation in regions.
8274 * tree-scalar-evolution.c (instantiate_scev_name): Also instantiate
8275 in the non-loop part of a function if requested.
8276
8277 2017-10-17 Richard Biener <rguenther@suse.de>
8278
8279 PR tree-optimization/82563
8280 * graphite-isl-ast-to-gimple.c (generate_entry_out_of_ssa_copies):
8281 New function.
8282 (graphite_regenerate_ast_isl): Call it.
8283 * graphite-scop-detection.c (build_scops): Remove entry edge split.
8284
8285 2017-10-17 Jakub Jelinek <jakub@redhat.com>
8286
8287 PR tree-optimization/82549
8288 * fold-const.c (optimize_bit_field_compare, fold_truth_andor_1):
8289 Formatting fixes. Instead of calling make_bit_field_ref with negative
8290 bitpos return 0.
8291
8292 2017-10-17 Olga Makhotina <olga.makhotina@intel.com>
8293
8294 * config/i386/avx512dqintrin.h (_mm_mask_reduce_sd,
8295 _mm_maskz_reduce_sd, _mm_mask_reduce_ss,=20
8296 _mm_maskz_reduce_ss): New.
8297 * config/i386/i386-builtin.def (__builtin_ia32_reducesd_mask,
8298 __builtin_ia32_reducess_mask): Ditto..
8299 (__builtin_ia32_reducesd, __builtin_ia32_reducess): Remove.
8300 * config/i386/sse.md (reduces<mode>): Renamed to ...
8301 (reduces<mode><mask_scalar_name>): ... this.
8302 (vreduce<ssescalarmodesuffix>\t{%3, %2, %1, %0|%0, %1, %2, %3}):
8303 Changed to ...
8304 (vreduce<ssescalarmodesuffix>\t{%3, %2, %1, %0<mask_scalar_operand4>|
8305 %0<mask_scalar_operand4>, %1, %2, %3}): ... this.
8306
8307 2017-10-16 David Malcolm <dmalcolm@redhat.com>
8308
8309 * Makefile.in (OBJS): Add unique-ptr-tests.o.
8310 * selftest-run-tests.c (selftest::run_tests): Call
8311 selftest::unique_ptr_tests_cc_tests.
8312 * selftest.h (selftest::unique_ptr_tests_cc_tests): New decl.
8313 * unique-ptr-tests.cc: New file.
8314
8315 2017-10-16 Vladimir Makarov <vmakarov@redhat.com>
8316
8317 PR sanitizer/82353
8318 * lra.c (collect_non_operand_hard_regs): Don't ignore operator
8319 locations.
8320 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): Move up.
8321 (make_hard_regno_born, make_hard_regno_dead): Update
8322 bb_killed_pseudos and bb_gen_pseudos for fixed regs.
8323
8324 2017-10-16 Jeff Law <law@redhat.com>
8325
8326 * tree-ssa-dse.c (live_bytes_read): Fix thinko.
8327
8328 2017-10-16 Jan Hubicka <hubicka@ucw.cz>
8329
8330 * x86-tune-costs.h (znver1_cost): Fix move cost tables.
8331
8332 2017-10-16 Olivier Hainque <hainque@adacore.com>
8333
8334 * gcc/config.gcc (powerpc*-*-*spe*): Pick 8548 as the default
8335 with_cpu if we were configured for an e500v2 target cpu name.
8336
8337 2017-10-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
8338
8339 * config/arm/arm-cpus.in (cortex-m33): Add nodsp option.
8340 * doc/invoke.texi: Document +nodsp as a valid extension for
8341 -mcpu=cortex-m33.
8342
8343 2017-10-16 Martin Liska <mliska@suse.cz>
8344
8345 * sbitmap.c (bitmap_bit_in_range_p_checking): New function.
8346 (test_set_range): Likewise.
8347 (test_range_functions): Rename to ...
8348 (test_bit_in_range): ... this.
8349 (sbitmap_c_tests): Add new test.
8350
8351 2017-10-16 Tamar Christina <tamar.christina@arm.com>
8352
8353 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
8354 New.
8355 (vdot_lane_u32, vdot_laneq_u32, vdotq_lane_u32, vdotq_laneq_u32): New.
8356 (vdot_lane_s32, vdot_laneq_s32, vdotq_lane_s32, vdotq_laneq_s32): New.
8357
8358 2017-10-16 Tamar Christina <tamar.christina@arm.com>
8359
8360 * config/aarch64/aarch64-builtins.c
8361 (aarch64_types_quadopu_lane_qualifiers): New.
8362 (TYPES_QUADOPU_LANE): New.
8363 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): New.
8364 (<sur>dot_prod<vsi2qi>, aarch64_<sur>dot_lane<vsi2qi>): New.
8365 (aarch64_<sur>dot_laneq<vsi2qi>): New.
8366 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): New.
8367 (sdot_lane, udot_lane, sdot_laneq, udot_laneq): New.
8368 * config/aarch64/iterators.md (sur): Add UNSPEC_SDOT, UNSPEC_UDOT.
8369 (Vdottype, DOTPROD): New.
8370 (sur): Add SDOT and UDOT.
8371
8372 2017-10-16 Tamar Christina <tamar.christina@arm.com>
8373
8374 * config/aarch64/aarch64.h (AARCH64_FL_DOTPROD): New.
8375 (AARCH64_ISA_DOTPROD, TARGET_DOTPROD): New.
8376 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
8377 Add TARGET_DOTPROD.
8378 * config/aarch64/aarch64-option-extensions.def (dotprod): New.
8379 * config/aarch64/aarch64-cores.def (cortex-a55, cortex-a75):
8380 Enable TARGET_DOTPROD.
8381 (cortex-a75.cortex-a55): Likewise.
8382 * doc/invoke.texi (aarch64-feature-modifiers): Document dotprod.
8383
8384 2017-10-16 Tamar Christina <tamar.christina@arm.com>
8385
8386 * config/arm/arm-builtins.c (arm_unsigned_uternop_qualifiers): New.
8387 (UTERNOP_QUALIFIERS, arm_umac_lane_qualifiers, UMAC_LANE_QUALIFIERS):
8388 New.
8389 * config/arm/arm_neon_builtins.def (sdot, udot, sdot_lane, udot_lane):
8390 New.
8391 * config/arm/iterators.md (DOTPROD, VSI2QI, vsi2qi): New.
8392 (UNSPEC_DOT_S, UNSPEC_DOT_U, opsuffix): New.
8393 * config/arm/neon.md (neon_<sup>dot<vsi2qi>): New.
8394 (neon_<sup>dot_lane<vsi2qi>, <sup>dot_prod<vsi2qi>): New.
8395 * config/arm/types.md (neon_dot, neon_dot_q): New.
8396 * config/arm/unspecs.md (sup): Add UNSPEC_DOT_S, UNSPEC_DOT_U.
8397
8398 2017-10-16 Tamar Christina <tamar.christina@arm.com>
8399
8400 * config/arm/arm.h (TARGET_DOTPROD): New.
8401 * config/arm/arm.c (arm_arch_dotprod): New.
8402 (arm_option_reconfigure_globals): Add arm_arch_dotprod.
8403 * config/arm/arm-c.c (__ARM_FEATURE_DOTPROD): New.
8404 * config/arm/arm-cpus.in (armv8.2-a): Enabled +dotprod.
8405 (feature dotprod, group dotprod, ALL_SIMD_INTERNAL): New.
8406 (ALL_FPU_INTERNAL): Use ALL_SIMD_INTERNAL.
8407 * config/arm/t-multilib (v8_2_a_simd_variants): Add dotprod.
8408 * doc/invoke.texi (armv8.2-a): Document dotprod
8409
8410 2017-10-14 Jan Hubicka <hubicka@ucw.cz>
8411
8412 * i386.c (ix86_vec_cost): New function.
8413 (ix86_rtx_costs): Handle vector operations better.
8414 * i386.h (struct processor_costs): Add sse_op, fmasd, fmass.
8415 * x86-tune-costs.h: Add new costs to all tables.
8416
8417 2017-10-14 Jan Hubicka <hubicka@ucw.cz>
8418
8419 * i386.c (ix86_rtx_costs): Make difference between x87 and SSE
8420 operations.
8421 * i386.h (struct processor_costs): Add addss, mulss, mulsd, divss,
8422 divsd, sqrtss and sqrtsd
8423 * x86-tune-costs.h: Add new entries to all costs.
8424 (znver1_cost): Fix to match real instruction latencies.
8425
8426 2017-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8427 Michael Collison <michael.collison@arm.com>
8428
8429 * compare-elim.c: Include emit-rtl.h.
8430 (can_merge_compare_into_arith): New function.
8431 (try_validate_parallel): Likewise.
8432 (try_merge_compare): Likewise.
8433 (try_eliminate_compare): Call the above when no previous clobber
8434 is available.
8435 (execute_compare_elim_after_reload): Add DF_UD_CHAIN and DF_DU_CHAIN
8436 dataflow problems.
8437
8438 2017-10-14 Jakub Jelinek <jakub@redhat.com>
8439
8440 PR middle-end/62263
8441 PR middle-end/82498
8442 * tree-ssa-phiopt.c (value_replacement): Comment fix. Handle
8443 up to 2 preparation statements for ASSIGN in MIDDLE_BB.
8444
8445 PR middle-end/62263
8446 PR middle-end/82498
8447 * tree-ssa-forwprop.c (simplify_rotate): Allow def_arg1[N]
8448 to be any operand_equal_p operands. For & (B - 1) require
8449 B to be power of 2. Recognize
8450 (X << (Y & (B - 1))) | (X >> ((-Y) & (B - 1))) and similar patterns.
8451
8452 2017-10-14 Uros Bizjak <ubizjak@gmail.com>
8453
8454 PR bootstrap/82553
8455 * optabs.c (expand_memory_blockage): Fix call of
8456 targetm.have_memory_blockage.
8457
8458 2017-10-14 Jakub Jelinek <jakub@redhat.com>
8459
8460 PR bootstrap/82548
8461 * config.gcc (*-*-solaris2*, i[34567]86-*-cygwin*,
8462 x86_64-*-cygwin*, i[34567]86-*-mingw* | x86_64-*-mingw*): Append
8463 objects to extra_objs instead of overwriting it.
8464
8465 2017-10-14 Uros Bizjak <ubizjak@gmail.com>
8466
8467 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
8468 Use any_fp_register_operand as operand[3] predicate. Simplify
8469 equality test for operands[2] and operands[4] memory location.
8470 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
8471 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): New.
8472 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
8473 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2): Use
8474 any_fp_register_operand as operand[1] predicate. Simplify
8475 equality test for operands[0] and operands[3] memory location.
8476 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
8477 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): New.
8478 (LDX_ATOMIC/LDX_ATOMIC FP storepeephole2 with mem blockage): Ditto.
8479
8480 2017-10-14 Uros Bizjak <ubizjak@gmail.com>
8481
8482 * target-insns.def: Add memory_blockage.
8483 * optabs.c (expand_memory_blockage): New function.
8484 (expand_asm_memory_barrier): Rename ...
8485 (expand_asm_memory_blockage): ... to this.
8486 (expand_mem_thread_fence): Call expand_memory_blockage
8487 instead of expand_asm_memory_barrier.
8488 (expand_mem_singnal_fence): Ditto.
8489 (expand_atomic_load): Ditto.
8490 (expand_atomic_store): Ditto.
8491 * doc/md.texi (Standard Pattern Names For Generation):
8492 Document memory_blockage instruction pattern.
8493
8494 2017-10-13 Sebastian Perta <sebastian.perta@renesas.com>
8495
8496 * config/rl78/rl78.c (rl78_emit_libcall): New function.
8497 * config/rl78/rl78-protos.h (rl78_emit_libcall): New function.
8498 * config/rl78/rl78.md: New define_expand "adddi3".
8499
8500 2017-10-13 Jan Hubicka <hubicka@ucw.cz>
8501
8502 * cfghooks.c (verify_flow_info): Disable check that all probabilities
8503 are set correctly.
8504
8505 2017-10-13 Jeff Law <law@redhat.com>
8506
8507 * tree-ssa-reassoc.c (reassociate_bb): Clarify code slighly.
8508
8509 2017-10-13 Jakub Jelinek <jakub@redhat.com>
8510
8511 PR target/82274
8512 * internal-fn.c (expand_mul_overflow): If both operands have
8513 the same highpart of -1 or 0 and the topmost bit of lowpart
8514 is different, overflow is if res <= 0 rather than res < 0.
8515
8516 2017-10-13 Pat Haugen <pthaugen@us.ibm.com>
8517
8518 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Remove
8519 TARGET_P9_VECTOR code for unaligned_load case.
8520
8521 2017-10-13 Jan Hubicka <hubicka@ucw.cz>
8522
8523 * cfghooks.c (verify_flow_info): Check that edge probabilities are set.
8524
8525 2017-10-13 Nathan Sidwell <nathan@acm.org>
8526
8527 * tree-core.h (tree_contains_struct): Make bool.
8528 * tree.c (tree_contains_struct): Likewise.
8529 * tree.h (MARK_TS_BASE): Remove do ... while (0) idiom.
8530 (MARK_TS_TYPED, MARK_TS_COMMON, MARK_TS_TYPE_COMMON,
8531 MARK_TS_TYPE_WITH_LANG_SPECIFIC, MARK_TS_DECL_MINIMAL,
8532 MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL, MARK_TS_DECL_WITH_VIS,
8533 MARK_TS_DECL_NON_COMMON): Likewise, use comma operator.
8534
8535 2017-10-13 Richard Biener <rguenther@suse.de>
8536
8537 * graphite-isl-ast-to-gimple.c
8538 (translate_isl_ast_to_gimple::get_rename_from_scev): Remove unused
8539 parameters and dominance check.
8540 (translate_isl_ast_to_gimple::graphite_copy_stmts_from_block): Adjust.
8541 (translate_isl_ast_to_gimple::copy_bb_and_scalar_dependences): Likewise.
8542 (translate_isl_ast_to_gimple::graphite_regenerate_ast_isl):
8543 Do not update SSA form here or do intermediate IL verification.
8544 * graphite.c: Include tree-ssa.h and tree-into-ssa.h.
8545 (graphite_initialize): Remove check on the number of loops in
8546 the function and inline into graphite_transform_loops.
8547 (graphite_finalize): Inline into graphite_transform_loops.
8548 (graphite_transform_loops): Perform SSA update and IL verification
8549 here.
8550 * params.def (PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION): Remove.
8551
8552 2017-10-13 Richard Biener <rguenther@suse.de>
8553
8554 * graphite-isl-ast-to-gimple.c (max_mode_int_precision,
8555 graphite_expression_type_precision): Avoid global constructor
8556 by moving ...
8557 (translate_isl_ast_to_gimple::translate_isl_ast_to_gimple): Here.
8558 (translate_isl_ast_to_gimple::graphite_expr_type): Add type member.
8559 (translate_isl_ast_to_gimple::translate_isl_ast_node_for): Use it.
8560 (translate_isl_ast_to_gimple::build_iv_mapping): Likewise.
8561 (translate_isl_ast_to_gimple::graphite_create_new_guard): Likewise.
8562 * graphite-sese-to-poly.c (build_original_schedule): Return nothing.
8563
8564 2017-10-13 H.J. Lu <hongjiu.lu@intel.com>
8565
8566 PR target/82499
8567 * config/i386/i386.h (ix86_red_zone_size): New.
8568 * config/i386/i386.md (push peephole2s): Replace
8569 "!ix86_using_red_zone ()" with "ix86_red_zone_size == 0".
8570
8571 2017-10-13 Richard Sandiford <richard.sandiford@linaro.org>
8572 Alan Hayward <alan.hayward@arm.com>
8573 David Sherwood <david.sherwood@arm.com>
8574
8575 * combine.c (can_change_dest_mode): Reject changes in
8576 REGMODE_NATURAL_SIZE.
8577
8578 2017-10-13 Richard Sandiford <richard.sandiford@linaro.org>
8579 Alan Hayward <alan.hayward@arm.com>
8580 David Sherwood <david.sherwood@arm.com>
8581
8582 * cfgexpand.c (expand_debug_expr): Use GET_MODE_UNIT_BITSIZE.
8583 (expand_debug_source_expr): Likewise.
8584 * combine.c (combine_simplify_rtx): Likewise.
8585 * cse.c (fold_rtx): Likewise.
8586 * fwprop.c (canonicalize_address): Likewise.
8587 * targhooks.c (default_shift_truncation_mask): Likewise.
8588
8589 2017-10-13 Richard Sandiford <richard.sandiford@linaro.org>
8590 Alan Hayward <alan.hayward@arm.com>
8591 David Sherwood <david.sherwood@arm.com>
8592
8593 * optabs.c (add_equal_note): Use GET_MODE_UNIT_SIZE.
8594 (widened_mode): Likewise.
8595 (expand_unop): Likewise.
8596 * ree.c (transform_ifelse): Likewise.
8597 (merge_def_and_ext): Likewise.
8598 (combine_reaching_defs): Likewise.
8599 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8600
8601 2017-10-13 Richard Sandiford <richard.sandiford@linaro.org>
8602 Alan Hayward <alan.hayward@arm.com>
8603 David Sherwood <david.sherwood@arm.com>
8604
8605 * caller-save.c (replace_reg_with_saved_mem): Use byte_lowpart_offset.
8606 * combine.c (gen_lowpart_for_combine): Likewise.
8607 * dwarf2out.c (rtl_for_decl_location): Likewise.
8608 * final.c (alter_subreg): Likewise.
8609 * rtlhooks.c (gen_lowpart_general): Likewise.
8610 (gen_lowpart_if_possible): Likewise.
8611
8612 2017-10-13 Richard Sandiford <richard.sandiford@linaro.org>
8613 Alan Hayward <alan.hayward@arm.com>
8614 David Sherwood <david.sherwood@arm.com>
8615
8616 * calls.c (expand_call): Use subreg_lowpart_offset.
8617 * cse.c (cse_insn): Likewise.
8618 * regcprop.c (copy_value): Likewise.
8619 (copyprop_hardreg_forward_1): Likewise.
8620
8621 2017-10-13 Jakub Jelinek <jakub@redhat.com>
8622
8623 PR target/82524
8624 * config/i386/i386.md (addqi_ext_1, andqi_ext_1,
8625 *andqi_ext_1_cc, *<code>qi_ext_1, *xorqi_ext_1_cc): Change
8626 =Q constraints to +Q and into insn condition add check
8627 that operands[0] and operands[1] are equal.
8628 (*addqi_ext_2, *andqi_ext_2, *<code>qi_ext_2): Change
8629 =Q constraints to +Q and into insn condition add check
8630 that operands[0] is equal to either operands[1] or operands[2].
8631
8632 PR target/82498
8633 * fold-const.c (fold_binary_loc) <bit_rotate>: Code cleanups,
8634 instead of handling MINUS_EXPR twice (once for each argument),
8635 canonicalize operand order and handle just once, use rtype where
8636 possible. Handle (A << B) | (A >> (-B & (Z - 1))).
8637
8638 PR target/82498
8639 * config/i386/ia32intrin.h (__rold, __rord, __rolq, __rorq): Allow
8640 any values of __C while still being pattern recognizable as a simple
8641 rotate instruction.
8642
8643 2017-10-13 Richard Biener <rguenther@suse.de>
8644
8645 PR tree-optimization/82451
8646 Revert
8647 2017-10-02 Richard Biener <rguenther@suse.de>
8648
8649 PR tree-optimization/82355
8650 * graphite-isl-ast-to-gimple.c (build_iv_mapping): Also build
8651 a mapping for the enclosing loop but avoid generating one for
8652 the loop tree root.
8653 (copy_bb_and_scalar_dependences): Remove premature codegen
8654 error on PHIs in blocks duplicated into multiple places.
8655 * graphite-scop-detection.c
8656 (scop_detection::stmt_has_simple_data_refs_p): For a loop not
8657 in the region use it as loop and nest to analyze the DR in.
8658 (try_generate_gimple_bb): Likewise.
8659 * graphite-sese-to-poly.c (extract_affine_chrec): Adjust.
8660 (add_loop_constraints): For blocks in a loop not in the region
8661 create a dimension with a single iteration.
8662 * sese.h (gbb_loop_at_index): Remove assert.
8663
8664 * cfgloop.c (loop_preheader_edge): For the loop tree root
8665 return the single successor of the entry block.
8666 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
8667 Reset the SCEV hashtable and niters.
8668 * graphite-scop-detection.c
8669 (scop_detection::graphite_can_represent_scev): Add SCOP parameter,
8670 assert that we only have POLYNOMIAL_CHREC that vary in loops
8671 contained in the region.
8672 (scop_detection::graphite_can_represent_expr): Adjust.
8673 (scop_detection::stmt_has_simple_data_refs_p): For loops
8674 not in the region set loop to NULL. The nest is now the
8675 entry edge to the region.
8676 (try_generate_gimple_bb): Likewise.
8677 * sese.c (scalar_evolution_in_region): Adjust for
8678 instantiate_scev change.
8679 * tree-data-ref.h (graphite_find_data_references_in_stmt):
8680 Make nest parameter the edge into the region.
8681 (create_data_ref): Likewise.
8682 * tree-data-ref.c (dr_analyze_indices): Make nest parameter an
8683 entry edge into a region and adjust instantiate_scev calls.
8684 (create_data_ref): Likewise.
8685 (graphite_find_data_references_in_stmt): Likewise.
8686 (find_data_references_in_stmt): Pass the loop preheader edge
8687 from the nest argument.
8688 * tree-scalar-evolution.h (instantiate_scev): Make instantiate_below
8689 parameter the edge into the region.
8690 (instantiate_parameters): Use the loop preheader edge as entry.
8691 * tree-scalar-evolution.c (analyze_scalar_evolution): Handle
8692 NULL loop.
8693 (get_instantiated_value_entry): Make instantiate_below parameter
8694 the edge into the region.
8695 (instantiate_scev_name): Likewise. Adjust dominance checks,
8696 when we cannot use loop-based instantiation instantiate by
8697 walking use-def chains.
8698 (instantiate_scev_poly): Adjust.
8699 (instantiate_scev_binary): Likewise.
8700 (instantiate_scev_convert): Likewise.
8701 (instantiate_scev_not): Likewise.
8702 (instantiate_array_ref): Remove.
8703 (instantiate_scev_3): Likewise.
8704 (instantiate_scev_2): Likewise.
8705 (instantiate_scev_1): Likewise.
8706 (instantiate_scev_r): Do not blindly handle N-operand trees.
8707 Do not instantiate array-refs. Handle all constants and invariants.
8708 (instantiate_scev): Make instantiate_below parameter
8709 the edge into the region.
8710 (resolve_mixers): Use the loop preheader edge for the region
8711 parameter to instantiate_scev_r.
8712 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Adjust.
8713
8714 2017-10-13 Richard Biener <rguenther@suse.de>
8715
8716 PR tree-optimization/82525
8717 * graphite-isl-ast-to-gimple.c
8718 (translate_isl_ast_to_gimple::widest_int_from_isl_expr_int): Split
8719 out from ...
8720 (translate_isl_ast_to_gimple::gcc_expression_from_isl_expr_int): Here.
8721 Fail code generation when we cannot represent the isl integer.
8722 (binary_op_to_tree): Elide modulo operations that are no-ops
8723 in the type we code generate. Remove now superfluous code
8724 generation errors.
8725
8726 2017-10-13 Richard Biener <rguenther@suse.de>
8727
8728 * graphite-scop-detection.c (loop_ivs_can_be_represented): Remove.
8729 (scop_detection::harmful_loop_in_region): Remove premature
8730 IV type restriction.
8731 (scop_detection::graphite_can_represent_scev): We can handle
8732 pointer IVs just fine.
8733
8734 2017-10-13 Alan Modra <amodra@gmail.com>
8735
8736 * doc/extend.texi (Extended Asm <Clobbers>): Rename to
8737 "Clobbers and Scratch Registers". Add paragraph on
8738 alternative to clobbers for scratch registers and OpenBLAS
8739 example.
8740
8741 2017-10-13 Alan Modra <amodra@gmail.com>
8742
8743 * doc/extend.texi (Clobbers): Correct vax example. Delete old
8744 example of a memory input for a string of known length. Move
8745 commentary out of table. Add a number of new examples
8746 covering array memory inputs.
8747
8748 2017-10-12 Martin Liska <mliska@suse.cz>
8749
8750 PR tree-optimization/82493
8751 * sbitmap.c (bitmap_bit_in_range_p): Fix the implementation.
8752 (test_range_functions): New function.
8753 (sbitmap_c_tests): Likewise.
8754 * selftest-run-tests.c (selftest::run_tests): Run new tests.
8755 * selftest.h (sbitmap_c_tests): New function.
8756
8757 * tree-ssa-dse.c (live_bytes_read): Fix thinko.
8758
8759 2017-10-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8760
8761 * config/rs6000/amo.h: Fix spacing issue.
8762
8763 2017-10-12 Jakub Jelinek <jakub@redhat.com>
8764
8765 PR target/82498
8766 * config/i386/i386.md (*ashl<mode>3_mask_1,
8767 *<shift_insn><mode>3_mask_1, *<rotate_insn><mode>3_mask_1,
8768 *<btsc><mode>_mask_1, *btr<mode>_mask_1): New define_insn_and_split
8769 patterns.
8770
8771 2017-10-12 Jan Hubicka <hubicka@ucw.cz>
8772
8773 * profile-count.h (safe_scale_64bit): Fix GCC4.x path.
8774 (profile_probability): Set max_probability
8775 to (uint32_t) 1 << (n_bits - 2) and update accessors to avoid overlfows
8776 in temporaries.
8777 * profile-count.c (profile_probability::differs_from_p): Do not
8778 rely on max_probaiblity == 10000
8779
8780 2017-10-12 Jeff Law <law@redhat.com>
8781
8782 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject ao_refs with
8783 negative offsets.
8784
8785 2017-10-12 Martin Sebor <msebor@redhat.com>
8786
8787 PR other/82301
8788 PR c/82435
8789 * cgraphunit.c (maybe_diag_incompatible_alias): New function.
8790 (handle_alias_pairs): Call it.
8791 * common.opt (-Wattribute-alias): New option.
8792 * doc/extend.texi (ifunc attribute): Discuss C++ specifics.
8793 * doc/invoke.texi (-Wattribute-alias): Document.
8794
8795 2017-10-12 Vladimir Makarov <vmakarov@redhat.com>
8796
8797 Revert
8798 2017-10-11 Vladimir Makarov <vmakarov@redhat.com>
8799 PR sanitizer/82353
8800 * lra.c (collect_non_operand_hard_regs): Don't ignore operator
8801 locations.
8802 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): Move up.
8803 (make_hard_regno_born, make_hard_regno_dead): Update
8804 bb_killed_pseudos and bb_gen_pseudos.
8805
8806 2017-10-12 Jan Hubicka <hubicka@ucw.cz>
8807
8808 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Fix Zen support.
8809
8810 2017-10-12 Uros Bizjak <ubizjak@gmail.com>
8811
8812 * config/alpha/alpha.c (alpha_split_conditional_move):
8813 Use std::swap instead of manually swapping.
8814 (alpha_stdarg_optimize_hook): Ditto.
8815 (alpha_canonicalize_comparison): Ditto.
8816
8817 2017-10-12 Bin Cheng <bin.cheng@arm.com>
8818
8819 * tree-loop-distribution.c (struct builtin_info): New struct.
8820 (struct partition): Refactor fields into struct builtin_info.
8821 (partition_free): Free struct builtin_info.
8822 (build_size_arg_loc, build_addr_arg_loc): Delete.
8823 (generate_memset_builtin, generate_memcpy_builtin): Get memory range
8824 information from struct builtin_info.
8825 (find_single_drs): New function refactored from classify_partition.
8826 Also moved builtin validity checks to this function.
8827 (compute_access_range, alloc_builtin): New functions.
8828 (classify_builtin_st, classify_builtin_ldst): New functions.
8829 (classify_partition): Refactor code into functions find_single_drs,
8830 classify_builtin_st and classify_builtin_ldst.
8831 (distribute_loop): Don't do runtime alias check when distributing
8832 loop nest.
8833 (find_seed_stmts_for_distribution): New function.
8834 (pass_loop_distribution::execute): Refactor code finding seed
8835 stmts into above function. Support distribution for the innermost
8836 two-level loop nest. Adjust dump information.
8837
8838 2017-10-12 Bin Cheng <bin.cheng@arm.com>
8839
8840 * tree-loop-distribution.c: Adjust the general comment.
8841 (NUM_PARTITION_THRESHOLD): New macro.
8842 (ssa_name_has_uses_outside_loop_p): Support loop nest distribution.
8843 (classify_partition): Skip builtin pattern of loop nest's inner loop.
8844 (merge_dep_scc_partitions): New parameter ignore_alias_p and use it
8845 in call to build_partition_graph.
8846 (finalize_partitions): New parameter. Make loop distribution more
8847 conservative by fusing more partitions.
8848 (distribute_loop): Don't do runtime alias check in case of loop nest
8849 distribution.
8850 (find_seed_stmts_for_distribution): New function.
8851 (prepare_perfect_loop_nest): New function.
8852 (pass_loop_distribution::execute): Refactor code finding seed stmts
8853 and loop nest into above functions. Support loop nest distribution.
8854 Adjust dump information accordingly.
8855
8856 2017-10-12 Bin Cheng <bin.cheng@arm.com>
8857
8858 * tree-loop-distribution.c (break_alias_scc_partitions): Add comment
8859 and set PTYPE_SEQUENTIAL for merged partition.
8860
8861 2017-10-12 Richard Biener <rguenther@suse.de>
8862
8863 PR tree-optimization/69728
8864 Revert
8865 2017-09-19 Richard Biener <rguenther@suse.de>
8866
8867 PR tree-optimization/69728
8868 * graphite-sese-to-poly.c (schedule_error): New global.
8869 (add_loop_schedule): Handle empty domain by failing the
8870 schedule.
8871 (build_original_schedule): Handle schedule_error.
8872
8873 * graphite-sese-to-poly.c (add_loop_schedule): Handle empty
8874 domain by returning an unchanged schedule.
8875
8876 2017-10-12 Jakub Jelinek <jakub@redhat.com>
8877
8878 * genrecog.c (validate_pattern): For VEC_SELECT verify that
8879 CONST_INT selectors are 0 to GET_MODE_NUNITS (imode) - 1.
8880
8881 2017-10-12 Aldy Hernandez <aldyh@redhat.com>
8882
8883 * Makefile.in (TAGS): Merge all the *.def files into one pattern.
8884 Handle params.def.
8885
8886 2017-10-12 Jakub Jelinek <jakub@redhat.com>
8887
8888 PR c++/82159
8889 * expr.c (store_field): Don't optimize away bitsize == 0 store
8890 from CALL_EXPR with addressable return type.
8891
8892 2017-10-11 Segher Boessenkool <segher@kernel.crashing.org>
8893
8894 * config/rs6000/rs6000.h (TARGET_ISEL64): Delete.
8895 * config/rs6000/rs6000.md (sel): Delete mode attribute.
8896 (mov<mode>cc, isel_signed_<mode>, isel_unsigned_<mode>,
8897 *isel_reversed_signed_<mode>, *isel_reversed_unsigned_<mode>): Use
8898 TARGET_ISEL instead of TARGET_ISEL<sel>.
8899
8900 2017-10-11 David Edelsohn <dje.gcc@gmail.com>
8901
8902 * config/rs6000/rs6000.c
8903 (rs6000_xcoff_asm_output_aligned_decl_common): Test for NULL decl.
8904
8905 2017-10-11 Segher Boessenkool <segher@kernel.crashing.org>
8906
8907 * config/rs6000/predicates.md (zero_constant, all_ones_constant):
8908 Move up in file.
8909 (reg_or_cint_operand): Fix comment.
8910 (reg_or_zero_operand): New predicate.
8911 * config/rs6000/rs6000-protos.h (output_isel): Delete.
8912 * config/rs6000/rs6000.c (output_isel): Delete.
8913 * config/rs6000/rs6000.md (isel_signed_<mode>): Use reg_or_zero_operand
8914 instead of reg_or_cint_operand. Output instruction directly (not via
8915 output_isel).
8916 (isel_unsigned_<mode>): Ditto.
8917 (*isel_reversed_signed_<mode>): Use reg_or_zero_operand instead of
8918 gpc_reg_operand. Add an instruction alternative for this. Output
8919 instruction directly.
8920 (*isel_reversed_unsigned_<mode>): Ditto.
8921
8922 2017-10-11 Uros Bizjak <ubizjak@gmail.com>
8923
8924 * config/i386/i386.c (ix86_canonicalize_comparison): New function.
8925 (TARGET_CANONICALIZE_COMPARISON): Define.
8926
8927 2017-10-11 Qing Zhao <qing.zhao@oracle.com>
8928
8929 PR target/81422
8930 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8931 Check whether the dest is REG before adding REG_EQUIV note.
8932
8933 2017-10-11 Vladimir Makarov <vmakarov@redhat.com>
8934
8935 PR sanitizer/82353
8936 * lra.c (collect_non_operand_hard_regs): Don't ignore operator
8937 locations.
8938 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): Move up.
8939 (make_hard_regno_born, make_hard_regno_dead): Update
8940 bb_killed_pseudos and bb_gen_pseudos.
8941
8942 2017-10-11 Nathan Sidwell <nathan@acm.org>
8943
8944 * incpath.h (enum incpath_kind): Name enum, prefix values.
8945 (add_path, add_cpp_dir_path, get_added_cpp_dirs): Use incpath_kind.
8946 * incpath.c (heads, tails): Use INC_MAX.
8947 (add_env_var_paths, add_standard_paths): Use incpath_kind.
8948 (merge_include_chains, split_quote_chain,
8949 register_include_chains): Update incpath_kind names.
8950 (add_cpp_dir_path, add_path, get_added_cpp_dirs): Use incpath_kind.
8951 * config/darwin-c.c (add_system_framework_path): Update incpath_kind
8952 names.
8953 (add_framework_path, darwin_register_objc_includes): Likewise.
8954 * config/vms/vms-c.c (vms_c_register_includes): Likewise.
8955
8956 2017-10-11 Uros Bizjak <ubizjak@gmail.com>
8957
8958 * config/i386/i386.md (*cmp<X87MODEF:mode>_<SWI24:mode>_i387):
8959 Do not use float_operator operator predicate.
8960 (*cmp<X87MODEF:mode>_<SWI24:mode>_cc_i387): Ditto.
8961 * config/i386/predicates.md (float_operator): Remove predicate.
8962
8963 2017-10-11 Uros Bizjak <ubizjak@gmail.com>
8964
8965 * config/i386/i386.md (*jcc<mode>_0_i387): Remove insn pattern.
8966 (*jccxf_i387): Ditto.
8967 (*jcc<mode>_i387): Ditto.
8968 (*jccu<mode>_i387): Ditto.
8969 (*jcc<X87MODEF:mode>_<SWI24:mode>_i387): Ditto.
8970 (*jcc_*_i387 splitters): Remove.
8971 * config/i386/i386-protos.h (ix86_split_fp_branch): Remove prototype.
8972 * config/i386/i386.c (ix86_split_fp_branch): Remove.
8973 * config/i386/predicates.md (ix86_swapped_fp_comparison_operator):
8974 Remove predicate.
8975
8976 2017-10-11 Jan Hubicka <hubicka@ucw.cz>
8977
8978 * profile-count.h (slow_safe_scale_64bit): New function.
8979 (safe_scale_64bit): New inline.
8980 (profile_count::max_safe_multiplier): Remove; use safe_scale_64bit.
8981 * profile-count.c: Include wide-int.h
8982 (slow_safe_scale_64bit): New.
8983
8984 2017-10-11 Nathan Sidwell <nathan@acm.org>
8985
8986 * tree.h (DECL_ASSEMBLER_NAME_SET_P): Don't check
8987 HAS_DECL_ASSEMBLER_NAME_P.
8988 * gimple-expr.c (gimple_decl_printable_name: Check
8989 HAS_DECL_ASSEMBLER_NAME_P too.
8990 * ipa-utils.h (type_in_anonymous_namespace_p): Check
8991 DECL_ASSEMBLER_NAME_SET_P of TYPE_NAME.
8992 (odr_type_p): No need to assert TYPE_NAME is a TYPE_DECL.
8993 * passes.c (rest_of_decl_compilation): Check
8994 HAS_DECL_ASSEMBLER_NAME_P too.
8995 * recog.c (verify_changes): Likewise.
8996 * tree-pretty-print.c (dump_decl_name): Likewise.
8997 * tree-ssa-structalias.c (alias_get_name): Likewise. Reimplement.
8998
8999 * tree.h (DECL_ASSEMBLER_NAME_RAW): New.
9000 (SET_DECL_ASSEMBLER_NAME): Use it.
9001 (DECL_ASSEMBLER_NAME_SET_P): Likewise.
9002 (COPY_DECL_ASSEMBLER_NAME): Likewise.
9003 * tree.c (decl_assembler_name): Use DECL_ASSEMBLER_NAME_RAW.
9004
9005 2017-10-11 Jan Hubicka <hubicka@ucw.cz>
9006
9007 * config.gcc (i386, x86_64): Add extra objects.
9008 * config/i386/i386-protos.h (ix86_rip_relative_addr_p): Declare.
9009 (ix86_min_insn_size): Declare.
9010 (ix86_issue_rate): Declare.
9011 (ix86_adjust_cost): Declare.
9012 (ia32_multipass_dfa_lookahead): Declare.
9013 (ix86_macro_fusion_p): Declare.
9014 (ix86_macro_fusion_pair_p): Declare.
9015 (ix86_bd_has_dispatch): Declare.
9016 (ix86_bd_do_dispatch): Declare.
9017 (ix86_core2i7_init_hooks): Declare.
9018 (ix86_atom_sched_reorder): Declare.
9019 * config/i386/i386.c Move all CPU cost tables to x86-tune-costs.h.
9020 (COSTS_N_BYTES): Move to x86-tune-costs.h.
9021 (DUMMY_STRINGOP_ALGS):Move to x86-tune-costs.h.
9022 (rip_relative_addr_p): Rename to ...
9023 (ix86_rip_relative_addr_p): ... this one; export.
9024 (memory_address_length): Update.
9025 (ix86_issue_rate): Move to x86-tune-sched.c.
9026 (ix86_flags_dependent): Move to x86-tune-sched.c.
9027 (ix86_agi_dependent): Move to x86-tune-sched.c.
9028 (exact_dependency_1): Move to x86-tune-sched.c.
9029 (exact_store_load_dependency): Move to x86-tune-sched.c.
9030 (ix86_adjust_cost): Move to x86-tune-sched.c.
9031 (ia32_multipass_dfa_lookahead): Move to x86-tune-sched.c.
9032 (ix86_macro_fusion_p): Move to x86-tune-sched.c.
9033 (ix86_macro_fusion_pair_p): Move to x86-tune-sched.c.
9034 (do_reorder_for_imul): Move to x86-tune-sched-atom.c.
9035 (swap_top_of_ready_list): Move to x86-tune-sched-atom.c.
9036 (ix86_sched_reorder): Move to x86-tune-sched-atom.c.
9037 (core2i7_first_cycle_multipass_init): Move to x86-tune-sched-core.c.
9038 (core2i7_dfa_post_advance_cycle): Move to x86-tune-sched-core.c.
9039 (min_insn_size): Rename to ...
9040 (ix86_min_insn_size): ... this one; export.
9041 (core2i7_first_cycle_multipass_begin): Move to x86-tune-sched-core.c.
9042 (core2i7_first_cycle_multipass_issue): Move to x86-tune-sched-core.c.
9043 (core2i7_first_cycle_multipass_backtrack): Move to
9044 x86-tune-sched-core.c.
9045 (core2i7_first_cycle_multipass_end): Move to x86-tune-sched-core.c.
9046 (core2i7_first_cycle_multipass_fini): Move to x86-tune-sched-core.c.
9047 (ix86_sched_init_global): Break up logic to ix86_core2i7_init_hooks.
9048 (ix86_avoid_jump_mispredicts): Update.
9049 (TARGET_SCHED_DISPATCH): Move to ix86-tune-sched-bd.c.
9050 (TARGET_SCHED_DISPATCH_DO): Move to ix86-tune-sched-bd.c.
9051 (TARGET_SCHED_REORDER): Move to ix86-tune-sched-bd.c.
9052 (DISPATCH_WINDOW_SIZE): Move to ix86-tune-sched-bd.c.
9053 (MAX_DISPATCH_WINDOWS): Move to ix86-tune-sched-bd.c.
9054 (MAX_INSN): Move to ix86-tune-sched-bd.c.
9055 (MAX_IMM): Move to ix86-tune-sched-bd.c.
9056 (MAX_IMM_SIZE): Move to ix86-tune-sched-bd.c.
9057 (MAX_IMM_32): Move to ix86-tune-sched-bd.c.
9058 (MAX_IMM_64): Move to ix86-tune-sched-bd.c.
9059 (MAX_LOAD): Move to ix86-tune-sched-bd.c.
9060 (MAX_STORE): Move to ix86-tune-sched-bd.c.
9061 (BIG): Move to ix86-tune-sched-bd.c.
9062 (enum dispatch_group): Move to ix86-tune-sched-bd.c.
9063 (enum insn_path): Move to ix86-tune-sched-bd.c.
9064 (get_mem_group): Move to ix86-tune-sched-bd.c.
9065 (is_cmp): Move to ix86-tune-sched-bd.c.
9066 (dispatch_violation): Move to ix86-tune-sched-bd.c.
9067 (is_branch): Move to ix86-tune-sched-bd.c.
9068 (is_prefetch): Move to ix86-tune-sched-bd.c.
9069 (init_window): Move to ix86-tune-sched-bd.c.
9070 (allocate_window): Move to ix86-tune-sched-bd.c.
9071 (init_dispatch_sched): Move to ix86-tune-sched-bd.c.
9072 (is_end_basic_block): Move to ix86-tune-sched-bd.c.
9073 (process_end_window): Move to ix86-tune-sched-bd.c.
9074 (allocate_next_window): Move to ix86-tune-sched-bd.c.
9075 (find_constant): Move to ix86-tune-sched-bd.c.
9076 (get_num_immediates): Move to ix86-tune-sched-bd.c.
9077 (has_immediate): Move to ix86-tune-sched-bd.c.
9078 (get_insn_path): Move to ix86-tune-sched-bd.c.
9079 (get_insn_group): Move to ix86-tune-sched-bd.c.
9080 (count_num_restricted): Move to ix86-tune-sched-bd.c.
9081 (fits_dispatch_window): Move to ix86-tune-sched-bd.c.
9082 (add_insn_window): Move to ix86-tune-sched-bd.c.
9083 (add_to_dispatch_window): Move to ix86-tune-sched-bd.c.
9084 (debug_dispatch_window_file): Move to ix86-tune-sched-bd.c.
9085 (debug_dispatch_window): Move to ix86-tune-sched-bd.c.
9086 (debug_insn_dispatch_info_file): Move to ix86-tune-sched-bd.c.
9087 (debug_ready_dispatch): Move to ix86-tune-sched-bd.c.
9088 (do_dispatch): Move to ix86-tune-sched-bd.c.
9089 (has_dispatch): Move to ix86-tune-sched-bd.c.
9090 * config/i386/t-i386: Add new object files.
9091 * config/i386/x86-tune-costs.h: New file.
9092 * config/i386/x86-tune-sched-atom.c: New file.
9093 * config/i386/x86-tune-sched-bd.c: New file.
9094 * config/i386/x86-tune-sched-core.c: New file.
9095 * config/i386/x86-tune-sched.c: New file.
9096
9097 2017-10-11 Liu Hao <lh_mouse@126.com>
9098
9099 * pretty-print.c [_WIN32] (colorize_init): Remove. Use
9100 the generic version below instead.
9101 (should_colorize): Recognize Windows consoles as terminals
9102 for MinGW targets.
9103 * pretty-print.c [__MINGW32__] (write_all): New function.
9104 [__MINGW32__] (find_esc_head): Likewise.
9105 [__MINGW32__] (find_esc_terminator): Likewise.
9106 [__MINGW32__] (eat_esc_sequence): Likewise.
9107 [__MINGW32__] (mingw_ansi_fputs): New function that handles
9108 ANSI escape codes.
9109 (pp_write_text_to_stream): Use mingw_ansi_fputs instead of fputs
9110 for MinGW targets.
9111
9112 2017-10-11 Richard Biener <rguenther@suse.de>
9113
9114 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
9115 Properly call analyze_scalar_evolution with the loop of the stmt.
9116
9117 2017-10-11 Richard Biener <rguenther@suse.de>
9118
9119 * tree.def (POLYNOMIAL_CHREC): Remove CHREC_VARIABLE tree operand.
9120 * tree-core.h (tree_base): Add chrec_var union member.
9121 * tree.h (CHREC_VAR): Remove.
9122 (CHREC_LEFT, CHREC_RIGHT, CHREC_VARIABLE): Adjust.
9123 * tree-chrec.h (build_polynomial_chrec): Adjust.
9124 * tree-chrec.c (reset_evolution_in_loop): Use build_polynomial_chrec.
9125 * tree-pretty-print.c (dump_generic_node): Use CHREC_VARIABLE.
9126
9127 2017-10-11 Marc Glisse <marc.glisse@inria.fr>
9128
9129 * fold-const.c (fold_binary_loc) [X +- Y CMP X]: Move ...
9130 * match.pd: ... here.
9131 ((T) X == (T) Y): Relax condition.
9132
9133 2017-10-11 Bin Cheng <bin.cheng@arm.com>
9134
9135 PR tree-optimization/82472
9136 * tree-loop-distribution.c (sort_partitions_by_post_order): Refine
9137 comment.
9138 (break_alias_scc_partitions): Update postorder number.
9139
9140 2017-10-11 Martin Liska <mliska@suse.cz>
9141
9142 PR sanitizer/82490
9143 * opts.c (parse_no_sanitize_attribute): Do not use error_value
9144 variable.
9145 * opts.h (parse_no_sanitize_attribute): Remove last argument.
9146
9147 2017-10-11 Martin Liska <mliska@suse.cz>
9148
9149 * print-rtl.c (print_insn): Move declaration of idbuf
9150 to same scope as name.
9151
9152 2017-10-11 Martin Liska <mliska@suse.cz>
9153
9154 Revert r253637:
9155
9156 PR sanitizer/82484
9157 * sanopt.c (sanitize_rewrite_addressable_params): Do not handle
9158 volatile arguments.
9159
9160 2017-10-11 Martin Liska <mliska@suse.cz>
9161
9162 PR sanitizer/82484
9163 * sanopt.c (sanitize_rewrite_addressable_params): Do not handle
9164 volatile arguments.
9165
9166 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9167
9168 * config.gcc (default_gnu_indirect_function): Default to yes for
9169 arm*-*-linux* with glibc.
9170
9171 2017-10-11 Richard Biener <rguenther@suse.de>
9172
9173 * tree-scalar-evolution.c (get_scalar_evolution): Handle
9174 default-defs and types we do not want to analyze.
9175 (interpret_loop_phi): Replace unreachable code with an assert.
9176 (compute_scalar_evolution_in_loop): Remove and inline ...
9177 (analyze_scalar_evolution_1): ... here, replacing condition with
9178 what makes the intent clearer. Remove handling of cases
9179 get_scalar_evolution now handles.
9180
9181 2017-10-10 Jim Wilson <wilson@tuliptree.org>
9182
9183 PR rtl-optimization/81434
9184 * haifa-sched.c (prune_ready_list): Init min_cost_group to 0. Update
9185 comment for main loop. In sched_group_found if, also add checks for
9186 pass and min_cost_group.
9187
9188 2017-10-10 Segher Boessenkool <segher@kernel.crashing.org>
9189
9190 * config/rs6000/rs6000.c (TARGET_INSN_COST): New.
9191 (rs6000_insn_cost): New function.
9192 * config/rs6000/rs6000.md (cost): New attribute.
9193
9194 2017-10-10 Jakub Jelinek <jakub@redhat.com>
9195 H.J. Lu <hongjiu.lu@intel.com>
9196
9197 PR target/79565
9198 PR target/82483
9199 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Add
9200 OPTION_MASK_ISA_MMX for __builtin_ia32_maskmovq,
9201 __builtin_ia32_vec_ext_v4hi and __builtin_ia32_vec_set_v4hi.
9202 (ix86_expand_builtin): Treat OPTION_MASK_ISA_MMX similarly
9203 to OPTION_MASK_ISA_AVX512VL - builtins that have both
9204 OPTION_MASK_ISA_MMX and some other bit set require both
9205 mmx and the ISAs without the mmx bit.
9206 * config/i386/i386-builtin.def (__builtin_ia32_cvtps2pi,
9207 __builtin_ia32_cvttps2pi, __builtin_ia32_cvtpi2ps,
9208 __builtin_ia32_pavgb, __builtin_ia32_pavgw, __builtin_ia32_pmulhuw,
9209 __builtin_ia32_pmaxub, __builtin_ia32_pmaxsw, __builtin_ia32_pminub,
9210 __builtin_ia32_pminsw, __builtin_ia32_psadbw, __builtin_ia32_pmovmskb,
9211 __builtin_ia32_pshufw, __builtin_ia32_cvtpd2pi,
9212 __builtin_ia32_cvttpd2pi, __builtin_ia32_cvtpi2pd,
9213 __builtin_ia32_pmuludq, __builtin_ia32_pabsb, __builtin_ia32_pabsw,
9214 __builtin_ia32_pabsd, __builtin_ia32_phaddw, __builtin_ia32_phaddd,
9215 __builtin_ia32_phaddsw, __builtin_ia32_phsubw, __builtin_ia32_phsubd,
9216 __builtin_ia32_phsubsw, __builtin_ia32_pmaddubsw,
9217 __builtin_ia32_pmulhrsw, __builtin_ia32_pshufb, __builtin_ia32_psignb,
9218 __builtin_ia32_psignw, __builtin_ia32_psignd, __builtin_ia32_movntq,
9219 __builtin_ia32_paddq, __builtin_ia32_psubq, __builtin_ia32_palignr):
9220 Add OPTION_MASK_ISA_MMX.
9221
9222 2017-10-10 Andreas Tobler <andreast@gcc.gnu.org>
9223
9224 * config.gcc (armv7*-*-freebsd*): New target.
9225 (armv6*-*-freebsd*): Remove obsolete TARGET_FREEBSD_ARMv6 define.
9226
9227 2017-10-10 Jan Hubicka <hubicka@ucw.cz>
9228
9229 * x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI,
9230 X86_TUNE_ADJUST_UNROLL, X86_TUNE_ONE_IF_CONV_INSN): Move to right
9231 spot in the file.
9232
9233 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
9234
9235 * wide-int.h (wide_int_ref_storage): Make host_dependent_precision
9236 a template parameter.
9237 (WIDE_INT_REF_FOR): Update accordingly.
9238 * tree.h (wi::int_traits <const_tree>): Delete.
9239 (wi::tree_to_widest_ref, wi::tree_to_offset_ref): New typedefs.
9240 (wi::to_widest, wi::to_offset): Use them. Expand commentary.
9241 (wi::tree_to_wide_ref): New typedef.
9242 (wi::to_wide): New function.
9243 * calls.c (get_size_range): Use wi::to_wide when operating on
9244 trees as wide_ints.
9245 * cgraph.c (cgraph_node::create_thunk): Likewise.
9246 * config/i386/i386.c (ix86_data_alignment): Likewise.
9247 (ix86_local_alignment): Likewise.
9248 * dbxout.c (stabstr_O): Likewise.
9249 * dwarf2out.c (add_scalar_info, gen_enumeration_type_die): Likewise.
9250 * expr.c (const_vector_from_tree): Likewise.
9251 * fold-const-call.c (host_size_t_cst_p, fold_const_call_1): Likewise.
9252 * fold-const.c (may_negate_without_overflow_p, negate_expr_p)
9253 (fold_negate_expr_1, int_const_binop_1, const_binop)
9254 (fold_convert_const_int_from_real, optimize_bit_field_compare)
9255 (all_ones_mask_p, sign_bit_p, unextend, extract_muldiv_1)
9256 (fold_div_compare, fold_single_bit_test, fold_plusminus_mult_expr)
9257 (pointer_may_wrap_p, expr_not_equal_to, fold_binary_loc)
9258 (fold_ternary_loc, multiple_of_p, fold_negate_const, fold_abs_const)
9259 (fold_not_const, round_up_loc): Likewise.
9260 * gimple-fold.c (gimple_fold_indirect_ref): Likewise.
9261 * gimple-ssa-warn-alloca.c (alloca_call_type_by_arg): Likewise.
9262 (alloca_call_type): Likewise.
9263 * gimple.c (preprocess_case_label_vec_for_gimple): Likewise.
9264 * godump.c (go_output_typedef): Likewise.
9265 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
9266 * internal-fn.c (get_min_precision): Likewise.
9267 * ipa-cp.c (ipcp_store_vr_results): Likewise.
9268 * ipa-polymorphic-call.c
9269 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Likewise.
9270 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
9271 (ipa_modify_call_arguments): Likewise.
9272 * match.pd: Likewise.
9273 * omp-low.c (scan_omp_1_op, lower_omp_ordered_clauses): Likewise.
9274 * print-tree.c (print_node_brief, print_node): Likewise.
9275 * stmt.c (expand_case): Likewise.
9276 * stor-layout.c (layout_type): Likewise.
9277 * tree-affine.c (tree_to_aff_combination): Likewise.
9278 * tree-cfg.c (group_case_labels_stmt): Likewise.
9279 * tree-data-ref.c (dr_analyze_indices): Likewise.
9280 (prune_runtime_alias_test_list): Likewise.
9281 * tree-dump.c (dequeue_and_dump): Likewise.
9282 * tree-inline.c (remap_gimple_op_r, copy_tree_body_r): Likewise.
9283 * tree-predcom.c (is_inv_store_elimination_chain): Likewise.
9284 * tree-pretty-print.c (dump_generic_node): Likewise.
9285 * tree-scalar-evolution.c (iv_can_overflow_p): Likewise.
9286 (simple_iv_with_niters): Likewise.
9287 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
9288 * tree-ssa-ccp.c (ccp_finalize, evaluate_stmt): Likewise.
9289 * tree-ssa-loop-ivopts.c (constant_multiple_of): Likewise.
9290 * tree-ssa-loop-niter.c (split_to_var_and_offset)
9291 (refine_value_range_using_guard, number_of_iterations_ne_max)
9292 (number_of_iterations_lt_to_ne, number_of_iterations_lt)
9293 (get_cst_init_from_scev, record_nonwrapping_iv)
9294 (scev_var_range_cant_overflow): Likewise.
9295 * tree-ssa-phiopt.c (minmax_replacement): Likewise.
9296 * tree-ssa-pre.c (compute_avail): Likewise.
9297 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Likewise.
9298 (vn_reference_maybe_forwprop_address, valueized_wider_op): Likewise.
9299 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
9300 * tree-ssa-uninit.c (is_pred_expr_subset_of): Likewise.
9301 * tree-ssanames.c (set_nonzero_bits, get_nonzero_bits): Likewise.
9302 * tree-switch-conversion.c (collect_switch_conv_info, array_value_type)
9303 (dump_case_nodes, try_switch_expansion): Likewise.
9304 * tree-vect-loop-manip.c (vect_gen_vector_loop_niters): Likewise.
9305 (vect_do_peeling): Likewise.
9306 * tree-vect-patterns.c (vect_recog_bool_pattern): Likewise.
9307 * tree-vect-stmts.c (vectorizable_load): Likewise.
9308 * tree-vrp.c (compare_values_warnv, vrp_int_const_binop): Likewise.
9309 (zero_nonzero_bits_from_vr, ranges_from_anti_range): Likewise.
9310 (extract_range_from_binary_expr_1, adjust_range_with_scev): Likewise.
9311 (overflow_comparison_p_1, register_edge_assert_for_2): Likewise.
9312 (is_masked_range_test, find_switch_asserts, maybe_set_nonzero_bits)
9313 (vrp_evaluate_conditional_warnv_with_ops, intersect_ranges): Likewise.
9314 (range_fits_type_p, two_valued_val_range_p, vrp_finalize): Likewise.
9315 (evrp_dom_walker::before_dom_children): Likewise.
9316 * tree.c (cache_integer_cst, real_value_from_int_cst, integer_zerop)
9317 (integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2)
9318 (tree_floor_log2, tree_ctz, mem_ref_offset, tree_int_cst_sign_bit)
9319 (tree_int_cst_sgn, get_unwidened, int_fits_type_p): Likewise.
9320 (get_type_static_bounds, num_ending_zeros, drop_tree_overflow)
9321 (get_range_pos_neg): Likewise.
9322 * ubsan.c (ubsan_expand_ptr_ifn): Likewise.
9323 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
9324 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
9325 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
9326 * config/avr/avr.c (avr_fold_builtin): Likewise.
9327 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
9328 * config/msp430/msp430.c (msp430_attr): Likewise.
9329 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
9330 * config/powerpcspe/powerpcspe-c.c
9331 (altivec_resolve_overloaded_builtin): Likewise.
9332 * config/powerpcspe/powerpcspe.c (rs6000_aggregate_candidate)
9333 (rs6000_expand_ternop_builtin): Likewise.
9334 * config/rs6000/rs6000-c.c
9335 (altivec_resolve_overloaded_builtin): Likewise.
9336 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
9337 (rs6000_expand_ternop_builtin): Likewise.
9338 * config/s390/s390.c (s390_handle_hotpatch_attribute): Likewise.
9339
9340 2017-10-10 Bin Cheng <bin.cheng@arm.com>
9341
9342 * tree-vect-loop-manip.c (rename_variables_in_bb): Rename PHI nodes
9343 when copying loop nest with only one inner loop.
9344
9345 2017-10-10 Richard Biener <rguenther@suse.de>
9346
9347 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Avoid compacting
9348 blocks if SCEV is active.
9349 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Remove
9350 dead code.
9351 (analyze_scalar_evolution): Handle cached evolutions the obvious way.
9352 (scev_initialize): Assert we are not yet initialized.
9353
9354 2017-10-10 Bin Cheng <bin.cheng@arm.com>
9355
9356 * tree-loop-distribution.c (generate_loops_for_partition): Remove
9357 inner loop's exit stmt by making it always exit the loop, otherwise
9358 we would generate an infinite empty loop.
9359
9360 2017-10-10 Bin Cheng <bin.cheng@arm.com>
9361
9362 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Skip
9363 renaming variables in new preheader if it's deleted.
9364
9365 2017-10-10 Bin Cheng <bin.cheng@arm.com>
9366
9367 * tree-loop-distribution.c (struct partition): Remove unused field
9368 loops of the structure.
9369 (partition_alloc, partition_free): Ditto.
9370 (build_rdg_partition_for_vertex): Ditto.
9371
9372 2017-10-09 Jeff Law <law@redhat.com>
9373
9374 * targhooks.c (default_stack_clash_protection_final_dynamic_probe): Fix
9375 return type to match prototype and documentation.
9376
9377 2010-10-09 Segher Boessenkool <segher@kernel.crashing.org>
9378
9379 * config/rs6000/rs6000.c (processor_costs): Move to ...
9380 * config/rs6000/rs6000.h: ... here.
9381 (rs6000_cost): Declare.
9382
9383 2017-10-09 Eric Botcazou <ebotcazou@adacore.com>
9384
9385 * except.c (setjmp_fn): New global variable.
9386 (init_eh): Initialize it if DONT_USE_BUILTIN_SETJMP is defined.
9387 (sjlj_emit_function_enter): Call it instead of BUILTIN_SETJMP
9388 if DONT_USE_BUILTIN_SETJMP is defined.
9389
9390 2017-10-09 Segher Boessenkool <segher@kernel.crashing.org>
9391
9392 * target.def (insn_cost): New hook.
9393 * doc/tm.texi.in (TARGET_INSN_COST): New hook.
9394 * doc/tm.texi: Regenerate.
9395 * rtlanal.c (insn_cost): Use the new hook.
9396
9397 2017-10-09 Segher Boessenkool <segher@kernel.crashing.org>
9398
9399 * combine.c (combine_validate_cost): Compute the new insn_cost,
9400 not just pattern_cost.
9401 (try_combine): Adjust comment.
9402
9403 2017-10-09 Segher Boessenkool <segher@kernel.crashing.org>
9404
9405 * cfgrtl.c (rtl_account_profile_record): Replace insn_rtx_cost with
9406 insn_cost.
9407 * combine.c (uid_insn_cost): Adjust comment.
9408 (combine_validate_cost): Adjust comment. Use pattern_cost instead
9409 of insn_rtx_cost
9410 (combine_instructions): Use insn_cost instead of insn_rtx_cost.
9411 * dse.c (find_shift_sequence): Ditto.
9412 * ifcvt.c (cheap_bb_rtx_cost_p): Ditto.
9413 (bb_valid_for_noce_process_p): Use pattern_cost.
9414 * rtl.h (insn_rtx_cost): Delete.
9415 (pattern_cost): New prototype.
9416 (insn_cost): New prototype.
9417 * rtlanal.c (insn_rtx_cost): Rename to...
9418 (pattern_cost): ... this.
9419 (insn_cost): New.
9420
9421 2017-10-09 Uros Bizjak <ubizjak@gmail.com>
9422
9423 * config/i386/i386.md (*jcc_2): Remove insn pattern.
9424 (*jcc<mode>_0_r_i387): Ditto.
9425 (*jccxf_r_i387): Ditto.
9426 (*jcc<mode>_r_i387): Ditto.
9427 (*jccu<mode>_r_i387): Ditto.
9428 (*jcc<X87MODEF:mode>_<SWI24:mode>_r_i387): Ditto.
9429 (*jcc): Rename from *jcc_1.
9430
9431 2017-10-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9432
9433 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Process
9434 deferred rescans after the lvx/stvx recombination pre-pass.
9435
9436 2017-10-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9437
9438 * config/rs6000/amo.h: New include file to provide ISA 3.0 atomic
9439 memory operation instruction support.
9440 * config.gcc (powerpc*-*-*): Include amo.h as an extra header.
9441 (rs6000-ibm-aix[789]*): Likewise.
9442 * doc/extend.texi (PowerPC Atomic Memory Operation Functions):
9443 Document new functions.
9444
9445 2017-10-09 Richard Biener <rguenther@suse.de>
9446
9447 PR tree-optimization/82397
9448 * tree-data-ref.c (data_ref_compare_tree): Make sure to return
9449 equality only for semantically equal trees.
9450
9451 2017-10-09 Richard Biener <rguenther@suse.de>
9452
9453 PR tree-optimization/82449
9454 * sese.c (scev_analyzable_p): Check whether the SCEV is linear.
9455 * tree-chrec.h (evolution_function_is_constant_p): Adjust to
9456 allow constant addresses.
9457 * tree-chrec.c (scev_is_linear_expression): Constant evolutions
9458 are linear.
9459
9460 2017-10-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9461
9462 * config/s390/s390-builtins.def (vec_nabs, vec_vfi): Fix builtin
9463 flags.
9464
9465 2017-10-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9466
9467 PR target/82463
9468 * config/s390/vecintrin.h (vec_madd, vec_msub): Fix macro
9469 definitions.
9470
9471 2017-10-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9472
9473 PR target/82465
9474 * config/s390/s390-builtins.def (vec_sqrt): Fix builtin flags.
9475
9476 2017-10-09 Jakub Jelinek <jakub@redhat.com>
9477
9478 PR target/82464
9479 * config/s390/s390-builtins.def (s390_vec_xor_flt_a,
9480 s390_vec_xor_flt_b, s390_vec_xor_flt_c): New.
9481
9482 2017-10-09 Richard Sandiford <richard.sandiford@linaro.org>
9483
9484 * wide-int.h (WI_BINARY_OPERATOR_RESULT): New macro.
9485 (WI_BINARY_PREDICATE_RESULT): Likewise.
9486 (wi::binary_traits::operator_result): New type.
9487 (wi::binary_traits::predicate_result): Likewise.
9488 (generic_wide_int::operator~, unary generic_wide_int::operator-)
9489 (generic_wide_int::operator==, generic_wide_int::operator!=)
9490 (generic_wide_int::operator&, generic_wide_int::and_not)
9491 (generic_wide_int::operator|, generic_wide_int::or_not)
9492 (generic_wide_int::operator^, generic_wide_int::operator+
9493 (binary generic_wide_int::operator-, generic_wide_int::operator*):
9494 Delete.
9495 (operator~, unary operator-, operator==, operator!=, operator&)
9496 (operator|, operator^, operator+, binary operator-, operator*): New
9497 functions.
9498 * expr.c (get_inner_reference): Use wi::bit_and_not.
9499 * fold-const.c (fold_binary_loc): Likewise.
9500 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
9501 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
9502 (bit_value_binop): Likewise.
9503 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
9504 * tree-vrp.c (zero_nonzero_bits_from_vr): Likewise.
9505 (extract_range_from_binary_expr_1): Likewise.
9506 (masked_increment): Likewise.
9507 (simplify_bit_ops_using_ranges): Likewise.
9508
9509 2017-10-09 Martin Jambor <mjambor@suse.cz>
9510
9511 PR hsa/82416
9512 * hsa-common.h (hsa_op_with_type): New method extend_int_to_32bit.
9513 * hsa-gen.c (hsa_extend_inttype_to_32bit): New function.
9514 (hsa_type_for_scalar_tree_type): Use it. Always force min32int for
9515 COMPLEX types.
9516 (hsa_fixup_mov_insn_type): New function.
9517 (hsa_op_with_type::get_in_type): Use it.
9518 (hsa_build_append_simple_mov): Likewise. Allow sub-32bit
9519 immediates in an assert.
9520 (hsa_op_with_type::extend_int_to_32bit): New method.
9521 (gen_hsa_insns_for_bitfield): Fixup instruction and intermediary
9522 types. Convert to dest type if necessary.
9523 (gen_hsa_insns_for_bitfield_load): Fixup load type if necessary.
9524 (reg_for_gimple_ssa): Pass false as min32int to
9525 hsa_type_for_scalar_tree_type.
9526 (gen_hsa_addr): Fixup type when creating addresable temporary.
9527 (gen_hsa_cmp_insn_from_gimple): Extend operands if necessary.
9528 (gen_hsa_unary_operation): Extend operands and convert to dest type if
9529 necessary. Call hsa_fixup_mov_insn_type.
9530 (gen_hsa_binary_operation): Changed operand types to hsa_op_with_type,
9531 extend operands and convert to dest type if necessary.
9532 (gen_hsa_insns_for_operation_assignment): Extend operands and convert
9533 to dest type if necessary.
9534 (set_output_in_type): Call hsa_fixup_mov_insn_type. Just ude dest
9535 if conversion nt necessary and size matches.
9536 (gen_hsa_insns_for_load): Call hsa_fixup_mov_insn_type, convert
9537 to dest type if necessary.
9538 (gen_hsa_insns_for_store): Call hsa_fixup_mov_insn_type.
9539 (gen_hsa_insns_for_switch_stmt): Likewise. Also extend operands if
9540 necessary.
9541 (gen_hsa_clrsb): Likewise.
9542 (gen_hsa_ffs): Likewise.
9543 (gen_hsa_divmod): Extend operands and convert to dest type if
9544 necessary.
9545 (gen_hsa_atomic_for_builtin): Change type of op to hsa_op_with_type.
9546
9547 2017-10-08 Segher Boessenkool <segher@kernel.crashing.org>
9548
9549 * config/rs6000/rs6000.md (conditional branch): Clean up formatting.
9550 Remove empty default arguments. Use a brace block as output
9551 statement.
9552 (conditional return): Ditto.
9553 (jump): Ditto.
9554 (indirect_jump): Ditto. Use b%T0 instead of bctr/blr.
9555 (tablejump, tablejumpsi, tablejumpdi, *tablejump<mode>_internal1):
9556 Ditto.
9557 (group_ending_nop): Ditto.
9558 (doloop_end): Ditto.
9559 (ctr<mode>, ctr<mode>_internal1, ctr<mode>_internal2): Ditto.
9560 (splitters for those): Ditto.
9561
9562 2017-10-08 Segher Boessenkool <segher@kernel.crashing.org>
9563
9564 * config/rs6000/rs6000-string.c (expand_strncmp_align_check): Invert
9565 a conditional jump (and the compare for it) so that pc_rtx is the
9566 last operand.
9567 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Adjust
9568 for the deleted and renamed ctr<mode>_internal[234] patterns.
9569 * config/rs6000/rs6000.md: Delete second conditional branch pattern.
9570 Delete second conditional return pattern.
9571 (ctr<mode>_internal2): Delete this second bdnz pattern.
9572 (ctr<mode>_internal3): Rename to ctr<mode>_internal2.
9573 (ctr<mode>_internal4): Delete this second bdz pattern.
9574
9575 2017-10-08 Eric Botcazou <ebotcazou@adacore.com>
9576
9577 * tree-outof-ssa.h (ssaexpand): Add partitions_for_undefined_values.
9578 (always_initialized_rtx_for_ssa_name_p): New predicate.
9579 * tree-outof-ssa.c (remove_ssa_form): Initialize new field of SA.
9580 (finish_out_of_ssa): Free new field of SA.
9581 * tree-ssa-coalesce.h (get_undefined_value_partitions): Declare.
9582 * tree-ssa-coalesce.c: Include tree-ssa.h.
9583 (get_parm_default_def_partitions): Remove extern keyword.
9584 (get_undefined_value_partitions): New function.
9585 * expr.c (expand_expr_real_1) <expand_decl_rtl>: For a SSA_NAME, do
9586 not set SUBREG_PROMOTED_VAR_P on the sub-register if it may contain
9587 uninitialized bits.
9588 * loop-iv.c (iv_get_reaching_def): Disqualify all subregs.
9589
9590 2017-10-08 Eric Botcazou <ebotcazou@adacore.com>
9591
9592 * builtins.def (BUILT_IN_SETJMP): Revert latest change.
9593
9594 2017-10-08 Jan Hubicka <hubicka@ucw.cz>
9595
9596 * config/i386/i386.c (ix86_expand_set_or_movmem): Disable 512bit loops
9597 for targets that preffer 128bit.
9598
9599 2017-10-08 Jan Hubicka <hubicka@ucw.cz>
9600
9601 * config/i386/i386.c (has_dispatch): Disable for Ryzen.
9602
9603 2017-10-08 Olivier Hainque <hainque@adacore.com>
9604
9605 * config/arm/arm.c (arm_set_return_address): Use MEM_VOLATILE_P
9606 on the target mem instead of RTX_FRAME_RELATED_P on the insn to
9607 prevent DSE.
9608 (thumb_set_return_address): Likewise.
9609
9610 2017-10-08 Olivier Hainque <hainque@adacore.com>
9611
9612 * common/config/arm/arm-common.c (arm_except_unwind_info):
9613 Handle DWARF2_UNWIND_INFO.
9614
9615 2017-10-07 Michael Collison <michael.collison@arm.com>
9616
9617 * config/aarch64/aarch64.md (*aarch64_reg_<optab>_minus<mode>3):
9618 New pattern.
9619
9620 2017-10-07 Eric Botcazou <ebotcazou@adacore.com>
9621
9622 * builtins.def (BUILT_IN_SETJMP): Declare as library builtin instead
9623 of GCC builtin if DONT_USE_BUILTIN_SETJMP is defined.
9624 * except.c (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is
9625 defined, force the creation of a new block for a dispatch label.
9626
9627 2017-10-07 Jan Hubicka <hubicka@ucw.cz>
9628
9629 * invoke.texi (Wsuggest-attribute=cold): Document.
9630 * common.opt (Wsuggest-attribute=cold): New
9631 * ipa-pure-const.c (warn_function_cold): New function.
9632 * predict.c (compute_function_frequency): Use it.
9633 * predict.h (warn_function_cold): Declare.
9634
9635 2017-10-06 Jan Hubicka <hubicka@ucw.cz>
9636
9637 * tree-switch-conversion.c (do_jump_if_equal, emit_cmp_and_jump_insns):
9638 Update profile.
9639
9640 2017-10-06 Martin Liska <mliska@suse.cz>
9641
9642 * sanopt.c (struct sanopt_tree_triplet_hash): Remove inline
9643 keyword for member functions.
9644 (struct sanopt_tree_couple): New struct.
9645 (struct sanopt_tree_couple_hash): New function.
9646 (struct sanopt_ctx): Add new hash_map.
9647 (has_dominating_ubsan_ptr_check): New function.
9648 (record_ubsan_ptr_check_stmt): Likewise.
9649 (maybe_optimize_ubsan_ptr_ifn): Likewise.
9650 (sanopt_optimize_walker): Handle IFN_UBSAN_PTR.
9651 (pass_sanopt::execute): Handle also SANITIZE_POINTER_OVERFLOW.
9652
9653 2017-10-06 Sudakshina Das <sudi.das@arm.com>
9654
9655 PR target/82440
9656 * config/aarch64/predicates.md (aarch64_reg_or_orr_imm): Only call
9657 aarch64_simd_valid_immediate on CONST_VECTORs.
9658 (aarch64_reg_or_bic_imm): Likewise.
9659
9660 2017-10-06 Wilco Dijkstra <wdijkstr@arm.com>
9661
9662 PR rtl-optimization/82396
9663 * haifa-sched.c (ready_sort_real): Disable qsort checking.
9664
9665 2017-10-06 Sebastian Pop <sebpop@gmail.com>
9666
9667 * graphite-dependences.c (scop_get_reads): Move code to...
9668 (scop_get_must_writes): Move code to...
9669 (scop_get_may_writes): Move code to...
9670 (scop_get_reads_and_writes): ... here.
9671 (scop_get_dependences): Call scop_get_reads_and_writes.
9672
9673 2017-10-06 Jakub Jelinek <jakub@redhat.com>
9674
9675 PR tree-optimization/82434
9676 * fold-const.h (can_native_encode_type_p,
9677 can_native_encode_string_p): Remove.
9678 * fold-const.c (native_encode_int): Formatting fixes. If ptr is NULL,
9679 don't encode anything, just return what would be otherwise returned.
9680 (native_encode_fixed, native_encode_complex, native_encode_vector):
9681 Likewise.
9682 (native_encode_string): Likewise. Inline by hand
9683 can_native_encode_string_p.
9684 (can_native_encode_type_p): Remove.
9685 (can_native_encode_string_p): Remove.
9686 * tree-vect-stmts.c (vectorizable_store): Instead of testing just
9687 STRING_CSTs using can_native_encode_string_p, test all
9688 CONSTANT_CLASS_P values using native_encode_expr with NULL ptr.
9689 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Remove last
9690 argument from native_encode_expr.
9691 (rhs_valid_for_store_merging_p): Use native_encode_expr with NULL ptr.
9692 (pass_store_merging::execute): Don't unnecessarily look for 3 stmts,
9693 but just 2.
9694
9695 2017-10-06 Richard Biener <rguenther@suse.de>
9696
9697 PR tree-optimization/82397
9698 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use
9699 operand_equal_p but rely on data_ref_compare_tree for detecting
9700 equalities.
9701 (vect_analyze_data_ref_accesses): Use data_ref_compare_tree
9702 to match up with dr_group_sort_cmp.
9703
9704 2017-10-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9705
9706 PR target/82322
9707 * config/s390/s390-builtins.def (s390_vfi): Define new overloaded
9708 builtin.
9709 * config/s390/s390-builtin-types.def: Regenerate.
9710
9711 2017-10-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9712
9713 PR target/82317
9714 * config/s390/s390-builtin-types.def: Regenerate.
9715 * config/s390/s390-builtins.def (s390_vfmaxdb_4, s390_vfmindb_4):
9716 Change flag from B_VXE to B_VX.
9717 (s390_vec_min_dbl): Remove B_VXE flag.
9718
9719 2017-10-06 Richard Biener <rguenther@suse.de>
9720
9721 * graphite-isl-ast-to-gimple.c: Include ssa.h and tree-ssa.h.
9722 (translate_isl_ast_to_gimple::translate_pending_phi_nodes,
9723 translate_isl_ast_to_gimple::is_valid_rename,
9724 translate_isl_ast_to_gimple::get_rename,
9725 translate_isl_ast_to_gimple::get_def_bb_for_const,
9726 translate_isl_ast_to_gimple::get_new_name,
9727 translate_isl_ast_to_gimple::collect_all_ssa_names,
9728 translate_isl_ast_to_gimple::copy_loop_phi_args,
9729 translate_isl_ast_to_gimple::collect_all_ssa_names,
9730 translate_isl_ast_to_gimple::copy_loop_phi_args,
9731 translate_isl_ast_to_gimple::copy_loop_phi_nodes,
9732 translate_isl_ast_to_gimple::add_close_phis_to_merge_points,
9733 translate_isl_ast_to_gimple::add_close_phis_to_outer_loops,
9734 translate_isl_ast_to_gimple::copy_loop_close_phi_args,
9735 translate_isl_ast_to_gimple::copy_loop_close_phi_nodes,
9736 translate_isl_ast_to_gimple::copy_cond_phi_args,
9737 translate_isl_ast_to_gimple::copy_cond_phi_nodes,
9738 translate_isl_ast_to_gimple::edge_for_new_close_phis,
9739 translate_isl_ast_to_gimple::add_phi_arg_for_new_expr,
9740 translate_isl_ast_to_gimple::rename_uses,
9741 translate_isl_ast_to_gimple::rename_all_uses): Remove.
9742 (translate_isl_ast_to_gimple::get_rename_from_scev): Simplify.
9743 (set_rename_for_each_def): Likewise.
9744 (graphite_copy_stmts_from_block): Handle debug stmt resetting
9745 here. Handle rewriting SCEV analyzable uses here.
9746 (copy_bb_and_scalar_dependences): Generate code for PHI
9747 copy-in/outs.
9748 (graphite_regenerate_ast_isl): Adjust.
9749 * graphite-scop-detection.c (trivially_empty_bb_p): Move to sese.[ch].
9750 (add_write, add_read): New functions.
9751 (build_cross_bb_scalars_def): Use it and simplify.
9752 (build_cross_bb_scalars_use): Likewise.
9753 (graphite_find_cross_bb_scalar_vars): Inline into...
9754 (try_generate_gimple_bb): ...here. Add dependences for PHIs,
9755 simulating out-of-SSA. Compute liveout and add dependencies.
9756 (build_scops): Force an empty entry block.
9757 * sese.h (sese_info_t::liveout, sese_info_t::debug_liveout): New
9758 members.
9759 (sese_build_liveouts): Declare.
9760 (sese_trivially_empty_bb_p): Likewise.
9761 * sese.c (sese_build_liveouts_bb): Properly handle PHIs,
9762 compute liveout and debug_liveout.
9763 (sese_bad_liveouts_use): Remove.
9764 (sese_reset_debug_liveouts_bb): Likewise.
9765 (sese_reset_debug_liveouts): Rewrite in terms of debug_liveout.
9766 (sese_build_liveouts): Build liveout and debug_liveout and store
9767 it in region.
9768 (new_sese_info): Adjust.
9769 (free_sese_info): Likewise.
9770 (sese_insert_phis_for_liveouts): Reset debug stmts from here,
9771 do not build liveout here.
9772 (move_sese_in_condition): Adjust region entry.
9773 (scev_analyzable_p): Match up with chrec_apply requirements.
9774 (sese_trivially_empty_bb_p): New.
9775 * tree-into-ssa.c (get_reaching_def): Properly support generating
9776 default-defs for incremental rewrite of anonymous names.
9777
9778 2017-10-06 Richard Biener <rguenther@suse.de>
9779
9780 * graphite-sese-to-poly.c (extract_affine): For casts increasing
9781 precision do not perform modulo reduction.
9782
9783 2017-10-06 Richard Biener <rguenther@suse.de>
9784
9785 PR tree-optimization/82436
9786 * tree-vect-slp.c (vect_supported_load_permutation_p): More
9787 conservatively choose the vectorization factor when checking
9788 whether we can perform the required load permutation.
9789 (vect_transform_slp_perm_load): Assert when we may not fail.
9790
9791 2017-10-05 Segher Boessenkool <segher@kernel.crashing.org>
9792
9793 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Correct error
9794 message for incompatible -msdata=* and -mcall-* options.
9795
9796 2017-10-05 Jan Hubicka <hubicka@ucw.cz>
9797
9798 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Default to issue
9799 rate for post-reload scheduling.
9800
9801 2017-10-05 Tamar Christina <tamar.christina@arm.com>
9802
9803 * doc/sourcebuild.texi (vect_sizes_16B_8B, vect_sizes_32B_16B): New.
9804
9805 2017-10-05 Jan Hubicka <hubicka@ucw.cz>
9806
9807 * config/i386/i386.c (znver1_cost): Set branch_cost to 3 (instead of 2)
9808 to improve monte carlo in scimark.
9809
9810 2017-10-05 Jan Hubicka <hubicka@ucw.cz>
9811
9812 * config/i386/i386.c (ix86_size_cost, i386_cost, i486_cost,
9813 pentium_cost, lakemont_cost, pentiumpro_cost, geode_cost, k6_cost,
9814 athlon_cost, k8_cost, amdfam10_cost, btver1_cost, btver2_cost,
9815 pentium4_cost, nocona_cost): Set reassociation width to 1.
9816 (bdver1_cost, bdver2_cost, bdver3_cost, bdver4_cost): Set reassociation
9817 width to 2 for fp operations and 1 otherwise.
9818 (znver1_cost): Set scalar reassoc width to 4 and vector to 3 and 6
9819 for int and fp.
9820 (atom_cost): Set reassociation width to 2.
9821 (slm_cost, generic_cost): Set fp reassociation width
9822 to 2 and 1 otherwise.
9823 (intel_cost): Set fp reassociation width to 4 and 1 otherwise.
9824 (core_cost): Set fp reassociation width to 4 and vector to 2.
9825 (ix86_reassociation_width): Rewrite using cost table; special case
9826 plus/minus on Zen; honor X86_TUNE_SSE_SPLIT_REGS
9827 and TARGET_AVX128_OPTIMAL.
9828 * config/i386/i386.h (processor_costs): Add
9829 reassoc_int, reassoc_fp, reassoc_vec_int, reassoc_vec_fp.
9830 (TARGET_VECTOR_PARALLEL_EXECUTION, TARGET_REASSOC_INT_TO_PARALLEL,
9831 TARGET_REASSOC_FP_TO_PARALLEL): Remove.
9832 * x86-tune.def (X86_TUNE_REASSOC_INT_TO_PARALLEL): Remove.
9833 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Remove.
9834 (X86_TUNE_VECTOR_PARALLEL_EXECUTION): Remove.
9835
9836 2017-10-05 Nathan Sidwell <nathan@acm.org>
9837
9838 * doc/invoke.texi (Wparentheses): Document C++ MVP behaviour.
9839
9840 2017-10-05 Tamar Christina <tamar.christina@arm.com>
9841
9842 * config/arm/arm.c (arm_test_fpu_data): New.
9843 (arm_run_selftests): Call arm_test_fpu_data.
9844
9845 2017-10-04 Nathan Sidwell <nathan@acm.org>
9846
9847 * toplev.c (toplev::main): Remove excess parens on pretty_printer
9848 decl.
9849 * caller-save.c (insert_save): Remove excess parens on TO_SAVE parm.
9850
9851 2017-10-04 Sudakshina Das <sudi.das@arm.com>
9852
9853 * config/aarch64/aarch64-protos.h (enum simd_immediate_check): New
9854 check type for aarch64_simd_valid_immediate.
9855 (aarch64_output_simd_mov_immediate): Update prototype.
9856 (aarch64_simd_valid_immediate): Update prototype.
9857 * config/aarch64/aarch64-simd.md (orr<mode>3): modified pattern to add
9858 support for ORR-immediate.
9859 (and<mode>3): modified pattern to add support for BIC-immediate.
9860 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Function
9861 now checks for valid immediate for BIC and ORR based on new enum
9862 argument.
9863 (aarch64_output_simd_mov_immediate): Function now used to output
9864 BIC/ORR imm as well based on new enum argument.
9865 * config/aarch64/constraints.md (Do): New vector immediate constraint.
9866 (Db) : Likewise.
9867 * config/aarch64/predicates.md (aarch64_reg_or_orr_imm): New predicate.
9868 (aarch64_reg_or_bic_imm): Likewise.
9869
9870 2017-10-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9871
9872 * config/s390/vx-builtins.md ("vec_mergeh<mode>")
9873 ("vec_mergel<mode>"): Change mode iterator to V_128_NOSINGLE.
9874
9875 2017-10-04 Wilco Dijkstra <wdijkstr@arm.com>
9876
9877 Revert r253399:
9878
9879 PR rtl-optimization/82396
9880 * haifa-sched.c (autopref_multipass_init): Simplify
9881 initialization.
9882 (autopref_rank_data): Simplify sort order.
9883 * sched-int.h (autopref_multipass_data_): Remove
9884 multi_mem_insn_p, min_offset and max_offset.
9885
9886 2017-10-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9887
9888 * doc/sourcebuild.texi: Document vect_peeling_profitable.
9889
9890 2017-10-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9891
9892 * doc/sourcebuild.texi: Document vect_intdouble_cvt and
9893 vect_doubleint_cvt.
9894
9895 2017-10-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9896
9897 * doc/sourcebuild.texi: Document vect_long_mult.
9898
9899 2017-10-04 Richard Sandiford <richard.sandiford@linaro.org>
9900
9901 PR tree-optimization/82413
9902 * fold-const.c (build_range_check): Use widest_int when comparing
9903 the maximum ETYPE value with HIGH.
9904
9905 2017-10-04 Wilco Dijkstra <wdijkstr@arm.com>
9906
9907 PR rtl-optimization/82396
9908 * haifa-sched.c (autopref_multipass_init): Simplify
9909 initialization.
9910 (autopref_rank_data): Simplify sort order.
9911 * sched-int.h (autopref_multipass_data_): Remove
9912 multi_mem_insn_p, min_offset and max_offset.
9913
9914 2017-10-04 Jakub Jelinek <jakub@redhat.com>
9915
9916 PR tree-optimization/82381
9917 * tree-ssa-reassoc.c (sort_by_operand_rank): Check for different
9918 oeN->rank first. Return 1 or -1 if one op is SSA_NAME and the other
9919 is not.
9920
9921 PR tree-optimization/82374
9922 * omp-low.c (create_omp_child_function): Copy DECL_ATTRIBUTES,
9923 DECL_FUNCTION_SPECIFIC_OPTIMIZATION,
9924 DECL_FUNCTION_SPECIFIC_TARGET and DECL_FUNCTION_VERSIONED from
9925 current_function_decl to the new decl.
9926
9927 2017-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
9928
9929 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2_HW): Define new
9930 helper macro for IEEE float128 hardware built-in functions.
9931 (SQRTF128_ODD): Add built-in functions with the round-to-odd
9932 semantics.
9933 (TRUNCF128_ODD): Likewise.
9934 (ADDF128_ODD): Likewise.
9935 (SUBF128_ODD): Likewise.
9936 (MULF128_ODD): Likewise.
9937 (DIVF128_ODD): Likewise.
9938 (FMAF128_ODD): Likewise.
9939 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): Rename to
9940 UNSPEC_TRUNC_ROUND_TO_ODD.
9941 (UNSPEC_TRUNC_ROUND_TO_ODD): Likewise.
9942 (UNSPEC_ADD_ROUND_TO_ODD): New unspec codes for the IEEE 128-bit
9943 floating point round to odd instructions.
9944 (UNSPEC_SUB_ROUND_TO_ODD): Likewise.
9945 (UNSPEC_MUL_ROUND_TO_ODD): Likewise.
9946 (UNSPEC_DIV_ROUND_TO_ODD): Likewise.
9947 (UNSPEC_FMA_ROUND_TO_ODD): Likewise.
9948 (UNSPEC_SQRT_ROUND_TO_ODD): Likewise.
9949 (trunc<mode>sf2_hw): Change the truncate with round to odd
9950 expansion to use UNSPEC_TRUNC_ROUND_TO_ODD.
9951 (add<mode>3_odd): Add insns for IEEE 128-bit floating point round
9952 to odd hardware instructions.
9953 (sub<mode>3_odd): Likewise.
9954 (mul<mode>3_odd): Likewise.
9955 (div<mode>3_odd): Likewise.
9956 (sqrt<mode>2_odd): Likewise.
9957 (fma<mode>4_odd): Likewise.
9958 (fms<mode>4_odd): Likewise.
9959 (nfma<mode>4_odd): Likewise.
9960 (nfms<mode>4_odd): Likewise.
9961 (trunc<mode>df2_odd): Change the truncate with round to odd
9962 expansion to use UNSPEC_TRUNC_ROUND_TO_ODD. Add a generator
9963 function.
9964 * doc/extend.texi (PowerPC built-in functions): Update documentation
9965 for existing IEEE float128-bit built-in functions. Add built-in
9966 functions that generate the IEEE 128-bit floating point round to
9967 odd instructions.
9968
9969 2017-10-03 Segher Boessenkool <segher@kernel.crashing.org>
9970
9971 PR rtl-optimization/77729
9972 * simplify-rtx.c (simplify_binary_operation_1): Delete the (X&C1)|C2
9973 to (X&(C1&~C2))|C2 transformations.
9974
9975 2017-10-03 Martin Jambor <mjambor@suse.cz>
9976
9977 PR tree-optimization/82363
9978 * tree-sra.c (propagate_subaccesses_across_link): In unrecoverable
9979 mismatch, mark lacc written regardless of racc.
9980
9981 2017-10-03 Jakub Jelinek <jakub@redhat.com>
9982
9983 PR tree-optimization/82381
9984 * tree-ssa-reassoc.c (sort_by_operand_rank): Don't check
9985 stmt_to_insert nor wheather SSA_NAMEs are default defs.
9986 Return 1 or -1 if one of bba and bbb is NULL. If bb_rank is equal,
9987 fallthrough into reassoc_stmt_dominates_stmt_p.
9988
9989 PR target/82386
9990 * combine.c (combine_instructions): Don't combine in unreachable
9991 basic blocks.
9992
9993 2017-08-18 Peter Bergner <bergner@vnet.ibm.com>
9994
9995 PR target/80210
9996 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rewrite
9997 function to not use the have_cpu variable. Do not set cpu_index,
9998 rs6000_cpu_index or rs6000_tune_index if we end up using TARGET_DEFAULT
9999 or the default cpu.
10000 (rs6000_valid_attribute_p): Remove duplicate initializations of
10001 old_optimize and func_optimize.
10002 (rs6000_pragma_target_parse): Call rs6000_activate_target_options ().
10003 (rs6000_activate_target_options): Make global.
10004 * config/rs6000/rs6000-protos.h (rs6000_activate_target_options): Add
10005 prototype.
10006
10007 2017-10-02 Jakub Jelinek <jakub@redhat.com>
10008
10009 * tree-dfa.c (get_ref_base_and_extent): Set *pmax_size to -1
10010 if *poffset + *pmax_size overflows in HOST_WIDE_INT.
10011 Set *poffset to 0 and *psize and *pmax_size to -1 if
10012 *poffset + *psize overflows in HOST_WIDE_INT.
10013
10014 PR tree-optimization/82387
10015 PR tree-optimization/82388
10016 PR tree-optimization/82389
10017 * tree-ssa-dse.c (dse_classify_store): Test byte_tracking_enabled
10018 instead of live_bytes non-NULL.
10019
10020 2017-10-02 Georg-Johann Lay <avr@gjlay.de>
10021
10022 PR target/41076
10023 * confg/avr/avr.md (*iorhi3.ashift8-ext.zerox): Add "r,r,0"
10024 alternative.
10025
10026 2017-10-02 Richard Biener <rguenther@suse.de>
10027
10028 * graphite-isl-ast-to-gimple.c (set_codegen_error): With
10029 -fchecking and --param graphite-allow-codegen-errors=0 ICE.
10030 * params.def (PARAM_GRAPHITE_ALLOW_CODEGEN_ERRORS): New param.
10031
10032 2017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
10033
10034 * tree.h (wi::int_traits <const_tree>::decompose): Assert that the
10035 requested precision matches the type's.
10036 * calls.c (alloc_max_size): Calculate the new candidate size as
10037 a widest_int and use wi::to_widest when comparing it with the
10038 current candidate size.
10039 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Compare with
10040 zero rather than integer_zero_node.
10041 * match.pd: Check for a no-op conversion before using wi::add
10042 rather than after. Use tree_to_uhwi when summing small shift
10043 counts into an unsigned int.
10044
10045 2017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
10046 Alan Hayward <alan.hayward@arm.com>
10047 David Sherwood <david.sherwood@arm.com>
10048
10049 PR target/71307
10050 * config/aarch64/aarch64.h (POINTER_AND_FP_REGS): New reg class.
10051 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
10052 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Handle
10053 POINTER_AND_FP_REGS.
10054
10055 2017-10-02 Richard Biener <rguenther@suse.de>
10056
10057 PR tree-optimization/82355
10058 * graphite-isl-ast-to-gimple.c (build_iv_mapping): Also build
10059 a mapping for the enclosing loop but avoid generating one for
10060 the loop tree root.
10061 (copy_bb_and_scalar_dependences): Remove premature codegen
10062 error on PHIs in blocks duplicated into multiple places.
10063 * graphite-scop-detection.c
10064 (scop_detection::stmt_has_simple_data_refs_p): For a loop not
10065 in the region use it as loop and nest to analyze the DR in.
10066 (try_generate_gimple_bb): Likewise.
10067 * graphite-sese-to-poly.c (extract_affine_chrec): Adjust.
10068 (add_loop_constraints): For blocks in a loop not in the region
10069 create a dimension with a single iteration.
10070 * sese.h (gbb_loop_at_index): Remove assert.
10071
10072 2017-10-01 Kevin Buettner <kevinb@redhat.com>
10073
10074 * omp-expand.c (adjust_context_scope): New function.
10075 (expand_parallel_call): Call adjust_context_scope.
10076
10077 2017-10-01 Jeff Law <law@redhat.com>
10078
10079 * tree-ssa-dom.c (optimize_stmt): Make this a method within the
10080 dom_opt_dom_walker class with direct access to private members.
10081 Add comments. Call test_for_singularity.
10082 (dom_opt_dom_walker::before_dom_children): Corresponding changes.
10083 (dom_opt_dom_walker::after_dom_children): Do not lazily initialize
10084 m_dummy_cond anymore.
10085 (class dom_opt_dom_walker): Initialize m_dummy_cond member in the
10086 class ctor.
10087 (pass_dominator:execute): Build the dummy_cond here and pass it
10088 to the dom_opt_dom_walker ctor.
10089 (test_for_singularity): New function.
10090
10091 2017-09-30 Krister Walfridsson <krister.walfridsson@gmail.com>
10092 Maya Rashish <coypu@sdf.org>
10093
10094 * config.gcc (*-*-netbsd*): New variable nbsd_tm_file containing
10095 netbsd.h, netbsd-stdint.h, and netbsd-elf.h.
10096 (alpha*-*-netbsd*) Use nbsd_tm_file.
10097 (arm*-*-netbsdelf*) Likewise.
10098 (i[34567]86-*-netbsdelf*) Likewise.
10099 (x86_64-*-netbsd*) Likewise.
10100 (mips*-*-netbsd*) Likewise.
10101 (powerpc-*-netbsd*) Likewise.
10102 (sh*-*-netbsd*) Likewise.
10103 (sparc-*-netbsdelf*) Likewise.
10104 (sparc64-*-netbsd*) Likewise.
10105 (m68k*-*-netbsdelf*) Use nbsd_tm_file and add CHAR_FAST8/SHORT_FAST16
10106 to tm_defines.
10107 (vax-*-netbsdelf*) Likewise.
10108 * config/netbsd-stdint.h (INT_FAST8_TYPE): Check CHAR_FAST8.
10109 (UINT_FAST8_TYPE) Likewise.
10110 (INT_FAST16_TYPE) Check CHAR_FAST16.
10111 (UINT_FAST16_TYPE) Likewise.
10112
10113 2017-09-30 Jakub Jelinek <jakub@redhat.com>
10114
10115 PR target/82361
10116 * config/i386/i386.md
10117 (TARGET_USE_8BIT_IDIV zext divmodsi4 splitter): New define_split.
10118 (divmodsi4_zext_1, divmodsi4_zext_2, *divmodsi4_zext_1,
10119 *divmodsi4_zext_2): New define_insn_and_split.
10120 (*divmodsi4_noext_zext_1, *divmodsi4_noext_zext_2): New define_insn.
10121 (TARGET_USE_8BIT_IDIV zext udivmodsi4 splitter): New define_split.
10122 (udivmodsi4_zext_1, udivmodsi4_zext_2, *udivmodsi4_zext_1,
10123 *udivmodsi4_zext_2, *udivmodsi4_pow2_zext_1, *udivmodsi4_pow2_zext_2):
10124 New define_insn_and_split.
10125 (*udivmodsi4_noext_zext_1, *udivmodsi4_noext_zext_2): New define_insn.
10126 * config/i386/i386.c (ix86_split_idivmod): Handle operands[0] or
10127 operands[1] having DImode when mode is SImode.
10128
10129 * config/i386/i386.c (ix86_split_idivmod): Use mode instead of
10130 always SImode for DIV and MOD in REG_EQUAL notes.
10131
10132 2017-09-29 Yury Gribov <tetra2005@gmail.com>
10133
10134 PR middle-end/82319
10135 * match.pd: Fix handling of NaNs in pattern.
10136
10137 2017-09-29 Jeff Law <law@redhat.com>
10138
10139 * sbitmap.c (bitmap_bit_in_range_p): New function.
10140 * sbitmap.h (bitmap_bit_in_range_p): Prototype.
10141 * tree-ssa-dse.c (live_bytes_read): New function.
10142 (dse_classify_store): Ignore reads of dead bytes.
10143
10144 * config/i386/i386.c (ix86_adjust_stack_and_probe_stack_clash): Fix
10145 typos and whitespace errors.
10146 * config/i386/predicates.md (address_no_seg_operand): Likewise.
10147 * config/s390/s390.c (s390_emit_prologue): Likewise.
10148
10149 2017-09-29 Vladimir Makarov <vmakarov@redhat.com>
10150
10151 PR target/81481
10152 * ira-costs.c (scan_one_insn): Don't take into account PIC equiv
10153 with a symbol for LRA.
10154
10155 2017-09-29 Vladimir Makarov <vmakarov@redhat.com>
10156
10157 PR rtl-optimization/82338
10158 * lra-constraints.c (inherit_in_ebb): Check usage_insns check.
10159
10160 2017-09-29 Alexander Monakov <amonakov@ispras.ru>
10161
10162 * genmodes.c (calc_wider_mode): Suppress qsort macro.
10163 * system.h [CHECKING_P] (qsort): Redirect to qsort_chk.
10164 (qsort_chk): Declare.
10165 * vec.c [CHECKING_P] (qsort_chk_error): New static function.
10166 (qsort_chk): New function.
10167
10168 2017-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10169
10170 PR tree-optimization/82337
10171 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
10172 phi definition if the PHI result appears in an abnormal PHI.
10173 (find_basis_for_base_expr): Don't record a basis if the LHS of the
10174 basis appears in an abnormal PHI.
10175
10176 2017-09-29 Richard Biener <rguenther@suse.de>
10177
10178 * graphite-isl-ast-to-gimple.c
10179 (translate_isl_ast_to_gimple::set_codegen_error): New function.
10180 (binary_op_to_tree): Use it.
10181 (get_rename_from_scev): Likewise.
10182 (copy_loop_phi_nodes): Likewise.
10183 (copy_bb_and_scalar_dependences): Likewise.
10184 (translate_pending_phi_nodes): Likewise.
10185
10186 2017-09-29 Jakub Jelinek <jakub@redhat.com>
10187
10188 PR target/82339
10189 * config/i386/i386.md (*movdi_internal peephole2): New -Os peephole
10190 for movabsq $(i32 << shift), r64.
10191
10192 2017-09-28 Uros Bizjak <ubizjak@gmail.com>
10193
10194 * config/i386/i386.c (ix86_print_operand_address_as): Do not check
10195 index when encoding %esp as %rsp to avoid 0x67 prefix.
10196
10197 2017-09-28 Sergey Shalnov <Sergey.Shalnov@intel.com>
10198
10199 * config/i386/i386.md (*movsf_internal, *movdf_internal):
10200 Return 256-bit AVX modes for TARGET_PREFER_AVX256.
10201
10202 2017-09-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
10203
10204 * config/arm/arm.c (arm_option_override): Forbid ARMv8-M Security
10205 Extensions with more than 16 double VFP registers.
10206 (cmse_nonsecure_entry_clear_before_return): Remove second entry of
10207 to_clear_mask and all code related to it. Replace the remaining
10208 entry by a sbitmap and adapt code accordingly.
10209
10210 2017-09-28 Henry Linjamäki <henry.linjamaki@parmance.com>
10211
10212 * brig-builtins.def: Change pure attributes to const.
10213
10214 2017-09-28 Joseph Myers <joseph@codesourcery.com>
10215
10216 * config.gcc (default_gnu_indirect_function): Default to yes for
10217 sparc*-*-linux* with glibc.
10218
10219 2017-09-28 Joseph Myers <joseph@codesourcery.com>
10220
10221 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor)
10222 (aarch64_elf_asm_destructor): Pass SECTION_NOTYPE to get_section
10223 when creating .init_array and .fini_array sections with priority
10224 specified.
10225
10226 2017-09-27 Christophe Lyon <christophe.lyon@linaro.org>
10227
10228 PR target/71727
10229 * config/aarch64/aarch64.c
10230 (aarch64_builtin_support_vector_misalignment): Always return false
10231 when misalignment is unknown.
10232
10233 2017-09-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
10234
10235 * config/rs6000/rs6000-p8swap.c (const_load_sequence_p): Revise
10236 this function to return false if the definition used by the swap
10237 instruction is artificial, or if the memory address from which the
10238 constant value is loaded is not represented by a base address held
10239 in a register or if the base address register is a frame or stack
10240 pointer. Additionally, return false if the base address of the
10241 loaded constant is a SYMBOL_REF but is not considered to be a
10242 constant.
10243 (replace_swapped_load_constant): New function.
10244 (rs6000_analyze_swaps): Add a new pass to replace a swap of a
10245 loaded constant vector with a load of a swapped constant vector.
10246
10247 2017-09-27 Carl Love <cel@us.ibm.com>
10248
10249 * config/rs6000/rs6000-builtin.def (BU_FP_1MISC_1): Add define macro.
10250 (FCTID, FCTIW): Add BU_FP_MISC_1 macro expansion for builtins.
10251 * config/rs6000/rs6000.md (lrintsfsi2): Add define_insn for the
10252 fctiw instruction.
10253
10254 2017-09-27 Alexander Monakov <amonakov@ispras.ru>
10255
10256 * haifa-sched.c (autopref_rank_for_schedule): Order 'irrelevant' insns
10257 first, always call autopref_rank_data otherwise.
10258
10259 2017-09-27 Richard Biener <rguenther@suse.de>
10260
10261 * graphite-scop-detection.c (find_scop_parameters): Move
10262 loop bound handling ...
10263 (gather_bbs::before_dom_children): ... here, avoiding the need
10264 to build scop_info->loop_nest.
10265 (record_loop_in_sese): Remove.
10266 * sese.h (sese_info_t::loop_nest): Remove.
10267 * sese.c (new_sese_info): Do not allocate loop_nest.
10268 (free_sese_info): Do not free loop_nest.
10269
10270 2017-09-27 Jakub Jelinek <jakub@redhat.com>
10271
10272 PR c++/82159
10273 * gimplify.c (gimplify_modify_expr): Don't optimize away zero sized
10274 lhs from calls if the lhs has addressable type.
10275
10276 2017-09-27 Richard Biener <rguenther@suse.de>
10277
10278 * graphite.h (scop::max_alias_set): New member.
10279 * graphite-scop-detection.c: Remove references to non-existing
10280 --param in comments.
10281 (build_alias_sets): Record the maximum alias set used for drs.
10282 (build_scops): Support zero as unlimited for
10283 --param graphite-max-arrays-per-scop.
10284 * graphite-sese-to-poly.c (add_scalar_version_numbers): Remove
10285 and inline into ...
10286 (build_poly_sr_1): ... here. Compute alias set based on the
10287 maximum alias set used for drs rather than
10288 PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP
10289
10290 2017-09-27 Richard Biener <rguenther@suse.de>
10291
10292 * graphite-optimize-isl.c (get_schedule_for_node_st): Allow
10293 --param loop-block-tile-size=0 to disable tiling.
10294
10295 2017-09-27 Richard Biener <rguenther@suse.de>
10296
10297 * doc/invoke.texi (graphite-max-bbs-per-function): Remove.
10298 (graphite-max-nb-scop-params): Document special value zero.
10299 * domwalk.h (dom_walker::STOP): New symbolical constant.
10300 (dom_walker::dom_walker): Add optional parameter for bb to
10301 RPO mapping.
10302 (dom_walker::~dom_walker): Declare.
10303 (dom_walker::before_dom_children): Document STOP return value.
10304 (dom_walker::m_user_bb_to_rpo): New member.
10305 (dom_walker::m_bb_to_rpo): Likewise.
10306 * domwalk.c (dom_walker::dom_walker): Compute bb to RPO
10307 mapping here if not provided by the user.
10308 (dom_walker::~dom_walker): Free bb to RPO mapping if not
10309 provided by the user.
10310 (dom_walker::STOP): Define.
10311 (dom_walker::walk): Do not compute bb to RPO mapping here.
10312 Support STOP return value from before_dom_children to stop
10313 walking.
10314 * graphite-optimize-isl.c (optimize_isl): If the schedule
10315 is the same still generate code if -fgraphite-identity
10316 or -floop-parallelize-all are given.
10317 * graphite-scop-detection.c: Include cfganal.h.
10318 (gather_bbs::gather_bbs): Get and pass through bb to RPO
10319 mapping.
10320 (gather_bbs::before_dom_children): Return STOP for BBs
10321 not in the region.
10322 (build_scops): Compute bb to RPO mapping and pass it to
10323 the domwalk. Treat --param graphite-max-nb-scop-params=0
10324 as not limiting the number of params.
10325 * graphite.c (graphite_initialize): Remove limit on the
10326 number of basic-blocks in a function.
10327 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Remove.
10328 (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Adjust to documented
10329 default value of 10.
10330
10331 2017-09-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10332
10333 * config/rs6000/vsx.md (peephole for optimizing move SF to GPR):
10334 Adjust code to eliminate needing to do the shift right 32-bits
10335 operation after XSCVDPSPN.
10336
10337 2017-09-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10338
10339 * match.pd ((X / Y) == 0 -> X < Y): New pattern.
10340 ((X / Y) != 0 -> X >= Y): Likewise.
10341
10342 2017-09-26 Carl Love <cel@us.ibm.com>
10343
10344 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VEC_XL_LEN_R,
10345 P9V_BUILTIN_VEC_XST_LEN_R): Add support for builtins
10346 vector unsigned char vec_xl_len_r (unsigned char *, size_t);
10347 void vec_xst_len_r (vector unsigned char, unsigned char *, size_t);
10348 * config/rs6000/altivec.h (vec_xl_len_r, vec_xst_len_r): Add defines.
10349 * config/rs6000/rs6000-builtin.def (XL_LEN_R, XST_LEN_R): Add
10350 definitions and overloading.
10351 * config/rs6000/rs6000.c (altivec_expand_builtin): Add case
10352 statement for P9V_BUILTIN_XST_LEN_R.
10353 (altivec_init_builtins): Add def_builtin for P9V_BUILTIN_STXVLL.
10354 * config/rs6000/vsx.md (lxvll, stxvll, xl_len_r, xst_len_r): Add
10355 define_expand and define_insn for the instructions and builtins.
10356 * doc/extend.texi: Update the built-in documentation file for the new
10357 built-in functions.
10358 * config/rs6000/altivec.md (altivec_lvsl_reg, altivec_lvsr_reg): Add
10359 define_insn for the instructions
10360
10361 2017-09-26 Krister Walfridsson <krister.walfridsson@gmail.com>
10362
10363 PR target/39570
10364 * gcc/config/netbsd-protos.h: New file.
10365 * gcc/config/netbsd.c: New file.
10366 * gcc/config/netbsd.h (SUBTARGET_INIT_BUILTINS): Define.
10367 * gcc/config/t-netbsd: New file.
10368 * gcc/config.gcc (tm_p_file): Add netbsd-protos.h.
10369 (tmake_file) Add t-netbsd.
10370 (extra_objs) Add netbsd.o.
10371
10372 2017-09-26 Janus Weil <janus@gcc.gnu.org>
10373
10374 PR fortran/82143
10375 PR fortran/82324
10376 * doc/sourcebuild.texi: Document fortran_real_10 and fortran_real_16.
10377
10378 2017-09-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10379
10380 * config/rs6000/rs6000.md (extendsi<mode>2): Add a splitter to do
10381 sign extension from a vector register to a GPR by doing a 32-bit
10382 direct move and then an EXTSW.
10383 (extendsi<mode>2 splitter): Likewise.
10384 (movsi_from_sf): Adjust code to eliminate doing a 32-bit shift
10385 right or vector extract after doing XSCVDPSPN. Use
10386 zero_extendsidi2 instead of p8_mfvsrd_4_disf to move the value to
10387 the GPRs.
10388 (movdi_from_sf_zero_ext): Likewise.
10389 (reload_gpr_from_vsxsf): Likewise.
10390 (p8_mfvsrd_4_disf): Delete, no longer used.
10391 (movsi_from_df): Optimize converting a DFmode to a SFmode, and
10392 then needing to move the SFmode to a GPR to use the XSCVDPSP
10393 instruction instead of FRSP and XSCVDPSPN.
10394 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Move insn so that
10395 it is adjacent to the other XSCVSPDP insns.
10396 (vsx_xscvdpsp_scalar): Use "ww" constraint instead of "f" to allow
10397 SFmode to be in traditional Altivec registers.
10398 (vsx_xscvdpspn): Eliminate useless alternative constraint.
10399 (vsx_xscvspdpn): Likewise.
10400 (vsx_xscvspdpn_scalar): Likewise.
10401
10402 2017-09-26 Martin Jambor <mjambor@suse.cz>
10403
10404 * tree-sra.c (compare_access_positions): Put integral types first,
10405 stabilize sorting of integral types, remove conditions putting
10406 non-full-precision integers last.
10407 (sort_and_splice_var_accesses): Disable scalarization if a
10408 non-integert would be represented by a non-full-precision integer.
10409
10410 2017-09-26 Joseph Myers <joseph@codesourcery.com>
10411
10412 * config/microblaze/linux.h (TARGET_ASM_FILE_END): Likewise.
10413 * config/pa/pa.h (NEED_INDICATE_EXEC_STACK): Likewise.
10414 * config/pa/pa-linux.h (NEED_INDICATE_EXEC_STACK): Likewise.
10415 * config/pa/pa.c (pa_hpux_file_end): Rename to pa_file_end.
10416 Define unconditionally, with [ASM_OUTPUT_EXTERNAL_REAL]
10417 conditionals inside the function instead of around it. Call
10418 file_end_indicate_exec_stack if NEED_INDICATE_EXEC_STACK.
10419 (TARGET_ASM_FILE_END): Define unconditionally to pa_file_end.
10420
10421 2017-09-26 Richard Biener <rguenther@suse.de>
10422
10423 * graphite-scop-detection.c (scop_detection::build_scop_depth): Rewrite,
10424 fold in ...
10425 (scop_detection::build_scop_breadth): ... this. Removed.
10426 (scop_detection::loop_is_valid_in_scop): Fold into single caller.
10427 (scop_detection::harmful_stmt_in_bb): Likewise.
10428 (scop_detection::graphite_can_represent_stmt): Likewise.
10429 (scop_detection::loop_body_is_valid_scop): Likewise. Remove recursion.
10430 (scop_detection::can_represent_loop): Remove recursion, fold in ...
10431 (scop_detection::can_represent_loop_1): ... this. Removed.
10432 (scop_detection::harmful_loop_in_region): Simplify after inlining
10433 the above and remove more quadraticness.
10434 (build_scops): Adjust.
10435 * tree-data-ref.c (loop_nest_has_data_refs): Remove pointless
10436 quadraticness.
10437
10438 2017-09-26 Jakub Jelinek <jakub@redhat.com>
10439
10440 PR target/82267
10441 * config/i386/i386.c (ix86_print_operand_address_as): Only test
10442 REGNO (base) == SP_REG if base is a REG.
10443
10444 PR middle-end/35691
10445 * tree-ssa-reassoc.c (update_range_test): Dump r->exp each time
10446 if it is different SSA_NAME.
10447 (optimize_range_tests_cmp_bitwise): New function.
10448 (optimize_range_tests): Call it.
10449
10450 2017-09-26 Richard Biener <rguenther@suse.de>
10451
10452 PR tree-optimization/82321
10453 * graphite.c (canonicalize_loop_closed_ssa): Properly check
10454 for the def being inside the loop.
10455
10456 2017-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10457
10458 * config/s390/vx-builtins.md ("vmslg"): Add missing operand in
10459 assembler output.
10460 * config/s390/s390-builtins.def: Fix constraint on op4.
10461
10462 2017-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10463
10464 * config/s390/s390.c (s390_expand_vec_compare): Use the new mode
10465 independent expanders.
10466 * config/s390/vector.md ("vec_cmpuneq", "vec_cmpltgt")
10467 ("vec_ordered", "vec_unordered"): New expanders.
10468
10469 2017-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10470
10471 * config/s390/s390.c (s390_preferred_simd_mode): Return V4SFmode
10472 for SFmode.
10473
10474 2017-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10475
10476 * config/s390/vector.md ("vec_unpacks_low_v16qi"): Rename to
10477 vec_unpacks_lo_v16qi.
10478 ("vec_unpacku_low_v16qi"): Rename to vec_unpacku_lo_v16qi.
10479
10480 2017-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10481
10482 * config/s390/vector.md ("vec_unpacks_lo_v4sf")
10483 ("vec_unpacks_hi_v4sf", "vec_unpacks_lo_v2df")
10484 ("vec_unpacks_hi_v2df", "vec_pack_trunc_v2df"): New expanders.
10485
10486 2017-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10487
10488 * config/s390/predicates.md ("const_shift_by_byte_operand"): New
10489 predicate.
10490 * config/s390/vector.md ("*vec_srb<mode>"): Change modes to V_128
10491 and V16QI.
10492 ("*vec_slb<mode>"): New insn pattern.
10493 ("vec_shr_<mode>"): New expander.
10494 * config/s390/vx-builtins.md ("vec_slb<mode>"): Turn into expander
10495 and force the shift count operand to V16QImode.
10496 ("vec_srb<mode>"): Set shift count mode to V16QI.
10497
10498 2017-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10499
10500 * config/s390/vector.md ("vec_widen_umult_lo_<mode>")
10501 ("vec_widen_umult_hi_<mode>", "vec_widen_smult_lo_<mode>")
10502 ("vec_widen_smult_hi_<mode>"): New expander definitions.
10503
10504 2017-09-26 Richard Earnshaw <rearnsha@arm.com>
10505
10506 PR target/82175
10507 * config/arm/arm.h (DRIVER_SELF_SPECS): Separate sub-rules with commas.
10508
10509 2017-09-26 Richard Biener <rguenther@suse.de>
10510
10511 PR tree-optimization/82320
10512 * tree-ssa-sccvn.c (set_ssa_val_to): Changing undef to undef
10513 isn't a change.
10514
10515 2017-09-25 Jeff Law <law@redhat.com>
10516
10517 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Update
10518 prototype for new argument.
10519 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack_1): New function,
10520 mostly extracted from rs6000_emit_allocate_stack.
10521 (rs6000_emit_probe_stack_range_stack_clash): New function.
10522 (rs6000_emit_allocate_stack): Call
10523 rs6000_emit_probe_stack_range_stack_clash as needed.
10524 (rs6000_emit_probe_stack_range): Add additional argument
10525 to call to gen_probe_stack_range{si,di}.
10526 (output_probe_stack_range): New.
10527 (output_probe_stack_range_1): Renamed from output_probe_stack_range.
10528 (output_probe_stack_range_stack_clash): New.
10529 (rs6000_emit_prologue): Emit notes into dump file as requested.
10530 * rs6000.md (allocate_stack): Handle -fstack-clash-protection.
10531 (probe_stack_range<P:mode>): Operand 0 is now early-clobbered.
10532 Add additional operand and pass it to output_probe_stack_range.
10533
10534 2017-09-25 Bin Cheng <bin.cheng@arm.com>
10535
10536 PR tree-optimization/82163
10537 * tree-ssa-loop-manip.h (verify_loop_closed_ssa): New parameter.
10538 (checking_verify_loop_closed_ssa): New parameter.
10539 * tree-ssa-loop-manip.c (check_loop_closed_ssa_use): Delete.
10540 (check_loop_closed_ssa_stmt): Delete.
10541 (check_loop_closed_ssa_def, check_loop_closed_ssa_bb): New functions.
10542 (verify_loop_closed_ssa): Check loop closed ssa form for LOOP.
10543 (tree_transform_and_unroll_loop): Check loop closed ssa form only for
10544 changed loops.
10545
10546 2017-09-25 Pekka Jaaskelainen <pekka@parmance.com>
10547
10548 * brig-builtins.def: Treat HSAIL barrier builtins as
10549 setjmp/longjump style functions.
10550
10551 2017-09-25 Richard Sandiford <richard.sandiford@linaro.org>
10552
10553 * target.def (constant_alignment): New hook.
10554 * defaults.h (CONSTANT_ALIGNMENT): Delete.
10555 * doc/tm.texi.in (CONSTANT_ALIGNMENT): Replace with...
10556 (TARGET_CONSTANT_ALIGNMENT): ...this new hook.
10557 * doc/tm.texi: Regenerate.
10558 * targhooks.h (default_constant_alignment): Declare.
10559 (constant_alignment_word_strings): Likewise.
10560 * targhooks.c (default_constant_alignment): New function.
10561 (constant_alignment_word_strings): Likewise.
10562 * builtins.c (get_object_alignment_2): Use targetm.constant_alignment
10563 instead of CONSTANT_ALIGNMENT.
10564 * varasm.c (align_variable, get_variable_align, build_constant_desc)
10565 (force_const_mem): Likewise.
10566 * config/aarch64/aarch64.h (CONSTANT_ALIGNMENT): Delete.
10567 * config/aarch64/aarch64.c (aarch64_constant_alignment): New function.
10568 (aarch64_classify_address): Call it instead of CONSTANT_ALIGNMENT.
10569 (TARGET_CONSTANT_ALIGNMENT): Redefine.
10570 * config/alpha/alpha.h (CONSTANT_ALIGNMENT): Delete commented-out
10571 definition.
10572 * config/arc/arc.h (CONSTANT_ALIGNMENT): Delete.
10573 * config/arc/arc.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10574 constant_alignment_word_strings.
10575 * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR): Delete.
10576 (CONSTANT_ALIGNMENT): Likewise.
10577 * config/arm/arm.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
10578 (arm_constant_alignment): New function.
10579 * config/bfin/bfin.h (CONSTANT_ALIGNMENT): Delete.
10580 * config/bfin/bfin.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10581 constant_alignment_word_strings.
10582 * config/cr16/cr16.h (CONSTANT_ALIGNMENT): Delete.
10583 * config/cr16/cr16.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10584 constant_alignment_word_strings.
10585 * config/cris/cris.h (CONSTANT_ALIGNMENT): Delete.
10586 * config/cris/cris.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
10587 (cris_constant_alignment): New function.
10588 * config/epiphany/epiphany.h (CONSTANT_ALIGNMENT): Delete.
10589 * config/epiphany/epiphany.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
10590 (epiphany_constant_alignment): New function.
10591 * config/fr30/fr30.h (CONSTANT_ALIGNMENT): Delete.
10592 * config/fr30/fr30.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10593 constant_alignment_word_strings.
10594 * config/frv/frv.h (CONSTANT_ALIGNMENT): Delete.
10595 * config/frv/frv.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10596 constant_alignment_word_strings.
10597 * config/ft32/ft32.h (CONSTANT_ALIGNMENT): Delete.
10598 * config/ft32/ft32.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10599 constant_alignment_word_strings.
10600 * config/i386/i386.h (CONSTANT_ALIGNMENT): Delete.
10601 * config/i386/i386-protos.h (ix86_constant_alignment): Delete.
10602 * config/i386/i386.c (ix86_constant_alignment): Make static.
10603 Use the same interface as the target hook.
10604 (TARGET_CONSTANT_ALIGNMENT): Redefine.
10605 * config/ia64/ia64.h (CONSTANT_ALIGNMENT): Delete.
10606 * config/ia64/ia64.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10607 constant_alignment_word_strings.
10608 * config/iq2000/iq2000.h (CONSTANT_ALIGNMENT): Delete.
10609 * config/iq2000/iq2000.c (iq2000_constant_alignment): New function.
10610 (TARGET_CONSTANT_ALIGNMENT): Redefine.
10611 * config/lm32/lm32.h (CONSTANT_ALIGNMENT): Delete.
10612 * config/lm32/lm32.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10613 constant_alignment_word_strings.
10614 * config/m32r/m32r.h (CONSTANT_ALIGNMENT): Delete.
10615 * config/m32r/m32r.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10616 constant_alignment_word_strings.
10617 * config/mcore/mcore.h (CONSTANT_ALIGNMENT): Delete.
10618 * config/mcore/mcore.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10619 constant_alignment_word_strings.
10620 * config/microblaze/microblaze.h (CONSTANT_ALIGNMENT): Delete.
10621 * config/microblaze/microblaze.c (microblaze_constant_alignment):
10622 New function.
10623 (TARGET_CONSTANT_ALIGNMENT): Redefine.
10624 * config/mips/mips.h (CONSTANT_ALIGNMENT): Delete.
10625 * config/mips/mips.c (mips_constant_alignment): New function.
10626 (TARGET_CONSTANT_ALIGNMENT): Redefine.
10627 * config/mmix/mmix.h (CONSTANT_ALIGNMENT): Delete.
10628 * config/mmix/mmix-protos.h (mmix_constant_alignment): Delete.
10629 * config/mmix/mmix.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
10630 (mmix_constant_alignment): Make static. Use the same interface
10631 as the target hook.
10632 * config/moxie/moxie.h (CONSTANT_ALIGNMENT): Delete.
10633 * config/moxie/moxie.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10634 constant_alignment_word_strings.
10635 * config/nios2/nios2.h (CONSTANT_ALIGNMENT): Delete.
10636 * config/nios2/nios2.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10637 constant_alignment_word_strings.
10638 * config/pa/pa.h (CONSTANT_ALIGNMENT): Delete.
10639 * config/pa/pa.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10640 constant_alignment_word_strings.
10641 * config/powerpcspe/powerpcspe.h (CONSTANT_ALIGNMENT): Delete.
10642 * config/powerpcspe/powerpcspe.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
10643 (rs6000_constant_alignment): New function.
10644 * config/riscv/riscv.h (CONSTANT_ALIGNMENT): Delete.
10645 * config/riscv/riscv.c (riscv_constant_alignment): New function.
10646 (TARGET_CONSTANT_ALIGNMENT): Redefine.
10647 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Delete.
10648 * config/rs6000/rs6000.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
10649 (rs6000_constant_alignment): New function.
10650 * config/s390/s390.h (CONSTANT_ALIGNMENT): Delete.
10651 * config/s390/s390.c (s390_constant_alignment): New function.
10652 (TARGET_CONSTANT_ALIGNMENT): Redefine.
10653 * config/sh/sh.h (CONSTANT_ALIGNMENT): Delete.
10654 * config/sh/sh.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10655 constant_alignment_word_strings.
10656 * config/sparc/sparc.h (CONSTANT_ALIGNMENT): Delete.
10657 * config/sparc/sparc.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
10658 (sparc_constant_alignment): New function.
10659 * config/spu/spu.h (CONSTANT_ALIGNMENT): Delete.
10660 * config/spu/spu.c (spu_constant_alignment): New function.
10661 (TARGET_CONSTANT_ALIGNMENT): Redefine.
10662 * config/stormy16/stormy16.h (CONSTANT_ALIGNMENT): Delete.
10663 * config/stormy16/stormy16.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10664 constant_alignment_word_strings.
10665 * config/tilegx/tilegx.h (CONSTANT_ALIGNMENT): Delete.
10666 * config/tilegx/tilegx.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10667 constant_alignment_word_strings.
10668 * config/tilepro/tilepro.h (CONSTANT_ALIGNMENT): Delete.
10669 * config/tilepro/tilepro.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
10670 constant_alignment_word_strings.
10671 * config/visium/visium.h (CONSTANT_ALIGNMENT): Delete.
10672 * config/visium/visium.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
10673 (visium_constant_alignment): New function.
10674 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT): Delete.
10675 * config/xtensa/xtensa.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
10676 (xtensa_constant_alignment): New function.
10677 * system.h (CONSTANT_ALIGNMENT): Poison.
10678
10679 2017-09-25 Will Schmidt <will_schmidt@vnet.ibm.com>
10680
10681 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
10682 for early folding of vector stores (ALTIVEC_BUILTIN_ST_*).
10683 (rs6000_builtin_valid_without_lhs): New helper function.
10684 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10685 Remove obsoleted code for handling ALTIVEC_BUILTIN_VEC_ST.
10686
10687 2017-09-25 Richard Sandiford <richard.sandiford@linaro.org>
10688
10689 * target.h (vec_perm_indices): Use unsigned short rather than
10690 unsigned char.
10691 (auto_vec_perm_indices): Likewise.
10692 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const_ok):
10693 Use unsigned int rather than unsigned char.
10694 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok): Likewise.
10695
10696 2017-09-25 Richard Biener <rguenther@suse.de>
10697
10698 * cfgloop.h (sort_sibling_loops): Declare.
10699 * cfgloop.c (sort_sibling_loops_cmp): New helper.
10700 (sort_sibling_loops): New function sorting the sibling loop list
10701 in RPO order.
10702 * graphite.c (graphite_transform_loops): Sort sibling loops.
10703
10704 2017-09-25 Richard Sandiford <richard.sandifird@linaro.org>
10705
10706 * target.def (vec_perm_const_ok): Change sel parameter to
10707 vec_perm_indices.
10708 * optabs-query.c (can_vec_perm_p): Update accordingly.
10709 * doc/tm.texi: Regenerate.
10710 * config/aarch64/aarch64.c (expand_vec_perm_d): Change perm to
10711 auto_vec_perm_indices and remove separate nelt field.
10712 (aarch64_evpc_trn, aarch64_evpc_uzp, aarch64_evpc_zip)
10713 (aarch64_evpc_ext, aarch64_evpc_rev, aarch64_evpc_dup)
10714 (aarch64_evpc_tbl, aarch64_expand_vec_perm_const_1)
10715 (aarch64_expand_vec_perm_const): Update accordingly.
10716 (aarch64_vectorize_vec_perm_const_ok): Likewise. Change sel
10717 to vec_perm_indices.
10718 * config/arm/arm.c (expand_vec_perm_d): Change perm to
10719 auto_vec_perm_indices and remove separate nelt field.
10720 (arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev)
10721 (arm_evpc_neon_vtrn, arm_evpc_neon_vext, arm_evpc_neon_vtbl)
10722 (arm_expand_vec_perm_const_1, arm_expand_vec_perm_const): Update
10723 accordingly.
10724 (arm_vectorize_vec_perm_const_ok): Likewise. Change sel
10725 to vec_perm_indices.
10726 * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
10727 sel to vec_perm_indices.
10728 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const_ok): Likewise.
10729 * config/mips/mips.c (mips_vectorize_vec_perm_const_ok): Likewise.
10730 * config/powerpcspe/powerpcspe.c (rs6000_vectorize_vec_perm_const_ok):
10731 Likewise.
10732 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const_ok):
10733 Likewise.
10734
10735 2017-09-25 Pierre-Marie de Rodat <derodat@adacore.com>
10736
10737 PR debug/82155
10738 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
10739 on the FUNCTION_DECL function context if it has a DIE that is a
10740 declaration.
10741
10742 2017-09-25 Richard Biener <rguenther@suse.de>
10743
10744 PR tree-optimization/82285
10745 * tree-vect-patterns.c (vect_recog_bool_pattern): Also handle
10746 enumeral types.
10747
10748 2017-09-25 Tom de Vries <tom@codesourcery.com>
10749
10750 PR target/80035
10751 PR target/81069
10752 * config/nvptx/nvptx.c (nvptx_output_call_insn): Add exit after call to
10753 noreturn function.
10754
10755 2017-09-25 Richard Biener <rguenther@suse.de>
10756
10757 * graphite-optimize-isl.c (optimize_isl): Fail and dump if
10758 ISL errors other than isl_error_quota happen. Dump if the
10759 schedule is the same.
10760 * graphite-sese-to-poly.c (build_poly_scop): Fail on ISL
10761 errors instead of aborting inside ISL.
10762
10763 2017-09-25 Iain Sandoe <iain@codesourcery.com>
10764
10765 PR target/80556
10766 * config/i386/darwin.h (REAL_LIB_SPEC): New; put libSystem ahead
10767 of libgcc_eh for m64.
10768 * config/i386/darwin64.h: Likewise.
10769
10770 2017-09-25 Richard Biener <rguenther@suse.de>
10771
10772 PR middle-end/82144
10773 * dwarf2out.c (gen_enumeration_type_die): Do not add alignment
10774 attribute for incomplete types nor twice for complete ones.
10775
10776 2017-09-24 Uros Bizjak <ubizjak@gmail.com>
10777
10778 PR target/82267
10779 * config/i386/i386.c (ix86_print_operand_address_as): Encode
10780 %esp as %rsp to avoid 0x67 prefix if there is no index or base
10781 register.
10782
10783 2017-09-23 Uros Bizjak <ubizjak@gmail.com>
10784
10785 PR bootstrap/82306
10786 * config/i386/i386.opt (mprefer-avx256): Use
10787 ix86_target_flags variable.
10788 * config/i386/i386.c (ix86_target_string): Move
10789 -mprefer-avx256 to flag2_opts.
10790
10791 2017-09-22 Jakub Jelinek <jakub@redhat.com>
10792
10793 PR middle-end/35691
10794 * match.pd: Simplify x == -1 & y == -1 into (x & y) == -1
10795 and x != -1 | y != -1 into (x & y) != -1.
10796
10797 2017-09-22 Steve Ellcey <sellcey@cavium.com>
10798
10799 * config.gcc: Add new case statement to set
10800 default_gnu_indirect_function. Remove it from x86_64-*-linux*,
10801 i[34567]86-*, powerpc*-*-linux*spe*, powerpc*-*-linux*, s390-*-linux*,
10802 s390x-*-linux* case statements. Added aarch64 to the list of
10803 supported architectures.
10804
10805 2017-09-22 Richard Sandiford <richard.sandiford@linaro.org>
10806
10807 PR tree-optimization/82289
10808 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs): Check
10809 STMT_VINFO_RELEVANT_P.
10810
10811 2017-09-22 Richard Sandiford <richard.sandiford@linaro.org>
10812 Alan Hayward <alan.hayward@arm.com>
10813 David Sherwood <david.sherwood@arm.com>
10814
10815 * tree-vrp.c (extract_range_from_multiplicative_op_1): Assert
10816 for VR_RANGE only; don't allow VR_ANTI_RANGE.
10817 (extract_range_from_binary_expr_1): Don't call
10818 extract_range_from_multiplicative_op_1 if !range_int_cst_p.
10819
10820 2017-09-22 Richard Sandiford <richard.sandiford@linaro.org>
10821 Alan Hayward <alan.hayward@arm.com>
10822 David Sherwood <david.sherwood@arm.com>
10823
10824 * target.def (preferred_vector_alignment): New hook.
10825 * doc/tm.texi.in (TARGET_VECTORIZE_PREFERRED_VECTOR_ALIGNMENT): New
10826 hook.
10827 * doc/tm.texi: Regenerate.
10828 * targhooks.h (default_preferred_vector_alignment): Declare.
10829 * targhooks.c (default_preferred_vector_alignment): New function.
10830 * tree-vectorizer.h (dataref_aux): Add a target_alignment field.
10831 Expand commentary.
10832 (DR_TARGET_ALIGNMENT): New macro.
10833 (aligned_access_p): Update commentary.
10834 (vect_known_alignment_in_bytes): New function.
10835 * tree-vect-data-refs.c (vect_calculate_required_alignment): New
10836 function.
10837 (vect_compute_data_ref_alignment): Set DR_TARGET_ALIGNMENT.
10838 Calculate the misalignment based on the target alignment rather than
10839 the vector size.
10840 (vect_update_misalignment_for_peel): Use DR_TARGET_ALIGMENT
10841 rather than TYPE_ALIGN / BITS_PER_UNIT to update the misalignment.
10842 (vect_enhance_data_refs_alignment): Mask the byte misalignment with
10843 the target alignment, rather than masking the element misalignment
10844 with the number of elements in a vector. Also use the target
10845 alignment when calculating the maximum number of peels.
10846 (vect_find_same_alignment_drs): Use vect_calculate_required_alignment
10847 instead of TYPE_ALIGN_UNIT.
10848 (vect_duplicate_ssa_name_ptr_info): Remove stmt_info parameter.
10849 Measure DR_MISALIGNMENT relative to DR_TARGET_ALIGNMENT.
10850 (vect_create_addr_base_for_vector_ref): Update call accordingly.
10851 (vect_create_data_ref_ptr): Likewise.
10852 (vect_setup_realignment): Realign by ANDing with
10853 -DR_TARGET_MISALIGNMENT.
10854 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Calculate
10855 the number of peels based on DR_TARGET_ALIGNMENT.
10856 * tree-vect-stmts.c (get_group_load_store_type): Compare the gap
10857 with the guaranteed alignment boundary when deciding whether
10858 overrun is OK.
10859 (vectorizable_mask_load_store): Interpret DR_MISALIGNMENT
10860 relative to DR_TARGET_ALIGNMENT instead of TYPE_ALIGN_UNIT.
10861 (ensure_base_align): Remove stmt_info parameter. Get the
10862 target base alignment from DR_TARGET_ALIGNMENT.
10863 (vectorizable_store): Update call accordingly. Interpret
10864 DR_MISALIGNMENT relative to DR_TARGET_ALIGNMENT instead of
10865 TYPE_ALIGN_UNIT.
10866 (vectorizable_load): Likewise.
10867
10868 2017-09-22 Richard Sandiford <richard.sandiford@linaro.org>
10869 Alan Hayward <alan.hayward@arm.com>
10870 David Sherwood <david.sherwood@arm.com>
10871
10872 * tree-vectorizer.h (vect_get_scalar_dr_size): New function.
10873 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use it.
10874 (vect_enhance_data_refs_alignment): Likewise.
10875
10876 2017-09-22 Richard Earnshaw <richard.earnshaw@arm.com>
10877
10878 * config/arm/parsecpu.awk (fatal): Note that we've encountered an
10879 error. Only quit immediately if parsing is complete.
10880 (BEGIN): Initialize fatal_err and parse_done.
10881 (begin fpu, end fpu): Check number of arguments.
10882 (begin arch, end arch): Likewise.
10883 (begin cpu, end cpu): Likewise.
10884 (cname, tune for, tune flags, architecture, fpu, option): Likewise.
10885 (optalias): Likewise.
10886
10887 2017-09-22 Richard Earnshaw <richard.earnshaw@arm.com>
10888
10889 * config.gcc (arm*-*-*): Don't add arm-isa.h to tm_p_file.
10890 * config/arm/arm-isa.h: Delete. Move definitions to ...
10891 * arm-cpus.in: ... here. Use new feature and fgroup values.
10892 * config/arm/arm.c (arm_option_override): Use lower case for feature
10893 bit names.
10894 * config/arm/arm.h (TARGET_HARD_FLOAT): Likewise.
10895 (TARGET_VFP3, TARGET_VFP5, TARGET_FMA): Likewise.
10896 * config/arm/parsecpu.awk (END): Add new command 'isa'.
10897 (isa_pfx): Delete.
10898 (print_isa_bits_for): New function.
10899 (gen_isa): New function.
10900 (gen_comm_data): Use print_isa_bits_for.
10901 (define feature): New keyword.
10902 (define fgroup): New keyword.
10903 * config/arm/t-arm (TM_H): Remove.
10904 (GTM_H): Add arm-isa.h.
10905 (arm-isa.h): Add rule to generate file.
10906 * common/config/arm/arm-common.c: (arm_canon_arch_option): Use lower
10907 case for feature bit names.
10908
10909 2017-09-22 Richard Biener <rguenther@suse.de>
10910
10911 * graphite-isl-ast-to-gimple.c (graphite_verify): Inline into
10912 single caller.
10913 (graphite_regenerate_ast_isl): Do not reset SCEV. Move debug
10914 print of no dependency loops ...
10915 * graphite.c (graphite_transform_loops): ... here.
10916 (canonicalize_loop_closed_ssa_form): Work from inner to outer
10917 loops.
10918 (same_close_phi_node, remove_duplicate_close_phi,
10919 make_close_phi_nodes_unique, defined_in_loop_p): Fold into ...
10920 (canonicalize_loop_closed_ssa): ... here and simplify.
10921 * graphite-optimize-isl.c: Include tree-vectorizer.h.
10922 (optimize_isl): Use dump_printf_loc to tell when we stopped
10923 optimizing because of an ISL timeout.
10924
10925 2017-09-22 Richard Biener <rguenther@suse.de>
10926
10927 PR tree-optimization/82291
10928 * tree-if-conv.c (predicate_mem_writes): Make sure to
10929 remove writes in blocks predicated with false.
10930
10931 2017-09-22 Richard Biener <rguenther@suse.de>
10932
10933 * sese.c: Include cfganal.h.
10934 (if_region_set_false_region): Remove.
10935 (create_if_region_on_edge): Likewise.
10936 (move_sese_in_condition): Re-implement without destroying
10937 dominators.
10938
10939 2017-09-22 Richard Biener <rguenther@suse.de>
10940
10941 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes):
10942 Verify both BBs contain loop PHI nodes before dispatching to
10943 copy_loop_phi_args.
10944 (graphite_regenerate_ast_isl): Do not recompute dominators,
10945 do not verify three times. Restructure for clarity.
10946 * graphite-scop-detection.c (same_close_phi_node,
10947 remove_duplicate_close_phi, make_close_phi_nodes_unique,
10948 defined_in_loop_p, canonicalize_loop_closed_ssa,
10949 canonicalize_loop_closed_ssa_form): Simplify, remove excess
10950 checking and SSA rewrite, move to ...
10951 * graphite.c: ... here. Include ssa.h and tree-ssa-loop-manip.h.
10952 (graphite_initialize): Do not pass in ctx, do not reset the
10953 SCEV cache, compute only dominators.
10954 (graphite_transform_loops): Allocate ISL ctx after
10955 graphite_initialize. Call canonicalize_loop_closed_ssa_form.
10956 Maintain post-dominators only around build_scops.
10957 * sese.c (if_region_set_false_region): Make static. Free
10958 and recompute dominators.
10959 (move_sese_in_condition): Assert we don't get called with
10960 post-dominators computed.
10961 * sese.h (if_region_set_false_region): Remove.
10962
10963 2017-09-22 Sergey Shalnov <sergey.shalnov@intel.com>
10964
10965 * config/i386/sse.md ("mov<mode>_internal"): Use <sseinsnmode>
10966 mode attribute for TARGET_AVX512VL.
10967
10968 2017-09-21 Sergey Shalnov <sergey.shalnov@intel.com>
10969
10970 * config/i386/i386.opt (mprefer-avx256): New option.
10971 * config/i386/i386.c (ix86_target_string): Add -mprefer-avx256
10972 to flag_opts.
10973 (ix86_preferred_simd_mode): Return 256-bit AVX modes
10974 for TARGET_PREFER_AVX256.
10975 * doc/invoke.texi (x86 Options): Document -mprefer-avx256.
10976
10977 2017-09-21 Jeff Law <law@redhat.com>
10978
10979 * config/i386/i386.c (ix86_adjust_stack_and_probe_stack_clash):
10980 Fix dump output if the only stack space is for pushed registers.
10981
10982 2017-09-21 Richard Sandiford <richard.sandiford@linaro.org>
10983
10984 * config/spu/spu.c (spu_sched_adjust_cost): Update after renaming
10985 of insn_cost.
10986
10987 2017-09-21 Martin Sebor <msebor@redhat.com>
10988
10989 PR c/81882
10990 * doc/extend.texi (attribute ifunc): Avoid relying on ill-formed
10991 code (in C++) or code that triggers warnings.
10992
10993 2017-09-21 Eric Botcazou <ebotcazou@adacore.com>
10994
10995 * stor-layout.c (bit_from_pos): Do not distribute the conversion.
10996
10997 2017-09-21 Segher Boessenkool <segher@kernel.crashing.org>
10998
10999 * haifa-sched.c: Rename insn_cost to insn_sched_cost.
11000 * sched-rgn.c: Ditto.
11001 * sel-sched-ir.c: Ditto.
11002
11003 2017-09-21 Alexander Monakov <amonakov@ispras.ru>
11004
11005 * toplev.h (set_random_seed): Adjust return type.
11006 * toplev.c (init_local_tick): Move eager initialization of random_seed
11007 to get_random_seed. Adjust comment.
11008 (init_random_seed): Inline to get_random_seed, delete.
11009 (get_random_seed): Initialize random_seed lazily.
11010 (set_random_seed): Do not return previous value.
11011 (print_switch_value): Do not call get_random_seed.
11012
11013 2017-09-21 Evgeny Kudryashov <kudryashov@ispras.ru>
11014
11015 * cgraph.c (delete_function_version): New, broken out from...
11016 (cgraph_node::delete_function_version): ...here. Rename to
11017 cgraph_node::delete_function_version_by_decl. Update all uses.
11018 (cgraph_node::remove): Call delete_function_version.
11019
11020 2017-09-21 Jakub Jelinek <jakub@redhat.com>
11021
11022 PR sanitizer/81715
11023 * tree-inline.c (expand_call_inline): Emit clobber stmts for
11024 VAR_DECLs to which addressable non-volatile parameters are mapped
11025 and for id->retvar after the return value assignment. Clear
11026 id->retval and id->retbnd after inlining.
11027
11028 2017-09-21 Richard Biener <rguenther@suse.de>
11029
11030 PR tree-optimization/82276
11031 PR tree-optimization/82244
11032 * tree-vrp.c (build_assert_expr_for): Set
11033 SSA_NAME_OCCURS_IN_ABNORMAL_PHI if the variable we assert on
11034 has it set.
11035 (remove_range_assertions): Revert earlier change.
11036
11037 2017-09-21 Wilco Dijkstra <wdijkstr@arm.com>
11038
11039 PR target/71951
11040 * config/aarch64/aarch64.h (LIBGCC2_UNWIND_ATTRIBUTE): Define.
11041
11042 2017-09-21 Richard Biener <rguenther@suse.de>
11043
11044 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
11045 Restore valid IL after code generation errors.
11046 * graphite.c (graphite_transform_loops): Diagnose code
11047 generation issues as MSG_MISSED_OPTIMIZATION and continue
11048 with processing SCOPs.
11049
11050 2017-09-21 Richard Sandiford <richard.sandiford@linaro.org>
11051 Alan Hayward <alan.hayward@arm.com>
11052 David Sherwood <david.sherwood@arm.com>
11053
11054 * calls.c (compute_argument_addresses): Use simplify_gen_binary
11055 rather than choosing between plus_constant and gen_rtx_<CODE>.
11056 * expr.c (emit_push_insn): Likewise.
11057 (expand_expr_real_2): Likewise.
11058
11059 2017-09-21 Richard Sandiford <richard.sandiford@linaro.org>
11060 Alan Hayward <alan.hayward@arm.com>
11061 David Sherwood <david.sherwood@arm.com>
11062
11063 * loop-unroll.c (split_iv): Call copy_rtx on the step.
11064
11065 2017-09-21 Richard Sandiford <richard.sandiford@linaro.org>
11066 Alan Hayward <alan.hayward@arm.com>
11067 David Sherwood <david.sherwood@arm.com>
11068
11069 * tree.c (find_atomic_core_type): Check tree_fits_uhwi_p before
11070 calling tree_to_uhwi.
11071
11072 2017-09-21 Richard Sandiford <richard.sandiford@linaro.org>
11073 Alan Hayward <alan.hayward@arm.com>
11074 David Sherwood <david.sherwood@arm.com>
11075
11076 * tree-ssa-ccp.c (get_value_for_expr): Use a positive test for
11077 INTEGER_CST rather than a negative test for ADDR_EXPR.
11078
11079 2017-09-21 Richard Sandiford <richard.sandiford@linaro.org>
11080 Alan Hayward <alan.hayward@arm.com>
11081 David Sherwood <david.sherwood@arm.com>
11082
11083 * tree-vrp.c (extract_range_from_binary_expr_1): Check
11084 int_cst_rangeN before calling value_range_constant_singleton (&vrN).
11085
11086 2017-09-21 Richard Biener <rguenther@suse.de>
11087
11088 PR tree-optimization/71351
11089 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple::
11090 graphite_create_new_loop_guard): Remove, fold remaining parts
11091 into caller ...
11092 (translate_isl_ast_node_for): ... here and simplify.
11093
11094 2017-09-21 Jakub Jelinek <jakub@redhat.com>
11095
11096 PR target/82260
11097 * config/i386/i386.md (*movqi_internal): Replace (=q,q) alternative
11098 with (=Q,Q), (=R,R) and (=r,r) alternatives, only enable the
11099 latter two for 64-bit, renumber alternatives, for -Os imov (=q,n)
11100 alternative always use QI mode, for -Os imov (=R,R) alternative
11101 always use SI mode, for imov (=Q,Q) or (=r,r) alternatives
11102 ignore -Os.
11103
11104 2017-09-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11105 Jeff Law <law@redhat.com>
11106
11107 * config/s390/s390.c (MIN_UNROLL_PROBES): Define.
11108 (allocate_stack_space): New function, partially extracted from
11109 s390_emit_prologue.
11110 (s390_emit_prologue): Track offset to most recent stack probe.
11111 Code to allocate space moved into allocate_stack_space.
11112 Dump actions when no stack is allocated.
11113 (s390_prologue_plus_offset): New function.
11114 (s390_emit_stack_probe): Likewise.
11115
11116 2017-09-20 Alexandre Oliva <aoliva@redhat.com>
11117
11118 * common.opt (Wa, Wl, Wp, g, gz=): Add
11119 RejectNegative.
11120 (gno-column-info): Remove.
11121 (gcolumn-info): Drop RejectNegative.
11122 (gno-): New prefix.
11123 (gno-record-gcc-switches): Remove.
11124 (grecord-gcc-switches): Drop RejectNegative.
11125 (gno-split-dwarf): Remove.
11126 (gsplit-dwarf): Drop RejectNegative.
11127 (gno-strict-dwarf): Remove.
11128 (gstrict-dwarf): Drop RejectNegative.
11129 * config/darwin.opt (gfull, gused): Add RejectNegative.
11130 * dwarf2out.c (gen_producer_string): Drop
11131 gno-record-gcc-switches handler.
11132 * optc-gen.awk: Add g to prefixes with negative forms.
11133 * opts-common.c (remapping_prefix_p): New.
11134 (find_opt): Check it.
11135 (generate_canonical_option): Test g prefix.
11136 (option_map): Add -gno- mapping.
11137 (add_misspelling_candidates): Check remapping_prefix_p.
11138
11139 2017-09-20 Jeff Law <law@redhat.com>
11140
11141 * config/powerpcspe/powerpcspe.c (rs6000_expand_prologue): Fix
11142 thinko in stack clash protection support.
11143
11144 * explow.c (compute_stack_clash_protection_loop_data): Use
11145 CONST_INT_P instead of explicit test. Verify object is a
11146 CONST_INT_P before looking at INTVAL.
11147 (anti_adjust_stack_and_probe_stack_clash): Use CONST_INT_P
11148 instead of explicit test.
11149
11150 2017-09-20 Segher Boessenkool <segher@kernel.crashing.org>
11151
11152 PR target/77687
11153 * config/rs6000/rs6000.md (stack_restore_tie): Store to a scratch
11154 address instead of to r1 and r11.
11155
11156 2017-09-20 Sebastian Peryt <sebastian.peryt@intel.com>
11157
11158 * config.gcc: Support "knm".
11159 * config/i386/driver-i386.c (host_detect_local_cpu): Detect "knm".
11160 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11161 PROCESSOR_KNM.
11162 * config/i386/i386.c (m_KNM): Define.
11163 (processor_target_table): Add "knm".
11164 (PTA_KNM): Define.
11165 (ix86_option_override_internal): Add "knm".
11166 (ix86_issue_rate): Add PROCESSOR_KNM.
11167 (ix86_adjust_cost): Ditto.
11168 (ia32_multipass_dfa_lookahead): Ditto.
11169 (get_builtin_code_for_version): Handle PROCESSOR_KNM.
11170 (fold_builtin_cpu): Add M_INTEL_KNM.
11171 * config/i386/i386.h (processor_costs): Define TARGET_KNM.
11172 (processor_type): Add PROCESSOR_KNM.
11173 * config/i386/x86-tune.def: Add m_KNM.
11174 * doc/invoke.texi: Add knm as x86 -march=/-mtune= CPU type.
11175
11176 2017-09-20 Richard Biener <rguenther@suse.de>
11177
11178 PR tree-optimization/80213
11179 * graphite-scop-detection.c (trivially_empty_bb_p): Labels
11180 are allowed in empty BBs as well.
11181 (canonicalize_loop_closed_ssa): Also look for other complex
11182 edges.
11183 (scop_detection::get_sese): Include the loop-closed PHI block
11184 in loop SESEs.
11185 (scop_detection::merge_sese): Remove code adding extra blocks.
11186 (scop_detection::region_has_one_loop): Adjust for get_sese changes.
11187 (build_scops): Assert the final returned scop is invalid.
11188
11189 2017-09-20 Richard Biener <rguenther@suse.de>
11190
11191 PR tree-optimization/82264
11192 * tree-ssa-sccvn.c (vn_phi_eq): Use safe_dyn_cast to check
11193 for GIMPLE_CONDs.
11194 (vn_phi_lookup): Likewise.
11195 (vn_phi_insert): Likewise.
11196
11197 2017-09-20 Jakub Jelinek <jakub@redhat.com>
11198
11199 * dwarf2out.c (tree_add_const_value_attribute): For INTEGER_CST
11200 that fits into uhwi or shwi, add DW_AT_const_value regardless
11201 of early_dwarf without going through RTL, using add_AT_unsigned
11202 or add_AT_int.
11203
11204 * dwarf2out.c (DEBUG_LTO_DWO_INFO_SECTION): Reorder defines.
11205 (DEBUG_LTO_ABBREV_SECTION): Likewise.
11206 (DEBUG_LTO_MACINFO_SECTION): Likewise.
11207 (DEBUG_MACRO_SECTION): Likewise.
11208 (DEBUG_LTO_MACRO_SECTION): Likewise.
11209 (DEBUG_STR_DWO_SECTION): Likewise.
11210 (DEBUG_LTO_STR_DWO_SECTION): Likewise.
11211 (DEBUG_LTO_LINE_SECTION): Drop .dwo suffix from the name.
11212 (DEBUG_LTO_DWO_LINE_SECTION): Define.
11213 (DEBUG_LTO_LINE_STR_SECTION): Define.
11214 (init_sections_and_labels): Initialize debug_line_str_section
11215 variable. Initialize debug_loc_section for -gdwarf-5 to
11216 DEBUG_LOCLISTS_SECTION. Formatting fixes.
11217
11218 2017-09-20 Richard Biener <rguenther@suse.de>
11219
11220 * graphite-sese-to-poly.c (extract_affine): Properly handle
11221 POINTER_PLUS_EXPR, BIT_NOT_EXPR and conversion to signed.
11222
11223 2017-09-20 Richard Biener <rguenther@suse.de>
11224
11225 PR tree-optimization/81373
11226 * graphite-scop-detection.c (build_cross_bb_scalars_def):
11227 Force SESE live-out defs to be handled even if they are
11228 scev_analyzable_p.
11229
11230 2017-09-19 Jeff Law <law@redhat.com>
11231
11232 * combine-stack-adj.c (combine_stack_adjustments_for_block): Do
11233 nothing for stack adjustments with REG_STACK_CHECK.
11234 * sched-deps.c (parse_add_or_inc): Reject insns with
11235 REG_STACK_CHECK from dependency breaking.
11236 * config/i386/i386.c (pro_epilogue_adjust_stack): Return insn.
11237 (ix86_adjust_satck_and_probe_stack_clash): Add REG_STACK_NOTEs.
11238 * reg-notes.def (STACK_CHECK): New note.
11239
11240 * config/i386/i386.c (ix86_adjust_stack_and_probe_stack_clash): New.
11241 (ix86_expand_prologue): Dump stack clash info as needed.
11242 Call ix86_adjust_stack_and_probe_stack_clash as needed.
11243
11244 * function.c (dump_stack_clash_frame_info): New function.
11245 * function.h (dump_stack_clash_frame_info): Prototype.
11246 (enum stack_clash_probes): New enum.
11247
11248 * config/alpha/alpha.c (alpha_expand_prologue): Also check
11249 flag_stack_clash_protection.
11250 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): Likewise.
11251 (arm_expand_prologue, thumb1_expand_prologue): Likewise.
11252 (arm_frame_pointer_required): Likewise.
11253 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11254 (ia64_expand_prologue): Likewise.
11255 * config/mips/mips.c (mips_expand_prologue): Likewise.
11256 * config/powerpcspe/powerpcspe.c (rs6000_expand_prologue): Likewise.
11257 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
11258 (sparc_flat_expand_prologue): Likewise.
11259 * config/spu/spu.c (spu_expand_prologue): Likewise.
11260
11261 * explow.c: Include "params.h".
11262 (anti_adjust_stack_and_probe_stack_clash): New function.
11263 (get_stack_check_protect): Likewise.
11264 (compute_stack_clash_protection_loop_data): Likewise.
11265 (emit_stack_clash_protection_loop_start): Likewise.
11266 (emit_stack_clash_protection_loop_end): Likewise.
11267 (allocate_dynamic_stack_space): Use get_stack_check_protect.
11268 Use anti_adjust_stack_and_probe_stack_clash.
11269 * explow.h (compute_stack_clash_protection_loop_data): Prototype.
11270 (emit_stack_clash_protection_loop_start): Likewise.
11271 (emit_stack_clash_protection_loop_end): Likewise.
11272 * rtl.h (get_stack_check_protect): Prototype.
11273 * target.def (stack_clash_protection_final_dynamic_probe): New hook.
11274 * targhooks.c (default_stack_clash_protection_final_dynamic_probe): New.
11275 * targhooks.h (default_stack_clash_protection_final_dynamic_probe):
11276 Prototype.
11277 * doc/tm.texi.in (TARGET_STACK_CLASH_PROTECTION_FINAL_DYNAMIC_PROBE):
11278 Add @hook.
11279 * doc/tm.texi: Rebuilt.
11280 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
11281 get_stack_check_protect.
11282 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
11283 * config/arm/arm.c (arm_expand_prologue): Likewise.
11284 (arm_frame_pointer_required): Likewise.
11285 * config/i386/i386.c (ix86_expand_prologue): Likewise.
11286 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
11287 * config/mips/mips.c (mips_expand_prologue): Likewise.
11288 * config/powerpcspe/powerpcspe.c (rs6000_emit_prologue): Likewise.
11289 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
11290 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
11291 (sparc_flat_expand_prologue): Likewise.
11292
11293 * common.opt (-fstack-clash-protection): New option.
11294 * flag-types.h (enum stack_check_type): Note difference between
11295 -fstack-check= and -fstack-clash-protection.
11296 * params.def (PARAM_STACK_CLASH_PROTECTION_GUARD_SIZE): New PARAM.
11297 (PARAM_STACK_CLASH_PROTECTION_PROBE_INTERVAL): Likewise.
11298 * toplev.c (process_options): Issue warnings/errors for cases
11299 not handled with -fstack-clash-protection.
11300 * doc/invoke.texi (-fstack-clash-protection): Document new option.
11301 (-fstack-check): Note additional problem with -fstack-check=generic.
11302 Note that -fstack-check is primarily for Ada and refer users
11303 to -fstack-clash-protection for stack-clash-protection.
11304 Document new params for stack clash protection.
11305
11306 2017-09-19 Uros Bizjak <ubizjak@gmail.com>
11307
11308 * config/i386/i386.c (ix86_split_long_move): Do not handle
11309 address used for LEA in a special way.
11310
11311 2017-09-19 Segher Boessenkool <segher@kernel.crashing.org>
11312
11313 * simplify-rtx.c (simplify_binary_operation_1): Fix typo in comment.
11314
11315 2017-09-19 Martin Sebor <msebor@redhat.com>
11316
11317 PR c/81854
11318 * cgraphunit.c (handle_alias_pairs): Reject aliases between functions
11319 of incompatible types.
11320
11321 2017-09-19 Will Schmidt <will_schmidt@vnet.ibm.com>
11322
11323 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
11324 for early folding of vector loads (ALTIVEC_BUILTIN_LVX_*).
11325 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11326 Remove obsoleted code for handling ALTIVEC_BUILTIN_VEC_LD.
11327
11328 2017-09-19 Richard Biener <rguenther@suse.de>
11329
11330 PR tree-optimization/82244
11331 * tree-vrp.c (remove_range_assertions): Do not propagate
11332 a constant to abnormals but replace the assert with a copy.
11333
11334 2017-09-19 Alexander Monakov <amonakov@ispras.ru>
11335
11336 PR rtl-optimization/57878
11337 PR rtl-optimization/68988
11338 * lra-assigns.c (reload_pseudo_compare_func): Remove fragmentation
11339 avoidance test involving non_reload_pseudos. Move frequency test
11340 below the general fragmentation avoidance test.
11341
11342 2017-09-19 Richard Biener <rguenther@suse.de>
11343
11344 PR tree-optimization/69728
11345 * graphite-sese-to-poly.c (schedule_error): New global.
11346 (add_loop_schedule): Handle empty domain by failing the
11347 schedule.
11348 (build_original_schedule): Handle schedule_error.
11349
11350 2017-09-19 Richard Biener <rguenther@suse.de>
11351
11352 * graphite-scop-detection.c (scop_detection::can_represent_loop):
11353 Do not iterate to sibling loops but only to siblings of inner
11354 loops.
11355
11356 2017-09-18 Andreas Schwab <schwab@linux-m68k.org>
11357
11358 PR target/81613
11359 * config/m68k/m68k.md (moveq feeding equality comparison): Check
11360 that the registers are different.
11361
11362 2017-09-18 Uros Bizjak <ubizjak@gmail.com>
11363
11364 * config/i386/i386.c (fold_builtin_cpu): Add M_AMDFAM17H
11365 to processor_model and "amdfam17h" to arch_names_table.
11366 * doc/extend.texi (__builtin_cpu_is): Document amdfam17h CPU name.
11367
11368 2017-09-18 Jakub Jelinek <jakub@redhat.com>
11369
11370 PR c/82234
11371 * doc/extend.texi: Add @findex entry for __builtin_shuffle.
11372
11373 2017-09-18 Richard Sandiford <richard.sandiford@linaro.org>
11374 Alan Hayward <alan.hayward@arm.com>
11375 David Sherwood <david.sherwood@arm.com>
11376
11377 * tree-vectorizer.h (vect_slp_analyze_operations): Replace parameters
11378 with a vec_info *.
11379 * tree-vect-loop.c (vect_analyze_loop_operations): Update call
11380 accordingly.
11381 * tree-vect-slp.c (vect_slp_analyze_node_operations): Add vec_info *
11382 parameter. Set SLP_TREE_NUMBER_OF_VEC_STMTS here rather than in
11383 vect_schedule_slp_instance.
11384 (vect_slp_analyze_operations): Replace parameters with a vec_info *.
11385 Update call to vect_slp_analyze_node_operations. Simplify return
11386 value.
11387 (vect_slp_analyze_bb_1): Update call accordingly.
11388 (vect_schedule_slp_instance): Remove vectorization_factor parameter.
11389 Don't calculate SLP_TREE_NUMBER_OF_VEC_STMTS here.
11390 (vect_schedule_slp): Update call accordingly.
11391
11392 2017-09-18 Richard Sandiford <richard.sandiford@linaro.org>
11393 Alan Hayward <alan.hayward@arm.com>
11394 David Sherwood <david.sherwood@arm.com>
11395
11396 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Cope
11397 with types that aren't in fact scalar.
11398
11399 2017-09-18 Richard Sandiford <richard.sandiford@linaro.org>
11400
11401 * tree-vect-slp.c (vect_record_max_nunits): New function,
11402 split out from...
11403 (vect_build_slp_tree_1): ...here.
11404 (vect_build_slp_tree_2): Call it for phis too.
11405
11406 2017-09-18 Richard Sandiford <richard.sandiford@linaro.org>
11407
11408 * tree-vect-stmts.c (vectorizable_mask_load_store): Pass mask_vectype
11409 to vect_get_vec_def_for_operand when getting the mask operand.
11410
11411 2017-09-18 Richard Sandiford <richard.sandiford@linaro.org>
11412 Alan Hayward <alan.hayward@arm.com>
11413 David Sherwood <david.sherwood@arm.com>
11414
11415 * tree-vect-loop.c (vectorizable_live_operation): Fix type of
11416 bitstart.
11417
11418 2017-09-18 Richard Sandiford <richard.sandiford@linaro.org>
11419 Alan Hayward <alan.hayward@arm.com>
11420 David Sherwood <david.sherwood@arm.com>
11421
11422 * tree-vect-loop.c (vectorizable_live_operation): Fix element size
11423 calculation for vector booleans.
11424
11425 2017-09-18 Richard Sandiford <richard.sandiford@linaro.org>
11426 Alan Hayward <alan.hayward@arm.com>
11427 David Sherwood <david.sherwood@arm.com>
11428
11429 * tree-vect-stmts.c (can_vectorize_live_stmts): New function,
11430 split out from...
11431 (vect_transform_stmt): ...here.
11432 (vect_analyze_stmt): Use it instead of calling
11433 vectorizable_live_operation directly.
11434
11435 2017-09-18 Cesar Philippidis <cesar@codesourcery.com>
11436
11437 * omp-offload.c (oacc_xform_loop): Enable SIMD vectorization on
11438 non-SIMT targets in acc vector loops.
11439
11440 2017-09-18 Claudiu Zissulescu <claziss@synopsys.com>
11441
11442 * configure.ac: Add arc and check if assembler supports gdwarf2.
11443 * configure: Regenerate.
11444
11445 2017-09-18 Richard Biener <rguenther@suse.de>
11446
11447 PR tree-optimization/82220
11448 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Exclude
11449 epilogue niters from the min_profitable_iters compute.
11450
11451 2017-09-18 Jakub Jelinek <jakub@redhat.com>
11452
11453 PR target/82145
11454 * config/i386/i386.c (ix86_init_large_pic_reg): Revert 2017-09-01
11455 changes. Turn CODE_LABEL into NOTE_INSN_DELETED_LABEL immediately.
11456 (ix86_init_pic_reg): Revert 2017-09-01 changes.
11457
11458 2017-09-18 Eric Botcazou <ebotcazou@adacore.com>
11459
11460 PR target/81361
11461 * dwarf2cfi.c (add_cfis_to_fde): Do not generate DW_CFA_set_loc after
11462 switching to a new text section.
11463
11464 2017-09-18 Richard Biener <rguenther@suse.de>
11465
11466 * graphite-scop-detection.c (scop_detection::stmt_has_simple_data_ref):
11467 Simplify.
11468 (build_alias_set): Reject aliases with no access function.
11469
11470 2017-09-18 Richard Biener <rguenther@suse.de>
11471
11472 PR tree-optimization/79622
11473 * graphite-scop-detection.c (build_cross_bb_scalars_def): Properly
11474 handle PHIs.
11475 (build_cross_bb_scalars_use): Likewise.
11476
11477 2017-09-18 Pierre-Marie de Rodat <derodat@adacore.com>
11478
11479 * cgraph.h (cgraph_thunk_info): Fix a typo in a comment.
11480
11481 2017-09-18 Alan Modra <amodra@gmail.com>
11482
11483 PR target/81996
11484 * gcc/config/rs6000/rs6000.c (rs6000_return_addr): Use
11485 stack_pointer_rtx for count 0. Update comments. Break up
11486 large rtl expression.
11487
11488 2017-09-17 Daniel Santos <daniel.santos@pobox.com>
11489
11490 * config/i386/i386.c (xlogue_layout::STUB_NAME_MAX_LEN):
11491 Increase to 20 bytes.
11492 (xlogue_layout::s_stub_names): Add an additional size-2 diminsion.
11493 (xlogue_layout::get_stub_name): Modify to select the appropairate sse
11494 or avx version of the stub.
11495
11496 2017-09-17 H.J. Lu <hongjiu.lu@intel.com>
11497
11498 PR target/82166
11499 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Properly
11500 compute the minimum stack alignment. Also update preferred stack
11501 boundary for leaf functions.
11502
11503 2017-09-16 Richard Sandiford <richard.sandiford@linaro.org>
11504
11505 PR tree-optimization/82228
11506 * tree-vect-loop.c (vectorizable_live_operation): Move initialization
11507 of ncopies.
11508
11509 2017-09-16 Chung-Ju Wu <jasonwucj@gmail.com>
11510
11511 * common/config/nds32/nds32-common.c
11512 (nds32_option_optimization_table): Refine formatting.
11513 (nds32_option_optimization_table): Use -fsched-pressure and
11514 -fomit-frame-pointer for specific optimization level.
11515
11516 2017-09-16 Chung-Ju Wu <jasonwucj@gmail.com>
11517
11518 * config/nds32/nds32.c: Refine formatting and comments.
11519 * config/nds32/nds32.h: Likewise.
11520 * config/nds32/nds32.md: Likewise.
11521 * config/nds32/nds32-cost.c: Likewise.
11522 * config/nds32/nds32-isr.c: Likewise.
11523 * config/nds32/nds32-md-auxiliary.c: Likewise.
11524 * config/nds32/nds32-multiple.md: Likewise.
11525 * config/nds32/nds32-predicates.c: Likewise.
11526
11527 2017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
11528 Jakub Jelinek <jakub@redhat.com>
11529
11530 Add support for -std=c++2a.
11531 * doc/cpp.texi (__cplusplus): Document value for -std=c++2a
11532 or -std=gnu+2a.
11533 * doc/invoke.texi: Document -std=c++2a and -std=gnu++2a.
11534
11535 2017-09-15 Steve Ellcey <sellcey@cavium.com>
11536
11537 PR target/82066
11538 * doc/extend.texi (Common Function Attributes): Add
11539 references to ARM, AArch64, and S/390 specific attributes.
11540 (Function Specific Option Pragmas): Add AArch64 and S/390
11541 to list of back ends that support the target pragma.
11542
11543 2017-09-15 Nathan Sidwell <nathan@acm.org>
11544
11545 * doc/standards.texi: Fix C++17 description. Update URLs for
11546 C++11 & 14.
11547
11548 2017-09-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
11549
11550 * common.opt (Wcast-align=strict): New warning option.
11551 * doc/invoke.texi: Document -Wcast-align=strict.
11552
11553 2017-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
11554
11555 * cgraph.h (cgraph_thunk_info): Add comments.
11556 * cgraph.c (cgraph_node::create_thunk): Adjust comment, make
11557 assert for VIRTUAL_* arguments stricter.
11558
11559 2017-09-15 Jackson Woodruff <jackson.woodruff@arm.com>
11560
11561 PR tree-optimization/71026
11562 * match.pd: Move RDIV patterns from fold-const.c
11563 * fold-const.c (distribute_real_division): Removed.
11564 (fold_binary_loc): Remove calls to distribute_real_divison.
11565
11566 2017-09-15 Jakub Jelinek <jakub@redhat.com>
11567
11568 * doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
11569 c++1z and gnu++1z as deprecated. Change other references to
11570 -std=c++1z to -std=c++17 and -std=gnu++1z to -std=gnu++17.
11571 Change -Wc++1z-compat to -Wc++17-compat.
11572 * doc/cpp.texi: Document -std=c++17 defines __cplusplus 201703L.
11573 * dwarf2out.c (highest_c_language): Handle C++17.
11574 (gen_compile_unit_die): Likewise.
11575
11576 2017-09-15 Jakub Jelinek <jakub@redhat.com>
11577
11578 PR rtl-optimization/82192
11579 * combine.c (make_extraction): Don't look through non-paradoxical
11580 SUBREGs or TRUNCATE if pos + len is or might be bigger than
11581 inner's mode.
11582
11583 2017-09-15 Richard Sandiford <richard.sandiford@linaro.org>
11584 Alan Hayward <alan.hayward@arm.com>
11585 David Sherwood <david.sherwood@arm.com>
11586
11587 * target.def (function_arg_offset): New hook.
11588 * targhooks.h (default_function_arg_offset): Declare.
11589 * targhooks.c (default_function_arg_offset): New function.
11590 * function.c (locate_and_pad_parm): Use
11591 targetm.calls.function_arg_offset instead of FUNCTION_ARG_OFFSET.
11592 * doc/tm.texi.in (FUNCTION_ARG_OFFSET): Replace with...
11593 (TARGET_FUNCTION_ARG_OFFSET): ...this.
11594 * doc/tm.texi: Regenerate.
11595 * config/spu/spu.h (FUNCTION_ARG_OFFSET): Delete.
11596 * config/spu/spu.c (spu_function_arg_offset): New function.
11597 (TARGET_FUNCTION_ARG_OFFSET): Redefine.
11598 * system.h (FUNCTION_ARG_OFFSET): Poison.
11599
11600 2017-09-15 Richard Sandiford <richard.sandiford@linaro.org>
11601 Alan Hayard <alan.hayward@arm.com>
11602 David Sherwood <david.sherwood@arm.com>
11603
11604 * target.def (truly_noop_truncation): New hook.
11605 (mode_rep_extended): Refer to TARGET_TRULY_NOOP_TRUNCATION rather
11606 than TRULY_NOOP_TRUNCATION.
11607 * hooks.h (hook_bool_uint_uint_true): Declare.
11608 * hooks.c (hook_bool_uint_uint_true): New function.
11609 * doc/tm.texi.in (TRULY_NOOP_TRUNCATION): Replace with...
11610 (TARGET_TRULY_NOOP_TRUNCATION): ...this.
11611 * doc/tm.texi: Regenerate.
11612 * combine.c (make_extraction): Refer to TARGET_TRULY_NOOP_TRUNCATION
11613 rather than TRULY_NOOP_TRUNCATION in comments.
11614 (simplify_comparison): Likewise.
11615 (record_truncated_value): Likewise.
11616 * expmed.c (extract_bit_field_1): Likewise.
11617 (extract_split_bit_field): Likewise.
11618 * convert.c (convert_to_integer_1): Use targetm.truly_noop_truncation
11619 instead of TRULY_NOOP_TRUNCATION.
11620 * function.c (assign_parm_setup_block): Likewise.
11621 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): Likewise.
11622 * rtlhooks.c: Include target.h.
11623 * config/aarch64/aarch64.h (TRULY_NOOP_TRUNCATION): Delete.
11624 * config/alpha/alpha.h (TRULY_NOOP_TRUNCATION): Delete.
11625 * config/arc/arc.h (TRULY_NOOP_TRUNCATION): Delete.
11626 * config/arm/arm.h (TRULY_NOOP_TRUNCATION): Delete.
11627 * config/avr/avr.h (TRULY_NOOP_TRUNCATION): Delete.
11628 * config/bfin/bfin.h (TRULY_NOOP_TRUNCATION): Delete.
11629 * config/c6x/c6x.h (TRULY_NOOP_TRUNCATION): Delete.
11630 * config/cr16/cr16.h (TRULY_NOOP_TRUNCATION): Delete.
11631 * config/cris/cris.h (TRULY_NOOP_TRUNCATION): Delete.
11632 * config/epiphany/epiphany.h (TRULY_NOOP_TRUNCATION): Delete.
11633 * config/fr30/fr30.h (TRULY_NOOP_TRUNCATION): Delete.
11634 * config/frv/frv.h (TRULY_NOOP_TRUNCATION): Delete.
11635 * config/ft32/ft32.h (TRULY_NOOP_TRUNCATION): Delete.
11636 * config/h8300/h8300.h (TRULY_NOOP_TRUNCATION): Delete.
11637 * config/i386/i386.h (TRULY_NOOP_TRUNCATION): Delete.
11638 * config/ia64/ia64.h (TRULY_NOOP_TRUNCATION): Delete.
11639 * config/iq2000/iq2000.h (TRULY_NOOP_TRUNCATION): Delete.
11640 * config/lm32/lm32.h (TRULY_NOOP_TRUNCATION): Delete.
11641 * config/m32c/m32c.h (TRULY_NOOP_TRUNCATION): Delete.
11642 * config/m32r/m32r.h (TRULY_NOOP_TRUNCATION): Delete.
11643 * config/m68k/m68k.h (TRULY_NOOP_TRUNCATION): Delete.
11644 * config/mcore/mcore.h (TRULY_NOOP_TRUNCATION): Delete.
11645 * config/microblaze/microblaze.h (TRULY_NOOP_TRUNCATION): Delete.
11646 * config/mips/mips.h (TRULY_NOOP_TRUNCATION): Delete.
11647 * config/mips/mips.c (mips_truly_noop_truncation): New function.
11648 (TARGET_TRULY_NOOP_TRUNCATION): Redefine.
11649 * config/mips/mips.md: Refer to TARGET_TRULY_NOOP_TRUNCATION
11650 rather than TRULY_NOOP_TRUNCATION in comments.
11651 * config/mmix/mmix.h (TRULY_NOOP_TRUNCATION): Delete.
11652 * config/mn10300/mn10300.h (TRULY_NOOP_TRUNCATION): Delete.
11653 * config/moxie/moxie.h (TRULY_NOOP_TRUNCATION): Delete.
11654 * config/msp430/msp430.h (TRULY_NOOP_TRUNCATION): Delete.
11655 * config/nds32/nds32.h (TRULY_NOOP_TRUNCATION): Delete.
11656 * config/nios2/nios2.h (TRULY_NOOP_TRUNCATION): Delete.
11657 * config/nvptx/nvptx.h (TRULY_NOOP_TRUNCATION): Delete.
11658 * config/pa/pa.h (TRULY_NOOP_TRUNCATION): Delete.
11659 * config/pdp11/pdp11.h (TRULY_NOOP_TRUNCATION): Delete.
11660 * config/powerpcspe/powerpcspe.h (TRULY_NOOP_TRUNCATION): Delete.
11661 * config/riscv/riscv.h (TRULY_NOOP_TRUNCATION): Delete.
11662 * config/riscv/riscv.md: Refer to TARGET_TRULY_NOOP_TRUNCATION
11663 rather than TRULY_NOOP_TRUNCATION in comments.
11664 * config/rl78/rl78.h (TRULY_NOOP_TRUNCATION): Delete.
11665 * config/rs6000/rs6000.h (TRULY_NOOP_TRUNCATION): Delete.
11666 * config/rx/rx.h (TRULY_NOOP_TRUNCATION): Delete.
11667 * config/s390/s390.h (TRULY_NOOP_TRUNCATION): Delete.
11668 * config/sh/sh.h (MAYBE_BASE_REGISTER_RTX_P): Remove
11669 TRULY_NOOP_TRUNCATION condition.
11670 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
11671 (TRULY_NOOP_TRUNCATION): Delete.
11672 * config/sparc/sparc.h (TRULY_NOOP_TRUNCATION): Delete.
11673 * config/spu/spu.h (TRULY_NOOP_TRUNCATION): Delete.
11674 * config/spu/spu.c (spu_truly_noop_truncation): New function.
11675 (TARGET_TRULY_NOOP_TRUNCATION): Redefine.
11676 * config/stormy16/stormy16.h (TRULY_NOOP_TRUNCATION): Delete.
11677 * config/tilegx/tilegx.h (TRULY_NOOP_TRUNCATION): Delete.
11678 * config/tilegx/tilegx.c (tilegx_truly_noop_truncation): New fuction.
11679 (TARGET_TRULY_NOOP_TRUNCATION): Redefine.
11680 * config/tilegx/tilegx.md: Refer to TARGET_TRULY_NOOP_TRUNCATION
11681 rather than TRULY_NOOP_TRUNCATION in comments.
11682 * config/tilepro/tilepro.h (TRULY_NOOP_TRUNCATION): Delete.
11683 * config/v850/v850.h (TRULY_NOOP_TRUNCATION): Delete.
11684 * config/vax/vax.h (TRULY_NOOP_TRUNCATION): Delete.
11685 * config/visium/visium.h (TRULY_NOOP_TRUNCATION): Delete.
11686 * config/xtensa/xtensa.h (TRULY_NOOP_TRUNCATION): Delete.
11687 * system.h (TRULY_NOOP_TRUNCATION): Poison.
11688
11689 2017-09-15 Christophe Lyon <christophe.lyon@linaro.org>
11690
11691 PR target/67591
11692 * config/arm/arm.md (*cmp_and): Add enabled_for_depr_it attribute.
11693 (*cmp_ior): Likewise.
11694 (*ior_scc_scc): Add alternative for enabled_for_depr_it attribute.
11695 (*ior_scc_scc_cmp): Likewise.
11696 (*and_scc_scc): Likewise.
11697 (*and_scc_scc_cmp): Likewise.
11698
11699 2017-09-15 Richard Sandiford <richard.sandiford@linaro.org>
11700 Alan Hayard <alan.hayward@arm.com>
11701 David Sherwood <david.sherwood@arm.com>
11702
11703 * target.def (can_change_mode_class): New hook.
11704 (mode_rep_extended): Refer to it instead of CANNOT_CHANGE_MODE_CLASS.
11705 (hard_regno_nregs): Likewise.
11706 * hooks.h (hook_bool_mode_mode_reg_class_t_true): Declare.
11707 * hooks.c (hook_bool_mode_mode_reg_class_t_true): New function.
11708 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Replace with...
11709 (TARGET_CAN_CHANGE_MODE_CLASS): ...this.
11710 (LOAD_EXTEND_OP): Update accordingly.
11711 * doc/tm.texi: Regenerate.
11712 * doc/rtl.texi: Refer to TARGET_CAN_CHANGE_MODE_CLASS instead of
11713 CANNOT_CHANGE_MODE_CLASS.
11714 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Replace with...
11715 (REG_CAN_CHANGE_MODE_P): ...this new macro.
11716 * combine.c (simplify_set): Update accordingly.
11717 * emit-rtl.c (validate_subreg): Likewise.
11718 * recog.c (general_operand): Likewise.
11719 * regcprop.c (mode_change_ok): Likewise.
11720 * reload1.c (choose_reload_regs): Likewise.
11721 (inherit_piecemeal_p): Likewise.
11722 * rtlanal.c (simplify_subreg_regno): Likewise.
11723 * postreload.c (reload_cse_simplify_set): Use REG_CAN_CHANGE_MODE_P
11724 instead of CANNOT_CHANGE_MODE_CLASS.
11725 (reload_cse_simplify_operands): Likewise.
11726 * reload.c (push_reload): Use targetm.can_change_mode_class
11727 instead of CANNOT_CHANGE_MODE_CLASS.
11728 (push_reload): Likewise. Also use REG_CAN_CHANGE_MODE_P instead of
11729 REG_CANNOT_CHANGE_MODE_P.
11730 * config/alpha/alpha.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11731 * config/alpha/alpha.c (alpha_can_change_mode_class): New function.
11732 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11733 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11734 * config/arm/arm.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11735 (arm_can_change_mode_class): New function.
11736 * config/arm/neon.md: Refer to TARGET_CAN_CHANGE_MODE_CLASS rather
11737 than CANNOT_CHANGE_MODE_CLASS in comments.
11738 * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11739 * config/i386/i386-protos.h (ix86_cannot_change_mode_class): Delete.
11740 * config/i386/i386.c (ix86_cannot_change_mode_class): Replace with...
11741 (ix86_can_change_mode_class): ...this new function, inverting the
11742 sense of the return value.
11743 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11744 * config/ia64/ia64.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11745 * config/ia64/ia64.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11746 (ia64_can_change_mode_class): New function.
11747 * config/m32c/m32c.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11748 * config/m32c/m32c-protos.h (m32c_cannot_change_mode_class): Delete.
11749 * config/m32c/m32c.c (m32c_cannot_change_mode_class): Replace with...
11750 (m32c_can_change_mode_class): ...this new function, inverting the
11751 sense of the return value.
11752 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11753 * config/mips/mips.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11754 * config/mips/mips-protos.h (mips_cannot_change_mode_class): Delete.
11755 * config/mips/mips.c (mips_cannot_change_mode_class): Replace with...
11756 (mips_can_change_mode_class): ...this new function, inverting the
11757 sense of the return value.
11758 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11759 * config/msp430/msp430.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11760 * config/msp430/msp430.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11761 (msp430_can_change_mode_class): New function.
11762 * config/nvptx/nvptx.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11763 * config/nvptx/nvptx.c (nvptx_can_change_mode_class): New function.
11764 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11765 * config/pa/pa32-regs.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11766 * config/pa/pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11767 * config/pa/pa-protos.h (pa_cannot_change_mode_class): Delete.
11768 * config/pa/pa.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11769 (pa_cannot_change_mode_class): Replace with...
11770 (pa_can_change_mode_class): ...this new function, inverting the
11771 sense of the return value.
11772 (pa_modes_tieable_p): Refer to TARGET_CAN_CHANGE_MODE_CLASS rather
11773 than CANNOT_CHANGE_MODE_CLASS in comments.
11774 * config/pdp11/pdp11.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11775 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class): Delete.
11776 * config/pdp11/pdp11.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11777 (pdp11_cannot_change_mode_class): Replace with...
11778 (pdp11_can_change_mode_class): ...this new function, inverting the
11779 sense of the return value.
11780 * config/powerpcspe/powerpcspe.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11781 * config/powerpcspe/powerpcspe-protos.h
11782 (rs6000_cannot_change_mode_class_ptr): Delete.
11783 * config/powerpcspe/powerpcspe.c
11784 (rs6000_cannot_change_mode_class_ptr): Delete.
11785 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11786 (rs6000_option_override_internal): Assign to
11787 targetm.can_change_mode_class instead of
11788 rs6000_cannot_change_mode_class_ptr.
11789 (rs6000_cannot_change_mode_class): Replace with...
11790 (rs6000_can_change_mode_class): ...this new function, inverting the
11791 sense of the return value.
11792 (rs6000_debug_cannot_change_mode_class): Replace with...
11793 (rs6000_debug_can_change_mode_class): ...this new function.
11794 * config/riscv/riscv.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11795 * config/riscv/riscv.c (riscv_can_change_mode_class): New function.
11796 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11797 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11798 * config/rs6000/rs6000-protos.h (rs6000_cannot_change_mode_class_ptr):
11799 Delete.
11800 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class_ptr): Delete.
11801 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11802 (rs6000_option_override_internal): Assign to
11803 targetm.can_change_mode_class instead of
11804 rs6000_cannot_change_mode_class_ptr.
11805 (rs6000_cannot_change_mode_class): Replace with...
11806 (rs6000_can_change_mode_class): ...this new function, inverting the
11807 sense of the return value.
11808 (rs6000_debug_cannot_change_mode_class): Replace with...
11809 (rs6000_debug_can_change_mode_class): ...this new function.
11810 * config/s390/s390.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11811 * config/s390/s390-protos.h (s390_cannot_change_mode_class): Delete.
11812 * config/s390/s390.c (s390_cannot_change_mode_class): Replace with...
11813 (s390_can_change_mode_class): ...this new function, inverting the
11814 sense of the return value.
11815 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11816 * config/sh/sh.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11817 * config/sh/sh-protos.h (sh_cannot_change_mode_class): Delete.
11818 * config/sh/sh.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11819 (sh_cannot_change_mode_class): Replace with...
11820 (sh_can_change_mode_class): ...this new function, inverting the
11821 sense of the return value.
11822 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11823 * config/sparc/sparc.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11824 (sparc_can_change_mode_class): New function.
11825 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11826 * config/spu/spu.c (spu_can_change_mode_class): New function.
11827 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11828 * config/visium/visium.h (CANNOT_CHANGE_MODE_CLASS): Delete.
11829 * config/visium/visium.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
11830 (visium_can_change_mode_class): New function.
11831 * system.h (CANNOT_CHANGE_MODE_CLASS): Poison.
11832
11833 2017-09-15 Richard Biener <rguenther@suse.de>
11834
11835 PR tree-optimization/82217
11836 * tree-ssa-sccvn.c (visit_phi): Properly handle all VN_TOP
11837 but not undefined case.
11838
11839 2017-09-15 Jakub Jelinek <jakub@redhat.com>
11840
11841 PR target/82145
11842 * postreload.c (reload_cse_simplify_operands): Skip
11843 NOTE_INSN_DELETED_LABEL similarly to skipping CODE_LABEL.
11844
11845 2017-09-15 Richard Biener <rguenther@suse.de>
11846
11847 PR tree-optimization/68823
11848 * graphite-scop-detection.c (build_alias_set): If we have a
11849 possible dependence check whether we can handle them by just
11850 looking at the DRs DR_ACCESS_FNs.
11851 (build_scops): If build_alias_set fails, fail the SCOP.
11852
11853 2017-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11854
11855 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_1_HW): New macros
11856 to support float128 built-in functions that require the ISA 3.0
11857 hardware.
11858 (BU_FLOAT128_3_HW): Likewise.
11859 (SQRTF128): Add support for the IEEE 128-bit square root and fma
11860 built-in functions.
11861 (FMAF128): Likewise.
11862 (FMAQ): Likewise.
11863 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
11864 support for built-in functions that need the ISA 3.0 IEEE 128-bit
11865 floating point instructions.
11866 (rs6000_invalid_builtin): Likewise.
11867 (rs6000_builtin_mask_names): Likewise.
11868 * config/rs6000/rs6000.h (MASK_FLOAT128_HW): Likewise.
11869 (RS6000_BTM_FLOAT128_HW): Likewise.
11870 (RS6000_BTM_COMMON): Likewise.
11871 * config/rs6000/rs6000.md (fma<mode>4_hw): Add a generator
11872 function.
11873 * doc/extend.texi (RS/6000 built-in functions): Document the
11874 IEEE 128-bit floating point square root and fused multiply-add
11875 built-in functions.
11876
11877 2017-09-14 Pat Haugen <pthaugen@us.ibm.com>
11878
11879 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): Make sure the TOC
11880 reg (r2) isn't in the set of registers defined in the prologue.
11881
11882 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
11883 Alan Hayward <alan.hayward@arm.com>
11884 David Sherwood <david.sherwood@arm.com>
11885
11886 * tree-vectorizer.h (_loop_vec_info): Add max_vectorization_factor.
11887 (LOOP_VINFO_MAX_VECT_FACTOR): New macro.
11888 (LOOP_VINFO_ORIG_VECT_FACTOR): Replace with...
11889 (LOOP_VINFO_ORIG_MAX_VECT_FACTOR): ...this new macro.
11890 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Update
11891 accordingly.
11892 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
11893 max_vectorization_factor.
11894 (vect_analyze_loop_2): Set LOOP_VINFO_MAX_VECT_FACTOR.
11895
11896 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
11897 Alan Hayward <alan.hayward@arm.com>
11898 David Sherwood <david.sherwood@arm.com>
11899
11900 * tree-vectorizer.h (vect_min_worthwhile_factor): Delete.
11901 (vect_worthwhile_without_simd_p): Declare.
11902 * tree-vect-loop.c (vect_worthwhile_without_simd_p): New function.
11903 (vectorizable_reduction): Use it.
11904 * tree-vect-stmts.c (vectorizable_shift): Likewise.
11905 (vectorizable_operation): Likewise.
11906
11907 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
11908 Alan Hayward <alan.hayward@arm.com>
11909 David Sherwood <david.sherwood@arm.com>
11910
11911 * tree-vectorizer.h (vect_get_num_copies): New function.
11912 * tree-vect-data-refs.c (vect_get_data_access_cost): Use it.
11913 * tree-vect-loop.c (vectorizable_reduction): Likewise.
11914 (vectorizable_induction): Likewise.
11915 (vectorizable_live_operation): Likewise.
11916 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
11917 (vectorizable_bswap): Likewise.
11918 (vectorizable_call): Likewise.
11919 (vectorizable_conversion): Likewise.
11920 (vectorizable_assignment): Likewise.
11921 (vectorizable_shift): Likewise.
11922 (vectorizable_operation): Likewise.
11923 (vectorizable_store): Likewise.
11924 (vectorizable_load): Likewise.
11925 (vectorizable_condition): Likewise.
11926 (vectorizable_comparison): Likewise.
11927 (vect_analyze_stmt): Pass the slp node to vectorizable_live_operation.
11928
11929 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
11930 Alan Hayward <alan.hayward@arm.com>
11931 David Sherwood <david.sherwood@arm.com>
11932
11933 * tree-vect-loop.c (vectorizable_induction): Use gimple_build instead
11934 of vect_init_vector.
11935
11936 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
11937 Alan Hayward <alan.hayward@arm.com>
11938 David Sherwood <david.sherwood@arm.com>
11939
11940 * gimple-fold.h (gimple_build_vector_from_val): Declare, and provide
11941 an inline wrapper that provides a location.
11942 (gimple_build_vector): Likewise.
11943 * gimple-fold.c (gimple_build_vector_from_val): New function.
11944 (gimple_build_vector): Likewise.
11945 * tree-vect-loop.c (get_initial_def_for_reduction): Use the new
11946 functions to build the initial value. Always return a gimple value.
11947 (get_initial_defs_for_reduction): Likewise. Only compute
11948 neutral_vec once.
11949 (vect_create_epilog_for_reduction): Don't call force_gimple_operand or
11950 vect_init_vector on the results from get_initial_def(s)_for_reduction.
11951 (vectorizable_induction): Use gimple_build_vector rather than
11952 vect_init_vector.
11953
11954 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
11955 Alan Hayward <alan.hayward@arm.com>
11956 David Sherwood <david.sherwood@arm.com>
11957
11958 * target.h (vec_perm_indices): New typedef.
11959 (auto_vec_perm_indices): Likewise.
11960 * optabs-query.h: Include target.h
11961 (can_vec_perm_p): Take a vec_perm_indices *.
11962 * optabs-query.c (can_vec_perm_p): Likewise.
11963 (can_mult_highpart_p): Update accordingly. Use auto_vec_perm_indices.
11964 * tree-ssa-forwprop.c (simplify_vector_constructor): Likewise.
11965 * tree-vect-generic.c (lower_vec_perm): Likewise.
11966 * tree-vect-data-refs.c (vect_grouped_store_supported): Likewise.
11967 (vect_grouped_load_supported): Likewise.
11968 (vect_shift_permute_load_chain): Likewise.
11969 (vect_permute_store_chain): Use auto_vec_perm_indices.
11970 (vect_permute_load_chain): Likewise.
11971 * fold-const.c (fold_vec_perm): Take vec_perm_indices.
11972 (fold_ternary_loc): Update accordingly. Use auto_vec_perm_indices.
11973 Update uses of can_vec_perm_p.
11974 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Replace the
11975 mode with a number of elements. Take a vec_perm_indices *.
11976 (vect_create_epilog_for_reduction): Update accordingly.
11977 Use auto_vec_perm_indices.
11978 (have_whole_vector_shift): Likewise. Update call to can_vec_perm_p.
11979 * tree-vect-slp.c (vect_build_slp_tree_1): Likewise.
11980 (vect_transform_slp_perm_load): Likewise.
11981 (vect_schedule_slp_instance): Use auto_vec_perm_indices.
11982 * tree-vectorizer.h (vect_gen_perm_mask_any): Take a vec_perm_indices.
11983 (vect_gen_perm_mask_checked): Likewise.
11984 * tree-vect-stmts.c (vect_gen_perm_mask_any): Take a vec_perm_indices.
11985 (vect_gen_perm_mask_checked): Likewise.
11986 (vectorizable_mask_load_store): Use auto_vec_perm_indices.
11987 (vectorizable_store): Likewise.
11988 (vectorizable_load): Likewise.
11989 (perm_mask_for_reverse): Likewise. Update call to can_vec_perm_p.
11990 (vectorizable_bswap): Likewise.
11991
11992 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
11993 Alan Hayward <alan.hayward@arm.com>
11994 David Sherwood <david.sherwood@arm.com>
11995
11996 * tree.h (build_vector): Take a vec<tree> instead of a tree *.
11997 * tree.c (build_vector): Likewise.
11998 (build_vector_from_ctor): Update accordingly.
11999 (build_vector_from_val): Likewise.
12000 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12001 * tree-ssa-forwprop.c (simplify_vector_constructor): Likewise.
12002 * tree-vect-generic.c (add_rshift): Likewise.
12003 (expand_vector_divmod): Likewise.
12004 (optimize_vector_constructor): Likewise.
12005 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
12006 (vect_transform_slp_perm_load): Likewise.
12007 (vect_schedule_slp_instance): Likewise.
12008 * tree-vect-stmts.c (vectorizable_bswap): Likewise.
12009 (vectorizable_call): Likewise.
12010 (vect_gen_perm_mask_any): Likewise. Add elements in order.
12011 * expmed.c (make_tree): Likewise.
12012 * fold-const.c (fold_negate_expr_1): Use auto_vec<tree> when building
12013 a vector passed to build_vector.
12014 (fold_convert_const): Likewise.
12015 (exact_inverse): Likewise.
12016 (fold_ternary_loc): Likewise.
12017 (fold_relational_const): Likewise.
12018 (const_binop): Likewise. Use VECTOR_CST_ELT directly when operating
12019 on VECTOR_CSTs, rather than going through vec_cst_ctor_to_array.
12020 (const_unop): Likewise. Store the reduction accumulator in a
12021 variable rather than an array.
12022 (vec_cst_ctor_to_array): Take the number of elements as a parameter.
12023 (fold_vec_perm): Update calls accordingly. Use auto_vec<tree> for
12024 the new vector, rather than constructing it after the input arrays.
12025 (native_interpret_vector): Use auto_vec<tree> when building
12026 a vector passed to build_vector. Add elements in order.
12027 * tree-vect-loop.c (get_initial_defs_for_reduction): Use
12028 auto_vec<tree> when building a vector passed to build_vector.
12029 (vect_create_epilog_for_reduction): Likewise.
12030 (vectorizable_induction): Likewise.
12031 (get_initial_def_for_reduction): Likewise. Fix indentation of
12032 case statements.
12033 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Change n_elts
12034 to a vec<tree> *.
12035 (sparc_fold_builtin): Use auto_vec<tree> when building a vector
12036 passed to build_vector.
12037
12038 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
12039 Alan Hayward <alan.hayward@arm.com>
12040 David Sherwood <david.sherwood@arm.com>
12041
12042 * tree-core.h (tree_base::u): Add an "nelts" field.
12043 (tree_vector): Use VECTOR_CST_NELTS as the length.
12044 * tree.c (tree_size): Likewise.
12045 (make_vector): Initialize VECTOR_CST_NELTS.
12046 * tree.h (VECTOR_CST_NELTS): Use the u.nelts field.
12047 * cfgexpand.c (expand_debug_expr): Use VECTOR_CST_NELTS instead of
12048 TYPE_VECTOR_SUBPARTS.
12049 * expr.c (const_vector_mask_from_tree): Consistently use "units"
12050 as the number of units, setting it from VECTOR_CST_NELTS.
12051 (const_vector_from_tree): Likewise.
12052 * fold-const.c (negate_expr_p): Use VECTOR_CST_NELTS instead of
12053 TYPE_VECTOR_SUBPARTS for the number of elements in a VECTOR_CST.
12054 (fold_negate_expr_1): Likewise.
12055 (fold_convert_const): Likewise.
12056 (const_binop): Likewise. Differentiate the number of output and
12057 input elements.
12058 (const_unop): Likewise.
12059 (fold_ternary_loc): Use VECTOR_CST_NELTS for the number of elements
12060 in a VECTOR_CST, asserting that it is the same as TYPE_VECTOR_SUBPARTS
12061 in cases that did the opposite.
12062
12063 2017-09-14 Richard Biener <rguenther@suse.de>
12064
12065 * tree-ssa-sccvn.c (visit_phi): Merge undefined values similar
12066 to VN_TOP.
12067
12068 2017-09-14 Eric Botcazou <ebotcazou@adacore.com>
12069
12070 * dwarf2out.c (dwarf2out_source_line): Remove superfluous test.
12071
12072 2017-09-14 Jakub Jelinek <jakub@redhat.com>
12073
12074 PR target/81325
12075 * cfgbuild.c (find_bb_boundaries): Ignore debug insns in decisions
12076 if and where to split a bb, except for splitting before debug insn
12077 sequences followed by non-label real insn. Delete debug insns
12078 in between basic blocks.
12079
12080 * combine.c (make_compound_operation_int): Formatting fixes.
12081
12082 * config/alpha/elf.h (LINK_EH_SPEC): Add -static-pie support.
12083 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12084 * config/netbsd.h (LINK_EH_SPEC): Likewise.
12085 * config/sol2.h (LINK_EH_SPEC): Likewise.
12086 * config/arm/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12087 * config/s390/linux.h (LINK_SPEC): Likewise.
12088 * config/freebsd.h (LINK_EH_SPEC): Likewise.
12089 * config/openbsd.h (LINK_EH_SPEC): Likewise.
12090 * config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12091 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Likewise.
12092 * config/powerpcspe/sysv4.h (LINK_EH_SPEC): Likewise.
12093 * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12094 * config/i386/gnu-user64.h (GNU_USER_TARGET_LINK_SPEC): Fix a typo.
12095 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Formatting fix.
12096
12097 2017-09-13 Jakub Jelinek <jakub@redhat.com>
12098
12099 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Add -static-pie
12100 support.
12101 (ENDFILE_LINUX_SPEC): Likewise.
12102 (LINK_EH_SPEC): Likewise.
12103 * config/rs6000/linux64.h (LINK_SHLIB_SPEC): Likewise.
12104 (LINK_OS_LINUX_SPEC32): Likewise.
12105 (LINK_OS_LINUX_SPEC64): Likewise.
12106 * config/rs6000/linux.h (LINK_SHLIB_SPEC): Likewise.
12107 (LINK_OS_LINUX_SPEC): Likewise.
12108
12109 2017-09-13 Martin Liska <mliska@suse.cz>
12110
12111 PR middle-end/82154
12112 * stmt.c (expand_sjlj_dispatch_table): Use CASE_LOW when
12113 CASE_HIGH is NULL_TREE.
12114
12115 2017-09-13 Richard Sandiford <richard.sandiford@linaro.org>
12116 Alan Hayward <alan.hayward@arm.com>
12117 David Sherwood <david.sherwood@arm.com>
12118
12119 * target.def (secondary_memory_needed): New hook.
12120 (secondary_reload): Refer to TARGET_SECONDARY_MEMORY_NEEDED
12121 instead of SECONDARY_MEMORY_NEEDED.
12122 (secondary_memory_needed_mode): Likewise.
12123 * hooks.h (hook_bool_mode_reg_class_t_reg_class_t_false): Declare.
12124 * hooks.c (hook_bool_mode_reg_class_t_reg_class_t_false): New function.
12125 * doc/tm.texi.in (SECONDARY_MEMORY_NEEDED): Replace with...
12126 (TARGET_SECONDARY_MEMORY_NEEDED): ...this.
12127 (SECONDARY_MEMORY_NEEDED_RTX): Update reference accordingly.
12128 * doc/tm.texi: Regenerate.
12129 * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Delete.
12130 * config/alpha/alpha.c (alpha_secondary_memory_needed): New function.
12131 (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
12132 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED): Delete.
12133 * config/i386/i386-protos.h (ix86_secondary_memory_needed): Delete.
12134 * config/i386/i386.c (inline_secondary_memory_needed): Put the
12135 mode argument first and change the reg_class arguments to reg_class_t.
12136 (ix86_secondary_memory_needed): Likewise. Remove the strict parameter.
12137 Make static. Update the call to inline_secondary_memory_needed.
12138 (ix86_register_move_cost): Update the call to
12139 inline_secondary_memory_needed.
12140 (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
12141 * config/ia64/ia64.h (SECONDARY_MEMORY_NEEDED): Delete commented-out
12142 definition.
12143 * config/ia64/ia64.c (spill_xfmode_rfmode_operand): Refer to
12144 TARGET_SECONDARY_MEMORY_NEEDED rather than SECONDARY_MEMORY_NEEDED
12145 in comment.
12146 * config/mips/mips.h (SECONDARY_MEMORY_NEEDED): Delete.
12147 * config/mips/mips-protos.h (mips_secondary_memory_needed): Delete.
12148 * config/mips/mips.c (mips_secondary_memory_needed): Make static
12149 and match hook interface. Add comment from mips.h.
12150 (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
12151 * config/mmix/mmix.md (truncdfsf2): Refer to
12152 TARGET_SECONDARY_MEMORY_NEEDED rather than SECONDARY_MEMORY_NEEDED
12153 in comment.
12154 * config/pa/pa-64.h (SECONDARY_MEMORY_NEEDED): Rename to...
12155 (PA_SECONDARY_MEMORY_NEEDED): ...this, and put the mode argument first.
12156 * config/pa/pa.c (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
12157 (pa_secondary_memory_needed): New function.
12158 * config/pdp11/pdp11.h (SECONDARY_MEMORY_NEEDED): Delete.
12159 * config/pdp11/pdp11-protos.h (pdp11_secondary_memory_needed): Delete.
12160 * config/pdp11/pdp11.c (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
12161 (pdp11_secondary_memory_needed): Make static and match hook interface.
12162 * config/powerpcspe/powerpcspe.h (SECONDARY_MEMORY_NEEDED): Delete.
12163 * config/powerpcspe/powerpcspe-protos.h
12164 (rs6000_secondary_memory_needed_ptr): Delete.
12165 * config/powerpcspe/powerpcspe.c (rs6000_secondary_memory_needed_ptr):
12166 Delete.
12167 (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
12168 (rs6000_option_override_internal): Assign to
12169 targetm.secondary_memory_needed rather than
12170 rs6000_secondary_memory_needed_ptr.
12171 (rs6000_secondary_memory_needed): Match hook interface.
12172 (rs6000_debug_secondary_memory_needed): Likewise.
12173 * config/riscv/riscv.h (SECONDARY_MEMORY_NEEDED): Delete.
12174 * config/riscv/riscv.c (riscv_secondary_memory_needed): New function.
12175 (riscv_register_move_cost): Use it instead of SECONDARY_MEMORY_NEEDED.
12176 (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
12177 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED): Delete.
12178 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_ptr):
12179 Delete.
12180 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_ptr): Delete.
12181 (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
12182 (rs6000_option_override_internal): Assign to
12183 targetm.secondary_memory_needed rather than
12184 rs6000_secondary_memory_needed_ptr.
12185 (rs6000_secondary_memory_needed): Match hook interface.
12186 (rs6000_debug_secondary_memory_needed): Likewise.
12187 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Delete.
12188 * config/s390/s390.c (s390_secondary_memory_needed): New function.
12189 (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
12190 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Delete.
12191 * config/sparc/sparc.c (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
12192 (sparc_secondary_memory_needed): New function.
12193 * lra-constraints.c (check_and_process_move): Refer to
12194 TARGET_SECONDARY_MEMORY_NEEDED rather than SECONDARY_MEMORY_NEEDED
12195 in comment.
12196 (curr_insn_transform): Likewise.
12197 (process_alt_operands): Use targetm.secondary_memory_needed
12198 instead of TARGET_SECONDARY_MEMORY_NEEDED.
12199 (check_secondary_memory_needed_p): Likewise.
12200 (choose_split_class): Likewise.
12201 * reload.c: Unconditionally include code that was previously
12202 conditional on SECONDARY_MEMORY_NEEDED.
12203 (push_secondary_reload): Use targetm.secondary_memory_needed
12204 instead of TARGET_SECONDARY_MEMORY_NEEDED.
12205 (push_reload): Likewise.
12206 * reload1.c: Unconditionally include code that was previously
12207 conditional on SECONDARY_MEMORY_NEEDED.
12208 (choose_reload_regs): Use targetm.secondary_memory_needed
12209 instead of TARGET_SECONDARY_MEMORY_NEEDED.
12210 (gen_reload): Likewise.
12211 * system.h (SECONDARY_MEMORY_NEEDED): Poison.
12212
12213 2017-09-13 Richard Sandiford <richard.sandiford@linaro.org>
12214 Alan Hayward <alan.hayward@arm.com>
12215 David Sherwood <david.sherwood@arm.com>
12216
12217 * target.def (secondary_memory_needed_mode): New hook:
12218 * targhooks.c (default_secondary_memory_needed_mode): Declare.
12219 * targhooks.h (default_secondary_memory_needed_mode): New function.
12220 * doc/tm.texi.in (SECONDARY_MEMORY_NEEDED_MODE): Replace with...
12221 (TARGET_SECONDARY_MEMORY_NEEDED_MODE): ...this.
12222 * doc/tm.texi: Regenerate.
12223 * lra-constraints.c (check_and_process_move): Use
12224 targetm.secondary_memory_needed_mode instead of
12225 TARGET_SECONDARY_MEMORY_NEEDED_MODE.
12226 (curr_insn_transform): Likewise.
12227 * reload.c (get_secondary_mem): Likewise.
12228 * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED_MODE): Delete.
12229 * config/alpha/alpha.c (alpha_secondary_memory_needed_mode): New
12230 function.
12231 (TARGET_SECONDARY_MEMORY_NEEDED_MODE): Redefine.
12232 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): Delete.
12233 * config/i386/i386.c (ix86_secondary_memory_needed_mode): New function.
12234 (TARGET_SECONDARY_MEMORY_NEEDED_MODE): Redefine.
12235 * config/powerpcspe/powerpcspe.h (SECONDARY_MEMORY_NEEDED_MODE):
12236 Delete.
12237 * config/powerpcspe/powerpcspe-protos.h
12238 (rs6000_secondary_memory_needed_mode): Delete.
12239 * config/powerpcspe/powerpcspe.c
12240 (TARGET_SECONDARY_MEMORY_NEEDED_MODE): Redefine.
12241 (rs6000_secondary_memory_needed_mode): Make static.
12242 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): Delete.
12243 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_mode):
12244 Delete.
12245 * config/rs6000/rs6000.c (TARGET_SECONDARY_MEMORY_NEEDED_MODE):
12246 Redefine.
12247 (rs6000_secondary_memory_needed_mode): Make static.
12248 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED_MODE): Delete.
12249 * config/s390/s390.c (s390_secondary_memory_needed_mode): New function.
12250 (TARGET_SECONDARY_MEMORY_NEEDED_MODE): Redefine.
12251 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_MODE): Delete.
12252 * config/sparc/sparc.c (TARGET_SECONDARY_MEMORY_NEEDED_MODE):
12253 Redefine.
12254 (sparc_secondary_memory_needed_mode): New function.
12255 * system.h (TARGET_SECONDARY_MEMORY_NEEDED_MODE): Poison.
12256
12257 2017-09-13 Jackson Woodruff <jackson.woodruff@arm.com>
12258
12259 * config/aarch64/constraints.md (Umq): New constraint.
12260 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
12261 Change to use Umq.
12262 (mov<mode>): Update condition.
12263
12264 2017-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12265
12266 * gimple-ssa-store-merging.c (sort_by_bitpos): Compare store order
12267 when bitposition is the same.
12268
12269 2017-09-13 Richard Biener <rguenther@suse.de>
12270
12271 * dwarf2out.c (output_die_symbol): Remove.
12272 (output_die): Do not output a DIEs symbol.
12273
12274 2017-09-13 Richard Biener <rguenther@suse.de>
12275
12276 PR middle-end/82128
12277 * gimple-fold.c (gimple_fold_call): Update SSA name in-place to
12278 default-def to avoid breaking iterator update with the weird
12279 interaction with cgraph_update_edges_for_call_stmt_node.
12280
12281 2017-09-13 Richard Biener <rguenther@suse.de>
12282
12283 * tree-cfg.c (verify_gimple_assign_binary): Add verification
12284 for WIDEN_SUM_EXPR, VEC_WIDEN_MULT_{HI,LO,EVEN,ODD}_EXPR,
12285 VEC_PACK_{TRUNC,SAT,FIX_TRUNC}_EXPR.
12286 (verify_gimple_assign_ternary): Add verification for DOT_PROD_EXPR.
12287
12288 2017-09-13 Kugan Vivekanandarajah <kuganv@linaro.org>
12289
12290 * config/aarch64/aarch64.c (aarch64_override_options_after_change_1):
12291 Disable pc relative literal load irrespective of
12292 TARGET_FIX_ERR_A53_84341 for default.
12293
12294 2017-09-12 Eric Botcazou <ebotcazou@adacore.com>
12295
12296 * config/sparc/sparc.c (output_return): Output the source location of
12297 the insn in the delay slot, if any.
12298 (output_sibcall): Likewise.
12299
12300 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
12301
12302 PR driver/81498
12303 * common.opt (-static-pie): New alias.
12304 (shared): Negate static-pie.
12305 (-no-pie): Update help text.
12306 (-pie): Likewise.
12307 (static-pie): New option.
12308 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add
12309 -static-pie support.
12310 (GNU_USER_TARGET_ENDFILE_SPEC): Likewise.
12311 (LINK_EH_SPEC): Likewise.
12312 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12313 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Likewise.
12314 * config/i386/gnu-user64.h (GNU_USER_TARGET_LINK_SPEC): Likewise.
12315 * gcc.c (LINK_COMMAND_SPEC): Likewise.
12316 (init_gcc_specs): Likewise.
12317 (init_spec): Likewise.
12318 (display_help): Update help message for -pie.
12319 * doc/invoke.texi: Update -pie, -no-pie and -static. Document
12320 -static-pie.
12321
12322 2017-09-12 Wilco Dijkstra <wdijkstr@arm.com>
12323
12324 * config/aarch64/aarch64.md (movsi_aarch64): Remove all '*'.
12325 (movdi_aarch64): Likewise.
12326 (movti_aarch64): Likewise.
12327
12328 2017-09-12 Simon Wright <simon@pushface.org>
12329
12330 PR target/80204
12331 * config/darwin-driver.c (darwin_find_version_from_kernel): Eliminate
12332 calculation of the minor version, always output as 0.
12333
12334 2017-09-12 Jakub Jelinek <jakub@redhat.com>
12335
12336 PR target/82112
12337 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): For
12338 ALTIVEC_BUILTIN_VEC_LD if arg1 has array type call default_conversion
12339 on it early, rather than manual conversion late. For
12340 ALTIVEC_BUILTIN_VEC_ST if arg2 has array type call default_conversion
12341 instead of performing manual conversion.
12342
12343 2017-09-12 Carl Love <cel@us.ibm.com>
12344
12345 * config/rs6000/altivec.md (vec_widen_umult_even_v4si,
12346 vec_widen_smult_even_v4si): Add define expands for vmuleuw, vmulesw,
12347 vmulouw, vmulosw.
12348 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
12349 VMULOSW): Add definitions.
12350 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12351 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
12352 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
12353 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
12354 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
12355
12356 2017-09-12 James Greenhalgh <james.greenhalgh@arm.com>
12357
12358 * config/aarch64/aarch64.md (movdi_aarch64): Set load/store
12359 types correctly.
12360 (movti_aarch64): Likewise.
12361 (movdf_aarch64): Likewise.
12362 (movtf_aarch64): Likewise.
12363 (load_pairdi): Likewise.
12364 (store_pairdi): Likewise.
12365 (load_pairdf): Likewise.
12366 (store_pairdf): Likewise.
12367 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
12368 (storewb_pair<GPI:mode>_<P:mode>): Likewise.
12369 (ldr_got_small_<mode>): Likewise.
12370 (ldr_got_small_28k_<mode>): Likewise.
12371 (ldr_got_tiny): Likewise.
12372 * config/aarch64/iterators.md (ldst_sz): New.
12373 (ldpstp_sz): Likewise.
12374 * config/aarch64/thunderx.md (thunderx_storepair): Split store_8
12375 to store_16.
12376 (thunderx_load): Split load_8 to load_16.
12377 * config/aarch64/thunderx2t99.md (thunderx2t99_loadpair): Split
12378 load_8 to load_16.
12379 (thunderx2t99_storepair_basic): Split store_8 to store_16.
12380 * config/arm/xgene1.md (xgene1_load_pair): Split load_8 to load_16.
12381 (xgene1_store_pair): Split store_8 to store_16.
12382 * config/aarch64/falkor.md (falkor_ld_3_ld): Split load_8 to load_16.
12383 (falkor_st_0_st_sd): Split store_8 to store_16.
12384
12385 2017-09-12 James Greenhalgh <james.greenhalgh@arm.com>
12386
12387 * config/arm/types.md (type): Rename load1/2/3/4 to load_4/8/12/16
12388 and store1/2/3/4 to store_4/8/12/16.
12389 * config/aarch64/aarch64.md: Update for rename.
12390 * config/arm/arm.md: Likewise.: Likewise.
12391 * config/arm/arm.c: Likewise.
12392 * config/arm/thumb1.md: Likewise.
12393 * config/arm/thumb2.md: Likewise.
12394 * config/arm/vfp.md: Likewise.
12395 * config/arm/arm-generic.md: Likewise.
12396 * config/arm/arm1020e.md: Likewise.
12397 * config/arm/arm1026ejs.md: Likewise.
12398 * config/arm/arm1136jfs.md: Likewise.
12399 * config/arm/arm926ejs.md: Likewise.
12400 * config/arm/cortex-a15.md: Likewise.
12401 * config/arm/cortex-a17.md: Likewise.
12402 * config/arm/cortex-a5.md: Likewise.
12403 * config/arm/cortex-a53.md: Likewise.
12404 * config/arm/cortex-a57.md: Likewise.
12405 * config/arm/cortex-a7.md: Likewise.
12406 * config/arm/cortex-a8.md: Likewise.
12407 * config/arm/cortex-a9.md: Likewise.
12408 * config/arm/cortex-m4.md: Likewise.
12409 * config/arm/cortex-m7.md: Likewise.
12410 * config/arm/cortex-r4.md: Likewise.
12411 * config/arm/exynos-m1.md: Likewise.
12412 * config/arm/fa526.md: Likewise.
12413 * config/arm/fa606te.md: Likewise.
12414 * config/arm/fa626te.md: Likewise.
12415 * config/arm/fa726te.md: Likewise.
12416 * config/arm/fmp626.md: Likewise.
12417 * config/arm/iwmmxt.md: Likewise.
12418 * config/arm/ldmstm.md: Likewise.
12419 * config/arm/marvell-pj4.md: Likewise.
12420 * config/arm/xgene1.md: Likewise.
12421 * config/aarch64/thunderx.md: Likewise.
12422 * config/aarch64/thunderx2t99.md: Likewise.
12423 * config/aarch64/falkor.md: Likewise.
12424
12425 2017-09-12 Martin Liska <mliska@suse.cz>
12426
12427 * attribs.c (private_lookup_attribute): New function.
12428 * attribs.h (private_lookup_attribute): Declared here.
12429 (lookup_attribute): Called from this place.
12430
12431 2017-09-12 Richard Biener <rguenther@suse.de>
12432
12433 PR tree-optimization/82157
12434 * tree-ssa-pre.c (remove_dead_inserted_code): Do not remove
12435 stmts with side-effects.
12436
12437 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
12438 Alan Hayward <alan.hayward@arm.com>
12439 David Sherwood <david.sherwood@arm.com>
12440
12441 * target.def (hard_regno_nregs): New hook.
12442 (class_max_nregs): Refer to it instead of HARD_REGNO_NREGS.
12443 * targhooks.h (default_hard_regno_nregs): Declare.
12444 * targhooks.c (default_hard_regno_nregs): New function.
12445 * doc/tm.texi.in (HARD_REGNO_NREGS): Replace with...
12446 (TARGET_HARD_REGNO_NREGS): ...this hook.
12447 (HARD_REGNO_NREGS_HAS_PADDING): Update accordingly.
12448 (CLASS_MAX_NREGS): Likewise.
12449 * doc/tm.texi: Regenerate.
12450 * reginfo.c (init_reg_modes_target): Use targetm.hard_regno_nregs
12451 instead of HARD_REGNO_NREGS.
12452 * rtl.h (REG_NREGS): Refer to TARGET_HARD_REGNO_NREGS rather than
12453 HARD_REGNO_NREGS in the comment.
12454 * config/aarch64/aarch64.h (HARD_REGNO_NREGS): Delete.
12455 * config/aarch64/aarch64-protos.h (aarch64_hard_regno_nregs): Delete.
12456 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs): Make static.
12457 Return an unsigned int.
12458 (TARGET_HARD_REGNO_NREGS): Redefine.
12459 * config/alpha/alpha.h (HARD_REGNO_NREGS): Delete.
12460 * config/arc/arc.h (HARD_REGNO_NREGS): Delete.
12461 * config/arc/arc.c (TARGET_HARD_REGNO_NREGS): Redefine.
12462 (arc_hard_regno_nregs): New function.
12463 * config/arm/arm.h (HARD_REGNO_NREGS): Delete.
12464 * config/arm/arm.c (TARGET_HARD_REGNO_NREGS): Redefine.
12465 (arm_hard_regno_nregs): New function.
12466 * config/avr/avr.h (HARD_REGNO_NREGS): Delete.
12467 * config/bfin/bfin.h (HARD_REGNO_NREGS): Delete.
12468 * config/bfin/bfin.c (bfin_hard_regno_nregs): New function.
12469 (TARGET_HARD_REGNO_NREGS): Redefine.
12470 * config/c6x/c6x.h (HARD_REGNO_NREGS): Delete.
12471 * config/cr16/cr16.h (LONG_REG_P): Use targetm.hard_regno_nregs.
12472 (HARD_REGNO_NREGS): Delete.
12473 * config/cr16/cr16.c (TARGET_HARD_REGNO_NREGS): Redefine.
12474 (cr16_hard_regno_nregs): New function.
12475 (cr16_memory_move_cost): Use it instead of HARD_REGNO_NREGS.
12476 * config/cris/cris.h (HARD_REGNO_NREGS): Delete.
12477 * config/cris/cris.c (TARGET_HARD_REGNO_NREGS): Redefine.
12478 (cris_hard_regno_nregs): New function.
12479 * config/epiphany/epiphany.h (HARD_REGNO_NREGS): Delete.
12480 * config/fr30/fr30.h (HARD_REGNO_NREGS): Delete.
12481 (CLASS_MAX_NREGS): Use targetm.hard_regno_nregs.
12482 * config/frv/frv.h (HARD_REGNO_NREGS): Delete.
12483 (CLASS_MAX_NREGS): Remove outdated copy of documentation.
12484 * config/frv/frv-protos.h (frv_hard_regno_nregs): Delete.
12485 * config/frv/frv.c (TARGET_HARD_REGNO_NREGS): Redefine.
12486 (frv_hard_regno_nregs): Make static. Take and return an
12487 unsigned int.
12488 (frv_class_max_nregs): Remove outdated copy of documentation.
12489 * config/ft32/ft32.h (HARD_REGNO_NREGS): Delete.
12490 * config/h8300/h8300.h (HARD_REGNO_NREGS): Delete.
12491 * config/h8300/h8300-protos.h (h8300_hard_regno_nregs): Delete.
12492 * config/h8300/h8300.c (h8300_hard_regno_nregs): Delete.
12493 * config/i386/i386.h (HARD_REGNO_NREGS): Delete.
12494 * config/i386/i386.c (ix86_hard_regno_nregs): New function.
12495 (TARGET_HARD_REGNO_NREGS): Redefine.
12496 * config/ia64/ia64.h (HARD_REGNO_NREGS): Delete.
12497 (CLASS_MAX_NREGS): Update comment.
12498 * config/ia64/ia64.c (TARGET_HARD_REGNO_NREGS): Redefine.
12499 (ia64_hard_regno_nregs): New function.
12500 * config/iq2000/iq2000.h (HARD_REGNO_NREGS): Delete.
12501 * config/lm32/lm32.h (HARD_REGNO_NREGS): Delete.
12502 * config/m32c/m32c.h (HARD_REGNO_NREGS): Delete.
12503 * config/m32c/m32c-protos.h (m32c_hard_regno_nregs): Delete.
12504 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Take and return
12505 an unsigned int.
12506 (m32c_hard_regno_nregs): Likewise. Make static.
12507 (TARGET_HARD_REGNO_NREGS): Redefine.
12508 * config/m32r/m32r.h (HARD_REGNO_NREGS): Delete.
12509 * config/m68k/m68k.h (HARD_REGNO_NREGS): Delete.
12510 * config/m68k/m68k.c (TARGET_HARD_REGNO_NREGS): Redefine.
12511 (m68k_hard_regno_nregs): New function.
12512 * config/mcore/mcore.h (HARD_REGNO_NREGS): Delete.
12513 * config/microblaze/microblaze.h (HARD_REGNO_NREGS): Delete.
12514 * config/mips/mips.h (HARD_REGNO_NREGS): Delete.
12515 * config/mips/mips-protos.h (mips_hard_regno_nregs): Delete.
12516 * config/mips/mips.c (mips_hard_regno_nregs): Make static.
12517 Take and return an unsigned int.
12518 (TARGET_HARD_REGNO_NREGS): Redefine.
12519 * config/mmix/mmix.h (HARD_REGNO_NREGS): Delete.
12520 (CLASS_MAX_NREGS): Use targetm.hard_regno_nregs.
12521 * config/mn10300/mn10300.h (HARD_REGNO_NREGS): Delete.
12522 * config/moxie/moxie.h (HARD_REGNO_NREGS): Delete.
12523 * config/msp430/msp430.h (HARD_REGNO_NREGS): Delete.
12524 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs): Delete.
12525 * config/msp430/msp430.c (TARGET_HARD_REGNO_NREGS): Redefine.
12526 (msp430_hard_regno_nregs): Make static. Take and return an
12527 unsigned int.
12528 * config/nds32/nds32.h (HARD_REGNO_NREGS): Delete.
12529 * config/nds32/nds32-protos.h (nds32_hard_regno_nregs): Delete.
12530 * config/nds32/nds32.c (nds32_hard_regno_nregs): Delete.
12531 (nds32_hard_regno_mode_ok): Use targetm.hard_regno_nregs.
12532 * config/nios2/nios2.h (HARD_REGNO_NREGS): Delete.
12533 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Delete.
12534 * config/nvptx/nvptx.c (nvptx_hard_regno_nregs): New function.
12535 (TARGET_HARD_REGNO_NREGS): Redefine.
12536 * config/pa/pa32-regs.h (HARD_REGNO_NREGS): Rename to...
12537 (PA_HARD_REGNO_NREGS): ...this.
12538 * config/pa/pa64-regs.h (HARD_REGNO_NREGS): Rename to...
12539 (PA_HARD_REGNO_NREGS): ...this.
12540 * config/pa/pa.c (TARGET_HARD_REGNO_NREGS): Redefine.
12541 (pa_hard_regno_nregs): New function.
12542 * config/pdp11/pdp11.h (HARD_REGNO_NREGS): Delete.
12543 * config/pdp11/pdp11.c (TARGET_HARD_REGNO_NREGS): Redefine.
12544 (pdp11_hard_regno_nregs): New function.
12545 * config/powerpcspe/powerpcspe.h (HARD_REGNO_NREGS): Delete.
12546 * config/powerpcspe/powerpcspe.c (TARGET_HARD_REGNO_NREGS): Redefine.
12547 (rs6000_hard_regno_nregs_hook): New function.
12548 * config/riscv/riscv.h (HARD_REGNO_NREGS): Delete.
12549 * config/riscv/riscv-protos.h (riscv_hard_regno_nregs): Delete.
12550 * config/riscv/riscv.c (riscv_hard_regno_nregs): Make static.
12551 Take and return an unsigned int. Move earlier in file.
12552 (TARGET_HARD_REGNO_NREGS): Redefine.
12553 * config/rl78/rl78.h (HARD_REGNO_NREGS): Delete.
12554 * config/rl78/rl78-protos.h (rl78_hard_regno_nregs): Delete.
12555 * config/rl78/rl78.c (TARGET_HARD_REGNO_NREGS): Reefine.
12556 (rl78_hard_regno_nregs): Make static. Take and return an
12557 unsigned int.
12558 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Delete.
12559 * config/rs6000/rs6000.c (TARGET_HARD_REGNO_NREGS): Redefine.
12560 (rs6000_hard_regno_nregs_hook): New function.
12561 * config/rx/rx.h (HARD_REGNO_NREGS): Delete.
12562 * config/rx/rx.c (rx_hard_regno_nregs): New function.
12563 (TARGET_HARD_REGNO_NREGS): Redefine.
12564 * config/s390/s390.h (HARD_REGNO_NREGS): Delete.
12565 * config/s390/s390.c (REGNO_PAIR_OK): Use s390_hard_regno_nregs
12566 instead of HARD_REGNO_NREGS.
12567 (s390_hard_regno_nregs): New function.
12568 (s390_hard_regno_mode_ok): Add comment from s390.h.
12569 (TARGET_HARD_REGNO_NREGS): Redefine.
12570 * config/sh/sh.h (HARD_REGNO_NREGS): Delete.
12571 * config/sh/sh.c (TARGET_HARD_REGNO_NREGS): Redefine.
12572 (sh_hard_regno_nregs): New function.
12573 (sh_pass_in_reg_p): Use it.
12574 * config/sparc/sparc.h (HARD_REGNO_NREGS): Delete.
12575 * config/sparc/sparc.c (TARGET_HARD_REGNO_NREGS): Redefine.
12576 (sparc_hard_regno_nregs): New function.
12577 * config/spu/spu.h (HARD_REGNO_NREGS): Delete.
12578 * config/spu/spu.c (spu_hard_regno_nregs): New function.
12579 (spu_function_arg_advance): Use it, supplying a valid register number.
12580 (TARGET_HARD_REGNO_NREGS): Redefine.
12581 * config/stormy16/stormy16.h (HARD_REGNO_NREGS): Delete.
12582 * config/tilegx/tilegx.h (HARD_REGNO_NREGS): Delete.
12583 * config/tilepro/tilepro.h (HARD_REGNO_NREGS): Delete.
12584 * config/v850/v850.h (HARD_REGNO_NREGS): Delete.
12585 * config/vax/vax.h (HARD_REGNO_NREGS): Delete.
12586 * config/visium/visium.h (HARD_REGNO_NREGS): Delete.
12587 (CLASS_MAX_NREGS): Remove copy of old documentation.
12588 * config/visium/visium.c (TARGET_HARD_REGNO_NREGS): Redefine.
12589 (visium_hard_regno_nregs): New function.
12590 (visium_hard_regno_mode_ok): Use it instead of HARD_REGNO_NREGS.
12591 * config/xtensa/xtensa.h (HARD_REGNO_NREGS): Delete.
12592 * config/xtensa/xtensa.c (TARGET_HARD_REGNO_NREGS): Redefine.
12593 xtensa_hard_regno_nregs): New function.
12594 * system.h (HARD_REGNO_NREGS): Poison.
12595
12596 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
12597
12598 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Use
12599 hard_regno_nregs instead of HARD_REGNO_NREGS.
12600 (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
12601 * config/c6x/c6x.c (c6x_expand_prologue): Likewise.
12602 (c6x_expand_epilogue): Likewise.
12603 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
12604 (frv_read_iacc_argument): Likewise.
12605 * config/sh/sh.c: Include regs.h.
12606 (sh_print_operand): Use hard_regno_nregs instead of HARD_REGNO_NREGS.
12607 (regs_used): Likewise.
12608 (output_stack_adjust): Likewise.
12609 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Likewise.
12610 * expmed.c: Include regs.h.
12611 (store_bit_field_1): Use hard_regno_nregs instead of HARD_REGNO_NREGS.
12612 * ree.c: Include regs.h.
12613 (combine_reaching_defs): Use hard_regno_nregs instead of
12614 HARD_REGNO_NREGS.
12615 (add_removable_extension): Likewise.
12616
12617 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
12618
12619 * regs.h (hard_regno_nregs): Turn into a function.
12620 (end_hard_regno): Update accordingly.
12621 * caller-save.c (setup_save_areas): Likewise.
12622 (save_call_clobbered_regs): Likewise.
12623 (replace_reg_with_saved_mem): Likewise.
12624 (insert_restore): Likewise.
12625 (insert_save): Likewise.
12626 * combine.c (can_change_dest_mode): Likewise.
12627 (move_deaths): Likewise.
12628 (distribute_notes): Likewise.
12629 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
12630 * config/powerpcspe/powerpcspe.c (rs6000_cannot_change_mode_class)
12631 (rs6000_split_multireg_move): Likewise.
12632 (rs6000_register_move_cost): Likewise.
12633 (rs6000_memory_move_cost): Likewise.
12634 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Likewise.
12635 (rs6000_split_multireg_move): Likewise.
12636 (rs6000_register_move_cost): Likewise.
12637 (rs6000_memory_move_cost): Likewise.
12638 * cselib.c (cselib_reset_table): Likewise.
12639 (cselib_lookup_1): Likewise.
12640 * emit-rtl.c (set_mode_and_regno): Likewise.
12641 * function.c (aggregate_value_p): Likewise.
12642 * ira-color.c (setup_profitable_hard_regs): Likewise.
12643 (check_hard_reg_p): Likewise.
12644 (calculate_saved_nregs): Likewise.
12645 (assign_hard_reg): Likewise.
12646 (improve_allocation): Likewise.
12647 (calculate_spill_cost): Likewise.
12648 * ira-emit.c (modify_move_list): Likewise.
12649 * ira-int.h (ira_hard_reg_set_intersection_p): Likewise.
12650 (ira_hard_reg_in_set_p): Likewise.
12651 * ira.c (setup_reg_mode_hard_regset): Likewise.
12652 (clarify_prohibited_class_mode_regs): Likewise.
12653 (check_allocation): Likewise.
12654 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12655 (lra_setup_reg_renumber): Likewise.
12656 (setup_try_hard_regno_pseudos): Likewise.
12657 (spill_for): Likewise.
12658 (assign_hard_regno): Likewise.
12659 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
12660 * lra-constraints.c (in_class_p): Likewise.
12661 (lra_constraint_offset): Likewise.
12662 (simplify_operand_subreg): Likewise.
12663 (lra_constraints): Likewise.
12664 (split_reg): Likewise.
12665 (split_if_necessary): Likewise.
12666 (invariant_p): Likewise.
12667 (inherit_in_ebb): Likewise.
12668 * lra-lives.c (process_bb_lives): Likewise.
12669 * lra-remat.c (reg_overlap_for_remat_p): Likewise.
12670 (get_hard_regs): Likewise.
12671 (do_remat): Likewise.
12672 * lra-spills.c (assign_spill_hard_regs): Likewise.
12673 * mode-switching.c (create_pre_exit): Likewise.
12674 * postreload.c (reload_combine_recognize_pattern): Likewise.
12675 * recog.c (peep2_find_free_register): Likewise.
12676 * regcprop.c (kill_value_regno): Likewise.
12677 (set_value_regno): Likewise.
12678 (copy_value): Likewise.
12679 (maybe_mode_change): Likewise.
12680 (find_oldest_value_reg): Likewise.
12681 (copyprop_hardreg_forward_1): Likewise.
12682 * regrename.c (check_new_reg_p): Likewise.
12683 (regrename_do_replace): Likewise.
12684 * reload.c (push_reload): Likewise.
12685 (combine_reloads): Likewise.
12686 (find_dummy_reload): Likewise.
12687 (operands_match_p): Likewise.
12688 (find_reloads): Likewise.
12689 (find_equiv_reg): Likewise.
12690 (reload_adjust_reg_for_mode): Likewise.
12691 * reload1.c (count_pseudo): Likewise.
12692 (count_spilled_pseudo): Likewise.
12693 (find_reg): Likewise.
12694 (clear_reload_reg_in_use): Likewise.
12695 (free_for_value_p): Likewise.
12696 (allocate_reload_reg): Likewise.
12697 (choose_reload_regs): Likewise.
12698 (reload_adjust_reg_for_temp): Likewise.
12699 (emit_reload_insns): Likewise.
12700 (delete_output_reload): Likewise.
12701 * rtlanal.c (subreg_get_info): Likewise.
12702 * sched-deps.c (sched_analyze_reg): Likewise.
12703 * sel-sched.c (init_regs_for_mode): Likewise.
12704 (mark_unavailable_hard_regs): Likewise.
12705 (choose_best_reg_1): Likewise.
12706 (verify_target_availability): Likewise.
12707 * valtrack.c (dead_debug_insert_temp): Likewise.
12708 * var-tracking.c (track_loc_p): Likewise.
12709 (emit_note_insn_var_location): Likewise.
12710 * varasm.c (make_decl_rtl): Likewise.
12711 * reginfo.c (choose_hard_reg_mode): Likewise.
12712 (init_reg_modes_target): Refer directly to
12713 this_target_regs->x_hard_regno_nregs.
12714
12715 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
12716
12717 * ira-costs.c (record_operand_costs): Use in_hard_reg_set_p
12718 instead of hard_regno_nregs.
12719
12720 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
12721
12722 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Use
12723 end_hard_regno instead of hard_regno_nregs.
12724 * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
12725 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): Likewise.
12726 * config/visium/visium.c (visium_hard_regno_mode_ok): Likewise.
12727 * ira-color.c (improve_allocation): Likewise.
12728 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12729 * lra-lives.c (mark_regno_live): Likewise.
12730 (mark_regno_dead): Likewise.
12731 * lra-remat.c (operand_to_remat): Likewise.
12732 * lra.c (collect_non_operand_hard_regs): Likewise.
12733 * postreload.c (reload_combine_note_store): Likewise.
12734 (move2add_valid_value_p): Likewise.
12735 * reload.c (regno_clobbered_p): Likewise.
12736
12737 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
12738
12739 * config/frv/frv.c (FOR_EACH_REGNO): Use END_REGNO instead of
12740 hard_regno_nregs.
12741 * config/v850/v850.c (v850_reorg): Likewise.
12742 * reload.c (refers_to_regno_for_reload_p): Likewise.
12743 (find_equiv_reg): Likewise.
12744 * reload1.c (reload_reg_reaches_end_p): Likewise.
12745
12746 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
12747
12748 * caller-save.c (add_used_regs): Use REG_NREGS instead of
12749 hard_regno_nregs.
12750 * config/aarch64/aarch64.c (aarch64_split_combinev16qi): Likewise.
12751 * config/arm/arm.c (output_move_neon): Likewise.
12752 (arm_attr_length_move_neon): Likewise.
12753 (neon_split_vcombine): Likewise.
12754 * config/c6x/c6x.c (c6x_mark_reg_read): Likewise.
12755 (c6x_mark_reg_written): Likewise.
12756 (c6x_dwarf_register_span): Likewise.
12757 * config/i386/i386.c (ix86_save_reg): Likewise.
12758 * config/ia64/ia64.c (mark_reg_gr_used_mask): Likewise.
12759 (rws_access_reg): Likewise.
12760 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12761 * mode-switching.c (create_pre_exit): Likewise.
12762 * ree.c (combine_reaching_defs): Likewise.
12763 (add_removable_extension): Likewise.
12764 * regcprop.c (find_oldest_value_reg): Likewise.
12765 (copyprop_hardreg_forward_1): Likewise.
12766 * reload.c (reload_inner_reg_of_subreg): Likewise.
12767 (push_reload): Likewise.
12768 (combine_reloads): Likewise.
12769 (find_dummy_reload): Likewise.
12770 (reload_adjust_reg_for_mode): Likewise.
12771 * reload1.c (find_reload_regs): Likewise.
12772 (forget_old_reloads_1): Likewise.
12773 (reload_reg_free_for_value_p): Likewise.
12774 (reload_adjust_reg_for_temp): Likewise.
12775 (emit_reload_insns): Likewise.
12776 (delete_output_reload): Likewise.
12777 * sel-sched.c (choose_best_reg_1): Likewise.
12778 (choose_best_pseudo_reg): Likewise.
12779
12780 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
12781 Alan Hayward <alan.hayward@arm.com>
12782 David Sherwood <david.sherwood@arm.com>
12783
12784 * defaults.h (SLOW_UNALIGNED_ACCESS): Delete.
12785 * target.def (slow_unaligned_access): New hook.
12786 * targhooks.h (default_slow_unaligned_access): Declare.
12787 * targhooks.c (default_slow_unaligned_access): New function.
12788 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Replace with...
12789 (TARGET_SLOW_UNALIGNED_ACCESS): ...this.
12790 * doc/tm.texi: Regenerate.
12791 * config/alpha/alpha.h (SLOW_UNALIGNED_ACCESS): Delete.
12792 * config/arm/arm.h (SLOW_UNALIGNED_ACCESS): Delete.
12793 * config/i386/i386.h (SLOW_UNALIGNED_ACCESS): Delete commented-out
12794 definition.
12795 * config/powerpcspe/powerpcspe.h (SLOW_UNALIGNED_ACCESS): Delete.
12796 * config/powerpcspe/powerpcspe.c (TARGET_SLOW_UNALIGNED_ACCESS):
12797 Redefine.
12798 (rs6000_slow_unaligned_access): New function.
12799 (rs6000_emit_move): Use it instead of SLOW_UNALIGNED_ACCESS.
12800 (expand_block_compare): Likewise.
12801 (expand_strn_compare): Likewise.
12802 (rs6000_rtx_costs): Likewise.
12803 * config/riscv/riscv.h (SLOW_UNALIGNED_ACCESS): Delete.
12804 (riscv_slow_unaligned_access): Likewise.
12805 * config/riscv/riscv.c (riscv_slow_unaligned_access): Rename to...
12806 (riscv_slow_unaligned_access_p): ...this and make static.
12807 (riscv_option_override): Update accordingly.
12808 (riscv_slow_unaligned_access): New function.
12809 (TARGET_SLOW_UNALIGNED_ACCESS): Redefine.
12810 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Delete.
12811 * config/rs6000/rs6000.c (TARGET_SLOW_UNALIGNED_ACCESS): Redefine.
12812 (rs6000_slow_unaligned_access): New function.
12813 (rs6000_emit_move): Use it instead of SLOW_UNALIGNED_ACCESS.
12814 (rs6000_rtx_costs): Likewise.
12815 * config/rs6000/rs6000-string.c (expand_block_compare)
12816 (expand_strn_compare): Use targetm.slow_unaligned_access instead
12817 of SLOW_UNALIGNED_ACCESS.
12818 * config/tilegx/tilegx.h (SLOW_UNALIGNED_ACCESS): Delete.
12819 * config/tilepro/tilepro.h (SLOW_UNALIGNED_ACCESS): Delete.
12820 * calls.c (expand_call): Use targetm.slow_unaligned_access instead
12821 of SLOW_UNALIGNED_ACCESS.
12822 * expmed.c (simple_mem_bitfield_p): Likewise.
12823 * expr.c (alignment_for_piecewise_move): Likewise.
12824 (emit_group_load_1): Likewise.
12825 (emit_group_store): Likewise.
12826 (copy_blkmode_from_reg): Likewise.
12827 (emit_push_insn): Likewise.
12828 (expand_assignment): Likewise.
12829 (store_field): Likewise.
12830 (expand_expr_real_1): Likewise.
12831 * gimple-fold.c (gimple_fold_builtin_memory_op): Likewise.
12832 * lra-constraints.c (simplify_operand_subreg): Likewise.
12833 * stor-layout.c (bit_field_mode_iterator::next_mode): Likewise.
12834 * gimple-ssa-store-merging.c: Likewise in block comment at start
12835 of file.
12836 * tree-ssa-strlen.c: Include target.h.
12837 (handle_builtin_memcmp): Use targetm.slow_unaligned_access instead
12838 of SLOW_UNALIGNED_ACCESS.
12839 * system.h (SLOW_UNALIGNED_ACCESS): Poison.
12840
12841 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
12842
12843 PR rtl-optimization/82185
12844 * expmed.c (emit_store_flag_int): Only test tem if it has been
12845 initialized.
12846
12847 2017-09-12 Richard Biener <rguenther@suse.de>
12848
12849 PR middle-end/82149
12850 * match.pd ((FTYPE) N CMP CST): Fix typo.
12851
12852 2017-09-12 Simon Atanasyan <simon.atanasyan@imgtec.com>
12853
12854 * config/mips/mips.c (mips_attribute_table): Add 'short_call'
12855 attribute.
12856 (mips_near_type_p): Add 'short_call' attribute as a synonym
12857 for 'near'.
12858 * doc/extend.texi (short_call): Document new function attribute.
12859
12860 2017-09-12 Jakub Jelinek <jakub@redhat.com>
12861
12862 PR target/82112
12863 * c-common.c (sync_resolve_size): Instead of c_dialect_cxx ()
12864 assertion check that in the condition.
12865 (get_atomic_generic_size): Likewise. Before testing if parameter
12866 has pointer type, if it has array type, call for C++
12867 default_conversion to perform array-to-pointer conversion.
12868
12869 2017-09-12 Richard Biener <rguenther@suse.de>
12870
12871 * tree-vect-generic.c (expand_vector_operations_1): Do nothing
12872 for operations we cannot scalarize.
12873
12874 2017-09-12 Aldy Hernandez <aldyh@redhat.com>
12875
12876 * tree-ssa-threadbackward.c (fsm_find_thread_path): Make GC
12877 vectors heap vectors. Clean up comments.
12878 Make visited_bbs a reference.
12879 (profitable_jump_thread_path): Make GC
12880 vectors heap vectors. Clean up comments.
12881 Misc cleanups.
12882 (convert_and_register_jump_thread_path): Make GC vectors heap
12883 vectors.
12884 (check_subpath_and_update_thread_path): Same. Clean up comments.
12885 Make visited_bbs a reference.
12886 (handle_phi): Abstract common code to to
12887 register_jump_thread_path_if_profitable.
12888 Rename VAR_BB to DEF_BB.
12889 Update comments.
12890 Make GC vectors heap vectors.
12891 Make visited_bbs a reference.
12892 (handle_assignment): Same.
12893 (register_jump_thread_path_if_profitable): New.
12894 (fsm_find_control_statement_thread_paths): Rename VAR_BB to
12895 DEF_BB.
12896 Make GC vectors heap vectors. Clean up comments.
12897 Make visited_bbs a reference.
12898 (find_jump_threads_backwards): Make visited_bbs live in the stack.
12899 * tree-ssa-threadupdate.c (delete_jump_thread_path): Fix typo in
12900 comment.
12901
12902 2017-09-11 Max Filippov <jcmvbkbc@gmail.com>
12903
12904 PR target/82181
12905 * config/xtensa/xtensa.c (xtensa_mem_offset): Check that both
12906 words of E_DImode object are reachable by xtensa_uimm8x4 access.
12907
12908 2017-09-11 Vidya Praveen <vidyapraveen@arm.com>
12909
12910 Revert r251800 and r251799.
12911
12912 2017-09-11 Martin Jambor <mjambor@suse.cz>
12913
12914 PR hsa/82119
12915 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Process ADDR_EXPRs in
12916 arguments in advance.
12917 * hsa-regalloc.c (naive_process_phi): New parameter predecessors,
12918 use it to find predecessor edges.
12919 (naive_outof_ssa): Collect vector of predecessors.
12920
12921 2017-09-08 Jason Merrill <jason@redhat.com>
12922
12923 PR c++/70029 - ICE with ref-qualifier and -flto
12924 * langhooks.h (struct lang_hooks_for_types): Add
12925 copy_lang_qualifiers.
12926 * attribs.c (build_type_attribute_qual_variant): Use it.
12927 * langhooks-def.h (LANG_HOOKS_COPY_LANG_QUALIFIERS): Default to
12928 NULL.
12929 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
12930 * tree.c (verify_type): Re-enable TYPE_CANONICAL main variant check.
12931
12932 2017-09-08 Eric Botcazou <ebotcazou@adacore.com>
12933
12934 PR target/81988
12935 * config/sparc/sparc.md (mulsi3): Rename into *mulsi3_sp32.
12936 (*mulsi3_sp64): New instruction.
12937 (mulsi3): New expander.
12938
12939 2017-09-08 Uros Bizjak <ubizjak@gmail.com>
12940
12941 * config/alpha/alpha.c (alpha_print_operand) <case 'S'>: Remove.
12942
12943 2017-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12944
12945 * sancov.c: Include memmodel.h.
12946
12947 2017-09-07 Eric Botcazou <ebotcazou@adacore.com>
12948
12949 PR target/80897
12950 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Deal with too
12951 large offsets.
12952
12953 2017-09-07 Carl Love <cel@us.ibm.com>
12954
12955 * config/rs6000/vsx.md (define_insn "*stxvl"): Add missing argument to
12956 the sldi instruction.
12957
12958 2017-09-07 David Edelsohn <dje.gcc@gmail.com>
12959
12960 * sancov.c: Include tm_p.h.
12961
12962 2017-09-07 Jakub Jelinek <jakub@redhat.com>
12963
12964 PR target/81979
12965 * output.h (switch_to_other_text_partition): New declaration.
12966 * varasm.c (switch_to_other_text_partition): New function.
12967 * config/rs6000/rs6000.c (uses_TOC): Return 2 if
12968 NOTE_INSN_SWITCH_TEXT_SECTIONS is seen before finding load_toc_* insn.
12969 (rs6000_elf_declare_function_name): If uses_TOC returned 2, switch
12970 to the other text partition before emitting LCL label and switch back
12971 after emitting the word after it.
12972
12973 2017-09-07 Richard Biener <rguenther@suse.de>
12974
12975 * passes.def (pass_split_crit_edges): Remove instance before PRE.
12976 * tree-ssa-pre.c (pass_pre::execute): Instead manually split
12977 critical edges here, after loop init.
12978 (pass_data_pre): Remove PROP_no_crit_edges flags.
12979 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use vn_valueize
12980 for valueization of call args to avoid leaking VN_TOP.
12981 (visit_use): Assert we do not visit default defs.
12982 (init_scc_vn): Use build_decl for VN_TOP to make name nicer.
12983 Use error_mark_node to more easily detect leaking VN_TOP.
12984 All default-defs are varying, not VN_TOP. Mark them visited.
12985 (run_scc_vn): Make code match comment.
12986
12987 2017-09-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12988
12989 * config/rs6000/rs6000-cpus.def (OTHER_VSX_VECTOR_MASKS): Delete
12990 OPTION_MASK_FLOAT128_KEYWORD.
12991 (POWERPC_MASKS): Likewise.
12992 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Delete
12993 support for the -mfloat128-type option, and make -mfloat128
12994 default on PowerPC Linux systems. Define or undefine
12995 __FLOAT128__ and __FLOAT128_HARDWARE__ for the current options.
12996 Define __float128 to be __ieee128 if IEEE 128-bit support is
12997 enabled, or undefine it.
12998 (rs6000_cpu_cpp_builtins): Delete defining __FLOAT128__ here.
12999 Delete defining __FLOAT128_TYPE__.
13000 * config/rs6000/rs6000.opt (x_TARGET_FLOAT128_TYPE): Delete the
13001 -mfloat128-type option and make -mfloat128 default on PowerPC
13002 Linux systems.
13003 (TARGET_FLOAT128_TYPE): Likewise.
13004 (-mfloat128-type): Likewise.
13005 * config/rs6000/rs6000.c (rs6000_option_override_internal):
13006 Delete the -mfloat128-type option and make -mfloat128 default on
13007 PowerPC Linux systems. Always use __ieee128 to be the keyword for
13008 the IEEE 128-bit type, and map __float128 to __ieee128 if IEEE
13009 128-bit floating point is enabled. Change tests from using
13010 -mfloat128-type to -mfloat128.
13011 (rs6000_mangle_type): Use the correct mangling for the __float128
13012 type even if normal long double is restricted to 64-bits.
13013 (floatn_mode): Enable the _Float128 type by default on VSX Linux
13014 systems.
13015 * config/rs6000/rs6000.h (MASK_FLOAT128_TYPE): Delete.
13016 (MASK_FLOAT128_KEYWORD): Define new shortcut macro.
13017 (RS6000BTM_FLOAT128): Define in terms of -mfloat128, not
13018 -mfloat128-type.
13019 * doc/invoke.texi (RS/6000 and PowerPC Options): Update
13020 documentation for -mfloat128.
13021
13022 2017-09-06 Olivier Hainque <hainque@adacore.com>
13023
13024 * config.gcc (powerpc-wrs-vxworksspe): Now match as vxworks*spe.
13025
13026 2017-09-06 Wish Wu <wishwu007@gmail.com>
13027 Jakub Jelinek <jakub@redhat.com>
13028
13029 * asan.c (initialize_sanitizer_builtins): Add
13030 BT_FN_VOID_UINT8_UINT8, BT_FN_VOID_UINT16_UINT16,
13031 BT_FN_VOID_UINT32_UINT32, BT_FN_VOID_UINT64_UINT64,
13032 BT_FN_VOID_FLOAT_FLOAT, BT_FN_VOID_DOUBLE_DOUBLE and
13033 BT_FN_VOID_UINT64_PTR variables.
13034 * builtin-types.def (BT_FN_VOID_UINT8_UINT8): New fn type.
13035 (BT_FN_VOID_UINT16_UINT16): Likewise.
13036 (BT_FN_VOID_UINT32_UINT32): Likewise.
13037 (BT_FN_VOID_FLOAT_FLOAT): Likewise.
13038 (BT_FN_VOID_DOUBLE_DOUBLE): Likewise.
13039 (BT_FN_VOID_UINT64_PTR): Likewise.
13040 * common.opt (flag_sanitize_coverage): New variable.
13041 (fsanitize-coverage=trace-pc): Remove.
13042 (fsanitize-coverage=): Add.
13043 * flag-types.h (enum sanitize_coverage_code): New enum.
13044 * fold-const.c (fold_range_test): Disable non-short-circuit
13045 optimization if flag_sanitize_coverage.
13046 (fold_truth_andor): Likewise.
13047 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13048 * opts.c (COVERAGE_SANITIZER_OPT): Define.
13049 (coverage_sanitizer_opts): New array.
13050 (get_closest_sanitizer_option): Add OPTS argument, handle also
13051 OPT_fsanitize_coverage_.
13052 (parse_sanitizer_options): Adjusted to also handle
13053 OPT_fsanitize_coverage_.
13054 (common_handle_option): Add OPT_fsanitize_coverage_.
13055 * sancov.c (instrument_comparison, instrument_switch): New function.
13056 (sancov_pass): Add trace-cmp support.
13057 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_CMP1,
13058 BUILT_IN_SANITIZER_COV_TRACE_CMP2, BUILT_IN_SANITIZER_COV_TRACE_CMP4,
13059 BUILT_IN_SANITIZER_COV_TRACE_CMP8,
13060 BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP1,
13061 BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP2,
13062 BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP4,
13063 BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP8,
13064 BUILT_IN_SANITIZER_COV_TRACE_CMPF, BUILT_IN_SANITIZER_COV_TRACE_CMPD,
13065 BUILT_IN_SANITIZER_COV_TRACE_SWITCH): New builtins.
13066 * doc/invoke.texi: Document -fsanitize-coverage=trace-cmp.
13067
13068 2017-09-06 Richard Earnshaw <rearnsha@arm.com>
13069
13070 * config/arm/parsecpu.awk (fatal): Note that we've encountered an
13071 error. Only quit immediately if parsing is complete.
13072 (BEGIN): Initialize fatal_err and parse_done.
13073 (begin fpu, end fpu): Check number of arguments.
13074 (begin arch, end arch): Likewise.
13075 (begin cpu, end cpu): Likewise.
13076 (cname, tune for, tune flags, architecture, fpu, option): Likewise.
13077 (optalias): Likewise.
13078
13079 2017-09-06 Richard Earnshaw <rearnsha@arm.com>
13080
13081 * config.gcc (arm*-*-*): Don't add arm-isa.h to tm_p_file.
13082 * config/arm/arm-isa.h: Delete. Move definitions to ...
13083 * arm-cpus.in: ... here. Use new feature and fgroup values.
13084 * config/arm/arm.c (arm_option_override): Use lower case for feature
13085 bit names.
13086 * config/arm/arm.h (TARGET_HARD_FLOAT): Likewise.
13087 (TARGET_VFP3, TARGET_VFP5, TARGET_FMA): Likewise.
13088 * config/arm/parsecpu.awk (END): Add new command 'isa'.
13089 (isa_pfx): Delete.
13090 (print_isa_bits_for): New function.
13091 (gen_isa): New function.
13092 (gen_comm_data): Use print_isa_bits_for.
13093 (define feature): New keyword.
13094 (define fgroup): New keyword.
13095 * config/arm/t-arm (OPTIONS_H_EXTRA): Add arm-isa.h
13096 (arm-isa.h): Add rule to generate file.
13097 * common/config/arm/arm-common.c: (arm_canon_arch_option): Use lower
13098 case for feature bit names.
13099
13100 2017-09-06 Richard Biener <rguenther@suse.de>
13101
13102 * tree-ssa-pre.c (NECESSARY): Remove.
13103 (create_expression_by_pieces): Do not touch pass-local flags.
13104 (insert_into_preds_of_block): Likewise.
13105 (do_pre_regular_insertion): Likewise.
13106 (eliminate_insert): Likewise.
13107 (eliminate_dom_walker::before_dom_children): Likewise.
13108 (fini_eliminate): Do not look at inserted_exprs.
13109 (mark_operand_necessary): Remove.
13110 (remove_dead_inserted_code): Replace with simple work-list
13111 algorithm based on inserted_exprs and SSA uses.
13112 (pass_pre::execute): Re-order fini_eliminate and
13113 remove_dead_inserted_code.
13114
13115 2017-09-06 Olivier Hainque <hainque@adacore.com>
13116
13117 * config/powerpcspe/vxworks.h (VXCPU_FOR_8548): Correct definition
13118 for VxWorks 7. Adjust surrounding comments.
13119
13120 2017-09-06 Richard Biener <rguenther@suse.de>
13121
13122 * gimple-ssa-strength-reduction.c
13123 (find_candidates_dom_walker::before_dom_children): Also allow
13124 pointer types.
13125
13126 2017-09-06 Richard Biener <rguenther@suse.de>
13127
13128 PR tree-optimization/82108
13129 * tree-vect-stmts.c (vectorizable_load): Fix pointer adjustment
13130 for gap in the non-permutation SLP case.
13131
13132 2017-09-06 Martin Jambor <mjambor@suse.cz>
13133
13134 PR tree-optimization/82078
13135 * tree-sra.c (sort_and_splice_var_accesses): Move call to
13136 add_access_to_work_queue...
13137 (build_accesses_from_assign): ...here.
13138 (propagate_all_subaccesses): Make sure racc is the group
13139 representative, if there is one.
13140
13141 2017-09-06 Jakub Jelinek <jakub@redhat.com>
13142
13143 PR middle-end/82095
13144 * varasm.c (categorize_decl_for_section): Use SECCAT_TBSS for TLS vars with
13145 NULL DECL_INITIAL.
13146
13147 2017-09-06 Richard Biener <rguenther@suse.de>
13148
13149 * gimple-ssa-strength-reduction.c
13150 (find_candidates_dom_walker::before_doom_children): Use a
13151 type and not a mode check.
13152
13153 2017-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
13154
13155 PR target/77308
13156 * config/arm/predicates.md (arm_general_adddi_operand): Create new
13157 non-vfp predicate.
13158 * config/arm/arm.md (*arm_adddi3, *arm_subdi3): Use new predicates.
13159
13160 2017-09-05 Jeff Law <law@redhat.com>
13161
13162 PR tree-optimization/64910
13163 * tree-ssa-reassoc.c (reassociate_bb): Restrict last change to
13164 cases where we have 3 or more operands.
13165
13166 2017-09-05 Jakub Jelinek <jakub@redhat.com>
13167
13168 PR middle-end/81768
13169 * omp-low.c (lower_omp_for): Recompute tree invariant if
13170 gimple_omp_for_initial/final is ADDR_EXPR.
13171
13172 PR middle-end/81768
13173 * omp-expand.c (expand_omp_simd): Force second operands of COND_EXPR
13174 into gimple val before gimplification fo the COND_EXPR.
13175
13176 2017-09-05 Aldy Hernandez <aldyh@redhat.com>
13177
13178 * tree-ssa-threadupdate.c (duplicate_thread_path): Remove unused
13179 REGION_COPY argument.
13180 (thread_through_all_blocks): Remove unused argument to
13181 duplicate_thread_path.
13182
13183 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
13184 Alan Hayward <alan.hayward@arm.com>
13185 David Sherwood <david.sherwood@arm.com>
13186
13187 * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
13188 Take a scalar_mode rather than a machine_mode.
13189 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
13190 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Likewise.
13191 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
13192 (aarch64_gen_adjusted_ldpstp): Likewise.
13193 (aarch64_expand_vector_init): Use scalar_mode instead of machine_mode.
13194
13195 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
13196 Alan Hayward <alan.hayward@arm.com>
13197 David Sherwood <david.sherwood@arm.com>
13198
13199 * config/aarch64/aarch64-protos.h (aarch64_is_extend_from_extract):
13200 Take a scalar_int_mode instead of a machine_mode.
13201 (aarch64_mask_and_shift_for_ubfiz_p): Likewise.
13202 (aarch64_output_scalar_simd_mov_immediate): Likewise.
13203 (aarch64_simd_scalar_immediate_valid_for_move): Likewise.
13204 (aarch64_simd_attr_length_rglist): Delete.
13205 * config/aarch64/aarch64.c (aarch64_is_extend_from_extract): Take
13206 a scalar_int_mode instead of a machine_mode.
13207 (aarch64_add_offset): Likewise.
13208 (aarch64_internal_mov_immediate): Likewise
13209 (aarch64_add_constant_internal): Likewise.
13210 (aarch64_add_constant): Likewise.
13211 (aarch64_movw_imm): Likewise.
13212 (aarch64_rtx_arith_op_extract_p): Likewise.
13213 (aarch64_mask_and_shift_for_ubfiz_p): Likewise.
13214 (aarch64_simd_scalar_immediate_valid_for_move): Likewise.
13215 Remove assert that the mode isn't a vector.
13216 (aarch64_output_scalar_simd_mov_immediate): Likewise.
13217 (aarch64_expand_mov_immediate): Update calls after above changes.
13218 (aarch64_output_casesi): Use as_a <scalar_int_mode>.
13219 (aarch64_and_bitmask_imm): Check for scalar integer modes.
13220 (aarch64_move_imm): Likewise.
13221 (aarch64_can_const_movi_rtx_p): Likewise.
13222 (aarch64_strip_extend): Likewise.
13223 (aarch64_extr_rtx_p): Likewise.
13224 (aarch64_rtx_costs): Likewise, using wode_mode as the mode of
13225 a CONST_INT when the mode parameter is VOIDmode.
13226 (aarch64_float_const_rtx_p): Use scalar_int_mode for a temporary.
13227
13228 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
13229
13230 * machmode.h (bitwise_mode_for_mode): Return opt_mode.
13231 * stor-layout.c (bitwise_mode_for_mode): Likewise.
13232 (bitwise_type_for_mode): Update accordingly.
13233
13234 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
13235
13236 * stor-layout.h (mode_for_size_tree): Return an opt_mode.
13237 * stor-layout.c (mode_for_size_tree): Likewise.
13238 (mode_for_array): Update accordingly.
13239 (layout_decl): Likewise.
13240 (compute_record_mode): Likewise. Only set the mode once.
13241
13242 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
13243
13244 * target.def (get_mask_mode): Change return type to opt_mode.
13245 Expand commentary.
13246 * doc/tm.texi: Regenerate.
13247 * targhooks.h (default_get_mask_mode): Return an opt_mode.
13248 * targhooks.c (default_get_mask_mode): Likewise.
13249 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
13250 * optabs-query.c (can_vec_mask_load_store_p): Update use of
13251 targetm.get_mask_mode.
13252 * tree.c (build_truth_vector_type): Likewise.
13253
13254 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
13255
13256 * machmode.h (mode_for_vector): Return an opt_mode.
13257 * stor-layout.c (mode_for_vector): Likewise.
13258 (mode_for_int_vector): Update accordingly.
13259 (layout_type): Likewise.
13260 * config/i386/i386.c (emit_memmov): Likewise.
13261 (ix86_expand_set_or_movmem): Likewise.
13262 (ix86_expand_vector_init): Likewise.
13263 (ix86_get_mask_mode): Likewise.
13264 * config/powerpcspe/powerpcspe.c (rs6000_expand_vec_perm_const_1):
13265 Likewise.
13266 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Likewise.
13267 * expmed.c (extract_bit_field_1): Likewise.
13268 * expr.c (expand_expr_real_2): Likewise.
13269 * optabs-query.c (can_vec_perm_p): Likewise.
13270 (can_vec_mask_load_store_p): Likewise.
13271 * optabs.c (expand_vec_perm): Likewise.
13272 * targhooks.c (default_get_mask_mode): Likewise.
13273 * tree-vect-stmts.c (vectorizable_store): Likewise.
13274 (vectorizable_load): Likewise.
13275 (get_vectype_for_scalar_type_and_size): Likewise.
13276
13277 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
13278
13279 * machmode.h (mode_for_int_vector): New function.
13280 * stor-layout.c (mode_for_int_vector): Likewise.
13281 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use it.
13282 * config/powerpcspe/powerpcspe.c (rs6000_do_expand_vec_perm): Likewise.
13283 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
13284 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
13285 (s390_expand_vcond): Likewise.
13286
13287 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
13288
13289 * machmode.h (opt_machine_mode): New type.
13290 (opt_mode<T>): Allow construction from anything that can be
13291 converted to a T.
13292 (is_a, as_a, dyn_cast): Add overloads for opt_mode.
13293 (mode_for_size): Return an opt_machine_mode.
13294 * stor-layout.c (mode_for_size): Likewise.
13295 (mode_for_size_tree): Update call accordingly.
13296 (bitwise_mode_for_mode): Likewise.
13297 (make_fract_type): Likewise.
13298 (make_accum_type): Likewise.
13299 * caller-save.c (replace_reg_with_saved_mem): Update call
13300 accordingly.
13301 * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED_MODE): Likewise.
13302 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): Likewise.
13303 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED_MODE): Likewise.
13304 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_MODE): Likewise.
13305 * expmed.c (extract_bit_field_1): Likewise.
13306 * reload.c (get_secondary_mem): Likewise.
13307 * varasm.c (assemble_integer): Likewise.
13308 * lower-subreg.c (simplify_subreg_concatn): Likewise. Move
13309 early-out.
13310
13311 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
13312
13313 * machmode.h (decimal_float_mode_for_size): New function.
13314 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use float_mode_for_size.
13315 (REAL_VALUE_TO_TARGET_DOUBLE): Likewise.
13316 (REAL_VALUE_TO_TARGET_SINGLE): Likewise.
13317 (REAL_VALUE_TO_TARGET_DECIMAL128): Use decimal_float_mode_for_size.
13318 (REAL_VALUE_TO_TARGET_DECIMAL64): Likewise.
13319 (REAL_VALUE_TO_TARGET_DECIMAL32): Likewise.
13320
13321 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
13322
13323 * builtins.c (expand_builtin_powi): Use int_mode_for_size.
13324 (get_builtin_sync_mode): Likewise.
13325 (expand_ifn_atomic_compare_exchange): Likewise.
13326 (expand_builtin_atomic_clear): Likewise.
13327 (expand_builtin_atomic_test_and_set): Likewise.
13328 (fold_builtin_atomic_always_lock_free): Likewise.
13329 * calls.c (compute_argument_addresses): Likewise.
13330 (emit_library_call_value_1): Likewise.
13331 (store_one_arg): Likewise.
13332 * combine.c (combine_instructions): Likewise.
13333 * config/aarch64/aarch64.c (aarch64_function_value): Likewise.
13334 * config/arm/arm.c (arm_function_value): Likewise.
13335 (aapcs_allocate_return_reg): Likewise.
13336 * config/c6x/c6x.c (c6x_expand_movmem): Likewise.
13337 * config/i386/i386.c (construct_container): Likewise.
13338 (ix86_gimplify_va_arg): Likewise.
13339 (ix86_expand_sse_cmp): Likewise.
13340 (emit_memmov): Likewise.
13341 (emit_memset): Likewise.
13342 (expand_small_movmem_or_setmem): Likewise.
13343 (ix86_expand_pextr): Likewise.
13344 (ix86_expand_pinsr): Likewise.
13345 * config/lm32/lm32.c (lm32_block_move_inline): Likewise.
13346 * config/microblaze/microblaze.c (microblaze_block_move_straight):
13347 Likewise.
13348 * config/mips/mips.c (mips_function_value_1) Likewise.
13349 (mips_block_move_straight): Likewise.
13350 (mips_expand_ins_as_unaligned_store): Likewise.
13351 * config/powerpcspe/powerpcspe.c
13352 (rs6000_darwin64_record_arg_advance_flush): Likewise.
13353 (rs6000_darwin64_record_arg_flush): Likewise.
13354 * config/rs6000/rs6000.c
13355 (rs6000_darwin64_record_arg_advance_flush): Likewise.
13356 (rs6000_darwin64_record_arg_flush): Likewise.
13357 * config/sparc/sparc.c (sparc_function_arg_1): Likewise.
13358 (sparc_function_value_1): Likewise.
13359 * config/spu/spu.c (adjust_operand): Likewise.
13360 (spu_emit_branch_or_set): Likewise.
13361 (arith_immediate_p): Likewise.
13362 * emit-rtl.c (gen_lowpart_common): Likewise.
13363 * expr.c (expand_expr_real_1): Likewise.
13364 * function.c (assign_parm_setup_block): Likewise.
13365 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Likewise.
13366 * reload1.c (alter_reg): Likewise.
13367 * stor-layout.c (mode_for_vector): Likewise.
13368 (layout_type): Likewise.
13369
13370 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
13371
13372 * config/spu/spu.c (exp2_immediate_p): Use int_mode_for_mode.
13373 (spu_convert_move): Likewise.
13374 * lower-subreg.c (resolve_simple_move): Likewise.
13375
13376 2017-09-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13377
13378 PR target/81833
13379 * config/rs6000/altivec.md (altivec_vsum2sws): Convert from a
13380 define_insn to a define_expand.
13381 (altivec_vsum2sws_direct): New define_insn.
13382 (altivec_vsumsws): Convert from a define_insn to a define_expand.
13383
13384 2017-09-05 Wilco Dijkstra <wdijkstr@arm.com>
13385
13386 * config/arm/arm.c (arm_option_params_internal): Improve setting of
13387 max_insns_skipped.
13388
13389 2017-09-05 H.J. Lu <hongjiu.lu@intel.com>
13390
13391 PR target/59501
13392 PR target/81624
13393 PR target/81769
13394 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Don't
13395 realign stack if stack alignment needed is less than incoming
13396 stack boundary.
13397
13398 2017-09-05 Marek Polacek <polacek@redhat.com>
13399
13400 PR sanitizer/82072
13401 * convert.c (convert_to_integer_1) <case NEGATE_EXPR>: Move the ubsan
13402 check earlier.
13403
13404 2017-09-05 Wilco Dijkstra <wdijkstr@arm.com>
13405
13406 * explow.c (get_dynamic_stack_size): Improve dynamic alignment.
13407
13408 2017-09-05 Richard Biener <rguenther@suse.de>
13409
13410 PR tree-optimization/82084
13411 * fold-const.c (can_native_encode_string_p): Handle wide characters.
13412
13413 2017-09-05 Richard Biener <rguenther@suse.de>
13414
13415 PR tree-optimization/82102
13416 * tree-ssa-pre.c (fini_eliminate): Check if lhs is NULL.
13417
13418 2017-09-05 Martin Liska <mliska@suse.cz>
13419
13420 PR tree-optimization/82032
13421 * tree-cfg.c (generate_range_test): New function.
13422 * tree-cfg.h (generate_range_test): Declared here.
13423 * tree-cfgcleanup.c (convert_single_case_switch): New function.
13424 (cleanup_control_expr_graph): Use it.
13425 * tree-switch-conversion.c (try_switch_expansion): Remove
13426 assert.
13427 (emit_case_nodes): Use generate_range_test.
13428
13429 2017-09-04 Uros Bizjak <ubizjak@gmail.com>
13430
13431 PR target/82098
13432 * config/i386/i386.md (*<btsc><mode>_mask): Add
13433 TARGET_USE_BT to insn constraint.
13434 (*btr<mode>_mask): Ditto.
13435
13436 2017-09-04 Wilco Dijkstra <wdijkstr@arm.com>
13437
13438 * config/arm/arm.c (arm_legitimate_index_p): Add comment.
13439 (thumb2_legitimate_index_p): Use correct range for DI/DF mode.
13440
13441 2017-09-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
13442
13443 PR target/77308
13444 * config/arm/arm.md (*arm_adddi3, *arm_subdi3): Split early except for
13445 TARGET_NEON and TARGET_IWMMXT.
13446 (anddi3, iordi3, xordi3, one_cmpldi2): Split while expanding except for
13447 TARGET_NEON and TARGET_IWMMXT.
13448 (*one_cmpldi2_insn): Moved the body of one_cmpldi2 here.
13449
13450 2017-09-04 Uros Bizjak <ubizjak@gmail.com>
13451
13452 * config/i386/i386-protos.h (ix86_tls_address_pattern_p) New prototype.
13453 (ix86_rewrite_tls_address): Ditto.
13454 * config/i386/i386.c (ix86_tls_address_pattern_p) New function.
13455 (ix86_rewrite_tls_address_1): Ditto.
13456 (ix86_rewrite_tls_address): Ditto.
13457 * config/i386/predicates.md (tls_address_pattern): New predicate.
13458 * config/i386/i386.md (TLS address splitter): New splitter.
13459
13460 2017-09-04 Richard Biener <rguenther@suse.de>
13461
13462 PR tree-optimization/82084
13463 * fold-const.h (can_native_encode_string_p): Declare.
13464 * fold-const.c (can_native_encode_string_p): Factor out from ...
13465 (native_encode_string): ... here.
13466 * tree-vect-stmts.c (vectorizable_store): Call it to avoid
13467 vectorizing stores from constants we later cannot handle.
13468
13469 2017-09-04 Marek Polacek <polacek@redhat.com>
13470
13471 PR c/81783
13472 * doc/invoke.texi: Update -Wtautological-compare documentation.
13473
13474 2017-09-04 Jeff Law <law@redhat.com>
13475
13476 PR tree-optimization/64910
13477 * tree-ssa-reassoc.c (reassociate_bb): For bitwise binary ops,
13478 swap the first and last operand if the last is a constant.
13479
13480 2017-09-04 Marek Polacek <polacek@redhat.com>
13481
13482 PR sanitizer/82072
13483 * convert.c (do_narrow): When sanitizing signed integer overflows,
13484 bail out for signed types.
13485 (convert_to_integer_1) <case NEGATE_EXPR>: Likewise.
13486
13487 2017-09-04 Richard Biener <rguenther@suse.de>
13488
13489 PR tree-optimization/82060
13490 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13491 Move devirtualization after stmt folding and before EH/AB/noreturn
13492 cleanup to get the stmt refs canonicalized. Use a bool instead
13493 of gimple_modified_p since that doesn't work for NOPs. Schedule
13494 NOPs generated by folding for removal.
13495
13496 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
13497 Alan Hayward <alan.hayward@arm.com>
13498 David Sherwood <david.sherwood@arm.com>
13499
13500 * coretypes.h (pad_direction): New enum.
13501 * defaults.h (DEFAULT_FUNCTION_ARG_PADDING): Delete.
13502 (FUNCTION_ARG_PADDING): Likewise.
13503 * target.def (function_arg_padding): New hook.
13504 * targhooks.h (default_function_arg_padding): Declare.
13505 * targhooks.c (default_function_arg_padding): New function.
13506 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Replace with...
13507 (TARGET_FUNCTION_ARG_PADDING): ...this.
13508 * doc/tm.texi: Regenerate.
13509 * calls.c (store_unaligned_arguments_into_pseudos): Use pad_direction
13510 instead of direction.
13511 (compute_argument_addresses): Likewise.
13512 (load_register_parameters): Likewise.
13513 (emit_library_call_value_1): Likewise.
13514 (store_one_arg): Use targetm.calls.function_arg_padding instead
13515 of FUNCTION_ARG_PADDING.
13516 (must_pass_in_stack_var_size_or_pad): Likewise.
13517 * expr.c (emit_group_load_1): Use pad_direction instead of direction.
13518 (emit_group_store): Likewise.
13519 (emit_single_push_insn_1): Use targetm.calls.function_arg_padding
13520 instead of FUNCTION_ARG_PADDING.
13521 (emit_push_insn): Likewise, and propagate enum change throughout
13522 function.
13523 * function.h (direction): Delete.
13524 (locate_and_pad_arg_data::where_pad): Use pad_direction instead
13525 of direction.
13526 * function.c (assign_parm_find_stack_rtl): Likewise.
13527 (assign_parm_setup_block_p): Likewise.
13528 (assign_parm_setup_block): Likewise.
13529 (gimplify_parameters): Likewise.
13530 (locate_and_pad_parm): Use targetm.calls.function_arg_padding
13531 instead of FUNCTION_ARG_PADDING, and propagate enum change throughout
13532 function.
13533 * config/aarch64/aarch64.h (FUNCTION_ARG_PADDING): Delete.
13534 (BLOCK_REG_PADDING): Use pad_direction instead of direction.
13535 * config/aarch64/aarch64-protos.h (aarch64_pad_arg_upward): Delete.
13536 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): Replace with...
13537 (aarch64_function_arg_padding): ...this new function.
13538 (aarch64_gimplify_va_arg_expr): Use pad_direction instead of direction.
13539 (TARGET_FUNCTION_ARG_PADDING): Redefine.
13540 * config/arm/arm.h (FUNCTION_ARG_PADDING): Delete.
13541 (BLOCK_REG_PADDING): Use pad_direction instead of direction.
13542 * config/arm/arm-protos.h (arm_pad_arg_upward): Delete.
13543 * config/arm/arm.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
13544 (arm_pad_arg_upward): Replace with...
13545 (arm_function_arg_padding): ...this new function.
13546 * config/c6x/c6x.h (BLOCK_REG_PADDING): Use pad_direction instead
13547 of direction.
13548 * config/ia64/hpux.h (FUNCTION_ARG_PADDING): Delete.
13549 * config/ia64/ia64-protos.h (ia64_hpux_function_arg_padding): Delete.
13550 * config/ia64/ia64.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
13551 (ia64_hpux_function_arg_padding): Replace with...
13552 (ia64_function_arg_padding): ...this new function. Use pad_direction
13553 instead of direction. Check for TARGET_HPUX.
13554 * config/iq2000/iq2000.h (FUNCTION_ARG_PADDING): Delete.
13555 * config/iq2000/iq2000.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
13556 (iq2000_function_arg_padding): New function.
13557 * config/mips/mips-protos.h (mips_pad_arg_upward): Delete.
13558 * config/mips/mips.c (mips_pad_arg_upward): Replace with...
13559 (mips_function_arg_padding): ...this new function.
13560 (mips_pad_reg_upward): Update accordingly.
13561 (TARGET_FUNCTION_ARG_PADDING): Redefine.
13562 * config/mips/mips.h (PAD_VARARGS_DOWN): Use
13563 targetm.calls.function_arg_padding.
13564 (FUNCTION_ARG_PADDING): Delete.
13565 (BLOCK_REG_PADDING): Use pad_direction instead of direction.
13566 * config/nios2/nios2.h (FUNCTION_ARG_PADDING): Delete.
13567 (PAD_VARARGS_DOWN): Use targetm.calls.function_arg_padding.
13568 * config/nios2/nios2-protos.h (nios2_function_arg_padding): Delete.
13569 (nios2_block_reg_padding): Return pad_direction instead of direction.
13570 * config/nios2/nios2.c (nios2_block_reg_padding): Return pad_direction
13571 instead of direction.
13572 (nios2_function_arg_padding): Likewise. Make static.
13573 (TARGET_FUNCTION_ARG_PADDING): Redefine.
13574 * config/pa/pa.h (FUNCTION_ARG_PADDING): Delete.
13575 (BLOCK_REG_PADDING): Use targetm.calls.function_arg_padding.
13576 * config/pa/pa-protos.h (pa_function_arg_padding): Delete.
13577 * config/pa/pa.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
13578 (pa_function_arg_padding): Make static. Return pad_direction instead
13579 of direction.
13580 * config/powerpcspe/powerpcspe.h (FUNCTION_ARG_PADDING): Delete.
13581 (PAD_VARARGS_DOWN): Use targetm.calls.function_arg_padding.
13582 * config/powerpcspe/aix.h (BLOCK_REG_PADDING): Use pad_direction
13583 instead of direction. Use targetm.calls.function_arg_padding.
13584 * config/powerpcspe/darwin.h (BLOCK_REG_PADDING): Likewise.
13585 * config/powerpcspe/freebsd64.h (BLOCK_REG_PADDING): Likewise.
13586 * config/powerpcspe/linux64.h (BLOCK_REG_PADDING): Likewise.
13587 * config/powerpcspe/powerpcspe-protos.h (function_arg_padding): Delete.
13588 * config/powerpcspe/powerpcspe.c (TARGET_FUNCTION_ARG_PADDING):
13589 Redefine.
13590 (function_arg_padding): Rename to...
13591 (rs6000_function_arg_padding): ...this. Make static. Return
13592 pad_direction instead of direction.
13593 (rs6000_return_in_msb): Use rs6000_function_arg_padding.
13594 * config/rs6000/rs6000.h (FUNCTION_ARG_PADDING): Delete.
13595 (PAD_VARARGS_DOWN): Use targetm.calls.function_arg_padding.
13596 * config/rs6000/aix.h (BLOCK_REG_PADDING): Use pad_direction
13597 instead of direction. Use targetm.calls.function_arg_padding.
13598 * config/rs6000/darwin.h (BLOCK_REG_PADDING): Likewise.
13599 * config/rs6000/freebsd64.h (BLOCK_REG_PADDING): Likewise.
13600 * config/rs6000/linux64.h (BLOCK_REG_PADDING): Likewise.
13601 * config/rs6000/rs6000-protos.h (function_arg_padding): Delete.
13602 * config/rs6000/rs6000.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
13603 (function_arg_padding): Rename to...
13604 (rs6000_function_arg_padding): ...this. Make static. Return
13605 pad_direction instead of direction.
13606 (rs6000_return_in_msb): Use rs6000_function_arg_padding.
13607 * config/s390/s390.h (FUNCTION_ARG_PADDING): Delete.
13608 * config/s390/s390.c (s390_function_arg_padding): New function.
13609 (TARGET_FUNCTION_ARG_PADDING): Redefine.
13610 * config/sparc/sparc.h (FUNCTION_ARG_PADDING): Delete.
13611 * config/sparc/sparc-protos.h (function_arg_padding): Delete.
13612 * config/sparc/sparc.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
13613 (function_arg_padding): Rename to...
13614 (sparc_function_arg_padding): ...this. Make static. Return
13615 pad_direction instead of direction.
13616 * config/spu/spu.h (FUNCTION_ARG_PADDING): Delete.
13617 * config/spu/spu.c (spu_function_arg_padding): New function.
13618 (TARGET_FUNCTION_ARG_PADDING): Redefine.
13619 * system.h (FUNCTION_ARG_PADDING): Poison.
13620
13621 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
13622 Alan Hayward <alan.hayward@arm.com>
13623 David Sherwood <david.sherwood@arm.com>
13624
13625 * target.def (modes_tieable_p): New hook.
13626 * doc/tm.texi (MODES_TIEABLE_P): Replace with...
13627 (TARGET_MODES_TIEABLE_P): ...this.
13628 * doc/tm.texi.in: Regenerate.
13629 * hooks.h (hook_bool_mode_mode_true): Declare.
13630 * hooks.c (hook_bool_mode_mode_true): New function.
13631 * combine.c (subst): Use targetm.modes_tieable_p instead of
13632 MODES_TIEABLE_P.
13633 * dse.c (find_shift_sequence): Likewise.
13634 * expmed.c (extract_low_bits): Likewise.
13635 * lower-subreg.c: Include target.h.
13636 (find_decomposable_subregs): Use targetm.modes_tieable_p instead of
13637 MODES_TIEABLE_P.
13638 * rtlanal.c (rtx_cost): Likewise.
13639 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Delete.
13640 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): Delete.
13641 * config/aarch64/aarch64.c (aarch64_modes_tieable_p): Make static.
13642 (TARGET_MODES_TIEABLE_P): Redefine.
13643 * config/alpha/alpha.h (MODES_TIEABLE_P): Delete.
13644 * config/alpha/alpha.c (alpha_modes_tieable_p): New function.
13645 (TARGET_MODES_TIEABLE_P): Redefine.
13646 * config/arc/arc.h (MODES_TIEABLE_P): Delete.
13647 * config/arc/arc.c (TARGET_MODES_TIEABLE_P): Redefine.
13648 (arc_modes_tieable_p): New function.
13649 * config/arm/arm.h (MODES_TIEABLE_P): Delete.
13650 * config/arm/arm-protos.h (arm_modes_tieable_p): Delete.
13651 * config/arm/arm.c (TARGET_MODES_TIEABLE_P): Redefine.
13652 (arm_modes_tieable_p): Make static.
13653 * config/avr/avr.h (MODES_TIEABLE_P): Delete.
13654 * config/bfin/bfin.h (MODES_TIEABLE_P): Delete.
13655 * config/bfin/bfin.c (bfin_modes_tieable_p): New function.
13656 (TARGET_MODES_TIEABLE_P): Redefine.
13657 * config/c6x/c6x.h (MODES_TIEABLE_P): Delete.
13658 * config/c6x/c6x.c (c6x_modes_tieable_p): New function.
13659 (TARGET_MODES_TIEABLE_P): Redefine.
13660 * config/cr16/cr16.h (MODES_TIEABLE_P): Delete.
13661 * config/cr16/cr16.c (TARGET_MODES_TIEABLE_P): Redefine.
13662 (cr16_modes_tieable_p): New function.
13663 * config/cris/cris.h (MODES_TIEABLE_P): Delete.
13664 * config/epiphany/epiphany.h (MODES_TIEABLE_P): Delete.
13665 * config/fr30/fr30.h (MODES_TIEABLE_P): Delete.
13666 (TRULY_NOOP_TRUNCATION): Update comment.
13667 * config/frv/frv.h (MODES_TIEABLE_P): Delete.
13668 (TRULY_NOOP_TRUNCATION): Update comment.
13669 * config/frv/frv.c (TARGET_MODES_TIEABLE_P): Redefine.
13670 (frv_modes_tieable_p): New function.
13671 * config/ft32/ft32.h (MODES_TIEABLE_P): Delete.
13672 * config/h8300/h8300.h (MODES_TIEABLE_P): Delete.
13673 * config/h8300/h8300.c (h8300_modes_tieable_p): New function.
13674 (TARGET_MODES_TIEABLE_P): Redefine.
13675 * config/i386/i386.h (MODES_TIEABLE_P): Delete.
13676 * config/i386/i386-protos.h (ix86_modes_tieable_p): Delete.
13677 * config/i386/i386.c (ix86_modes_tieable_p): Make static.
13678 (TARGET_MODES_TIEABLE_P): Redefine.
13679 * config/ia64/ia64.h (MODES_TIEABLE_P): Delete.
13680 * config/ia64/ia64.c (TARGET_MODES_TIEABLE_P): Redefine.
13681 (ia64_modes_tieable_p): New function.
13682 * config/iq2000/iq2000.h (MODES_TIEABLE_P): Delete.
13683 * config/iq2000/iq2000.c (TARGET_MODES_TIEABLE_P): Redefine.
13684 (iq2000_modes_tieable_p): New function.
13685 * config/lm32/lm32.h (MODES_TIEABLE_P): Delete.
13686 * config/lm32/lm32.c (TARGET_MODES_TIEABLE_P): Redefine.
13687 (lm32_modes_tieable_p): New function.
13688 * config/m32c/m32c.h (MODES_TIEABLE_P): Delete.
13689 * config/m32c/m32c-protos.h (m32c_modes_tieable_p): Delete.
13690 * config/m32c/m32c.c (m32c_modes_tieable_p): Make static.
13691 (TARGET_MODES_TIEABLE_P): Redefine.
13692 * config/m32r/m32r.h (MODES_TIEABLE_P): Delete.
13693 * config/m32r/m32r.c (TARGET_MODES_TIEABLE_P): Redefine.
13694 (m32r_modes_tieable_p): New function.
13695 * config/m68k/m68k.h (MODES_TIEABLE_P): Delete.
13696 * config/m68k/m68k.c (TARGET_MODES_TIEABLE_P): Redefine.
13697 (m68k_modes_tieable_p): New function.
13698 * config/mcore/mcore.h (MODES_TIEABLE_P): Delete.
13699 * config/mcore/mcore.c (TARGET_MODES_TIEABLE_P): Redefine.
13700 (mcore_modes_tieable_p): New function.
13701 * config/microblaze/microblaze.h (MODES_TIEABLE_P): Delete.
13702 * config/microblaze/microblaze.c (microblaze_modes_tieable_p): New
13703 function.
13704 (TARGET_MODES_TIEABLE_P): Redefine.
13705 * config/mips/mips.h (MODES_TIEABLE_P): Delete.
13706 * config/mips/mips-protos.h (mips_modes_tieable_p): Delete.
13707 * config/mips/mips.c (mips_modes_tieable_p): Make static.
13708 (TARGET_MODES_TIEABLE_P): Redefine.
13709 * config/mmix/mmix.h (MODES_TIEABLE_P): Delete.
13710 * config/mn10300/mn10300.h (MODES_TIEABLE_P): Delete.
13711 * config/mn10300/mn10300-protos.h (mn10300_modes_tieable): Delete.
13712 * config/mn10300/mn10300.c (mn10300_modes_tieable): Rename to...
13713 (mn10300_modes_tieable_p): ...this and make static.
13714 (TARGET_MODES_TIEABLE_P): Redefine.
13715 * config/moxie/moxie.h (MODES_TIEABLE_P): Delete.
13716 * config/msp430/msp430.h (MODES_TIEABLE_P): Delete.
13717 * config/msp430/msp430-protos.h (msp430_modes_tieable_p): Delete.
13718 * config/msp430/msp430.c (TARGET_MODES_TIEABLE_P): Redefine.
13719 (msp430_modes_tieable_p): Make static.
13720 * config/nds32/nds32.h (MODES_TIEABLE_P): Delete.
13721 * config/nds32/nds32.c (nds32_modes_tieable_p): New function.
13722 (TARGET_MODES_TIEABLE_P): Redefine.
13723 * config/nios2/nios2.h (MODES_TIEABLE_P): Delete.
13724 * config/nvptx/nvptx.h (MODES_TIEABLE_P): Delete.
13725 * config/nvptx/nvptx.c (nvptx_modes_tieable_p): New function.
13726 (TARGET_MODES_TIEABLE_P): Redefine.
13727 * config/pa/pa.h (MODES_TIEABLE_P): Delete.
13728 * config/pa/pa-protos.h (pa_modes_tieable_p): Delete.
13729 * config/pa/pa.c (pa_modes_tieable_p): Make static.
13730 (TARGET_MODES_TIEABLE_P): Redefine.
13731 * config/pdp11/pdp11.h (MODES_TIEABLE_P): Delete.
13732 * config/pdp11/pdp11.c (TARGET_MODES_TIEABLE_P): Redefine.
13733 (pdp11_modes_tieable_p): New function.
13734 * config/powerpcspe/powerpcspe.h (MODES_TIEABLE_P): Delete.
13735 * config/powerpcspe/powerpcspe.c (TARGET_MODES_TIEABLE_P): Redefine.
13736 (rs6000_modes_tieable_p): New function.
13737 (rs6000_debug_reg_global): Use it instead of MODES_TIEABLE_P.
13738 * config/powerpcspe/powerpcspe.md: Update comment.
13739 * config/riscv/riscv.h (MODES_TIEABLE_P): Delete.
13740 * config/riscv/riscv.c (riscv_modes_tieable_p): New function.
13741 (TARGET_MODES_TIEABLE_P): Redefine.
13742 * config/rl78/rl78.h (MODES_TIEABLE_P): Delete.
13743 * config/rl78/rl78.c (TARGET_MODES_TIEABLE_P): Redefine.
13744 (rl78_modes_tieable_p): New function.
13745 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Delete.
13746 * config/rs6000/rs6000.c (TARGET_MODES_TIEABLE_P): Redefine.
13747 (rs6000_modes_tieable_p): New function.
13748 (rs6000_debug_reg_global): Use it instead of MODES_TIEABLE_P.
13749 * config/rs6000/rs6000.md: Update comment.
13750 * config/rx/rx.h (MODES_TIEABLE_P): Delete.
13751 * config/rx/rx.c (rx_modes_tieable_p): New function.
13752 (TARGET_MODES_TIEABLE_P): Redefine.
13753 * config/s390/s390.h (MODES_TIEABLE_P): Delete.
13754 * config/s390/s390.c (s390_modes_tieable_p): New function.
13755 (TARGET_MODES_TIEABLE_P): Redefine.
13756 * config/sh/sh.h (MODES_TIEABLE_P): Delete.
13757 * config/sh/sh.c (TARGET_MODES_TIEABLE_P): Redefine.
13758 (sh_modes_tieable_p): New function.
13759 * config/sparc/sparc.h (MODES_TIEABLE_P): Delete.
13760 * config/sparc/sparc-protos.h (sparc_modes_tieable_p): Delete.
13761 * config/sparc/sparc.c (TARGET_MODES_TIEABLE_P): Redefine.
13762 (sparc_modes_tieable_p): Make static.
13763 * config/spu/spu.h (MODES_TIEABLE_P): Delete.
13764 * config/spu/spu.c (spu_modes_tieable_p): New function.
13765 (TARGET_MODES_TIEABLE_P): Redefine.
13766 * config/stormy16/stormy16.h (MODES_TIEABLE_P): Delete.
13767 * config/stormy16/stormy16.c (xstormy16_modes_tieable_p): New function.
13768 (TARGET_MODES_TIEABLE_P): Redefine.
13769 * config/tilegx/tilegx.h (MODES_TIEABLE_P): Delete.
13770 * config/tilepro/tilepro.h (MODES_TIEABLE_P): Delete.
13771 * config/v850/v850.h (MODES_TIEABLE_P): Delete.
13772 * config/v850/v850.c (v850_modes_tieable_p): New function.
13773 (TARGET_MODES_TIEABLE_P): Redefine.
13774 * config/vax/vax.h (MODES_TIEABLE_P): Delete.
13775 * config/visium/visium.h (MODES_TIEABLE_P): Delete.
13776 * config/visium/visium.c (TARGET_MODES_TIEABLE_P): Redefine.
13777 (visium_modes_tieable_p): New function.
13778 * config/xtensa/xtensa.h (MODES_TIEABLE_P): Delete.
13779 * config/xtensa/xtensa.c (TARGET_MODES_TIEABLE_P): Redefine.
13780 (xtensa_modes_tieable_p): New function.
13781 * system.h (MODES_TIEABLE_P): Poison.
13782
13783 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
13784 Alan Hayward <alan.hayward@arm.com>
13785 David Sherwood <david.sherwood@arm.com>
13786
13787 * target.def (hard_regno_mode_ok): New hook.
13788 * doc/tm.texi (HARD_REGNO_MODE_OK): Replace with...
13789 (TARGET_HARD_REGNO_MODE_OK): ...this.
13790 * doc/tm.texi.in: Regenerate.
13791 * hooks.h (hook_bool_uint_mode_true): Declare.
13792 * hooks.c (hook_bool_uint_mode_true): New function.
13793 * doc/md.texi: Refer to targetm.hard_regno_mode_ok instead of
13794 HARD_REGNO_MODE_OK.
13795 * genpreds.c (write_insn_preds_c): Add an include of target.h.
13796 * alias.c (init_alias_target): Use targetm.hard_regno_mode_ok
13797 instead of HARD_REGNO_MODE_OK.
13798 * caller-save.c: Include target.h.
13799 (reg_save_code): Use targetm.hard_regno_mode_ok instead of
13800 HARD_REGNO_MODE_OK.
13801 * combine.c (can_combine_p): Likewise.
13802 (combinable_i3pat): Likewise.
13803 (can_change_dest_mode): Likewise.
13804 * expr.c (init_expr_target): Likewise.
13805 (convert_move): Likewise.
13806 (convert_modes): Likewise.
13807 * ira.c (setup_prohibited_class_mode_regs): Likewise.
13808 (setup_prohibited_mode_move_regs): Likewise.
13809 * ira.h (target_ira): Likewise.
13810 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13811 * lra-constraints.c (process_alt_operands): Likewise.
13812 (split_reg): Likewise.
13813 * recog.c (peep2_find_free_register): Likewise.
13814 * ree.c (combine_reaching_defs): Likewise.
13815 * regcprop.c (maybe_mode_change): Likewise.
13816 * reginfo.c (init_reg_sets_1): Likewise.
13817 (choose_hard_reg_mode): Likewise.
13818 (simplifiable_subregs): Likewise.
13819 * regrename.c (check_new_reg_p): Likewise.
13820 * reload.c (find_valid_class): Likewise.
13821 (find_valid_class_1): Likewise.
13822 (reload_inner_reg_of_subreg): Likewise.
13823 (push_reload): Likewise.
13824 (combine_reloads): Likewise.
13825 (find_dummy_reload): Likewise.
13826 (find_reloads): Likewise.
13827 * reload1.c (find_reg): Likewise.
13828 (set_reload_reg): Likewise.
13829 (allocate_reload_reg): Likewise.
13830 (choose_reload_regs): Likewise.
13831 (reload_adjust_reg_for_temp): Likewise.
13832 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
13833 (simplify_subreg_regno): Likewise.
13834 * sel-sched.c (init_regs_for_mode): Likewise.
13835 * varasm.c (make_decl_rtl): Likewise.
13836 * config/aarch64/aarch64.h (HARD_REGNO_MODE_OK): Delete.
13837 (MODES_TIEABLE_P): Use targetm.hard_regno_mode_ok instead of
13838 HARD_REGNO_MODE_OK.
13839 * config/aarch64/aarch64-protos.h (aarch64_hard_regno_mode_ok): Delete.
13840 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Make static.
13841 (TARGET_HARD_REGNO_MODE_OK): Redefine.
13842 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Delete.
13843 * config/alpha/alpha.c (alpha_hard_regno_mode_ok): New function.
13844 (TARGET_HARD_REGNO_MODE_OK): Redefine.
13845 * config/arc/arc.h (arc_hard_regno_mode_ok): Delete.
13846 (arc_mode_class): Delete.
13847 (HARD_REGNO_MODE_OK): Delete.
13848 * config/arc/arc.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
13849 (arc_hard_regno_mode_ok): Rename old array to...
13850 (arc_hard_regno_mode_ok_modes): ...this.
13851 (arc_conditional_register_usage): Update accordingly.
13852 (arc_mode_class): Make static.
13853 (arc_hard_regno_mode_ok): New function.
13854 * config/arm/arm.h (HARD_REGNO_MODE_OK): Delete.
13855 * config/arm/arm-protos.h (arm_hard_regno_mode_ok): Delete.
13856 * config/arm/arm.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
13857 (arm_hard_regno_mode_ok): Make static.
13858 * config/arm/arm.md (movdi): Use targetm.hard_regno_mode_ok instead of
13859 HARD_REGNO_MODE_OK.
13860 * config/avr/avr-protos.h (avr_hard_regno_mode_ok): Delete.
13861 * config/avr/avr.h (HARD_REGNO_MODE_OK): Delete.
13862 * config/avr/avr.c (avr_hard_regno_mode_ok): Make static and
13863 return a bool.
13864 (TARGET_HARD_REGNO_MODE_OK): Redefine.
13865 * config/bfin/bfin-protos.h (hard_regno_mode_ok): Delete.
13866 * config/bfin/bfin.h (HARD_REGNO_MODE_OK): Delete.
13867 * config/bfin/bfin.c (hard_regno_mode_ok): Rename to...
13868 (bfin_hard_regno_mode_ok): ...this. Make static and return a bool.
13869 (TARGET_HARD_REGNO_MODE_OK): Redefine.
13870 * config/bfin/predicates.md (valid_reg_operand): Use
13871 targetm.hard_regno_mode_ok instead of HARD_REGNO_MODE_OK.
13872 * config/c6x/c6x.h (HARD_REGNO_MODE_OK): Delete.
13873 * config/c6x/c6x.c (c6x_hard_regno_mode_ok): New function.
13874 (TARGET_HARD_REGNO_MODE_OK): Redefine.
13875 * config/cr16/cr16.h (HARD_REGNO_MODE_OK): Delete.
13876 * config/cr16/cr16-protos.h (cr16_hard_regno_mode_ok): Delete.
13877 * config/cr16/cr16.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
13878 (cr16_hard_regno_mode_ok): Make static and return a bool.
13879 * config/cris/cris.h (HARD_REGNO_MODE_OK): Delete.
13880 * config/cris/cris.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
13881 (cris_hard_regno_mode_ok): New function.
13882 * config/epiphany/epiphany.h (epiphany_hard_regno_mode_ok): Delete.
13883 (epiphany_mode_class): Delete.
13884 (HARD_REGNO_MODE_OK): Delete.
13885 * config/epiphany/epiphany-protos.h (hard_regno_mode_ok): Delete.
13886 * config/epiphany/epiphany.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
13887 (hard_regno_mode_ok): Rename to...
13888 (epiphany_hard_regno_mode_ok): ...this. Make static and return a bool.
13889 * config/fr30/fr30.h (HARD_REGNO_MODE_OK): Delete.
13890 * config/fr30/fr30.md: Refer to targetm.hard_regno_mode_ok instead of
13891 HARD_REGNO_MODE_OK.
13892 * config/frv/frv.h (HARD_REGNO_MODE_OK): Delete.
13893 * config/frv/frv-protos.h (frv_hard_regno_mode_ok): Delete.
13894 * config/frv/frv.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
13895 (frv_hard_regno_mode_ok): Make static and return a bool.
13896 * config/frv/frv.md: Refer to targetm.hard_regno_mode_ok instead of
13897 HARD_REGNO_MODE_OK.
13898 * config/ft32/ft32.h (HARD_REGNO_MODE_OK): Delete.
13899 * config/h8300/h8300.h (HARD_REGNO_MODE_OK): Delete.
13900 * config/h8300/h8300-protos.h (h8300_hard_regno_mode_ok): Delete.
13901 * config/h8300/h8300.c (h8300_hard_regno_mode_ok): Make static
13902 and return a bool.
13903 (TARGET_HARD_REGNO_MODE_OK): Redefine.
13904 * config/i386/i386.h (HARD_REGNO_MODE_OK): Delete.
13905 * config/i386/i386-protos.h (ix86_hard_regno_mode_ok): Delete.
13906 * config/i386/i386.c (ix86_hard_regno_mode_ok): Make static and
13907 return a bool.
13908 (TARGET_HARD_REGNO_MODE_OK): Redefine.
13909 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Delete.
13910 * config/ia64/ia64.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
13911 (ia64_hard_regno_mode_ok): New function.
13912 * config/iq2000/iq2000.h (HARD_REGNO_MODE_OK): Delete.
13913 * config/iq2000/iq2000.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
13914 (iq2000_hard_regno_mode_ok): New function.
13915 * config/lm32/lm32.h (HARD_REGNO_MODE_OK): Delete.
13916 * config/lm32/lm32.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
13917 (lm32_hard_regno_mode_ok): New function.
13918 * config/m32c/m32c.h (HARD_REGNO_MODE_OK): Delete.
13919 * config/m32c/m32c-protos.h (m32c_hard_regno_ok): Delete.
13920 * config/m32c/m32c.c (class_can_hold_mode): Use m32c_hard_regno_mode_ok
13921 instead of HARD_REGNO_MODE_OK.
13922 (m32c_hard_regno_ok): Rename to...
13923 (m32c_hard_regno_mode_ok): ...this. Make static and return a bool.
13924 (m32c_cannot_change_mode_class): Update accordingly.
13925 (TARGET_HARD_REGNO_MODE_OK): Redefine.
13926 * config/m32r/m32r.h (m32r_hard_regno_mode_ok): Delete.
13927 (m32r_mode_class): Delete.
13928 (HARD_REGNO_MODE_OK): Delete.
13929 * config/m32r/m32r.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
13930 (m32r_hard_regno_mode_ok): Rename to...
13931 (m32r_hard_regno_modes): ...this.
13932 (m32r_mode_class): Make static.
13933 (m32r_hard_regno_mode_ok): New function.
13934 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Delete.
13935 * config/m68k/m68k-protos.h (m68k_regno_mode_ok): Delete.
13936 * config/m68k/m68k.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
13937 (m68k_hard_regno_mode_ok): Make static.
13938 * config/mcore/mcore.h (HARD_REGNO_MODE_OK): Delete.
13939 * config/mcore/mcore.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
13940 (mcore_hard_regno_mode_ok): New function.
13941 * config/microblaze/microblaze.h (microblaze_hard_regno_mode_ok)
13942 (HARD_REGNO_MODE_OK): Delete.
13943 * config/microblaze/microblaze.c (microblaze_hard_regno_mode_ok):
13944 Rename to...
13945 (microblaze_hard_regno_mode_ok_p): ...this and make static.
13946 (microblaze_hard_regno_mode_ok): New function.
13947 (TARGET_HARD_REGNO_MODE_OK): Redefine.
13948 * config/mips/mips.h (HARD_REGNO_MODE_OK): Delete.
13949 (mips_hard_regno_mode_ok): Delete.
13950 * config/mips/mips.c (mips_hard_regno_mode_ok): Rename to...
13951 (mips_hard_regno_mode_ok_p): ...this and make static.
13952 (mips_hard_regno_mode_ok_p): Rename to...
13953 (mips_hard_regno_mode_ok_uncached): ...this.
13954 (mips_hard_regno_mode_ok): New function.
13955 (mips_class_max_nregs): Use mips_hard_regno_mode_ok instead
13956 of HARD_REGNO_MODE_OK.
13957 (mips_option_override): Update after above name changes.
13958 (TARGET_HARD_REGNO_MODE_OK): Redefine.
13959 * config/mmix/mmix.h (HARD_REGNO_MODE_OK): Delete.
13960 * config/mn10300/mn10300.h (HARD_REGNO_MODE_OK): Delete.
13961 * config/mn10300/mn10300-protos.h (mn10300_hard_regno_mode_ok): Delete.
13962 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Make static.
13963 (TARGET_HARD_REGNO_MODE_OK): Redefine.
13964 * config/moxie/moxie.h (HARD_REGNO_MODE_OK): Delete.
13965 * config/msp430/msp430.h (HARD_REGNO_MODE_OK): Delete.
13966 * config/msp430/msp430-protos.h (msp430_hard_regno_mode_ok): Delete.
13967 * config/msp430/msp430.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
13968 (msp430_hard_regno_mode_ok): Make static and return a bool.
13969 * config/nds32/nds32.h (HARD_REGNO_MODE_OK): Delete.
13970 * config/nds32/nds32-protos.h (nds32_hard_regno_mode_ok): Delete.
13971 * config/nds32/nds32.c (nds32_hard_regno_mode_ok): Make static
13972 and return a bool.
13973 (TARGET_HARD_REGNO_MODE_OK): Redefine.
13974 * config/nios2/nios2.h (HARD_REGNO_MODE_OK): Delete.
13975 * config/nvptx/nvptx.h (HARD_REGNO_MODE_OK): Delete.
13976 * config/pa/pa.h (MODES_TIEABLE_P): Update commentary.
13977 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): Rename to...
13978 (PA_HARD_REGNO_MODE_OK): ...this
13979 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Rename to...
13980 (PA_HARD_REGNO_MODE_OK): ...this.
13981 * config/pa/pa.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
13982 (pa_hard_regno_mode_ok): New function.
13983 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Delete.
13984 * config/pdp11/pdp11.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
13985 (pdp11_hard_regno_mode_ok): New function.
13986 * config/powerpcspe/powerpcspe.h (HARD_REGNO_MODE_OK): Delete.
13987 * config/powerpcspe/powerpcspe-protos.h (rs6000_hard_regno_mode_ok_p):
13988 Delete.
13989 * config/powerpcspe/powerpcspe.c (rs6000_hard_regno_mode_ok_p):
13990 Make static.
13991 (TARGET_HARD_REGNO_MODE_OK): Redefine.
13992 (rs6000_hard_regno_mode_ok): Rename to...
13993 (rs6000_hard_regno_mode_ok_uncached): ...this.
13994 (rs6000_init_hard_regno_mode_ok): Update accordingly.
13995 (rs6000_hard_regno_mode_ok): New function.
13996 * config/riscv/riscv.h (HARD_REGNO_MODE_OK): Delete.
13997 * config/riscv/riscv-protos.h (riscv_hard_regno_mode_ok_p): Delete.
13998 * config/riscv/riscv.c (riscv_hard_regno_mode_ok_p): Rename to...
13999 (riscv_hard_regno_mode_ok): ...this and make static.
14000 (TARGET_HARD_REGNO_MODE_OK): Redefine.
14001 * config/rl78/rl78.h (HARD_REGNO_MODE_OK): Delete.
14002 * config/rl78/rl78-protos.h (rl78_hard_regno_mode_ok): Delete.
14003 * config/rl78/rl78.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
14004 (rl78_hard_regno_mode_ok): Make static and return bool.
14005 * config/rs6000/rs6000.h (HARD_REGNO_MODE_OK): Delete.
14006 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_mode_ok_p):
14007 Delete.
14008 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok_p): Make static.
14009 (TARGET_HARD_REGNO_MODE_OK): Redefine.
14010 (rs6000_hard_regno_mode_ok): Rename to...
14011 (rs6000_hard_regno_mode_ok_uncached): ...this.
14012 (rs6000_init_hard_regno_mode_ok): Update accordingly.
14013 (rs6000_hard_regno_mode_ok): New function.
14014 * config/rx/rx.h (HARD_REGNO_MODE_OK): Delete.
14015 * config/rx/rx.c (rx_hard_regno_mode_ok): New function.
14016 (TARGET_HARD_REGNO_MODE_OK): Redefine.
14017 * config/s390/s390.h (HARD_REGNO_MODE_OK): Delete.
14018 * config/s390/s390-protos.h (s390_hard_regno_mode_ok): Delete.
14019 * config/s390/s390.c (s390_hard_regno_mode_ok): Make static.
14020 (TARGET_HARD_REGNO_MODE_OK): Redefine.
14021 * config/sh/sh.h (HARD_REGNO_MODE_OK): Delete.
14022 * config/sh/sh-protos.h (sh_hard_regno_mode_ok): Delete.
14023 * config/sh/sh.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
14024 (sh_hard_regno_mode_ok): Make static.
14025 * config/sparc/constraints.md: Refer to targetm.hard_regno_mode_ok
14026 instead of HARD_REGNO_MODE_OK.
14027 * config/sparc/sparc.h (hard_regno_mode_classes): Delete.
14028 (sparc_mode_class): Delete.
14029 (HARD_REGNO_MODE_OK): Delete.
14030 * config/sparc/sparc.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
14031 (hard_regno_mode_classes): Make static.
14032 (sparc_mode_class): Likewise.
14033 (sparc_hard_regno_mode_ok): New function.
14034 * config/spu/spu.h (HARD_REGNO_MODE_OK): Delete.
14035 * config/stormy16/stormy16.h (HARD_REGNO_MODE_OK): Delete.
14036 * config/stormy16/stormy16.c (xstormy16_hard_regno_mode_ok): New
14037 function.
14038 (TARGET_HARD_REGNO_MODE_OK): Redefine.
14039 * config/tilegx/tilegx.h (HARD_REGNO_MODE_OK): Delete.
14040 * config/tilepro/tilepro.h (HARD_REGNO_MODE_OK): Delete.
14041 * config/v850/v850.h (HARD_REGNO_MODE_OK): Delete.
14042 * config/v850/v850.c (v850_hard_regno_mode_ok): New function.
14043 (TARGET_HARD_REGNO_MODE_OK): Redefine.
14044 * config/vax/vax.h (HARD_REGNO_MODE_OK): Delete.
14045 * config/visium/visium.h (HARD_REGNO_MODE_OK): Delete.
14046 * config/visium/visium.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
14047 (visium_hard_regno_mode_ok): New function.
14048 * config/visium/visium.md: Refer to targetm.hard_regno_mode_ok
14049 instead of HARD_REGNO_MODE_OK.
14050 * config/xtensa/xtensa.h (xtensa_hard_regno_mode_ok): Delete.
14051 (HARD_REGNO_MODE_OK): Delete.
14052 * config/xtensa/xtensa.c (xtensa_hard_regno_mode_ok): Rename to...
14053 (xtensa_hard_regno_mode_ok_p): ...this and make static.
14054 (xtensa_option_override): Update accordingly.
14055 (TARGET_HARD_REGNO_MODE_OK): Redefine.
14056 (xtensa_hard_regno_mode_ok): New function.
14057 * system.h (HARD_REGNO_MODE_OK): Poison.
14058
14059 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
14060 Alan Hayward <alan.hayward@arm.com>
14061 David Sherwood <david.sherwood@arm.com>
14062
14063 * target.def (hard_regno_call_part_clobbered): New hook.
14064 * doc/tm.texi.in (HARD_REGNO_CALL_PART_CLOBBERED): Replace with...
14065 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): ...this hook.
14066 * doc/tm.texi: Regenerate.
14067 * hooks.h (hook_bool_uint_mode_false): Declare.
14068 * hooks.c (hook_bool_uint_mode_false): New function.
14069 * regs.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
14070 * cselib.c (cselib_process_insn): Use
14071 targetm.hard_regno_call_part_clobbered instead of
14072 HARD_REGNO_CALL_PART_CLOBBERED.
14073 * ira-conflicts.c (ira_build_conflicts): Likewise.
14074 * ira-costs.c (ira_tune_allocno_costs): Likewise.
14075 * lra-constraints.c (need_for_call_save_p): Likewise.
14076 * lra-lives.c: Include target.h.
14077 (check_pseudos_live_through_calls): Use
14078 targetm.hard_regno_call_part_clobbered instead of
14079 HARD_REGNO_CALL_PART_CLOBBERED.
14080 * regcprop.c: Include target.h.
14081 (copyprop_hardreg_forward_1): Use
14082 targetm.hard_regno_call_part_clobbered instead of
14083 HARD_REGNO_CALL_PART_CLOBBERED.
14084 * reginfo.c (choose_hard_reg_mode): Likewise.
14085 * regrename.c (check_new_reg_p): Likewise.
14086 * reload.c (find_equiv_reg): Likewise.
14087 * reload1.c (emit_reload_insns): Likewise.
14088 * sched-deps.c (deps_analyze_insn): Likewise.
14089 * sel-sched.c (init_regs_for_mode): Likewise.
14090 (mark_unavailable_hard_regs): Likewise.
14091 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
14092 * config/aarch64/aarch64.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
14093 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
14094 New function.
14095 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
14096 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
14097 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered):
14098 Delete.
14099 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Make static
14100 and return a bool.
14101 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
14102 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
14103 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): New
14104 function.
14105 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
14106 * config/mips/mips.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
14107 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): New
14108 function.
14109 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
14110 * config/powerpcspe/powerpcspe.h (HARD_REGNO_CALL_PART_CLOBBERED):
14111 Delete.
14112 * config/powerpcspe/powerpcspe.c
14113 (rs6000_hard_regno_call_part_clobbered): New function.
14114 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
14115 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
14116 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
14117 New function.
14118 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
14119 * config/s390/s390.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
14120 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): New
14121 function.
14122 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
14123 * config/sh/sh.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
14124 * system.h (HARD_REGNO_CALL_PART_CLOBBERED): Poison.
14125
14126 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
14127 Alan Hayward <alan.hayward@arm.com>
14128 David Sherwood <david.sherwood@arm.com>
14129
14130 * rtl.h (subreg_memory_offset): Declare.
14131 * emit-rtl.c (subreg_memory_offset): New function.
14132 * expmed.c (store_bit_field_1): Use it.
14133 * expr.c (undefined_operand_subword_p): Likewise.
14134 * simplify-rtx.c (simplify_subreg): Likewise.
14135
14136 2017-09-04 Alexander Monakov <amonakov@ispras.ru>
14137
14138 PR rtl-optimization/57448
14139 PR target/67458
14140 PR target/81316
14141 * optabs.c (expand_atomic_load): Place compiler memory barriers if
14142 using atomic_load pattern.
14143 (expand_atomic_store): Likewise.
14144
14145 2017-09-04 Jakub Jelinek <jakub@redhat.com>
14146
14147 PR sanitizer/81981
14148 * gimple-fold.c (gimple_fold_call): Optimize away useless UBSAN_PTR
14149 and UBSAN_BOUNDS internal calls. Clean up IFN_UBSAN_OBJECT_SIZE
14150 handling. Use replace_call_with_value with NULL instead of
14151 gsi_replace, unlink_stmt_vdef and release_defs.
14152
14153 * gdbhooks.py (OptMachineModePrinter.to_string): Use 8 spaces
14154 instead of tab.
14155
14156 * lra-remat.c (reg_overlap_for_remat_p): Fix a pasto.
14157
14158 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
14159
14160 PR bootstrap/82045
14161 * rtl.h (emit_library_call_value_1): Declare.
14162 (emit_library_call): Replace declaration with a series of overloads.
14163 Remove the parameter count argument.
14164 (emit_library_call_value): Likewise.
14165 * calls.c (emit_library_call_value_1): Make global. Replace varargs
14166 with an "rtx_mode_t *".
14167 (emit_library_call_value): Delete.
14168 (emit_library_call): Likewise.
14169 * asan.c (asan_emit_stack_protection): Update calls accordingly.
14170 (asan_emit_allocas_unpoison): Likewise.
14171 * builtins.c (expand_builtin_powi): Likewise.
14172 (expand_asan_emit_allocas_unpoison): Likewise.
14173 * cfgexpand.c (expand_main_function): Likewise.
14174 * config/aarch64/aarch64.c (aarch64_trampoline_init): Likewise.
14175 * config/aarch64/aarch64.h (PROFILE_HOOK): Likewise.
14176 * config/alpha/alpha.c (alpha_trampoline_init): Likewise.
14177 * config/arm/arm.c (arm_trampoline_init): Likewise.
14178 (arm_call_tls_get_addr): Likewise.
14179 (arm_expand_divmod_libfunc): Likewise.
14180 * config/bfin/bfin.md (umulsi3_highpart): Likewise.
14181 (smulsi3_highpart): Likewise.
14182 * config/c6x/c6x.c (c6x_initialize_trampoline): Likewise.
14183 (c6x_expand_compare): Likewise.
14184 (c6x_expand_movmem): Likewise.
14185 * config/frv/frv.c (frv_trampoline_init): Likewise.
14186 * config/i386/i386.c (ix86_trampoline_init): Likewise.
14187 (ix86_expand_divmod_libfunc): Likewise.
14188 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
14189 (ia64_expand_compare): Likewise.
14190 (ia64_profile_hook): Likewise.
14191 * config/ia64/ia64.md (save_stack_nonlocal): Likewise.
14192 (nonlocal_goto): Likewise.
14193 (restore_stack_nonlocal): Likewise.
14194 * config/m32r/m32r.c (block_move_call): Likewise.
14195 (m32r_trampoline_init): Likewise.
14196 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
14197 * config/m68k/m68k.c (m68k_call_tls_get_addr): Likewise.
14198 (m68k_call_m68k_read_tp): Likewise.
14199 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr)
14200 (microblaze_expand_divide): Likewise.
14201 * config/mips/mips.h (mips_args): Likewise.
14202 * config/mips/sdemtk.h (mips_sync_icache): Likewise.
14203 (MIPS_ICACHE_SYNC): Likewise.
14204 * config/nios2/nios2.c (nios2_emit_expensive_div): Likewise.
14205 (nios2_trampoline_init): Likewise.
14206 * config/pa/pa.c (hppa_tls_call): Likewise.
14207 (pa_trampoline_init): Likewise.
14208 * config/pa/pa.md (canonicalize_funcptr_for_compare): Likewise.
14209 * config/powerpcspe/powerpcspe.c (rs6000_legitimize_tls_address)
14210 (expand_strn_compare): Likewise.
14211 (rs6000_generate_compare): Likewise.
14212 (rs6000_expand_float128_convert): Likewise.
14213 (output_profile_hook): Likewise.
14214 (rs6000_trampoline_init): Likewise.
14215 * config/powerpcspe/powerpcspe.md (neg<mode>2): Likewise.
14216 * config/riscv/riscv.h (PROFILE_HOOK): Likewise.
14217 * config/rs6000/rs6000-string.c (expand_strn_compare): Likewise.
14218 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
14219 (rs6000_generate_compare): Likewise.
14220 (rs6000_expand_float128_convert): Likewise.
14221 (output_profile_hook): Likewise.
14222 (rs6000_trampoline_init): Likewise.
14223 * config/rs6000/rs6000.md (neg<mode>2): Likewise.
14224 * config/sh/sh.c (sh_trampoline_init): Likewise.
14225 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Likewise.
14226 (sparc_emit_float_lib_cmp): Likewise.
14227 (sparc32_initialize_trampoline): Likewise.
14228 (sparc64_initialize_trampoline): Likewise.
14229 (sparc_profile_hook): Likewise.
14230 * config/spu/spu.c (ea_load_store): Likewise.
14231 * config/spu/spu.md (floatunssidf2): Likewise.
14232 * config/tilegx/tilegx.c (tilegx_trampoline_init): Likewise.
14233 * config/tilepro/tilepro.c (tilepro_trampoline_init): Likewise.
14234 * config/visium/visium.c (expand_block_move_4): Likewise.
14235 (expand_block_move_2): Likewise.
14236 (expand_block_move_1): Likewise.
14237 (expand_block_set_4): Likewise.
14238 (expand_block_set_2): Likewise.
14239 (expand_block_set_1): Likewise.
14240 (visium_trampoline_init): Likewise.
14241 (visium_profile_hook): Likewise.
14242 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Likewise.
14243 (xtensa_setup_frame_addresses): Likewise.
14244 (xtensa_trampoline_init): Likewise.
14245 * except.c (sjlj_emit_function_enter): Likewise.
14246 (sjlj_emit_function_exit): Likewise.
14247 * explow.c (allocate_dynamic_stack_space): Likewise.
14248 (probe_stack_range): Likewise.
14249 * expr.c (convert_mode_scalar): Likewise.
14250 * optabs.c (expand_binop): Likewise.
14251 (expand_twoval_binop_libfunc): Likewise.
14252 (expand_unop): Likewise.
14253 (prepare_cmp_insn): Likewise.
14254 (prepare_float_lib_cmp): Likewise.
14255 (expand_float): Likewise.
14256 (expand_fix): Likewise.
14257 (expand_fixed_convert): Likewise.
14258 (maybe_emit_sync_lock_test_and_set): Likewise.
14259 (expand_atomic_compare_and_swap): Likewise.
14260 (expand_mem_thread_fence): Likewise.
14261 (expand_atomic_fetch_op): Likewise.
14262
14263 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
14264
14265 * doc/generic.texi (OpenACC): Adjust URL.
14266 * doc/invoke.texi (C Dialect Options): Ditto.
14267
14268 2017-09-03 Uros Bizjak <ubizjak@gmail.com>
14269
14270 * config/i386/i386.md (*bt<mode>): Use nonimmediate_operand
14271 predicate for operand 1. Add (m,<S>) constraint.
14272 (*jcc_bt<mode>): Use nonimmediate_operand predicate for operand 1.
14273 Prevent memory operand 1 with register operand 2.
14274
14275 2017-09-01 Segher Boessenkool <segher@kernel.crashing.org>
14276
14277 PR rtl-optimization/82024
14278 * combine.c (try_combine): If the combination result is a PARALLEL,
14279 and we only need to retain the SET in there that would be placed
14280 at I2, check that we can place that at I3 instead, before doing so.
14281
14282 2017-09-01 Jakub Jelinek <jakub@redhat.com>
14283
14284 PR target/81766
14285 * config/i386/i386.c (ix86_init_large_pic_reg): Return label
14286 instead of void.
14287 (ix86_init_pic_reg): Remember label from ix86_init_large_pic_reg,
14288 if non-NULL and preceded by NOTE_INSN_BASIC_BLOCK, swap the note
14289 and label.
14290
14291 2017-09-01 Joerg Sonnenberger <joerg@bec.de>
14292 Jeff Law <law@redhat.com>
14293
14294 * varasm.c (bss_initializer_p): Do not put constants into .bss
14295 (categorize_decl_for_section): Handle bss_initializer_p returning
14296 false when DECL_INITIAL is NULL.
14297
14298 2017-09-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14299
14300 PR target/82012
14301 * config/s390/s390.c (s390_can_inline_p): New function.
14302
14303 2017-09-01 Jeff Law <law@redhat.com>
14304
14305 PR tree-optimization/82052
14306 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
14307 Always initialize the returned slot after a hash table miss
14308 when INSERT is true.
14309
14310 2017-09-01 Alexander Monakov <amonakov@ispras.ru>
14311
14312 * config/s390/s390.md (mem_signal_fence): Remove.
14313 * doc/md.texi (mem_signal_fence): Remove.
14314 * optabs.c (expand_mem_signal_fence): Remove uses of mem_signal_fence.
14315 Update comments.
14316 * target-insns.def (mem_signal_fence): Remove.
14317
14318 2017-09-01 Jakub Jelinek <jakub@redhat.com>
14319
14320 PR sanitizer/81902
14321 * doc/invoke.texi: Document -fsanitize=pointer-overflow.
14322
14323 PR sanitizer/81923
14324 * asan.c (create_odr_indicator): Strip name encoding from assembler
14325 name before appending it after __odr_asan_.
14326
14327 2017-09-01 Martin Liska <mliska@suse.cz>
14328
14329 PR tree-optimization/82059
14330 * gimple-ssa-isolate-paths.c (isolate_path): Add profile and
14331 frequency only when an edge is redirected.
14332
14333 2017-09-01 Claudiu Zissulescu <claziss@synopsys.com>
14334
14335 * config/arc/arc-c.c (__ARC_LPC_WIDTH__): Add builtin define.
14336 * config/arc/arc.c (ARC_MAX_LOOP_LENGTH): Define.
14337 (arc_conditional_register_usage): Remove ARC600 lp_count
14338 exception.
14339 (arc_file_start): Emit Tag_ARC_CPU_variation.
14340 (arc_can_use_doloop_p): New conditions to use ZOLs.
14341 (hwloop_fail): New function.
14342 (hwloop_optimize): Likewise.
14343 (hwloop_pattern_reg): Likewise.
14344 (arc_doloop_hooks): New struct, to be used with reorg_loops.
14345 (arc_reorg_loops): New function, calls reorg_loops.
14346 (arc_reorg): Call arc_reorg_loops. Remove old ZOL handling.
14347 (arc600_corereg_hazard): Remove ZOL checking, case handled by
14348 hwloop_optimize.
14349 (arc_loop_hazard): Remove function, functionality moved into
14350 hwloop_optimize.
14351 (arc_hazard): Remove arc_loop_hazard call.
14352 (arc_adjust_insn_length): Remove ZOL handling, functionality moved
14353 into hwloop_optimize.
14354 (arc_label_align): Remove ZOL handling.
14355 * config/arc/arc.h (LOOP_ALIGN): Changed to 0.
14356 * config/arc/arc.md (doloop_begin): Remove pattern.
14357 (doloop_begin_i): Likewise.
14358 (doloop_end_i): Likewise.
14359 (doloop_fallback): Likewise.
14360 (doloop_fallback_m): Likewise.
14361 (doloop_end): Reimplement expand.
14362 (arc_lp): New pattern for LP instruction.
14363 (loop_end): New pattern.
14364 (loop_fail): Likewise.
14365 (decrement_and_branch_until_zero): Likewise.
14366 * config/arc/arc.opt (mlpc-width): New option.
14367 * doc/invoke.texi (mlpc-width): Document option.
14368
14369 2017-09-01 Claudiu Zissulescu <claziss@synopsys.com>
14370
14371 * config/arc/arc.c (arc_ifcvt): Remove use of merge_blocks call.
14372 (arc_ccfsm_advance): Fix checking for delay slots.
14373 (arc_reorg): Add rtl dump after each call to arc_ifcvt.
14374
14375 2017-09-01 Claudiu Zissulescu <claziss@synopsys.com>
14376
14377 * config/arc/arc.md (movqi_insn): Add stores to save constant long
14378 immediates.
14379 (movhi_insn): Update store instruction constraint which are saving
14380 6-bit short immediates.
14381 (movsi_insn): Consider also short scaled load operations.
14382 (zero_extendhisi2_i): Use Usd constraint instead of T.
14383 (extendhisi2_i): Add q constraint.
14384 (arc_clzsi2): Add type and length attributes.
14385 (arc_ctzsi2): Likewise.
14386 * config/arc/constraints.md (Usc): Update constraint, the
14387 assembler can parse two relocations for a single instruction.
14388
14389 2017-09-01 Claudiu Zissulescu <claziss@synopsys.com>
14390
14391 * config/arc/arc.c (arc_use_anchors_for_symbol_p): New function.
14392 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
14393
14394 2017-08-31 Olivier Hainque <hainque@adacore.com>
14395
14396 * config.gcc (powerpc-wrs-vxworks|vxworksae|vxworksmils): Now
14397 match as powerpc-wrs-vxworks*.
14398
14399 2017-08-31 James Greenhalgh <james.greenhalgh@arm.com>
14400
14401 * config/aarch64/aarch64-simd.md (aarch64_mla_elt_merge<mode>): Fix
14402 register constraint for by-element operand.
14403 (aarch64_mls_elt_merge<mode>): Likewise.
14404
14405 2017-08-31 Claudiu Zissulescu <claziss@synopsys.com>
14406
14407 * config/arc/arc.c (arc_can_follow_jump): Check for short
14408 branches.
14409
14410 2017-08-31 Claudiu Zissulescu <claziss@synopsys.com>
14411
14412 * config.gcc: Use g.opt for arc.
14413 * config/arc/arc.c (LEGITIMATE_SCALED_ADDRESS_P): Deleted,
14414 functionality moved to ...
14415 (legitimate_scaled_address_p): New function, ...here.
14416 (LEGITIMATE_SMALL_DATA_OFFSET_P): New define.
14417 (LEGITIMATE_SMALL_DATA_ADDRESS_P): Use the above define.
14418 (legitimate_offset_address_p): Delete TARGET_NO_SDATA_SET
14419 condition.
14420 (arc_override_options): Handle G option.
14421 (arc_output_pic_addr_const): Correct function definition.
14422 (arc_legitimate_address_p): Use legitimate_scaled_address_p.
14423 (arc_decl_anon_ns_mem_p): Delete.
14424 (arc_in_small_data_p): Overhaul this function to take into
14425 consideration the value given via G option.
14426 (arc_rewrite_small_data_1): Renamed and corrected old
14427 arc_rewrite_small_data function.
14428 (arc_rewrite_small_data): New function.
14429 (small_data_pattern): Don't use pic_offset_table_rtx.
14430 * config/arc/arc.h (CC1_SPEC): Recognize G option.
14431 * config/arc/simdext.md (movmisalignv2hi): Use
14432 prepare_move_operands function.
14433 (mov*): Likewise.
14434 (movmisalign*): Likewise.
14435 * doc/invoke.texi (ARC options): Document -G option.
14436
14437 2017-08-31 Claudiu Zissulescu <claziss@synopsys.com>
14438
14439 * config/arc/arc-protos.h (compact_sda_memory_operand): Update
14440 prototype.
14441 * config/arc/arc.c (arc_print_operand): Output scalled address for
14442 sdata whenever is possible.
14443 (arc_in_small_data_p): Allow sdata for 64bit datum when double
14444 load/stores are available.
14445 (compact_sda_memory_operand): Check for the alignment required by
14446 code density instructions.
14447 * config/arc/arc.md (movsi_insn): Use newly introduced Us0
14448 constraint.
14449 * config/arc/constraints.md (Usd): Update constraint.
14450 (Us0): New constraint.
14451 (Usc): Update constraint.
14452
14453 2017-08-31 Richard Biener <rguenther@suse.de>
14454
14455 PR middle-end/82054
14456 * dwarf2out.c (dwarf2out_early_global_decl): Process each
14457 function only once.
14458
14459 2017-08-31 Tamar Christina <tamar.christina@arm.com>
14460
14461 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
14462 Resize type_signature.
14463
14464 2017-08-31 Richard Sandiford <richard.sandiford@linaro.org>
14465 Alan Hayward <alan.hayward@arm.com>
14466 David Sherwood <david.sherwood@arm.com>
14467
14468 * config/aarch64/aarch64.c (aarch64_base_register_rtx_p): Only allow
14469 subregs whose inner modes can be stored in GPRs.
14470 (aarch64_classify_index): Likewise.
14471
14472 2017-08-31 Richard Sandiford <richard.sandiford@linaro.org>
14473 Alan Hayward <alan.hayward@arm.com>
14474 David Sherwood <david.sherwood@arm.com>
14475
14476 * config/aarch64/iterators.md (V_cmp_result): Rename to...
14477 (V_INT_EQUIV): ...this.
14478 (v_cmp_result): Rename to...
14479 (v_int_equiv): ...this.
14480 * config/aarch64/aarch64.md (xorsign<mode>3): Update accordingly.
14481 * config/aarch64/aarch64-simd.md (xorsign<mode>3): Likewise.
14482 (copysign<mode>3): Likewise.
14483 (aarch64_simd_bsl<mode>_internal): Likewise.
14484 (aarch64_simd_bsl<mode>): Likewise.
14485 (vec_cmp<mode><mode>): Likewise.
14486 (vcond<mode><mode>): Likewise.
14487 (vcond<v_cmp_mixed><mode>): Likewise.
14488 (vcondu<mode><v_cmp_mixed>): Likewise.
14489 (aarch64_cm<optab><mode>): Likewise.
14490 (aarch64_cmtst<mode>): Likewise.
14491 (aarch64_fac<optab><mode>): Likewise.
14492 (vec_perm_const<mode>): Likewise.
14493 (vcond_mask_<mode><v_cmp_result>): Rename to...
14494 (vcond_mask_<mode><v_int_equiv>): ...this.
14495 (vec_cmp<mode><v_cmp_result>): Rename to...
14496 (vec_cmp<mode><v_int_equiv>): ...this.
14497
14498 2017-08-31 Richard Sandiford <richard.sandiford@linaro.org>
14499 Alan Hayward <alan.hayward@arm.com>
14500 David Sherwood <david.sherwood@arm.com>
14501
14502 * config/aarch64/aarch64-modes.def: Remove 32-, 48- and 64-byte
14503 vector modes.
14504 * config/aarch64/iterators.md (VRL2, VRL3, VRL4): Delete.
14505 * config/aarch64/aarch64.md (UNSPEC_LD2_DREG, UNSPEC_LD3_DREG)
14506 (UNSPEC_LD4_DREG): New unspecs.
14507 * config/aarch64/aarch64-simd.md (aarch64_ld2<mode>_dreg_le)
14508 (aarch64_ld2<mode>_dreg_be): Replace with...
14509 (aarch64_ld2<mode>_dreg): ...this pattern and use the new DREG
14510 unspec.
14511 (aarch64_ld3<mode>_dreg_le)
14512 (aarch64_ld3<mode>_dreg_be): Replace with...
14513 (aarch64_ld3<mode>_dreg): ...this pattern and use the new DREG
14514 unspec.
14515 (aarch64_ld4<mode>_dreg_le)
14516 (aarch64_ld4<mode>_dreg_be): Replace with...
14517 (aarch64_ld4<mode>_dreg): ...this pattern and use the new DREG
14518 unspec.
14519
14520 2017-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14521
14522 PR tree-optimization/81987
14523 * gimple-ssa-strength-reduction.c (insert_initializers): Don't
14524 insert an initializer in a location not dominated by the stride
14525 definition.
14526
14527 2017-08-30 Eric Botcazou <ebotcazou@adacore.com>
14528
14529 * tree-eh.c (lower_try_finally_switch): Set the location of the finally
14530 on the entire header of the finally block in the fallthru case.
14531
14532 2017-08-30 Eric Botcazou <ebotcazou@adacore.com>
14533
14534 * varasm.c (decode_addr_const): Deal with INDIRECT_REF <INTEGER_CST>.
14535
14536 2017-08-30 Pat Haugen <pthaugen@us.ibm.com>
14537
14538 * config/rs6000/rs6000.c (rs6000_emit_prologue_move_from_cr): Rename from
14539 rs6000_emit_move_from_cr and call renamed function.
14540 (rs6000_emit_prologue): Call renamed functions.
14541 * config/rs6000/rs6000.md (prologue_movesi_from_cr): Rename from
14542 movesi_from_cr, remove volatile CRs.
14543
14544 2017-08-30 Jon Beniston <jon@beniston.com>
14545 Richard Biener <rguenther@suse.de>
14546
14547 * tree-vect-patterns.c (vect_pattern_recog_1): Use VECTOR_TYPE_P instead
14548 of VECTOR_MODE_P check.
14549 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Allow single
14550 element vector types.
14551
14552 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14553
14554 * df.h (df_read_modify_subreg_p): Remove in favor of...
14555 * rtl.h (read_modify_subreg_p): ...this new function. Take a
14556 const_rtx instead of an rtx.
14557 * cprop.c (local_cprop_find_used_regs): Update accordingly.
14558 * df-problems.c (df_word_lr_mark_ref): Likewise.
14559 * ira-lives.c (mark_pseudo_reg_live): Likewise.
14560 (mark_pseudo_reg_dead): Likewise.
14561 (mark_ref_dead): Likewise.
14562 * reginfo.c (init_subregs_of_mode): Likewise.
14563 * sched-deps.c (sched_analyze_1): Likewise.
14564 * df-scan.c (df_def_record_1): Likewise.
14565 (df_uses_record): Likewise.
14566 (df_read_modify_subreg_p): Remove in favor of...
14567 * rtlanal.c (read_modify_subreg_p): ...this new function. Take a
14568 const_rtx instead of an rtx.
14569
14570 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14571 Alan Hayward <alan.hayward@arm.com>
14572 David Sherwood <david.sherwood@arm.com>
14573
14574 * rtl.h (partial_subreg_p): New function.
14575 * caller-save.c (save_call_clobbered_regs): Use it.
14576 * calls.c (expand_call): Likewise.
14577 * combine.c (combinable_i3pat): Likewise.
14578 (simplify_set): Likewise.
14579 (make_extraction): Likewise.
14580 (make_compound_operation_int): Likewise.
14581 (gen_lowpart_or_truncate): Likewise.
14582 (force_to_mode): Likewise.
14583 (make_field_assignment): Likewise.
14584 (reg_truncated_to_mode): Likewise.
14585 (record_truncated_value): Likewise.
14586 (move_deaths): Likewise.
14587 * cse.c (record_jump_cond): Likewise.
14588 (cse_insn): Likewise.
14589 * cselib.c (cselib_lookup_1): Likewise.
14590 * expmed.c (extract_bit_field_using_extv): Likewise.
14591 * function.c (assign_parm_setup_reg): Likewise.
14592 * ifcvt.c (noce_convert_multiple_sets): Likewise.
14593 * ira-build.c (create_insn_allocnos): Likewise.
14594 * lra-coalesce.c (merge_pseudos): Likewise.
14595 * lra-constraints.c (match_reload): Likewise.
14596 (simplify_operand_subreg): Likewise.
14597 (curr_insn_transform): Likewise.
14598 * lra-lives.c (process_bb_lives): Likewise.
14599 * lra.c (new_insn_reg): Likewise.
14600 (lra_substitute_pseudo): Likewise.
14601 * regcprop.c (mode_change_ok): Likewise.
14602 (maybe_mode_change): Likewise.
14603 (copyprop_hardreg_forward_1): Likewise.
14604 * reload.c (push_reload): Likewise.
14605 (find_reloads): Likewise.
14606 (find_reloads_subreg_address): Likewise.
14607 * reload1.c (alter_reg): Likewise.
14608 (eliminate_regs_1): Likewise.
14609 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
14610
14611 2017-08-30 David Edelsohn <dje.gcc@gmail.com>
14612
14613 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Revert
14614 back to if statements, including unpack.
14615
14616 2017-08-30 Martin Liska <mliska@suse.cz>
14617
14618 PR inline-asm/82001
14619 * ipa-icf-gimple.c (func_checker::compare_tree_list_operand):
14620 Rename to ...
14621 (func_checker::compare_asm_inputs_outputs): ... this function.
14622 (func_checker::compare_gimple_asm): Use the function to compare
14623 also ASM constrains.
14624 * ipa-icf-gimple.h: Rename the function.
14625
14626 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14627 Alan Hayward <alan.hayward@arm.com>
14628 David Sherwood <david.sherwood@arm.com>
14629
14630 * coretypes.h (complex_mode): New type.
14631 * gdbhooks.py (build_pretty_printer): Handle it.
14632 * machmode.h (complex_mode): New class.
14633 (complex_mode::includes_p): New function.
14634 (is_complex_int_mode): Likewise.
14635 (is_complex_float_mode): Likewise.
14636 * genmodes.c (get_mode_class): Handle complex mode classes.
14637 * function.c (expand_function_end): Use is_complex_int_mode.
14638
14639 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14640 Alan Hayward <alan.hayward@arm.com>
14641 David Sherwood <david.sherwood@arm.com>
14642
14643 * coretypes.h (scalar_mode_pod): New typedef.
14644 * gdbhooks.py (build_pretty_printer): Handle it.
14645 * machmode.h (gt_ggc_mx, gt_pch_nx): New functions.
14646 * fixed-value.h (fixed_value::mode): Change type to scalar_mode_pod.
14647 * fold-const.c (fold_convert_const_int_from_fixed): Use scalar_mode.
14648 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields): Use
14649 as_a <scalar_mode>.
14650
14651 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14652 Alan Hayward <alan.hayward@arm.com>
14653 David Sherwood <david.sherwood@arm.com>
14654
14655 * machmode.h (mode_for_vector): Take a scalar_mode instead
14656 of a machine_mode.
14657 * stor-layout.c (mode_for_vector): Likewise.
14658 * explow.c (promote_mode): Use as_a <scalar_mode>.
14659 * sdbout.c (sdbout_parms): Use is_a <scalar_mode>.
14660
14661 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14662 Alan Hayward <alan.hayward@arm.com>
14663 David Sherwood <david.sherwood@arm.com>
14664
14665 * target.def (preferred_simd_mode): Take a scalar_mode
14666 instead of a machine_mode.
14667 * targhooks.h (default_preferred_simd_mode): Likewise.
14668 * targhooks.c (default_preferred_simd_mode): Likewise.
14669 * config/arc/arc.c (arc_preferred_simd_mode): Likewise.
14670 * config/arm/arm.c (arm_preferred_simd_mode): Likewise.
14671 * config/c6x/c6x.c (c6x_preferred_simd_mode): Likewise.
14672 * config/epiphany/epiphany.c (epiphany_preferred_simd_mode): Likewise.
14673 * config/i386/i386.c (ix86_preferred_simd_mode): Likewise.
14674 * config/mips/mips.c (mips_preferred_simd_mode): Likewise.
14675 * config/nvptx/nvptx.c (nvptx_preferred_simd_mode): Likewise.
14676 * config/powerpcspe/powerpcspe.c (rs6000_preferred_simd_mode):
14677 Likewise.
14678 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Likewise.
14679 * config/s390/s390.c (s390_preferred_simd_mode): Likewise.
14680 * config/sparc/sparc.c (sparc_preferred_simd_mode): Likewise.
14681 * config/aarch64/aarch64.c (aarch64_preferred_simd_mode): Likewise.
14682 (aarch64_simd_scalar_immediate_valid_for_move): Update accordingly.
14683 * doc/tm.texi: Regenerate.
14684 * optabs-query.c (can_vec_mask_load_store_p): Return false for
14685 non-scalar modes.
14686
14687 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14688 Alan Hayward <alan.hayward@arm.com>
14689 David Sherwood <david.sherwood@arm.com>
14690
14691 * target.def (scalar_mode_supported_p): Take a scalar_mode
14692 instead of a machine_mode.
14693 * targhooks.h (default_scalar_mode_supported_p): Likewise.
14694 * targhooks.c (default_scalar_mode_supported_p): Likewise.
14695 * config/aarch64/aarch64.c (aarch64_scalar_mode_supported_p): Likewise.
14696 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): Likewise.
14697 * config/arm/arm.c (arm_scalar_mode_supported_p): Likewise.
14698 * config/avr/avr.c (avr_scalar_mode_supported_p): Likewise.
14699 * config/c6x/c6x.c (c6x_scalar_mode_supported_p): Likewise.
14700 * config/i386/i386.c (ix86_scalar_mode_supported_p): Likewise.
14701 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): Likewise.
14702 * config/mips/mips.c (mips_scalar_mode_supported_p): Likewise.
14703 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): Likewise.
14704 * config/pa/pa.c (pa_scalar_mode_supported_p): Likewise.
14705 * config/pdp11/pdp11.c (pdp11_scalar_mode_supported_p): Likewise.
14706 * config/powerpcspe/powerpcspe.c (rs6000_scalar_mode_supported_p):
14707 Likewise.
14708 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Likewise.
14709 * config/s390/s390.c (s390_scalar_mode_supported_p): Likewise.
14710 * config/spu/spu.c (spu_scalar_mode_supported_p): Likewise.
14711 * config/tilegx/tilegx.c (tilegx_scalar_mode_supported_p): Likewise.
14712 * config/tilepro/tilepro.c (tilepro_scalar_mode_supported_p):
14713 Likewise.
14714 * doc/tm.texi: Regenerate.
14715
14716 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14717 Alan Hayward <alan.hayward@arm.com>
14718 David Sherwood <david.sherwood@arm.com>
14719
14720 * coretypes.h (opt_scalar_mode): New typedef.
14721 * gdbhooks.py (build_pretty_printers): Handle it.
14722 * machmode.h (mode_iterator::get_2xwider): Add overload for
14723 opt_mode<T>.
14724 * emit-rtl.c (init_emit_once): Use opt_scalar_mode when iterating
14725 over scalar modes.
14726 * expr.c (convert_mode_scalar): Likewise.
14727 * omp-low.c (omp_clause_aligned_alignment): Likewise.
14728 * optabs.c (expand_float): Likewise.
14729 (expand_fix): Likewise.
14730 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
14731
14732 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14733 Alan Hayward <alan.hayward@arm.com>
14734 David Sherwood <david.sherwood@arm.com>
14735
14736 * optabs.c (expand_float): Explicitly check for scalars before
14737 using a branching expansion.
14738 (expand_fix): Likewise.
14739
14740 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14741 Alan Hayward <alan.hayward@arm.com>
14742 David Sherwood <david.sherwood@arm.com>
14743
14744 * expr.c (convert_mode): Split scalar handling out into...
14745 (convert_mode_scalar): ...this new function. Treat the modes
14746 as scalar_modes.
14747
14748 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14749 Alan Hayward <alan.hayward@arm.com>
14750 David Sherwood <david.sherwood@arm.com>
14751
14752 * omp-expand.c (expand_omp_atomic): Use is_int_mode, is_float_mode
14753 and scalar_mode.
14754 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Likewise.
14755
14756 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14757 Alan Hayward <alan.hayward@arm.com>
14758 David Sherwood <david.sherwood@arm.com>
14759
14760 * fixed-value.h (fixed_from_double_int): Take a scalar_mode
14761 rather than a machine_mode.
14762 (fixed_from_string): Likewise.
14763 (fixed_convert): Likewise.
14764 (fixed_convert_from_int): Likewise.
14765 (fixed_convert_from_real): Likewise.
14766 (real_convert_from_fixed): Likewise.
14767 * fixed-value.c (fixed_from_double_int): Likewise.
14768 (fixed_from_string): Likewise.
14769 (fixed_convert): Likewise.
14770 (fixed_convert_from_int): Likewise.
14771 (fixed_convert_from_real): Likewise.
14772 (real_convert_from_fixed): Likewise.
14773 * config/avr/avr.c (avr_out_round): Use as_a <scalar_mode>.
14774
14775 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14776 Alan Hayward <alan.hayward@arm.com>
14777 David Sherwood <david.sherwood@arm.com>
14778
14779 * emit-rtl.c (immed_double_const): Use is_a <scalar_mode> instead
14780 of separate mode class checks. Do not allow vector modes here.
14781 (immed_wide_int_const): Use as_a <scalar_mode>.
14782 * explow.c (trunc_int_for_mode): Likewise.
14783 * rtl.h (wi::int_traits<rtx_mode_t>::get_precision): Likewise.
14784 (wi::shwi): Likewise.
14785 (wi::min_value): Likewise.
14786 (wi::max_value): Likewise.
14787 * dwarf2out.c (loc_descriptor): Likewise.
14788 * simplify-rtx.c (simplify_immed_subreg): Fix rtx_mode_t argument
14789 for CONST_WIDE_INT.
14790
14791 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14792 Alan Hayward <alan.hayward@arm.com>
14793 David Sherwood <david.sherwood@arm.com>
14794
14795 * tree.h (SCALAR_TYPE_MODE): New macro.
14796 * expr.c (expand_expr_addr_expr_1): Use it.
14797 (expand_expr_real_2): Likewise.
14798 * fold-const.c (fold_convert_const_fixed_from_fixed): Likeise.
14799 (fold_convert_const_fixed_from_int): Likewise.
14800 (fold_convert_const_fixed_from_real): Likewise.
14801 (native_encode_fixed): Likewise
14802 (native_encode_complex): Likewise
14803 (native_encode_vector): Likewise.
14804 (native_interpret_fixed): Likewise.
14805 (native_interpret_real): Likewise.
14806 (native_interpret_complex): Likewise.
14807 (native_interpret_vector): Likewise.
14808 * omp-simd-clone.c (simd_clone_adjust_return_type): Likewise.
14809 (simd_clone_adjust_argument_types): Likewise.
14810 (simd_clone_init_simd_arrays): Likewise.
14811 (simd_clone_adjust): Likewise.
14812 * stor-layout.c (layout_type): Likewise.
14813 * tree.c (build_minus_one_cst): Likewise.
14814 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
14815 * tree-inline.c (estimate_move_cost): Likewise.
14816 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Likewise.
14817 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
14818 (vectorizable_reduction): Likewise.
14819 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
14820 (vect_recog_mixed_size_cond_pattern): Likewise.
14821 (check_bool_pattern): Likewise.
14822 (adjust_bool_pattern): Likewise.
14823 (search_type_for_mask_1): Likewise.
14824 * tree-vect-slp.c (vect_schedule_slp_instance): Likewise.
14825 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
14826 (vectorizable_load): Likewise.
14827 (vectorizable_store): Likewise.
14828 * ubsan.c (ubsan_encode_value): Likewise.
14829 * varasm.c (output_constant): Likewise.
14830
14831 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14832 Alan Hayward <alan.hayward@arm.com>
14833 David Sherwood <david.sherwood@arm.com>
14834
14835 * coretypes.h (scalar_mode): New class.
14836 * machmode.h (scalar_mode): Likewise.
14837 (scalar_mode::includes_p): New function.
14838 (mode_to_inner): Return a scalar_mode rather than a machine_mode.
14839 * gdbhooks.py (build_pretty_printers): Handle scalar_mode.
14840 * genmodes.c (get_mode_class): Handle remaining scalar modes.
14841 * cfgexpand.c (expand_debug_expr): Use scalar_mode.
14842 * expmed.c (store_bit_field_1): Likewise.
14843 (extract_bit_field_1): Likewise.
14844 * expr.c (write_complex_part): Likewise.
14845 (read_complex_part): Likewise.
14846 (emit_move_complex_push): Likewise.
14847 (expand_expr_real_2): Likewise.
14848 * function.c (assign_parm_setup_reg): Likewise.
14849 (assign_parms_unsplit_complex): Likewise.
14850 * optabs.c (expand_binop): Likewise.
14851 * rtlanal.c (subreg_get_info): Likewise.
14852 * simplify-rtx.c (simplify_immed_subreg): Likewise.
14853 * varasm.c (output_constant_pool_2): Likewise.
14854
14855 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14856 Alan Hayward <alan.hayward@arm.com>
14857 David Sherwood <david.sherwood@arm.com>
14858
14859 * expmed.c (extract_high_half): Use scalar_int_mode and remove
14860 assertion.
14861 (expmed_mult_highpart_optab): Likewise.
14862 (expmed_mult_highpart): Likewise.
14863
14864 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
14865 Alan Hayward <alan.hayward@arm.com>
14866 David Sherwood <david.sherwood@arm.com>
14867
14868 * builtins.h (builtin_strncpy_read_str): Take a scalar_int_mode
14869 instead of a machine_mode.
14870 (builtin_memset_read_str): Likewise.
14871 * builtins.c (c_readstr): Likewise.
14872 (builtin_memcpy_read_str): Likewise.
14873 (builtin_strncpy_read_str): Likewise.
14874 (builtin_memset_read_str): Likewise.
14875 (builtin_memset_gen_str): Likewise.
14876 (expand_builtin_signbit): Use scalar_int_mode for local variables.
14877 * cfgexpand.c (convert_debug_memory_address): Take a scalar_int_mode
14878 instead of a machine_mode.
14879 * combine.c (simplify_if_then_else): Use scalar_int_mode for local
14880 variables.
14881 (make_extraction): Likewise.
14882 (try_widen_shift_mode): Take and return scalar_int_modes instead
14883 of machine_modes.
14884 * config/aarch64/aarch64.c (aarch64_libgcc_cmp_return_mode): Return
14885 a scalar_int_mode instead of a machine_mode.
14886 * config/avr/avr.c (avr_addr_space_address_mode): Likewise.
14887 (avr_addr_space_pointer_mode): Likewise.
14888 * config/cr16/cr16.c (cr16_unwind_word_mode): Likewise.
14889 * config/msp430/msp430.c (msp430_addr_space_pointer_mode): Likewise.
14890 (msp430_unwind_word_mode): Likewise.
14891 * config/spu/spu.c (spu_unwind_word_mode): Likewise.
14892 (spu_addr_space_pointer_mode): Likewise.
14893 (spu_addr_space_address_mode): Likewise.
14894 (spu_libgcc_cmp_return_mode): Likewise.
14895 (spu_libgcc_shift_count_mode): Likewise.
14896 * config/rl78/rl78.c (rl78_addr_space_address_mode): Likewise.
14897 (rl78_addr_space_pointer_mode): Likewise.
14898 (fl78_unwind_word_mode): Likewise.
14899 (rl78_valid_pointer_mode): Take a scalar_int_mode instead of a
14900 machine_mode.
14901 * config/alpha/alpha.c (vms_valid_pointer_mode): Likewise.
14902 * config/ia64/ia64.c (ia64_vms_valid_pointer_mode): Likewise.
14903 * config/mips/mips.c (mips_mode_rep_extended): Likewise.
14904 (mips_valid_pointer_mode): Likewise.
14905 * config/tilegx/tilegx.c (tilegx_mode_rep_extended): Likewise.
14906 * config/ft32/ft32.c (ft32_valid_pointer_mode): Likewise.
14907 (ft32_addr_space_pointer_mode): Return a scalar_int_mode instead
14908 of a machine_mode.
14909 (ft32_addr_space_address_mode): Likewise.
14910 * config/m32c/m32c.c (m32c_valid_pointer_mode): Take a
14911 scalar_int_mode instead of a machine_mode.
14912 (m32c_addr_space_pointer_mode): Return a scalar_int_mode instead
14913 of a machine_mode.
14914 (m32c_addr_space_address_mode): Likewise.
14915 * config/powerpcspe/powerpcspe.c (rs6000_abi_word_mode): Likewise.
14916 (rs6000_eh_return_filter_mode): Likewise.
14917 * config/rs6000/rs6000.c (rs6000_abi_word_mode): Likewise.
14918 (rs6000_eh_return_filter_mode): Likewise.
14919 * config/s390/s390.c (s390_libgcc_cmp_return_mode): Likewise.
14920 (s390_libgcc_shift_count_mode): Likewise.
14921 (s390_unwind_word_mode): Likewise.
14922 (s390_valid_pointer_mode): Take a scalar_int_mode rather than a
14923 machine_mode.
14924 * target.def (mode_rep_extended): Likewise.
14925 (valid_pointer_mode): Likewise.
14926 (addr_space.valid_pointer_mode): Likewise.
14927 (eh_return_filter_mode): Return a scalar_int_mode rather than
14928 a machine_mode.
14929 (libgcc_cmp_return_mode): Likewise.
14930 (libgcc_shift_count_mode): Likewise.
14931 (unwind_word_mode): Likewise.
14932 (addr_space.pointer_mode): Likewise.
14933 (addr_space.address_mode): Likewise.
14934 * doc/tm.texi: Regenerate.
14935 * dojump.c (prefer_and_bit_test): Take a scalar_int_mode rather than
14936 a machine_mode.
14937 (do_jump): Use scalar_int_mode for local variables.
14938 * dwarf2cfi.c (init_return_column_size): Take a scalar_int_mode
14939 rather than a machine_mode.
14940 * dwarf2out.c (convert_descriptor_to_mode): Likewise.
14941 (scompare_loc_descriptor_wide): Likewise.
14942 (scompare_loc_descriptor_narrow): Likewise.
14943 * emit-rtl.c (adjust_address_1): Use scalar_int_mode for local
14944 variables.
14945 * except.c (sjlj_emit_dispatch_table): Likewise.
14946 (expand_builtin_eh_copy_values): Likewise.
14947 * explow.c (convert_memory_address_addr_space_1): Likewise.
14948 Take a scalar_int_mode rather than a machine_mode.
14949 (convert_memory_address_addr_space): Take a scalar_int_mode rather
14950 than a machine_mode.
14951 (memory_address_addr_space): Use scalar_int_mode for local variables.
14952 * expmed.h (expand_mult_highpart_adjust): Take a scalar_int_mode
14953 rather than a machine_mode.
14954 * expmed.c (mask_rtx): Likewise.
14955 (init_expmed_one_conv): Likewise.
14956 (expand_mult_highpart_adjust): Likewise.
14957 (extract_high_half): Likewise.
14958 (expmed_mult_highpart_optab): Likewise.
14959 (expmed_mult_highpart): Likewise.
14960 (expand_smod_pow2): Likewise.
14961 (expand_sdiv_pow2): Likewise.
14962 (emit_store_flag_int): Likewise.
14963 (adjust_bit_field_mem_for_reg): Use scalar_int_mode for local
14964 variables.
14965 (extract_low_bits): Likewise.
14966 * expr.h (by_pieces_constfn): Take a scalar_int_mode rather than
14967 a machine_mode.
14968 * expr.c (pieces_addr::adjust): Likewise.
14969 (can_store_by_pieces): Likewise.
14970 (store_by_pieces): Likewise.
14971 (clear_by_pieces_1): Likewise.
14972 (expand_expr_addr_expr_1): Likewise.
14973 (expand_expr_addr_expr): Use scalar_int_mode for local variables.
14974 (expand_expr_real_1): Likewise.
14975 (try_casesi): Likewise.
14976 * final.c (shorten_branches): Likewise.
14977 * fold-const.c (fold_convert_const_int_from_fixed): Change the
14978 type of "mode" to machine_mode.
14979 * internal-fn.c (expand_arith_overflow_result_store): Take a
14980 scalar_int_mode rather than a machine_mode.
14981 (expand_mul_overflow): Use scalar_int_mode for local variables.
14982 * loop-doloop.c (doloop_modify): Likewise.
14983 (doloop_optimize): Likewise.
14984 * optabs.c (expand_subword_shift): Take a scalar_int_mode rather
14985 than a machine_mode.
14986 (expand_doubleword_shift_condmove): Likewise.
14987 (expand_doubleword_shift): Likewise.
14988 (expand_doubleword_clz): Likewise.
14989 (expand_doubleword_popcount): Likewise.
14990 (expand_doubleword_parity): Likewise.
14991 (expand_absneg_bit): Use scalar_int_mode for local variables.
14992 (prepare_float_lib_cmp): Likewise.
14993 * rtl.h (convert_memory_address_addr_space_1): Take a scalar_int_mode
14994 rather than a machine_mode.
14995 (convert_memory_address_addr_space): Likewise.
14996 (get_mode_bounds): Likewise.
14997 (get_address_mode): Return a scalar_int_mode rather than a
14998 machine_mode.
14999 * rtlanal.c (get_address_mode): Likewise.
15000 * stor-layout.c (get_mode_bounds): Take a scalar_int_mode rather
15001 than a machine_mode.
15002 * targhooks.c (default_mode_rep_extended): Likewise.
15003 (default_valid_pointer_mode): Likewise.
15004 (default_addr_space_valid_pointer_mode): Likewise.
15005 (default_eh_return_filter_mode): Return a scalar_int_mode rather
15006 than a machine_mode.
15007 (default_libgcc_cmp_return_mode): Likewise.
15008 (default_libgcc_shift_count_mode): Likewise.
15009 (default_unwind_word_mode): Likewise.
15010 (default_addr_space_pointer_mode): Likewise.
15011 (default_addr_space_address_mode): Likewise.
15012 * targhooks.h (default_eh_return_filter_mode): Likewise.
15013 (default_libgcc_cmp_return_mode): Likewise.
15014 (default_libgcc_shift_count_mode): Likewise.
15015 (default_unwind_word_mode): Likewise.
15016 (default_addr_space_pointer_mode): Likewise.
15017 (default_addr_space_address_mode): Likewise.
15018 (default_mode_rep_extended): Take a scalar_int_mode rather than
15019 a machine_mode.
15020 (default_valid_pointer_mode): Likewise.
15021 (default_addr_space_valid_pointer_mode): Likewise.
15022 * tree-ssa-address.c (addr_for_mem_ref): Use scalar_int_mode for
15023 local variables.
15024 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Take a scalar_int_mode
15025 rather than a machine_mode.
15026 * tree-switch-conversion.c (array_value_type): Use scalar_int_mode
15027 for local variables.
15028 * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
15029 * var-tracking.c (use_narrower_mode): Take a scalar_int_mode rather
15030 than a machine_mode.
15031
15032 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15033 Alan Hayward <alan.hayward@arm.com>
15034 David Sherwood <david.sherwood@arm.com>
15035
15036 * dojump.c (do_jump_by_parts_greater_rtx): Change the type of
15037 the mode argument to scalar_int_mode.
15038 (do_jump_by_parts_zero_rtx): Likewise.
15039 (do_jump_by_parts_equality_rtx): Likewise.
15040 (do_jump_by_parts_greater): Take a mode argument.
15041 (do_jump_by_parts_equality): Likewise.
15042 (do_jump_1): Update calls accordingly.
15043
15044 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15045 Alan Hayward <alan.hayward@arm.com>
15046 David Sherwood <david.sherwood@arm.com>
15047
15048 * is-a.h (safe_dyn_cast): New function.
15049 * rtl.h (rtx_jump_table_data::get_data_mode): New function.
15050 (jump_table_for_label): Likewise.
15051 * final.c (final_addr_vec_align): Take an rtx_jump_table_data *
15052 instead of an rtx_insn *.
15053 (shorten_branches): Use dyn_cast instead of LABEL_P and
15054 JUMP_TABLE_DATA_P. Use jump_table_for_label and
15055 rtx_jump_table_data::get_data_mode.
15056 (final_scan_insn): Likewise.
15057
15058 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15059 Alan Hayward <alan.hayward@arm.com>
15060 David Sherwood <david.sherwood@arm.com>
15061
15062 * combine.c (try_combine): Use is_a <scalar_int_mode> when
15063 trying to combine a full-register integer set with a subreg
15064 integer set.
15065
15066 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15067 Alan Hayward <alan.hayward@arm.com>
15068 David Sherwood <david.sherwood@arm.com>
15069
15070 * expr.c (expand_expr_addr_expr): Add a new_tmode local variable
15071 that is always either address_mode or pointer_mode.
15072
15073 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15074 Alan Hayward <alan.hayward@arm.com>
15075 David Sherwood <david.sherwood@arm.com>
15076
15077 * expr.c (expand_expr_real_2): Use word_mode instead of innermode
15078 when the two are known to be equal.
15079
15080 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15081 Alan Hayward <alan.hayward@arm.com>
15082 David Sherwood <david.sherwood@arm.com>
15083
15084 * simplify-rtx.c (simplify_const_unary_operation): Use
15085 is_a <scalar_int_mode> instead of checking for a nonzero
15086 precision. Forcibly convert op_mode to a scalar_int_mode
15087 in that case. More clearly differentiate the operand and
15088 result modes and use the former when deciding what the value
15089 of a count-bits operation should be. Use is_int_mode instead
15090 of checking for a MODE_INT. Remove redundant check for whether
15091 this mode has a zero precision.
15092
15093 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15094 Alan Hayward <alan.hayward@arm.com>
15095 David Sherwood <david.sherwood@arm.com>
15096
15097 * optabs.c (widen_leading): Change the type of the mode argument
15098 to scalar_int_mode. Use opt_scalar_int_mode for the mode iterator.
15099 (widen_bswap): Likewise.
15100 (expand_parity): Likewise.
15101 (expand_ctz): Change the type of the mode argument to scalar_int_mode.
15102 (expand_ffs): Likewise.
15103 (epand_unop): Check for scalar integer modes before calling the
15104 above routines.
15105
15106 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15107 Alan Hayward <alan.hayward@arm.com>
15108 David Sherwood <david.sherwood@arm.com>
15109
15110 * expr.c (const_scalar_mask_from_tree): Add a mode argument.
15111 Expand commentary.
15112 (expand_expr_real_1): Update call accordingly.
15113
15114 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15115 Alan Hayward <alan.hayward@arm.com>
15116 David Sherwood <david.sherwood@arm.com>
15117
15118 * expmed.c (store_bit_field_using_insv): Add op0_mode and
15119 value_mode arguments. Use scalar_int_mode internally.
15120 (store_bit_field_1): Rename the new integer mode from imode
15121 to op0_mode and use it instead of GET_MODE (op0). Update calls
15122 to store_split_bit_field, store_bit_field_using_insv and
15123 store_fixed_bit_field.
15124 (store_fixed_bit_field): Add op0_mode and value_mode arguments.
15125 Use scalar_int_mode internally. Use a bit count rather than a mode
15126 when calculating the largest bit size for get_best_mode.
15127 Update calls to store_split_bit_field and store_fixed_bit_field_1.
15128 (store_fixed_bit_field_1): Add mode and value_mode arguments.
15129 Remove assertion that OP0 has a scalar integer mode.
15130 (store_split_bit_field): Add op0_mode and value_mode arguments.
15131 Update calls to extract_fixed_bit_field.
15132 (extract_bit_field_using_extv): Add an op0_mode argument.
15133 Use scalar_int_mode internally.
15134 (extract_bit_field_1): Rename the new integer mode from imode to
15135 op0_mode and use it instead of GET_MODE (op0). Update calls to
15136 extract_split_bit_field, extract_bit_field_using_extv and
15137 extract_fixed_bit_field.
15138 (extract_fixed_bit_field): Add an op0_mode argument. Update calls
15139 to extract_split_bit_field and extract_fixed_bit_field_1.
15140 (extract_fixed_bit_field_1): Add a mode argument. Remove assertion
15141 that OP0 has a scalar integer mode. Use as_a <scalar_int_mode>
15142 on the target mode.
15143 (extract_split_bit_field): Add an op0_mode argument. Update call
15144 to extract_fixed_bit_field.
15145
15146 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15147 Alan Hayward <alan.hayward@arm.com>
15148 David Sherwood <david.sherwood@arm.com>
15149
15150 * cse.c (cse_insn): Use opt_scalar_int_mode for the mode iterator.
15151 * explow.c (hard_function_value): Likewise.
15152 * expmed.c (extract_fixed_bit_field_1): Likewise. Move the
15153 convert_to_mode call outside the loop.
15154 * expr.c (alignment_for_piecewise_move): Use opt_scalar_int_mode
15155 for the mode iterator. Require the mode specified by max_pieces
15156 to exist.
15157 (emit_block_move_via_movmem): Use opt_scalar_int_mode for the
15158 mode iterator.
15159 (copy_blkmode_to_reg): Likewise.
15160 (set_storage_via_setmem): Likewise.
15161 * optabs.c (prepare_cmp_insn): Likewise.
15162 * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
15163 * stor-layout.c (finish_bitfield_representative): Likewise.
15164
15165 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15166 Alan Hayward <alan.hayward@arm.com>
15167 David Sherwood <david.sherwood@arm.com>
15168
15169 * rtl.h (subreg_unpromoted_mode, subreg_promoted_mode): New functions.
15170 * expr.c (convert_move): Use them.
15171 (convert_modes): Likewise.
15172 (store_expr_with_bounds): Likewise.
15173
15174 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15175 Alan Hayward <alan.hayward@arm.com>
15176 David Sherwood <david.sherwood@arm.com>
15177
15178 * rtl.h (rtl_hooks::reg_nonzero_bits): Add a scalar_int_mode
15179 parameter for the mode of "x". Remove the "known_x", "known_mode"
15180 and "known_ret" arguments. Change the type of the mode argument
15181 to scalar_int_mode.
15182 (rtl_hooks:reg_num_sign_bit_copies): Likewise.
15183 * combine.c (reg_nonzero_bits_for_combine): Update accordingly.
15184 (reg_num_sign_bit_copies_for_combine): Likewise.
15185 * rtlanal.c (nonzero_bits1): Likewise.
15186 (num_sign_bit_copies1): Likewise.
15187 * rtlhooks-def.h (reg_nonzero_bits_general): Likewise.
15188 (reg_num_sign_bit_copies_general): Likewise.
15189 * rtlhooks.c (reg_num_sign_bit_copies_general): Likewise.
15190 (reg_nonzero_bits_general): Likewise.
15191
15192 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15193 Alan Hayward <alan.hayward@arm.com>
15194 David Sherwood <david.sherwood@arm.com>
15195
15196 * rtlanal.c (num_sign_bit_copies): Handle VOIDmode here rather
15197 than in subroutines. Return 1 for non-integer modes.
15198 (cached_num_sign_bit_copies): Change the type of the mode parameter
15199 to scalar_int_mode.
15200 (num_sign_bit_copies1): Likewise. Remove early exit for other mode
15201 classes. Handle CONST_INT_P first and then check whether X also
15202 has a scalar integer mode. Check the same thing for inner registers
15203 of a SUBREG and for values that are being extended or truncated.
15204
15205 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15206 Alan Hayward <alan.hayward@arm.com>
15207 David Sherwood <david.sherwood@arm.com>
15208
15209 * rtlanal.c (nonzero_bits): Handle VOIDmode here rather than
15210 in subroutines. Return the mode mask for non-integer modes.
15211 (cached_nonzero_bits): Change the type of the mode parameter
15212 to scalar_int_mode.
15213 (nonzero_bits1): Likewise. Remove early exit for other mode
15214 classes. Handle CONST_INT_P first and then check whether X
15215 also has a scalar integer mode.
15216
15217 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15218 Alan Hayward <alan.hayward@arm.com>
15219 David Sherwood <david.sherwood@arm.com>
15220
15221 * expr.c (widest_int_mode_for_size): Make the comment match the code.
15222 Return a scalar_int_mode and assert that the size is greater than
15223 one byte.
15224 (by_pieces_ninsns): Update accordingly and remove VOIDmode handling.
15225 (op_by_pieces_d::op_by_pieces_d): Likewise.
15226 (op_by_pieces_d::run): Likewise.
15227 (can_store_by_pieces): Likewise.
15228
15229 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15230 Alan Hayward <alan.hayward@arm.com>
15231 David Sherwood <david.sherwood@arm.com>
15232
15233 * combine.c (extract_left_shift): Add a mode argument and update
15234 recursive calls.
15235 (make_compound_operation_int): Change the type of the mode parameter
15236 to scalar_int_mode and update the call to extract_left_shift.
15237
15238 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15239 Alan Hayward <alan.hayward@arm.com>
15240 David Sherwood <david.sherwood@arm.com>
15241
15242 * combine.c (simplify_and_const_int): Change the type of the mode
15243 parameter to scalar_int_mode.
15244 (simplify_and_const_int_1): Likewise. Update recursive call.
15245
15246 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15247 Alan Hayward <alan.hayward@arm.com>
15248 David Sherwood <david.sherwood@arm.com>
15249
15250 * combine.c (simplify_compare_const): Check that the mode is a
15251 scalar_int_mode (rather than VOIDmode) before testing its
15252 precision.
15253 (simplify_comparison): Move COMPARISON_P handling out of the
15254 loop and restrict the latter part of the loop to scalar_int_modes.
15255 Check is_a <scalar_int_mode> before calling HWI_COMPUTABLE_MODE_P
15256 and when considering SUBREG_REGs. Use is_int_mode instead of
15257 checking GET_MODE_CLASS against MODE_INT.
15258
15259 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15260 Alan Hayward <alan.hayward@arm.com>
15261 David Sherwood <david.sherwood@arm.com>
15262
15263 * combine.c (try_widen_shift_mode): Move check for equal modes to...
15264 (simplify_shift_const_1): ...here. Use scalar_int_mode for
15265 shift_unit_mode and for modes involved in scalar shifts.
15266
15267 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15268 Alan Hayward <alan.hayward@arm.com>
15269 David Sherwood <david.sherwood@arm.com>
15270
15271 * combine.c (force_int_to_mode): New function, split out from...
15272 (force_to_mode): ...here. Keep xmode up-to-date and use it
15273 instead of GET_MODE (x).
15274
15275 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15276 Alan Hayward <alan.hayward@arm.com>
15277 David Sherwood <david.sherwood@arm.com>
15278
15279 * optabs-query.h (extraction_insn::struct_mode): Change type to
15280 opt_scalar_int_mode and update comment.
15281 (extraction_insn::field_mode): Change type to scalar_int_mode.
15282 (extraction_insn::pos_mode): Likewise.
15283 * combine.c (make_extraction): Update accordingly.
15284 * optabs-query.c (get_traditional_extraction_insn): Likewise.
15285 (get_optab_extraction_insn): Likewise.
15286 * recog.c (simplify_while_replacing): Likewise.
15287 * expmed.c (narrow_bit_field_mem): Change the type of the mode
15288 parameter to opt_scalar_int_mode.
15289
15290 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15291 Alan Hayward <alan.hayward@arm.com>
15292 David Sherwood <david.sherwood@arm.com>
15293
15294 * machmode.h (bit_field_mode_iterator::next_mode): Take a pointer
15295 to a scalar_int_mode instead of a machine_mode.
15296 (bit_field_mode_iterator::m_mode): Change type to opt_scalar_int_mode.
15297 (get_best_mode): Return a boolean and use a pointer argument to store
15298 the selected mode. Replace the limit mode parameter with a bit limit.
15299 * expmed.c (adjust_bit_field_mem_for_reg): Use scalar_int_mode
15300 for the values returned by bit_field_mode_iterator::next_mode.
15301 (store_bit_field): Update call to get_best_mode.
15302 (store_fixed_bit_field): Likewise.
15303 (extract_fixed_bit_field): Likewise.
15304 * expr.c (optimize_bitfield_assignment_op): Likewise.
15305 * fold-const.c (optimize_bit_field_compare): Likewise.
15306 (fold_truth_andor_1): Likewise.
15307 * stor-layout.c (bit_field_mode_iterator::next_mode): As above.
15308 Update for new type of m_mode.
15309 (get_best_mode): As above.
15310
15311 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15312 Alan Hayward <alan.hayward@arm.com>
15313 David Sherwood <david.sherwood@arm.com>
15314
15315 * expmed.c (strict_volatile_bitfield_p): Change the type of fieldmode
15316 to scalar_int_mode. Remove check for SCALAR_INT_MODE_P.
15317 (store_bit_field): Check is_a <scalar_int_mode> before calling
15318 strict_volatile_bitfield_p.
15319 (extract_bit_field): Likewise.
15320
15321 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15322 Alan Hayward <alan.hayward@arm.com>
15323 David Sherwood <david.sherwood@arm.com>
15324
15325 * target.def (cstore_mode): Return a scalar_int_mode.
15326 * doc/tm.texi: Regenerate.
15327 * config/sparc/sparc.c (sparc_cstore_mode): Return a scalar_int_mode.
15328 * targhooks.h (default_cstore_mode): Likewise.
15329 * targhooks.c (default_cstore_mode): Likewise, using a forced
15330 conversion.
15331 * expmed.c (emit_cstore): Expect the target of the cstore to be
15332 a scalar_int_mode.
15333
15334 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15335 Alan Hayward <alan.hayward@arm.com>
15336 David Sherwood <david.sherwood@arm.com>
15337
15338 * cfgloop.h (rtx_iv): Change type of extend_mode and mode to
15339 scalar_int_mode.
15340 (niter_desc): Likewise mode.
15341 (iv_analyze): Add a mode parameter.
15342 (biv_p): Likewise.
15343 (iv_analyze_expr): Pass the mode paraeter before the rtx it describes
15344 and change its type to scalar_int_mode.
15345 * loop-iv.c: Update commentary at head of file.
15346 (iv_constant): Pass the mode paraeter before the rtx it describes
15347 and change its type to scalar_int_mode. Remove VOIDmode handling.
15348 (iv_subreg): Change the type of the mode parameter to scalar_int_mode.
15349 (iv_extend): Likewise.
15350 (shorten_into_mode): Likewise.
15351 (iv_add): Use scalar_int_mode.
15352 (iv_mult): Likewise.
15353 (iv_shift): Likewise.
15354 (canonicalize_iv_subregs): Likewise.
15355 (get_biv_step_1): Pass the outer_mode parameter before the rtx
15356 it describes and change its mode to scalar_int_mode. Also change
15357 the type of the returned inner_mode to scalar_int_mode.
15358 (get_biv_step): Likewise, turning outer_mode from a pointer
15359 into a direct parameter. Update call to get_biv_step_1.
15360 (iv_analyze_biv): Add an outer_mode parameter. Update calls to
15361 iv_constant and get_biv_step.
15362 (iv_analyze_expr): Pass the mode parameter before the rtx it describes
15363 and change its type to scalar_int_mode. Don't initialise iv->mode
15364 to VOIDmode and remove later checks for its still being VOIDmode.
15365 Update calls to iv_analyze_op and iv_analyze_expr. Check
15366 is_a <scalar_int_mode> when changing the mode under consideration.
15367 (iv_analyze_def): Ignore registers that don't have a scalar_int_mode.
15368 Update call to iv_analyze_expr.
15369 (iv_analyze_op): Add a mode parameter. Reject subregs whose
15370 inner register is not also a scalar_int_mode. Update call to
15371 iv_analyze_biv.
15372 (iv_analyze): Add a mode parameter. Update call to iv_analyze_op.
15373 (biv_p): Add a mode parameter. Update call to iv_analyze_biv.
15374 (iv_number_of_iterations): Use is_a <scalar_int_mode> instead of
15375 separate mode class checks. Update calls to iv_analyze. Remove
15376 fix-up of VOIDmodes after iv_analyze_biv.
15377 * loop-unroll.c (analyze_iv_to_split_insn): Reject registers that
15378 don't have a scalar_int_mode. Update call to biv_p.
15379
15380 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15381 Alan Hayward <alan.hayward@arm.com>
15382 David Sherwood <david.sherwood@arm.com>
15383
15384 * cfgexpand.c (convert_debug_memory_address): Use
15385 as_a <scalar_int_mode>.
15386 * combine.c (expand_compound_operation): Likewise.
15387 (make_extraction): Likewise.
15388 (change_zero_ext): Likewise.
15389 (simplify_comparison): Likewise.
15390 * cse.c (cse_insn): Likewise.
15391 * dwarf2out.c (minmax_loc_descriptor): Likewise.
15392 (mem_loc_descriptor): Likewise.
15393 (loc_descriptor): Likewise.
15394 * expmed.c (init_expmed_one_mode): Likewise.
15395 (synth_mult): Likewise.
15396 (emit_store_flag_1): Likewise.
15397 (expand_divmod): Likewise. Use HWI_COMPUTABLE_MODE_P instead
15398 of a comparison with size.
15399 * expr.c (expand_assignment): Use as_a <scalar_int_mode>.
15400 (reduce_to_bit_field_precision): Likewise.
15401 * function.c (expand_function_end): Likewise.
15402 * internal-fn.c (expand_arith_overflow_result_store): Likewise.
15403 * loop-doloop.c (doloop_modify): Likewise.
15404 * optabs.c (expand_binop): Likewise.
15405 (expand_unop): Likewise.
15406 (expand_copysign_absneg): Likewise.
15407 (prepare_cmp_insn): Likewise.
15408 (maybe_legitimize_operand): Likewise.
15409 * recog.c (const_scalar_int_operand): Likewise.
15410 * rtlanal.c (get_address_mode): Likewise.
15411 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
15412 (simplify_cond_clz_ctz): Likewise.
15413 * tree-nested.c (get_nl_goto_field): Likewise.
15414 * tree.c (build_vector_type_for_mode): Likewise.
15415 * var-tracking.c (use_narrower_mode): Likewise.
15416
15417 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15418 Alan Hayward <alan.hayward@arm.com>
15419 David Sherwood <david.sherwood@arm.com>
15420
15421 * tree.h (SCALAR_INT_TYPE_MODE): New macro.
15422 * builtins.c (expand_builtin_signbit): Use it.
15423 * cfgexpand.c (expand_debug_expr): Likewise.
15424 * dojump.c (do_jump): Likewise.
15425 (do_compare_and_jump): Likewise.
15426 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Likewise.
15427 * expmed.c (make_tree): Likewise.
15428 * expr.c (expand_expr_real_2): Likewise.
15429 (expand_expr_real_1): Likewise.
15430 (try_casesi): Likewise.
15431 * fold-const-call.c (fold_const_call_ss): Likewise.
15432 * fold-const.c (unextend): Likewise.
15433 (extract_muldiv_1): Likewise.
15434 (fold_single_bit_test): Likewise.
15435 (native_encode_int): Likewise.
15436 (native_encode_string): Likewise.
15437 (native_interpret_int): Likewise.
15438 * gimple-fold.c (gimple_fold_builtin_memset): Likewise.
15439 * internal-fn.c (expand_addsub_overflow): Likewise.
15440 (expand_neg_overflow): Likewise.
15441 (expand_mul_overflow): Likewise.
15442 (expand_arith_overflow): Likewise.
15443 * match.pd: Likewise.
15444 * stor-layout.c (layout_type): Likewise.
15445 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15446 * tree-ssa-math-opts.c (convert_mult_to_widen): Likewise.
15447 * tree-ssanames.c (get_range_info): Likewise.
15448 * tree-switch-conversion.c (array_value_type) Likewise.
15449 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
15450 (vect_recog_divmod_pattern): Likewise.
15451 (vect_recog_mixed_size_cond_pattern): Likewise.
15452 * tree-vrp.c (extract_range_basic): Likewise.
15453 (simplify_float_conversion_using_ranges): Likewise.
15454 * tree.c (int_fits_type_p): Likewise.
15455 * ubsan.c (instrument_bool_enum_load): Likewise.
15456 * varasm.c (mergeable_string_section): Likewise.
15457 (narrowing_initializer_constant_valid_p): Likewise.
15458 (output_constant): Likewise.
15459
15460 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15461 Alan Hayward <alan.hayward@arm.com>
15462 David Sherwood <david.sherwood@arm.com>
15463
15464 * machmode.h (NARROWEST_INT_MODE): New macro.
15465 * expr.c (alignment_for_piecewise_move): Use it instead of
15466 GET_CLASS_NARROWEST_MODE (MODE_INT).
15467 (push_block): Likewise.
15468 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
15469 Likewise.
15470 * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
15471
15472 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15473 Alan Hayward <alan.hayward@arm.com>
15474 David Sherwood <david.sherwood@arm.com>
15475
15476 * postreload.c (move2add_valid_value_p): Change the type of the
15477 mode parameter to scalar_int_mode.
15478 (move2add_use_add2_insn): Add a mode parameter and use it instead
15479 of GET_MODE (reg).
15480 (move2add_use_add3_insn): Likewise.
15481 (reload_cse_move2add): Update accordingly.
15482
15483 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15484 Alan Hayward <alan.hayward@arm.com>
15485 David Sherwood <david.sherwood@arm.com>
15486
15487 * expr.c (expand_expr_real_2): Use scalar_int_mode for the
15488 double-word mode.
15489 * lower-subreg.c (resolve_shift_zext): Use is_a <scalar_int_mode>.
15490 * optabs.c (expand_unop): Likewise.
15491
15492 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15493 Alan Hayward <alan.hayward@arm.com>
15494 David Sherwood <david.sherwood@arm.com>
15495
15496 * dwarf2out.c (typed_binop): Change mode parameter to scalar_int_mode.
15497 (clz_loc_descriptor): Likewise. Remove SCALAR_INT_MODE_P check.
15498 (popcount_loc_descriptor): Likewise.
15499 (bswap_loc_descriptor): Likewise.
15500 (rotate_loc_descriptor): Likewise.
15501 (mem_loc_descriptor): Add is_a <scalar_int_mode> checks before
15502 calling the functions above.
15503
15504 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15505 Alan Hayward <alan.hayward@arm.com>
15506 David Sherwood <david.sherwood@arm.com>
15507
15508 * combine.c (sign_extend_short_imm): Add is_a <scalar_int_mode>
15509 checks.
15510 (try_combine): Likewise.
15511 (simplify_if_then_else): Likewise.
15512 * cse.c (cse_insn): Likewise.
15513 * dwarf2out.c (mem_loc_descriptor): Likewise.
15514 * emit-rtl.c (gen_lowpart_common): Likewise.
15515 * simplify-rtx.c (simplify_truncation): Likewise.
15516 (simplify_binary_operation_1): Likewise.
15517 (simplify_const_relational_operation): Likewise.
15518 (simplify_ternary_operation): Likewise.
15519 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
15520
15521 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15522 Alan Hayward <alan.hayward@arm.com>
15523 David Sherwood <david.sherwood@arm.com>
15524
15525 * cse.c (cse_insn): Add is_a <scalar_int_mode> checks.
15526 * reload.c (push_reload): Likewise.
15527 (find_reloads): Likewise.
15528
15529 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15530 Alan Hayward <alan.hayward@arm.com>
15531 David Sherwood <david.sherwood@arm.com>
15532
15533 * combine.c (find_split_point): Add is_a <scalar_int_mode> checks.
15534 (make_compound_operation_int): Likewise.
15535 (change_zero_ext): Likewise.
15536 * expr.c (convert_move): Likewise.
15537 (convert_modes): Likewise.
15538 * fwprop.c (forward_propagate_subreg): Likewise.
15539 * loop-iv.c (get_biv_step_1): Likewise.
15540 * optabs.c (widen_operand): Likewise.
15541 * postreload.c (move2add_valid_value_p): Likewise.
15542 * recog.c (simplify_while_replacing): Likewise.
15543 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
15544 (simplify_binary_operation_1): Likewise. Remove redundant
15545 mode equality check.
15546
15547 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15548 Alan Hayward <alan.hayward@arm.com>
15549 David Sherwood <david.sherwood@arm.com>
15550
15551 * combine.c (combine_simplify_rtx): Add checks for
15552 is_a <scalar_int_mode>.
15553 (simplify_if_then_else): Likewise.
15554 (make_field_assignment): Likewise.
15555 (simplify_comparison): Likewise.
15556 * ifcvt.c (noce_try_bitop): Likewise.
15557 * loop-invariant.c (canonicalize_address_mult): Likewise.
15558 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
15559
15560 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15561 Alan Hayward <alan.hayward@arm.com>
15562 David Sherwood <david.sherwood@arm.com>
15563
15564 * gimple-fold.c (gimple_fold_builtin_memory_op): Use
15565 is_a <scalar_int_mode> instead of != BLKmode.
15566
15567 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15568 Alan Hayward <alan.hayward@arm.com>
15569 David Sherwood <david.sherwood@arm.com>
15570
15571 * cfgexpand.c (expand_debug_expr): Use is_a <scalar_int_mode>
15572 instead of != VOIDmode.
15573 * combine.c (if_then_else_cond): Likewise.
15574 (change_zero_ext): Likewise.
15575 * dwarf2out.c (mem_loc_descriptor): Likewise.
15576 (loc_descriptor): Likewise.
15577 * rtlanal.c (canonicalize_condition): Likewise.
15578 * simplify-rtx.c (simplify_relational_operation_1): Likewise.
15579
15580 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15581 Alan Hayward <alan.hayward@arm.com>
15582 David Sherwood <david.sherwood@arm.com>
15583
15584 * simplify-rtx.c (simplify_binary_operation_1): Use
15585 is_a <scalar_int_mode> instead of !VECTOR_MODE_P.
15586
15587 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15588 Alan Hayward <alan.hayward@arm.com>
15589 David Sherwood <david.sherwood@arm.com>
15590
15591 * wide-int.h (int_traits<unsigned char>) New class.
15592 (int_traits<unsigned short>) Likewise.
15593 * cfgexpand.c (expand_debug_expr): Use is_a <scalar_int_mode>.
15594 Use GET_MODE_UNIT_PRECISION and remove redundant test for
15595 SCALAR_INT_MODE_P.
15596 * combine.c (set_nonzero_bits_and_sign_copies): Use
15597 is_a <scalar_int_mode>.
15598 (find_split_point): Likewise.
15599 (combine_simplify_rtx): Likewise.
15600 (simplify_logical): Likewise.
15601 (expand_compound_operation): Likewise.
15602 (expand_field_assignment): Likewise.
15603 (make_compound_operation): Likewise.
15604 (extended_count): Likewise.
15605 (change_zero_ext): Likewise.
15606 (simplify_comparison): Likewise.
15607 * dwarf2out.c (scompare_loc_descriptor): Likewise.
15608 (ucompare_loc_descriptor): Likewise.
15609 (minmax_loc_descriptor): Likewise.
15610 (mem_loc_descriptor): Likewise.
15611 (loc_descriptor): Likewise.
15612 * expmed.c (init_expmed_one_mode): Likewise.
15613 * lra-constraints.c (lra_constraint_offset): Likewise.
15614 * optabs.c (prepare_libcall_arg): Likewise.
15615 * postreload.c (move2add_note_store): Likewise.
15616 * reload.c (operands_match_p): Likewise.
15617 * rtl.h (load_extend_op): Likewise.
15618 * rtlhooks.c (gen_lowpart_general): Likewise.
15619 * simplify-rtx.c (simplify_truncation): Likewise.
15620 (simplify_unary_operation_1): Likewise.
15621 (simplify_binary_operation_1): Likewise.
15622 (simplify_const_binary_operation): Likewise.
15623 (simplify_const_relational_operation): Likewise.
15624 (simplify_subreg): Likewise.
15625 * stor-layout.c (bitwise_mode_for_mode): Likewise.
15626 * var-tracking.c (adjust_mems): Likewise.
15627 (prepare_call_arguments): Likewise.
15628
15629 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15630 Alan Hayward <alan.hayward@arm.com>
15631 David Sherwood <david.sherwood@arm.com>
15632
15633 * machmode.h (is_int_mode): New fuction.
15634 * combine.c (find_split_point): Use it.
15635 (combine_simplify_rtx): Likewise.
15636 (simplify_if_then_else): Likewise.
15637 (simplify_set): Likewise.
15638 (simplify_shift_const_1): Likewise.
15639 (simplify_comparison): Likewise.
15640 * config/aarch64/aarch64.c (aarch64_rtx_costs): Likewise.
15641 * cse.c (notreg_cost): Likewise.
15642 (cse_insn): Likewise.
15643 * cselib.c (cselib_lookup_1): Likewise.
15644 * dojump.c (do_jump_1): Likewise.
15645 (do_compare_rtx_and_jump): Likewise.
15646 * dse.c (get_call_args): Likewise.
15647 * dwarf2out.c (rtl_for_decl_init): Likewise.
15648 (native_encode_initializer): Likewise.
15649 * expmed.c (emit_store_flag_1): Likewise.
15650 (emit_store_flag): Likewise.
15651 * expr.c (convert_modes): Likewise.
15652 (store_field): Likewise.
15653 (expand_expr_real_1): Likewise.
15654 * fold-const.c (fold_read_from_constant_string): Likewise.
15655 * gimple-ssa-sprintf.c (get_format_string): Likewise.
15656 * optabs-libfuncs.c (gen_int_libfunc): Likewise.
15657 * optabs.c (expand_binop): Likewise.
15658 (expand_unop): Likewise.
15659 (expand_abs_nojump): Likewise.
15660 (expand_one_cmpl_abs_nojump): Likewise.
15661 * simplify-rtx.c (mode_signbit_p): Likewise.
15662 (val_signbit_p): Likewise.
15663 (val_signbit_known_set_p): Likewise.
15664 (val_signbit_known_clear_p): Likewise.
15665 (simplify_relational_operation_1): Likewise.
15666 * tree.c (vector_type_mode): Likewise.
15667
15668 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15669 Alan Hayward <alan.hayward@arm.com>
15670 David Sherwood <david.sherwood@arm.com>
15671
15672 * machmode.h (smallest_mode_for_size): Fix formatting.
15673 (smallest_int_mode_for_size): New function.
15674 * cfgexpand.c (expand_debug_expr): Use smallest_int_mode_for_size
15675 instead of smallest_mode_for_size.
15676 * combine.c (make_extraction): Likewise.
15677 * config/arc/arc.c (arc_expand_movmem): Likewise.
15678 * config/arm/arm.c (arm_expand_divmod_libfunc): Likewise.
15679 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
15680 * config/s390/s390.c (s390_expand_insv): Likewise.
15681 * config/sparc/sparc.c (assign_int_registers): Likewise.
15682 * config/spu/spu.c (spu_function_value): Likewise.
15683 (spu_function_arg): Likewise.
15684 * coverage.c (get_gcov_type): Likewise.
15685 (get_gcov_unsigned_t): Likewise.
15686 * dse.c (find_shift_sequence): Likewise.
15687 * expmed.c (store_bit_field_1): Likewise.
15688 * expr.c (convert_move): Likewise.
15689 (store_field): Likewise.
15690 * internal-fn.c (expand_arith_overflow): Likewise.
15691 * optabs-query.c (get_best_extraction_insn): Likewise.
15692 * optabs.c (expand_twoval_binop_libfunc): Likewise.
15693 * stor-layout.c (layout_type): Likewise.
15694 (initialize_sizetypes): Likewise.
15695 * targhooks.c (default_get_mask_mode): Likewise.
15696 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Likewise.
15697
15698 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15699 Alan Hayward <alan.hayward@arm.com>
15700 David Sherwood <david.sherwood@arm.com>
15701
15702 * machmode.h (opt_mode::else_blk): New function.
15703 (int_mode_for_mode): Declare.
15704 * stor-layout.c (int_mode_for_mode): Return an opt_scalar_int_mode.
15705 * builtins.c (expand_builtin_signbit): Adjust for new int_mode_for_mode
15706 return type.
15707 * cfgexpand.c (expand_debug_expr): Likewise.
15708 * combine.c (gen_lowpart_or_truncate): Likewise.
15709 (gen_lowpart_for_combine): Likewise.
15710 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
15711 * config/avr/avr.c (avr_to_int_mode): Likewise.
15712 (avr_out_plus_1): Likewise.
15713 (avr_out_plus): Likewise.
15714 (avr_out_round): Likewise.
15715 * config/i386/i386.c (ix86_split_to_parts): Likewise.
15716 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
15717 (s390_expand_vcond): Likewise.
15718 * config/spu/spu.c (spu_split_immediate): Likewise.
15719 (spu_expand_mov): Likewise.
15720 * dse.c (get_stored_val): Likewise.
15721 * expmed.c (store_bit_field_1): Likewise.
15722 (convert_extracted_bit_field): Use int_mode_for_mode instead of
15723 int_mode_for_size.
15724 (extract_bit_field_1): Adjust for new int_mode_for_mode return type.
15725 (extract_low_bits): Likewise.
15726 * expr.c (emit_group_load_1): Likewise. Separate out the BLKmode
15727 handling rather than repeating the check.
15728 (emit_group_store): Likewise.
15729 (emit_move_via_integer): Adjust for new int_mode_for_mode return type.
15730 * optabs.c (expand_absneg_bit): Likewise.
15731 (expand_copysign_absneg): Likewise.
15732 (expand_copysign_bit): Likewise.
15733 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
15734 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
15735 * tree-vect-stmts.c (vect_gen_perm_mask_any): Likewise.
15736 * var-tracking.c (prepare_call_arguments): Likewise.
15737 * config/powerpcspe/powerpcspe.c (rs6000_do_expand_vec_perm): Use
15738 int_mode_for_mode instead of mode_for_size.
15739 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
15740
15741 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15742 Alan Hayward <alan.hayward@arm.com>
15743 David Sherwood <david.sherwood@arm.com>
15744
15745 * machmode.h (int_mode_for_size): New function.
15746 * builtins.c (set_builtin_user_assembler_name): Use int_mode_for_size
15747 instead of mode_for_size.
15748 * calls.c (save_fixed_argument_area): Likewise. Make use of BLKmode
15749 explicit.
15750 * combine.c (expand_field_assignment): Use int_mode_for_size
15751 instead of mode_for_size.
15752 (make_extraction): Likewise.
15753 (simplify_shift_const_1): Likewise.
15754 (simplify_comparison): Likewise.
15755 * dojump.c (do_jump): Likewise.
15756 * dwarf2out.c (mem_loc_descriptor): Likewise.
15757 * emit-rtl.c (init_derived_machine_modes): Likewise.
15758 * expmed.c (flip_storage_order): Likewise.
15759 (convert_extracted_bit_field): Likewise.
15760 * expr.c (copy_blkmode_from_reg): Likewise.
15761 * graphite-isl-ast-to-gimple.c (max_mode_int_precision): Likewise.
15762 * internal-fn.c (expand_mul_overflow): Likewise.
15763 * lower-subreg.c (simple_move): Likewise.
15764 * optabs-libfuncs.c (init_optabs): Likewise.
15765 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
15766 * tree.c (vector_type_mode): Likewise.
15767 * tree-ssa-strlen.c (handle_builtin_memcmp): Likewise.
15768 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Likewise.
15769 * tree-vect-generic.c (expand_vector_parallel): Likewise.
15770 * tree-vect-stmts.c (vectorizable_load): Likewise.
15771 (vectorizable_store): Likewise.
15772
15773 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15774 Alan Hayward <alan.hayward@arm.com>
15775 David Sherwood <david.sherwood@arm.com>
15776
15777 * coretypes.h (pod_mode): New type.
15778 (scalar_int_mode_pod): New typedef.
15779 * machmode.h (pod_mode): New class.
15780 (int_n_data_t::m): Change type to scalar_int_mode_pod.
15781 * genmodes.c (emit_mode_int_n): Update accordingly.
15782 * lower-subreg.h (target_lower_subreg): Change type to
15783 scalar_int_mode_pod.
15784 * gdbhooks.py (build_pretty_printer): Handle pod_mode and
15785 scalar_int_mode_pod.
15786
15787 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15788 Alan Hayward <alan.hayward@arm.com>
15789 David Sherwood <david.sherwood@arm.com>
15790
15791 * config/powerpcspe/powerpcspe.h (rs6000_pmode): Change type from
15792 machine_mode to scalar_int_mode.
15793 * config/powerpcspe/powerpcspe.c (rs6000_pmode): Likewise.
15794 (rs6000_option_override_internal): Remove cast to int.
15795 * config/rs6000/rs6000.h (rs6000_pmode): Change type from
15796 machine_mode to scalar_int_mode.
15797 * config/rs6000/rs6000.c (rs6000_pmode): Likewise.
15798 (rs6000_option_override_internal): Remove cast to int.
15799 * config/s390/s390.h (Pmode): Remove cast to machine_mode.
15800 * config/epiphany/epiphany.h (RTX_OK_FOR_OFFSET_P): Add cast
15801 to machine_mode.
15802 * config/s390/s390.c (s390_expand_builtin): Likewise.
15803 * coretypes.h (scalar_int_mode): New type.
15804 (opt_scalar_int_mode): New typedef.
15805 * machmode.h (scalar_int_mode): New class.
15806 (scalar_int_mode::includes_p): New function.
15807 (byte_mode): Change type to scalar_int_mode.
15808 (word_mode): Likewise.
15809 (ptr_mode): Likewise.
15810 * emit-rtl.c (byte_mode): Likewise.
15811 (word_mode): Likewise.
15812 (ptr_mode): Likewise.
15813 (init_derived_machine_modes): Update accordingly.
15814 * genmodes.c (get_mode_class): Return scalar_int_mode for MODE_INT
15815 and MODE_PARTIAL_INT.
15816 * gdbhooks.py (build_pretty_printer): Handle scalar_int_mode and
15817 opt_scalar_int_mode.
15818
15819 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15820 Alan Hayward <alan.hayward@arm.com>
15821 David Sherwood <david.sherwood@arm.com>
15822
15823 * target.def (libgcc_floating_mode_supported_p): Take a
15824 scalar_float_mode.
15825 * doc/tm.texi: Regenerate.
15826 * targhooks.h (default_libgcc_floating_mode_supported_p): Take a
15827 scalar_float_mode.
15828 * targhooks.c (default_libgcc_floating_mode_supported_p): Likewise.
15829 * config/aarch64/aarch64.c (aarch64_libgcc_floating_mode_supported_p):
15830 Likewise.
15831
15832 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15833 Alan Hayward <alan.hayward@arm.com>
15834 David Sherwood <david.sherwood@arm.com>
15835
15836 * target.def (default_floatn_mode): Return an opt_scalar_float_mode.
15837 * doc/tm.texi: Regenerate.
15838 * config/arm/arm.c (arm_floatn_mode): Return an opt_scalar_float_mode.
15839 * config/powerpcspe/powerpcspe.c (rs6000_floatn_mode): Likewise.
15840 * config/rs6000/rs6000.c (rs6000_floatn_mode): Likewise.
15841 * targhooks.h (default_floatn_mode): Likewise.
15842 * targhooks.c (default_floatn_mode): Likewise.
15843 * tree.c (build_common_tree_nodes): Update accordingly.
15844
15845 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15846 Alan Hayward <alan.hayward@arm.com>
15847 David Sherwood <david.sherwood@arm.com>
15848
15849 * machmode.h (mode_iterator::start): Provide overload for opt_modes.
15850 (mode_iterator::iterate_p): Likewise.
15851 (mode_iterator::get_wider): Likewise.
15852 * expr.c (init_expr_target): Use opt_scalar_float_mode.
15853
15854 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15855 Alan Hayward <alan.hayward@arm.com>
15856 David Sherwood <david.sherwood@arm.com>
15857
15858 * coretypes.h (opt_scalar_float_mode): New typedef.
15859 * machmode.h (float_mode_for_size): New function.
15860 * emit-rtl.c (double_mode): Delete.
15861 (init_emit_once): Use float_mode_for_size.
15862 * stor-layout.c (layout_type): Likewise.
15863 * gdbhooks.py (build_pretty_printer): Handle opt_scalar_float_mode.
15864
15865 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15866 Alan Hayward <alan.hayward@arm.com>
15867 David Sherwood <david.sherwood@arm.com>
15868
15869 * output.h (assemble_real): Take a scalar_float_mode.
15870 * config/arm/arm.c (arm_assemble_integer): Update accordingly.
15871 * config/arm/arm.md (consttable_4): Likewise.
15872 (consttable_8): Likewise.
15873 (consttable_16): Likewise.
15874 * config/mips/mips.md (consttable_float): Likewise.
15875 * config/s390/s390.c (s390_output_pool_entry): Likewise.
15876 * varasm.c (assemble_real): Take a scalar_float_mode.
15877 (output_constant_pool_2): Update accordingly.
15878 (output_constant): Likewise.
15879
15880 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15881 Alan Hayward <alan.hayward@arm.com>
15882 David Sherwood <david.sherwood@arm.com>
15883
15884 * tree.h (SCALAR_FLOAT_TYPE_MODE): New macro.
15885 * builtins.c (expand_builtin_signbit): Use it instead of TYPE_MODE.
15886 * fold-const.c (fold_convert_const_real_from_fixed): Likewise.
15887 (native_encode_real): Likewise.
15888 (native_interpret_real): Likewise.
15889 * hsa-brig.c (emit_immediate_scalar_to_buffer): Likewise.
15890 * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
15891
15892 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15893 Alan Hayward <alan.hayward@arm.com>
15894 David Sherwood <david.sherwood@arm.com>
15895
15896 * optabs-libfuncs.c (gen_trunc_conv_libfunc): Use is_a
15897 <scalar_float_mode>. Simplify.
15898 (gen_extend_conv_libfunc): Likewise.
15899
15900 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15901 Alan Hayward <alan.hayward@arm.com>
15902 David Sherwood <david.sherwood@arm.com>
15903
15904 * coretypes.h (scalar_float_mode): New type.
15905 * machmode.h (mode_traits::from_int): Use machine_mode if
15906 USE_ENUM_MODES is defined.
15907 (is_a): New function.
15908 (as_a): Likewise.
15909 (dyn_cast): Likewise.
15910 (scalar_float_mode): New class.
15911 (scalar_float_mode::includes_p): New function.
15912 (is_float_mode): Likewise.
15913 * gdbhooks.py (MachineModePrinter): New class.
15914 (build_pretty_printer): Use it for scalar_float_mode.
15915 * real.h (FLOAT_MODE_FORMAT): Use as_a <scalar_float_mode>.
15916 (format_helper::format_helper): Turn into a template.
15917 * genmodes.c (get_mode_class): New function.
15918 (emit_insn_modes_h): Give modes the class returned by get_mode_class,
15919 or machine_mode if none.
15920 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Use
15921 as_a <scalar_float_mode>.
15922 * dwarf2out.c (mem_loc_descriptor): Likewise.
15923 (insert_float): Likewise.
15924 (add_const_value_attribute): Likewise.
15925 * simplify-rtx.c (simplify_immed_subreg): Likewise.
15926 * optabs.c (expand_absneg_bit): Take a scalar_float_mode.
15927 (expand_unop): Update accordingly.
15928 (expand_abs_nojump): Likewise.
15929 (expand_copysign_absneg): Take a scalar_float_mode.
15930 (expand_copysign_bit): Likewise.
15931 (expand_copysign): Update accordingly.
15932
15933 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15934 Alan Hayward <alan.hayward@arm.com>
15935 David Sherwood <david.sherwood@arm.com>
15936
15937 * coretypes.h (opt_mode): New class.
15938 * machmode.h (opt_mode): Likewise.
15939 (opt_mode::else_void): New function.
15940 (opt_mode::require): Likewise.
15941 (opt_mode::exists): Likewise.
15942 (GET_MODE_WIDER_MODE): Turn into a function and return an opt_mode.
15943 (GET_MODE_2XWIDER_MODE): Likewise.
15944 (mode_iterator::get_wider): Update accordingly.
15945 (mode_iterator::get_2xwider): Likewise.
15946 (mode_iterator::get_known_wider): Likewise, turning into a template.
15947 * combine.c (make_extraction): Update use of GET_MODE_WIDER_MODE,
15948 forcing a wider mode to exist.
15949 * config/cr16/cr16.h (LONG_REG_P): Likewise.
15950 * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
15951 * config/c6x/c6x.c (c6x_rtx_costs): Update use of
15952 GET_MODE_2XWIDER_MODE, forcing a wider mode to exist.
15953 * lower-subreg.c (init_lower_subreg): Likewise.
15954 * optabs-libfuncs.c (init_sync_libfuncs_1): Likewise, but not
15955 on the final iteration.
15956 * config/i386/i386.c (ix86_expand_set_or_movmem): Check whether
15957 a wider mode exists before asking for a move pattern.
15958 (get_mode_wider_vector): Update use of GET_MODE_WIDER_MODE,
15959 forcing a wider mode to exist.
15960 (expand_vselect_vconcat): Update use of GET_MODE_2XWIDER_MODE,
15961 returning false if no such mode exists.
15962 * config/ia64/ia64.c (expand_vselect_vconcat): Likewise.
15963 * config/mips/mips.c (mips_expand_vselect_vconcat): Likewise.
15964 * expmed.c (init_expmed_one_mode): Update use of GET_MODE_WIDER_MODE.
15965 Avoid checking for a MODE_INT if we already know the mode is not a
15966 SCALAR_INT_MODE_P.
15967 (extract_high_half): Update use of GET_MODE_WIDER_MODE,
15968 forcing a wider mode to exist.
15969 (expmed_mult_highpart_optab): Likewise.
15970 (expmed_mult_highpart): Likewise.
15971 * expr.c (expand_expr_real_2): Update use of GET_MODE_WIDER_MODE,
15972 using else_void.
15973 * lto-streamer-in.c (lto_input_mode_table): Likewise.
15974 * optabs-query.c (find_widening_optab_handler_and_mode): Likewise.
15975 * stor-layout.c (bit_field_mode_iterator::next_mode): Likewise.
15976 * internal-fn.c (expand_mul_overflow): Update use of
15977 GET_MODE_2XWIDER_MODE.
15978 * omp-low.c (omp_clause_aligned_alignment): Likewise.
15979 * tree-ssa-math-opts.c (convert_mult_to_widen): Update use of
15980 GET_MODE_WIDER_MODE.
15981 (convert_plusminus_to_widen): Likewise.
15982 * tree-switch-conversion.c (array_value_type): Likewise.
15983 * var-tracking.c (emit_note_insn_var_location): Likewise.
15984 * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
15985 Return false inside rather than outside the loop if no wider mode
15986 exists
15987 * optabs.c (expand_binop): Update use of GET_MODE_WIDER_MODE
15988 and GET_MODE_2XWIDER_MODE
15989 (can_compare_p): Use else_void.
15990 * gdbhooks.py (OptMachineModePrinter): New class.
15991 (build_pretty_printer): Use it for opt_mode.
15992
15993 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
15994 Alan Hayward <alan.hayward@arm.com>
15995 David Sherwood <david.sherwood@arm.com>
15996
15997 * tree-switch-conversion.c (array_value_type): Only read TYPE_MODE
15998 once. Use get_narrowest_mode instead of GET_CLASS_NARROWEST_MODE.
15999
16000 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
16001 Alan Hayward <alan.hayward@arm.com>
16002 David Sherwood <david.sherwood@arm.com>
16003
16004 * machmode.h (mode_traits): New structure.
16005 (get_narrowest_mode): New function.
16006 (mode_iterator::start): Likewise.
16007 (mode_iterator::iterate_p): Likewise.
16008 (mode_iterator::get_wider): Likewise.
16009 (mode_iterator::get_known_wider): Likewise.
16010 (mode_iterator::get_2xwider): Likewise.
16011 (FOR_EACH_MODE_IN_CLASS): New mode iterator.
16012 (FOR_EACH_MODE): Likewise.
16013 (FOR_EACH_MODE_FROM): Likewise.
16014 (FOR_EACH_MODE_UNTIL): Likewise.
16015 (FOR_EACH_WIDER_MODE): Likewise.
16016 (FOR_EACH_2XWIDER_MODE): Likewise.
16017 * builtins.c (expand_builtin_strlen): Use new mode iterators.
16018 * combine.c (simplify_comparison): Likewise
16019 * config/i386/i386.c (type_natural_mode): Likewise.
16020 * cse.c (cse_insn): Likewise.
16021 * dse.c (find_shift_sequence): Likewise.
16022 * emit-rtl.c (init_derived_machine_modes): Likewise.
16023 (init_emit_once): Likewise.
16024 * explow.c (hard_function_value): Likewise.
16025 * expmed.c (extract_fixed_bit_field_1): Likewise.
16026 (extract_bit_field_1): Likewise.
16027 (expand_divmod): Likewise.
16028 (emit_store_flag_1): Likewise.
16029 * expr.c (init_expr_target): Likewise.
16030 (convert_move): Likewise.
16031 (alignment_for_piecewise_move): Likewise.
16032 (widest_int_mode_for_size): Likewise.
16033 (emit_block_move_via_movmem): Likewise.
16034 (copy_blkmode_to_reg): Likewise.
16035 (set_storage_via_setmem): Likewise.
16036 (compress_float_constant): Likewise.
16037 * omp-low.c (omp_clause_aligned_alignment): Likewise.
16038 * optabs-query.c (get_best_extraction_insn): Likewise.
16039 * optabs.c (expand_binop): Likewise.
16040 (expand_twoval_unop): Likewise.
16041 (expand_twoval_binop): Likewise.
16042 (widen_leading): Likewise.
16043 (widen_bswap): Likewise.
16044 (expand_parity): Likewise.
16045 (expand_unop): Likewise.
16046 (prepare_cmp_insn): Likewise.
16047 (prepare_float_lib_cmp): Likewise.
16048 (expand_float): Likewise.
16049 (expand_fix): Likewise.
16050 (expand_sfix_optab): Likewise.
16051 * postreload.c (move2add_use_add2_insn): Likewise.
16052 * reg-stack.c (reg_to_stack): Likewise.
16053 * reginfo.c (choose_hard_reg_mode): Likewise.
16054 * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
16055 * stor-layout.c (mode_for_size): Likewise.
16056 (smallest_mode_for_size): Likewise.
16057 (mode_for_vector): Likewise.
16058 (finish_bitfield_representative): Likewise.
16059 * tree-ssa-math-opts.c (target_supports_divmod_p): Likewise.
16060 * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
16061 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
16062 * var-tracking.c (prepare_call_arguments): Likewise.
16063
16064 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
16065 Alan Hayward <alan.hayward@arm.com>
16066 David Sherwood <david.sherwood@arm.com>
16067
16068 * genconditions.c (write_header): Add a "#define USE_ENUM_MODES".
16069 * genmodes.c (emit_insn_modes_h): Define FOOmode to E_FOOmode if
16070 USE_ENUM_MODES is defined and to ((void) 0, E_FOOmode) otherwise.
16071 * machmode.h (mode_size): Move earlier in file.
16072 (mode_precision): Likewise.
16073 (mode_inner): Likewise.
16074 (mode_nunits): Likewise.
16075 (mode_unit_size): Likewise.
16076 (unit_unit_precision): Likewise.
16077 (mode_wider): Likewise.
16078 (mode_2xwider): Likewise.
16079 (machine_mode): New class.
16080 (mode_to_bytes): New function.
16081 (mode_to_bits): Likewise.
16082 (mode_to_precision): Likewise.
16083 (mode_to_inner): Likewise.
16084 (mode_to_unit_size): Likewise.
16085 (mode_to_unit_precision): Likewise.
16086 (mode_to_nunits): Likewise.
16087 (GET_MODE_SIZE): Use mode_to_bytes.
16088 (GET_MODE_BITSIZE): Use mode_to_bits.
16089 (GET_MODE_PRECISION): Use mode_to_precision.
16090 (GET_MODE_INNER): Use mode_to_inner.
16091 (GET_MODE_UNIT_SIZE): Use mode_to_unit_size.
16092 (GET_MODE_UNIT_PRECISION): Use mode_to_unit_precision.
16093 (GET_MODE_NUNITS): Use mode_to_nunits.
16094 * system.h (ALWAYS_INLINE): New macro.
16095 * config/powerpcspe/powerpcspe-c.c
16096 (altivec_resolve_overloaded_builtin): Use machine_mode instead of
16097 int for arg1_mode and arg2_mode.
16098
16099 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
16100 Alan Hayward <alan.hayward@arm.com>
16101 David Sherwood <david.sherwood@arm.com>
16102
16103 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
16104 Prefix mode names with E_ in case statements.
16105 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16106 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Likewise.
16107 (aarch64_split_simd_move): Likewise.
16108 (aarch64_gen_storewb_pair): Likewise.
16109 (aarch64_gen_loadwb_pair): Likewise.
16110 (aarch64_gen_store_pair): Likewise.
16111 (aarch64_gen_load_pair): Likewise.
16112 (aarch64_get_condition_code_1): Likewise.
16113 (aarch64_constant_pool_reload_icode): Likewise.
16114 (get_rsqrte_type): Likewise.
16115 (get_rsqrts_type): Likewise.
16116 (get_recpe_type): Likewise.
16117 (get_recps_type): Likewise.
16118 (aarch64_gimplify_va_arg_expr): Likewise.
16119 (aarch64_simd_container_mode): Likewise.
16120 (aarch64_emit_load_exclusive): Likewise.
16121 (aarch64_emit_store_exclusive): Likewise.
16122 (aarch64_expand_compare_and_swap): Likewise.
16123 (aarch64_gen_atomic_cas): Likewise.
16124 (aarch64_emit_bic): Likewise.
16125 (aarch64_emit_atomic_swap): Likewise.
16126 (aarch64_emit_atomic_load_op): Likewise.
16127 (aarch64_evpc_trn): Likewise.
16128 (aarch64_evpc_uzp): Likewise.
16129 (aarch64_evpc_zip): Likewise.
16130 (aarch64_evpc_ext): Likewise.
16131 (aarch64_evpc_rev): Likewise.
16132 (aarch64_evpc_dup): Likewise.
16133 (aarch64_gen_ccmp_first): Likewise.
16134 (aarch64_gen_ccmp_next): Likewise.
16135 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): Likewise.
16136 (alpha_emit_xfloating_libcall): Likewise.
16137 (emit_insxl): Likewise.
16138 (alpha_arg_type): Likewise.
16139 * config/arc/arc.c (arc_vector_mode_supported_p): Likewise.
16140 (arc_preferred_simd_mode): Likewise.
16141 (arc_secondary_reload): Likewise.
16142 (get_arc_condition_code): Likewise.
16143 (arc_print_operand): Likewise.
16144 (arc_legitimate_constant_p): Likewise.
16145 * config/arc/arc.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16146 * config/arc/arc.md (casesi_load): Likewise.
16147 (casesi_compact_jump): Likewise.
16148 * config/arc/predicates.md (proper_comparison_operator): Likewise.
16149 (cc_use_register): Likewise.
16150 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16151 * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
16152 (arm_init_iwmmxt_builtins): Likewise.
16153 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
16154 (neon_expand_vector_init): Likewise.
16155 (arm_attr_length_move_neon): Likewise.
16156 (maybe_get_arm_condition_code): Likewise.
16157 (arm_emit_vector_const): Likewise.
16158 (arm_preferred_simd_mode): Likewise.
16159 (arm_output_iwmmxt_tinsr): Likewise.
16160 (thumb1_output_casesi): Likewise.
16161 (thumb2_output_casesi): Likewise.
16162 (arm_emit_load_exclusive): Likewise.
16163 (arm_emit_store_exclusive): Likewise.
16164 (arm_expand_compare_and_swap): Likewise.
16165 (arm_evpc_neon_vuzp): Likewise.
16166 (arm_evpc_neon_vzip): Likewise.
16167 (arm_evpc_neon_vrev): Likewise.
16168 (arm_evpc_neon_vtrn): Likewise.
16169 (arm_evpc_neon_vext): Likewise.
16170 (arm_validize_comparison): Likewise.
16171 * config/arm/neon.md (neon_vc<cmp_op><mode>): Likewise.
16172 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16173 * config/avr/avr.c (avr_rtx_costs_1): Likewise.
16174 * config/c6x/c6x.c (c6x_vector_mode_supported_p): Likewise.
16175 (c6x_preferred_simd_mode): Likewise.
16176 * config/epiphany/epiphany.c (get_epiphany_condition_code): Likewise.
16177 (epiphany_rtx_costs): Likewise.
16178 * config/epiphany/predicates.md (proper_comparison_operator):
16179 Likewise.
16180 * config/frv/frv.c (condexec_memory_operand): Likewise.
16181 (frv_emit_move): Likewise.
16182 (output_move_single): Likewise.
16183 (output_condmove_single): Likewise.
16184 (frv_hard_regno_mode_ok): Likewise.
16185 (frv_matching_accg_mode): Likewise.
16186 * config/h8300/h8300.c (split_adds_subs): Likewise.
16187 (h8300_rtx_costs): Likewise.
16188 (h8300_print_operand): Likewise.
16189 (compute_mov_length): Likewise.
16190 (output_logical_op): Likewise.
16191 (compute_logical_op_length): Likewise.
16192 (compute_logical_op_cc): Likewise.
16193 (h8300_shift_needs_scratch_p): Likewise.
16194 (output_a_shift): Likewise.
16195 (compute_a_shift_length): Likewise.
16196 (compute_a_shift_cc): Likewise.
16197 (expand_a_rotate): Likewise.
16198 (output_a_rotate): Likewise.
16199 * config/i386/i386.c (classify_argument): Likewise.
16200 (function_arg_advance_32): Likewise.
16201 (function_arg_32): Likewise.
16202 (function_arg_64): Likewise.
16203 (function_value_64): Likewise.
16204 (ix86_gimplify_va_arg): Likewise.
16205 (ix86_legitimate_constant_p): Likewise.
16206 (put_condition_code): Likewise.
16207 (split_double_mode): Likewise.
16208 (ix86_avx256_split_vector_move_misalign): Likewise.
16209 (ix86_expand_vector_logical_operator): Likewise.
16210 (ix86_split_idivmod): Likewise.
16211 (ix86_expand_adjust_ufix_to_sfix_si): Likewise.
16212 (ix86_build_const_vector): Likewise.
16213 (ix86_build_signbit_mask): Likewise.
16214 (ix86_match_ccmode): Likewise.
16215 (ix86_cc_modes_compatible): Likewise.
16216 (ix86_expand_branch): Likewise.
16217 (ix86_expand_sse_cmp): Likewise.
16218 (ix86_expand_sse_movcc): Likewise.
16219 (ix86_expand_int_sse_cmp): Likewise.
16220 (ix86_expand_vec_perm_vpermi2): Likewise.
16221 (ix86_expand_vec_perm): Likewise.
16222 (ix86_expand_sse_unpack): Likewise.
16223 (ix86_expand_int_addcc): Likewise.
16224 (ix86_split_to_parts): Likewise.
16225 (ix86_vectorize_builtin_gather): Likewise.
16226 (ix86_vectorize_builtin_scatter): Likewise.
16227 (avx_vpermilp_parallel): Likewise.
16228 (inline_memory_move_cost): Likewise.
16229 (ix86_tieable_integer_mode_p): Likewise.
16230 (x86_maybe_negate_const_int): Likewise.
16231 (ix86_expand_vector_init_duplicate): Likewise.
16232 (ix86_expand_vector_init_one_nonzero): Likewise.
16233 (ix86_expand_vector_init_one_var): Likewise.
16234 (ix86_expand_vector_init_concat): Likewise.
16235 (ix86_expand_vector_init_interleave): Likewise.
16236 (ix86_expand_vector_init_general): Likewise.
16237 (ix86_expand_vector_set): Likewise.
16238 (ix86_expand_vector_extract): Likewise.
16239 (emit_reduc_half): Likewise.
16240 (ix86_emit_i387_round): Likewise.
16241 (ix86_mangle_type): Likewise.
16242 (ix86_expand_round_sse4): Likewise.
16243 (expand_vec_perm_blend): Likewise.
16244 (canonicalize_vector_int_perm): Likewise.
16245 (ix86_expand_vec_one_operand_perm_avx512): Likewise.
16246 (expand_vec_perm_1): Likewise.
16247 (expand_vec_perm_interleave3): Likewise.
16248 (expand_vec_perm_even_odd_pack): Likewise.
16249 (expand_vec_perm_even_odd_1): Likewise.
16250 (expand_vec_perm_broadcast_1): Likewise.
16251 (ix86_vectorize_vec_perm_const_ok): Likewise.
16252 (ix86_expand_vecop_qihi): Likewise.
16253 (ix86_expand_mul_widen_hilo): Likewise.
16254 (ix86_expand_sse2_abs): Likewise.
16255 (ix86_expand_pextr): Likewise.
16256 (ix86_expand_pinsr): Likewise.
16257 (ix86_preferred_simd_mode): Likewise.
16258 (ix86_simd_clone_compute_vecsize_and_simdlen): Likewise.
16259 * config/i386/sse.md (*andnot<mode>3): Likewise.
16260 (<mask_codefor><code><mode>3<mask_name>): Likewise.
16261 (*<code><mode>3): Likewise.
16262 * config/ia64/ia64.c (ia64_expand_vecint_compare): Likewise.
16263 (ia64_expand_atomic_op): Likewise.
16264 (ia64_arg_type): Likewise.
16265 (ia64_mode_to_int): Likewise.
16266 (ia64_scalar_mode_supported_p): Likewise.
16267 (ia64_vector_mode_supported_p): Likewise.
16268 (expand_vec_perm_broadcast): Likewise.
16269 * config/iq2000/iq2000.c (iq2000_move_1word): Likewise.
16270 (iq2000_function_arg_advance): Likewise.
16271 (iq2000_function_arg): Likewise.
16272 * config/m32c/m32c.c (m32c_preferred_reload_class): Likewise.
16273 * config/m68k/m68k.c (output_dbcc_and_branch): Likewise.
16274 (m68k_libcall_value): Likewise.
16275 (m68k_function_value): Likewise.
16276 (sched_attr_op_type): Likewise.
16277 * config/mcore/mcore.c (mcore_output_move): Likewise.
16278 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
16279 Likewise.
16280 (microblaze_function_arg): Likewise.
16281 * config/mips/mips.c (mips16_build_call_stub): Likewise.
16282 (mips_print_operand): Likewise.
16283 (mips_mode_ok_for_mov_fmt_p): Likewise.
16284 (mips_vector_mode_supported_p): Likewise.
16285 (mips_preferred_simd_mode): Likewise.
16286 (mips_expand_vpc_loongson_even_odd): Likewise.
16287 (mips_expand_vec_unpack): Likewise.
16288 (mips_expand_vi_broadcast): Likewise.
16289 (mips_expand_vector_init): Likewise.
16290 (mips_expand_vec_reduc): Likewise.
16291 (mips_expand_msa_cmp): Likewise.
16292 * config/mips/mips.md (casesi_internal_mips16_<mode>): Likewise.
16293 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
16294 (cc_flags_for_mode): Likewise.
16295 * config/msp430/msp430.c (msp430_print_operand): Likewise.
16296 * config/nds32/nds32-md-auxiliary.c (nds32_mem_format): Likewise.
16297 (nds32_output_casesi_pc_relative): Likewise.
16298 * config/nds32/nds32.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16299 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Likewise.
16300 (nvptx_gen_unpack): Likewise.
16301 (nvptx_gen_pack): Likewise.
16302 (nvptx_gen_shuffle): Likewise.
16303 (nvptx_gen_wcast): Likewise.
16304 (nvptx_preferred_simd_mode): Likewise.
16305 * config/pa/pa.c (pa_secondary_reload): Likewise.
16306 * config/pa/predicates.md (base14_operand): Likewise.
16307 * config/powerpcspe/powerpcspe-c.c
16308 (altivec_resolve_overloaded_builtin): Likewise.
16309 * config/powerpcspe/powerpcspe.c (rs6000_setup_reg_addr_masks):
16310 Likewise.
16311 (rs6000_preferred_simd_mode): Likewise.
16312 (output_vec_const_move): Likewise.
16313 (rs6000_expand_vector_extract): Likewise.
16314 (rs6000_split_vec_extract_var): Likewise.
16315 (reg_offset_addressing_ok_p): Likewise.
16316 (rs6000_legitimate_offset_address_p): Likewise.
16317 (rs6000_legitimize_address): Likewise.
16318 (rs6000_emit_set_const): Likewise.
16319 (rs6000_const_vec): Likewise.
16320 (rs6000_emit_move): Likewise.
16321 (spe_build_register_parallel): Likewise.
16322 (rs6000_darwin64_record_arg_recurse): Likewise.
16323 (swap_selector_for_mode): Likewise.
16324 (spe_init_builtins): Likewise.
16325 (paired_init_builtins): Likewise.
16326 (altivec_init_builtins): Likewise.
16327 (do_load_for_compare): Likewise.
16328 (rs6000_generate_compare): Likewise.
16329 (rs6000_expand_float128_convert): Likewise.
16330 (emit_load_locked): Likewise.
16331 (emit_store_conditional): Likewise.
16332 (rs6000_output_function_epilogue): Likewise.
16333 (rs6000_handle_altivec_attribute): Likewise.
16334 (rs6000_function_value): Likewise.
16335 (emit_fusion_gpr_load): Likewise.
16336 (emit_fusion_p9_load): Likewise.
16337 (emit_fusion_p9_store): Likewise.
16338 * config/powerpcspe/predicates.md (easy_fp_constant): Likewise.
16339 (fusion_gpr_mem_load): Likewise.
16340 (fusion_addis_mem_combo_load): Likewise.
16341 (fusion_addis_mem_combo_store): Likewise.
16342 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
16343 (fusion_gpr_mem_load): Likewise.
16344 (fusion_addis_mem_combo_load): Likewise.
16345 (fusion_addis_mem_combo_store): Likewise.
16346 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16347 Likewise.
16348 * config/rs6000/rs6000-string.c (do_load_for_compare): Likewise.
16349 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
16350 (rs6000_preferred_simd_mode): Likewise.
16351 (output_vec_const_move): Likewise.
16352 (rs6000_expand_vector_extract): Likewise.
16353 (rs6000_split_vec_extract_var): Likewise.
16354 (reg_offset_addressing_ok_p): Likewise.
16355 (rs6000_legitimate_offset_address_p): Likewise.
16356 (rs6000_legitimize_address): Likewise.
16357 (rs6000_emit_set_const): Likewise.
16358 (rs6000_const_vec): Likewise.
16359 (rs6000_emit_move): Likewise.
16360 (rs6000_darwin64_record_arg_recurse): Likewise.
16361 (swap_selector_for_mode): Likewise.
16362 (paired_init_builtins): Likewise.
16363 (altivec_init_builtins): Likewise.
16364 (rs6000_expand_float128_convert): Likewise.
16365 (emit_load_locked): Likewise.
16366 (emit_store_conditional): Likewise.
16367 (rs6000_output_function_epilogue): Likewise.
16368 (rs6000_handle_altivec_attribute): Likewise.
16369 (rs6000_function_value): Likewise.
16370 (emit_fusion_gpr_load): Likewise.
16371 (emit_fusion_p9_load): Likewise.
16372 (emit_fusion_p9_store): Likewise.
16373 * config/rx/rx.c (rx_gen_move_template): Likewise.
16374 (flags_from_mode): Likewise.
16375 * config/s390/predicates.md (s390_alc_comparison): Likewise.
16376 (s390_slb_comparison): Likewise.
16377 * config/s390/s390.c (s390_handle_vectorbool_attribute): Likewise.
16378 (s390_vector_mode_supported_p): Likewise.
16379 (s390_cc_modes_compatible): Likewise.
16380 (s390_match_ccmode_set): Likewise.
16381 (s390_canonicalize_comparison): Likewise.
16382 (s390_emit_compare_and_swap): Likewise.
16383 (s390_branch_condition_mask): Likewise.
16384 (s390_rtx_costs): Likewise.
16385 (s390_secondary_reload): Likewise.
16386 (__SECONDARY_RELOAD_CASE): Likewise.
16387 (s390_expand_cs): Likewise.
16388 (s390_preferred_simd_mode): Likewise.
16389 * config/s390/vx-builtins.md (vec_packsu_u<mode>): Likewise.
16390 * config/sh/sh.c (sh_print_operand): Likewise.
16391 (dump_table): Likewise.
16392 (sh_secondary_reload): Likewise.
16393 * config/sh/sh.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16394 * config/sh/sh.md (casesi_worker_1): Likewise.
16395 (casesi_worker_2): Likewise.
16396 * config/sparc/predicates.md (icc_comparison_operator): Likewise.
16397 (fcc_comparison_operator): Likewise.
16398 * config/sparc/sparc.c (sparc_expand_move): Likewise.
16399 (emit_soft_tfmode_cvt): Likewise.
16400 (sparc_preferred_simd_mode): Likewise.
16401 (output_cbranch): Likewise.
16402 (sparc_print_operand): Likewise.
16403 (sparc_expand_vec_perm_bmask): Likewise.
16404 (vector_init_bshuffle): Likewise.
16405 * config/spu/spu.c (spu_scalar_mode_supported_p): Likewise.
16406 (spu_vector_mode_supported_p): Likewise.
16407 (spu_expand_insv): Likewise.
16408 (spu_emit_branch_or_set): Likewise.
16409 (spu_handle_vector_attribute): Likewise.
16410 (spu_builtin_splats): Likewise.
16411 (spu_builtin_extract): Likewise.
16412 (spu_builtin_promote): Likewise.
16413 (spu_expand_sign_extend): Likewise.
16414 * config/tilegx/tilegx.c (tilegx_scalar_mode_supported_p): Likewise.
16415 (tilegx_simd_int): Likewise.
16416 * config/tilepro/tilepro.c (tilepro_scalar_mode_supported_p): Likewise.
16417 (tilepro_simd_int): Likewise.
16418 * config/v850/v850.c (const_double_split): Likewise.
16419 (v850_print_operand): Likewise.
16420 (ep_memory_offset): Likewise.
16421 * config/vax/vax.c (vax_rtx_costs): Likewise.
16422 (vax_output_int_move): Likewise.
16423 (vax_output_int_add): Likewise.
16424 (vax_output_int_subtract): Likewise.
16425 * config/visium/predicates.md (visium_branch_operator): Likewise.
16426 * config/visium/visium.c (rtx_ok_for_offset_p): Likewise.
16427 (visium_print_operand_address): Likewise.
16428 * config/visium/visium.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16429 * config/xtensa/xtensa.c (xtensa_mem_offset): Likewise.
16430 (xtensa_expand_conditional_branch): Likewise.
16431 (xtensa_copy_incoming_a7): Likewise.
16432 (xtensa_output_literal): Likewise.
16433 * dfp.c (decimal_real_maxval): Likewise.
16434 * targhooks.c (default_libgcc_floating_mode_supported_p): Likewise.
16435
16436 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
16437 Alan Hayward <alan.hayward@arm.com>
16438 David Sherwood <david.sherwood@arm.com>
16439
16440 * genmodes.c (mode_size_inline): Add an E_ prefix to mode names.
16441 (mode_nunits_inline): Likewise.
16442 (mode_inner_inline): Likewise.
16443 (mode_unit_size_inline): Likewise.
16444 (mode_unit_precision_inline): Likewise.
16445 (emit_insn_modes_h): Likewise. Also emit a #define of the
16446 unprefixed name.
16447 (emit_mode_wider): Add an E_ prefix to mode names.
16448 (emit_mode_complex): Likewise.
16449 (emit_mode_inner): Likewise.
16450 (emit_mode_adjustments): Likewise.
16451 (emit_mode_int_n): Likewise.
16452 * config/aarch64/aarch64-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP)
16453 (v2si_UP, v2sf_UP, v1df_UP, di_UP, df_UP, v16qi_UP, v8hi_UP, v8hf_UP)
16454 (v4si_UP, v4sf_UP, v2di_UP, v2df_UP, ti_UP, oi_UP, ci_UP, xi_UP)
16455 (si_UP, sf_UP, hi_UP, hf_UP, qi_UP): Likewise.
16456 (CRC32_BUILTIN, ENTRY): Likewise.
16457 * config/aarch64/aarch64.c (aarch64_push_regs): Likewise.
16458 (aarch64_pop_regs): Likewise.
16459 (aarch64_process_components): Likewise.
16460 * config/alpha/alpha.c (alpha_emit_conditional_move): Likewise.
16461 * config/arm/arm-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP, v2si_UP)
16462 (v2sf_UP, di_UP, v16qi_UP, v8hi_UP, v8hf_UP, v4si_UP, v4sf_UP)
16463 (v2di_UP, ti_UP, ei_UP, oi_UP, hf_UP, si_UP, void_UP): Likewise.
16464 * config/arm/arm.c (arm_init_libfuncs): Likewise.
16465 * config/i386/i386-builtin-types.awk (ix86_builtin_type_vect_mode):
16466 Likewise.
16467 * config/i386/i386-builtin.def (pcmpestr): Likewise.
16468 (pcmpistr): Likewise.
16469 * config/microblaze/microblaze.c (double_memory_operand): Likewise.
16470 * config/mmix/mmix.c (mmix_output_condition): Likewise.
16471 * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
16472 Likewise.
16473 * config/rl78/rl78.c (mduc_regs): Likewise.
16474 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
16475 (htm_expand_builtin): Likewise.
16476 * config/sh/sh.h (REGISTER_NATURAL_MODE): Likewise.
16477 * config/sparc/sparc.c (emit_save_or_restore_regs): Likewise.
16478 * config/xtensa/xtensa.c (print_operand): Likewise.
16479 * expmed.h (NUM_MODE_PARTIAL_INT): Likewise.
16480 (NUM_MODE_VECTOR_INT): Likewise.
16481 * genoutput.c (null_operand): Likewise.
16482 (output_operand_data): Likewise.
16483 * genrecog.c (print_parameter_value): Likewise.
16484 * lra.c (debug_operand_data): Likewise.
16485
16486 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
16487
16488 * dwarf2out.c (scompare_loc_descriptor_wide)
16489 (scompare_loc_descriptor_narrow): New functions, split out from...
16490 (scompare_loc_descriptor): ...here.
16491 * expmed.c (emit_store_flag_int): New function, split out from...
16492 (emit_store_flag): ...here.
16493
16494 2017-08-30 Richard Biener <rguenther@suse.de>
16495
16496 * dwarf2out.c (dwarf2out_finish): Remove setting AT_pubnames.
16497 (dwarf2out_early_finish): Move setting of AT_pubnames from
16498 early debug output to early finish.
16499
16500 2017-08-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
16501
16502 * gcc/config/msp430/msp430.h: Pass -mcode/data-region to the linker
16503 and -mdata-region to the assembler.
16504
16505 2017-08-30 Richard Biener <rguenther@suse.de>
16506
16507 * dwarf2out.c (add_dwarf_attr): Check we don't add duplicate
16508 attributes.
16509 (gen_subprogram_die): Add DW_AT_object_pointer only early.
16510 (dwarf2out_early_global_decl): Only generate a DIE for the
16511 abstract origin if it doesn't already exist or is a declaration DIE.
16512 (resolve_addr): Do not add the linkage name twice when
16513 generating a stub DIE for the DW_TAG_GNU_call_site target.
16514
16515 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
16516
16517 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16518 Use machine_mode rather than int for arg1_mode.
16519
16520 2017-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
16521
16522 PR target/82015
16523 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Insure
16524 that the second argument of the built-in functions to unpack
16525 128-bit scalar types to 64-bit values is 0 or 1. Change to use a
16526 switch statement instead a lot of if statements.
16527 * config/rs6000/rs6000.md (unpack<mode>, FMOVE128_VSX iterator):
16528 Allow 64-bit values to be in Altivec registers as well as
16529 traditional floating point registers.
16530 (pack<mode>, FMOVE128_VSX iterator): Likewise.
16531
16532 2017-08-29 Alexander Monakov <amonakov@ispras.ru>
16533
16534 * ira-costs.c (record_address_regs): Handle both operands of PLUS for
16535 MAX_REGS_PER_ADDRESS == 1.
16536
16537 2017-08-29 Uros Bizjak <ubizjak@gmail.com>
16538
16539 * config/i386/i386.opt (flag_fentry): Do not init to -1.
16540 * config/i386/i386.c (ix86_option_override_internal): Simplify
16541 setting of opts->x_flag_entry.
16542
16543 2017-08-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16544 Jakub Jelinek <jakub@redhat.com>
16545 Richard Biener <rguenther@suse.de>
16546
16547 PR tree-optimization/81503
16548 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Ensure
16549 folded constant fits in the target type; reorder tests for clarity.
16550
16551 2017-08-29 Martin Liska <mliska@suse.cz>
16552
16553 * passes.def: Include pass_lower_switch.
16554 * stmt.c (dump_case_nodes): Remove and move to
16555 tree-switch-conversion.
16556 (case_values_threshold): Likewise.
16557 (expand_switch_as_decision_tree_p): Likewise.
16558 (emit_case_decision_tree): Likewise.
16559 (expand_case): Likewise.
16560 (balance_case_nodes): Likewise.
16561 (node_has_low_bound): Likewise.
16562 (node_has_high_bound): Likewise.
16563 (node_is_bounded): Likewise.
16564 (emit_case_nodes): Likewise.
16565 (struct simple_case_node): New struct.
16566 (add_case_node): Remove.
16567 (emit_case_dispatch_table): Use vector instead of case_list.
16568 (reset_out_edges_aux): Remove.
16569 (compute_cases_per_edge): Likewise.
16570 (expand_case): Build list of simple_case_node.
16571 (expand_sjlj_dispatch_table): Use it.
16572 * tree-switch-conversion.c (struct case_node): Moved from
16573 stmt.c and adjusted.
16574 (emit_case_nodes): Likewise.
16575 (node_has_low_bound): Likewise.
16576 (node_has_high_bound): Likewise.
16577 (node_is_bounded): Likewise.
16578 (case_values_threshold): Likewise.
16579 (reset_out_edges_aux): Likewise.
16580 (compute_cases_per_edge): Likewise.
16581 (add_case_node): Likewise.
16582 (dump_case_nodes): Likewise.
16583 (balance_case_nodes): Likewise.
16584 (expand_switch_as_decision_tree_p): Likewise.
16585 (emit_jump): Likewise.
16586 (emit_case_decision_tree): Likewise.
16587 (try_switch_expansion): Likewise.
16588 (do_jump_if_equal): Likewise.
16589 (emit_cmp_and_jump_insns): Likewise.
16590 (fix_phi_operands_for_edge): New function.
16591 (record_phi_operand_mapping): Likewise.
16592 (class pass_lower_switch): New pass.
16593 (pass_lower_switch::execute): New function.
16594 (make_pass_lower_switch): Likewise.
16595 (conditional_probability):
16596 * timevar.def: Add TV_TREE_SWITCH_LOWERING.
16597 * tree-pass.h: Add make_pass_lower_switch.
16598
16599 2017-08-29 Jozef Lawrynowicz <jozef.l@somniumtech.com>
16600
16601 PR target/80993
16602 * gcc/config/msp430/msp430.c (msp430_attr): Mark interrupt
16603 handlers as used.
16604
16605 2017-08-29 Richard Biener <rguenther@suse.de>
16606
16607 * dwarf2out.c (add_dwarf_attr): When checking is enabled verify
16608 we do not add a DW_AT_inline attribute twice.
16609 (gen_subprogram_die): Remove code setting DW_AT_inline on
16610 DECL_ABSTRACT_P nodes.
16611
16612 2017-08-29 Richard Sandiford <richard.sandiford@linaro.org>
16613
16614 * gimplify.c (gimplify_call_expr): Copy the nothrow flag to
16615 calls to internal functions.
16616 (gimplify_modify_expr): Likewise.
16617 * tree-call-cdce.c (use_internal_fn): Likewise.
16618 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
16619 (convert_to_divmod): Set the nothrow flag.
16620 * tree-if-conv.c (predicate_mem_writes): Likewise.
16621 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
16622 (vectorizable_call): Likewise.
16623 (vectorizable_store): Likewise.
16624 (vectorizable_load): Likewise.
16625 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
16626 (vect_recog_mask_conversion_pattern): Likewise.
16627
16628 2017-08-29 Martin Liska <mliska@suse.cz>
16629
16630 PR other/39851
16631 * gcc.c (driver_handle_option): Add new argument.
16632 * opts-common.c (handle_option): Pass
16633 target_option_override_hook.
16634 * opts-global.c (lang_handle_option): Add new option.
16635 (set_default_handlers): Add new argument.
16636 (decode_options): Likewise.
16637 * opts.c (target_handle_option): Likewise.
16638 (common_handle_option): Call target_option_override_hook.
16639 * opts.h (struct cl_option_handler_func): Add hook for
16640 target option override.
16641 (struct cl_option_handlers): Likewise.
16642 (set_default_handlers): Add new argument.
16643 (decode_options): Likewise.
16644 (common_handle_option): Likewise.
16645 (target_handle_option): Likewise.
16646 * toplev.c (toplev::main): Pass targetm.target_option.override
16647 hook.
16648
16649 2017-08-29 Richard Biener <rguenther@suse.de>
16650 Dominik Infuehr <dominik.infuehr@theobroma-systems.com>
16651
16652 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Properly confine
16653 life to the active subtree.
16654
16655 2017-08-28 Jeff Law <law@redhat.com>
16656
16657 * tree-ssa-dom.c (edge_info::record_simple_equiv): Call
16658 derive_equivalences.
16659 (derive_equivalences_from_bit_ior, record_temporary_equivalences):
16660 Code moved into....
16661 (edge_info::derive_equivalences): New private member function
16662
16663 * tree-ssa-dom.c (class edge_info): Changed from a struct
16664 to a class. Add ctor/dtor, methods and data members.
16665 (edge_info::edge_info): Renamed from allocate_edge_info.
16666 Initialize additional members.
16667 (edge_info::~edge_info): New.
16668 (free_dom_edge_info): Delete the edge info.
16669 (record_edge_info): Use new class & associated member functions.
16670 Tighten forms for testing for edge equivalences.
16671 (record_temporary_equivalences): Iterate over the simple
16672 equivalences rather than assuming there's only one per edge.
16673 (cprop_into_successor_phis): Iterate over the simple
16674 equivalences rather than assuming there's only one per edge.
16675 (optimize_stmt): Use operand_equal_p rather than pointer
16676 equality for mini-DSE code.
16677
16678 2017-08-28 Nathan Sidwell <nathan@acm.org>
16679
16680 * gcc.c (execute): Fold SIGPIPE handling into switch
16681 statement. Adjust internal error message.
16682
16683 2017-08-28 Richard Biener <rguenther@suse.de>
16684
16685 PR debug/81993
16686 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
16687 Do nothing for removed DIEs.
16688
16689 2017-08-28 Richard Biener <rguenther@suse.de>
16690
16691 PR tree-optimization/81977
16692 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix look through
16693 memcpy.
16694
16695 2017-08-28 Alexander Monakov <amonakov@ispras.ru>
16696
16697 PR target/80640
16698 * doc/md.texi (mem_thread_fence): Remove mention of mode. Rewrite.
16699 * optabs.c (expand_mem_thread_fence): Emit a compiler barrier when
16700 using targetm.gen_mem_thread_fence.
16701
16702 2017-08-27 Uros Bizjak <ubizjak@gmail.com>
16703
16704 PR target/81995
16705 * config/i386/i386.md (*<btsc><mode>): Change operand 2
16706 predicate to register_operand. Reorder operands.
16707 (*btr<mode>): Ditto.
16708 (*<btsc><mode>_mask): Change operand 3 predicate to register_operand.
16709 (*btr<mode>_mask): Ditto.
16710
16711 2017-08-25 Steven Munroe <munroesj@gcc.gnu.org>
16712
16713 * config.gcc (powerpc*-*-*): Add xmmintrin.h and mm_malloc.h.
16714 * config/rs6000/xmmintrin.h: New file.
16715 * config/rs6000/x86intrin.h [__ALTIVEC__]: Include xmmintrin.h.
16716
16717 2017-08-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16718
16719 PR target/81504
16720 * config/rs6000/rs6000-p8swap.c (find_alignment_op): Add reference
16721 parameter and_insn and return it.
16722 (recombine_lvx_pattern): Insert a copy to ensure availability of
16723 the base register of the copied masking operation at the point of
16724 the instruction replacement.
16725 (recombine_stvx_pattern): Likewise.
16726
16727 2017-08-25 Michael Meissner <meissner@linux.vnet.ibm.com>
16728
16729 * config/rs6000/rs6000.opt (-mpower9-dform-scalar): Delete
16730 undocumented switches.
16731 (-mpower9-dform-vector): Likewise.
16732 (-mpower9-dform): Likewise.
16733 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Update
16734 comments to delete references to -mpower9-dform* switches.
16735 * config/rs6000/predicates.md (vsx_quad_dform_memory_operand):
16736 Delete reference to -mpower9-dform* switches, test for
16737 -mpower9-vector instead.
16738 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Likewise.
16739 (OTHER_P9_VECTOR_MASKS): Likewise.
16740 (POWERPC_MASKS): Likewise.
16741 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Change
16742 tests against -mpower9-dform* to -mpower9-vector. Delete code
16743 that checked for -mpower9-dform* consistancy with other options.
16744 Add test for -mpower9-misc to enable other power9 switches.
16745 (rs6000_init_hard_regno_mode_ok): Likewise.
16746 (rs6000_option_override_internal): Likewise.
16747 (rs6000_emit_prologue): Likewise.
16748 (rs6000_emit_epilogue): Likewise.
16749 (rs6000_opt_masks): Delete -mpower9-dform-{scalar,vector}.
16750 (rs6000_disable_incompatiable_switches): Delete -mpower9-dform.
16751 (emit_fusion_p9_load): Change tests for -mpower9-dform-scalar
16752 -mpower9-vector.
16753 (emit_fusion_p9_store): Likewise.
16754 * config/rs6000/rs6000.h (TARGET_P9_DFORM_SCALAR): Delete
16755 resetting these macros if the assembler does not support ISA 3.0
16756 instructions.
16757 (TARGET_P9_DFORM_VECTOR): Likewise.
16758 * config/rs6000/rs6000.md (peepholes to optimize altivec memory):
16759 Change to use -mpower9-vector instead of -mpower9-dform-scalar.
16760
16761 2017-08-25 Alan Modra <amodra@gmail.com>
16762
16763 PR rtl-optimization/81747
16764 * cse.c (cse_extended_basic_block): Don't attempt to record
16765 equivalences for degenerate conditional branches that branch
16766 to their fall-through.
16767
16768 2017-08-24 Martin Sebor <msebor@redhat.com>
16769
16770 PR middle-end/81908
16771 * gimple-fold.c (size_must_be_zero_p): New function.
16772 (gimple_fold_builtin_memory_op): Call it.
16773
16774 2017-08-24 Steven Munroe <munroesj@gcc.gnu.org>
16775
16776 * config/rs6000/mm_malloc.h: New file.
16777
16778 2017-08-24 Bin Cheng <bin.cheng@arm.com>
16779
16780 PR tree-optimization/81913
16781 * tree-ssa-loop-niter.c (number_of_iterations_cond): Skip niter
16782 analysis when either IVs in condition can wrap.
16783
16784 2017-08-24 Uros Bizjak <ubizjak@gmail.com>
16785
16786 * dwarf2out.c (MAX_ARTIFICIAL_LABEL_BYTES): Increase to 40.
16787 * dwarf2cfi.c (MAX_ARTIFICIAL_LABEL_BYTES): Remove.
16788
16789 2017-08-24 Richard Biener <rguenther@suse.de>
16790
16791 PR target/81921
16792 * targhooks.c (default_target_can_inline_p): Properly
16793 use target_option_default_node when no DECL_FUNCTION_SPECIFIC_TARGET
16794 is present and always compare.
16795 * config/i386/i386.c (ix86_valid_target_attribute_tree): Do not
16796 infer -mfpmath=sse from TARGET_SSE_P.
16797 (ix86_can_inline_p): Properly use target_option_default_node when
16798 no DECL_FUNCTION_SPECIFIC_TARGET is present and always compare.
16799
16800 2017-08-24 Richard Biener <rguenther@suse.de>
16801
16802 PR debug/81936
16803 * dwarf2out.c (output_die): Handle flag_generate_offload like
16804 flag_generate_lto.
16805 (output_comp_unit): Likewise.
16806 (gen_array_type_die): Likewise.
16807 (dwarf2out_early_finish): Likewise.
16808 (note_variable_value_in_expr): Likewise.
16809 (dwarf2out_finish): Likewise. Adjust assert.
16810 * cgraphunit.c (symbol_table::compile): Move setting of
16811 flag_generate_offload earlier ...
16812 (symbol_table::finalize_compilation_unit): ... here, before
16813 early debug finalization.
16814
16815 2017-08-24 Richard Biener <rguenther@suse.de>
16816
16817 * config/i386/i386.c: Include symbol-summary.h, ipa-prop.h
16818 and ipa-fnsummary.h.
16819 (ix86_can_inline_p): When ix86_fpmath flags do not match
16820 check whether the callee uses FP math at all.
16821
16822 2017-08-24 Aldy Hernandez <aldyh@redhat.com>
16823
16824 PR middle-end/81931
16825 * tree-ssanames.c (get_nonzero_bits): Use element_precision
16826 instead of TYPE_PRECISION.
16827
16828 2017-08-24 Richard Sandiford <richard.sandiford@linaro.org>
16829 Alan Hayward <alan.hayward@arm.com>
16830 David Sherwood <david.sherwood@arm.com>
16831
16832 * combine.c (make_extraction): Use subreg_offset_from_lsb.
16833
16834 2017-08-23 Daniel Santos <daniel.santos@pobox.com>
16835
16836 * config/i386/i386.h (ix86_frame::stack_realign_allocate_offset):
16837 Remove field.
16838 (ix86_frame::stack_realign_allocate): New field.
16839 (struct machine_frame_state): Modify comments.
16840 (machine_frame_state::sp_realigned_fp_end): New field.
16841 * config/i386/i386.c (ix86_compute_frame_layout): Rework stack frame
16842 layout calculation.
16843 (sp_valid_at): Add assertion to assure no attempt to access invalid
16844 offset of a realigned stack.
16845 (fp_valid_at): Likewise.
16846 (choose_baseaddr): Modify comments.
16847 (ix86_emit_outlined_ms2sysv_save): Adjust to changes in
16848 ix86_expand_prologue.
16849 (ix86_expand_prologue): Modify stack realignment and allocation.
16850 (ix86_expand_epilogue): Modify comments.
16851 * doc/sourcebuild.texi: Add documentation for target selectors avx2,
16852 avx2_runtime, avx512f, and avx512f_runtime.
16853
16854 2017-08-23 Uros Bizjak <ubizjak@gmail.com>
16855
16856 * config/i386/i386.opt: Remove unneeded Init(0) initializations.
16857 (mstackrealign): Do not init to -1.
16858 * config/i386/i386.c (ix86_option_override_internal):
16859 Check opts_set, not opts when setting default value of
16860 opts->x_ix86_force_align_arg_pointer.
16861
16862 2017-08-23 Richard Biener <rguenther@suse.de>
16863
16864 * function.c (fndecl_name): Use verbosity 1 (no arguments) for
16865 lang_hooks.decl_printable_name.
16866 * print-rtl-function.c (print_rtx_function): Likewise.
16867 * tree-pretty-print.c (dump_function_header): Likewise.
16868
16869 2017-08-23 Richard Biener <rguenther@suse.de>
16870
16871 PR lto/81940
16872 * dwarf2out.c (dwarf2out_abstract_function): Handle LTO with
16873 -g0 at compile-time.
16874
16875 2017-08-23 Tamar Christina <tamar.christina@arm.com>
16876
16877 PR middle-end/19706
16878 * doc/sourcebuild.texi (Other hardware attributes):
16879 Document xorsign.
16880
16881 2017-08-23 Tamar Christina <tamar.christina@arm.com>
16882
16883 PR middle-end/19706
16884 * tree-ssa-math-opts.c (convert_expand_mult_copysign):
16885 Fix single-use check.
16886
16887 2017-08-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
16888
16889 * gcc.c (execute): Only test for SIGKILL and SIGQUIT if available.
16890
16891 2017-08-22 Daniel Santos <daniel.santos@pobox.com>
16892
16893 * doc/install.texi: Modify to add more details on running selected
16894 tests.
16895
16896 2017-08-22 Daniel Santos <daniel.santos@pobox.com>
16897
16898 * config/i386/i386.c (ix86_option_override_internal): Error when -mx32
16899 is combined with -mabi=ms.
16900 (ix86_function_type_abi): Limit errors for mixing -mx32 with attribute
16901 ms_abi.
16902
16903 2017-08-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16904
16905 PR tree-optimization/81488
16906 * gimple-ssa-strength-reduction (struct slsr_cand_d): Add visited
16907 and cached_basis fields.
16908 (MAX_SPREAD): New constant.
16909 (alloc_cand_and_find_basis): Initialize new fields.
16910 (clear_visited): New function.
16911 (create_phi_basis_1): Rename from create_phi_basis, set visited
16912 and cached_basis fields.
16913 (create_phi_basis): New wrapper function.
16914 (phi_add_costs_1): Rename from phi_add_costs, add spread
16915 parameter, set visited field, short-circuit when limits reached.
16916 (phi_add_costs): New wrapper function.
16917 (record_phi_increments_1): Rename from record_phi_increments, set
16918 visited field.
16919 (record_phi_increments): New wrapper function.
16920 (phi_incr_cost_1): Rename from phi_incr_cost, set visited field.
16921 (phi_incr_cost): New wrapper function.
16922 (all_phi_incrs_profitable_1): Rename from
16923 all_phi_incrs_profitable, set visited field.
16924 (all_phi_incrs_profitable): New wrapper function.
16925
16926 2017-08-22 Richard Sandiford <richard.sandiford@linaro.org>
16927 Alan Hayward <alan.hayward@arm.com>
16928 David Sherwood <david.sherwood@arm.com>
16929
16930 * rtl.h (paradoxical_subreg_p): Define inline, and add a version
16931 that takes the outer and inner modes.
16932 * doc/rtl.texi: Use paradoxical_subreg_p instead of a GET_MODE_SIZE
16933 comparison as the canonical test for a paradoxical subreg.
16934 * combine.c (simplify_set): Use paradoxical_subreg_p.
16935 (make_extraction): Likewise.
16936 (force_to_mode): Likewise.
16937 (rtx_equal_for_field_assignment_p): Likewise.
16938 (gen_lowpart_for_combine): Likewise.
16939 (simplify_comparison): Likewise.
16940 * cse.c (equiv_constant): Likewise.
16941 * expmed.c (store_bit_field_1): Likewise.
16942 * final.c (alter_subreg): Likewise.
16943 * fwprop.c (propagate_rtx): Likewise.
16944 (forward_propagate_subreg): Likewise.
16945 * ira-conflicts.c (ira_build_conflicts): Likewise.
16946 * lower-subreg.c (simplify_gen_subreg_concatn): Likewise.
16947 * lra-constraints.c (curr_insn_transform): Likewise.
16948 (split_reg): Likewise.
16949 * lra-eliminations.c (move_plus_up): Likewise.
16950 (lra_eliminate_regs_1): Likewise.
16951 * recog.c (general_operand): Likewise.
16952 * ree.c (combine_reaching_defs): Likewise.
16953 * reload.c (push_reload): Likewise.
16954 (find_reloads): Likewise.
16955 * reload1.c (elimination_effects): Likewise.
16956 (compute_reload_subreg_offset): Likewise.
16957 (choose_reload_regs): Likewise.
16958 * rtlanal.c (subreg_lsb_1): Likewise.
16959 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
16960 (simplify_subreg): Likewise.
16961 * var-tracking.c (track_loc_p): Likewise.
16962 * emit-rtl.c (byte_lowpart_offset): Likewise.
16963 (paradoxical_subreg_p): Delete out-of-line definition.
16964
16965 2017-08-22 Jeff Law <law@redhat.com>
16966
16967 PR tree-optimization/81741
16968 PR tree-optimization/71947
16969 * tree-ssa-dom.c: Include tree-inline.h.
16970 (record_temporary_equivalences): Only record SSA_NAME = SSA_NAME
16971 equivalences if one is more expensive to compute than the other.
16972 * tree-ssa-scopedtables.h (class const_or_copies): Make
16973 record_const_or_copy_raw method private.
16974 (class avail_exprs_stack): New method simplify_binary_operation.
16975 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Call
16976 avail_exprs_stack::simplify_binary_operation as needed.
16977 (avail_exprs_stack::simplify_binary_operation): New function.
16978
16979 2017-08-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
16980
16981 * config.gcc (powerpc-*-rtems*): Add rs6000/linux64.opt.
16982 * config/rs6000/rtems.h (ASM_PREFERRED_EH_DATA_FORMAT): New define.
16983 (DOT_SYMBOLS): Likewise.
16984 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16985 (RELOCATABLE_NEEDS_FIXUP): Likewise.
16986 (RS6000_ABI_NAME): Likewise.
16987 (TARGET_CMODEL): Likewise.
16988 (TOC_SECTION_ASM_OP): Likewise.
16989 (SET_CMODEL): New macro.
16990 (SUBSUBTARGET_OVERRIDE_OPTIONS): Evaluate cmodel options.
16991
16992 2017-08-22 Richard Biener <rguenther@suse.de>
16993
16994 * tree-inline.c (remap_type_1): Change asserts on TYPE_SIZE[_UNIT]
16995 to allow for free-lang-data replacements similar to verify_type_variant.
16996
16997 2017-08-22 Richard Sandiford <richard.sandiford@linaro.org>
16998 Alan Hayward <alan.hayward@arm.com>
16999 David Sherwood <david.sherwood@arm.com>
17000
17001 * config/aarch64/aarch64.md (casesi): Use DImode rather than
17002 VOIDmode for the LABEL_REF.
17003
17004 2017-08-22 Richard Biener <rguenther@suse.de>
17005
17006 * tree-cfg.c (gimple_split_edge): Avoid reallocating target PHI nodes.
17007
17008 2017-08-22 Richard Biener <rguenther@suse.de>
17009
17010 * common.opt (feliminate-dwarf2-dups): Ignore.
17011 * doc/invoke.texi (feliminate-dwarf2-dups): Remove documentation.
17012 * dwarf2out.c (push_new_compile_unit, pop_compile_unit,
17013 same_die_p_wrap, compute_section_prefix,
17014 is_symbol_die, assign_symbol_names, break_out_includes): Remove.
17015 (comdat_symbol_id, comdat_symbol_number): Likewise.
17016 (cu_hash_table_entry, cu_hash_table_entry_hasher, cu_hash_type):
17017 Likewise.
17018 (check_duplicate_cu, record_comdat_symbol_number): Likewise.
17019 (output_die): Mark unreachable path unreachable.
17020 (dwarf2out_start_source_file): Do not create DW_TAG_GNU_BINCL.
17021 (dwarf2out_end_source_file): Do not create DW_TAG_GNU_EINCL.
17022 (dwarf2out_init): Remove code handling flag_eliminate_dwarf2_dups.
17023 (dwarf2out_early_finish): Likewise.
17024
17025 2017-08-22 Aldy Hernandez <aldyh@redhat.com>
17026
17027 * wide-int.h (hwi_with_prec::hwi_with_prec): Sign extend.
17028
17029 2017-08-22 Georg-Johann Lay <avr@gjlay.de>
17030
17031 PR target/81910
17032 * config/avr/avr.c (avr_handle_addr_attribute): Early return if
17033 not VAR_P. Filter attribute warnings with OPT_Wattributes.
17034 (avr_attribute_table) <io, io_low, address>: Initialize
17035 .decl_required with true.
17036
17037 2017-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17038
17039 * config/rs6000/rs6000-cpus.def (-mvsx-scalar-float): Delete
17040 undocumented debugging options.
17041 (-mvsx-scalar-double): Likewise.
17042 (-mallow-df-permute): Likewise.
17043 (-mvectorize-builtins): Likewise.
17044 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
17045 (rs6000_builtin_vectorized_function): Likewise.
17046 (rs6000_builtin_md_vectorized_function): Likewise.
17047 (rs6000_opt_vars): Likewise.
17048
17049 2017-08-21 Uros Bizjak <ubizjak@gmail.com>
17050
17051 PR target/46091
17052 * config/i386/i386.md (*btsq_imm): Rename from *btsq.
17053 (*btrq_imm): Rename from *btrq.
17054 (*btcq_imm): Rename from *btcq.
17055 (btsc): New code attribute.
17056 (*<btsc><mode>): New insn pattern.
17057 (*btr<mode>): Ditto.
17058 (*<btsc><mode>_mask): New insn_and_split pattern.
17059 (*btr<mode>_mask): Ditto.
17060
17061 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
17062 Alan Hayward <alan.hayward@arm.com>
17063 David Sherwood <david.sherwood@arm.com>
17064
17065 * function.c (pad_below): Simplify padding calculation.
17066
17067 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
17068 Alan Hayward <alan.hayward@arm.com>
17069 David Sherwood <david.sherwood@arm.com>
17070
17071 * target.def (function_prologue): Remove frame size argument.
17072 (function_epilogue): Likewise.
17073 * doc/tm.texi: Regenerate.
17074 * final.c (final_start_function): Update call to function_prologue.
17075 (final_end_function): Update call to function_epilogue.
17076 (default_function_pro_epilogue): Remove frame size argument.
17077 * output.h (default_function_pro_epilogue): Likewise.
17078 * config/arm/arm.c (arm_output_function_epilogue): Likewise.
17079 (arm_output_function_prologue): Likewise.
17080 * config/frv/frv.c (frv_function_prologue): Likewise.
17081 (frv_function_epilogue): Likewise.
17082 * config/i386/i386.c (ix86_output_function_epilogue): Likewise.
17083 * config/ia64/ia64.c (ia64_output_function_prologue): Likewise.
17084 (ia64_output_function_epilogue): Likewise.
17085 * config/m32r/m32r.c (m32r_output_function_prologue): Likewise.
17086 (m32r_output_function_epilogue): Likewise.
17087 * config/microblaze/microblaze.c (microblaze_function_prologue)
17088 (microblaze_function_epilogue): Likewise.
17089 * config/mips/mips.c (mips_output_function_prologue): Likewise.
17090 (mips_output_function_epilogue): Likewise.
17091 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Likewise.
17092 (mmix_target_asm_function_epilogue): Likewise.
17093 * config/msp430/msp430.c (msp430_start_function): Likewise.
17094 * config/nds32/nds32.c (nds32_asm_function_prologue): Likewise.
17095 (nds32_asm_function_epilogue): Likewise.
17096 * config/nios2/nios2.c (nios2_asm_function_prologue): Likewise.
17097 * config/pa/pa.c (pa_output_function_prologue): Likewise.
17098 (pa_output_function_epilogue): Likewise.
17099 * config/powerpcspe/powerpcspe.c (rs6000_output_function_prologue)
17100 (rs6000_output_function_epilogue): Likewise.
17101 * config/rl78/rl78.c (rl78_start_function): Likewise.
17102 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Likewise.
17103 (rs6000_output_function_epilogue): Likewise.
17104 * config/rx/rx.c (rx_output_function_prologue): Likewise.
17105 * config/sh/sh.c (sh_output_function_epilogue): Likewise.
17106 * config/sparc/sparc.c (sparc_asm_function_prologue): Likewise.
17107 (sparc_asm_function_epilogue): Likewise.
17108
17109 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
17110
17111 * tree.h (type_has_mode_precision_p): New function.
17112 * convert.c (convert_to_integer_1): Use it.
17113 * expr.c (expand_expr_real_2): Likewise.
17114 (expand_expr_real_1): Likewise.
17115 * fold-const.c (fold_single_bit_test_into_sign_test): Likewise.
17116 * match.pd: Likewise.
17117 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
17118 * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
17119 * tree-tailcall.c (process_assignment): Likewise.
17120 * tree-vect-loop.c (vectorizable_reduction): Likewise.
17121 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern)
17122 (vect_recog_mult_pattern, vect_recog_divmod_pattern): Likewise.
17123 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
17124 (vectorizable_assignment): Likewise.
17125 (vectorizable_shift): Likewise.
17126 (vectorizable_operation): Likewise.
17127 * tree-vrp.c (register_edge_assert_for_2): Likewise.
17128
17129 2017-08-21 Wilco Dijkstra <wdijkstr@arm.com>
17130
17131 * match.pd: Add pow (C, x) simplification.
17132
17133 2017-08-21 Richard Biener <rguenther@suse.de>
17134
17135 PR tree-optimization/81900
17136 * tree-ssa-pre.c (compute_antic_aux): Properly compute changed
17137 for blocks with abnormal predecessors.
17138 (compute_antic): Do not set visited flag prematurely.
17139
17140 2017-08-21 Georg-Johann Lay <avr@gjlay.de>
17141
17142 PR target/79883
17143 * config/avr/avr.c (avr_set_current_function): Typo in diagnostic.
17144
17145 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
17146
17147 * stor-layout.h (vector_type_mode): Move to...
17148 * tree.h (vector_type_mode): ...here.
17149 * stor-layout.c (vector_type_mode): Move to...
17150 * tree.c (vector_type_mode): ...here. Include rtl.h and regs.h.
17151
17152 2017-08-21 Richard Biener <rguenther@suse.de>
17153
17154 * debug.h (struct gcc_debug_hooks): Add die_ref_for_decl and
17155 register_external_die hooks.
17156 (debug_false_tree_charstarstar_uhwistar): Declare.
17157 (debug_nothing_tree_charstar_uhwi): Likewise.
17158 * debug.c (do_nothing_debug_hooks): Adjust.
17159 (debug_false_tree_charstarstar_uhwistar): New do nothing.
17160 (debug_nothing_tree_charstar_uhwi): Likewise.
17161 * dbxout.c (dbx_debug_hooks): Adjust.
17162 (xcoff_debug_hooks): Likewise.
17163 * sdbout.c (sdb_debug_hooks): Likewise.
17164 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17165 * dwarf2out.c (macinfo_label_base): New global.
17166 (dwarf2out_register_external_die): New function for the
17167 register_external_die hook.
17168 (dwarf2out_die_ref_for_decl): Likewise for die_ref_for_decl.
17169 (dwarf2_debug_hooks): Use them.
17170 (dwarf2_lineno_debug_hooks): Adjust.
17171 (struct die_struct): Add with_offset flag.
17172 (DEBUG_LTO_DWO_INFO_SECTION, DEBUG_LTO_INFO_SECTION,
17173 DEBUG_LTO_DWO_ABBREV_SECTION, DEBUG_LTO_ABBREV_SECTION,
17174 DEBUG_LTO_DWO_MACINFO_SECTION, DEBUG_LTO_MACINFO_SECTION,
17175 DEBUG_LTO_DWO_MACRO_SECTION, DEBUG_LTO_MACRO_SECTION,
17176 DEBUG_LTO_LINE_SECTION, DEBUG_LTO_DWO_STR_OFFSETS_SECTION,
17177 DEBUG_LTO_STR_DWO_SECTION, DEBUG_STR_LTO_SECTION): New macros
17178 defining section names for the early LTO debug variants.
17179 (reset_indirect_string): New helper.
17180 (add_AT_external_die_ref): Helper for dwarf2out_register_external_die.
17181 (print_dw_val): Add support for offsetted symbol references.
17182 (get_ultimate_context): Split out from is_cxx.
17183 (is_cxx): Use get_ultimate_context.
17184 (is_fortran): Add decl overload.
17185 (compute_comp_unit_symbol): Split out worker from
17186 compute_section_prefix.
17187 (compute_section_prefix): Call compute_comp_unit_symbol and
17188 set comdat_type_p here.
17189 (output_die): Skip DIE symbol output for the LTO added one.
17190 Handle DIE symbol references with offset.
17191 (output_comp_unit): Guard section name mangling properly.
17192 For LTO debug sections emit a symbol at the section beginning
17193 which we use to refer to its DIEs.
17194 (add_abstract_origin_attribute): For DIEs registered via
17195 dwarf2out_register_external_die directly refer to the early
17196 DIE rather than indirectly through the shadow one we created.
17197 Remove obsolete call to dwarf2out_abstract_function for
17198 non-function/block origins.
17199 (gen_array_type_die): When generating early LTO debug do
17200 not emit DW_AT_string_length.
17201 (gen_formal_parameter_die): Do not re-create DIEs for PARM_DECLs
17202 late when in LTO. As suggested place a gcc_unreachable for
17203 the DECL_ABSTRACT_P case.
17204 (gen_subprogram_die): Avoid another specification DIE
17205 for early built declarations/definitions for the late LTO case.
17206 (gen_variable_die): Add type references for late duplicated VLA dies
17207 when in late LTO.
17208 (gen_inlined_subroutine_die): Do not call dwarf2out_abstract_function,
17209 we have the abstract instance already.
17210 (process_scope_var): Adjust decl DIE contexts in LTO which
17211 first puts them in limbo.
17212 (gen_decl_die): Do not generate type DIEs late apart from
17213 types for VLAs or for decls we do not yet have a DIE. Do not
17214 call dwarf2out_abstract_function late.
17215 (dwarf2out_early_global_decl): Make sure to create DIEs
17216 for abstract instances of a decl first.
17217 (dwarf2out_late_global_decl): Adjust comment.
17218 (output_macinfo_op): With multiple macro sections use
17219 macinfo_label_base to distinguish labels.
17220 (output_macinfo): Likewise. Update macinfo_label_base.
17221 Pass in the line info label.
17222 (note_variable_value_in_expr): When generating LTO resolve
17223 all variable values here by generating DIEs as needed.
17224 (init_sections_and_labels): Add early LTO debug flag parameter
17225 and generate different sections and names if set. Add generation
17226 counter for the labels so we can have multiple of them.
17227 (reset_dies): Helper to allow DIEs to be output multiple times.
17228 (dwarf2out_finish): When outputting DIEs to the fat part of an
17229 LTO object first reset DIEs.
17230 (dwarf2out_early_finish): Output early DIEs when generating LTO.
17231 (modified_type_die): Check for decl_ultimate_origin being self
17232 before recursing.
17233 (gen_type_die_with_usage): Likewise.
17234 (gen_typedef_die): Allow decl_ultimate_origin being self.
17235 (set_decl_abstract_flags): Remove.
17236 (set_block_abstract_flags): Likewise.
17237 (dwarf2out_abstract_function): Treat the early generated DIEs
17238 as the abstract copy and only add DW_AT_inline and
17239 DW_AT_artificial here and call set_decl_origin_self.
17240 If the DIE has an abstract origin don't do anything.
17241 * tree.c (free_lang_data): Build a dummy TRANSLATION_UNIT_DECL
17242 if we have none yet (Go fails to build one, PR78628).
17243 (variably_modified_type_p): Prevent endless recursion for Ada
17244 cyclic pointer types.
17245 * lto-streamer-in.c: Include debug.h.
17246 (dref_queue): New global.
17247 (lto_read_tree_1): Stream in DIE references.
17248 (lto_input_tree): Register DIE references.
17249 (input_function): Stream DECL_DEBUG_ARGS.
17250 * lto-streamer-out.c: Include debug.h.
17251 (lto_write_tree_1): Output DIE references.
17252 (DFS::DFS_write_tree_body): Follow DECL_ABSTRACT_ORIGIN.
17253 Force a TRANSLATION_UNIT_DECL DECL_CONTEXT for file-scope decls.
17254 (output_function): Stream DECL_DEBUG_ARGS.
17255 * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
17256 Stream DECL_ABSTRACT_ORIGIN.
17257 * tree-streamer-out.c (write_ts_decl_common_tree_pointers): Likewise.
17258 (write_ts_decl_minimal_tree_pointers): Force a TRANSLATION_UNIT_DECL
17259 DECL_CONTEXT for file-scope decls.
17260 * lto-streamer.h (struct dref_entry): Declare.
17261 (dref_queue): Likewise.
17262 * cfgexpand.c (pass_expand::execute): Do not call the
17263 outlining_inline_function hook here.
17264 * lto-wrapper.c (debug_obj): New global.
17265 (tool_cleanup): Unlink it if required.
17266 (debug_objcopy): New function.
17267 (run_gcc): Handle early debug sections in the IL files by
17268 extracting them to separate files, partially linkin them and
17269 feeding the result back as result to the linker.
17270 * config/darwin.h (DEBUG_LTO_INFO_SECTION, DEBUG_LTO_ABBREV_SECTION,
17271 DEBUG_LTO_MACINFO_SECTION, DEBUG_LTO_LINE_SECTION,
17272 DEBUG_STR_LTO_SECTION, DEBUG_LTO_MACRO_SECTION): Put early debug
17273 sections into a separate segment.
17274 * config/darwin.c (darwin_asm_named_section): Handle __GNU_DWARF_LTO
17275 segments.
17276 (darwin_asm_dwarf_section): Likewise.
17277 (darwin_asm_output_dwarf_offset): Likewise.
17278 * config/i386/i386.c (make_resolver_func): Set DECL_IGNORED_P.
17279
17280 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
17281 Alan Hayward <alan.hayward@arm.com>
17282 David Sherwood <david.sherwood@arm.com>
17283
17284 * read-md.h (md_reader::record_potential_iterator_use): Replace
17285 pointer argument with an rtx and an index.
17286 * read-rtl.c (iterator_group::apply_iterator): Likewise.
17287 (apply_mode_iterator): Likewise.
17288 (apply_code_iterator): Likewise.
17289 (apply_int_iterator): Likewise.
17290 (apply_subst_iterator): Likewise.
17291 (record_iterator_use): Likewise.
17292 (record_attribute_use): Likewise.
17293 (md_reader::record_potential_iterator_use): Likewise. Update calls
17294 to record_iterator_use and apply_iterator.
17295 (iterator_use): Replace ptr with x and index.
17296 (attribute_use): Likewise.
17297 (apply_attribute_uses): Update calls to apply_iterator.
17298 (apply_iterators): Likewise. Update initialization of iterator_use.
17299 (rtx_reader::read_rtx_code): Update calls to record_iterator_use
17300 and record_potential_iterator_use.
17301 (rtx_reader::read_rtx_operand): Likewise.
17302
17303 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
17304 Alan Hayward <alan.hayward@arm.com>
17305 David Sherwood <david.sherwood@arm.com>
17306
17307 * varasm.c (const_rtx_hash_1): Don't hash in the mode of a
17308 CONST_WIDE_INT.
17309
17310 2017-08-21 Richard Biener <rguenther@suse.de>
17311
17312 PR middle-end/81884
17313 * tree-ssa-alias.c (stmt_kills_ref_p): Handle array accesses
17314 at struct end conservatively when comparing common bases.
17315
17316 2017-08-21 Richard Biener <rguenther@suse.de>
17317
17318 * tree-ssa-loop-im.c (struct lim_aux_data): Add ref index member.
17319 (mem_ref_in_stmt): Remove.
17320 (determine_max_movement): Use ref index to get at the reference.
17321 (invariantness_dom_walker::before_dom_children): Deal with
17322 lim data already initialized.
17323 (gather_mem_refs_stmt): Initialize lim data and record ref index.
17324
17325 2017-08-19 Uros Bizjak <ubizjak@gmail.com>
17326
17327 * config/i386/i386.h (OPTION_MASK_ISA_ROUND): Remove.
17328 (TARGET_ISA_ROUND): Ditto.
17329 (TARGET_ROUND): Ditto.
17330 * config/i386/i386.c: Substitute TARGET_ROUND with TARGET_SSE4_1.
17331 * config/i386/i386.md: Ditto.
17332 * config/i386/sse.md: Ditto.
17333 * config/i386/i386-builtin.def: Substitute OPTION_MASK_ISA_ROUND
17334 with OPTION_MASK_ISA_SSE4_1.
17335
17336 2017-08-19 Uros Bizjak <ubizjak@gmail.com>
17337
17338 PR target/81894
17339 * doc/extend.texi (x86 Built-in Functions): Correct the name of
17340 __builtin_ia32_lzcnt_u16.
17341
17342 2017-08-18 Peter Bergner <bergner@vnet.ibm.com>
17343
17344 PR target/80210
17345 * config/rs6000/rs6000.c (rs6000_activate_target_options): New function.
17346 (rs6000_set_current_function): Rewrite function to use it.
17347
17348 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
17349
17350 PR c/53037
17351 * print-tree.c (print_node): Support DECL_WARN_IF_NOT_ALIGN
17352 and TYPE_WARN_IF_NOT_ALIGN.
17353 * stor-layout.c (do_type_align): Merge DECL_WARN_IF_NOT_ALIGN.
17354 (handle_warn_if_not_align): New.
17355 (place_union_field): Call handle_warn_if_not_align.
17356 (place_field): Call handle_warn_if_not_align.
17357 Copy TYPE_WARN_IF_NOT_ALIGN.
17358 (finish_builtin_struct): Copy TYPE_WARN_IF_NOT_ALIGN.
17359 (layout_type): Likewise.
17360 * tree-core.h (tree_type_common): Add warn_if_not_align. Set
17361 spare to 18.
17362 (tree_decl_common): Add warn_if_not_align.
17363 * tree.c (build_range_type_1): Copy TYPE_WARN_IF_NOT_ALIGN.
17364 * tree.h (TYPE_WARN_IF_NOT_ALIGN): New.
17365 (SET_TYPE_WARN_IF_NOT_ALIGN): Likewise.
17366 (DECL_WARN_IF_NOT_ALIGN): Likewise.
17367 (SET_DECL_WARN_IF_NOT_ALIGN): Likewise.
17368 * doc/extend.texi: Document warn_if_not_aligned attribute.
17369 * doc/invoke.texi: Document -Wif-not-aligned and -Wpacked-not-aligned.
17370
17371 2017-08-17 Martin Liska <mliska@suse.cz>
17372
17373 PR bootstrap/81864
17374 * tree-loop-distribution.c (ddrs_table): Change type to pointer type.
17375 (get_data_dependence): Use it as pointer type.
17376 (distribute_loop): Likewise.
17377
17378 2017-08-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17379
17380 * config/rs6000/altivec.md (UNSPEC_VMRGOW_DIRECT): New constant.
17381 (p8_vmrgew_v4sf_direct): Generalize to p8_vmrgew_<mode>_direct.
17382 (p8_vmrgow_<mode>_direct): New define_insn.
17383 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Properly
17384 handle endianness for vmrgew and vmrgow permute patterns.
17385
17386 2017-08-17 Peter Bergner <bergner@vnet.ibm.com>
17387
17388 * config/rs6000/altivec.md (VParity): Remove TARGET_VSX_TIMODE.
17389 * config/rs6000/rs6000-cpus.def: Remove comment.
17390 (ISA_2_7_MASKS_SERVER): Delete OPTION_MASK_VSX_TIMODE;
17391 (POWERPC_MASKS): Likewise.
17392 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Remove unneeded
17393 use of TARGET_VSX_TIMODE.
17394 (rs6000_setup_reg_addr_masks): Change TARGET_VSX_TIMODE to TARGET_VSX.
17395 (rs6000_init_hard_regno_mode_ok): Remove unneeded uses of
17396 TARGET_VSX_TIMODE. Change use of TARGET_VSX_TIMODE to TARGET_VSX.
17397 (rs6000_option_override_internal): Remove dead code.
17398 (rs6000_legitimize_address): Change TARGET_VSX_TIMODE to TARGET_VSX.
17399 (rs6000_legitimize_reload_address): Likewise.
17400 (rs6000_legitimate_address_p): Likewise.
17401 (rs6000_opt_masks): Delete "vsx-timode".
17402 (rs6000_disable_incompatible_switches): Remove mention of -mvsx-timode
17403 from function comment.
17404 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Delete.
17405 * config/rs6000/rs6000.md (FMOVE128_GPR): Remove TARGET_VSX_TIMODE.
17406 (V16QI, V8HI, V4SI, V4SF, V2DI, V2DF, V1TI): Remove useless empty
17407 condition.
17408 * config/rs6000/rs6000.opt (mvsx-timode): Replace with stub.
17409 * config/rs6000/vector.md (VEC_IP): Remove TARGET_VSX_TIMODE.
17410 * config/rs6000/vsx.md (VSX_LE_128): Likewise.
17411 (VSX_TI): Likewise.
17412 (VSX_M): Likewise.
17413 (define_peephole2): Likewise.
17414
17415 2017-08-17 Martin Sebor <msebor@redhat.com>
17416
17417 PR c/81859
17418 * pretty-print.c (pp_format): Use strnlen in %.*s to avoid reading
17419 past the end of an array.
17420 (test_pp_format): Add test cases.
17421
17422 2017-08-17 Richard Sandiford <richard.sandiford@linaro.org>
17423
17424 * internal-fn.def (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): Add
17425 missing ECF_NOTHROW flags.
17426
17427 2017-08-17 Peter Bergner <bergner@vnet.ibm.com>
17428
17429 PR target/72804
17430 * config/rs6000/vsx.md (*vsx_le_permute_<mode>): Add support for
17431 operands residing in integer registers.
17432 (*vsx_le_perm_load_<mode>): Likewise.
17433 (*vsx_le_perm_store_<mode>): Likewise.
17434 (define_peephole2): Add peepholes to optimize the above.
17435
17436 2017-08-17 Marek Polacek <polacek@redhat.com>
17437
17438 PR middle-end/81814
17439 * fold-const.c (operand_equal_for_comparison_p): Remove code that used
17440 to mimic what shorten_compare did. Change the return type to bool.
17441 (fold_cond_expr_with_comparison): Update call to
17442 operand_equal_for_comparison_p.
17443 (fold_ternary_loc): Likewise.
17444
17445 2017-08-17 Jackson Woodruff <jackson.woodruff@arm.com>
17446
17447 * aarch64-simd.md (mov<mode>): No longer force zero immediate into
17448 register.
17449 (*aarch64_simd_mov<mode>): Add new case for stp using zero immediate.
17450
17451 2017-08-17 Richard Biener <rguenther@suse.de>
17452
17453 * tree-ssa-structalias.c (solve_graph): When propagating
17454 to successors update the graphs succ edges and avoid duplicate work.
17455
17456 2017-08-17 Maxim Ostapenko <m.ostapenko@samsung.com>
17457
17458 PR target/81861
17459 * config/i386/i386.c (ix86_option_override_internal): Save target
17460 specific options after ix86_stack_protector_guard_reg was changed.
17461
17462 2017-08-17 Richard Biener <rguenther@suse.de>
17463
17464 PR tree-optimization/81827
17465 * tree-ssa-structalias.c (struct variable_info): Add is_reg_var flag.
17466 (new_var_info): Initialize it conservatively.
17467 (get_call_vi): Mark register vars.
17468 (new_scalar_tmp_constraint_exp): Likewise.
17469 (handle_rhs_call): Likewise.
17470 (handle_const_call): Likewise.
17471 (create_function_info_for): Likewise.
17472 (solve_constraints): Sort varinfos to separate register from
17473 non-register vars to pack points-to solution bitmaps during
17474 iteration.
17475
17476 2017-08-17 Marek Polacek <polacek@redhat.com>
17477
17478 * gimplify.c (gimplify_adjust_omp_clauses): Compare with 0 instead of 1.
17479
17480 2017-08-17 Richard Biener <rguenther@suse.de>
17481
17482 * tree-vrp.c (vrp_int_const_binop): Do not set *overflow_p
17483 to true when overflow is undefined and we saturated the result.
17484
17485 2017-08-17 Alan Modra <amodra@gmail.com>
17486
17487 PR target/80938
17488 * config/rs6000/rs6000.c (rs6000_savres_strategy): Revert 2017-08-09.
17489 Don't use store multiple if only one reg needs saving.
17490 (interesting_frame_related_regno): New function.
17491 (rs6000_frame_related): Don't emit frame info for regs that
17492 don't need saving.
17493 (rs6000_emit_epilogue): Likewise.
17494
17495 2017-08-16 Nathan Sidwell <nathan@acm.org>
17496
17497 * tree-core.h (tree_type_non_common): Rename binfo to lang_1.
17498 * tree.h (TYPE_BINFO): Use type_non_common.maxval.
17499 (TYPE_LANG_SLOT_1): Use type_non_common.lang_1, for any type.
17500 * tree.c (free_lang_data_in_type): Use else-if chain. Always
17501 clear TYPE_LANG_1. Remove obsolete member-function stripping.
17502 (find_decls_types_r): Comment about TYPE_MAX_VALUES_RAW.
17503 (verify_type): Adjust for TYPE_BINFO move.
17504 * lto-streamer-out.c (DFS::DFS_write_tree_body): No need to
17505 process TYPE_BINFO directly.
17506 (hash_tree): Likewise.
17507 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
17508 Likewise.
17509 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
17510 Likewise.
17511
17512 2017-08-16 David Malcolm <dmalcolm@redhat.com>
17513
17514 * diagnostic-show-locus.c (colorizer::m_caret): Remove unused field.
17515
17516 2017-08-16 Uros Bizjak <ubizjak@gmail.com>
17517
17518 PR target/46091
17519 * config/i386/i386.md (*anddi_1_btr): Change predicates of
17520 operand 0 and operand 1 to nomimmediate_operand. Add "m" constraint.
17521 Add ix86_binary_operator_ok to insn constraint.
17522 (*iordi_1_bts): Ditto.
17523 (*xordi_1_btc): Ditto.
17524 (*btsq): Change predicate of operand 0 to nonimmediate_operand.
17525 Update corresponding peephole2 pattern.
17526 (*btrq): Ditto.
17527 (*btcq): Ditto.
17528
17529 2017-08-16 Bin Cheng <bin.cheng@arm.com>
17530
17531 PR tree-optimization/81832
17532 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Don't
17533 copy loop header which has IFN_LOOP_DIST_ALIAS call.
17534
17535 2017-08-16 Marek Polacek <polacek@redhat.com>
17536
17537 PR middle/81695
17538 * fold-const.c (fold_indirect_ref_1): Restore original behavior
17539 regarding size_zero_node.
17540
17541 2017-08-16 Martin Liska <mliska@suse.cz>
17542
17543 PR target/81753
17544 * config.gcc: Respect previously set extra_objs in case
17545 of darwin target.
17546
17547 2017-08-16 Richard Sandiford <richard.sandiford@linaro.org>
17548
17549 PR tree-optimization/81835
17550 * tree-vect-loop.c (vect_is_simple_reduction): Simply checks for
17551 the phi SSA_NAME. Check that the condition in a COND_EXPR does
17552 not depend on the phi.
17553
17554 2017-08-16 Alan Modra <amodra@gmail.com>
17555
17556 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Delete
17557 dead code.
17558
17559 2017-08-16 Alan Modra <amodra@gmail.com>
17560
17561 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Merge..
17562 (save_reg_p): ..into this. Update all callers.
17563 (first_reg_to_save): Simplify.
17564
17565 2017-08-16 Alan Modra <amodra@gmail.com>
17566
17567 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't restore
17568 fixed regs.
17569
17570 2017-08-15 Joseph Myers <joseph@codesourcery.com>
17571
17572 PR target/78460
17573 PR target/67712
17574 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Only unroll for
17575 constant count if that count is less than 32.
17576
17577 2017-08-15 Nathan Sidwell <nathan@acm.org>
17578
17579 * gcc.c (execute): Emit friendlier message if inferior is killed
17580 by an external cause.
17581
17582 2017-08-15 Richard Biener <rguenther@suse.de>
17583
17584 PR tree-optimization/81790
17585 * tree-ssa-sccvn.c (vn_lookup_simplify_result): Handle both
17586 CONSTRUCTORs from simplifying and VN.
17587
17588 2017-08-14 Martin Sebor <msebor@redhat.com>
17589
17590 * builtin-attrs.def: Add comments.
17591
17592 2017-08-14 Martin Sebor <msebor@redhat.com>
17593
17594 PR c/81117
17595 * doc/extend.texi (attribute nonstring): Document new attribute.
17596
17597 2017-08-14 Martin Sebor <msebor@redhat.com>
17598
17599 PR c/81117
17600 * tree-diagnostic.c (default_tree_printer): Handle %G.
17601 * gimple-pretty-print.h (percent_G_format): Declare new function.
17602 * gimple-pretty-print.c (percent_G_format): Define.
17603 * tree-pretty-print.c (percent_K_format): Add argument.
17604
17605 2017-08-14 Martin Sebor <msebor@redhat.com>
17606
17607 PR translation/79998
17608 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
17609 Remove a stray space.
17610
17611 2017-08-14 Uros Bizjak <ubizjak@gmail.com>
17612
17613 PR target/46091
17614 * config/i386/i386.md (*anddi_1_btr): New insn_and_split pattern.
17615 (*iordi_1_bts): Ditto.
17616 (*xordi_1_btc): Ditto.
17617
17618 2017-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17619
17620 PR target/79845
17621 * config/rs6000/linux64.h (INVALID_64BIT): Use quoted strings.
17622 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17623 Likewise.
17624 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Use
17625 quoted strings, and make more translator-friendly.
17626 (darwin_rs6000_override_options): Likewise.
17627 (rs6000_option_override_internal): Likewise.
17628 (rs6000_return_in_memory): Fix overlong line.
17629 (init_cmulative_args): Use quoted strings, and make more
17630 translator-friendly.
17631 (rs6000_pass_by_reference): Fix overlong line.
17632 (def_builtin): Use quoted strings.
17633 (altivec_expand_predicate_builtin): Use quoted strings, and make
17634 more translator-friendly.
17635 (htm_expand_builtin): Use quoted strings.
17636 (cpu_expand_builtin): Use quoted strings, and make more
17637 translator-friendly.
17638 (altivec_expand_builtin): Likewise.
17639 (paired_expand_predicate_builtin): Likewise.
17640 (rs6000_invalid_builtin): Likewise.
17641 (builtin_function_type): Use quoted strings.
17642 (rs6000_expand_split_stack_prologue): Use quoted strings, and make
17643 more translator-friendly.
17644 (rs6000_trampoline_init): Likewise.
17645 (rs6000_handle_altivec_attribute): Likewise.
17646 (rs6000_inner_target_options): Use quoted strings.
17647 (rs6000_disable_incompatible_switches): Likewise.
17648 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Use quoted
17649 strings, and make more translator-friendly.
17650 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use quoted strings.
17651
17652 2017-08-14 Bin Cheng <bin.cheng@arm.com>
17653
17654 PR tree-optimization/81799
17655 * tree-loop-distribution.c (version_loop_by_alias_check): Force
17656 cond_expr to simple gimple operand.
17657
17658 2017-08-14 Wilco Dijkstra <wdijkstr@arm.com>
17659
17660 PR middle-end/46932
17661 * doc/sourcebuild.texi (autoincdec): Add autoincdec description.
17662
17663 2017-08-14 Georg-Johann Lay <avr@gjlay.de>
17664
17665 PR target/81754
17666 PR target/81268
17667 * config/avr/avr.opt (mgas-isr-prologues): New Var avr_gasisr_prologues.
17668 * config/avr/avr.md (gasisr, *gasisr): Use it instead of
17669 TARGET_GASISR_PROLOGUES.
17670 * config/avr/avr.c (avr_option_override): Same.
17671 (avr_pass_pre_proep::execute): Same.
17672
17673 2017-08-13 H.J. Lu <hongjiu.lu@intel.com>
17674
17675 PR target/81820
17676 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Replace
17677 frame pointer with stack pointer - UNITS_PER_WORD in debug insns.
17678
17679 2017-08-13 Uros Bizjak <ubizjak@gmail.com>
17680
17681 * config/i386/i386.md (*load_tp_<mode>): Redefine as
17682 define_insn_and_split. Split to a memory load from 0 in
17683 DEFAULT_TLS_SEG_REG address space. Merge with *load_tp_x32
17684 using PTR mode iterator.
17685 (*load_tp_x32_zext"): Redefine as define_insn_and_split.
17686 Split to a memory load from 0 in DEFAULT_TLS_SEG_REG address space.
17687 (*add_tp_<mode>): Redefine as define_insn_and_split.
17688 Split to an add with a memory load from 0 in DEFAULT_TLS_SEG_REG
17689 address space. Merge with *add_tp_x32 using PTR mode iterator.
17690 (*add_tp_x32_zext"): Redefine as define_insn_and_split.
17691 Split to an add with a memory load from 0 in
17692 DEFAULT_TLS_SEG_REG address space.
17693
17694 2017-08-12 Andrew Pinski <apinski@cavium.com>
17695
17696 * config/aarch64/aarch64-option-extensions.def (rdma):
17697 Fix feature string to what Linux prints out in /proc/cpuinfo.
17698
17699 2017-08-12 Pierre-Marie de Rodat <derodat@adacore.com>
17700
17701 PR ada/79542
17702 * dwarf2out.c (modified_type_die): For C typedef types that have
17703 an ultimate origin, process the ultimate origin instead of the
17704 input type.
17705 (gen_typedef_die): Assert that input DECLs have no ultimate
17706 origin.
17707 (gen_type_die_with_usage): For typedef variants that have an
17708 ultimate origin, just call gen_decl_die on the original DECL.
17709 (process_scope_var): Avoid creating DIEs for local typedefs and
17710 concrete static variables.
17711
17712 2017-08-12 Alan Modra <amodra@gmail.com>
17713
17714 PR target/81170
17715 PR target/81295
17716 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Upgrade to
17717 match gnu-user.h startfile.
17718 (ENDFILE_LINUX_SPEC): Similarly.
17719
17720 2017-08-11 Thomas Schwinge <thomas@codesourcery.com>
17721
17722 PR lto/81430
17723 * config/nvptx/nvptx.c (nvptx_override_options_after_change):
17724 Remove function.
17725 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Remove definition.
17726
17727 2017-08-11 Tamar Christina <tamar.christina@arm.com>
17728 * config/aarch64/aarch64.md (mov<mode>): Change.
17729 (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
17730 aarch64_reg_or_fp_float into aarch64_reg_or_fp_zero.
17731 * config/aarch64/predicates.md (aarch64_reg_or_fp_float): Removed.
17732
17733 2017-08-11 Eric Botcazou <ebotcazou@adacore.com>
17734
17735 * tree-sra.c (build_access_from_expr_1): Use more precise diagnostics
17736 for storage order barriers.
17737
17738 2017-08-11 Martin Liska <mliska@suse.cz>
17739
17740 PR tree-opt/79987
17741 * tree-chkp.c (chkp_get_bounds_for_decl_addr): Do not instrument
17742 variables of void type.
17743
17744 2017-08-11 Martin Liska <mliska@suse.cz>
17745
17746 * asan.c (asan_protect_global): Replace ASM_OUTPUT_DEF with
17747 TARGET_SUPPORTS_ALIASES.
17748 * cgraph.c (cgraph_node::create_same_body_alias): Likewise.
17749 * ipa-visibility.c (can_replace_by_local_alias): Likewise.
17750 (optimize_weakref): Likewise.
17751 * symtab.c (symtab_node::noninterposable_alias): Likewise.
17752 * varpool.c (varpool_node::create_extra_name_alias): Likewise.
17753 * defaults.h: Introduce TARGET_SUPPORTS_ALIASES.
17754
17755 2017-08-11 Martin Liska <mliska@suse.cz>
17756
17757 PR ipa/81213
17758 * config/i386/i386.c (make_resolver_func): Do complete
17759 refactoring of the function.
17760
17761 2017-08-10 Uros Bizjak <ubizjak@gmail.com>
17762
17763 PR target/81708
17764 * config/i386/i386.opt (mstack-protector-guard-symbol=): New option
17765 * config/i386/i386.c (ix86_stack_protect_guard): Use
17766 ix86_stack_protect_guard_symbol_str to generate varible declaration.
17767 * doc/invoke.texi (x86 Options): Document
17768 -mstack-protector-guard-symbol= option.
17769
17770 2017-08-10 Uros Bizjak <ubizjak@gmail.com>
17771
17772 * config/i386/i386-protos.h (ix86_split_stack_guard): New prototype.
17773 * config/i386/i386.c (ix86_split_stack_guard): New function.
17774 (ix86_xpand_split_stack_prologue): Call ix86_split_stack_guard.
17775 (ix86_legitimate_address_p) <case UNSPEC_STACK_CHECK>: Remove.
17776 (i386_asm_output_addr_const_extra) <case UNSPEC_STACK_CHECK>: Ditto.
17777 (optput_pic_addr_const): Remove UNSPEC_STACK_CHECK handling.
17778 * config/i386/i386.md (unspec): Remove UNSPEC_STACK_CHECK.
17779 (split_stack_space_check): Call ix86_split_stack_guard.
17780
17781 2017-08-10 Martin Sebor <msebor@redhat.com>
17782
17783 * print-tree.c (print_node): Print location using the established
17784 format %s:%i%i.
17785 Replace spaces with colons.
17786 (debug_raw, debug): Ditto.
17787
17788 2017-08-10 Martin Sebor <msebor@redhat.com>
17789
17790 PR c++/81586
17791 * pretty-print.c (pp_format): Correct the handling of %s precision.
17792
17793 2017-08-10 H.J. Lu <hongjiu.lu@intel.com>
17794
17795 PR target/81736
17796 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
17797 to ...
17798 (ix86_finalize_stack_frame_flags): This. Also clear
17799 frame_pointer_needed if -fno-omit-frame-pointer is used without
17800 stack access.
17801 (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
17802 with ix86_finalize_stack_frame_flags.
17803 (ix86_expand_epilogue): Likewise.
17804 (ix86_expand_split_stack_prologue): Likewise.
17805 * doc/invoke.texi: Add a note for -fno-omit-frame-pointer.
17806
17807 2017-08-10 Martin Liska <mliska@suse.cz>
17808
17809 PR c++/81355
17810 * c-attribs.c (handle_target_attribute):
17811 Report warning for an empty string argument of target attribute.
17812
17813 2017-08-09 Jakub Jelinek <jakub@redhat.com>
17814
17815 PR c/81687
17816 * omp-low.c (omp_copy_decl): Don't remap FORCED_LABEL or DECL_NONLOCAL
17817 LABEL_DECLs.
17818 * tree-cfg.c (move_stmt_op): Don't adjust DECL_CONTEXT of FORCED_LABEL
17819 or DECL_NONLOCAL labels.
17820 (move_stmt_r) <case GIMPLE_LABEL>: Adjust DECL_CONTEXT of FORCED_LABEL
17821 or DECL_NONLOCAL labels here.
17822
17823 2017-08-09 Will Schmidt <will_schmidt@vnet.ibm.com>
17824
17825 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add blurb
17826 to indicate when early gimple folding has been disabled.
17827 (rs6000_gimple_fold_builtin): Add debug content.
17828 (rs6000_invalid_builtin): Fix whitespace.
17829 (rs6000_expand_builtin): Fix whitespace.
17830 * config/rs6000/rs6000.opt: Add option for -mfold-gimple.
17831
17832 2017-08-09 Segher Boessenkool <segher@kernel.crashing.org>
17833
17834 PR target/80938
17835 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
17836 SAVE_MULTIPLE if not all the registers that saves, should be saved.
17837
17838 2017-08-09 Jim Wilson <jim.wilson@linaro.org>
17839
17840 * config/aarch64/aarch64-cores.def (falkor): Use falkor pipeline.
17841 (qdf24xx): Likewise.
17842 * config/aarch64/aarch64.md: Include falkor.md.
17843 * config/aarch64/falkor.md: New.
17844
17845 2017-08-09 Marek Polacek <polacek@redhat.com>
17846
17847 PR c/81233
17848 * diagnostic-core.h (emit_diagnostic_valist): Add declaration.
17849 * diagnostic.c (emit_diagnostic): Add a comment.
17850 (emit_diagnostic_valist): New function.
17851
17852 2017-08-09 Marek Polacek <polacek@redhat.com>
17853
17854 PR c/81417
17855 * input.c (make_location): New overload.
17856 * input.h (make_location): Declare.
17857
17858 2017-08-08 Alan Modra <amodra@gmail.com>
17859 H.J. Lu <hongjiu.lu@intel.com>
17860
17861 PR driver/81523
17862 * gcc.c (NO_PIE_SPEC): Delete.
17863 (PIE_SPEC): Define as !no-pie/pie. Move static|shared|r
17864 exclusion..
17865 (LINK_PIE_SPEC): ..to here.
17866 (LINK_COMMAND_SPEC): Support -no-pie.
17867 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Correct
17868 chain of crtbegin*.o selection, update for PIE_SPEC changes and
17869 format.
17870 (GNU_USER_TARGET_ENDFILE_SPEC): Similarly.
17871 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Similarly.
17872 (ENDFILE_CRTEND_SPEC): Similarly.
17873
17874 2017-08-08 Uros Bizjak <ubizjak@gmail.com>
17875
17876 PR target/81708
17877 * config/i386/i386.opt (mstack-protector-guard-reg=): New option
17878 (mstack-protector-guard-offset=): Ditto.
17879 * config/i386/i386.c (ix86_option_override): Handle
17880 -mstack-protector-guard-reg= and -mstack-protector-guard-offset=
17881 options.
17882 (ix86_stack_protect_guard): Use ix86_stack_protect_guard_reg and
17883 ix86_stack_protect_guard_offset variables.
17884 (TARGET_STACK_PROTECT_GUARD): Always define.
17885 * doc/invoke.texi (x86 Options): Document -mstack-protector-guard-reg=
17886 and -mstack-protector-guard-offset= options.
17887
17888 2017-08-08 Bin Cheng <bin.cheng@arm.com>
17889
17890 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): Handle
17891 boundary case for the last candidate.
17892
17893 2017-08-08 Bin Cheng <bin.cheng@arm.com>
17894
17895 * doc/invoke.texi: Document -ftree-loop-distribution for O3.
17896 * opts.c (default_options_table): Add OPT_ftree_loop_distribution.
17897
17898 2017-08-08 Tamar Christina <tamar.christina@arm.com>
17899
17900 PR middle-end/19706
17901 * config/aarch64/aarch64.md (xorsign<mode>3): New optabs.
17902 * config/aarch64/aarch64-builtins.c
17903 (aarch64_builtin_vectorized_function): Added CASE_CFN_XORSIGN.
17904 * config/aarch64/aarch64-simd-builtins.def: Added xorsign BINOP.
17905 * config/aarch64/aarch64-simd.md: Added xorsign<mode>3
17906
17907 2017-08-08 Tamar Christina <tamar.christina@arm.com>
17908 Andrew Pinski <pinskia@gmail.com>
17909
17910 PR middle-end/19706
17911 * internal-fn.def (XORSIGN): New.
17912 * optabs.def (xorsign_optab): New.
17913 * tree-ssa-math-opts.c (is_copysign_call_with_1): New.
17914 (convert_expand_mult_copysign): New.
17915 (pass_optimize_widening_mul::execute): Call
17916 convert_expand_mult_copysign.
17917
17918 2017-08-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17919
17920 PR tree-optimization/81354
17921 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
17922 Insert on edges rather than explicitly creating landing pads.
17923 (analyze_candidates_and_replace): Commit edge inserts.
17924
17925 2017-08-08 Richard Biener <rguenther@suse.de>
17926
17927 PR middle-end/81719
17928 * tree-ssa-loop-niter.c: Include tree-dfa.h.
17929 (expand_simple_operations): Also look through ADDR_EXPRs with
17930 MEM_REF bases treating them as POINTER_PLUS_EXPR.
17931
17932 2017-08-08 Richard Biener <rguenther@suse.de>
17933
17934 PR tree-optimization/81723
17935 * tree-vect-slp.c (struct bst_traits): New hash traits.
17936 (bst_fail): New global.
17937 (vect_build_slp_tree_2): New worker, split out from ...
17938 (vect_build_slp_tree): ... this now wrapping it with using
17939 bst_fail set to cache SLP tree build fails. Properly handle
17940 max_tree_size.
17941 (vect_analyze_slp_instance): Allocate and free bst_fail.
17942
17943 2017-08-08 Martin Liska <mliska@suse.cz>
17944
17945 PR tree-opt/81696
17946 * ipa-icf-gimple.c (func_checker::compare_cst_or_decl): Consider
17947 LABEL_DECLs that can be from a different function.
17948
17949 2017-08-08 Bin Cheng <bin.cheng@arm.com>
17950
17951 PR tree-optimization/81744
17952 * tree-predcom.c (prepare_finalizers_chain): Deep copy expr of
17953 loop's number of iterations.
17954
17955 2017-08-08 Martin Liska <mliska@suse.cz>
17956
17957 * asan.c: Include header files.
17958 * attribs.c (build_decl_attribute_variant): New function moved
17959 from tree.[ch].
17960 (build_type_attribute_qual_variant): Likewise.
17961 (cmp_attrib_identifiers): Likewise.
17962 (simple_cst_list_equal): Likewise.
17963 (omp_declare_simd_clauses_equal): Likewise.
17964 (attribute_value_equal): Likewise.
17965 (comp_type_attributes): Likewise.
17966 (build_type_attribute_variant): Likewise.
17967 (lookup_ident_attribute): Likewise.
17968 (remove_attribute): Likewise.
17969 (merge_attributes): Likewise.
17970 (merge_type_attributes): Likewise.
17971 (merge_decl_attributes): Likewise.
17972 (merge_dllimport_decl_attributes): Likewise.
17973 (handle_dll_attribute): Likewise.
17974 (attribute_list_equal): Likewise.
17975 (attribute_list_contained): Likewise.
17976 * attribs.h (lookup_attribute): New function moved from tree.[ch].
17977 (lookup_attribute_by_prefix): Likewise.
17978 * bb-reorder.c: Include header files.
17979 * builtins.c: Likewise.
17980 * calls.c: Likewise.
17981 * cfgexpand.c: Likewise.
17982 * cgraph.c: Likewise.
17983 * cgraphunit.c: Likewise.
17984 * convert.c: Likewise.
17985 * dwarf2out.c: Likewise.
17986 * final.c: Likewise.
17987 * fold-const.c: Likewise.
17988 * function.c: Likewise.
17989 * gimple-expr.c: Likewise.
17990 * gimple-fold.c: Likewise.
17991 * gimple-pretty-print.c: Likewise.
17992 * gimple.c: Likewise.
17993 * gimplify.c: Likewise.
17994 * hsa-common.c: Likewise.
17995 * hsa-gen.c: Likewise.
17996 * internal-fn.c: Likewise.
17997 * ipa-chkp.c: Likewise.
17998 * ipa-cp.c: Likewise.
17999 * ipa-devirt.c: Likewise.
18000 * ipa-fnsummary.c: Likewise.
18001 * ipa-inline.c: Likewise.
18002 * ipa-visibility.c: Likewise.
18003 * ipa.c: Likewise.
18004 * lto-cgraph.c: Likewise.
18005 * omp-expand.c: Likewise.
18006 * omp-general.c: Likewise.
18007 * omp-low.c: Likewise.
18008 * omp-offload.c: Likewise.
18009 * omp-simd-clone.c: Likewise.
18010 * opts-global.c: Likewise.
18011 * passes.c: Likewise.
18012 * predict.c: Likewise.
18013 * sancov.c: Likewise.
18014 * sanopt.c: Likewise.
18015 * symtab.c: Likewise.
18016 * toplev.c: Likewise.
18017 * trans-mem.c: Likewise.
18018 * tree-chkp.c: Likewise.
18019 * tree-eh.c: Likewise.
18020 * tree-into-ssa.c: Likewise.
18021 * tree-object-size.c: Likewise.
18022 * tree-parloops.c: Likewise.
18023 * tree-profile.c: Likewise.
18024 * tree-ssa-ccp.c: Likewise.
18025 * tree-ssa-live.c: Likewise.
18026 * tree-ssa-loop.c: Likewise.
18027 * tree-ssa-sccvn.c: Likewise.
18028 * tree-ssa-structalias.c: Likewise.
18029 * tree-ssa.c: Likewise.
18030 * tree-streamer-in.c: Likewise.
18031 * tree-vectorizer.c: Likewise.
18032 * tree-vrp.c: Likewise.
18033 * tsan.c: Likewise.
18034 * ubsan.c: Likewise.
18035 * varasm.c: Likewise.
18036 * varpool.c: Likewise.
18037 * tree.c: Remove functions moved to attribs.[ch].
18038 * tree.h: Likewise.
18039 * config/aarch64/aarch64.c: Add attrs.h header file.
18040 * config/alpha/alpha.c: Likewise.
18041 * config/arc/arc.c: Likewise.
18042 * config/arm/arm.c: Likewise.
18043 * config/avr/avr.c: Likewise.
18044 * config/bfin/bfin.c: Likewise.
18045 * config/c6x/c6x.c: Likewise.
18046 * config/cr16/cr16.c: Likewise.
18047 * config/cris/cris.c: Likewise.
18048 * config/darwin.c: Likewise.
18049 * config/epiphany/epiphany.c: Likewise.
18050 * config/fr30/fr30.c: Likewise.
18051 * config/frv/frv.c: Likewise.
18052 * config/ft32/ft32.c: Likewise.
18053 * config/h8300/h8300.c: Likewise.
18054 * config/i386/winnt.c: Likewise.
18055 * config/ia64/ia64.c: Likewise.
18056 * config/iq2000/iq2000.c: Likewise.
18057 * config/lm32/lm32.c: Likewise.
18058 * config/m32c/m32c.c: Likewise.
18059 * config/m32r/m32r.c: Likewise.
18060 * config/m68k/m68k.c: Likewise.
18061 * config/mcore/mcore.c: Likewise.
18062 * config/microblaze/microblaze.c: Likewise.
18063 * config/mips/mips.c: Likewise.
18064 * config/mmix/mmix.c: Likewise.
18065 * config/mn10300/mn10300.c: Likewise.
18066 * config/moxie/moxie.c: Likewise.
18067 * config/msp430/msp430.c: Likewise.
18068 * config/nds32/nds32-isr.c: Likewise.
18069 * config/nds32/nds32.c: Likewise.
18070 * config/nios2/nios2.c: Likewise.
18071 * config/nvptx/nvptx.c: Likewise.
18072 * config/pa/pa.c: Likewise.
18073 * config/pdp11/pdp11.c: Likewise.
18074 * config/powerpcspe/powerpcspe.c: Likewise.
18075 * config/riscv/riscv.c: Likewise.
18076 * config/rl78/rl78.c: Likewise.
18077 * config/rx/rx.c: Likewise.
18078 * config/s390/s390.c: Likewise.
18079 * config/sh/sh.c: Likewise.
18080 * config/sol2.c: Likewise.
18081 * config/sparc/sparc.c: Likewise.
18082 * config/spu/spu.c: Likewise.
18083 * config/stormy16/stormy16.c: Likewise.
18084 * config/tilegx/tilegx.c: Likewise.
18085 * config/tilepro/tilepro.c: Likewise.
18086 * config/v850/v850.c: Likewise.
18087 * config/vax/vax.c: Likewise.
18088 * config/visium/visium.c: Likewise.
18089 * config/xtensa/xtensa.c: Likewise.
18090
18091 2017-08-07 Michael Meissner <meissner@linux.vnet.ibm.com>
18092
18093 PR target/81593
18094 * config/rs6000/vsx.md (vsx_concat_<mode>, VSX_D): Cleanup
18095 constraints since the -mupper-regs-* switches have been
18096 eliminated.
18097 (vsx_concat_<mode>_1): New combiner insns to recognize inserting
18098 into a vector from a double word element that was extracted from
18099 another vector, and eliminate extra XXPERMDI instructions.
18100 (vsx_concat_<mode>_2): Likewise.
18101 (vsx_concat_<mode>_3): Likewise.
18102 (vsx_set_<mode>, VSX_D): Rewrite vector set in terms of vector
18103 concat to allow optimizing inserts from previous extracts.
18104
18105 2017-08-07 Uros Bizjak <ubizjak@gmail.com>
18106
18107 * config/i386/i386.c (ix86_stack_protect_guard): Generate
18108 memory reference to a SSP offset in TLS address space.
18109 (ix86_print_operand) <case '@'>: Remove.
18110 (ix86_print_operand_punct_valid_p): Remove '@' code.
18111 * config/i386/i386.md (unspec): Remove UNSPEC_SP_TLS_SET and
18112 UNSPEC_SP_TLS_TEST.
18113 (stack_tls_protect_set_<mode>): Remove.
18114 (stack_protect_set): Do not call gen_stack_tls_protect_set_<mode>.
18115 (stack_tls_protect_test_<mode>): Remove.
18116 (stack_protect_test): Do not call gen_stack_tls_protect_test_<mode>.
18117
18118 2017-08-07 Olivier Hainque <hainque@adacore.com>
18119
18120 PR target/81755
18121 * config/vxworksae.h (VXWORKS_HAVE_TLS): Define.
18122
18123 2017-08-07 Douglas Rupp <rupp@adacore.com>
18124
18125 * Makefile.in (install-mkheaders): Fix typo, where the multi_dir
18126 variable was referenced as multidir in command.
18127
18128 2017-08-07 Jakub Jelinek <jakub@redhat.com>
18129
18130 PR c/69389
18131 * gimplify.c (goa_stabilize_expr): Handle BIT_INSERT_EXPR and
18132 BIT_FIELD_REF.
18133
18134 2017-08-07 Martin Liska <mliska@suse.cz>
18135
18136 * config/m32c/m32c.c: Add include of stringpool.h and attribs.h.
18137 * config/rl78/rl78.c: Add include of attribs.h.
18138 * config/sh/sh.c: Likewise.
18139 * config/v850/v850.c: Likewise.
18140
18141 2017-08-07 Tom de Vries <tom@codesourcery.com>
18142
18143 PR middle-end/78266
18144 * omp-expand.c (expand_oacc_for): Ensure diff_type is large enough.
18145
18146 2017-08-07 Martin Liska <mliska@suse.cz>
18147
18148 * config/mips/mips.c: Include attribs.h.
18149
18150 2017-08-07 Thomas Koenig <tkoenig@gcc.gnu.org>
18151
18152 PR fortran/68829
18153 * doc/invoke.texi: Document change in behvaior for -Ofast for
18154 Fortran.
18155
18156 2017-08-07 Wilco Dijkstra <wdijkstr@arm.com>
18157
18158 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg):
18159 Use gen_frame_mem.
18160 (aarch64_pop_regs): Likewise.
18161 (aarch64_gen_load_pair): Likewise.
18162 (aarch64_save_callee_saves): Likewise.
18163 (aarch64_restore_callee_saves): Likewise.
18164
18165 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
18166
18167 * config/i386/i386.c: Revert the last change.
18168
18169 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
18170
18171 PR target/81736
18172 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
18173 to ...
18174 (ix86_finalize_stack_frame_flags): This. Also clear
18175 frame_pointer_needed if -fno-omit-frame-pointer is used without
18176 stack access.
18177 (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
18178 with ix86_finalize_stack_frame_flags.
18179 (ix86_expand_epilogue): Likewise.
18180 (ix86_expand_split_stack_prologue): Likewise.
18181
18182 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
18183
18184 PR target/81743
18185 * config/i386/i386.c (get_builtin_code_for_version): Set priority
18186 to P_AES for Westmere.
18187
18188 2017-08-07 Jonathan Yong <10walls@gmail.com>
18189
18190 * config/i386/mingw.opt (fset-stack-executable): Removed.
18191 * config/i386/cygming.opt (fset-stack-executable): Moved
18192 from mingw.opt.
18193 * config/i386/cygwin.h: Define CHECK_EXECUTE_STACK_ENABLED.
18194
18195 2017-08-07 Segher Boessenkool <segher@kernel.crashing.org>
18196
18197 * print-rtl.c (print_exp): Print NOT as "~" instead of as "!".
18198
18199 2017-08-07 Marek Polacek <polacek@redhat.com>
18200
18201 PR middle-end/81737
18202 * fold-const.c (fold_indirect_ref_1): Check type_domain.
18203
18204 2017-08-07 Martin Liska <mliska@suse.cz>
18205
18206 * attribs.h (canonicalize_attr_name): New function.
18207 (cmp_attribs): Move from c-format.c and adjusted.
18208 (is_attribute_p): Moved from tree.h.
18209 * tree-inline.c: Add new includes.
18210 * tree.c (cmp_attrib_identifiers): Use cmp_attribs.
18211 (private_is_attribute_p): Remove.
18212 (private_lookup_attribute): Likewise.
18213 (private_lookup_attribute_by_prefix): Simplify.
18214 (remove_attribute): Use is_attribute_p.
18215 * tree.h: Remove removed declarations.
18216
18217 2017-08-07 Jakub Jelinek <jakub@redhat.com>
18218
18219 PR middle-end/81698
18220 * stmt.c (emit_case_dispatch_table): Add DEFAULT_EDGE argument,
18221 instead of computing it in the function. Formatting fix.
18222 (expand_case): Don't rely on default_edge being the first edge,
18223 clear it if removing it, pass default_edge to
18224 emit_case_dispatch_table.
18225 (expand_sjlj_dispatch_table): Pass NULL as DEFAULT_EDGE, formatting
18226 fix.
18227
18228 2017-08-06 Uros Bizjak <ubizjak@gmail.com>
18229
18230 * config/alpha/alpha.c (alpha_reorg): If trap is the last active
18231 insn in the function, emit NOP after the insn.
18232
18233 2017-08-06 Tom de Vries <tom@codesourcery.com>
18234
18235 * omp-expand.c (expand_oacc_for): Add missing edge probability for tile
18236 and element loops.
18237
18238 2017-08-06 Tom de Vries <tom@codesourcery.com>
18239
18240 * omp-expand.c (expand_oacc_for): Add missing edge probability for chunk
18241 loop.
18242
18243 2017-08-04 Yury Gribov <tetra2005@gmail.com>
18244
18245 PR tree-optimization/57371
18246 * match.pd: New pattern.
18247
18248 2017-08-04 Marek Polacek <polacek@redhat.com>
18249
18250 PR middle-end/81695
18251 * fold-const.c (fold_indirect_ref_1): For ((int *)&a + 4 -> a[1],
18252 perform the computation in offset_int.
18253
18254 2017-08-04 Richard Sandiford <richard.sandiford@linaro.org>
18255
18256 PR tree-optimization/81136
18257 * tree-vectorizer.h: Include tree-hash-traits.h.
18258 (vec_base_alignments): New typedef.
18259 (vec_info): Add a base_alignments field.
18260 (vect_record_base_alignments): Declare.
18261 * tree-data-ref.h (data_reference): Add an is_conditional_in_stmt
18262 field.
18263 (DR_IS_CONDITIONAL_IN_STMT): New macro.
18264 (create_data_ref): Add an is_conditional_in_stmt argument.
18265 * tree-data-ref.c (create_data_ref): Likewise. Use it to initialize
18266 the is_conditional_in_stmt field.
18267 (data_ref_loc): Add an is_conditional_in_stmt field.
18268 (get_references_in_stmt): Set the is_conditional_in_stmt field.
18269 (find_data_references_in_stmt): Update call to create_data_ref.
18270 (graphite_find_data_references_in_stmt): Likewise.
18271 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
18272 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
18273 (vect_record_base_alignment): New function.
18274 (vect_record_base_alignments): Likewise.
18275 (vect_compute_data_ref_alignment): Adjust base_addr and aligned_to
18276 for nested statements even if we fail to compute a misalignment.
18277 Use pooled base alignments for unconditional references.
18278 (vect_find_same_alignment_drs): Compare base addresses instead
18279 of base objects.
18280 (vect_analyze_data_refs_alignment): Call vect_record_base_alignments.
18281 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
18282
18283 2017-08-04 Richard Sandiford <richard.sandiford@linaro.org>
18284
18285 * tree-vectorizer.h (vec_info): Add a constructor and destructor.
18286 Add an explicit name for the enum. Use auto_vec for slp_instances
18287 and grouped_stores.
18288 (_loop_vec_info): Add a constructor and destructor. Use auto_vec
18289 for all vectors.
18290 (_bb_vec_info): Add a constructor and destructor.
18291 (vinfo_for_stmt): Return NULL for uids of -1 as well.
18292 (destroy_loop_vec_info): Delete.
18293 (vect_destroy_datarefs): Likewise.
18294 * tree-vectorizer.c (vect_destroy_datarefs): Delete.
18295 (vec_info::vec_info): New function.
18296 (vec_info::~vec_info): Likewise.
18297 (vectorize_loops): Use delete instead of destroy_loop_vec_info.
18298 * tree-parloops.c (gather_scalar_reductions): Use delete instead of
18299 destroy_loop_vec_info.
18300 * tree-vect-loop.c (new_loop_vec_info): Replace with...
18301 (_loop_vec_info::_loop_vec_info): ...this.
18302 (destroy_loop_vec_info): Replace with...
18303 (_loop_vec_info::~_loop_vec_info): ...this. Unconditionally delete
18304 the stmt_vec_infos. Leave handling of vec_info information to its
18305 destructor. Remove explicit vector releases.
18306 (vect_analyze_loop_form): Use new instead of new_loop_vec_info.
18307 (vect_analyze_loop): Use delete instead of destroy_loop_vec_info.
18308 * tree-vect-slp.c (new_bb_vec_info): Replace with...
18309 (_bb_vec_info::_bb_vec_info): ...this. Don't reserve space in
18310 BB_VINFO_GROUPED_STORES or BB_VINFO_SLP_INSTANCES.
18311 (destroy_bb_vec_info): Replace with...
18312 (_bb_vec_info::~_bb_vec_info): ...this. Leave handling of vec_info
18313 information to its destructor.
18314 (vect_slp_analyze_bb_1): Use new and delete instead of
18315 new_bb_vec_info and destroy_bb_vec_info.
18316 (vect_slp_bb): Replace 2 calls to destroy_bb_vec_info with a
18317 single delete.
18318
18319 2017-08-04 Richard Sandiford <richard.sandiford@linaro.org>
18320
18321 * tree-data-ref.h (subscript): Add access_fn field.
18322 (data_dependence_relation): Add could_be_independent_p.
18323 (SUB_ACCESS_FN, DDR_COULD_BE_INDEPENDENT_P): New macros.
18324 (same_access_functions): Move to tree-data-ref.c.
18325 * tree-data-ref.c (ref_contains_union_access_p): New function.
18326 (access_fn_component_p): Likewise.
18327 (access_fn_components_comparable_p): Likewise.
18328 (dr_analyze_indices): Add a reference to access_fn_component_p.
18329 (dump_data_dependence_relation): Use SUB_ACCESS_FN instead of
18330 DR_ACCESS_FN.
18331 (constant_access_functions): Likewise.
18332 (add_other_self_distances): Likewise.
18333 (same_access_functions): Likewise. (Moved from tree-data-ref.h.)
18334 (initialize_data_dependence_relation): Use XCNEW and remove
18335 explicit zeroing of DDR_REVERSED_P. Look for a subsequence
18336 of access functions that have the same type. Allow the
18337 subsequence to end with different bases in some circumstances.
18338 Record the chosen access functions in SUB_ACCESS_FN.
18339 (build_classic_dist_vector_1): Replace ddr_a and ddr_b with
18340 a_index and b_index. Use SUB_ACCESS_FN instead of DR_ACCESS_FN.
18341 (subscript_dependence_tester_1): Likewise dra and drb.
18342 (build_classic_dist_vector): Update calls accordingly.
18343 (subscript_dependence_tester): Likewise.
18344 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Check
18345 DDR_COULD_BE_INDEPENDENT_P.
18346 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Test
18347 comp_alias_ddrs instead of may_alias_ddrs.
18348 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
18349 New function.
18350 (vect_analyze_data_ref_dependence): Use it if
18351 DDR_COULD_BE_INDEPENDENT_P, but fall back to using the recorded
18352 distance vectors if that fails.
18353 (dependence_distance_ge_vf): New function.
18354 (vect_prune_runtime_alias_test_list): Use it. Don't clear
18355 LOOP_VINFO_MAY_ALIAS_DDRS.
18356
18357 2017-08-04 Richard Biener <rguenther@suse.de>
18358
18359 PR middle-end/81705
18360 * fold-const.c (fold_binary_loc): Properly restrict
18361 minus_var0 && minus_var1 case when associating undefined overflow
18362 entities.
18363
18364 2017-08-04 Tom de Vries <tom@codesourcery.com>
18365
18366 * omp-simd-clone.c (simd_clone_adjust): Add missing edge probability.
18367
18368 2017-08-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18369
18370 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18371 Don't start diagnostic messages with a capital letter.
18372 * config/rs6000/rs6000.c (rs6000_option_override_internal):
18373 Likewise.
18374 (rs6000_invalid_builtin): Likewise.
18375 (rs6000_trampoline_init): Likewise.
18376
18377 2017-08-03 Jakub Jelinek <jakub@redhat.com>
18378
18379 PR target/81621
18380 * bb-reorder.c (pass_partition_blocks::execute): Return TODO_df_finish
18381 after setting changeable df flags.
18382
18383 2017-08-03 Richard Biener <rguenther@suse.de>
18384
18385 * tree-ssa-reassoc.c (should_break_up_subtract): Also break
18386 up if the use is in USE - X.
18387
18388 2017-08-03 Alexander Monakov <amonakov@ispras.ru>
18389
18390 * toplev.c (dumpfile.h): New include.
18391 (internal_error_reentered): New static function. Use it...
18392 (internal_error_function): ...here to handle reentered internal_error.
18393
18394 2017-08-03 Richard Biener <rguenther@suse.de>
18395
18396 PR middle-end/81148
18397 * fold-const.c (split_tree): Add minus_var and minus_con
18398 arguments, remove unused loc arg. Never generate NEGATE_EXPRs
18399 here but always use minus_*.
18400 (associate_trees): Assert we never associate with MINUS_EXPR
18401 and NULL first operand. Do not recurse for PLUS_EXPR operands
18402 when associating as MINUS_EXPR either.
18403 (fold_binary_loc): Track minus_var and minus_con.
18404
18405 2017-08-03 Tom de Vries <tom@codesourcery.com>
18406
18407 PR lto/81430
18408 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): If
18409 ACCEL_COMPILER, apply finish_options on
18410 DECL_FUNCTION_SPECIFIC_OPTIMIZATION.
18411
18412 2017-08-03 Tom de Vries <tom@codesourcery.com>
18413
18414 PR target/81662
18415 * config/nvptx/nvptx.c (nvptx_option_override): Emit sorry if
18416 function_entry_patch_area_size > 0.
18417
18418 2017-08-03 Jakub Jelinek <jakub@redhat.com>
18419
18420 PR driver/81650
18421 * calls.c (alloc_max_size): Use HOST_WIDE_INT_UC (10??)
18422 instead of 10??LU, perform unit multiplication in wide_int,
18423 don't change alloc_object_size_limit if the limit is larger
18424 than SSIZE_MAX.
18425
18426 PR tree-optimization/81655
18427 PR tree-optimization/81588
18428 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle also
18429 the case when ranges[i].low and high are 1 for unsigned type with
18430 precision 1.
18431
18432 PR middle-end/81052
18433 * omp-low.c (diagnose_sb_0): Handle flag_openmp_simd like flag_openmp.
18434 (pass_diagnose_omp_blocks::gate): Enable also for flag_openmp_simd.
18435
18436 2017-08-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18437
18438 * tree-vrp.h: Add include guard.
18439
18440 2017-08-02 Uros Bizjak <ubizjak@gmail.com>
18441
18442 PR target/81644
18443 * config/i386/i386.md (unspecv): Add UNSPECV_UD2.
18444 (ud2): New insn pattern.
18445 * config/i386/i386.c (ix86_expand_epilogue):
18446 For naked functions, generate ud2 instead of trap insn.
18447
18448 2017-08-02 Marek Polacek <polacek@redhat.com>
18449
18450 PR other/81667
18451 * alloc-pool.h (base_pool_allocator): Initialize m_elt_size.
18452
18453 2017-08-02 Tom de Vries <tom@codesourcery.com>
18454 Cesar Philippidis <cesar@codesourcery.com>
18455
18456 * config/nvptx/nvptx.c (nvptx_lockless_update, nvptx_lockfull_update):
18457 Add missing edge probabilities.
18458
18459 2017-08-02 Tamar Christina <tamar.christina@arm.com>
18460
18461 * config/aarch64/aarch64.c (aarch64_reinterpret_float_as_int):
18462 Correct endianness.
18463
18464 2017-08-02 Jakub Jelinek <jakub@redhat.com>
18465
18466 PR middle-end/79499
18467 * function.c (thread_prologue_and_epilogue_insns): Determine blocks
18468 for find_many_sub_basic_blocks bitmap by looking up BLOCK_FOR_INSN
18469 of first NONDEBUG_INSN_P in each of the split_prologue_seq and
18470 prologue_seq sequences - if any.
18471
18472 2017-08-02 Richard Biener <rguenther@suse.de>
18473
18474 * tree-vect-stmts.c (vectorizable_store): Perform vector extracts
18475 via vectors if supported, integer extracts via punning if supported
18476 or otherwise vector extracts.
18477
18478 2017-08-02 Richard Biener <rguenther@suse.de>
18479
18480 * tree-ssa-pre.c (bitmap_insert_into_set_1): Remove and inline
18481 into ...
18482 (bitmap_insert_into_set): ... this.
18483
18484 2017-08-02 Richard Biener <rguenther@suse.de>
18485
18486 PR tree-optimization/81633
18487 Revert
18488 2015-08-17 Alan Hayward <alan.hayward@arm.com>
18489
18490 PR tree-optimization/71752
18491 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
18492
18493 2017-08-01 Daniel Santos <daniel.santos@pobox.com>
18494
18495 * config/i386/i386.h (ix86_frame::outlined_save_offset): Remove field.
18496 (machine_function::call_ms2sysv_pad_out): Remove field.
18497 * config/i386/i386.c (xlogue_layout::get_stack_space_used): Modify.
18498 (ix86_compute_frame_layout): Likewise.
18499
18500 2017-08-01 H.J. Lu <hongjiu.lu@intel.com>
18501
18502 PR target/81654
18503 * config/i386/i386.c (ix86_set_func_type): Disallow naked
18504 attribute with interrupt attribute.
18505
18506 2017-08-01 Andrew Pinski <apinski@cavium.com>
18507
18508 * tree-ssa-scopedtables.c (hashable_expr_equal_p): Check
18509 BIT_INSERT_EXPR's operand 1
18510 to see if the types precision matches.
18511
18512 2017-08-01 Martin Liska <mliska@suse.cz>
18513
18514 PR middle-end/70140
18515 * builtins.c (expand_builtin_memcpy_args): Remove.
18516 (expand_builtin_memcpy): Call newly added function
18517 expand_builtin_memory_copy_args.
18518 (expand_builtin_memcpy_with_bounds): Likewise.
18519 (expand_builtin_mempcpy): Remove last argument.
18520 (expand_builtin_mempcpy_with_bounds): Likewise.
18521 (expand_builtin_memory_copy_args): New function created from
18522 expand_builtin_mempcpy_args with small modifications.
18523 (expand_builtin_mempcpy_args): Remove.
18524 (expand_builtin_stpcpy): Remove unused argument.
18525 (expand_builtin): Likewise.
18526 (expand_builtin_with_bounds): Likewise.
18527
18528 2017-08-01 Martin Liska <mliska@suse.cz>
18529
18530 Revert r250771
18531 Make mempcpy more optimal (PR middle-end/70140).
18532
18533 2017-08-01 Jakub Jelinek <jakub@redhat.com>
18534
18535 PR target/81622
18536 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): For
18537 __builtin_vec_cmpne verify both arguments are compatible vectors
18538 before looking at TYPE_MODE on the element type. For __builtin_vec_ld
18539 verify arg1_type is a pointer or array type. For __builtin_vec_st,
18540 move computation of aligned to after checking the argument types.
18541 Formatting fixes.
18542
18543 PR target/80846
18544 * config/rs6000/vsx.md (vextract_fp_from_shorth,
18545 vextract_fp_from_shortl): Add element mode after mode in gen_vec_init*
18546 calls.
18547
18548 2017-08-01 Jerome Lambourg <lambourg@adacore.com>
18549 Doug Rupp <rupp@adacore.com>
18550 Olivier Hainque <hainque@adacore.com>
18551
18552 * config.gcc (arm-wrs-vxworks*): Rework to handle arm-wrs-vxworks7 as
18553 well as arm-wrs-vxworks. Update target_cpu_name from arm6 (arch v3) to
18554 arm8 (arch v4).
18555 * config/arm/vxworks.h (MAYBE_TARGET_BPABI_CPP_BUILTINS): New, helper
18556 for TARGET_OS_CPP_BUILTIN.
18557 (TARGET_OS_CPP_BUILTIN): Invoke MAYBE_TARGET_BPABI_CPP_BUILTINS(),
18558 refine CPU definitions for arm_arch5 and add those for arm_arch6 and
18559 arm_arch7.
18560 (MAYBE_ASM_ABI_SPEC): New, helper for SUBTARGET_EXTRA_ASM_SPEC,
18561 passing required abi options to the assembler for EABI configurations.
18562 (EXTRA_CC1_SPEC): New macro, to help prevent the implicit production
18563 of .text.hot and .text.unlikely sections for kernel modules when
18564 using ARM style exceptions.
18565 (CC1_SPEC): Remove obsolete attempt at mimicking Diab toolchain
18566 options. Add EXTRA_CC1_SPEC.
18567 (VXWORKS_ENDIAN_SPEC): Adjust comment and remove handling of Diab
18568 toolchain options.
18569 (DWARF2_UNWIND_INFO): Redefine to handle the pre/post VxWorks 7
18570 transition.
18571 (ARM_TARGET2_DWARF_FORMAT): Define.
18572 * config/arm/t-vxworks: Adjust multilib control to removal of the
18573 Diab command line options.
18574
18575 2017-08-01 Martin Liska <mliska@suse.cz>
18576
18577 PR gcov-profile/81561
18578 * gcov.c (unblock): Make unblocking safe as we need to preserve
18579 index correspondence of blocks and block_lists.
18580
18581 2017-08-01 Richard Biener <rguenther@suse.de>
18582
18583 PR tree-optimization/81181
18584 * tree-ssa-pre.c (compute_antic_aux): Defer clean() to ...
18585 (compute_antic): ... end of iteration here.
18586
18587 2017-08-01 James Greenhalgh <james.greenhalgh@arm.com>
18588
18589 * common.opt (ftree-vectorize): No longer set flag_tree_vectorize.
18590 (ftree-loop-vectorize): Set as EnabledBy ftree-vectorize.
18591 (ftree-slp-vectorize): Likewise.
18592 * omp-expand (expand_omp_simd): Remove flag_tree_vectorize, as it
18593 can no longer be set independent of flag_tree_loop_vectorize.
18594 * omp-general.c (emp_max_vf): Likewise.
18595 * opts.c (enable_fdo_optimizations): Remove references to
18596 flag_tree_vectorize, these are now implicit.
18597 (common_handle_option): Remove handling for OPT_ftree_vectorize,
18598 and leave it for the options machinery.
18599
18600 2017-08-01 Martin Liska <mliska@suse.cz>
18601
18602 PR middle-end/70140
18603 * builtins.c (expand_builtin_memcpy_args): Remove.
18604 (expand_builtin_memcpy): Call newly added function
18605 expand_builtin_memory_copy_args.
18606 (expand_builtin_memcpy_with_bounds): Likewise.
18607 (expand_builtin_mempcpy): Remove last argument.
18608 (expand_builtin_mempcpy_with_bounds): Likewise.
18609 (expand_builtin_memory_copy_args): New function created from
18610 expand_builtin_mempcpy_args with small modifications.
18611 (expand_builtin_mempcpy_args): Remove.
18612 (expand_builtin_stpcpy): Remove unused argument.
18613 (expand_builtin): Likewise.
18614 (expand_builtin_with_bounds): Likewise.
18615
18616 2017-08-01 Uros Bizjak <ubizjak@gmail.com>
18617
18618 PR target/81641
18619 * config/i386/i386.c (ix86_print_operand_address_as): For -masm=intel
18620 print "ds:" only for immediates in generic address space.
18621
18622 2017-08-01 Uros Bizjak <ubizjak@gmail.com>
18623
18624 PR target/81639
18625 * config/i386/i386.c (ix86_funciton_naked): New prototype.
18626 (ix86_function_ok_for_sibcall): Return false for naked functions.
18627
18628 2017-08-01 Richard Biener <rguenther@suse.de>
18629
18630 * tree-ssa-pre.c (print_pre_expr): Handle NULL expr.
18631 (compute_antic): Seed worklist with exit block predecessors.
18632 * cfganal.c (dfs_find_deadend): For a cycle return the source
18633 of the edge closing it.
18634
18635 2017-08-01 Tamar Christina <tamar.christina@arm.com>
18636
18637 * config/aarch64/aarch64.c
18638 (aarch64_can_const_movi_rtx_p): Move 0 check.
18639
18640 2017-08-01 Bin Cheng <bin.cheng@arm.com>
18641
18642 * tree.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Delete.
18643 * fold-const.c (fold_comparison, fold_binary_loc): Delete use of
18644 above macro.
18645 * match.pd: Ditto in address comparison pattern.
18646
18647 2017-08-01 Bin Cheng <bin.cheng@arm.com>
18648
18649 PR tree-optimization/81627
18650 * tree-predcom.c (prepare_finalizers): Always rewrite into loop
18651 closed ssa form for store-store chain.
18652
18653 2017-08-01 Bin Cheng <bin.cheng@arm.com>
18654
18655 PR tree-optimization/81620
18656 * tree-predcom.c (add_ref_to_chain): Don't set has_max_use_after
18657 for store-store chain.
18658
18659 2017-08-01 Jakub Jelinek <jakub@redhat.com>
18660
18661 PR tree-optimization/81588
18662 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): If
18663 ranges[i].in_p, invert comparison code ccode. For >/>=,
18664 swap rhs1 and rhs2 and comparison code unconditionally,
18665 for </<= don't do that. Don't swap rhs1/rhs2 again if
18666 ranges[i].in_p, instead invert comparison code ccode if
18667 opcode or oe->rank is BIT_IOR_EXPR.
18668
18669 PR target/80846
18670 * optabs.def (vec_extract_optab, vec_init_optab): Change from
18671 a direct optab to conversion optab.
18672 * optabs.c (expand_vector_broadcast): Use convert_optab_handler
18673 with GET_MODE_INNER as last argument instead of optab_handler.
18674 * expmed.c (extract_bit_field_1): Likewise. Use vector from
18675 vector extraction if possible and optab is available.
18676 * expr.c (store_constructor): Use convert_optab_handler instead
18677 of optab_handler. Use vector initialization from smaller
18678 vectors if possible and optab is available.
18679 * tree-vect-stmts.c (vectorizable_load): Likewise.
18680 * doc/md.texi (vec_extract, vec_init): Document that the optabs
18681 now have two modes.
18682 * config/i386/i386.c (ix86_expand_vector_init): Handle expansion
18683 of vec_init from half-sized vectors with the same element mode.
18684 * config/i386/sse.md (ssehalfvecmode): Add V4TI case.
18685 (ssehalfvecmodelower, ssescalarmodelower): New mode attributes.
18686 (reduc_plus_scal_v8df, reduc_plus_scal_v4df, reduc_plus_scal_v2df,
18687 reduc_plus_scal_v16sf, reduc_plus_scal_v8sf, reduc_plus_scal_v4sf,
18688 reduc_<code>_scal_<mode>, reduc_umin_scal_v8hi): Add element mode
18689 after mode in gen_vec_extract* calls.
18690 (vec_extract<mode>): Renamed to ...
18691 (vec_extract<mode><ssescalarmodelower>): ... this.
18692 (vec_extract<mode><ssehalfvecmodelower>): New expander.
18693 (rotl<mode>3, rotr<mode>3, <shift_insn><mode>3, ashrv2di3): Add
18694 element mode after mode in gen_vec_init* calls.
18695 (VEC_INIT_HALF_MODE): New mode iterator.
18696 (vec_init<mode>): Renamed to ...
18697 (vec_init<mode><ssescalarmodelower>): ... this.
18698 (vec_init<mode><ssehalfvecmodelower>): New expander.
18699 * config/i386/mmx.md (vec_extractv2sf): Renamed to ...
18700 (vec_extractv2sfsf): ... this.
18701 (vec_initv2sf): Renamed to ...
18702 (vec_initv2sfsf): ... this.
18703 (vec_extractv2si): Renamed to ...
18704 (vec_extractv2sisi): ... this.
18705 (vec_initv2si): Renamed to ...
18706 (vec_initv2sisi): ... this.
18707 (vec_extractv4hi): Renamed to ...
18708 (vec_extractv4hihi): ... this.
18709 (vec_initv4hi): Renamed to ...
18710 (vec_initv4hihi): ... this.
18711 (vec_extractv8qi): Renamed to ...
18712 (vec_extractv8qiqi): ... this.
18713 (vec_initv8qi): Renamed to ...
18714 (vec_initv8qiqi): ... this.
18715 * config/rs6000/vector.md (VEC_base_l): New mode attribute.
18716 (vec_init<mode>): Renamed to ...
18717 (vec_init<mode><VEC_base_l>): ... this.
18718 (vec_extract<mode>): Renamed to ...
18719 (vec_extract<mode><VEC_base_l>): ... this.
18720 * config/rs6000/paired.md (vec_initv2sf): Renamed to ...
18721 (vec_initv2sfsf): ... this.
18722 * config/rs6000/altivec.md (splitter, altivec_copysign_v4sf3,
18723 vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
18724 vec_unpacku_lo_v8hi, mulv16qi3, altivec_vreve<mode>2): Add
18725 element mode after mode in gen_vec_init* calls.
18726 * config/aarch64/aarch64-simd.md (vec_init<mode>): Renamed to ...
18727 (vec_init<mode><Vel>): ... this.
18728 (vec_extract<mode>): Renamed to ...
18729 (vec_extract<mode><Vel>): ... this.
18730 * config/aarch64/iterators.md (Vel): New mode attribute.
18731 * config/s390/s390.c (s390_expand_vec_strlen, s390_expand_vec_movstr):
18732 Add element mode after mode in gen_vec_extract* calls.
18733 * config/s390/vector.md (non_vec_l): New mode attribute.
18734 (vec_extract<mode>): Renamed to ...
18735 (vec_extract<mode><non_vec_l>): ... this.
18736 (vec_init<mode>): Renamed to ...
18737 (vec_init<mode><non_vec_l>): ... this.
18738 * config/s390/s390-builtins.def (s390_vlgvb, s390_vlgvh, s390_vlgvf,
18739 s390_vlgvf_flt, s390_vlgvg, s390_vlgvg_dbl): Add element mode after
18740 vec_extract mode.
18741 * config/arm/iterators.md (V_elem_l): New mode attribute.
18742 * config/arm/neon.md (vec_extract<mode>): Renamed to ...
18743 (vec_extract<mode><V_elem_l>): ... this.
18744 (vec_extractv2di): Renamed to ...
18745 (vec_extractv2didi): ... this.
18746 (vec_init<mode>): Renamed to ...
18747 (vec_init<mode><V_elem_l>): ... this.
18748 (reduc_plus_scal_<mode>, reduc_plus_scal_v2di, reduc_smin_scal_<mode>,
18749 reduc_smax_scal_<mode>, reduc_umin_scal_<mode>,
18750 reduc_umax_scal_<mode>, neon_vget_lane<mode>, neon_vget_laneu<mode>):
18751 Add element mode after gen_vec_extract* calls.
18752 * config/mips/mips-msa.md (vec_init<mode>): Renamed to ...
18753 (vec_init<mode><unitmode>): ... this.
18754 (vec_extract<mode>): Renamed to ...
18755 (vec_extract<mode><unitmode>): ... this.
18756 * config/mips/loongson.md (vec_init<mode>): Renamed to ...
18757 (vec_init<mode><unitmode>): ... this.
18758 * config/mips/mips-ps-3d.md (vec_initv2sf): Renamed to ...
18759 (vec_initv2sfsf): ... this.
18760 (vec_extractv2sf): Renamed to ...
18761 (vec_extractv2sfsf): ... this.
18762 (reduc_plus_scal_v2sf, reduc_smin_scal_v2sf, reduc_smax_scal_v2sf):
18763 Add element mode after gen_vec_extract* calls.
18764 * config/mips/mips.md (unitmode): New mode iterator.
18765 * config/spu/spu.c (spu_expand_prologue, spu_allocate_stack,
18766 spu_builtin_extract): Add element mode after gen_vec_extract* calls.
18767 * config/spu/spu.md (inner_l): New mode attribute.
18768 (vec_init<mode>): Renamed to ...
18769 (vec_init<mode><inner_l>): ... this.
18770 (vec_extract<mode>): Renamed to ...
18771 (vec_extract<mode><inner_l>): ... this.
18772 * config/sparc/sparc.md (veltmode): New mode iterator.
18773 (vec_init<VMALL:mode>): Renamed to ...
18774 (vec_init<VMALL:mode><VMALL:veltmode>): ... this.
18775 * config/ia64/vect.md (vec_initv2si): Renamed to ...
18776 (vec_initv2sisi): ... this.
18777 (vec_initv2sf): Renamed to ...
18778 (vec_initv2sfsf): ... this.
18779 (vec_extractv2sf): Renamed to ...
18780 (vec_extractv2sfsf): ... this.
18781 * config/powerpcspe/vector.md (VEC_base_l): New mode attribute.
18782 (vec_init<mode>): Renamed to ...
18783 (vec_init<mode><VEC_base_l>): ... this.
18784 (vec_extract<mode>): Renamed to ...
18785 (vec_extract<mode><VEC_base_l>): ... this.
18786 * config/powerpcspe/paired.md (vec_initv2sf): Renamed to ...
18787 (vec_initv2sfsf): ... this.
18788 * config/powerpcspe/altivec.md (splitter, altivec_copysign_v4sf3,
18789 vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
18790 vec_unpacku_lo_v8hi, mulv16qi3): Add element mode after mode in
18791 gen_vec_init* calls.
18792
18793 2017-08-01 Richard Biener <rguenther@suse.de>
18794
18795 PR tree-optimization/81297
18796 * tree-vrp.c (get_single_symbol): Remove assert, instead drop
18797 TREE_OVERFLOW from INTEGER_CSTs.
18798
18799 2017-07-31 Segher Boessenkool <segher@kernel.crashing.org>
18800
18801 * config/rs6000/rs6000.c (enum rs6000_reg_type): Delete trailing comma.
18802
18803 2017-07-31 Carl Love <cel@us.ibm.com>
18804
18805 * config/rs6000/rs6000-c: Add support for built-in functions
18806 vector signed char vec_xl_be (signed long long, signed char *);
18807 vector unsigned char vec_xl_be (signed long long, unsigned char *);
18808 vector signed int vec_xl_be (signed long long, signed int *);
18809 vector unsigned int vec_xl_be (signed long long, unsigned int *);
18810 vector signed long long vec_xl_be (signed long long, signed long long *);
18811 vector unsigned long long vec_xl_be (signed long long, unsigned long long *);
18812 vector signed short vec_xl_be (signed long long, signed short *);
18813 vector unsigned short vec_xl_be (signed long long, unsigned short *);
18814 vector double vec_xl_be (signed long long, double *);
18815 vector float vec_xl_be (signed long long, float *);
18816 * config/rs6000/altivec.h (vec_xl_be): Add #define.
18817 * config/rs6000/rs6000-builtin.def (XL_BE_V16QI, XL_BE_V8HI, XL_BE_V4SI)
18818 XL_BE_V2DI, XL_BE_V4SF, XL_BE_V2DF, XL_BE): Add definitions
18819 for the builtins.
18820 * config/rs6000/rs6000.c (altivec_expand_xl_be_builtin): Add function.
18821 (altivec_expand_builtin): Add switch statement to call
18822 altivec_expand_xl_be for each builtin.
18823 (altivec_init_builtins): Add def_builtin for _builtin_vsx_le_be_v8hi,
18824 __builtin_vsx_le_be_v4si, __builtin_vsx_le_be_v2di,
18825 __builtin_vsx_le_be_v4sf, __builtin_vsx_le_be_v2df,
18826 __builtin_vsx_le_be_v16qi.
18827 * doc/extend.texi: Update the built-in documentation file for the
18828 new built-in functions.
18829
18830 2017-07-31 Uros Bizjak <ubizjak@gmail.com>
18831
18832 PR target/25967
18833 * config/i386/i386.c (ix86_allocate_stack_slots_for_args):
18834 New function.
18835 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
18836
18837 2017-07-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18838
18839 * config.gcc: Add z14.
18840 * config/s390/driver-native.c (s390_host_detect_local_cpu): Add
18841 CPU model numbers for z13s and z14.
18842 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Replace
18843 arch12 with z14.
18844 * config/s390/s390-opts.h (enum processor_type): Rename
18845 PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
18846 * config/s390/s390.c (processor_table): Add field for CPU name to
18847 be passed to Binutils.
18848 (s390_asm_output_machine_for_arch): Use the new field in
18849 processor_table for Binutils.
18850 (s390_expand_builtin): Replace arch12 with z14.
18851 (s390_issue_rate): Rename PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
18852 (s390_get_sched_attrmask): Likewise.
18853 (s390_get_unit_mask): Likewise.
18854 * config/s390/s390.opt: Add z14 to processor_type enum.
18855
18856 2017-07-31 Martin Jambor <mjambor@suse.cz>
18857
18858 PR hsa/81477
18859 * ipa-fnsummary.c (ipa_fn_summary_generate): Set versionable
18860 regardless of optimization level.
18861
18862 2017-07-31 Jan Hubicka <hubicka@ucw.cz>
18863 Martin Liska <mliska@suse.cz>
18864
18865 * predict.def: Remove old comment and adjust probability.
18866 * gimplify.c (should_warn_for_implicit_fallthrough): Ignore
18867 PREDICT statements.
18868
18869 2017-07-31 Uros Bizjak <ubizjak@gmail.com>
18870
18871 PR target/25967
18872 * config/i386/i386.c (ix86_function_naked): New function.
18873 (ix86_can_use_return_insn_p): Return false for naked functions.
18874 (ix86_expand_prologue): Skip prologue for naked functions.
18875 (ix86_expand_epilogue): Skip epilogue for naked functions
18876 and emit trap instruction.
18877 (ix86_warn_func_return): New function.
18878 (ix86_attribute_table): Add "naked" attribute specification.
18879 (TARGET_WARN_FUNC_RETURN): Define.
18880 * doc/extend.texi (x86 Function Attributes) <naked>: Document it.
18881
18882 2017-07-31 Martin Liska <mliska@suse.cz>
18883
18884 * gimple-pretty-print.c (dump_gimple_label): Never dump BB info.
18885 (dump_gimple_bb_header): Always dump BB info.
18886 (pp_cfg_jump): Do not append info about BB when dumping a jump.
18887
18888 2017-07-31 Martin Liska <mliska@suse.cz>
18889
18890 PR sanitize/81530
18891 * convert.c (convert_to_integer_1): Guard condition with flag_sanitize_p
18892 also with current_function_decl non-null equality.
18893
18894 2017-07-31 Jakub Jelinek <jakub@redhat.com>
18895
18896 PR sanitizer/81604
18897 * ubsan.c (ubsan_type_descriptor): For UBSAN_PRINT_ARRAY don't
18898 change type to the element type, instead add eltype variable and
18899 use it where we are interested in the element type.
18900
18901 PR tree-optimization/81603
18902 * ipa-polymorphic-call.c
18903 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Perform
18904 offset arithmetic in offset_int, bail out if the resulting bit offset
18905 doesn't fit into shwi.
18906
18907 2017-07-31 Martin Liska <mliska@suse.cz>
18908
18909 * gimplify.c (mostly_copy_tree_r): Remove Java specific hunk.
18910 (gimplify_save_expr): Fix comment.
18911
18912 2017-07-30 H.J. Lu <hongjiu.lu@intel.com>
18913
18914 PR target/79793
18915 * config/i386/i386.c (ix86_function_arg): Update arguments for
18916 exception handler.
18917 (ix86_compute_frame_layout): Set the initial stack offset to
18918 INCOMING_FRAME_SP_OFFSET. Update red-zone offset with
18919 INCOMING_FRAME_SP_OFFSET.
18920 (ix86_expand_epilogue): Don't pop the 'ERROR_CODE' off the
18921 stack before exception handler returns.
18922 * config/i386/i386.h (INCOMING_FRAME_SP_OFFSET): Add the
18923 the 'ERROR_CODE' for exception handler.
18924
18925 2017-07-30 Uros Bizjak <ubizjak@gmail.com>
18926
18927 * config/i386/i386.h (ASM_PRINTF_EXTENSIONS): New macro.
18928 (ASM_OUTPUT_REG_PUSH): Rewrite with new operand modifiers.
18929 (ASM_OUTPUT_REG_POP): Ditto.
18930 * config/i386/i386.c (ix86_asm_output_function_label): Use fputs
18931 instead of asm_fprintf to output pure string.
18932
18933 2017-07-29 Jakub Jelinek <jakub@redhat.com>
18934
18935 * debug.h (struct gcc_debug_hooks): Add IMPLICIT argument
18936 to imported_module_or_decl hook.
18937 (debug_nothing_tree_tree_tree_bool): Remove.
18938 (debug_nothing_tree_tree_tree_bool_bool): New declaration.
18939 * debug.c (do_nothing_debug_hooks): Use
18940 debug_nothing_tree_tree_tree_bool_bool instead of
18941 debug_nothing_tree_tree_tree_bool.
18942 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
18943 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
18944 * sdbout.c (sdb_debug_hooks): Likewise.
18945 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
18946 (gen_namespace_die): Add DW_AT_export_symbols attribute if
18947 langhook wants it.
18948 (dwarf2out_imported_module_or_decl): Add IMPLICIT argument,
18949 if true, -gdwarf-5 and decl will have DW_AT_export_symbols
18950 attribute, don't add anything.
18951
18952 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18953
18954 * fold-const.c (fold_build1_stat_loc): Remove _stat from name.
18955 (fold_build2_stat_loc): Likewise.
18956 (fold_build3_stat_loc): Likewise.
18957 * fold-const.h (fold_build1, fold_build2, fold_build3): Adjust.
18958 (fold_build1_loc): Remove macro.
18959 (fold_build2_loc): Likewise.
18960 (fold_build3_loc): Likewise.
18961
18962 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18963
18964 * gimple.c (gimple_build_debug_bind_stat): Remove _stat from name.
18965 (gimple_build_debug_bind_source_stat): Likewise.
18966 * gimple.h (gimple_build_debug_bind): Remove macro.
18967 (gimple_build_debug_bind_source): Likewise.
18968
18969 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18970
18971 * bitmap.c (bitmap_alloc): Adjust.
18972 (bitmap_gc_alloc): Likewise.
18973 * bitmap.h (bitmap_initialize_stat): Remove _stat from name.
18974
18975 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18976
18977 * bitmap.c (bitmap_obstack_alloc_stat): Rename to bitmap_alloc.
18978 (bitmap_gc_alloc_stat): Rename to bitmap_gc_alloc.
18979 * bitmap.h (bitmap_obstack_alloc_stat): Adjust prototype.
18980 (bitmap_gc_alloc_stat): Likewise.
18981 (BITMAP_ALLOC, BITMAP_GGC_ALLOC): Adjust.
18982
18983 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18984
18985 * rtl.c (shallow_copy_rtx_stat): Remove _stat from name.
18986 * rtl.h (shallow_copy_rtx): Remove macro.
18987
18988 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18989
18990 * emit-rtl.c (gen_raw_REG): Adjust.
18991 * gengenrtl.c (gendef): Likewise.
18992 * rtl.c (rtx_alloc_stat): Remove _stat from name.
18993 * rtl.h (rtx_alloc): Remove macro.
18994
18995 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18996
18997 * tree.c (build_tree_list_vec_stat): Remove _stat from name.
18998 (build_tree_list_stat): Likewise.
18999 * tree.h (build_tree_list): Remove macro.
19000 (build_tree_list_vec): Likewise.
19001
19002 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19003
19004 * tree.c (make_vector_stat): Remove _stat from name.
19005 (build_vector_stat): Likewise.
19006 * tree.h (make_vector_stat): Remove macro.
19007 (build_vector_stat): Likewise.
19008
19009 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19010
19011 * tree.h (build_var_debug_value): Remove prototype.
19012
19013 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19014
19015 * tree.c (tree_cons_stat): Remove _stat from name.
19016 * tree.h (tree_cons): Remove macro.
19017
19018 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19019
19020 * tree.c (build_vl_exp_stat): Remove _stat from name.
19021 * tree.h (build_vl_exp): Remove macro.
19022
19023 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19024
19025 * tree.c (build_decl_stat): Remove _stat from name.
19026 * tree.h (build_decl): Remove macro.
19027
19028 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19029
19030 * gimple.c (gimple_build_with_ops_stat): Adjust.
19031 (gimple_alloc_stat): Remove _stat from name.
19032 * gimple.h (gimple_alloc): Remove macro.
19033
19034 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19035
19036 * tree.c (make_tree_vec_stat): Remove _stat from name.
19037 (grow_tree_vec_stat): Likewise.
19038 * tree.h (make_tree_vec_stat): Adjust prototype.
19039 (grow_tree_vec_stat): Likewise.
19040 (make_tree_vec): Remove macro.
19041 (grow_tree_vec): Likewise.
19042
19043 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19044
19045 * fold-const.c (fold_build1_stat_loc): Adjust.
19046 (fold_build2_stat_loc): Likewise.
19047 (fold_build3_stat_loc): Likewise.
19048 * tree.c (build0_stat): Remove _stat from name.
19049 (build1_stat): Likewise.
19050 (build2_stat): Likewise.
19051 (build3_stat): Likewise.
19052 (build4_stat): Likewise.
19053 (build5_stat): Likewise.
19054 * tree.h (build1_loc): Remove macro, and rename _stat function
19055 to this.
19056 (build2_loc): Likewise.
19057 (build3_loc): Likewise.
19058 (build4_loc): Likewise.
19059 (build5_loc): Likewise.
19060
19061 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19062
19063 * tree.c (make_int_cst_stat): Remove _stat from name.
19064 * tree.h (make_int_cst_stat): Adjust prototype.
19065 (make_int_cst): Remove macro.
19066
19067 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19068
19069 * tree.c (make_tre_binfo_stat): Remove _stat from name.
19070 * tree.h (make_tree_binfo_stat): Adjust prototype.
19071 (make_tree_binfo): Remove.
19072
19073 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19074
19075 * tree.c (copy_node_stat): Rename to copy_node.
19076 (build_distinct_type_copy): Adjust.
19077 * tree.h (copy_node_stat): Adjust prototype.
19078 (copy_node): Remove macro.
19079
19080 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19081
19082 * tree.c (make_node_stat): rename to make_node.
19083 (build_tree_list_stat): Adjust.
19084 (build0_stat): Likewise.
19085 (build2_stat): Likewise.
19086 (build3_stat): Likewise.
19087 (build4_stat): Likewise.
19088 (build5_stat): Likewise.
19089 (build_decl_stat): Likewise.
19090 * tree.h (make_node_stat): Adjust prototype.
19091 (make_node): remove macro.
19092
19093 2017-07-28 Peter Bergner <bergner@vnet.ibm.com>
19094
19095 * config/rs6000/ppc-auxv.h (PPC_FEATURE2_DARN): New define.
19096 (PPC_FEATURE2_SCV): Likewise.
19097 * config/rs6000/rs6000.c (cpu_supports_info): Use them.
19098
19099 2017-07-28 Tamar Christina <tamar.christina@arm.com>
19100
19101 * config/aarch64/aarch64.c
19102 (aarch64_internal_mov_immediate): Add new special pattern.
19103 * config/aarch64/aarch64.md (*movdi_aarch64):
19104 Add reg/32bit const mov case.
19105
19106 2017-07-28 Tamar Christina <tamar.christina@arm.com>
19107 Richard Sandiford <richard.sandiford@linaro.org>
19108
19109 * config/aarch64/aarch64.md (mov<mode>): Generalize.
19110 (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
19111 Add integer and movi cases.
19112 (movi-split-hf-df-sf split, fp16): New.
19113 (enabled): Added TARGET_FP_F16INST.
19114 * config/aarch64/iterators.md (GPF_HF): New.
19115 * config/aarch64/predicates.md (aarch64_reg_or_fp_float): New.
19116
19117 2017-07-28 Tamar Christina <tamar.christina@arm.com>
19118
19119 * config/aarch64/aarch64.c
19120 (aarch64_simd_container_mode): Add prototype.
19121 (aarch64_expand_mov_immediate): Add HI support.
19122 (aarch64_reinterpret_float_as_int, aarch64_float_const_rtx_p: New.
19123 (aarch64_can_const_movi_rtx_p): New.
19124 (aarch64_preferred_reload_class):
19125 Remove restrictions of using FP registers for certain SIMD operations.
19126 (aarch64_rtx_costs): Added new cost for CONST_DOUBLE moves.
19127 (aarch64_valid_floating_const): Add integer move validation.
19128 (aarch64_simd_imm_scalar_p): Remove.
19129 (aarch64_output_scalar_simd_mov_immediate): Generalize function.
19130 (aarch64_legitimate_constant_p): Expand list of supported cases.
19131 * config/aarch64/aarch64-protos.h
19132 (aarch64_float_const_rtx_p, aarch64_can_const_movi_rtx_p): New.
19133 (aarch64_reinterpret_float_as_int): New.
19134 (aarch64_simd_imm_scalar_p): Remove.
19135 * config/aarch64/constraints.md (Uvi): New.
19136 (Dd): Split into Ds and new Dd.
19137 * config/aarch64/aarch64.md (*movsi_aarch64):
19138 Add SIMD mov case.
19139 (*movdi_aarch64): Add SIMD mov case.
19140
19141 2017-07-28 Bin Cheng <bin.cheng@arm.com>
19142
19143 * tree-predcom.c: (struct chain): Handle store-store chain in which
19144 stores for elimination only store loop invariant values.
19145 (execute_pred_commoning_chain): Ditto.
19146 (prepare_initializers_chain_store_elim): Ditto.
19147 (prepare_finalizers): Ditto.
19148 (is_inv_store_elimination_chain): New function.
19149 (initialize_root_vars_store_elim_1): New function.
19150
19151 2017-07-28 Bin Cheng <bin.cheng@arm.com>
19152
19153 * tree-predcom.c: Revise general description of the pass.
19154 (enum chain_type): New enum type for store elimination.
19155 (struct chain): New field supporting store elimination.
19156 (struct component): Ditto.
19157 (dump_chain): Dump store-stores chain.
19158 (release_chain): Release resources.
19159 (split_data_refs_to_components): Compute and create component
19160 contains only stores for elimination.
19161 (get_chain_last_ref_at): New function.
19162 (make_invariant_chain): Initialization.
19163 (make_rooted_chain): Specify chain type in parameter and record it.
19164 (add_looparound_copies): Skip for store-stores chain.
19165 (determine_roots_comp): Compute type of chain and pass it to
19166 make_rooted_chain.
19167 (initialize_root_vars_store_elim_2): New function.
19168 (finalize_eliminated_stores): New function.
19169 (remove_stmt): Handle store for elimination.
19170 (execute_pred_commoning_chain): Execute predictive commoning on
19171 store-store chains.
19172 (determine_unroll_factor): Skip unroll for store-stores chain.
19173 (prepare_initializers_chain_store_elim): New function.
19174 (prepare_initializers_chain): Hanlde store-store chain.
19175 (prepare_finalizers_chain, prepare_finalizers): New function.
19176 (tree_predictive_commoning_loop): Return integer value indicating
19177 if loop is unrolled or lcssa form is corrupted.
19178 (tree_predictive_commoning): Rewrite for lcssa form if necessary.
19179
19180 2017-07-28 Bin Cheng <bin.cheng@arm.com>
19181
19182 * tree-predcom.c (initialize_root): Delete.
19183 (execute_pred_commoning_chain): Initialize root vars and replace
19184 reference of non-combined chain directly, rather than call above
19185 function.
19186
19187 2017-07-28 Bin Cheng <bin.cheng@arm.com>
19188
19189 * tree-predcom.c (ref_at_iteration): Add parameter NITERS. Compute
19190 memory reference to DR at (NITERS + ITERS)-th iteration of loop.
19191
19192 2017-07-28 Bin Cheng <bin.cheng@arm.com>
19193
19194 * tree-predcom.c (struct chain): New field init_seq.
19195 (release_chain): Release init_seq.
19196 (prepare_initializers_chain): Record intialization stmts in above
19197 field.
19198 (insert_init_seqs): New function.
19199 (tree_predictive_commoning_loop): Call insert_init_seqs.
19200
19201 2017-07-28 Bin Cheng <bin.cheng@arm.com>
19202
19203 * tree-predcom.c (determine_roots_comp): Skip trivial components.
19204
19205 2017-07-28 Richard Biener <rguenther@suse.de>
19206
19207 * match.pd: Remove superfluous :c.
19208 * genmatch.c (simplify::id): Add member.
19209 (lower_commutative, lower_opt_convert, lower_cond, lower_for):
19210 Copy id.
19211 (current_id): New global.
19212 (dt_node::parent): Move from ...
19213 (dt_operand::parent): ... here. Add for_id member.
19214 (is_a_helper <dt_operand *>::test): DT_TRUE is also a dt_operand.
19215 (decision_tree::find_node): Relax order requirement when
19216 merging DT_TRUE nodes to ones inbetween the current simplify
19217 and the one we try to merge with. Add diagnostic whenever
19218 we need to enforce pattern order by not merging.
19219 (decision_tree::insert): Set current_id.
19220 (decision_tree::print_node): Dump parent node and for_id.
19221 (parser::last_id): Add member.
19222 (parser::push_simplify): Assign unique id.
19223 (parser::parser): Initialize last_id.
19224
19225 2017-07-28 Martin Liska <mliska@suse.cz>
19226
19227 PR sanitizer/81340
19228 * sanopt.c (sanitize_rewrite_addressable_params): Set VALUE_EXPR after
19229 gimple_build_debug_bind.
19230
19231 2017-07-28 Richard Biener <rguenther@suse.de>
19232
19233 PR tree-optimization/81502
19234 * match.pd: Add pattern combining BIT_INSERT_EXPR with
19235 BIT_FIELD_REF.
19236 * tree-cfg.c (verify_expr): Verify types of BIT_FIELD_REF
19237 size/pos operands.
19238 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR pos.
19239 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Use bitsizetype
19240 for BIT_FIELD_REF args.
19241 * fold-const.c (make_bit_field_ref): Likewise.
19242 * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise.
19243
19244 2017-07-28 Jakub Jelinek <jakub@redhat.com>
19245
19246 PR sanitizer/80998
19247 * sanopt.c (pass_sanopt::execute): Handle IFN_UBSAN_PTR.
19248 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.
19249 * flag-types.h (enum sanitize_code): Add SANITIZER_POINTER_OVERFLOW.
19250 Or it into SANITIZER_UNDEFINED.
19251 * ubsan.c: Include gimple-fold.h and varasm.h.
19252 (ubsan_expand_ptr_ifn): New function.
19253 (instrument_pointer_overflow): New function.
19254 (maybe_instrument_pointer_overflow): New function.
19255 (instrument_object_size): Formatting fix.
19256 (pass_ubsan::execute): Call instrument_pointer_overflow
19257 and maybe_instrument_pointer_overflow.
19258 * internal-fn.c (expand_UBSAN_PTR): New function.
19259 * ubsan.h (ubsan_expand_ptr_ifn): Declare.
19260 * sanitizer.def (__ubsan_handle_pointer_overflow,
19261 __ubsan_handle_pointer_overflow_abort): New builtins.
19262 * tree-ssa-tail-merge.c (merge_stmts_p): Handle IFN_UBSAN_PTR.
19263 * internal-fn.def (UBSAN_PTR): New internal function.
19264 * opts.c (sanitizer_opts): Add pointer-overflow.
19265 * lto-streamer-in.c (input_function): Handle IFN_UBSAN_PTR.
19266 * fold-const.c (build_range_check): Compute pointer range check in
19267 integral type if pointer arithmetics would be needed. Formatting
19268 fixes.
19269
19270 2017-07-28 Martin Liska <mliska@suse.cz>
19271
19272 PR sanitizer/81460
19273 * sanopt.c (sanitize_rewrite_addressable_params): Do not rewrite
19274 parameters that are of a variable-length.
19275
19276 2017-07-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
19277
19278 * config.gcc (powerpc-*-rtems*): Remove rs6000/eabi.h. Add
19279 rs6000/biarch64.h.
19280 * config/rs6000/rtems.h (ASM_DECLARE_FUNCTION_SIZE): New macro.
19281 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
19282 (CRT_CALL_STATIC_FUNCTION): Likewise.
19283 (ASM_DEFAULT_SPEC): New define.
19284 (ASM_SPEC32): Likewise.
19285 (ASM_SPEC64): Likewise.
19286 (ASM_SPEC_COMMON): Likewise.
19287 (ASM_SPEC): Likewise.
19288 (INVALID_64BIT): Likewise.
19289 (LINK_OS_DEFAULT_SPEC): Likewise.
19290 (LINK_OS_SPEC32): Likewise.
19291 (LINK_OS_SPEC64): Likewise.
19292 (POWERPC_LINUX): Likewise.
19293 (PTRDIFF_TYPE): Likewise.
19294 (RESTORE_FP_PREFIX): Likewise.
19295 (RESTORE_FP_SUFFIX): Likewise.
19296 (SAVE_FP_PREFIX): Likewise.
19297 (SAVE_FP_SUFFIX): Likewise.
19298 (SIZE_TYPE): Likewise.
19299 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
19300 (TARGET_64BIT): Likewise.
19301 (TARGET_64BIT): Likewise.
19302 (TARGET_AIX): Likewise.
19303 (WCHAR_TYPE_SIZE): Likewise.
19304 (WCHAR_TYPE): Undefine.
19305 (TARGET_OS_CPP_BUILTINS): Add 64-bit PowerPC defines.
19306 (CPP_OS_DEFAULT_SPEC): Use previous CPP_OS_RTEMS_SPEC.
19307 (CPP_OS_RTEMS_SPEC): Delete.
19308 (SUBSUBTARGET_EXTRA_SPECS): Remove cpp_os_rtems. Add
19309 asm_spec_common, asm_spec32, asm_spec64, link_os_spec32, and
19310 link_os_spec64.
19311 * config/rs6000/t-rtems: Add mcpu=e6500/m64 multilibs.
19312
19313 2017-07-28 Jakub Jelinek <jakub@redhat.com>
19314
19315 PR tree-optimization/81578
19316 * tree-parloops.c (build_new_reduction): Bail out if
19317 reduction_code isn't one of the standard OpenMP reductions.
19318 Move the details printing after that decision.
19319
19320 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
19321
19322 * config/rs6000/predicates.md (volatile_mem_operand): Remove code
19323 related to reload_in_progress.
19324 (splat_input_operand): Likewise.
19325 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
19326 Delete prototype.
19327 * config/rs6000/rs6000.c (machine_function): Remove sdmode_stack_slot
19328 field.
19329 (TARGET_EXPAND_TO_RTL_HOOK): Delete.
19330 (TARGET_INSTANTIATE_DECLS): Likewise.
19331 (legitimate_indexed_address_p): Delete reload_in_progress code.
19332 (rs6000_debug_legitimate_address_p): Likewise.
19333 (rs6000_eliminate_indexed_memrefs): Likewise.
19334 (rs6000_emit_le_vsx_store): Likewise.
19335 (rs6000_emit_move_si_sf_subreg): Likewise.
19336 (rs6000_emit_move): Likewise.
19337 (register_to_reg_type): Likewise.
19338 (rs6000_pre_atomic_barrier): Likewise.
19339 (rs6000_machopic_legitimize_pic_address): Likewise.
19340 (rs6000_allocate_stack_temp): Likewise.
19341 (rs6000_address_for_fpconvert): Likewise.
19342 (rs6000_address_for_altivec): Likewise.
19343 (rs6000_secondary_memory_needed_rtx): Delete function.
19344 (rs6000_check_sdmode): Likewise.
19345 (rs6000_alloc_sdmode_stack_slot): Likewise.
19346 (rs6000_instantiate_decls): Likewise.
19347 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
19348 * config/rs6000/rs6000.md (splitter for *movsi_got_internal):
19349 Delete reload_in_progress.
19350 (*vec_reload_and_plus_<mptrsize>): Likewise.
19351 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
19352 (vsx_div_v2di): Likewise.
19353 (vsx_udiv_v2di): Likewise.
19354
19355 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
19356
19357 * config/rs6000/rs6000.opt (mlra): Replace with stub.
19358 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Delete OPTION_MASK_LRA.
19359 * config/rs6000/rs6000.c (TARGET_LRA_P): Delete.
19360 (rs6000_debug_reg_global): Delete print of LRA status.
19361 (rs6000_option_override_internal): Delete dead LRA related code.
19362 (rs6000_lra_p): Delete function.
19363 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mlra.
19364
19365 2017-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
19366
19367 * config.gcc (riscv*-*-elf*): Add (riscv*-*-rtems*).
19368 * config/riscv/rtems.h: New file.
19369
19370 2017-07-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19371 Sudakshina Das <sudi.das@arm.com>
19372
19373 * config/aarch64/aarch64.md
19374 (define_split for and<mode>3nr_compare): Move
19375 non aarch64_logical_operand to a register.
19376 (define_split for and_<SHIFT:optab><mode>3nr_compare0): Move non
19377 register immediate operand to a register.
19378 * config/aarch64/predicates.md (aarch64_mov_imm_operand): New.
19379
19380 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
19381
19382 PR middle-end/81564
19383 * tree-cfg.c (group_case_labels_stmt): Handle already deleted blocks.
19384
19385 2017-07-27 Richard Biener <rguenther@suse.de>
19386
19387 PR tree-optimization/81573
19388 PR tree-optimization/81494
19389 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
19390 multi defuse cycle case.
19391
19392 2017-07-27 Richard Biener <rguenther@suse.de>
19393
19394 PR tree-optimization/81571
19395 * tree-vect-slp.c (vect_build_slp_tree): Properly verify reduction
19396 PHIs.
19397
19398 2017-07-27 Eric Botcazou <ebotcazou@adacore.com>
19399
19400 * config/sparc/sparc.c (sparc_option_override): Set MASK_FSMULD flag
19401 earlier and only if MASK_FPU is set. Adjust formatting.
19402
19403 2017-07-27 Martin Liska <mliska@suse.cz>
19404
19405 * opt-functions.awk: Add validation of value of Init.
19406 * optc-gen.awk: Pass new argument.
19407
19408 2017-07-27 Martin Liska <mliska@suse.cz>
19409
19410 * auto-profile.c (autofdo_source_profile::update_inlined_ind_target):
19411 Fix wrong condition.
19412
19413 2017-07-27 Martin Liska <mliska@suse.cz>
19414
19415 * auto-profile.c (afdo_annotate_cfg): Assign zero counts to
19416 BBs and edges seen by autoFDO.
19417
19418 2017-07-27 Richard Biener <rguenther@suse.de>
19419
19420 PR tree-optimization/81502
19421 * tree-ssa.c (non_rewritable_lvalue_p): Handle BIT_INSERT_EXPR
19422 with incompatible but same sized type.
19423 (execute_update_addresses_taken): Likewise.
19424
19425 2017-07-27 James Greenhalgh <james.greenhalgh@arm.com>
19426
19427 * tree-ssa-loop-ch.c (pass_ch::process_loop_p): Guard on
19428 flag_tree_loop_vectorize rather than flag_tree_vectorize.
19429
19430 2017-07-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19431
19432 PR target/81534
19433 * config/s390/s390.md ("*atomic_compare_and_swap<mode>_1")
19434 ("*atomic_compare_and_swapdi_2", "*atomic_compare_and_swapsi_3"):
19435 Change s_operand to memory_operand.
19436
19437 2017-07-27 Richard Sandiford <richard.sandiford@linaro.org>
19438
19439 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_permute): Declare.
19440 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Replace with...
19441 (rs6000_emit_le_vsx_permute): ...this. Take the destination as input.
19442 Emit instructions rather than returning an expression. Handle TFmode
19443 and KFmode by casting to TImode.
19444 (rs6000_emit_le_vsx_load): Update to use rs6000_emit_le_vsx_permute.
19445 (rs6000_emit_le_vsx_store): Likewise.
19446 * config/rs6000/vsx.md (VSX_TI): New iterator.
19447 (*vsx_le_permute_<mode>): Use it instead of VSX_LE_128.
19448 (*vsx_le_undo_permute_<mode>): Likewise.
19449 (*vsx_le_perm_load_<mode>): Use rs6000_emit_le_vsx_permute to
19450 emit the split sequence.
19451 (*vsx_le_perm_store_<mode>): Likewise.
19452
19453 2017-07-27 Jakub Jelinek <jakub@redhat.com>
19454
19455 PR tree-optimization/81555
19456 PR tree-optimization/81556
19457 * tree-ssa-reassoc.c (rewrite_expr_tree): Add NEXT_CHANGED argument,
19458 if true, force CHANGED for the recursive invocation.
19459 (reassociate_bb): Remember original length of ops array, pass
19460 len != orig_len as NEXT_CHANGED in rewrite_expr_tree call.
19461
19462 * attribs.c (decl_attributes): Imply noinline, noclone and no_icf
19463 attributes for noipa attribute. For naked attribute use
19464 lookup_attribute first before lookup_attribute_spec.
19465 * final.c (rest_of_handle_final): Disable IPA RA for functions with
19466 noipa attribute.
19467 * ipa-visibility.c (non_local_p): Fix comment typos. Return true
19468 for functions with noipa attribute.
19469 (cgraph_externally_visible_p): Return true for functions with noipa
19470 attribute.
19471 * cgraph.c (cgraph_node::get_availability): Return AVAIL_INTERPOSABLE
19472 for functions with noipa attribute.
19473 * doc/extend.texi: Document noipa function attribute.
19474 * tree-ssa-structalias.c (refered_from_nonlocal_fn): Set *nonlocal_p
19475 also for functions with noipa attribute.
19476 (ipa_pta_execute): Set nonlocal_p also for nodes with noipa attribute.
19477
19478 2017-07-26 Andrew Pinski <apinski@cavium.com>
19479
19480 * config/aarch64/aarch64.c (thunderx_vector_cost): Decrease cost of
19481 vec_unalign_load_cost and vec_unalign_store_cost.
19482
19483 2017-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
19484
19485 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Delete
19486 -mvsx-small-integer option.
19487 (ISA_3_0_MASKS_IEEE): Likewise.
19488 (OTHER_VSX_VECTOR_MASKS): Likewise.
19489 (POWERPC_MASKS): Likewise.
19490 * config/rs6000/rs6000.opt (-mvsx-small-integer): Likewise.
19491 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Simplify
19492 code, only testing for DImode being allowed in non-VSX floating
19493 point registers.
19494 (rs6000_init_hard_regno_mode_ok): Change TARGET_VSX_SMALL_INTEGER
19495 to TARGET_P8_VECTOR test. Remove redundant VSX test inside of
19496 another VSX test.
19497 (rs6000_option_override_internal): Delete -mvsx-small-integer.
19498 (rs6000_expand_vector_set): Change TARGET_VSX_SMALL_INTEGER to
19499 TARGET_P8_VECTOR test.
19500 (rs6000_secondary_reload_simple_move): Likewise.
19501 (rs6000_preferred_reload_class): Delete TARGET_VSX_SMALL_INTEGER,
19502 since TARGET_P9_VECTOR was already tested.
19503 (rs6000_opt_masks): Remove -mvsx-small-integer.
19504 * config/rs6000/vsx.md (vsx_extract_<mode>): Delete
19505 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
19506 used.
19507 (vsx_extract_<mode>_p9): Delete TARGET_VSX_SMALL_INTEGER, since a
19508 test for TARGET_VEXTRACTUB was used, and that uses
19509 TARGET_P9_VECTOR.
19510 (p9 extract splitter): Likewise.
19511 (vsx_extract_<mode>_di_p9): Likewise.
19512 (vsx_extract_<mode>_store_p9): Likewise.
19513 (vsx_extract_si): Delete TARGET_VSX_SMALL_INTEGER, since a test
19514 for TARGET_P9_VECTOR was used. Delete code that is now dead with
19515 the elimination of TARGET_VSX_SMALL_INTEGER.
19516 (vsx_extract_<mode>_p8): Likewise.
19517 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Likewise.
19518 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
19519 (vsx_set_<mode>_p9): Likewise.
19520 (vsx_set_v4sf_p9): Likewise.
19521 (vsx_set_v4sf_p9_zero): Likewise.
19522 (vsx_insert_extract_v4sf_p9): Likewise.
19523 (vsx_insert_extract_v4sf_p9_2): Likewise.
19524 * config/rs6000/rs6000.md (sign extend splitter): Change
19525 TARGET_VSX_SMALL_INTEGER to TARGET_P8_VECTOR test.
19526 (floatsi<mode>2_lfiwax_mem): Likewise.
19527 (floatunssi<mode>2_lfiwzx_mem): Likewise.
19528 (float<QHI:mode><FP_ISA3:mode>2): Delete TARGET_VSX_SMALL_INTEGER,
19529 since a test for TARGET_P9_VECTOR was used.
19530 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
19531 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
19532 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
19533 (fix_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
19534 TARGET_P8_VECTOR test.
19535 (fix_trunc<mode>si2_stfiwx): Likewise.
19536 (fix_trunc<mode>si2_internal): Likewise.
19537 (fix_trunc<SFDF:mode><QHI:mode>2): Delete
19538 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
19539 used.
19540 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
19541 (fixuns_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
19542 TARGET_P8_VECTOR test.
19543 (fixuns_trunc<mode>si2_stfiwx): Likewise.
19544 (fixuns_trunc<SFDF:mode><QHI:mode>2): Delete
19545 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
19546 used.
19547 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
19548 (fctiw<u>z_<mode>_smallint): Delete TARGET_VSX_SMALL_INTEGER,
19549 since a test for TARGET_P9_VECTOR was used.
19550 (splitter for loading small constants): Likewise.
19551
19552 2017-07-26 Andrew Pinski <apinski@cavium.com>
19553
19554 * config/aarch64/aarch64.c (thunderx_vector_cost): Fix
19555 vec_fp_stmt_cost.
19556
19557 2017-07-26 H.J. Lu <hongjiu.lu@intel.com>
19558
19559 PR target/81563
19560 * config/i386/i386.c (sp_valid_at): Properly check CFA offset.
19561 (fp_valid_at): Likewise.
19562
19563 2017-07-26 James Greenhalgh <james.greenhalgh@arm.com>
19564
19565 * config/aarch64/aarch64.c (cortexa57_addrcost_table): Remove.
19566 (qdf24xx_addrcost_table): Likewise.
19567 (cortexa57_tunings): Update to use generic_branch_cost.
19568 (cortexa72_tunings): Likewise.
19569 (cortexa73_tunings): Likewise.
19570 (qdf24xx_tunings): Likewise.
19571
19572 2017-07-26 James Greenhalgh <james.greenhalgh@arm.com>
19573
19574 * config/aarch64/aarch64.c (cortexa57_branch_cost): Remove.
19575 (thunderx2t99_branch_cost): Likewise.
19576 (cortexa35_tunings): Update to use generic_branch_cost.
19577 (cortexa53_tunings): Likewise.
19578 (cortexa57_tunings): Likewise.
19579 (cortexa72_tunings): Likewise.
19580 (cortexa73_tunings): Likewise.
19581 (thunderx2t99_tunings): Likewise.
19582
19583 2017-07-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
19584
19585 * config/sparc/sparc.c (dump_target_flag_bits): Dump MASK_FSMULD.
19586 (sparc_option_override): Honour MASK_FSMULD.
19587 * config/sparc/sparc.h (MASK_FEATURES): Add MASK_FSMULD.
19588 * config/sparc/sparc.md (muldf3_extend): Use TARGET_FSMULD.
19589 * config/sparc/sparc.opt (mfsmuld): New option.
19590 * doc/invoke.texi (mfsmuld): Document option.
19591
19592 2017-07-26 Marek Polacek <polacek@redhat.com>
19593
19594 PR middle-end/70992
19595 * tree.c (build2_stat): Don't set TREE_CONSTANT on divisions by zero.
19596
19597 2017-07-26 Richard Biener <rguenther@suse.de>
19598
19599 * gimple-match-head.c (do_valueize): Return OP if valueize
19600 returns NULL_TREE.
19601 (get_def): New helper to get at the def stmt of a SSA name
19602 if valueize allows.
19603 * genmatch.c (dt_node::gen_kids_1): Use get_def instead of
19604 do_valueize to get at the def stmt.
19605 (dt_operand::gen_gimple_expr): Simplify do_valueize calls.
19606
19607 2017-07-26 Wilco Dijkstra <wdijkstr@arm.com>
19608
19609 PR middle-end/46932
19610 * auto-inc-dec.c (parse_add_or_inc): Block autoinc on sfp.
19611
19612 2017-07-26 Martin Liska <mliska@suse.cz>
19613
19614 PR sanitize/81186
19615 * function.c (expand_function_start): Make expansion of
19616 nonlocal_goto_save_area after parm_birth_insn.
19617
19618 2017-07-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
19619
19620 * config/sparc/sparc.c (sparc_option_override): Remove MASK_FPU
19621 from all CPU target flags enable members.
19622
19623 2017-07-26 Richard Biener <rguenther@suse.de>
19624
19625 * genmatch.c (dt_simplify::gen): Make iterator vars const.
19626 (decision_tree::gen): Make 'type' const.
19627 (write_predicate): Likewise.
19628
19629 2017-07-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19630
19631 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok):
19632 Eliminate TARGET_UPPER_REGS_{DF,DI,SF} usage.
19633 (rs6000_option_override_internal): Likewise.
19634 (rs6000_expand_vector_set): Likewise.
19635 * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Delete.
19636 (TARGET_UPPER_REGS_SF): Likewise.
19637 (TARGET_UPPER_REGS_DI): Likewise.
19638 (TARGET_VEXTRACTUB): Eliminate TARGET_UPPER_REGS_{DF,DI,SF}.
19639 (TARGET_DIRECT_MOVE_64BIT): Likewise.
19640 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Likewise.
19641 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
19642 (Splitters for DI constants in Altivec registers): Likewise.
19643 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Likewise.
19644 (vsx_set_v4sf_p9): Likewise.
19645 (vsx_set_v4sf_p9_zero): Likewise.
19646 (vsx_insert_extract_v4sf_p9): Likewise.
19647 (vsx_insert_extract_v4sf_p9_2): Likewise.
19648
19649 2017-07-25 Carl Love <cel@us.ibm.com>
19650
19651 * doc/extend.texi: Update the built-in documentation file for the
19652 existing built-in functions
19653 vector signed char vec_cnttz (vector signed char);
19654 vector unsigned char vec_cnttz (vector unsigned char);
19655 vector signed short vec_cnttz (vector signed short);
19656 vector unsigned short vec_cnttz (vector unsigned short);
19657 vector signed int vec_cnttz (vector signed int);
19658 vector unsigned int vec_cnttz (vector unsigned int);
19659 vector signed long long vec_cnttz (vector signed long long);
19660 vector unsigned long long vec_cnttz (vector unsigned long long);
19661
19662 2017-07-25 Andrew Pinski <apinski@cavium.com>
19663
19664 * tree-ssa-uninit.c (warn_uninitialized_vars): Don't warn about memory
19665 accesses where the use is for the first operand of a BIT_INSERT.
19666
19667 2017-07-25 Jim Wilson <jim.wilson@linaro.org>
19668
19669 PR bootstrap/81521
19670 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
19671 for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
19672
19673 2017-07-25 Jim Wilson <jim.wilson@linaro.org>
19674
19675 * config/i386/gstabs.h: Delete.
19676 * config/i386/openbsd.h, config/i386/t-openbsd: Likewise.
19677
19678 2017-07-25 Uros Bizjak <ubizjak@gmail.com>
19679
19680 * config/i386/i386.c (ix86_decompose_address): Do not check for
19681 register RTX when looking at index_reg or base_reg.
19682 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use stack_pointer_rtx.
19683
19684 2017-07-25 Eric Botcazou <ebotcazou@adacore.com>
19685
19686 * gimple.c (gimple_assign_set_rhs_with_ops): Do not ask gsi_replace
19687 to update EH info here.
19688
19689 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
19690
19691 * match.pd ((X * CST1) * CST2): Simplify to X * (CST1 * CST2).
19692
19693 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
19694
19695 * match.pd ((X * CST) * Y): Reassociate to (X * Y) * CST.
19696
19697 2017-07-25 Torsten Duwe <duwe@suse.de>
19698
19699 * common.opt: Introduce -fpatchable-function-entry
19700 command line option, and its variables function_entry_patch_area_size
19701 and function_entry_patch_area_start.
19702 * opts.c (common_handle_option): Add -fpatchable_function_entry_ case,
19703 including a two-value parser.
19704 * target.def (print_patchable_function_entry): New target hook.
19705 * targhooks.h (default_print_patchable_function_entry): New function.
19706 * targhooks.c (default_print_patchable_function_entry): Likewise.
19707 * toplev.c (process_options): Switch off IPA-RA if
19708 patchable function entries are being generated.
19709 * varasm.c (assemble_start_function): Look at the
19710 patchable-function-entry command line switch and current
19711 function attributes and maybe generate NOP instructions by
19712 calling the print_patchable_function_entry hook.
19713 * doc/extend.texi: Document patchable_function_entry attribute.
19714 * doc/invoke.texi: Document -fpatchable_function_entry
19715 command line option.
19716 * doc/tm.texi.in (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
19717 New target hook.
19718 * doc/tm.texi: Re-generate.
19719
19720 2017-07-25 Jakub Jelinek <jakub@redhat.com>
19721
19722 PR target/81532
19723 * config/i386/constraints.md (Yd, Ye): Use ALL_SSE_REGS for
19724 TARGET_AVX512DQ rather than TARGET_AVX512BW.
19725
19726 2017-07-25 Tamar Christina <tamar.christina@arm.com>
19727
19728 * config/arm/parsecpu.awk (all_cores): Remove duplicates.
19729
19730 2017-07-25 Richard Biener <rguenther@suse.de>
19731
19732 PR tree-optimization/81455
19733 * tree-ssa-loop-unswitch.c (find_loop_guard): Make sure to
19734 not walk in cycles when looking for guards.
19735
19736 2017-07-25 Richard Biener <rguenther@suse.de>
19737
19738 PR tree-optimization/81529
19739 * tree-vect-stmts.c (process_use): Disregard live induction PHIs
19740 when optimizing backedge uses.
19741
19742 2017-07-25 David Edelsohn <dje.gcc@gmail.com>
19743
19744 * dwarf2asm.c (dw2_asm_output_nstring): Encode double quote
19745 character for AIX.
19746 * dwarf2out.c (output_macinfo): Copy debug_line_section_label
19747 to dl_section_ref. On AIX, append an expression to subtract
19748 the size of the section length to dl_section_ref.
19749
19750 2017-07-25 Segher Boessenkool <segher@kernel.crashing.org>
19751
19752 * configure.ac: If any of the config.* scripts fail, exit 1.
19753 * configure: Regenerate.
19754
19755 2017-07-25 Richard Biener <rguenther@suse.de>
19756
19757 PR middle-end/81546
19758 * tree-ssa-operands.c (verify_imm_links): Remove cap on number
19759 of immediate uses, be more verbose on errors.
19760
19761 2017-07-25 Richard Biener <rguenther@suse.de>
19762
19763 PR tree-optimization/81510
19764 * tree-vect-loop.c (vect_is_simple_reduction): When the
19765 reduction stmt is not inside the loop bail out.
19766
19767 2017-07-25 Richard Biener <rguenther@suse.de>
19768
19769 PR tree-optimization/81303
19770 * tree-vect-loop-manip.c (vect_loop_versioning): Build
19771 profitability check against LOOP_VINFO_NITERSM1.
19772
19773 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
19774
19775 * domwalk.c (cmp_bb_postorder): Simplify.
19776 (sort_bbs_postorder): New function. Use it...
19777 (dom_walker::walk): ...here to optimize common cases.
19778
19779 2017-07-25 Martin Liska <mliska@suse.cz>
19780
19781 PR ipa/81520
19782 * ipa-visibility.c (function_and_variable_visibility): Make the
19783 redirection just on target that supports aliasing.
19784 Fix GNU coding style.
19785
19786 2017-07-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
19787
19788 PR libgcc/61152
19789 * config/aarch64/rtems.h: Add GCC Runtime Library Exception.
19790 Format changes.
19791 * config/arm/rtems.h: Likewise.
19792 * config/bfin/rtems.h: Likewise.
19793 * config/i386/rtemself.h: Likewise.
19794 * config/lm32/rtems.h: Likewise.
19795 * config/m32c/rtems.h: Likewise.
19796 * config/m68k/rtemself.h: Likewise.
19797 * config/microblaze/rtems.h: Likewise.
19798 * config/mips/rtems.h: Likewise.
19799 * config/moxie/rtems.h: Likewise.
19800 * config/nios2/rtems.h: Likewise.
19801 * config/powerpcspe/rtems.h: Likewise.
19802 * config/rs6000/rtems.h: Likewise.
19803 * config/rtems.h: Likewise.
19804 * config/sh/rtems.h: Likewise.
19805 * config/sh/rtemself.h: Likewise.
19806 * config/sparc/rtemself.h: Likewise.
19807
19808 2017-07-25 Georg-Johann Lay <avr@gjlay.de>
19809
19810 PR 81487
19811 * hsa-brig.c (brig_init): Use xasprintf instead of asprintf.
19812 * gimple-pretty-print.c (dump_profile, dump_probability): Same.
19813 * tree-ssa-structalias.c (alias_get_name): Same.
19814
19815 2017-07-25 Bin Cheng <bin.cheng@arm.com>
19816
19817 PR target/81414
19818 * config/aarch64/cortex-a57-fma-steering.c (analyze): Skip fmul/fmac
19819 instructions if no du chain is found.
19820
19821 2017-07-25 Georg-Johann Lay <avr@gjlay.de>
19822
19823 * config/avr/avr-log.c (avr_log_vadump) ['T']: Print NULL-TREE.
19824
19825 2017-07-25 Richard Biener <rguenther@suse.de>
19826
19827 PR middle-end/81505
19828 * fold-const.c (fold_negate_const): TREE_OVERFLOW should be
19829 sticky.
19830
19831 2017-07-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19832
19833 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Delete
19834 upper-regs options.
19835 (ISA_2_7_MASKS_SERVER): Likewise.
19836 (ISA_3_0_MASKS_IEEE): Likewise.
19837 (OTHER_P8_VECTOR_MASKS): Likewise.
19838 (OTHER_VSX_VECTOR_MASKS): Likewise.
19839 (POWERPC_MASKS): Likewise.
19840 (power7 cpu): Use ISA_2_6_MASKS_SERVER instead of using a
19841 duplicate list of options.
19842 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Remove
19843 explicit -mupper-regs options.
19844 * config/rs6000/rs6000.opt (-mvsx-scalar-memory): Delete
19845 -mupper-regs* options. Delete -mvsx-scalar-memory, which was an
19846 alias for -mupper-regs-df.
19847 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
19848 (rs6000_init_hard_regno_mode_ok): Likewise.
19849 (rs6000_option_override_internal): Likewise.
19850 (rs6000_opt_masks): Likewise.
19851 * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Define upper regs
19852 options in terms of whether -mvsx or -mpower8-vector was used.
19853 (TARGET_UPPER_REGS_DI): Likewise.
19854 (TARGET_UPPER_REGS_SF): Likewise.
19855 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete the
19856 -mupper-regs-* options.
19857
19858 2017-07-24 Segher Boessenkool <segher@kernel.crashing.org>
19859
19860 * passes.c (emergency_dump_function): Print some empty lines and a
19861 header before the RTL dump.
19862
19863 2017-07-24 Segher Boessenkool <segher@kernel.crashing.org>
19864
19865 * cfgrtl.c (rtl_dump_bb): Don't call NEXT_INSN on NULL.
19866
19867 2017-07-24 Wilco Dijkstra <wdijkstr@arm.com>
19868
19869 PR target/79041
19870 * config/aarch64/aarch64.c (aarch64_classify_symbol):
19871 Avoid SYMBOL_SMALL_ABSOLUTE for literals with pc-relative literals.
19872
19873 2017-07-24 Carl Love <cel@us.ibm.com>
19874
19875 * config/rs6000/rs6000-c.c: Add support for built-in functions
19876 vector float vec_extract_fp32_from_shorth (vector unsigned short);
19877 vector float vec_extract_fp32_from_shortl (vector unsigned short);
19878 * config/rs6000/altivec.h (vec_extract_fp_from_shorth,
19879 vec_extract_fp_from_shortl): Add defines for the two builtins.
19880 * config/rs6000/rs6000-builtin.def (VEXTRACT_FP_FROM_SHORTH,
19881 VEXTRACT_FP_FROM_SHORTL): Add BU_P9V_OVERLOAD_1 and BU_P9V_VSX_1
19882 new builtins.
19883 * config/rs6000/vsx.md vsx_xvcvhpsp): Add define_insn.
19884 (vextract_fp_from_shorth, vextract_fp_from_shortl): Add define_expands.
19885 * doc/extend.texi: Update the built-in documentation file for the
19886 new built-in function.
19887
19888 2017-07-24 Jakub Jelinek <jakub@redhat.com>
19889
19890 PR bootstrap/81521
19891 * tree.def: Remove TYPE_METHODS documentation, adjust TYPE_FIELDS
19892 documentation.
19893 * doc/generic.texi: Likewise.
19894 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
19895 for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
19896
19897 2017-07-24 Jackson Woodruff <jackson.woodruff@arm.com>
19898
19899 * config/aarch64/aarch64-simd.md (aarch64_mla_elt_merge<mode>): New.
19900 (aarch64_mls_elt_merge<mode>): Likewise.
19901
19902 2017-07-23 Krister Walfridsson <krister.walfridsson@gmail.com>
19903
19904 * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
19905 having __cxa_atexit.
19906
19907 2017-07-23 Michael Collison <michael.collison@arm.com>
19908
19909 * config/arm/arm.c (arm_option_override): Deprecate
19910 use of -mstructure-size-boundary.
19911 * config/arm/arm.opt: Deprecate -mstructure-size-boundary.
19912 * doc/invoke.texi: Deprecate -mstructure-size-boundary.
19913
19914 2017-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19915
19916 PR target/80695
19917 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
19918 Reduce cost estimate for direct moves.
19919
19920 2017-07-23 Uros Bizjak <ubizjak@gmail.com>
19921
19922 PR target/80569
19923 * config/i386/i386.c (ix86_option_override_internal): Disable
19924 BMI, BMI2 and TBM instructions for -m16.
19925
19926 2017-07-21 Carl Love <cel@us.ibm.com>
19927
19928 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19929 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
19930 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
19931 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
19932 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
19933 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
19934 VMULOSW): New enum "unspec" values.
19935 (altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
19936 altivec_vmulosw): New patterns.
19937 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
19938 VMULOSW): Add definitions.
19939
19940 2017-07-21 Jim Wilson <jim.wilson@linaro.org>
19941
19942 * config/aarch64/aarch64-cores.def (falkor): Add AARCH64_FL_RDMA.
19943 (qdf24xx): Likewise.
19944 * config/aarch64/aarch64-options-extensions.def (rdma); New.
19945 * config/aarch64/aarch64.h (AARCH64_FL_RDMA): New.
19946 (AARCH64_FL_V8_1): Renumber.
19947 (AARCH64_FL_FOR_ARCH8_1): Add AARCH64_FL_RDMA.
19948 (AARCH64_ISA_RDMA): Use AARCH64_FL_RDMA.
19949 * config/aarch64/arm_neon.h: Use +rdma instead of arch=armv8.1-a.
19950 * doc/invoke.texi (AArch64 Options): Mention +rmda in -march docs. Add
19951 rdma to feature modifiers list.
19952
19953 2017-07-21 Yury Gribov <tetra2005@gmail.com>
19954
19955 PR middle-end/56727
19956 * ipa-visibility (function_and_variable_visibility): Convert
19957 recursive PLT call to direct call if appropriate.
19958
19959 2017-07-21 Andrew Pinski <apinski@cavium.com>
19960
19961 * tree-ssa-sccvn.c (vn_nary_op_eq): Check BIT_INSERT_EXPR's
19962 operand 1 to see if the types precision matches.
19963 * fold-const.c (operand_equal_p): Likewise.
19964
19965 2017-07-21 Richard Biener <rguenther@suse.de>
19966
19967 PR tree-optimization/81303
19968 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs): Pass
19969 in datarefs vector. Allow NULL dr0 for no peeling cost estimate.
19970 (vect_peeling_hash_get_lowest_cost): Adjust.
19971 (vect_enhance_data_refs_alignment): Likewise. Use
19972 vect_get_peeling_costs_all_drs to compute the penalty for no
19973 peeling to match up costs.
19974
19975 2017-07-21 Richard Biener <rguenther@suse.de>
19976
19977 PR tree-optimization/81500
19978 * tree-vect-loop.c (vect_is_simple_reduction): Properly fail if
19979 we didn't identify a reduction path.
19980
19981 2017-07-21 Tom de Vries <tom@codesourcery.com>
19982 Cesar Philippidis <cesar@codesourcery.com>
19983
19984 PR gcov-profile/81442
19985 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Add missing edge
19986 probabilities.
19987
19988 2017-07-21 Tom de Vries <tom@codesourcery.com>
19989
19990 PR lto/81430
19991 * config/nvptx/nvptx.c (nvptx_override_options_after_change): New
19992 function.
19993 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define to
19994 nvptx_override_options_after_change.
19995
19996 2017-07-21 Ulrich Drepper <drepper@redhat.com>
19997
19998 * dwarf2out.c (output_file_names): Avoid double testing for
19999 dwarf_version >= 5.
20000
20001 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
20002
20003 * doc/invoke.texi (AVR Built-in Functions): Re-layout section.
20004
20005 2016-07-21 Jan Hubicka <hubicka@ucw.cz>
20006
20007 * cfgcleanup.c (flow_find_cross_jump): Do not crossjump across
20008 hot/cold regions.
20009 (try_crossjump_to_edge): Do not punt on partitioned functions.
20010
20011 2016-07-21 Jan Hubicka <hubicka@ucw.cz>
20012
20013 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
20014 Put all BBs reachable only via paths crossing cold region to cold
20015 region.
20016 * cfgrtl.c (find_bbs_reachable_by_hot_paths): New function.
20017
20018 2016-07-21 Richard Biener <rguenther@suse.de>
20019
20020 PR tree-optimization/81303
20021 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Take
20022 into account prologue and epilogue iterations when raising
20023 min_profitable_iters to sth at least covering one vector iteration.
20024
20025 2017-07-21 Tamar Christina <tamar.christina@arm.com>
20026
20027 * config/arm/arm.c (arm_test_cpu_arch_dat):
20028 Check for overlap.
20029
20030 2017-07-20 Nathan Sidwell <nathan@acm.org>
20031
20032 Remove TYPE_METHODS.
20033 * tree.h (TYPE_METHODS): Delete.
20034 * dwarf2out.c (gen_member_die): Member fns are on TYPE_FIELDS.
20035 * dbxout.c (dbxout_type_fields): Ignore FUNCTION_DECLs.
20036 (dbxout_type_methods): Scan TYPE_FIELDS.
20037 (dbxout_type): Don't check TYPE_METHODS here.
20038 * function.c (use_register_for_decl): Always ignore register for
20039 class types when not optimizing.
20040 * ipa-devirt.c (odr_types_equivalent_p): Delete TYPE_METHODS scan.
20041 * tree.c (free_lang_data_in_type): Stitch out member functions and
20042 templates from TYPE_FIELDS.
20043 (build_distinct_type_copy, verify_type_variant,
20044 verify_type): Member fns are on TYPE_FIELDS.
20045 * tree-dump.c (dequeue_and_dump): No TYPE_METHODS.
20046 * tree-pretty-print.c (dump_generic_node): Likewise.
20047
20048 2017-07-20 Jakub Jelinek <jakub@redhat.com>
20049
20050 PR target/80846
20051 * config/i386/i386.c (ix86_expand_vector_init_general): Handle
20052 V2TImode and V4TImode.
20053 (ix86_expand_vector_extract): Likewise.
20054 * config/i386/sse.md (VMOVE): Enable V4TImode even for just
20055 TARGET_AVX512F, instead of only for TARGET_AVX512BW.
20056 (ssescalarmode): Handle V4TImode and V2TImode.
20057 (VEC_EXTRACT_MODE): Add V4TImode and V2TImode.
20058 (*vec_extractv2ti, *vec_extractv4ti): New insns.
20059 (VEXTRACTI128_MODE): New mode iterator.
20060 (splitter for *vec_extractv?ti first element): New.
20061 (VEC_INIT_MODE): New mode iterator.
20062 (vec_init<mode>): Consolidate 3 expanders into one using
20063 VEC_INIT_MODE mode iterator.
20064
20065 2017-07-20 Alexander Monakov <amonakov@ispras.ru>
20066
20067 * lra-assigns.c (pseudo_compare_func): Fix comparison step based on
20068 non_spilled_static_chain_regno_p.
20069
20070 2017-07-20 Alexander Monakov <amonakov@ispras.ru>
20071
20072 * gimple-ssa-store-merging.c (sort_by_bitpos): Return 0 on equal bitpos.
20073
20074 2017-07-20 Jan Hubicka <hubicka@ucw.cz>
20075
20076 * bb-reorder.c (connect_traces): Allow copying of blocks within
20077 single partition.
20078
20079 2017-07-20 Richard Biener <rguenther@suse.de>
20080
20081 * gimple.h (gimple_phi_result): Add gphi * overload.
20082 (gimple_phi_result_ptr): Likewise.
20083 (gimple_phi_arg): Likewise. Adjust index assert to only
20084 allow actual argument accesses rather than all slots available
20085 by capacity.
20086 (gimple_phi_arg_def): Add gphi * overload.
20087 * tree-phinodes.c (make_phi_node): Initialize only actual
20088 arguments.
20089 (resize_phi_node): Clear memory not covered by old node,
20090 do not initialize excess argument slots.
20091 (reserve_phi_args_for_new_edge): Initialize new argument slot
20092 completely.
20093
20094 2017-07-20 Bin Cheng <bin.cheng@arm.com>
20095
20096 PR tree-optimization/81388
20097 Revert r238585:
20098 2016-07-21 Bin Cheng <bin.cheng@arm.com>
20099
20100 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
20101 by removing computation of may_be_zero.
20102
20103 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
20104 Tom de Vries <tom@codesourcery.com>
20105
20106 PR middle-end/81030
20107 * cfgbuild.c (find_many_sub_basic_blocks): Update REG_BR_PROB note
20108 when gimple level profile disagrees with what RTL expander did.
20109
20110 2017-07-20 Richard Biener <rguenther@suse.de>
20111
20112 PR tree-optimization/61171
20113 * tree-vectorizer.h (slp_instance): Add reduc_phis member.
20114 (vect_analyze_stmt): Add slp instance parameter.
20115 (vectorizable_reduction): Likewise.
20116 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust.
20117 (vect_is_simple_reduction): Deal with chains not detected
20118 as SLP reduction chain, specifically not properly associated
20119 chains containing a mix of plus/minus.
20120 (get_reduction_op): Remove.
20121 (get_initial_defs_for_reduction): Simplify, pass in whether
20122 this is a reduction chain, pass in the SLP node for the PHIs.
20123 (vect_create_epilog_for_reduction): Get the SLP instance as
20124 arg and adjust.
20125 (vectorizable_reduction): Get the SLP instance as arg.
20126 During analysis remember the SLP node with the PHIs in the
20127 instance. Simplify getting at the vectorized reduction PHIs.
20128 * tree-vect-slp.c (vect_slp_analyze_node_operations): Pass
20129 through SLP instance.
20130 (vect_slp_analyze_operations): Likewise.
20131 * tree-vect-stms.c (vect_analyze_stmt): Likewise.
20132 (vect_transform_stmt): Likewise.
20133
20134 2017-07-20 Tom de Vries <tom@codesourcery.com>
20135
20136 PR tree-optimization/81489
20137 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Move
20138 read of phi arg location to before loop that modifies phi.
20139
20140 2017-07-20 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
20141
20142 * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0):
20143 New pattern.
20144
20145 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
20146
20147 PR middle-end/81331
20148 * except.c (execute): Fix ordering issue.
20149
20150 2018-07-19 Segher Boessenkool <segher@kernel.crashing.org>
20151
20152 PR rtl-optimization/81423
20153 * combine.c (make_compound_operation_int): Don't try to optimize
20154 the AND of a SUBREG of an LSHIFTRT if that SUBREG is paradoxical.
20155
20156 2017-07-19 Segher Boessenkool <segher@kernel.crashing.org>
20157
20158 PR rtl-optimization/81423
20159 * simplify-rtx.c (simplify_truncation): Handle truncating an IOR
20160 with a constant that is -1 in the truncated to mode.
20161
20162 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
20163
20164 * predict.c (propagate_unlikely_bbs_forward): Break out from ...
20165 (determine_unlikely_bbs): ... here.
20166 * predict.h (propagate_unlikely_bbs_forward): Declare.
20167 * cfgexpand.c (pass_expand::execute): Use it.
20168 * bb-reorder.c (sanitize_hot_paths): Do not consider known to be
20169 unlikely edges.
20170 (find_rarely_executed_basic_blocks_and_crossing_edges): Use
20171 propagate_unlikely_bbs_forward.
20172
20173 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
20174
20175 PR middle-end/81331
20176 * except.c (maybe_add_nop_after_section_switch): New function.
20177 (execute): Use it.
20178
20179 2017-07-19 Tom de Vries <tom@codesourcery.com>
20180
20181 * gimple.h (gimple_phi_set_arg): Make assert more strict.
20182
20183 2017-07-19 Tom de Vries <tom@codesourcery.com>
20184
20185 * gimple.h (gimple_phi_arg): Make assert more strict.
20186
20187 2017-07-19 Steven Munroe <munroesj@gcc.gnu.org>
20188
20189 * config.gcc (powerpc*-*-*): Add mmintrin.h.
20190 * config/rs6000/mmintrin.h: New file.
20191 * config/rs6000/x86intrin.h [__ALTIVEC__]: Include mmintrin.h.
20192
20193 2017-07-19 Jakub Jelinek <jakub@redhat.com>
20194
20195 PR tree-optimization/81346
20196 * match.pd: Optimize (X - 1U) <= INT_MAX-1U into (int) X > 0.
20197
20198 2017-07-19 Tom de Vries <tom@codesourcery.com>
20199
20200 * config/nvptx/nvptx.md (VECIM): Add V2DI.
20201
20202 2017-07-19 Tom de Vries <tom@codesourcery.com>
20203
20204 * config/nvptx/nvptx-modes.def: Add V2DImode.
20205 * config/nvptx/nvptx-protos.h (nvptx_data_alignment): Declare.
20206 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2DImode.
20207 (nvptx_output_mov_insn): Handle lack of mov.b128.
20208 (nvptx_print_operand): Handle 'H' and 'L' codes.
20209 (nvptx_vector_mode_supported): Allow V2DImode.
20210 (nvptx_preferred_simd_mode): New function.
20211 (nvptx_data_alignment): New function.
20212 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Redefine to
20213 nvptx_preferred_simd_mode.
20214 * config/nvptx/nvptx.h (STACK_BOUNDARY, BIGGEST_ALIGNMENT): Change from
20215 64 to 128 bits.
20216 (DATA_ALIGNMENT): Define. Set to nvptx_data_alignment.
20217
20218 2017-07-19 Tom de Vries <tom@codesourcery.com>
20219
20220 * config/nvptx/nvptx-modes.def: New file. Add V2SImode.
20221 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2SImode.
20222 (nvptx_vector_mode_supported): New function. Allow V2SImode.
20223 (TARGET_VECTOR_MODE_SUPPORTED_P): Redefine to nvptx_vector_mode_supported.
20224 * config/nvptx/nvptx.md (VECIM): New mode iterator. Add V2SI.
20225 (mov<VECIM>_insn): New define_insn.
20226 (define_expand "mov<VECIM>): New define_expand.
20227
20228 2017-07-19 Tom de Vries <tom@codesourcery.com>
20229
20230 * config/nvptx/nvptx.c (nvptx_print_operand): Handle v2 vector mode.
20231
20232 2017-07-19 Jakub Jelinek <jakub@redhat.com>
20233
20234 PR tree-optimization/81346
20235 * fold-const.h (fold_div_compare, range_check_type): Declare.
20236 * fold-const.c (range_check_type): New function.
20237 (build_range_check): Use range_check_type.
20238 (fold_div_compare): No longer static, rewritten into
20239 a match.pd helper function.
20240 (fold_comparison): Don't call fold_div_compare here.
20241 * match.pd (X / C1 op C2): New optimization using fold_div_compare
20242 as helper function.
20243
20244 2017-07-19 Nathan Sidwell <nathan@acm.org>
20245
20246 * tree.h (TYPE_MINVAL, TYPE_MAXVAL): Rename to ...
20247 (TYPE_MIN_VALUE_RAW, TYPE_MAX_VALUE_RAW): ... these.
20248 * tree.c (find_decls_types_r, verify_type): Use
20249 TYPE_{MIN,MAX}_VALUE_RAW.
20250 * lto-streamer-out.c (DFS::DFS_write_tree_body): Likewise.
20251 (hash_tree): Likewise.
20252 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
20253 Likewise.
20254 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
20255 Likewise.
20256
20257 2017-07-18 Tom de Vries <tom@codesourcery.com>
20258
20259 PR middle-end/81464
20260 * omp-expand.c (expand_omp_for_static_chunk): Handle
20261 equal-argument loop exit phi.
20262
20263 2017-07-18 Uros Bizjak <ubizjak@gmail.com>
20264
20265 PR target/81471
20266 * config/i386/i386.md (rorx_immediate_operand): New mode attribute.
20267 (*bmi2_rorx<mode>3_1): Use rorx_immediate_operand as
20268 operand 2 predicate.
20269 (*bmi2_rorxsi3_1_zext): Use const_0_to_31_operand as
20270 operand 2 predicate.
20271 (ror,rol -> rorx splitters): Use const_int_operand as
20272 operand 2 predicate.
20273
20274 2017-06-18 Richard Biener <rguenther@suse.de>
20275
20276 PR tree-optimization/81410
20277 * tree-vect-stmts.c (vectorizable_load): Properly adjust for
20278 the gap in the ! slp_perm SLP case after each group.
20279
20280 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
20281
20282 PR middle-end/81463
20283 * cfgloopmanip.c (scale_loop_profile): Watch out for zero frequency
20284 again.
20285
20286 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
20287
20288 PR middle-end/81462
20289 * predict.c (set_even_probabilities): Cleanup; do not affect
20290 probabilities that are already known.
20291 (combine_predictions_for_bb): Call even when count is set.
20292
20293 2017-07-18 Nathan Sidwell <nathan@acm.org>
20294
20295 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
20296 TYPE_MAX_VALUE.
20297
20298 2017-07-18 Bin Cheng <bin.cheng@arm.com>
20299
20300 PR target/81408
20301 * tree-ssa-loop-niter.c (number_of_iterations_exit): Dump missed
20302 optimization for loop niter analysis.
20303
20304 2017-07-18 Georg-Johann Lay <avr@gjlay.de>
20305
20306 PR target/81473
20307 * config/avr/avr.c (avr_optimize_casesi): Don't use
20308 INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX.
20309
20310 2017-07-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
20311
20312 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Remove
20313 body_cost_vec from _vect_peel_extended_info.
20314 (vect_peeling_hash_get_lowest_cost): Do not set body_cost_vec.
20315 (vect_peeling_hash_choose_best_peeling): Remove body_cost_vec and
20316 npeel.
20317
20318 2017-07-18 Bin Cheng <bin.cheng@arm.com>
20319
20320 * config/arm/arm.c (emit_unlikely_jump): Remove unused var.
20321
20322 2017-07-18 Richard Biener <rguenther@suse.de>
20323
20324 PR tree-optimization/80620
20325 PR tree-optimization/81403
20326 * tree-ssa-pre.c (phi_translate_1): Clear range and points-to
20327 info when re-using a VN table entry.
20328
20329 2017-07-18 Richard Biener <rguenther@suse.de>
20330
20331 PR tree-optimization/81418
20332 * tree-vect-loop.c (vectorizable_reduction): Properly compute
20333 vectype_in. Verify that with lane-reducing reduction operations
20334 we have a single def-use cycle.
20335
20336 2017-07-17 Carl Love <cel@us.ibm.com>
20337
20338 Revert commit r249424 2017-06-20 Carl Love <cel@us.ibm.com>
20339
20340 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20341 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
20342 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
20343 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
20344 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
20345 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
20346 VMULOSW): New enum "unspec" values.
20347 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
20348 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
20349 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
20350 altivec_vmulosw): New patterns.
20351 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
20352 VMULOSW): Add definitions.
20353
20354 2017-07-17 Uros Bizjak <ubizjak@gmail.com>
20355
20356 * config/alpha/alpha.c: Include predict.h.
20357
20358 2017-07-17 Yury Gribov <tetra2005@gmail.com>
20359
20360 * tree-vrp.c (compare_assert_loc): Fix comparison function
20361 to return predictable results.
20362
20363 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
20364
20365 * config/arc/arc.md (adddi3): Remove support for mexpand-adddi
20366 option.
20367 (subdi3): Likewise.
20368 * config/arc/arc.opt (mexpand-adddi): Deprecate it.
20369 * doc/invoke.texi (mexpand-adddi): Update text.
20370
20371 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
20372
20373 * config/arc/arc.md (clzsi2): Expand to an arc_clzsi2 instruction
20374 that also clobbers the CC register. The old expand code is moved
20375 to ...
20376 (*arc_clzsi2): ... here.
20377 (ctzsi2): Expand to an arc_ctzsi2 instruction that also clobbers
20378 the CC register. The old expand code is moved to ...
20379 (arc_ctzsi2): ... here.
20380
20381 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
20382
20383 * config/arc/arc.opt (mindexed-loads): Use initial value
20384 TARGET_INDEXED_LOADS_DEFAULT.
20385 (mauto-modify-reg): Use initial value
20386 TARGET_AUTO_MODIFY_REG_DEFAULT.
20387 * config/arc/elf.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
20388 (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
20389 * config/arc/linux.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
20390 (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
20391
20392 2017-07-17 Martin Liska <mliska@suse.cz>
20393
20394 PR sanitizer/81302
20395 * opts.c (finish_options): Do not allow -fgnu-tm
20396 w/ -fsanitize={kernel-,}address. Say sorry.
20397
20398 2017-07-17 Bin Cheng <bin.cheng@arm.com>
20399
20400 PR target/81369
20401 * tree-loop-distribution.c (classify_partition): Only assert on
20402 numer of iterations.
20403 (merge_dep_scc_partitions): Delete prameter. Update function call.
20404 (distribute_loop): Remove code handling loop with unknown niters.
20405 (pass_loop_distribution::execute): Skip loop with unknown niters.
20406
20407 2017-07-17 Bin Cheng <bin.cheng@arm.com>
20408
20409 PR target/81369
20410 * tree-loop-distribution.c (merge_dep_scc_partitions): Sink call to
20411 function sort_partitions_by_post_order.
20412
20413 2017-07-17 Bin Cheng <bin.cheng@arm.com>
20414
20415 PR tree-optimization/81374
20416 * tree-loop-distribution.c (pass_loop_distribution::execute): Record
20417 the max index of basic blocks, rather than number of basic blocks.
20418
20419 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
20420
20421 * config/arc/arc-protos.h (arc_legitimate_pc_offset_p): Remove
20422 proto.
20423 (arc_legitimate_pic_operand_p): Likewise.
20424 * config/arc/arc.c (arc_legitimate_pic_operand_p): Remove
20425 function.
20426 (arc_needs_pcl_p): Likewise.
20427 (arc_legitimate_pc_offset_p): Likewise.
20428 (arc_legitimate_pic_addr_p): Remove LABEL_REF case, as this
20429 function is also used in constrains.md.
20430 (arc_legitimate_constant_p): Use arc_legitimate_pic_addr_p to
20431 validate pic constants. Handle CONST_INT, CONST_DOUBLE, MINUS and
20432 PLUS. Only return true/false in known cases, otherwise assert.
20433 (arc_legitimate_address_p): Remove arc_legitimate_pic_addr_p as it
20434 is already called in arc_legitimate_constant_p.
20435 * config/arc/arc.h (CONSTANT_ADDRESS_P): Consider also LABEL for
20436 pic addresses.
20437 (LEGITIMATE_PIC_OPERAND_P): Use
20438 arc_raw_symbolic_reference_mentioned_p function.
20439 * config/arc/constraints.md (Cpc): Use arc_legitimate_pic_addr_p
20440 function.
20441 (Cal): Likewise.
20442 (C32): Likewise.
20443
20444 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
20445 Andrew Burgess <andrew.burgess@embecosm.com>
20446
20447 * config/arc/arc-protos.h (arc_compute_function_type): Change prototype.
20448 (arc_return_address_register): New function.
20449 * config/arc/arc.c (arc_handle_fndecl_attribute): New function.
20450 (arc_handle_fndecl_attribute): Add naked attribute.
20451 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
20452 (TARGET_WARN_FUNC_RETURN): Likewise.
20453 (arc_allocate_stack_slots_for_args): New function.
20454 (arc_warn_func_return): Likewise.
20455 (machine_function): Change type fn_type.
20456 (arc_compute_function_type): Consider new naked function type,
20457 change function return type.
20458 (arc_must_save_register): Adapt to handle new
20459 arc_compute_function_type's return type.
20460 (arc_expand_prologue): Likewise.
20461 (arc_expand_epilogue): Likewise.
20462 (arc_return_address_regs): Delete.
20463 (arc_return_address_register): New function.
20464 (arc_epilogue_uses): Use above function.
20465 * config/arc/arc.h (arc_return_address_regs): Delete prototype.
20466 (arc_function_type): Change encoding, add naked type.
20467 (ARC_INTERRUPT_P): Change to handle the new encoding.
20468 (ARC_FAST_INTERRUPT_P): Likewise.
20469 (ARC_NORMAL_P): Define.
20470 (ARC_NAKED_P): Likewise.
20471 (arc_compute_function_type): Delete prototype.
20472 * config/arc/arc.md (in_ret_delay_slot): Use
20473 arc_return_address_register function.
20474 (simple_return): Likewise.
20475 (p_return_i): Likewise.
20476
20477 2017-07-17 Jakub Jelinek <jakub@redhat.com>
20478
20479 PR tree-optimization/81428
20480 * match.pd (X / X -> one): Don't optimize _Fract divisions, as 1
20481 can't be built for those types.
20482
20483 2017-07-17 Georg-Johann Lay <avr@gjlay.de>
20484
20485 Remove stuff dead since r239246.
20486
20487 * config/avr/avr-arch.h (avr_inform_devices): Remove dead proto.
20488 * config/avr/avr-devices.c (mcu_name, comparator, avr_mcus_str)
20489 (avr_inform_devices): Remove dead stuff.
20490
20491 2017-07-17 Tamar Christina <tamar.christina@arm.com>
20492
20493 * config/arm/arm_neon.h: Fix softp typo.
20494
20495 2017-07-17 Jakub Jelinek <jakub@redhat.com>
20496
20497 PR tree-optimization/81365
20498 * tree-ssa-phiprop.c (propagate_with_phi): When considering hoisting
20499 aggregate moves onto bb predecessor edges, make sure there are no
20500 loads that could alias the lhs in between the start of bb and the
20501 loads from *phi.
20502
20503 2017-07-17 Georg-Johann Lay <avr@gjlay.de>
20504
20505 PR 80929
20506 * config/avr/avr.c (avr_mul_highpart_cost): New static function.
20507 (avr_rtx_costs_1) [TRUNCATE]: Use it to compute mul_highpart cost.
20508 [LSHIFTRT, outer_code = TRUNCATE]: Same.
20509
20510 2017-07-17 Jakub Jelinek <jakub@redhat.com>
20511
20512 PR tree-optimization/81396
20513 * tree-ssa-math-opts.c (struct symbolic_number): Add n_ops field.
20514 (init_symbolic_number): Initialize it to 1.
20515 (perform_symbolic_merge): Add n_ops from both operands into the new
20516 n_ops.
20517 (find_bswap_or_nop): Don't consider n->n == cmpnop computations
20518 without base_addr as useless if they need more than one operation.
20519 (bswap_replace): Handle !bswap case for NULL base_addr.
20520
20521 2017-07-17 Tom de Vries <tom@codesourcery.com>
20522
20523 PR target/81069
20524 * config/nvptx/nvptx.c (nvptx_single): Insert diverging branch as late
20525 as possible.
20526
20527 2017-07-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
20528
20529 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
20530 conditional builtin define __FIX_LEON3FT_B2BST.
20531
20532 2017-07-17 Daniel Cederman <cederman@gaisler.com>
20533
20534 * config/sparc/t-rtems: Add mfix-gr712rc multilibs. Replace
20535 MULTILIB_EXCEPTIONS with MULTILIB_REQUIRED. Match -mfix-gr712rc
20536 with -mfix-ut700.
20537
20538 2017-07-16 Eric Botcazou <ebotcazou@adacore.com>
20539
20540 PR rtl-optimization/81424
20541 * optabs.c (prepare_cmp_insn): Use copy_to_reg instead of force_reg
20542 to remove potential trapping from operands if -fnon-call-exceptions.
20543
20544 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
20545
20546 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Use
20547 profile_proability for scalling.
20548 * scale_profile_for_vect_loop.c (scale_profile_for_vect_loop): Likewise.
20549
20550 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
20551
20552 * cgraph.c (cgraph_edge::redirect_call_stmt_to_caller): Cleanup.
20553
20554 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
20555
20556 * cfgloopmanip.c (scale_loop_profile): Avoid use of REG_BR_PROB_BASE
20557 fixpoint arithmetics.
20558
20559 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
20560
20561 * tree-ssa-loop-unswitch.c (hoist_guard): Avoid use of REG_BR_PROB_BASE
20562 fixpoint arithmetics.
20563
20564 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
20565
20566 * asan.c (create_cond_insert_point): Avoid use of REG_BR_PROB_BASE
20567 fixpoint arithmetics.
20568
20569 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
20570
20571 * profile-count.h (profile_probability::from_reg_br_prob_note,
20572 profile_probability::to_reg_br_prob_note): New functions.
20573 * doc/rtl.texi (REG_BR_PROB_NOTE): Update documentation.
20574 * reg-notes.h (REG_BR_PROB, REG_BR_PRED): Update docs.
20575 * predict.c (probability_reliable_p): Update.
20576 (edge_probability_reliable_p): Update.
20577 (br_prob_note_reliable_p): Update.
20578 (invert_br_probabilities): Update.
20579 (add_reg_br_prob_note): New function.
20580 (combine_predictions_for_insn): Update.
20581 * asan.c (asan_clear_shadow): Update.
20582 * cfgbuild.c (compute_outgoing_frequencies): Update.
20583 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
20584 (update_br_prob_note): Update.
20585 (rtl_verify_edges): Update.
20586 (purge_dead_edges): Update.
20587 (fixup_reorder_chain): Update.
20588 * emit-rtl.c (try_split): Update.
20589 * ifcvt.c (cond_exec_process_insns): Update.
20590 (cond_exec_process_if_block): Update.
20591 (dead_or_predicable): Update.
20592 * internal-fn.c (expand_addsub_overflow): Update.
20593 (expand_neg_overflow): Update.
20594 (expand_mul_overflow): Update.
20595 * loop-doloop.c (doloop_modify): Update.
20596 * loop-unroll.c (compare_and_jump_seq): Update.
20597 * optabs.c (emit_cmp_and_jump_insn_1): Update.
20598 * predict.h: Update.
20599 * reorg.c (mostly_true_jump): Update.
20600 * rtl.h: Update.
20601 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Update.
20602 * config/alpha/alpha.c (emit_unlikely_jump): Update.
20603 * config/arc/arc.c: (emit_unlikely_jump): Update.
20604 * config/arm/arm.c: (emit_unlikely_jump): Update.
20605 * config/bfin/bfin.c (cbranch_predicted_taken_p): Update.
20606 * config/frv/frv.c (frv_print_operand_jump_hint): Update.
20607 * config/i386/i386.c (ix86_expand_split_stack_prologue): Update.
20608 (ix86_print_operand): Update.
20609 (ix86_split_fp_branch): Update.
20610 (predict_jump): Update.
20611 * config/ia64/ia64.c (ia64_print_operand): Update.
20612 * config/mmix/mmix.c (mmix_print_operand): Update.
20613 * config/powerpcspe/powerpcspe.c (output_cbranch): Update.
20614 (rs6000_expand_split_stack_prologue): Update.
20615 * config/rs6000/rs6000.c: Update.
20616 * config/s390/s390.c (s390_expand_vec_strlen): Update.
20617 (s390_expand_vec_movstr): Update.
20618 (s390_expand_cs_tdsi): Update.
20619 (s390_expand_split_stack_prologue): Update.
20620 * config/sh/sh.c (sh_print_operand): Update.
20621 (expand_cbranchsi4): Update.
20622 (expand_cbranchdi4): Update.
20623 * config/sparc/sparc.c (output_v9branch): Update.
20624 * config/spu/spu.c (get_branch_target): Update.
20625 (ea_load_store_inline): Update.
20626 * config/tilegx/tilegx.c (cbranch_predicted_p): Update.
20627 * config/tilepro/tilepro.c: Update.
20628
20629 2017-07-16 Eric Botcazou <ebotcazou@adacore.com>
20630
20631 * gimplify.c (mostly_copy_tree_r): Revert latest change.
20632 (gimplify_save_expr): Likewise.
20633
20634 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
20635
20636 * ipa-visibility.c (function_and_variable_visibility): Fix pasto.
20637
20638 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
20639
20640 * ipa-fnsummary.c (pass_data_ipa_fn_summary): Use
20641 TV_IPA_FNSUMMARY.
20642 * timevar.def (TV_IPA_FNSUMMARY): Define.
20643
20644 2017-07-16 Daniel Cederman <cederman@gaisler.com>
20645
20646 * config/sparc/sparc.md (divdf3_fix): Add NOP to prevent back
20647 to back store errata sensitive sequence from being generated.
20648 (sqrtdf2_fix): Likewise.
20649
20650 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
20651
20652 * tree-ssa-threadupdate.c (compute_path_counts,
20653 update_joiner_offpath_counts): Use profile_probability.
20654
20655 2017-07-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
20656
20657 Revert:
20658 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
20659
20660 * config/arm/arm-c.c (arm_cpu_builtins): Define
20661 __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
20662
20663 2017-07-14 Kelvin Nilsen <kelvin@gcc.gnu.org>
20664
20665 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20666 array entries to represent __ieee128 versions of the
20667 scalar_test_data_class, scalar_test_neg, scalar_extract_exp,
20668 scalar_extract_sig, and scalar_insert_exp built-in functions.
20669 (altivec_resolve_overloaded_builtin): Add special case handling
20670 for the __builtin_scalar_insert_exp function, as represented by
20671 the P9V_BUILTIN_VEC_VSIEDP constant.
20672 * config/rs6000/rs6000-builtin.def (VSEEQP): Add scalar extract
20673 exponent support for __ieee128 argument.
20674 (VSESQP): Add scalar extract signature support for __ieee128
20675 argument.
20676 (VSTDCNQP): Add scalar test negative support for __ieee128
20677 argument.
20678 (VSIEQP): Add scalar insert exponent support for __int128 argument
20679 with __ieee128 result.
20680 (VSIEQPF): Add scalar insert exponent support for __ieee128
20681 argument with __ieee128 result.
20682 (VSTDCQP): Add scalar test data class support for __ieee128
20683 argument.
20684 (VSTDCNQP): Add overload support for scalar test negative with
20685 __ieee128 argument.
20686 (VSTDCQP): Add overload support for scalar test data class
20687 __ieee128 argument.
20688 * config/rs6000/vsx.md (UNSPEC_VSX_SXSIG) Replace
20689 UNSPEC_VSX_SXSIGDP.
20690 (UNSPEC_VSX_SIEXPQP): New constant.
20691 (xsxexpqp): New insn for VSX scalar extract exponent quad
20692 precision.
20693 (xsxsigqp): New insn for VSX scalar extract significand quad
20694 precision.
20695 (xsiexpqpf): New insn for VSX scalar insert exponent quad
20696 precision with floating point argument.
20697 (xststdcqp): New expand for VSX scalar test data class quad
20698 precision.
20699 (xststdcnegqp): New expand for VSX scalar test negative quad
20700 precision.
20701 (xststdcqp): New insn to match expansions for VSX scalar test data
20702 class quad precision and VSX scalar test negative quad precision.
20703 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
20704 special case operand checking to enforce that second operand of
20705 VSX scalar test data class with quad precision argument is a 7-bit
20706 unsigned literal.
20707 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
20708 prototypes and descriptions of __ieee128 versions of
20709 scalar_extract_exp, scalar_extract_sig, scalar_insert_exp,
20710 scalar_test_data_class, and scalar_test_neg built-in functions.
20711
20712 2016-07-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20713
20714 PR tree-optimization/81162
20715 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Don't
20716 replace a negate with an add.
20717
20718 2017-07-14 James Greenhalgh <james.greenhalgh@arm.com>
20719
20720 * doc/invoke.texi (arm/-mcpu): Document +crypto.
20721
20722 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
20723
20724 * config/arm/arm-c.c (arm_cpu_builtins): Define
20725 __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
20726
20727 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
20728
20729 * config/arm/arm-cpus.in (cortex-r52): Add new entry.
20730 (armv8-r): Set ARM Cortex-R52 as default CPU.
20731 * config/arm/arm-tables.opt: Regenerate.
20732 * config/arm/arm-tune.md: Regenerate.
20733 * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
20734 Cortex-R52.
20735 * doc/invoke.texi: Mention -mtune=cortex-r52 and availability of fp.dp
20736 extension for -mcpu=cortex-r52.
20737
20738 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
20739
20740 * config/arm/arm-isa.h (isa_bit_FP_ARMv8): Delete enumerator.
20741 (ISA_FP_ARMv8): Define as ISA_FPv5 and ISA_FP_D32.
20742 * config/arm/arm-cpus.in (armv8-r): Define fp.sp as enabling FPv5.
20743 (fp-armv8): Define it as FP_ARMv8 only.
20744 config/arm/arm.h (TARGET_FPU_ARMV8): Delete.
20745 (TARGET_VFP_FP16INST): Define using TARGET_VFP5 rather than
20746 TARGET_FPU_ARMV8.
20747 config/arm/arm.c (arm_rtx_costs_internal): Replace checks against
20748 TARGET_FPU_ARMV8 by checks against TARGET_VFP5.
20749 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Define
20750 first ARM_CHECK_BUILTIN_MODE definition using TARGET_VFP5 rather
20751 than TARGET_FPU_ARMV8.
20752 * config/arm/arm-c.c (arm_cpu_builtins): Likewise for
20753 __ARM_FEATURE_NUMERIC_MAXMIN macro definition.
20754 * config/arm/arm.md (cmov<mode>): Condition on TARGET_VFP5 rather than
20755 TARGET_FPU_ARMV8.
20756 * config/arm/neon.md (neon_vrint): Likewise.
20757 (neon_vcvt): Likewise.
20758 (neon_<fmaxmin_op><mode>): Likewise.
20759 (<fmaxmin><mode>3): Likewise.
20760 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Likewise.
20761 * config/arm/predicates.md (arm_cond_move_operator): Check against
20762 TARGET_VFP5 rather than TARGET_FPU_ARMV8 and fix spacing.
20763
20764 2017-07-14 Jackson Woodruff <jackson.woodruff@arm.com>
20765
20766 * config/aarch64/aarch64.c (aarch64_print_operand): Move comments
20767 to top of function.
20768
20769 2017-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20770
20771 * gimple-ssa-store-merging.c (clear_bit_region): Replace reference to
20772 loop in comment with memset.
20773
20774 2017-07-14 Martin Liska <mliska@suse.cz>
20775
20776 * cfgexpand.c (expand_gimple_basic_block): Remove dead comment.
20777 * dwarf2out.c (is_java): Remove the function.
20778 (output_pubname): Remove usage of the function.
20779 (lower_bound_default): Remove usage of DW_LANG_Java.
20780 (gen_compile_unit_die): Likewise.
20781 * gcc.c: Remove compiler defaults for .java and .zip files.
20782 * gimple-expr.c (remove_suffix): Change as there's no longer
20783 extension than 4-letter one.
20784 * gimplify.c (mostly_copy_tree_r): Remove Java-special part.
20785 (gimplify_save_expr): Likewise.
20786 * ipa-utils.h (polymorphic_type_binfo_p): Remove the comment
20787 as it's possible even for other languages than Java.
20788 * langhooks.h (struct lang_hooks): Remove Java from a comment.
20789 * lto-opts.c (lto_write_options): Remove reference to Java.
20790 * opts.c (strip_off_ending): Update file extension handling.
20791 * tree-cfg.c (verify_gimple_call): Remove comment with Java.
20792 * tree-eh.c (lower_resx): Likewise.
20793 * tree.c (free_lang_data_in_type): Remove dead code.
20794 (find_decls_types_r): Likewise.
20795 (build_common_builtin_nodes): Remove Java from a comment.
20796 (verify_type): Remove dead code.
20797 * varasm.c (assemble_external): Remove Java from a comment.
20798
20799 2017-07-14 Martin Liska <mliska@suse.cz>
20800
20801 * opts.c (finish_options): Add quotes.
20802 (common_handle_option): Likewise.
20803
20804 2017-07-14 Martin Liska <mliska@suse.cz>
20805
20806 * dbxout.c (get_lang_number): Do not handle GNU Pascal.
20807 * dbxout.h (extern void dbxout_stab_value_internal_label_diff):
20808 Remove N_SO_PASCAL.
20809 * dwarf2out.c (lower_bound_default): Do not handle
20810 DW_LANG_Pascal83.
20811 (gen_compile_unit_die): Likewise.
20812 * gcc.c: Remove default extension binding for GNU Pascal.
20813 * stmt.c: Remove Pascal language from a comment.
20814 * xcoffout.c: Likewise.
20815
20816 2017-07-13 David Malcolm <dmalcolm@redhat.com>
20817
20818 PR c/81405
20819 * diagnostic-show-locus.c (fixit_cmp): New function.
20820 (layout::layout): Sort m_fixit_hints.
20821 (column_range::column_range): Assert that the values are valid.
20822 (struct char_span): New struct.
20823 (correction::overwrite): New method.
20824 (struct source_line): New struct.
20825 (line_corrections::add_hint): Add assertions. Reimplement memcpy
20826 calls in terms of classes source_line and char_span, and
20827 correction::overwrite.
20828 (selftest::test_overlapped_fixit_printing_2): New function.
20829 (selftest::diagnostic_show_locus_c_tests): Call it.
20830
20831 2017-07-13 Will Schmidt <will_schmidt@vnet.ibm.com>
20832
20833 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Return
20834 early if there is no lhs.
20835
20836 2017-07-13 Martin Liska <mliska@suse.cz>
20837
20838 * dwarf2out.c (gen_pointer_type_die): Remove dead code.
20839 (gen_reference_type_die): Likewise.
20840 * stor-layout.c: Remove Pascal-related comment.
20841
20842 2017-07-13 Martin Liska <mliska@suse.cz>
20843
20844 * opts.c (finish_options): Add quotes to error messages.
20845 (parse_sanitizer_options): Likewise.
20846
20847 2017-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
20848
20849 * doc/invoke.texi (armv8-r): Document +fp.sp ARMv8-R extension.
20850
20851 2017-07-13 Richard Earnshaw <rearnsha@arm.com>
20852
20853 * config/arm/vxworks.h (TARGET_ENDIAN_DEFAULT): Define.
20854
20855 2017-07-13 Maxim Ostapenko <m.ostapenko@samsung.com>
20856
20857 * asan.c (asan_emit_allocas_unpoison): Use ptr_mode for arguments
20858 during expansion.
20859 * builtins.c (expand_asan_emit_allocas_unpoison): Likewise.
20860
20861 2017-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
20862
20863 PR target/81193
20864 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC
20865 provides the hardware capability bits, define the macro
20866 __BUILTIN_CPU_SUPPORTS__.
20867 * config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning
20868 if GLIBC does not provide the hardware capability bits. Add a
20869 gcc_unreachable call if the built-in cpu function is neither
20870 __builtin_cpu_is nor __builtin_cpu_supports.
20871 (rs6000_get_function_versions_dispatcher): Change the warning
20872 that an old GLIBC is used which does not export the capability
20873 bits to be an error.
20874 * doc/extend.texi (target_clones attribute): Document the
20875 restriction that GLIBC 2.23 or newer is needed on the PowerPC.
20876 (PowerPC built-in functions): Document that GLIBC 2.23 or newer is
20877 needed by __builtin_cpu_is and __builtin_cpu_supports. Document
20878 the macros defined by GCC if the newer GLIBC is available.
20879
20880 2017-07-12 Jeff Law <law@redhat.com>
20881
20882 * config/riscv/riscv.c: Remove unnecessary includes. Reorder
20883 remaining includes slightly.
20884 * config/riscv/riscv-builtins.c: Include profile-count.h.
20885
20886 2017-07-12 Georg-Johann Lay <avr@gjlay.de>
20887
20888 PR target/79883
20889 * config/avr/avr.c (avr_set_current_function): In diagnostic
20890 messages: Quote keywords and (parts of) identifiers.
20891 [WITH_AVRLIBC]: Warn for functions named "ISR", "SIGNAL" or
20892 "INTERUPT".
20893
20894 2017-07-12 Carl Love <cel@us.ibm.com>
20895
20896 * config/rs6000/rs6000-c.c: Add support for built-in functions
20897 vector bool char vec_revb (vector bool char);
20898 vector bool short vec_revb (vector short char);
20899 vector bool int vec_revb (vector bool int);
20900 vector bool long long vec_revb (vector bool long long);
20901 * doc/extend.texi: Update the built-in documentation file for the
20902 new built-in functions.
20903
20904 2017-07-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20905
20906 * config/s390/s390.md: Remove movcc splitter.
20907
20908 2017-07-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20909
20910 * config/s390/s390.c (s390_rtx_costs): Return proper costs for
20911 load/store on condition.
20912
20913 2017-07-12 Georg-Johann Lay <avr@gjlay.de>
20914
20915 PR target/81407
20916 * config/avr/avr.c (avr_encode_section_info)
20917 [progmem && !TREE_READONLY]: Error if progmem object needs
20918 constructing.
20919
20920 2017-07-11 Michael Collison <michael.collison@arm.com>
20921
20922 * config/aarch64/aarch64-simd.md (aarch64_sub<mode>_compare0):
20923 New pattern.
20924
20925 2017-07-11 Carl Love <cel@us.ibm.com>
20926
20927 * config/rs6000/rs6000-c.c: Add support for builtins
20928 vector unsigned int vec_parity_lsbb (vector signed int);
20929 vector unsigned int vec_parity_lsbb (vector unsigned int);
20930 vector unsigned __int128 vec_parity_lsbb (vector signed __int128);
20931 vector unsigned __int128 vec_parity_lsbb (vector unsigned __int128);
20932 vector unsigned long long vec_parity_lsbb (vector signed long long);
20933 vector unsigned long long vec_parity_lsbb (vector unsigned long long);
20934 * config/rs6000/rs6000-builtin.def (VPARITY_LSBB): Add BU_P9V_OVERLOAD1.
20935 * config/rs6000/altivec.h (vec_parity_lsbb): Add define.
20936 * doc/extend.texi: Update the built-in documentation file for the
20937 new built-in functions.
20938
20939 2017-07-11 David Malcolm <dmalcolm@redhat.com>
20940
20941 * diagnostic-show-locus.c: Include "gcc-rich-location.h".
20942 (layout::m_primary_loc): New field.
20943 (layout::layout): Initialize new field. Move location filtering
20944 logic from here to...
20945 (layout::maybe_add_location_range): ...this new method. Add
20946 support for filtering to just the lines already specified by other
20947 locations.
20948 (layout::will_show_line_p): New method.
20949 (gcc_rich_location::add_location_if_nearby): New method.
20950 (selftest::test_add_location_if_nearby): New test function.
20951 (selftest::diagnostic_show_locus_c_tests): Call it.
20952 * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
20953 New method.
20954
20955 2017-07-11 Tom de Vries <tom@codesourcery.com>
20956
20957 * config/nvptx/nvptx.c (WORKAROUND_PTXJIT_BUG): New macro.
20958 (bb_first_real_insn): New function.
20959 (nvptx_single): Add extra initialization of broadcasted condition
20960 variables.
20961
20962 2017-07-11 Nathan Sidwell <nathan@acm.org>
20963
20964 * dwarf2out.c (gen_member_die): Remove useless check for anon ctors.
20965
20966 2017-07-11 Georg-Johann Lay <avr@gjlay.de>
20967
20968 * doc/extend.texi (AVR Function Attributes): Remove weblink to
20969 Binutils doc as TEXI will mess them up.
20970 * doc/invoke.texi (AVR Options): Same here.
20971
20972 2017-07-11 Daniel Cederman <cederman@gaisler.com>
20973
20974 * config/sparc/sparc.opt (mfix-ut700): New option.
20975 (mfix-gr712rc): Likewise.
20976 (sparc_fix_b2bst): New variable.
20977 * doc/invoke.texi (SPARC options): Document them.
20978 (ARM options): Fix warnings.
20979 * config/sparc/sparc.c (sparc_do_work_around_errata): Insert NOP
20980 instructions to prevent sequences that can trigger the store-store
20981 errata for certain LEON3FT processors.
20982 (pass_work_around_errata::gate): Also test sparc_fix_b2bst.
20983 (sparc_option_override): Set sparc_fix_b2bst appropriately.
20984 * config/sparc/sparc.md (fix_b2bst): New attribute.
20985 (in_branch_delay): Prevent stores in delay slot if fix_b2bst.
20986
20987 2017-07-10 Uros Bizjak <ubizjak@gmail.com>
20988
20989 PR target/81375
20990 * config/i386/i386.md (divsf3): Add TARGET_SSE to TARGET_SSE_MATH.
20991 (rcpps): Ditto.
20992 (*rsqrtsf2_sse): Ditto.
20993 (rsqrtsf2): Ditto.
20994 (div<mode>3): Macroize insn from divdf3 and divsf3
20995 using MODEF mode iterator.
20996
20997 2017-07-10 Martin Sebor <msebor@redhat.com>
20998
20999 PR tree-optimization/80397
21000 * gimple-ssa-sprintf.c (format_integer): Use INTEGRAL_TYPE_P()
21001 instead of testing for equality to INTEGER_TYPE.
21002
21003 2017-07-10 Vineet Gupta <vgupta@synopsys.com>
21004
21005 * config.gcc: Remove uclibc from arc target spec.
21006
21007 2017-07-10 Claudiu Zissulescu <claziss@synopsys.com>
21008
21009 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Define.
21010
21011 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
21012
21013 PR lto/80838
21014 * lto-wrapper.c (remove_option): New function.
21015 (merge_and_complain): Merge PIC/PIE options more realistically.
21016
21017 2017-07-10 Georg-Johann Lay <avr@gjlay.de>
21018
21019 Better ISR prologues by supporting GASes __gcc_isr pseudo insn.
21020
21021 PR target/20296
21022 PR target/81268
21023 * configure.ac [target=avr]: Add GAS check for -mgcc-isr.
21024 (HAVE_AS_AVR_MGCCISR_OPTION): If so, AC_DEFINE it.
21025 * config.in: Regenerate.
21026 * configure: Regenerate.
21027 * doc/extend.texi (AVR Function Attributes) <no_gccisr>: Document it.
21028 * doc/invoke.texi (AVR Options) <-mgas-isr-prologues>: Document it.
21029 * config/avr/avr.opt (-mgas-isr-prologues): New option and...
21030 (TARGET_GASISR_PROLOGUES): ...target mask.
21031 * common/config/avr/avr-common.c
21032 (avr_option_optimization_table) [OPT_LEVELS_1_PLUS_NOT_DEBUG]:
21033 Set -mgas-isr-prologues.
21034 * config/avr/avr-passes.def (avr_pass_pre_proep): Add
21035 INSERT_PASS_BEFORE for it.
21036 * config/avr/avr-protos.h (make_avr_pass_pre_proep): New proto.
21037 * config/avr/avr.c (avr_option_override)
21038 [!HAVE_AS_AVR_MGCCISR_OPTION]: Unset TARGET_GASISR_PROLOGUES.
21039 (avr_no_gccisr_function_p, avr_hregs_split_reg): New static functions.
21040 (avr_attribute_table) <no_gccisr>: Add new function attribute.
21041 (avr_set_current_function) <is_no_gccisr>: Init machine field.
21042 (avr_pass_data_pre_proep, avr_pass_pre_proep): New pass data
21043 and rtl_opt_pass.
21044 (make_avr_pass_pre_proep): New function.
21045 (emit_push_sfr) <treg>: Add argument to function and use it
21046 instead of TMP_REG.
21047 (avr_expand_prologue) [machine->gasisr.maybe]: Emit gasisr insn
21048 and set machine->gasisr.yes.
21049 (avr_expand_epilogue) [machine->gasisr.yes]: Similar.
21050 (avr_asm_function_end_prologue) [machine->gasisr.yes]: Add
21051 __gcc_isr.n_pushed to .L__stack_usage.
21052 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define to...
21053 (avr_asm_final_postscan_insn): ...this new static function.
21054 * config/avr/avr.h (machine_function)
21055 <is_no_gccisr, use_L__stack_usage>: New fields.
21056 <gasisr, gasisr.yes, gasisr.maybe, gasisr.regno>: New fields.
21057 * config/avr/avr.md (UNSPECV_GASISR): Add unspecv enum.
21058 (GASISR_Prologue, GASISR_Epilogue, GASISR_Done): New define_constants.
21059 (gasisr, *gasisr): New expander and insn.
21060 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
21061 [HAVE_AS_AVR_MGCCISR_OPTION]: Print asm_gccisr spec.
21062 * config/avr/specs.h (ASM_SPEC) <asm_gccisr>: Add sub spec.
21063
21064 2017-07-10 Richard Earnshaw <rearnsha@arm.com>
21065
21066 * config/arm/parsecpu.awk (gen_comm_data): Do not escape single quotes
21067 in quoted strings.
21068
21069 2017-07-10 Georg-Johann Lay <avr@gjlay.de>
21070
21071 Move jump-tables out of .text again.
21072
21073 PR target/81075
21074 * config/avr/avr.c (ASM_OUTPUT_ADDR_VEC_ELT): Remove function.
21075 (ASM_OUTPUT_ADDR_VEC): New function.
21076 (avr_adjust_insn_length) [JUMP_TABLE_DATA_P]: Return 0.
21077 (avr_final_prescan_insn) [avr_log.insn_addresses]: Dump
21078 INSN_ADDRESSes as asm comment.
21079 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Adjust comment.
21080 (ASM_OUTPUT_ADDR_VEC_ELT): Remove define.
21081 (ASM_OUTPUT_ADDR_VEC): Define to avr_output_addr_vec.
21082 * config/avr/avr.md (*tablejump): Adjust comment.
21083 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
21084 * config/avr/avr-log.c (avr_log_set_avr_log) <insn_addresses>:
21085 New detail.
21086 * config/avr/avr-protos.h (avr_output_addr_vec_elt): Remove proto.
21087 (avr_output_addr_vec): New proto.
21088 (avr_log_t) <insn_addresses>: New field.
21089
21090 2017-07-09 H.J. Lu <hongjiu.lu@intel.com>
21091
21092 PR target/81313
21093 * config/i386/i386.c (ix86_function_arg_advance): Set
21094 outgoing_args_on_stack to true if there are outgoing arguments
21095 on stack.
21096 (ix86_function_arg): Likewise.
21097 (ix86_get_drap_rtx): Use DRAP only if there are outgoing
21098 arguments on stack and ACCUMULATE_OUTGOING_ARGS is false.
21099 * config/i386/i386.h (machine_function): Add
21100 outgoing_args_on_stack.
21101
21102 2017-07-09 Krister Walfridsson <krister.walfridsson@gmail.com>
21103
21104 * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
21105 supporting pthreds.
21106 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always enable pthreads.
21107
21108 2017-07-08 Richard Sandiford <richard.sandiford@linaro.org>
21109
21110 * Makefile.in (HOOKS_H, RTL_BASE_H, FUNCTION_H, EXPR_H, REGS_H)
21111 (REAL_H): Remove $(MACHMODE_H).
21112 (FIXED_VALUE_H, TREE_CORE_H, CFGLOOP_H): Remove $(MACHMODE_H) and
21113 double-int.h.
21114 (CORETYPES_H): Add signop.h, wide-int.h, wide-int-print.h,
21115 $(MACHMODE_H) and double-int.h.
21116 (build/min-insn-modes.o): Depend on $(CORETYPES_H) rather than
21117 $(MACHMODE_H).
21118 (gengtype-state.o, gengtype.o, build/gengtype.o): Don't depend on
21119 double-int.h.
21120
21121 2017-07-07 Andrew Pinski <apinski@cavium.com>
21122
21123 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Check
21124 prev_set and curr_set for AARCH64_FUSE_ALU_BRANCH.
21125
21126 2017-07-07 Michael Meissner <meissner@linux.vnet.ibm.com>
21127
21128 * config/rs6000/rs6000.c (rs6000_get_function_versions_dispatcher):
21129 Add warning if GCC was not configured to link against a GLIBC that
21130 exports the hardware capability bits.
21131 (make_resolver_func): Make resolver function private and not a
21132 COMDAT function. Create the name with clone_function_name instead
21133 of make_unique_name.
21134
21135 PR target/81348
21136 * config/rs6000/rs6000.md (HI sign_extend splitter): Use the
21137 correct operand in doing the split.
21138
21139 2017-07-07 Carl Love <cel@us.ibm.com>
21140
21141 * config/rs6000/rs6000-c: Add support for built-in function
21142 vector unsigned short vec_pack_to_short_fp32 (vector float,
21143 vector float).
21144 * config/rs6000/rs6000-builtin.def (CONVERT_4F32_8I16): Add
21145 BU_P9V_AV_2 and BU_P9V_OVERLOAD_2 definitions.
21146 * config/rs6000/altivec.h (vec_pack_to_short_fp32): Add define.
21147 * config/rs6000/altivec.md(UNSPEC_CONVERT_4F32_8I16): Add UNSPEC.
21148 (convert_4f32_8i16): Add define_expand.
21149 * doc/extend.texi: Update the built-in documentation file for the
21150 new built-in function.
21151
21152 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
21153
21154 * config/sparc/m8.md: New file.
21155 * config/sparc/sparc.md: Include m8.md.
21156
21157 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
21158
21159 * config/sparc/sparc.opt: New option -mvis4b.
21160 * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_VIS4B.
21161 (sparc_option_override): Handle VIS4B.
21162 (enum sparc_builtins): Define
21163 SPARC_BUILTIN_DICTUNPACK{8,16,32},
21164 SPARC_BUILTIN_FPCMP{LE,GT,EQ,NE}{8,16,32}SHL,
21165 SPARC_BUILTIN_FPCMPU{LE,GT}{8,16,32}SHL,
21166 SPARC_BUILTIN_FPCMPDE{8,16,32}SHL and
21167 SPARC_BUILTIN_FPCMPUR{8,16,32}SHL.
21168 (check_constant_argument): New function.
21169 (sparc_vis_init_builtins): Define builtins
21170 __builtin_vis_dictunpack{8,16,32},
21171 __builtin_vis_fpcmp{le,gt,eq,ne}{8,16,32}shl,
21172 __builtin_vis_fpcmpu{le,gt}{8,16,32}shl,
21173 __builtin_vis_fpcmpde{8,16,32}shl and
21174 __builtin_vis_fpcmpur{8,16,32}shl.
21175 (sparc_expand_builtin): Check that the constant operands to
21176 __builtin_vis_fpcmp*shl and _builtin_vis_dictunpack* are indeed
21177 constant and in range.
21178 * config/sparc/sparc-c.c (sparc_target_macros): Handle
21179 TARGET_VIS4B.
21180 * config/sparc/sparc.h (SPARC_IMM2_P): Define.
21181 (SPARC_IMM5_P): Likewise.
21182 * config/sparc/sparc.md (cpu_feature): Add new feagure "vis4b".
21183 (enabled): Handle vis4b.
21184 (UNSPEC_DICTUNPACK): New unspec.
21185 (UNSPEC_FPCMPSHL): Likewise.
21186 (UNSPEC_FPUCMPSHL): Likewise.
21187 (UNSPEC_FPCMPDESHL): Likewise.
21188 (UNSPEC_FPCMPURSHL): Likewise.
21189 (cpu_feature): New CPU feature `vis4b'.
21190 (dictunpack{8,16,32}): New insns.
21191 (FPCSMODE): New mode iterator.
21192 (fpcscond): New code iterator.
21193 (fpcsucond): Likewise.
21194 (fpcmp{le,gt,eq,ne}{8,16,32}{si,di}shl): New insns.
21195 (fpcmpu{le,gt}{8,16,32}{si,di}shl): Likewise.
21196 (fpcmpde{8,16,32}{si,di}shl): Likewise.
21197 (fpcmpur{8,16,32}{si,di}shl): Likewise.
21198 * config/sparc/constraints.md: Define constraints `q' for unsigned
21199 2-bit integer constants and `t' for unsigned 5-bit integer
21200 constants.
21201 * config/sparc/predicates.md (imm5_operand_dictunpack8): New
21202 predicate.
21203 (imm5_operand_dictunpack16): Likewise.
21204 (imm5_operand_dictunpack32): Likewise.
21205 (imm2_operand): Likewise.
21206 * doc/invoke.texi (SPARC Options): Document -mvis4b.
21207 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
21208 ditunpack* and fpcmp*shl builtins.
21209
21210 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
21211
21212 * config.gcc: Handle m8 in --with-{cpu,tune} options.
21213 * config.in: Add HAVE_AS_SPARC6 define.
21214 * config/sparc/driver-sparc.c (cpu_names): Add entry for the SPARC
21215 M8.
21216 * config/sparc/sol2.h (CPP_CPU64_DEFAULT_SPEC): Define for
21217 TARGET_CPU_m8.
21218 (ASM_CPU32_DEFAUILT_SPEC): Likewise.
21219 (CPP_CPU_SPEC): Handle m8.
21220 (ASM_CPU_SPEC): Likewise.
21221 * config/sparc/sparc-opts.h (enum processor_type): Add
21222 PROCESSOR_M8.
21223 * config/sparc/sparc.c (m8_costs): New struct.
21224 (sparc_option_override): Handle TARGET_CPU_m8.
21225 (sparc32_initialize_trampoline): Likewise.
21226 (sparc64_initialize_trampoline): Likewise.
21227 (sparc_issue_rate): Likewise.
21228 (sparc_register_move_cost): Likewise.
21229 * config/sparc/sparc.h (TARGET_CPU_m8): Define.
21230 (CPP_CPU64_DEFAULT_SPEC): Define for M8.
21231 (ASM_CPU64_DEFAULT_SPEC): Likewise.
21232 (CPP_CPU_SPEC): Handle M8.
21233 (ASM_CPU_SPEC): Likewise.
21234 (AS_M8_FLAG): Define.
21235 * config/sparc/sparc.md: Add m8 to the cpu attribute.
21236 * config/sparc/sparc.opt: New option -mcpu=m8 for sparc targets.
21237 * configure.ac (HAVE_AS_SPARC6): Check for assembler support for
21238 M8 instructions.
21239 * configure: Regenerate.
21240 * doc/invoke.texi (SPARC Options): Document -mcpu=m8 and
21241 -mtune=m8.
21242
21243 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
21244
21245 * config/sparc/niagara7.md: Rework the DFA scheduler to use insn
21246 subtypes.
21247 * config/sparc/sparc.md: Remove the `v3pipe' insn attribute.
21248 ("*movdi_insn_sp32"): Do not set v3pipe.
21249 ("*movsi_insn"): Likewise.
21250 ("*movdi_insn_sp64"): Likewise.
21251 ("*movsf_insn"): Likewise.
21252 ("*movdf_insn_sp32"): Likewise.
21253 ("*movdf_insn_sp64"): Likewise.
21254 ("*zero_extendsidi2_insn_sp64"): Likewise.
21255 ("*sign_extendsidi2_insn"): Likewise.
21256 ("*mov<VM32:mode>_insn"): Likewise.
21257 ("*mov<VM64:mode>_insn_sp64"): Likewise.
21258 ("*mov<VM64:mode>_insn_sp32"): Likewise.
21259 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
21260 ("<vlop:code><VL:mode>3"): Likewise.
21261 ("*not_<vlop:code><VL:mode>3"): Likewise.
21262 ("*nand<VL:mode>_vis"): Likewise.
21263 ("*<vlnotop:code>_not1<VL:mode>_vis"): Likewise.
21264 ("*<vlnotop:code>_not2<VL:mode>_vis"): Likewise.
21265 ("one_cmpl<VL:mode>2"): Likewise.
21266 ("faligndata<VM64:mode>_vis"): Likewise.
21267 ("alignaddrsi_vis"): Likewise.
21268 ("alignaddrdi_vis"): Likweise.
21269 ("alignaddrlsi_vis"): Likewise.
21270 ("alignaddrldi_vis"): Likewise.
21271 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
21272 ("bmaskdi_vis"): Likewise.
21273 ("bmasksi_vis"): Likewise.
21274 ("bshuffle<VM64:mode>_vis"): Likewise.
21275 ("cmask8<P:mode>_vis"): Likewise.
21276 ("cmask16<P:mode>_vis"): Likewise.
21277 ("cmask32<P:mode>_vis"): Likewise.
21278 ("pdistn<P:mode>_vis"): Likewise.
21279 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
21280
21281 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
21282
21283 * config/sparc/sparc.md ("subtype"): New insn attribute.
21284 ("*wrgsr_sp64"): Set insn subtype.
21285 ("*rdgsr_sp64"): Likewise.
21286 ("alignaddrsi_vis"): Likewise.
21287 ("alignaddrdi_vis"): Likewise.
21288 ("alignaddrlsi_vis"): Likewise.
21289 ("alignaddrldi_vis"): Likewise.
21290 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
21291 ("fexpand_vis"): Likewise.
21292 ("fpmerge_vis"): Likewise.
21293 ("faligndata<VM64:mode>_vis"): Likewise.
21294 ("bshuffle<VM64:mode>_vis"): Likewise.
21295 ("cmask8<P:mode>_vis"): Likewise.
21296 ("cmask16<P:mode>_vis"): Likewise.
21297 ("cmask32<P:mode>_vis"): Likewise.
21298 ("fchksm16_vis"): Likewise.
21299 ("v<vis3_shift_patname><GCM:mode>3"): Likewise.
21300 ("fmean16_vis"): Likewise.
21301 ("fp<plusminus_insn>64_vis"): Likewise.
21302 ("<plusminus_insn>v8qi3"): Likewise.
21303 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
21304 ("<vis4_minmax_patname><VMMAX:mode>3"): Likewise.
21305 ("<vis4_uminmax_patname><VMMAX:mode>3"): Likewise.
21306 ("<vis3_addsub_ss_patname>v8qi3"): Likewise.
21307 ("<vis4_addsub_us_patname><VAUS:mode>3"): Likewise.
21308 ("*movqi_insn"): Likewise.
21309 ("*movhi_insn"): Likewise.
21310 ("*movsi_insn"): Likewise.
21311 ("movsi_pic_gotdata_op"): Likewise.
21312 ("*movdi_insn_sp32"): Likewise.
21313 ("*movdi_insn_sp64"): Likewise.
21314 ("movdi_pic_gotdata_op"): Likewise.
21315 ("*movsf_insn"): Likewise.
21316 ("*movdf_insn_sp32"): Likewise.
21317 ("*movdf_insn_sp64"): Likewise.
21318 ("*zero_extendhisi2_insn"): Likewise.
21319 ("*zero_extendqihi2_insn"): Likewise.
21320 ("*zero_extendqisi2_insn"): Likewise.
21321 ("*zero_extendqidi2_insn"): Likewise.
21322 ("*zero_extendhidi2_insn"): Likewise.
21323 ("*zero_extendsidi2_insn_sp64"): Likewise.
21324 ("ldfsr"): Likewise.
21325 ("prefetch_64"): Likewise.
21326 ("prefetch_32"): Likewise.
21327 ("tie_ld32"): Likewise.
21328 ("tie_ld64"): Likewise.
21329 ("*tldo_ldub_sp32"): Likewise.
21330 ("*tldo_ldub1_sp32"): Likewise.
21331 ("*tldo_ldub2_sp32"): Likewise.
21332 ("*tldo_ldub_sp64"): Likewise.
21333 ("*tldo_ldub1_sp64"): Likewise.
21334 ("*tldo_ldub2_sp64"): Likewise.
21335 ("*tldo_ldub3_sp64"): Likewise.
21336 ("*tldo_lduh_sp32"): Likewise.
21337 ("*tldo_lduh1_sp32"): Likewise.
21338 ("*tldo_lduh_sp64"): Likewise.
21339 ("*tldo_lduh1_sp64"): Likewise.
21340 ("*tldo_lduh2_sp64"): Likewise.
21341 ("*tldo_lduw_sp32"): Likewise.
21342 ("*tldo_lduw_sp64"): Likewise.
21343 ("*tldo_lduw1_sp64"): Likewise.
21344 ("*tldo_ldx_sp64"): Likewise.
21345 ("*mov<VM32:mode>_insn"): Likewise.
21346 ("*mov<VM64:mode>_insn_sp64"): Likewise.
21347 ("*mov<VM64:mode>_insn_sp32"): Likewise.
21348
21349 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
21350
21351 * config/sparc/sparc.md ("type"): New insn type viscmp.
21352 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Set insn type to
21353 viscmp.
21354 ("fpcmp<gcond:code>8<P:mode>_vis"): Likewise.
21355 ("fucmp<gcond:code>8<P:mode>_vis"): Likewise.
21356 ("fpcmpu<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
21357 * config/sparc/niagara7.md ("n7_vis_logical_v3pipe"): Handle
21358 viscmp.
21359 ("n7_vis_logical_11cycle"): Likewise.
21360 * config/sparc/niagara4.md ("n4_vis_logical"): Likewise.
21361 * config/sparc/niagara2.md ("niag3_vis": Likewise.
21362 * config/sparc/niagara.md ("niag_vis"): Likewise.
21363 * config/sparc/ultra3.md ("us3_fga"): Likewise.
21364 * config/sparc/ultra1_2.md ("us1_fga_double"): Likewise.
21365
21366 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
21367
21368 * config/sparc/sparc.md: New instruction type `bmask'.
21369 (bmaskdi_vis): Use the `bmask' type.
21370 (bmasksi_vis): Likewise.
21371 * config/sparc/ultra3.md (us3_array): Likewise.
21372 * config/sparc/niagara7.md (n7_array): Likewise.
21373 * config/sparc/niagara4.md (n4_array): Likewise.
21374 * config/sparc/niagara2.md (niag2_vis): Likewise.
21375 (niag3_vis): Likewise.
21376 * config/sparc/niagara.md (niag_vis): Likewise.
21377
21378 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
21379
21380 * ipa-comdats.c: Remove optimize check from gate.
21381 * ipa-fnsummary.c (ipa_fn_summary_generate): do not generate summary
21382 for functions not optimized.
21383 (ipa_fn_summary_read): Skip optimize check.
21384 (ipa_fn_summary_write): Likewise.
21385 * ipa-inline-analysis.c (do_estimate_growth_1): Check that caller
21386 is optimized.
21387 * ipa-inline.c (can_inline_edge_p): Not optimized functions are
21388 uninlinable.
21389 (can_inline_edge_p): Check flag_pcc_struct_return for match.
21390 (check_callers): Give up on caller which is not optimized.
21391 (inline_small_functions): Likewise.
21392 (ipa_inline): Do not give up when not optimizing.
21393 * ipa-visbility.c (function_and_variable_visibility): Do not optimize
21394 away unoptimizes cdtors.
21395 (whole_program_function_and_variable_visibility): Do
21396 ipa_discover_readonly_nonaddressable_vars in LTO mode.
21397 * ipa.c (process_references): Do not check optimize.
21398 (symbol_table::remove_unreachable_nodes): Update optimize check.
21399 (set_writeonly_bit): Update optimize check.
21400 (pass_ipa_cdtor_merge::gate): Do not check optimize.
21401 (pass_ipa_single_use::gate): Remove.
21402
21403 2017-07-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
21404
21405 * config/rs6000/rs6000.c (union_defs, union_uses, insn_is_load_p,
21406 insn_is_store_p, insn_is_swap_p, const_load_sequence_p, v2df_reduction_p,
21407 rtx_is_swappable_p, insn_is_swappable_p, chain_contains_only_swaps,
21408 mark_swaps_for_removal, swap_const_vector_halves, adjust_subreg_index,
21409 permute_load, permute_store, adjust_extract, adjust_splat,
21410 adjust_xxpermdi, adjust_concat, adjust_vperm, handle_special_swappables,
21411 replace_swap_with_copy, dump_swap_insn_table,
21412 alignment_with_canonical_addr, alignment_mask, find_alignment_op,
21413 recombine_lvx_pattern, recombine_stvx_pattern,
21414 recombine_lvx_stvx_patterns, rs6000_analyze_swaps,
21415 make_pass_analyze_swaps): Move all code related to p8 swap optimizations
21416 to file rs6000-p8swap.c.
21417 * config/rs6000/rs6000-p8swap.c: New file.
21418 * config/rs6000/t-rs6000: Add rule to build rs6000-p8swap.o.
21419 * config.gcc: Add rs6000-p8swap.o to extra_objs for powerpc*-*-*
21420 and rs6000*-*-* targets.
21421
21422 2017-07-06 David Malcolm <dmalcolm@redhat.com>
21423
21424 * Makefile.in (selftest): Remove dependency on s-selftest-c++.
21425
21426 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
21427
21428 * lto-wrapper.c (merge_and_complain): Do not merge
21429 fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno,
21430 fsigned_zeros, ftrapping_math, fwrapv.
21431 (append_compiler_options): Do not track these options.
21432 (append_linker_options): Likewie
21433
21434 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
21435
21436 * cgraphunit.c (cgraph_node::finalize_function): When
21437 !flag_toplevel_reorde set no_reorder flag.
21438 (varpool_node::finalize_decl): Likewise.
21439 (symbol_table::compile): Drop no toplevel reorder path.
21440
21441 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
21442
21443 * bb-reorder.c (better_edge_p): Do not build traces across abnormal/eh
21444 edges; zero probability is not better than uninitialized.
21445
21446 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
21447
21448 * asan.h (asan_sanitize_allocas_p): Declare.
21449 * asan.c (asan_sanitize_allocas_p): New function.
21450 (handle_builtin_stack_restore): Bail out if !asan_sanitize_allocas_p.
21451 (handle_builtin_alloca): Likewise.
21452 * cfgexpand.c (expand_used_vars): Do not add allocas unpoisoning stuff
21453 if !asan_sanitize_allocas_p.
21454 * params.def (asan-instrument-allocas): Add new option.
21455 * params.h (ASAN_PROTECT_ALLOCAS): Define.
21456 * opts.c (common_handle_option): Disable allocas sanitization for
21457 KASan by default.
21458
21459 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
21460
21461 * asan.c: Include gimple-fold.h.
21462 (get_last_alloca_addr): New function.
21463 (handle_builtin_stackrestore): Likewise.
21464 (handle_builtin_alloca): Likewise.
21465 (asan_emit_allocas_unpoison): Likewise.
21466 (get_mem_refs_of_builtin_call): Add new parameter, remove const
21467 quallifier from first paramerer. Handle BUILT_IN_ALLOCA,
21468 BUILT_IN_ALLOCA_WITH_ALIGN and BUILT_IN_STACK_RESTORE builtins.
21469 (instrument_builtin_call): Pass gimple iterator to
21470 get_mem_refs_of_builtin_call.
21471 (last_alloca_addr): New global.
21472 * asan.h (asan_emit_allocas_unpoison): Declare.
21473 * builtins.c (expand_asan_emit_allocas_unpoison): New function.
21474 (expand_builtin): Handle BUILT_IN_ASAN_ALLOCAS_UNPOISON.
21475 * cfgexpand.c (expand_used_vars): Call asan_emit_allocas_unpoison
21476 if function calls alloca.
21477 * gimple-fold.c (replace_call_with_value): Remove static keyword.
21478 * gimple-fold.h (replace_call_with_value): Declare.
21479 * internal-fn.c: Include asan.h.
21480 * sanitizer.def (BUILT_IN_ASAN_ALLOCA_POISON,
21481 BUILT_IN_ASAN_ALLOCAS_UNPOISON): New builtins.
21482
21483 2017-07-06 David Malcolm <dmalcolm@redhat.com>
21484
21485 * Makefile.in (SELFTEST_FLAGS): Drop "-x c", moving it to...
21486 (C_SELFTEST_FLAGS): New.
21487 (CPP_SELFTEST_FLAGS): New.
21488 (SELFTEST_DEPS): New, from deps of s-selftest.
21489 (C_SELFTEST_DEPS): New, from deps of s-selftest.
21490 (CPP_SELFTEST_DEPS): New.
21491 (selftest): Add dependency on s-selftest-c++.
21492 (s-selftest): Rename to...
21493 (s-selftest-c): ...this, moving deps to SELFTEST_DEPS
21494 and C_SELFTEST_DEPS, and using C_SELFTEST_FLAGS rather
21495 than SELFTEST_FLAGS.
21496 (selftest-gdb): Rename to...
21497 (selftest-c-gdb): ...this, using C_SELFTEST_DEPS and
21498 C_SELFTEST_FLAGS.
21499 (selftest-gdb): Reintroduce as an alias for selftest-c-gdb.
21500 (selftest-valgrind): Rename to...
21501 (selftest-c-valgrind): ...this, using C_SELFTEST_DEPS and
21502 C_SELFTEST_FLAGS.
21503 (selftest-valgrind): Reintroduce as an alias for
21504 selftest-c-valgrind.
21505 (s-selftest-c++): New.
21506 (selftest-c++-gdb): New.
21507 (selftest-c++-valgrind): New.
21508
21509 2017-07-06 Olivier Hainque <hainque@adacore.com>
21510
21511 * gcc.c (process_command): When deciding if undefined variables
21512 should be ignored when processing specs, accept "gcc -v" as well.
21513
21514 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
21515
21516 * auto-profile.c (afdo_set_bb_count, afdo_propagate_edge,
21517 afdo_annotate_cfg): Set counts/probabilities as determined by afdo.
21518
21519 2017-07-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
21520
21521 * config/arm/arm-cpus.in (armv8-r): Add new entry.
21522 * config/arm/arm-isa.h (ISA_ARMv8r): Define macro.
21523 * config/arm/arm-tables.opt: Regenerate.
21524 * config/arm/arm.h (enum base_architecture): Add BASE_ARCH_8R
21525 enumerator.
21526 * doc/invoke.texi: Mention -march=armv8-r and its extensions.
21527
21528 2017-07-06 Carl Love <cel@us.ibm.com>
21529
21530 * ChangeLog: Clean up from mid air collision
21531
21532 2017-07-06 Carl Love <cel@us.ibm.com>
21533
21534 * config/rs6000/rs6000-c.c: Add support for built-in functions
21535 vector signed int vec_subc (vector signed int, vector signed int);
21536 vector signed __int128 vec_subc (vector signed __int128,
21537 vector signed __int128);
21538 vector unsigned __int128 vec_subc (vector unsigned __int128,
21539 vector unsigned __int128);
21540 vector signed int vec_sube (vector signed int, vector signed int,
21541 vector signed int);
21542 vector unsigned int vec_sube (vector unsigned int,
21543 vector unsigned int,
21544 vector unsigned int);
21545 vector signed __int128 vec_sube (vector signed __int128,
21546 vector signed __int128,
21547 vector signed__int128);
21548 vector unsigned __int128 vec_sube (vector unsigned __int128,
21549 vector unsigned __int128,
21550 vector unsigned __int128);
21551 vector signed int vec_subec (vector signed int, vector signed int,
21552 vector signed int);
21553 vector unsigned int vec_subec (vector unsigned int,
21554 vector unsigned int,
21555 vector unsigned int);
21556 vector signed __int128 vec_subec (vector signed __int128,
21557 vector signed __int128,
21558 vector signed__int128);
21559 vector unsigned __int128 vec_subec (vector unsigned __int128,
21560 vector unsigned __int128,
21561 vector unsigned __int128);
21562 * config/rs6000/rs6000.c (ALTIVEC_BUILTIN_VEC_SUBE,
21563 ALTIVEC_BUILTIN_VEC_SUBEC): Add ef_builtins.
21564 * config/rs6000/rs6000-builtin.def (SUBE, SUBEC): Add
21565 BU_ALTIVEC_OVERLOAD_X definitions.
21566 * config/rs6000/altivec.h (vec_sube, vec_subec): Add builtin defines.
21567 * doc/extend.texi: Update the built-in documentation file for the new
21568 built-in functions.
21569
21570 2017-07-06 David Malcolm <dmalcolm@redhat.com>
21571
21572 PR c++/79300
21573 * diagnostic-show-locus.c (layout::layout): Use start and finish
21574 spelling location for the start and finish of each range.
21575 * genmatch.c (linemap_client_expand_location_to_spelling_point):
21576 Add unused aspect param.
21577 * input.c (expand_location_1): Add "aspect" param, and use it
21578 to access the correct part of the location.
21579 (expand_location): Pass LOCATION_ASPECT_CARET to new param of
21580 expand_location_1.
21581 (expand_location_to_spelling_point): Likewise.
21582 (linemap_client_expand_location_to_spelling_point): Add "aspect"
21583 param, and pass it to expand_location_1.
21584
21585 2017-07-06 Sebastian Peryt <sebastian.peryt@intel.com>
21586
21587 * config/i386/avx512fintrin.h (_mm_mask_getexp_round_ss,
21588 _mm_maskz_getexp_round_ss, _mm_mask_getexp_round_sd,
21589 _mm_maskz_getexp_round_sd, _mm_mask_getmant_round_sd,
21590 _mm_maskz_getmant_round_sd, _mm_mask_getmant_round_ss,
21591 _mm_maskz_getmant_round_ss, _mm_mask_getexp_ss, _mm_maskz_getexp_ss,
21592 _mm_mask_getexp_sd, _mm_maskz_getexp_sd, _mm_mask_getmant_sd,
21593 _mm_maskz_getmant_sd, _mm_mask_getmant_ss,
21594 _mm_maskz_getmant_ss): New intrinsics.
21595 (__builtin_ia32_getexpss128_mask): Changed to ...
21596 __builtin_ia32_getexpss128_round ... this.
21597 (__builtin_ia32_getexpsd128_mask): Changed to ...
21598 __builtin_ia32_getexpsd128_round ... this.
21599 * config/i386/i386-builtin-types.def
21600 ((V2DF, V2DF, V2DF, INT, V2DF, UQI, INT),
21601 (V4SF, V4SF, V4SF, INT, V4SF, UQI, INT)): New function type aliases.
21602 * config/i386/i386-builtin.def (__builtin_ia32_getexpsd_mask_round,
21603 __builtin_ia32_getexpss_mask_round, __builtin_ia32_getmantsd_mask_round,
21604 __builtin_ia32_getmantss_mask_round): New builtins.
21605 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_UQI_INT,
21606 V4SF_FTYPE_V4SF_V4SF_INT_V4SF_UQI_INT): Handle new types.
21607 (CODE_FOR_avx512f_vgetmantv2df_mask_round,
21608 CODE_FOR_avx512f_vgetmantv4sf_mask_round): New cases.
21609 * config/i386/sse.md
21610 (avx512f_sgetexp<mode><round_saeonly_name>): Changed to ...
21611 avx512f_sgetexp<mode><mask_scalar_name>
21612 <round_saeonly_scalar_name> ... this.
21613 (vgetexp<ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|
21614 %0, %1, %2<round_saeonly_op3>}): Changed to ...
21615 vgetexp<ssescalarmodesuffix>
21616 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
21617 %0<mask_scalar_operand3>, %1, %2<round_saeonly_scalar_mask_op3>} ... this.
21618 (avx512f_vgetmant<mode><round_saeonly_name>): Changed to ...
21619 avx512f_vgetmant<mode><mask_scalar_name>
21620 <round_saeonly_scalar_name> ... this.
21621 (vgetmant<ssescalarmodesuffix>\t{%3, <round_saeonly_op4>%2, %1, %0|
21622 %0, %1, %2<round_saeonly_op4>, %3}): Changed to ...
21623 vgetmant<ssescalarmodesuffix>
21624 \t{%3, <round_saeonly_scalar_mask_op4>%2, %1, %0<mask_scalar_operand4>|
21625 %0<mask_scalar_operand4>, %1, %2
21626 <round_saeonly_scalar_mask_op4>, %3} ... this.
21627 * config/i386/subst.md (mask_scalar_operand4,
21628 round_saeonly_scalar_mask_operand4, round_saeonly_scalar_mask_op4,
21629 round_saeonly_scalar_nimm_predicate): New subst attributes.
21630
21631 2017-07-06 Julia Koval <julia.koval@intel.com>
21632
21633 * config/i386/i386.c (ix86_erase_embedded_rounding):
21634 Remove code for old rounding pattern.
21635
21636 2017-07-06 Richard Earnshaw <rearnsha@arm.com>
21637
21638 * config/arm/t-arm (GTM_H): Add arm-cpu.h.
21639
21640 2017-07-06 Christophe Lyon <christophe.lyon@linaro.org>
21641
21642 * doc/sourcebuild.texi (Test Directives, Variants of
21643 dg-require-support): Add documentation for dg-require-stack-check.
21644
21645 2017-07-05 Sebastian Peryt <sebastian.peryt@intel.com>
21646
21647 * config/i386/subst.md (mask_scalar, round_scalar,
21648 round_saeonly_scalar): New meta-templates.
21649 (mask_scalar_name, mask_scalar_operand3, round_scalar_name,
21650 round_scalar_mask_operand3, round_scalar_mask_op3,
21651 round_scalar_constraint, round_scalar_prefix, round_saeonly_scalar_name,
21652 round_saeonly_scalar_mask_operand3, round_saeonly_scalar_mask_op3,
21653 round_saeonly_scalar_constraint,
21654 round_saeonly_scalar_prefix): New subst attribute.
21655 * config/i386/sse.md
21656 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): Renamed to ...
21657 <sse>_vm<plusminus_insn><mode>3<mask_scalar_name>
21658 <round_scalar_name> ... this.
21659 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): Renamed to ...
21660 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name>
21661 <round_scalar_name> ... this.
21662 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): Renamed to ...
21663 <sse>_vm<code><mode>3<mask_scalar_name>
21664 <round_saeonly_scalar_name> ... this.
21665 (v<plusminus_mnemonic><ssescalarmodesuffix>
21666 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
21667 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
21668 v<plusminus_mnemonic><ssescalarmodesuffix>
21669 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
21670 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
21671 (v<multdiv_mnemonic><ssescalarmodesuffix>
21672 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
21673 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
21674 v<multdiv_mnemonic><ssescalarmodesuffix>
21675 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
21676 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
21677 (v<maxmin_float><ssescalarmodesuffix>
21678 \t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|
21679 %0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}): Changed to ...
21680 v<maxmin_float><ssescalarmodesuffix>
21681 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
21682 %0<mask_scalar_operand3>, %1, %<iptr>2
21683 <round_saeonly_scalar_mask_op3>} ... this.
21684
21685 2017-07-05 Richard Earnshaw <rearnsha@arm.com>
21686
21687 * config/arm/arm.c (arm_fixed_condition_code_regs): New function.
21688 (TARGET_FIXED_CONDITION_CODE_REGS): Redefine.
21689
21690 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
21691 Alan Hayward <alan.hayward@arm.com>
21692 David Sherwood <david.sherwood@arm.com>
21693
21694 * combine.c (simplify_if_then_else): Remove "enum" before
21695 "machine_mode".
21696 * compare-elim.c (can_eliminate_compare): Likewise.
21697 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
21698 Likewise.
21699 (aarch64_lookup_simd_builtin_type): Likewise.
21700 (aarch64_simd_builtin_type): Likewise.
21701 (aarch64_init_simd_builtin_types): Likewise.
21702 (aarch64_simd_expand_args): Likewise.
21703 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist):
21704 Likewise.
21705 (aarch64_reverse_mask): Likewise.
21706 (aarch64_simd_emit_reg_reg_move): Likewise.
21707 (aarch64_gen_adjusted_ldpstp): Likewise.
21708 (aarch64_ccmp_mode_to_code): Likewise.
21709 (aarch64_operands_ok_for_ldpstp): Likewise.
21710 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
21711 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class):
21712 Likewise.
21713 (aarch64_min_divisions_for_recip_mul): Likewise.
21714 (aarch64_reassociation_width): Likewise.
21715 (aarch64_get_condition_code_1): Likewise.
21716 (aarch64_simd_emit_reg_reg_move): Likewise.
21717 (aarch64_simd_attr_length_rglist): Likewise.
21718 (aarch64_reverse_mask): Likewise.
21719 (aarch64_operands_ok_for_ldpstp): Likewise.
21720 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
21721 (aarch64_gen_adjusted_ldpstp): Likewise.
21722 * config/aarch64/cortex-a57-fma-steering.c (fma_node::rename):
21723 Likewise.
21724 * config/arc/arc.c (legitimate_offset_address_p): Likewise.
21725 * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
21726 (arm_lookup_simd_builtin_type): Likewise.
21727 (arm_simd_builtin_type): Likewise.
21728 (arm_init_simd_builtin_types): Likewise.
21729 (arm_expand_builtin_args): Likewise.
21730 * config/arm/arm-protos.h (arm_expand_builtin): Likewise.
21731 * config/ft32/ft32.c (ft32_libcall_value): Likewise.
21732 (ft32_setup_incoming_varargs): Likewise.
21733 (ft32_function_arg): Likewise.
21734 (ft32_function_arg_advance): Likewise.
21735 (ft32_pass_by_reference): Likewise.
21736 (ft32_arg_partial_bytes): Likewise.
21737 (ft32_valid_pointer_mode): Likewise.
21738 (ft32_addr_space_pointer_mode): Likewise.
21739 (ft32_addr_space_legitimate_address_p): Likewise.
21740 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple):
21741 Likewise.
21742 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
21743 (ix86_emit_outlined_ms2sysv_restore): Likewise.
21744 (iamcu_alignment): Likewise.
21745 (canonicalize_vector_int_perm): Likewise.
21746 (ix86_noce_conversion_profitable_p): Likewise.
21747 (ix86_mpx_bound_mode): Likewise.
21748 (ix86_operands_ok_for_move_multiple): Likewise.
21749 * config/microblaze/microblaze-protos.h
21750 (microblaze_expand_conditional_branch_reg): Likewise.
21751 * config/microblaze/microblaze.c
21752 (microblaze_expand_conditional_branch_reg): Likewise.
21753 * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
21754 Likewise.
21755 (rs6000_reassociation_width): Likewise.
21756 (rs6000_invalid_binary_op): Likewise.
21757 (fusion_p9_p): Likewise.
21758 (emit_fusion_p9_load): Likewise.
21759 (emit_fusion_p9_store): Likewise.
21760 * config/riscv/riscv-protos.h (riscv_regno_mode_ok_for_base_p):
21761 Likewise.
21762 (riscv_hard_regno_mode_ok_p): Likewise.
21763 (riscv_address_insns): Likewise.
21764 (riscv_split_symbol): Likewise.
21765 (riscv_legitimize_move): Likewise.
21766 (riscv_function_value): Likewise.
21767 (riscv_hard_regno_nregs): Likewise.
21768 (riscv_expand_builtin): Likewise.
21769 * config/riscv/riscv.c (riscv_build_integer_1): Likewise.
21770 (riscv_build_integer): Likewise.
21771 (riscv_split_integer): Likewise.
21772 (riscv_legitimate_constant_p): Likewise.
21773 (riscv_cannot_force_const_mem): Likewise.
21774 (riscv_regno_mode_ok_for_base_p): Likewise.
21775 (riscv_valid_base_register_p): Likewise.
21776 (riscv_valid_offset_p): Likewise.
21777 (riscv_valid_lo_sum_p): Likewise.
21778 (riscv_classify_address): Likewise.
21779 (riscv_legitimate_address_p): Likewise.
21780 (riscv_address_insns): Likewise.
21781 (riscv_load_store_insns): Likewise.
21782 (riscv_force_binary): Likewise.
21783 (riscv_split_symbol): Likewise.
21784 (riscv_force_address): Likewise.
21785 (riscv_legitimize_address): Likewise.
21786 (riscv_move_integer): Likewise.
21787 (riscv_legitimize_const_move): Likewise.
21788 (riscv_legitimize_move): Likewise.
21789 (riscv_address_cost): Likewise.
21790 (riscv_subword): Likewise.
21791 (riscv_output_move): Likewise.
21792 (riscv_canonicalize_int_order_test): Likewise.
21793 (riscv_emit_int_order_test): Likewise.
21794 (riscv_function_arg_boundary): Likewise.
21795 (riscv_pass_mode_in_fpr_p): Likewise.
21796 (riscv_pass_fpr_single): Likewise.
21797 (riscv_pass_fpr_pair): Likewise.
21798 (riscv_get_arg_info): Likewise.
21799 (riscv_function_arg): Likewise.
21800 (riscv_function_arg_advance): Likewise.
21801 (riscv_arg_partial_bytes): Likewise.
21802 (riscv_function_value): Likewise.
21803 (riscv_pass_by_reference): Likewise.
21804 (riscv_setup_incoming_varargs): Likewise.
21805 (riscv_print_operand): Likewise.
21806 (riscv_elf_select_rtx_section): Likewise.
21807 (riscv_save_restore_reg): Likewise.
21808 (riscv_for_each_saved_reg): Likewise.
21809 (riscv_register_move_cost): Likewise.
21810 (riscv_hard_regno_mode_ok_p): Likewise.
21811 (riscv_hard_regno_nregs): Likewise.
21812 (riscv_class_max_nregs): Likewise.
21813 (riscv_memory_move_cost): Likewise.
21814 * config/rl78/rl78-protos.h (rl78_split_movsi): Likewise.
21815 * config/rl78/rl78.c (rl78_split_movsi): Likewise.
21816 (rl78_addr_space_address_mode): Likewise.
21817 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21818 Likewise.
21819 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
21820 (rs6000_reassociation_width): Likewise.
21821 (rs6000_invalid_binary_op): Likewise.
21822 (fusion_p9_p): Likewise.
21823 (emit_fusion_p9_load): Likewise.
21824 (emit_fusion_p9_store): Likewise.
21825 * config/visium/visium-protos.h (prepare_move_operands): Likewise.
21826 (ok_for_simple_move_operands): Likewise.
21827 (ok_for_simple_move_strict_operands): Likewise.
21828 (ok_for_simple_arith_logic_operands): Likewise.
21829 (visium_legitimize_reload_address): Likewise.
21830 (visium_select_cc_mode): Likewise.
21831 (output_cbranch): Likewise.
21832 (visium_split_double_move): Likewise.
21833 (visium_expand_copysign): Likewise.
21834 (visium_expand_int_cstore): Likewise.
21835 (visium_expand_fp_cstore): Likewise.
21836 * config/visium/visium.c (visium_pass_by_reference): Likewise.
21837 (visium_function_arg): Likewise.
21838 (visium_function_arg_advance): Likewise.
21839 (visium_libcall_value): Likewise.
21840 (visium_setup_incoming_varargs): Likewise.
21841 (visium_legitimate_constant_p): Likewise.
21842 (visium_legitimate_address_p): Likewise.
21843 (visium_legitimize_address): Likewise.
21844 (visium_secondary_reload): Likewise.
21845 (visium_register_move_cost): Likewise.
21846 (visium_memory_move_cost): Likewise.
21847 (prepare_move_operands): Likewise.
21848 (ok_for_simple_move_operands): Likewise.
21849 (ok_for_simple_move_strict_operands): Likewise.
21850 (ok_for_simple_arith_logic_operands): Likewise.
21851 (visium_function_value_1): Likewise.
21852 (rtx_ok_for_offset_p): Likewise.
21853 (visium_legitimize_reload_address): Likewise.
21854 (visium_split_double_move): Likewise.
21855 (visium_expand_copysign): Likewise.
21856 (visium_expand_int_cstore): Likewise.
21857 (visium_expand_fp_cstore): Likewise.
21858 (visium_split_cstore): Likewise.
21859 (visium_select_cc_mode): Likewise.
21860 (visium_split_cbranch): Likewise.
21861 (output_cbranch): Likewise.
21862 (visium_print_operand_address): Likewise.
21863 * expmed.c (flip_storage_order): Likewise.
21864 * expmed.h (emit_cstore): Likewise.
21865 (flip_storage_order): Likewise.
21866 * genrecog.c (validate_pattern): Likewise.
21867 * hsa-gen.c (gen_hsa_addr): Likewise.
21868 * internal-fn.c (expand_arith_overflow): Likewise.
21869 * ira-color.c (allocno_copy_cost_saving): Likewise.
21870 * lra-assigns.c (find_hard_regno_for_1): Likewise.
21871 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
21872 (process_invariant_for_inheritance): Likewise.
21873 * lra-eliminations.c (move_plus_up): Likewise.
21874 * omp-low.c (lower_oacc_reductions): Likewise.
21875 * simplify-rtx.c (simplify_subreg): Likewise.
21876 * target.def (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
21877 (TARGET_CHKP_BOUND_MODE): Likewise..
21878 * targhooks.c (default_chkp_bound_mode): Likewise.
21879 (default_setup_incoming_vararg_bounds): Likewise.
21880 * targhooks.h (default_chkp_bound_mode): Likewise.
21881 (default_setup_incoming_vararg_bounds): Likewise.
21882 * tree-ssa-math-opts.c (divmod_candidate_p): Likewise.
21883 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Likewise.
21884 (have_whole_vector_shift): Likewise.
21885 * tree-vect-stmts.c (vectorizable_load): Likewise.
21886 * doc/tm.texi: Regenerate.
21887
21888 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
21889
21890 Graceful degrade if Binutils PR21472 is not available.
21891
21892 PR target/81072
21893 * configure.ac [target=avr]: WARN instead of ERROR if avrxmega3
21894 .rodata in flash test fails.
21895 (HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH): Define it if test passes.
21896 * confgure: Regenerate.
21897 * config.in: Regenerate.
21898 * config/avr/avr.c (avr_asm_named_section)
21899 [HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH]: Only trigger
21900 __do_copy_data for stuff in .rodata if flash_pm_offset = 0.
21901 (avr_asm_init_sections): Same.
21902
21903 2017-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21904
21905 * config/arm/neon.md (fma<VCVTF:mode>4): Remove %?.
21906 (fma<VH:mode>4_intrinsic): Likewise.
21907 (*fmsub<VCVTF:mode>4): Likewise.
21908 (*fmsub<VH:mode>4_intrinsic): Likewise.
21909
21910 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
21911
21912 PR target/81305
21913 * config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
21914 Don't depend on "optimize > 0".
21915 (out_movhi_r_mr, out_movqi_mr_r): Same.
21916 (out_movhi_mr_r, out_movqi_r_mr): Same.
21917 (avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
21918 io_address_operand on "optimize > 0".
21919
21920 2017-07-05 Bin Cheng <bin.cheng@arm.com>
21921
21922 * tree-loop-distribution.c: Add general explanantion on the pass.
21923 (generate_loops_for_partition): Mark distributed loop.
21924 (pg_add_dependence_edges): New parameter. Handle alias data
21925 dependence specially and record it in the parameter if asked.
21926 (struct pg_vdata, pg_edata, pg_edge_callback_data): New structs.
21927 (init_partition_graph_vertices, add_partition_graph_edge): New.
21928 (pg_skip_alias_edge, free_partition_graph_edata_cb): New.
21929 (free_partition_graph_vdata, build_partition_graph): New.
21930 (sort_partitions_by_post_order, merge_dep_scc_partitions): New.
21931 (pg_collect_alias_ddrs, break_alias_scc_partitions): New.
21932 (data_ref_segment_size, latch_dominated_by_data_ref): New.
21933 (compute_alias_check_pairs, version_loop_by_alias_check): New.
21934 (version_for_distribution_p, finalize_partitions): New.
21935 (distribute_loop): Handle alias data dependence specially. Factor
21936 out loop fusion code as functions and call these functions.
21937
21938 2017-07-05 Bin Cheng <bin.cheng@arm.com>
21939
21940 * tree-loop-distribution.c (classify_partition): New parameter and
21941 better handle reduction statement.
21942 (rdg_build_partitions): Revise comment.
21943 (distribute_loop): Compute statements in all partitions and pass it
21944 to classify_partition.
21945
21946 2017-07-05 Bin Cheng <bin.cheng@arm.com>
21947
21948 * tree-loop-distribution.c (enum partition_type): New.
21949 (struct partition): New field type.
21950 (partition_merge_into): Add parameter. Update partition type.
21951 (data_dep_in_cycle_p, update_type_for_merge): New functions.
21952 (build_rdg_partition_for_vertex): Compute partition type.
21953 (rdg_build_partitions): Dump partition type.
21954 (distribute_loop): Update calls to partition_merge_into.
21955
21956 2017-07-05 Bin Cheng <bin.cheng@arm.com>
21957
21958 * tree-loop-distribution.c (struct ddr_hasher): New.
21959 (ddr_hasher::hash, ::equal, get_data_dependence): New function.
21960 (ddrs_table): New.
21961 (classify_partition): Call get_data_dependence.
21962 (pg_add_dependence_edges): Ditto.
21963 (distribute_loop): Release data dependence hash table.
21964
21965 2017-07-05 Bin Cheng <bin.cheng@arm.com>
21966
21967 * tree-loop-distribution.c (ref_base_address): Delete.
21968 (similar_memory_accesses): Rename ...
21969 (share_memory_accesses): ... to this. Check if partitions access
21970 the same memory reference.
21971 (distribute_loop): Call share_memory_accesses.
21972
21973 2017-07-05 Bin Cheng <bin.cheng@arm.com>
21974
21975 * tree-loop-distribution.c (struct partition): New field recording
21976 its data reference.
21977 (partition_alloc, partition_free): Init and release data refs.
21978 (partition_merge_into): Merge data refs.
21979 (build_rdg_partition_for_vertex): Collect data refs for partition.
21980 (pg_add_dependence_edges): Change parameters from vector to bitmap.
21981 Update uses.
21982 (distribute_loop): Remve data refs from vertice data of partition
21983 graph.
21984
21985 2017-07-05 Bin Cheng <bin.cheng@arm.com>
21986
21987 * tree-loop-distribution.c (params.h): Include header file.
21988 (MAX_DATAREFS_NUM, DR_INDEX): New macro.
21989 (datarefs_vec): New global var.
21990 (create_rdg_vertices): Use datarefs_vec directly.
21991 (free_rdg): Don't free data references.
21992 (build_rdg): Update use. Don't free data references.
21993 (distribute_loop): Compute global variable for data references.
21994 Bail out if there are too many data references.
21995
21996 2017-07-05 Bin Cheng <bin.cheng@arm.com>
21997
21998 * tree-loop-distribution.c (loop_nest): New global var.
21999 (build_rdg): Use loop directly, rather than loop nest.
22000 (pg_add_dependence_edges): Remove loop nest parameter. Use global
22001 variable directly.
22002 (distribute_loop): Compute global variable loop nest. Update use.
22003
22004 2017-07-05 Bin Cheng <bin.cheng@arm.com>
22005
22006 * tree-loop-distribution.c (enum fuse_type, fuse_message): New.
22007 (partition_merge_into): New parameter. Dump reason for fusion.
22008 (distribute_loop): Update use of partition_merge_into.
22009
22010 2017-07-05 Bin Cheng <bin.cheng@arm.com>
22011
22012 * tree-loop-distribution.c (bb_top_order_index): New.
22013 (bb_top_order_index_size, bb_top_order_cmp): New.
22014 (stmts_from_loop): Use topological order.
22015 (pass_loop_distribution::execute): Compute and release topological
22016 order for basic blocks.
22017
22018 2017-07-05 Bin Cheng <bin.cheng@arm.com>
22019
22020 * tree-loop-distribution.c (pass_loop_distribution::execute): Skip
22021 if no loops.
22022
22023 2017-07-05 Bin Cheng <bin.cheng@arm.com>
22024
22025 * cfgloop.h (struct loop): Add comment. New field orig_loop_num.
22026 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Comment change.
22027 * internal-fn.c (expand_LOOP_DIST_ALIAS): New function.
22028 * internal-fn.def (LOOP_DIST_ALIAS): New.
22029 * tree-vectorizer.c (fold_loop_vectorized_call): Rename to ...
22030 (fold_loop_internal_call): ... this.
22031 (vect_loop_dist_alias_call): New function.
22032 (set_uid_loop_bbs): Call fold_loop_internal_call.
22033 (vectorize_loops): Fold IFN_LOOP_VECTORIZED and IFN_LOOP_DIST_ALIAS
22034 internal calls.
22035
22036 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
22037
22038 PR target/81300
22039 * config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
22040 Require dead FLAGS_REG at the beginning of a peephole.
22041
22042 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
22043
22044 PR target/81294
22045 * config/i386/adxintrin.h (_subborrow_u32): Swap _X and _Y
22046 arguments in the call to __builtin_ia32_sbb_u32.
22047 (_subborrow_u64): Swap _X and _Y arguments in the call to
22048 __builtin_ia32_sbb_u64.
22049
22050 2017-07-04 Jakub Jelinek <jakub@redhat.com>
22051
22052 PR debug/81278
22053 * tree-vrp.c (compare_assert_loc): Turn into a function template
22054 with stable template parameter. Only test if a->e is NULL,
22055 !a->e == !b->e has been verified already. Use e == NULL or
22056 e != NULL instead of e or ! e tests. If stable is true, don't use
22057 iterative_hash_expr, on the other side allow a or b or both NULL
22058 and sort the NULLs last.
22059 (process_assert_insertions): Sort using compare_assert_loc<false>
22060 instead of compare_assert_loc, later sort using
22061 compare_assert_loc<true> before calling process_assert_insertions_for
22062 in a loop. Use break instead of continue once seen NULL pointer.
22063
22064 2017-07-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
22065
22066 * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
22067 Cortex-R7 and Cortex-R8 processors.
22068
22069 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
22070
22071 * ipa-utils.c (ipa_merge_profiles): Fix merging when dst is
22072 uninitialized while src is not.
22073
22074 2017-07-04 Richard Earnshaw <rearnsha@arm.com>
22075
22076 * common/config/arm/arm-common.c: Adjust include path for
22077 arm-cpu-cdata.h
22078 * config/arm/t-arm (TM_H): Adjust path for arm-cpu.h.
22079 (arm-cpu.h): Create in build directory. Adjust dependency rules.
22080 (arm-cpu-data.h): Likewise.
22081 (arm-cpu-cdata.h): Likewise.
22082 * config/arm/arm-cpu.h: Delete.
22083 * config/arm/arm-cpu-cdata.h: Delete.
22084 * config/arm/arm-cpu-data.h: Delete.
22085
22086 2017-07-04 James Greenhalgh <james.greenhalgh@arm.com>
22087
22088 * config/arm/arm-cpus.in (cortex-a55): New.
22089 (cortex-a75): Likewise.
22090 (cortex-a75.cortex-a55): Likewise.
22091 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a55 and
22092 cortex-a75.
22093 * doc/invoke.texi (-mcpu): Document cortex-a55 and cortex-a75.
22094 * config/arm/arm-cpu-cdata.h: Regenerate.
22095 * config/arm/arm-cpu-data.h: Regenerate.
22096 * config/arm/arm-cpu.h: Regenerate.
22097 * config/arm/arm-tables.opt: Regenerate.
22098 * config/arm/arm-tune.md: Regenerate.
22099
22100 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
22101
22102 * haifa-sched.c (sched_create_recovery_edges): Update profile.
22103
22104 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
22105
22106 * bb-reorder.c (better_edge_p): Fix handling of uninitialized
22107 probability.
22108
22109 2017-07-04 Richard Sandiford <richard.sandiford@linaro.org>
22110
22111 PR tree-optimization/81292
22112 * tree-ssa-strlen.c (handle_builtin_strlen): When setting
22113 full_string_p, also call adjust_related_strinfos if the adjustment
22114 is simple, otherwise invalidate related strinfos.
22115
22116 2017-07-04 Martin Liska <mliska@suse.cz>
22117
22118 PR sanitizer/81040
22119 * sanopt.c (sanitize_rewrite_addressable_params): Mark the
22120 newly created variable as DECL_IGNORED_P.
22121
22122 2017-07-04 Martin Liska <mliska@suse.cz>
22123
22124 PR ipa/81293
22125 * ipa-inline.c (inline_small_functions):
22126 Use xstrdup_for_dump.
22127
22128 2017-07-04 Tom de Vries <tom@codesourcery.com>
22129
22130 * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK.
22131
22132 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
22133
22134 PR target/81033
22135 * config/darwin.c (darwin_function_switched_text_sections):
22136 Fix spaces.
22137
22138 2017-07-03 Jan Hubicka <hubicka@ucw.cz>
22139
22140 * tree-vect-loop-manip.c (vect_do_peeling): Fix scaling up.
22141
22142 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
22143
22144 * doc/invoke.texi (ARM Options): Add -mbe8 and -mbe32 to option summary.
22145
22146 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
22147
22148 * tree-vect-loop.c (vect_analyze_loop_2): Treat min_scalar_loop_bound,
22149 min_profitable_iters, and th as inclusive lower bounds.
22150 Fix LOOP_VINFO_PEELING_FOR_GAPS condition.
22151 (vect_estimate_min_profitable_iters): Return inclusive lower bounds
22152 for min_profitable_iters and min_profitable_estimate.
22153 (vect_transform_loop): Treat th as an inclusive lower bound.
22154 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
22155
22156 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
22157
22158 PR target/81033
22159 * config/darwin.c (darwin_function_switched_text_sections):
22160 Replace DECL_NAME with DECL_ASSEMBLER_NAME, split assemble_name_raw
22161 in two pieces, and suppress the use of buf.
22162
22163 2017-07-03 Nathan Sidwell <nathan@acm.org>
22164
22165 * hash-table.h (hash_table_mod1): Fix indentation.
22166
22167 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
22168
22169 PR middle-end/81290
22170 * predict.c (force_edge_cold): Be more careful about propagation
22171 backward.
22172 * profile-count.h (profile_probability::guessed,
22173 profile_probability::fdo, profile_count::guessed, profile_count::fdo):
22174 New.
22175 * tree-ssa-threadupdate.c (recompute_probabilities): Result is guessed.
22176
22177 2017-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22178
22179 * doc/invoke.texi (rcpc architecture extension): Document it.
22180
22181 2017-07-03 Richard Biener <rguenther@suse.de>
22182
22183 PR tree-optimization/60510
22184 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass in
22185 the scalar reduction PHI and use it.
22186 (vectorizable_reduction): Properly guard the single_defuse_cycle
22187 path for non-SLP reduction chains where we cannot use it.
22188 Rework reduc_def/index and vector type deduction. Rework
22189 vector operand gathering during reduction op code-gen.
22190 * tree-vect-slp.c (vect_analyze_slp): For failed SLP reduction
22191 chains dissolve the chain and leave it to non-SLP reduction
22192 handling.
22193
22194 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
22195
22196 * tree-data-ref.h (dr_alignment): Declare.
22197 * tree-data-ref.c (dr_alignment): New function.
22198 * tree-vectorizer.h (dataref_aux): Remove base_element_aligned.
22199 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Don't
22200 set it.
22201 * tree-vect-stmts.c (vectorizable_store): Use dr_alignment.
22202
22203 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
22204
22205 * tree-data-ref.h (innermost_loop_behavior): Add base_alignment
22206 and base_misalignment fields.
22207 (DR_BASE_ALIGNMENT, DR_BASE_MISALIGNMENT): New macros.
22208 * tree-data-ref.c: Include builtins.h.
22209 (dr_analyze_innermost): Set up the new innmost_loop_behavior fields.
22210 * tree-vectorizer.h (STMT_VINFO_DR_BASE_ALIGNMENT): New macro.
22211 (STMT_VINFO_DR_BASE_MISALIGNMENT): Likewise.
22212 * tree-vect-data-refs.c: Include tree-cfg.h.
22213 (vect_compute_data_ref_alignment): Use the new innermost_loop_behavior
22214 fields instead of calculating an alignment here.
22215 (vect_analyze_data_refs): Use dr_analyze_innermost. Dump the new
22216 innermost_loop_behavior fields.
22217
22218 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
22219
22220 * tree-data-ref.h (innermost_loop_behavior): Add a step_alignment
22221 field.
22222 (DR_STEP_ALIGNMENT): New macro.
22223 * tree-vectorizer.h (STMT_VINFO_DR_STEP_ALIGNMENT): Likewise.
22224 * tree-data-ref.c (dr_analyze_innermost): Initalize step_alignment.
22225 (create_data_ref): Print it.
22226 * tree-vect-stmts.c (vectorizable_load): Use the step alignment
22227 to tell whether the step preserves vector (mis)alignment.
22228 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
22229 Move the check for an integer step and generalise to all INTEGER_CST.
22230 (vect_analyze_data_refs): Set DR_STEP_ALIGNMENT when setting DR_STEP.
22231 Print the outer step alignment.
22232
22233 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
22234
22235 * tree-data-ref.h (innermost_loop_behavior): Replace aligned_to
22236 with offset_alignment.
22237 (DR_ALIGNED_TO): Delete.
22238 (DR_OFFSET_ALIGNMENT): New macro.
22239 * tree-vectorizer.h (STMT_VINFO_DR_ALIGNED_TO): Delete.
22240 (STMT_VINFO_DR_OFFSET_ALIGNMENT): New macro.
22241 * tree-data-ref.c (dr_analyze_innermost): Update after above changes.
22242 (create_data_ref): Likewise.
22243 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
22244 (vect_analyze_data_refs): Likewise.
22245 * tree-if-conv.c (if_convertible_loop_p_1): Use memset before
22246 creating dummy innermost behavior.
22247
22248 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
22249
22250 * tree-data-ref.h (dr_analyze_innermost): Replace the dr argument
22251 with a "innermost_loop_behavior *" and refeence tree.
22252 * tree-data-ref.c (dr_analyze_innermost): Likewise.
22253 (create_data_ref): Update call accordingly.
22254 * tree-predcom.c (find_looparound_phi): Likewise.
22255
22256 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
22257
22258 * tree-vectorizer.h (_stmt_vec_info): Replace individual dr_*
22259 fields with dr_wrt_vec_loop.
22260 (STMT_VINFO_DR_BASE_ADDRESS, STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET)
22261 (STMT_VINFO_DR_STEP, STMT_VINFO_DR_ALIGNED_TO): Update accordingly.
22262 (STMT_VINFO_DR_WRT_VEC_LOOP): New macro.
22263 (vect_dr_behavior): New function.
22264 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
22265 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
22266 vect_dr_behavior. Use a step_preserves_misalignment_p boolean to
22267 track whether the step preserves the misalignment.
22268 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
22269 Use vect_dr_behavior.
22270 (vect_setup_realignment): Update call accordingly.
22271 (vect_create_data_ref_ptr): Likewise. Use vect_dr_behavior.
22272 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Update
22273 call to vect_create_addr_base_for_vector_ref.
22274 (vect_create_cond_for_align_checks): Likewise.
22275 * tree-vect-patterns.c (vect_recog_bool_pattern): Copy
22276 STMT_VINFO_DR_WRT_VEC_LOOP as a block.
22277 (vect_recog_mask_conversion_pattern): Likewise.
22278 * tree-vect-stmts.c (compare_step_with_zero): Use vect_dr_behavior.
22279 (new_stmt_vec_info): Remove redundant zeroing.
22280
22281 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
22282
22283 * common/config/arm/arm-common.c (arm_be8_option): New function.
22284 * config/arm/arm-isa.h (isa_feature): Add new feature bit isa_bit_be8.
22285 (ISA_ARMv6): Add isa_bit_be8.
22286 * config/arm/arm.h (arm_be8_option): Add prototype.
22287 (BE8_SPEC_FUNCTION): New define.
22288 (EXTRA_SPEC_FUNCTIONS): Add BE8_SPEC_FUNCTION.
22289 * config/arm/arm.opt (mbig-endian): Mark as Negative of mlittle-endian.
22290 (mlittle-endian): Similarly.
22291 (mbe8, mbe32): New options.
22292 * config/arm/bpabi.h (BE8_LINK_SPEC): Call arm_be8_option.
22293 * doc/invoke.texi (ARM Options): Document -mbe8 and -mbe32.
22294
22295 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
22296
22297 * tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
22298
22299 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
22300
22301 * tree-cfgcleanup.c (want_merge_blocks_p): New function.
22302 (cleanup_tree_cfg_bb): Use it.
22303 * profile-count.h (profile_count::of_for_merging, profile_count::merge):
22304 New functions.
22305 * tree-cfg.c (gimple_merge_blocks): Use profile_count::merge.
22306
22307 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
22308
22309 PR bootstrap/81285
22310 * loop-doloop.c (add_test): Update profile.
22311
22312 2017-07-03 Martin Liska <mliska@suse.cz>
22313
22314 PR sanitize/81040
22315 * sanopt.c (rewrite_usage_of_param): New function.
22316 (sanitize_rewrite_addressable_params): Likewise.
22317 (pass_sanopt::execute): Call rewrite_usage_of_param.
22318
22319 2017-07-03 Richard Biener <rguenther@suse.de>
22320
22321 * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
22322 back to using VIEW_CONVERT_EXPR.
22323
22324 2017-07-03 Martin Liska <mliska@suse.cz>
22325
22326 PR other/78366
22327 * doc/extend.texi: Document when a resolver function is
22328 generated for target_clones.
22329
22330 2017-07-03 Martin Liska <mliska@suse.cz>
22331
22332 * asan.c (asan_emit_stack_protection): Unpoison just red zones
22333 and shadow memory of auto variables which are subject of
22334 use-after-scope sanitization.
22335 (asan_expand_mark_ifn): Add do set only when is_poison.
22336
22337 2016-07-03 Richard Biener <rguenther@suse.de>
22338
22339 * tree-vect-loop.c (vect_analyze_loop_operations): Also analyze
22340 reduction PHIs.
22341 (vect_force_simple_reduction): Record reduction def -> phi mapping.
22342 (vectorizable_reduction): Perform reduction PHI creation when
22343 visiting a reduction PHI and adjust and simplify code generation
22344 phase of the reduction op. Cache dts, use fold_binary, not fold_build2.
22345 (vect_transform_loop): Visit reduction PHIs.
22346 * tree-vect-slp.c (vect_get_and_check_slp_defs): Record reduction
22347 defs into the SLP tree.
22348 (vect_build_slp_tree): Reduction defs terminate the recursion.
22349 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Allow lookup
22350 of reduction defs.
22351 (vect_get_vec_defs_for_stmt_copy): Export.
22352 (vect_get_vec_defs): Likewise.
22353 * tree-vectorizer.h (struct _stmt_vec_info): Amend reduc_def
22354 purpose.
22355 (vect_get_vec_defs_for_stmt_copy): Declare.
22356 (vect_get_vec_defs): Likewise.
22357
22358 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
22359
22360 * tree-data-ref.c (dr_analyze_innermost): Replace the "nest"
22361 parameter with a "loop" parameter and use it instead of the
22362 loop containing DR_STMT. Don't check simple_iv when doing
22363 BB analysis. Describe the two analysis modes in the comment.
22364
22365 2017-07-03 Tom de Vries <tom@codesourcery.com>
22366
22367 PR tree-optimization/69468
22368 * tree-ssa-tail-merge.c (ignore_edge_flags): New constant.
22369 (find_same_succ_bb): Handle ignore_edge_flags.
22370
22371 2017-07-03 Tom de Vries <tom@codesourcery.com>
22372
22373 PR tree-optimization/81192
22374 * tree-ssa-tail-merge.c (same_succ_hash): Use bb->loop_father->num in
22375 hash.
22376 (same_succ::equal): Don't find bbs to be equal if bb->loop_father
22377 differs.
22378 (find_same_succ_bb): Remove obsolete test on bb->loop_father->latch.
22379
22380 2017-07-03 Tom de Vries <tom@codesourcery.com>
22381
22382 PR tree-optimization/81192
22383 * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
22384 BB_SAME_SUCC (bb) == NULL.
22385
22386 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
22387
22388 * cfgrtl.c (rtl_verify_edges): Enable checking of profile_probability
22389 consistency.
22390
22391 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
22392
22393 * dumpfile.c: Include profile-count.h
22394 * tree-cfg.c (gimple_duplicate_sese_tail): Drop UNUSED attributes;
22395 update profile.
22396 (insert_cond_bb): Update profile.
22397 * tree-cfg.h (insert_cond_bb): Update prototype.
22398 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Update.
22399 * tree-dump.c: Do not include tree-cfg.
22400
22401 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
22402
22403 * bb-reorder.c (fix_up_crossing_landing_pad): Update profile.
22404
22405 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
22406
22407 * expect.c (dw2_build_landing_pads): Update profile of the landing pad
22408 bb.
22409
22410 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
22411
22412 * tree-complex.c (expand_complex_div_wide): update profile.
22413
22414 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
22415 Alan Hayward <alan.hayward@arm.com>
22416 David Sherwood <david.sherwood@arm.com>
22417
22418 * Makefile.in (MACHMODE_H): Remove insn-modes.h
22419 (CORETYPES_H): New define.
22420 (MOSTLYCLEANFILES): Add insn-modes-inline.h.
22421 (insn-modes-inline.h, s-modes-inline-h): New rules.
22422 (generated_files): Add insn-modes-inline.h.
22423 (RTL_BASE_H, TREE_CORE_H): Use CORETYPES_H instead of coretypes.h.
22424 (build/gensupport.o, build/ggc-none.o, build/print-rtl.o): Likewise.
22425 (build/read-md.o, build/read-rtl.o, build/rtl.o): Likewise.
22426 (build/vec.o, build/hash-table.o, build/inchash.o): Likewise.
22427 (build/gencondmd.o, build/genattr.o, build/genattr-common.o): Likewise.
22428 (build/genattrtab.o, build/genautomata.o, build/gencheck.o): Likewise.
22429 (build/gencodes.o, build/genconditions.o): Likewise.
22430 (build/genconfig.o, build/genconstants.o, build/genemit.o): Likewise.
22431 (build/genenums.o, build/genextract.o, build/genflags.o): Likewise.
22432 (build/gentarget-def.o, build/genmddeps.o, build/genopinit.o)
22433 (build/genoutput.o, build/genpeep.o, build/genpreds.o): Likewise.
22434 (build/genrecog.o, build/genmddump.o, build/genmatch.o): Likewise.
22435 (build/gencfn-macros.o, build/gcov-iov.o): Likewise.
22436 * coretypes.h: Include everything up to real.h for generators.
22437 Include insn-modes.h first. Include wide-int-print.h after
22438 wide-int.h. Include insn-modes-inline.h and then machmode.h.
22439 * machmode.h: Don't include insn-modes.h here.
22440 * function-tests.c: Remove includes of signop.h, machmode.h,
22441 double-int.h and wide-int.h.
22442 * rtl.h: Likewise.
22443 * gcc-rich-location.c: Remove includes of machmode.h, double-int.h
22444 and wide-int.h.
22445 * optc-save-gen.awk: Likewise.
22446 * gencheck.c (BITS_PER_UNIT): Delete dummy definition.
22447 * godump.c: Remove include of wide-int-print.h.
22448 * pretty-print.h: Likewise.
22449 * wide-int-print.cc: Likewise.
22450 * wide-int.cc: Likewise.
22451 * hash-map-tests.c: Remove include of signop.h.
22452 * hash-set-tests.c: Likewise.
22453 * rtl-tests.c: Likewise.
22454 * mkconfig.sh: Remove include of machmode.h.
22455 * genmodes.c (emit_insn_modes_h): Split emission of inline functions
22456 into...
22457 (emit_insn_modes_inline_h): ...this new function. Emit the code
22458 into an insn-modes-inline.h header file, adding appropriate
22459 include guards and end comments.
22460 (emit_insn_modes_c_header): Remove include of machmode.h.
22461 (emit_min_insn_modes_c_header): Include coretypes.h rather than
22462 machmode.h.
22463 (main): Handle -i flag and call emit_insn_modes_inline_h when
22464 it is passed.
22465
22466 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
22467
22468 * tree-ssa-strlen.c (strinfo): Rename the length field to
22469 nonzero_chars. Add a full_string_p field.
22470 (compare_nonzero_chars, zero_length_string_p): New functions.
22471 (get_addr_stridx): Add an offset_out parameter.
22472 Use compare_nonzero_chars.
22473 (get_stridx): Update accordingly. Use compare_nonzero_chars.
22474 (new_strinfo): Update after above changes to strinfo.
22475 (set_endptr_and_length): Set full_string_p.
22476 (get_string_length): Update after above changes to strinfo.
22477 (unshare_strinfo): Update call to new_strinfo.
22478 (maybe_invalidate): Likewise.
22479 (get_stridx_plus_constant): Change off to unsigned HOST_WIDE_INT.
22480 Use compare_nonzero_chars and zero_string_p. Treat nonzero_chars
22481 as a uhwi instead of an shwi. Update after above changes to
22482 strinfo and new_strinfo.
22483 (zero_length_string): Assert that chainsi contains full strings.
22484 Use zero_length_string_p. Update call to new_strinfo.
22485 (adjust_related_strinfos): Update after above changes to strinfo.
22486 Copy full_string_p from origsi.
22487 (adjust_last_stmt): Use zero_length_string_p.
22488 (handle_builtin_strlen): Update after above changes to strinfo and
22489 new_strinfo. Install the lhs as the string length if the previous
22490 entry didn't describe a full string.
22491 (handle_builtin_strchr): Update after above changes to strinfo
22492 and new_strinfo.
22493 (handle_builtin_strcpy): Likewise.
22494 (handle_builtin_strcat): Likewise.
22495 (handle_builtin_malloc): Likewise.
22496 (handle_pointer_plus): Likewise.
22497 (handle_builtin_memcpy): Likewise. Track nonzero characters
22498 that aren't necessarily followed by a nul terminator.
22499 (handle_char_store): Likewise.
22500
22501 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
22502
22503 PR tree-optimization/80769
22504 * tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
22505 for malloc and calloc. Document the new invariant that all related
22506 strinfos have delayed lengths or none do.
22507 (verify_related_strinfos): Move earlier in file.
22508 (set_endptr_and_length): New function, split out from...
22509 (get_string_length): ...here. Also set the lengths of related
22510 strinfos.
22511 (zero_length_string): Assert that chainsi has known (rather than
22512 delayed) lengths.
22513 (adjust_related_strinfos): Likewise.
22514
22515 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
22516
22517 PR tree-optimization/81136
22518 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Only
22519 assert that two references with the same misalignment have the same
22520 compile-time misalignment if those compile-time misalignments
22521 are known.
22522
22523 2017-07-01 Andi Kleen <ak@linux.intel.com>
22524
22525 * print-tree.c (print_node): Print all attributes.
22526
22527 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
22528
22529 * cfg.c (scale_bbs_frequencies): New function.
22530 * cfg.h (scale_bbs_frequencies): Declare it.
22531 * cfgloopanal.c (single_likely_exit): Cleanup.
22532 * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability
22533 as parameter.
22534 (scale_loop_profile): Likewise.
22535 (loop_version): Likewise.
22536 (create_empty_loop_on_edge): Update.
22537 * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile,
22538 scale_loop_frequencies, scale_loop_profile, loopify,
22539 loop_version): Update prototypes.
22540 * modulo-sched.c (sms_schedule): Update.
22541 * predict.c (unlikely_executed_edge_p): Also check probability.
22542 (probably_never_executed_edge_p): Fix typo.
22543 * tree-if-conv.c (version_loop_for_if_conversion): Update.
22544 * tree-parloops.c (gen_parallel_loop): Update.
22545 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update.
22546 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
22547 * tree-ssa-loop-split.c (split_loop): Update.
22548 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
22549 * tree-vect-loop-manip.c (vect_do_peeling): Update.
22550 (vect_loop_versioning): Update.
22551 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
22552
22553 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
22554
22555 * trans-mem.c (split_bb_make_tm_edge): Update profile.
22556
22557 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
22558
22559 * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
22560 to keep profile consistent.
22561
22562 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
22563
22564 * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
22565 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
22566 * profile-count.h (max_safe_multiplier): Make unsigned.
22567 (profile_count::guessed_zero): New.
22568
22569 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
22570
22571 * bb-reorder.c (fix_up_crossing_landing_pad,
22572 fix_crossing_conditional_branches): Use make_single_succ_edge
22573 to keep profile consistent.
22574
22575 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
22576
22577 * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
22578 to update profile.
22579
22580 2017-07-01 Jakub Jelinek <jakub@redhat.com>
22581
22582 PR sanitizer/81262
22583 * bb-reorder.c (fix_up_fall_thru_edges): Move variable declarations to
22584 the right scopes, make sure cond_jump isn't preserved between multiple
22585 iterations. Search for fallthru edge whenever there are 3+ edges and
22586 use find_fallthru_edge for it.
22587
22588 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
22589
22590 Patch by Alexander Monakov <amonakov@ispras.ru>
22591 * sel-sched-ir.c (compute_succs_info): Handle uninitialized
22592 probabilities consistently.
22593
22594 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
22595
22596 * pa.c (pa_expand_compare_and_swap_loop): Update call of
22597 emit_cmp_and_jump_insns.
22598
22599 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
22600
22601 PR ipa/81261
22602 * tree-inline.c (expand_call_inline): Combine profile statuses.
22603
22604 2017-06-30 Andrew Pinski <apinski@cavium.com>
22605
22606 * tree-if-conv.c (predicate_scalar_phi): Update new_stmt if
22607 fold_stmt returned true.
22608
22609 2017-06-30 Nathan Sidwell <nathan@acm.org>
22610
22611 * ggc.h (empty_string): Delete.
22612 * cfgexpand.c (expand_asm_stmt): Use plain "".
22613 * optabs.c (expand_asm_memory_barrier): Likewise.
22614 * stringpool.c (empty_string): Delete.
22615 (digit_vector, digit_string): Delete.
22616 (ggc_alloc_string): Use plain "", don't optimize single digit
22617 strings. Use ggc_alloc_atomic.
22618
22619 2017-06-30 Richard Earnshaw <rearnsha@arm.com>
22620
22621 * rtlanal.c (insn_rtx_cost): If a parallel contains exactly one
22622 comparison set and one other set, use the cost of the non-comparison
22623 set.
22624
22625 2017-06-30 Nathan Sidwell <nathan@acm.org>
22626
22627 * ggc.h: Replace all 'static inline' with plain 'inline'. Fix
22628 some formatting.
22629
22630 2017-06-30 Peter Bergner <bergner@vnet.ibm.com>
22631
22632 * tree-cfg.c (group_case_labels_stmt): Merge scanning and compressing
22633 loops. Remove now unneeded calls to gimple_switch_set_label() that
22634 just set removed labels to NULL_TREE.
22635
22636 2017-06-30 Aldy Hernandez <aldyh@redhat.com>
22637
22638 * tree-ssanames.c (set_range_info_raw): Abstract from ...
22639 (set_range_info): ...here. Only call set_range_info_raw if domain
22640 is useful.
22641 (set_nonzero_bits): Call set_range_info_raw.
22642 * tree-ssanames.h (set_range_info_raw): New.
22643
22644 2017-06-30 Jakub Jelinek <jakub@redhat.com>
22645
22646 PR target/81225
22647 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For V8FI,
22648 V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
22649 of nonimmediate_operand and <store_mask_constraint> instead of m
22650 for the input operand. For V8FI iterator, always split if input
22651 is a MEM. For V16FI and V8SF_256 iterators, don't test if both
22652 operands are MEM if <mask_applied>. For VI4F_256 iterator, use
22653 <store_mask_predicate> instead of register_operand and
22654 <store_mask_constraint> instead of v for the input operand. Make
22655 sure both operands aren't MEMs for if not <mask_applied>.
22656
22657 2017-06-30 Sylvestre Ledru <sylvestre@debian.org>
22658
22659 * lto-wrapper.c (copy_file) Close both file descriptors before
22660 exiting normally.
22661
22662 2017-06-30 Martin Liska <mliska@suse.cz>
22663
22664 PR ipa/81214
22665 * multiple_target.c (create_dispatcher_calls): Make ifunc
22666 also for function that don't have calls or are not referenced.
22667
22668 2017-06-30 Richard Biener <rguenther@suse.de>
22669
22670 * tree-vect-slp.c (vect_slp_analyze_node_operations): Only
22671 analyze the first scalar stmt. Move vector type computation
22672 for the BB case here from ...
22673 * tree-vect-stmts.c (vect_analyze_stmt): ... here. Guard
22674 live operation processing in the SLP case properly.
22675
22676 2017-06-30 Richard Biener <rguenther@suse.de>
22677
22678 * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
22679
22680 2017-06-30 Martin Liska <mliska@suse.cz>
22681
22682 PR sanitizer/81021
22683 * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
22684 before BUILT_IN_UNWIND_RESUME when ASAN is used.
22685
22686 2017-06-30 Yvan Roux <yvan.roux@linaro.org>
22687
22688 * doc/invoke.texi (AArch64): Add missing options and remove redundant
22689 ones.
22690
22691 2017-06-30 Richard Biener <rguenther@suse.de>
22692
22693 PR tree-optimization/81249
22694 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
22695 condition reduction result to original scalar type.
22696
22697 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22698
22699 * profile-count.h (enum profile_quality): Fix typos and whitespace
22700 issues.
22701
22702 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22703
22704 * config/s390/s390.c (s390_expand_setmem): Adjust to the new data
22705 type for branch probabilities.
22706
22707 2017-06-29 Julian Brown <julian@codesourcery.com>
22708 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
22709
22710 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
22711 * config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
22712 (thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
22713 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
22714
22715 2017-06-29 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
22716
22717 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
22718 check for CC usage into AARCH64_FUSE_CMP_BRANCH.
22719 * config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
22720 CC usage from generic code to here.
22721 * sched-deps.c (sched_macro_fuse_insns): Move the condition for
22722 CC usage into the target macros.
22723
22724 2017-06-29 Maya Rashish <coypu@sdf.org>
22725
22726 * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
22727 objects.
22728
22729 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
22730
22731 * arm/arm-builtins.c: Include profile-count.h
22732 * except.c (sjlj_emit_function_enter): Use
22733 profile_probability::unlikely.
22734
22735 2017-06-29 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
22736
22737 * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
22738 and tocrel_offset be pointer args rather than implicitly using
22739 static versions.
22740 (legitimate_constant_pool_address_p, rs6000_emit_move,
22741 const_load_sequence_p, adjust_vperm): Add local tocrel_base and
22742 tocrel_offset and use in toc_relative_expr_p call.
22743 (print_operand, print_operand_address): Use static tocrel_base_oac
22744 and tocrel_offset_oac.
22745 (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
22746 tocrel_offset_oac.
22747
22748 2017-06-29 Maya Rashish <coypu@sdf.org>
22749
22750 * config/vax/builtins.md (ffssi2_internal): Correct constraint.
22751
22752 2017-06-29 Eric Botcazou <ebotcazou@adacore.com>
22753
22754 * expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
22755 objects, take into account only the alignment of 'op0' and 'mode1' if
22756 'op0' is a MEM.
22757
22758 2017-06-29 Steve Ellcey <sellcey@cavium.com>
22759
22760 * ccmp.c (ccmp_tree_comparison_p): New function.
22761 (ccmp_candidate_p): Update to use above function.
22762 (get_compare_parts): New function.
22763 (expand_ccmp_next): Update to use new functions.
22764 (expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
22765 new functions.
22766 (expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
22767 take mode as argument.
22768 * ccmp.h (expand_ccmp_expr): Add mode as argument.
22769 * expr.c (expand_expr_real_1): Pass mode as argument.
22770
22771 2017-06-29 Segher Boessenkool <segher@kernel.crashing.org>
22772
22773 * combine.c (combine_instructions): Print insns to dump_file, together
22774 with their costs.
22775
22776 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
22777
22778 * asan.c (asan_emit_stack_protection): Update.
22779 (create_cond_insert_point): Update.
22780 * auto-profile.c (afdo_propagate_circuit): Update.
22781 * basic-block.h (struct edge_def): Turn probability to
22782 profile_probability.
22783 (EDGE_FREQUENCY): Update.
22784 * bb-reorder.c (find_traces_1_round): Update.
22785 (better_edge_p): Update.
22786 (sanitize_hot_paths): Update.
22787 * cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
22788 (make_single_succ_edge): Update.
22789 (check_bb_profile): Update.
22790 (dump_edge_info): Update.
22791 (update_bb_profile_for_threading): Update.
22792 * cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
22793 probabilitycount to 0.
22794 * cfgbuild.c (compute_outgoing_frequencies): Update.
22795 * cfgcleanup.c (try_forward_edges): Update.
22796 (outgoing_edges_match): Update.
22797 (try_crossjump_to_edge): Update.
22798 * cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
22799 (expand_gimple_tailcall): Update.
22800 (construct_init_block): Use make_single_succ_edge.
22801 (construct_exit_block): Use make_single_succ_edge.
22802 * cfghooks.c (verify_flow_info): Update.
22803 (redirect_edge_succ_nodup): Update.
22804 (split_edge): Update.
22805 (account_profile_record): Update.
22806 * cfgloopanal.c (single_likely_exit): Update.
22807 * cfgloopmanip.c (scale_loop_profile): Update.
22808 (set_zero_probability): Remove.
22809 (duplicate_loop_to_header_edge): Update.
22810 * cfgloopmanip.h (loop_version): Update prototype.
22811 * cfgrtl.c (try_redirect_by_replacing_jump): Update.
22812 (force_nonfallthru_and_redirect): Update.
22813 (update_br_prob_note): Update.
22814 (rtl_verify_edges): Update.
22815 (purge_dead_edges): Update.
22816 (rtl_lv_add_condition_to_bb): Update.
22817 * cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
22818 * cgraphunit.c (init_lowered_empty_function): Update.
22819 (cgraph_node::expand_thunk): Update.
22820 * cilk-common.c: Include profile-count.h
22821 * dojump.c (inv): Remove.
22822 (jumpifnot): Update.
22823 (jumpifnot_1): Update.
22824 (do_jump_1): Update.
22825 (do_jump): Update.
22826 (do_jump_by_parts_greater_rtx): Update.
22827 (do_compare_rtx_and_jump): Update.
22828 * dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
22829 do_jump_1. do_compare_rtx_and_jump): Update prototype.
22830 * dwarf2cfi.c: Include profile-count.h
22831 * except.c (dw2_build_landing_pads): Use make_single_succ_edge.
22832 (sjlj_emit_dispatch_table): Likewise.
22833 * explow.c: Include profile-count.h
22834 * expmed.c (emit_store_flag_force): Update.
22835 (do_cmp_and_jump): Update.
22836 * expr.c (compare_by_pieces_d::generate): Update.
22837 (compare_by_pieces_d::finish_mode): Update.
22838 (emit_block_move_via_loop): Update.
22839 (store_expr_with_bounds): Update.
22840 (store_constructor): Update.
22841 (expand_expr_real_2): Update.
22842 (expand_expr_real_1): Update.
22843 * expr.h (try_casesi, try_tablejump): Update prototypes.
22844 * gimple-pretty-print.c (dump_probability): Update.
22845 (dump_profile): New.
22846 (dump_gimple_label): Update.
22847 (dump_gimple_bb_header): Update.
22848 * graph.c (draw_cfg_node_succ_edges): Update.
22849 * hsa-gen.c (convert_switch_statements): Update.
22850 * ifcvt.c (cheap_bb_rtx_cost_p): Update.
22851 (find_if_case_1): Update.
22852 (find_if_case_2): Update.
22853 * internal-fn.c (expand_arith_overflow_result_store): Update.
22854 (expand_addsub_overflow): Update.
22855 (expand_neg_overflow): Update.
22856 (expand_mul_overflow): Update.
22857 (expand_vector_ubsan_overflow): Update.
22858 * ipa-cp.c (good_cloning_opportunity_p): Update.
22859 * ipa-split.c (split_function): Use make_single_succ_edge.
22860 * ipa-utils.c (ipa_merge_profiles): Update.
22861 * loop-doloop.c (add_test): Update.
22862 (doloop_modify): Update.
22863 * loop-unroll.c (compare_and_jump_seq): Update.
22864 (unroll_loop_runtime_iterations): Update.
22865 * lra-constraints.c (lra_inheritance): Update.
22866 * lto-streamer-in.c (input_cfg): Update.
22867 * lto-streamer-out.c (output_cfg): Update.
22868 * mcf.c (adjust_cfg_counts): Update.
22869 * modulo-sched.c (sms_schedule): Update.
22870 * omp-expand.c (expand_omp_for_init_counts): Update.
22871 (extract_omp_for_update_vars): Update.
22872 (expand_omp_ordered_sink): Update.
22873 (expand_omp_for_ordered_loops): Update.
22874 (expand_omp_for_generic): Update.
22875 (expand_omp_for_static_nochunk): Update.
22876 (expand_omp_for_static_chunk): Update.
22877 (expand_cilk_for): Update.
22878 (expand_omp_simd): Update.
22879 (expand_omp_taskloop_for_outer): Update.
22880 (expand_omp_taskloop_for_inner): Update.
22881 * omp-simd-clone.c (simd_clone_adjust): Update.
22882 * optabs.c (expand_doubleword_shift): Update.
22883 (expand_abs): Update.
22884 (emit_cmp_and_jump_insn_1): Update.
22885 (expand_compare_and_swap_loop): Update.
22886 * optabs.h (emit_cmp_and_jump_insns): Update prototype.
22887 * predict.c (predictable_edge_p): Update.
22888 (edge_probability_reliable_p): Update.
22889 (set_even_probabilities): Update.
22890 (combine_predictions_for_insn): Update.
22891 (combine_predictions_for_bb): Update.
22892 (propagate_freq): Update.
22893 (estimate_bb_frequencies): Update.
22894 (force_edge_cold): Update.
22895 * profile-count.c (profile_count::dump): Add missing space into dump.
22896 (profile_count::debug): Add newline.
22897 (profile_count::differs_from_p): Explicitly convert to unsigned.
22898 (profile_count::stream_in): Update.
22899 (profile_probability::dump): New member function.
22900 (profile_probability::debug): New member function.
22901 (profile_probability::differs_from_p): New member function.
22902 (profile_probability::differs_lot_from_p): New member function.
22903 (profile_probability::stream_in): New member function.
22904 (profile_probability::stream_out): New member function.
22905 * profile-count.h (profile_count_quality): Rename to ...
22906 (profile_quality): ... this one.
22907 (profile_probability): New.
22908 (profile_count): Update.
22909 * profile.c (compute_branch_probabilities): Update.
22910 * recog.c (peep2_attempt): Update.
22911 * sched-ebb.c (schedule_ebbs): Update.
22912 * sched-rgn.c (find_single_block_region): Update.
22913 (compute_dom_prob_ps): Update.
22914 (schedule_region): Update.
22915 * sel-sched-ir.c (compute_succs_info): Update.
22916 * stmt.c (struct case_node): Update.
22917 (do_jump_if_equal): Update.
22918 (get_outgoing_edge_probs): Update.
22919 (conditional_probability): Update.
22920 (emit_case_dispatch_table): Update.
22921 (expand_case): Update.
22922 (expand_sjlj_dispatch_table): Update.
22923 (emit_case_nodes): Update.
22924 * targhooks.c: Update.
22925 * tracer.c (better_p): Update.
22926 (find_best_successor): Update.
22927 * trans-mem.c (expand_transaction): Update.
22928 * tree-call-cdce.c: Update.
22929 * tree-cfg.c (gimple_split_edge): Upate.
22930 (move_sese_region_to_fn): Upate.
22931 * tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
22932 * tree-eh.c (lower_resx): Upate.
22933 (cleanup_empty_eh_move_lp): Upate.
22934 * tree-if-conv.c (version_loop_for_if_conversion): Update.
22935 * tree-inline.c (copy_edges_for_bb): Update.
22936 (copy_cfg_body): Update.
22937 * tree-parloops.c (gen_parallel_loop): Update.
22938 * tree-profile.c (gimple_gen_ic_func_profiler): Update.
22939 (gimple_gen_time_profiler): Update.
22940 * tree-ssa-dce.c (remove_dead_stmt): Update.
22941 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
22942 * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
22943 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
22944 (unloop_loops): Update.
22945 (try_peel_loop): Update.
22946 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
22947 * tree-ssa-loop-split.c (connect_loops): Update.
22948 (split_loop): Update.
22949 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
22950 (hoist_guard): Update.
22951 * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
22952 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
22953 (value_replacement): Update.
22954 * tree-ssa-reassoc.c (branch_fixup): Update.
22955 * tree-ssa-tail-merge.c (replace_block_by): Update.
22956 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
22957 (create_edge_and_update_destination_phis): Update.
22958 (compute_path_counts): Update.
22959 (recompute_probabilities): Update.
22960 (update_joiner_offpath_counts): Update.
22961 (freqs_to_counts_path): Update.
22962 (duplicate_thread_path): Update.
22963 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
22964 (struct switch_conv_info): Update.
22965 (gen_inbound_check): Update.
22966 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
22967 (vect_do_peeling): Update.
22968 (vect_loop_versioning): Update.
22969 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
22970 (optimize_mask_stores): Update.
22971 * ubsan.c (ubsan_expand_null_ifn): Update.
22972 * value-prof.c (gimple_divmod_fixed_value): Update.
22973 (gimple_divmod_fixed_value_transform): Update.
22974 (gimple_mod_pow2): Update.
22975 (gimple_mod_pow2_value_transform): Update.
22976 (gimple_mod_subtract): Update.
22977 (gimple_mod_subtract_transform): Update.
22978 (gimple_ic): Update.
22979 (gimple_stringop_fixed_value): Update.
22980 (gimple_stringops_transform): Update.
22981 * value-prof.h: Update.
22982
22983 2017-06-29 Carl Love <cel@us.ibm.com>
22984
22985 * config/rs6000/rs6000-c.c: Add support for built-in functions
22986 vector signed int vec_signed (vector float);
22987 vector signed long long vec_signed (vector double);
22988 vector signed int vec_signed2 (vector double, vector double);
22989 vector signed int vec_signede (vector double);
22990 vector signed int vec_signedo (vector double);
22991 * config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
22992 instruction generator.
22993 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
22994 UNSPEC_VSX_VSIGNED2): Add UNSPECS.
22995 (vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
22996 Add define_insn.
22997 (vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
22998 vunsignede_v2df): Add define_expands.
22999 * config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
23000 VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
23001 VEC_UNSIGNEDO): Add definitions.
23002 * config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
23003 UNSPEC_VSX_VSIGNED2): Add UNSPECs.
23004 (vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
23005 (vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
23006 vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
23007 * config/rs6000/altivec.h (vec_signed, vec_signed2,
23008 vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
23009 vec_unsignede, vec_unsignedo): Add builtin defines.
23010 * config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
23011 declaration.
23012 * doc/extend.texi: Update the built-in documentation file for the
23013 new built-in functions.
23014
23015 2017-06-29 Richard Biener <rguenther@suse.de>
23016
23017 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
23018 reduction chains to LOOP_VINFO_REDUCTIONS.
23019 * tree-vect-slp.c (vect_analyze_slp): Continue looking for
23020 SLP reductions after processing reduction chains.
23021
23022 2017-06-29 Nathan Sidwell <nathan@acm.org>
23023
23024 * builtins.c (fold_builtin_FUNCTION): Use
23025 lang_hooks.decl_printable_name.
23026
23027 2017-06-29 Peter Bergner <bergner@vnet.ibm.com>
23028
23029 PR middle-end/81194
23030 * cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
23031 with only one label.
23032 * stmt.c (expand_case): Assert NCASES is greater than one.
23033
23034 2017-06-29 Richard Biener <rguenther@suse.de>
23035
23036 * tree-cfg.c (group_case_labels_stmt): Return whether we changed
23037 anything.
23038 (group_case_labels): Likewise.
23039 (find_taken_edge): Push sanity checking on val to workers...
23040 (find_taken_edge_cond_expr): ... here
23041 (find_taken_edge_switch_expr): ... and here, handle cases
23042 with just a default label.
23043 * tree-cfg.h (group_case_labels_stmt): Adjust prototype.
23044 (group_case_labels): Likewise.
23045 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
23046 group_case_labels does anything cleanup the CFG again.
23047
23048 2017-06-29 Bin Cheng <bin.cheng@arm.com>
23049
23050 PR tree-optimization/81196
23051 * tree-ssa-loop-niter.c (number_of_iterations_cond): Handle loop
23052 exit condition comparing two IVs.
23053
23054 2017-06-29 Richard Earnshaw <rearnsha@arm.com>
23055
23056 * config/arm/parsecpu.awk (gen_comm_data): Add initializer for
23057 profile to the dummy entry at the end of the list of architectures.
23058 * config/arm/arm-cpu-cdata.h: Regenerated.
23059
23060 2017-06-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23061 Michael Collison <michael.collison@arm.com>
23062
23063 PR target/70119
23064 * config/aarch64/aarch64.md (*aarch64_<optab>_reg_<mode>3_mask1):
23065 New pattern.
23066 (*aarch64_reg_<mode>3_neg_mask2): New pattern.
23067 (*aarch64_reg_<mode>3_minus_mask): New pattern.
23068 (*aarch64_<optab>_reg_di3_mask2): New pattern.
23069 * config/aarch64/aarch64.c (aarch64_rtx_costs): Account for cost
23070 of shift when the shift amount is masked with constant equal to
23071 the size of the mode.
23072 * config/aarch64/predicates.md (subreg_lowpart_operator): New
23073 predicate.
23074
23075 2017-06-29 Martin Liska <mliska@suse.cz>
23076
23077 * config/i386/i386.opt: Change range from [1,5] to [0,5].
23078
23079 2017-06-29 Yury Gribov <tetra2005@gmail.com>
23080
23081 PR bootstrap/80565
23082 * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization
23083 code.
23084 * ipa-inline.h
23085 (edge_growth_cache_entry::edge_growth_cache_entry): New
23086 function.
23087 (reset_edge_growth_cache): Update to use constructor.
23088
23089 2017-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23090
23091 * config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
23092 (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
23093 (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
23094
23095 2017-06-28 Sebastian Peryt <sebastian.peryt@intel.com>
23096
23097 * config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
23098 (_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.
23099
23100 2017-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
23101
23102 * config.gcc (*-linux-musl*): Add t-musl tmake_file.
23103 (*-linux-uclibc*): Add t-uclibc tmake_file.
23104 * config/t-musl: New.
23105 * config/t-uclibc: New.
23106
23107 2017-06-28 Richard Earnshaw <rearnsha@arm.com>
23108
23109 * config/arm/parsecpu.awk (profile): Parse new keyword in an arch
23110 context.
23111 (gen_comm_data): Emit architectural setting of arch_prof.
23112 * config/arm/arm-cpus.in (armv6-m, armv6s-m, armv7-a, armv7ve): Set the
23113 profile.
23114 (armv7-r, armv7-m, armv7e-m, armv8-a, armv8.1-a, armv8.2-a): Likewise.
23115 (armv8-m.base, armv8-m.main): Likewise.
23116 * arm-protos.h (arm_build_target): Add profile field.
23117 (arch_option): Likewise.
23118 * config/arm/arm.c (arm_configure_build_target): Copy the profile to
23119 the active target.
23120 * config/arm/arm.h (TARGET_ARM_ARCH_PROFILE): Use
23121 arm_active_target.profile.
23122
23123 2017-06-28 Richard Biener <rguenther@suse.de>
23124
23125 PR middle-end/81227
23126 * fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
23127 TYPE_OVERFLOW_WRAPS.
23128 * match.pd (negate_expr_p): Likewise.
23129 * tree-ssa-reassoc.c (optimize_range_tests_diff): Use
23130 fold_build2, not fold_binary.
23131
23132 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
23133
23134 * config/aarch64/aarch64 (aarch64_expand_mov_immediate):
23135 Convert memory address to Pmode.
23136 (aarch64_print_operand): Assert MEM operands are always Pmode.
23137
23138 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
23139
23140 PR target/79665
23141 * config/arm/aarch-common.c (arm_no_early_alu_shift_dep):
23142 Remove redundant if.
23143 (aarch_forward_to_shift_is_not_shifted_reg): Remove.
23144 * config/arm/aarch-common-protos.h
23145 (aarch_forward_to_shift_is_not_shifted_re): Remove.
23146 * config/arm/cortex-a53.md: Use arm_no_early_alu_shift_dep in bypass.
23147
23148 2017-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
23149
23150 PR ipa/81238
23151 * multiple_target.c (create_dispatcher_calls): Set the default
23152 clone to be static, not public.
23153
23154 2017-06-28 Richard Biener <rguenther@suse.de>
23155
23156 * tree-vect-loop.c (vectorizable_reduction): Move special
23157 cond reduction IV var creation ...
23158 (vect_create_epilog_for_reduction): ... here. Remove induction_index
23159 parameter. Use STMT_VINFO_VECTYPE.
23160 * tree-vect-slp.c (vect_get_constant_vectors): Properly reset
23161 constant_p.
23162
23163 2017-06-28 Martin Liska <mliska@suse.cz>
23164
23165 PR ipa/81128
23166 * ipa-visibility.c (non_local_p): Handle visibility.
23167
23168 2017-06-28 Martin Liska <mliska@suse.cz>
23169
23170 PR driver/79659
23171 * common.opt: Add IntegerRange to various options.
23172 * opt-functions.awk (integer_range_info): New function.
23173 * optc-gen.awk: Add integer_range_info to cl_options struct.
23174 * opts-common.c (decode_cmdline_option): Handle
23175 CL_ERR_INT_RANGE_ARG.
23176 (cmdline_handle_error): Likewise.
23177 * opts.c (print_filtered_help): Show valid interval in
23178 when --help is provided.
23179 * opts.h (struct cl_option): Add range_min and range_max fields.
23180 * config/i386/i386.opt: Add IntegerRange for -mbranch-cost.
23181
23182 2017-06-28 Marc Glisse <marc.glisse@inria.fr>
23183
23184 * match.pd ((X & ~Y) | (~X & Y)): Generalize to + and ^.
23185 (x * C EQ/NE y * C): New transformation.
23186
23187 2017-06-28 Christophe Lyon <christophe.lyon@linaro.org>
23188
23189 * genmultilib (combination_space): Accept '+' in option names.
23190
23191 2017-06-28 Martin Liska <mliska@suse.cz>
23192
23193 PR sanitizer/81224
23194 * asan.c (instrument_derefs): Bail out inner references
23195 that are hard register variables.
23196
23197 2017-06-28 Jakub Jelinek <jakub@redhat.com>
23198
23199 PR target/81175
23200 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use def_builtin
23201 rather than def_builtin_pure for __builtin_ia32_gatherpf*.
23202
23203 2017-06-28 Richard Biener <rguenther@suse.de>
23204
23205 * tree-vectorizer.h (vect_get_vec_defs): Remove.
23206 (vect_get_slp_defs): Adjust.
23207 * tree-vect-loop.c (get_initial_defs_for_reduction): Split
23208 out from ...
23209 * tree-vect-slp.c (vect_get_constant_vectors): ... here and
23210 simplify.
23211 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
23212 get_initial_defs_for_reduction instead of vect_get_vec_defs.
23213 (vectorizable_reduction): Adjust.
23214 * tree-vect-slp.c (vect_get_constant_vectors): Remove reduction
23215 handling.
23216 (vect_get_slp_defs): Likewise.
23217 * tree-vect-stmts.c (vect_get_vec_defs): Make static and adjust.
23218 (vectorizable_bswap): Adjust.
23219 (vectorizable_call): Likewise.
23220 (vectorizable_conversion): Likewise.
23221 (vectorizable_assignment): Likewise.
23222 (vectorizable_shift): Likewise.
23223 (vectorizable_operation): Likewise.
23224 (vectorizable_store): Likewise.
23225 (vectorizable_condition): Likewise.
23226 (vectorizable_comparison): Likewise.
23227
23228 2017-06-28 Michael Collison <michael.collison@arm.com>
23229
23230 PR target/68535
23231 * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
23232 set of base_reg
23233 (arm_gen_movmemqi): Removed unused variable 'i'.
23234 Convert 'for' loop into 'while' loop.
23235 (arm_expand_prologue): Remove last unnecessary set of insn.
23236 (thumb_pop): Remove unused variable 'pushed_words'.
23237 (thumb_exit): Remove last unnecessary set of regs_to_pop.
23238
23239 2017-06-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23240
23241 * config/s390/predicates.md: Use s390_rel_address_ok_p.
23242 * config/s390/s390-protos.h: Add prototype of
23243 s390_rel_address_ok_p.
23244 * config/s390/s390.c (s390_got_symbol): New function.
23245 (s390_rel_address_ok_p): New function.
23246 (legitimize_pic_address): Use s390_rel_address_ok_p.
23247 (s390_load_got): Use s390_got_symbol.
23248 (s390_option_override): Issue error if
23249 -mno-pic-data-is-text-relative is used without -fpic/-fPIC.
23250 * config/s390/s390.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
23251 New macro.
23252 * config/s390/s390.opt: New option mpic-data-is-text-relative.
23253
23254 2017-06-27 Andrew Pinski <apinski@cavium.com>
23255
23256 * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
23257 (X * copysign (1.0, X)): New pattern.
23258 (X * copysign (1.0, -X)): New pattern.
23259 (copysign (-1.0, CST)): New pattern.
23260
23261 2017-06-27 Joseph Myers <joseph@codesourcery.com>
23262
23263 * genmultilib (combination_space): Remove variable.
23264 Validate reuse rules against regular expression for any sequence
23265 of multilib options in any order.
23266
23267 2017-06-27 Michael Collison <michael.collison@arm.com>
23268
23269 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Directly
23270 call aarch64_split_simd_combine.
23271 * (aarch64_combine_internal<mode>): Delete pattern.
23272 * config/aarch64/aarch64.c (aarch64_split_simd_combine):
23273 Allow register and subreg operands.
23274
23275 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
23276
23277 * config/i386/vxworks.h (ASM_SPEC): Remove definition. No target
23278 specific need, just fallback on defaults.
23279 (ASM_OUTPUT_ALIGNED_BSS): Add #undef before #define.
23280
23281 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
23282 Olivier Hainque <hainque@adacore.com>
23283
23284 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
23285 map for 64bits.
23286 (TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
23287 targets. Pick a default if no particular attempt applied.
23288 (STACK_CHECK_PROTECT): Double for 64bit targets, which have
23289 larger contexts.
23290
23291 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
23292
23293 * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
23294 (x86_64-wrs-vxworks7): Likewise.
23295
23296 2017-06-27 Marek Polacek <polacek@redhat.com>
23297
23298 PR sanitizer/81223
23299 * ubsan.c (instrument_null): Check get_base_address's result for null.
23300
23301 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
23302
23303 * match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.
23304
23305 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
23306
23307 * builtin-types.def (BT_FENV_T_PTR, BT_CONST_FENV_T_PTR,
23308 BT_FEXCEPT_T_PTR, BT_CONST_FEXCEPT_T_PTR): New primitive types.
23309 (BT_FN_INT_FENV_T_PTR, BT_FN_INT_CONST_FENV_T_PTR,
23310 BT_FN_INT_FEXCEPT_T_PTR_INT, BT_FN_INT_CONST_FEXCEPT_T_PTR_INT):
23311 New function types.
23312 * builtins.def (BUILT_IN_FECLEAREXCEPT, BUILT_IN_FEGETENV,
23313 BUILT_IN_FEGETEXCEPTFLAG, BUILT_IN_FEGETROUND,
23314 BUILT_IN_FEHOLDEXCEPT, BUILT_IN_FERAISEEXCEPT,
23315 BUILT_IN_FESETENV, BUILT_IN_FESETEXCEPTFLAG,
23316 BUILT_IN_FESETROUND, BUILT_IN_FETESTEXCEPT,
23317 BUILT_IN_FEUPDATEENV): New builtins.
23318 * tree-core.h (TI_FENV_T_PTR_TYPE, TI_CONST_FENV_T_PTR_TYPE,
23319 TI_FEXCEPT_T_PTR_TYPE, TI_CONST_FEXCEPT_T_PTR_TYPE): New entries.
23320 * tree.h (fenv_t_ptr_type_node, const_fenv_t_ptr_type_node,
23321 fexcept_t_ptr_type_node, const_fexcept_t_ptr_type_node): New
23322 macros.
23323 (builtin_structptr_types): Adjust size.
23324 * tree.c (builtin_structptr_types): Add four entries.
23325
23326 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
23327 Olivier Hainque <hainque@adacore.com>
23328
23329 * config/vxworks.h (VXWORKS_LIB_SPEC): Incorporate ...
23330 (TLS_SYM): New local macro, forcing reference to __tls__ on
23331 link command lines for VxWorks 7 RTPs, triggering initialization
23332 of tlsLib.
23333 (VXWORKS_HAVE_TLS): New macro. State whether the target VxWorks
23334 OS features TLS support, true for RTPs on VxWorks 7.
23335 * config/vxworks.c (vxworks_override_options): Setup emutls
23336 accordingly.
23337
23338 2017-06-27 Jakub Jelinek <jakub@redhat.com>
23339
23340 * predict.c (test_prediction_value_range): Use -1U instead of -1
23341 to avoid narrowing conversion warning.
23342 * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast
23343 to avoid narrowing conversion warning.
23344 * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of
23345 -1.
23346 * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1.
23347
23348 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
23349
23350 * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for
23351 64bit configurations.
23352 (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64.
23353 (SIZE_TYPE): Likewise.
23354 * config/vxworks.c (vxworks_emutls_var_fields): Use
23355 long_unsigned_type_node instead of unsigned_type_node as the offset
23356 field type, which is "pointer" mode in emutls.c.
23357
23358 2017-06-27 Jakub Jelinek <jakub@redhat.com>
23359
23360 PR sanitizer/81209
23361 * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
23362
23363 PR middle-end/81207
23364 * gimple-fold.c (replace_call_with_call_and_fold): Handle
23365 gimple_vuse copying separately from gimple_vdef copying.
23366
23367 2017-06-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23368
23369 * value-prof.c (free_hist): Remove call to memset and the enclosing if
23370 condition.
23371
23372 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
23373 Olivier Hainque <hainque@adacore.com>
23374
23375 * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
23376 for all vxworks7 targets.
23377 * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
23378 (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
23379 (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
23380 variations for VX6/VX7 and 32/64bits later on in ...
23381 (VXWORKS_LIB_SPEC): Leverage new macros.
23382 (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
23383 as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
23384
23385 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
23386
23387 * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
23388 _VX_TOOL_FAMILY and _VX_TOOL to gnu.
23389
23390 2017-06-26 Carl Love <cel@us.ibm.com>
23391
23392 * config/rs6000/rs6000-c.c: Add support for built-in functions
23393 vector bool char vec_reve (vector bool char);
23394 vector signed char vec_reve (vector signed char);
23395 vector unsigned char vec_reve (vector unsigned char);
23396 vector bool int vec_reve (vector bool int);
23397 vector signed int vec_reve (vector signed int);
23398 vector unsigned int vec_reve (vector unsigned int);
23399 vector bool long long vec_reve (vector bool long long);
23400 vector signed long long vec_reve (vector signed long long);
23401 vector unsigned long long vec_reve (vector unsigned long long);
23402 vector bool short vec_reve (vector bool short);
23403 vector signed short vec_reve (vector signed short);
23404 vector double vec_reve (vector double);
23405 vector float vec_reve (vector float);
23406 * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
23407 VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
23408 * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
23409 (altivec_vreve): New pattern.
23410 * config/rs6000/altivec.h (vec_reve): New define.
23411 * doc/extend.texi (vec_rev): Update the built-in documentation file
23412 for the new built-in functions.
23413
23414 2016-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23415
23416 PR tree-optimization/71815
23417 * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
23418 function.
23419 (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
23420 has_single_use.
23421 (slsr_process_phi): Likewise.
23422 (replace_uncond_cands_and_profitable_phis): Don't replace a
23423 multiply candidate with a stride of 1 (copy or cast).
23424 (phi_incr_cost): Call uses_consumed_by_stmt rather than
23425 has_single_use.
23426 (lowest_cost_path): Likewise.
23427 (total_savings): Likewise.
23428
23429 2017-06-26 Richard Biener <rguenther@suse.de>
23430
23431 PR target/81175
23432 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
23433 Use def_builtin_pure for all gather builtins.
23434
23435 2017-06-26 Richard Biener <rguenther@suse.de>
23436
23437 PR tree-optimization/81203
23438 * tree-tailcall.c (find_tail_calls): Do not move stmts into
23439 non-dominating BBs.
23440
23441 2017-06-26 Marek Polacek <polacek@redhat.com>
23442
23443 PR c/80116
23444 * doc/invoke.texi: Document -Wmultistatement-macros.
23445
23446 2017-06-26 Christophe Lyon <christophe.lyon@linaro.org>
23447
23448 * doc/sourcebuild.texi (ARM-specific attributes): Document new
23449 arm_neon_ok_no_float_abi effective target.
23450
23451 2017-06-26 Richard Biener <rguenther@suse.de>
23452
23453 PR tree-optimization/80928
23454 * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
23455 (copy_bbs): Set BB_DUPLICATED flag early.
23456 (execute_on_growing_pred): Do not execute for BB_DUPLICATED
23457 marked blocks.
23458 (execute_on_shrinking_pred): Likewise.
23459 * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
23460 BB_DUPLICATED blocks.
23461 * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
23462 iterate over all PHIs considering removal of *gsi.
23463
23464 2017-06-23 Jim Wilson <jim.wilson@linaro.org>
23465
23466 * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
23467 qdf24xx.
23468
23469 2017-06-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
23470
23471 * config/rs6000/rs6000-string.c: (expand_block_clear,
23472 do_load_for_compare, select_block_compare_mode,
23473 compute_current_alignment, expand_block_compare,
23474 expand_strncmp_align_check, expand_strn_compare,
23475 expand_block_move, rs6000_output_load_multiple)
23476 Move functions related to string/block move/compare
23477 to a separate file.
23478 * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
23479 * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
23480 for this function which is now used in two files.
23481 * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
23482 * config.gcc: Add rs6000-string.o to extra_objs for
23483 targets powerpc*-*-* and rs6000*-*-*.
23484
23485 2017-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23486
23487 PR target/80510
23488 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
23489 32-bit, since indexed is not valid for DImode.
23490 (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
23491 3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
23492 (define_peephole2 for Altivec d-form load): Add 32-bit support.
23493 (define_peephole2 for Altivec d-form store): Likewise.
23494
23495 PR ipa/81185
23496 * multiple_target.c (create_dispatcher_calls): Only create the
23497 dispatcher call if the function is the default clone of a
23498 versioned function.
23499
23500 2017-06-23 Segher Boessenkool <segher@kernel.crashing.org>
23501
23502 PR middle-end/80902
23503 * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
23504 a call, force the call to not be a tail call.
23505
23506 2017-06-23 Jeff Law <law@redhat.com>
23507
23508 * doc/contrib.texi: Add entry for Steven Pemberton's work on
23509 enquire.
23510
23511 2017-06-23 Will Schmidt <will_schmidt@vnet.ibm.com>
23512
23513 * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
23514 update_call_from_tree(). (rs6000_gimple_fold_builtin): Add
23515 handling for early expansion of vector shifts (sl,sr,sra,rl).
23516 (builtin_function_type): Add vector shift right instructions
23517 to the unsigned argument list.
23518
23519 2017-06-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
23520
23521 rtl-optimizatoin/79286
23522 * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
23523 * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
23524 trap. PIC register plus a const unspec without offset can never trap.
23525
23526 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
23527
23528 * tree.h (builtin_structptr_type): New type.
23529 (builtin_structptr_types): Declare new array.
23530 * tree.c (builtin_structptr_types): New array.
23531 (free_lang_data, build_common_tree_nodes): Use it.
23532
23533 2017-06-23 Jonathan Wakely <jwakely@redhat.com>
23534
23535 PR c++/81187
23536 * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
23537 -Wnoexcept.
23538
23539 2017-06-22 Matt Turner <mattst88@gmail.com>
23540
23541 * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
23542 Lake models to skylake case. Assume skylake for unknown
23543 models with clflushopt.
23544
23545 2017-06-22 Jeff Law <law@redhat.com>
23546
23547 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
23548 frame sizes that do not satisfy aarch64_uimm12_shift.
23549
23550 2017-06-22 Jan Hubicka <hubicka@ucw.cz>
23551
23552 * profile-count.h (apply_probability,
23553 apply_scale, probability_in): Fix checks for zero.
23554
23555 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23556
23557 * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
23558 * doc/cppdiropts.texi (-I @var{dir}): Document it.
23559
23560 2016-06-22 Richard Biener <rguenther@suse.de>
23561
23562 * tree-vect-loop.c (vect_model_reduction_cost): Handle
23563 COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
23564 REDUC_MAX_EXPR support.
23565 (vectorizable_reduction): Likewise.
23566 (vect_create_epilog_for_reduction): Likewise.
23567
23568 2017-06-22 James Greenhalgh <james.greenhalgh@arm.com>
23569
23570 * match.pd (A / (1 << B) -> A >> B): New.
23571 * generic-match-head.c: Include optabs-tree.h.
23572 * gimple-match-head.c: Likewise.
23573 * optabs-tree.h (target_supports_op_p): New.
23574 * optabs-tree.c (target_supports_op_p): New.
23575
23576 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23577
23578 * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
23579 $gcc_cv_ld --help output.
23580 (gcc_cv_ld_demangle): Likewise.
23581 (gcc_cv_ld_eh_frame_hdr): Likewise.
23582 (gcc_cv_ld_pie): Likewise.
23583 (gcc_cv_ld_as_needed): Likewise. Prefer native forms unless $gnu_ld.
23584 (gcc_cv_ld_buildid): Likewise.
23585 (gcc_cv_ld_sysroot): Likewise.
23586 (ld_bndplt_support): Likewise.
23587 (ld_pushpopstate_support): Likewise.
23588 * configure: Regenerate.
23589 * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
23590
23591 2017-06-21 Jakub Jelinek <jakub@redhat.com>
23592
23593 PR target/81151
23594 * config/i386/sse.md (round<mode>2): Renumber match_dup and
23595 operands indexes to avoid gap between operands and match_dups.
23596
23597 2017-06-21 Andrew Pinski <apinski@cavium.com>
23598
23599 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
23600 Increment Arith_shift and Arith_shift_reg by 1.
23601 * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
23602 New tuning flag.
23603 * config/aarch64/aarch64.c (thunderx_tunings): Enable
23604 AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
23605 (aarch64_strip_extend): Add new argument and test for it.
23606 (aarch64_cheap_mult_shift_p): New function.
23607 (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
23608 add a cost if it is true.
23609 Update calls to aarch64_strip_extend.
23610 (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
23611
23612 2017-06-21 Andrew Pinski <apinski@cavium.com>
23613
23614 * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
23615 tunings.
23616 (thunderxt88): Likewise.
23617 * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
23618 (thunderx_prefetch_tune): New variable.
23619 (thunderx2t99_prefetch_tune): Update for the correct values.
23620 (thunderxt88_tunings): New variable.
23621 (thunderx_tunings): Use thunderx_prefetch_tune instead of
23622 generic_prefetch_tune.
23623 (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
23624
23625 2017-06-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23626
23627 * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
23628 SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
23629 (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
23630 (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
23631 (aarch64_atomic_cas<mode>, GPI): Likewise.
23632
23633 2017-06-21 Martin Liska <mliska@suse.cz>
23634
23635 * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
23636 statements on cold and hot labels.
23637 * predict.c (tree_estimate_probability_bb): Remove the
23638 prediction from this place.
23639
23640 2017-06-21 Martin Liska <mliska@suse.cz>
23641
23642 PR tree-optimization/79489
23643 * gimplify.c (maybe_add_early_return_predict_stmt): New
23644 function.
23645 (gimplify_return_expr): Call the function.
23646 * predict.c (tree_estimate_probability_bb): Remove handling
23647 of early return.
23648 * predict.def: Update comment about early return predictor.
23649 * gimple-predict.h (is_gimple_predict): New function.
23650 * predict.def: Change default value of early return to 66.
23651 * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
23652 statements.
23653 * passes.def: Put pass_strip_predict_hints to the beginning of
23654 IPA passes.
23655
23656 2017-06-21 Pierre-Marie de Rodat <derodat@adacore.com>
23657
23658 * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
23659 FUNCTION_DECL declarations.
23660 (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
23661 declarations.
23662 (dwaf2out_decl): Likewise.
23663 * godump.c (go_early_global_decl): Skip call to the real debug hook
23664 for FUNCTION_DECL declarations.
23665 * passes.c (rest_of_decl_compilation): Skip call to the
23666 early_global_decl debug hook for FUNCTION_DECL declarations, unless
23667 -fdump-go-spec is passed.
23668
23669 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
23670
23671 * config/i386/i386.c (struct builtin_isa): New field pure_p.
23672 Reorder for compactness.
23673 (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
23674 (def_builtin_pure, def_builtin_pure2): New functions.
23675 (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
23676
23677 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
23678
23679 * match.pd (nop_convert): New predicate.
23680 ((A +- CST1) +- CST2): Allow some NOP conversions.
23681
23682 2017-06-21 Jakub Jelinek <jakub@redhat.com>
23683
23684 PR c++/81130
23685 * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
23686 with ctors/dtors if GOVD_SHARED is set.
23687
23688 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
23689
23690 * config/aarch64/aarch64.md (movti_aarch64):
23691 Emit mov rather than orr.
23692 (movtf_aarch64): Likewise.
23693 * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
23694 Emit mov rather than orr.
23695
23696 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
23697
23698 * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
23699 Swap alternatives, make integer dup more expensive.
23700
23701 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
23702
23703 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
23704 Return true for non-tls symbols.
23705
23706 2017-06-21 James Greenhalgh <james.greenhalgh@arm.com>
23707
23708 * config/aarch64/aarch64-cores.def (cortex-a55): New.
23709 (cortex-a75): Likewise.
23710 (cortex-a75.cortex-a55): Likewise.
23711 * config/aarch64/aarch64-tune.md: Regenerate.
23712 * doc/invoke.texi (-mtune): Document new values for -mtune.
23713
23714 2017-06-21 Tom de Vries <tom@codesourcery.com>
23715
23716 * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
23717 stack_size feature.
23718 (Effective-Target Keywords, Other attributes): Suggest using
23719 dg-add-options stack_size feature to get stack limit in stack_size
23720 effective target documentation.
23721
23722 2017-06-21 Julian Brown <julian@codesourcery.com>
23723 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
23724
23725 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
23726 (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
23727 * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
23728 reservation.
23729 * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
23730 attribute type list for neon_multiply.
23731 * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
23732 attribute type list for neon_multiply.
23733 * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
23734 * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
23735 attribute type list for neon_multiply.
23736 * config/arm/types.md (crypto_pmull): Add.
23737 * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
23738 attribute type list.
23739
23740 2017-06-20 Andreas Tobler <andreast@gcc.gnu.org>
23741
23742 * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
23743 arm1176jzf-s.
23744
23745 2017-06-20 Jakub Jelinek <jakub@redhat.com>
23746
23747 * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
23748 to make sure not to dereference a NULL cost_classes_ptr pointer.
23749
23750 2017-06-20 Carl Love <cel@us.ibm.com>
23751
23752 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23753 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
23754 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
23755 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
23756 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
23757 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
23758 VMULOSW): New enum "unspec" values.
23759 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
23760 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
23761 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
23762 altivec_vmulosw): New patterns.
23763 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
23764 VMULOSW): Add definitions.
23765
23766 2017-06-20 Julia Koval <julia.koval@intel.com>
23767
23768 * config/i386/i386.c: Fix rounding expand for new pattern.
23769 * config/i386/subst.md: Fix pattern (parallel -> unspec).
23770
23771 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
23772
23773 * config/aarch64/aarch64-option-extensions.def (rcpc): New.
23774 * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
23775
23776 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
23777
23778 * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
23779 feature string.
23780
23781 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
23782
23783 * config/aarch64/aarch64-cores.def: Rearrange to sort by
23784 architecture, then by implementer ID.
23785 * config/aarch64/aarch64-tune.md: Regenerate.
23786
23787 2017-06-20 Richard Biener <rguenther@suse.de>
23788
23789 PR middle-end/81097
23790 * fold-const.c (split_tree): Fold to type before negating.
23791
23792 2017-06-20 David Malcolm <dmalcolm@redhat.com>
23793
23794 * diagnostic-show-locus.c
23795 (selftest::test_fixit_deletion_affecting_newline): New function.
23796 (selftest::diagnostic_show_locus_c_tests): Call it.
23797
23798 2017-06-20 Andreas Schwab <schwab@suse.de>
23799
23800 PR target/80970
23801 * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
23802 instead of "+d".
23803
23804 2017-06-20 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
23805
23806 * config/arm/arm-c.c (arm_cpu_builtins): New block to define
23807 __ARM_FEATURE_COPROC according to support.
23808
23809 2017-06-20 Jakub Jelinek <jakub@redhat.com>
23810
23811 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
23812 Rewritten to avoid overflow for > 32-bit pointers.
23813
23814 PR sanitizer/81125
23815 * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
23816 by removing enum keyword.
23817 (ubsan_type_descriptor): Likewise. Formatting fix.
23818
23819 PR target/81121
23820 * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
23821 splitter): Require TARGET_SSE2 in the condition.
23822
23823 2017-06-20 Michael Meissner <meissner@linux.vnet.ibm.com>
23824
23825 PR target/79799
23826 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
23827 for doing vector set of SFmode on ISA 3.0.
23828 * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
23829 (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
23830 element.
23831 (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
23832 SFmode value into a V4SF variable that was extracted from another
23833 V4SF variable without converting the element to double precision
23834 and back to single precision vector format.
23835 (vsx_insert_extract_v4sf_p9_2): Likewise.
23836
23837 2017-06-19 Jakub Jelinek <jakub@redhat.com>
23838
23839 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
23840 in UWHI to avoid undefined overflow.
23841
23842 PR sanitizer/81125
23843 * ubsan.h (enum ubsan_encode_value_phase): New.
23844 (ubsan_encode_value): Change second argument to
23845 enum ubsan_encode_value_phase with default value of
23846 UBSAN_ENCODE_VALUE_GENERIC.
23847 * ubsan.c (ubsan_encode_value): Change second argument to
23848 enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
23849 adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
23850 create_tmp_var_raw instead of create_tmp_var and use a
23851 TARGET_EXPR.
23852 (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
23853 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
23854 ubsan_encode_value callers.
23855
23856 PR sanitizer/81111
23857 * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
23858 use create_tmp_var_raw instead of create_tmp_var, mark it addressable
23859 just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
23860
23861 2017-06-19 Richard Biener <rguenther@suse.de>
23862
23863 PR middle-end/81118
23864 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
23865 estimates if we changed anything.
23866
23867 2017-06-19 Richard Biener <rguenther@suse.de>
23868
23869 PR tree-optimization/80887
23870 * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
23871 (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
23872 simplified lookups, then reset mprts_hook.
23873 (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
23874 simplifying.
23875 (try_to_simplify): Likewise.
23876
23877 2017-06-19 Martin Liska <mliska@suse.cz>
23878
23879 PR sanitizer/80879
23880 * gimplify.c (gimplify_switch_expr):
23881 Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
23882
23883 2017-06-19 Martin Liska <mliska@suse.cz>
23884
23885 * doc/install.texi: Document that PGO runs in 4 stages.
23886
23887 2017-06-19 Martin Liska <mliska@suse.cz>
23888
23889 PR ipa/80732
23890 * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
23891 to dispatcher function name.
23892 * multiple_target.c (replace_function_decl): New function.
23893 (create_dispatcher_calls): Redirect both edges and references.
23894
23895 2017-06-19 Jan Hubicka <hubicka@ucw.cz>
23896
23897 * profile-count.c (profile_count::dump): Dump quality.
23898 (profile_count::differs_from_p): Update for unsigned val.
23899 * profile-count.h (profile_count_quality): New enum.
23900 (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
23901
23902 2017-06-19 Richard Biener <rguenther@suse.de>
23903
23904 * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
23905 struct function as arg.
23906 (estimate_numbers_of_iterations): Export overload with loop arg.
23907 (free_numbers_of_iterations_estimates_loop): Use an overload of
23908 free_numbers_of_iterations_estimates instead.
23909 * tree-cfg.c (remove_bb): Adjust.
23910 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
23911 * tree-parloops.c (gen_parallel_loop): Likewise.
23912 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
23913 Likewise.
23914 (tree_unroll_loops_completely): Likewise.
23915 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
23916 Use an overload instead and export.
23917 (estimated_loop_iterations): Adjust.
23918 (max_loop_iterations): Likewise.
23919 (likely_max_loop_iterations): Likewise.
23920 (estimate_numbers_of_iterations): Take struct function as arg
23921 and adjust.
23922 (loop_exits_before_overflow): Adjust.
23923 (free_numbers_of_iterations_estimates_loop): Use an overload.
23924 * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
23925 * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
23926
23927 2017-06-19 Richard Biener <rguenther@suse.de>
23928
23929 PR ipa/81112
23930 * ipa-prop.c (find_constructor_constant_at_offset): Handle
23931 RANGE_EXPR conservatively.
23932
23933 2017-06-16 Carl Love <cel@us.ibm.com>
23934
23935 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23936 definitions for vec_float, vec_float2, vec_floato,
23937 vec_floate built-ins.
23938 * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
23939 for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
23940 floate.
23941 * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
23942 FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
23943 UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
23944 * config/altivec.md (define_insn "p8_vmrgew_<mode>",
23945 define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
23946 * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
23947 vec_floato): Add builtin defines.
23948 * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
23949 Update the built-in documentation file for the new built-in
23950 functions.
23951
23952 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
23953
23954 * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
23955 (mthumb): Mark as the negative of -marm.
23956
23957 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
23958
23959 * doc/invoke.texi (ARM Options, -mcpu): Document supported
23960 extension options.
23961 (ARM Options, -mtune): Document that this accepts the same
23962 extension options as -mcpu.
23963 (ARM Options, -mfpu): Document addition of -mfpu=auto.
23964
23965 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
23966
23967 * doc/invoke.texi (ARM Options, -march=): Document new syntax and
23968 permitted extensions.
23969
23970 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
23971
23972 * config/arm/arm-cpus.in (armv7): Add extension +nofp.
23973 (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
23974 (armv8-m.main): Add option +nodsp.
23975 * config/arm/arm-cpu-cdata.h: Regenerated.
23976
23977 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
23978
23979 * config/arm/t-fuchsia: New file.
23980 * config.gcc (arm*-*-fuchsia*): Use it.
23981
23982 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
23983
23984 * config/arm/t-symbian: Rewrite for new option infrastructure.
23985
23986 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
23987
23988 * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
23989 (MULTILIB_REQUIRED): Likewise.
23990
23991 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
23992
23993 * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
23994 (MULTILIB_RESUE): Likewise.
23995 (MULTILIB_MATCHES): Likewise.
23996 (MULTLIB_REQUIRED): Likewise.
23997
23998 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
23999
24000 * config/arm/t-rtems: Rewrite for new option framework.
24001
24002 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24003
24004 * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
24005 (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
24006 (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
24007 (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
24008 * config/arm/t-multilib: ... here.
24009 (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
24010 (MULTILIB_MATCHES): Use armv7 libraries for armv7-r. Also use for
24011 armv7-a and armv8*-a when A-profile libraries have not been built.
24012 * config/arm/t-rmprofile: Rewrite.
24013
24014 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24015
24016 * genmultilib (multilib_reuse): Allow an explicit period to be escaped
24017 with a backslash. Remove the backslash after substituting unescaped
24018 periods.
24019 * doc/fragments.texi (MULTILIB_REUSE): Document it.
24020
24021 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24022
24023 * config.gcc: (arm*-*-*): When building a-profile libraries, force
24024 the driver to pass through the default setting of -mfloat-abi.
24025 * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
24026 rather than NULL.
24027 * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
24028 (all_feat_combs): New rule.
24029 (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories. Rework
24030 default libraries.
24031 * config/arm/t-aprofile: Rewrite.
24032
24033 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24034
24035 * config/arm/arm.h (FPUTYPE_AUTO): Define.
24036 * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
24037 fpu is not specified by the user/command-line.
24038 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
24039 * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
24040 * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
24041 * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
24042 * common/config/arm/arm-common.c (arm_canon_arch_option): Use
24043 FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
24044
24045 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24046
24047 * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
24048 * config/arm/t-arm-elf: Rewritten.
24049
24050 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24051
24052 * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
24053 have some floating-point instructions.
24054 (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
24055 (TARGET_MAYBE_HARD_FLOAT): New macro.
24056 * config/arm/arm-builtins.c (arm_init_builtins): Use
24057 TARGET_MAYBE_HARD_FLOAT.
24058 * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
24059
24060 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24061
24062 * common/config/arm/arm-common.c: Define INCLUDE_LIST.
24063 (configargs.h): Include it.
24064 (arm_print_hint_for_fpu_option): New function.
24065 (arm_parse_fpu_option): New function.
24066 (candidate_extension): New class.
24067 (arm_canon_for_multilib): New function.
24068 * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
24069 (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
24070 (ARCH_CANONICAL_SPECS): New macro.
24071 (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
24072
24073 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24074
24075 * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
24076 are set after handling multilib fragments. Set target_cpu_default2
24077 from with_cpu.
24078
24079 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24080
24081 * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
24082 cpu name.
24083 (arm*-*-*): Set target_cpu_default2 to a quoted string.
24084 * config/arm/parsecpu.awk (check_cpu): Validate any extension
24085 options.
24086 (check_arch): Likewise.
24087 * config/arm/arm.c (arm_configure_build_target): Handle
24088 TARGET_CPU_DEFAULT being a string constant. Scan any feature
24089 options in the default.
24090
24091 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24092
24093 * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
24094 when an option is an alias of another.
24095 * config/arm/parsecpu.awk (optalias): New parser token.
24096 (gen_comm_data): Mark non-alias options as such. Emit entries
24097 for extension aliases.
24098 * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
24099 (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
24100 (armv6kz, armv6zk, armv6t2): Likewise.
24101 (armv7): Make vfpv3-d16 an alias.
24102 (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases. Sort in
24103 canonical order.
24104 (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
24105 Sort in canonical order.
24106 (armv8-a): Sort in canonical order.
24107 (armv8.1-a, armv8.2-a): Likewise.
24108 (generic-armv7-a): Make neon and neon-vfpv3 aliases. Sort in
24109 canonical order.
24110 (cortex-a9): Sort in canonical order.
24111 * config/arm/arm.c (selftests.h): Include it.
24112 (arm_test_cpu_arch_data): New function.
24113 (arm_run_self_tests): New function.
24114 (TARGET_RUN_TARGET_SELFTESTS): Redefine.
24115 (targetm): Move declaration to the end of the file.
24116 * arm-cpu-cdata.h: Regenerated.
24117
24118 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24119
24120 * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
24121 call to target_mode_check describing the type of option passed.
24122 * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
24123 (arm_target_thumb_only): Use arm_parse_arch_option_name or
24124 arm_parse_cpu_option_name to match parameters against list of
24125 available targets.
24126 * config/arm/parsecpu.awk (gen_comm_data): Don't generate
24127 arm_arch_core_flags data structure.
24128 * config/arm/arm-cpu_cdata.h: Regenerated.
24129
24130 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24131
24132 * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
24133 config/arm/arm.c.
24134 (arm_print_hint_for_cpu_option): Likewise.
24135 (arm_print_hint_for_arch_option): Likewise.
24136 (arm_parse_cpu_option_name): Likewise.
24137 (arm_parse_arch_option_name): Likewise.
24138 * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
24139 of entries in the all_fpus list.
24140 * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
24141 (arm_parse_cpu_option_name): Declare.
24142 (arm_parse_arch_option_name): Declare.
24143 (arm_parse_option_features): Declare.
24144 (arm_intialize_isa): Declare.
24145 * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
24146 data tables to ...
24147 (gen_comm_data): ... here. Make definitions non-static.
24148 * config/arm/arm-cpu-data.h: Regenerated.
24149 * config/arm/arm-cpu-cdata.h: Regenerated.
24150
24151 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24152
24153 * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
24154 (cpu_arch_extension): New structure.
24155 (cpu_arch_option, arch_option, cpu_option): New structures.
24156 * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
24157 architecture types.
24158 (gen_data): Generate new format data tables.
24159 * config/arm/arm.c (cpu_tune): New structure.
24160 (cpu_option, processors): Delete.
24161 (arm_print_hint_for_core_or_arch): Delete. Replace with ...
24162 (arm_print_hint_for_cpu_option): ... this and ...
24163 (arm_print_hint_for_arch_option): ... this.
24164 (arm_parse_arch_cpu_name): Delete. Replace with ...
24165 (arm_parse_cpu_option_name): ... this and ...
24166 (arm_parse_arch_option_name): ... this.
24167 (arm_unrecognized_feature): Change type of target parameter to
24168 cpu_arch_option.
24169 (arm_parse_arch_cpu_features): Delete. Replace with ...
24170 (arm_parse_option_features): ... this.
24171 (arm_configure_build_target): Rework to use new configuration data
24172 tables.
24173 (arm_print_tune_info): Rework for new configuration data tables.
24174 * config/arm/arm-cpu-data.h: Regenerated.
24175 * config/arm/arm-cpu.h: Regenerated.
24176
24177 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24178
24179 * Makefile.in (OBJS): Move sbitmap.o from here ...
24180 (OBJS-libcommon): ... to here.
24181
24182 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24183
24184 * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
24185 (ISA_ALL_CRYPTO): New macro.
24186 (ISA_ALL_SIMD): New macro
24187 (ISA_ALL_FP): New macro.
24188 * config/arm/arm.c (fpu_bitlist): Update initializer.
24189 * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
24190 simd or fp.
24191 (arm9e): Add fpu. Add option for nofp
24192 (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
24193 (arm926ej-s, arm1026ej-s): Likewise.
24194 (generic-armv7-a): Add fpu. Add options for simd, vfpv3, vfpv3-d16,
24195 vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
24196 neon-fp16, neon-vfpv4, nofp and nosimd.
24197 (cortex-a5, cortex-a7): Add fpu. Add options for nosimd and nofp.
24198 (cortex-a8): Add fpu. Add option for nofp.
24199 (cortex-a9): Add fpu. Add options for nosimd and nofp.
24200 (cortex-a12, cortex-a15, cortex-a17): Add fpu. Add option for nofp.
24201 (cortex-r4f): Add fpu.
24202 (cortex-r5): Add fpu. Add options for nofp.dp and nofp.
24203 (cortex-r7): Use idiv option from architecture. Add fpu. Add option
24204 for nofp.
24205 (cortex-r8): Likewise.
24206 (cortex-m4): Add fpu. Add option for nofp.
24207 (cortex-a15.cortex-a7): Add fpu. Add option for nofp.
24208 (cortex-a17.cortex-a7): Likewise.
24209 (cortex-a32): Add fpu. Add options for crypto and nofp.
24210 (cortex-a35, cortex-a53): Likewise.
24211 (cortex-a57): Add fpu. Add option for crypto.
24212 (cortex-a72, cortex-a73): Likewise.
24213 (exynos-m1): Likewise.
24214 (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
24215 (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
24216 (cortex-m33): Add fpu. Add option for nofp.
24217 * config/arm/arm-cpu-cdata.h: Regenerated
24218 * config/arm/arm-cpu-data.h: Regenerated.
24219
24220 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24221
24222 * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
24223 (armv5te, armv5tej): Likewise.
24224 (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
24225 (armv7): Add options fp and vfpv3-d16.
24226 (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
24227 vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
24228 nofp and nosimd.
24229 (armv7ve): Likewise.
24230 (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
24231 (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
24232 (armv8-a): Add nocrypto option.
24233 (armv8.1-a, armv8.2-a): Likewise.
24234 (armv8-m.main): add options fp, fp.dp and nofp.
24235
24236 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24237
24238 * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
24239 nofp.
24240 (armv8-a+crc): Delete.
24241 (armv8.1-a): Add options simd, crypto and nofp.
24242 (armv8.2-a): Add options fp16, simd, crypto and nofp.
24243 (armv8.2-a+fp16): Delete.
24244 (armv8-m.main): Add option dsp.
24245 (armv8-m.main+dsp): Delete.
24246 (cortex-a8): Add fpu. Add nofp option.
24247 (cortex-a9): Add fpu. Add nofp and nosimd options.
24248 * config/arm/parsecpu.awk (gen_data): Generate option tables and
24249 link to main cpu and architecture data structures.
24250 (gen_comm_data): Only put isa attributes from the main architecture
24251 in common tables.
24252 (option): New statement for architecture and CPU entries.
24253 * arm.c (struct cpu_option): New structure.
24254 (struct processors): Add entry for options.
24255 (arm_unrecognized_feature): New function.
24256 (arm_parse_arch_cpu_name): Ignore any characters after the first
24257 '+' character.
24258 (arm_parse_arch_cpu_feature): New function.
24259 (arm_configure_build_target): Separate out any CPU and architecture
24260 features and parse separately. Don't error out if -mfpu=auto is
24261 used with only an architecture string.
24262 (arm_print_asm_arch_directives): New function.
24263 (arm_file_start): Call it.
24264 * config/arm/arm-cpu-cdata.h: Regenerated.
24265 * config/arm/arm-cpu-data.h: Likewise.
24266 * config/arm/arm-tables.opt: Likewise.
24267
24268 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24269
24270 * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
24271 assembler when it is not -mfpu=auto.
24272
24273 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24274
24275 * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
24276 (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
24277 (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
24278 (ASM_CPU_SPEC): Rewrite.
24279 (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
24280 (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef. Use
24281 MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS. Remove
24282 reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
24283 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
24284 copied string is NUL-terminated. Also strip any characters prefixed
24285 by '+'.
24286 (arm_rewrite_selected_arch): New function.
24287 (arm_rewrite_march): New function.
24288
24289 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
24290
24291 * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
24292 (x_arm_cpu_string, x_arm_tune_string): Likewise.
24293 (march, mcpu, mtune): Convert to string-based options.
24294 * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
24295 (arm_parse_arch_cpu_name): New function.
24296 (arm_configure_build_target): Use arm_parse_arch_cpu_name to
24297 identify selected architecture or CPU.
24298 (arm_option_save): New function.
24299 (TARGET_OPTION_SAVE): Redefine.
24300 (arm_option_restore): Restore string options.
24301 (arm_option_print): Print string options.
24302
24303 2017-06-16 Martin Sebor <msebor@redhat.com>
24304
24305 PR tree-optimization/80933
24306 PR tree-optimization/80934
24307 * builtins.c (fold_builtin_3): Do not handle bcmp here.
24308 * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
24309 (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
24310 (gimple_fold_builtin): Call them.
24311
24312 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
24313
24314 * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
24315 as unlikely; update profile.
24316
24317 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
24318
24319 * predict.c (force_edge_cold): Handle declaring edges impossible
24320 more aggresively.
24321
24322 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
24323
24324 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
24325 profile.
24326 (try_unroll_loop_completely): Fix reporting.
24327
24328 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
24329
24330 * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
24331
24332 2017-06-16 James Greenhalgh <james.greenhalgh@arm.com>
24333
24334 PR target/71778
24335 * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
24336 if given a non-constant argument for an intrinsic which requires a
24337 constant.
24338
24339 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
24340
24341 * profile.c (compare_freqs): New function.
24342 (branch_prob): Sort edge list.
24343 (find_spanning_tree): Assume that the list is priority sorted.
24344
24345 2017-06-16 Richard Biener <rguenther@suse.de>
24346
24347 PR tree-optimization/81090
24348 * passes.def (pass_record_bounds): Remove.
24349 * tree-pass.h (make_pass_record_bounds): Likewise.
24350 * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
24351 make_pass_record_bounds): Likewise.
24352 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
24353 not free niter estimates at the beginning but at the end.
24354 * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
24355
24356 2017-06-16 Richard Biener <rguenther@suse.de>
24357
24358 * tree-switch-conversion.c (emit_case_bit_tests): Adjust
24359 initializer to workaround ICE in host GCC 4.8.
24360
24361 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
24362
24363 * ipa-inline-transform.c (update_noncloned_frequencies): Update also
24364 counts.
24365 (clone_inlined_nodes): Update.
24366
24367 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24368
24369 * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
24370 prefetch settings, and enable prefetching by default at -O3.
24371
24372 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24373
24374 * config/aarch64/aarch64.c (aarch64_override_options_internal):
24375 Set flag_prefetch_loop_arrays according to tuning data.
24376
24377 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24378
24379 * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
24380 New tune structure.
24381 (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
24382 [Unrelated to main purpose of the patch] Place the pointer field last
24383 to enable type checking errors when tune structure are wrongly merged.
24384 * config/aarch64/aarch64.c (generic_prefetch_tune,)
24385 (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
24386 (thunderx2t99_prefetch_tune): New tune constants.
24387 (tune_params *_tunings): Update all tunings (no functional change).
24388 (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
24389 PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
24390 from tunings structures.
24391
24392 2017-06-16 Jakub Jelinek <jakub@redhat.com>
24393
24394 PR sanitizer/81094
24395 * ubsan.c (instrument_null): Add T argument, use it instead
24396 of computing it based on IS_LHS.
24397 (instrument_object_size): Likewise.
24398 (pass_ubsan::execute): Adjust instrument_null and
24399 instrument_object_size callers to pass gimple_get_lhs or
24400 gimple_assign_rhs1 result to it. Use instrument_null instead of
24401 calling get_base_address and instrument_mem_ref. Handle
24402 aggregate call arguments for object-size sanitization.
24403
24404 2017-06-16 Yury Gribov <tetra2005@gmail.com>
24405
24406 PR tree-optimization/81089
24407 * tree-vrp.c (is_masked_range_test): Validate operands of
24408 subexpression.
24409
24410 2017-06-15 Martin Sebor <msebor@redhat.com>
24411
24412 PR c++/80560
24413 * dumpfile.c (dump_register): Avoid calling memset to initialize
24414 a class with a default ctor.
24415 * gcc.c (struct compiler): Remove const qualification.
24416 * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
24417 * hash-table.h: Ditto.
24418 * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
24419 assignment.
24420 * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
24421 * omp-low.c (lower_omp_ordered_clauses): Replace memset with
24422 default ctor.
24423 * params.h (struct param_info): Make struct members non-const.
24424 * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
24425 with default initialization.
24426 * vec.h (vec_copy_construct, vec_default_construct): New helper
24427 functions.
24428 (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
24429 with vec_copy_construct.
24430 (vect<T>::quick_grow_cleared): Replace memset with default ctor.
24431 (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
24432 * doc/invoke.texi (-Wclass-memaccess): Document.
24433
24434 2017-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24435
24436 * emit-rtl.h (is_leaf): Update comment about local
24437 register allocator.
24438
24439 2017-06-15 Jozef Lawrynowicz <jozef.l@somniumtech.com>
24440
24441 PR target/78818
24442 * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
24443 for a variable to have a section before checking if the section has a
24444 name.
24445 Set section to.persistent if persistent attribute is set.
24446 Warn if .persistent attribute is used on an automatic variable.
24447
24448 2017-06-15 Eric Botcazou <ebotcazou@adacore.com>
24449
24450 PR rtl-optimization/80474
24451 * reorg.c (update_block): Do not ignore instructions in a delay slot.
24452
24453 2017-06-15 Segher Boessenkool <segher@kernel.crashing.org>
24454
24455 * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
24456 of REGNO.
24457
24458 2017-06-14 Maciej W. Rozycki <macro@imgtec.com>
24459
24460 * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
24461 (casesi): Emit bounds checking as RTL.
24462 (casesi_internal_mips16_<mode>): Remove bounds checking.
24463
24464 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
24465
24466 * config/xtensa/xtensa.c (xtensa_option_override): Append
24467 MASK_CONST16 to target_flags in the absence of TARGET_L32R.
24468 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
24469 xtensa_doloop_hooks): Define unconditionally.
24470 (xtensa_reorg_loops): Only call reorg_loops in the presence of
24471 TARGET_LOOPS.
24472 * config/xtensa/xtensa.h (TARGET_L32R): New definition.
24473 (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
24474 for it in xtensa_option_override.
24475 (HARD_FRAME_POINTER_IS_FRAME_POINTER,
24476 HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
24477
24478 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
24479
24480 * doc/cppopts.texi: Document '-' special value to -MF.
24481
24482 2017-06-14 Wilco Dijkstra <wdijkstr@arm.com>
24483
24484 * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
24485 (cortex_a53_fconst): Likewise.
24486 (cortex_a53_fpmul): Likewise.
24487 (cortex_a53_f_load_64): Likewise.
24488 (cortex_a53_f_load_many): Likewise.
24489 (cortex_a53_advsimd_alu): Likewise.
24490 (cortex_a53_advsimd_alu_q): Likewise.
24491 (cortex_a53_advsimd_mul): Likewise.
24492 (cortex_a53_advsimd_mul_q): Likewise.
24493 (fpmac bypass): Add new bypass for fpmac-fpmac case.
24494 Add missing fmul, r2f_cvt and fconst cases.
24495
24496 2017-06-14 Richard Biener <rguenther@suse.de>
24497
24498 PR middle-end/81088
24499 * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
24500 literal constants.
24501 (fold_binary_loc): When associating do not treat pre-existing
24502 TREE_OVERFLOW on literal constants as a reason to allow
24503 TREE_OVERFLOW on associated literal constants.
24504
24505 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
24506
24507 * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
24508 (MASK_FEATURES): New macro.
24509 * config/sparc/sparc.c (sparc_option_override): Remove the special
24510 handling of -mfpu and generalize it to all MASK_FEATURES switches.
24511
24512 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
24513
24514 * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
24515 a division of 0 if non-call exceptions are enabled.
24516
24517 2017-06-14 Andrew Pinski <apinski@cavium.com>
24518 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
24519
24520 PR target/71663
24521 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24522 Improve vector initialization code gen for only variable case.
24523
24524 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
24525
24526 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
24527
24528 2017-06-14 Richard Biener <rguenther@suse.de>
24529
24530 PR tree-optimization/81083
24531 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
24532 as values.
24533
24534 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
24535
24536 * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
24537 (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
24538 * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
24539 * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete. Adjust former use.
24540 * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
24541 * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
24542
24543 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
24544
24545 * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
24546 * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
24547
24548 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
24549
24550 * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
24551
24552 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
24553
24554 * config/rs6000/t-rtems: Don't handle SPE.
24555
24556 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
24557
24558 * config/rs6000/t-linux: Don't handle SPE.
24559
24560 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
24561
24562 * config/rs6000/eabispe.h: Delete file.
24563
24564 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
24565
24566 * config/rs6000/t-spe: Delete file.
24567
24568 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
24569
24570 * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
24571 (rs6000_legitimate_offset_address_p): Return false for anything in
24572 V2SImode or V2SFmode.
24573
24574 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
24575
24576 * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
24577 except V2SF and V2SI. Rearrange the vector modes, and add comments.
24578 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
24579 and V4HImode.
24580 (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
24581 (rs6000_legitimate_offset_address_p): Ditto.
24582 (rs6000_emit_move): Ditto.
24583 (rs6000_init_builtins): Remove V4HI_type_node.
24584
24585 2017-06-13 Martin Liska <mliska@suse.cz>
24586
24587 PR sanitize/78204
24588 * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
24589 (gate_asan): Likewise.
24590 * asan.h (asan_no_sanitize_address_p): Remove the function.
24591 (sanitize_flags_p): New function.
24592 * builtins.def: Fix coding style.
24593 * common.opt: Use renamed enum value.
24594 * convert.c (convert_to_integer_1): Use sanitize_flags_p.
24595 * doc/extend.texi: Document no_sanitize attribute.
24596 * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
24597 to SANITIZE_UNDEFINED_NONDEFAULT.
24598 * gcc.c (sanitize_spec_function): Use the renamed enum value.
24599 * gimple-fold.c (optimize_atomic_compare_exchange_p):
24600 Use sanitize_flags_p.
24601 * gimplify.c (gimplify_function_tree): Likewise.
24602 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
24603 * opts.c (parse_no_sanitize_attribute): New function.
24604 (common_handle_option): Use renamed enum value.
24605 * opts.h (parse_no_sanitize_attribute): Declare.
24606 * tree.c (sanitize_flags_p): New function.
24607 * tree.h: Declared here.
24608 * tsan.c: Use sanitize_flags_p.
24609 * ubsan.c (ubsan_expand_null_ifn): Likewise.
24610 (instrument_mem_ref): Likewise.
24611 (instrument_bool_enum_load): Likewise.
24612 (do_ubsan_in_current_function): Remove the function.
24613 (pass_ubsan::execute): Use sanitize_flags_p.
24614 * ubsan.h: Remove do_ubsan_in_current_function
24615 * tree-cfg.c (print_no_sanitize_attr_value): New function.
24616 (dump_function_to_file): Use it here.
24617
24618 2017-06-13 Martin Jambor <mjambor@suse.cz>
24619
24620 PR tree-optimization/80803
24621 PR tree-optimization/81063
24622 * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
24623 (propagate_subaccesses_across_link): Enqueue subtree whenever
24624 necessary instead of relying on the caller.
24625
24626 2017-06-13 Martin Jambor <mjambor@suse.cz>
24627
24628 * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
24629 that have a first_link.
24630 (sort_and_splice_var_accesses): Do not check first_link before
24631 enquing.
24632 (subtree_mark_written_and_enqueue): Likewise.
24633 (propagate_all_subaccesses): Likewise and do not stop at first
24634 parent with a first_link.
24635
24636 2017-06-13 Martin Jambor <mjambor@suse.cz>
24637
24638 * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
24639 instead of f.
24640
24641 2017-06-13 Yury Gribov <tetra2005@gmail.com>
24642
24643 * match.pd: New pattern.
24644
24645 2017-06-13 Yury Gribov <tetra2005@gmail.com>
24646
24647 * tree-vrp.c (is_masked_range_test): New function.
24648 (register_edge_assert_for): Determine ranges for
24649 some bit tests.
24650
24651 2017-06-13 Yury Gribov <tetra2005@gmail.com>
24652
24653 PR tree-optimization/67328
24654 * fold-const.c (maskable_range_p): New function.
24655 (build_range_check): Generate bittests if possible.
24656
24657 2017-06-13 Martin Liska <mliska@suse.cz>
24658
24659 * gimple-pretty-print.c (dump_probability): Add new argument.
24660 (dump_edge_probability): Dump both probability and count.
24661 (dump_gimple_label): Likewise.
24662 (dump_gimple_bb_header): Likewise.
24663
24664 2017-06-13 Georg-Johann Lay <avr@gjlay.de>
24665
24666 PR target/81072
24667 * config/avr/avr-devices.c: Fix indentation.
24668 * config/avr/gen-avr-mmcu-specs.c: Dito.
24669
24670 2017-06-13 Richard Biener <rguenther@suse.de>
24671
24672 * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
24673 instead get vector type from stmt_info.
24674 (vectorizable_reduction): Adjust. Remove dead code.
24675
24676 2017-06-13 Richard Biener <rguenther@suse.de>
24677
24678 PR middle-end/81065
24679 * fold-const.c (extract_muldiv_1): Remove bogus distribution
24680 case of C * (x * C2 + C3).
24681 (fold_addr_of_array_ref_difference): Properly fold index difference.
24682
24683 2017-06-12 David S. Miller <davem@davemloft.net>
24684
24685 PR target/80968
24686 * config/sparc/sparc.md (return expander): Emit frame blockage if
24687 function uses alloca.
24688
24689 2017-06-12 Richard Sandiford <richard.sandiford@linaro.org>
24690
24691 * combine.c (make_field_assignment): Check len rather than the mode
24692 precision when calling force_to_mode.
24693
24694 2017-06-12 Georg-Johann Lay <avr@gjlay.de>
24695
24696 Support multilibs and devices that see flash in RAM address range.
24697
24698 PR target/81072
24699 * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
24700 (avr_mcu_t) <flash_pm_offset>: New field.
24701 (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
24702 * config/avr/avr.h (AVR_SHORT_CALLS): New define.
24703 (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
24704 (AVR_TINY_PM_OFFSET): Remove macro.
24705 * config/avr/avr.opt (-mshort-calls): New option.
24706 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
24707 [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
24708 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
24709 <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
24710 <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
24711 instead of avr_arch->have_jmp_call.
24712 <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
24713 [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
24714 avr_arch->flash_pm_offset to define.
24715 * config/avr/avr-devices.c (avr_arch_types): Add initializers for
24716 new field flash_pm_offset. Add entry for avrxmega3.
24717 (avr_texinfo): Add entry for avrxmega3.
24718 * config/avr/avr-mcus.def: Add entries for: avrxmega3,
24719 attiny212, attiny214,
24720 attiny412, attiny414, attiny416, attiny417,
24721 attiny814, attiny816, attiny817,
24722 attiny1614, attiny1616, attiny1617,
24723 attiny3214, attiny3216, attiny3217.
24724 * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
24725 avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
24726 (avr_print_operand_address) [AVR_TINY]: Same.
24727 (avr_asm_init_sections) <readonly_data_section>: Only patch
24728 callback if avr_arch->flash_pm_offset = 0.
24729 (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
24730 for rodata if avr_arch->flash_pm_offset != 0.
24731 (avr_encode_section_info) [AVR_TINY]: Adjust comment.
24732 * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
24733 (opts) [AVR_ISA_RCALL]: Append opt_rcall.
24734 (m_options): Append opt_rcall.
24735 (m_dirnames): Append dir_rcall.
24736 * config/avr/t-multilib: Regenerate.
24737
24738 * configure.ac [target=avr]: Check whether avrxmega3 default
24739 linker description file works as needed.
24740 * configure: Regenerate.
24741 * doc/avr-mmcu.texi: Regenerate.
24742 * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
24743 <__AVR_ARCH__>: Document avrxmega3 and 103.
24744 <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
24745 <__AVR_SHORT_CALLS__>: Document it.
24746 <__AVR_PM_BASE_ADDRESS__>: Document it.
24747 * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
24748 (AVR Variable Attributes) <progmem>: Document this is
24749 not needed for avrxmega3.
24750 (AVR Named Address Spaces) <__flash>: Dito.
24751
24752 2017-06-12 Jan Hubicka <hubicka@ucw.cz>
24753
24754 * cgraph.c (cgraph_node::dump): Complain about profile insanities.
24755
24756 2017-06-12 Doug Rupp <rupp@adacore.com>
24757
24758 * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
24759 Append vxworks-stdint.h to the tm_file list.
24760 * config/vxworks-stdint.h: New file.
24761
24762 2017-06-12 Martin Liska <mliska@suse.cz>
24763
24764 PR tree-optimization/81041
24765 * tree-profile.c (gimple_gen_ic_func_profiler):
24766 Create an extra BB in profile-generate
24767 (gimple_gen_time_profiler): Likewise.
24768
24769 2017-06-12 Jakub Jelinek <jakub@redhat.com>
24770
24771 PR tree-optimization/81003
24772 * tree-ssa-reassoc.c (force_into_ssa_name): New function.
24773 (update_range_test): Use it instead of force_gimple_operand_gsi.
24774
24775 2017-06-12 Richard Biener <rguenther@suse.de>
24776
24777 PR tree-optimization/81053
24778 * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
24779 with backedge value not defined in loop. Simplify def stmt
24780 compute.
24781
24782 2017-06-11 Tom de Vries <tom@codesourcery.com>
24783
24784 PR target/79939
24785 * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
24786 Return true.
24787 (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
24788 nvptx_cannot_force_const_mem.
24789
24790 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
24791
24792 * opts.c (finish_options): Move test for flag_split_stack after
24793 it has been initialized.
24794
24795 2017-06-11 Jason Merrill <jason@redhat.com>
24796
24797 * tree.h (id_equal): New.
24798 * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
24799 omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
24800 instead of strcmp of IDENTIFIER_POINTER.
24801
24802 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
24803
24804 * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
24805 (mark_all_inlined_calls_cdtor): Fix formating.
24806 (inline_transform): Rescale profile before inlining.
24807
24808 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
24809
24810 * cgraph.h (cgraph_edge::clone): Update prototype.
24811 * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
24812 (cgraph_node::create_clone): Update.
24813 (cgraph_node::create_version_clone): Update.
24814 * tree-inline.c (copy_bb): Update.
24815 (expand_call_inline): Update.
24816
24817 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
24818
24819 * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
24820 factored out from ...
24821 (rs6000_emit_prologue): ... here.
24822
24823 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
24824
24825 * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
24826 factored out from ...
24827 (rs6000_emit_prologue): ... here.
24828
24829 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
24830
24831 * predict.c (drop_profile): Also drop individual bb/edge and cgraph
24832 edge counts.
24833 (handle_missing_profiles): Fix computation of tp_first_run.
24834 (counts_to_freqs): Do not touch freqs when count is 0.
24835
24836 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
24837
24838 * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
24839 profile.
24840
24841 2017-06-10 Tom de Vries <tom@codesourcery.com>
24842
24843 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
24844 attributes): Document signal effective target.
24845
24846 2017-06-10 Tom de Vries <tom@codesourcery.com>
24847
24848 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
24849 Document effective target stack_size.
24850
24851 2017-06-09 David Malcolm <dmalcolm@redhat.com>
24852
24853 * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
24854 to the edit_context if they can be auto-applied.
24855
24856 2017-06-9 Ian Lance Taylor <iant@golang.org>
24857
24858 * opts.c (finish_options): If -fsplit-stack, disable implicit
24859 -forder-blocks-and-partition.
24860 * doc/invoke.texi (Optimize Options): Document that when using
24861 -fsplit-stack -forder-blocks-and-partition is not implicitly
24862 enabled.
24863
24864 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
24865
24866 * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
24867 ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
24868 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
24869 * builtins.def (abort, trap, unreachable): Declare cold.
24870 * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
24871 * tree-core.h (ECF_COLD): New.
24872 * tree.c (set_call_expr_flags): Handle ECF_COLD.
24873 (build_common_builtin_nodes): Mark unreachable and abort as cold.
24874
24875 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
24876
24877 * predict.c (unlikely_executed_stmt_p): Cleanup.
24878
24879 2017-06-09 Richard Biener <rguenther@suse.de>
24880
24881 * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
24882 model if the ref is always written to.
24883
24884 2017-06-09 Tamar Christina <tamar.christina@arm.com>
24885
24886 * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
24887
24888 2017-06-09 Tamar Christina <tamar.christina@arm.com>
24889
24890 * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
24891 than udiv.
24892
24893 2017-06-09 Tom de Vries <tom@codesourcery.com>
24894
24895 PR target/80855
24896 * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
24897 "target cannot support label values" when encountering LABEL_REF.
24898
24899 2017-06-09 Martin Liska <mliska@suse.cz>
24900
24901 * tree-profile.c (gimple_gen_ic_profiler): Update comment.
24902 (gimple_gen_ic_func_profiler): Emit direct comparison
24903 of __gcov_indirect_call_callee with NULL.
24904 (gimple_gen_time_profiler): Change probability from
24905 PROB_VERY_UNLIKELY to PROB_UNLIKELY.
24906
24907 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
24908
24909 * profile.c (edge_gcov_counts): Turn to pointer.
24910 (compute_branch_probabilities, compute_branch_probabilities): Update.
24911 (branch_prob): Do not clear edge_gcov_count.
24912 * profile.h (edge_gcov_counts): Turn to pointer.
24913 (edge_gcov_count): Update.
24914
24915 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
24916
24917 * gimple.h (gimple_check_failed): Mark cold.
24918
24919 2017-06-09 Richard Biener <rguenther@suse.de>
24920
24921 PR tree-optimization/66623
24922 * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
24923 refactor check_reduction into two parts, properly computing
24924 whether we have to check reduction validity for outer loop
24925 vectorization.
24926
24927 2017-06-09 Richard Biener <rguenther@suse.de>
24928
24929 PR tree-optimization/79483
24930 * graphite-scop-detection.c (order): New global.
24931 (get_order): Compute bb to order mapping that satisfies code
24932 generation constraints.
24933 (cmp_pbbs): New helper.
24934 (build_scops): Start domwalk at entry block, sort generated
24935 pbbs.
24936
24937 2017-06-09 Richard Biener <rguenther@suse.de>
24938
24939 PR middle-end/81007
24940 * ipa-polymorphic-call.c
24941 (ipa_polymorphic_call_context::restrict_to_inner_class):
24942 Skip FIELD_DECLs with error_mark_node type.
24943 * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
24944 last again.
24945
24946 2017-06-09 Martin Liska <mliska@suse.cz>
24947
24948 * predict.c (struct branch_predictor): New struct.
24949 (test_prediction_value_range): New test.
24950 (predict_c_tests): New function.
24951 * selftest-run-tests.c (selftest::run_tests): Run the function.
24952 * selftest.h: Declare new tests.
24953
24954 2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
24955
24956 PR target/80966
24957 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
24958 gen_add3_insn did not fail.
24959 * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
24960 r0, construct that number in a temporary reg and add that reg to r0.
24961 If asked to put the result in r0 as well, fail.
24962
24963 2017-06-08 Will Schmidt <will_schmidt@vnet.ibm.com>
24964
24965 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
24966 for early expansion of vec_eqv.
24967
24968 2017-06-08 Jakub Jelinek <jakub@redhat.com>
24969
24970 PR middle-end/81005
24971 * ubsan.c (instrument_null): Avoid pointless code temporary.
24972 (pass_ubsan::execute): Instrument aggregate arguments of calls.
24973
24974 2017-06-08 Uros Bizjak <ubizjak@gmail.com>
24975
24976 PR target/81015
24977 Revert:
24978 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
24979
24980 PR target/59874
24981 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
24982 (*clzhi2): Ditto.
24983
24984 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
24985
24986 * predict.c (unlikely_executed_edge_p): Move ahead.
24987 (probably_never_executed_edge_p): Use it.
24988
24989 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
24990
24991 PR middle-end/79988
24992 * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
24993 gimple_call_builtin_p call.
24994
24995 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
24996
24997 * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
24998 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
24999 rtl_check_failed_type2, rtl_check_failed_code1,
25000 rtl_check_failed_code2, rtl_check_failed_code_mode,
25001 rtl_check_failed_block_symbol, cwi_check_failed_bounds,
25002 rtvec_check_failed_bounds, rtl_check_failed_flag,
25003 _fatal_insn_not_found, _fatal_insn): Likewise.
25004 * tree.h (tree_contains_struct_check_failed,
25005 tree_check_failed, tree_not_check_failed,
25006 tree_class_check_failed, tree_range_check_failed,
25007 tree_not_class_check_failed, tree_int_cst_elt_check_failed,
25008 tree_vec_elt_check_failed, phi_node_elt_check_failed,
25009 tree_operand_check_failed, omp_clause_check_failed,
25010 omp_clause_operand_check_failed, omp_clause_range_check_failed):
25011 Likewise.
25012
25013 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
25014
25015 * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
25016 flag_branch_probabilities.
25017 * ipa-inline.c (edge_badness): Likewise.
25018 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
25019 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
25020 * predict.c (maybe_hot_frequency_p): Likewise.
25021 (probably_never_executed): Likewise.
25022 * sched-ebb.c (schedule_ebbs): Likewise.
25023 * sched-rgn.c (find_single_block_region): Likewise.
25024 * tracer.c (tail_duplicate): Likewise.
25025
25026 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
25027
25028 * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
25029 longer requires x_flag_profile_use.
25030
25031 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
25032
25033 * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
25034 instead of flag_reorder_blocks_and_partition.
25035 * dbxout.c (dbxout_function_end): Likewise.
25036 * dwarf2out.c (gen_subprogram_die): Likewise.
25037 * haifa-sched.c (sched_create_recovery_edges): Likewise.
25038 * hw-doloop.c (reorg_loops): Likewise.
25039 * varasm.c (assemble_start_function,
25040 assemble_end_function): Likewise.
25041 (decide_function_section): Do not check for
25042 flag_reorder_blocks_and_partition.
25043
25044 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
25045
25046 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
25047 New function.
25048 (chkp_get_hard_register_fake_addr_expr): Ditto.
25049 (chkp_build_addr_expr): Add check for hard reg case.
25050 (chkp_parse_array_and_component_ref): Ditto.
25051 (chkp_find_bounds_1): Ditto.
25052 (chkp_process_stmt): Don't generate bounds store for
25053 hard reg case.
25054
25055 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
25056
25057 * predict.c (maybe_hot_bb_p): Do not check profile status.
25058 (maybe_hot_edge_p): Likewise.
25059 (probably_never_executed): Check for zero counts even if profile
25060 is not read.
25061 (unlikely_executed_edge_p): New function.
25062 (unlikely_executed_stmt_p): New function.
25063 (unlikely_executed_bb_p): New function.
25064 (set_even_probabilities): Use unlikely predicates.
25065 (combine_predictions_for_bb): Likewise.
25066 (predict_paths_for_bb): Likewise.
25067 (predict_paths_leading_to_edge): Likewise.
25068 (determine_unlikely_bbs): New function.
25069 (estimate_bb_frequencies): Use it.
25070 (compute_function_frequency): Use zero counts even if profile is
25071 not read.
25072 * profile-count.h: Fix typo.
25073
25074 2017-08-08 Julia Koval <julia.koval@intel.com>
25075
25076 * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
25077 _mm512_mask_cvtsepi16_storeu_epi8,
25078 _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
25079 * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
25080 _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
25081 _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
25082 _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
25083 * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
25084 (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
25085 VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
25086 * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
25087 __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
25088 __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
25089 __builtin_ia32_pmovuswb256mem_mask,
25090 __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
25091 __builtin_ia32_pmovwb512mem_mask): New builtins.
25092
25093 2017-08-08 Julia Koval <julia.koval@intel.com>
25094
25095 PR target/73350,80862
25096 * config/i386/subst.md (round): Fix round pattern.
25097 * config/i386/i386.c (ix86_erase_embedded_rounding):
25098 Fix erasing rounding for the fixed pattern.
25099
25100 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
25101
25102 * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
25103
25104 2017-06-08 Martin Liska <mliska@suse.cz>
25105
25106 PR gcov-profile/80911
25107 * gcov.c (block_info::block_info): New constructor.
25108
25109 2017-06-07 Carl Love <cel@us.ibm.com>
25110
25111 * config/rs6000/rs6000-c: The return type of the following
25112 built-in functions was implemented as int not long long. Fix sign
25113 of return value for the unsigned version of vec_mulo and vec_mule.
25114 vector unsigned long long vec_bperm (vector unsigned long long,
25115 vector unsigned char)
25116 vector signed long long vec_mule (vector signed int,
25117 vector signed int)
25118 vector unsigned long long vec_mule (vector unsigned int,
25119 vector unsigned int)
25120 vector signed long long vec_mulo (vector signed int,
25121 vector signed int)
25122 vector unsigned long long vec_mulo (vector unsigned int,
25123 vector unsigned int)
25124 * doc/extend.texi: Fix the documentation for the built-in
25125 functions.
25126
25127 2017-06-07 Carl Love <cel@us.ibm.com>
25128
25129 PR target/80982
25130 * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
25131 for BE.
25132
25133 2017-06-07 Carl Love <cel@us.ibm.com>
25134
25135 * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
25136 support, Generate doublehv for signed int/float for BE case only.
25137
25138 2017-06-07 Alexander Monakov <amonakov@ispras.ru>
25139
25140 * doc/invoke.texi (mcx16): Rewrite.
25141
25142 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
25143
25144 * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
25145 * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
25146 *mov<mode>_softfloat, and an anonymous splitter): Use
25147 nonimmediate_operand instead of rs6000_nonimmediate_operand.
25148
25149 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
25150
25151 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
25152 SPEFSCR registers.
25153 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
25154 (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
25155 (rs6000_debug_reg_global): Adjust.
25156 (rs6000_init_hard_regno_mode_ok): Adjust.
25157 (rs6000_dbx_register_number): Adjust.
25158 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
25159 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
25160 Remove SPE_ACC and SPEFSCR.
25161 (REG_ALLOC_ORDER): Ditto.
25162 (FRAME_POINTER_REGNUM): Change to 111.
25163 (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
25164 (REG_CLASS_NAMES): Ditto.
25165 (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
25166 (REGISTER_NAMES): Ditto.
25167 (ADDITIONAL_REG_NAMES): Ditto.
25168 (rs6000_reg_names): Ditto.
25169 * config/rs6000/rs6000.md: Renumber some register number
25170 define_constants.
25171
25172 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
25173
25174 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
25175 registers.
25176 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
25177 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
25178 to 117.
25179 (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
25180 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
25181 Delete the SPE high registers.
25182 (REG_ALLOC_ORDER): Ditto.
25183 (enum reg_class): Remove SPE_HIGH_REGS.
25184 (REG_CLASS_NAMES): Ditto.
25185 (REG_CLASS_CONTENTS): Delete the SPE high registers.
25186 (REGISTER_NAMES): Ditto.
25187 (rs6000_reg_names): Ditto.
25188 * doc/tm.texi.in: Remove SPE as example.
25189 * doc/tm.texi: Regenerate.
25190
25191 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
25192
25193 * config/rs6000/8540.md (ppc8540_brinc): Delete.
25194 * config/rs6000/e500mc.md (e500mc_brinc): Delete.
25195 * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
25196 * config/rs6000/rs6000.md (type): Remove "brinc".
25197
25198 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
25199
25200 * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
25201 (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
25202 * config/rs6000/linuxspe.h: Delete file.
25203 * config/rs6000/rs6000.md: Don't include spe.md.
25204 * config/rs6000/spe.h: Delete file.
25205 * config/rs6000/spe.md: Delete file.
25206 * config/rs6000/t-rs6000: Remove spe.md.
25207
25208 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
25209
25210 * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
25211 (reg_or_none500mem_operand): Delete.
25212 * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
25213 instead of reg_or_none500mem_operand.
25214
25215 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
25216
25217 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
25218 handling of SPE flags.
25219 * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
25220
25221 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
25222
25223 * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
25224 SPE ABI handling.
25225 * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
25226 (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
25227 paired_divv2sf3): Similar.
25228 * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
25229 SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
25230 * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
25231 RS6000_BUILTIN_S.
25232 Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
25233 Rename the paired_* instruction patterns.
25234 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
25235 define __SPE__.
25236 * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
25237 * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
25238 (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
25239 spe_padding_size, and spe_64bit_regs_used. Replace TARGET_SPE and
25240 TARGET_SPE_ABI with 0, simplify. Replace SPE_VECTOR_MODE with
25241 PAIRED_VECTOR_MODE.
25242 (struct machine_function): Delete field spe_insn_chain_scanned_p.
25243 (spe_func_has_64bit_regs_p): Delete.
25244 (spe_expand_predicate_builtin): Delete.
25245 (spe_expand_evsel_builtin): Delete.
25246 (TARGET_DWARF_REGISTER_SPAN): Do not define.
25247 (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
25248 (invalid_e500_subreg): Delete.
25249 (rs6000_legitimize_address): Always force_reg op2 as well, for
25250 paired single memory accesses.
25251 (rs6000_member_type_forces_blk): Delete.
25252 (rs6000_spe_function_arg): Delete.
25253 (rs6000_expand_unop_builtin): Delete SPE handling.
25254 (rs6000_expand_binop_builtin): Ditto.
25255 (spe_expand_stv_builtin): Delete.
25256 (bdesc_2arg_spe): Delete.
25257 (spe_expand_builtin): Delete.
25258 (spe_expand_predicate_builtin): Delete.
25259 (spe_expand_evsel_builtin): Delete.
25260 (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
25261 (spe_init_builtins): Delete.
25262 (spe_func_has_64bit_regs_p): Delete.
25263 (savres_routine_name): Delete "info" parameter. Adjust callers.
25264 (rs6000_emit_stack_reset): Ditto.
25265 (rs6000_dwarf_register_span): Delete.
25266 * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
25267 UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
25268 SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
25269 Delete.
25270 * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
25271 Delete.
25272 * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
25273 * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
25274 * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
25275 mulv2sf3, divv2sf3): Delete expanders.
25276
25277 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
25278
25279 config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
25280
25281 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
25282
25283 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
25284 * config/rs6000/rs6000.c: Ditto.
25285
25286 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
25287
25288 * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
25289 * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
25290 comparison_operator.
25291
25292 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
25293
25294 * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
25295 * config/rs6000/rs6000.opt: Ditto.
25296 * config/rs6000/t-rtems: Ditto.
25297
25298 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
25299
25300 * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
25301 TARGET_E500_SINGLE by 0, simplify.
25302 * config/rs6000/rs6000.c: Ditto.
25303 (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
25304 (spe_build_register_parallel): Delete.
25305 * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
25306 TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
25307 * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
25308 TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
25309 (E500_CONVERT): Delete.
25310 * config/rs6000/spe.md: Remove many patterns and all define_constants.
25311
25312 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
25313
25314 * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
25315 * config/rs6000/dfp.md: Ditto.
25316 (negdd2, *negdd2_fpr): Merge.
25317 (absdd2, *absdd2_fpr): Merge.
25318 (negtd2, *negtd2_fpr): Merge.
25319 (abstd2, *abstd2_fpr): Merge.
25320 * config/rs6000/e500.h: Delete file.
25321 * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
25322 TARGET_FPRS by 1 and simplify.
25323 * config/rs6000/rs6000-c.c: Ditto.
25324 * config/rs6000/rs6000.c: Ditto. Also replace TARGET_SF_SPE and
25325 TARGET_DF_SPE by 0.
25326 * config/rs6000/rs6000.h: Ditto. Delete TARGET_SF_SPE and
25327 TARGET_DF_SPE.
25328 * config/rs6000/rs6000.md: Ditto.
25329 (floatdidf2, *floatdidf2_fpr): Merge.
25330 (move_from_CR_gt_bit): Delete.
25331 * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
25332 (E500_CR_IOR_COMPARE): Delete.
25333 (All patterns that require !TARGET_FPRS): Delete.
25334 * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
25335
25336 2017-06-07 Bin Cheng <bin.cheng@arm.com>
25337
25338 * passes.def (pass_iv_canon): Move before pass_loop_distribution.
25339
25340 2017-06-07 Bin Cheng <bin.cheng@arm.com>
25341
25342 * graphds.c (add_edge): Intitialize edge's attached data.
25343 (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
25344 pointer parameter. Call pointed function on each edge during
25345 graph traversing. Skip traversing the edge when the function
25346 returns true.
25347 (graphds_dfs, graphds_scc): Ditto.
25348 (for_each_edge): New parameter. Pass the new parameter to callback
25349 function.
25350 * graphds.h (skip_edge_callback): New function pointer type.
25351 (graphds_dfs, graphds_scc): New function pointer parameter.
25352 (graphds_edge_callback, for_each_edge): New parameter.
25353
25354 2017-06-07 Bin Cheng <bin.cheng@arm.com>
25355
25356 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
25357 out code checking if runtime alias check is possible to below ...
25358 Call the new function.
25359 * tree-data-ref.c (runtime_alias_check_p): ... to new function.
25360 * tree-data-ref.h (runtime_alias_check_p): New decalaration.
25361
25362 2017-06-07 Marek Polacek <polacek@redhat.com>
25363
25364 PR sanitizer/80932
25365 * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
25366 TYPE_OVERFLOW_WRAPS check.
25367
25368 2017-06-07 Bin Cheng <bin.cheng@arm.com>
25369
25370 * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
25371 if versioning is required.
25372 * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
25373 peeling with the check for versioning.
25374
25375 2017-06-07 Bin Cheng <bin.cheng@arm.com>
25376
25377 * tree-vectorizer.h (vect_build_loop_niters): New parameter.
25378 * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
25379 Set true to new parameter if new ssa variable is defined.
25380 (vect_gen_vector_loop_niters): Refactor. Set range information
25381 for the new vector loop bound variable.
25382 (vect_do_peeling): Ditto.
25383
25384 2017-06-07 Bin Cheng <bin.cheng@arm.com>
25385
25386 * tree-affine.c (ssa.h): Include header file.
25387 (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
25388 has wrapping overflow behavior.
25389
25390 2017-06-07 Bin Cheng <bin.cheng@arm.com>
25391
25392 * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
25393
25394 2017-06-07 Bin Cheng <bin.cheng@arm.com>
25395
25396 (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
25397 (tree_to_aff_combination): ... here.
25398
25399 2017-06-07 Bin Cheng <bin.cheng@arm.com>
25400
25401 * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
25402 reg_pressure model function.
25403 (ivopts_global_cost_for_size): Delete.
25404 (determine_set_costs, iv_ca_recount_cost): Call new model function
25405 ivopts_estimate_reg_pressure.
25406
25407 2017-06-07 Tamar Christina <tamar.christina@arm.com>
25408
25409 * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more
25410 expensive than udiv. Remove floating point cases from mod.
25411
25412 2017-06-07 Tamar Christina <tamar.christina@arm.com>
25413
25414 * config/arm/aarch-cost-tables.h (cortexa53_extra_cost):
25415 Increase idiv cost.
25416
25417 2017-06-07 Tamar Christina <tamar.christina@arm.com>
25418
25419 * config/aarch64/aarch64.md
25420 (copysignsf3): Fix mask generation.
25421
25422 2017-06-07 Jakub Jelinek <jakub@redhat.com>
25423
25424 * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
25425 TDI_gimple.
25426 (class dump_manager): Add register_dumps method.
25427 * dumpfile.c: Include langhooks.h.
25428 (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
25429 (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
25430 (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
25431 (dump_manager::dump_register): Start with 512 entries instead of 32.
25432 (dump_manager::register_dumps): New method.
25433 * toplev.c (general_init): Instead of invoking register_dumps
25434 langhook, invoke register_dumps method on the dump manager.
25435 * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
25436 TDI_generic.
25437
25438 2017-06-07 Richard Sandiford <richard.sandiford@linaro.org>
25439
25440 * doc/md.texi: Clarify the restrictions on a define_insn condition.
25441 Say that # requires an associated define_split to exist, and that
25442 the define_split must be suitable for use after register allocation.
25443
25444 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
25445
25446 * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
25447 (compute_outgoing_frequencies): Also initialize zero counts.
25448 (find_many_sub_basic_blocks): Do not produce uninitialized profile
25449 around loops; preserve more of profile when nothing changes.
25450
25451 2017-06-06 Jim Wilson <jim.wilson@linaro.org>
25452
25453 * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
25454 here.
25455 * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
25456 * config/arm/arm-cpu-cdata.h: Regenerate.
25457 * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
25458 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
25459 * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
25460 * config/arm/arm.c (arm_qdf24xx_tune): Delete.
25461 * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
25462 support.
25463 * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
25464 support.
25465 * config/arm/t-rmprofile: Likewise.
25466 * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
25467
25468 2017-06-06 David S. Miller <davem@davemloft.net>
25469
25470 PR target/80968
25471 * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
25472 blockage if function uses alloca.
25473
25474 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25475
25476 * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
25477 New "uid" fields to hold pretty-print IDs of group and ref.
25478 Memory references are now identified as <group_id>:<ref_id>
25479 instead of using [random] addresses.
25480 (dump_mem_details): Simplify, no functional change.
25481 (dump_mem_ref): Simplify and make output more concise.
25482 Replace couple of fprintf's throughout code with calls to dump_mem_ref.
25483 (find_or_create_group): Initialize group uid.
25484 (record_ref): Initialize ref uid. Improve debug output.
25485 (prune_group_by_reuse, should_issue_prefetch_p,)
25486 (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
25487 (mark_nontemporal_store, determine_loop_nest_reuse):
25488 Improve debug output.
25489
25490 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25491
25492 * dbgcnt.def (prefetch): New debug counter.
25493 * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
25494 (schedule_prefetches): Stop issueing prefetches if debug counter
25495 tripped.
25496
25497 2017-06-06 Tom de Vries <tom@codesourcery.com>
25498
25499 * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
25500 gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
25501
25502 2017-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25503
25504 * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
25505 Use aarch64_reg_or_zero predicate for operand 4.
25506 (aarch64_compare_and_swap<mode> define_insn_and_split):
25507 Use aarch64_reg_or_zero predicate for operand 3. Add 'Z' constraint.
25508 (aarch64_store_exclusive<mode>): Likewise for operand 2.
25509
25510 2017-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
25511
25512 * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
25513 (arm_compute_save_core_reg_mask): This.
25514 (thumb1_compute_save_reg_mask): Rename into ...
25515 (thumb1_compute_save_core_reg_mask): This.
25516 (arm_compute_save_reg0_reg12_mask): Adapt comment.
25517 (arm_compute_frame_layout): Likewise.
25518
25519 2017-06-06 Richard Biener <rguenther@suse.de>
25520
25521 PR tree-optimization/80974
25522 * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
25523 keep or clear leaders SSA info.
25524
25525 2017-06-06 Tom de Vries <tom@codesourcery.com>
25526
25527 * config/nvptx/nvptx.c (split_mode_p): New function.
25528 (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
25529
25530 2017-06-06 Tom de Vries <tom@codesourcery.com>
25531
25532 * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
25533
25534 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
25535
25536 PR bootstrap/80978
25537 * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
25538 profile.
25539
25540 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
25541
25542 * shrink-wrap.c (handle_simple_exit): Update profile.
25543 (try_shrink_wrapping): Upate profile.
25544
25545 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
25546
25547 * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
25548 (tree_guess_outgoing_edge_probabilities): New.
25549 * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
25550 * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
25551
25552 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
25553
25554 * ipa-split.c (split_function): Initialize return bb profile.
25555
25556 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
25557
25558 * profile.c (compute_branch_probabilities): Also initialize
25559 EXIT_BLOCK profile.
25560
25561 2017-06-06 Richard Biener <rguenther@suse.de>
25562
25563 PR tree-optimization/80928
25564 * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
25565 (vect_analyze_loop_operations): Properly guard analysis for
25566 pure SLP case.
25567 (vect_transform_loop): Likewise.
25568 (vect_analyze_loop_2): Also reset SLP type on PHIs.
25569 (vect_model_induction_cost): Do not cost for pure SLP.
25570 (vectorizable_induction): Pass in SLP node, implement SLP vectorization
25571 of induction in inner loop vectorization.
25572 * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
25573 (vect_get_and_check_slp_defs): Handle vect_induction_def.
25574 (vect_build_slp_tree): Likewise. Handle PHIs as terminating the
25575 recursion.
25576 (vect_analyze_slp_cost_1): Cost induction.
25577 (vect_detect_hybrid_slp_stmts): Handle PHIs.
25578 (vect_get_slp_vect_defs): Likewise.
25579 * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
25580 (vect_transform_stmt): Handle SLP reductions.
25581 * tree-vectorizer.h (vectorizable_induction): Adjust.
25582
25583 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
25584
25585 * config/rs6000/rs6000.c (make_resolver_func): Update
25586 init_lowered_empty_function call.
25587
25588 2017-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
25589
25590 * doc/invoke.texi: Document the -fprofile-abs-path option.
25591 * common.opt (fprofile-abs-path): New option.
25592 * gcov-io.h (gcov_write_filename): Declare.
25593 * gcov-io.c (gcov_write_filename): New function.
25594 * coverage.c (coverage_begin_function): Use gcov_write_filename.
25595 * profile.c (output_location): Likewise.
25596
25597 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
25598
25599 * shring-wrap.c: Revert accidental commit.
25600
25601 2017-06-05 Volker Reichelt <v.reichelt@netcologne.de>
25602
25603 * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
25604
25605 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
25606
25607 * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
25608 new edge.
25609 * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
25610 profile in callgraph edge.
25611 * profile-count.h (apply_probability): If THIS is 0, then result is 0
25612 (apply_scale): Likewise.
25613 * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
25614 Also scale profile when inlining function with zero profile.
25615 (initialize_cfun): Update exit block profile even when it is zero.
25616 * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
25617 when profile is read.
25618
25619 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
25620
25621 * config/rs6000/rs6000.c (toplevel): Include attribs.h.
25622 (CLONE_*): New constants to define the processors we can generate
25623 code for with the target_clone attribute.
25624 (rs6000_clone_map): New array to identify which clone processors
25625 the current program is running on.
25626 (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
25627 target_clone attribute.
25628 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
25629 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
25630 (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
25631 (cpu_expand_builtin): Add support for target_clone attribute.
25632 (rs6000_valid_attribute_p): Allow "default" attribute.
25633 (get_decl_name): New debug function to simplify printing the
25634 current function name in debugging statements.
25635 (rs6000_clone_priority): New functions to support the target_clone
25636 attribute, and be able to generate code to switch between ISA 2.05
25637 through ISA 3.0 (power6 through power9).
25638 (rs6000_compare_version_priority): Likewise.
25639 (rs6000_get_function_versions_dispatcher): Likewise.
25640 (make_resolver_func): Likewise.
25641 (add_condition_to_bb): Likewise.
25642 (dispatch_function_versions): Likewise.
25643 (rs6000_generate_version_dispatcher_body): Likewise.
25644 (rs6000_can_inline_p): Call get_decl_name for debugging usage.
25645 (fusion_gpr_load_p): Fix a spacing issue.
25646 * doc/extend.texi (Common Function Attributes): Document that the
25647 PowerPC supports the target_clone attribute.
25648
25649 2017-06-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
25650
25651 * config/arm/arm.h: explain F symbol found in description of ARM
25652 register allocation in its legend.
25653
25654 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
25655
25656 * config/mips/frame-header-opt.c: Include profile-count.h.
25657 * config/riscv/riscv.c: Include profile-count.h
25658
25659 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
25660
25661 * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
25662 update profile.
25663 (sm_set_flag_if_changed): Add bbs field.
25664 (execute_sm_if_changed_flag_set): Pass BBS.
25665 (execute_sm): Update.
25666
25667 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25668
25669 * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
25670 New pattern.
25671
25672 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25673
25674 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
25675 (peephole2): New peephole2 to emit the above.
25676 * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
25677
25678 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25679
25680 * config/aarch64/aarch64.c (define_peephole2 above
25681 *sub_<shift>_<mode>): New peephole.
25682
25683 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
25684
25685 * config/i386/i386.c (make_resolver_func): Update.
25686 * Makefile.in: Add profile-count.h and profile-count.o
25687 * auto-profile.c (afdo_indirect_call): Update to new API.
25688 (afdo_set_bb_count): Update.
25689 (afdo_propagate_edge): Update.
25690 (afdo_propagate_circuit): Update.
25691 (afdo_calculate_branch_prob): Update.
25692 (afdo_annotate_cfg): Update.
25693 * basic-block.h: Include profile-count.h
25694 (struct edge_def): Turn count to profile_count.
25695 (struct basic_block_def): Likewie.
25696 (REG_BR_PROB_BASE): Move to profile-count.h
25697 (RDIV): Move to profile-count.h
25698 * bb-reorder.c (max_entry_count): Turn to profile_count.
25699 (find_traces): Update.
25700 (rotate_loop):Update.
25701 (connect_traces):Update.
25702 (sanitize_hot_paths):Update.
25703 * bt-load.c (migrate_btr_defs): Update.
25704 * cfg.c (RDIV): Remove.
25705 (init_flow): Use alloc_block.
25706 (alloc_block): Uninitialize count.
25707 (unchecked_make_edge): Uninitialize count.
25708 (check_bb_profile): Update.
25709 (dump_edge_info): Update.
25710 (dump_bb_info): Update.
25711 (update_bb_profile_for_threading): Update.
25712 (scale_bbs_frequencies_int): Update.
25713 (scale_bbs_frequencies_gcov_type): Update.
25714 (scale_bbs_frequencies_profile_count): New.
25715 * cfg.h (update_bb_profile_for_threading): Update.
25716 (scale_bbs_frequencies_profile_count): Declare.
25717 * cfgbuild.c (compute_outgoing_frequencies): Update.
25718 (find_many_sub_basic_blocks): Update.
25719 * cfgcleanup.c (try_forward_edges): Update.
25720 (try_crossjump_to_edge): Update.
25721 * cfgexpand.c (expand_gimple_tailcall): Update.
25722 (construct_exit_block): Update.
25723 * cfghooks.c (verify_flow_info): Update.
25724 (dump_bb_for_graph): Update.
25725 (split_edge): Update.
25726 (make_forwarder_block): Update.
25727 (duplicate_block): Update.
25728 (account_profile_record): Update.
25729 * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
25730 (get_estimated_loop_iterations): Update.
25731 * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
25732 (single_likely_exit): Update.
25733 * cfgloopmanip.c (scale_loop_profile): Update.
25734 (loopify): Update.
25735 (set_zero_probability): Update.
25736 (lv_adjust_loop_entry_edge): Update.
25737 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
25738 (purge_dead_edges): Update.
25739 (rtl_account_profile_record): Update.
25740 * cgraph.c (cgraph_node::create): Uninitialize count.
25741 (symbol_table::create_edge): Uninitialize count.
25742 (cgraph_update_edges_for_call_stmt_node): Update.
25743 (cgraph_edge::dump_edge_flags): Update.
25744 (cgraph_node::dump): Update.
25745 (cgraph_edge::maybe_hot_p): Update.
25746 * cgraph.h: Include profile-count.h
25747 (create_clone), create_edge, create_indirect_edge): Update.
25748 (cgraph_node): Turn count to profile_count.
25749 (cgraph_edge0: Likewise.
25750 (make_speculative, clone): Update.
25751 (create_edge): Update.
25752 (init_lowered_empty_function): Update.
25753 * cgraphclones.c (cgraph_edge::clone): Update.
25754 (duplicate_thunk_for_node): Update.
25755 (cgraph_node::create_clone): Update.
25756 * cgraphunit.c (cgraph_node::analyze): Update.
25757 (cgraph_node::expand_thunk): Update.
25758 * final.c (dump_basic_block_info): Update.
25759 * gimple-streamer-in.c (input_bb): Update.
25760 * gimple-streamer-out.c (output_bb): Update.
25761 * graphite.c (print_global_statistics): Update.
25762 (print_graphite_scop_statistics): Update.
25763 * hsa-brig.c: Include basic-block.h.
25764 * hsa-dump.c: Include basic-block.h.
25765 * hsa-gen.c (T sum_slice): Update.
25766 (convert_switch_statements):Update.
25767 * hsa-regalloc.c: Include basic-block.h.
25768 * ipa-chkp.c (chkp_produce_thunks): Update.
25769 * ipa-cp.c (struct caller_statistics): Update.
25770 (init_caller_stats): Update.
25771 (gather_caller_stats): Update.
25772 (ipcp_cloning_candidate_p): Update.
25773 (good_cloning_opportunity_p): Update.
25774 (get_info_about_necessary_edges): Update.
25775 (dump_profile_updates): Update.
25776 (update_profiling_info): Update.
25777 (update_specialized_profile): Update.
25778 (perhaps_add_new_callers): Update.
25779 (decide_about_value): Update.
25780 (ipa_cp_c_finalize): Update.
25781 * ipa-devirt.c (struct odr_type_warn_count): Update.
25782 (struct decl_warn_count): Update.
25783 (struct final_warning_record): Update.
25784 (possible_polymorphic_call_targets): Update.
25785 (ipa_devirt): Update.
25786 * ipa-fnsummary.c (redirect_to_unreachable): Update.
25787 * ipa-icf.c (sem_function::merge): Update.
25788 * ipa-inline-analysis.c (do_estimate_edge_time): Update.
25789 * ipa-inline.c (compute_uninlined_call_time): Update.
25790 (compute_inlined_call_time): Update.
25791 (want_inline_small_function_p): Update.
25792 (want_inline_self_recursive_call_p): Update.
25793 (edge_badness): Update.
25794 (lookup_recursive_calls): Update.
25795 (recursive_inlining): Update.
25796 (inline_small_functions): Update.
25797 (dump_overall_stats): Update.
25798 (dump_inline_stats): Update.
25799 * ipa-profile.c (ipa_profile_generate_summary): Update.
25800 (ipa_propagate_frequency): Update.
25801 (ipa_profile): Update.
25802 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
25803 * ipa-utils.c (ipa_merge_profiles): Update.
25804 * loop-doloop.c (doloop_modify): Update.
25805 * loop-unroll.c (report_unroll): Update.
25806 (unroll_loop_runtime_iterations): Update.
25807 * lto-cgraph.c (lto_output_edge): Update.
25808 (lto_output_node): Update.
25809 (input_node): Update.
25810 (input_edge): Update.
25811 (merge_profile_summaries): Update.
25812 * lto-streamer-in.c (input_cfg): Update.
25813 * lto-streamer-out.c (output_cfg): Update.
25814 * mcf.c (create_fixup_graph): Update.
25815 (adjust_cfg_counts): Update.
25816 (sum_edge_counts): Update.
25817 * modulo-sched.c (sms_schedule): Update.
25818 * postreload-gcse.c (eliminate_partially_redundant_load): Update.
25819 * predict.c (maybe_hot_count_p): Update.
25820 (probably_never_executed): Update.
25821 (dump_prediction): Update.
25822 (combine_predictions_for_bb): Update.
25823 (propagate_freq): Update.
25824 (handle_missing_profiles): Update.
25825 (counts_to_freqs): Update.
25826 (rebuild_frequencies): Update.
25827 (force_edge_cold): Update.
25828 * predict.h: Include profile-count.h
25829 (maybe_hot_count_p, counts_to_freqs): UPdate.
25830 * print-rtl-function.c: Do not include cfg.h
25831 * print-rtl.c: Include basic-block.h
25832 * profile-count.c: New file.
25833 * profile-count.h: New file.
25834 * profile.c (is_edge_inconsistent): Update.
25835 (correct_negative_edge_counts): Update.
25836 (is_inconsistent): Update.
25837 (set_bb_counts): Update.
25838 (read_profile_edge_counts): Update.
25839 (compute_frequency_overlap): Update.
25840 (compute_branch_probabilities): Update; Initialize and deinitialize
25841 gcov_count tables.
25842 (branch_prob): Update.
25843 * profile.h (bb_gcov_counts, edge_gcov_counts): New.
25844 (edge_gcov_count): New.
25845 (bb_gcov_count): New.
25846 * shrink-wrap.c (try_shrink_wrapping): Update.
25847 * tracer.c (better_p): Update.
25848 * trans-mem.c (expand_transaction): Update.
25849 (ipa_tm_insert_irr_call): Update.
25850 (ipa_tm_insert_gettmclone_call): Update.
25851 * tree-call-cdce.c: Update.
25852 * tree-cfg.c (gimple_duplicate_sese_region): Update.
25853 (gimple_duplicate_sese_tail): Update.
25854 (gimple_account_profile_record): Update.
25855 (execute_fixup_cfg): Update.
25856 * tree-inline.c (copy_bb): Update.
25857 (copy_edges_for_bb): Update.
25858 (initialize_cfun): Update.
25859 (freqs_to_counts): Update.
25860 (copy_cfg_body): Update.
25861 (expand_call_inline): Update.
25862 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
25863 * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
25864 (try_unroll_loop_completely): Update.
25865 (try_peel_loop): Update.
25866 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
25867 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
25868 * tree-ssa-loop-split.c (connect_loops): Update.
25869 * tree-ssa-loop-unswitch.c (hoist_guard): Update.
25870 * tree-ssa-reassoc.c (branch_fixup): Update.
25871 * tree-ssa-tail-merge.c (replace_block_by): Update.
25872 * tree-ssa-threadupdate.c (create_block_for_threading): Update.
25873 (compute_path_counts): Update.
25874 (update_profile): Update.
25875 (recompute_probabilities): Update.
25876 (update_joiner_offpath_counts): Update.
25877 (estimated_freqs_path): Update.
25878 (freqs_to_counts_path): Update.
25879 (clear_counts_path): Update.
25880 (ssa_fix_duplicate_block_edges): Update.
25881 (duplicate_thread_path): Update.
25882 * tree-switch-conversion.c (case_bit_test_cmp): Update.
25883 (struct switch_conv_info): Update.
25884 * tree-tailcall.c (decrease_profile): Update.
25885 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
25886 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
25887 * value-prof.c (check_counter): Update.
25888 (gimple_divmod_fixed_value): Update.
25889 (gimple_mod_pow2): Update.
25890 (gimple_mod_subtract): Update.
25891 (gimple_ic_transform): Update.
25892 (gimple_stringop_fixed_value): Update.
25893 * value-prof.h (gimple_ic): Update.
25894
25895 2017-06-02 Carl Love <cel@us.ibm.com>
25896
25897 * config/rs6000/rs6000-c: Add support for built-in functions
25898 vector double vec_doublee (vector signed int);
25899 vector double vec_doublee (vector unsigned int);
25900 vector double vec_doublee (vector float);
25901 vector double vec_doubleh (vector signed int);
25902 vector double vec_doubleh (vector unsigned int);
25903 vector double vec_doubleh (vector float);
25904 vector double vec_doublel (vector signed int);
25905 vector double vec_doublel (vector unsigned int);
25906 vector double vec_doublel (vector float);
25907 vector double vec_doubleo (vector signed int);
25908 vector double vec_doubleo (vector unsigned int);
25909 vector double vec_doubleo (vector float);.
25910 * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
25911 DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
25912 UNS_DOUBLEL.
25913 * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
25914 unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
25915 unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
25916 VS_sxwsp.
25917 * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
25918 vec_doublel, vec_doubleh.
25919 * doc/extend.texi: Update the built-in documentation file for the
25920 new built-in functions.
25921
25922 2017-06-02 David Malcolm <dmalcolm@redhat.com>
25923
25924 PR jit/80954
25925 * ipa-inline-analysis.c (free_growth_caches): Set
25926 edge_removal_hook_holder to NULL after removing it.
25927
25928 2017-06-02 Sudakshina Das <sudi.das@arm.com>
25929
25930 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
25931 comparision with zero.
25932
25933 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
25934 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
25935 for early expansion of vec_min and vec_max builtins.
25936 (builtin_function_type): Add min/max unsigned variants to those
25937 identified as having unsigned arguments.
25938
25939 2017-06-02 Olivier Hainque <hainque@adacore.com>
25940
25941 * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
25942
25943 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25944
25945 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
25946 Use VALL_F16 iterator rather than VALL.
25947
25948 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25949
25950 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
25951 Emit CBNZ inside loop when doing a strong exchange and comparing
25952 against zero. Generate the CC flags after the loop.
25953
25954 2017-06-02 David Edelsohn <dje.gcc@gmail.com>
25955
25956 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
25957 (dl_section_ref): New.
25958 (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
25959 On AIX, append an expression to subtract the size of the
25960 section length to dl_section_ref.
25961
25962 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
25963
25964 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
25965 for early expansion of vector absolute builtins.
25966
25967 2017-06-02 Richard Biener <rguenther@suse.de>
25968
25969 * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
25970 what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
25971
25972 2017-06-02 Richard Biener <rguenther@suse.de>
25973
25974 PR tree-optimization/80948
25975 * tree-tailcall.c (find_tail_calls): Track stmts to move in
25976 stmt order as well.
25977
25978 2017-06-02 Richard Biener <rguenther@suse.de>
25979
25980 * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
25981 PHIs are ok.
25982 * tree-vect-stmts.c (process_use): Do not mark backedge defs
25983 for inductions as relevant.
25984
25985 2017-06-02 Richard Biener <rguenther@suse.de>
25986
25987 * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
25988 (vectorizable_induction): ... this. Remove dead code.
25989
25990 2017-06-02 Eric Botcazou <ebotcazou@adacore.com>
25991
25992 * builtins. (expand_builtin_alloca): Remove second parameter and
25993 infer its value from the first parameter instead.
25994 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
25995
25996 2017-06-02 Jakub Jelinek <jakub@redhat.com>
25997
25998 PR rtl-optimization/80903
25999 * loop-doloop.c (add_test): Unshare sequence.
26000
26001 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
26002
26003 * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
26004
26005 2017-06-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
26006
26007 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
26008 static.
26009 (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
26010 xlogue_layout::get_instance, logue_layout::xlogue_layout,
26011 sp_valid_at, fp_valid_at, choose_basereg): Formatting.
26012 (xlogue_layout::get_stub_rtx): Make static.
26013 (xlogue_layout::get_stub_name): Avoid const-cast, make static.
26014 (xlogue_layout::compute_stub_managed_regs): Rename to...
26015 (xlogue_layout::count_stub_managed_regs): ...this.
26016 (xlogue_layout::is_stub_managed_reg): New function.
26017 (xlogue_layout::m_stub_names): Rename to...
26018 (xlogue_layout::s_stub_names): ...this, make static.
26019 (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
26020 xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
26021 xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
26022 xlogue_layout::s_stub_names): Instantiate statics.
26023 (stub_managed_regs): Remove.
26024 (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
26025 (disable_call_ms2sysv_xlogues): Rename to...
26026 (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
26027 (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
26028 warning logic.
26029 (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
26030 change after reload_completed.
26031 (ix86_can_use_return_insn_p): Use the ix86_frame data structure
26032 directly.
26033 (ix86_expand_prologue): Likewise.
26034 (ix86_expand_epilogue): Likewise.
26035 (ix86_expand_split_stack_prologue): Likewise.
26036 (ix86_compute_frame_layout): Remove frame parameter ...
26037 (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
26038 (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
26039 only if necessary.
26040 (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
26041 (ix86_frame): Move from here ...
26042 * config/i386/i386.h (ix86_frame): ... to here.
26043 (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
26044 complete ix86_frame data structure instead. Remove some_ld_name.
26045
26046 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
26047
26048 * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
26049 symbols that hold a DECL_VALUE_EXPR.
26050
26051 2017-06-01 Martin Jambor <mjambor@suse.cz>
26052
26053 PR tree-optimization/80898
26054 * tree-sra.c (process_subtree_disqualification): Removed.
26055 (disqualify_candidate): Do not acll
26056 process_subtree_disqualification.
26057 (subtree_mark_written_and_enqueue): New function.
26058 (propagate_all_subaccesses): Set grp_write of LHS subtree if the
26059 RHS has been disqualified and re-queue LHS if necessary. Apart
26060 from that, ignore disqualified RHS.
26061
26062 2017-06-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26063
26064 * config/s390/s390.c (s390_emit_epilogue): Disable early return
26065 address fetch for z10 or later.
26066
26067 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
26068
26069 * config/arc/arc.md (tst_movb): Add guard when splitting.
26070
26071 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
26072
26073 * config/arc/arc.c (arc_can_eliminate): Test against
26074 arc_frame_pointer_needed.
26075
26076 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
26077
26078 * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
26079 to prevent store reordering.
26080 * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
26081 (type): Add block type.
26082 (stack_tie): Define special instruction to be used in
26083 expand_prologue.
26084
26085 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
26086
26087 * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
26088 constraint. It is not valid for the pattern.
26089 (noncommutative_binary_comparison): Likewise.
26090
26091 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
26092
26093 * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
26094 scaled addresses.
26095
26096 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
26097
26098 * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
26099 be used by the reg-alloc.
26100
26101 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
26102
26103 * config/arc/arc.md (mulsi3): Avoid use of hard registers before
26104 reg-alloc when having mul64 or mul32x16 instructions.
26105 (mulsidi3): Likewise.
26106 (umulsidi3): Likewise.
26107 (mulsi32x16): New pattern.
26108 (mulsi64): Likewise.
26109 (mulsidi64): Likewise.
26110 (umulsidi64): Likewise.
26111 (MUL32x16_REG): Define.
26112 (mul64_600): Use MUL32x16_REG.
26113 (mac64_600): Likewise.
26114 (umul64_600): Likewise.
26115 (umac64_600): Likewise.
26116
26117 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
26118
26119 * config/arc/arc.md (mulsi3_700): Make it commutative.
26120
26121 2017-06-01 Jose E. Marchesi <jose.marchesi@oracle.com>
26122
26123 * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
26124 type for movstouw.
26125 (*sign_extendsidi2_insn): Likewise for movstosw.
26126
26127 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
26128
26129 * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
26130 the type of the input discriminant value. Convert the
26131 discriminant value of signedness vary.
26132
26133 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
26134
26135 * doc/invoke.texi (-Wcatch-value): Document new shortcut.
26136 Add to -Wall section.
26137
26138 2017-06-01 Richard Biener <rguenther@suse.de>
26139
26140 PR middle-end/66313
26141 * fold-const.c (fold_plusminus_mult_expr): If the factored
26142 factor may be zero use a wrapping type for the inner operation.
26143 * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
26144 and handle moved defs.
26145 (process_assignment): Properly guard the unary op case. Return a
26146 tri-state indicating that moving the stmt before the call may allow
26147 to continue. Pass through to_move.
26148 (find_tail_calls): Handle moving unrelated defs before
26149 the call.
26150
26151 2017-05-31 Segher Boessenkool <segher@kernel.crashing.org>
26152
26153 PR target/80618
26154 * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
26155 splitter result in the canonical way.
26156
26157 2017-05-31 Uros Bizjak <ubizjak@gmail.com>
26158
26159 * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
26160 also for 32bit target. Update insn attributes.
26161 (zero-extendsidi2 splitter): Allow all registers for operand 1.
26162
26163 2017-05-31 Sebastian Peryt <sebastian.peryt@intel.com>
26164
26165 * config/i386/avx512fintrin.h (_mm_mask_max_sd)
26166 (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
26167 (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
26168 (_mm_maskz_min_ss): New intrinsics.
26169
26170 2017-05-31 Martin Liska <mliska@suse.cz>
26171
26172 * tree-vect-loop.c (vect_create_epilog_for_reduction):
26173 Change comment style to one we normally use.
26174 (vectorizable_reduction): Likewise.
26175 (vectorizable_induction): Likewise.
26176 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
26177 (vectorizable_call): Likewise.
26178 (vectorizable_simd_clone_call): Likewise.
26179 (vectorizable_conversion): Likewise.
26180 (vectorizable_assignment): Likewise.
26181 (vectorizable_shift): Likewise.
26182 (vectorizable_operation): Likewise.
26183 (vectorizable_store): Likewise.
26184 (vectorizable_load): Likewise.
26185 * tree-vectorizer.h: Likewise.
26186
26187 2017-05-31 Alexander Monakov <amonakov@ispras.ru>
26188
26189 * passes.c (emergency_dump_function): New.
26190 * tree-pass.h (emergency_dump_function): Declare.
26191 * plugin.c (plugins_internal_error_function): Remove.
26192 * plugin.h (plugins_internal_error_function): Remove declaration.
26193 * toplev.c (internal_error_function): New static function. Use it...
26194 (general_init): ...here.
26195
26196 2017-05-31 Graham Markall <graham.markall@embecosm.com>
26197
26198 * config/arc/arc.c (arc_print_operand): Handle constant operands.
26199 (arc_rtx_costs): Add costs for new patterns.
26200 * config/arc/arc.md: Additional *add_n and *sub_n patterns.
26201 * config/arc/predicates.md: Add _1_2_3_operand predicate.
26202
26203 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
26204
26205 * tree-ssa-strlen.c (get_next_strinfo): New function.
26206 (get_stridx_plus_constant): Use it.
26207 (zero_length_string): Likewise.
26208 (adjust_related_strinfos): Likewise.
26209 (adjust_last_stmt): Likewise.
26210
26211 2017-05-31 Richard Biener <rguenther@suse.de>
26212
26213 PR target/80880
26214 * config/i386/i386.c (ix86_expand_builtin): Remove assert
26215 for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
26216
26217 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
26218
26219 * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
26220 loop_vinfo argument and use of dependence distance vectors.
26221 Check instead whether the two references differ only in their
26222 initial value and assume that they have the same alignment if the
26223 difference is a multiple of the vector alignment.
26224 (vect_analyze_data_refs_alignment): Update call accordingly.
26225
26226 2017-05-31 Martin Liska <mliska@suse.cz>
26227
26228 PR target/79155
26229 * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
26230
26231 2017-05-31 Bin Cheng <bin.cheng@arm.com>
26232
26233 * tree-vect-loop-manip.c (create_intersect_range_checks_index)
26234 (create_intersect_range_checks): Move from ...
26235 * tree-data-ref.c (create_intersect_range_checks_index)
26236 (create_intersect_range_checks): ... to here.
26237 (create_runtime_alias_checks): New function factored from ...
26238 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
26239 here. Call above function.
26240 * tree-data-ref.h (create_runtime_alias_checks): New function.
26241
26242 2017-05-31 Bin Cheng <bin.cheng@arm.com>
26243
26244 * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
26245 segment length for dr_b and compute it in wide_int.
26246
26247 2017-05-31 Richard Biener <rguenther@suse.de>
26248
26249 PR tree-optimization/80906
26250 * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
26251 and pass through iv_map.
26252 (copy_bb_and_scalar_dependences): Adjust.
26253 (translate_pending_phi_nodes): Likewise.
26254 (copy_loop_close_phi_args): Handle code-generating IVs instead
26255 of ICEing.
26256
26257 2017-05-30 David Malcolm <dmalcolm@redhat.com>
26258
26259 * diagnostic-color.c (color_dict): Add "type-diff".
26260 (parse_gcc_colors): Update comment.
26261 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
26262 -fdiagnostics-show-template-tree and -fno-elide-type.
26263 (GCC_COLORS): Add type-diff to example.
26264 (type-diff=): New.
26265 (-fdiagnostics-show-template-tree): New.
26266 (-fno-elide-type): New.
26267 * pretty-print.c (pp_format): Pass quote and formatters[argno] to
26268 the pp_format_decoder callback. Call any m_format_postprocessor's
26269 "handle" method.
26270 (pretty_printer::pretty_printer): Initialize
26271 m_format_postprocessor.
26272 (pretty_printer::~pretty_printer): Delete any
26273 m_format_postprocessor.
26274 * pretty-print.h (printer_fn): Add bool and const char ** parameters.
26275 (class format_postprocessor): New class.
26276 (struct pretty_printer::format_decoder): Document the new parameters.
26277 (struct pretty_printer::m_format_postprocessor): New field.
26278 * tree-diagnostic.c (default_tree_printer): Update for new
26279 bool and const char ** params.
26280 * tree-diagnostic.h (default_tree_printer): Likewise.
26281
26282 2017-05-30 Segher Boessenkool <segher@kernel.crashing.org>
26283
26284 * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
26285 (lwa_operand): Delete rs6000_gen_cell_microcode test.
26286 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
26287 rs6000_gen_cell_microcode code.
26288 (rs6000_final_prescan_insn): Delete.
26289 (rs6000_opt_vars): Delete the "gen-cell-microcode" and
26290 "warn-cell-microcode" entries.
26291 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
26292 * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
26293 throughout. Change cc_reg_not_micro_cr0_operand to
26294 cc_reg_not_cr0_operand throughout.
26295 (*extendhi<mode>2_noload): Delete.
26296 * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
26297 (mwarn-cell-microcode): Delete.
26298 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
26299 -mgen-cell-microcode and -mwarn-cell-microcode.
26300
26301 2017-05-30 Uros Bizjak <ubizjak@gmail.com>
26302
26303 PR target/80833
26304 * config/i386/constraints.md (Yd): New constraint.
26305 (Ye): Ditto.
26306 * config/i386/i386.md (*movti_internal): Add (?r, Ye)
26307 and (?Yd, r) alternatives. Update insn attributes.
26308 * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
26309 and (?*Yd, r) alternatives. Update insn attributes.
26310 (double-mode inter-unit splitters): Add new GR<->XMM splitters.
26311
26312 2017-05-30 Pierre-Marie de Rodat <derodat@adacore.com>
26313
26314 * gimplify.c (gimplify_modify_expr): Don't create a
26315 DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
26316 function.
26317
26318 2017-05-30 Wilco Dijkstra <wdijkstr@arm.com>
26319
26320 * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
26321
26322 2017-05-30 Richard Biener <rguenther@suse.de>
26323
26324 * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
26325 and reduc_def fields.
26326 (STMT_VINFO_REDUC_TYPE): New define.
26327 (STMT_VINFO_REDUC_DEF): Likewise.
26328 (vect_force_simple_reduction): Adjust prototype.
26329 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
26330 (vect_is_simple_reduction): Remove check_reduction argument.
26331 (vect_force_simple_reduction): Adjust and set
26332 STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
26333 (vectorizable_reduction): Do not re-do reduction analysis
26334 but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
26335 * tree-parloops.c (gather_scalar_reductions): Adjust.
26336
26337 2017-05-30 Richard Biener <rguenther@suse.de>
26338
26339 PR middle-end/80901
26340 * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
26341 split_edge code.
26342
26343 2017-05-24 Robin Dapp <rdapp@linux.vnet.ibm.com>
26344
26345 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
26346 Introduce unknown_misalignment parameter and remove vf.
26347 (vect_peeling_hash_get_lowest_cost):
26348 Pass unknown_misalignment parameter.
26349 (vect_enhance_data_refs_alignment):
26350 Fix unsupportable data ref treatment.
26351
26352 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
26353
26354 * tree-vect-data-refs.c (vect_get_data_access_cost):
26355 Workaround for SLP handling.
26356 (vect_enhance_data_refs_alignment):
26357 Compute costs for doing no peeling at all, compare to the best
26358 peeling costs so far and avoid peeling if cheaper.
26359
26360 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
26361
26362 * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
26363 Return peeling info and set costs to zero for unlimited cost
26364 model.
26365 (vect_enhance_data_refs_alignment): Also inspect all datarefs
26366 with unknown misalignment. Compute and costs for unknown
26367 misalignment, compare them to the costs for known misalignment
26368 and choose the cheapest for peeling.
26369
26370 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
26371
26372 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
26373 (vect_get_peeling_costs_all_drs): Create function.
26374 (vect_peeling_hash_get_lowest_cost):
26375 Use vect_get_peeling_costs_all_drs.
26376 (vect_peeling_supportable): Create function.
26377 (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
26378
26379 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
26380
26381 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
26382 DR_HAS_NEGATIVE_STEP.
26383 (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
26384 (vect_enhance_data_refs_alignment): Use.
26385 (vect_duplicate_ssa_name_ptr_info): Use.
26386 * tree-vectorizer.h (dr_misalignment): Use.
26387 (known_alignment_for_access_p): Use.
26388
26389 2017-05-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
26390
26391 PR target/78838
26392 * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
26393 .lowtext.
26394 (has_section_name): New function.
26395
26396 2017-05-30 Martin Liska <mliska@suse.cz>
26397
26398 PR other/80909
26399 * auto-profile.c (get_function_decl_from_block): Fix
26400 parenthesis.
26401
26402 2017-05-30 Richard Biener <rguenther@suse.de>
26403
26404 PR middle-end/80876
26405 * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
26406
26407 2017-05-30 Martin Liska <mliska@suse.cz>
26408
26409 * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
26410 * dumpfile.h (struct dump_file_info): Remove ctors.
26411
26412 2017-05-30 Martin Liska <mliska@suse.cz>
26413
26414 * predict.def: Fix GNU coding style.
26415
26416 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
26417
26418 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
26419 Mark 'to' argument with ATTRIBUTE_UNUSED.
26420
26421 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
26422
26423 * config/xtensa/xtensa.c (xtensa_emit_call): Use
26424 HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
26425 (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
26426 format string.
26427
26428 2017-05-29 Eric Botcazou <ebotcazou@adacore.com>
26429
26430 * doc/install.texi (Options specification): Restore entry of
26431 --enable-sjlj-exceptions.
26432
26433 2017-05-27 Michael Eager <eager@eagercon.com>
26434
26435 Revert:
26436 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
26437
26438 See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
26439
26440 * config/microblaze/microblaze.h
26441 (FIXED_REGISTERS): Update in macro.
26442 (CALL_USED_REGISTERS): Update in macro.
26443
26444 2017-05-27 François-Xavier Coudett <fxcoudert@gcc.gnu.org>
26445
26446 * doc/install.texi: Add links to macOS binary distributions.
26447
26448 2017-05-27 Jakub Jelinek <jakub@redhat.com>
26449
26450 PR bootstrap/80887
26451 Revert:
26452 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
26453
26454 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
26455
26456 2017-05-26 Martin Liska <mliska@suse.cz>
26457
26458 * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
26459
26460 2017-05-26 Martin Liska <mliska@suse.cz>
26461
26462 * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
26463 always leading ';; '.
26464 (dump_bb_info): Likewise.
26465 (brief_dump_cfg): Likewise.
26466 * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
26467 * dumpfile.c: Remove usage of TDF_VERBOSE.
26468 * dumpfile.h (enum dump_kind): Likewise.
26469 (dump_gimple_bb_header): Do not use TDF_COMMENT.
26470 * print-tree.c (debug_verbose): Remove.
26471 * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
26472 (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
26473 * tree-diagnostic.c (default_tree_printer): Replace
26474 TDF_DIAGNOSTIC with TDF_SLIM.
26475
26476 2017-05-26 Bin Cheng <bin.cheng@arm.com>
26477
26478 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
26479 in parameter loop, rather than loop_vinfo.
26480 (create_intersect_range_checks): Ditto.
26481 (vect_create_cond_for_alias_checks): Update call to above functions.
26482
26483 2017-05-26 Bin Cheng <bin.cheng@arm.com>
26484
26485 PR tree-optimization/80815
26486 * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
26487 for merging runtime alias checks. Handle negative DR_STEPs.
26488
26489 2017-05-26 Bin Cheng <bin.cheng@arm.com>
26490
26491 * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
26492 Move from ...
26493 * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
26494 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
26495 out code pruning runtime alias checks.
26496 * tree-data-ref.c (prune_runtime_alias_test_list): New function
26497 factored out from above.
26498 * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
26499 Move from ...
26500 * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
26501 ... to here.
26502 (prune_runtime_alias_test_list): New decalaration.
26503
26504 2017-05-26 Bin Cheng <bin.cheng@arm.com>
26505
26506 * tree-vect-data-refs.c (compare_tree): Rename and move ...
26507 * tree-data-ref.c (data_ref_compare_tree): ... to here.
26508 * tree-data-ref.h (data_ref_compare_tree): New decalaration.
26509 * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
26510 (operator==, comp_dr_with_seg_len_pair): Ditto.
26511 (vect_prune_runtime_alias_test_list): Ditto.
26512
26513 2017-05-26 Martin Liska <mliska@suse.cz>
26514
26515 PR ipa/80663
26516 * params.def: Bound partial-inlining-entry-probability param.
26517
26518 2017-05-26 Marek Polacek <polacek@redhat.com>
26519
26520 PR sanitizer/80875
26521 * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
26522 can be negated.
26523
26524 2017-05-26 Richard Biener <rguenther@suse.de>
26525
26526 PR tree-optimization/80842
26527 * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
26528 value.
26529
26530 2017-05-26 Richard Biener <rguenther@suse.de>
26531
26532 PR tree-optimization/80844
26533 * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
26534
26535 2017-05-25 Sebastian Peryt <sebastian.peryt@intel.com>
26536
26537 * doc/md.texi (Machine Constraints): Update x86 family
26538 machine constraints section to match 'config/i386/constraints.md'.
26539
26540 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
26541
26542 * doc/invoke.texi (-Wcatch-value=): Document new warning option.
26543
26544 2017-05-25 Nathan Sidwell <nathan@acm.org>
26545
26546 * doc/invoke.texi (--enable-languages): Update documentation.
26547
26548 2017-05-25 Martin Liska <mliska@suse.cz>
26549
26550 * dumpfile.c: Add TDF_FOLDING.
26551 * dumpfile.h (enum dump_kind): Likewise.
26552 * genmatch.c (dt_simplify::gen_1): Use it.
26553
26554 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
26555
26556 * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
26557
26558 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
26559
26560 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
26561 * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
26562
26563 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
26564
26565 * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
26566 * match.pd (X == C): Rewrite it here.
26567 (with_possible_nonzero_bits, with_possible_nonzero_bits2,
26568 with_certain_nonzero_bits2): New predicates.
26569 * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
26570
26571 2017-05-24 Nathan Sidwell <nathan@acm.org>
26572
26573 * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
26574 avoid warning.
26575
26576 * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
26577 warning.
26578
26579 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
26580
26581 * config/powerpcspe: New port. Files are copied from the rs6000
26582 port, with "rs6000" in filenames replaced by "powerpcspe".
26583
26584 2017-05-24 Wilco Dijkstra <wdijkstr@arm.com>
26585
26586 PR rtl-optimization/80754
26587 * lra-remat.c (do_remat): Add overlap checks for dst_regno.
26588
26589 2017-05-24 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
26590
26591 * config/sparc/sparc.md (length): Return the correct value for -mflat
26592 sibcalls to match output_sibcall.
26593
26594 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
26595
26596 PR bootstrap/80860
26597 PR bootstrap/80843
26598 * config/rs6000/rs6000.c (struct machine_function): Add new field
26599 n_components.
26600 (rs6000_get_separate_components): Init that field, use it.
26601 (rs6000_components_for_bb): Use the field.
26602
26603 2017-05-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
26604
26605 * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
26606
26607 2017-05-24 Peter Bergner <bergner@vnet.ibm.com>
26608
26609 PR middle-end/80823
26610 * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
26611
26612 2017-05-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26613
26614 PR target/80725
26615 * config/s390/s390.c (s390_check_qrst_address): Check incoming
26616 address against address_operand predicate.
26617 * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
26618
26619 2017-05-24 Eric Botcazou <ebotcazou@adacore.com>
26620
26621 * var-tracking.c (track_expr_p): Do not return 0 for tracked record
26622 parameters passed indirectly.
26623
26624 2017-05-23 Uros Bizjak <ubizjak@gmail.com>
26625
26626 * config/i386/i386.md (*movdi_internal): Remove SSE4
26627 alternative 18 (?r, *v). Update insn attributes.
26628 (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
26629 Update insn attributes.
26630 (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
26631 Update insn attributes.
26632 * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
26633 alternative 1 (r, v). Remove isa attribute.
26634 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
26635 Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
26636 and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
26637
26638 2017-05-23 Tom de Vries <tom@codesourcery.com>
26639
26640 * doc/sourcebuild.texi (Directives, Verify compiler message): Document
26641 dg-line directive.
26642
26643 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
26644
26645 * cgraphunit.c (symbol_table::process_new_functions): Update.
26646 * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
26647 (inline_generate_summary): Rename to ...
26648 (ipa_fn_summary_generate): ... this one.
26649 (inline_read_summary): Rename to ...
26650 (ipa_fn_summary_read): ... this one.
26651 (inline_write_summary): Rename to ...
26652 (ipa_fn_summary_write): ... this one.
26653 (inline_free_summary): Rename to ...
26654 (ipa_free_fn_summary): ... this one.
26655 (pass_data_local_fn_summary, pass_local_fn_summary,
26656 make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
26657 pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
26658 pass_data_ipa_fn_summary, pass_ipa_fn_summary,
26659 make_pass_ipa_fn_summary): New.
26660 * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
26661 inline_write_summary, inline_free_summary): Remove.
26662 (ipa_free_fn_summary) : New.
26663 * ipa-inline.c (ipa_inline): Update.
26664 (pass_ipa_inline): Do not generate summaries.
26665 * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
26666 Remove.
26667 * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
26668 and add pass_ipa_fn_summary.
26669 * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
26670 New.
26671 (make_pass_inline_parameters): Remove.
26672
26673 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
26674
26675 * omp-low.c (struct omp_context): Remove "default_kind" member.
26676 Adjust all users.
26677
26678 * omp-offload.c (execute_oacc_device_lower): Remove the
26679 parallelism dimensions function attributes for unparallelized
26680 OpenACC kernels constructs.
26681
26682 2017-05-23 Martin Liska <mliska@suse.cz>
26683
26684 * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
26685 functions.
26686 (cgraph_edge::make_speculative): Likewise.
26687 (cgraph_edge::resolve_speculation): Likewise.
26688 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
26689 (cgraph_node::dump): Likewise.
26690 * cgraph.h: Likewise.
26691 * cgraphunit.c (analyze_functions): Likewise.
26692 (symbol_table::compile): Likewise.
26693 * ipa-cp.c (print_all_lattices): Likewise.
26694 (determine_versionability): Likewise.
26695 (initialize_node_lattices): Likewise.
26696 (ipcp_verify_propagated_values): Likewise.
26697 (estimate_local_effects): Likewise.
26698 (update_profiling_info): Likewise.
26699 (create_specialized_node): Likewise.
26700 (perhaps_add_new_callers): Likewise.
26701 (decide_about_value): Likewise.
26702 (decide_whether_version_node): Likewise.
26703 (identify_dead_nodes): Likewise.
26704 (ipcp_store_bits_results): Likewise.
26705 * ipa-devirt.c (dump_targets): Likewise.
26706 (ipa_devirt): Likewise.
26707 * ipa-icf.c (sem_item::dump): Likewise.
26708 (sem_function::equals): Likewise.
26709 (sem_variable::equals): Likewise.
26710 (sem_item_optimizer::read_section): Likewise.
26711 (sem_item_optimizer::execute): Likewise.
26712 (congruence_class::dump): Likewise.
26713 * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
26714 (dump_inline_summary): Likewise.
26715 (estimate_node_size_and_time): Likewise.
26716 (inline_analyze_function): Likewise.
26717 * ipa-inline-transform.c (inline_call): Likewise.
26718 * ipa-inline.c (report_inline_failed_reason): Likewise.
26719 (want_early_inline_function_p): Likewise.
26720 (edge_badness): Likewise.
26721 (update_edge_key): Likewise.
26722 (inline_small_functions): Likewise.
26723 * ipa-profile.c (ipa_profile): Likewise.
26724 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
26725 (ipa_make_edge_direct_to_target): Likewise.
26726 (remove_described_reference): Likewise.
26727 (ipa_impossible_devirt_target): Likewise.
26728 (propagate_controlled_uses): Likewise.
26729 (ipa_print_node_params): Likewise.
26730 (ipcp_transform_function): Likewise.
26731 * ipa-pure-const.c (pure_const_read_summary): Likewise.
26732 (propagate_pure_const): Likewise.
26733 * ipa-reference.c (generate_summary): Likewise.
26734 (read_write_all_from_decl): Likewise.
26735 (propagate): Likewise.
26736 (ipa_reference_read_optimization_summary): Likewise.
26737 * ipa-utils.c (ipa_merge_profiles): Likewise.
26738 * ipa.c (walk_polymorphic_call_targets): Likewise.
26739 (symbol_table::remove_unreachable_nodes): Likewise.
26740 (ipa_single_use): Likewise.
26741 * passes.c (execute_todo): Likewise.
26742 * predict.c (drop_profile): Likewise.
26743 * symtab.c (symtab_node::get_dump_name): New function.
26744 (symtab_node::dump_name): Likewise.
26745 (symtab_node::dump_asm_name): Likewise.
26746 (symtab_node::dump_references): Likewise.
26747 (symtab_node::dump_referring): Likewise.
26748 (symtab_node::dump_base): Likewise.
26749 (symtab_node::debug_symtab): Likewise.
26750 * tree-sra.c (convert_callers_for_node): Likewise.
26751 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
26752 * value-prof.c (init_node_map): Likewise.
26753
26754 2017-05-23 Martin Liska <mliska@suse.cz>
26755
26756 * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
26757 and symtab_node::debug_symtab to symbol_table::debug.
26758 * cgraphunit.c (analyze_functions): Use the renamed function.
26759 (symbol_table::compile): Likewise.
26760 * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
26761 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
26762 * passes.c (execute_todo): Likewise.
26763 * symtab.c (symbol_table::dump): New function.
26764 * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
26765
26766 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
26767
26768 * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
26769 that nonconst implies exec.
26770
26771 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
26772
26773 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
26774 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
26775 (inline_edge_summary_vec): Turn into ...
26776 (ipa_call_summaries): ... this one.
26777 (redirect_to_unreachable, edge_set_predicate,
26778 evaluate_properties_for_edge, inline_summary_alloc,
26779 reset_ipa_call_summary, reset_inline_summary,
26780 inline_summary_t::duplicate): Update.
26781 (inline_edge_duplication_hook): Turn to ...
26782 (ipa_call_summary_t::duplicate): ... this one.
26783 (inline_edge_removal_hook): Turn to ...
26784 (ipa_call_summary_t::remove): ... this one.
26785 (dump_inline_edge_summary): Turn to ...
26786 (dump_ipa_call_summary): ... this one.
26787 (estimate_function_body_sizes): Update.
26788 (inline_update_callee_summaries): Update.
26789 (remap_edge_change_prob): Update.
26790 (remap_edge_summaries): Update.
26791 (inline_merge_summary): Update.
26792 (do_estimate_edge_time): Update.
26793 (inline_generate_summary): Update.
26794 (inline_read_section): Update.
26795 (inline_read_summary): Update.
26796 (inline_free_summary): Update.
26797 * ipa-inline.c (can_inline_edge_p): Update.
26798 (compute_inlined_call_time): Update.
26799 (want_inline_small_function_p): Update.
26800 (edge_badness): Update.
26801 (early_inliner): Update.
26802 * ipa-inline.h (inline_edge_summary): Turn to ...
26803 (ipa_call_summary): ... this one.
26804 (ipa_call_summary_t): New class.
26805 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
26806 (ipa_call_summaries): New.
26807 (inline_edge_summary): Remove.
26808 (estimate_edge_growth): Update.
26809 * ipa-profile.c (ipa_propagate_frequency_1): Update.
26810 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
26811 * ipa-split.c (execute_split_functions): Update.
26812 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
26813
26814 2017-05-23 Tom de Vries <tom@codesourcery.com>
26815
26816 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
26817 attributes): Document rdrand effective target.
26818
26819 2017-05-23 Tom de Vries <tom@codesourcery.com>
26820
26821 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
26822 attributes): Sort alphabetically.
26823
26824 2017-05-23 Georg-Johann Lay <avr@gjlay.de>
26825
26826 * config/avr/genmultilib.awk: Use gsub instead of gensub.
26827
26828 2017-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26829
26830 PR target/80718
26831 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
26832 V2DF/V2DI splat into two separate patterns, one that handles
26833 registers, and the other that only handles memory. Drop support
26834 for splatting from a GPR on ISA 2.07 and then splitting the
26835 splat into direct move and splat.
26836 (vsx_splat_<mode>_reg): Likewise.
26837 (vsx_splat_<mode>_mem): Likewise.
26838
26839 2017-05-22 Segher Boessenkool <segher@kernel.crashing.org>
26840
26841 * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
26842
26843 2017-05-22 Jakub Jelinek <jakub@redhat.com>
26844
26845 PR middle-end/80809
26846 * omp-low.c (finish_taskreg_remap): New function.
26847 (finish_taskreg_scan): If unit size of ctx->record_type
26848 is non-constant, unshare the size expression and replace
26849 decls in it with possible outer var refs.
26850
26851 PR middle-end/80809
26852 * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
26853 GOVD_SHARED rather than GOVD_PRIVATE with it.
26854 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
26855 GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
26856
26857 PR middle-end/80853
26858 * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
26859 as last argument to build_outer_var_ref for pointer bases of array
26860 section reductions.
26861
26862 2017-05-19 Martin Sebor <msebor@redhat.com>
26863
26864 * print-tree.c (print_node): Print DECL_READ_P flag.
26865
26866 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26867
26868 * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
26869 * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
26870 * cgraph.c: Likewise.
26871 * cgraphunit.c: Likewise.
26872 * gengtype.c: Likewise.
26873 * ipa-cp.c: Likewise.
26874 * ipa-devirt.c: Likewise.
26875 * ipa-icf.c: Likewise.
26876 * ipa-predicate.c: Likewise.
26877 * ipa-profile.c: Likewise.
26878 * ipa-prop.c: Likewise.
26879 * ipa-split.c: Likewise.
26880 * ipa.c: Likewise.
26881 * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
26882 edge_predicate_pool, dump_inline_hints,
26883 inline_summary::account_size_time, redirect_to_unreachable,
26884 edge_set_predicate, set_hint_predicate,
26885 evaluate_conditions_for_known_args, evaluate_properties_for_edge,
26886 inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
26887 inline_summary_t::remove, remap_hint_predicate_after_duplication,
26888 inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
26889 ipa_call_summary_t::remove, initialize_growth_caches,
26890 free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
26891 debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
26892 mark_modified, unmodified_parm_1, unmodified_parm,
26893 unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
26894 set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
26895 compute_bb_predicates, will_be_nonconstant_expr_predicate,
26896 will_be_nonconstant_predicate, record_modified_bb_info,
26897 get_minimal_bb, record_modified, param_change_prob,
26898 phi_result_unknown_predicate, predicate_for_phi_result,
26899 array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
26900 estimate_function_body_sizes, compute_inline_parameters,
26901 compute_inline_parameters_for_curren, pass_data_inline_parameters,
26902 estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
26903 inline_update_callee_summaries, remap_edge_change_prob,
26904 remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
26905 inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
26906 inline_analyze_function, inline_summary_t::insert,
26907 inline_generate_summary, read_ipa_call_summary, inline_read_section,
26908 inline_read_summary, write_ipa_call_summary, inline_write_summary,
26909 inline_free_summary): Move to ipa-fnsummary.h
26910 (predicate_t): Remove.
26911 * ipa-fnsummary.c: New file.
26912 * ipa-inline.h: Do not include sreal.h and ipa-predicate.h
26913 (enum inline_hints_vals, inline_hints, agg_position_info,
26914 INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
26915 inline_summaries, ipa_call_summary, ipa_call_summary_t,
26916 ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
26917 dump_inline_summary, dump_inline_hints, inline_generate_summary,
26918 inline_read_summary, inline_write_summary, inline_free_summary,
26919 inline_analyze_function, initialize_inline_failed,
26920 inline_merge_summary, inline_update_overall_summary,
26921 compute_inline_parameters): Move to ipa-fnsummary.h
26922 * ipa-fnsummary.h: New file.
26923 * ipa-inline-transform.h: Include ipa-inline.h.
26924 * ipa-inline.c: LIkewise.
26925
26926 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26927
26928 * ipa-inline.c (edge_badness): Use inlined_time instead of
26929 inline_summaries->get.
26930
26931 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26932
26933 * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
26934
26935 2017-05-22 Nathan Sidwell <nathan@acm.org>
26936
26937 * doc/invoke.texi (fdump-translation-unit): Delete documentation.
26938 (fdump-lang): Document 'raw' option.
26939 * dumpfile.h (TDI_tu): Delete.
26940 * dumpfile.c (dump_files): Remove translation-unit.
26941 (FIRST_AUTO_NUMBERED_DUMP): Decrement.
26942
26943 2017-05-22 Georg-Johann Lay <avr@gjlay.de>
26944
26945 * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
26946 command option from $(AWK) call.
26947 * config/avr/genmultilib.awk: Simplify and rewrite so that it
26948 generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
26949 [FORMAT]: Remove handling of variable.
26950 * config/avr/t-multilib: Regenerate.
26951
26952 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26953
26954 * ipa-inline-analysis.c (inline_summary::reset): Do not reset
26955 self_time.
26956 (dump_inline_summary): Do not print self_time.
26957 (estimate_function_body_sizes): Do not set self_time.
26958 (compute_inline_parameters): Likewise.
26959 (inline_read_section, inline_write_summary): Do not stream self_time.
26960 * ipa-inline.h (inline_summary): Drop self_time.
26961
26962 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26963
26964 * ipa-inline-analysis.c (account_size_time): Rename to ...
26965 (inline_summary::account_size_time): ... this one.
26966 (reset_ipa_call_summary): Turn to ...
26967 (ipa_call_summary::reset): ... this one.
26968 (reset_inline_summary): Turn to ...
26969 (inline_summary::reset): ... this one.
26970 (inline_summary_t::remove): Update.
26971 (inline_summary_t::duplicate): Update.
26972 (ipa_call_summary_t::remove): Update.
26973 (dump_inline_summary): Update.
26974 (estimate_function_body_sizes): Update.
26975 (compute_inline_parameters): Update.
26976 (estimate_node_size_and_time): Update.
26977 (inline_merge_summary): Update.
26978 (inline_update_overall_summary): Update.
26979 (inline_read_section): Update.
26980 (inline_write_summary): Update.
26981 * ipa-inline.h (inline_summary): Rename entry to size_time_table;
26982 add account_size_time and reset member functions.
26983 (ipa_call_summary): Add reset function.
26984 * ipa-predicate.h (predicate::operator &): Constify.
26985
26986 2017-05-22 Richard Biener <rguenther@suse.de>
26987
26988 * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
26989
26990 2017-05-19 Jason Merrill <jason@redhat.com>
26991
26992 * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
26993
26994 2017-05-19 Marek Polacek <polacek@redhat.com>
26995
26996 PR sanitizer/80800
26997 * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
26998 TYPE_OVERFLOW_WRAPS checks.
26999
27000 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
27001
27002 * tree-core.h (enum omp_clause_default_kind): Add
27003 "OMP_CLAUSE_DEFAULT_PRESENT".
27004 * tree-pretty-print.c (dump_omp_clause): Handle it.
27005 * gimplify.c (enum gimplify_omp_var_data): Add
27006 "GOVD_MAP_FORCE_PRESENT".
27007 (gimplify_adjust_omp_clauses_1): Map it to
27008 "GOMP_MAP_FORCE_PRESENT".
27009 (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
27010
27011 * gimplify.c (oacc_default_clause): Clarify.
27012
27013 2017-05-19 Nathan Sidwell <nathan@acm.org>
27014
27015 LANG_HOOK_REGISTER_DUMPS
27016 * toplev.c (general_init): Call register dump lang hook.
27017 * doc/invoke.texi: Document -fdump-lang option family.
27018 * dumpfile.c (dump_files): Remove class dump here.
27019 (FIRST_AUTO_NUMBERED_DUMP): Adjust.
27020 * dumpfile.h (tree_dump_index): Remove TDI_class.
27021 * langhooks-def.h (lhd_register_dumps): Declare.
27022 (LANG_HOOKS_REGISTER_DUMPS): Define.
27023 (LANG_HOOKS_INITIALIZER): Add it.
27024 * langhooks.c (lhd_register_dumps): Define.
27025 * langhooks.h (struct lang_hooks): Add register_dumps.
27026
27027 2017-05-19 Nathan Sidwell <nathan@acm.org>
27028
27029 * context.h (context::set_passes): New.
27030 * context.c (context::context): Do not create pass manager.
27031 * toplev.c (general_init): Create pass manager here.
27032
27033 2017-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27034
27035 * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
27036 use this splitter if two add or or instructions would also work for
27037 the constant we want to generate.
27038
27039 2017-05-19 Richard Biener <rguenther@suse.de>
27040
27041 PR build/80821
27042 * genmatch.c (dt_node::gen_kids_1): Add missing scope around
27043 predicate evaluation.
27044
27045 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
27046
27047 * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
27048 add ctor.
27049 * ipa-inline.c (want_inline_small_function_p): Do not cast to
27050 unsigned.
27051
27052 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
27053
27054 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
27055 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
27056 (inline_edge_summary_vec): Turn into ...
27057 (ipa_call_summaries): ... this one.
27058 (redirect_to_unreachable, edge_set_predicate,
27059 evaluate_properties_for_edge, inline_summary_alloc,
27060 reset_ipa_call_summary, reset_inline_summary,
27061 inline_summary_t::duplicate): Update.
27062 (inline_edge_duplication_hook): Turn to ...
27063 (ipa_call_summary_t::duplicate): ... this one.
27064 (inline_edge_removal_hook): Turn to ...
27065 (ipa_call_summary_t::remove): ... this one.
27066 (dump_inline_edge_summary): Turn to ...
27067 (dump_ipa_call_summary): ... this one.
27068 (estimate_function_body_sizes): Update.
27069 (inline_update_callee_summaries): Update.
27070 (remap_edge_change_prob): Update.
27071 (remap_edge_summaries): Update.
27072 (inline_merge_summary): Update.
27073 (do_estimate_edge_time): Update.
27074 (inline_generate_summary): Update.
27075 (inline_read_section): Update.
27076 (inline_read_summary): Update.
27077 (inline_free_summary): Update.
27078 * ipa-inline.c (can_inline_edge_p): Update.
27079 (compute_inlined_call_time): Update.
27080 (want_inline_small_function_p): Update.
27081 (edge_badness): Update.
27082 (early_inliner): Update.
27083 * ipa-inline.h (inline_edge_summary): Turn to ...
27084 (ipa_call_summary): ... this one.
27085 (ipa_call_summary_t): New class.
27086 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
27087 (ipa_call_summaries): New.
27088 (inline_edge_summary): Remove.
27089 (estimate_edge_growth): Update.
27090 * ipa-profile.c (ipa_propagate_frequency_1): Update.
27091 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
27092 * ipa-split.c (execute_split_functions): Update.
27093 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
27094
27095 2017-05-19 Richard Biener <rguenther@suse.de>
27096
27097 PR middle-end/80764
27098 * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
27099
27100 2017-05-18 Segher Boessenkool <segher@kernel.crashing.org>
27101
27102 * config/rs6000/rs6000.c (struct machine_function): Add field
27103 fpr_is_wrapped_separately.
27104 (rs6000_get_separate_components): Use 64 components. Handle the
27105 new FPR components.
27106 (rs6000_components_for_bb): Handle the FPR components.
27107 (rs6000_emit_prologue_components): Handle the FPR components.
27108 (rs6000_emit_epilogue_components): Handle the FPR components.
27109 (rs6000_set_handled_components): Handle the FPR components.
27110 (rs6000_emit_prologue): Don't output prologue code for those FPRs
27111 that are already separately shrink-wrapped.
27112 (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
27113 that are already separately shrink-wrapped.
27114
27115 2017-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27116
27117 PR target/80510
27118 * config/rs6000/predicates.md (simple_offsettable_mem_operand):
27119 New predicate.
27120
27121 * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
27122 (define_peephole2 for Altivec d-form load): Add peepholes to catch
27123 cases where the register allocator uses a move and an offsettable
27124 memory operation to/from a FPR register on ISA 2.06/2.07.
27125 (define_peephole2 for Altivec d-form store): Likewise.
27126
27127 2017-05-18 Uros Bizjak <ubizjak@gmail.com>
27128
27129 PR target/80799
27130 * config/i386/mmx.md (*mov<mode>_internal): Enable
27131 alternatives 11, 12, 13 and 14 also for 32bit targets.
27132 Remove alternatives 15, 16, 17 and 18.
27133 * config/i386/sse.md (vec_concatv2di): Change
27134 alternative (!x, *y) to (x, ?!*Yn).
27135
27136 2017-05-18 Paolo Carlini <paolo.carlini@oracle.com>
27137
27138 * dumpfile.h (enum dump_kind): Remove stray comma.
27139
27140 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
27141
27142 * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
27143 * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
27144 predicate::num_conditions
27145 (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
27146 (CHANGED): turn into predicate::changed.
27147 (agg_position_info): Move to ipa-predicate.h
27148 (add_condition, predicate::add_clause, predicate::operator &=,
27149 predicate::or_with, predicate::evaluate, predicate::probability,
27150 dump_condition, dump_clause, predicate::dump,
27151 predicate::remap_after_duplication, predicate::remap_after_inlining,
27152 predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
27153 (evaluate_conditions_for_known_args): Update.
27154 (set_cond_stmt_execution_predicate): Update.
27155 * ipa-inline.h: Include ipa-predicate.h
27156 (condition, inline_param_summary, conditions, agg_position_info,
27157 predicate): Move to ipa-predicate.h
27158 * ipa-predicate.c: New file.
27159 * ipa-predicate.h: New file.
27160
27161 2017-05-18 Wilco Dijkstra <wdijkstr@arm.com>
27162
27163 * final.c (leaf_function_p): Check we are not in a sequence.
27164
27165 2017-05-18 Martin Liska <mliska@suse.cz>
27166
27167 * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
27168 * dumpfile.c (dump_register): Use new enum dump_kind.
27169 (get_dump_file_name): Likewise.
27170 (dump_enable_all): Likewise.
27171 (dump_switch_p_1): Likewise.
27172 (enable_rtl_dump_file): Remove usage of TDF_RTL.
27173 * dumpfile.h (enum dump_kind): New enum type.
27174 (struct dump_file_info): Create constructor and
27175 format fields and comments.
27176 * passes.c (pass_manager::register_one_dump_file):
27177 Use num dump_kind.
27178 * statistics.c (statistics_early_init): Likewise.
27179 * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
27180 TDF_TREE with TDF_SLIM.
27181 (gather_memory_references_ref): Likewise.
27182
27183 2017-05-18 Martin Liska <mliska@suse.cz>
27184
27185 * vec.h (struct vnull): Use it.
27186
27187 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
27188
27189 * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
27190 (true_predicate, false_predicate, true_predicate_p,
27191 false_predicate_p): Remove.
27192 (single_cond_predicate, not_inlined_predicate): Turn to member function
27193 in ipa-inline.h
27194 (add_condition): Update.
27195 (add_clause): Turn to...
27196 (predicate::add_clause): ... this one; update; allow passing NULL
27197 as parameter.
27198 (and_predicates): Turn to ...
27199 (predicate::operator &=): ... this one.
27200 (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
27201 (or_predicates): Turn to ...
27202 (predicate::or_with): ... this one.
27203 (evaluate_predicate): Turn to ...
27204 (predicate::evaluate): ... this one.
27205 (predicate_probability): Turn to ...
27206 (predicate::probability): ... this one.
27207 (dump_condition): Update.
27208 (dump_predicate): Turn to ...
27209 (predicate::dump): ... this one.
27210 (account_size_time): Update.
27211 (edge_set_predicate): Update.
27212 (set_hint_predicate): UPdate.
27213 (evaluate_conditions_for_known_args): Update.
27214 (evaluate_properties_for_edge): Update.
27215 (remap_predicate_after_duplication): Turn to...
27216 (predicate::remap_after_duplication): ... this one.
27217 (remap_hint_predicate_after_duplication): Update.
27218 (inline_summary_t::duplicate): UPdate.
27219 (dump_inline_edge_summary): Update.
27220 (dump_inline_summary): Update.
27221 (set_cond_stmt_execution_predicate): Update.
27222 (set_switch_stmt_execution_predicate): Update.
27223 (compute_bb_predicates): Update.
27224 (will_be_nonconstant_expr_predicate): Update.
27225 (will_be_nonconstant_predicate): Update.
27226 (phi_result_unknown_predicate): Update.
27227 (predicate_for_phi_result): Update.
27228 (array_index_predicate): Update.
27229 (estimate_function_body_sizes): Update.
27230 (estimate_node_size_and_time): Update.
27231 (estimate_ipcp_clone_size_and_time): Update.
27232 (remap_predicate): Rename to ...
27233 (predicate::remap_after_inlining): ... this one.
27234 (remap_hint_predicate): Update.
27235 (inline_merge_summary): Update.
27236 (inline_update_overall_summary): Update.
27237 (estimate_size_after_inlining): Update.
27238 (read_predicate): Rename to ...
27239 (predicate::stream_in): ... this one.
27240 (read_inline_edge_summary): Update.
27241 (write_predicate): Rename to ...
27242 (predicate::stream_out): ... this one.
27243 (write_inline_edge_summary): Update.
27244 * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
27245 (clause_t): Turn to uint32_t
27246 (predicate): Turn to class; implement constructor and operators
27247 ==, !=, &
27248 (size_time_entry): Update.
27249 (inline_summary): Update.
27250 (inline_edge_summary): Update.
27251
27252 2017-05-18 Marc Glisse <marc.glisse@inria.fr>
27253
27254 * fold-const.c (fold_binary_loc): Move transformation...
27255 * match.pd (C - X CMP X): ... here.
27256
27257 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com>
27258
27259 * config/sparc/sparc.c (sparc_option_override): Set function
27260 alignment for -mcpu=niagara7 to 64 to match the I$ line.
27261 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
27262 latency to 1.
27263 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
27264 latency to 2.
27265 * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
27266
27267 2017-05-18 Marek Polacek <polacek@redhat.com>
27268
27269 PR sanitizer/80797
27270 * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
27271 (pass_ubsan::execute): Call gimple_assign_single_p instead of
27272 gimple_assign_load_p.
27273
27274 2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27275
27276 PR middle-end/80692
27277 * real.c (do_compare): Give decimal_do_compare preference over
27278 comparing just the signs.
27279
27280 2017-05-17 Uros Bizjak <ubizjak@gmail.com>
27281
27282 * doc/md.texi (Canonicalization of Instructions): Describe the
27283 canonical form of instructions that inherently set a condition
27284 code register.
27285
27286 2017-05-17 Peter Bergner <bergner@vnet.ibm.com>
27287
27288 PR middle-end/80775
27289 * tree-cfg.c: Move deletion of unreachable case statements to after
27290 the merging of consecutive case labels.
27291
27292 2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
27293
27294 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
27295 readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
27296 restoring of callee-saved registers.
27297
27298 2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
27299
27300 * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
27301 * config/visium/visium.c (single_set_and_flags): Likewise.
27302 * config/visium/visium.md (Substitutions): Likewise.
27303
27304 2017-05-17 Martin Liska <mliska@suse.cz>
27305
27306 * cfg.c: Introduce dump_flags_t type and
27307 use it instead of int type.
27308 * cfg.h: Likewise.
27309 * cfghooks.c: Likewise.
27310 * cfghooks.h (struct cfg_hooks): Likewise.
27311 * cfgrtl.c: Likewise.
27312 * cfgrtl.h: Likewise.
27313 * cgraph.c (cgraph_node::get_body): Likewise.
27314 * coretypes.h: Likewise.
27315 * domwalk.c: Likewise.
27316 * domwalk.h: Likewise.
27317 * dumpfile.c (struct dump_option_value_info): Likewise.
27318 (dump_enable_all): Likewise.
27319 (dump_switch_p_1): Likewise.
27320 (opt_info_switch_p): Likewise.
27321 * dumpfile.h (enum tree_dump_index): Likewise.
27322 (struct dump_file_info): Likewise.
27323 * genemit.c: Likewise.
27324 * generic-match-head.c: Likewise.
27325 * gengtype.c (open_base_files): Likewise.
27326 * gimple-pretty-print.c: Likewise.
27327 * gimple-pretty-print.h: Likewise.
27328 * graph.c (print_graph_cfg): Likewise.
27329 * graphite-scop-detection.c (dot_all_sese): Likewise.
27330 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
27331 * loop-unroll.c (report_unroll): Likewise.
27332 * passes.c (pass_manager::register_one_dump_file): Likewise.
27333 * print-tree.c: Likewise.
27334 * statistics.c: Likewise.
27335 * tree-cfg.c: Likewise.
27336 * tree-cfg.h: Likewise.
27337 * tree-dfa.c: Likewise.
27338 * tree-dfa.h: Likewise.
27339 * tree-dump.c (dump_function): Likewise.
27340 * tree-dump.h (struct dump_info): Likewise.
27341 * tree-pretty-print.c: Likewise.
27342 * tree-pretty-print.h: Likewise.
27343 * tree-ssa-live.c: Likewise.
27344 * tree-ssa-live.h: Likewise.
27345 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
27346 * tree-vect-loop.c: Likewise.
27347 * tree-vect-slp.c: Likewise.
27348
27349 2017-05-16 James Greenhalgh <james.greenhalgh@arm.com>
27350 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27351
27352 PR tree-optimization/80457
27353 * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
27354 of all arguments to a statement as scalar_to_vec operations.
27355 (vectorizable_call): Adjust call to vect_model_simple_cost for
27356 new parameter.
27357 (vectorizable_conversion): Likewise.
27358 (vectorizable_assignment): Likewise.
27359 (vectorizable_shift): Likewise.
27360 (vectorizable_operation): Likewise.
27361 (vectorizable_comparison): Likewise.
27362 (vect_is_simple_cond): Record the def types for operands.
27363 (vectorizable_condition): Likewise, call vect_model_simple_cost.
27364 * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
27365 for statement argument count.
27366
27367 2017-05-16 Carl Love <cel@us.ibm.com>
27368
27369 * config/rs6000/rs6000-c: Add support for built-in functions
27370 vector unsigned long long vec_bperm (vector unsigned long long,
27371 vector unsigned char)
27372 vector signed long long vec_mule (vector signed int,
27373 vector signed int)
27374 vector unsigned long long vec_mule (vector unsigned int,
27375 vector unsigned int)
27376 vector signed long long vec_mulo (vector signed int,
27377 vector signed int)
27378 vector unsigned long long vec_mulo (vector unsigned int,
27379 vector unsigned int)
27380 vector signed char vec_sldw (vector signed char,
27381 vector signed char,
27382 const int)
27383 vector unsigned char vec_sldw (vector unsigned char,
27384 vector unsigned char,
27385 const int)
27386 vector signed short vec_sldw (vector signed short,
27387 vector signed short,
27388 const int)
27389 vector unsigned short vec_sldw (vector unsigned short,
27390 vector unsigned short,
27391 const int)
27392 vector signed int vec_sldw (vector signed int,
27393 vector signed int,
27394 const int)
27395 vector unsigned int vec_sldw (vector unsigned int,
27396 vector unsigned int,
27397 const int)
27398 vector signed long long vec_sldw (vector signed long long,
27399 vector signed long long,
27400 const int)
27401 vector unsigned long long vec_sldw (vector unsigned long long,
27402 vector unsigned long long,
27403 const int)
27404 * config/rs6000/rs6000-c: Add support for built-in functions
27405 * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
27406 * config/rs6000/altivec.h: Add defintion for vec_sldw.
27407 * doc/extend.texi: Update the built-in documentation for the
27408 new built-in functions.
27409
27410 2017-05-16 Marek Polacek <polacek@redhat.com>
27411
27412 PR sanitizer/80536
27413 PR sanitizer/80386
27414 * tree.c (save_expr): Don't fold the expression.
27415
27416 2017-05-16 Uros Bizjak <ubizjak@gmail.com>
27417
27418 * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
27419 to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
27420 and (?*y,m). Update insn attributes.
27421
27422 2017-05-16 Martin Liska <mliska@suse.cz>
27423
27424 * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
27425 flags argument of print_gimple_stmt, print_gimple_expr,
27426 print_generic_stmt and print_generic_expr.
27427 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
27428 * coretypes.h: Likewise.
27429 * except.c (dump_eh_tree): Likewise.
27430 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
27431 * gimple-pretty-print.h: Likewise.
27432 * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
27433 (backprop::push_to_worklist): Likewise.
27434 (backprop::pop_from_worklist): Likewise.
27435 (backprop::process_use): Likewise.
27436 (backprop::intersect_uses): Likewise.
27437 (note_replacement): Likewise.
27438 * gimple-ssa-store-merging.c
27439 (pass_store_merging::terminate_all_aliasing_chains): Likewise.
27440 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
27441 (pass_store_merging::execute): Likewise.
27442 * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
27443 (ssa_base_cand_dump_callback): Likewise.
27444 (dump_incr_vec): Likewise.
27445 (replace_refs): Likewise.
27446 (replace_mult_candidate): Likewise.
27447 (create_add_on_incoming_edge): Likewise.
27448 (create_phi_basis): Likewise.
27449 (insert_initializers): Likewise.
27450 (all_phi_incrs_profitable): Likewise.
27451 (introduce_cast_before_cand): Likewise.
27452 (replace_one_candidate): Likewise.
27453 * gimplify.c (gimplify_expr): Likewise.
27454 * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
27455 (set_rename): Likewise.
27456 (rename_uses): Likewise.
27457 (copy_loop_phi_nodes): Likewise.
27458 (add_close_phis_to_merge_points): Likewise.
27459 (copy_loop_close_phi_args): Likewise.
27460 (copy_cond_phi_args): Likewise.
27461 (graphite_copy_stmts_from_block): Likewise.
27462 (translate_pending_phi_nodes): Likewise.
27463 * graphite-poly.c (print_pdr): Likewise.
27464 (dump_gbb_cases): Likewise.
27465 (dump_gbb_conditions): Likewise.
27466 (print_scop_params): Likewise.
27467 * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
27468 (build_cross_bb_scalars_use): Likewise.
27469 (gather_bbs::before_dom_children): Likewise.
27470 * hsa-dump.c (dump_hsa_immed): Likewise.
27471 * ipa-cp.c (print_ipcp_constant_value): Likewise.
27472 (get_replacement_map): Likewise.
27473 * ipa-inline-analysis.c (dump_condition): Likewise.
27474 (estimate_function_body_sizes): Likewise.
27475 * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
27476 (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
27477 * ipa-prop.c (ipa_dump_param): Likewise.
27478 (ipa_print_node_jump_functions_for_edge): Likewise.
27479 (ipa_modify_call_arguments): Likewise.
27480 (ipa_modify_expr): Likewise.
27481 (ipa_dump_param_adjustments): Likewise.
27482 (ipa_dump_agg_replacement_values): Likewise.
27483 (ipcp_modif_dom_walker::before_dom_children): Likewise.
27484 * ipa-pure-const.c (check_stmt): Likewise.
27485 (pass_nothrow::execute): Likewise.
27486 * ipa-split.c (execute_split_functions): Likewise.
27487 * omp-offload.c (dump_oacc_loop_part): Likewise.
27488 (dump_oacc_loop): Likewise.
27489 * trans-mem.c (tm_log_emit): Likewise.
27490 (tm_memopt_accumulate_memops): Likewise.
27491 (dump_tm_memopt_set): Likewise.
27492 (dump_tm_memopt_transform): Likewise.
27493 * tree-cfg.c (gimple_verify_flow_info): Likewise.
27494 (print_loop): Likewise.
27495 * tree-chkp-opt.c (chkp_print_addr): Likewise.
27496 (chkp_gather_checks_info): Likewise.
27497 (chkp_get_check_result): Likewise.
27498 (chkp_remove_check_if_pass): Likewise.
27499 (chkp_use_outer_bounds_if_possible): Likewise.
27500 (chkp_reduce_bounds_lifetime): Likewise.
27501 * tree-chkp.c (chkp_register_addr_bounds): Likewise.
27502 (chkp_mark_completed_bounds): Likewise.
27503 (chkp_register_incomplete_bounds): Likewise.
27504 (chkp_mark_invalid_bounds): Likewise.
27505 (chkp_maybe_copy_and_register_bounds): Likewise.
27506 (chkp_build_returned_bound): Likewise.
27507 (chkp_get_bound_for_parm): Likewise.
27508 (chkp_build_bndldx): Likewise.
27509 (chkp_get_bounds_by_definition): Likewise.
27510 (chkp_generate_extern_var_bounds): Likewise.
27511 (chkp_get_bounds_for_decl_addr): Likewise.
27512 * tree-chrec.c (chrec_apply): Likewise.
27513 * tree-data-ref.c (dump_data_reference): Likewise.
27514 (dump_subscript): Likewise.
27515 (dump_data_dependence_relation): Likewise.
27516 (analyze_overlapping_iterations): Likewise.
27517 * tree-inline.c (expand_call_inline): Likewise.
27518 (tree_function_versioning): Likewise.
27519 * tree-into-ssa.c (dump_defs_stack): Likewise.
27520 (dump_currdefs): Likewise.
27521 (dump_names_replaced_by): Likewise.
27522 (dump_update_ssa): Likewise.
27523 (update_ssa): Likewise.
27524 * tree-object-size.c (pass_object_sizes::execute): Likewise.
27525 * tree-parloops.c (build_new_reduction): Likewise.
27526 (try_create_reduction_list): Likewise.
27527 (ref_conflicts_with_region): Likewise.
27528 (oacc_entry_exit_ok_1): Likewise.
27529 (oacc_entry_exit_single_gang): Likewise.
27530 * tree-pretty-print.h: Likewise.
27531 * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
27532 (get_scalar_evolution): Likewise.
27533 (add_to_evolution): Likewise.
27534 (get_loop_exit_condition): Likewise.
27535 (analyze_evolution_in_loop): Likewise.
27536 (analyze_initial_condition): Likewise.
27537 (analyze_scalar_evolution): Likewise.
27538 (instantiate_scev): Likewise.
27539 (number_of_latch_executions): Likewise.
27540 (gather_chrec_stats): Likewise.
27541 (final_value_replacement_loop): Likewise.
27542 (scev_const_prop): Likewise.
27543 * tree-sra.c (dump_access): Likewise.
27544 (disqualify_candidate): Likewise.
27545 (create_access): Likewise.
27546 (reject): Likewise.
27547 (maybe_add_sra_candidate): Likewise.
27548 (create_access_replacement): Likewise.
27549 (analyze_access_subtree): Likewise.
27550 (analyze_all_variable_accesses): Likewise.
27551 (sra_modify_assign): Likewise.
27552 (initialize_constant_pool_replacements): Likewise.
27553 (find_param_candidates): Likewise.
27554 (decide_one_param_reduction): Likewise.
27555 (replace_removed_params_ssa_names): Likewise.
27556 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
27557 * tree-ssa-copy.c (dump_copy_of): Likewise.
27558 (copy_prop_visit_cond_stmt): Likewise.
27559 * tree-ssa-dce.c (mark_operand_necessary): Likewise.
27560 * tree-ssa-dom.c (pass_dominator::execute): Likewise.
27561 (record_equivalences_from_stmt): Likewise.
27562 * tree-ssa-dse.c (compute_trims): Likewise.
27563 (delete_dead_call): Likewise.
27564 (delete_dead_assignment): Likewise.
27565 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
27566 (forward_propagate_into_cond): Likewise.
27567 (pass_forwprop::execute): Likewise.
27568 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
27569 * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
27570 Likewise.
27571 (move_computations_worker): Likewise.
27572 (execute_sm): Likewise.
27573 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
27574 (remove_exits_and_undefined_stmts): Likewise.
27575 (remove_redundant_iv_tests): Likewise.
27576 * tree-ssa-loop-ivopts.c (dump_use): Likewise.
27577 (adjust_iv_update_pos): Likewise.
27578 * tree-ssa-math-opts.c (bswap_replace): Likewise.
27579 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
27580 (value_replacement): Likewise.
27581 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
27582 * tree-ssa-pre.c (print_pre_expr): Likewise.
27583 (get_representative_for): Likewise.
27584 (create_expression_by_pieces): Likewise.
27585 (insert_into_preds_of_block): Likewise.
27586 (eliminate_insert): Likewise.
27587 (eliminate_dom_walker::before_dom_children): Likewise.
27588 (eliminate): Likewise.
27589 (remove_dead_inserted_code): Likewise.
27590 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
27591 * tree-ssa-reassoc.c (get_rank): Likewise.
27592 (eliminate_duplicate_pair): Likewise.
27593 (eliminate_plus_minus_pair): Likewise.
27594 (eliminate_not_pairs): Likewise.
27595 (undistribute_ops_list): Likewise.
27596 (eliminate_redundant_comparison): Likewise.
27597 (update_range_test): Likewise.
27598 (optimize_range_tests_var_bound): Likewise.
27599 (optimize_vec_cond_expr): Likewise.
27600 (rewrite_expr_tree): Likewise.
27601 (rewrite_expr_tree_parallel): Likewise.
27602 (linearize_expr): Likewise.
27603 (break_up_subtract): Likewise.
27604 (linearize_expr_tree): Likewise.
27605 (attempt_builtin_powi): Likewise.
27606 (attempt_builtin_copysign): Likewise.
27607 (transform_stmt_to_copy): Likewise.
27608 (transform_stmt_to_multiply): Likewise.
27609 (dump_ops_vector): Likewise.
27610 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
27611 (print_scc): Likewise.
27612 (set_ssa_val_to): Likewise.
27613 (visit_reference_op_store): Likewise.
27614 (visit_use): Likewise.
27615 (sccvn_dom_walker::before_dom_children): Likewise.
27616 (run_scc_vn): Likewise.
27617 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
27618 Likewise.
27619 (expr_hash_elt::print): Likewise.
27620 (const_and_copies::pop_to_marker): Likewise.
27621 (const_and_copies::record_const_or_copy_raw): Likewise.
27622 * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
27623 * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
27624 (dump_predicates): Likewise.
27625 (find_uninit_use): Likewise.
27626 (warn_uninitialized_phi): Likewise.
27627 (pass_late_warn_uninitialized::execute): Likewise.
27628 * tree-ssa.c (verify_vssa): Likewise.
27629 (verify_ssa): Likewise.
27630 (maybe_optimize_var): Likewise.
27631 * tree-vrp.c (dump_value_range): Likewise.
27632 (dump_all_value_ranges): Likewise.
27633 (dump_asserts_for): Likewise.
27634 (register_edge_assert_for_2): Likewise.
27635 (vrp_visit_cond_stmt): Likewise.
27636 (vrp_visit_switch_stmt): Likewise.
27637 (vrp_visit_stmt): Likewise.
27638 (vrp_visit_phi_node): Likewise.
27639 (simplify_cond_using_ranges_1): Likewise.
27640 (fold_predicate_in): Likewise.
27641 (evrp_dom_walker::before_dom_children): Likewise.
27642 (evrp_dom_walker::push_value_range): Likewise.
27643 (evrp_dom_walker::pop_value_range): Likewise.
27644 (execute_early_vrp): Likewise.
27645
27646 2017-05-16 Richard Biener <rguenther@suse.de>
27647
27648 * dwarf2out.c (loc_list_from_tree_1): Do not create
27649 DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
27650
27651 2017-05-16 Richard Biener <rguenther@suse.de>
27652
27653 * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
27654 just generated.
27655 (note_variable_value_in_expr): If we resolved the decl ref
27656 do not push to the stack.
27657
27658 2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
27659
27660 * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
27661 operations in fast-math mode.
27662 (vaddq_f16): Likewise.
27663 (vmul_f16): Likewise.
27664 (vmulq_f16): Likewise.
27665 (vsub_f16): Likewise.
27666 (vsubq_f16): Likewise.
27667 * config/arm/neon.md (add<mode>3): New.
27668 (sub<mode>3): New.
27669 (fma:<VH:mode>3): New. Also remove outdated comment.
27670 (mul<mode>3): New.
27671
27672 2017-05-16 Martin Liska <mliska@suse.cz>
27673
27674 PR ipa/79849.
27675 PR ipa/79850.
27676 * ipa-devirt.c (warn_types_mismatch): Fix typo.
27677 (odr_types_equivalent_p): Likewise.
27678
27679 2017-05-15 Sylvestre Ledru <sylvestre@debian.org>
27680
27681 * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
27682
27683 2017-05-15 Uros Bizjak <ubizjak@gmail.com>
27684
27685 PR target/80425
27686 * config/i386.i386.md (*zero_extendsidi2): Do not penalize
27687 non-interunit SSE move alternatives with '?'.
27688 (zero-extendsidi peephole2): New peephole to skip intermediate
27689 general register in SSE zero-extend sequence.
27690
27691 2017-05-15 Jeff Law <law@redhat.com>
27692
27693 * reorg.c (relax_delay_slots): Create a new variable to hold
27694 the temporary target rather than clobbering TARGET_LABEL.
27695
27696 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
27697 missing argument to extract_bit_field call.
27698 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
27699
27700 2017-05-15 Martin Liska <mliska@suse.cz>
27701
27702 PR driver/31468
27703 * gcc.c (process_command): Do not allow empty argument of -o option.
27704
27705 2017-05-15 Renlin Li <renlin.li@arm.com>
27706
27707 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
27708 * config/aarch64/aarch64.c (aarch64_expand_call): Define.
27709 * config/aarch64/constraints.md (Usf): Add long call check.
27710 * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
27711 (call_value): Likewise.
27712 (sibcall): Likewise.
27713 (sibcall_value): Likewise.
27714 (call_insn): New.
27715 (call_value_insn): New.
27716 (sibcall_insn): Update rtx pattern.
27717 (sibcall_value_insn): Likewise.
27718 (call_internal): Remove.
27719 (call_value_internal): Likewise.
27720 (sibcall_internal): Likewise.
27721 (sibcall_value_internal): Likewise.
27722 (call_reg): Likewise.
27723 (call_symbol): Likewise.
27724 (call_value_reg): Likewise.
27725 (call_value_symbol): Likewise.
27726
27727 2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
27728
27729 PR target/80600
27730 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
27731
27732 2017-05-14 Uros Bizjak <ubizjak@gmail.com>
27733
27734 * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
27735 compatible with CCGOCmode and with CCZmode.
27736
27737 2017-05-14 Martin Sebor <msebor@redhat.com>
27738
27739 PR middle-end/77671
27740 * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
27741 (gimple_fold_builtin_snprintf): Same.
27742 * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
27743 (gimple_fold_builtin_snprintf): Same.
27744 * gimple-ssa-sprintf.c (get_format_string): Correct the detection
27745 of character types.
27746 (is_call_safe): New function.
27747 (try_substitute_return_value): Call it.
27748 (try_simplify_call): New function.
27749 (pass_sprintf_length::handle_gimple_call): Call it.
27750
27751 2017-05-14 Martin Sebor <msebor@redhat.com>
27752
27753 PR middle-end/80669
27754 * builtins.c (expand_builtin_stpncpy): Simplify.
27755
27756 2017-05-14 Daniel Santos <daniel.santos@pobox.com>
27757
27758 * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
27759 * config/i386/i386.h
27760 (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
27761 (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
27762 (struct machine_function): Add new members call_ms2sysv,
27763 call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
27764 (struct machine_frame_state): New fields sp_realigned and
27765 sp_realigned_offset.
27766 * config/i386/i386.c
27767 (enum xlogue_stub): New enum.
27768 (enum xlogue_stub_sets): New enum.
27769 (class xlogue_layout): New class.
27770 (struct ix86_frame): New fields stack_realign_allocate_offset,
27771 stack_realign_offset and outlined_save_offset. Modify comments to
27772 detail stack layout when using out-of-line stubs.
27773 (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
27774 (ix86_option_override_internal): Add sorry() for TARGET_SEH and
27775 -mcall-ms2sysv-xlogues.
27776 (stub_managed_regs): New static variable.
27777 (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
27778 registers managed by out-of-line stub.
27779 (disable_call_ms2sysv_xlogues): New function.
27780 (ix86_compute_frame_layout): Modify re-alignment calculations, disable
27781 m->call_ms2sysv when appropriate and compute frame layout for
27782 out-of-line stubs.
27783 (sp_valid_at, fp_valid_at): New inline functions.
27784 (choose_basereg): New function.
27785 (choose_baseaddr): Add align parameter, use choose_basereg and modify
27786 all callers.
27787 (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
27788 Use align parameter of choose_baseaddr to generated aligned SSE movs
27789 when possible.
27790 (pro_epilogue_adjust_stack): Modify to track
27791 machine_frame_state::sp_realigned.
27792 (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
27793 (ix86_nsaved_sseregs): Likewise.
27794 (ix86_emit_save_regs): Likewise.
27795 (ix86_emit_save_regs_using_mov): Likewise.
27796 (ix86_emit_save_sse_regs_using_mov): Likewise.
27797 (get_scratch_register_on_entry): Likewise.
27798 (gen_frame_set): New function.
27799 (gen_frame_load): Likewise.
27800 (gen_frame_store): Likewise.
27801 (emit_outlined_ms2sysv_save): Likewise.
27802 (emit_outlined_ms2sysv_restore): Likewise.
27803 (ix86_expand_prologue): Modify stack re-alignment code and call
27804 emit_outlined_ms2sysv_save when appropriate.
27805 (ix86_emit_leave): Clear machine_frame_state::sp_realigned. Add
27806 parameter rtx_insn *insn, which allows the function to be used to only
27807 generate the notes.
27808 (ix86_expand_epilogue): Modify validity checks of frame and stack
27809 pointers, and call emit_outlined_ms2sysv_restore when appropriate.
27810 (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
27811 * config/i386/predicates.md
27812 (save_multiple): New predicate.
27813 (restore_multiple): Likewise.
27814 * config/i386/sse.md
27815 (save_multiple<mode>): New pattern.
27816 (save_multiple_realign<mode>): Likewise.
27817 (restore_multiple<mode>): Likewise.
27818 (restore_multiple_and_return<mode>): Likewise.
27819 (restore_multiple_leave_return<mode>): Likewise.
27820 * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
27821
27822 2017-05-14 Julia Koval <julia.koval@intel.com>
27823
27824 * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
27825 * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
27826 (__builtin_ia32_xsetbv): New builtins.
27827 * config/i386/i386.c (ix86_expand_special_args_builtin):
27828 Process new types.
27829 (ix86_expand_builtin): Special expand for new intrinsics.
27830 * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
27831 (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
27832 * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
27833
27834 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27835
27836 * cfganal.c (inverted_post_order_compute): Change argument type
27837 to vec *.
27838 * cfganal.h (inverted_post_order_compute): Adjust prototype.
27839 * df-core.c (rest_of_handle_df_initialize): Adjust.
27840 (rest_of_handle_df_finish): Likewise.
27841 (df_analyze_1): Likewise.
27842 (df_analyze): Likewise.
27843 (loop_inverted_post_order_compute): Change argument to be a vec *.
27844 (df_analyze_loop): Adjust.
27845 (df_get_n_blocks): Likewise.
27846 (df_get_postorder): Likewise.
27847 * df.h (struct df_d): Change field to be a vec.
27848 * lcm.c (compute_laterin): Adjust.
27849 (compute_available): Likewise.
27850 * lra-lives.c (lra_create_live_ranges_1): Likewise.
27851 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
27852 * tree-ssa-pre.c (compute_antic): Likewise.
27853
27854 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27855
27856 * cfganal.c (connect_infinite_loops_to_exit): Adjust.
27857 (depth_first_search::depth_first_search): Change structure init
27858 function to this constructor.
27859 (depth_first_search::add_bb): Rename function to this member.
27860 (depth_first_search::execute): Likewise.
27861 (flow_dfs_compute_reverse_finish): Adjust.
27862
27863 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27864
27865 * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
27866 (longest_simple_path): Likewise.
27867 * shrink-wrap.c (spread_components): Likewise.
27868 (disqualify_problematic_components): Likewise.
27869 (emit_common_heads_for_components): Likewise.
27870 (emit_common_tails_for_components): Likewise.
27871 (insert_prologue_epilogue_for_components): Likewise.
27872
27873 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27874
27875 * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
27876 auto_sbitmap.
27877
27878 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27879
27880 * df-core.c (df_set_blocks): Start using auto_bitmap.
27881 (df_compact_blocks): Likewise.
27882 * df-problems.c (df_rd_confluence_n): Likewise.
27883 * df-scan.c (df_insn_rescan_all): Likewise.
27884 (df_process_deferred_rescans): Likewise.
27885 (df_update_entry_block_defs): Likewise.
27886 (df_update_exit_block_uses): Likewise.
27887 (df_entry_block_bitmap_verify): Likewise.
27888 (df_exit_block_bitmap_verify): Likewise.
27889 (df_scan_verify): Likewise.
27890 * lra-constraints.c (lra_constraints): Likewise.
27891 (undo_optional_reloads): Likewise.
27892 (lra_undo_inheritance): Likewise.
27893 * lra-remat.c (calculate_gen_cands): Likewise.
27894 (do_remat): Likewise.
27895 * lra-spills.c (assign_spill_hard_regs): Likewise.
27896 (spill_pseudos): Likewise.
27897 * tree-ssa-pre.c (bitmap_set_and): Likewise.
27898 (bitmap_set_subtract_values): Likewise.
27899
27900 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27901
27902 * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
27903 management with auto_bitmap.
27904 (fix_inter_tick): Likewise.
27905 (fix_recovery_deps): Likewise.
27906 * ira.c (add_store_equivs): Likewise.
27907 (find_moveable_pseudos): Likewise.
27908 (split_live_ranges_for_shrink_wrap): Likewise.
27909 * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
27910 (rtx_reuse_manager::seen_def_p): Likewise.
27911 (rtx_reuse_manager::set_seen_def): Likewise.
27912 * print-rtl.h (class rtx_reuse_manager): Likewise.
27913
27914 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27915
27916 * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
27917 lifetime.
27918 (migrate_btr_def): Likewise.
27919 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
27920 * df-core.c (loop_post_order_compute): Likewise.
27921 (loop_inverted_post_order_compute): Likewise.
27922 * hsa-common.h: Likewise.
27923 * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
27924 * init-regs.c (initialize_uninitialized_regs): Likewise.
27925 * ipa-inline.c (resolve_noninline_speculation): Likewise.
27926 (inline_small_functions): Likewise.
27927 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
27928 * ira.c (combine_and_move_insns): Likewise.
27929 (build_insn_chain): Likewise.
27930 * loop-invariant.c (find_invariants): Likewise.
27931 * lower-subreg.c (propagate_pseudo_copies): Likewise.
27932 * predict.c (tree_predict_by_opcode): Likewise.
27933 (predict_paths_leading_to): Likewise.
27934 (predict_paths_leading_to_edge): Likewise.
27935 (estimate_loops_at_level): Likewise.
27936 (estimate_loops): Likewise.
27937 * shrink-wrap.c (try_shrink_wrapping): Likewise.
27938 (spread_components): Likewise.
27939 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
27940 * tree-loop-distribution.c (rdg_build_partitions): Likewise.
27941 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
27942 * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
27943 * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
27944 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
27945 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
27946 * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
27947 (mark_threaded_blocks): Likewise.
27948 (thread_through_all_blocks): Likewise.
27949 * tree-ssa.c (verify_ssa): Likewise.
27950 (execute_update_addresses_taken): Likewise.
27951 * tree-ssanames.c (verify_ssaname_freelists): Likewise.
27952
27953 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27954
27955 * cfganal.c (mark_dfs_back_edges): Replace manual stack with
27956 auto_vec.
27957 (post_order_compute): Likewise.
27958 (inverted_post_order_compute): Likewise.
27959 (pre_and_rev_post_order_compute_fn): Likewise.
27960
27961 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27962
27963 * genrecog.c (int_set::int_set): Explicitly construct our
27964 auto_vec base class.
27965 * vec.h (auto_vec::auto_vec): New constructor.
27966
27967 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27968
27969 * bitmap.h (class auto_bitmap): New constructor taking
27970 bitmap_obstack * argument.
27971
27972 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27973
27974 * bitmap.h (class auto_bitmap): Change type of m_bits to
27975 bitmap_head, and adjust ctor / dtor and member operators.
27976
27977 2017-05-13 Uros Bizjak <ubizjak@gmail.com>
27978
27979 * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
27980 when returned register mode doesn't match original mode.
27981
27982 2017-05-12 Jeff Law <law@redhat.com>
27983 Jakub Jelinek <jakub@redhat.com>
27984
27985 * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
27986 we look for cc setter after the compare-elim changes.
27987 * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
27988 within the vector to match what compare-elim now expects.
27989 (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
27990 (xorsi3_flags, one_cmplsi2_flags): Likewise.
27991
27992 * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
27993 after the compare-elim changes.
27994 * config/rx/rx.md (abssi2_flags): Fix order of patterns within
27995 the vector to match what compare-elim now expects.
27996 (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
27997 (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
27998 (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
27999 (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
28000 (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
28001
28002 * config/visium/visium.c (single_set_and_flags): Fix where
28003 we look for cc setter after the compare-elim changes.
28004 * config/visium/visium.md (flags_subst_logic): Fix order of patterns
28005 with the vector to match what compare-elim now expects.
28006 (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
28007 (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
28008 (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
28009 (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
28010 (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
28011 (neg<mode>2_insn_set_overflow): Likewise.
28012
28013 2017-05-12 Jim Wilson <jim.wilson@linaro.org>
28014
28015 PR middle-end/79794
28016 * expmed.c (extract_bit_field_1): Add alt_rtl argument. Before
28017 maybe_expand_insn call, set ops[0].target. If still set after call,
28018 set alt_rtl. Add extra arg to recursive calls.
28019 (extract_bit_field): Add alt_rtl argument. Pass to
28020 extract_bit_field.
28021 * expmed.h (extract_bit_field): Fix prototype.
28022 * expr.c (emit_group_load_1, copy_blkmode_from_reg)
28023 (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
28024 to extract_bit_field_calls.
28025 (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
28026 Pass alt_rtl to extract_bit_field calls.
28027 * calls.c (store_unaligned_arguments_into_psuedos)
28028 load_register_parameters): Pass extra NULL to extract_bit_field calls.
28029 * optabs.c (maybe_legitimize_operand): Clear op->target when call
28030 gen_reg_rtx.
28031 * optabs.h (struct expand_operand): Add target bitfield.
28032
28033 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
28034
28035 * compare-elim.c (try_eliminate_compare): Canonicalize
28036 operation with embedded compare to
28037 [(set (reg:CCM) (compare:CCM (operation) (immediate)))
28038 (set (reg) (operation)].
28039
28040 * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
28041
28042 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
28043
28044 PR target/80723
28045 * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
28046 cost of adding a carry flag for ADC instruction.
28047 [case MINUS]: Ignore the cost of subtracting a carry flag
28048 for SBB instruction.
28049
28050 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org>
28051
28052 * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
28053 and x86intrin.h
28054 * config/rs6000/bmiintrin.h: New file.
28055 * config/rs6000/bmi2intrin.h: New file.
28056 * config/rs6000/x86intrin.h: New file.
28057
28058 2017-05-12 Jeff Law <law@redhat.com>
28059
28060 * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
28061 markers.
28062
28063 2017-05-12 Peter Bergner <bergner@vnet.ibm.com>
28064
28065 PR middle-end/80707
28066 * tree-cfg.c: Remove cfg edges of unreachable case statements.
28067
28068 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
28069
28070 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
28071 early expansion of vector divide builtins.
28072 (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
28073 builtins identified as having unsigned arguments.
28074
28075 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
28076
28077 * config/rs6000/rs6000.c (gimple-fold.h): New #include.
28078 (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
28079 expansion of vector logical operations (and, andc, or, xor,
28080 nor, orc, nand).
28081
28082 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
28083
28084 * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
28085 * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
28086
28087 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
28088
28089 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
28090 early GIMPLE expansion of vector multiplies.
28091
28092 2017-05-12 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
28093
28094 * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
28095 TARGET_HAVE_MOVT conditional.
28096 (movt splitter): Likewise.
28097
28098 2017-05-12 Richard Biener <rguenther@suse.de>
28099
28100 * tree-ssa-sccvn.h (has_VN_INFO): Declare.
28101 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
28102 Fold all stmts not inplace.
28103
28104 2017-05-12 Richard Biener <rguenther@suse.de>
28105
28106 PR tree-optimization/80713
28107 * tree-ssa-pre.c (remove_dead_inserted_code): Clear
28108 inserted_exprs bit for not removed stmts.
28109
28110 2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
28111
28112 PR middle-end/69921
28113 * tree-parloops.c (create_parallel_loop): Set "oacc kernels
28114 parallelized" attribute for parallelized OpenACC kernels.
28115 * omp-offload.c (execute_oacc_device_lower): Use it.
28116
28117 * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
28118 Set "oacc kernels" attribute.
28119 * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
28120 parameter. Adjust all users.
28121 (oacc_fn_attrib_kernels_p): Remove function.
28122 * omp-offload.c (execute_oacc_device_lower): Look for "oacc
28123 kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
28124 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
28125 * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
28126 assert "oacc kernels" attribute is set.
28127
28128 2017-05-11 Carl Love <cel@us.ibm.com>
28129
28130 * config/rs6000/rs6000-c: Add support for built-in functions
28131 vector unsigned char vec_popcnt (vector signed char)
28132 vector unsigned char vec_popcnt (vector unsigned char)
28133 vector unsigned short vec_popcnt (vector signed short)
28134 vector unsigned short vec_popcnt (vector unsigned short)
28135 vector unsigned int vec_popcnt (vector signed int)
28136 vector unsigned int vec_popcnt (vector unsigned int)
28137 vector unsigned long long vec_popcnt (vector signed long long)
28138 vector unsigned long long vec_popcnt (vector unsigned long long)
28139 vector signed long long vec_slo (vector signed long long,
28140 vector signed char)
28141 vector signed long long vec_slo (vector signed long long,
28142 vector unsigned char)
28143 vector unsigned long long vec_slo (vector unsigned long long,
28144 vector signed char)
28145 vector unsigned long long vec_slo (vector unsigned long long,
28146 vector unsigned char)
28147 * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
28148 VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
28149 * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
28150 vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
28151 * doc/extend.texi: Update the built-in documentation file for the
28152 new built-in functions.
28153
28154 2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28155
28156 * attribs.h (sorted_attr_string): Move machine independent
28157 functions for target clone support from the i386 port to common
28158 code. Rename ix86_function_versions to common_function_versions.
28159 Rename make_name to make_unique_name.
28160 (common_function_versions): Likewise.
28161 (make_unique_name): Likewise.
28162 (make_dispatcher_decl): Likewise.
28163 (is_function_default_version): Likewise.
28164 * attribs.c (attr_strcmp): Likewise.
28165 (sorted_attr_string): Likewise.
28166 (common_function_versions): Likewise.
28167 (make_unique_name): Likewise.
28168 (make_dispatcher_decl): Likewise.
28169 (is_function_default_version): Likewise.
28170 * config/i386/i386.c (attr_strcmp): Likewise.
28171 (sorted_attr_string): Likewise.
28172 (ix86_function_versions): Likewise.
28173 (make_name): Likewise.
28174 (make_dispatcher_decl): Likewise.
28175 (is_function_default_version): Likewise.
28176 (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
28177
28178 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28179
28180 PR target/80695
28181 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
28182 Account for direct move costs for vec_construct of integer
28183 vectors.
28184
28185 2017-05-11 Uros Bizjak <ubizjak@gmail.com>
28186
28187 PR target/80706
28188 * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
28189 (UNSPEC_STX_ATOMIC): Ditto.
28190 (loaddi_via_sse): New insn.
28191 (storedi_via_sse): Ditto.
28192 (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
28193 Update corresponding peephole2 patterns.
28194 (atomic_storedi_fpu): Ditto.
28195
28196 2017-05-11 Julia Koval <julia.koval@intel.com>
28197
28198 * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
28199 (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
28200 New intrinsics.
28201 * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
28202 (__builtin_ia32_rsqrt14ss_mask): New builtins.
28203 * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
28204
28205 2017-05-11 Nathan Sidwell <nathan@acm.org>
28206
28207 * graphite-poly.c: Include dumpfile.h.
28208
28209 * dumpfle.h (dump_function): Declare here ...
28210 * tree-dump.h (dump_function): ... not here.
28211 * dumpfile.c: #include tree-cfg.h.
28212 (dump_function): Move here from ...
28213 * tree-dump.c (dump_function): ... here.
28214 * gimplify.c: #include splay-tree.h, not tree-dump.h.
28215 * graphite-poly.c: Don't include tree-dump.h.
28216 * cgraphclones.c: Include dumpfile.h not tree-dump.h.
28217 * print-tree.c: Likewise.
28218 * stor-layout.c: Likewise.
28219 * tree-nested.c: Likewise.
28220
28221 * dumpfile.c (dump_start): Use TDF_FLAGS.
28222 (dump_enable_all): Fix TDF_KIND check thinko.
28223
28224 2017-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
28225
28226 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28227 array entries to represent two legal parameterizations of the
28228 overloaded __builtin_cmpb function, as represented by the
28229 P6_OV_BUILTIN_CMPB constant.
28230 (altivec_resolve_overloaded_builtin): Add special case handling
28231 for the __builtin_cmpb function, as represented by the
28232 P6_OV_BUILTIN_CMPB constant.
28233 * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
28234 (BU_P6_64BIT_2): New macro.
28235 (BU_P6_OVERLOAD_2): New macro
28236 (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
28237 (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
28238 (CMPB): Add overload support to represent both 32-bit and 64-bit
28239 compare-bytes function.
28240 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
28241 support for TARGET_CMPB.
28242 * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
28243 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
28244 documentation of the __builtin_cmpb overloaded built-in function.
28245
28246 2017-05-11 Richard Biener <rguenther@suse.de>
28247
28248 PR tree-optimization/80705
28249 * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
28250 bases are not vectorizable.
28251
28252 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28253
28254 * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
28255 when counting register pressure.
28256
28257 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28258
28259 * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
28260 (iv_ca_more_deps): Renamed to ...
28261 (iv_ca_compare_deps): ... this.
28262 (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
28263
28264 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28265
28266 * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
28267 to ...
28268 (determine_group_iv_costs): ... here.
28269 (find_inv_vars_cb): Record inv var if it's not recorded before.
28270
28271 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28272
28273 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
28274 (get_shiftadd_cost): Ditto.
28275
28276 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28277
28278 * tree-ssa-address.c: Include header file.
28279 (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
28280 address.
28281 (add_to_parts): Refactor.
28282 (addr_to_parts): New parameter. Update use of move_hint_to_base.
28283 (create_mem_ref): Update use of addr_to_parts. Re-associate addr
28284 in new order.
28285
28286 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28287
28288 PR tree-optimization/53090
28289 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
28290 COMP_IV_EXPR_2.
28291 (extract_cond_operands): Detect condition with IV on both sides
28292 and return COMP_IV_EXPR_2.
28293 (find_interesting_uses_cond): Add iv_use for both IVs in condition.
28294 (rewrite_use_compare): Simplify by removing call to function
28295 extract_cond_operands.
28296
28297 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28298
28299 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
28300 (extract_cond_operands): Detect condition comparing against non-
28301 invariant bound and return appropriate enum value.
28302 (find_interesting_uses_cond): Update use of extract_cond_operands.
28303 Handle its return value accordingly.
28304 (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
28305
28306 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28307
28308 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
28309 nonlinear iv_use computation in loop invariant sensitive way.
28310
28311 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28312
28313 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
28314 (find_iv_candidates): Call relate_compare_use_with_all_cands.
28315
28316 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28317
28318 * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
28319 (dump_cand): Support iv_cand.inv_exprs.
28320 (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
28321 for candidates.
28322 (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
28323 iv_cand.inv_exprs.
28324
28325 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28326
28327 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
28328 from ...
28329 * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
28330 as local function. Include necessary header files.
28331 * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
28332
28333 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28334
28335 * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
28336
28337 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28338
28339 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
28340 operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
28341 RSHIFT_EXPR and BIT_NOT_EXPR.
28342
28343 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28344
28345 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
28346 (adjust_setup_cost): New parameter supporting round up adjustment.
28347 (struct address_cost_data): Delete.
28348 (force_expr_to_var_cost): Don't bound cost with spill_cost.
28349 (split_address_cost, ptr_difference_cost): Delete.
28350 (difference_cost, compare_aff_trees, record_inv_expr): Delete.
28351 (struct ainc_cost_data): New struct.
28352 (get_address_cost_ainc): New function.
28353 (get_address_cost, get_computation_cost): Reimplement.
28354 (determine_group_iv_cost_address): Record inv_expr for all uses of
28355 a group.
28356 (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
28357 (iv_ca_has_deps): Reimplemented to ...
28358 (iv_ca_more_deps): ... this. Check if NEW_CP introduces more deps
28359 than OLD_CP.
28360 (iv_ca_extend): Call iv_ca_more_deps.
28361
28362 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28363
28364 * tree-ssa-address.c (struct mem_address): Move to header file.
28365 (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
28366 * tree-ssa-address.h (struct mem_address): Move from C file.
28367 (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
28368
28369 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28370
28371 * tree-affine.h (aff_combination_type): New interface.
28372 (aff_combination_zero_p): Remove static.
28373 (aff_combination_const_p): New interface.
28374 (aff_combination_singleton_var_p): New interfaces.
28375
28376 2017-05-11 Richard Biener <rguenther@suse.de>
28377
28378 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
28379 Skip unreachable blocks and destinations.
28380 (eliminate): Move stmt removal and fixup ...
28381 (fini_eliminate): ... here. Skip inserted exprs.
28382 (pass_pre::execute): Move fini_pre after fini_eliminate.
28383 * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
28384 (tail_merge_optimize): Run cleanup_tree_cfg if requested by
28385 PRE to get rid of dead code that has invalid SSA form and
28386 split critical edges again.
28387
28388 2017-05-11 Bin Cheng <bin.cheng@arm.com>
28389
28390 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
28391
28392 2017-05-11 Richard Biener <rguenther@suse.de>
28393
28394 * passes.c (execute_function_todo): Verify loops if they are
28395 said to be up-to-date.
28396 * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
28397 * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
28398
28399 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
28400
28401 PR target/80090
28402 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
28403 handle calling assemble_external ourself.
28404
28405 PR target/79027
28406 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
28407 modes with zero size. Enhance comment.
28408
28409 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28410
28411 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
28412 built-ins for vec_xl and vec_xst with short and char pointer
28413 arguments.
28414
28415 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
28416
28417 * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
28418 (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
28419 (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
28420 (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
28421 (_mm_maskz_min_round_ss): New intrinsics.
28422 * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
28423 (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
28424 * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
28425 (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
28426 (__builtin_ia32_minss_mask_round): New builtins.
28427 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
28428 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
28429 * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
28430 Rename to ...
28431 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
28432 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
28433 Change to ...
28434 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
28435 ... this.
28436
28437 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
28438
28439 * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
28440 (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
28441 (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
28442 (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
28443 (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
28444 (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
28445 (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
28446 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
28447 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
28448 * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
28449 (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
28450 (__builtin_ia32_mulss_mask_round): New builtins.
28451 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
28452 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
28453 * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
28454 Rename to ...
28455 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
28456 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
28457 Change to ...
28458 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
28459 ... this.
28460
28461 2017-05-10 Julia Koval <julia.koval@intel.com>
28462
28463 * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
28464 (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
28465 (_mm256_setr_m128i): New intrinsics.
28466
28467 2017-05-10 Julia Koval <julia.koval@intel.com>
28468
28469 * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
28470 (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
28471 (_mm_maskz_rcp14_ss): New intrinsics.
28472 * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
28473 (__builtin_ia32_rcp14ss_mask): New builtins.
28474 * config/i386/sse.md (srcp14<mode>_mask): New pattern.
28475
28476 2017-05-10 Peter Bergner <bergner@vnet.ibm.com>
28477
28478 PR tree-optimization/51513
28479 * tree-cfg.c (gimple_seq_unreachable_p): New function.
28480 (assert_unreachable_fallthru_edge_p): Use it.
28481 (group_case_labels_stmt): Likewise.
28482 * tree-cfg.h: Prototype it.
28483 * stmt.c: Include cfghooks.h and tree-cfg.h.
28484 (emit_case_dispatch_table) <gap_label>: New local variable.
28485 Use it to fill dispatch table gaps.
28486 Test for default_label before updating probabilities.
28487 (expand_case) <default_label>: Remove unneeded initialization.
28488 Test for unreachable default case statement and remove its edge.
28489 Set default_label accordingly.
28490 * tree-ssa-ccp.c (optimize_unreachable): Update comment.
28491
28492 2017-05-10 Carl Love <cel@us.ibm.com>
28493
28494 * config/rs6000/rs6000-c: Add support for built-in functions
28495 vector signed char vec_neg (vector signed char)
28496 vector signed short int vec_neg (vector short int)
28497 vector signed int vec_neg (vector signed int)
28498 vector signed long long vec_neg (vector signed long long)
28499 vector float vec_neg (vector float)
28500 vector double vec_neg (vector double)
28501 * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
28502 overload.
28503 * config/rs6000/altivec.h: Add define for vec_neg
28504 * doc/extend.texi: Update the built-in documentation for the
28505 new built-in functions.
28506
28507 2017-05-10 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28508
28509 PR tree-optimization/77644
28510 * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
28511
28512 2017-05-10 Nathan Sidwell <nathan@acm.org>
28513
28514 * dumpfile.h (TDI_lang_all): New.
28515 (TDF_KIND): New. Renumber others
28516 (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
28517 than bits.
28518 * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add
28519 lang-all.
28520 (get_dump_file_name): Adjust suffix generation.
28521 (dump_enable_all): Use TDF_KIND.
28522 * doc/invoke.texi (-fdump-lang-all): Document.
28523
28524 * dumpfile.h: Tabify.
28525
28526 2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
28527
28528 PR target/80671
28529 * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
28530 Move member access before delete.
28531
28532 2017-05-10 Alexandre Oliva <aoliva@redhat.com>
28533
28534 * tree-inline.c (expand_call_inline): Split block at stmt
28535 before the call.
28536
28537 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
28538
28539 PR target/68163
28540 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
28541 are now unused after splitting mov{sf,sd}_hardfloat.
28542 (f32_lr2): Likewise.
28543 (f32_lm): Likewise.
28544 (f32_lm2): Likewise.
28545 (f32_li): Likewise.
28546 (f32_li2): Likewise.
28547 (f32_lv): Likewise.
28548 (f32_sr): Likewise.
28549 (f32_sr2): Likewise.
28550 (f32_sm): Likewise.
28551 (f32_sm2): Likewise.
28552 (f32_si): Likewise.
28553 (f32_si2): Likewise.
28554 (f32_sv): Likewise.
28555 (f32_dm): Likewise.
28556 (f32_vsx): Likewise.
28557 (f32_av): Likewise.
28558 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
28559 For movsf, order stores so the VSX stores occur before the GPR
28560 store which encourages the register allocator to use a traditional
28561 FPR instead of a GPR. For movsd, order the stores so that the GPR
28562 store comes before the VSX stores to allow the power6 to work.
28563 This is due to the power6 not having a 32-bit integer store
28564 instruction from a FPR.
28565 (movsf_hardfloat): Likewise.
28566 (movsd_hardfloat): Likewise.
28567
28568 2017-05-09 Martin Sebor <msebor@redhat.com>
28569
28570 PR translation/80280
28571 * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
28572 added in r247778.
28573
28574 PR translation/80280
28575 * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
28576 data member added in r247778.
28577 (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
28578
28579 2017-05-09 Nathan Sidwell <nathan@acm.org>
28580
28581 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
28582
28583 * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
28584 typedefs.
28585
28586 2017-05-09 Marek Polacek <polacek@redhat.com>
28587
28588 * doc/invoke.texi: Fix typo.
28589
28590 2017-05-09 Richard Biener <rguenther@suse.de>
28591
28592 * tree-vrp.c (vrp_val_is_max): Adjust comment.
28593 (vrp_val_is_min): Likewise.
28594 (set_value_range_to_value): Likewise.
28595 (set_value_range_to_nonnegative): Likewise.
28596 (gimple_assign_nonzero_p): Likewise.
28597 (gimple_stmt_nonzero_p): Likewise.
28598 (vrp_int_const_binop): Likewise. Remove unreachable case.
28599 (adjust_range_with_scev): Adjust comments.
28600 (compare_range_with_value): Likewise.
28601 (extract_range_from_phi_node): Likewise.
28602 (test_for_singularity): Likewise.
28603
28604 2017-05-09 Richard Biener <rguenther@suse.de>
28605
28606 * tree-vrp.c (get_single_symbol): Add assert that we don't
28607 get overflowed constants as invariant part.
28608 (compare_values_warnv): Add comment before the TREE_NO_WARNING
28609 checks. Use wi::cmp instead of recursing for integer constants.
28610 (compare_values): Just ignore whether we assumed undefined
28611 overflow instead of failing the compare.
28612 (extract_range_for_var_from_comparison_expr): Add comment before the
28613 TREE_NO_WARNING sets.
28614 (test_for_singularity): Likewise.
28615 (extract_range_from_comparison): Do not disable optimization
28616 when we assumed undefined overflow.
28617 (extract_range_basic): Remove init of unused var.
28618
28619 2017-05-09 Richard Biener <rguenther@suse.de>
28620
28621 * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
28622 (extract_range_from_multiplicative_op_1): Adjust.
28623 (extract_range_from_binary_expr_1): Use int_const_binop.
28624
28625 2017-05-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
28626
28627 PR target/80101
28628 * config/rs6000/power6.md: Replace store_data_bypass_p calls with
28629 rs6000_store_data_bypass_p in seven define_bypass directives and
28630 in several comments.
28631 * config/rs6000/rs6000-protos.h: Add prototype for
28632 rs6000_store_data_bypass_p function.
28633 * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
28634 function implements slightly different (rs6000-specific) semantics
28635 than store_data_bypass_p, returning false rather than aborting
28636 with assertion error when arguments do not satisfy the
28637 requirements of store data bypass.
28638 (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
28639 rs6000_store_data_bypass_p.
28640
28641 2017-05-08 Max Filippov <jcmvbkbc@gmail.com>
28642
28643 * config/xtensa/xtensa-protos.h
28644 (xtensa_initial_elimination_offset): New declaration.
28645 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
28646 New function. Move its body from the INITIAL_ELIMINATION_OFFSET
28647 macro definition, add case for FRAME_POINTER_REGNUM when
28648 FRAME_GROWS_DOWNWARD.
28649 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
28650 (INITIAL_ELIMINATION_OFFSET): Replace body with call to
28651 xtensa_initial_elimination_offset.
28652
28653 2017-05-08 Nathan Sidwell <nathan@acm.org>
28654
28655 * doc/invoke.texi: Alphabetize -fdump options.
28656
28657 2017-05-08 Martin Sebor <msebor@redhat.com>
28658
28659 PR translation/80280
28660 * config/sol2-c.c (solaris_pragma_align): Correct quoting.
28661
28662 2017-05-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
28663
28664 * target.def (compute_frame_layout): New optional target hook.
28665 * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
28666 * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
28667 * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
28668 target hook.
28669 * reload1.c (verify_initial_elim_offsets): Likewise.
28670 * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
28671 (use_simple_return_p): Call arm_compute_frame_layout if needed.
28672 (arm_get_frame_offsets): Split up into this ...
28673 (arm_compute_frame_layout): ... and this function.
28674
28675 2017-05-08 Richard Sandiford <richard.sandiford@arm.com>
28676
28677 * config/aarch64/constraints.md (Usa): New constraint.
28678 * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
28679
28680 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
28681
28682 * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
28683 with_multilib_list after it has been checked.
28684
28685 2017-05-08 Richard Biener <rguenther@suse.de>
28686
28687 * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
28688 (bitmap_set_subtract_values): Likewise.
28689
28690 2017-05-08 Richard Biener <rguenther@suse.de>
28691
28692 * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
28693 (gimple_assign_nonzero): ... this and remove strict_overflow_p
28694 argument.
28695 (gimple_stmt_nonzero_warnv_p): Rename to ...
28696 (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
28697 argument.
28698 (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
28699 (extract_range_basic): Adjust, do not disable propagation on
28700 strict overflow sensitive simplification.
28701 (vrp_visit_cond_stmt): Likewise.
28702
28703 2017-05-05 Jan Hubicka <hubicka@ucw.cz>
28704
28705 * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
28706 body size unconditionally.
28707
28708 2017-05-07 Jeff Law <law@redhat.com>
28709
28710 Revert:
28711 2017-05-06 Jeff Law <law@redhat.com>
28712 PR tree-optimization/78496
28713 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
28714 code.
28715
28716 PR tree-optimization/78496
28717 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
28718 (simplify_stmt_using_ranges): Call it.
28719 (vrp_dom_walker::before_dom_children): Extract equivalences
28720 from an ASSERT_EXPR with an equality comparison against a
28721 constant.
28722
28723 2017-05-06 Jeff Law <law@redhat.com>
28724
28725 PR tree-optimization/78496
28726 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
28727 code.
28728
28729 PR tree-optimization/78496
28730 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
28731 (simplify_stmt_using_ranges): Call it.
28732 (vrp_dom_walker::before_dom_children): Extract equivalences
28733 from an ASSERT_EXPR with an equality comparison against a
28734 constant.
28735
28736 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
28737
28738 * lra-constraints.c (lra_copy_reg_equiv): New function.
28739 (split_reg): Use it to copy equivalence information from the
28740 original register to the spill register.
28741
28742 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
28743
28744 PR rtl-optimization/75964
28745 * simplify-rtx.c (simplify_const_relational_operation): Remove
28746 invalid handling of comparisons of integer ABS.
28747
28748 2017-05-06 Uros Bizjak <ubizjak@gmail.com>
28749
28750 * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
28751 initialize to zero.
28752 (init_regs): Remove declaration.
28753 (function_arg_advance_32): Initialize error_p as boolean variable.
28754
28755 2017-05-05 Nathan Sidwell <nathan@acm.org>
28756
28757 * store-motion.c (remove_reachable_equiv_notes): Reformat long
28758 lines. Use for (;;).
28759
28760 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28761
28762 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
28763 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
28764 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
28765 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
28766 VF=2 that require versioning.
28767
28768 2017-05-05 David Malcolm <dmalcolm@redhat.com>
28769
28770 * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
28771 int.
28772
28773 2017-05-05 David Malcolm <dmalcolm@redhat.com>
28774
28775 * diagnostic.h (diagnostic_override_option_index): Convert from
28776 macro to inline function.
28777
28778 2017-05-05 David Malcolm <dmalcolm@redhat.com>
28779
28780 * diagnostic.c (last_module_changed_p): New function.
28781 (set_last_module): New function.
28782 (diagnostic_report_current_module): Convert macro usage to
28783 the above functions.
28784 * diagnostic.h (diagnostic_context::last_module): Strengthen
28785 from const line_map * to const line_map_ordinary *.
28786 (diagnostic_last_module_changed): Delete macro.
28787 (diagnostic_set_last_module): Delete macro.
28788
28789 2017-05-05 David Malcolm <dmalcolm@redhat.com>
28790
28791 * diagnostic.c (diagnostic_impl): Replace report_diagnostic
28792 with diagnostic_report_diagnostic.
28793 (diagnostic_n_impl_richloc): Likewise.
28794 * diagnostic.h (report_diagnostic): Delete macro.
28795 * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
28796 with diagnostic_report_diagnostic.
28797 * substring-locations.c (format_warning_va): Likewise.
28798
28799 2017-05-05 David Malcolm <dmalcolm@redhat.com>
28800
28801 * diagnostic.c (diagnostic_report_diagnostic): Eliminate
28802 save/restor of format_spec. Move option-printing code to...
28803 (print_option_information): ...this new function, and
28804 reimplement by simply printing to the pretty_printer,
28805 rather than appending to the format string.
28806
28807 2017-05-05 David Malcolm <dmalcolm@redhat.com>
28808
28809 * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
28810 handling logic into...
28811 (update_effective_level_from_pragmas): ...this new function.
28812
28813 2017-05-04 Andrew Waterman <andrew@sifive.com>
28814
28815 * config/riscv/riscv.opt (mstrict-align): New option.
28816 * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it. Update comment.
28817 (SLOW_UNALIGNED_ACCESS): Define.
28818 (riscv_slow_unaligned_access): Declare.
28819 * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
28820 field.
28821 (riscv_slow_unaligned_access): New variable.
28822 (rocket_tune_info): Set slow_unaligned_access to true.
28823 (optimize_size_tune_info): Set slow_unaligned_access to false.
28824 (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
28825 (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
28826 (riscv_option_override): Set riscv_slow_unaligned_access.
28827 * doc/invoke.texi: Add -mstrict-align to RISC-V.
28828
28829 2017-05-04 Kito Cheng <kito.cheng@gmail.com>
28830
28831 * config/riscv/riscv.md: Unify indentation.
28832
28833 2017-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
28834
28835 PR target/79038
28836 PR target/79202
28837 PR target/79203
28838 * config/rs6000/rs6000.md (u code attribute): Add FIX and
28839 UNSIGNED_FIX.
28840 (extendsi<mode>2): Add support for doing sign extension via
28841 VUPKHSW and XXPERMDI if the value is in Altivec registers and we
28842 don't have ISA 3.0 instructions.
28843 (extendsi<mode>2 splitter): Likewise.
28844 (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
28845 generate the normal insns since SImode can now go in vector
28846 registers. Disallow the special UNSPECs needed for previous
28847 machines to hide SImode being used. Add new insns
28848 fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
28849 (fix_trunc<mode>si2_stfiwx): Likewise.
28850 (fix_trunc<mode>si2_internal): Likewise.
28851 (fixuns_trunc<mode>si2): Likewise.
28852 (fixuns_trunc<mode>si2_stfiwx): Likewise.
28853 (fctiw<u>z_<mode>_smallint): Likewise.
28854 (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
28855 of floating point to 32-bit integer from doing a direct move to
28856 the GPR registers to do a store.
28857 (fctiwz_<mode>): Break long line.
28858
28859 2017-05-05 Bin Cheng <bin.cheng@arm.com>
28860
28861 * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
28862 * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
28863 (addr_list, addr_offset_valid_p): New.
28864 (split_address_groups): Check offset validity with above function.
28865 (gt-tree-ssa-loop-ivopts.h): Include header file.
28866
28867 2017-05-05 Nathan Sidwell <nathan@acm.org>
28868
28869 * config.gcc (arm*-*-*): Add missing 'fi'.
28870
28871 2017-05-05 Steve Ellcey <sellcey@cavium.com>
28872
28873 * doc/invoke.texi (-fopt-info): Explicitly say order of options
28874 included in -fopt-info does not matter.
28875 * doc/optinfo.texi (-fopt-info): Fix description of default
28876 behavour. Explicitly say order of options included in -fopt-info
28877 does not matter.
28878
28879 2017-05-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
28880
28881 * config.gcc: Allow combinations of aprofile and rmprofile values for
28882 --with-multilib-list.
28883 * config/arm/t-multilib: New file.
28884 * config/arm/t-aprofile: Remove initialization of MULTILIB_*
28885 variables. Remove setting of ISA and floating-point ABI in
28886 MULTILIB_OPTIONS and MULTILIB_DIRNAMES. Set architecture and FPU in
28887 MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
28888 and MULTILIB_DIRNAMES respectively. Add comment to introduce all
28889 matches. Add architecture matches for marvel-pj4 and generic-armv7-a
28890 CPU options.
28891 * config/arm/t-rmprofile: Likewise except for the matches changes.
28892 * doc/install.texi (--with-multilib-list): Document the combination of
28893 aprofile and rmprofile values and warn about pitfalls in doing that.
28894
28895 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
28896
28897 * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
28898 (movdi_aarch64): Likewise.
28899
28900 2017-05-05 Jakub Jelinek <jakub@redhat.com>
28901
28902 PR tree-optimization/80632
28903 * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
28904 field.
28905 (build_arrays): Initialize it for virtual phis.
28906 (fix_phi_nodes): Use it for virtual phis.
28907
28908 PR tree-optimization/80558
28909 * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
28910 [x, y] op z into [x op, y op z] for op & or | if conditions
28911 are met.
28912
28913 2017-05-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
28914 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
28915
28916 PR target/71607
28917 * config/arm/arm.md (use_literal_pool): Remove.
28918 (64-bit immediate split): No longer takes cost into consideration
28919 if arm_disable_literal_pool is enabled.
28920 * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
28921 used when arm_disable_literal_pool is enabled.
28922 (arm_max_const_double_inline_cost): Remove use of
28923 arm_disable_literal_pool.
28924 (push_minipool_fix): Add assert.
28925 (arm_reorg): Add return if arm_disable_literal_pool is enabled.
28926 * config/arm/vfp.md (no_literal_pool_df_immediate): New.
28927 (no_literal_pool_sf_immediate): New.
28928
28929 2017-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28930
28931 PR tree-optimization/80613
28932 * tree-ssa-dce.c (propagate_necessity): Remove cases for
28933 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
28934
28935 2017-05-05 Richard Biener <rguenther@suse.de>
28936
28937 * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
28938
28939 2017-05-05 Georg-Johann Lay <avr@gjlay.de>
28940
28941 * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
28942 of this flag from insn conditions due to removal from r247495.
28943
28944 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
28945
28946 * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
28947 New function.
28948 (arm_early_store_addr_dep_ptr): Likewise.
28949 * config/arm/aarch-common-protos.h
28950 (arm_early_load_addr_dep_ptr): Add prototype.
28951 (arm_early_store_addr_dep_ptr): Likewise.
28952 * config/arm/cortex-a53.md: Add new bypasses.
28953
28954 2017-05-05 Jakub Jelinek <jakub@redhat.com>
28955
28956 * tree.c (next_type_uid): Change type to unsigned.
28957 (type_hash_canon): Decrement back next_type_uid if
28958 freeing a type node with the highest TYPE_UID. For INTEGER_TYPEs
28959 also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
28960 if possible.
28961
28962 2017-05-04 Martin Sebor <msebor@redhat.com>
28963
28964 * builtins.c: Fix a trivial typo in a comment.
28965
28966 PR middle-end/79234
28967 * builtins.c (check_sizes): Adjust to handle reading past the end.
28968 Avoid printing excessive upper bound of ranges. Use %E to print
28969 tree nodes instead of converting them to %wu.
28970 (expand_builtin_memchr): New function.
28971 (compute_dest_size): Rename...
28972 (compute_objsize): ...to this.
28973 (expand_builtin_memcpy): Adjust.
28974 (expand_builtin_mempcpy): Adjust.
28975 (expand_builtin_strcat): Adjust.
28976 (expand_builtin_strcpy): Adjust.
28977 (check_strncat_sizes): Adjust.
28978 (expand_builtin_strncat): Adjust.
28979 (expand_builtin_strncpy): Adjust and simplify.
28980 (expand_builtin_memset): Adjust.
28981 (expand_builtin_bzero): Adjust.
28982 (expand_builtin_memcmp): Adjust.
28983 (expand_builtin): Handle memcmp.
28984 (maybe_emit_chk_warning): Check strncat just once.
28985
28986 2017-05-04 Martin Sebor <msebor@redhat.com>
28987
28988 PR preprocessor/79214
28989 PR middle-end/79222
28990 PR middle-end/79223
28991 * builtins.c (check_sizes): Add inlining context and issue
28992 warnings even when -Wno-system-headers is set.
28993 (check_strncat_sizes): Same.
28994 (expand_builtin_strncat): Same.
28995 (expand_builtin_memmove): New function.
28996 (expand_builtin_stpncpy): Same.
28997 (expand_builtin): Handle memmove and stpncpy.
28998
28999 2017-05-04 Bin Cheng <bin.cheng@arm.com>
29000
29001 * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
29002 which is not used any more.
29003
29004 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
29005
29006 * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
29007
29008 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
29009
29010 * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
29011 (cortexa53_tunings): Likewise.
29012 (cortexa57_tunings): Likewise.
29013 (cortexa72_tunings): Likewise.
29014 (cortexa73_tunings): Likewise.
29015
29016 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
29017
29018 * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
29019 Set loop alignment to 8.
29020
29021 2017-05-04 Martin Sebor <msebor@redhat.com>
29022
29023 PR translation/80280
29024 * builtins.c (expand_builtin_object_size): Add missing quoting to
29025 %D and like directives.
29026 * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
29027 (hsa_type_for_tree_type): Same.
29028 (verify_function_arguments): Same.
29029 * symtab.c (symbol_table::change_decl_assembler_name): Same.
29030 * varasm.c (get_section): Same.
29031 (mark_weak): Same.
29032
29033 2017-05-04 Martin Sebor <msebor@redhat.com>
29034
29035 PR translation/80280
29036 * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
29037
29038 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
29039
29040 * config/aarch64/aarch64.c (generic_addrcost_table):
29041 Change HI/TI mode setting.
29042
29043 2017-05-04 Martin Jambor <mjambor@suse.cz>
29044
29045 PR tree-optimization/80622
29046 * tree-sra.c (comes_initialized_p): New function.
29047 (build_accesses_from_assign): Only set write lazily when
29048 comes_initialized_p is false.
29049 (analyze_access_subtree): Use comes_initialized_p.
29050 (propagate_subaccesses_across_link): Assert !comes_initialized_p
29051 instead of testing for PARM_DECL.
29052
29053 2017-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29054
29055 * config/aarch64/aarch64.md (prefetch); Adjust predicate and
29056 constraint on operand 0 to allow more general addressing modes.
29057 Adjust output template.
29058 * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
29059 New function.
29060 * config/aarch64/aarch64-protos.h
29061 (aarch64_address_valid_for_prefetch_p): Declare prototype.
29062 * config/aarch64/constraints.md (Dp): New address constraint.
29063 * config/aarch64/predicates.md (aarch64_prefetch_operand): New
29064 predicate.
29065
29066 2017-05-04 Jan Hubicka <hubicka@ucw.cz>
29067
29068 * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
29069 update use of estimate_ipcp_clone_size_and_time.
29070 (estimate_local_effects): Update use of
29071 estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
29072 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
29073 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
29074 Return nonspecialized time.
29075
29076 2017-05-04 Richard Biener <rguenther@suse.de>
29077
29078 * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
29079 for the last VUSE which def dominates the PHI. Directly call
29080 maybe_skip_until.
29081 (get_continuation_for_phi_1): Remove.
29082
29083 2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
29084
29085 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
29086 to explain the use of truncating division. Cap the number of
29087 iterations to the maximum given by nb_iterations_upper_bound,
29088 if defined.
29089
29090 2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
29091
29092 * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
29093 * configure: Regenerate.
29094 * config.in: Regenerate.
29095 * config/i386/driver-mingw32.c: new file.
29096 * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
29097 * config.host: Link driver-mingw32.o on MinGW host.
29098 * doc/install.texi: Document new --enable-mingw-wildcard configure
29099 option.
29100
29101 2017-05-04 Marek Polacek <polacek@redhat.com>
29102
29103 PR tree-optimization/80612
29104 * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
29105
29106 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
29107 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
29108
29109 * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
29110 (movt splitter): Likewise.
29111 * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
29112 to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
29113 (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
29114 block for Thumb-1 with MOVT.
29115 (thumb2_legitimate_address_p): Move code block ...
29116 (can_avoid_literal_pool_for_label_p): ... into this new function.
29117 (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
29118 literal pool.
29119 (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
29120 * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
29121 "M-profile targets with the MOVT instruction".
29122
29123 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
29124
29125 * config/arm/arm-builtins.c (arm_init_builtins): Rename
29126 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
29127 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
29128
29129 2017-05-04 Martin Liska <mliska@suse.cz>
29130
29131 * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
29132 variable cond_code.
29133
29134 2017-05-04 Richard Biener <rguenther@suse.de>
29135
29136 * tree.c (array_at_struct_end_p): Handle arrays at struct
29137 end with flexarrays more conservatively. Refactor and treat
29138 arrays of arrays or aggregates more strict. Fix
29139 VIEW_CONVERT_EXPR handling. Remove allow_compref argument.
29140 * tree.c (array_at_struct_end_p): Adjust prototype.
29141 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
29142 * gimple-fold.c (get_range_strlen): Likewise.
29143 * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
29144
29145 2017-05-04 Richard Biener <rguenther@suse.de>
29146
29147 PR tree-optimization/31130
29148 * tree-vrp.c (needs_overflow_infinity): Remove as always returning
29149 false.
29150 (supports_overflow_infinity): Likewise.
29151 (is_negative_overflow_infinity): Likewise.
29152 (is_positive_overflow_infinity): Likewise.
29153 (is_overflow_infinity): Likewise.
29154 (stmt_overflow_infinity): Likewise.
29155 (overflow_infinity_range_p): Likewise.
29156 (usable_range_p): Remove as always returning true.
29157 (make_overflow_infinity): Remove.
29158 (negative_overflow_infinity): Likewise.
29159 (positive_overflow_infinity): Likewise.
29160 (avoid_overflow_infinity): Likewise.
29161 (set_value_range): Adjust accordingly.
29162 (set_value_range_to_nonnegative): Likewise, remove now unused
29163 overflow_infinity arg.
29164 (vrp_operand_equal_p): Adjust.
29165 (update_value_range): Likewise.
29166 (range_int_cst_singleton_p): Likewise.
29167 (operand_less_p): Likewise.
29168 (compare_values_warnv): Likewise.
29169 (extract_range_for_var_from_comparison_expr): Likewise.
29170 (vrp_int_const_binop): Likewise.
29171 (zero_nonzero_bits_from_vr): Likewise.
29172 (extract_range_from_multiplicative_op_1): Likewise.
29173 (extract_range_from_binary_expr_1): Likewise.
29174 (extract_range_from_unary_expr): Likewise.
29175 (extract_range_from_comparison): Likewise.
29176 (extract_range_basic): Likewise.
29177 (adjust_range_with_scev): Likewise.
29178 (compare_ranges): Likewise.
29179 (compare_range_with_value): Likewise.
29180 (dump_value_range): Likewise.
29181 (test_for_singularity): Likewise, remove strict_overflow_p parameter
29182 never used.
29183 (simplify_cond_using_ranges): Adjust.
29184
29185 2017-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
29186
29187 * brig-builtins.def: Added a builtin for class_f64.
29188 * builtin-types.def: Added a builtin type needed by class_f64.
29189
29190 2017-05-03 Jason Merrill <jason@redhat.com>
29191
29192 * timevar.def: Add TV_CONSTEXPR.
29193
29194 2017-05-03 David Malcolm <dmalcolm@redhat.com>
29195
29196 * common.opt (fdiagnostics-parseable-fixits): Fix typo.
29197
29198 2017-05-03 Martin Jambor <mjambor@suse.cz>
29199
29200 * ipa-prop.c (ipa_update_after_lto_read): Removed.
29201 * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
29202 * ipa-cp.c (ipcp_propagate_stage): Do not call
29203 ipa_update_after_lto_read.
29204 * ipa-inline.c (ipa_inline): Likewise.
29205
29206 2017-05-03 Martin Jambor <mjambor@suse.cz>
29207
29208 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY
29209 tag. Added a default constructor and a destructor.
29210 (ipa_edge_args_sum_t): New class;
29211 (ipa_edge_args_sum): Declare.
29212 (ipa_edge_args_vector): Remove declaration.
29213 (IPA_EDGE_REF): Use ipa_edge_args_sum.
29214 (ipa_free_edge_args_substructures): Remove declaration.
29215 (ipa_check_create_edge_args): Use ipa_edge_args_sum.
29216 (ipa_edge_args_info_available_for_edge_p): Likewise.
29217 * ipa-prop.c (ipa_edge_args_vector): Removed.
29218 (edge_removal_hook_holder): Likewise.
29219 (edge_duplication_hook_holder): Likewise.
29220 (ipa_edge_args_sum): New variable.
29221 (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
29222 ipa_edge_args_vector.
29223 (ipa_free_edge_args_substructures): Likewise.
29224 (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
29225 ipa_edge_args_vector.
29226 (ipa_edge_removal_hook): Turned into method
29227 ipa_edge_args_sum_t::remove.
29228 (ipa_edge_duplication_hook): Turned into method
29229 ipa_edge_args_sum_t::duplicate.
29230 (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
29231 registering edge hooks.
29232 (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
29233 * ipa-inline-analysis.c (estimate_function_body_sizes): Test
29234 ipa_edge_args_sum instead of ipa_edge_args_vector.
29235 * ipa-profile.c (ipa_profile): Likewise.
29236
29237 2017-05-03 Martin Jambor <mjambor@suse.cz>
29238
29239 * symbol-summary.h (function_summary): New method exists.
29240 (function_summary::symtab_removal): Deallocate through release.
29241 (call_summary): New class.
29242 (gt_ggc_mx): New overload.
29243 (gt_pch_nx): Likewise.
29244 (gt_pch_nx): Likewise.
29245
29246 2017-05-03 Jeff Law <law@redhat.com>
29247
29248 PR tree-optimization/78496
29249 * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
29250 from simplify_cond_using_ranges. Split off code to walk
29251 backwards through casts into ...
29252 (simplify_cond_using_ranges_2): New function.
29253 (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
29254 (execute_vrp): After identifying jump threads, call
29255 simplify_cond_using_ranges_2.
29256
29257 2017-05-03 Jan Hubicka <hubicka@ucw.cz>
29258
29259 PR bootstrap/80609
29260 * ipa-inline.h (inline_summary): Add ctor.
29261 (create_ggc): Do not use ggc_cleared_alloc.
29262
29263 2017-05-03 Jeff Downs <heydowns@somuchpressure.net>
29264 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29265
29266 * gcc.c (handle_braces): Support escaping in switch matching
29267 text.
29268 * doc/invoke.texi (Spec Files): Document it.
29269 Remove superfluous @code markup in items.
29270
29271 2017-05-03 David Malcolm <dmalcolm@redhat.com>
29272
29273 * diagnostic-show-locus.c (struct column_range): New struct.
29274 (get_affected_columns): New function.
29275 (get_printed_columns): New function.
29276 (struct correction): New struct.
29277 (correction::ensure_capacity): New function.
29278 (correction::ensure_terminated): New function.
29279 (struct line_corrections): New struct.
29280 (line_corrections::~line_corrections): New dtor.
29281 (line_corrections::add_hint): New function.
29282 (layout::print_trailing_fixits): Reimplement in terms of the new
29283 classes.
29284 (selftest::test_overlapped_fixit_printing): New function.
29285 (selftest::diagnostic_show_locus_c_tests): Call it.
29286
29287 2017-05-03 Nathan Sidwell <nathan@acm.org>
29288
29289 Canonicalize canonical type hashing
29290 * tree.h (type_hash_canon_hash): Declare.
29291 * tree.c (type_hash_list, attribute_hash_list): Move into
29292 type_hash_canon_hash.
29293 (build_type_attribute_qual_variant): Break out hash code calc into
29294 type_hash_canon_hash.
29295 (type_hash_canon_hash): New. Generic type hash computation.
29296 (build_range_type_1, build_array_type_1, build_function_type,
29297 build_method_type_directly, build_offset_type, build_complex_type,
29298 make_vector_type): Call it.
29299
29300 2017-05-03 Richard Biener <rguenther@suse.de>
29301
29302 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29303 When all DRs have unknown misaligned do not always peel
29304 when there is a store but apply the same costing model as if
29305 there were only loads.
29306
29307 2017-05-03 Richard Biener <rguenther@suse.de>
29308
29309 Revert
29310 PR tree-optimization/80492
29311 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
29312 compare_base_decls returning dont-know properly.
29313
29314 2017-05-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
29315
29316 * config/arm/iterators.md (CCSI): New mode iterator.
29317 (arch): New mode attribute.
29318 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
29319 (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
29320 (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This. Use CCSI
29321 code iterator for success result mode.
29322 * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
29323 the corresponding new insn generators.
29324
29325 2017-05-03 Bin Cheng <bin.cheng@arm.com>
29326
29327 Revert r247509
29328 2017-05-02 Bin Cheng <bin.cheng@arm.com>
29329 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
29330
29331 2017-05-03 Richard Sandiford <richard.sandiford@linaro.org>
29332
29333 * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
29334 (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
29335 (DDR_A): Wrap DDR argument in brackets.
29336 (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
29337 (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
29338 (DDR_REVERSED_P): Likewise.
29339
29340 2017-05-03 Jakub Jelinek <jakub@redhat.com>
29341
29342 PR tree-optimization/79472
29343 * tree-switch-conversion.c (struct switch_conv_info): Add
29344 contiguous_range and default_case_nonstandard fields.
29345 (collect_switch_conv_info): Compute contiguous_range and
29346 default_case_nonstandard fields, don't clear final_bb if
29347 contiguous_range and only the default case doesn't have the required
29348 structure.
29349 (check_all_empty_except_final): Set default_case_nonstandard instead
29350 of failing if contiguous_range and the default case doesn't have empty
29351 block.
29352 (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
29353 and only the default case doesn't have the required constants. Skip
29354 virtual phis.
29355 (gather_default_values): Skip virtual phis. Allow non-NULL CASE_LOW
29356 if default_case_nonstandard.
29357 (build_constructors): Build constant 1 just once. Assert that default
29358 values aren't inserted in between cases if contiguous_range. Skip
29359 virtual phis.
29360 (build_arrays): Skip virtual phis.
29361 (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
29362 (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
29363 Handle virtual phis.
29364 (gen_inbound_check): Handle default_case_nonstandard case.
29365 (process_switch): Adjust check_final_bb caller. Call
29366 gather_default_values with the first non-default case instead of
29367 default case if default_case_nonstandard.
29368
29369 2017-05-02 Nathan Sidwell <nathan@acm.org>
29370
29371 * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
29372 check. Fix formatting.
29373
29374 2017-05-02 Jan Hubicka <hubicka@ucw.cz>
29375
29376 * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
29377 errors when comparing specialized and unspecialized times.
29378
29379 2017-05-02 David Malcolm <dmalcolm@redhat.com>
29380
29381 * diagnostic-show-locus.c
29382 (layout::should_print_annotation_line_p): Make private.
29383 (layout::print_annotation_line): Make private.
29384 (layout::annotation_line_showed_range_p): Make private.
29385 (layout::show_ruler): Make private.
29386 (layout::print_source_line): Make private. Pass in line and
29387 line_width, rather than calling location_get_source_line. Drop
29388 returned value.
29389 (layout::print_leading_fixits): New method.
29390 (layout::print_any_fixits): Rename to...
29391 (layout::print_trailing_fixits): ...this, and make private.
29392 Don't print newline fixits.
29393 (diagnostic_show_locus): Move logic for printing one row into...
29394 (layout::print_line): ...this new function. Move the
29395 location_get_source_line call and error-handling from
29396 print_source_line to here. Call print_leading_fixits, and rename
29397 print_any_fixits to print_trailing_fixits.
29398 (selftest::test_fixit_insert_containing_newline): Update now that
29399 newlines are partially supported.
29400 (selftest::test_fixit_insert_containing_newline_2): New test.
29401 (selftest::test_fixit_replace_containing_newline): Update comments.
29402 (selftest::diagnostic_show_locus_c_tests): Call the new test.
29403 * edit-context.c (class added_line): New class.
29404 (class edited_line): Describe newline handling in comment.
29405 (edited_line::actually_edited_p): New method.
29406 (edited_line::print_content): Delete redundant decl.
29407 (edited_line::m_predecessors): New field.
29408 (edited_file::print_content): Call edited_line::print_content.
29409 (edited_file::print_diff): Update to support newlines.
29410 (edited_file::print_diff_hunk): Likewise.
29411 (edited_file::print_run_of_changed_lines): New function.
29412 (edited_file::print_diff_line): Convert to...
29413 (print_diff_line): ...this.
29414 (edited_file::get_effective_line_count): New function.
29415 (edited_line::edited_line): Initialize new field m_predecessors.
29416 (edited_line::~edited_line): Clean up m_predecessors.
29417 (edited_line::apply_fixit): Handle newlines.
29418 (edited_line::get_effective_line_count): New function.
29419 (edited_line::print_content): New function.
29420 (edited_line::print_diff_lines): New function.
29421 (selftest::test_applying_fixits_insert_containing_newline): New
29422 test.
29423 (selftest::test_applying_fixits_replace_containing_newline): New
29424 test.
29425 (selftest::insert_line): New function.
29426 (selftest::test_applying_fixits_multiple_lines): Add example of
29427 inserting a line.
29428 (selftest::edit_context_c_tests): Call the new tests.
29429
29430 2017-05-02 Bin Cheng <bin.cheng@arm.com>
29431
29432 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
29433 parameter cand. Update dump information.
29434 (get_computation_cost): Update uses.
29435
29436 2017-05-02 Bin Cheng <bin.cheng@arm.com>
29437
29438 * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
29439 (get_computation_aff): Reorder parameters. Use get_computation_aff_1.
29440 (get_computation_at, rewrite_use_address): Update use of
29441 get_computation_aff.
29442
29443 2017-05-02 Bin Cheng <bin.cheng@arm.com>
29444
29445 * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
29446 (get_computation): Delete.
29447 (get_computation_cost): Implement like get_computation_cost_at.
29448 Use get_computation_at.
29449 (get_computation_cost_at): Delete.
29450 (rewrite_use_nonlinear_expr): Use get_computation_at.
29451 (rewrite_use_compare, remove_unused_ivs): Ditto.
29452
29453 2017-05-02 Bin Cheng <bin.cheng@arm.com>
29454
29455 * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
29456
29457 2017-05-02 Bin Cheng <bin.cheng@arm.com>
29458
29459 * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
29460 (ivopts_global_cost_for_size): Rename parameter and update uses.
29461 (iv_ca_recount_cost): Update uses.
29462 (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
29463 candidates seperately in n_invs and n_cands.
29464 (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
29465
29466 2017-05-02 Bin Cheng <bin.cheng@arm.com>
29467
29468 * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
29469 (find_inv_vars_cb): New.
29470 (find_depends): Renamed to ...
29471 (find_inv_vars): ... this.
29472 (add_candidate_1, force_var_cost): Call find_inv_vars.
29473 (split_address_cost, determine_group_iv_cost_cond): Ditto.
29474
29475 2017-05-02 Bin Cheng <bin.cheng@arm.com>
29476
29477 * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
29478 inv_vars. Add inv_exprs.
29479 (struct iv_cand): Rename depends_on to inv_vars.
29480 (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
29481 max_inv_var_id/n_inv_var_uses. Move max_inv_expr_id around.
29482 Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
29483 (dump_cand): Dump inv_vars.
29484 (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
29485 (record_invariant, find_depends, add_candidate_1): Ditto.
29486 (set_group_iv_cost, force_var_cost): Ditto.
29487 (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
29488 (get_computation_cost_at, get_computation_cost): Ditto.
29489 (determine_group_iv_cost_generic): Ditto.
29490 (determine_group_iv_cost_address): Ditto.
29491 (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
29492 (determine_group_iv_costs): Ditto.
29493 (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
29494 (iv_ca_set_remove_invariants): Renamed to ...
29495 (iv_ca_set_remove_invs): ... this. Support inv_vars and inv_exprs.
29496 (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
29497 (iv_ca_set_add_invariants): Renamed to ...
29498 (iv_ca_set_add_invs): ... this. Support inv_vars and inv_exprs.
29499 (iv_ca_set_cp): Use iv_ca_set_add_invs.
29500 (iv_ca_has_deps): Support inv_vars and inv_exprs.
29501 (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
29502 (create_new_ivs): Remove useless dump.
29503
29504 2017-05-02 Bin Cheng <bin.cheng@arm.com>
29505
29506 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
29507 iv_cand code.
29508 (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
29509 (iv_ca_set_no_cp, create_new_iv): Ditto.
29510
29511 2017-05-02 Bin Cheng <bin.cheng@arm.com>
29512
29513 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
29514
29515 2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
29516
29517 * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
29518 function tree_check2.
29519
29520 2017-05-02 Martin Liska <mliska@suse.cz>
29521
29522 * doc/gcov.texi: Add missing preposition.
29523 * gcov.c (function_info::function_info): Properly fill up
29524 all member variables.
29525
29526 2017-05-02 Tamar Christina <tamar.christina@arm.com>
29527
29528 * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
29529
29530 2017-05-02 Tamar Christina <tamar.christina@arm.com>
29531
29532 * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
29533
29534 2017-05-02 Martin Liska <mliska@suse.cz>
29535
29536 PR lto/77954.
29537 * lto-streamer-in.c (lto_read_tree_1): Remove
29538 LTO_STREAMER_DEBUG.
29539 * lto-streamer.c (struct tree_hash_entry): Likewise.
29540 (struct tree_entry_hasher): Likewise.
29541 (tree_entry_hasher::hash): Likewise.
29542 (tree_entry_hasher::equal): Likewise.
29543 (lto_streamer_init): Likewise.
29544 (lto_orig_address_map): Likewise.
29545 (lto_orig_address_get): Likewise.
29546 (lto_orig_address_remove): Likewise.
29547 * lto-streamer.h: Likewise.
29548 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
29549 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
29550
29551 2017-05-02 Sebastian Peryt <sebastian.peryt@intel.com>
29552
29553 * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
29554 (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
29555 (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
29556 (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
29557 (mm_maskz_sub_round_ss, _mm_mask_add_sd)
29558 (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
29559 (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
29560 (mm_maskz_sub_ss): New intrinsics.
29561 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
29562 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
29563 * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
29564 (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
29565 (__builtin_ia32_subss_mask_round): New builtins.
29566 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
29567 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
29568 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
29569 Renamed to ...
29570 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
29571 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
29572 Changed to ...
29573 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
29574 ... this.
29575
29576 2017-05-02 Martin Jambor <mjambor@suse.cz>
29577
29578 PR tree-optimization/78687
29579 * tree-sra.c (access): New field parent.
29580 (process_subtree_disqualification): New function.
29581 (disqualify_candidate): Call it.
29582 (build_accesses_from_assign): Reset write flag if creating an
29583 assighnment link.
29584 (build_access_subtree): Fill in parent field and also prpagate
29585 down grp_write flag.
29586 (create_artificial_child_access): New parameter set_grp_write, set
29587 grp_write to its value.
29588 (propagate_subaccesses_across_link): Also propagate grp_write flag
29589 values.
29590 (propagate_all_subaccesses): Push the closest parent back to work
29591 queue if add_access_to_work_queue returned true.
29592
29593 2017-05-02 Richard Biener <rguenther@suse.de>
29594
29595 * common.opt (fstrict-overflow): Alias negative to fwrapv.
29596 * doc/invoke.texi (fstrict-overflow): Remove all traces of
29597 -fstrict-overflow documentation.
29598 * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
29599 (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
29600 flag_strict_overflow.
29601 * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
29602 * lto-opts.c (lto_write_options): Do not stream it.
29603 * lto-wrapper.c (merge_and_complain): Do not handle it.
29604 * opts.c (default_options_table): Do not set -fstrict-overflow.
29605 (finish_options): Likewise do not clear it when sanitizing.
29606 * simplify-rtx.c (simplify_const_relational_operation): Do not
29607 test flag_strict_overflow.
29608
29609 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
29610
29611 * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
29612 using enabled attribute.
29613 (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
29614 (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
29615 (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
29616 (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
29617 (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
29618 (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
29619 (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
29620 (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
29621 (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
29622 (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
29623
29624 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
29625
29626 * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
29627
29628 2017-05-02 Richard Biener <rguenther@suse.de>
29629
29630 PR tree-optimization/80591
29631 Revert
29632 2017-04-10 Richard Biener <rguenther@suse.de>
29633
29634 * tree-ssa-structalias.c (find_func_aliases): Properly handle
29635 asm inputs.
29636
29637 2017-05-02 Richard Biener <rguenther@suse.de>
29638
29639 PR tree-optimization/80549
29640 * tree-cfgcleanup.c (mfb_keep_latches): New helper.
29641 (cleanup_tree_cfg_noloop): Create forwarders to known loop
29642 headers if they do not have a preheader.
29643
29644 2017-05-02 Martin Liska <mliska@suse.cz>
29645
29646 PR other/80589
29647 * common.opt: Fix typo.
29648 * doc/invoke.texi: Likewise.
29649
29650 2017-05-01 Jan Beulich <jbeulich@suse.com>
29651
29652 * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
29653 swapping, add (x,x,m,x,n) alternative.
29654
29655 2017-05-01 Nathan Sidwell <nathan@acm.org>
29656
29657 * calls.c (combine_pending_stack_adjustment_and_call): Remove
29658 unnecessary unadjusted_alignment check.
29659
29660 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
29661
29662 PR c++/80038
29663 * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
29664 operations here.
29665 * gimplify.c (gimplify_cilk_detach): New function.
29666 (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
29667 * tree-core.h: Document EXPR_CILK_SPAWN.
29668 * tree.h (EXPR_CILK_SPAWN): Define.
29669
29670 2017-05-01 David Malcolm <dmalcolm@redhat.com>
29671
29672 * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
29673 to use new fixit_hint representation, using the "replace" logic.
29674 (get_line_span_for_fixit_hint): Likewise.
29675 (layout::print_any_fixits): Likewise.
29676 (selftest::test_one_liner_many_fixits): Rename to...
29677 (selftest::test_one_liner_many_fixits_1): ...this, and update
29678 comment and expected output to reflect that the multiple fix-it
29679 hints are now consolidated into one insertion.
29680 (selftest::test_one_liner_many_fixits_2): New test.
29681 (selftest::test_diagnostic_show_locus_one_liner): Update for
29682 above.
29683 (selftest::test_fixit_consolidation): Update for fix-it API
29684 change.
29685 * diagnostic.c (print_parseable_fixits): Likewise.
29686 * edit-context.c (edited_line::m_line_events): Convert from
29687 auto_vec <line_event *> to auto_vec <line_event>.
29688 (class line_event): Convert from abstract base class to a concrete
29689 class, taking over the role of replace_event.
29690 (class insert_event): Delete.
29691 (class replace_event): Rename to class line_event. Convert to
29692 half-open range.
29693 (edit_context::add_fixits): Reimplement.
29694 (edit_context::apply_insert): Delete.
29695 (edit_context::apply_replace): Rename to...
29696 (edit_context::apply_fixit): ...this. Convert to half-open range.
29697 (edited_file::apply_insert): Delete.
29698 (edited_file::apply_replace): Rename to...
29699 (edited_file::apply_fixit): ...this.
29700 (edited_line::~edited_line): Drop deletion of events.
29701 (edited_line::apply_insert): Delete.
29702 (edited_line::apply_replace): Rename to...
29703 (edited_line::apply_fixit): ...this. Convert to half-open range.
29704 Update for change to type of m_line_events.
29705 * edit-context.h (edit_context::apply_insert): Delete.
29706 (edit_context::apply_replace): Rename to...
29707 (edit_context::apply_fixit): ...this.
29708
29709 2017-05-01 Martin Sebor <msebor@redhat.com>
29710
29711 * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
29712 known.
29713
29714 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
29715
29716 PR target/68491
29717 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
29718 __get_cpuid_max returns 0.
29719 (__get_cpuid_count): Ditto.
29720
29721 2017-05-01 Eric Botcazou <ebotcazou@adacore.com>
29722
29723 * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
29724 replacement expression is another instance of one of its arguments.
29725
29726 2017-05-01 Jakub Jelinek <jakub@redhat.com>
29727
29728 PR target/79430
29729 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
29730 check for stack push/pop autoinc.
29731 * config/i386/i386.c (ix86_agi_dependent): Return false
29732 if the only reason why modified_in_p returned true is that
29733 addr is SP based and set_insn is a push or pop.
29734
29735 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
29736
29737 * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
29738 overflow check.
29739
29740 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
29741
29742 PR ipa/79224
29743 * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
29744 (account_size_time): Use two predicates - exec_pred and
29745 nonconst_pred_ptr.
29746 (evaluate_conditions_for_known_args): Compute both clause and
29747 nonspec_clause.
29748 (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
29749 (inline_summary_t::duplicate): Update.
29750 (estimate_function_body_sizes): Caluculate exec and nonconst predicates
29751 separately.
29752 (compute_inline_parameters): Likewise.
29753 (estimate_edge_size_and_time): Update caluclation of time.
29754 (estimate_node_size_and_time): Compute both time and nonspecialized
29755 time.
29756 (estimate_ipcp_clone_size_and_time): Update.
29757 (inline_merge_summary): Update.
29758 (do_estimate_edge_time): Update.
29759 (do_estimate_edge_size): Update.
29760 (do_estimate_edge_hints): Update.
29761 (inline_read_section, inline_write_summary): Stream both new predicates.
29762 * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
29763 as argument.
29764 (compute_inlined_call_time): Cleanup.
29765 (big_speedup_p): Update.
29766 (edge_badness): Update.
29767 * ipa-inline.h (INLINE_TIME_SCALE): Remove.
29768 (size_time_entry): Replace predicate by exec_predicate and
29769 nonconst_predicate.
29770 (edge_growth_cache_entry): Cache both time nad nonspecialized time.
29771 (estimate_edge_time): Return also nonspec_time.
29772 (reset_edge_growth_cache): Update.
29773
29774 2017-04-29 Jakub Jelinek <jakub@redhat.com>
29775
29776 PR rtl-optimization/80491
29777 * ifcvt.c (noce_process_if_block): When looking for x setter
29778 with missing else_bb, don't check only the insn right before
29779 cond_earliest, but look for the last insn that x is modified in
29780 within the same bb.
29781
29782 PR rtl-optimization/80491
29783 * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
29784
29785 2017-04-29 Marc Glisse <marc.glisse@inria.fr>
29786
29787 PR tree-optimization/80487
29788 * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
29789
29790 2017-04-29 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29791
29792 PR tree-optimization/79697
29793 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
29794 is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
29795 (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
29796 BUILT_IN_STRNDUP.
29797 * gimple-fold.c (gimple_fold_builtin_realloc): New function.
29798 (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
29799
29800 2017-04-28 Martin Sebor <msebor@redhat.com>
29801
29802 PR tree-optimization/80523
29803 * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
29804 (init_target_to_host_charmap, target_to_host, target_strtol10): New
29805 functions.
29806 (maybe_warn, format_directive, parse_directive): Use new functions.
29807 (pass_sprintf_length::execute): Call init_target_to_host_charmap.
29808
29809 2017-04-28 Marc Glisse <marc.glisse@inria.fr>
29810
29811 * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
29812
29813 2017-04-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
29814
29815 * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
29816 target_header_dir): Set correctly.
29817 * configure: Regenerated.
29818 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
29819 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
29820 instead of SYSTEM_HEADER_DIR.
29821
29822 2017-04-28 Jan Hubicka <hubicka@ucw.cz>
29823
29824 * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
29825 (estimate_local_effects): Likewise.
29826 * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
29827 edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
29828 * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
29829 estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
29830 do_estimate_edge_time, estimate_edge_time): Likewise.
29831 * ipa-inline-analysis.c (estimate_node_size_and_time,
29832 estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
29833 (estimate_time_after_inlining): Remove.
29834
29835 2017-04-28 Martin Liska <mliska@suse.cz>
29836
29837 * doc/gcov.texi: Enhance documentation of gcov.
29838
29839 2017-04-28 Martin Liska <mliska@suse.cz>
29840
29841 * doc/gcov.texi: Sort options in alphabetic order.
29842 * doc/gcov-dump.texi: Likewise.
29843 * doc/gcov-tool.texi: Likewise.
29844 * gcov.c (print_usage): Likewise.
29845 * gcov-dump.c (print_usage): Likewise.
29846 * gcov-tool.c (print_merge_usage_message): Likewise.
29847 (print_rewrite_usage_message): Likewise.
29848 (print_overlap_usage_message): Likewise.
29849
29850 2017-04-28 Martin Liska <mliska@suse.cz>
29851
29852 PR gcov-profile/53915
29853 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
29854
29855 2017-04-28 Martin Liska <mliska@suse.cz>
29856
29857 PR gcov-profile/79891
29858 * gcov.c (add_line_counts): Assign BBs to lines just if the BB
29859 is marked by compiler as living on a line.
29860 (get_cycles_count): Remove usage of the union.
29861 (output_intermediate_file): Likewise.
29862 (find_source): Fix GNU coding style.
29863 (accumulate_line_counts): Remove old non-all block mode.
29864 (output_lines): Remove usage of the union.
29865 * profile.c (output_location): Include all BBs, even if
29866 belonging to a same line (and file) as a previous BB.
29867
29868 2017-04-28 Martin Liska <mliska@suse.cz>
29869
29870 * gcov.c (process_args): Handle new argument 'w'.
29871 (read_graph_file): Assign ID to BBs.
29872 (output_branch_count): Display BB # if verbose flag is set.
29873 (output_lines): Likewise for arcs.
29874 (print_usage): Add '--verbose' option help.
29875 * doc/gcov.texi: Document --verbose (-w) option.
29876
29877 2017-04-28 Martin Liska <mliska@suse.cz>
29878
29879 * gcov.c (struct block_location_info): New struct.
29880 (process_file): Fill up the new structure.
29881 (read_graph_file): Replace usage of encoding by the newly added
29882 struct.
29883 (add_line_counts): Likewise.
29884 (accumulate_line_counts): Remove usage of the union.
29885 (function_info::function_info): New function.
29886 (function_info::~function_info): Likewise.
29887 (process_file): Call delete instead of release_function.
29888 (release_function): Release the function.
29889 (release_structures): Call delete instead of release_function.
29890 (solve_flow_graph): Replace usage of num_blocks.
29891 (find_exception_blocks): Likewise.
29892 (output_lines): Fix GNU coding style.
29893
29894 2017-04-28 Martin Liska <mliska@suse.cz>
29895
29896 PR driver/56469
29897 * coverage.c (coverage_remove_note_file): New function.
29898 * coverage.h: Declare the function.
29899 * toplev.c (finalize): Clean if an error has been seen.
29900
29901 2017-04-28 Martin Liska <mliska@suse.cz>
29902
29903 PR gcov-profile/80031
29904 * gcov-dump.c (tag_blocks): Just print number of basic blocks.
29905 * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
29906 * gcov.c (read_graph_file): Read just number of blocks.
29907 * profile.c (branch_prob): Do not stream 0 flags per a basic
29908 block.
29909
29910 2017-04-28 Martin Liska <mliska@suse.cz>
29911
29912 * gcov-dump.c (tag_*): Add new argument to declarations.
29913 (dump_gcov_file): Likewise.
29914 (tag_blocks): Add and use new argument depth.
29915 (tag_arcs): Likewise.
29916 (tag_lines): Likewise.
29917 (tag_counters): Likewise.
29918 (tag_summary): Likewise.
29919 (dump_working_sets): Use depth to do a proper indentation.
29920
29921 2017-04-28 Jakub Jelinek <jakub@redhat.com>
29922
29923 PR bootstrap/80531
29924 * cgraph.h (symtab_node::debug_symtab): No longer inline.
29925 * symtab.c (symtab_node::debug_symtab): Move definition here.
29926
29927 2017-04-28 Richard Biener <rguenther@suse.de>
29928
29929 * lto-streamer.h (LTO_major_version): Bump to 7.
29930
29931 2017-04-28 Richard Biener <rguenther@suse.de>
29932
29933 * tree-vrp.c (assert_info): New struct.
29934 (add_assert_info): New helper.
29935 (register_edge_assert_for_2): Refactor to add asserts to a vector
29936 of assert_info.
29937 (register_edge_assert_for_1): Likewise.
29938 (register_edge_assert_for): Likewise.
29939 (finish_register_edge_assert_for): New helper actually registering
29940 asserts where live on edge.
29941 (find_conditional_asserts): Adjust.
29942 (find_switch_asserts): Likewise.
29943 (evrp_dom_walker::try_find_new_range): Generalize.
29944 (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
29945
29946 2017-04-27 Marek Polacek <polacek@redhat.com>
29947
29948 PR sanitizer/80349
29949 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
29950 arg10 and arg11 to itype.
29951
29952 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
29953
29954 * doc/extend.texi (Object Size Checking): Improve grammar.
29955
29956 2017-04-27 Richard Earnshaw <rearnsha@arm.com>
29957
29958 PR target/80530
29959 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
29960 that the logic for permitting reciprocal estimates matches that
29961 in use_rsqrt_p.
29962
29963 2017-04-27 Jakub Jelinek <jakub@redhat.com>
29964
29965 PR c++/80534
29966 * tree.c (type_cache_hasher::equal): Only compare
29967 TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
29968 (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
29969 non-aggregate element types.
29970 * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
29971 about the flag on ARRAY_TYPEs in the comment, formatting fix.
29972
29973 2017-04-27 Richard Biener <rguenther@suse.de>
29974
29975 PR middle-end/80533
29976 * emit-rtl.c (set_mem_attributes_minus_bitpos): When
29977 stripping ARRAY_REFs from MEM_EXPR make sure we're not
29978 keeping a reference to a trailing array.
29979
29980 2017-04-27 Richard Biener <rguenther@suse.de>
29981
29982 PR middle-end/80539
29983 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
29984 being in loop-closed SSA form conservatively.
29985 (chrec_fold_multiply_poly_poly): Likewise.
29986
29987 2017-04-27 Tamar Christina <tamar.christina@arm.com>
29988
29989 PR middle-end/79665
29990 * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
29991 CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
29992
29993 2017-04-27 Jakub Jelinek <jakub@redhat.com>
29994
29995 PR target/77728
29996 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
29997 (aarch64_function_arg_alignment): Return unsigned int again, but still
29998 ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
29999 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
30000 Don't emit -Wpsabi note.
30001 (aarch64_function_arg_boundary): Likewise.
30002 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
30003 caller.
30004
30005 2017-04-26 Nathan Sidwell <nathan@acm.org>
30006
30007 * tree.h (crc32_unsigned_n): Declare.
30008 (crc32_unsigned, crc32_unsigned): Make inline.
30009 * tree.c (crc32_unsigned_bits): Replace with ...
30010 (crc32_unsigned_n): ... this.
30011 (crc32_unsigned, crc32_byte): Remove.
30012 (crc32_string): Remove unnecessary braces.
30013
30014 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
30015
30016 * ipa-cp.c (estimate_local_effects): Convert sreal to int.
30017 * ipa-inline-analysis.c (MAX_TIME): Remove.
30018 (account_size_time): Use sreal for time.
30019 (dump_inline_summary): Update.
30020 (estimate_function_body_sizes): Update.
30021 (estimate_edge_size_and_time): Update.
30022 (estimate_calls_size_and_time): Update.
30023 (estimate_node_size_and_time): Update.
30024 (inline_merge_summary): Update.
30025 (inline_update_overall_summary): Update.
30026 (estimate_time_after_inlining): Update.
30027 (inline_read_section): Update.
30028 (inline_write_summary): Update.
30029 * ipa-inline.c (compute_uninlined_call_time): Update.
30030 (compute_inlined_call_time): Update.
30031 (recursive_inlining): Update.
30032 (inline_small_functions): Update.
30033 (dump_overall_stats): Update.
30034 * ipa-inline.h: Include sreal.h.
30035 (size_time_entry): Turn time to sreal.
30036 (inline_summary): Turn self_time nad time to sreal.
30037
30038 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
30039
30040 * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
30041 data-streamer.h
30042 (sreal::stream_out, sreal::stream_in): New.
30043 * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
30044
30045 2017-04-25 Jakub Jelinek <jakub@redhat.com>
30046
30047 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
30048 environment.
30049
30050 2017-04-25 Uros Bizjak <ubizjak@gmail.com>
30051
30052 PR target/70799
30053 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
30054 Handle ASHIFTRT.
30055 (dimode_scalar_chain::compute_convert_gain): Ditto.
30056 (dimode_scalar_chain::make_vector_copies): Ditto.
30057 (dimode_scalar_chain::convert_reg): Ditto.
30058 (dimode_scalar_chain::convert_insn): Ditto.
30059 * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
30060 (VI248_AVX512BW_1): New mode iterator.
30061 (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
30062 <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
30063 mode iterator.
30064
30065 2017-04-25 Martin Sebor <msebor@redhat.com>
30066
30067 PR tree-optimization/80497
30068 * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
30069 constants are representable in HOST_WIDE_INT.
30070 (parse_directive): Ditto.
30071
30072 2017-04-25 Martin Sebor <msebor@redhat.com>
30073
30074 PR bootstrap/80486
30075 * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
30076 (new_zero_array): Adjust signature.
30077 (dom_info::dom_init): Used unsigned rather that size_t.
30078 (dom_info::dom_info): Same.
30079
30080 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30081 Jakub Jelinek <jakub@redhat.com>
30082
30083 PR target/77728
30084 * config/arm/arm.c: Include gimple.h.
30085 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
30086 returns negative, increment ncrn only if it returned positive.
30087 (arm_needs_doubleword_align): Return int instead of bool,
30088 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
30089 members, but if there is any such non-FIELD_DECL
30090 > PARM_BOUNDARY aligned decl, return -1 instead of false.
30091 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
30092 returns negative, increment nregs only if it returned positive.
30093 (arm_setup_incoming_varargs): Likewise.
30094 (arm_function_arg_boundary): Emit -Wpsabi note if
30095 arm_needs_doubleword_align returns negative, return
30096 DOUBLEWORD_ALIGNMENT only if it returned positive.
30097
30098 2017-04-25 Marek Polacek <polacek@redhat.com>
30099
30100 PR sanitizer/80349
30101 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
30102 first argument to type.
30103
30104 2017-04-25 Bill Seurer <seurer@linux.vnet.ibm.com>
30105
30106 PR target/80482
30107 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
30108 type checks to test for compatibility instead of equality.
30109
30110 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30111 Jakub Jelinek <jakub@redhat.com>
30112
30113 PR target/77728
30114 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
30115 type.
30116 (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
30117 struct. Ignore DECL_ALIGN of decls other than FIELD_DECL for
30118 the alignment computation, but return their maximum in warn_alignment.
30119 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
30120 Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
30121 is smaller.
30122 (aarch64_function_arg_boundary): Likewise. Simplify using MIN/MAX.
30123 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
30124 caller.
30125
30126 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
30127
30128 * config/arc/simdext.md (dmpyh): Fix typo.
30129
30130 2017-04-25 Richard Biener <rguenther@suse.de>
30131
30132 PR tree-optimization/80492
30133 * alias.c (compare_base_decls): Handle registers with asm
30134 specification conservatively.
30135 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
30136 compare_base_decls returning dont-know properly.
30137
30138 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
30139
30140 * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
30141 (legitimate_offset_address_p): New function.
30142 (arc_legitimate_address_p): Use above function.
30143
30144 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
30145
30146 * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
30147
30148 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
30149
30150 * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
30151 ACCH registers whenever they are available.
30152
30153 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
30154
30155 * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
30156 double regs fix when not used.
30157
30158 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
30159
30160 * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
30161 core registers.
30162 (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
30163 (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
30164
30165 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
30166
30167 * config/arc/arc.c (arc_output_addsi): Check for h-register class
30168 when emitting short ADD instructions.
30169
30170 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
30171
30172 * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
30173 constraint.
30174 (cmpsi_cc_c_insn): Likewise.
30175 (cbranchsi4_scratch): Compute proper instruction length using
30176 compact_hreg_operand.
30177 * config/arc/predicates.md (compact_hreg_operand): New predicate.
30178
30179 2017-04-25 Richard Biener <rguenther@suse.de>
30180
30181 PR middle-end/80509
30182 * passes.c (pass_manager::pass_manager): Initialize
30183 m_name_to_pass_map.
30184
30185 2017-04-25 Richard Biener <rguenther@suse.de>
30186
30187 PR tree-optimization/79201
30188 * tree-ssa-sink.c (statement_sink_location): Handle calls.
30189
30190 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30191
30192 PR target/80464
30193 * config/s390/vector.md: Split MEM->GPR vector moves for
30194 non-s_operand addresses.
30195
30196 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30197
30198 PR target/79895
30199 * config/s390/predicates.md (reload_const_wide_int_operand): New
30200 predicate.
30201 * config/s390/s390.md ("movti"): Remove d/P alternative.
30202 ("movti_bigconst"): New pattern definition.
30203
30204 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
30205
30206 PR target/80080
30207 * s390-protos.h (s390_expand_cs_hqi): Removed.
30208 (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
30209 * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
30210 modes as well as CCZ1mode and CCZmode.
30211 (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
30212 signature of s390_emit_compare_and_swap.
30213 (s390_expand_cs_hqi): Likewise, make static.
30214 (s390_expand_cs_tdsi): Generate an explicit compare before trying
30215 compare-and-swap, in some cases.
30216 (s390_expand_cs): Wrapper function.
30217 (s390_expand_atomic_exchange_tdsi): New backend specific expander for
30218 atomic_exchange.
30219 (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
30220 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
30221 patterns for small and large integers. Forbid symref memory operands.
30222 Move expander to s390.c. Require cc register.
30223 ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
30224 ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
30225 ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
30226 ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
30227 symref memory operands. Remove CC mode and call s390_match_ccmode
30228 instead.
30229 ("atomic_exchange<mode>"): Allow and implement all integer modes.
30230
30231 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
30232
30233 * config/s390/s390.md (define_peephole2): New peephole to help
30234 combining the load-and-test pattern with volatile memory.
30235
30236 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
30237
30238 * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
30239 with CCZmode for TARGET_Z196.
30240
30241 2017-04-25 Jakub Jelinek <jakub@redhat.com>
30242
30243 PR rtl-optimization/80501
30244 * combine.c (make_compound_operation_int): Set subreg_code to SET
30245 even for AND with mask of the sign bit of mode.
30246
30247 PR rtl-optimization/80500
30248 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
30249 sum's initial value.
30250
30251 2017-04-25 Julian Brown <julian@codesourcery.com>
30252 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
30253
30254 * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
30255
30256 2017-04-25 Marc Glisse <marc.glisse@inria.fr>
30257
30258 * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
30259
30260 2017-04-25 Julian Brown <julian@codesourcery.com>
30261 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
30262
30263 * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
30264 (thunderx2t99_sha): New Reservation.
30265
30266 2017-04-25 Julian Brown <julian@codesourcery.com>
30267 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
30268
30269 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
30270 type for 1-element load.
30271
30272 2017-04-24 Marc Glisse <marc.glisse@inria.fr>
30273
30274 * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
30275
30276 2017-04-24 Martin Jambor <mjambor@suse.cz>
30277
30278 PR tree-optimization/80293
30279 * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
30280 char arrays not totally scalarizable if it is false.
30281 (analyze_all_variable_accesses): Pass correct value in the new
30282 parameter. Add a statistics counter.
30283
30284 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
30285
30286 PR middle-end/79931
30287 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
30288
30289 2017-04-24 Richard Biener <rguenther@suse.de>
30290
30291 PR tree-optimization/80494
30292 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
30293 out for complex types.
30294
30295 2017-04-24 Richard Biener <rguenther@suse.de>
30296
30297 * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
30298 * tree-ssa-sccvn.c (print_scc): Print SCC size.
30299 (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
30300 (DFS): Adjust and never fail.
30301 (sccvn_dom_walker::fail): Remove.
30302 (sccvn_dom_walker::before_dom_children): Adjust.
30303 (run_scc_vn): Likewise and never fail.
30304 * tree-ssa-pre.c (pass_pre::execute): Adjust.
30305 (pass_fre::execute): Likewise.
30306
30307 2017-04-24 Richard Biener <rguenther@suse.de>
30308
30309 PR tree-optimization/79725
30310 * tree-ssa-sink.c (statement_sink_location): Return whether
30311 failure reason was zero uses. Move that check later.
30312 (sink_code_in_bb): Deal with zero uses by removing the stmt
30313 if possible.
30314
30315 2017-04-24 Richard Biener <rguenther@suse.de>
30316
30317 PR c++/2972
30318 * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
30319 pointer-based references.
30320
30321 2017-04-24 Richard Biener <rguenther@suse.de>
30322
30323 PR bootstrap/79814
30324 * pass_manager.h (pass_manager::operator new): Remove.
30325 (pass_manager::operator delete): Likewise.
30326 * passes.c (pass_manager::operator new): Remove.
30327 (pass_manager::operator delete): Likewise.
30328 (pass_manager::pass_manager): Zero individual pass members.
30329
30330 2017-04-23 Uros Bizjak <ubizjak@gmail.com>
30331
30332 PR target/70799
30333 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
30334 <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
30335 Check "XEXP (src, 1)" operand here.
30336 <case PLUS, case MINUS, case IOR, case XOR, case AND>:
30337 Check "XEXP (src, 1)" operand here.
30338 (dimode_scalar_chain::make_vector_copies): Detect count register
30339 of a shift instruction. Zero extend count register from QImode
30340 to DImode to satisfy vector shift pattern count operand predicate.
30341 Substitute vector shift count operand with a DImode copy.
30342 (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
30343 vector register.
30344
30345 2017-04-21 Uros Bizjak <ubizjak@gmail.com>
30346
30347 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
30348 Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
30349 (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove
30350 UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
30351 (UNSPEC_NOREX_MEM): Remove definition.
30352
30353 2017-04-21 Richard Biener <rguenther@suse.de>
30354
30355 PR tree-optimization/79547
30356 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30357 Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
30358 bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
30359 without any constraints.
30360
30361 2017-04-21 Richard Biener <rguenther@suse.de>
30362
30363 PR tree-optimization/78847
30364 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
30365
30366 2017-04-21 Richard Biener <rguenther@suse.de>
30367
30368 * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
30369 (build_distinct_type_copy): Likewise.
30370 (build_variant_type_copy): Likewise.
30371 * tree.c (build_qualified_type): Pass down mem-stat info.
30372 (build_distinct_type_copy): Likewise.
30373 (build_variant_type_copy): Likewise.
30374
30375 2017-04-21 Richard Biener <rguenther@suse.de>
30376
30377 PR tree-optimization/80237
30378 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
30379 defaulted to NULL.
30380 (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
30381 for a simplified result.
30382
30383 2016-04-21 Richard Biener <rguenther@suse.de>
30384
30385 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
30386 sth as strict as a simple_iv but a chrec without symbols and an
30387 operand defined in the loop we are peeling (and not some subloop).
30388 (propagate_constants_for_unrolling): Propagate all constants.
30389
30390 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
30391
30392 PR target/79804
30393 * config/i386/i386.c (print_reg): Remove assert for disalowed
30394 regno values, call output_operand_lossage instead.
30395
30396 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
30397
30398 PR target/78090
30399 * config/i386/constraints.md (Yc): New register constraint.
30400 * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
30401 Use Yc constraint for alternative 2 of operand 0. Remove
30402 preferred_for_speed attribute.
30403
30404 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
30405
30406 * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
30407 lastprivate clauses in SIMT case.
30408
30409 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
30410
30411 * doc/invoke.texi (-Wextra-semi): Document new warning option.
30412
30413 2017-04-20 Richard Biener <rguenther@suse.de>
30414
30415 PR tree-optimization/57796
30416 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
30417 as N scalar stores.
30418 (vect_model_load_cost): Cost gathers as N scalar loads.
30419
30420 2017-04-20 Richard Biener <rguenther@suse.de>
30421
30422 * ggc-page.c (ggc_allocated_p): Rename to ...
30423 (safe_lookup_page_table_entry): ... this and return the lookup
30424 result.
30425 (gt_ggc_m_S): Use safe_lookup_page_table_entry.
30426
30427 2017-04-20 Richard Biener <rguenther@suse.de>
30428
30429 PR tree-optimization/80453
30430 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
30431 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
30432 from the conditions.
30433 (vn_phi_eq): Pass them down.
30434 (vn_phi_lookup): Record them.
30435 (vn_phi_insert): Likewise.
30436
30437 2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
30438
30439 * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
30440 uninitialized variable warning to avoid buffer overrun.
30441
30442 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
30443
30444 PR other/71250
30445 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
30446 is suppressed for '{ 0 }' in C.
30447
30448 2017-04-20 Jakub Jelinek <jakub@redhat.com>
30449
30450 * BASE-VER: Set to 8.0.0.
30451
30452 2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
30453
30454 * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
30455 priority .init_array and .fini_array section with SECTION_NOTYPE
30456 flag.
30457
30458 2017-04-20 Jakub Jelinek <jakub@redhat.com>
30459
30460 PR middle-end/80423
30461 * tree.h (build_array_type): Add typeless_storage default argument.
30462 * tree.c (type_cache_hasher::equal): Also compare
30463 TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
30464 (build_array_type): Add typeless_storage argument, set
30465 TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
30466 recursive call.
30467 (build_nonshared_array_type): Adjust build_array_type_1 caller.
30468 (build_array_type): Likewise. Add typeless_storage argument.
30469
30470 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
30471 Jakub Jelinek <jakub@redhat.com>
30472
30473 PR tree-optimization/80426
30474 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
30475 operation on symbolic operands, also compute the overflow for the
30476 invariant part when the operation degenerates into a negation.
30477
30478 2017-04-19 Jakub Jelinek <jakub@redhat.com>
30479
30480 PR debug/80461
30481 * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
30482 Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
30483
30484 PR debug/80436
30485 * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
30486
30487 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
30488
30489 PR target/80462
30490 * config/avr/avr.c (tree.h): Include it.
30491 (cgraph.h): Include it.
30492 (avr_encode_section_info): Don't warn for uninitialized progmem
30493 variable if it's just an alias.
30494
30495 2017-04-19 Richard Biener <rguenther@suse.de>
30496
30497 PR ipa/65972
30498 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
30499 when needed by AutoPGO.
30500
30501 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
30502
30503 PR lto/50345
30504 * doc/lto.texi: Remove an extra 'that'.
30505
30506 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
30507
30508 PR rtl-optimization/80429
30509 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
30510 are only used in debug insns.
30511
30512 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
30513 Vladimir Makarov <vmakarov@redhat.com>
30514
30515 * config/sparc/predicates.md (input_operand): Add comment. Return
30516 true for any memory operand when LRA is in progress.
30517 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
30518
30519 2017-04-18 Jeff Law <law@redhat.com>
30520
30521 PR target/74563
30522 * mips.md ({return,simple_return}_internal): Do not overwrite
30523 operands[0].
30524
30525 2017-04-18 Jakub Jelinek <jakub@redhat.com>
30526
30527 PR tree-optimization/80443
30528 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
30529 instead of adding 1, subtract -1 and similarly instead of subtracting
30530 1 add -1.
30531
30532 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
30533
30534 PR rtl-optimization/80357
30535 * haifa-sched.c (tmp_bitmap): New variable.
30536 (model_recompute): Handle duplicate use records.
30537 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
30538 (free_global_sched_pressure_data): Free it.
30539
30540 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
30541
30542 Revert:
30543 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
30544 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
30545 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
30546 instead of SYSTEM_HEADER_DIR.
30547
30548 2017-04-18 Jeff Law <law@redhat.com>
30549
30550 PR middle-end/80422
30551 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
30552 predecessors after walking up the insn chain.
30553
30554 2017-04-18 Jakub Jelinek <jakub@redhat.com>
30555
30556 PR debug/80263
30557 * dwarf2out.c (modified_type_die): Try harder not to emit internal
30558 sizetype type into debug info.
30559
30560 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
30561
30562 PR target/80099
30563 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
30564 unneeded test for TARGET_UPPER_REGS_SF.
30565 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
30566
30567 2017-04-18 Jakub Jelinek <jakub@redhat.com>
30568
30569 PR sanitizer/80444
30570 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
30571 instead of gsi_after_labels.
30572
30573 2017-04-18 Jeff Law <law@redhat.com>
30574
30575 * regcprop.c (maybe_mode_change): Avoid creating copies of the
30576 stack pointer.
30577
30578 Revert:
30579 2017-04-13 Jeff Law <law@redhat.com>
30580 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
30581 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
30582
30583 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
30584
30585 PR target/79453
30586 * config/avr/avr.c (intl.h): Include it.
30587 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
30588
30589 2017-04-18 Martin Liska <mliska@suse.cz>
30590
30591 PR gcov-profile/78783
30592 * gcov-tool.c (gcov_output_files): Validate that destination
30593 file is either removed by the tool or by a user.
30594
30595 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
30596 Guy Benyei <guybe@mellanox.com>
30597
30598 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
30599 block, and do not negate it, the stored id is already negative.
30600
30601 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
30602
30603 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
30604
30605 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
30606
30607 PR target/80098
30608 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
30609 masks of options that should be turned off if the VSX vector
30610 options are turned off.
30611 (OTHER_P8_VECTOR_MASKS): Likewise.
30612 (OTHER_VSX_VECTOR_MASKS): Likewise.
30613 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
30614 rs6000_disable_incompatible_switches to validate no type switches
30615 like -mvsx.
30616 (rs6000_incompatible_switch): New function to disallow turning on
30617 other vector options if -mno-vsx, -mno-power8-vector, or
30618 -mno-power9-vector are specified.
30619
30620 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
30621
30622 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
30623
30624 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
30625
30626 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
30627 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
30628 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
30629 (ARG_POINTER_CFA_OFFSET): Likewise.
30630
30631 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
30632
30633 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
30634 conditions to take advantage of various optimizations.
30635
30636 2017-04-13 Jeff Law <law@redhat.com>
30637
30638 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
30639 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
30640 (zero_extendsidi2_dext): Likewise.
30641
30642 2017-04-13 Jakub Jelinek <jakub@redhat.com>
30643
30644 PR sanitizer/80403
30645 * fold-const.c (fold_ternary_loc): Revert
30646 use op0 instead of fold_convert_loc (loc, type, arg0) part of
30647 2017-04-12 change.
30648
30649 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
30650
30651 PR rtl-optimization/80343
30652 * lra-remat.c (update_scratch_ops): Assign original hard reg to
30653 new scratch pseudo.
30654
30655 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
30656
30657 PR sanitizer/80414
30658 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
30659 to ubsan_encode_value.
30660
30661 2017-04-13 Jeff Law <law@redhat.com>
30662
30663 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
30664 appearing in DEBUG_INSNs.
30665
30666 2017-04-13 Martin Liska <mliska@suse.cz>
30667
30668 PR gcov-profile/80413
30669 * gcov-io.c (gcov_write_string): Copy to buffer just when
30670 allocated size is greater than zero.
30671
30672 2017-04-13 Jakub Jelinek <jakub@redhat.com>
30673
30674 PR debug/80321
30675 * dwarf2out.c (decls_for_scope): Ignore declarations of
30676 current_function_decl in BLOCK_NONLOCALIZED_VARS.
30677
30678 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
30679
30680 PR lto/69953
30681 * ipa-visibility.c (non_local_p): Fix typos.
30682 (localize_node): When localizing symbol in same comdat group,
30683 dissolve the group only when we know external symbols are going
30684 to be privatized.
30685 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
30686
30687 2017-04-12 Jakub Jelinek <jakub@redhat.com>
30688
30689 PR tree-optimization/79390
30690 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
30691 order does not result in usable sequence, retry with reversed operand
30692 order.
30693
30694 PR sanitizer/80403
30695 PR sanitizer/80404
30696 PR sanitizer/80405
30697 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
30698 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
30699 op0 instead of fold_convert_loc (loc, type, arg0).
30700
30701 2017-04-12 Jeff Law <law@redhat.com>
30702
30703 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
30704 has a delay slot in the generated code.
30705
30706 * config/cris/cris.md (cris_preferred_reload_class): Return
30707 GENNONACR_REGS rather than GENERAL_REGS.
30708
30709 2017-04-12 Jakub Jelinek <jakub@redhat.com>
30710
30711 PR c/80163
30712 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
30713 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
30714 signedness of the result type.
30715
30716 2017-04-12 Richard Biener <rguenther@suse.de>
30717 Jeff Law <law@redhat.com>
30718
30719 PR tree-optimization/80359
30720 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
30721 trim stores to TARGET_MEM_REFs.
30722
30723 2017-04-12 Richard Biener <rguenther@suse.de>
30724
30725 PR tree-optimization/79390
30726 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
30727 threading case even more.
30728
30729 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
30730
30731 PR target/80382
30732 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
30733 for quad_address_p for TImode, instead of just not indexed_address.
30734
30735 2017-04-12 Richard Biener <rguenther@suse.de>
30736 Bernd Edlinger <bernd.edlinger@hotmail.de>
30737
30738 PR middle-end/79671
30739 * alias.c (component_uses_parent_alias_set_from): Handle
30740 TYPE_TYPELESS_STORAGE.
30741 (get_alias_set): Likewise.
30742 * tree-core.h (tree_type_common): Add typeless_storage flag.
30743 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
30744 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
30745 for types containing members with TYPE_TYPELESS_STORAGE.
30746 (place_field): Likewise.
30747 (layout_type): Likewise for ARRAY_TYPE.
30748 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
30749 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
30750 TYPE_TYPELESS_STORAGE.
30751 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
30752
30753 2017-04-12 Jakub Jelinek <jakub@redhat.com>
30754
30755 PR sanitizer/80349
30756 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
30757 first argument to type.
30758
30759 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30760
30761 PR target/80376
30762 PR target/80315
30763 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
30764 CONST0_RTX (mode) rather than const0_rtx where appropriate.
30765 (rs6000_expand_binop_builtin): Likewise.
30766 (rs6000_expand_ternop_builtin): Likewise; also add missing
30767 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
30768 vshasigma built-ins.
30769 * doc/extend.texi: Document that vec_xxpermdi's third argument
30770 must be a constant.
30771
30772 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
30773
30774 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
30775 Use shift_const cost parameter when calculating gain of STV shifts.
30776
30777 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
30778
30779 PR rtl-optimization/70478
30780 * lra-constraints.c (process_alt_operands): Check memory for
30781 disfavoring memory insn operand.
30782
30783 2017-04-11 Jakub Jelinek <jakub@redhat.com>
30784
30785 PR middle-end/80100
30786 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
30787 left shift in unsigned HOST_WIDE_INT type.
30788
30789 PR rtl-optimization/80385
30790 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
30791 (not (neg X)) into (plus X -1) for complex or non-integral modes.
30792
30793 PR libgomp/80394
30794 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
30795 if they have any depend clauses.
30796
30797 2017-04-11 Martin Liska <mliska@suse.cz>
30798
30799 PR ipa/80212
30800 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
30801 * ipa-split.c (split_function): Create a local comdat symbol
30802 if caller is in a comdat group.
30803
30804 2017-04-11 Martin Liska <mliska@suse.cz>
30805
30806 PR ipa/80212
30807 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
30808 flags.
30809
30810 2017-04-11 Martin Sebor <msebor@redhat.com>
30811
30812 PR middle-end/80364
30813 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
30814 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
30815 for INTEGER_TYPE.
30816 (directive::set_width, directive::set_precision, format_character):
30817 Adjust.
30818 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
30819 INTEGER_TYPE.
30820
30821 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
30822
30823 PR target/80389
30824 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
30825 conflict, set target->arch_name instead of target->cpu_name.
30826
30827 2017-04-11 Richard Biener <rguenther@suse.de>
30828
30829 PR tree-optimization/80374
30830 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
30831 build_zero_cst, remove fold_convertible_p check again.
30832
30833 2017-04-11 Martin Liska <mliska@suse.cz>
30834
30835 PR sanitizer/70878
30836 * ubsan.c (instrument_object_size): Do not instrument register
30837 variables.
30838
30839 2017-04-11 Jakub Jelinek <jakub@redhat.com>
30840
30841 PR target/80381
30842 * config/i386/i386-builtin-types.def
30843 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
30844 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
30845 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
30846 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
30847 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
30848 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
30849 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
30850 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
30851 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
30852 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
30853 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
30854 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
30855 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
30856 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
30857 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
30858 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
30859 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
30860 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
30861 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
30862 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
30863 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
30864 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
30865 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
30866 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
30867 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
30868 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
30869 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
30870 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
30871 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
30872 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
30873 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
30874 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
30875 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
30876 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
30877 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
30878 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
30879 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
30880 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
30881 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
30882 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
30883 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
30884 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
30885 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
30886 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
30887 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
30888 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
30889 aliases.
30890 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
30891 flag to second_arg_count, handle 4 argument function type _COUNT
30892 aliases, handle second_arg_count on second argument rather than last.
30893
30894 2017-04-10 Jeff Law <law@redhat.com>
30895
30896 PR tree-optimization/80374
30897 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
30898 record anything if we can not convert integer_zero_node to the
30899 desired type.
30900
30901 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
30902
30903 PR target/80108
30904 * config/rs6000/rs6000.c (rs6000_option_override_internal):
30905 Enhance special handling given to the TARGET_P9_MINMAX option in
30906 relation to certain other options.
30907
30908 2017-04-10 Bin Cheng <bin.cheng@arm.com>
30909
30910 PR tree-optimization/80153
30911 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
30912 remove POINTER_PLUS_EXPR's base part directly, rather than through
30913 aff_tree.
30914
30915 2017-04-10 Richard Biener <rguenther@suse.de>
30916 Bin Cheng <bin.cheng@arm.com>
30917
30918 PR tree-optimization/80153
30919 * tree-affine.c (aff_combination_to_tree): Get base pointer from
30920 the first element of pointer type aff_tree. Build result expr in
30921 aff_tree's type.
30922 (add_elt_to_tree): Convert to type unconditionally. Remove other
30923 fold_convert calls.
30924 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
30925 (rewrite_use_nonlinear_expr): Check invariant using iv information.
30926
30927 2017-04-10 Richard Biener <rguenther@suse.de>
30928
30929 * tree-ssa-structalias.c (find_func_aliases): Properly handle
30930 asm inputs.
30931
30932 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
30933
30934 PR rtl-optimization/70478
30935 * lra-constraints.c (curr_small_class_check): New.
30936 (update_and_check_small_class_inputs): New.
30937 (process_alt_operands): Update curr_small_class_check. Disfavor
30938 alternative insn memory operands. Check available regs for small
30939 class operands.
30940
30941 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
30942
30943 PR target/80057
30944 * config/mips/mips.opt (-mvirt): Update description.
30945 * doc/invoke.texi (-mvirt): Likewise.
30946
30947 2017-04-10 Richard Biener <rguenther@suse.de>
30948
30949 PR middle-end/80362
30950 * fold-const.c (fold_binary_loc): Look at unstripped ops when
30951 looking for NEGATE_EXPR in -A / -B to A / B folding.
30952
30953 2017-04-10 Martin Liska <mliska@suse.cz>
30954
30955 PR gcov-profile/80224
30956 * gcov.c (print_usage): Fix usage string.
30957 (get_gcov_intermediate_filename): Remove.
30958 (output_gcov_file): Use both for normal and intermediate format.
30959 (generate_results): Do not initialize special file for
30960 intermediate format.
30961
30962 2017-04-10 Richard Biener <rguenther@suse.de>
30963
30964 PR tree-optimization/80304
30965 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
30966 for safelen.
30967
30968 2017-04-10 Nathan Sidwell <nathan@acm.org>
30969
30970 PR target/79905
30971 * config/rs6000/rs6000.c (rs6000_vector_type): New.
30972 (rs6000_init_builtins): Use it.
30973
30974 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30975
30976 * config/arm/arm.md (<mrc>): Add mode to SET source.
30977 (<mrrc>): Likewise.
30978
30979 2017-04-10 Richard Biener <rguenther@suse.de>
30980
30981 PR middle-end/80344
30982 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
30983
30984 2017-04-10 Jakub Jelinek <jakub@redhat.com>
30985
30986 PR target/80324
30987 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
30988 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
30989 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
30990 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
30991 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
30992 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
30993 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
30994 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
30995 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
30996 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
30997 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
30998 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
30999 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
31000 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
31001 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
31002 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
31003 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
31004 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
31005 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
31006 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
31007 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
31008 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
31009 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
31010
31011 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
31012
31013 PR rtl-optimization/70478
31014 * lra-constraints.c: Reverse the last patch.
31015
31016 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
31017
31018 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
31019 Add comment for WCHAR_T.
31020
31021 2017-04-08 Martin Liska <mliska@suse.cz>
31022
31023 Revert:
31024 2017-04-07 Martin Liska <mliska@suse.cz>
31025
31026 PR ipa/80212
31027 * ipa-split.c (split_function): Add function part to a same comdat
31028 group.
31029
31030 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
31031
31032 PR target/80358
31033 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
31034
31035 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
31036
31037 * rs6000/rs6000.c (vec_load_pendulum): Rename...
31038 (vec_pairing): ...to this.
31039 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
31040 (rs6000_sched_init): Adjust for name change.
31041 (struct rs6000_sched_context): Likewise.
31042 (rs6000_init_sched_context): Likewise.
31043 (rs6000_set_sched_context): Likewise.
31044
31045 2017-04-07 Jakub Jelinek <jakub@redhat.com>
31046
31047 PR target/80322
31048 PR target/80323
31049 PR target/80325
31050 PR target/80326
31051 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
31052 intrinsics.
31053 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
31054 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
31055 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
31056
31057 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
31058
31059 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
31060
31061 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
31062
31063 PR rtl-optimization/70703
31064 * ira-color.c (update_conflict_hard_regno_costs): Use
31065 int64_t instead of HOST_WIDE_INT.
31066
31067 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
31068
31069 PR rtl-optimization/70478
31070 * lra-constraints.c (process_alt_operands): Disfavor alternative
31071 insn memory operands.
31072
31073 2017-04-07 Jeff Law <law@redhat.com>
31074
31075 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
31076 CALL and NOTE_INSN_CALL_ARG_LOCATION.
31077
31078 2017-04-07 Martin Liska <mliska@suse.cz>
31079
31080 PR target/79889
31081 * config/aarch64/aarch64.c (aarch64_process_target_attr):
31082 Show error message instead of an ICE.
31083
31084 2017-04-07 Martin Liska <mliska@suse.cz>
31085
31086 PR ipa/80212
31087 * ipa-split.c (split_function): Add function part to a same comdat
31088 group.
31089
31090 2017-04-07 Richard Biener <rguenther@suse.de>
31091
31092 PR middle-end/80341
31093 * tree.c (get_unwidened): Also handle ! for_type case for
31094 INTEGER_CSTs.
31095 * convert.c (do_narrow): Split out from ...
31096 (convert_to_integer_1): ... here. Do not pass final truncation
31097 type to get_unwidened for TRUNC_DIV_EXPR.
31098
31099 2017-04-07 Richard Biener <rguenther@suse.de>
31100
31101 * tree-affine.c (wide_int_ext_for_comb): Take type rather
31102 than aff_tree.
31103 (aff_combination_const): Adjust.
31104 (aff_combination_scale): Likewise.
31105 (aff_combination_add_elt): Likewise.
31106 (aff_combination_add_cst): Likewise.
31107 (aff_combination_convert): Likewise.
31108 (add_elt_to_tree): Likewise. Remove unused argument.
31109 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
31110
31111 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
31112
31113 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
31114 definition.
31115 * config/arm/arm.c (arm_default_short_enums): Use
31116 ARM_DEFAULT_SHORT_ENUMS.
31117 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
31118
31119 2017-04-06 Jakub Jelinek <jakub@redhat.com>
31120
31121 PR debug/80234
31122 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
31123 members with redundant out-of-class redeclaration.
31124
31125 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
31126
31127 PR target/80286
31128 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
31129 * config/i386/i386.md (*zero_extendsidi2):
31130 Add (?*x,*x) and (?*v,*v) alternatives.
31131
31132 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
31133
31134 PR target/79733
31135 * config/i386/i386.c (ix86_expand_builtin)
31136 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
31137 mode from insn data. Convert operands to insn operand mode.
31138 Copy operands that don't satisfy insn predicate to a register.
31139
31140 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
31141
31142 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
31143 Update comments.
31144
31145 2017-04-06 Richard Biener <rguenther@suse.de>
31146
31147 PR tree-optimization/80334
31148 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
31149 preserve alignment of accesses.
31150
31151 2017-04-06 Richard Biener <rguenther@suse.de>
31152
31153 PR tree-optimization/80262
31154 * tree-sra.c (build_ref_for_offset): Preserve address-space
31155 information.
31156 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
31157 Drop useless address-space information on MEM_REF offsets.
31158
31159 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
31160
31161 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
31162
31163 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
31164
31165 PR rtl-optimization/70703
31166 * ira-color.c (update_conflict_hard_regno_costs): Use
31167 HOST_WIDE_INT instead of long.
31168
31169 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
31170
31171 PR target/80298
31172 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
31173 not defined for x86_64 target. Add -mmmx target option when __SSE2__
31174 is not defined.
31175 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
31176 for x86_64 target. Handle -m3dnowa option.
31177
31178 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
31179
31180 PR rtl-optimization/70703
31181 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
31182 (update_conflict_hard_regno_costs): Use long instead of unsigned
31183 arithmetic for cost calculation.
31184
31185 2017-04-05 Jakub Jelinek <jakub@redhat.com>
31186 Bernd Edlinger <bernd.edlinger@hotmail.de>
31187
31188 PR sanitizer/80308
31189 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
31190 for big endian.
31191
31192 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
31193
31194 PR target/78002
31195 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
31196 ptr_mode with Pmode throughout.
31197 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
31198 into probe_stack_range and use DImode.
31199
31200 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
31201
31202 PR target/79890
31203 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
31204 call_eh_return is true.
31205
31206 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31207
31208 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
31209 Initialize last_match_fntype_index.
31210
31211 2017-04-05 Jakub Jelinek <jakub@redhat.com>
31212
31213 PR target/80310
31214 * tree-nvr.c: Include internal-fn.h.
31215 (pass_return_slot::execute): Ignore internal calls without
31216 direct optab.
31217
31218 2017-04-04 Jakub Jelinek <jakub@redhat.com>
31219 Richard Biener <rguenther@suse.de>
31220
31221 PR c++/80297
31222 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
31223 captures used multiple times, except for the last use.
31224 * generic-match-head.c: Include gimplify.h.
31225
31226 2017-04-04 Jakub Jelinek <jakub@redhat.com>
31227
31228 PR tree-optimization/79390
31229 * target.h (struct noce_if_info): Declare.
31230 * targhooks.h (default_noce_conversion_profitable_p): Declare.
31231 * target.def (noce_conversion_profitable_p): New target hook.
31232 * ifcvt.h (struct noce_if_info): New type, moved from ...
31233 * ifcvt.c (struct noce_if_info): ... here.
31234 (noce_conversion_profitable_p): Renamed to ...
31235 (default_noce_conversion_profitable_p): ... this. No longer
31236 static nor inline.
31237 (noce_try_store_flag_constants, noce_try_addcc,
31238 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
31239 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
31240 instead of noce_conversion_profitable_p.
31241 * config/i386/i386.c: Include ifcvt.h.
31242 (ix86_option_override_internal): Don't override
31243 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
31244 (ix86_noce_conversion_profitable_p): New function.
31245 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
31246 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
31247 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
31248 * doc/tm.texi: Regenerated.
31249
31250 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31251
31252 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
31253 correction.
31254
31255 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
31256
31257 PR target/80307
31258 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
31259 instructions for small multiply cores.
31260
31261 2017-04-04 Jeff Law <law@redhat.com>
31262
31263 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
31264 added member.
31265 (mips_expand_vec_perm_const): Initialize elements in orig_perm
31266 that are not set by the loop over the elements.
31267
31268 2017-04-04 Jakub Jelinek <jakub@redhat.com>
31269
31270 PR target/80286
31271 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
31272 int mode, convert_modes it to mode as unsigned, otherwise use
31273 lowpart_subreg to mode rather than SImode.
31274 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
31275 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
31276 Use DImode instead of SImode for the shift count operand.
31277 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
31278 Likewise.
31279
31280 2017-04-04 Richard Biener <rguenther@suse.de>
31281
31282 PR middle-end/80281
31283 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
31284 arithmetic done for the negate or the plus. Simplify.
31285 (A - (-B) -> A + B): Likewise.
31286 * fold-const.c (split_tree): Make sure to not negate pointers.
31287
31288 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
31289
31290 PR rtl-optimization/60818
31291 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
31292 a compare of comparisons with the thing compared if this results
31293 in a different machine mode.
31294
31295 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
31296
31297 * alias.c (base_alias_check): Fix typo in comment.
31298 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
31299 * cgraphunit.c (symbol_table::compile): Likewise.
31300 * collect2.c (maybe_run_lto_and_relink): Likewise.
31301 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
31302 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
31303 * config/avr/avr.c (avr_map_op_t): Likewise.
31304 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
31305 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
31306 * config/epiphany/epiphany.md (movcc): Likewise.
31307 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
31308 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
31309 Likewise.
31310 * config/mips/mips.c (mips_save_restore_reg): Likewise.
31311 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
31312 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
31313 * config/sh/sh.c (sh_rtx_costs): Likewise.
31314 * fold-const.c (fold_truth_andor): Likewise.
31315 * genautomata.c (collapse_flag): Likewise.
31316 * gengtype.h (struct type::u::s): Likewise.
31317 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
31318 * input.c (FORMAT_AMOUNT): Likewise.
31319 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
31320 (known_aggs_to_agg_replacement_list): Likewise.
31321 * ipa-inline-analysis.c: Likewise.
31322 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
31323 * ipa-polymorphic-call.c
31324 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
31325 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
31326 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
31327 Likewise.
31328 * modulo-sched.c (apply_reg_moves): Likewise.
31329 * omp-expand.c (build_omp_regions_1): Likewise.
31330 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
31331 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
31332 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
31333 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
31334 * value-prof.c: Likewise.
31335 * var-tracking.c (val_reset): Likewise.
31336
31337 2017-04-03 Richard Biener <rguenther@suse.de>
31338
31339 PR tree-optimization/80275
31340 * fold-const.c (split_address_to_core_and_offset): Handle
31341 POINTER_PLUS_EXPR.
31342
31343 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
31344
31345 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
31346 descriptors is at least equal to that of functions.
31347
31348 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
31349
31350 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
31351
31352 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
31353
31354 PR target/80250
31355 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
31356 (mov<IMOD4:mode>): New expander.
31357 (*mov<IMOD4:mode>_internal): New insn and split pattern.
31358
31359 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
31360
31361 PR rtl-optimization/79405
31362 * fwprop.c (propagations_left): New variable.
31363 (forward_propagate_into): Decrement it.
31364 (fwprop_init): Initialize it.
31365 (fw_prop): If the variable has reached zero, stop propagating.
31366 (fwprop_addr): Ditto.
31367
31368 2017-03-31 Jakub Jelinek <jakub@redhat.com>
31369
31370 PR debug/79255
31371 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
31372 a FUNCTION_DECL, pass it as decl instead of origin to
31373 process_scope_var.
31374
31375 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
31376
31377 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
31378 string.
31379
31380 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
31381
31382 PR target/80107
31383 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
31384 TARGET_VSX_SMALL_INTEGER.
31385
31386 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31387
31388 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
31389 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
31390
31391 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
31392
31393 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
31394 extraction from odd-numbered MSA register.
31395
31396 2017-03-31 Jakub Jelinek <jakub@redhat.com>
31397
31398 PR middle-end/80173
31399 * expmed.c (store_bit_field_1): Don't attempt to create
31400 a word subreg out of hard registers wider than word if they
31401 have HARD_REGNO_NREGS of 1 for their mode.
31402
31403 PR middle-end/80163
31404 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
31405 conversions to integer types wider than word and pointer.
31406
31407 PR debug/80025
31408 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
31409 (rtx_equal_for_cselib_p): Pass 0 to it.
31410 * cselib.c (cselib_hasher::equal): Likewise.
31411 (rtx_equal_for_cselib_1): Add depth argument. If depth
31412 is 128, don't look up VALUE locs and punt. Increment
31413 depth in recursive calls when walking VALUE locs.
31414
31415 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
31416
31417 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
31418 (make_gcov_file_name): Use the canonical path name for generating
31419 the MD5 value.
31420 (read_line): Fix handling of files with ascii null bytes.
31421
31422 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
31423
31424 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
31425 to initialise a vector register instead
31426 of using a const_int.
31427
31428 2017-03-30 Jakub Jelinek <jakub@redhat.com>
31429
31430 PR translation/80189
31431 * gimplify.c (omp_default_clause): Use %qs instead of %s in
31432 diagnostic messages.
31433
31434 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
31435
31436 PR target/80246
31437 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
31438 (dfp_diex_<mode>): Update mode of operand 1.
31439 * doc/extend.texi (dxex, dxexq): Document change to return type.
31440 (diex, diexq): Document change to argument type.
31441
31442 2017-03-30 Martin Jambor <mjambor@suse.cz>
31443
31444 PR ipa/77333
31445 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
31446 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
31447 it reflects the signature changes performed at the callee side.
31448 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
31449 to cgraph_build_function_type_skip_args.
31450 (build_function_decl_skip_args): Adjust call to the above function.
31451
31452 2017-03-30 Jakub Jelinek <jakub@redhat.com>
31453
31454 PR target/80206
31455 * config/i386/sse.md
31456 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
31457 register as dest whenever it is a MEM not rtx_equal_p to the
31458 corresponding dup operand, and when forcing into reg move the
31459 reg into the memory afterwards.
31460 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
31461 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
31462 for the force_reg mode.
31463 (avx512vl_vextractf128<mode>): Use register as dest either
31464 always when a MEM, or when it is a MEM not rtx_equal_p to the
31465 corresponding dup operand, or even not when it is a CONST_VECTOR
31466 depending on the mode and lo vs. hi.
31467 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
31468 parens.
31469 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
31470 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
31471 Likewise. Require that operands[2] is even.
31472 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
31473 Remove extraneous parens. Require that operands[2] is a multiple
31474 of 4.
31475 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
31476 operands[0] is a MEM if <mask_applied>, the predicates/constraints
31477 disallow memory then.
31478
31479 2017-03-30 Richard Biener <rguenther@suse.de>
31480
31481 PR tree-optimization/77498
31482 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
31483 to non-constants over backedges.
31484
31485 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
31486
31487 PR rtl-optimization/80233
31488 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
31489 as last_combined_insn. Do not test for BARRIER_P separately.
31490
31491 2017-03-29 Andreas Schwab <schwab@suse.de>
31492
31493 PR ada/80146
31494 * calls.c (prepare_call_address): Convert funexp to Pmode before
31495 copying to temp reg.
31496
31497 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31498
31499 PR tree-optimization/80158
31500 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
31501 Handle possible future case of more than one alternate
31502 interpretation.
31503 (replace_rhs_if_not_dup): Likewise.
31504 (replace_one_candidate): Likewise.
31505
31506 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
31507
31508 PR rtl-optimization/80193
31509 * ira.c (ira): Do not check allocation for LRA.
31510
31511 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
31512
31513 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
31514 (nvptx_output_simt_exit): Declare.
31515 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
31516 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
31517 (init_softstack_frame): Move initialization of crtl->is_leaf to...
31518 (nvptx_declare_function_name): ...here. Emit declaration of local
31519 memory space buffer for omp_simt_enter insn.
31520 (nvptx_output_unisimt_switch): New.
31521 (nvptx_output_softstack_switch): New.
31522 (nvptx_output_simt_enter): New.
31523 (nvptx_output_simt_exit): New.
31524 * config/nvptx/nvptx.h (struct machine_function): New fields
31525 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
31526 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
31527 (UNSPECV_SIMT_EXIT): Ditto.
31528 (omp_simt_enter_insn): New insn.
31529 (omp_simt_enter): New expansion.
31530 (omp_simt_exit): New insn.
31531 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
31532
31533 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
31534 (expand_GOMP_SIMT_ENTER_ALLOC): New.
31535 (expand_GOMP_SIMT_EXIT): New.
31536 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
31537 (GOMP_SIMT_ENTER_ALLOC): Ditto.
31538 (GOMP_SIMT_EXIT): Ditto.
31539 * target-insns.def (omp_simt_enter): New insn.
31540 (omp_simt_exit): Ditto.
31541 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
31542 simt_dlist.
31543 (lower_rec_simd_input_clauses): Implement SIMT privatization.
31544 (lower_rec_input_clauses): Likewise.
31545 (lower_lastprivate_clauses): Handle SIMT privatization.
31546
31547 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
31548 (ompdevlow_adjust_simt_enter): New.
31549 (find_simtpriv_var_op): New.
31550 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
31551 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
31552
31553 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
31554 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
31555 (copy_decl_for_dup_finish): Ditto.
31556
31557 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
31558
31559 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
31560
31561 PR target/53383
31562 * config/i386/i386.c (ix86_option_override_internal): Always
31563 allow -mpreferred-stack-boundary=3 for 64-bit targets.
31564
31565 2017-03-28 Bin Cheng <bin.cheng@arm.com>
31566
31567 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
31568
31569 2017-03-28 Bin Cheng <bin.cheng@arm.com>
31570
31571 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
31572 mark new edge's irreducible flag accordign to it.
31573 (vect_do_peeling): Check loop preheader edge's irreducible flag
31574 and pass it to function slpeel_add_loop_guard.
31575
31576 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
31577
31578 PR tree-optimization/80218
31579 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
31580 Update block frequencies and counts.
31581
31582 2017-03-28 Richard Biener <rguenther@suse.de>
31583
31584 PR tree-optimization/78644
31585 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
31586 of a simplification result we may not use it at all.
31587
31588 2017-03-28 Richard Biener <rguenther@suse.de>
31589
31590 PR ipa/80205
31591 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
31592 without arguments, generate default definition of a SSA name.
31593
31594 2017-03-28 Richard Biener <rguenther@suse.de>
31595
31596 PR middle-end/80222
31597 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
31598 TYPE_REF_CAN_ALIAS_ALL references.
31599 * fold-const.c (fold_indirect_ref_1): Likewise.
31600
31601 2017-03-28 Martin Liska <mliska@suse.cz>
31602
31603 PR ipa/80104
31604 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
31605 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
31606
31607 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
31608 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
31609
31610 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
31611 (EXTRA_SPECS): Define.
31612 (SUBTARGET_EXTRA_SPECS): Likewise.
31613 (SUBTARGET_CPP_SPEC): Likewise.
31614 * config/arc/elf.h (EXTRA_SPECS): Renamed to
31615 SUBTARGET_EXTRA_SPECS.
31616 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
31617
31618 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
31619
31620 * config/arc/simdext.md (vst64_insn): Update pattern.
31621 (vld32wh_insn): Likewise.
31622 (vld32wl_insn): Likewise.
31623 (vld64_insn): Likewise.
31624 (vld32_insn): Likewise.
31625
31626 2017-03-28 Marek Polacek <polacek@redhat.com>
31627
31628 PR sanitizer/80067
31629 * fold-const.c (fold_comparison): Use protected_set_expr_location
31630 instead of SET_EXPR_LOCATION.
31631
31632 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
31633
31634 * tree.c (add_expr): Avoid name lookup warning.
31635
31636 2017-03-27 Jeff Law <law@redhat.com>
31637
31638 PR tree-optimization/80216
31639 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
31640 function name. Limit recursion depth.
31641 (record_temporary_equivalences): Corresponding changes.
31642
31643 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
31644
31645 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
31646 covered first.
31647
31648 2017-03-27 Jakub Jelinek <jakub@redhat.com>
31649
31650 PR target/80102
31651 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
31652 notes.
31653 * cfgcleanup.c (reg_note_cfa_p): New array.
31654 (insns_have_identical_cfa_notes): New function.
31655 (old_insns_match_p): Don't cross-jump in between /f
31656 and non-/f instructions. If both i1 and i2 are frame related,
31657 verify all CFA notes, their order and content.
31658
31659 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
31660
31661 PR target/78543
31662 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
31663 HImode and SImode with zero extend to DImode to one insn.
31664 (bswap<mode>2_extenddi): Likewise.
31665 (bswapsi2_extenddi): Likewise.
31666 (bswaphi2_extendsi): Likewise.
31667 (bswaphi2): Combine bswap HImode and SImode into one insn.
31668 Separate memory insns from swapping register.
31669 (bswapsi2): Likewise.
31670 (bswap<mode>2): Likewise.
31671 (bswaphi2_internal): Delete, no longer used.
31672 (bswapsi2_internal): Likewise.
31673 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
31674 store, and gpr<-gpr swap insns.
31675 (bswap<mode>2_store): Likewise.
31676 (bswaphi2_reg): Register only splitter, combine with the splitter.
31677 (bswaphi2 splitter): Likewise.
31678 (bswapsi2_reg): Likewise.
31679 (bswapsi2 splitter): Likewise.
31680 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
31681 the insns into load, store, and register/register insns.
31682 (bswapdi2_ldbrx): Likewise.
31683 (bswapdi2_load): Likewise.
31684 (bswapdi2_store): Likewise.
31685 (bswapdi2_reg): Likewise.
31686
31687 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
31688
31689 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
31690 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
31691
31692 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
31693
31694 PR target/80103
31695 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
31696 add comments.
31697 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
31698 special handling for target option conflicts between dform
31699 options (-mpower9-dform, -mpower9-dform-vector,
31700 -mpower9-dform-scalar) and -mno-direct-move.
31701
31702 2017-03-27 Richard Biener <rguenther@suse.de>
31703
31704 PR tree-optimization/80181
31705 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
31706
31707 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
31708
31709 * config/arc/predicates.md (move_double_src_operand): Replace the
31710 call to move_double_src_operand with a call to address_operand.
31711
31712 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
31713
31714 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
31715 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
31716 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
31717
31718 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
31719
31720 * config/arc/predicates.md (long_immediate_loadstore_operand):
31721 Consider scaled addresses cases.
31722
31723 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
31724
31725 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
31726 restored when in interrupt.
31727 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
31728 doesn't have delay slot.
31729
31730 2017-03-27 Richard Biener <rguenther@suse.de>
31731
31732 PR ipa/79776
31733 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
31734 inlined thunk clones.
31735
31736 2017-03-27 Jakub Jelinek <jakub@redhat.com>
31737
31738 PR sanitizer/80168
31739 * asan.c (instrument_derefs): Copy over last operand from
31740 original COMPONENT_REF to the new COMPONENT_REF with
31741 DECL_BIT_FIELD_REPRESENTATIVE.
31742 * ubsan.c (instrument_object_size): Likewise.
31743
31744 2017-03-27 Richard Biener <rguenther@suse.de>
31745
31746 PR tree-optimization/80170
31747 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
31748 sure DR/SCEV didnt fold in constants we do not see when looking
31749 at the reference base alignment.
31750
31751 2017-03-27 Richard Biener <rguenther@suse.de>
31752
31753 PR middle-end/80171
31754 * gimple-fold.c (fold_ctor_reference): Properly guard against
31755 NULL return value from canonicalize_constructor_val.
31756
31757 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
31758
31759 PR target/80180
31760 * config/i386/i386.c (ix86_expand_builtin)
31761 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
31762 flags reg setting and flags reg using instructions.
31763 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
31764 clobbering instructions to zero extend op2.
31765
31766 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
31767
31768 * doc/install.texi (Configuration) <--with-aix-soname>:
31769 Update link to AIX ld.
31770
31771 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
31772
31773 PR rtl-optimization/80160
31774 PR rtl-optimization/80159
31775 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
31776 reg_alternate_class into account.
31777
31778 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
31779
31780 PR target/80148
31781 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
31782 to consider in curr_insn_transform.
31783
31784 2017-03-24 Jakub Jelinek <jakub@redhat.com>
31785
31786 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
31787 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
31788 and emit_mode_inner.
31789
31790 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31791
31792 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
31793 argument to the overloaded builtin variants. Use the new flag to
31794 deprecate certain builtin variants.
31795 * config/s390/s390-builtin-types.def: Add new builtin types.
31796 * config/s390/s390-builtins.h: Support new flags field for
31797 overloaded builtins.
31798 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
31799 (s390_macro_to_expand): Enable vector float data type.
31800 (s390_cpu_cpp_builtins_internal): Indicate support of the new
31801 builtins by incrementing the __VEC__ version number.
31802 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
31803 vec_xst.
31804 (s390_resolve_overloaded_builtin): Emit error messages depending
31805 on the builtin flags.
31806 * config/s390/s390.c (s390_expand_builtin): Support additional
31807 flags argument. Change error message to match the messages
31808 emitted in s390-c.c.
31809 * config/s390/s390.md: New UNSPEC_* constants.
31810 (op_type): Add new instruction types.
31811 * config/s390/vecintrin.h: Add new builtins and test data class
31812 constants.
31813 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
31814 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
31815 (VEC_INEXACT, VEC_NOINEXACT): New constants.
31816 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
31817 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
31818 ("vec_mergel<mode>"): V_HW -> VEC_HW.
31819
31820 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
31821 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
31822 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
31823 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
31824
31825 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
31826 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
31827 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
31828 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
31829
31830 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
31831 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
31832 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
31833 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
31834 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
31835 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
31836 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
31837
31838 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
31839 ("vec_scatter_element<V_HW_4:mode>_DI")
31840 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
31841 ("vec_fpint<mode>", "vflls")
31842 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
31843 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
31844 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
31845 ("*vec_cmphe<mode>_cc"): ... these.
31846
31847 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
31848 mode constant instead of magic value.
31849
31850 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31851
31852 * config/s390/s390.c (s390_expand_vec_compare): Support other
31853 vector floating point modes than just V2DF.
31854 (s390_expand_vcond): Likewise.
31855 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
31856 (s390_cannot_change_mode_class): Prevent mode changes between TF
31857 and V1TF in vector registers.
31858 * config/s390/s390.md (DF, SF): New mode attributes.
31859 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
31860 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
31861 SFmode support for VRs.
31862 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
31863 vector fp modes.
31864 (VFT, VF_HW): New mode iterators.
31865 (vw, sdx): New mode attributes.
31866 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
31867 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
31868 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
31869 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
31870 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
31871 also the new vector floating point modes. Renaming to ...
31872
31873 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
31874 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
31875 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
31876 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
31877 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
31878 ("vec_unordered<mode>"): ... these.
31879
31880 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
31881 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
31882 ("*vec_extendv2df"): New insn definitions.
31883
31884 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31885
31886 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
31887 ("mulditi3_2", "*muldi3_sign"): New patterns.
31888 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
31889 rename the pattern definition.
31890
31891 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31892
31893 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
31894 expander.
31895 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
31896
31897 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31898
31899 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
31900 instruction if possible.
31901 * config/s390/vector.md (vec_halfnumelts): New mode
31902 attribute.
31903 ("*vec_vllezlf<mode>"): New pattern.
31904
31905 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31906
31907 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
31908 ("popcountv4si2", "popcountv2di2"): Rename to ...
31909 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
31910 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
31911 condition.
31912 ("popcount<mode>2_vxe"): New pattern.
31913
31914 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31915
31916 * common/config/s390/s390-common.c (processor_flags_table): Add
31917 arch12.
31918 * config.gcc: Add arch12.
31919 * config/s390/driver-native.c (s390_host_detect_local_cpu):
31920 Default to arch12 for unknown CPU model numbers.
31921 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
31922 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
31923 PROCESSOR_max sanity check.
31924 * config/s390/s390-opts.h (enum processor_type): Add
31925 PROCESSOR_ARCH12.
31926 * config/s390/s390.c (processor_table): Add arch12.
31927 (s390_expand_builtin): Add check for B_VXE flag.
31928 (s390_issue_rate): Add PROCESSOR_ARCH12.
31929 (s390_get_sched_attrmask): Likewise.
31930 (s390_get_unit_mask): Likewise.
31931 (s390_sched_score): Enable z13 scheduling for arch12.
31932 (s390_sched_reorder): Likewise.
31933 (s390_sched_variable_issue): Likewise.
31934 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
31935 PF_VXE.
31936 (s390_tune_attr): Use z13 scheduling also for arch12.
31937 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
31938 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
31939 (TARGET_VXE_P): New macros.
31940 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
31941 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
31942 * config/s390/s390.opt: Add arch12 as processor_type.
31943
31944 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31945
31946 * config/s390/s390.md
31947 ("fixuns_truncdddi2", "fixuns_trunctddi2")
31948 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
31949 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
31950
31951 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
31952 Rename expanders to ...
31953
31954 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
31955 ("fixuns_truncdddi2_emu"): ... these.
31956
31957 ("fixuns_trunc<mode>si2_emu"): New expander.
31958
31959 ("*fixuns_truncdfdi2_z13"): Rename to ...
31960 ("*fixuns_truncdfdi2_vx"): ... this.
31961
31962 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31963
31964 * config/s390/2964.md: Remove the single element vector compare
31965 instructions which are no longer used.
31966 * config/s390/s390.c (s390_select_ccmode): Remove handling of
31967 vector CCmodes.
31968 (s390_canonicalize_comparison): Remove handling of DFmode
31969 compares.
31970 (s390_expand_vec_compare_scalar): Remove function.
31971 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
31972 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
31973 pattern.
31974 ("*cmp<mode>_ccs"): Add wfcdb instruction.
31975
31976 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31977
31978 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
31979 FP zero.
31980 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
31981 will anyway by matched by mov<mode>_64dfp.
31982
31983 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31984
31985 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
31986 vlef/vstef. Add missing operand to vleif.
31987
31988 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31989
31990 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
31991 pair for all vector types with 64 bit elements.
31992 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
31993 * config/s390/vector.md (V_HW_64): ... here.
31994 (V_128_NOSINGLE): New mode iterator.
31995 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
31996 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
31997 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
31998 ("*vec_load_pairv2di"): Change to ...
31999 ("*vec_load_pair<mode>"): ... this one.
32000
32001 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32002
32003 * config/s390/constraints.md: Add comments.
32004 (jKK): Reject element sizes > 8 bytes.
32005 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
32006 s_operands.
32007 * config/s390/s390.md: Add the s_operand checks formerly in
32008 s390_split_ok_p to various splitters where they are still
32009 required.
32010 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
32011 for 128 bit vectors. Plus two splitters.
32012
32013 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32014
32015 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
32016 the file.
32017
32018 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32019
32020 PR target/79893
32021 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
32022 error if the boundary argument is not constant.
32023
32024 2017-03-24 Jakub Jelinek <jakub@redhat.com>
32025
32026 PR rtl-optimization/80112
32027 * loop-doloop.c (doloop_condition_get): Don't check condition
32028 if cmp isn't SET with IF_THEN_ELSE src.
32029
32030 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32031
32032 PR tree-optimization/80158
32033 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
32034 replacing a candidate statement, also replace it for the
32035 candidate's alternate interpretation.
32036 (replace_rhs_if_not_dup): Likewise.
32037 (replace_one_candidate): Likewise.
32038
32039 2017-03-24 Richard Biener <rguenther@suse.de>
32040
32041 PR tree-optimization/80167
32042 * graphite-isl-ast-to-gimple.c
32043 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
32044 properly.
32045 (translate_isl_ast_to_gimple::get_rename): Likewise.
32046
32047 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
32048
32049 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
32050 handling of certain combinations of target options, including the
32051 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
32052 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
32053
32054 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32055
32056 PR target/71436
32057 * config/arm/arm.md (*load_multiple): Add reload_completed to
32058 matching condition.
32059
32060 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32061 Richard Biener <rguenth@suse.de>
32062
32063 PR tree-optimization/79908
32064 PR tree-optimization/80136
32065 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
32066 been cast away, gimplify_and_add suffices.
32067
32068 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
32069
32070 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
32071
32072 2017-03-23 Richard Biener <rguenther@suse.de>
32073
32074 PR tree-optimization/80032
32075 * gimplify.c (gimple_push_cleanup): Forced unconditional
32076 cleanups still have to go to the conditional_cleanups
32077 sequence.
32078
32079 2017-03-22 Jakub Jelinek <jakub@redhat.com>
32080
32081 PR tree-optimization/80072
32082 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
32083 to unsigned int.
32084 (next_operand_entry_id): Change type to unsigned int.
32085 (sort_by_operand_rank): Make sure to return the right return value
32086 even if unsigned fields are bigger than INT_MAX.
32087 (struct oecount): Change cnt and id type to unsigned int.
32088 (oecount_hasher::equal): Formatting fix.
32089 (oecount_cmp): Make sure to return the right return value
32090 even if unsigned fields are bigger than INT_MAX.
32091 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
32092
32093 PR c++/80129
32094 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
32095 TREE_READONLY on result if writing it more than once.
32096
32097 PR sanitizer/80110
32098 * doc/invoke.texi (-fsanitize=thread): Document that with
32099 -fnon-call-exceptions atomics are not able to throw
32100 exceptions.
32101
32102 PR sanitizer/80110
32103 * tsan.c: Include tree-eh.h.
32104 (instrument_builtin_call): Call maybe_clean_eh_stmt or
32105 maybe_clean_or_replace_eh_stmt where needed.
32106 (instrument_memory_accesses): Add cfg_changed argument.
32107 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
32108 if it returned true.
32109 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
32110
32111 PR rtl-optimization/63191
32112 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
32113 wrapper function, moved the whole old content into ...
32114 (ix86_delegitimize_address_1): ... this. New inline function.
32115 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
32116 true as last argument instead of ix86_delegitimize_address.
32117
32118 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
32119
32120 * config/aarch64/aarch64.c (generic_branch_cost): Copy
32121 cortexa57_branch_cost.
32122
32123 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
32124
32125 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
32126
32127 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
32128
32129 PR target/80123
32130 * doc/md.texi (Constraints): Document wA constraint.
32131 * config/rs6000/constraints.md (wA): New.
32132 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
32133 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
32134 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
32135 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
32136
32137 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
32138
32139 PR c++/80029
32140 * gimplify.c (is_oacc_declared): New function.
32141 (oacc_default_clause): Use it to set default flags for acc declared
32142 variables inside parallel regions.
32143 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
32144 declared variables.
32145 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
32146 declare attribute to any decl as necessary.
32147
32148 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
32149
32150 PR target/80082
32151 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
32152 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
32153 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
32154 (arm_arch_lpae): This.
32155 * config/arm/arm.c (arm_arch7ve): Rename into ...
32156 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
32157 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
32158 arm_arch_lpae.
32159
32160 2017-03-22 Martin Liska <mliska@suse.cz>
32161
32162 PR target/79906
32163 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
32164 error message instead of an ICE.
32165
32166 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32167
32168 * doc/extend.texi (6.11 Additional Floating Types): Revise.
32169
32170 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
32171
32172 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
32173 comments.
32174 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
32175 comments.
32176
32177 2017-03-21 Martin Sebor <msebor@redhat.com>
32178
32179 * doc/extend.texi: Use "cannot" instead of "can't."
32180 * doc/hostconfig.texi: Same.
32181 * doc/install.texi: Same.
32182 * doc/invoke.texi: Same.
32183 * doc/loop.texi: Same.
32184 * doc/md.texi: Same.
32185 * doc/objc.texi: Same.
32186 * doc/rtl.texi: Same.
32187 * doc/tm.texi: Same.
32188 * doc/tm.texi.in: Same.
32189 * doc/trouble.texi: Same.
32190
32191 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
32192
32193 PR debug/63238
32194 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
32195 (collect_checksum_attributes): Set it.
32196 (die_checksum_ordered): Use it.
32197
32198 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32199
32200 PR tree-optimization/79908
32201 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
32202 change: For a VA_ARG whose LHS has been cast away, use
32203 force_gimple_operand to construct the side effects.
32204
32205 2017-03-21 David Malcolm <dmalcolm@redhat.com>
32206
32207 PR translation/80001
32208 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
32209 more amenable to translation.
32210 (oacc_loop_auto_partitions): Likewise.
32211
32212 2017-03-21 Marek Polacek <polacek@redhat.com>
32213 Martin Sebor <msebor@redhat.com>
32214
32215 PR tree-optimization/80109
32216 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
32217 on INTEGRAL_TYPE_P.
32218
32219 2017-03-21 Jakub Jelinek <jakub@redhat.com>
32220 Segher Boessenkool <segher@kernel.crashing.org>
32221
32222 PR target/80125
32223 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
32224 check reg_used_between_p between insn and one of succ or succ2
32225 depending on if succ is artificial insn not inserted into insn
32226 stream.
32227
32228 2017-03-21 Martin Liska <mliska@suse.cz>
32229
32230 PR gcov-profile/80081
32231 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
32232 * doc/gcc.texi: Include gcov-dump stuff.
32233 * doc/gcov-dump.texi: New file.
32234
32235 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
32236
32237 PR rtl-optimization/79150
32238 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
32239 conditional jump, if the jump is the last insn of the loop.
32240
32241 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32242 Richard Biener <rguenth@suse.de>
32243
32244 PR tree-optimization/79908
32245 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
32246 been cast away, use force_gimple_operand to construct the side
32247 effects.
32248
32249 2017-03-21 Martin Liska <mliska@suse.cz>
32250
32251 PR libfortran/79956
32252 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
32253 to NULL.
32254
32255 2017-03-21 Brad Spengler <spender@grsecurity.net>
32256
32257 PR plugins/80094
32258 * plugin.c (htab_hash_plugin): New function.
32259 (add_new_plugin): Use it and adjust.
32260 (parse_plugin_arg_opt): Adjust.
32261 (init_one_plugin): Likewise.
32262
32263 2017-03-21 Richard Biener <rguenther@suse.de>
32264
32265 PR tree-optimization/80032
32266 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
32267 if set force the cleanup to happen unconditionally.
32268 (gimplify_target_expr): Push inserted clobbers with force_uncond
32269 to avoid them being removed by control-dependent DCE.
32270
32271 2017-03-21 Richard Biener <rguenther@suse.de>
32272
32273 PR tree-optimization/80122
32274 * tree-inline.c (copy_bb): Do not expans va-arg packs or
32275 va_arg_pack_len when the inlined call stmt requires pack
32276 expansion itself.
32277 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
32278
32279 2017-03-21 Jakub Jelinek <jakub@redhat.com>
32280
32281 PR sanitizer/78158
32282 * tsan.c (instrument_builtin_call): If the memory model argument
32283 is not a constant, assume it is valid.
32284
32285 PR c/67338
32286 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
32287 avoid UB.
32288
32289 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
32290
32291 PR rtl-optimization/79910
32292 * combine.c (can_combine_p): Do not allow combining an I0 or I1
32293 if its dest is used by an insn before I2 (other than the combined
32294 insns themselves, which are properly handled already).
32295
32296 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
32297
32298 Revert:
32299 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
32300
32301 * combine.c (record_used_regs): New static function.
32302 (try_combine): Handle situations where there is an additional
32303 instruction between I2 and I3 which needs to have a LOG_LINK
32304 updated.
32305
32306 Revert:
32307 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
32308
32309 * combine.c (try_combine): Delete redundant i1 test. Call
32310 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
32311
32312 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
32313
32314 PR target/80083
32315 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
32316 alternatives 13/14.
32317
32318 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32319
32320 PR tree-optimization/80054
32321 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
32322 the optimization if a PHI or any of its arguments is not dominated
32323 by the candidate's basis. Use gphi* rather than gimple* as
32324 appropriate.
32325 (replace_profitable_candidates): Clean up a gimple* variable that
32326 should be a gphi* variable.
32327
32328 2017-03-20 Martin Sebor <msebor@redhat.com>
32329
32330 PR c++/52477
32331 * doc/extend.texi (attribute constructor): Document present limitation.
32332
32333 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
32334
32335 PR target/79963
32336 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
32337 __POWER9_VECTOR__ #ifdef control, change template definition to
32338 use Power9-specific built-in function.
32339 (vec_any_eq): Likewise.
32340 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
32341 to control outcomes from this test.
32342 (vector_ae_<mode>p): For VEC_F modes, likewise.
32343
32344 2017-03-20 Ian Lance Taylor <iant@google.com>
32345
32346 * config/i386/i386.c (ix86_function_regparm): Save an extra
32347 register for -fsplit-stack with DECL_STATIC_CHAIN.
32348
32349 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
32350
32351 PR target/79912
32352 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
32353 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
32354
32355 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
32356
32357 * config/riscv/riscv.c (riscv_print_operand): Use "fence
32358 iorw,ow".
32359 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
32360 iorw,iorw".
32361
32362 2017-03-20 Marek Polacek <polacek@redhat.com>
32363
32364 PR sanitizer/80063
32365 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
32366
32367 2017-03-20 Richard Biener <rguenther@suse.de>
32368
32369 PR tree-optimization/80113
32370 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
32371 allocate extra SSA name for PHI def.
32372 (add_close_phis_to_outer_loops): Likewise.
32373 (add_close_phis_to_merge_points): Likewise.
32374 (copy_loop_close_phi_args): Likewise.
32375 (copy_cond_phi_nodes): Likewise.
32376
32377 2017-03-20 Martin Liska <mliska@suse.cz>
32378
32379 PR middle-end/79753
32380 * tree-chkp.c (chkp_build_returned_bound): Do not build
32381 returned bounds for a LHS that's not a BOUNDED_P type.
32382
32383 2017-03-20 Martin Liska <mliska@suse.cz>
32384
32385 PR target/79769
32386 PR target/79770
32387 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
32388 COMPLEX_CST and VECTOR_CST.
32389
32390 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32391
32392 PR target/78857
32393 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
32394 target operand. A new splitter adds the clobber statement in case
32395 the target operand is dead anyway.
32396
32397 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
32398
32399 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
32400 to age-old versions of binutils and glibc.
32401
32402 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
32403
32404 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
32405
32406 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
32407
32408 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
32409
32410 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
32411
32412 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
32413 requirement for binutils 2.13.
32414
32415 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
32416
32417 * combine.c (try_combine): Delete redundant i1 test. Call
32418 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
32419
32420 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
32421
32422 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
32423 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
32424 contents.
32425 <riscv64-*-elf>: Re-arrange section
32426 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
32427 <riscv32-*-linux>: Likewise.
32428 <riscv64-*-elf>: Likewise
32429 <riscv64-*-linux>: Likewise.
32430
32431 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
32432
32433 PR target/80052
32434 * aarch64.opt(verbose-cost-dump): Fix typo.
32435
32436 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
32437
32438 PR target/79951
32439 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
32440 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
32441
32442 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
32443
32444 * reload.c (find_reloads): When reloading a nonoffsettable address,
32445 use RELOAD_OTHER for it and its address reloads.
32446
32447 PR rtl-optimization/79910
32448 * combine.c (record_used_regs): New static function.
32449 (try_combine): Handle situations where there is an additional
32450 instruction between I2 and I3 which needs to have a LOG_LINK
32451 updated.
32452
32453 2017-03-17 Jeff Law <law@redhat.com>
32454
32455 PR tree-optimization/71437
32456 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
32457 conditional in the hash table first.
32458 (vrp_dom_walker::before_dom_children): Extract condition from
32459 ASSERT_EXPR. Record condition, its inverion and any implied
32460 conditions as well.
32461
32462 2017-03-17 Marek Polacek <polacek@redhat.com>
32463 Markus Trippelsdorf <markus@trippelsdorf.de>
32464
32465 PR tree-optimization/80079
32466 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
32467 m_stores_head.
32468
32469 2017-03-17 Richard Biener <rguenther@suse.de>
32470
32471 PR middle-end/80075
32472 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
32473 Properly verify the LHS before the RHS possibly claims to be
32474 handled.
32475 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
32476 do not throw.
32477
32478 2017-03-17 Martin Jambor <mjambor@suse.cz>
32479
32480 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
32481 (List of -O2 options): Likewise.
32482 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
32483 (-fipa-vrp) New.
32484
32485 2017-03-17 Tom de Vries <tom@codesourcery.com>
32486
32487 * gcov-dump.c (print_usage): Print bug_report_url.
32488
32489 2017-03-17 Richard Biener <rguenther@suse.de>
32490
32491 PR middle-end/80050
32492 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
32493 (parser::peek): Likewise.
32494
32495 2017-03-17 Richard Biener <rguenther@suse.de>
32496
32497 PR tree-optimization/80048
32498 * sese.c (free_sese_info): Properly release rename_map and
32499 copied_bb_map elements.
32500
32501 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
32502
32503 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
32504 Add linked-list forward and backlinks. Insert on
32505 construction, remove on destruction.
32506 (class pass_store_merging): Add m_stores_head field.
32507 (pass_store_merging::terminate_and_process_all_chains):
32508 Iterate over m_stores_head list.
32509 (pass_store_merging::terminate_all_aliasing_chains):
32510 Likewise.
32511 (pass_store_merging::execute): Check for debug stmts first.
32512 Push new chains onto the m_stores_head stack.
32513
32514 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
32515
32516 PR target/71294
32517 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
32518 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
32519 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
32520
32521 2017-03-16 Jeff Law <law@redhat.com>
32522
32523 PR tree-optimization/71437
32524 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
32525 member function. Implementation moved into after_dom_children
32526 member function and into the threader's thread_outgoing_edges
32527 function.
32528 (dom_opt_dom_walker::after_dom_children): Simplify by moving
32529 some code into new thread_outgoing_edges.
32530 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
32531 definition. Simplify marker handling (do it here). Assume we always
32532 have the available expression and the const/copies tables.
32533 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
32534 and tree-vrp.c
32535 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
32536 * tree-vrp.c (equiv_stack): No longer file scoped.
32537 (vrp_dom_walker): New class.
32538 (vrp_dom_walker::before_dom_children): New member function.
32539 (vrp_dom_walker::after_dom_children): Likewise.
32540 (identify_jump_threads): Setup domwalker. Use it rather than
32541 walking edges in a random order by hand. Simplify setup/finalization.
32542 (finalize_jump_threads): Remove.
32543 (vrp_finalize): Do not call identify_jump_threads here.
32544 (execute_vrp): Do it here instead and call thread_through_all_blocks
32545 here too.
32546
32547 PR tree-optimization/71437
32548 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
32549 callers changed.
32550 (simplify_stmt_for_jump_threading): Add basic_block argument. All
32551 callers changed.
32552 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
32553 (dom_opt_dom_walker::thread_across_edge): Remove
32554 handle_dominating_asserts argument. All callers changed.
32555 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
32556 changes. Remove calls to lhs_of_dominating_assert. Other
32557 uses of handle_dominating_asserts turn into unconditional code
32558 (simplify_control_stmt_condition_1): Likewise.
32559 (simplify_control_stmt_condition): Likewise.
32560 (thread_through_normal_block, thread_across_edge): Likewise.
32561 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
32562 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
32563 object if it is not an SSA_NAME.
32564 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
32565 before calling into the VRP specific simplifiers.
32566 (identify_jump_threads): Remove handle_dominating_asserts
32567 argument.
32568
32569 2017-03-16 Jakub Jelinek <jakub@redhat.com>
32570
32571 PR fortran/79886
32572 * tree-diagnostic.c (default_tree_printer): No longer static.
32573 * tree-diagnostic.h (default_tree_printer): New prototype.
32574
32575 2017-03-16 Tamar Christina <tamar.christina@arm.com>
32576
32577 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
32578 Change ins into fmov.
32579
32580 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32581
32582 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
32583 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
32584 Use h_con constraint for operand 1.
32585 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
32586 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
32587
32588 2017-03-15 Jeff Law <law@redhat.com>
32589
32590 PR tree-optimization/71437
32591 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
32592 (record_temporary_equivalences): Use it.
32593
32594 PR tree-optimization/71437
32595 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
32596 tree-ssa-scopedtables.
32597 (lookup_avail_expr, build_and_record_new_cond): Likewise.
32598 (record_conditions, record_cond, vuse_eq): Likewise.
32599 (record_edge_info): Adjust to API tweak of record_conditions.
32600 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
32601 (record_temporary_equivalences, optimize_stmt): Likewise.
32602 (eliminate_redundant_computations): Likewise.
32603 (record_equivalences_from_stmt): Likewise.
32604 * tree-ssa-scopedtables.c: Include options.h and params.h.
32605 (vuse_eq): New function, moved from tree-ssa-dom.c
32606 (build_and_record_new_cond): Likewise.
32607 (record_conditions): Likewise. Accept vector of conditions rather
32608 than edge_equivalence structure for first argument.
32609 for the first argument.
32610 (avail_exprs_stack::lookup_avail_expr): New member function, moved
32611 from tree-ssa-dom.c.
32612 (avail_exprs_stack::record_cond): Likewise.
32613 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
32614 from tree-ssa-dom.c.
32615 (avail_exprs_stack): Add new member functions lookup_avail_expr
32616 and record_cond.
32617 (record_conditions): Declare.
32618
32619 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
32620
32621 PR target/80017
32622 * lra-constraints.c (process_alt_operands): Increase reject for
32623 reloading an input/output operand.
32624
32625 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
32626
32627 PR target/79038
32628 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
32629 insns to convert from signed/unsigned char/short to IEEE 128-bit
32630 floating point.
32631 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
32632
32633 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
32634
32635 PR target/80019
32636 * config/i386/i386.c (ix86_vector_duplicate_value): Create
32637 subreg of inner mode for values already in registers.
32638
32639 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
32640
32641 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
32642 iteration reg is used after the loop.
32643
32644 2017-03-14 Martin Sebor <msebor@redhat.com>
32645
32646 PR tree-optimization/79800
32647 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
32648 precision in negative-positive range.
32649 (format_floating): Call non-const overload with adjusted precision.
32650
32651 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
32652
32653 PR target/79947
32654 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
32655 -mpowerpc-gfxopt.
32656
32657 2017-03-14 Martin Sebor <msebor@redhat.com>
32658
32659 PR middle-end/80020
32660 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
32661 * builtins.def (aligned_alloc): Use it.
32662
32663 PR c/79936
32664 * Makefile.in (GTFILES): Add calls.c.
32665 * calls.c: Include "gt-calls.h".
32666
32667 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
32668
32669 PR rtl-optimization/79728
32670 * regs.h (struct target_regs): New field
32671 x_contains_allocatable_regs_of_mode.
32672 (contains_allocatable_regs_of_mode): New macro.
32673 * reginfo.c (init_reg_sets_1): Initialize it, and change
32674 contains_reg_of_mode so it includes global regs as well.
32675 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
32676 rather than contains_regs_of_mode.
32677
32678 2017-03-14 Martin Liska <mliska@suse.cz>
32679
32680 * doc/invoke.texi: Document options that can't be combined with
32681 -fcheck-pointer-bounds.
32682
32683 2017-03-14 Martin Liska <mliska@suse.cz>
32684
32685 PR middle-end/79831
32686 * doc/invoke.texi (-Wchkp): Document the option.
32687
32688 2017-03-14 Martin Liska <mliska@suse.cz>
32689
32690 * Makefile.in: Install gcov-dump.
32691
32692 2017-03-14 Martin Liska <mliska@suse.cz>
32693
32694 * multiple_target.c (expand_target_clones): Bail out for
32695 an invalid attribute.
32696
32697 2017-03-14 Richard Biener <rguenther@suse.de>
32698
32699 * alias.c (struct alias_set_entry): Pack properly.
32700 * cfgloop.h (struct loop): Likewise.
32701 * cse.c (struct set): Likewise.
32702 * ipa-utils.c (struct searchc_env): Likewise.
32703 * loop-invariant.c (struct invariant): Likewise.
32704 * lra-remat.c (struct cand): Likewise.
32705 * recog.c (struct change_t): Likewise.
32706 * rtl.h (struct address_info): Likewise.
32707 * symbol-summary.h (function_summary): Likewise.
32708 * tree-loop-distribution.c (struct partition): Likewise.
32709 * tree-object-size.c (struct object_size_info): Likewise.
32710 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
32711 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
32712 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
32713 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
32714 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
32715 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
32716 (struct _stmt_vec_info): Likewise.
32717
32718 2017-03-14 Martin Liska <mliska@suse.cz>
32719
32720 PR target/79892
32721 * multiple_target.c (create_dispatcher_calls): Check that
32722 a target can create a function dispatcher.
32723
32724 2017-03-14 Martin Liska <mliska@suse.cz>
32725
32726 PR lto/66295
32727 * multiple_target.c (expand_target_clones): Drop local.local
32728 flag for default implementation.
32729
32730 2017-03-14 Richard Biener <rguenther@suse.de>
32731
32732 PR tree-optimization/80030
32733 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
32734
32735 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
32736
32737 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
32738 gcc_fallthrough() instead of __attribute__((fallthrough));
32739
32740 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
32741
32742 * doc/gcc.texi: Remove "up" link to (DIR).
32743 * doc/gccint.texi: Ditto.
32744
32745 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
32746
32747 * doc/install.texi (Specific) <avr>: Remove reference to
32748 binutils 2.13.
32749
32750 2017-03-13 Jeff Law <law@redhat.com>
32751
32752 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
32753 attribute rather than comments.
32754
32755 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
32756 match_scratch operand is highest.
32757
32758 2017-03-13 Martin Liska <mliska@suse.cz>
32759
32760 PR middle-end/78339
32761 * ipa-pure-const.c (warn_function_noreturn): If the declarations
32762 is a CHKP clone, use original declaration.
32763
32764 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
32765
32766 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
32767 (arc_conditional_register_usage): Use a different allocation order
32768 when optimizing for size.
32769 * common/config/arc/arc-common.c (arc_option_optimization_table):
32770 Section anchors default on when optimizing for size.
32771
32772 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
32773
32774 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
32775
32776 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
32777
32778 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
32779 * config/arc/arc.md (cpu_facility): Add cd variant.
32780 (*movqi_insn): Add code density variant.
32781 (*movhi_insn): Likewise.
32782 (*movqi_insn): Likewise.
32783 (*addsi3_mixed): Likewise.
32784 (subsi3_insn): Likewise.
32785
32786 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
32787
32788 * config/arc/arc.md (movsi_cond_exec): Update constraint.
32789
32790 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
32791
32792 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
32793 expressions with MINUS and UNARY ops.
32794
32795 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32796
32797 PR target/79911
32798 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
32799 Rename to...
32800 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
32801 between vec_select and vector argument.
32802 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
32803 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
32804 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
32805 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
32806 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
32807 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
32808
32809 2017-03-13 Richard Biener <rguenther@suse.de>
32810
32811 PR other/79991
32812 * params.def (vect-max-peeling-for-alignment): Fix typo.
32813
32814 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
32815
32816 * doc/install.texi (Specific) <mips-*-*>: Remove description of
32817 issue that only occurred with binutils below 2.18.
32818
32819 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
32820
32821 * doc/install.texi (Specific) <cris-axis-elf>: No longer
32822 refer to binutils 2.11/2.12 minimum.
32823
32824 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
32825
32826 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
32827 ftp.kernel.org and simplify binutils requirement.
32828
32829 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
32830
32831 * doc/invoke.texi (Warning Options): Fix spelling of link-time
32832 optimization.
32833 (Optimize Options): Ditto. Also remove redundancy.
32834
32835 2017-03-10 David Malcolm <dmalcolm@redhat.com>
32836
32837 PR translation/79848
32838 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
32839 "%qs".
32840 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
32841 to G_ to avoid double translation.
32842
32843 2017-03-10 David Malcolm <dmalcolm@redhat.com>
32844
32845 PR translation/79923
32846 * auto-profile.c (get_combined_location): Convert leading
32847 character of diagnostics to lower case and remove trailing period.
32848 (read_profile): Likewise for various diagnostics.
32849 * config/arm/arm.c (arm_option_override): Remove trailing period
32850 from various diagnostics.
32851 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
32852 (msp430_expand_delay_cycles): Likewise.
32853
32854 2017-03-10 David Malcolm <dmalcolm@redhat.com>
32855
32856 PR target/79925
32857 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
32858 full command-line argument, rather than just "str".
32859 (aarch64_validate_march): Likewise.
32860 (aarch64_validate_mtune): Likewise.
32861
32862 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
32863
32864 PR rtl-optimization/78911
32865 * lra-assigns.c (must_not_spill_p): New function.
32866 (spill_for): Use it.
32867
32868 2017-03-10 Jakub Jelinek <jakub@redhat.com>
32869
32870 PR tree-optimization/79981
32871 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
32872 ATOMIC_COMPARE_EXCHANGE ifn result.
32873 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
32874 IFN_ATOMIC_COMPARE_EXCHANGE.
32875
32876 2017-03-10 David Malcolm <dmalcolm@redhat.com>
32877
32878 PR driver/79875
32879 * opts.c (parse_sanitizer_options): Add missing question mark to
32880 "did you mean" message.
32881
32882 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32883
32884 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
32885 built-in.
32886 (VMULEUH_UNS): Likewise.
32887 (VMULOUB_UNS): Likewise.
32888 (VMULOUH_UNS): Likewise.
32889 * config/rs6000/rs6000.c (builtin_function_type): Remove
32890 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
32891
32892 2017-03-10 David Malcolm <dmalcolm@redhat.com>
32893
32894 PR bootstrap/79952
32895 * read-rtl-function.c (function_reader::read_rtx_operand): Update
32896 x with result of extra_parsing_for_operand_code_0.
32897 (function_reader::extra_parsing_for_operand_code_0): Convert
32898 return type from void to rtx, returning x. When reading
32899 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
32900 larger size containing struct block_symbol.
32901
32902 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
32903
32904 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
32905 -mfloat128-hardware without -m64.
32906
32907 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
32908
32909 PR target/79941
32910 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
32911 entries to the case statement that marks unsigned arguments to
32912 overloaded functions.
32913
32914 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
32915
32916 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
32917 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
32918
32919 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
32920
32921 PR target/79907
32922 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
32923 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
32924
32925 2017-03-10 Martin Liska <mliska@suse.cz>
32926
32927 PR target/65705
32928 PR target/69804
32929 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
32930 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
32931 FIELD != NULL.
32932
32933 2017-03-10 Olivier Hainque <hainque@adacore.com>
32934
32935 * tree-switch-conversion (array_value_type): Start by resetting
32936 candidate type to it's main variant.
32937
32938 2017-03-10 Jakub Jelinek <jakub@redhat.com>
32939
32940 PR rtl-optimization/79909
32941 * combine.c (try_combine): Use simplify_replace_rtx on individual
32942 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
32943 of the whole CALL_INSN_FUNCTION_USAGE.
32944
32945 PR tree-optimization/79972
32946 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
32947 get_range_info on SSA_NAMEs. Formatting fixes.
32948
32949 2017-03-10 Richard Biener <rguenther@suse.de>
32950 Jakub Jelinek <jakub@redhat.com>
32951
32952 PR tree-optimization/77975
32953 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
32954 edge to be constant.
32955 (get_val_for): For constant x return it. Formatting fix.
32956 (loop_niter_by_eval): Avoid pointless looping if the next iteration
32957 would use the same bases as the current one.
32958
32959 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32960
32961 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
32962 instead of vec_select for V1TImode.
32963 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
32964 longer needed.
32965 (VSX_LE_128): Add V1TI to this mode iterator.
32966 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
32967 (*vsx_le_perm_store_<mode>): Likewise.
32968 (pre-reload splitter for VSX stores): Likewise.
32969 (post-reload splitter for VSX stores): Likewise.
32970 (*vsx_xxpermdi2_le_<mode>): Likewise.
32971 (*vsx_lxvd2x2_le_<mode>): Likewise.
32972 (*vsx_stxvd2x2_le_<mode>): Likewise.
32973
32974 2017-03-09 Michael Eager <eager@eagercon.com>
32975
32976 Correct failures with --enable-checking=yes,rtl.
32977
32978 * config/microblaze/microblaze.c (microblaze_expand_shift):
32979 Replace GET_CODE test with CONST_INT_P and INTVAL test with
32980 test for const0_rtx.
32981 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
32982 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
32983
32984 2017-03-09 Richard Biener <rguenther@suse.de>
32985
32986 PR tree-optimization/79977
32987 * graphite-scop-detection.c (scop_detection::merge_sese):
32988 Handle the case of extra exits to blocks dominating the entry.
32989
32990 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
32991
32992 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
32993 Document rdynamic.
32994
32995 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
32996
32997 PR rtl-optimization/79949
32998 * lra-constraints.c (process_alt_operands): Check memory when
32999 trying to predict a cycle. Print about the overall increase.
33000
33001 2017-03-09 Richard Biener <rguenther@suse.de>
33002
33003 PR middle-end/79971
33004 * gimple-expr.c (useless_type_conversion_p): Preserve
33005 TYPE_SATURATING for fixed-point types.
33006
33007 2017-03-09 Richard Biener <rguenther@suse.de>
33008
33009 PR ipa/79970
33010 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
33011 alignment of BLKmode params.
33012
33013 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33014
33015 PR target/79913
33016 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
33017 (VALL_NO_V2Q): Likewise.
33018 (VDQF_DF): Delete.
33019 * config/aarch64/aarch64-simd.md
33020 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
33021 iterator.
33022 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
33023 VALL_NO_V2Q mode iterator.
33024 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
33025
33026 2017-03-09 Martin Liska <mliska@suse.cz>
33027
33028 PR tree-optimization/79631
33029 * tree-chkp-opt.c (chkp_is_constant_addr): Call
33030 tree_int_cst_sign_bit just for INTEGER constants.
33031
33032 2017-03-09 Martin Liska <mliska@suse.cz>
33033
33034 PR target/65705
33035 PR target/69804
33036 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
33037 sanitizers.
33038
33039 2017-03-09 Marek Polacek <polacek@redhat.com>
33040
33041 PR c++/79672
33042 * tree.c (inchash::add_expr): Handle TREE_VEC.
33043
33044 2017-03-09 Martin Liska <mliska@suse.cz>
33045
33046 PR ipa/79764
33047 (chkp_narrow_size_and_offset): New function.
33048 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
33049 (void chkp_parse_bit_field_ref): New function.
33050 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
33051 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
33052
33053 2017-03-09 Martin Liska <mliska@suse.cz>
33054
33055 PR ipa/79761
33056 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
33057 (chkp_find_bounds_1): Remove gcc_unreachable.
33058
33059 2017-03-09 Jakub Jelinek <jakub@redhat.com>
33060
33061 PR sanitizer/79944
33062 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
33063 BUILT_IN_SYNC*, determine the access type from the size suffix and
33064 always build a MEM_REF with that type. Handle forgotten
33065 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
33066
33067 PR target/79932
33068 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
33069 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
33070 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
33071 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
33072 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
33073 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
33074 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
33075 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
33076 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
33077 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
33078 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
33079 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
33080 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
33081 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
33082 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
33083 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
33084 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
33085 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
33086 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
33087 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
33088 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
33089 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
33090 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
33091 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
33092 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
33093 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
33094 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
33095 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
33096 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
33097 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
33098 definitions outside of __OPTIMIZE__ guarded section.
33099
33100 PR target/79932
33101 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
33102 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
33103 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
33104 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
33105 guarded section.
33106
33107 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
33108
33109 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
33110 ("vfenez<mode>"): Add missing constraints.
33111
33112 2017-03-08 Martin Sebor <msebor@redhat.com>
33113
33114 PR target/79928
33115 * config/nds32/nds32.c (nds32_option_override):
33116 Fix misspelled diagnostic.
33117
33118 2017-03-08 Jakub Jelinek <jakub@redhat.com>
33119
33120 PR c/79940
33121 * gimplify.c (gimplify_omp_for): Replace index var in outer
33122 taskloop statement with an artificial variable and add
33123 OMP_CLAUSE_PRIVATE clause for it.
33124
33125 2017-03-08 Richard Biener <rguenther@suse.de>
33126
33127 PR tree-optimization/79955
33128 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
33129 for accesses that are completely outside of the variable.
33130
33131 2017-03-08 Andrew Haley <aph@redhat.com>
33132
33133 PR tree-optimization/79943
33134 * tree-ssa-loop-split.c (compute_new_first_bound): When
33135 calculating the new upper bound, (END-BEG) should be added, not
33136 subtracted.
33137
33138 2017-03-08 Jakub Jelinek <jakub@redhat.com>
33139
33140 * config/avr/avr.md (setmemhi): Make sure match_dup
33141 operand number comes before match_scratch.
33142
33143 2017-03-08 Richard Biener <rguenther@suse.de>
33144
33145 PR tree-optimization/79920
33146 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
33147 with ncopies == 1 to ...
33148 (vect_transform_slp_perm_load): ... here. Properly compute
33149 all element loads by iterating VF times over the group. Do
33150 not handle ncopies (computed in a broken way) in
33151 vect_create_mask_and_perm.
33152
33153 2017-03-08 Jakub Jelinek <jakub@redhat.com>
33154
33155 PR sanitizer/79904
33156 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
33157 is a uniform vector, use uniform_vector_p return value instead of
33158 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
33159
33160 2017-03-07 Marek Polacek <polacek@redhat.com>
33161
33162 PR middle-end/79809
33163 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
33164 (alloca_call_type): Likewise.
33165
33166 2017-03-07 Martin Liska <mliska@suse.cz>
33167
33168 * gcov.c (process_args): Put comment to correct location.
33169
33170 2017-03-07 Martin Liska <mliska@suse.cz>
33171
33172 PR middle-end/68270
33173 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
33174 Use array_at_struct_end_p instead of DECL_CHAIN (field).
33175 (chkp_narrow_bounds_for_field): Likewise.
33176 (chkp_parse_array_and_component_ref): Pass one more argument to
33177 call.
33178
33179 2017-03-07 Richard Biener <rguenther@suse.de>
33180
33181 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
33182 preheaders.
33183
33184 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
33185
33186 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
33187 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
33188
33189 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33190
33191 PR c/79855
33192 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
33193 to end of description.
33194 (PARAM_MAX_STORES_TO_MERGE): Likewise.
33195
33196 2017-03-07 Jakub Jelinek <jakub@redhat.com>
33197
33198 PR rtl-optimization/79901
33199 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
33200 ...
33201 (*avx512f_<code><mode>3<mask_name>): ... this.
33202 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
33203 iterator instead of VI8_AVX2_AVX512BW.
33204
33205 PR rtl-optimization/79901
33206 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
33207 min/max expander, expand it using expand_vec_cond_expr.
33208
33209 PR sanitizer/79897
33210 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
33211 temporary.
33212
33213 2017-03-06 Jakub Jelinek <jakub@redhat.com>
33214
33215 PR c++/79821
33216 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
33217 to void * for PCH reasons.
33218 * dwarf2out.c (output_loc_operands, output_die): Cast
33219 v.val_vec.array to unsigned char *.
33220
33221 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
33222
33223 PR target/77850
33224 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
33225 vector types.
33226
33227 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
33228
33229 PR rtl-optimization/79571
33230 * lra-constraints.c (process_alt_operands): Calculate static
33231 reject and subtract it from overall when only addresses will be
33232 reloaded.
33233
33234 2017-03-06 Julia Koval <julia.koval@intel.com>
33235
33236 PR target/79793
33237 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
33238 incoming stack boundary to 128 for 64-bit targets.
33239
33240 2017-03-06 Richard Biener <rguenther@suse.de>
33241
33242 PR tree-optimization/79894
33243 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
33244 to NULL after folding it.
33245
33246 2017-03-06 Richard Biener <rguenther@suse.de>
33247
33248 PR tree-optimization/79824
33249 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
33250 check disabling peeling for gaps.
33251
33252 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
33253
33254 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
33255 attributes): Document gettimeofday.
33256
33257 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
33258
33259 * config/s390/s390.c (s390_option_override_internal): Set
33260 PARAM_MIN_VECT_LOOP_BOUND
33261
33262 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
33263
33264 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
33265 * config/s390/s390.md: Likewise.
33266
33267 2017-03-06 Jakub Jelinek <jakub@redhat.com>
33268
33269 PR target/79812
33270 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
33271 (<avx2_avx512>_perm<mode>): Rename to ...
33272 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
33273 of VI8F_256_512.
33274 (<avx512>_perm<mode>_mask): Rename to ...
33275 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
33276 of VI8F_256_512.
33277 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
33278 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
33279 instead of VI8F_256_512.
33280 (avx512f_perm<mode>): New define_expand.
33281 (avx512f_perm<mode>_mask): Likewise.
33282 (avx512f_perm<mode>_1<mask_name>): New define_insn.
33283 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
33284
33285 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
33286
33287 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
33288 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
33289 if_then_else.
33290 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
33291
33292 2017-03-06 Martin Liska <mliska@suse.cz>
33293
33294 PR sanitize/79783
33295 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
33296 when having a SSA NAME w/o VAR_DECL assigned to it.
33297
33298 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
33299
33300 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
33301 msa_dpsub_<su>_d): Fix MODE for vec_select.
33302
33303 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
33304
33305 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
33306 argument.
33307 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
33308
33309 2017-03-06 Richard Biener <rguenther@suse.de>
33310
33311 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
33312 * plugin.c (register_plugin_info): Likewise.
33313 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
33314
33315 2017-03-05 Jakub Jelinek <jakub@redhat.com>
33316
33317 * config/i386/sse.md (sse_storehps, sse_storelps,
33318 avx_<castmode><avxsizesuffix>_<castmode>,
33319 avx512f_<castmode><avxsizesuffix>_<castmode>,
33320 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
33321 in condition that at least one operand is not a MEM.
33322
33323 2017-03-03 Jakub Jelinek <jakub@redhat.com>
33324
33325 PR middle-end/79805
33326 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
33327 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
33328 ECF_NOTHROW.
33329 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
33330 gimple_call_nothrow_p flag based on whether original builtin can throw.
33331 If it can, emit following stmts on the fallthrough edge.
33332 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
33333 don't create new bb if inserting just debug stmts on the edge, try to
33334 insert them on the fallthru bb or just reset debug stmts.
33335
33336 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
33337
33338 PR target/43763
33339 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
33340 restore recog_data (including the operand rtxes inside it) around
33341 the call to get_insn_template.
33342
33343 2017-03-03 Martin Sebor <msebor@redhat.com>
33344
33345 PR tree-optimization/79699
33346 * context.c (context::~context): Free MPFR caches to avoid
33347 a memory leak on program exit.
33348
33349 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33350
33351 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
33352 Use wide_int::ulow () instead of .elt (0).
33353
33354 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
33355
33356 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
33357 (*pushxf): Limit oF constraint to 32bit targets and add oC
33358 constraint for 64bit targets.
33359 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
33360 (*pushdf): Change rmF constraint to rmC.
33361
33362 2017-03-03 Martin Liska <mliska@suse.cz>
33363
33364 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
33365 Remove unused variable.
33366
33367 2017-03-03 Jakub Jelinek <jakub@redhat.com>
33368
33369 PR target/79807
33370 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
33371 is a memory operand, increase num_memory.
33372 (ix86_expand_args_builtin): Likewise.
33373
33374 2017-03-03 Jan Hubicka <jh@suse.cz>
33375
33376 PR lto/79760
33377 * ipa-devirt.c (maybe_record_node): Properly handle
33378 __cxa_pure_virtual visibility.
33379
33380 2017-03-03 Martin Liska <mliska@suse.cz>
33381
33382 PR tree-optimization/79803
33383 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
33384 assert.
33385 (pass_loop_prefetch::execute): Disabled optimization if an
33386 assumption about L1 cache size is not met.
33387
33388 2017-03-03 Martin Liska <mliska@suse.cz>
33389
33390 PR rtl-optimization/79574
33391 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
33392 (hash_scan_set): Likewise.
33393 (dump_hash_table): Likewise.
33394 (hoist_code): Likewise.
33395
33396 2017-03-03 Richard Biener <rguenther@suse.de>
33397
33398 * fixed-value.c (fixed_from_string): Restore use of elt (1)
33399 in place of uhigh ().
33400 (fixed_convert_from_real): Likewise.
33401
33402 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
33403
33404 PR target/79514
33405 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
33406
33407 2017-03-03 Richard Biener <rguenther@suse.de>
33408
33409 PR middle-end/79818
33410 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
33411 TYPE_OVERFLOW_UNDEFINED check.
33412
33413 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33414
33415 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
33416 numbers.
33417 (vector_ae_<mode>_p): Likewise.
33418 (vector_nez_<mode>_p): Likewise.
33419 (vector_ne_v2di_p): Likewise.
33420 (vector_ae_v2di_p): Likewise.
33421 (vector_ne_<mode>_p): Likewise.
33422 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
33423 numbers.
33424 (vsx_tsqrt<mode>2_fe): Likewise.
33425
33426 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
33427
33428 PR target/79514
33429 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
33430
33431 2017-03-02 Jakub Jelinek <jakub@redhat.com>
33432
33433 PR rtl-optimization/79780
33434 * cprop.c (one_cprop_pass): When second and further conditional trap
33435 in a single basic block is turned into an unconditional trap, turn it
33436 into a deleted note to avoid RTL verification failures.
33437
33438 2017-03-02 Richard Biener <rguenther@suse.de>
33439
33440 * fold-const.c (const_binop): Use ulow () instead of elt (0).
33441
33442 2017-03-02 Richard Biener <rguenther@suse.de>
33443
33444 PR tree-optimization/79345
33445 PR c++/42000
33446 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
33447 param and abort the walk, returning -1 if it is hit.
33448 (walk_aliased_vdefs): Take a limit param and pass it on.
33449 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
33450 defaulting to 0 and return a signed int.
33451 * tree-ssa-uninit.c (struct check_defs_data): New struct.
33452 (check_defs): New helper.
33453 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
33454 about uninitialized memory.
33455 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
33456 bogus uninitialized warning.
33457 (fixed_convert_from_real): Likewise.
33458
33459 2017-03-02 Bin Cheng <bin.cheng@arm.com>
33460
33461 PR tree-optimization/66768
33462 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
33463 iv_use if base object can't be determined.
33464
33465 2017-03-02 Jakub Jelinek <jakub@redhat.com>
33466
33467 PR tree-optimization/79345
33468 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
33469 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
33470 (get_pattern_stats): Initialize it.
33471 * genemit.c (gen_expand): Verify match_scratch numbers come after
33472 match_operand/match_dup numbers.
33473 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
33474 match_scratch numbers.
33475 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
33476 Likewise.
33477 * config/s390/s390.md (trunctdsd2): Likewise.
33478
33479 2017-03-02 Richard Biener <rguenther@suse.de>
33480
33481 * wide-int.h (wide_int_storage::operator=): Implement in terms
33482 of wi::copy.
33483
33484 2017-03-02 Richard Biener <rguenther@suse.de>
33485
33486 PR tree-optimization/79777
33487 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
33488 the to insert expression to sth existing.
33489
33490 2017-03-01 Martin Sebor <msebor@redhat.com>
33491
33492 PR middle-end/79692
33493 * gimple-ssa-sprintf.c
33494 (directive::known_width_and_precision): New function.
33495 (format_integer): Use it.
33496 (get_mpfr_format_length): Consider the full range of precision
33497 when computing %g output with the # flag. Set the likely byte
33498 count to 3 rather than 1 when precision is indeterminate.
33499 (format_floating): Correct the lower bound of precision.
33500
33501 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33502
33503 * doc/invoke.texi: Document default code model for 64-bit Linux.
33504
33505 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
33506
33507 PR target/79752
33508 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
33509 udiv rather than div since input pattern is unsigned.
33510
33511 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
33512
33513 * config/i386/i386.c (print_reg): Warn for values of
33514 unsupported size in integer register.
33515
33516 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
33517
33518 PR target/79439
33519 * config/rs6000/predicates.md (current_file_function_operand): Do
33520 not allow self calls to be local if the function is replaceable.
33521
33522 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
33523
33524 PR target/79395
33525 * config/rs6000/altivec.h (vec_ctz and others): Change the
33526 preprocessor macro that controls conditional compilation from
33527 _ARCH_PWR9 to __POWER9_VECTOR__.
33528 (vec_all_ne): Change parameterization of __altivec_scalar_pred
33529 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
33530 control (instead of _ARCH_PWR9 control) so that template
33531 definition uses power9-specific function.
33532 (vec_any_eq): Likewise.
33533 (vec_all_ne): Change macro definition to use a power9-specific
33534 expansion under #ifdef __POWER9_VECTOR__ control (instead of
33535 _ARCH_PWR9 control).
33536 (vec_any_eq) Likewise.
33537 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
33538 expansion for CMPNEF to remove support for xvcmpnesp instruction.
33539 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
33540 support for xvcmpnedp instruction.
33541 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
33542 macro expansion so that Power9 implementation of vec_all_ne does
33543 not use the AltiVec predicate framework.
33544 (VCMPNEH_P): Likewise.
33545 (VCMPNEW_P): Likewise.
33546 (VCMPNED_P): Likewise.
33547 (VCMPNEFP_P): Likewise.
33548 (VCMPNEDP_P): Likewise.
33549 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
33550 implementation of vec_any_eq to not use AltiVec predicate
33551 framework.
33552 (VCMPAEH_P): Likewise.
33553 (VCMPAEW_P): Likewise.
33554 (VCMPAED_P): Likewise.
33555 (VCMPAEFP_P): Likewise.
33556 (VCMPAEDP_P): Likewise.
33557 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
33558 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
33559 not use the AltiVec predicate framework.
33560 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
33561 of vec_any_eq to not use AltiVec predicate framework.
33562 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
33563 support for predefined __POWER9_VECTOR__ macro to indicate that
33564 Power9 instruction selection is enabled.
33565 (altivec_overloaded_builtins): Remove extraneous
33566 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
33567 function argument types RS6000_BTI_bool_V16QI and
33568 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
33569 entry for overloaded function argument types RS6000_BTI_bool_V4SI
33570 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
33571 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
33572 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
33573 Power9 for implementations of vec_cmpne. Change the signature for
33574 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
33575 (representing vec_all_ne) to remove the previously described first
33576 argument of type RS6000_BTI_INTSI, as this was an artifact of
33577 reliance on the AltiVec predicate framework, which is no longer
33578 used in the implementation of these functions. Add
33579 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
33580 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
33581 since, unlike the AltiVec predicate framework implementation, we
33582 do not share function descriptors between vec_alle and vec_anyeq.
33583 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
33584 set of modes that receive special treatment even when
33585 TARGET_P9_VECTOR is true. The special treatment emits code that
33586 does not depend on Power9 instructions.
33587 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
33588 define_expand to not rely on AltiVec predicate framework.
33589 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
33590 function.
33591 (vector_ne_v2di_p): Change this define_expand to not rely on
33592 AltiVec predicate framework.
33593 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
33594 function.
33595 (vector_ne_<mode>_p): Change this define_expand to not rely on
33596 AltiVec predicate framework.
33597 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
33598 function.
33599 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
33600 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
33601 define_insn pattern.
33602 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
33603 define_insn pattern because the xvcmpne<VSs>. instruction is not
33604 supported.
33605 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
33606 instruction is not supported.
33607
33608 2017-03-01 Jakub Jelinek <jakub@redhat.com>
33609
33610 * config/nvptx/nvptx.c: Include intl.h.
33611
33612 2017-03-01 Martin Jambor <mjambor@suse.cz>
33613
33614 PR lto/78140
33615 * ipa-prop.h (ipa_bits): Removed field known.
33616 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
33617 to pointers. Adjusted their comments to warn about their sharing.
33618 (ipcp_transformation_summary): Change bits to a vector of pointers.
33619 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
33620 (ipa_get_ipa_bits_for_value): Declare.
33621 * tree-vrp.h (value_range): Mark as GTY((for_user)).
33622 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
33623 (ipa_bits_hash_table): Likewise.
33624 (ipa_vr_ggc_hash_traits): Likewise.
33625 (ipa_vr_hash_table): Likewise.
33626 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
33627 being pointers and vr_known being removed.
33628 (ipa_set_jf_unknown): Likewise.
33629 (ipa_get_ipa_bits_for_value): New function.
33630 (ipa_set_jfunc_bits): Likewise.
33631 (ipa_get_value_range): New overloaded functions.
33632 (ipa_set_jfunc_vr): Likewise.
33633 (ipa_compute_jump_functions_for_edge): Use the above functions to
33634 construct bits and vr parts of jump functions.
33635 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
33636 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
33637 exist.
33638 (ipcp_grow_transformations_if_necessary): Also allocate
33639 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
33640 exist.
33641 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
33642 them. Fix too long lines.
33643 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
33644 vr_known being removed.
33645 (ipa_read_jump_function): Use new setter functions to construct bits
33646 and vr parts of jump functions or set them to NULL.
33647 (write_ipcp_transformation_info): Adjust for bits being pointers.
33648 (read_ipcp_transformation_info): Likewise.
33649 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
33650 space.
33651 Include gt-ipa-prop.h.
33652 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
33653 being pointers.
33654 (ipcp_store_bits_results): Likewise.
33655 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
33656 Do not write to existing jump functions but use a temporary instead.
33657
33658 2017-03-01 Jakub Jelinek <jakub@redhat.com>
33659
33660 PR c++/79681
33661 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
33662 attempt to use its first operand as BIT_FIELD_REF base.
33663
33664 2017-03-01 Richard Biener <rguenther@suse.de>
33665
33666 PR middle-end/79721
33667 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
33668 interpolating formula in wrapping arithmetic.
33669 (chrec_apply): Convert chrec_evaluate return value to wanted type.
33670
33671 2017-03-01 Jakub Jelinek <jakub@redhat.com>
33672
33673 PR tree-optimization/79734
33674 * tree-vect-generic.c (expand_vector_condition): Optimize
33675 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
33676 Handle VEC_COND_EXPR where comparison has different inner width from
33677 type's inner width.
33678
33679 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
33680
33681 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
33682 markup, and similar issues. Remove @opindex entries for things
33683 that aren't options. Add missing -mmpy-option entries.
33684
33685 2017-02-28 Jakub Jelinek <jakub@redhat.com>
33686
33687 PR tree-optimization/79737
33688 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
33689 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
33690 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
33691 instead of byte_size. Formatting fix.
33692 (shift_bytes_in_array_right): Formatting fix.
33693
33694 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
33695
33696 PR target/79749
33697 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
33698 condition on optimize for the leaf function test.
33699
33700 2017-02-28 Martin Liska <mliska@suse.cz>
33701
33702 PR lto/79625
33703 * read-rtl-function.c (function_reader::handle_unknown_directive):
33704 Bail out when one uses -flto.
33705
33706 2017-02-28 Martin Liska <mliska@suse.cz>
33707
33708 * common.opt: Replace space with tabular for options of <number>
33709 type.
33710 * config/i386/i386.opt: Show <number> value for
33711 -mlarge-data-threshold.
33712 * opts.c (print_filtered_help): Do not display number in hexadecimal
33713 format.
33714
33715 2017-02-28 Martin Liska <mliska@suse.cz>
33716
33717 * common.opt: Fix --help=option -Q for options which are of
33718 an enum type.
33719
33720 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
33721
33722 * config/i386/i386.c (print_reg): Error out for values
33723 of 8-bit size in invalid integer register.
33724
33725 2017-02-28 Martin Sebor <msebor@redhat.com>
33726
33727 PR tree-optimization/79691
33728 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
33729
33730 2017-02-28 Jakub Jelinek <jakub@redhat.com>
33731
33732 PR target/79729
33733 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
33734 gcc_unreachable with output_operand_lossage.
33735
33736 2017-02-28 Richard Biener <rguenther@suse.de>
33737
33738 PR tree-optimization/79740
33739 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
33740 inserts.
33741 (visit_nary_op): Insert the nary into the hashtable if we
33742 pattern-matched sth.
33743 * tree-ssa-pre.c (eliminate_insert): Robustify.
33744
33745 2017-02-28 Richard Biener <rguenther@suse.de>
33746
33747 PR middle-end/79731
33748 * fold-const.c (decode_field_reference): Reject out-of-bound
33749 accesses.
33750
33751 2017-02-28 Jakub Jelinek <jakub@redhat.com>
33752
33753 * config/i386/i386.c: Include intl.h.
33754 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
33755 instead of just cond ? "..." : "...".
33756 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
33757 * coverage.c (read_counts_file): Likewise.
33758 * omp-offload.c: Include intl.h.
33759 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
33760 of just cond ? "..." : "...".
33761 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
33762 of just cond ? "..." : "...".
33763
33764 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
33765
33766 PR target/79742
33767 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
33768 entry, if present.
33769 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
33770 'tune for' CPU name.
33771 * config/arm/arm-cpu-data.h: Regenerated.
33772
33773 2017-02-28 Richard Biener <rguenther@suse.de>
33774
33775 PR tree-optimization/79732
33776 * tree-inline.c (expand_call_inline): Do not shadow var.
33777
33778 2017-02-28 Richard Biener <rguenther@suse.de>
33779
33780 PR tree-optimization/79723
33781 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
33782 address-space properly.
33783
33784 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
33785
33786 * doc/optinfo.texi (Optimization groups): Fix option used for
33787 OPTGROUP_ALL.
33788 * doc/invoke.texi (-fopt-info): Document "omp".
33789 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
33790 (OPTGROUP_ALL): Add OPTGROUP_OMP.
33791 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
33792 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
33793 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
33794
33795 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
33796 all users.
33797 * dumpfile.c (optgroup_options): Instead of "openmp", associate
33798 OPTGROUP_OMP with "omp".
33799
33800 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
33801
33802 PR target/79544
33803 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
33804 for arithmetic shift of unsigned V2DI.
33805
33806 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
33807
33808 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
33809 arc/linux.h headers.
33810 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
33811 (LINK_SPEC): Likewise.
33812 (ARC_TLS_EXTRA_START_SPEC): Likewise.
33813 (EXTRA_SPECS): Likewise.
33814 (STARTFILE_SPEC): Likewise.
33815 (ENDFILE_SPEC): Likewise.
33816 (LIB_SPEC): Likewise.
33817 (TARGET_SDATA_DEFAULT): Likewise.
33818 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
33819 (MULTILIB_DEFAULTS): Likewise.
33820 (DWARF2_UNWIND_INFO): Likewise.
33821 * config/arc/big.h: New file.
33822 * config/arc/elf.h: Likewise.
33823 * config/arc/linux.h: Likewise.
33824 * config/arc/t-uClibc: Remove.
33825
33826 2017-02-27 Bin Cheng <bin.cheng@arm.com>
33827
33828 PR tree-optimization/77536
33829 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
33830 (tree_transform_and_unroll_loop): Use above function to compute the
33831 estimated niter of unrolled loop and use it when scaling profile.
33832 Also use count info rather than frequency if it's non-zero.
33833 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
33834 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
33835 (vect_transform_loop): Call above function.
33836
33837 2017-02-27 Richard Biener <rguenther@suse.de>
33838
33839 PR tree-optimization/45397
33840 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
33841 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
33842 (visit_nary_op): Add pattern matching for CSEing sign-changed
33843 or truncated operations with wider ones.
33844
33845 2017-02-27 Richard Biener <rguenther@suse.de>
33846
33847 PR tree-optimization/79690
33848 * tree-vect-stmts.c (vectorizable_store): Use vector type
33849 built from the DR with address-space.
33850
33851 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
33852
33853 * doc/invoke.texi (Optimize Options): Refine the description
33854 of asan-use-after-return.
33855
33856 2017-02-25 Alan Modra <amodra@gmail.com>
33857
33858 PR rtl-optimization/79584
33859 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
33860 base, not ad->base_term, the reg within base. Remove assertion
33861 that ad->base == ad->base_term. Replace gen_int_mode using
33862 bogus mode with const0_rtx.
33863
33864 2017-02-25 Jakub Jelinek <jakub@redhat.com>
33865
33866 PR middle-end/79396
33867 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
33868 FMA_EXPR like tcc_binary or tcc_unary.
33869
33870 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
33871
33872 PR debug/77589
33873 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
33874 bitfield.
33875 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
33876 (output_loc_operands): Handle DW_OP_call_ref and
33877 DW_OP_GNU_variable_value.
33878 (struct variable_value_struct): New type.
33879 (struct variable_value_hasher): Likewise.
33880 (variable_value_hash): New variable.
33881 (string_types): Remove.
33882 (copy_loc_descr): New function.
33883 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
33884 (prepend_loc_descr_to_each): New function.
33885 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
33886 instead of add_loc_descr_to_each if the first argument is single
33887 location list and the second has multiple.
33888 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
33889 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
33890 when looking for variable value which doesn't have other location info.
33891 (loc_list_from_tree): Formatting fix.
33892 (gen_array_type_die): Simplify DW_AT_string_length handling.
33893 (adjust_string_types): Remove.
33894 (gen_subprogram_die): Don't call adjust_string_types nor test/set
33895 string_types. Call resolve_variable_values.
33896 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
33897 (resolve_addr_in_expr): Likewise. Add A argument.
33898 (copy_deref_exprloc): Remove deref argument. Adjust for the
33899 original expression being DW_OP_GNU_variable_value with optionally
33900 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
33901 optionally after it.
33902 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
33903 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
33904 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
33905 (variable_value_hasher::hash, variable_value_hasher::equal): New
33906 methods.
33907 (resolve_variable_value_in_expr, resolve_variable_value,
33908 resolve_variable_values, note_variable_value_in_expr,
33909 note_variable_value): New functions.
33910 (dwarf2out_early_finish): Call note_variable_value on all toplevel
33911 DIEs.
33912
33913 2017-02-24 Jakub Jelinek <jakub@redhat.com>
33914
33915 PR c/79677
33916 * opts.h (handle_generated_option): Add GENERATED_P argument.
33917 * opts-common.c (handle_option): Adjust function comment.
33918 (handle_generated_option): Add GENERATED_P argument, pass it to
33919 handle_option.
33920 (control_warning_option): Pass false to handle_generated_option
33921 GENERATED_P.
33922 * opts.c (maybe_default_option): Pass true to handle_generated_option
33923 GENERATED_P.
33924 * optc-gen.awk: Likewise.
33925
33926 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
33927
33928 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
33929 a REG, look at the REG it is a SUBREG of.
33930 (splitter for cmpeqsi_t): Ditto.
33931
33932 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
33933
33934 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
33935 the special USEs with the pattern of the insn, not the insn itself.
33936
33937 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
33938
33939 PR target/79473
33940 * doc/invoke.texi: Document -mload-store-pairs.
33941
33942 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
33943 Sandra Loosemore <sandra@codesourcery.com>
33944
33945 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
33946 argument isn't a CONST_INT.
33947 (nios2_alternate_compare_const): Assert op is a CONST_INT.
33948 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
33949 (nios2_validate_compare): Bypass alternate compare logic if *op2
33950 is not a CONST_INT.
33951 (ldstwm_operation_p): Return false if first_base is not a REG or
33952 if first_offset is not a CONST_INT.
33953
33954 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
33955
33956 * config/cris/cris.md: Use correct operand in a define_peephole2.
33957
33958 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
33959
33960 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
33961
33962 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
33963
33964 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
33965 this_insn if it is an INSN or JUMP_INSN.
33966 (force_offsettable): Look at base, not at addr.
33967 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
33968 on things that aren't necessarily CONST_INTs.
33969
33970 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
33971
33972 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
33973 -mfpmath=sse is the default also for x86-32 targets with SSE2
33974 instruction set when @option{-ffast-math} is enabled
33975
33976 2017-02-24 Jeff Law <law@redhat.com>
33977
33978 PR rtl-optimizatoin/79286
33979 * ira.c (update_equiv_regs): Drop may_trap_p exception to
33980 dominance test.
33981
33982 2017-02-24 Richard Biener <rguenther@suse.de>
33983
33984 PR tree-optimization/79389
33985 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
33986 debug insns.
33987
33988 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
33989
33990 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
33991 function comment to reflect reality.
33992 (loop_exits_before_overflow): Fix typo in function description.
33993
33994 2017-02-24 Richard Biener <rguenther@suse.de>
33995
33996 PR tree-optimization/79389
33997 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
33998 properly that a threading opportunity exists. Detect conditional
33999 copy/constant propagation opportunities.
34000
34001 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
34002
34003 * config/visium/visium.md (type): Add trap.
34004 (b): New mode attribute.
34005 (*btst): Rename into...
34006 (*btst<mode>): ...this and adjust.
34007 (*cbranchsi4_btst_insn): Rename into...
34008 (*cbranch<mode>4_btst_insn): ...this and adjust.
34009 (trap): New define_insn.
34010
34011 2017-02-23 Jakub Jelinek <jakub@redhat.com>
34012
34013 PR tree-optimization/79389
34014 * ifcvt.c (struct noce_if_info): Add rev_cond field.
34015 (noce_reversed_cond_code): New function.
34016 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
34017 reversed_comparison_code. Formatting fix.
34018 (noce_try_store_flag): Test rev_cond != NULL in addition to
34019 reversed_comparison_code.
34020 (noce_try_store_flag_constants): Likewise.
34021 (noce_try_store_flag_mask): Likewise.
34022 (noce_try_addcc): Use rev_cond if non-NULL instead of
34023 reversed_comparison_code.
34024 (noce_try_cmove_arith): Likewise. Formatting fixes.
34025 (noce_try_minmax, noce_try_abs): Clear rev_cond.
34026 (noce_find_if_block): Initialize rev_cond.
34027 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
34028 instead of false as last argument never attempt to reverse it
34029 afterwards.
34030
34031 2017-02-23 Bin Cheng <bin.cheng@arm.com>
34032
34033 PR tree-optimization/79663
34034 * tree-predcom.c (combine_chains): Process refs in reverse order
34035 only for ZERO length chains, and add explaining comment.
34036
34037 2017-02-23 Jeff Law <law@redhat.com>
34038
34039 PR tree-optimization/79578
34040 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
34041 in call to operand_equal_p.
34042
34043 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
34044
34045 PR target/71017
34046 * config/i386/cpuid.h: Fix another undefined behavior.
34047
34048 2017-02-23 Richard Biener <rguenther@suse.de>
34049
34050 PR tree-optimization/79683
34051 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
34052 vector types for data-refs.
34053
34054 2017-02-23 Martin Liska <mliska@suse.cz>
34055
34056 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
34057
34058 2017-02-23 Jakub Jelinek <jakub@redhat.com>
34059
34060 PR middle-end/79665
34061 * internal-fn.c (get_range_pos_neg): Moved to ...
34062 * tree.c (get_range_pos_neg): ... here. No longer static.
34063 * tree.h (get_range_pos_neg): New prototype.
34064 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
34065 are known to be in between 0 and signed maximum inclusive, try to
34066 expand both unsigned and signed divmod and use the cheaper one from
34067 those.
34068
34069 2017-02-22 Jeff Law <law@redhat.com>
34070
34071 PR tree-optimization/79578
34072 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
34073 to compare base operands.
34074
34075 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
34076
34077 PR target/79211
34078 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
34079 gpc_reg_operand instead of fpr_reg_operand.
34080
34081 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
34082
34083 * config/mips/mips.c (mips_return_in_memory): Force FP
34084 vector types to be returned in memory for o32 ABI.
34085
34086 2017-02-22 Jakub Jelinek <jakub@redhat.com>
34087
34088 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
34089 instead of DW_TAG_member for static data member declarations and don't
34090 set no_linkage_name for static inline data members.
34091 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
34092 to DW_TAG_member.
34093
34094 2017-02-22 Martin Liska <mliska@suse.cz>
34095
34096 * doc/invoke.texi: Replace inequality signs with square brackets
34097 for -Wnormalized.
34098
34099 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
34100
34101 PR target/78660
34102 * lra-constraints.c (simplify_operand_subreg): Handle
34103 WORD_REGISTER_OPERATIONS targets.
34104
34105 2017-02-22 Jakub Jelinek <jakub@redhat.com>
34106
34107 PR target/70465
34108 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
34109 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
34110 elimination by swapping fld*.
34111
34112 2017-02-22 Richard Biener <rguenther@suse.de>
34113
34114 PR tree-optimization/79673
34115 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
34116 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
34117 irrelevant address-space qualifiers and avoiding a
34118 ADDR_SPACE_CONVERT_EXPR from fold_convert.
34119
34120 2017-02-22 Richard Biener <rguenther@suse.de>
34121
34122 PR tree-optimization/79666
34123 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
34124 to not symbolically negate if that may introduce undefined
34125 overflow.
34126
34127 2017-02-22 Martin Liska <mliska@suse.cz>
34128
34129 PR lto/79587
34130 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
34131 * data-streamer-out.c (streamer_write_gcov_count_stream):
34132 Likewise.
34133 * value-prof.c (stream_out_histogram_value): Make assert more
34134 precise based on type of counter.
34135
34136 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
34137
34138 PR target/79593
34139 * config/i386/i386.md (standard_x87sse_constant_load splitter):
34140 Use nonimmediate_operand instead of memory_operand for operand 1.
34141 (float-extend standard_x87sse_constant_load splitter): Ditto.
34142
34143 2017-02-21 Jeff Law <law@redhat.com>
34144
34145 PR tree-optimization/79621
34146 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
34147 blocks with edges to themselves.
34148
34149 2017-02-21 Jakub Jelinek <jakub@redhat.com>
34150
34151 PR target/79633
34152 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
34153 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
34154 Use gimple_call_builtin_p.
34155
34156 PR target/79570
34157 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
34158 on temporarily removed DEBUG_INSNs.
34159
34160 PR tree-optimization/79649
34161 * tree-loop-distribution.c (classify_partition): Give up on
34162 non-generic address space loads/stores.
34163
34164 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
34165
34166 * doc/loop.texi (Loop manipulation): Remove nonexistent
34167 tree_ssa_loop_version from the documentation.
34168 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
34169
34170 2017-02-21 Jakub Jelinek <jakub@redhat.com>
34171
34172 PR target/79494
34173 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
34174 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
34175 * config/rs6000/rs6000.c: Include except.h.
34176 (rs6000_expand_split_stack_prologue): Call
34177 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
34178
34179 2017-02-21 Martin Jambor <mjambor@suse.cz>
34180
34181 PR lto/79579
34182 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
34183 have been analyzed.
34184
34185 2017-02-21 Martin Jambor <mjambor@suse.cz>
34186
34187 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
34188 for backward compatibility only.
34189 * doc/invoke.texi (Option Summary): Remove all references to
34190 -fipa-cp-alignment.
34191
34192 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
34193
34194 PR target/78660
34195 Revert:
34196 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
34197
34198 * lra-constraints.c (curr_insn_transform): Handle
34199 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
34200
34201 2017-02-21 Martin Liska <mliska@suse.cz>
34202
34203 * config/i386/i386.opt: Replace -masm-dialect with -masm.
34204
34205 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
34206
34207 PR translation/79638
34208 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
34209
34210 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
34211
34212 PR ada/67205
34213 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
34214 (arm_function_ok_for_sibcall): Return false for an indirect call by
34215 descriptor if all the argument registers are used.
34216 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
34217 alignment of the function.
34218
34219 2017-02-21 Jakub Jelinek <jakub@redhat.com>
34220
34221 PR tree-optimization/61441
34222 * simplify-rtx.c (simplify_const_unary_operation): For
34223 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
34224 the sNaN unmodified.
34225
34226 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
34227
34228 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
34229 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
34230 instead of SYSTEM_HEADER_DIR.
34231
34232 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
34233 Martin Liška <mliska@suse.cz>
34234
34235 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
34236 Fix typos and grammar, use active voice, and clarify.
34237
34238 2017-02-20 Marek Polacek <polacek@redhat.com>
34239
34240 PR middle-end/79537
34241 * gimplify.c (gimplify_expr): Handle unused *&&L;.
34242
34243 PR sanitizer/79558
34244 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
34245
34246 2017-02-20 Jakub Jelinek <jakub@redhat.com>
34247
34248 PR target/79568
34249 * config/i386/i386.c (ix86_expand_builtin): Handle
34250 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
34251 ix86_builtins_isa[fcode].isa as a requirement of those
34252 flags and any other flag in the bitmask.
34253 (ix86_init_mmx_sse_builtins): Use 0 instead of
34254 ~OPTION_MASK_ISA_64BIT as mask.
34255 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
34256 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
34257 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
34258 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
34259
34260 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
34261
34262 PR target/78012
34263 * lra-constraints.c (split_reg): Check requested split mode
34264 is supported by the register.
34265
34266 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
34267
34268 * lra-constraints.c (simplify_operand_subreg): Remove early
34269 return false.
34270
34271 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
34272
34273 PR target/78660
34274 * lra-constraints.c (curr_insn_transform): Tighten condition
34275 for converting SUBREG reloads from OP_OUT to OP_INOUT.
34276
34277 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
34278
34279 PR target/78660
34280 * lra-constraints.c (curr_insn_transform): Handle
34281 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
34282
34283 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
34284
34285 Revert:
34286 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
34287
34288 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
34289
34290 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
34291
34292 PR c++/69523
34293 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
34294 description.
34295
34296 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34297
34298 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
34299 for FMA_EXPR.
34300
34301 2017-02-18 Jakub Jelinek <jakub@redhat.com>
34302
34303 * final.c (last_columnnum, override_columnnum): New variables.
34304 (final_start_function): Set last_columnnum, pass it to begin_prologue
34305 hook and pass 0 to dwarf2out_begin_prologue.
34306 (final_scan_insn): Update override_columnnum. Pass last_columnnum
34307 to source_line debug hook.
34308 (notice_source_line): Compute last_columnnum and for debug_column_info
34309 return true on column changes.
34310 * debug.h (struct gcc_debug_hooks): Add column argument to
34311 source_line and begin_prologue hooks.
34312 (debug_nothing_int_charstar_int_bool): Remove prototype.
34313 (debug_nothing_int_int_charstar,
34314 debug_nothing_int_int_charstar_int_bool): New prototypes.
34315 (dwarf2out_begin_prologue): Add column argument.
34316 * debug.c (do_nothing_debug_hooks): Adjust source_line and
34317 begin_prologue hooks.
34318 (debug_nothing_int_charstar_int_bool): Remove.
34319 (debug_nothing_int_int_charstar,
34320 debug_nothing_int_int_charstar_int_bool): New functions.
34321 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
34322 through to dwarf2out_source_line.
34323 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
34324 (dwarf2out_source_line): Add column argument, emit it if requested.
34325 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
34326 arguments.
34327 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
34328 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
34329 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
34330 through to dwarf2out_begin_prologue.
34331 (vmsdbgout_source_line): Add column argument, pass it through to
34332 dwarf2out_source_line.
34333 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
34334 dbxout_source_line caller.
34335 (dbxout_source_line): Add column argument.
34336
34337 * common.opt (gno-column-info, gcolumn-info): New options.
34338 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
34339 (check_die): Also test for multiple DW_AT_decl_column attributes.
34340 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
34341 DW_AT_decl_column if requested.
34342 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
34343 if requested.
34344 (gen_variable_die): Likewise.
34345 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
34346 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
34347
34348 PR target/79569
34349 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
34350 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
34351 (ix86_handle_option): Handle OPT_m3dnowa.
34352 * doc/invoke.texi (-m3dnowa): Document.
34353 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
34354 -m3dnowa instead of -m3dnow -march=athlon.
34355
34356 PR target/79559
34357 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
34358 instead of gcc_assert for K, r and R code checks. Formatting fixes.
34359
34360 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34361
34362 PR target/79261
34363 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
34364 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
34365 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
34366 generator for vsx_xxpermdi_<mode>_be.
34367 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
34368 force big-endian semantics.
34369 (vsx_xxpermdi_<mode>_be): New define_expand with same
34370 implementation as previous version of vsx_xxpermdi_<mode>.
34371
34372 2017-02-17 Jakub Jelinek <jakub@redhat.com>
34373
34374 PR tree-optimization/79327
34375 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
34376 variable, its initialization and use.
34377
34378 2017-02-17 Julia Koval <julia.koval@intel.com>
34379
34380 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
34381 (OPTION_MASK_ISA_PKU_UNSET): New.
34382 (ix86_handle_option): Handle -mrdpid.
34383 * config/i386/cpuid.h (bit_RDPID): New.
34384 * config/i386/driver-i386.c (host_detect_local_cpu):
34385 Detect RDPID feature.
34386 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
34387 * config/i386/i386-c.c (ix86_target_macros_internal):
34388 Handle RDPID flag.
34389 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
34390 (ix86_valid_target_attribute_inner_p): Add "rdpid".
34391 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
34392 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
34393 * config/i386/i386.md (define_insn "rdpid"): New.
34394 * config/i386/i386.opt Add -mrdpid.
34395 * config/i386/immintrin.h (_rdpid_u32): New.
34396
34397 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
34398
34399 PR rtl-optimization/79541
34400 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
34401 instead of transforming it into USE.
34402
34403 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
34404
34405 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
34406 If HONOR_SNANS (SFmode) force the input to a register.
34407 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
34408 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
34409 an frsp or similar insn.
34410
34411 2017-02-17 Martin Liska <mliska@suse.cz>
34412
34413 PR rtl-optimization/79577
34414 * params.def (selsched-max-sched-times): Increase minimum to 1.
34415
34416 2017-02-17 Martin Liska <mliska@suse.cz>
34417
34418 PR rtl-optimization/79574
34419 * gcse.c (want_to_gcse_p): Prevent integer overflow.
34420
34421 2017-02-17 Martin Liska <mliska@suse.cz>
34422
34423 PR tree-optimization/79529
34424 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
34425 ssa_defined_default_def_p to handle cases which are implicitly
34426 defined.
34427 * tree-ssa.c (ssa_defined_default_def_p): New function.
34428 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
34429 which are implicitly defined.
34430 * tree-ssa.h (ssa_defined_default_def_p): Declare.
34431
34432 2017-02-17 Richard Biener <rguenther@suse.de>
34433
34434 PR middle-end/79576
34435 * params.def (max-ssa-name-query-depth): Limit to 10.
34436
34437 2017-02-17 Richard Biener <rguenther@suse.de>
34438
34439 PR tree-optimization/79552
34440 * tree-ssa-structalias.c (visit_loadstore): Properly verify
34441 default defs.
34442
34443 2017-02-17 Richard Biener <rguenther@suse.de>
34444
34445 PR bootstrap/79567
34446 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
34447
34448 2017-02-17 Marek Polacek <polacek@redhat.com>
34449
34450 PR middle-end/79536
34451 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
34452 (fold_negate_expr): New wrapper.
34453
34454 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
34455
34456 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
34457 Correct terminology and de-emphasize pre-standard behavior.
34458
34459 2017-02-16 Alan Modra <amodra@gmail.com>
34460
34461 PR rtl-optimization/79286
34462 * ira.c (def_dominates_uses): New function.
34463 (update_equiv_regs): Don't create an equivalence for insns that
34464 may trap where the register def does not dominate the use.
34465
34466 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
34467
34468 PR rtl-optimization/78127
34469 * lra.c (lra): Call lra_eliminate before finish the loop after
34470 lra_constraint.
34471
34472 2017-02-16 Richard Biener <rguenther@suse.de>
34473
34474 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
34475 isl/isl_val.h.
34476 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
34477 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
34478 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
34479 (isl_val_int_from_wi): New function.
34480 (extract_affine_gmp): Rename to ...
34481 (extract_affine_wi): ... this, take a widest_int.
34482 (extract_affine_int): Just wrap extract_affine_wi.
34483 (add_param_constraints): Use isl_val_int_from_wi.
34484 (add_loop_constraints): Likewise, and extract_affine_wi.
34485
34486 2017-02-15 Jeff Law <law@redhat.com>
34487
34488 PR middle-end/79521
34489 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
34490 ira_init_register_move_cost_if_necessary.
34491
34492 2017-02-15 Martin Sebor <msebor@redhat.com>
34493
34494 PR middle-end/32003
34495 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
34496 removed in a prior commit.
34497
34498 2017-02-15 Bin Cheng <bin.cheng@arm.com>
34499
34500 PR tree-optimization/79347
34501 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
34502 counters during peeling.
34503
34504 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
34505
34506 * Makefile.in (site.exp): Remove "set ISLVER".
34507
34508 2017-02-15 Jakub Jelinek <jakub@redhat.com>
34509
34510 PR target/79487
34511 * real.c (real_from_integer): Call real_convert even for decimal.
34512
34513 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34514
34515 PR target/79421
34516 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
34517
34518 2017-02-14 Andrew Pinski <apinski@cavium.com>
34519
34520 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
34521 cores and change the partno/implementer to be correct.
34522 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
34523 the 'B" as the implementer.
34524 * config/aarch64/aarch64-tune.md: Regenerate.
34525
34526 2017-02-14 Carl Love <cel@us.ibm.com>
34527
34528 * config/rs6000/rs6000.c: Add case statement entry to make the
34529 xvcvuxdsp built-in argument unsigned.
34530 * config/rs6000/vsx.md: Fix the source and return operand types so they
34531 match the instruction definitions from the ISA document. Fix typo
34532 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
34533 statement.
34534
34535 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
34536
34537 PR target/79282
34538 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
34539 member early_clobber_alts.
34540 * lra-lives.c (reg_early_clobber_p): New.
34541 (process_bb_lives): Use it.
34542 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
34543 (debug_operand_data): Initialize early_clobber_alts.
34544 (setup_operand_alternative): Set up early_clobber_alts.
34545 (collect_non_operand_hard_regs): Ditto. Pass early clobber
34546 alternatives to new_insn_reg.
34547 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
34548 it.
34549 (lra_update_insn_regno_info): Pass the new arg.
34550
34551 2017-02-14 Jakub Jelinek <jakub@redhat.com>
34552
34553 PR middle-end/79505
34554 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
34555 (new_oacc_loop_raw): Don't clear already cleared fields.
34556
34557 PR target/79481
34558 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
34559 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
34560 _mm512_prefetch_i64gather_ps): New inline functions and macros.
34561
34562 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
34563
34564 PR target/79495
34565 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
34566
34567 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
34568
34569 PR target/79498
34570 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
34571 the extra instruction to the right place to store 128-bit constant
34572 when needed.
34573
34574 2017-02-14 Martin Sebor <msebor@redhat.com>
34575
34576 PR middle-end/79448
34577 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
34578 warning for strings of unknown length.
34579
34580 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
34581
34582 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
34583
34584 2017-02-14 Jeff Law <law@redhat.com>
34585
34586 PR target/79404
34587 * ira-costs.c (scan_one_insn): Initialize register move costs
34588 for pseudos seen in USE/CLOBBER insns.
34589
34590 PR tree-optimization/79095
34591 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
34592 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
34593 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
34594 if the operands are known to be not equal, then the resulting range
34595 is ~[0,0].
34596 (intersect_ranges): If the new range is ~[0,0] and the old range is
34597 wide, then prefer ~[0,0].
34598 * tree-vrp.c (overflow_comparison_p_1): New function.
34599 (overflow_comparison_p): New function.
34600 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
34601 if NAME is used in an overflow test.
34602 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
34603 overflow check that can be expressed as an equality test, then adjust
34604 ops to be that equality test.
34605
34606 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34607
34608 * config/s390/s390-builtin-types.def: Remove flags argument.
34609 * config/s390/s390.c (s390_init_builtins): Likewise.
34610
34611 2017-02-14 Martin Liska <mliska@suse.cz>
34612
34613 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
34614 vector. Fix trailing white spaces.
34615
34616 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
34617
34618 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
34619 HFmode.
34620
34621 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34622
34623 PR rtl-optimization/68664
34624 * config/arm/arm.c (arm_sched_can_speculate_insn):
34625 New function. Declare prototype.
34626 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
34627
34628 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34629
34630 PR rtl-optimization/68664
34631 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
34632 New function.
34633 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
34634
34635 2017-02-14 Amit Pawar <amit.pawar@amd.com>
34636
34637 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
34638 max skip bytes for function, loop and jump.
34639
34640 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34641
34642 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
34643 ABS_EXPR for gimple dump.
34644
34645 2017-02-14 Jakub Jelinek <jakub@redhat.com>
34646
34647 PR target/79462
34648 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
34649
34650 PR tree-optimization/79408
34651 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
34652 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
34653 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
34654 also if rhs1 is INTEGER_CST.
34655
34656 2017-02-14 Richard Biener <rguenther@suse.de>
34657
34658 PR middle-end/79432
34659 * tree-into-ssa.c (insert_phi_nodes): When the function can
34660 have abnormal edges rewrite SSA names with broken use-def
34661 dominance out of SSA and register them for PHI insertion.
34662
34663 2017-02-13 Martin Sebor <msebor@redhat.com>
34664
34665 PR middle-end/79496
34666 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
34667 clearing info.nowrite flag when snprintf size argument is a range.
34668
34669 2017-02-13 Jakub Jelinek <jakub@redhat.com>
34670
34671 * cprop.c (cprop_jump): Add missing space in string literal.
34672 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
34673 (get_constraint_for_component_ref): Likewise.
34674 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
34675 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
34676 * lra-constraints.c (process_alt_operands): Likewise.
34677 * ipa-inline.c (inline_small_functions): Likewise.
34678 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
34679 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
34680 * trans-mem.c (diagnose_tm_1_op): Likewise.
34681 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
34682 (grid_parallel_clauses_gridifiable): Likewise.
34683
34684 * config/nvptx/mkoffload.c (process): Add space in between
34685 , and %d.
34686
34687 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
34688 "MOD4_SSE_REGS" and "ALL_REGS".
34689
34690 * spellcheck.c (test_data): Add , in between "foo" and "food".
34691
34692 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
34693
34694 PR target/79449
34695 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
34696 boundary crossing check and subsequent code generation agree.
34697
34698 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34699
34700 * config/aarch64/aarch64.c (has_memory_op): Delete.
34701 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
34702 has_memory_op.
34703
34704 2017-02-13 Jakub Jelinek <jakub@redhat.com>
34705
34706 PR rtl-optimization/79388
34707 PR rtl-optimization/79450
34708 * combine.c (distribute_notes): When removing TEM_INSN for which
34709 corresponding dest has last value recorded, invalidate that last
34710 value.
34711
34712 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34713
34714 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
34715 of explicit '@'. Add missing assembly comment marker on branch costs
34716 printout.
34717
34718 2017-02-13 Nathan Sidwell <nathan@acm.org>
34719
34720 * gengtype-lex.l (<in_struct>): Add '/'.
34721
34722 2017-02-13 Martin Liska <mliska@suse.cz>
34723
34724 PR c/79471
34725 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
34726
34727 2017-02-13 Richard Biener <rguenther@suse.de>
34728
34729 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
34730 Remove.
34731 * configure: Re-generate.
34732 * config.in: Likewise.
34733 * graphite-dependences.c: Simplify as if
34734 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
34735 * graphite-isl-ast-to-gimple.c: Likewise.
34736 * graphite-optimize-isl.c: Likewise.
34737 * graphite-poly.c: Likewise.
34738 * graphite-sese-to-poly.c: Likewise.
34739 * graphite.h: Likewise.
34740 * toplev.c: Include isl/version.h and use isl_version () for
34741 printing the ISL version.
34742 * doc/install.texi: Update ISL requirement.
34743
34744 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
34745
34746 * doc/standards.texi (Standards): Update reference to
34747 Objective-C 2.0.
34748
34749 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
34750
34751 * doc/extend.texi (Named Address Spaces): sourceware.org now
34752 defaults to https.
34753 * doc/install.texi (Binaries): Ditto.
34754 (Specific): Ditto.
34755
34756 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
34757
34758 * doc/cpp.texi: Replace "stringify"/"stringification" with C
34759 standard terminology "stringize"/"stringizing" throughout.
34760 * doc/cppinternals.texi: Likewise.
34761
34762 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
34763
34764 * doc/extend.texi: Fix some spelling mistakes and typos.
34765 * doc/invoke.texi: Likewise.
34766
34767 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
34768
34769 PR ipa/79224
34770 * params.def (inline-min-speedup) Change from 10 to 8.
34771
34772 2017-02-11 Jakub Jelinek <jakub@redhat.com>
34773
34774 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
34775 4.5.
34776
34777 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
34778
34779 PR ipa/79224
34780 * ipa-inline-analysis.c (get_minimal_bb): New function.
34781 (record_modified): Use it.
34782 (remap_edge_change_prob): Handle also ancestor functions.
34783
34784 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
34785
34786 * doc/contrib.texi (Contributors): Remove broken link into
34787 the Mauve CVS repository.
34788
34789 2017-02-11 Jakub Jelinek <jakub@redhat.com>
34790
34791 PR middle-end/79454
34792 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
34793 result computation whenever lhs doesn't have vector mode, not
34794 just when it has BLKmode.
34795
34796 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
34797
34798 * doc/makefile.texi (profiledbootstrap): Refer to the
34799 installation instructions only in textual form.
34800
34801 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
34802
34803 PR target/79295
34804 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
34805
34806 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
34807
34808 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
34809 (Specific): Update mingw-w64 reference.
34810 (Binaries): Ditto.
34811 (Specific): Remove broken link to Renesas RX processor.
34812
34813 2017-02-10 Richard Biener <rguenther@suse.de>
34814
34815 * toplev.c (process_options): Do not mention obsolete graphite
34816 options when printing sorry message about missing graphite support.
34817 Mention -floop-nest-optimize.
34818
34819 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
34820
34821 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
34822 (vtst_p16): Likewise.
34823 (vtstq_p8): Likewise.
34824 (vtstq_p16): Likewise.
34825 (vtst_p64): New.
34826 (vtstq_p64): Likewise.
34827 * config/arm/arm_neon.h (vgetq_lane_p64): New.
34828 (vset_lane_p64): New.
34829 (vsetq_lane_p64): New.
34830
34831 2017-02-10 Jakub Jelinek <jakub@redhat.com>
34832
34833 PR tree-optimization/79411
34834 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
34835 stmt operands are SSA_NAMEs used in abnormal phis.
34836 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
34837 phis.
34838
34839 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
34840
34841 PR ipa/70795
34842 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
34843 flag if needed.
34844
34845 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
34846
34847 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
34848
34849 2017-02-09 Jakub Jelinek <jakub@redhat.com>
34850
34851 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
34852 to avoid warning.
34853
34854 PR c/79413
34855 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
34856 not arbitrary TREE_CONSTANT.
34857
34858 PR c/79431
34859 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
34860 "omp declare target link" attribute unless is_global_var.
34861 * omp-offload.c (find_link_var_op): Likewise.
34862
34863 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
34864 Chung-Lin Tang <cltang@codesourcery.com>
34865
34866 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
34867 OMP_CLAUSE_TILE.
34868 (gimplify_adjust_omp_clauses): Don't delete TILE.
34869 (gimplify_omp_for): Deal with TILE.
34870 * internal-fn.c (expand_GOACC_TILE): New function.
34871 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
34872 (GOACC_TILE): New.
34873 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
34874 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
34875 element fields.
34876 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
34877 avoid DIV for outermost collapse var.
34878 (expand_oacc_for): Insert tile element loop as needed. Adjust.
34879 Remove out of date comments, fix whitespace.
34880 * omp-general.c (omp_extract_for_data): Deal with tiling.
34881 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
34882 adjust OLF_DIM_BASE value.
34883 (struct omp_for_data): Add tiling field.
34884 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
34885 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
34886 for auto loops. Remove default auto determining, moved to
34887 oacc_loop_fixed_partitions.
34888 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
34889 stmts, add e_mask field.
34890 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
34891 (oacc_thread_numbers): Use oacc_dim_call.
34892 (oacc_xform_tile): New.
34893 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
34894 (finish_oacc_loop): Adjust for ifns vector.
34895 (oacc_loop_discover_walk): Append loop abstraction sites to list,
34896 add case for GOACC_TILE fns.
34897 (oacc_loop_xform_loop): Delete.
34898 (oacc_loop_process): Iterate over call list directly, and add
34899 handling for GOACC_TILE fns.
34900 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
34901 dump partitioning.
34902 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
34903 vector partitioning to outer loops. Assign 2 partitions to loops
34904 when available. Add TILE handling.
34905 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
34906 (execite_oacc_device_lower): Process GOACC_TILE fns,
34907 ignore unknown specs.
34908 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
34909 * tree.c (omp_clause_num_ops): Adjust TILE ops.
34910 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
34911
34912 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
34913
34914 * configure.ac (ACX_BUGURL): Update.
34915 * configure: Regenerate.
34916
34917 2017-02-09 Richard Biener <rguenther@suse.de>
34918
34919 PR tree-optimization/69823
34920 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
34921 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
34922
34923 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
34924
34925 * config/arc/arc-c.def: Add __NPS400__ definition.
34926 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
34927 (TARGET_NPS400): Define.
34928
34929 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
34930
34931 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
34932 file.
34933 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
34934 pointer, arch_info.
34935 (arc_cpu_types): Fill the arch_info field with a pointer into the
34936 arc_arch_types table.
34937 (arc_selected_cpu): Declare.
34938 * config/arc/arc.c (arc_selected_cpu): Make global.
34939 (arc_selected_arch): Delete.
34940 (arc_base_cpu): Delete.
34941 (arc_override_options): Remove references to deleted variables,
34942 update access to arch information.
34943 (ARC_OPT): Update access to arch information.
34944 (ARC_OPTX): Likewise.
34945 * config/arc/arc.h (arc_base_cpu): Remove declaration.
34946 (TARGET_ARC600): Update access to arch information.
34947 (TARGET_ARC601): Likewise.
34948 (TARGET_ARC700): Likewise.
34949 (TARGET_EM): Likewise.
34950 (TARGET_HS): Likewise.
34951 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
34952 information.
34953
34954 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
34955
34956 PR target/78604
34957 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
34958 condition/operands for integer GE/LE/GEU/LEU operations.
34959
34960 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
34961
34962 PR translation/79397
34963 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
34964 of AltiVec.
34965
34966 2017-02-08 Martin Jambor <mjambor@suse.cz>
34967
34968 PR ipa/79375
34969 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
34970 whether allocation happened.
34971 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
34972 nothing was allocated.
34973
34974 2017-02-08 Jakub Jelinek <jakub@redhat.com>
34975
34976 PR tree-optimization/79408
34977 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
34978 constant, but SSA_NAME with a known integer range, use the minimum
34979 of that range instead of op1 to determine if modulo can be replaced
34980 with its first operand.
34981
34982 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34983
34984 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
34985
34986 2017-02-08 Richard Biener <rguenther@suse.de>
34987
34988 PR tree-optimization/71824
34989 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
34990 Check all loops contained in the merged region.
34991
34992 2017-02-07 Andrew Pinski <apinski@cavium.com>
34993
34994 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
34995
34996 2017-02-07 Andrew Pinski <apinski@cavium.com>
34997
34998 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
34999 (thunderxt88): Likewise.
35000 (thunderxt81): Disable LSE and change v8.1 to v8.
35001 (thunderxt83): Likewise.
35002
35003 2017-02-07 Jakub Jelinek <jakub@redhat.com>
35004 Richard Biener <rguenther@suse.de>
35005
35006 PR middle-end/79399
35007 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
35008 type from int to size_t.
35009 * ira-costs.c (struct_costs_size): Change type from int to size_t.
35010
35011 2017-02-07 Jakub Jelinek <jakub@redhat.com>
35012
35013 PR rtl-optimization/79386
35014 * cprop.c (bypass_conditional_jumps): Initialize
35015 bypass_last_basic_block already before splitting bbs after
35016 unconditional traps...
35017 (bypass_conditional_jumps): ... rather than here.
35018
35019 PR target/79299
35020 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
35021 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
35022 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
35023 fix -masm=intel patterns.
35024
35025 2017-02-07 Richard Biener <rguenther@suse.de>
35026
35027 PR tree-optimization/79256
35028 PR middle-end/79278
35029 * builtins.c (get_object_alignment_2): Use min_align_of_type
35030 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
35031 and ADJUST_FIELD_ALIGN.
35032
35033 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
35034 type parameter.
35035 * doc/tm.texi: Regenerate.
35036 * stor-layout.c (layout_decl): Adjust.
35037 (update_alignment_for_field): Likewise.
35038 (place_field): Likewise.
35039 (min_align_of_type): Likewise.
35040 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
35041 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
35042 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
35043 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
35044 * config/frv/frv.c (frv_adjust_field_align): Likewise.
35045 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
35046 * config/i386/i386.c (x86_field_alignment): Likewise.
35047 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
35048 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
35049 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
35050 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
35051 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
35052 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
35053 Likewise.
35054
35055 Revert
35056 2017-01-30 Richard Biener <rguenther@suse.de>
35057
35058 PR tree-optimization/79256
35059 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
35060 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
35061 alignment on TYPE.
35062
35063 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
35064
35065 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
35066 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
35067 builtins to SImode and emit a zero-extend, if necessary.
35068
35069 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
35070
35071 * docs/invoke.texi (RISC-V Options): Alphabetize.
35072
35073 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
35074
35075 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
35076 options.
35077
35078 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
35079
35080 * config/riscv/riscv.c: New file.
35081 * common/config/riscv/riscv-common.c: Likewise.
35082 * config.gcc: Likewise.
35083 * config/riscv/constraints.md: Likewise.
35084 * config/riscv/elf.h: Likewise.
35085 * config/riscv/generic.md: Likewise.
35086 * config/riscv/linux.h: Likewise.
35087 * config/riscv/multilib-generator: Likewise.
35088 * config/riscv/peephole.md: Likewise.
35089 * config/riscv/pic.md: Likewise.
35090 * config/riscv/predicates.md: Likewise.
35091 * config/riscv/riscv-builtins.c: Likewise.
35092 * config/riscv/riscv-c.c: Likewise.
35093 * config/riscv/riscv-ftypes.def: Likewise.
35094 * config/riscv/riscv-modes.def: Likewise.
35095 * config/riscv/riscv-opts.h: Likewise.
35096 * config/riscv/riscv-protos.h: Likewise.
35097 * config/riscv/riscv.h: Likewise.
35098 * config/riscv/riscv.md: Likewise.
35099 * config/riscv/riscv.opt: Likewise.
35100 * config/riscv/sync.md: Likewise.
35101 * config/riscv/t-elf-multilib: Likewise.
35102 * config/riscv/t-linux: Likewise.
35103 * config/riscv/t-linux-multilib: Likewise.
35104 * config/riscv/t-riscv: Likewise.
35105 * configure.ac: Likewise.
35106 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
35107 Waterman as RISC-V maintainers.
35108 * doc/install.texi: Add RISC-V entries.
35109 * doc/invoke.texi: Add RISC-V options section.
35110 * doc/md.texi: Add RISC-V constraints section.
35111 * configure: Regenerated.
35112
35113 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35114
35115 PR target/66144
35116 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
35117 false values to be constant vectors with all 0 or all 1 bits set.
35118 (vcondu<mode><mode>): Likewise.
35119 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
35120 predicate.
35121 (fpmask_comparison_operator): Update comment.
35122 (vecint_comparison_operator): New predicate.
35123 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
35124 vector conditionals when the true and false values are constant
35125 vectors with all 0 bits or all 1 bits set.
35126
35127 2017-02-06 Martin Sebor <msebor@redhat.com>
35128
35129 PR tree-optimization/79376
35130 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
35131
35132 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
35133
35134 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
35135 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
35136 to simplify split condition.
35137
35138 2017-02-06 Jakub Jelinek <jakub@redhat.com>
35139
35140 * omp-expand.c (oxpand_omp_atomic_fetch_op,
35141 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
35142 false.
35143
35144 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
35145
35146 PR rtl-optimization/68664
35147 * target.def (can_speculate_insn): New hook.
35148 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
35149 * doc/tm.texi: Regenerate.
35150 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
35151 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
35152 (rs6000_sched_can_speculate_insn): New function.
35153
35154 2017-02-06 Jakub Jelinek <jakub@redhat.com>
35155
35156 PR tree-optimization/79284
35157 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
35158 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
35159 vectorizable_mask_load_store, vectorizable_operation,
35160 vect_is_simple_cond, get_same_sized_vectype): Use it instead
35161 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
35162 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
35163 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
35164 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
35165 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
35166 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
35167 is_gimple_assign (stmt). Replace another such test with
35168 is_gimple_assign (stmt).
35169
35170 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
35171
35172 PR target/78883
35173 * config/avr/avr.c (rtl-iter.h): Include it.
35174 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
35175 (avr_legitimate_combined_insn): ...and implementation.
35176
35177 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
35178
35179 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
35180 * config/s390/s390.c (s390_const_operand_ok)
35181 (s390_canonicalize_comparison, s390_extract_part)
35182 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
35183 (s390_contiguous_bitmask_p, s390_rtx_costs)
35184 (legitimize_pic_address): Likewise.
35185 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
35186 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
35187 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
35188 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
35189 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
35190
35191 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
35192
35193 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
35194 REGNO($0) == REGNO($1).
35195
35196 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35197
35198 * config/s390/linux.h(SIZE_TYPE): Add comment.
35199
35200 2017-02-06 Julian Brown <julian@codesourcery.com>
35201 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
35202 Virendra Pathak <virendra.pathak@broadcom.com>
35203
35204 * config/aarch64/aarch64-cores.def: Change the scheduler
35205 to Thunderx2t99.
35206 * config/aarch64/aarch64.md: Include thunderx2t99.md.
35207 * config/aarch64/thunderx2t99.md: New file.
35208
35209 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
35210
35211 * doc/standards.texi (Go Language): Update link to language
35212 standard.
35213
35214 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
35215
35216 * tree-eh.c (lower_resx): Sanitize profile.
35217 (cleanup_empty_eh_move_lp): Likewise.
35218
35219 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
35220
35221 PR tree-ssa/79347
35222 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
35223 ELSE_PROB.
35224 * cfgloopmanip.h (loop_version): Update prototype.
35225 * modulo-sched.c (sms_schedule): Update call of loop_version.
35226 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
35227 * tree-parloops.c (gen_parallel_loop): Likewise.
35228 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
35229 * tree-ssa-loop-split.c (split_loop): Likewise.
35230 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
35231 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
35232
35233 2017-02-05 Martin Liska <mliska@suse.cz>
35234
35235 PR bootstrap/78985
35236 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
35237 variable to NULL.
35238 (print_operand_address): Initialize a struct to zero.
35239
35240 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
35241
35242 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
35243 garbage collector only in textual form.
35244
35245 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
35246
35247 * doc/extend.texi (x86 specific memory model extensions for
35248 transactional memory): Simplify a phrase.
35249
35250 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
35251
35252 PR target/79353
35253 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
35254 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
35255 (atomic_storedi_1): Likewise.
35256
35257 2017-02-04 Jakub Jelinek <jakub@redhat.com>
35258
35259 PR tree-optimization/79338
35260 * tree-parloops.c (gather_scalar_reductions): Don't call
35261 vect_analyze_loop_form for loop->inner before destroying loop's
35262 loop_vinfo.
35263
35264 2017-02-03 Martin Sebor <msebor@redhat.com>
35265
35266 PR tree-optimization/79327
35267 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
35268 when precision has resulted in leading zeros.
35269 (format_integer): Adjust the likely counter to assume an unknown
35270 argument that may be zero is non-zero.
35271
35272 2017-02-03 Jason Merrill <jason@redhat.com>
35273
35274 PR c++/78689
35275 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
35276 avoid copying non-taken branch.
35277
35278 2017-02-03 Jakub Jelinek <jakub@redhat.com>
35279
35280 PR tree-optimization/79340
35281 * tree-vect-loop.c (vectorizable_reduction): Release
35282 vec_defs elements after safe_splicing them into other vectors.
35283 Formatting fixes.
35284
35285 PR tree-optimization/79327
35286 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
35287 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
35288 dirtype.
35289 (format_integer): Use wide_int_to_tree instead of build_int_cst
35290 + to_?hwi. If argmin is NULL, just set argmin and argmax to
35291 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
35292 of shortest and longest sequence.
35293
35294 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
35295
35296 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
35297 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
35298
35299 2017-02-03 Walter Lee <walt@tilera.com>
35300
35301 PR target/78862
35302 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
35303 after initial stackframe link reg save.
35304 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
35305
35306 2017-02-03 Jakub Jelinek <jakub@redhat.com>
35307
35308 PR target/79354
35309 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
35310 wu for stxssp alternative.
35311
35312 2017-02-03 Martin Sebor <msebor@redhat.com>
35313
35314 PR tree-optimization/79352
35315 * gimple-fold.c (get_range_strlen): Add argument.
35316 (get_range_strlen): Change return type to bool.
35317 (get_maxval_strlen): Pass in a dummy argument.
35318 * gimple-fold.h (get_range_strlen): Change return type to bool.
35319 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
35320 * tree.h (array_at_struct_end_p): Add argument.
35321 * tree.c (array_at_struct_end_p): Handle it.
35322
35323 2017-02-03 Martin Liska <mliska@suse.cz>
35324
35325 PR lto/66295
35326 * multiple_target.c (create_dispatcher_calls): Redirect edge
35327 from a caller of a dispatcher.
35328 (expand_target_clones): Make the clones local.
35329 (ipa_target_clone): Do both target clones and resolvers.
35330 (ipa_dispatcher_calls): Remove the pass.
35331 (pass_dispatcher_calls::gate): Likewise.
35332 (make_pass_dispatcher_calls): Likewise.
35333 * passes.def (pass_target_clone): Put as very first IPA early
35334 pass.
35335
35336 2017-02-03 Martin Liska <mliska@suse.cz>
35337
35338 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
35339 in case of a function with ifunc attribute.
35340
35341 2017-02-03 Martin Liska <mliska@suse.cz>
35342
35343 * cgraph.c (cgraph_node::dump): Dump function version info.
35344 * symtab.c (symtab_node::dump_base): Add missing new line.
35345
35346 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
35347
35348 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
35349 (ifcombine_ifandif): Use it.
35350
35351 2017-02-03 Martin Liska <mliska@suse.cz>
35352
35353 * doc/invoke.texi: Document default value for
35354 use-after-scope-direct-emission-threshold.
35355
35356 2017-02-03 Martin Liska <mliska@suse.cz>
35357
35358 PR tree-optimization/79339
35359 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
35360 (format_floating): Likewise.
35361
35362 2017-02-03 Martin Liska <mliska@suse.cz>
35363
35364 PR ipa/79337
35365 * ipa-prop.c (ipa_node_params_t::insert): Remove current
35366 implementation.
35367 (ipa_node_params_t::remove): Likewise.
35368 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
35369 initialization from removed ipa_node_params_t::insert.
35370 (ipa_node_params::~ipa_node_params): Move from removed
35371 ipa_node_params_t::release.
35372 * symbol-summary.h (symbol_summary::m_released): New member.
35373 Do not release a summary twice. Do not allow to call finalizer
35374 for types of a summary that live in GGC memory.
35375
35376 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
35377
35378 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
35379 cmp_branch fusion.
35380
35381 2017-02-02 Martin Sebor <msebor@redhat.com>
35382
35383 PR middle-end/79275
35384 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
35385 (format_string): Tighten up the range of output for non-constant
35386 strings and correct the expected range for wide non-constant strings.
35387
35388 2017-02-02 Martin Sebor <msebor@redhat.com>
35389
35390 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
35391
35392 PR middle-end/32003
35393 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
35394 index.
35395 (-fdump-tree-@var): Add to index and document how to come up
35396 with pass-specific option and dump file names.
35397 (-fdump-passes): Clarify where to look for output.
35398
35399 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
35400
35401 PR middle-end/77445
35402 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
35403 statistics of the analyzed path; allow threading for speed when
35404 any of BBs along the path are optimized for speed.
35405
35406 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
35407
35408 PR middle-end/78468
35409 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
35410 settings of the virtual registers.
35411
35412 Revert again
35413 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
35414
35415 * explow.c (get_dynamic_stack_size): Take known alignment of stack
35416 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
35417 needed.
35418
35419 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35420
35421 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
35422 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
35423
35424 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35425
35426 * config/s390/s390.md: Add missing comments with the expanded
35427 mnemonics.
35428 * config/s390/vector.md: Likewise.
35429 * config/s390/vx-builtins.md: Likewise.
35430
35431 2017-02-02 Jakub Jelinek <jakub@redhat.com>
35432
35433 PR target/79197
35434 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
35435 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
35436 conditions on a single line.
35437
35438 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35439
35440 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
35441 __S390_VX__ to __VX__.
35442
35443 2017-02-01 Andrew Pinski <apinski@cavium.com>
35444
35445 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
35446 stmt_info to record_stmt_cost.
35447 (vect_get_known_peeling_cost): Pass stmt_info if known to
35448 record_stmt_cost.
35449 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
35450 cpu_vector_cost field into
35451 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
35452 field into vec_int_stmt_cost and vec_fp_stmt_cost.
35453 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
35454 splitting of scalar_stmt_cost and vec_stmt_cost.
35455 (thunderx_vector_cost): Likewise.
35456 (cortexa57_vector_cost): LIkewise.
35457 (exynosm1_vector_cost): Likewise.
35458 (xgene1_vector_cost): Likewise.
35459 (thunderx2t99_vector_cost): Improve after the splitting of the two
35460 fields.
35461 (aarch64_builtin_vectorization_cost): Update for the splitting of
35462 scalar_stmt_cost and vec_stmt_cost.
35463
35464 2017-02-01 Torvald Riegel <triegel@redhat.com>
35465 Richard Henderson <rth@redhat.com>
35466
35467 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
35468 conditional on existance of a fast atomic load.
35469 * optabs-query.c (can_atomic_load_p): New function.
35470 * optabs-query.h (can_atomic_load_p): Declare it.
35471 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
35472 no fast atomic load is available for the particular size of access.
35473 (expand_atomic_compare_and_swap): Likewise.
35474 (expand_atomic_load): Likewise.
35475 (expand_atomic_store): Likewise.
35476 (expand_atomic_fetch_op): Likewise.
35477 * testsuite/lib/target-supports.exp
35478 (check_effective_target_sync_int_128): Remove x86 because it provides
35479 no fast atomic load.
35480 (check_effective_target_sync_int_128_runtime): Likewise.
35481
35482 2017-02-01 Richard Biener <rguenther@suse.de>
35483
35484 * graphite.c: Include tree-vectorizer.h for find_loop_location.
35485 (graphite_transform_loops): Provide opt-info for optimized nests.
35486 * tree-parloop.c (parallelize_loops): Provide opt-info for
35487 parallelized loops.
35488
35489 2017-02-01 Richard Biener <rguenther@suse.de>
35490
35491 PR middle-end/79315
35492 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
35493 was not set before.
35494
35495 2017-02-01 Richard Biener <rguenther@suse.de>
35496
35497 PR tree-optimization/71824
35498 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
35499 Verify the loops are valid in the merged SESE region.
35500 (scop_detection::can_represent_loop_1): Check analyzing the
35501 evolution of the number of iterations in the region succeeds.
35502
35503 2017-01-31 Ian Lance Taylor <iant@golang.org>
35504
35505 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
35506 REG_ARGS_SIZE note to 32-bit push insns and call insn.
35507
35508 2017-01-31 David Malcolm <dmalcolm@redhat.com>
35509
35510 PR preprocessor/79210
35511 * input.c (get_substring_ranges_for_loc): Replace line_width
35512 assertion with error-handling.
35513
35514 2017-01-31 Richard Biener <rguenther@suse.de>
35515
35516 PR tree-optimization/77318
35517 * graphite-sese-to-poly.c (extract_affine): Fix assert.
35518 (create_pw_aff_from_tree): Take loop parameter.
35519 (add_condition_to_pbb): Pass loop of the condition to
35520 create_pw_aff_from_tree.
35521
35522 2017-01-31 Jakub Jelinek <jakub@redhat.com>
35523
35524 * config/s390/s390.c (s390_asan_shadow_offset): New function.
35525 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
35526
35527 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
35528
35529 PR target/78597
35530 PR target/79038
35531 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
35532 no longer used.
35533 (convert_int_to_float128): Likewise.
35534 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
35535 (convert_int_to_float128): Likewise.
35536 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
35537 (UNSPEC_IEEE128_CONVERT): Likewise.
35538 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
35539 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
35540 Use local variables for IBM extended format.
35541 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
35542 (fix_trunc<mode>si2_fprs): Likewise.
35543 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
35544 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
35545 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
35546 to know that we can now have integers of all sizes in vector
35547 registers.
35548 (fix<uns>_<mode>di2_hw): Likewise.
35549 (float<uns>_<mode>si2_hw): Likewise.
35550 (fix_<mode>si2_hw): Likewise.
35551 (fixuns_<mode>si2_hw): Likewise.
35552 (float<uns>_<mode>di2_hw): Likewise.
35553 (float_<mode>di2_hw): Likewise.
35554 (float_<mode>si2_hw): Likewise.
35555 (floatuns_<mode>di2_hw): Likewise.
35556 (floatuns_<mode>si2_hw): Likewise.
35557 (xscvqp<su>wz_<mode>): Delete, no longer used.
35558 (xscvqp<su>dz_<mode>): Likewise.
35559 (xscv<su>dqp_<mode>): Likewise.
35560 (ieee128_mfvsrd_64bit): Likewise.
35561 (ieee128_mfvsrd_32bit): Likewise.
35562 (ieee128_mfvsrwz): Likewise.
35563 (ieee128_mtvsrw): Likewise.
35564 (ieee128_mtvsrd_64bit): Likewise.
35565 (ieee128_mtvsrd_32bit): Likewise.
35566
35567 2017-01-31 Martin Liska <mliska@suse.cz>
35568
35569 PR ipa/79285
35570 * ipa-prop.c (ipa_free_all_node_params): Call release method
35571 instead of ~sumbol_summary to not to trigger double times
35572 dtor of hash_map.
35573
35574 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
35575
35576 PR tree-optimization/71691
35577 * bitmap.h (class auto_bitmap): New.
35578 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
35579 is_maybe_undefined instead of ssa_undefined_value_p.
35580
35581 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35582
35583 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
35584 __S390_ARCH_LEVEL__ to __ARCH__.
35585
35586 2017-01-31 Jakub Jelinek <jakub@redhat.com>
35587
35588 PR tree-optimization/79267
35589 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
35590 if should_remove_lhs_p is true.
35591
35592 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
35593
35594 PR debug/63238
35595 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
35596 (add_alignment_attribute): New.
35597 (base_type_die): Add alignment attribute.
35598 (subrange_type_die): Likewise.
35599 (modified_type_die): Likewise.
35600 (gen_array_type_die): Likewise.
35601 (gen_descr_array_type_die: Likewise.
35602 (gen_enumeration_type_die): Likewise.
35603 (gen_subprogram_die): Likewise.
35604 (gen_variable_die): Likewise.
35605 (gen_field_die): Likewise.
35606 (gen_ptr_to_mbr_type_die): Likewise.
35607 (gen_struct_or_union_type_die): Likewise.
35608 (gen_subroutine_type_die): Likewise.
35609 (gen_typedef_die): Likewise.
35610 (base_type_cmp): Compare alignment attribute.
35611
35612 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
35613
35614 PR target/79170
35615 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
35616 (setb_unsigned) New pattern for setb with CCUNS.
35617 * config/rs6000/rs6000.c (expand_block_compare): Use a different
35618 subfc./subfe sequence to avoid overflow problems. Generate a
35619 shorter sequence with cmpld/setb for power9.
35620 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
35621 for generating subfc. instruction.
35622 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
35623 now uses this instruction.
35624
35625 2017-01-30 Ian Lance Taylor <iant@google.com>
35626
35627 PR debug/79289
35628 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
35629 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
35630
35631 2017-01-30 Martin Sebor <msebor@redhat.com>
35632
35633 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
35634 Move constant to the right of a relational operator.
35635 (get_mpfr_format_length, format_character, format_string): Ditto.
35636 (should_warn_p, maybe_warn): Same.
35637
35638 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
35639
35640 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
35641
35642 PR lto/79061
35643 * asan.c (get_translation_unit_decl): Remove function.
35644 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
35645
35646 2017-01-30 Martin Liska <mliska@suse.cz>
35647
35648 PR gcov-profile/79259
35649 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
35650 -fprofile-generate.
35651
35652 2017-01-30 Martin Liska <mliska@suse.cz>
35653
35654 PR bootstrap/78985
35655 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
35656 Initialize variables with NULL value.
35657
35658 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
35659
35660 PR target/79260
35661 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
35662 tm_p_file.
35663 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
35664
35665 2017-01-30 Richard Biener <rguenther@suse.de>
35666
35667 PR tree-optimization/79276
35668 * tree-vrp.c (process_assert_insertions): Properly adjust common
35669 when removing a duplicate.
35670
35671 2017-01-30 Richard Biener <rguenther@suse.de>
35672
35673 PR tree-optimization/79256
35674 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
35675 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
35676 alignment on TYPE.
35677 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
35678
35679 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
35680
35681 PR target/79240
35682 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
35683 ("*r<noxa>sbg_<mode>_sll_bitmask")
35684 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
35685 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
35686 Use contiguous_bitmask_nowrap_operand.
35687
35688 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35689
35690 PR target/79268
35691 * config/rs6000/altivec.h (vec_xl): Revise #define.
35692 (vec_xst): Likewise.
35693
35694 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
35695
35696 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
35697
35698 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
35699
35700 PR rtl-optimization/79194
35701 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
35702 traps before call to bypass_conditional_jumps.
35703
35704 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
35705
35706 PR tree-optimization/71374
35707 * lra-constraints.c (check_conflict_input_operands): New.
35708 (match_reload): Use it.
35709
35710 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
35711
35712 PR target/79131
35713 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
35714 account to calculate conflict_set.
35715
35716 2017-01-27 Bin Cheng <bin.cheng@arm.com>
35717
35718 PR rtl-optimization/78559
35719 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
35720 other_insn in combine.
35721
35722 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
35723
35724 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
35725 uint16_type_node for BT_UINT16.
35726
35727 2017-01-27 David Malcolm <dmalcolm@redhat.com>
35728
35729 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
35730 "RTL Tests" to menu.
35731 (GIMPLE Tests): New node.
35732 (RTL Tests): New node.
35733
35734 2017-01-27 Richard Biener <rguenther@suse.de>
35735
35736 PR tree-optimization/79245
35737 * tree-loop-distribution.c (distribute_loop): Apply cost
35738 modeling also to detected patterns.
35739
35740 2017-01-27 Richard Biener <rguenther@suse.de>
35741
35742 PR tree-optimization/71433
35743 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
35744 (compare_assert_loc): New function.
35745 (process_assert_insertions): Sort and optimize assert locations
35746 to remove duplicates and push down identical assertions on
35747 edges to their destination block.
35748
35749 2017-01-27 Richard Biener <rguenther@suse.de>
35750
35751 PR tree-optimization/79244
35752 * tree-vrp.c (remove_range_assertions): Forcefully propagate
35753 out SSA names even if abnormal.
35754
35755 2017-01-27 Jakub Jelinek <jakub@redhat.com>
35756
35757 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
35758 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
35759 instead of MPFR_RNDN.
35760
35761 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
35762
35763 PR target/79239
35764 * arm.c (arm_option_override): Don't call build_target_option_node
35765 until after doing all option overrides.
35766 (arm_valid_target_attribute_tree): Likewise.
35767
35768 2017-01-27 Martin Liska <mliska@suse.cz>
35769
35770 * doc/invoke.texi (-fprofile-arcs): Document profiling support
35771 for {cd}tors and C++ {cd}tors.
35772
35773 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
35774
35775 * config/s390/s390.md ("*setmem_long_and")
35776 ("*setmem_long_and_31z"): Use zero_extend instead of and.
35777
35778 2017-01-26 Martin Sebor <msebor@redhat.com>
35779
35780 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
35781 of precision.
35782
35783 2017-01-26 Martin Sebor <msebor@redhat.com>
35784
35785 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
35786 HAVE_DFmode before using XFmode or DFmode.
35787 (parse_directive): Avoid using the z length modifier to avoid
35788 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
35789
35790 PR middle-end/78703
35791 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
35792 to accept adjustment as an array.
35793 (get_int_range): New function.
35794 (struct directive): Make width and prec arrays.
35795 (directive::set_width, directive::set_precision): Call get_int_range.
35796 (format_integer, format_floating): Handle width and precision ranges.
35797 (format_string, parse_directive): Same.
35798
35799 2017-01-26 Jakub Jelinek <jakub@redhat.com>
35800
35801 PR debug/79129
35802 * dwarf2out.c (generate_skeleton_bottom_up): For children with
35803 comdat_type_p set, just clone them, but keep the children in the
35804 original DIE.
35805
35806 PR debug/78835
35807 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
35808 which have direct callers with -fvar-tracking-assignments enabled
35809 in the current TU.
35810 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
35811 inside of type units.
35812
35813 2017-01-26 Martin Sebor <msebor@redhat.com>
35814
35815 PR middle-end/78703
35816 * gimple-ssa-sprintf.c (struct result_range): Add likely and
35817 unlikely counters.
35818 (struct format_result): Replace number_chars, number_chars_min,
35819 and number_chars_max with a single member of struct result_range.
35820 Remove bounded.
35821 (format_result::operator+=): Adjust.
35822 (struct fmtresult): Remove bounded. Handle likely and unlikely
35823 counters.
35824 (fmtresult::adjust_for_width_or_precision): New function.
35825 (fmtresult:type_max_digits): New function.
35826 (bytes_remaining): Handle likely and unlikely counters.
35827 (min_bytes_remaining): Remove.
35828 (format_percent): Simplify.
35829 (format_integer, format_floating): Set likely and unlikely counters.
35830 (get_string_length, format_character, format_string): Same.
35831 (format_plain, should_warn_p): New function.
35832 (maybe_warn): Call should_warn_p. Update diagnostic messages
35833 and handle those for all directives, including plain strings.
35834 (format_directive): Handle likely and unlikely counters.
35835 Remove unnecessary quoting from diagnostics. Add an informational
35836 note.
35837 (add_bytes): Remove.
35838 (pass_sprintf_length::compute_format_length): Simplify.
35839 (try_substitute_return_value): Handle likely and unlikely counters.
35840
35841 2017-01-26 Carl Love <cel@us.ibm.com>
35842
35843 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
35844 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
35845
35846 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
35847
35848 PR target/79131
35849 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
35850 endianess for subregs into account.
35851 * lra-constraints.c (lra_constraints): Do risky transformations
35852 always on the first iteration.
35853 * lra-lives.c (check_pseudos_live_through_calls): Add arg
35854 last_call_used_reg_set.
35855 (process_bb_lives): Define and use last_call_used_reg_set.
35856 * lra.c (lra): Always continue after lra_constraints on the first
35857 iteration.
35858
35859 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
35860
35861 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
35862 constant.
35863 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
35864
35865 2017-01-26 Jakub Jelinek <jakub@redhat.com>
35866
35867 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
35868 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
35869 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
35870 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
35871 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
35872 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
35873 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
35874 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
35875 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
35876
35877 2017-01-26 Marek Polacek <polacek@redhat.com>
35878
35879 PR c/79199
35880 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
35881 for the third operand.
35882
35883 2017-01-26 Jakub Jelinek <jakub@redhat.com>
35884
35885 PR middle-end/79236
35886 * omp-low.c (struct omp_context): Add simt_stmt field.
35887 (scan_omp_for): Return omp_context *.
35888 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
35889 context to the _simt_ SIMD stmt.
35890 (lower_omp_for): For combined SIMD with sibling _simt_
35891 SIMD, make sure to use the same decls in _looptemp_
35892 clauses as in the sibling.
35893
35894 2017-01-26 David Sherwood <david.sherwood@arm.com>
35895
35896 PR middle-end/79212
35897 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
35898 all contexts.
35899
35900 2017-01-26 Jakub Jelinek <jakub@redhat.com>
35901
35902 PR target/70465
35903 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
35904 emit fld b; fld a; if possible.
35905
35906 * brig-builtins.def: Update copyright years.
35907 * config/arm/arm_acle_builtins.def: Update copyright years.
35908
35909 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
35910
35911 PR target/79179
35912 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
35913 constraint instead of o for the stxsd instruction.
35914
35915 2017-01-25 Carl Love <cel@us.ibm.com>
35916
35917 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
35918 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
35919
35920 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
35921
35922 * doc/invoke.texi (C++ Dialect Options): Fix typo.
35923
35924 2017-01-25 Richard Biener <rguenther@suse.de>
35925
35926 PR tree-optimization/69264
35927 * target.def (vector_alignment_reachable): Improve documentation.
35928 * doc/tm.texi: Regenerate.
35929 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
35930 and add a comment.
35931 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
35932 earlier changes with respect to TYPE_USER_ALIGN.
35933 (vector_alignment_reachable_p): Likewise. Improve dumping.
35934
35935 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35936
35937 PR target/79145
35938 * config/arm/arm.md (xordi3): Force constant operand into a register
35939 for TARGET_IWMMXT.
35940
35941 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35942
35943 * doc/invoke.texi (-fstore-merging): Correct default optimization
35944 levels at which it is enabled.
35945 (-O): Move -fstore-merging from list to...
35946 (-O2): ... Here.
35947
35948 2017-01-25 Richard Biener <rguenther@suse.de>
35949
35950 PR debug/78363
35951 * omp-expand.c: Include debug.h.
35952 (expand_omp_taskreg): Make sure to generate early debug before
35953 outlining anything from a function.
35954 (expand_omp_target): Likewise.
35955 (grid_expand_target_grid_body): Likewise.
35956
35957 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
35958
35959 PR lto/79061
35960 * asan.c (get_translation_unit_decl): New function.
35961 (asan_add_global): Extract modules file name from globals
35962 TRANSLATION_UNIT_DECL name.
35963
35964 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
35965
35966 PR target/77439
35967 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
35968 for long calls with APCS frame and VFP.
35969
35970 2017-01-24 David Malcolm <dmalcolm@redhat.com>
35971
35972 * cfg.c (original_copy_tables_initialized_p): New function.
35973 * cfg.h (original_copy_tables_initialized_p): New decl.
35974 * cfgrtl.c (relink_block_chain): Guard the call to
35975 free_original_copy_tables with a call to
35976 original_copy_tables_initialized_p.
35977 * cgraph.h (symtab_node::native_rtl_p): New decl.
35978 * cgraphunit.c (symtab_node::native_rtl_p): New function.
35979 (symtab_node::needed_p): Don't assert for early assembly output
35980 for __RTL functions.
35981 (cgraph_node::finalize_function): Set "force_output" for __RTL
35982 functions.
35983 (cgraph_node::analyze): Bail out early for __RTL functions.
35984 (analyze_functions): Update assertion to support __RTL functions.
35985 (cgraph_node::expand): Bail out early for __RTL functions.
35986 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
35987 __RTL functions.
35988 * function.h (struct function): Update comment for field
35989 "pass_startwith".
35990 * gimple-expr.c: Include "tree-pass.h".
35991 (gimple_has_body_p): Return false for __RTL functions.
35992 * Makefile.in (OBJS): Add run-rtl-passes.o.
35993 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
35994 accessor.
35995 (gcc::pass_manager::get_clean_slate): New accessor.
35996 * passes.c: Include "insn-addr.h".
35997 (should_skip_pass_p): Add logging. Update logic for running
35998 "expand" to be compatible with both __GIMPLE and __RTL. Guard
35999 property-provider override so it is only done for gimple passes.
36000 Don't skip dfinit.
36001 (skip_pass): New function.
36002 (execute_one_pass): Call skip_pass when skipping passes.
36003 * read-md.c (md_reader::read_char): Support filtering
36004 the input to a subset of line numbers.
36005 (md_reader::md_reader): Initialize fields
36006 m_first_line and m_last_line.
36007 (md_reader::read_file_fragment): New function.
36008 * read-md.h (md_reader::read_file_fragment): New decl.
36009 (md_reader::m_first_line): New field.
36010 (md_reader::m_last_line): New field.
36011 * read-rtl-function.c (function_reader::create_function): Only
36012 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
36013 curr_properties. Set DECL_INITIAL to a dummy block.
36014 (read_rtl_function_body_from_file_range): New function.
36015 * read-rtl-function.h (read_rtl_function_body_from_file_range):
36016 New decl.
36017 * run-rtl-passes.c: New file.
36018 * run-rtl-passes.h: New file.
36019
36020 2017-01-24 Jeff Law <law@redhat.com>
36021
36022 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
36023 buffer size.
36024
36025 2017-01-24 Bin Cheng <bin.cheng@arm.com>
36026
36027 PR tree-optimization/79159
36028 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
36029 (record_nonwrapping_iv): Improve boundary using above function if no
36030 value range information.
36031
36032 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
36033 Martin Jambor <mjambor@suse.cz>
36034
36035 * brig-builtins.def: New file.
36036 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
36037 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
36038 (DEF_HSAIL_SAT_BUILTIN): Likewise.
36039 (DEF_HSAIL_INTR_BUILTIN): Likewise.
36040 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
36041 * builtin-types.def (BT_INT8): New.
36042 (BT_INT16): Likewise.
36043 (BT_UINT8): Likewise.
36044 (BT_UINT16): Likewise.
36045 (BT_FN_ULONG): Likewise.
36046 (BT_FN_UINT_INT): Likewise.
36047 (BT_FN_UINT_ULONG): Likewise.
36048 (BT_FN_UINT_LONG): Likewise.
36049 (BT_FN_UINT_PTR): Likewise.
36050 (BT_FN_ULONG_PTR): Likewise.
36051 (BT_FN_INT8_FLOAT): Likewise.
36052 (BT_FN_INT16_FLOAT): Likewise.
36053 (BT_FN_UINT32_FLOAT): Likewise.
36054 (BT_FN_UINT16_FLOAT): Likewise.
36055 (BT_FN_UINT8_FLOAT): Likewise.
36056 (BT_FN_UINT64_FLOAT): Likewise.
36057 (BT_FN_UINT16_UINT32): Likewise.
36058 (BT_FN_UINT32_UINT16): Likewise.
36059 (BT_FN_UINT16_UINT16_UINT16): Likewise.
36060 (BT_FN_INT_PTR_INT): Likewise.
36061 (BT_FN_UINT_PTR_UINT): Likewise.
36062 (BT_FN_LONG_PTR_LONG): Likewise.
36063 (BT_FN_ULONG_PTR_ULONG): Likewise.
36064 (BT_FN_VOID_UINT64_UINT64): Likewise.
36065 (BT_FN_UINT8_UINT8_UINT8): Likewise.
36066 (BT_FN_INT8_INT8_INT8): Likewise.
36067 (BT_FN_INT16_INT16_INT16): Likewise.
36068 (BT_FN_INT_INT_INT): Likewise.
36069 (BT_FN_UINT_FLOAT_UINT): Likewise.
36070 (BT_FN_FLOAT_UINT_UINT): Likewise.
36071 (BT_FN_ULONG_UINT_UINT): Likewise.
36072 (BT_FN_ULONG_UINT_PTR): Likewise.
36073 (BT_FN_ULONG_ULONG_ULONG): Likewise.
36074 (BT_FN_UINT_UINT_UINT): Likewise.
36075 (BT_FN_VOID_UINT_PTR): Likewise.
36076 (BT_FN_UINT_UINT_PTR: Likewise.
36077 (BT_FN_UINT32_UINT64_PTR): Likewise.
36078 (BT_FN_INT_INT_UINT_UINT): Likewise.
36079 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
36080 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
36081 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
36082 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
36083 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
36084 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
36085 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
36086 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
36087 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
36088 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
36089 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
36090 * doc/frontends.texi: List BRIG FE.
36091 * doc/install.texi (Testing): Add BRIG tesring requirements.
36092 * doc/invoke.texi (Overall Options): Mention BRIG.
36093 * doc/standards.texi (Standards): Doucment BRIG HSA version.
36094
36095 2017-01-24 Richard Biener <rguenther@suse.de>
36096
36097 PR translation/79208
36098 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
36099
36100 2017-01-24 Martin Jambor <mjambor@suse.cz>
36101
36102 PR bootstrap/79198
36103 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
36104 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
36105 and known_contexts.
36106
36107 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
36108
36109 PR middle-end/79123
36110 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
36111 casts from signed to unsigned really don't have a range.
36112
36113 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
36114
36115 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
36116 GMP_RNDx for compatiblity.
36117
36118 2017-01-24 Martin Liska <mliska@suse.cz>
36119
36120 PR bootstrap/79132
36121 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
36122 that would prevent us to call alloca with -1 as argument.
36123
36124 2017-01-24 Jakub Jelinek <jakub@redhat.com>
36125
36126 * dwarf2out.c (output_compilation_unit_header, output_file_names):
36127 Avoid -Wformat-security warning.
36128
36129 2017-01-23 Andrew Pinski <apinski@cavium.com>
36130
36131 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
36132 cost table.
36133
36134 2017-01-23 Martin Sebor <msebor@redhat.com>
36135
36136 PR middle-end/78703
36137 * gimple-ssa-sprintf.c (warn_level): New global.
36138 (format_integer): Use it here and throughout the rest of the file.
36139 Use the same switch to compute sign as base.
36140 (maybe_warn): New function.
36141 (format_directive): Factor out warnings into maybe_warn.
36142 Add debugging output. Use warn_level.
36143 (add_bytes): Use warn_level.
36144 (pass_sprintf_length::compute_format_length): Add debugging output.
36145 (try_substitute_return_value): Same.
36146 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
36147
36148 PR middle-end/78703
36149 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
36150 (struct fmtresult, format_integer, format_floating): Adjust.
36151 (fmtresult::fmtresult): Set max correctly in two argument ctor.
36152 (get_string_length, format_string,format_directive): Same.
36153 (pass_sprintf_length::compute_format_length): Same.
36154 (try_substitute_return_value): Simplify slightly.
36155
36156 PR middle-end/78703
36157 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
36158 (fmtresult::operator+=): Outlined.
36159 (struct fmtresult): Add ctors.
36160 (struct conversion_spec): Rename...
36161 (struct directive): ...to this. Add and remove data members.
36162 (directive::set_width, directive::set_precision): New functions.
36163 (format_percent): Use fmtresult ctor.
36164 (get_width_and_precision): Remove.
36165 (format_integer): Make naming changes. Avoid computing width and
36166 precision.
36167 (format_floating): Same. Adjust indentation.
36168 (format_character, format_none): New functions.
36169 (format_string): Moved character handling to format_character.
36170 (format_directive): Remove arguments, change return type.
36171 (parse_directive): New function.
36172 (pass_sprintf_length::compute_format_length): Move directive
36173 parsing to parse_directive.
36174
36175 2017-01-23 Jakub Jelinek <jakub@redhat.com>
36176
36177 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
36178 (assign_assembler_name_if_needed): ... this.
36179 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
36180 (assign_assembler_name_if_needed): ... this.
36181 (free_lang_data_in_cgraph): Adjust callers.
36182 * cgraphunit.c (cgraph_node::analyze): Likewise.
36183 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
36184 Likewise.
36185
36186 2017-01-23 Richard Biener <rguenther@suse.de>
36187
36188 PR tree-optimization/79088
36189 PR tree-optimization/79188
36190 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
36191 resetting loop bounds after last path deletion. Reset loop
36192 bounds of the target loop, make code match the comments.
36193 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
36194 Make sure loops need no fixups.
36195
36196 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
36197
36198 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
36199 exponent support with double type for first argument.
36200 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
36201 type returned by __builtin_vec_extract_sig,
36202 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
36203 functions from "vector int" to "vector unsigned int" or from
36204 "vector long long int" to "vector unsigned long long int".
36205 Changed type returned by __builtin_vec_extract_exp,
36206 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
36207 functions from "vector int" to "vector unsigned int" or from
36208 "vector long long int" to "vector unsigned long long int".
36209 Changed return type of __builtin_vec_test_data_class,
36210 __builtin_vec_test_data_class_sp, and
36211 __builtin_vec_test_data_class_dp from "vector int" to
36212 "vector bool int" or from "vector long long int" to "vector bool
36213 long long int" and changed second argument type from "unsigned
36214 int" to "int". Added new overloaded function forms "vector float
36215 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
36216 "vector float __builtin_vec_insert_exp_sp (vector float, vector
36217 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
36218 double, vector unsigned long long int)" and "vector double
36219 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
36220 long int)". Changed return type of
36221 __builtin_scalar_test_data_class and
36222 __builtin_scalar_test_data_class_sp and
36223 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
36224 int" and changed second argument from "unsigned int" to "int".
36225 Changed type returned by __builtin_scalar_test_neg,
36226 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
36227 from "int" to "bool int". Added new overloaded function form
36228 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
36229 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
36230 exponent double-precision with floating point first argument.
36231 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
36232 documentation of scalar_test_data_class, scalar_test_neg,
36233 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
36234 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
36235 vec_test_data_class built-in functions to reflect refinements in
36236 their type signatures.
36237
36238 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
36239
36240 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
36241 size of buf.
36242 (aarch64_elf_asm_destructor): Likewise.
36243
36244 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
36245
36246 PR rtl-optimization/78634
36247 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
36248 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
36249 * ifcvt.c (noce_try_cmove): Add missing cost check.
36250
36251 PR rtl-optimization/71724
36252 * combine.c (if_then_else_cond): Look for situations where it is
36253 beneficial to undo the work of one of the recursive calls.
36254
36255 2017-01-23 Bin Cheng <bin.cheng@arm.com>
36256
36257 PR tree-optimization/70754
36258 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
36259 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
36260 combined stmt before it if not NULL.
36261 (combine_chains): Process refs reversely and compute dominance point
36262 for root ref.
36263
36264 2017-01-23 Martin Liska <mliska@suse.cz>
36265
36266 PR tree-optimization/79196
36267 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
36268 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
36269 instead of memcmp.
36270 (strlen_optimize_stmt): Call the renamed function.
36271
36272 2017-01-23 Michael Matz <matz@suse.de>
36273
36274 PR tree-optimization/78384
36275 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
36276
36277 2017-01-23 Richard Biener <rguenther@suse.de>
36278
36279 PR tree-optimization/79186
36280 * tree-vrp.c (register_new_assert_for): Make sure we've seen
36281 both incoming edges before moving an assert.
36282
36283 2017-01-23 Martin Jambor <mjambor@suse.cz>
36284
36285 * ipa-prop.c (load_from_param_1): Removed.
36286 (load_from_unmodified_param): Bits from load_from_param_1 put back
36287 here.
36288 (load_from_param): Removed.
36289 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
36290 with stmt. Reverted back to use of load_from_unmodified_param.
36291
36292 2017-01-23 Martin Jambor <mjambor@suse.cz>
36293
36294 PR ipa/79108
36295 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
36296 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
36297 field a pointer to garbage collected vector, mark lattices and
36298 ipcp_orig_node with GTY((skip)).
36299 (ipa_get_param_count): Adjust to descriptors being a pointer.
36300 (ipa_get_param): Likewise.
36301 (ipa_get_type): Likewise.
36302 (ipa_get_param_move_cost): Likewise.
36303 (ipa_set_param_used): Likewise.
36304 (ipa_get_controlled_uses): Likewise.
36305 (ipa_set_controlled_uses): Likewise.
36306 (ipa_is_param_used): Likewise.
36307 (ipa_node_params_t): Move into garbage collector. New methods insert
36308 and remove.
36309 (ipa_node_params_sum): Annotate wth GTY(()).
36310 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
36311 garbage collected.
36312 (ipa_load_from_parm_agg): Adjust declaration.
36313 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
36314 * ipa-profile.c (ipa_profile): Likewise.
36315 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
36316 (ipa_populate_param_decls): Make descriptors parameter garbage
36317 collected.
36318 (ipa_dump_param): Adjust to descriptors being a pointer.
36319 (ipa_alloc_node_params): Likewise.
36320 (ipa_initialize_node_params): Likewise.
36321 (load_from_param_1): Make descriptors parameter garbage collected.
36322 (load_from_unmodified_param): Likewise.
36323 (load_from_param): Likewise.
36324 (ipa_load_from_parm_agg): Likewise.
36325 (ipa_node_params::~ipa_node_params): Removed.
36326 (ipa_free_all_node_params): Remove call to delete operator.
36327 (ipa_node_params_t::insert): New.
36328 (ipa_node_params_t::remove): Likewise.
36329 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
36330 copy known_csts and known_contexts vectors.
36331 (ipa_read_node_info): Adjust to descriptors being a pointer.
36332 (ipcp_modif_dom_walker): Make m_descriptors field garbage
36333 collected.
36334 (ipcp_transform_function): Make descriptors variable garbage
36335 collected.
36336
36337 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
36338
36339 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
36340 * config/i386/avx512dqintrin.h: Ditto.
36341 * config/i386/avx512fintrin.h: Ditto.
36342 * config/i386/i386.c: Handle new builtins.
36343 * config/i386/i386-builtin.def: Add new builtins.
36344 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
36345 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
36346
36347 2017-01-23 Jakub Jelinek <jakub@redhat.com>
36348 Martin Liska <mliska@suse.cz>
36349
36350 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
36351 * asan.c (asan_expand_poison_ifn): Support stores and use
36352 appropriate ASAN report function.
36353 * internal-fn.c (expand_ASAN_POISON_USE): New function.
36354 * internal-fn.def (ASAN_POISON_USE): Declare.
36355 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
36356 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
36357 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
36358 ASAN_POISON calls w/o LHS.
36359 * tree-ssa.c (execute_update_addresses_taken): Create clobber
36360 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
36361 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
36362 * gimplify.c (asan_poison_variables): Add attribute
36363 use_after_scope_memory to variables that really needs to live
36364 in memory.
36365 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
36366 having the attribute.
36367
36368 2017-01-23 Martin Liska <mliska@suse.cz>
36369
36370 * asan.c (create_asan_shadow_var): New function.
36371 (asan_expand_poison_ifn): Likewise.
36372 * asan.h (asan_expand_poison_ifn): New declaration.
36373 * internal-fn.c (expand_ASAN_POISON): Likewise.
36374 * internal-fn.def (ASAN_POISON): New builtin.
36375 * sanopt.c (pass_sanopt::execute): Expand
36376 asan_expand_poison_ifn.
36377 * tree-inline.c (copy_decl_for_dup_finish): Make function
36378 external.
36379 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
36380 * tree-ssa.c (is_asan_mark_p): New function.
36381 (execute_update_addresses_taken): Rewrite local variables
36382 (identified just by use-after-scope as addressable) into SSA.
36383
36384 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
36385
36386 * doc/install.texi (Specific): opensource.apple.com uses https
36387 now. Remove trailing slash.
36388
36389 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
36390
36391 * README.Portability: Remove note on an Irix compatibility issue.
36392
36393 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
36394
36395 * gcov.c (INCLUDE_ALGORITHM): Define.
36396 (INCLUDE_VECTOR): Define.
36397 No longer include <vector> and <algorithm> directly.
36398
36399 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
36400
36401 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
36402 to https.
36403 * doc/invoke.texi (Code Gen Options): Ditto.
36404
36405 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
36406
36407 PR lto/78407
36408 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
36409
36410 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
36411
36412 rtl-optimization/79125
36413 * cprop.c (local_cprop_pass): Handle cases where we make an
36414 unconditional trap.
36415
36416 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
36417
36418 PR target/61729
36419 PR target/77850
36420 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
36421 read from, for big endian.
36422
36423 2017-01-20 Jiong Wang <jiong.wang@arm.com>
36424
36425 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
36426 register pauth builtins for LP64 only.
36427
36428 2017-01-20 Marek Polacek <polacek@redhat.com>
36429
36430 PR c/79152
36431 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
36432 non-case labels.
36433
36434 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
36435
36436 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
36437 of safelen status.
36438 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
36439 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
36440 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
36441
36442 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36443
36444 PR target/71270
36445 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
36446 in big-endian mode when they are not a single duplicated value.
36447
36448 2017-01-20 Richard Biener <rguenther@suse.de>
36449
36450 * BASE-VER: Bump to 7.0.1.
36451
36452 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
36453
36454 * omp-low.c (omplow_simd_context): New struct. Use it...
36455 (lower_rec_simd_input_clauses): ...here and...
36456 (lower_rec_input_clauses): ...here to hold common data. Adjust all
36457 references to idx, lane, max_vf, is_simt.
36458
36459 2017-01-20 Graham Markall <graham.markall@embecosm.com>
36460
36461 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
36462 mcpu=nps400.
36463
36464 2017-01-20 Martin Jambor <mjambor@suse.cz>
36465
36466 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
36467 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
36468 gt-hsa-common.h.
36469 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
36470 (GTFILES): Rename hsa.c to hsa-common.c.
36471 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
36472 * hsa-dump.c: Likewise.
36473 * hsa-gen.c: Likewise.
36474 * hsa-regalloc.c: Likewise.
36475 * ipa-hsa.c: Likewise.
36476 * omp-expand.c: Likewise.
36477 * omp-low.c: Likewise.
36478 * toplev.c: Likewise.
36479
36480 2017-01-20 Marek Polacek <polacek@redhat.com>
36481
36482 PR c/64279
36483 * doc/invoke.texi: Document -Wduplicated-branches.
36484 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
36485 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
36486 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
36487 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
36488 return 0 only when not OEP_LEXICOGRAPHIC.
36489 (fold_build_cleanup_point_expr): Use the expression
36490 location when building CLEANUP_POINT_EXPR.
36491 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
36492 * tree.c (add_expr): Handle error_mark_node.
36493
36494 2017-01-20 Martin Liska <mliska@suse.cz>
36495
36496 PR lto/69188
36497 * tree-profile.c (init_ic_make_global_vars): Do not call
36498 finalize_decl.
36499 (gimple_init_gcov_profiler): Likewise.
36500
36501 2017-01-20 Martin Liska <mliska@suse.cz>
36502
36503 PR ipa/71190
36504 * cgraph.h (maybe_create_reference): Remove argument and
36505 update comment.
36506 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
36507 argument.
36508 * ipa-cp.c (create_specialized_node): Likewise.
36509 * symtab.c (symtab_node::maybe_create_reference): Handle
36510 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
36511
36512 2017-01-20 Martin Liska <mliska@suse.cz>
36513
36514 * read-rtl-function.c (function_reader::create_function): Use
36515 build_decl instread of build_decl_stat.
36516
36517 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
36518
36519 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
36520 * config/i386/avx512dqintrin.h: Ditto.
36521 * config/i386/avx512fintrin.h: Ditto.
36522 * config/i386/i386-builtin-types.def: Add new types.
36523 * config/i386/i386.c: Handle new types.
36524 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
36525 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
36526 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
36527 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
36528 (__builtin_ia32_kshiftridi): New.
36529 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
36530
36531 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
36532
36533 PR target/78875
36534 PR target/79140
36535 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
36536 define to rs6000_init_stack_protect_guard.
36537 (rs6000_init_stack_protect_guard): New function.
36538
36539 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
36540 Yunqiang Su <yunqiang.su@imgtec.com>
36541
36542 * config.gcc (supported_defaults): Add madd4.
36543 (with_madd4): Add validation.
36544 (all_defaults): Add madd4.
36545 * config/mips/mips.opt (mmadd4): New option.
36546 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
36547 mmadd4.
36548 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
36549 __mips_no_madd4.
36550 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
36551 (ISA_HAS_FUSED_MADD4): Likewise.
36552 * doc/invoke.texi (-mmadd4): Document the new option.
36553 * doc/install.texi (--with-madd4): Document the new option.
36554
36555 2017-01-19 Jiong Wang <jiong.wang@arm.com>
36556
36557 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
36558 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
36559 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
36560 (aarch64_init_pauth_hint_builtins): New.
36561 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
36562 (aarch64_expand_builtin): Expand new builtins.
36563
36564 2017-01-19 Jiong Wang <jiong.wang@arm.com>
36565
36566 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
36567 * combine-stack-adj.c (no_unhandled_cfa): Handle
36568 REG_CFA_TOGGLE_RA_MANGLE.
36569 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
36570 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
36571 info for return address signing.
36572 (aarch64_expand_epilogue): Likewise.
36573
36574 2017-01-19 Jiong Wang <jiong.wang@arm.com>
36575
36576 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
36577 * config/aarch64/aarch64-protos.h
36578 (aarch64_return_address_signing_enabled): New declaration.
36579 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
36580 New function.
36581 (aarch64_expand_prologue): Sign return address before it's pushed onto
36582 stack.
36583 (aarch64_expand_epilogue): Authenticate return address fetched from
36584 stack.
36585 (aarch64_override_options): Sanity check for ILP32 and ISA level.
36586 (aarch64_attributes): New function attributes for "sign-return-address".
36587 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
36588 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
36589 ("*do_return"): Generate combined instructions according to key index.
36590 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
36591 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
36592 iterators.
36593 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
36594 * config/aarch64/aarch64.opt (msign-return-address=): New.
36595 * doc/extend.texi (AArch64 Function Attributes): Documents
36596 "sign-return-address=".
36597 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
36598
36599 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
36600
36601 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
36602 overall option summary.
36603
36604 2017-01-19 Jiong Wang <jiong.wang@arm.com>
36605
36606 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
36607 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
36608 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
36609 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
36610
36611 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
36612
36613 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
36614 -mpower9-minmax by default for -mcpu=power9.
36615 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
36616 128-bit floating point.
36617
36618 2017-01-20 Alan Modra <amodra@gmail.com>
36619
36620 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
36621 optimizing for size.
36622
36623 2017-01-20 Alan Modra <amodra@gmail.com>
36624
36625 PR target/79144
36626 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
36627 for strcmp and strncmp from corresponding builtin decl.
36628
36629 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
36630
36631 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
36632 instead of i386/rtems-64.h.
36633 * config/i386/rtems-64.h: Remove.
36634
36635 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
36636
36637 PR target/78478
36638 Revert:
36639 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
36640
36641 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
36642
36643 2017-01-19 Tamar Christina <tamar.christina@arm.com>
36644
36645 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
36646 Change int to HOST_WIDE_INT.
36647 * config/aarch64/aarch64-protos.h
36648 (aarch64_simd_gen_const_vector_dup): Likewise.
36649 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
36650
36651 2017-01-19 David Malcolm <dmalcolm@redhat.com>
36652
36653 * langhooks-def.h (lhd_type_for_size): New decl.
36654 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
36655 * langhooks.c (lhd_type_for_size): New function, taken from
36656 lto_type_for_size.
36657
36658 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
36659
36660 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
36661 define_bypass for CR latency.
36662 (power9-cracked-alu): Update bypass latency and remove power9-branch.
36663 (power9-alu2): Add define_bypass for CR latency.
36664 (power9-cmp): New.
36665 (power9-mul): Update insn latency.
36666 (power9-mul-compare): Update insn latency, bypass latency and remove
36667 power9-branch.
36668
36669 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36670
36671 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
36672 Delete.
36673 * config/aarch64/aarch64.md
36674 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
36675 aarch64_nopcrelative_literal_loads.
36676 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
36677
36678 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
36679
36680 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
36681 TARGET_LOONGSON_3A.
36682 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
36683
36684 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
36685
36686 PR target/78176
36687 * config.gcc (supported_defaults): Add lxc1-sxc1.
36688 (with_lxc1_sxc1): Add validation.
36689 (all_defaults): Add lxc1-sxc1.
36690 * config/mips/mips.opt (mlxc1-sxc1): New option.
36691 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
36692 mlxc1-sxc1.
36693 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
36694 __mips_no_lxc1_sxc1.
36695 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
36696 * doc/invoke.texi (-mlxc1-sxc1): Document the new option.
36697 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
36698
36699 2017-01-19 Richard Biener <rguenther@suse.de>
36700
36701 PR tree-optimization/72488
36702 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
36703 sure to restore SSA info.
36704 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
36705
36706 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
36707
36708 PR rtl-optimization/79121
36709 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
36710 of the inner type when shifting an extended value.
36711
36712 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
36713
36714 PR lto/78407
36715 * symtab.c (symtab_node::equal_address_to): Fix comparing of
36716 interposable aliases.
36717
36718 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
36719
36720 PR target/78516
36721 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
36722 Use the evmergelohi instruction.
36723 (mov_si<mode>_e500_subreg4_2_le): Likewise.
36724 (mov_sitf_e500_subreg8_2_be): Likewise.
36725 (mov_sitf_e500_subreg12_2_le): Likewise.
36726 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
36727 (mov_si<mode>_e500_subreg4_2_be): Likewise.
36728 (mov_sitf_e500_subreg8_2_le): Likewise.
36729 (mov_sitf_e500_subreg12_2_be): Likewise.
36730
36731 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36732
36733 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
36734 attribute from vecsimple to vecperm.
36735 (altivec_vbpermq2): Likewise.
36736
36737 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36738
36739 PR target/79040
36740 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
36741
36742 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
36743 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
36744 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
36745 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
36746 case where N arg is SIZE_MAX.
36747 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
36748 (cmpstrsi): Add pattern.
36749
36750 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
36751
36752 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
36753 __builtin_vec_revb builtins.
36754 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
36755 built-in functions to support generation of the ISA 3.0 XXBR<x>
36756 vector byte reverse instructions.
36757 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
36758 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
36759 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
36760 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
36761 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
36762 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
36763 (P9V_BUILTIN_VEC_REVB): Likewise.
36764 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
36765 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
36766 (p9_xxbrq_v16qi): Likewise.
36767 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
36768 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
36769 (p9_xxbrh_v8hi): Likewise.
36770 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
36771 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
36772 vec_revb built-in functions.
36773
36774 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
36775
36776 PR rtl-optimization/78952
36777 * config/i386/i386.md (any_extract): New code iterator.
36778 (*insvqi_2): Use any_extract for source operand.
36779 (*insvqi_3): Use any_shiftrt for source operand.
36780
36781 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
36782
36783 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
36784 New function.
36785 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
36786
36787 2017-01-18 Matthias Klose <doko@ubuntu.com>
36788
36789 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
36790
36791 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36792
36793 * config/rs6000/altivec.h (vec_bperm): Change #define.
36794 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
36795 (altivec_vbpermq2): New define_insn.
36796 (altivec_vbpermd): Likewise.
36797 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
36798 function interface.
36799 (VBPERMD): Likewise.
36800 (VBPERM): New polymorphic function interface.
36801 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
36802 Add entries for P9V_BUILTIN_VEC_VBPERM.
36803 * doc/extend.texi: Add interfaces for vec_bperm.
36804
36805 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
36806
36807 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
36808 first letter of error messages.
36809 (s390_resolve_overloaded_builtin): Likewise.
36810 * config/s390/s390.c (s390_expand_builtin): Likewise.
36811 (s390_invalid_arg_for_unprototyped_fn): Likewise.
36812 (s390_valid_target_attribute_inner_p): Likewise.
36813 * config/s390/s390.md ("tabort"): Likewise.
36814
36815 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
36816
36817 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
36818 (ISA_AVOID_DIV_HILO): New macro.
36819 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
36820 (ISA_HAS_DDIV): Likewise.
36821
36822 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
36823
36824 * doc/invoke.texi (fabi-version): Correct number of occurrences.
36825
36826 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
36827
36828 * doc/invoke.texi (fabi-version): Spelling fix.
36829
36830 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
36831
36832 PR c++/70182
36833 * doc/invoke.texi (fabi-version): Mention mangling fix for
36834 operator names.
36835
36836 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
36837
36838 PR c++/77489
36839 * doc/invoke.texi (fabi-version): Document discriminator mangling.
36840
36841 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
36842
36843 PR target/78875
36844 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
36845 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
36846 the new options.
36847 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
36848 flexible settings.
36849 (stack_protect_test): Ditto.
36850 * config/rs6000/rs6000.opt (mstack-protector-guard=,
36851 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
36852 options.
36853 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
36854 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
36855 -mstack-protector-guard-offset=.
36856 (RS/6000 and PowerPC Options): Ditto.
36857
36858 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
36859
36860 * config/i386/i386.h (MASK_CLASS_P): New define.
36861 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
36862 there are no registers from different register sets also when
36863 mask registers are used. Update function comment.
36864 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
36865 to (*k/*r) and (*k/*km) alternatives.
36866
36867 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
36868
36869 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
36870 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
36871 (EH_RETURN_HANDLER_RTX): New define.
36872 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
36873 Force frame pointer in EH return functions.
36874 (aarch64_expand_epilogue): Add barrier for eh_return.
36875 (aarch64_final_eh_return_addr): Remove.
36876 (aarch64_eh_return_handler_rtx): New function.
36877 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
36878 Remove.
36879 (aarch64_eh_return_handler_rtx): New prototype.
36880
36881 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36882
36883 * config/rs6000/altivec.h (vec_rlmi): New #define.
36884 (vec_vrlnm): Likewise.
36885 (vec_rlnm): Likewise.
36886 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
36887 (UNSPEC_VRLNM): Likewise.
36888 (VIlong): New mode iterator.
36889 (altivec_vrl<VI_char>mi): New define_insn.
36890 (altivec_vrl<VI_char>nm): Likewise.
36891 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
36892 function entry.
36893 (VRLDNM): Likewise.
36894 (RLNM): New polymorphic function entry.
36895 (VRLWMI): New monomorphic function entry.
36896 (VRLDMI): Likewise.
36897 (RLMI): New polymorphic function entry.
36898 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
36899 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
36900 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
36901 vec_vrlnm.
36902
36903 2017-01-17 Jakub Jelinek <jakub@redhat.com>
36904
36905 PR debug/78839
36906 * dwarf2out.c (field_byte_offset): Restore the
36907 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
36908 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
36909 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
36910 of build2 + fold.
36911
36912 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
36913
36914 PR ada/67205
36915 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
36916
36917 2017-01-17 Jakub Jelinek <jakub@redhat.com>
36918
36919 PR debug/71669
36920 * dwarf2out.c (add_data_member_location_attribute): For constant
36921 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
36922 instead of DW_AT_data_member_location, DW_AT_bit_offset and
36923 DW_AT_byte_size attributes.
36924
36925 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
36926
36927 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
36928 after forcing to constant memory when the code model is medium.
36929
36930 2017-01-17 Julia Koval <julia.koval@intel.com>
36931
36932 PR target/76731
36933 * config/i386/avx512fintrin.h
36934 (_mm512_i32gather_ps): Change __addr type to void const*.
36935 (_mm512_mask_i32gather_ps): Ditto.
36936 (_mm512_i32gather_pd): Ditto.
36937 (_mm512_mask_i32gather_pd): Ditto.
36938 (_mm512_i64gather_ps): Ditto.
36939 (_mm512_mask_i64gather_ps): Ditto.
36940 (_mm512_i64gather_pd): Ditto.
36941 (_mm512_mask_i64gather_pd): Ditto.
36942 (_mm512_i32gather_epi32): Ditto.
36943 (_mm512_mask_i32gather_epi32): Ditto.
36944 (_mm512_i32gather_epi64): Ditto.
36945 (_mm512_mask_i32gather_epi64): Ditto.
36946 (_mm512_i64gather_epi32): Ditto.
36947 (_mm512_mask_i64gather_epi32): Ditto.
36948 (_mm512_i64gather_epi64): Ditto.
36949 (_mm512_mask_i64gather_epi64): Ditto.
36950 (_mm512_i32scatter_ps): Change __addr type to void*.
36951 (_mm512_mask_i32scatter_ps): Ditto.
36952 (_mm512_i32scatter_pd): Ditto.
36953 (_mm512_mask_i32scatter_pd): Ditto.
36954 (_mm512_i64scatter_ps): Ditto.
36955 (_mm512_mask_i64scatter_ps): Ditto.
36956 (_mm512_i64scatter_pd): Ditto.
36957 (_mm512_mask_i64scatter_pd): Ditto.
36958 (_mm512_i32scatter_epi32): Ditto.
36959 (_mm512_mask_i32scatter_epi32): Ditto.
36960 (_mm512_i32scatter_epi64): Ditto.
36961 (_mm512_mask_i32scatter_epi64): Ditto.
36962 (_mm512_i64scatter_epi32): Ditto.
36963 (_mm512_mask_i64scatter_epi32): Ditto.
36964 (_mm512_i64scatter_epi64): Ditto.
36965 (_mm512_mask_i64scatter_epi64): Ditto.
36966 * config/i386/avx512pfintrin.h
36967 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
36968 (_mm512_mask_prefetch_i32gather_ps): Ditto.
36969 (_mm512_mask_prefetch_i64gather_pd): Ditto.
36970 (_mm512_mask_prefetch_i64gather_ps): Ditto.
36971 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
36972 (_mm512_prefetch_i32scatter_ps): Ditto.
36973 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
36974 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
36975 (_mm512_prefetch_i64scatter_pd): Ditto.
36976 (_mm512_prefetch_i64scatter_ps): Ditto.
36977 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
36978 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
36979 * config/i386/avx512vlintrin.h
36980 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
36981 (_mm_mmask_i32gather_ps): Ditto.
36982 (_mm256_mmask_i32gather_pd): Ditto.
36983 (_mm_mmask_i32gather_pd): Ditto.
36984 (_mm256_mmask_i64gather_ps): Ditto.
36985 (_mm_mmask_i64gather_ps): Ditto.
36986 (_mm256_mmask_i64gather_pd): Ditto.
36987 (_mm_mmask_i64gather_pd): Ditto.
36988 (_mm256_mmask_i32gather_epi32): Ditto.
36989 (_mm_mmask_i32gather_epi32): Ditto.
36990 (_mm256_mmask_i32gather_epi64): Ditto.
36991 (_mm_mmask_i32gather_epi64): Ditto.
36992 (_mm256_mmask_i64gather_epi32): Ditto.
36993 (_mm_mmask_i64gather_epi32): Ditto.
36994 (_mm256_mmask_i64gather_epi64): Ditto.
36995 (_mm_mmask_i64gather_epi64): Ditto.
36996 (_mm256_i32scatter_ps): Change __addr type to void*.
36997 (_mm256_mask_i32scatter_ps): Ditto.
36998 (_mm_i32scatter_ps): Ditto.
36999 (_mm_mask_i32scatter_ps): Ditto.
37000 (_mm256_i32scatter_pd): Ditto.
37001 (_mm256_mask_i32scatter_pd): Ditto.
37002 (_mm_i32scatter_pd): Ditto.
37003 (_mm_mask_i32scatter_pd): Ditto.
37004 (_mm256_i64scatter_ps): Ditto.
37005 (_mm256_mask_i64scatter_ps): Ditto.
37006 (_mm_i64scatter_ps): Ditto.
37007 (_mm_mask_i64scatter_ps): Ditto.
37008 (_mm256_i64scatter_pd): Ditto.
37009 (_mm256_mask_i64scatter_pd): Ditto.
37010 (_mm_i64scatter_pd): Ditto.
37011 (_mm_mask_i64scatter_pd): Ditto.
37012 (_mm256_i32scatter_epi32): Ditto.
37013 (_mm256_mask_i32scatter_epi32): Ditto.
37014 (_mm_i32scatter_epi32): Ditto.
37015 (_mm_mask_i32scatter_epi32): Ditto.
37016 (_mm256_i32scatter_epi64): Ditto.
37017 (_mm256_mask_i32scatter_epi64): Ditto.
37018 (_mm_i32scatter_epi64): Ditto.
37019 (_mm_mask_i32scatter_epi64): Ditto.
37020 (_mm256_i64scatter_epi32): Ditto.
37021 (_mm256_mask_i64scatter_epi32): Ditto.
37022 (_mm_i64scatter_epi32): Ditto.
37023 (_mm_mask_i64scatter_epi32): Ditto.
37024 (_mm256_i64scatter_epi64): Ditto.
37025 (_mm256_mask_i64scatter_epi64): Ditto.
37026 (_mm_i64scatter_epi64): Ditto.
37027 (_mm_mask_i64scatter_epi64): Ditto.
37028 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
37029 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
37030 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
37031 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
37032 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
37033 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
37034 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
37035 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
37036 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
37037 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
37038 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
37039 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
37040 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
37041 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
37042 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
37043 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
37044 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
37045 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
37046 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
37047 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
37048 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
37049 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
37050 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
37051 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
37052 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
37053 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
37054 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
37055 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
37056 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
37057 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
37058 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
37059 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
37060 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
37061 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
37062 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
37063 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
37064 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
37065 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
37066 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
37067 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
37068 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
37069 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
37070 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
37071 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
37072 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
37073 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
37074 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
37075 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
37076 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
37077 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
37078 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
37079 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
37080 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
37081 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
37082 definitions accordingly.
37083
37084 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
37085 Kuan-Lin Chen <kuanlinchentw@gmail.com>
37086
37087 PR target/79079
37088 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
37089 gen_lowpart.
37090
37091 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
37092
37093 PR target/79058
37094 * ira-conflicts.c (ira_build_conflicts): Update total conflict
37095 hard regs for inner regno.
37096
37097 2017-01-17 Martin Liska <mliska@suse.cz>
37098
37099 PR ipa/71207
37100 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
37101 assumption and add comment.
37102
37103 2017-01-17 Nathan Sidwell <nathan@acm.org>
37104
37105 * ipa-visibility.c (localize_node): New function, broken out of ...
37106 (function_and_variable_visibility): ... here. Call it.
37107
37108 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
37109
37110 PR middle-end/77445
37111 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
37112 correctly set frequency of oudgoing edge.
37113 (duplicate_thread_path): Fix profile updating.
37114
37115 2017-01-17 Jakub Jelinek <jakub@redhat.com>
37116
37117 PR other/79046
37118 * configure.ac: Add GCC_BASE_VER.
37119 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
37120 version from BASE-VER file.
37121 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
37122 (gcc.o): Depend on $(BASEVER).
37123 * common.opt (dumpfullversion): New option.
37124 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
37125 * doc/invoke.texi: Document -dumpfullversion.
37126 * doc/install.texi: Document --with-gcc-major-version-only.
37127 * configure: Regenerated.
37128
37129 2017-01-17 Richard Biener <rguenther@suse.de>
37130
37131 PR tree-optimization/71433
37132 * tree-vrp.c (register_new_assert_for): Merge same asserts
37133 on all incoming edges.
37134 (process_assert_insertions_for): Handle insertions at the
37135 beginning of BBs.
37136
37137 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
37138
37139 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
37140 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
37141
37142 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
37143
37144 PR target/78633
37145 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
37146 RTL sharing.
37147
37148 2017-01-17 Alan Modra <amodra@gmail.com>
37149
37150 PR target/79066
37151 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
37152 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
37153 symbolic stack limit when pic.
37154
37155 2017-01-16 Martin Sebor <msebor@redhat.com>
37156
37157 PR tree-optimization/78608
37158 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
37159
37160 2017-01-16 Jeff Law <law@redhat.com>
37161
37162 Revert:
37163 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
37164 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
37165 for several include directories that may be relative to sysroot.
37166 * config/i386/x-mingw32 (gplus_includedir): Define.
37167 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
37168 (native_system_includedir): Likewise.
37169 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
37170 override if TARGET_SYSTEM_ROOT is defined.
37171 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
37172
37173 PR tree-optimization/79090
37174 PR tree-optimization/33562
37175 PR tree-optimization/61912
37176 PR tree-optimization/77485
37177 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
37178 and computed trims into the dump file.
37179
37180 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
37181
37182 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
37183
37184 2017-01-16 Jakub Jelinek <jakub@redhat.com>
37185
37186 PR c/79089
37187 * gimplify.c (gimplify_init_constructor): If want_value and
37188 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
37189 fix.
37190
37191 PR target/79080
37192 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
37193 sequence. Formatting fixes.
37194 (doloop_optimize): Formatting fixes.
37195
37196 PR driver/49726
37197 * gcc.c (debug_level_greater_than_spec_func): New function.
37198 (static_spec_functions): Add debug-level-gt spec function.
37199 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
37200 !g0.
37201 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
37202 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
37203 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
37204 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
37205 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
37206 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
37207
37208 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
37209
37210 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
37211 QImode fixups to general and mask registers only.
37212
37213 2017-01-16 Carl Love <cel@us.ibm.com>
37214
37215 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
37216 for built-in functions
37217 vector signed char vec_nabs (vector signed char)
37218 vector signed short vec_nabs (vector signed short)
37219 vector signed int vec_nabs (vector signed int)
37220 vector signed long long vec_nabs (vector signed long long)
37221 vector float vec_nabs (vector float)
37222 vector double vec_nabs (vector double)
37223 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
37224 and NABS overload.
37225 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
37226 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
37227 * doc/extend.texi: Update the documentation file for the new built-in
37228 functions.
37229
37230 2017-01-16 Martin Sebor <msebor@redhat.com>
37231
37232 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
37233 message.
37234
37235 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37236
37237 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
37238 UNSPEC_VSX__XXSPLTD to require special splat handling.
37239
37240 2017-01-16 David Malcolm <dmalcolm@redhat.com>
37241
37242 PR bootstrap/78616
37243 * system.h: Poison strndup.
37244
37245 2017-01-16 Alan Modra <amodra@gmail.com>
37246
37247 PR target/79098
37248 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
37249 use a switch.
37250
37251 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
37252
37253 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
37254
37255 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
37256
37257 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
37258 call recog here. Assert that INSN_CODE (insn) is non-negative.
37259
37260 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
37261
37262 PR target/72749
37263 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
37264 fallthrough.
37265 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
37266 in the currently scheduled RTL fragment.
37267
37268 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
37269
37270 PR rtl-optimization/78751
37271 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
37272 give up.
37273
37274 2017-01-14 Jeff Law <law@redhat.com>
37275
37276 PR tree-optimization/79090
37277 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
37278 variable length stores.
37279 (compute_trims): Delete dead assignment to *trim_tail.
37280 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
37281 zero length.
37282
37283 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
37284
37285 PR rtl-optimization/78626
37286 PR rtl-optimization/78727
37287 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
37288 of a block, and split such blocks after everything else is finished.
37289
37290 2017-01-14 Alan Modra <amodra@gmail.com>
37291
37292 PR target/72749
37293 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
37294 target legitimate_combined_insn.
37295 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
37296 (rs6000_legitimate_combined_insn): New function.
37297 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
37298 all uses.
37299 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
37300 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
37301 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
37302
37303 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
37304
37305 * doc/frontends.texi (G++ and GCC): Remove references to Java.
37306
37307 2017-01-13 Jeff Law <law@redhat.com>
37308
37309 PR tree-optimization/33562
37310 PR tree-optimization/61912
37311 PR tree-optimization/77485
37312 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
37313 a statement.
37314 (delete_dead_assignment): Likewise.
37315 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
37316 statement to delete_dead_call and delete_dead_assignment.
37317
37318 2017-01-13 David Malcolm <dmalcolm@redhat.com>
37319
37320 PR c/78304
37321 * substring-locations.c (format_warning_va): Strengthen case 1 so
37322 that both endpoints of the substring must be within the format
37323 range for just the substring to be printed.
37324
37325 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
37326
37327 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
37328 * config/i386/i386.c (ix86_target_string): Add missing options
37329 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
37330 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
37331 flags_other and ix86_target_other to flags2_other. Display unknown
37332 isa2 options.
37333 (ix86_valid_target_attribute_inner_p): Add missing options and
37334 reorder options by implied ISAs, as in ix86_target_string.
37335
37336 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
37337
37338 * hash-table.h (hash_table::too_empty_p): New function.
37339 (hash_table::expand): Use it.
37340 (hash_table::traverse): Likewise.
37341 (hash_table::empty_slot): Use sizeof (value_type) instead of
37342 sizeof (PTR) to convert bytes to elements. Shrink the table
37343 if the current size is excessive for the current number of
37344 elements.
37345
37346 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
37347
37348 * ira-costs.c (record_reg_classes): Break from the inner loop
37349 early once alt_fail is known to be true. Update outer loop
37350 handling accordingly.
37351
37352 2017-01-13 Jeff Law <law@redhat.com>
37353
37354 * tree-ssa-dse.c (decrement_count): New function.
37355 (increment_start_addr, maybe_trim_memstar_call): Likewise.
37356 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
37357 when we know the partially dead statement is a mem* function.
37358
37359 PR tree-optimization/61912
37360 PR tree-optimization/77485
37361 * tree-ssa-dse.c: Include expr.h.
37362 (maybe_trim_constructor_store): New function.
37363 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
37364
37365 PR tree-optimization/33562
37366 PR tree-optimization/61912
37367 PR tree-optimization/77485
37368 * doc/invoke.texi: Document new dse-max-object-size param.
37369 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
37370 * tree-ssa-dse.c: Include params.h.
37371 (dse_store_status): New enum.
37372 (initialize_ao_ref_for_dse): New, partially extracted from
37373 dse_optimize_stmt.
37374 (valid_ao_ref_for_dse, normalize_ref): New.
37375 (setup_live_bytes_from_ref, compute_trims): Likewise.
37376 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
37377 (maybe_trim_partially_dead_store): Likewise.
37378 (maybe_trim_complex_store): Likewise.
37379 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
37380 Track what bytes live from the original store. Return tri-state
37381 for dead, partially dead or live.
37382 (dse_dom_walker): Add constructor, destructor and new private members.
37383 (delete_dead_call, delete_dead_assignment): New extracted from
37384 dse_optimize_stmt.
37385 (dse_optimize_stmt): Make a member of dse_dom_walker.
37386 Use initialize_ao_ref_for_dse.
37387
37388 PR tree-optimization/33562
37389 PR tree-optimization/61912
37390 PR tree-optimization/77485
37391 * sbitmap.h (bitmap_count_bits): Prototype.
37392 (bitmap_clear_range, bitmap_set_range): Likewise.
37393 * sbitmap.c (bitmap_clear_range): New function.
37394 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
37395
37396 2017-01-13 Martin Liska <mliska@suse.cz>
37397
37398 PR ipa/79043
37399 * function.c (set_cfun): Add new argument force.
37400 * function.h (set_cfun): Likewise.
37401 * ipa-inline-transform.c (inline_call): Use the function when
37402 strict alising from is dropped for function we inline to.
37403
37404 2017-01-13 Richard Biener <rguenther@suse.de>
37405
37406 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
37407 for dumping GIMPLE INTEGER_CSTs.
37408
37409 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37410
37411 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
37412 to 201112L since C++17.
37413
37414 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
37415
37416 PR sanitizer/78887
37417 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
37418 if -fsanitize=kernel-address is present.
37419
37420 2017-01-13 Richard Biener <rguenther@suse.de>
37421
37422 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
37423 as _Literal ( type ) number in case usual suffixes do not
37424 preserve all information.
37425
37426 2017-01-13 Richard Biener <rguenther@suse.de>
37427
37428 PR tree-optimization/77283
37429 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
37430 and ssa-iterators.h.
37431 (is_feasible_trace): Implement a cost model based on joiner
37432 PHI node uses.
37433
37434 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
37435
37436 PR target/79004
37437 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
37438 char or short to __float128/_Float128 directly.
37439
37440 2017-01-12 Martin Sebor <msebor@redhat.com>
37441
37442 to -Wformat-overflow.
37443 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
37444 (min_bytes_remaining): Same.
37445 (get_string_length): Same.
37446 (format_string): Same.
37447 (format_directive): Same.
37448 (add_bytes): Same.
37449 (pass_sprintf_length::handle_gimple_call): Same.
37450
37451 2017-01-12 Jakub Jelinek <jakub@redhat.com>
37452
37453 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
37454 info.nowrite calls with no lhs that can't throw. Return bool
37455 whether gsi_remove has been called or not.
37456 (pass_sprintf_length::handle_gimple_call): Return bool whether
37457 try_substitute_return_value called gsi_remove. Formatting fix.
37458 (pass_sprintf_length::execute): Don't use gsi_remove if
37459 handle_gimple_call returned true.
37460
37461 PR bootstrap/79069
37462 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
37463 be removed due to side-effects, don't remove following barrier nor
37464 turn the successor edge into fallthru edge.
37465
37466 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37467
37468 PR target/79044
37469 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
37470 element-reversing loads and stores as not swappable.
37471
37472 2017-01-12 Nathan Sidwell <nathan@acm.org>
37473 Nicolai Stange <nicstange@gmail.com>
37474
37475 * combine.c (try_combine): Don't ignore result of overlap checking
37476 loop. Combine overlap & asm check into single loop.
37477
37478 2017-01-12 Richard Biener <rguenther@suse.de>
37479
37480 * tree-pretty-print.c (dump_generic_node): Provide -gimple
37481 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
37482
37483 2017-01-12 Richard Biener <rguenther@suse.de>
37484
37485 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
37486 and TS_TARGET_OPTION directly derive from TS_BASE.
37487 * tree-core.h (tree_optimization_option): Derive from tree_base.
37488 (tree_target_option): Likewise.
37489
37490 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
37491
37492 * config/i386/i386.c (memory_address_length): Increase len
37493 only when rip_relative_addr_p returns false.
37494
37495 2017-01-11 Julia Koval <julia.koval@intel.com>
37496
37497 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
37498 (OPTION_MASK_ISA_SGX_SET): New.
37499 (ix86_handle_option): Handle OPT_msgx.
37500 * config.gcc: Added sgxintrin.h.
37501 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
37502 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
37503 * config/i386/i386.c (ix86_target_string): Add -msgx.
37504 (PTA_SGX): New.
37505 (ix86_option_override_internal): Handle new options.
37506 (ix86_valid_target_attribute_inner_p): Add sgx.
37507 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
37508 * config/i386/i386.opt: Add msgx.
37509 * config/i386/sgxintrin.h: New file.
37510 * config/i386/x86intrin.h: Add sgxintrin.h.
37511
37512 2017-01-11 Jakub Jelinek <jakub@redhat.com>
37513
37514 PR c++/71537
37515 * fold-const.c (maybe_nonzero_address): Return 1 for function
37516 local objects.
37517 (tree_single_nonzero_warnv_p): Don't handle function local objects
37518 here.
37519
37520 PR c++/72813
37521 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
37522 of c-header.
37523
37524 2017-01-11 David Malcolm <dmalcolm@redhat.com>
37525
37526 PR driver/78877
37527 * opts.c: Include "spellcheck.h"
37528 (struct string_fragment): New struct.
37529 (struct edit_distance_traits<const string_fragment &>): New
37530 struct.
37531 (get_closest_sanitizer_option): New function.
37532 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
37533
37534 2017-01-11 Jakub Jelinek <jakub@redhat.com>
37535
37536 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
37537 by 12.
37538 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
37539 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
37540 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
37541 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
37542 for initial die_offset if dwarf_split_debug_info.
37543 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
37544 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
37545 fields.
37546 (output_skeleton_debug_sections): Formatting fix. Use
37547 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
37548 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
37549
37550 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
37551
37552 * config/arm/cortex-a53.md: Add bypasses for
37553 cortex_a53_r2f_cvt.
37554 (cortex_a53_r2f): Only use for transfers.
37555 (cortex_a53_f2r): Likewise.
37556 (cortex_a53_r2f_cvt): Add reservation for conversions.
37557 (cortex_a53_f2r_cvt): Likewise.
37558
37559 2017-01-11 Tamar Christina <tamar.christina@arm.com>
37560
37561 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
37562 to all inlined functions, change static to extern.
37563
37564 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
37565
37566 PR target/78253
37567 * config/arm/arm.c (legitimize_pic_address): Handle reference to
37568 weak symbol.
37569 (arm_assemble_integer): Likewise.
37570
37571 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
37572
37573 * config.gcc: Use new awk script to check CPU, FPU and architecture
37574 parameters for --with-... options.
37575 * config/arm/parsecpu.awk: New file
37576 * config/arm/arm-cpus.in: New file.
37577 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
37578 files.
37579 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
37580 files.
37581 * config/arm/t-arm: Update dependency rules.
37582 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
37583 of processing .def files.
37584 * config/arm/genopt.sh: Deleted.
37585 * config/arm/gentune.sh: Deleted.
37586 * config/arm/arm-cores.def: Deleted.
37587 * config/arm/arm-arches.def: Deleted.
37588 * config/arm/arm-fpus.def: Deleted.
37589 * config/arm/arm-tune.md: Regenerated.
37590 * config/arm/arm-tables.opt: Regenerated.
37591 * config/arm/arm-cpu.h: New generated file.
37592 * config/arm/arm-cpu-data.h: New generated file.
37593 * config/arm/arm-cpu-cdata.h: New generated file.
37594
37595 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
37596
37597 PR lto/79042
37598 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
37599 bit.
37600 (input_varpool_node): Unpack dynamically_initialized bit.
37601
37602 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
37603
37604 PR rtl-optimization/79032
37605 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
37606 the alignment of the adjusted memory reference against that of MODE,
37607 instead of the alignment of the original memory reference.
37608
37609 2017-01-11 Martin Jambor <mjambor@suse.cz>
37610
37611 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
37612 test.
37613 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
37614 decorated functions.
37615
37616 2017-01-11 Richard Biener <rguenther@suse.de>
37617
37618 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
37619 set range/nonnull info for PHI results. Do not set it on
37620 stmts marked for removal.
37621
37622 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
37623
37624 * expr.c (store_field): In the bitfield case, fetch the return value
37625 from the registers before applying a single big-endian adjustment.
37626 Always do a final load for a BLKmode value not larger than a word.
37627
37628 2017-01-10 David Malcolm <dmalcolm@redhat.com>
37629
37630 PR c++/77949
37631 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
37632 that we correctly handle column numbers greater than
37633 LINE_MAP_MAX_COLUMN_NUMBER.
37634
37635 2017-01-10 Martin Sebor <msebor@redhat.com>
37636
37637 PR middle-end/78245
37638 * gimple-ssa-sprintf.c (get_destination_size): Call
37639 {init,fini}object_sizes.
37640 * tree-object-size.c (addr_object_size): Adjust.
37641 (pass_through_call): Adjust.
37642 (pass_object_sizes::execute): Adjust.
37643 * tree-object-size.h (fini_object_sizes): Declare.
37644
37645 2017-01-10 Martin Sebor <msebor@redhat.com>
37646
37647 PR tree-optimization/78775
37648 * builtins.c (get_size_range): Move...
37649 * calls.c: ...to here.
37650 (alloc_max_size): Accept zero argument.
37651 (operand_signed_p): Remove.
37652 (maybe_warn_alloc_args_overflow): Call get_size_range.
37653 * calls.h (get_size_range): Declare.
37654
37655 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
37656
37657 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
37658 from TI's devices.csv file as of September 2016.
37659 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
37660
37661 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
37662
37663 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
37664 * doc/invoke.texi: Likewise.
37665 * doc/md.texi: Likewise.
37666 * doc/objc.texi: Likewise.
37667
37668 2017-01-10 Joshua Conner <joshconner@google.com>
37669
37670 * config/arm/fuchsia-elf.h: New file.
37671 * config/fuchsia.h: New file.
37672 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
37673 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
37674 targets.
37675 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
37676
37677 2016-01-10 Richard Biener <rguenther@suse.de>
37678
37679 PR tree-optimization/79034
37680 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
37681 Propagate out degenerate PHIs in the joiner.
37682
37683 2017-01-10 Martin Liska <mliska@suse.cz>
37684
37685 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
37686 (sort_congruence_classes_by_decl_uid): Likewise.
37687 (sort_congruence_class_groups_by_decl_uid): Likewise.
37688 (sem_item_optimizer::merge_classes): Sort class, groups in these
37689 classes and members in the groups by DECL_UID of declarations.
37690 This would make merge operations stable.
37691
37692 2017-01-10 Martin Liska <mliska@suse.cz>
37693
37694 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
37695 usage of m_classes_vec.
37696 (sem_item_optimizer::~sem_item_optimizer): Likewise.
37697 (sem_item_optimizer::get_group_by_hash): Likewise.
37698 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
37699 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
37700 (sem_item_optimizer::verify_classes): Likewise.
37701 (sem_item_optimizer::process_cong_reduction): Likewise.
37702 (sem_item_optimizer::dump_cong_classes): Likewise.
37703 (sem_item_optimizer::merge_classes): Likewise.
37704 * ipa-icf.h (congruence_class_hash): Rename from
37705 congruence_class_group_hash. Remove declaration of m_classes_vec.
37706
37707 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
37708
37709 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
37710 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
37711 * config.gcc: Add avx512vpopcntdqintrin.h.
37712 * config/i386/avx512vpopcntdqintrin.h: New.
37713 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
37714 * config/i386/i386-builtin-types.def: Add new types.
37715 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
37716 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
37717 __builtin_ia32_vpopcountq_v8di_mask): New.
37718 * config/i386/i386-c.c (ix86_target_macros_internal): Define
37719 __AVX512VPOPCNTDQ__.
37720 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
37721 (PTA_AVX512VPOPCNTDQ): Define.
37722 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
37723 TARGET_AVX512VPOPCNTDQ_P): Define.
37724 * config/i386/i386.opt: Add mavx512vpopcntdq.
37725 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
37726 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
37727
37728 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
37729
37730 PR middle-end/77484
37731 * predict.def (PRED_CALL): Set to 67.
37732
37733 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
37734
37735 * expr.c (store_field): In the bitfield case, if the value comes from
37736 a function call and is of an aggregate type returned in registers, do
37737 not modify the field mode; extract the value in all cases if the mode
37738 is BLKmode and the size is not larger than a word.
37739
37740 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
37741
37742 PR target/71017
37743 * config/i386/cpuid.h: Fix undefined behavior.
37744
37745 2017-01-04 Jeff Law <law@redhat.com>
37746
37747 PR tree-optimization/79007
37748 PR tree-optimization/67955
37749 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
37750 conservative for pt.null when flag_non_call_exceptions is on.
37751
37752 2017-01-09 Jakub Jelinek <jakub@redhat.com>
37753
37754 PR translation/79019
37755 PR translation/79020
37756 * params.def (PARAM_INLINE_MIN_SPEEDUP,
37757 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
37758 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
37759 in descriptions.
37760 * config/avr/avr.opt (maccumulate-args): Likewise.
37761 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
37762 * common.opt (freport-bug): Likewise.
37763 * cif-code.def (CIF_FINAL_ERROR): Likewise.
37764 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
37765 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
37766 translatable string.
37767 * config/i386/i386.c (function_value_32): Likewise.
37768 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
37769 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
37770 Likewise.
37771 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
37772 * common/config/msp430/msp430-common.c (msp430_handle_option):
37773 Likewise.
37774 * symtab.c (symtab_node::verify_base): Likewise.
37775 * opts.c (set_debug_level): Likewise.
37776 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
37777 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
37778 missing whitespace to translatable strings.
37779 * config/avr/avr.md (bswapsi2): Fix typo in comment.
37780 * config/sh/superh.h: Likewise.
37781 * config/i386/xopintrin.h: Likewise.
37782 * config/i386/znver1.md: Likewise.
37783 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
37784 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
37785 * double-int.h (struct double_int): Likewise.
37786 * double-int.c (div_and_round_double): Likewise.
37787 * wide-int.cc: Likewise.
37788 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
37789 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
37790 * cfgcleanup.c (crossjumps_occured): Renamed to ...
37791 (crossjumps_occurred): ... this.
37792 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
37793 Adjust all uses.
37794
37795 PR tree-optimization/78899
37796 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
37797 returning bool return struct loop *, NULL for failure and the new
37798 loop on success.
37799 (versionable_outer_loop_p): Don't version outer loop if it has
37800 dont_vectorized bit set.
37801 (tree_if_conversion): When versioning outer loop, ensure
37802 tree_if_conversion is performed also on the inner loop of the
37803 non-vectorizable outer loop copy.
37804 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
37805 LOOP_VECTORIZED in inner loop of the scalar outer loop and
37806 prevent vectorization of it.
37807 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
37808 the outer loop vectorization of the non-scalar version is attempted
37809 before vectorization of the inner loop in scalar version. If
37810 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
37811 vectorization of its inner loop.
37812 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
37813 has 2 inner loops, rename also on edges from bb whose single pred
37814 is outer_loop->header. Fix typo in function comment.
37815
37816 2017-01-09 Martin Sebor <msebor@redhat.com>
37817
37818 PR bootstrap/79033
37819 * asan.c (asan_emit_stack_protection): Increase local buffer size
37820 to avoid snprintf truncation warning.
37821
37822 2017-01-09 Andrew Pinski <apinski@cavium.com>
37823
37824 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
37825 to reference thunderx2t99 for the tuning structure
37826 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
37827 Rename to ...
37828 (thunderx2t99_extra_costs): This.
37829 * config/aarch64/aarch64-tune.md: Regenerate.
37830 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
37831 (vulcan_addrcost_table): This.
37832 (vulcan_regmove_cost): Rename to ...
37833 (thunderx2t99_regmove_cost): This.
37834 (vulcan_vector_cost): Rename to ...
37835 (thunderx2t99_vector_cost): this.
37836 (vulcan_branch_cost): Rename to ...
37837 (thunderx2t99_branch_cost): This.
37838 (vulcan_tunings): Rename to ...
37839 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
37840 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
37841
37842 2017-01-09 Martin Jambor <mjambor@suse.cz>
37843
37844 PR ipa/78365
37845 PR ipa/78599
37846 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
37847 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
37848 (propagate_vr_accross_jump_function): Use the above function for all
37849 value range computations for pass-through jump functions and type
37850 converasion from explicit value range values.
37851 (ipcp_propagate_stage): Do not attempt to deduce types of formal
37852 parameters from TYPE_ARG_TYPES.
37853 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
37854 (ipa_write_node_info): Stream type of the actual argument.
37855 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
37856
37857 2017-01-09 Martin Liska <mliska@suse.cz>
37858
37859 PR pch/78970
37860 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
37861 (lookup_compiler): Do not show error message with have_E.
37862
37863 2017-01-09 Jakub Jelinek <jakub@redhat.com>
37864
37865 PR tree-optimization/78938
37866 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
37867 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
37868 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
37869 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
37870 fixes.
37871
37872 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37873
37874 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
37875 is const0_rtx.
37876
37877 2017-01-09 Richard Biener <rguenther@suse.de>
37878
37879 PR tree-optimization/78997
37880 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
37881 name condition properly.
37882
37883 2017-01-09 Richard Biener <rguenther@suse.de>
37884
37885 PR debug/79000
37886 * dwarf2out.c (is_cxx): New overload with context.
37887 (is_naming_typedef_decl): Use it.
37888
37889 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
37890
37891 * invoke.texi (Option Summary): Correct spacing in option lists
37892 and add line breaks to fix over-long lines.
37893
37894 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
37895
37896 PR middle-end/17660
37897
37898 * extend.texi (Common Variable Attributes): Add xref to GCC
37899 Internals manual to explain mode attribute keywords.
37900
37901 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
37902
37903 PR other/16519
37904 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
37905 and Preprocessor Options.
37906 (Options for Linking): Document -pthread here....
37907 (RS/6000 and PowerPC Options): ...not here.
37908 (Solaris 2 Options): ...or here.
37909 * doc/cppopts.texi: Document -pthread.
37910
37911 2017-01-08 Martin Sebor <msebor@redhat.com>
37912
37913 PR middle-end/77708
37914 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
37915 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
37916 New member functions.
37917 (format_directive): Used them.
37918 (add_bytes): Same.
37919 (pass_sprintf_length::handle_gimple_call): Same.
37920 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
37921 to avoid truncation for any argument.
37922 (extract_affine_mul): Same.
37923 * tree.c (get_file_function_name): Same.
37924
37925 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
37926
37927 PR middle-end/77484
37928 * predict.def (PRED_INDIR_CALL): Set to 86.
37929
37930 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
37931
37932 PR preprocessor/54124
37933 * doc/cppopts.texi: Reformat -d subtable to list the full name
37934 of the options. Add cross-reference to the docs for the general
37935 compiler -d options.
37936 * doc/invoke.texi (Developer Options): Add cross-reference to the
37937 preprocessor-specific -d option documentation.
37938
37939 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
37940
37941 PR preprocessor/13498
37942 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
37943 redudant material, and reflect new command-line options.
37944 (System Headers): Likewise.
37945
37946 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
37947
37948 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
37949 -isystem, and -idirafter. Copy-edit.
37950 * doc/cppopts.texi: Copy-edit. Remove contradiction about
37951 default for -ftrack-macro-expansion. Delete obsolete and
37952 badly-formatted implementation details about -fdebug-cpp output.
37953 * doc/cppwarnopts.texi: Copy-edit.
37954
37955 2017-01-07 David Malcolm <dmalcolm@redhat.com>
37956
37957 PR c++/72803
37958 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
37959 that the transition from a max line width >= 1<<10 to narrower
37960 lines works correctly.
37961
37962 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
37963
37964 * doc/options.texi (PerFunction): New.
37965 * opt-functions.awk (switch_flags): Map both Optimization and
37966 PerFunction to CL_OPTIMIZATION.
37967 * opth-gen.awk: Test for PerFunction flag along with
37968 Optimization.
37969 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
37970 it only when the latter is present. Skip those that don't in
37971 the hash function generator.
37972 * common.opt (fvar-tracking): Mark as PerFunction instead of
37973 Optimization.
37974 (fvar-tracking-assignments): Likewise.
37975 (fvar-tracking-assignments-toggle): Likewise.
37976 (fvar-tracking-uninit): Likewise.
37977
37978 2017-01-07 Jakub Jelinek <jakub@redhat.com>
37979
37980 PR translation/79018
37981 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
37982 the and store.
37983
37984 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
37985
37986 PR target/57583
37987 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
37988 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
37989 TARGET_LONG_JUMP_TABLE_OFFSETS.
37990 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
37991 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
37992 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
37993 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
37994 * config/m68k/m68k.md (tablejump expander): Likewise.
37995 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
37996 TARGET_LONG_JUMP_TABLE_OFFSETS.
37997 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
37998 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
37999
38000 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
38001 David Holsgrove <david.holsgrove@xilinx.com>
38002
38003 * common/config/microblaze/microblaze-common.c
38004 (TARGET_EXCEPT_UNWIND_INFO): Remove.
38005 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
38006 New prototype.
38007 * config/microblaze/microblaze.c (microblaze_must_save_register)
38008 (microblaze_expand_epilogue, microblaze_return_addr): Handle
38009 calls_eh_return.
38010 (microblaze_eh_return): New function.
38011 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
38012 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
38013 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
38014 * config/microblaze/microblaze.md (eh_return): New pattern.
38015
38016 2017-01-06 Jakub Jelinek <jakub@redhat.com>
38017
38018 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
38019 GCC_DIAGNOSTIC_STRINGIFY): Define.
38020
38021 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
38022
38023 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
38024
38025 * config/arm/arm.md (<mcrr>): New.
38026 (<mrrc>): New.
38027 * config/arm/arm.c (arm_arch5te): New.
38028 (arm_option_override): Set arm_arch5te.
38029 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
38030 and mrrc2.
38031 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
38032 (arm_mcrr_qualifiers): ... this. New.
38033 (MRRC_QUALIFIERS): Define to...
38034 (arm_mrrc_qualifiers): ... this. New.
38035 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
38036 __arm_mrrc2): New.
38037 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
38038 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
38039 (MRRCI, mrrc, MRRC): New.
38040 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
38041 VUNSPEC_MRRC2): New.
38042
38043 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
38044
38045 * config/arm/arm.md (<mcr>): New.
38046 (<mrc>): New.
38047 * config/arm/arm.c (arm_coproc_builtin_available): Add
38048 support for mcr, mrc, mcr2 and mrc2.
38049 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
38050 (arm_mcr_qualifiers): ... this. New.
38051 (MRC_QUALIFIERS): Define to ...
38052 (arm_mrc_qualifiers): ... this. New.
38053 (MCR_QUALIFIERS): Define to ...
38054 (arm_mcr_qualifiers): ... this. New.
38055 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
38056 __arm_mrc2): New.
38057 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
38058 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
38059 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
38060 VUNSPEC_MRC2): New.
38061
38062 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
38063
38064 * config/arm/arm.md (*ldc): New.
38065 (*stc): New.
38066 (<ldc>): New.
38067 (<stc>): New.
38068 * config/arm/arm.c (arm_coproc_builtin_available): Add
38069 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
38070 (arm_coproc_ldc_stc_legitimate_address): New.
38071 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
38072 'qualifier_const_pointer'.
38073 (LDC_QUALIFIERS): Define to...
38074 (arm_ldc_qualifiers): ... this. New.
38075 (STC_QUALIFIERS): Define to...
38076 (arm_stc_qualifiers): ... this. New.
38077 * config/arm/arm-protos.h
38078 (arm_coproc_ldc_stc_legitimate_address): New.
38079 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
38080 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
38081 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
38082 stc2, stcl, stc2l): New.
38083 * config/arm/constraints.md (Uz): New.
38084 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
38085 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
38086 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
38087 VUNSPEC_STC2L): New.
38088
38089 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
38090
38091 * config/arm/arm.md (<cdp>): New.
38092 * config/arm/arm.c (neon_const_bounds): Rename this ...
38093 (arm_const_bounds): ... this.
38094 (arm_coproc_builtin_available): New.
38095 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
38096 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
38097 (CDP_QUALIFIERS): Define to...
38098 (arm_cdp_qualifiers): ... this. New.
38099 (void_UP): Define.
38100 (arm_expand_builtin_args): Add case for 6 arguments.
38101 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
38102 (arm_const_bounds): ... this.
38103 (arm_coproc_builtin_available): New.
38104 * config/arm/arm_acle.h (__arm_cdp): New.
38105 (__arm_cdp2): New.
38106 * config/arm/arm_acle_builtins.def (cdp): New.
38107 (cdp2): New.
38108 * config/arm/iterators.md (CDPI,CDP,cdp): New.
38109 * config/arm/neon.md: Rename all 'neon_const_bounds' to
38110 'arm_const_bounds'.
38111 * config/arm/types.md (coproc): New.
38112 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
38113 * doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
38114 * doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
38115 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
38116
38117 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
38118
38119 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
38120 (UBINOP_QUALIFIERS): New.
38121 (si_UP): Define.
38122 (acle_builtin_data): New. Change comment.
38123 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
38124 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
38125 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
38126 arm_acle_builtins.def.
38127 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
38128 (arm_init_acle_builtins): New.
38129 (CRC32_BUILTIN): Remove.
38130 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
38131 crc32cb, crc32ch and crc32cw.
38132 (arm_init_crc32_builtins): Remove.
38133 (arm_init_builtins): Use arm_init_acle_builtins rather
38134 than arm_init_crc32_builtins.
38135 (arm_expand_acle_builtin): New.
38136 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
38137 * config/arm/arm_acle_builtins.def: New.
38138
38139 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
38140
38141 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
38142 (arm_builtin_datum): ... this.
38143 (arm_init_neon_builtin): Rename to ...
38144 (arm_init_builtin): ... this. Add a new parameters PREFIX
38145 and USE_SIG_IN_NAME.
38146 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
38147 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
38148 'arm_builtin_datum'.
38149 (arm_init_vfp_builtins): Likewise.
38150 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
38151 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
38152 (arm_expand_neon_args): Rename to ...
38153 (arm_expand_builtin_args): ... this. Rename builtin_arg
38154 enum values and differentiate between ARG_BUILTIN_MEMORY
38155 and ARG_BUILTIN_NEON_MEMORY.
38156 (arm_expand_neon_builtin_1): Rename to ...
38157 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
38158 values, arm_expand_builtin_args and add bool parameter NEON.
38159 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
38160 (arm_expand_vfp_builtin): Likewise.
38161 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
38162
38163 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
38164
38165 PR middle-end/77484
38166 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
38167 * predict.c (tree_estimate_probability_bb): Reverse direction of
38168 polymorphic call predictor.
38169
38170 2017-01-06 David Malcolm <dmalcolm@redhat.com>
38171
38172 * passes.c (execute_one_pass): Split out pass-skipping logic into...
38173 (determine_pass_name_match): ...this new function and...
38174 (should_skip_pass_p): ...this new function.
38175
38176 2017-01-06 Nathan Sidwell <nathan@acm.org>
38177
38178 * ipa-visibility.c (function_and_variable_visibility): Reformat
38179 comments and long lines. Remove extrneous if.
38180 * symtab.c (symtab_node::make_decl_local): Fix code format.
38181 (symtab_node::set_section_for_node): Fix comment typo.
38182
38183 2017-01-06 Martin Liska <mliska@suse.cz>
38184
38185 PR bootstrap/79003
38186 * lra-constraints.c: Rename invariant to lra_invariant.
38187 * predict.c (set_even_probabilities): Initialize e to NULL.
38188
38189 2017-01-05 Martin Sebor <msebor@redhat.com>
38190
38191 PR tree-optimization/78910
38192 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
38193 (format_integer): Correct off-by-one error in the handling
38194 of precision with negative numbers in signed conversions..
38195
38196 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
38197
38198 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
38199
38200 2017-01-05 Jakub Jelinek <jakub@redhat.com>
38201
38202 PR tree-optimization/71016
38203 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
38204 factor_out_conditional_conversion. Formatting fix.
38205 (factor_out_conditional_conversion): Add cond_stmt argument.
38206 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
38207 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
38208 Formatting fix.
38209
38210 2017-01-05 David Malcolm <dmalcolm@redhat.com>
38211
38212 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
38213 read-rtl-function.o, and selftest-rtl.o.
38214 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
38215 (selftest::aarch64_test_loading_full_dump): New function.
38216 (selftest::aarch64_run_selftests): New function.
38217 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
38218 selftest::aarch64_run_selftests.
38219 * config/i386/i386.c
38220 (selftest::ix86_test_loading_dump_fragment_1): New function.
38221 (selftest::ix86_test_loading_call_insn): New function.
38222 (selftest::ix86_test_loading_full_dump): New function.
38223 (selftest::ix86_test_loading_unspec): New function.
38224 (selftest::ix86_run_selftests): Call the new functions.
38225 * emit-rtl.c (maybe_set_max_label_num): New function.
38226 * emit-rtl.h (maybe_set_max_label_num): New decl.
38227 * function.c (instantiate_decls): Guard call to
38228 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
38229 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
38230 "static".
38231 * gensupport.c (gen_reader::gen_reader): Pass "false"
38232 for new "compact" param of rtx_reader.
38233 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
38234 rather than an empty string for NULL strings.
38235 * read-md.c: Potentially include config.h rather than bconfig.h.
38236 Wrap include of errors.h with #ifdef GENERATOR_FILE.
38237 (have_error): New global, copied from errors.c.
38238 (md_reader::read_name): Rename to...
38239 (md_reader::read_name_1): ...this, adding "out_loc" param,
38240 and converting "missing name or number" to returning false, rather
38241 than failing.
38242 (md_reader::read_name): Reimplement in terms of read_name_1.
38243 (md_reader::read_name_or_nil): New function.
38244 (md_reader::read_string): Handle "(nil)" by returning NULL.
38245 (md_reader::md_reader): Add new param "compact".
38246 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
38247 (md_reader::read_file): New method.
38248 * read-md.h (md_reader::md_reader): Add new param "compact".
38249 (md_reader::read_file): New method.
38250 (md_reader::is_compact): New accessor.
38251 (md_reader::read_name): Convert return type from void to file_location.
38252 (md_reader::read_name_or_nil): New decl.
38253 (md_reader::read_name_1): New decl.
38254 (md_reader::m_compact): New field.
38255 (noop_reader::noop_reader): Pass "false" for new "compact" param
38256 of rtx_reader.
38257 (rtx_reader::rtx_reader): Add new "compact" param.
38258 (rtx_reader::read_rtx_operand): Make virtual and convert return
38259 type from void to rtx.
38260 (rtx_reader::read_until): New decl.
38261 (rtx_reader::handle_any_trailing_information): New virtual function.
38262 (rtx_reader::postprocess): New virtual function.
38263 (rtx_reader::finalize_string): New virtual function.
38264 (rtx_reader::m_in_call_function_usage): New field.
38265 (rtx_reader::m_reuse_rtx_by_id): New field.
38266 * read-rtl-function.c: New file.
38267 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
38268 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
38269 (selftest::verify_three_block_rtl_cfg): New decl.
38270 * read-rtl-function.h: New file.
38271 * read-rtl.c: Potentially include config.h rather than bconfig.h.
38272 For host, include function.h, memmodel.h, and emit-rtl.h.
38273 (one_time_initialization): New function.
38274 (struct compact_insn_name): New struct.
38275 (compact_insn_names): New array.
38276 (find_code): Handle insn codes in compact dumps.
38277 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
38278 (bind_subst_iter_and_attr): Likewise.
38279 (add_condition_to_string): Likewise.
38280 (add_condition_to_rtx): Likewise.
38281 (apply_attribute_uses): Likewise.
38282 (add_current_iterators): Likewise.
38283 (apply_iterators): Likewise.
38284 (initialize_iterators): Guard usage of apply_subst_iterator with
38285 #ifdef GENERATOR_FILE.
38286 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
38287 (md_reader::read_mapping): Likewise.
38288 (add_define_attr_for_define_subst): Likewise.
38289 (add_define_subst_attr): Likewise.
38290 (read_subst_mapping): Likewise.
38291 (check_code_iterator): Likewise.
38292 (rtx_reader::read_rtx): Likewise. Move one-time initialization
38293 logic to...
38294 (one_time_initialization): New function.
38295 (rtx_reader::read_until): New method.
38296 (read_flags): New function.
38297 (parse_reg_note_name): New function.
38298 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
38299 Handle reuse_rtx ids.
38300 Wrap iterator lookup within #ifdef GENERATOR_FILE.
38301 Add parsing support for RTL dumps, mirroring the special-cases in
38302 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
38303 values, and calling handle_any_trailing_information.
38304 (rtx_reader::read_rtx_operand): Convert return type from void
38305 to rtx, returning return_rtx. Handle case 'e'. Call
38306 finalize_string on XSTR and XTMPL fields.
38307 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
38308 "(nil)" values were omitted. Call the postprocess vfunc on the
38309 return_rtx.
38310 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
38311 class ctor. Initialize m_in_call_function_usage. Call
38312 one_time_initialization.
38313 * rtl-tests.c (selftest::test_uncond_jump): Call
38314 set_new_first_and_last_insn.
38315 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
38316 * selftest-rtl.c: New file.
38317 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
38318 (selftest::get_insn_by_uid): New decl.
38319 * selftest-run-tests.c (selftest::run_tests): Call
38320 read_rtl_function_c_tests.
38321 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
38322 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
38323 dumps.
38324
38325 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
38326
38327 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
38328 operands in a special way. Assert that pos+len <= mode precision.
38329
38330 2017-01-05 Jakub Jelinek <jakub@redhat.com>
38331
38332 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
38333 3 argument Alias with unlimited for the negative form.
38334 (fno-vect-cost-model): Removed.
38335
38336 2017-01-05 Martin Liska <mliska@suse.cz>
38337
38338 * hsa-gen.c (gen_hsa_divmod): New function.
38339 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
38340
38341 2017-01-05 Martin Liska <mliska@suse.cz>
38342
38343 PR pch/78970
38344 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
38345 header.
38346
38347 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
38348
38349 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
38350 small constant length operands.
38351
38352 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
38353
38354 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
38355 between loop iterations.
38356
38357 2017-01-05 Martin Liska <mliska@suse.cz>
38358
38359 PR sanitizer/78815
38360 * gimplify.c (gimplify_decl_expr): Compare to
38361 asan_poisoned_variables instread of checking flags.
38362 (gimplify_target_expr): Likewise.
38363 (gimplify_expr): Likewise.
38364 (gimplify_function_tree): Conditionally initialize
38365 asan_poisoned_variables.
38366
38367 2017-01-04 Jeff Law <law@redhat.com>
38368
38369 PR tree-optimizatin/78812
38370 * rtl.h (contains_mem_rtx_p): Prototype.
38371 * ifcvt.c (containts_mem_rtx_p): Move from here to...
38372 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
38373 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
38374 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
38375 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
38376
38377 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
38378
38379 * input.c (assert_char_at_range): Default-initialize actual_range.
38380
38381 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
38382
38383 * df-scan.c (df_ref_create_structure): Make regno unsigned,
38384 to match the caller.
38385
38386 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
38387
38388 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
38389 insns after final jump in test to emit dummy move.
38390
38391 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
38392
38393 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
38394 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
38395
38396 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
38397
38398 * multiple_target.c (create_dispatcher_calls): Init e_next.
38399 * tree-ssa-loop-split.c (split_loop): Init border.
38400 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
38401 scalar_type.
38402
38403 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
38404
38405 PR target/71977
38406 PR target/70568
38407 PR target/78823
38408 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
38409 (altivec_register_operand): Do not return true if the operand
38410 contains a SUBREG mixing SImode and SFmode.
38411 (vsx_register_operand): Likewise.
38412 (vsx_reg_sfsubreg_ok): New predicate.
38413 (vfloat_operand): Do not return true if the operand contains a
38414 SUBREG mixing SImode and SFmode.
38415 (vint_operand): Likewise.
38416 (vlogical_operand): Likewise.
38417 (gpc_reg_operand): Likewise.
38418 (int_reg_operand): Likewise.
38419 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
38420 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
38421 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
38422 SImode and SFmode.
38423 (rs6000_emit_move_si_sf_subreg): New helper function.
38424 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
38425 fixup SUBREGs involving SImode and SFmode.
38426 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
38427 numbers for the new peephole2 optimization.
38428 (peephole2 for SFmode unions): New peephole2 to optimize cases in
38429 the GLIBC math library that do AND/IOR/XOR operations on single
38430 precision floating point.
38431 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
38432 target macros to say whether we need to avoid SUBREGs mixing
38433 SImode and SFmode.
38434 (TARGET_ALLOW_SF_SUBREG): Likewise.
38435 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
38436 (UNSPEC_SI_FROM_SF): Likewise.
38437 (iorxor): Change spacing.
38438 (and_ior_xor): New iterator for AND, IOR, and XOR.
38439 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
38440 (movdi_from_sf_zero_ext): Likewise.
38441 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
38442 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
38443 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
38444 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
38445 (fms<mode>4): Likewise.
38446 (fnma<mode>4): Likewise.
38447 (fnms<mode>4): Likewise.
38448 (nfma<mode>4): Likewise.
38449 (nfms<mode>4): Likewise.
38450
38451 2017-01-04 Marek Polacek <polacek@redhat.com>
38452
38453 PR c++/64767
38454 * doc/invoke.texi: Document -Wpointer-compare.
38455
38456 2017-01-04 Jakub Jelinek <jakub@redhat.com>
38457
38458 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
38459 RejectNegative.
38460
38461 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
38462 descriptions for -gdwarf-5 and emit them as uleb128 instead of
38463 2-byte data.
38464
38465 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
38466
38467 PR target/78056
38468 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
38469 documentation of the powerpc_popcntb_ok attribute.
38470 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
38471 code to issue warning messages if a requested CPU configuration is
38472 not supported by the binary (assembler and loader) toolchain.
38473 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
38474 made to define a built-in function that has been disabled.
38475 (paired_init_builtins): Add assertion to prevent ICE if attempt is
38476 made to define a built-in function that has been disabled.
38477 (altivec_init_builtins): Add comment explaining why definition
38478 of the DST built-in functions is not preceded by an assertion
38479 check. Add assertions to prevent ICE if attempts are made to
38480 define an altivec predicate or an abs* built-in function that has
38481 been disabled.
38482 (htm_init_builtins): Add comment explaining why definition of the
38483 htm built-in functions is not preceded by an assertion check.
38484
38485 2017-01-04 Jeff Law <law@redhat.com>
38486
38487 PR tree-optimizatin/67955
38488 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
38489 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
38490 the points-to solution does not include pt_null. Use DECL_PT_UID
38491 unconditionally.
38492
38493 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
38494
38495 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
38496 Use gen_int_mode instead of gen_lopwart for const_int operands.
38497
38498 2017-01-04 Jakub Jelinek <jakub@redhat.com>
38499
38500 PR tree-optimization/71563
38501 * match.pd: Simplify X << Y into X if Y is known to be 0 or
38502 out of range value - has low bits known to be zero.
38503
38504 2017-01-04 Alan Modra <amodra@gmail.com>
38505
38506 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
38507 * configure: Regenerate.
38508 * config.in: Regenerate.
38509
38510 2017-01-04 Jakub Jelinek <jakub@redhat.com>
38511
38512 PR bootstrap/77569
38513 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
38514 a substring of the message, but strcmp with the whole message. Ifdef
38515 ENABLE_NLS, translate the message first using dgettext.
38516
38517 2017-01-03 Jeff Law <law@redhat.com>
38518
38519 PR tree-optimizatin/78856
38520 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
38521 (mark_threaded_blocks): Remove code to truncate thread paths that
38522 cross multiple loop headers. Instead invalidate the cached loop
38523 iteration information and handle case of a thread path walking
38524 into an irreducible region.
38525
38526 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
38527
38528 PR target/78900
38529 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
38530 assertions. Add support for doing the signbit if the IEEE 128-bit
38531 floating point value is in a GPR.
38532 * config/rs6000/rs6000.md (Fsignbit): Delete.
38533 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
38534 Update the length attribute if the value is in a GPR.
38535 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
38536 the sign or zero extension instruction, since the value is always 0/1.
38537 (signbit<mode>2_dm2): Delete using <Fsignbit>.
38538
38539 PR target/78953
38540 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
38541 extracting SImode to a GPR register so that we can generate a
38542 store, limit the vector to be in a traditional Altivec register
38543 for the vextuwrx instruction.
38544
38545 2017-01-03 Ian Lance Taylor <iant@google.com>
38546
38547 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
38548
38549 2017-01-03 Martin Sebor <msebor@redhat.com>
38550
38551 PR tree-optimization/78696
38552 * gimple-ssa-sprintf.c (format_floating): Correct handling of
38553 precision. Use MPFR for %f for greater fidelity. Correct handling
38554 of %g.
38555 (pass_sprintf_length::compute_format_length): Set width and precision
38556 specified by asrerisk to void_node for vararg functions.
38557 (try_substitute_return_value): Adjust dump output.
38558
38559 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
38560
38561 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
38562
38563 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
38564
38565 * doc/invoke.texi (SPARC options): Document -mlra as the default.
38566 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
38567 -mlra/-mno-lra was passed to the compiler.
38568
38569 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
38570
38571 PR rtl-optimization/65618
38572 * emit-rtl.c (try_split): Move initialization of "before" and
38573 "after" to just before the call to emit_insn_after_setloc.
38574
38575 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
38576
38577 * doc/md.texi (Standard Names): Remove reference to Java frontend.
38578
38579 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
38580
38581 * dwarf2out.c (gen_enumeration_type_die): When
38582 -gno-strict-dwarf, add a DW_AT_encoding attribute.
38583
38584 2017-01-03 Jakub Jelinek <jakub@redhat.com>
38585
38586 PR tree-optimization/78965
38587 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
38588 Change first argument from const call_info & to call_info &. For %n
38589 set info.nowrite to false.
38590
38591 PR middle-end/78901
38592 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
38593 possibly throwing calls.
38594
38595 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
38596 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
38597 and fns handling, rather than in a separate case SSA_NAME.
38598
38599 2017-01-02 Jeff Law <law@redhat.com>
38600
38601 * config/darwin-driver.c (darwin_driver_init): Const-correctness
38602 fixes for first_period and second_period variables.
38603
38604 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
38605
38606 PR target/78967
38607 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
38608 (*insvqi_1): New insn pattern.
38609 (*insvqi_1_mem_rex64): Ditto.
38610 (*insvqi_2): Ditto.
38611 (*insvqi_3): Rename from *insvqi.
38612
38613 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
38614
38615 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
38616
38617 * doc/cfg.texi (Edges): Remove reference to Java.
38618 (Maintaining the CFG): Ditto.
38619
38620 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
38621
38622 PR middle-end/77674
38623 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
38624 transparent aliases.
38625
38626 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
38627
38628 PR middle-end/77484
38629 * predict.def (PRED_CALL): Update hitrate.
38630 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
38631 * predict.c (tree_estimate_probability_bb): Split CALL predictor
38632 into direct/indirect/polymorphic variants.
38633
38634 2017-01-01 Jakub Jelinek <jakub@redhat.com>
38635
38636 Update copyright years.
38637
38638 * gcc.c (process_command): Update copyright notice dates.
38639 * gcov-dump.c (print_version): Ditto.
38640 * gcov.c (print_version): Ditto.
38641 * gcov-tool.c (print_version): Ditto.
38642 * gengtype.c (create_file): Ditto.
38643 * doc/cpp.texi: Bump @copying's copyright year.
38644 * doc/cppinternals.texi: Ditto.
38645 * doc/gcc.texi: Ditto.
38646 * doc/gccint.texi: Ditto.
38647 * doc/gcov.texi: Ditto.
38648 * doc/install.texi: Ditto.
38649 * doc/invoke.texi: Ditto.
38650 \f
38651 Copyright (C) 2017 Free Software Foundation, Inc.
38652
38653 Copying and distribution of this file, with or without modification,
38654 are permitted in any medium without royalty provided the copyright
38655 notice and this notice are preserved.