]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
[thirdparty/gcc.git] / gcc / ChangeLog
1 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
2
3 * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
4 * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
5 * cgraph.c: Likewise.
6 * cgraphunit.c: Likewise.
7 * gengtype.c: Likewise.
8 * ipa-cp.c: Likewise.
9 * ipa-devirt.c: Likewise.
10 * ipa-icf.c: Likewise.
11 * ipa-predicate.c: Likewise.
12 * ipa-profile.c: Likewise.
13 * ipa-prop.c: Likewise.
14 * ipa-split.c: Likewise.
15 * ipa.c: Likewise.
16 * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
17 edge_predicate_pool, dump_inline_hints,
18 inline_summary::account_size_time, redirect_to_unreachable,
19 edge_set_predicate, set_hint_predicate,
20 evaluate_conditions_for_known_args, evaluate_properties_for_edge,
21 inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
22 inline_summary_t::remove, remap_hint_predicate_after_duplication,
23 inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
24 ipa_call_summary_t::remove, initialize_growth_caches,
25 free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
26 debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
27 mark_modified, unmodified_parm_1, unmodified_parm,
28 unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
29 set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
30 compute_bb_predicates, will_be_nonconstant_expr_predicate,
31 will_be_nonconstant_predicate, record_modified_bb_info,
32 get_minimal_bb, record_modified, param_change_prob,
33 phi_result_unknown_predicate, predicate_for_phi_result,
34 array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
35 estimate_function_body_sizes, compute_inline_parameters,
36 compute_inline_parameters_for_curren, pass_data_inline_parameters,
37 estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
38 inline_update_callee_summaries, remap_edge_change_prob,
39 remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
40 inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
41 inline_analyze_function, inline_summary_t::insert,
42 inline_generate_summary, read_ipa_call_summary, inline_read_section,
43 inline_read_summary, write_ipa_call_summary, inline_write_summary,
44 inline_free_summary): Move to ipa-fnsummary.h
45 (predicate_t): Remove.
46 * ipa-fnsummary.c: New file.
47 * ipa-inline.h: Do not include sreal.h and ipa-predicate.h
48 (enum inline_hints_vals, inline_hints, agg_position_info,
49 INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
50 inline_summaries, ipa_call_summary, ipa_call_summary_t,
51 ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
52 dump_inline_summary, dump_inline_hints, inline_generate_summary,
53 inline_read_summary, inline_write_summary, inline_free_summary,
54 inline_analyze_function, initialize_inline_failed,
55 inline_merge_summary, inline_update_overall_summary,
56 compute_inline_parameters): Move to ipa-fnsummary.h
57 * ipa-fnsummary.h: New file.
58 * ipa-inline-transform.h: Include ipa-inline.h.
59 * ipa-inline.c: LIkewise.
60
61 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
62
63 * ipa-inline.c (edge_badness): Use inlined_time instead of
64 inline_summaries->get.
65
66 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
67
68 * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
69
70 2017-05-22 Nathan Sidwell <nathan@acm.org>
71
72 * doc/invoke.texi (fdump-translation-unit): Delete documentation.
73 (fdump-lang): Document 'raw' option.
74 * dumpfile.h (TDI_tu): Delete.
75 * dumpfile.c (dump_files): Remove translation-unit.
76 (FIRST_AUTO_NUMBERED_DUMP): Decrement.
77
78 2017-05-22 Georg-Johann Lay <avr@gjlay.de>
79
80 * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
81 command option from $(AWK) call.
82 * config/avr/genmultilib.awk: Simplify and rewrite so that it
83 generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
84 [FORMAT]: Remove handling of variable.
85 * config/avr/t-multilib: Regenerate.
86
87 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
88
89 * ipa-inline-analysis.c (inline_summary::reset): Do not reset
90 self_time.
91 (dump_inline_summary): Do not print self_time.
92 (estimate_function_body_sizes): Do not set self_time.
93 (compute_inline_parameters): Likewise.
94 (inline_read_section, inline_write_summary): Do not stream self_time.
95 * ipa-inline.h (inline_summary): Drop self_time.
96
97 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
98
99 * ipa-inline-analysis.c (account_size_time): Rename to ...
100 (inline_summary::account_size_time): ... this one.
101 (reset_ipa_call_summary): Turn to ...
102 (ipa_call_summary::reset): ... this one.
103 (reset_inline_summary): Turn to ...
104 (inline_summary::reset): ... this one.
105 (inline_summary_t::remove): Update.
106 (inline_summary_t::duplicate): Update.
107 (ipa_call_summary_t::remove): Update.
108 (dump_inline_summary): Update.
109 (estimate_function_body_sizes): Update.
110 (compute_inline_parameters): Update.
111 (estimate_node_size_and_time): Update.
112 (inline_merge_summary): Update.
113 (inline_update_overall_summary): Update.
114 (inline_read_section): Update.
115 (inline_write_summary): Update.
116 * ipa-inline.h (inline_summary): Rename entry to size_time_table;
117 add account_size_time and reset member functions.
118 (ipa_call_summary): Add reset function.
119 * ipa-predicate.h (predicate::operator &): Constify.
120
121 2017-05-22 Richard Biener <rguenther@suse.de>
122
123 * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
124
125 2017-05-19 Jason Merrill <jason@redhat.com>
126
127 * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
128
129 2017-05-19 Marek Polacek <polacek@redhat.com>
130
131 PR sanitizer/80800
132 * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
133 TYPE_OVERFLOW_WRAPS checks.
134
135 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
136
137 * tree-core.h (enum omp_clause_default_kind): Add
138 "OMP_CLAUSE_DEFAULT_PRESENT".
139 * tree-pretty-print.c (dump_omp_clause): Handle it.
140 * gimplify.c (enum gimplify_omp_var_data): Add
141 "GOVD_MAP_FORCE_PRESENT".
142 (gimplify_adjust_omp_clauses_1): Map it to
143 "GOMP_MAP_FORCE_PRESENT".
144 (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
145
146 * gimplify.c (oacc_default_clause): Clarify.
147
148 2017-05-19 Nathan Sidwell <nathan@acm.org>
149
150 LANG_HOOK_REGISTER_DUMPS
151 * toplev.c (general_init): Call register dump lang hook.
152 * doc/invoke.texi: Document -fdump-lang option family.
153 * dumpfile.c (dump_files): Remove class dump here.
154 (FIRST_AUTO_NUMBERED_DUMP): Adjust.
155 * dumpfile.h (tree_dump_index): Remove TDI_class.
156 * langhooks-def.h (lhd_register_dumps): Declare.
157 (LANG_HOOKS_REGISTER_DUMPS): Define.
158 (LANG_HOOKS_INITIALIZER): Add it.
159 * langhooks.c (lhd_register_dumps): Define.
160 * langhooks.h (struct lang_hooks): Add register_dumps.
161
162 2017-05-19 Nathan Sidwell <nathan@acm.org>
163
164 * context.h (context::set_passes): New.
165 * context.c (context::context): Do not create pass manager.
166 * toplev.c (general_init): Create pass manager here.
167
168 2017-05-19 Segher Boessenkool <segher@kernel.crashing.org>
169
170 * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
171 use this splitter if two add or or instructions would also work for
172 the constant we want to generate.
173
174 2017-05-19 Richard Biener <rguenther@suse.de>
175
176 PR build/80821
177 * genmatch.c (dt_node::gen_kids_1): Add missing scope around
178 predicate evaluation.
179
180 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
181
182 * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
183 add ctor.
184 * ipa-inline.c (want_inline_small_function_p): Do not cast to
185 unsigned.
186
187 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
188
189 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
190 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
191 (inline_edge_summary_vec): Turn into ...
192 (ipa_call_summaries): ... this one.
193 (redirect_to_unreachable, edge_set_predicate,
194 evaluate_properties_for_edge, inline_summary_alloc,
195 reset_ipa_call_summary, reset_inline_summary,
196 inline_summary_t::duplicate): Update.
197 (inline_edge_duplication_hook): Turn to ...
198 (ipa_call_summary_t::duplicate): ... this one.
199 (inline_edge_removal_hook): Turn to ...
200 (ipa_call_summary_t::remove): ... this one.
201 (dump_inline_edge_summary): Turn to ...
202 (dump_ipa_call_summary): ... this one.
203 (estimate_function_body_sizes): Update.
204 (inline_update_callee_summaries): Update.
205 (remap_edge_change_prob): Update.
206 (remap_edge_summaries): Update.
207 (inline_merge_summary): Update.
208 (do_estimate_edge_time): Update.
209 (inline_generate_summary): Update.
210 (inline_read_section): Update.
211 (inline_read_summary): Update.
212 (inline_free_summary): Update.
213 * ipa-inline.c (can_inline_edge_p): Update.
214 (compute_inlined_call_time): Update.
215 (want_inline_small_function_p): Update.
216 (edge_badness): Update.
217 (early_inliner): Update.
218 * ipa-inline.h (inline_edge_summary): Turn to ...
219 (ipa_call_summary): ... this one.
220 (ipa_call_summary_t): New class.
221 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
222 (ipa_call_summaries): New.
223 (inline_edge_summary): Remove.
224 (estimate_edge_growth): Update.
225 * ipa-profile.c (ipa_propagate_frequency_1): Update.
226 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
227 * ipa-split.c (execute_split_functions): Update.
228 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
229
230 2017-05-19 Richard Biener <rguenther@suse.de>
231
232 PR middle-end/80764
233 * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
234
235 2017-05-18 Segher Boessenkool <segher@kernel.crashing.org>
236
237 * config/rs6000/rs6000.c (struct machine_function): Add field
238 fpr_is_wrapped_separately.
239 (rs6000_get_separate_components): Use 64 components. Handle the
240 new FPR components.
241 (rs6000_components_for_bb): Handle the FPR components.
242 (rs6000_emit_prologue_components): Handle the FPR components.
243 (rs6000_emit_epilogue_components): Handle the FPR components.
244 (rs6000_set_handled_components): Handle the FPR components.
245 (rs6000_emit_prologue): Don't output prologue code for those FPRs
246 that are already separately shrink-wrapped.
247 (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
248 that are already separately shrink-wrapped.
249
250 2017-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
251
252 PR target/80510
253 * config/rs6000/predicates.md (simple_offsettable_mem_operand):
254 New predicate.
255
256 * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
257 (define_peephole2 for Altivec d-form load): Add peepholes to catch
258 cases where the register allocator uses a move and an offsettable
259 memory operation to/from a FPR register on ISA 2.06/2.07.
260 (define_peephole2 for Altivec d-form store): Likewise.
261
262 2017-05-18 Uros Bizjak <ubizjak@gmail.com>
263
264 PR target/80799
265 * config/i386/mmx.md (*mov<mode>_internal): Enable
266 alternatives 11, 12, 13 and 14 also for 32bit targets.
267 Remove alternatives 15, 16, 17 and 18.
268 * config/i386/sse.md (vec_concatv2di): Change
269 alternative (!x, *y) to (x, ?!*Yn).
270
271 2017-05-18 Paolo Carlini <paolo.carlini@oracle.com>
272
273 * dumpfile.h (enum dump_kind): Remove stray comma.
274
275 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
276
277 * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
278 * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
279 predicate::num_conditions
280 (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
281 (CHANGED): turn into predicate::changed.
282 (agg_position_info): Move to ipa-predicate.h
283 (add_condition, predicate::add_clause, predicate::operator &=,
284 predicate::or_with, predicate::evaluate, predicate::probability,
285 dump_condition, dump_clause, predicate::dump,
286 predicate::remap_after_duplication, predicate::remap_after_inlining,
287 predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
288 (evaluate_conditions_for_known_args): Update.
289 (set_cond_stmt_execution_predicate): Update.
290 * ipa-inline.h: Include ipa-predicate.h
291 (condition, inline_param_summary, conditions, agg_position_info,
292 predicate): Move to ipa-predicate.h
293 * ipa-predicate.c: New file.
294 * ipa-predicate.h: New file.
295
296 2017-05-18 Wilco Dijkstra <wdijkstr@arm.com>
297
298 * final.c (leaf_function_p): Check we are not in a sequence.
299
300 2017-05-18 Martin Liska <mliska@suse.cz>
301
302 * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
303 * dumpfile.c (dump_register): Use new enum dump_kind.
304 (get_dump_file_name): Likewise.
305 (dump_enable_all): Likewise.
306 (dump_switch_p_1): Likewise.
307 (enable_rtl_dump_file): Remove usage of TDF_RTL.
308 * dumpfile.h (enum dump_kind): New enum type.
309 (struct dump_file_info): Create constructor and
310 format fields and comments.
311 * passes.c (pass_manager::register_one_dump_file):
312 Use num dump_kind.
313 * statistics.c (statistics_early_init): Likewise.
314 * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
315 TDF_TREE with TDF_SLIM.
316 (gather_memory_references_ref): Likewise.
317
318 2017-05-18 Martin Liska <mliska@suse.cz>
319
320 * vec.h (struct vnull): Use it.
321
322 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
323
324 * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
325 (true_predicate, false_predicate, true_predicate_p,
326 false_predicate_p): Remove.
327 (single_cond_predicate, not_inlined_predicate): Turn to member function
328 in ipa-inline.h
329 (add_condition): Update.
330 (add_clause): Turn to...
331 (predicate::add_clause): ... this one; update; allow passing NULL
332 as parameter.
333 (and_predicates): Turn to ...
334 (predicate::operator &=): ... this one.
335 (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
336 (or_predicates): Turn to ...
337 (predicate::or_with): ... this one.
338 (evaluate_predicate): Turn to ...
339 (predicate::evaluate): ... this one.
340 (predicate_probability): Turn to ...
341 (predicate::probability): ... this one.
342 (dump_condition): Update.
343 (dump_predicate): Turn to ...
344 (predicate::dump): ... this one.
345 (account_size_time): Update.
346 (edge_set_predicate): Update.
347 (set_hint_predicate): UPdate.
348 (evaluate_conditions_for_known_args): Update.
349 (evaluate_properties_for_edge): Update.
350 (remap_predicate_after_duplication): Turn to...
351 (predicate::remap_after_duplication): ... this one.
352 (remap_hint_predicate_after_duplication): Update.
353 (inline_summary_t::duplicate): UPdate.
354 (dump_inline_edge_summary): Update.
355 (dump_inline_summary): Update.
356 (set_cond_stmt_execution_predicate): Update.
357 (set_switch_stmt_execution_predicate): Update.
358 (compute_bb_predicates): Update.
359 (will_be_nonconstant_expr_predicate): Update.
360 (will_be_nonconstant_predicate): Update.
361 (phi_result_unknown_predicate): Update.
362 (predicate_for_phi_result): Update.
363 (array_index_predicate): Update.
364 (estimate_function_body_sizes): Update.
365 (estimate_node_size_and_time): Update.
366 (estimate_ipcp_clone_size_and_time): Update.
367 (remap_predicate): Rename to ...
368 (predicate::remap_after_inlining): ... this one.
369 (remap_hint_predicate): Update.
370 (inline_merge_summary): Update.
371 (inline_update_overall_summary): Update.
372 (estimate_size_after_inlining): Update.
373 (read_predicate): Rename to ...
374 (predicate::stream_in): ... this one.
375 (read_inline_edge_summary): Update.
376 (write_predicate): Rename to ...
377 (predicate::stream_out): ... this one.
378 (write_inline_edge_summary): Update.
379 * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
380 (clause_t): Turn to uint32_t
381 (predicate): Turn to class; implement constructor and operators
382 ==, !=, &
383 (size_time_entry): Update.
384 (inline_summary): Update.
385 (inline_edge_summary): Update.
386
387 2017-05-18 Marc Glisse <marc.glisse@inria.fr>
388
389 * fold-const.c (fold_binary_loc): Move transformation...
390 * match.pd (C - X CMP X): ... here.
391
392 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com>
393
394 * config/sparc/sparc.c (sparc_option_override): Set function
395 alignment for -mcpu=niagara7 to 64 to match the I$ line.
396 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
397 latency to 1.
398 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
399 latency to 2.
400 * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
401
402 2017-05-18 Marek Polacek <polacek@redhat.com>
403
404 PR sanitizer/80797
405 * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
406 (pass_ubsan::execute): Call gimple_assign_single_p instead of
407 gimple_assign_load_p.
408
409 2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
410
411 PR middle-end/80692
412 * real.c (do_compare): Give decimal_do_compare preference over
413 comparing just the signs.
414
415 2017-05-17 Uros Bizjak <ubizjak@gmail.com>
416
417 * doc/md.texi (Canonicalization of Instructions): Describe the
418 canonical form of instructions that inherently set a condition
419 code register.
420
421 2017-05-17 Peter Bergner <bergner@vnet.ibm.com>
422
423 PR middle-end/80775
424 * tree-cfg.c: Move deletion of unreachable case statements to after
425 the merging of consecutive case labels.
426
427 2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
428
429 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
430 readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
431 restoring of callee-saved registers.
432
433 2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
434
435 * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
436 * config/visium/visium.c (single_set_and_flags): Likewise.
437 * config/visium/visium.md (Substitutions): Likewise.
438
439 2017-05-17 Martin Liska <mliska@suse.cz>
440
441 * cfg.c: Introduce dump_flags_t type and
442 use it instead of int type.
443 * cfg.h: Likewise.
444 * cfghooks.c: Likewise.
445 * cfghooks.h (struct cfg_hooks): Likewise.
446 * cfgrtl.c: Likewise.
447 * cfgrtl.h: Likewise.
448 * cgraph.c (cgraph_node::get_body): Likewise.
449 * coretypes.h: Likewise.
450 * domwalk.c: Likewise.
451 * domwalk.h: Likewise.
452 * dumpfile.c (struct dump_option_value_info): Likewise.
453 (dump_enable_all): Likewise.
454 (dump_switch_p_1): Likewise.
455 (opt_info_switch_p): Likewise.
456 * dumpfile.h (enum tree_dump_index): Likewise.
457 (struct dump_file_info): Likewise.
458 * genemit.c: Likewise.
459 * generic-match-head.c: Likewise.
460 * gengtype.c (open_base_files): Likewise.
461 * gimple-pretty-print.c: Likewise.
462 * gimple-pretty-print.h: Likewise.
463 * graph.c (print_graph_cfg): Likewise.
464 * graphite-scop-detection.c (dot_all_sese): Likewise.
465 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
466 * loop-unroll.c (report_unroll): Likewise.
467 * passes.c (pass_manager::register_one_dump_file): Likewise.
468 * print-tree.c: Likewise.
469 * statistics.c: Likewise.
470 * tree-cfg.c: Likewise.
471 * tree-cfg.h: Likewise.
472 * tree-dfa.c: Likewise.
473 * tree-dfa.h: Likewise.
474 * tree-dump.c (dump_function): Likewise.
475 * tree-dump.h (struct dump_info): Likewise.
476 * tree-pretty-print.c: Likewise.
477 * tree-pretty-print.h: Likewise.
478 * tree-ssa-live.c: Likewise.
479 * tree-ssa-live.h: Likewise.
480 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
481 * tree-vect-loop.c: Likewise.
482 * tree-vect-slp.c: Likewise.
483
484 2017-05-16 James Greenhalgh <james.greenhalgh@arm.com>
485 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
486
487 PR tree-optimization/80457
488 * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
489 of all arguments to a statement as scalar_to_vec operations.
490 (vectorizable_call): Adjust call to vect_model_simple_cost for
491 new parameter.
492 (vectorizable_conversion): Likewise.
493 (vectorizable_assignment): Likewise.
494 (vectorizable_shift): Likewise.
495 (vectorizable_operation): Likewise.
496 (vectorizable_comparison): Likewise.
497 (vect_is_simple_cond): Record the def types for operands.
498 (vectorizable_condition): Likewise, call vect_model_simple_cost.
499 * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
500 for statement argument count.
501
502 2017-05-16 Carl Love <cel@us.ibm.com>
503
504 * config/rs6000/rs6000-c: Add support for built-in functions
505 vector unsigned long long vec_bperm (vector unsigned long long,
506 vector unsigned char)
507 vector signed long long vec_mule (vector signed int,
508 vector signed int)
509 vector unsigned long long vec_mule (vector unsigned int,
510 vector unsigned int)
511 vector signed long long vec_mulo (vector signed int,
512 vector signed int)
513 vector unsigned long long vec_mulo (vector unsigned int,
514 vector unsigned int)
515 vector signed char vec_sldw (vector signed char,
516 vector signed char,
517 const int)
518 vector unsigned char vec_sldw (vector unsigned char,
519 vector unsigned char,
520 const int)
521 vector signed short vec_sldw (vector signed short,
522 vector signed short,
523 const int)
524 vector unsigned short vec_sldw (vector unsigned short,
525 vector unsigned short,
526 const int)
527 vector signed int vec_sldw (vector signed int,
528 vector signed int,
529 const int)
530 vector unsigned int vec_sldw (vector unsigned int,
531 vector unsigned int,
532 const int)
533 vector signed long long vec_sldw (vector signed long long,
534 vector signed long long,
535 const int)
536 vector unsigned long long vec_sldw (vector unsigned long long,
537 vector unsigned long long,
538 const int)
539 * config/rs6000/rs6000-c: Add support for built-in functions
540 * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
541 * config/rs6000/altivec.h: Add defintion for vec_sldw.
542 * doc/extend.texi: Update the built-in documentation for the
543 new built-in functions.
544
545 2017-05-16 Marek Polacek <polacek@redhat.com>
546
547 PR sanitizer/80536
548 PR sanitizer/80386
549 * tree.c (save_expr): Don't fold the expression.
550
551 2017-05-16 Uros Bizjak <ubizjak@gmail.com>
552
553 * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
554 to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
555 and (?*y,m). Update insn attributes.
556
557 2017-05-16 Martin Liska <mliska@suse.cz>
558
559 * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
560 flags argument of print_gimple_stmt, print_gimple_expr,
561 print_generic_stmt and print_generic_expr.
562 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
563 * coretypes.h: Likewise.
564 * except.c (dump_eh_tree): Likewise.
565 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
566 * gimple-pretty-print.h: Likewise.
567 * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
568 (backprop::push_to_worklist): Likewise.
569 (backprop::pop_from_worklist): Likewise.
570 (backprop::process_use): Likewise.
571 (backprop::intersect_uses): Likewise.
572 (note_replacement): Likewise.
573 * gimple-ssa-store-merging.c
574 (pass_store_merging::terminate_all_aliasing_chains): Likewise.
575 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
576 (pass_store_merging::execute): Likewise.
577 * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
578 (ssa_base_cand_dump_callback): Likewise.
579 (dump_incr_vec): Likewise.
580 (replace_refs): Likewise.
581 (replace_mult_candidate): Likewise.
582 (create_add_on_incoming_edge): Likewise.
583 (create_phi_basis): Likewise.
584 (insert_initializers): Likewise.
585 (all_phi_incrs_profitable): Likewise.
586 (introduce_cast_before_cand): Likewise.
587 (replace_one_candidate): Likewise.
588 * gimplify.c (gimplify_expr): Likewise.
589 * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
590 (set_rename): Likewise.
591 (rename_uses): Likewise.
592 (copy_loop_phi_nodes): Likewise.
593 (add_close_phis_to_merge_points): Likewise.
594 (copy_loop_close_phi_args): Likewise.
595 (copy_cond_phi_args): Likewise.
596 (graphite_copy_stmts_from_block): Likewise.
597 (translate_pending_phi_nodes): Likewise.
598 * graphite-poly.c (print_pdr): Likewise.
599 (dump_gbb_cases): Likewise.
600 (dump_gbb_conditions): Likewise.
601 (print_scop_params): Likewise.
602 * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
603 (build_cross_bb_scalars_use): Likewise.
604 (gather_bbs::before_dom_children): Likewise.
605 * hsa-dump.c (dump_hsa_immed): Likewise.
606 * ipa-cp.c (print_ipcp_constant_value): Likewise.
607 (get_replacement_map): Likewise.
608 * ipa-inline-analysis.c (dump_condition): Likewise.
609 (estimate_function_body_sizes): Likewise.
610 * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
611 (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
612 * ipa-prop.c (ipa_dump_param): Likewise.
613 (ipa_print_node_jump_functions_for_edge): Likewise.
614 (ipa_modify_call_arguments): Likewise.
615 (ipa_modify_expr): Likewise.
616 (ipa_dump_param_adjustments): Likewise.
617 (ipa_dump_agg_replacement_values): Likewise.
618 (ipcp_modif_dom_walker::before_dom_children): Likewise.
619 * ipa-pure-const.c (check_stmt): Likewise.
620 (pass_nothrow::execute): Likewise.
621 * ipa-split.c (execute_split_functions): Likewise.
622 * omp-offload.c (dump_oacc_loop_part): Likewise.
623 (dump_oacc_loop): Likewise.
624 * trans-mem.c (tm_log_emit): Likewise.
625 (tm_memopt_accumulate_memops): Likewise.
626 (dump_tm_memopt_set): Likewise.
627 (dump_tm_memopt_transform): Likewise.
628 * tree-cfg.c (gimple_verify_flow_info): Likewise.
629 (print_loop): Likewise.
630 * tree-chkp-opt.c (chkp_print_addr): Likewise.
631 (chkp_gather_checks_info): Likewise.
632 (chkp_get_check_result): Likewise.
633 (chkp_remove_check_if_pass): Likewise.
634 (chkp_use_outer_bounds_if_possible): Likewise.
635 (chkp_reduce_bounds_lifetime): Likewise.
636 * tree-chkp.c (chkp_register_addr_bounds): Likewise.
637 (chkp_mark_completed_bounds): Likewise.
638 (chkp_register_incomplete_bounds): Likewise.
639 (chkp_mark_invalid_bounds): Likewise.
640 (chkp_maybe_copy_and_register_bounds): Likewise.
641 (chkp_build_returned_bound): Likewise.
642 (chkp_get_bound_for_parm): Likewise.
643 (chkp_build_bndldx): Likewise.
644 (chkp_get_bounds_by_definition): Likewise.
645 (chkp_generate_extern_var_bounds): Likewise.
646 (chkp_get_bounds_for_decl_addr): Likewise.
647 * tree-chrec.c (chrec_apply): Likewise.
648 * tree-data-ref.c (dump_data_reference): Likewise.
649 (dump_subscript): Likewise.
650 (dump_data_dependence_relation): Likewise.
651 (analyze_overlapping_iterations): Likewise.
652 * tree-inline.c (expand_call_inline): Likewise.
653 (tree_function_versioning): Likewise.
654 * tree-into-ssa.c (dump_defs_stack): Likewise.
655 (dump_currdefs): Likewise.
656 (dump_names_replaced_by): Likewise.
657 (dump_update_ssa): Likewise.
658 (update_ssa): Likewise.
659 * tree-object-size.c (pass_object_sizes::execute): Likewise.
660 * tree-parloops.c (build_new_reduction): Likewise.
661 (try_create_reduction_list): Likewise.
662 (ref_conflicts_with_region): Likewise.
663 (oacc_entry_exit_ok_1): Likewise.
664 (oacc_entry_exit_single_gang): Likewise.
665 * tree-pretty-print.h: Likewise.
666 * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
667 (get_scalar_evolution): Likewise.
668 (add_to_evolution): Likewise.
669 (get_loop_exit_condition): Likewise.
670 (analyze_evolution_in_loop): Likewise.
671 (analyze_initial_condition): Likewise.
672 (analyze_scalar_evolution): Likewise.
673 (instantiate_scev): Likewise.
674 (number_of_latch_executions): Likewise.
675 (gather_chrec_stats): Likewise.
676 (final_value_replacement_loop): Likewise.
677 (scev_const_prop): Likewise.
678 * tree-sra.c (dump_access): Likewise.
679 (disqualify_candidate): Likewise.
680 (create_access): Likewise.
681 (reject): Likewise.
682 (maybe_add_sra_candidate): Likewise.
683 (create_access_replacement): Likewise.
684 (analyze_access_subtree): Likewise.
685 (analyze_all_variable_accesses): Likewise.
686 (sra_modify_assign): Likewise.
687 (initialize_constant_pool_replacements): Likewise.
688 (find_param_candidates): Likewise.
689 (decide_one_param_reduction): Likewise.
690 (replace_removed_params_ssa_names): Likewise.
691 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
692 * tree-ssa-copy.c (dump_copy_of): Likewise.
693 (copy_prop_visit_cond_stmt): Likewise.
694 * tree-ssa-dce.c (mark_operand_necessary): Likewise.
695 * tree-ssa-dom.c (pass_dominator::execute): Likewise.
696 (record_equivalences_from_stmt): Likewise.
697 * tree-ssa-dse.c (compute_trims): Likewise.
698 (delete_dead_call): Likewise.
699 (delete_dead_assignment): Likewise.
700 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
701 (forward_propagate_into_cond): Likewise.
702 (pass_forwprop::execute): Likewise.
703 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
704 * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
705 Likewise.
706 (move_computations_worker): Likewise.
707 (execute_sm): Likewise.
708 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
709 (remove_exits_and_undefined_stmts): Likewise.
710 (remove_redundant_iv_tests): Likewise.
711 * tree-ssa-loop-ivopts.c (dump_use): Likewise.
712 (adjust_iv_update_pos): Likewise.
713 * tree-ssa-math-opts.c (bswap_replace): Likewise.
714 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
715 (value_replacement): Likewise.
716 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
717 * tree-ssa-pre.c (print_pre_expr): Likewise.
718 (get_representative_for): Likewise.
719 (create_expression_by_pieces): Likewise.
720 (insert_into_preds_of_block): Likewise.
721 (eliminate_insert): Likewise.
722 (eliminate_dom_walker::before_dom_children): Likewise.
723 (eliminate): Likewise.
724 (remove_dead_inserted_code): Likewise.
725 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
726 * tree-ssa-reassoc.c (get_rank): Likewise.
727 (eliminate_duplicate_pair): Likewise.
728 (eliminate_plus_minus_pair): Likewise.
729 (eliminate_not_pairs): Likewise.
730 (undistribute_ops_list): Likewise.
731 (eliminate_redundant_comparison): Likewise.
732 (update_range_test): Likewise.
733 (optimize_range_tests_var_bound): Likewise.
734 (optimize_vec_cond_expr): Likewise.
735 (rewrite_expr_tree): Likewise.
736 (rewrite_expr_tree_parallel): Likewise.
737 (linearize_expr): Likewise.
738 (break_up_subtract): Likewise.
739 (linearize_expr_tree): Likewise.
740 (attempt_builtin_powi): Likewise.
741 (attempt_builtin_copysign): Likewise.
742 (transform_stmt_to_copy): Likewise.
743 (transform_stmt_to_multiply): Likewise.
744 (dump_ops_vector): Likewise.
745 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
746 (print_scc): Likewise.
747 (set_ssa_val_to): Likewise.
748 (visit_reference_op_store): Likewise.
749 (visit_use): Likewise.
750 (sccvn_dom_walker::before_dom_children): Likewise.
751 (run_scc_vn): Likewise.
752 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
753 Likewise.
754 (expr_hash_elt::print): Likewise.
755 (const_and_copies::pop_to_marker): Likewise.
756 (const_and_copies::record_const_or_copy_raw): Likewise.
757 * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
758 * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
759 (dump_predicates): Likewise.
760 (find_uninit_use): Likewise.
761 (warn_uninitialized_phi): Likewise.
762 (pass_late_warn_uninitialized::execute): Likewise.
763 * tree-ssa.c (verify_vssa): Likewise.
764 (verify_ssa): Likewise.
765 (maybe_optimize_var): Likewise.
766 * tree-vrp.c (dump_value_range): Likewise.
767 (dump_all_value_ranges): Likewise.
768 (dump_asserts_for): Likewise.
769 (register_edge_assert_for_2): Likewise.
770 (vrp_visit_cond_stmt): Likewise.
771 (vrp_visit_switch_stmt): Likewise.
772 (vrp_visit_stmt): Likewise.
773 (vrp_visit_phi_node): Likewise.
774 (simplify_cond_using_ranges_1): Likewise.
775 (fold_predicate_in): Likewise.
776 (evrp_dom_walker::before_dom_children): Likewise.
777 (evrp_dom_walker::push_value_range): Likewise.
778 (evrp_dom_walker::pop_value_range): Likewise.
779 (execute_early_vrp): Likewise.
780
781 2017-05-16 Richard Biener <rguenther@suse.de>
782
783 * dwarf2out.c (loc_list_from_tree_1): Do not create
784 DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
785
786 2017-05-16 Richard Biener <rguenther@suse.de>
787
788 * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
789 just generated.
790 (note_variable_value_in_expr): If we resolved the decl ref
791 do not push to the stack.
792
793 2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
794
795 * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
796 operations in fast-math mode.
797 (vaddq_f16): Likewise.
798 (vmul_f16): Likewise.
799 (vmulq_f16): Likewise.
800 (vsub_f16): Likewise.
801 (vsubq_f16): Likewise.
802 * config/arm/neon.md (add<mode>3): New.
803 (sub<mode>3): New.
804 (fma:<VH:mode>3): New. Also remove outdated comment.
805 (mul<mode>3): New.
806
807 2017-05-16 Martin Liska <mliska@suse.cz>
808
809 PR ipa/79849.
810 PR ipa/79850.
811 * ipa-devirt.c (warn_types_mismatch): Fix typo.
812 (odr_types_equivalent_p): Likewise.
813
814 2017-05-15 Sylvestre Ledru <sylvestre@debian.org>
815
816 * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
817
818 2017-05-15 Uros Bizjak <ubizjak@gmail.com>
819
820 PR target/80425
821 * config/i386.i386.md (*zero_extendsidi2): Do not penalize
822 non-interunit SSE move alternatives with '?'.
823 (zero-extendsidi peephole2): New peephole to skip intermediate
824 general register in SSE zero-extend sequence.
825
826 2017-05-15 Jeff Law <law@redhat.com>
827
828 * reorg.c (relax_delay_slots): Create a new variable to hold
829 the temporary target rather than clobbering TARGET_LABEL.
830
831 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
832 missing argument to extract_bit_field call.
833 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
834
835 2017-05-15 Martin Liska <mliska@suse.cz>
836
837 PR driver/31468
838 * gcc.c (process_command): Do not allow empty argument of -o option.
839
840 2017-05-15 Renlin Li <renlin.li@arm.com>
841
842 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
843 * config/aarch64/aarch64.c (aarch64_expand_call): Define.
844 * config/aarch64/constraints.md (Usf): Add long call check.
845 * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
846 (call_value): Likewise.
847 (sibcall): Likewise.
848 (sibcall_value): Likewise.
849 (call_insn): New.
850 (call_value_insn): New.
851 (sibcall_insn): Update rtx pattern.
852 (sibcall_value_insn): Likewise.
853 (call_internal): Remove.
854 (call_value_internal): Likewise.
855 (sibcall_internal): Likewise.
856 (sibcall_value_internal): Likewise.
857 (call_reg): Likewise.
858 (call_symbol): Likewise.
859 (call_value_reg): Likewise.
860 (call_value_symbol): Likewise.
861
862 2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
863
864 PR target/80600
865 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
866
867 2017-05-14 Uros Bizjak <ubizjak@gmail.com>
868
869 * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
870 compatible with CCGOCmode and with CCZmode.
871
872 2017-05-14 Martin Sebor <msebor@redhat.com>
873
874 PR middle-end/77671
875 * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
876 (gimple_fold_builtin_snprintf): Same.
877 * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
878 (gimple_fold_builtin_snprintf): Same.
879 * gimple-ssa-sprintf.c (get_format_string): Correct the detection
880 of character types.
881 (is_call_safe): New function.
882 (try_substitute_return_value): Call it.
883 (try_simplify_call): New function.
884 (pass_sprintf_length::handle_gimple_call): Call it.
885
886 2017-05-14 Martin Sebor <msebor@redhat.com>
887
888 PR middle-end/80669
889 * builtins.c (expand_builtin_stpncpy): Simplify.
890
891 2017-05-14 Daniel Santos <daniel.santos@pobox.com>
892
893 * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
894 * config/i386/i386.h
895 (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
896 (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
897 (struct machine_function): Add new members call_ms2sysv,
898 call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
899 (struct machine_frame_state): New fields sp_realigned and
900 sp_realigned_offset.
901 * config/i386/i386.c
902 (enum xlogue_stub): New enum.
903 (enum xlogue_stub_sets): New enum.
904 (class xlogue_layout): New class.
905 (struct ix86_frame): New fields stack_realign_allocate_offset,
906 stack_realign_offset and outlined_save_offset. Modify comments to
907 detail stack layout when using out-of-line stubs.
908 (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
909 (ix86_option_override_internal): Add sorry() for TARGET_SEH and
910 -mcall-ms2sysv-xlogues.
911 (stub_managed_regs): New static variable.
912 (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
913 registers managed by out-of-line stub.
914 (disable_call_ms2sysv_xlogues): New function.
915 (ix86_compute_frame_layout): Modify re-alignment calculations, disable
916 m->call_ms2sysv when appropriate and compute frame layout for
917 out-of-line stubs.
918 (sp_valid_at, fp_valid_at): New inline functions.
919 (choose_basereg): New function.
920 (choose_baseaddr): Add align parameter, use choose_basereg and modify
921 all callers.
922 (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
923 Use align parameter of choose_baseaddr to generated aligned SSE movs
924 when possible.
925 (pro_epilogue_adjust_stack): Modify to track
926 machine_frame_state::sp_realigned.
927 (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
928 (ix86_nsaved_sseregs): Likewise.
929 (ix86_emit_save_regs): Likewise.
930 (ix86_emit_save_regs_using_mov): Likewise.
931 (ix86_emit_save_sse_regs_using_mov): Likewise.
932 (get_scratch_register_on_entry): Likewise.
933 (gen_frame_set): New function.
934 (gen_frame_load): Likewise.
935 (gen_frame_store): Likewise.
936 (emit_outlined_ms2sysv_save): Likewise.
937 (emit_outlined_ms2sysv_restore): Likewise.
938 (ix86_expand_prologue): Modify stack re-alignment code and call
939 emit_outlined_ms2sysv_save when appropriate.
940 (ix86_emit_leave): Clear machine_frame_state::sp_realigned. Add
941 parameter rtx_insn *insn, which allows the function to be used to only
942 generate the notes.
943 (ix86_expand_epilogue): Modify validity checks of frame and stack
944 pointers, and call emit_outlined_ms2sysv_restore when appropriate.
945 (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
946 * config/i386/predicates.md
947 (save_multiple): New predicate.
948 (restore_multiple): Likewise.
949 * config/i386/sse.md
950 (save_multiple<mode>): New pattern.
951 (save_multiple_realign<mode>): Likewise.
952 (restore_multiple<mode>): Likewise.
953 (restore_multiple_and_return<mode>): Likewise.
954 (restore_multiple_leave_return<mode>): Likewise.
955 * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
956
957 2017-05-14 Julia Koval <julia.koval@intel.com>
958
959 * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
960 * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
961 (__builtin_ia32_xsetbv): New builtins.
962 * config/i386/i386.c (ix86_expand_special_args_builtin):
963 Process new types.
964 (ix86_expand_builtin): Special expand for new intrinsics.
965 * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
966 (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
967 * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
968
969 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
970
971 * cfganal.c (inverted_post_order_compute): Change argument type
972 to vec *.
973 * cfganal.h (inverted_post_order_compute): Adjust prototype.
974 * df-core.c (rest_of_handle_df_initialize): Adjust.
975 (rest_of_handle_df_finish): Likewise.
976 (df_analyze_1): Likewise.
977 (df_analyze): Likewise.
978 (loop_inverted_post_order_compute): Change argument to be a vec *.
979 (df_analyze_loop): Adjust.
980 (df_get_n_blocks): Likewise.
981 (df_get_postorder): Likewise.
982 * df.h (struct df_d): Change field to be a vec.
983 * lcm.c (compute_laterin): Adjust.
984 (compute_available): Likewise.
985 * lra-lives.c (lra_create_live_ranges_1): Likewise.
986 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
987 * tree-ssa-pre.c (compute_antic): Likewise.
988
989 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
990
991 * cfganal.c (connect_infinite_loops_to_exit): Adjust.
992 (depth_first_search::depth_first_search): Change structure init
993 function to this constructor.
994 (depth_first_search::add_bb): Rename function to this member.
995 (depth_first_search::execute): Likewise.
996 (flow_dfs_compute_reverse_finish): Adjust.
997
998 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
999
1000 * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
1001 (longest_simple_path): Likewise.
1002 * shrink-wrap.c (spread_components): Likewise.
1003 (disqualify_problematic_components): Likewise.
1004 (emit_common_heads_for_components): Likewise.
1005 (emit_common_tails_for_components): Likewise.
1006 (insert_prologue_epilogue_for_components): Likewise.
1007
1008 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1009
1010 * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
1011 auto_sbitmap.
1012
1013 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1014
1015 * df-core.c (df_set_blocks): Start using auto_bitmap.
1016 (df_compact_blocks): Likewise.
1017 * df-problems.c (df_rd_confluence_n): Likewise.
1018 * df-scan.c (df_insn_rescan_all): Likewise.
1019 (df_process_deferred_rescans): Likewise.
1020 (df_update_entry_block_defs): Likewise.
1021 (df_update_exit_block_uses): Likewise.
1022 (df_entry_block_bitmap_verify): Likewise.
1023 (df_exit_block_bitmap_verify): Likewise.
1024 (df_scan_verify): Likewise.
1025 * lra-constraints.c (lra_constraints): Likewise.
1026 (undo_optional_reloads): Likewise.
1027 (lra_undo_inheritance): Likewise.
1028 * lra-remat.c (calculate_gen_cands): Likewise.
1029 (do_remat): Likewise.
1030 * lra-spills.c (assign_spill_hard_regs): Likewise.
1031 (spill_pseudos): Likewise.
1032 * tree-ssa-pre.c (bitmap_set_and): Likewise.
1033 (bitmap_set_subtract_values): Likewise.
1034
1035 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1036
1037 * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
1038 management with auto_bitmap.
1039 (fix_inter_tick): Likewise.
1040 (fix_recovery_deps): Likewise.
1041 * ira.c (add_store_equivs): Likewise.
1042 (find_moveable_pseudos): Likewise.
1043 (split_live_ranges_for_shrink_wrap): Likewise.
1044 * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
1045 (rtx_reuse_manager::seen_def_p): Likewise.
1046 (rtx_reuse_manager::set_seen_def): Likewise.
1047 * print-rtl.h (class rtx_reuse_manager): Likewise.
1048
1049 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1050
1051 * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
1052 lifetime.
1053 (migrate_btr_def): Likewise.
1054 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
1055 * df-core.c (loop_post_order_compute): Likewise.
1056 (loop_inverted_post_order_compute): Likewise.
1057 * hsa-common.h: Likewise.
1058 * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
1059 * init-regs.c (initialize_uninitialized_regs): Likewise.
1060 * ipa-inline.c (resolve_noninline_speculation): Likewise.
1061 (inline_small_functions): Likewise.
1062 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
1063 * ira.c (combine_and_move_insns): Likewise.
1064 (build_insn_chain): Likewise.
1065 * loop-invariant.c (find_invariants): Likewise.
1066 * lower-subreg.c (propagate_pseudo_copies): Likewise.
1067 * predict.c (tree_predict_by_opcode): Likewise.
1068 (predict_paths_leading_to): Likewise.
1069 (predict_paths_leading_to_edge): Likewise.
1070 (estimate_loops_at_level): Likewise.
1071 (estimate_loops): Likewise.
1072 * shrink-wrap.c (try_shrink_wrapping): Likewise.
1073 (spread_components): Likewise.
1074 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
1075 * tree-loop-distribution.c (rdg_build_partitions): Likewise.
1076 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
1077 * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
1078 * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
1079 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
1080 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1081 * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
1082 (mark_threaded_blocks): Likewise.
1083 (thread_through_all_blocks): Likewise.
1084 * tree-ssa.c (verify_ssa): Likewise.
1085 (execute_update_addresses_taken): Likewise.
1086 * tree-ssanames.c (verify_ssaname_freelists): Likewise.
1087
1088 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1089
1090 * cfganal.c (mark_dfs_back_edges): Replace manual stack with
1091 auto_vec.
1092 (post_order_compute): Likewise.
1093 (inverted_post_order_compute): Likewise.
1094 (pre_and_rev_post_order_compute_fn): Likewise.
1095
1096 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1097
1098 * genrecog.c (int_set::int_set): Explicitly construct our
1099 auto_vec base class.
1100 * vec.h (auto_vec::auto_vec): New constructor.
1101
1102 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1103
1104 * bitmap.h (class auto_bitmap): New constructor taking
1105 bitmap_obstack * argument.
1106
1107 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1108
1109 * bitmap.h (class auto_bitmap): Change type of m_bits to
1110 bitmap_head, and adjust ctor / dtor and member operators.
1111
1112 2017-05-13 Uros Bizjak <ubizjak@gmail.com>
1113
1114 * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
1115 when returned register mode doesn't match original mode.
1116
1117 2017-05-12 Jeff Law <law@redhat.com>
1118 Jakub Jelinek <jakub@redhat.com>
1119
1120 * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
1121 we look for cc setter after the compare-elim changes.
1122 * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
1123 within the vector to match what compare-elim now expects.
1124 (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
1125 (xorsi3_flags, one_cmplsi2_flags): Likewise.
1126
1127 * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
1128 after the compare-elim changes.
1129 * config/rx/rx.md (abssi2_flags): Fix order of patterns within
1130 the vector to match what compare-elim now expects.
1131 (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
1132 (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
1133 (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
1134 (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
1135 (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
1136
1137 * config/visium/visium.c (single_set_and_flags): Fix where
1138 we look for cc setter after the compare-elim changes.
1139 * config/visium/visium.md (flags_subst_logic): Fix order of patterns
1140 with the vector to match what compare-elim now expects.
1141 (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
1142 (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
1143 (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
1144 (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
1145 (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
1146 (neg<mode>2_insn_set_overflow): Likewise.
1147
1148 2017-05-12 Jim Wilson <jim.wilson@linaro.org>
1149
1150 PR middle-end/79794
1151 * expmed.c (extract_bit_field_1): Add alt_rtl argument. Before
1152 maybe_expand_insn call, set ops[0].target. If still set after call,
1153 set alt_rtl. Add extra arg to recursive calls.
1154 (extract_bit_field): Add alt_rtl argument. Pass to
1155 extract_bit_field.
1156 * expmed.h (extract_bit_field): Fix prototype.
1157 * expr.c (emit_group_load_1, copy_blkmode_from_reg)
1158 (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
1159 to extract_bit_field_calls.
1160 (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
1161 Pass alt_rtl to extract_bit_field calls.
1162 * calls.c (store_unaligned_arguments_into_psuedos)
1163 load_register_parameters): Pass extra NULL to extract_bit_field calls.
1164 * optabs.c (maybe_legitimize_operand): Clear op->target when call
1165 gen_reg_rtx.
1166 * optabs.h (struct expand_operand): Add target bitfield.
1167
1168 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
1169
1170 * compare-elim.c (try_eliminate_compare): Canonicalize
1171 operation with embedded compare to
1172 [(set (reg:CCM) (compare:CCM (operation) (immediate)))
1173 (set (reg) (operation)].
1174
1175 * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
1176
1177 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
1178
1179 PR target/80723
1180 * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
1181 cost of adding a carry flag for ADC instruction.
1182 [case MINUS]: Ignore the cost of subtracting a carry flag
1183 for SBB instruction.
1184
1185 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org>
1186
1187 * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
1188 and x86intrin.h
1189 * config/rs6000/bmiintrin.h: New file.
1190 * config/rs6000/bmi2intrin.h: New file.
1191 * config/rs6000/x86intrin.h: New file.
1192
1193 2017-05-12 Jeff Law <law@redhat.com>
1194
1195 * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
1196 markers.
1197
1198 2017-05-12 Peter Bergner <bergner@vnet.ibm.com>
1199
1200 PR middle-end/80707
1201 * tree-cfg.c: Remove cfg edges of unreachable case statements.
1202
1203 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1204
1205 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
1206 early expansion of vector divide builtins.
1207 (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
1208 builtins identified as having unsigned arguments.
1209
1210 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1211
1212 * config/rs6000/rs6000.c (gimple-fold.h): New #include.
1213 (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
1214 expansion of vector logical operations (and, andc, or, xor,
1215 nor, orc, nand).
1216
1217 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1218
1219 * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
1220 * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
1221
1222 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1223
1224 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
1225 early GIMPLE expansion of vector multiplies.
1226
1227 2017-05-12 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
1228
1229 * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
1230 TARGET_HAVE_MOVT conditional.
1231 (movt splitter): Likewise.
1232
1233 2017-05-12 Richard Biener <rguenther@suse.de>
1234
1235 * tree-ssa-sccvn.h (has_VN_INFO): Declare.
1236 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1237 Fold all stmts not inplace.
1238
1239 2017-05-12 Richard Biener <rguenther@suse.de>
1240
1241 PR tree-optimization/80713
1242 * tree-ssa-pre.c (remove_dead_inserted_code): Clear
1243 inserted_exprs bit for not removed stmts.
1244
1245 2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
1246
1247 PR middle-end/69921
1248 * tree-parloops.c (create_parallel_loop): Set "oacc kernels
1249 parallelized" attribute for parallelized OpenACC kernels.
1250 * omp-offload.c (execute_oacc_device_lower): Use it.
1251
1252 * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
1253 Set "oacc kernels" attribute.
1254 * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
1255 parameter. Adjust all users.
1256 (oacc_fn_attrib_kernels_p): Remove function.
1257 * omp-offload.c (execute_oacc_device_lower): Look for "oacc
1258 kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
1259 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
1260 * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
1261 assert "oacc kernels" attribute is set.
1262
1263 2017-05-11 Carl Love <cel@us.ibm.com>
1264
1265 * config/rs6000/rs6000-c: Add support for built-in functions
1266 vector unsigned char vec_popcnt (vector signed char)
1267 vector unsigned char vec_popcnt (vector unsigned char)
1268 vector unsigned short vec_popcnt (vector signed short)
1269 vector unsigned short vec_popcnt (vector unsigned short)
1270 vector unsigned int vec_popcnt (vector signed int)
1271 vector unsigned int vec_popcnt (vector unsigned int)
1272 vector unsigned long long vec_popcnt (vector signed long long)
1273 vector unsigned long long vec_popcnt (vector unsigned long long)
1274 vector signed long long vec_slo (vector signed long long,
1275 vector signed char)
1276 vector signed long long vec_slo (vector signed long long,
1277 vector unsigned char)
1278 vector unsigned long long vec_slo (vector unsigned long long,
1279 vector signed char)
1280 vector unsigned long long vec_slo (vector unsigned long long,
1281 vector unsigned char)
1282 * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
1283 VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
1284 * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
1285 vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
1286 * doc/extend.texi: Update the built-in documentation file for the
1287 new built-in functions.
1288
1289 2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1290
1291 * attribs.h (sorted_attr_string): Move machine independent
1292 functions for target clone support from the i386 port to common
1293 code. Rename ix86_function_versions to common_function_versions.
1294 Rename make_name to make_unique_name.
1295 (common_function_versions): Likewise.
1296 (make_unique_name): Likewise.
1297 (make_dispatcher_decl): Likewise.
1298 (is_function_default_version): Likewise.
1299 * attribs.c (attr_strcmp): Likewise.
1300 (sorted_attr_string): Likewise.
1301 (common_function_versions): Likewise.
1302 (make_unique_name): Likewise.
1303 (make_dispatcher_decl): Likewise.
1304 (is_function_default_version): Likewise.
1305 * config/i386/i386.c (attr_strcmp): Likewise.
1306 (sorted_attr_string): Likewise.
1307 (ix86_function_versions): Likewise.
1308 (make_name): Likewise.
1309 (make_dispatcher_decl): Likewise.
1310 (is_function_default_version): Likewise.
1311 (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
1312
1313 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1314
1315 PR target/80695
1316 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1317 Account for direct move costs for vec_construct of integer
1318 vectors.
1319
1320 2017-05-11 Uros Bizjak <ubizjak@gmail.com>
1321
1322 PR target/80706
1323 * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
1324 (UNSPEC_STX_ATOMIC): Ditto.
1325 (loaddi_via_sse): New insn.
1326 (storedi_via_sse): Ditto.
1327 (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
1328 Update corresponding peephole2 patterns.
1329 (atomic_storedi_fpu): Ditto.
1330
1331 2017-05-11 Julia Koval <julia.koval@intel.com>
1332
1333 * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
1334 (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
1335 New intrinsics.
1336 * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
1337 (__builtin_ia32_rsqrt14ss_mask): New builtins.
1338 * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
1339
1340 2017-05-11 Nathan Sidwell <nathan@acm.org>
1341
1342 * graphite-poly.c: Include dumpfile.h.
1343
1344 * dumpfle.h (dump_function): Declare here ...
1345 * tree-dump.h (dump_function): ... not here.
1346 * dumpfile.c: #include tree-cfg.h.
1347 (dump_function): Move here from ...
1348 * tree-dump.c (dump_function): ... here.
1349 * gimplify.c: #include splay-tree.h, not tree-dump.h.
1350 * graphite-poly.c: Don't include tree-dump.h.
1351 * cgraphclones.c: Include dumpfile.h not tree-dump.h.
1352 * print-tree.c: Likewise.
1353 * stor-layout.c: Likewise.
1354 * tree-nested.c: Likewise.
1355
1356 * dumpfile.c (dump_start): Use TDF_FLAGS.
1357 (dump_enable_all): Fix TDF_KIND check thinko.
1358
1359 2017-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
1360
1361 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1362 array entries to represent two legal parameterizations of the
1363 overloaded __builtin_cmpb function, as represented by the
1364 P6_OV_BUILTIN_CMPB constant.
1365 (altivec_resolve_overloaded_builtin): Add special case handling
1366 for the __builtin_cmpb function, as represented by the
1367 P6_OV_BUILTIN_CMPB constant.
1368 * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
1369 (BU_P6_64BIT_2): New macro.
1370 (BU_P6_OVERLOAD_2): New macro
1371 (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
1372 (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
1373 (CMPB): Add overload support to represent both 32-bit and 64-bit
1374 compare-bytes function.
1375 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
1376 support for TARGET_CMPB.
1377 * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
1378 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
1379 documentation of the __builtin_cmpb overloaded built-in function.
1380
1381 2017-05-11 Richard Biener <rguenther@suse.de>
1382
1383 PR tree-optimization/80705
1384 * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
1385 bases are not vectorizable.
1386
1387 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1388
1389 * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
1390 when counting register pressure.
1391
1392 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1393
1394 * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
1395 (iv_ca_more_deps): Renamed to ...
1396 (iv_ca_compare_deps): ... this.
1397 (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
1398
1399 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1400
1401 * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
1402 to ...
1403 (determine_group_iv_costs): ... here.
1404 (find_inv_vars_cb): Record inv var if it's not recorded before.
1405
1406 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1407
1408 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
1409 (get_shiftadd_cost): Ditto.
1410
1411 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1412
1413 * tree-ssa-address.c: Include header file.
1414 (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
1415 address.
1416 (add_to_parts): Refactor.
1417 (addr_to_parts): New parameter. Update use of move_hint_to_base.
1418 (create_mem_ref): Update use of addr_to_parts. Re-associate addr
1419 in new order.
1420
1421 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1422
1423 PR tree-optimization/53090
1424 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
1425 COMP_IV_EXPR_2.
1426 (extract_cond_operands): Detect condition with IV on both sides
1427 and return COMP_IV_EXPR_2.
1428 (find_interesting_uses_cond): Add iv_use for both IVs in condition.
1429 (rewrite_use_compare): Simplify by removing call to function
1430 extract_cond_operands.
1431
1432 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1433
1434 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
1435 (extract_cond_operands): Detect condition comparing against non-
1436 invariant bound and return appropriate enum value.
1437 (find_interesting_uses_cond): Update use of extract_cond_operands.
1438 Handle its return value accordingly.
1439 (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
1440
1441 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1442
1443 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
1444 nonlinear iv_use computation in loop invariant sensitive way.
1445
1446 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1447
1448 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
1449 (find_iv_candidates): Call relate_compare_use_with_all_cands.
1450
1451 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1452
1453 * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
1454 (dump_cand): Support iv_cand.inv_exprs.
1455 (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
1456 for candidates.
1457 (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
1458 iv_cand.inv_exprs.
1459
1460 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1461
1462 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
1463 from ...
1464 * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
1465 as local function. Include necessary header files.
1466 * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
1467
1468 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1469
1470 * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
1471
1472 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1473
1474 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
1475 operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
1476 RSHIFT_EXPR and BIT_NOT_EXPR.
1477
1478 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1479
1480 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
1481 (adjust_setup_cost): New parameter supporting round up adjustment.
1482 (struct address_cost_data): Delete.
1483 (force_expr_to_var_cost): Don't bound cost with spill_cost.
1484 (split_address_cost, ptr_difference_cost): Delete.
1485 (difference_cost, compare_aff_trees, record_inv_expr): Delete.
1486 (struct ainc_cost_data): New struct.
1487 (get_address_cost_ainc): New function.
1488 (get_address_cost, get_computation_cost): Reimplement.
1489 (determine_group_iv_cost_address): Record inv_expr for all uses of
1490 a group.
1491 (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
1492 (iv_ca_has_deps): Reimplemented to ...
1493 (iv_ca_more_deps): ... this. Check if NEW_CP introduces more deps
1494 than OLD_CP.
1495 (iv_ca_extend): Call iv_ca_more_deps.
1496
1497 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1498
1499 * tree-ssa-address.c (struct mem_address): Move to header file.
1500 (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
1501 * tree-ssa-address.h (struct mem_address): Move from C file.
1502 (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
1503
1504 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1505
1506 * tree-affine.h (aff_combination_type): New interface.
1507 (aff_combination_zero_p): Remove static.
1508 (aff_combination_const_p): New interface.
1509 (aff_combination_singleton_var_p): New interfaces.
1510
1511 2017-05-11 Richard Biener <rguenther@suse.de>
1512
1513 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1514 Skip unreachable blocks and destinations.
1515 (eliminate): Move stmt removal and fixup ...
1516 (fini_eliminate): ... here. Skip inserted exprs.
1517 (pass_pre::execute): Move fini_pre after fini_eliminate.
1518 * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
1519 (tail_merge_optimize): Run cleanup_tree_cfg if requested by
1520 PRE to get rid of dead code that has invalid SSA form and
1521 split critical edges again.
1522
1523 2017-05-11 Bin Cheng <bin.cheng@arm.com>
1524
1525 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
1526
1527 2017-05-11 Richard Biener <rguenther@suse.de>
1528
1529 * passes.c (execute_function_todo): Verify loops if they are
1530 said to be up-to-date.
1531 * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
1532 * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
1533
1534 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
1535
1536 PR target/80090
1537 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
1538 handle calling assemble_external ourself.
1539
1540 PR target/79027
1541 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
1542 modes with zero size. Enhance comment.
1543
1544 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1545
1546 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
1547 built-ins for vec_xl and vec_xst with short and char pointer
1548 arguments.
1549
1550 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
1551
1552 * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
1553 (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
1554 (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
1555 (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
1556 (_mm_maskz_min_round_ss): New intrinsics.
1557 * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
1558 (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
1559 * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
1560 (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
1561 (__builtin_ia32_minss_mask_round): New builtins.
1562 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1563 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
1564 * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
1565 Rename to ...
1566 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
1567 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
1568 Change to ...
1569 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
1570 ... this.
1571
1572 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
1573
1574 * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
1575 (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
1576 (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
1577 (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
1578 (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
1579 (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
1580 (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
1581 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1582 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
1583 * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
1584 (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
1585 (__builtin_ia32_mulss_mask_round): New builtins.
1586 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1587 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
1588 * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
1589 Rename to ...
1590 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
1591 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
1592 Change to ...
1593 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
1594 ... this.
1595
1596 2017-05-10 Julia Koval <julia.koval@intel.com>
1597
1598 * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
1599 (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
1600 (_mm256_setr_m128i): New intrinsics.
1601
1602 2017-05-10 Julia Koval <julia.koval@intel.com>
1603
1604 * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
1605 (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
1606 (_mm_maskz_rcp14_ss): New intrinsics.
1607 * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
1608 (__builtin_ia32_rcp14ss_mask): New builtins.
1609 * config/i386/sse.md (srcp14<mode>_mask): New pattern.
1610
1611 2017-05-10 Peter Bergner <bergner@vnet.ibm.com>
1612
1613 PR tree-optimization/51513
1614 * tree-cfg.c (gimple_seq_unreachable_p): New function.
1615 (assert_unreachable_fallthru_edge_p): Use it.
1616 (group_case_labels_stmt): Likewise.
1617 * tree-cfg.h: Prototype it.
1618 * stmt.c: Include cfghooks.h and tree-cfg.h.
1619 (emit_case_dispatch_table) <gap_label>: New local variable.
1620 Use it to fill dispatch table gaps.
1621 Test for default_label before updating probabilities.
1622 (expand_case) <default_label>: Remove unneeded initialization.
1623 Test for unreachable default case statement and remove its edge.
1624 Set default_label accordingly.
1625 * tree-ssa-ccp.c (optimize_unreachable): Update comment.
1626
1627 2017-05-10 Carl Love <cel@us.ibm.com>
1628
1629 * config/rs6000/rs6000-c: Add support for built-in functions
1630 vector signed char vec_neg (vector signed char)
1631 vector signed short int vec_neg (vector short int)
1632 vector signed int vec_neg (vector signed int)
1633 vector signed long long vec_neg (vector signed long long)
1634 vector float vec_neg (vector float)
1635 vector double vec_neg (vector double)
1636 * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
1637 overload.
1638 * config/rs6000/altivec.h: Add define for vec_neg
1639 * doc/extend.texi: Update the built-in documentation for the
1640 new built-in functions.
1641
1642 2017-05-10 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1643
1644 PR tree-optimization/77644
1645 * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
1646
1647 2017-05-10 Nathan Sidwell <nathan@acm.org>
1648
1649 * dumpfile.h (TDI_lang_all): New.
1650 (TDF_KIND): New. Renumber others
1651 (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
1652 than bits.
1653 * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add
1654 lang-all.
1655 (get_dump_file_name): Adjust suffix generation.
1656 (dump_enable_all): Use TDF_KIND.
1657 * doc/invoke.texi (-fdump-lang-all): Document.
1658
1659 * dumpfile.h: Tabify.
1660
1661 2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
1662
1663 PR target/80671
1664 * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
1665 Move member access before delete.
1666
1667 2017-05-10 Alexandre Oliva <aoliva@redhat.com>
1668
1669 * tree-inline.c (expand_call_inline): Split block at stmt
1670 before the call.
1671
1672 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1673
1674 PR target/68163
1675 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
1676 are now unused after splitting mov{sf,sd}_hardfloat.
1677 (f32_lr2): Likewise.
1678 (f32_lm): Likewise.
1679 (f32_lm2): Likewise.
1680 (f32_li): Likewise.
1681 (f32_li2): Likewise.
1682 (f32_lv): Likewise.
1683 (f32_sr): Likewise.
1684 (f32_sr2): Likewise.
1685 (f32_sm): Likewise.
1686 (f32_sm2): Likewise.
1687 (f32_si): Likewise.
1688 (f32_si2): Likewise.
1689 (f32_sv): Likewise.
1690 (f32_dm): Likewise.
1691 (f32_vsx): Likewise.
1692 (f32_av): Likewise.
1693 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
1694 For movsf, order stores so the VSX stores occur before the GPR
1695 store which encourages the register allocator to use a traditional
1696 FPR instead of a GPR. For movsd, order the stores so that the GPR
1697 store comes before the VSX stores to allow the power6 to work.
1698 This is due to the power6 not having a 32-bit integer store
1699 instruction from a FPR.
1700 (movsf_hardfloat): Likewise.
1701 (movsd_hardfloat): Likewise.
1702
1703 2017-05-09 Martin Sebor <msebor@redhat.com>
1704
1705 PR translation/80280
1706 * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
1707 added in r247778.
1708
1709 PR translation/80280
1710 * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
1711 data member added in r247778.
1712 (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
1713
1714 2017-05-09 Nathan Sidwell <nathan@acm.org>
1715
1716 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
1717
1718 * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
1719 typedefs.
1720
1721 2017-05-09 Marek Polacek <polacek@redhat.com>
1722
1723 * doc/invoke.texi: Fix typo.
1724
1725 2017-05-09 Richard Biener <rguenther@suse.de>
1726
1727 * tree-vrp.c (vrp_val_is_max): Adjust comment.
1728 (vrp_val_is_min): Likewise.
1729 (set_value_range_to_value): Likewise.
1730 (set_value_range_to_nonnegative): Likewise.
1731 (gimple_assign_nonzero_p): Likewise.
1732 (gimple_stmt_nonzero_p): Likewise.
1733 (vrp_int_const_binop): Likewise. Remove unreachable case.
1734 (adjust_range_with_scev): Adjust comments.
1735 (compare_range_with_value): Likewise.
1736 (extract_range_from_phi_node): Likewise.
1737 (test_for_singularity): Likewise.
1738
1739 2017-05-09 Richard Biener <rguenther@suse.de>
1740
1741 * tree-vrp.c (get_single_symbol): Add assert that we don't
1742 get overflowed constants as invariant part.
1743 (compare_values_warnv): Add comment before the TREE_NO_WARNING
1744 checks. Use wi::cmp instead of recursing for integer constants.
1745 (compare_values): Just ignore whether we assumed undefined
1746 overflow instead of failing the compare.
1747 (extract_range_for_var_from_comparison_expr): Add comment before the
1748 TREE_NO_WARNING sets.
1749 (test_for_singularity): Likewise.
1750 (extract_range_from_comparison): Do not disable optimization
1751 when we assumed undefined overflow.
1752 (extract_range_basic): Remove init of unused var.
1753
1754 2017-05-09 Richard Biener <rguenther@suse.de>
1755
1756 * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
1757 (extract_range_from_multiplicative_op_1): Adjust.
1758 (extract_range_from_binary_expr_1): Use int_const_binop.
1759
1760 2017-05-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
1761
1762 PR target/80101
1763 * config/rs6000/power6.md: Replace store_data_bypass_p calls with
1764 rs6000_store_data_bypass_p in seven define_bypass directives and
1765 in several comments.
1766 * config/rs6000/rs6000-protos.h: Add prototype for
1767 rs6000_store_data_bypass_p function.
1768 * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
1769 function implements slightly different (rs6000-specific) semantics
1770 than store_data_bypass_p, returning false rather than aborting
1771 with assertion error when arguments do not satisfy the
1772 requirements of store data bypass.
1773 (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
1774 rs6000_store_data_bypass_p.
1775
1776 2017-05-08 Max Filippov <jcmvbkbc@gmail.com>
1777
1778 * config/xtensa/xtensa-protos.h
1779 (xtensa_initial_elimination_offset): New declaration.
1780 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
1781 New function. Move its body from the INITIAL_ELIMINATION_OFFSET
1782 macro definition, add case for FRAME_POINTER_REGNUM when
1783 FRAME_GROWS_DOWNWARD.
1784 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
1785 (INITIAL_ELIMINATION_OFFSET): Replace body with call to
1786 xtensa_initial_elimination_offset.
1787
1788 2017-05-08 Nathan Sidwell <nathan@acm.org>
1789
1790 * doc/invoke.texi: Alphabetize -fdump options.
1791
1792 2017-05-08 Martin Sebor <msebor@redhat.com>
1793
1794 PR translation/80280
1795 * config/sol2-c.c (solaris_pragma_align): Correct quoting.
1796
1797 2017-05-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
1798
1799 * target.def (compute_frame_layout): New optional target hook.
1800 * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
1801 * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
1802 * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
1803 target hook.
1804 * reload1.c (verify_initial_elim_offsets): Likewise.
1805 * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
1806 (use_simple_return_p): Call arm_compute_frame_layout if needed.
1807 (arm_get_frame_offsets): Split up into this ...
1808 (arm_compute_frame_layout): ... and this function.
1809
1810 2017-05-08 Richard Sandiford <richard.sandiford@arm.com>
1811
1812 * config/aarch64/constraints.md (Usa): New constraint.
1813 * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
1814
1815 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
1816
1817 * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
1818 with_multilib_list after it has been checked.
1819
1820 2017-05-08 Richard Biener <rguenther@suse.de>
1821
1822 * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
1823 (bitmap_set_subtract_values): Likewise.
1824
1825 2017-05-08 Richard Biener <rguenther@suse.de>
1826
1827 * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
1828 (gimple_assign_nonzero): ... this and remove strict_overflow_p
1829 argument.
1830 (gimple_stmt_nonzero_warnv_p): Rename to ...
1831 (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
1832 argument.
1833 (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
1834 (extract_range_basic): Adjust, do not disable propagation on
1835 strict overflow sensitive simplification.
1836 (vrp_visit_cond_stmt): Likewise.
1837
1838 2017-05-05 Jan Hubicka <hubicka@ucw.cz>
1839
1840 * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
1841 body size unconditionally.
1842
1843 2017-05-07 Jeff Law <law@redhat.com>
1844
1845 Revert:
1846 2017-05-06 Jeff Law <law@redhat.com>
1847 PR tree-optimization/78496
1848 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
1849 code.
1850
1851 PR tree-optimization/78496
1852 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
1853 (simplify_stmt_using_ranges): Call it.
1854 (vrp_dom_walker::before_dom_children): Extract equivalences
1855 from an ASSERT_EXPR with an equality comparison against a
1856 constant.
1857
1858 2017-05-06 Jeff Law <law@redhat.com>
1859
1860 PR tree-optimization/78496
1861 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
1862 code.
1863
1864 PR tree-optimization/78496
1865 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
1866 (simplify_stmt_using_ranges): Call it.
1867 (vrp_dom_walker::before_dom_children): Extract equivalences
1868 from an ASSERT_EXPR with an equality comparison against a
1869 constant.
1870
1871 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
1872
1873 * lra-constraints.c (lra_copy_reg_equiv): New function.
1874 (split_reg): Use it to copy equivalence information from the
1875 original register to the spill register.
1876
1877 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
1878
1879 PR rtl-optimization/75964
1880 * simplify-rtx.c (simplify_const_relational_operation): Remove
1881 invalid handling of comparisons of integer ABS.
1882
1883 2017-05-06 Uros Bizjak <ubizjak@gmail.com>
1884
1885 * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
1886 initialize to zero.
1887 (init_regs): Remove declaration.
1888 (function_arg_advance_32): Initialize error_p as boolean variable.
1889
1890 2017-05-05 Nathan Sidwell <nathan@acm.org>
1891
1892 * store-motion.c (remove_reachable_equiv_notes): Reformat long
1893 lines. Use for (;;).
1894
1895 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1896
1897 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
1898 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
1899 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
1900 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
1901 VF=2 that require versioning.
1902
1903 2017-05-05 David Malcolm <dmalcolm@redhat.com>
1904
1905 * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
1906 int.
1907
1908 2017-05-05 David Malcolm <dmalcolm@redhat.com>
1909
1910 * diagnostic.h (diagnostic_override_option_index): Convert from
1911 macro to inline function.
1912
1913 2017-05-05 David Malcolm <dmalcolm@redhat.com>
1914
1915 * diagnostic.c (last_module_changed_p): New function.
1916 (set_last_module): New function.
1917 (diagnostic_report_current_module): Convert macro usage to
1918 the above functions.
1919 * diagnostic.h (diagnostic_context::last_module): Strengthen
1920 from const line_map * to const line_map_ordinary *.
1921 (diagnostic_last_module_changed): Delete macro.
1922 (diagnostic_set_last_module): Delete macro.
1923
1924 2017-05-05 David Malcolm <dmalcolm@redhat.com>
1925
1926 * diagnostic.c (diagnostic_impl): Replace report_diagnostic
1927 with diagnostic_report_diagnostic.
1928 (diagnostic_n_impl_richloc): Likewise.
1929 * diagnostic.h (report_diagnostic): Delete macro.
1930 * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
1931 with diagnostic_report_diagnostic.
1932 * substring-locations.c (format_warning_va): Likewise.
1933
1934 2017-05-05 David Malcolm <dmalcolm@redhat.com>
1935
1936 * diagnostic.c (diagnostic_report_diagnostic): Eliminate
1937 save/restor of format_spec. Move option-printing code to...
1938 (print_option_information): ...this new function, and
1939 reimplement by simply printing to the pretty_printer,
1940 rather than appending to the format string.
1941
1942 2017-05-05 David Malcolm <dmalcolm@redhat.com>
1943
1944 * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
1945 handling logic into...
1946 (update_effective_level_from_pragmas): ...this new function.
1947
1948 2017-05-04 Andrew Waterman <andrew@sifive.com>
1949
1950 * config/riscv/riscv.opt (mstrict-align): New option.
1951 * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it. Update comment.
1952 (SLOW_UNALIGNED_ACCESS): Define.
1953 (riscv_slow_unaligned_access): Declare.
1954 * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
1955 field.
1956 (riscv_slow_unaligned_access): New variable.
1957 (rocket_tune_info): Set slow_unaligned_access to true.
1958 (optimize_size_tune_info): Set slow_unaligned_access to false.
1959 (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
1960 (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
1961 (riscv_option_override): Set riscv_slow_unaligned_access.
1962 * doc/invoke.texi: Add -mstrict-align to RISC-V.
1963
1964 2017-05-04 Kito Cheng <kito.cheng@gmail.com>
1965
1966 * config/riscv/riscv.md: Unify indentation.
1967
1968 2017-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1969
1970 PR target/79038
1971 PR target/79202
1972 PR target/79203
1973 * config/rs6000/rs6000.md (u code attribute): Add FIX and
1974 UNSIGNED_FIX.
1975 (extendsi<mode>2): Add support for doing sign extension via
1976 VUPKHSW and XXPERMDI if the value is in Altivec registers and we
1977 don't have ISA 3.0 instructions.
1978 (extendsi<mode>2 splitter): Likewise.
1979 (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
1980 generate the normal insns since SImode can now go in vector
1981 registers. Disallow the special UNSPECs needed for previous
1982 machines to hide SImode being used. Add new insns
1983 fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
1984 (fix_trunc<mode>si2_stfiwx): Likewise.
1985 (fix_trunc<mode>si2_internal): Likewise.
1986 (fixuns_trunc<mode>si2): Likewise.
1987 (fixuns_trunc<mode>si2_stfiwx): Likewise.
1988 (fctiw<u>z_<mode>_smallint): Likewise.
1989 (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
1990 of floating point to 32-bit integer from doing a direct move to
1991 the GPR registers to do a store.
1992 (fctiwz_<mode>): Break long line.
1993
1994 2017-05-05 Bin Cheng <bin.cheng@arm.com>
1995
1996 * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
1997 * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
1998 (addr_list, addr_offset_valid_p): New.
1999 (split_address_groups): Check offset validity with above function.
2000 (gt-tree-ssa-loop-ivopts.h): Include header file.
2001
2002 2017-05-05 Nathan Sidwell <nathan@acm.org>
2003
2004 * config.gcc (arm*-*-*): Add missing 'fi'.
2005
2006 2017-05-05 Steve Ellcey <sellcey@cavium.com>
2007
2008 * doc/invoke.texi (-fopt-info): Explicitly say order of options
2009 included in -fopt-info does not matter.
2010 * doc/optinfo.texi (-fopt-info): Fix description of default
2011 behavour. Explicitly say order of options included in -fopt-info
2012 does not matter.
2013
2014 2017-05-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
2015
2016 * config.gcc: Allow combinations of aprofile and rmprofile values for
2017 --with-multilib-list.
2018 * config/arm/t-multilib: New file.
2019 * config/arm/t-aprofile: Remove initialization of MULTILIB_*
2020 variables. Remove setting of ISA and floating-point ABI in
2021 MULTILIB_OPTIONS and MULTILIB_DIRNAMES. Set architecture and FPU in
2022 MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
2023 and MULTILIB_DIRNAMES respectively. Add comment to introduce all
2024 matches. Add architecture matches for marvel-pj4 and generic-armv7-a
2025 CPU options.
2026 * config/arm/t-rmprofile: Likewise except for the matches changes.
2027 * doc/install.texi (--with-multilib-list): Document the combination of
2028 aprofile and rmprofile values and warn about pitfalls in doing that.
2029
2030 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
2031
2032 * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
2033 (movdi_aarch64): Likewise.
2034
2035 2017-05-05 Jakub Jelinek <jakub@redhat.com>
2036
2037 PR tree-optimization/80632
2038 * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
2039 field.
2040 (build_arrays): Initialize it for virtual phis.
2041 (fix_phi_nodes): Use it for virtual phis.
2042
2043 PR tree-optimization/80558
2044 * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
2045 [x, y] op z into [x op, y op z] for op & or | if conditions
2046 are met.
2047
2048 2017-05-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
2049 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
2050
2051 PR target/71607
2052 * config/arm/arm.md (use_literal_pool): Remove.
2053 (64-bit immediate split): No longer takes cost into consideration
2054 if arm_disable_literal_pool is enabled.
2055 * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
2056 used when arm_disable_literal_pool is enabled.
2057 (arm_max_const_double_inline_cost): Remove use of
2058 arm_disable_literal_pool.
2059 (push_minipool_fix): Add assert.
2060 (arm_reorg): Add return if arm_disable_literal_pool is enabled.
2061 * config/arm/vfp.md (no_literal_pool_df_immediate): New.
2062 (no_literal_pool_sf_immediate): New.
2063
2064 2017-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2065
2066 PR tree-optimization/80613
2067 * tree-ssa-dce.c (propagate_necessity): Remove cases for
2068 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
2069
2070 2017-05-05 Richard Biener <rguenther@suse.de>
2071
2072 * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
2073
2074 2017-05-05 Georg-Johann Lay <avr@gjlay.de>
2075
2076 * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
2077 of this flag from insn conditions due to removal from r247495.
2078
2079 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
2080
2081 * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
2082 New function.
2083 (arm_early_store_addr_dep_ptr): Likewise.
2084 * config/arm/aarch-common-protos.h
2085 (arm_early_load_addr_dep_ptr): Add prototype.
2086 (arm_early_store_addr_dep_ptr): Likewise.
2087 * config/arm/cortex-a53.md: Add new bypasses.
2088
2089 2017-05-05 Jakub Jelinek <jakub@redhat.com>
2090
2091 * tree.c (next_type_uid): Change type to unsigned.
2092 (type_hash_canon): Decrement back next_type_uid if
2093 freeing a type node with the highest TYPE_UID. For INTEGER_TYPEs
2094 also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
2095 if possible.
2096
2097 2017-05-04 Martin Sebor <msebor@redhat.com>
2098
2099 * builtins.c: Fix a trivial typo in a comment.
2100
2101 PR middle-end/79234
2102 * builtins.c (check_sizes): Adjust to handle reading past the end.
2103 Avoid printing excessive upper bound of ranges. Use %E to print
2104 tree nodes instead of converting them to %wu.
2105 (expand_builtin_memchr): New function.
2106 (compute_dest_size): Rename...
2107 (compute_objsize): ...to this.
2108 (expand_builtin_memcpy): Adjust.
2109 (expand_builtin_mempcpy): Adjust.
2110 (expand_builtin_strcat): Adjust.
2111 (expand_builtin_strcpy): Adjust.
2112 (check_strncat_sizes): Adjust.
2113 (expand_builtin_strncat): Adjust.
2114 (expand_builtin_strncpy): Adjust and simplify.
2115 (expand_builtin_memset): Adjust.
2116 (expand_builtin_bzero): Adjust.
2117 (expand_builtin_memcmp): Adjust.
2118 (expand_builtin): Handle memcmp.
2119 (maybe_emit_chk_warning): Check strncat just once.
2120
2121 2017-05-04 Martin Sebor <msebor@redhat.com>
2122
2123 PR preprocessor/79214
2124 PR middle-end/79222
2125 PR middle-end/79223
2126 * builtins.c (check_sizes): Add inlining context and issue
2127 warnings even when -Wno-system-headers is set.
2128 (check_strncat_sizes): Same.
2129 (expand_builtin_strncat): Same.
2130 (expand_builtin_memmove): New function.
2131 (expand_builtin_stpncpy): Same.
2132 (expand_builtin): Handle memmove and stpncpy.
2133
2134 2017-05-04 Bin Cheng <bin.cheng@arm.com>
2135
2136 * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
2137 which is not used any more.
2138
2139 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
2140
2141 * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
2142
2143 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
2144
2145 * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
2146 (cortexa53_tunings): Likewise.
2147 (cortexa57_tunings): Likewise.
2148 (cortexa72_tunings): Likewise.
2149 (cortexa73_tunings): Likewise.
2150
2151 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
2152
2153 * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
2154 Set loop alignment to 8.
2155
2156 2017-05-04 Martin Sebor <msebor@redhat.com>
2157
2158 PR translation/80280
2159 * builtins.c (expand_builtin_object_size): Add missing quoting to
2160 %D and like directives.
2161 * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
2162 (hsa_type_for_tree_type): Same.
2163 (verify_function_arguments): Same.
2164 * symtab.c (symbol_table::change_decl_assembler_name): Same.
2165 * varasm.c (get_section): Same.
2166 (mark_weak): Same.
2167
2168 2017-05-04 Martin Sebor <msebor@redhat.com>
2169
2170 PR translation/80280
2171 * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
2172
2173 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
2174
2175 * config/aarch64/aarch64.c (generic_addrcost_table):
2176 Change HI/TI mode setting.
2177
2178 2017-05-04 Martin Jambor <mjambor@suse.cz>
2179
2180 PR tree-optimization/80622
2181 * tree-sra.c (comes_initialized_p): New function.
2182 (build_accesses_from_assign): Only set write lazily when
2183 comes_initialized_p is false.
2184 (analyze_access_subtree): Use comes_initialized_p.
2185 (propagate_subaccesses_across_link): Assert !comes_initialized_p
2186 instead of testing for PARM_DECL.
2187
2188 2017-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2189
2190 * config/aarch64/aarch64.md (prefetch); Adjust predicate and
2191 constraint on operand 0 to allow more general addressing modes.
2192 Adjust output template.
2193 * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
2194 New function.
2195 * config/aarch64/aarch64-protos.h
2196 (aarch64_address_valid_for_prefetch_p): Declare prototype.
2197 * config/aarch64/constraints.md (Dp): New address constraint.
2198 * config/aarch64/predicates.md (aarch64_prefetch_operand): New
2199 predicate.
2200
2201 2017-05-04 Jan Hubicka <hubicka@ucw.cz>
2202
2203 * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
2204 update use of estimate_ipcp_clone_size_and_time.
2205 (estimate_local_effects): Update use of
2206 estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
2207 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
2208 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
2209 Return nonspecialized time.
2210
2211 2017-05-04 Richard Biener <rguenther@suse.de>
2212
2213 * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
2214 for the last VUSE which def dominates the PHI. Directly call
2215 maybe_skip_until.
2216 (get_continuation_for_phi_1): Remove.
2217
2218 2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2219
2220 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
2221 to explain the use of truncating division. Cap the number of
2222 iterations to the maximum given by nb_iterations_upper_bound,
2223 if defined.
2224
2225 2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2226
2227 * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
2228 * configure: Regenerate.
2229 * config.in: Regenerate.
2230 * config/i386/driver-mingw32.c: new file.
2231 * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
2232 * config.host: Link driver-mingw32.o on MinGW host.
2233 * doc/install.texi: Document new --enable-mingw-wildcard configure
2234 option.
2235
2236 2017-05-04 Marek Polacek <polacek@redhat.com>
2237
2238 PR tree-optimization/80612
2239 * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
2240
2241 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
2242 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
2243
2244 * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
2245 (movt splitter): Likewise.
2246 * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
2247 to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
2248 (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
2249 block for Thumb-1 with MOVT.
2250 (thumb2_legitimate_address_p): Move code block ...
2251 (can_avoid_literal_pool_for_label_p): ... into this new function.
2252 (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
2253 literal pool.
2254 (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
2255 * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
2256 "M-profile targets with the MOVT instruction".
2257
2258 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
2259
2260 * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
2261 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
2262 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
2263
2264 2017-05-04 Martin Liska <mliska@suse.cz>
2265
2266 * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
2267 variable cond_code.
2268
2269 2017-05-04 Richard Biener <rguenther@suse.de>
2270
2271 * tree.c (array_at_struct_end_p): Handle arrays at struct
2272 end with flexarrays more conservatively. Refactor and treat
2273 arrays of arrays or aggregates more strict. Fix
2274 VIEW_CONVERT_EXPR handling. Remove allow_compref argument.
2275 * tree.c (array_at_struct_end_p): Adjust prototype.
2276 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
2277 * gimple-fold.c (get_range_strlen): Likewise.
2278 * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
2279
2280 2017-05-04 Richard Biener <rguenther@suse.de>
2281
2282 PR tree-optimization/31130
2283 * tree-vrp.c (needs_overflow_infinity): Remove as always returning
2284 false.
2285 (supports_overflow_infinity): Likewise.
2286 (is_negative_overflow_infinity): Likewise.
2287 (is_positive_overflow_infinity): Likewise.
2288 (is_overflow_infinity): Likewise.
2289 (stmt_overflow_infinity): Likewise.
2290 (overflow_infinity_range_p): Likewise.
2291 (usable_range_p): Remove as always returning true.
2292 (make_overflow_infinity): Remove.
2293 (negative_overflow_infinity): Likewise.
2294 (positive_overflow_infinity): Likewise.
2295 (avoid_overflow_infinity): Likewise.
2296 (set_value_range): Adjust accordingly.
2297 (set_value_range_to_nonnegative): Likewise, remove now unused
2298 overflow_infinity arg.
2299 (vrp_operand_equal_p): Adjust.
2300 (update_value_range): Likewise.
2301 (range_int_cst_singleton_p): Likewise.
2302 (operand_less_p): Likewise.
2303 (compare_values_warnv): Likewise.
2304 (extract_range_for_var_from_comparison_expr): Likewise.
2305 (vrp_int_const_binop): Likewise.
2306 (zero_nonzero_bits_from_vr): Likewise.
2307 (extract_range_from_multiplicative_op_1): Likewise.
2308 (extract_range_from_binary_expr_1): Likewise.
2309 (extract_range_from_unary_expr): Likewise.
2310 (extract_range_from_comparison): Likewise.
2311 (extract_range_basic): Likewise.
2312 (adjust_range_with_scev): Likewise.
2313 (compare_ranges): Likewise.
2314 (compare_range_with_value): Likewise.
2315 (dump_value_range): Likewise.
2316 (test_for_singularity): Likewise, remove strict_overflow_p parameter
2317 never used.
2318 (simplify_cond_using_ranges): Adjust.
2319
2320 2017-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
2321
2322 * brig-builtins.def: Added a builtin for class_f64.
2323 * builtin-types.def: Added a builtin type needed by class_f64.
2324
2325 2017-05-03 Jason Merrill <jason@redhat.com>
2326
2327 * timevar.def: Add TV_CONSTEXPR.
2328
2329 2017-05-03 David Malcolm <dmalcolm@redhat.com>
2330
2331 * common.opt (fdiagnostics-parseable-fixits): Fix typo.
2332
2333 2017-05-03 Martin Jambor <mjambor@suse.cz>
2334
2335 * ipa-prop.c (ipa_update_after_lto_read): Removed.
2336 * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
2337 * ipa-cp.c (ipcp_propagate_stage): Do not call
2338 ipa_update_after_lto_read.
2339 * ipa-inline.c (ipa_inline): Likewise.
2340
2341 2017-05-03 Martin Jambor <mjambor@suse.cz>
2342
2343 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY
2344 tag. Added a default constructor and a destructor.
2345 (ipa_edge_args_sum_t): New class;
2346 (ipa_edge_args_sum): Declare.
2347 (ipa_edge_args_vector): Remove declaration.
2348 (IPA_EDGE_REF): Use ipa_edge_args_sum.
2349 (ipa_free_edge_args_substructures): Remove declaration.
2350 (ipa_check_create_edge_args): Use ipa_edge_args_sum.
2351 (ipa_edge_args_info_available_for_edge_p): Likewise.
2352 * ipa-prop.c (ipa_edge_args_vector): Removed.
2353 (edge_removal_hook_holder): Likewise.
2354 (edge_duplication_hook_holder): Likewise.
2355 (ipa_edge_args_sum): New variable.
2356 (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
2357 ipa_edge_args_vector.
2358 (ipa_free_edge_args_substructures): Likewise.
2359 (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
2360 ipa_edge_args_vector.
2361 (ipa_edge_removal_hook): Turned into method
2362 ipa_edge_args_sum_t::remove.
2363 (ipa_edge_duplication_hook): Turned into method
2364 ipa_edge_args_sum_t::duplicate.
2365 (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
2366 registering edge hooks.
2367 (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
2368 * ipa-inline-analysis.c (estimate_function_body_sizes): Test
2369 ipa_edge_args_sum instead of ipa_edge_args_vector.
2370 * ipa-profile.c (ipa_profile): Likewise.
2371
2372 2017-05-03 Martin Jambor <mjambor@suse.cz>
2373
2374 * symbol-summary.h (function_summary): New method exists.
2375 (function_summary::symtab_removal): Deallocate through release.
2376 (call_summary): New class.
2377 (gt_ggc_mx): New overload.
2378 (gt_pch_nx): Likewise.
2379 (gt_pch_nx): Likewise.
2380
2381 2017-05-03 Jeff Law <law@redhat.com>
2382
2383 PR tree-optimization/78496
2384 * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
2385 from simplify_cond_using_ranges. Split off code to walk
2386 backwards through casts into ...
2387 (simplify_cond_using_ranges_2): New function.
2388 (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
2389 (execute_vrp): After identifying jump threads, call
2390 simplify_cond_using_ranges_2.
2391
2392 2017-05-03 Jan Hubicka <hubicka@ucw.cz>
2393
2394 PR bootstrap/80609
2395 * ipa-inline.h (inline_summary): Add ctor.
2396 (create_ggc): Do not use ggc_cleared_alloc.
2397
2398 2017-05-03 Jeff Downs <heydowns@somuchpressure.net>
2399 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2400
2401 * gcc.c (handle_braces): Support escaping in switch matching
2402 text.
2403 * doc/invoke.texi (Spec Files): Document it.
2404 Remove superfluous @code markup in items.
2405
2406 2017-05-03 David Malcolm <dmalcolm@redhat.com>
2407
2408 * diagnostic-show-locus.c (struct column_range): New struct.
2409 (get_affected_columns): New function.
2410 (get_printed_columns): New function.
2411 (struct correction): New struct.
2412 (correction::ensure_capacity): New function.
2413 (correction::ensure_terminated): New function.
2414 (struct line_corrections): New struct.
2415 (line_corrections::~line_corrections): New dtor.
2416 (line_corrections::add_hint): New function.
2417 (layout::print_trailing_fixits): Reimplement in terms of the new
2418 classes.
2419 (selftest::test_overlapped_fixit_printing): New function.
2420 (selftest::diagnostic_show_locus_c_tests): Call it.
2421
2422 2017-05-03 Nathan Sidwell <nathan@acm.org>
2423
2424 Canonicalize canonical type hashing
2425 * tree.h (type_hash_canon_hash): Declare.
2426 * tree.c (type_hash_list, attribute_hash_list): Move into
2427 type_hash_canon_hash.
2428 (build_type_attribute_qual_variant): Break out hash code calc into
2429 type_hash_canon_hash.
2430 (type_hash_canon_hash): New. Generic type hash computation.
2431 (build_range_type_1, build_array_type_1, build_function_type,
2432 build_method_type_directly, build_offset_type, build_complex_type,
2433 make_vector_type): Call it.
2434
2435 2017-05-03 Richard Biener <rguenther@suse.de>
2436
2437 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2438 When all DRs have unknown misaligned do not always peel
2439 when there is a store but apply the same costing model as if
2440 there were only loads.
2441
2442 2017-05-03 Richard Biener <rguenther@suse.de>
2443
2444 Revert
2445 PR tree-optimization/80492
2446 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
2447 compare_base_decls returning dont-know properly.
2448
2449 2017-05-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
2450
2451 * config/arm/iterators.md (CCSI): New mode iterator.
2452 (arch): New mode attribute.
2453 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
2454 (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
2455 (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This. Use CCSI
2456 code iterator for success result mode.
2457 * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
2458 the corresponding new insn generators.
2459
2460 2017-05-03 Bin Cheng <bin.cheng@arm.com>
2461
2462 Revert r247509
2463 2017-05-02 Bin Cheng <bin.cheng@arm.com>
2464 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
2465
2466 2017-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2467
2468 * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
2469 (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
2470 (DDR_A): Wrap DDR argument in brackets.
2471 (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
2472 (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
2473 (DDR_REVERSED_P): Likewise.
2474
2475 2017-05-03 Jakub Jelinek <jakub@redhat.com>
2476
2477 PR tree-optimization/79472
2478 * tree-switch-conversion.c (struct switch_conv_info): Add
2479 contiguous_range and default_case_nonstandard fields.
2480 (collect_switch_conv_info): Compute contiguous_range and
2481 default_case_nonstandard fields, don't clear final_bb if
2482 contiguous_range and only the default case doesn't have the required
2483 structure.
2484 (check_all_empty_except_final): Set default_case_nonstandard instead
2485 of failing if contiguous_range and the default case doesn't have empty
2486 block.
2487 (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
2488 and only the default case doesn't have the required constants. Skip
2489 virtual phis.
2490 (gather_default_values): Skip virtual phis. Allow non-NULL CASE_LOW
2491 if default_case_nonstandard.
2492 (build_constructors): Build constant 1 just once. Assert that default
2493 values aren't inserted in between cases if contiguous_range. Skip
2494 virtual phis.
2495 (build_arrays): Skip virtual phis.
2496 (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
2497 (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
2498 Handle virtual phis.
2499 (gen_inbound_check): Handle default_case_nonstandard case.
2500 (process_switch): Adjust check_final_bb caller. Call
2501 gather_default_values with the first non-default case instead of
2502 default case if default_case_nonstandard.
2503
2504 2017-05-02 Nathan Sidwell <nathan@acm.org>
2505
2506 * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
2507 check. Fix formatting.
2508
2509 2017-05-02 Jan Hubicka <hubicka@ucw.cz>
2510
2511 * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
2512 errors when comparing specialized and unspecialized times.
2513
2514 2017-05-02 David Malcolm <dmalcolm@redhat.com>
2515
2516 * diagnostic-show-locus.c
2517 (layout::should_print_annotation_line_p): Make private.
2518 (layout::print_annotation_line): Make private.
2519 (layout::annotation_line_showed_range_p): Make private.
2520 (layout::show_ruler): Make private.
2521 (layout::print_source_line): Make private. Pass in line and
2522 line_width, rather than calling location_get_source_line. Drop
2523 returned value.
2524 (layout::print_leading_fixits): New method.
2525 (layout::print_any_fixits): Rename to...
2526 (layout::print_trailing_fixits): ...this, and make private.
2527 Don't print newline fixits.
2528 (diagnostic_show_locus): Move logic for printing one row into...
2529 (layout::print_line): ...this new function. Move the
2530 location_get_source_line call and error-handling from
2531 print_source_line to here. Call print_leading_fixits, and rename
2532 print_any_fixits to print_trailing_fixits.
2533 (selftest::test_fixit_insert_containing_newline): Update now that
2534 newlines are partially supported.
2535 (selftest::test_fixit_insert_containing_newline_2): New test.
2536 (selftest::test_fixit_replace_containing_newline): Update comments.
2537 (selftest::diagnostic_show_locus_c_tests): Call the new test.
2538 * edit-context.c (class added_line): New class.
2539 (class edited_line): Describe newline handling in comment.
2540 (edited_line::actually_edited_p): New method.
2541 (edited_line::print_content): Delete redundant decl.
2542 (edited_line::m_predecessors): New field.
2543 (edited_file::print_content): Call edited_line::print_content.
2544 (edited_file::print_diff): Update to support newlines.
2545 (edited_file::print_diff_hunk): Likewise.
2546 (edited_file::print_run_of_changed_lines): New function.
2547 (edited_file::print_diff_line): Convert to...
2548 (print_diff_line): ...this.
2549 (edited_file::get_effective_line_count): New function.
2550 (edited_line::edited_line): Initialize new field m_predecessors.
2551 (edited_line::~edited_line): Clean up m_predecessors.
2552 (edited_line::apply_fixit): Handle newlines.
2553 (edited_line::get_effective_line_count): New function.
2554 (edited_line::print_content): New function.
2555 (edited_line::print_diff_lines): New function.
2556 (selftest::test_applying_fixits_insert_containing_newline): New
2557 test.
2558 (selftest::test_applying_fixits_replace_containing_newline): New
2559 test.
2560 (selftest::insert_line): New function.
2561 (selftest::test_applying_fixits_multiple_lines): Add example of
2562 inserting a line.
2563 (selftest::edit_context_c_tests): Call the new tests.
2564
2565 2017-05-02 Bin Cheng <bin.cheng@arm.com>
2566
2567 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
2568 parameter cand. Update dump information.
2569 (get_computation_cost): Update uses.
2570
2571 2017-05-02 Bin Cheng <bin.cheng@arm.com>
2572
2573 * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
2574 (get_computation_aff): Reorder parameters. Use get_computation_aff_1.
2575 (get_computation_at, rewrite_use_address): Update use of
2576 get_computation_aff.
2577
2578 2017-05-02 Bin Cheng <bin.cheng@arm.com>
2579
2580 * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
2581 (get_computation): Delete.
2582 (get_computation_cost): Implement like get_computation_cost_at.
2583 Use get_computation_at.
2584 (get_computation_cost_at): Delete.
2585 (rewrite_use_nonlinear_expr): Use get_computation_at.
2586 (rewrite_use_compare, remove_unused_ivs): Ditto.
2587
2588 2017-05-02 Bin Cheng <bin.cheng@arm.com>
2589
2590 * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
2591
2592 2017-05-02 Bin Cheng <bin.cheng@arm.com>
2593
2594 * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
2595 (ivopts_global_cost_for_size): Rename parameter and update uses.
2596 (iv_ca_recount_cost): Update uses.
2597 (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
2598 candidates seperately in n_invs and n_cands.
2599 (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
2600
2601 2017-05-02 Bin Cheng <bin.cheng@arm.com>
2602
2603 * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
2604 (find_inv_vars_cb): New.
2605 (find_depends): Renamed to ...
2606 (find_inv_vars): ... this.
2607 (add_candidate_1, force_var_cost): Call find_inv_vars.
2608 (split_address_cost, determine_group_iv_cost_cond): Ditto.
2609
2610 2017-05-02 Bin Cheng <bin.cheng@arm.com>
2611
2612 * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
2613 inv_vars. Add inv_exprs.
2614 (struct iv_cand): Rename depends_on to inv_vars.
2615 (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
2616 max_inv_var_id/n_inv_var_uses. Move max_inv_expr_id around.
2617 Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
2618 (dump_cand): Dump inv_vars.
2619 (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
2620 (record_invariant, find_depends, add_candidate_1): Ditto.
2621 (set_group_iv_cost, force_var_cost): Ditto.
2622 (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
2623 (get_computation_cost_at, get_computation_cost): Ditto.
2624 (determine_group_iv_cost_generic): Ditto.
2625 (determine_group_iv_cost_address): Ditto.
2626 (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
2627 (determine_group_iv_costs): Ditto.
2628 (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
2629 (iv_ca_set_remove_invariants): Renamed to ...
2630 (iv_ca_set_remove_invs): ... this. Support inv_vars and inv_exprs.
2631 (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
2632 (iv_ca_set_add_invariants): Renamed to ...
2633 (iv_ca_set_add_invs): ... this. Support inv_vars and inv_exprs.
2634 (iv_ca_set_cp): Use iv_ca_set_add_invs.
2635 (iv_ca_has_deps): Support inv_vars and inv_exprs.
2636 (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
2637 (create_new_ivs): Remove useless dump.
2638
2639 2017-05-02 Bin Cheng <bin.cheng@arm.com>
2640
2641 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
2642 iv_cand code.
2643 (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
2644 (iv_ca_set_no_cp, create_new_iv): Ditto.
2645
2646 2017-05-02 Bin Cheng <bin.cheng@arm.com>
2647
2648 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
2649
2650 2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
2651
2652 * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
2653 function tree_check2.
2654
2655 2017-05-02 Martin Liska <mliska@suse.cz>
2656
2657 * doc/gcov.texi: Add missing preposition.
2658 * gcov.c (function_info::function_info): Properly fill up
2659 all member variables.
2660
2661 2017-05-02 Tamar Christina <tamar.christina@arm.com>
2662
2663 * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
2664
2665 2017-05-02 Tamar Christina <tamar.christina@arm.com>
2666
2667 * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
2668
2669 2017-05-02 Martin Liska <mliska@suse.cz>
2670
2671 PR lto/77954.
2672 * lto-streamer-in.c (lto_read_tree_1): Remove
2673 LTO_STREAMER_DEBUG.
2674 * lto-streamer.c (struct tree_hash_entry): Likewise.
2675 (struct tree_entry_hasher): Likewise.
2676 (tree_entry_hasher::hash): Likewise.
2677 (tree_entry_hasher::equal): Likewise.
2678 (lto_streamer_init): Likewise.
2679 (lto_orig_address_map): Likewise.
2680 (lto_orig_address_get): Likewise.
2681 (lto_orig_address_remove): Likewise.
2682 * lto-streamer.h: Likewise.
2683 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
2684 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
2685
2686 2017-05-02 Sebastian Peryt <sebastian.peryt@intel.com>
2687
2688 * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
2689 (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
2690 (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
2691 (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
2692 (mm_maskz_sub_round_ss, _mm_mask_add_sd)
2693 (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
2694 (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
2695 (mm_maskz_sub_ss): New intrinsics.
2696 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2697 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
2698 * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
2699 (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
2700 (__builtin_ia32_subss_mask_round): New builtins.
2701 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2702 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
2703 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
2704 Renamed to ...
2705 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
2706 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
2707 Changed to ...
2708 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
2709 ... this.
2710
2711 2017-05-02 Martin Jambor <mjambor@suse.cz>
2712
2713 PR tree-optimization/78687
2714 * tree-sra.c (access): New field parent.
2715 (process_subtree_disqualification): New function.
2716 (disqualify_candidate): Call it.
2717 (build_accesses_from_assign): Reset write flag if creating an
2718 assighnment link.
2719 (build_access_subtree): Fill in parent field and also prpagate
2720 down grp_write flag.
2721 (create_artificial_child_access): New parameter set_grp_write, set
2722 grp_write to its value.
2723 (propagate_subaccesses_across_link): Also propagate grp_write flag
2724 values.
2725 (propagate_all_subaccesses): Push the closest parent back to work
2726 queue if add_access_to_work_queue returned true.
2727
2728 2017-05-02 Richard Biener <rguenther@suse.de>
2729
2730 * common.opt (fstrict-overflow): Alias negative to fwrapv.
2731 * doc/invoke.texi (fstrict-overflow): Remove all traces of
2732 -fstrict-overflow documentation.
2733 * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
2734 (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
2735 flag_strict_overflow.
2736 * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
2737 * lto-opts.c (lto_write_options): Do not stream it.
2738 * lto-wrapper.c (merge_and_complain): Do not handle it.
2739 * opts.c (default_options_table): Do not set -fstrict-overflow.
2740 (finish_options): Likewise do not clear it when sanitizing.
2741 * simplify-rtx.c (simplify_const_relational_operation): Do not
2742 test flag_strict_overflow.
2743
2744 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
2745
2746 * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
2747 using enabled attribute.
2748 (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
2749 (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
2750 (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
2751 (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
2752 (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
2753 (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
2754 (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
2755 (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
2756 (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
2757 (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
2758
2759 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
2760
2761 * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
2762
2763 2017-05-02 Richard Biener <rguenther@suse.de>
2764
2765 PR tree-optimization/80591
2766 Revert
2767 2017-04-10 Richard Biener <rguenther@suse.de>
2768
2769 * tree-ssa-structalias.c (find_func_aliases): Properly handle
2770 asm inputs.
2771
2772 2017-05-02 Richard Biener <rguenther@suse.de>
2773
2774 PR tree-optimization/80549
2775 * tree-cfgcleanup.c (mfb_keep_latches): New helper.
2776 (cleanup_tree_cfg_noloop): Create forwarders to known loop
2777 headers if they do not have a preheader.
2778
2779 2017-05-02 Martin Liska <mliska@suse.cz>
2780
2781 PR other/80589
2782 * common.opt: Fix typo.
2783 * doc/invoke.texi: Likewise.
2784
2785 2017-05-01 Jan Beulich <jbeulich@suse.com>
2786
2787 * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
2788 swapping, add (x,x,m,x,n) alternative.
2789
2790 2017-05-01 Nathan Sidwell <nathan@acm.org>
2791
2792 * calls.c (combine_pending_stack_adjustment_and_call): Remove
2793 unnecessary unadjusted_alignment check.
2794
2795 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
2796
2797 PR c++/80038
2798 * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
2799 operations here.
2800 * gimplify.c (gimplify_cilk_detach): New function.
2801 (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
2802 * tree-core.h: Document EXPR_CILK_SPAWN.
2803 * tree.h (EXPR_CILK_SPAWN): Define.
2804
2805 2017-05-01 David Malcolm <dmalcolm@redhat.com>
2806
2807 * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
2808 to use new fixit_hint representation, using the "replace" logic.
2809 (get_line_span_for_fixit_hint): Likewise.
2810 (layout::print_any_fixits): Likewise.
2811 (selftest::test_one_liner_many_fixits): Rename to...
2812 (selftest::test_one_liner_many_fixits_1): ...this, and update
2813 comment and expected output to reflect that the multiple fix-it
2814 hints are now consolidated into one insertion.
2815 (selftest::test_one_liner_many_fixits_2): New test.
2816 (selftest::test_diagnostic_show_locus_one_liner): Update for
2817 above.
2818 (selftest::test_fixit_consolidation): Update for fix-it API
2819 change.
2820 * diagnostic.c (print_parseable_fixits): Likewise.
2821 * edit-context.c (edited_line::m_line_events): Convert from
2822 auto_vec <line_event *> to auto_vec <line_event>.
2823 (class line_event): Convert from abstract base class to a concrete
2824 class, taking over the role of replace_event.
2825 (class insert_event): Delete.
2826 (class replace_event): Rename to class line_event. Convert to
2827 half-open range.
2828 (edit_context::add_fixits): Reimplement.
2829 (edit_context::apply_insert): Delete.
2830 (edit_context::apply_replace): Rename to...
2831 (edit_context::apply_fixit): ...this. Convert to half-open range.
2832 (edited_file::apply_insert): Delete.
2833 (edited_file::apply_replace): Rename to...
2834 (edited_file::apply_fixit): ...this.
2835 (edited_line::~edited_line): Drop deletion of events.
2836 (edited_line::apply_insert): Delete.
2837 (edited_line::apply_replace): Rename to...
2838 (edited_line::apply_fixit): ...this. Convert to half-open range.
2839 Update for change to type of m_line_events.
2840 * edit-context.h (edit_context::apply_insert): Delete.
2841 (edit_context::apply_replace): Rename to...
2842 (edit_context::apply_fixit): ...this.
2843
2844 2017-05-01 Martin Sebor <msebor@redhat.com>
2845
2846 * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
2847 known.
2848
2849 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
2850
2851 PR target/68491
2852 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
2853 __get_cpuid_max returns 0.
2854 (__get_cpuid_count): Ditto.
2855
2856 2017-05-01 Eric Botcazou <ebotcazou@adacore.com>
2857
2858 * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
2859 replacement expression is another instance of one of its arguments.
2860
2861 2017-05-01 Jakub Jelinek <jakub@redhat.com>
2862
2863 PR target/79430
2864 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
2865 check for stack push/pop autoinc.
2866 * config/i386/i386.c (ix86_agi_dependent): Return false
2867 if the only reason why modified_in_p returned true is that
2868 addr is SP based and set_insn is a push or pop.
2869
2870 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
2871
2872 * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
2873 overflow check.
2874
2875 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
2876
2877 PR ipa/79224
2878 * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
2879 (account_size_time): Use two predicates - exec_pred and
2880 nonconst_pred_ptr.
2881 (evaluate_conditions_for_known_args): Compute both clause and
2882 nonspec_clause.
2883 (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
2884 (inline_summary_t::duplicate): Update.
2885 (estimate_function_body_sizes): Caluculate exec and nonconst predicates
2886 separately.
2887 (compute_inline_parameters): Likewise.
2888 (estimate_edge_size_and_time): Update caluclation of time.
2889 (estimate_node_size_and_time): Compute both time and nonspecialized
2890 time.
2891 (estimate_ipcp_clone_size_and_time): Update.
2892 (inline_merge_summary): Update.
2893 (do_estimate_edge_time): Update.
2894 (do_estimate_edge_size): Update.
2895 (do_estimate_edge_hints): Update.
2896 (inline_read_section, inline_write_summary): Stream both new predicates.
2897 * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
2898 as argument.
2899 (compute_inlined_call_time): Cleanup.
2900 (big_speedup_p): Update.
2901 (edge_badness): Update.
2902 * ipa-inline.h (INLINE_TIME_SCALE): Remove.
2903 (size_time_entry): Replace predicate by exec_predicate and
2904 nonconst_predicate.
2905 (edge_growth_cache_entry): Cache both time nad nonspecialized time.
2906 (estimate_edge_time): Return also nonspec_time.
2907 (reset_edge_growth_cache): Update.
2908
2909 2017-04-29 Jakub Jelinek <jakub@redhat.com>
2910
2911 PR rtl-optimization/80491
2912 * ifcvt.c (noce_process_if_block): When looking for x setter
2913 with missing else_bb, don't check only the insn right before
2914 cond_earliest, but look for the last insn that x is modified in
2915 within the same bb.
2916
2917 PR rtl-optimization/80491
2918 * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
2919
2920 2017-04-29 Marc Glisse <marc.glisse@inria.fr>
2921
2922 PR tree-optimization/80487
2923 * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
2924
2925 2017-04-29 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2926
2927 PR tree-optimization/79697
2928 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
2929 is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
2930 (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
2931 BUILT_IN_STRNDUP.
2932 * gimple-fold.c (gimple_fold_builtin_realloc): New function.
2933 (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
2934
2935 2017-04-28 Martin Sebor <msebor@redhat.com>
2936
2937 PR tree-optimization/80523
2938 * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
2939 (init_target_to_host_charmap, target_to_host, target_strtol10): New
2940 functions.
2941 (maybe_warn, format_directive, parse_directive): Use new functions.
2942 (pass_sprintf_length::execute): Call init_target_to_host_charmap.
2943
2944 2017-04-28 Marc Glisse <marc.glisse@inria.fr>
2945
2946 * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
2947
2948 2017-04-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
2949
2950 * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
2951 target_header_dir): Set correctly.
2952 * configure: Regenerated.
2953 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
2954 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
2955 instead of SYSTEM_HEADER_DIR.
2956
2957 2017-04-28 Jan Hubicka <hubicka@ucw.cz>
2958
2959 * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
2960 (estimate_local_effects): Likewise.
2961 * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
2962 edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
2963 * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
2964 estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
2965 do_estimate_edge_time, estimate_edge_time): Likewise.
2966 * ipa-inline-analysis.c (estimate_node_size_and_time,
2967 estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
2968 (estimate_time_after_inlining): Remove.
2969
2970 2017-04-28 Martin Liska <mliska@suse.cz>
2971
2972 * doc/gcov.texi: Enhance documentation of gcov.
2973
2974 2017-04-28 Martin Liska <mliska@suse.cz>
2975
2976 * doc/gcov.texi: Sort options in alphabetic order.
2977 * doc/gcov-dump.texi: Likewise.
2978 * doc/gcov-tool.texi: Likewise.
2979 * gcov.c (print_usage): Likewise.
2980 * gcov-dump.c (print_usage): Likewise.
2981 * gcov-tool.c (print_merge_usage_message): Likewise.
2982 (print_rewrite_usage_message): Likewise.
2983 (print_overlap_usage_message): Likewise.
2984
2985 2017-04-28 Martin Liska <mliska@suse.cz>
2986
2987 PR gcov-profile/53915
2988 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
2989
2990 2017-04-28 Martin Liska <mliska@suse.cz>
2991
2992 PR gcov-profile/79891
2993 * gcov.c (add_line_counts): Assign BBs to lines just if the BB
2994 is marked by compiler as living on a line.
2995 (get_cycles_count): Remove usage of the union.
2996 (output_intermediate_file): Likewise.
2997 (find_source): Fix GNU coding style.
2998 (accumulate_line_counts): Remove old non-all block mode.
2999 (output_lines): Remove usage of the union.
3000 * profile.c (output_location): Include all BBs, even if
3001 belonging to a same line (and file) as a previous BB.
3002
3003 2017-04-28 Martin Liska <mliska@suse.cz>
3004
3005 * gcov.c (process_args): Handle new argument 'w'.
3006 (read_graph_file): Assign ID to BBs.
3007 (output_branch_count): Display BB # if verbose flag is set.
3008 (output_lines): Likewise for arcs.
3009 (print_usage): Add '--verbose' option help.
3010 * doc/gcov.texi: Document --verbose (-w) option.
3011
3012 2017-04-28 Martin Liska <mliska@suse.cz>
3013
3014 * gcov.c (struct block_location_info): New struct.
3015 (process_file): Fill up the new structure.
3016 (read_graph_file): Replace usage of encoding by the newly added
3017 struct.
3018 (add_line_counts): Likewise.
3019 (accumulate_line_counts): Remove usage of the union.
3020 (function_info::function_info): New function.
3021 (function_info::~function_info): Likewise.
3022 (process_file): Call delete instead of release_function.
3023 (release_function): Release the function.
3024 (release_structures): Call delete instead of release_function.
3025 (solve_flow_graph): Replace usage of num_blocks.
3026 (find_exception_blocks): Likewise.
3027 (output_lines): Fix GNU coding style.
3028
3029 2017-04-28 Martin Liska <mliska@suse.cz>
3030
3031 PR driver/56469
3032 * coverage.c (coverage_remove_note_file): New function.
3033 * coverage.h: Declare the function.
3034 * toplev.c (finalize): Clean if an error has been seen.
3035
3036 2017-04-28 Martin Liska <mliska@suse.cz>
3037
3038 PR gcov-profile/80031
3039 * gcov-dump.c (tag_blocks): Just print number of basic blocks.
3040 * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
3041 * gcov.c (read_graph_file): Read just number of blocks.
3042 * profile.c (branch_prob): Do not stream 0 flags per a basic
3043 block.
3044
3045 2017-04-28 Martin Liska <mliska@suse.cz>
3046
3047 * gcov-dump.c (tag_*): Add new argument to declarations.
3048 (dump_gcov_file): Likewise.
3049 (tag_blocks): Add and use new argument depth.
3050 (tag_arcs): Likewise.
3051 (tag_lines): Likewise.
3052 (tag_counters): Likewise.
3053 (tag_summary): Likewise.
3054 (dump_working_sets): Use depth to do a proper indentation.
3055
3056 2017-04-28 Jakub Jelinek <jakub@redhat.com>
3057
3058 PR bootstrap/80531
3059 * cgraph.h (symtab_node::debug_symtab): No longer inline.
3060 * symtab.c (symtab_node::debug_symtab): Move definition here.
3061
3062 2017-04-28 Richard Biener <rguenther@suse.de>
3063
3064 * lto-streamer.h (LTO_major_version): Bump to 7.
3065
3066 2017-04-28 Richard Biener <rguenther@suse.de>
3067
3068 * tree-vrp.c (assert_info): New struct.
3069 (add_assert_info): New helper.
3070 (register_edge_assert_for_2): Refactor to add asserts to a vector
3071 of assert_info.
3072 (register_edge_assert_for_1): Likewise.
3073 (register_edge_assert_for): Likewise.
3074 (finish_register_edge_assert_for): New helper actually registering
3075 asserts where live on edge.
3076 (find_conditional_asserts): Adjust.
3077 (find_switch_asserts): Likewise.
3078 (evrp_dom_walker::try_find_new_range): Generalize.
3079 (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
3080
3081 2017-04-27 Marek Polacek <polacek@redhat.com>
3082
3083 PR sanitizer/80349
3084 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
3085 arg10 and arg11 to itype.
3086
3087 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
3088
3089 * doc/extend.texi (Object Size Checking): Improve grammar.
3090
3091 2017-04-27 Richard Earnshaw <rearnsha@arm.com>
3092
3093 PR target/80530
3094 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
3095 that the logic for permitting reciprocal estimates matches that
3096 in use_rsqrt_p.
3097
3098 2017-04-27 Jakub Jelinek <jakub@redhat.com>
3099
3100 PR c++/80534
3101 * tree.c (type_cache_hasher::equal): Only compare
3102 TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
3103 (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
3104 non-aggregate element types.
3105 * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
3106 about the flag on ARRAY_TYPEs in the comment, formatting fix.
3107
3108 2017-04-27 Richard Biener <rguenther@suse.de>
3109
3110 PR middle-end/80533
3111 * emit-rtl.c (set_mem_attributes_minus_bitpos): When
3112 stripping ARRAY_REFs from MEM_EXPR make sure we're not
3113 keeping a reference to a trailing array.
3114
3115 2017-04-27 Richard Biener <rguenther@suse.de>
3116
3117 PR middle-end/80539
3118 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
3119 being in loop-closed SSA form conservatively.
3120 (chrec_fold_multiply_poly_poly): Likewise.
3121
3122 2017-04-27 Tamar Christina <tamar.christina@arm.com>
3123
3124 PR middle-end/79665
3125 * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
3126 CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
3127
3128 2017-04-27 Jakub Jelinek <jakub@redhat.com>
3129
3130 PR target/77728
3131 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
3132 (aarch64_function_arg_alignment): Return unsigned int again, but still
3133 ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
3134 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
3135 Don't emit -Wpsabi note.
3136 (aarch64_function_arg_boundary): Likewise.
3137 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
3138 caller.
3139
3140 2017-04-26 Nathan Sidwell <nathan@acm.org>
3141
3142 * tree.h (crc32_unsigned_n): Declare.
3143 (crc32_unsigned, crc32_unsigned): Make inline.
3144 * tree.c (crc32_unsigned_bits): Replace with ...
3145 (crc32_unsigned_n): ... this.
3146 (crc32_unsigned, crc32_byte): Remove.
3147 (crc32_string): Remove unnecessary braces.
3148
3149 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
3150
3151 * ipa-cp.c (estimate_local_effects): Convert sreal to int.
3152 * ipa-inline-analysis.c (MAX_TIME): Remove.
3153 (account_size_time): Use sreal for time.
3154 (dump_inline_summary): Update.
3155 (estimate_function_body_sizes): Update.
3156 (estimate_edge_size_and_time): Update.
3157 (estimate_calls_size_and_time): Update.
3158 (estimate_node_size_and_time): Update.
3159 (inline_merge_summary): Update.
3160 (inline_update_overall_summary): Update.
3161 (estimate_time_after_inlining): Update.
3162 (inline_read_section): Update.
3163 (inline_write_summary): Update.
3164 * ipa-inline.c (compute_uninlined_call_time): Update.
3165 (compute_inlined_call_time): Update.
3166 (recursive_inlining): Update.
3167 (inline_small_functions): Update.
3168 (dump_overall_stats): Update.
3169 * ipa-inline.h: Include sreal.h.
3170 (size_time_entry): Turn time to sreal.
3171 (inline_summary): Turn self_time nad time to sreal.
3172
3173 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
3174
3175 * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
3176 data-streamer.h
3177 (sreal::stream_out, sreal::stream_in): New.
3178 * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
3179
3180 2017-04-25 Jakub Jelinek <jakub@redhat.com>
3181
3182 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
3183 environment.
3184
3185 2017-04-25 Uros Bizjak <ubizjak@gmail.com>
3186
3187 PR target/70799
3188 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
3189 Handle ASHIFTRT.
3190 (dimode_scalar_chain::compute_convert_gain): Ditto.
3191 (dimode_scalar_chain::make_vector_copies): Ditto.
3192 (dimode_scalar_chain::convert_reg): Ditto.
3193 (dimode_scalar_chain::convert_insn): Ditto.
3194 * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
3195 (VI248_AVX512BW_1): New mode iterator.
3196 (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
3197 <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
3198 mode iterator.
3199
3200 2017-04-25 Martin Sebor <msebor@redhat.com>
3201
3202 PR tree-optimization/80497
3203 * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
3204 constants are representable in HOST_WIDE_INT.
3205 (parse_directive): Ditto.
3206
3207 2017-04-25 Martin Sebor <msebor@redhat.com>
3208
3209 PR bootstrap/80486
3210 * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
3211 (new_zero_array): Adjust signature.
3212 (dom_info::dom_init): Used unsigned rather that size_t.
3213 (dom_info::dom_info): Same.
3214
3215 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3216 Jakub Jelinek <jakub@redhat.com>
3217
3218 PR target/77728
3219 * config/arm/arm.c: Include gimple.h.
3220 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
3221 returns negative, increment ncrn only if it returned positive.
3222 (arm_needs_doubleword_align): Return int instead of bool,
3223 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
3224 members, but if there is any such non-FIELD_DECL
3225 > PARM_BOUNDARY aligned decl, return -1 instead of false.
3226 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
3227 returns negative, increment nregs only if it returned positive.
3228 (arm_setup_incoming_varargs): Likewise.
3229 (arm_function_arg_boundary): Emit -Wpsabi note if
3230 arm_needs_doubleword_align returns negative, return
3231 DOUBLEWORD_ALIGNMENT only if it returned positive.
3232
3233 2017-04-25 Marek Polacek <polacek@redhat.com>
3234
3235 PR sanitizer/80349
3236 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
3237 first argument to type.
3238
3239 2017-04-25 Bill Seurer <seurer@linux.vnet.ibm.com>
3240
3241 PR target/80482
3242 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
3243 type checks to test for compatibility instead of equality.
3244
3245 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3246 Jakub Jelinek <jakub@redhat.com>
3247
3248 PR target/77728
3249 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
3250 type.
3251 (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
3252 struct. Ignore DECL_ALIGN of decls other than FIELD_DECL for
3253 the alignment computation, but return their maximum in warn_alignment.
3254 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
3255 Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
3256 is smaller.
3257 (aarch64_function_arg_boundary): Likewise. Simplify using MIN/MAX.
3258 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
3259 caller.
3260
3261 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
3262
3263 * config/arc/simdext.md (dmpyh): Fix typo.
3264
3265 2017-04-25 Richard Biener <rguenther@suse.de>
3266
3267 PR tree-optimization/80492
3268 * alias.c (compare_base_decls): Handle registers with asm
3269 specification conservatively.
3270 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
3271 compare_base_decls returning dont-know properly.
3272
3273 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
3274
3275 * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
3276 (legitimate_offset_address_p): New function.
3277 (arc_legitimate_address_p): Use above function.
3278
3279 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
3280
3281 * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
3282
3283 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
3284
3285 * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
3286 ACCH registers whenever they are available.
3287
3288 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
3289
3290 * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
3291 double regs fix when not used.
3292
3293 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
3294
3295 * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
3296 core registers.
3297 (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
3298 (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
3299
3300 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
3301
3302 * config/arc/arc.c (arc_output_addsi): Check for h-register class
3303 when emitting short ADD instructions.
3304
3305 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
3306
3307 * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
3308 constraint.
3309 (cmpsi_cc_c_insn): Likewise.
3310 (cbranchsi4_scratch): Compute proper instruction length using
3311 compact_hreg_operand.
3312 * config/arc/predicates.md (compact_hreg_operand): New predicate.
3313
3314 2017-04-25 Richard Biener <rguenther@suse.de>
3315
3316 PR middle-end/80509
3317 * passes.c (pass_manager::pass_manager): Initialize
3318 m_name_to_pass_map.
3319
3320 2017-04-25 Richard Biener <rguenther@suse.de>
3321
3322 PR tree-optimization/79201
3323 * tree-ssa-sink.c (statement_sink_location): Handle calls.
3324
3325 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3326
3327 PR target/80464
3328 * config/s390/vector.md: Split MEM->GPR vector moves for
3329 non-s_operand addresses.
3330
3331 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3332
3333 PR target/79895
3334 * config/s390/predicates.md (reload_const_wide_int_operand): New
3335 predicate.
3336 * config/s390/s390.md ("movti"): Remove d/P alternative.
3337 ("movti_bigconst"): New pattern definition.
3338
3339 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
3340
3341 PR target/80080
3342 * s390-protos.h (s390_expand_cs_hqi): Removed.
3343 (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
3344 * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
3345 modes as well as CCZ1mode and CCZmode.
3346 (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
3347 signature of s390_emit_compare_and_swap.
3348 (s390_expand_cs_hqi): Likewise, make static.
3349 (s390_expand_cs_tdsi): Generate an explicit compare before trying
3350 compare-and-swap, in some cases.
3351 (s390_expand_cs): Wrapper function.
3352 (s390_expand_atomic_exchange_tdsi): New backend specific expander for
3353 atomic_exchange.
3354 (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
3355 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
3356 patterns for small and large integers. Forbid symref memory operands.
3357 Move expander to s390.c. Require cc register.
3358 ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
3359 ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
3360 ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
3361 ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
3362 symref memory operands. Remove CC mode and call s390_match_ccmode
3363 instead.
3364 ("atomic_exchange<mode>"): Allow and implement all integer modes.
3365
3366 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
3367
3368 * config/s390/s390.md (define_peephole2): New peephole to help
3369 combining the load-and-test pattern with volatile memory.
3370
3371 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
3372
3373 * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
3374 with CCZmode for TARGET_Z196.
3375
3376 2017-04-25 Jakub Jelinek <jakub@redhat.com>
3377
3378 PR rtl-optimization/80501
3379 * combine.c (make_compound_operation_int): Set subreg_code to SET
3380 even for AND with mask of the sign bit of mode.
3381
3382 PR rtl-optimization/80500
3383 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
3384 sum's initial value.
3385
3386 2017-04-25 Julian Brown <julian@codesourcery.com>
3387 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
3388
3389 * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
3390
3391 2017-04-25 Marc Glisse <marc.glisse@inria.fr>
3392
3393 * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
3394
3395 2017-04-25 Julian Brown <julian@codesourcery.com>
3396 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
3397
3398 * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
3399 (thunderx2t99_sha): New Reservation.
3400
3401 2017-04-25 Julian Brown <julian@codesourcery.com>
3402 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
3403
3404 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
3405 type for 1-element load.
3406
3407 2017-04-24 Marc Glisse <marc.glisse@inria.fr>
3408
3409 * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
3410
3411 2017-04-24 Martin Jambor <mjambor@suse.cz>
3412
3413 PR tree-optimization/80293
3414 * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
3415 char arrays not totally scalarizable if it is false.
3416 (analyze_all_variable_accesses): Pass correct value in the new
3417 parameter. Add a statistics counter.
3418
3419 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
3420
3421 PR middle-end/79931
3422 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
3423
3424 2017-04-24 Richard Biener <rguenther@suse.de>
3425
3426 PR tree-optimization/80494
3427 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
3428 out for complex types.
3429
3430 2017-04-24 Richard Biener <rguenther@suse.de>
3431
3432 * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
3433 * tree-ssa-sccvn.c (print_scc): Print SCC size.
3434 (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
3435 (DFS): Adjust and never fail.
3436 (sccvn_dom_walker::fail): Remove.
3437 (sccvn_dom_walker::before_dom_children): Adjust.
3438 (run_scc_vn): Likewise and never fail.
3439 * tree-ssa-pre.c (pass_pre::execute): Adjust.
3440 (pass_fre::execute): Likewise.
3441
3442 2017-04-24 Richard Biener <rguenther@suse.de>
3443
3444 PR tree-optimization/79725
3445 * tree-ssa-sink.c (statement_sink_location): Return whether
3446 failure reason was zero uses. Move that check later.
3447 (sink_code_in_bb): Deal with zero uses by removing the stmt
3448 if possible.
3449
3450 2017-04-24 Richard Biener <rguenther@suse.de>
3451
3452 PR c++/2972
3453 * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
3454 pointer-based references.
3455
3456 2017-04-24 Richard Biener <rguenther@suse.de>
3457
3458 PR bootstrap/79814
3459 * pass_manager.h (pass_manager::operator new): Remove.
3460 (pass_manager::operator delete): Likewise.
3461 * passes.c (pass_manager::operator new): Remove.
3462 (pass_manager::operator delete): Likewise.
3463 (pass_manager::pass_manager): Zero individual pass members.
3464
3465 2017-04-23 Uros Bizjak <ubizjak@gmail.com>
3466
3467 PR target/70799
3468 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
3469 <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
3470 Check "XEXP (src, 1)" operand here.
3471 <case PLUS, case MINUS, case IOR, case XOR, case AND>:
3472 Check "XEXP (src, 1)" operand here.
3473 (dimode_scalar_chain::make_vector_copies): Detect count register
3474 of a shift instruction. Zero extend count register from QImode
3475 to DImode to satisfy vector shift pattern count operand predicate.
3476 Substitute vector shift count operand with a DImode copy.
3477 (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
3478 vector register.
3479
3480 2017-04-21 Uros Bizjak <ubizjak@gmail.com>
3481
3482 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
3483 Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
3484 (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove
3485 UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
3486 (UNSPEC_NOREX_MEM): Remove definition.
3487
3488 2017-04-21 Richard Biener <rguenther@suse.de>
3489
3490 PR tree-optimization/79547
3491 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3492 Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
3493 bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
3494 without any constraints.
3495
3496 2017-04-21 Richard Biener <rguenther@suse.de>
3497
3498 PR tree-optimization/78847
3499 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
3500
3501 2017-04-21 Richard Biener <rguenther@suse.de>
3502
3503 * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
3504 (build_distinct_type_copy): Likewise.
3505 (build_variant_type_copy): Likewise.
3506 * tree.c (build_qualified_type): Pass down mem-stat info.
3507 (build_distinct_type_copy): Likewise.
3508 (build_variant_type_copy): Likewise.
3509
3510 2017-04-21 Richard Biener <rguenther@suse.de>
3511
3512 PR tree-optimization/80237
3513 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
3514 defaulted to NULL.
3515 (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
3516 for a simplified result.
3517
3518 2016-04-21 Richard Biener <rguenther@suse.de>
3519
3520 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
3521 sth as strict as a simple_iv but a chrec without symbols and an
3522 operand defined in the loop we are peeling (and not some subloop).
3523 (propagate_constants_for_unrolling): Propagate all constants.
3524
3525 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
3526
3527 PR target/79804
3528 * config/i386/i386.c (print_reg): Remove assert for disalowed
3529 regno values, call output_operand_lossage instead.
3530
3531 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
3532
3533 PR target/78090
3534 * config/i386/constraints.md (Yc): New register constraint.
3535 * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
3536 Use Yc constraint for alternative 2 of operand 0. Remove
3537 preferred_for_speed attribute.
3538
3539 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
3540
3541 * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
3542 lastprivate clauses in SIMT case.
3543
3544 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
3545
3546 * doc/invoke.texi (-Wextra-semi): Document new warning option.
3547
3548 2017-04-20 Richard Biener <rguenther@suse.de>
3549
3550 PR tree-optimization/57796
3551 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
3552 as N scalar stores.
3553 (vect_model_load_cost): Cost gathers as N scalar loads.
3554
3555 2017-04-20 Richard Biener <rguenther@suse.de>
3556
3557 * ggc-page.c (ggc_allocated_p): Rename to ...
3558 (safe_lookup_page_table_entry): ... this and return the lookup
3559 result.
3560 (gt_ggc_m_S): Use safe_lookup_page_table_entry.
3561
3562 2017-04-20 Richard Biener <rguenther@suse.de>
3563
3564 PR tree-optimization/80453
3565 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
3566 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
3567 from the conditions.
3568 (vn_phi_eq): Pass them down.
3569 (vn_phi_lookup): Record them.
3570 (vn_phi_insert): Likewise.
3571
3572 2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
3573
3574 * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
3575 uninitialized variable warning to avoid buffer overrun.
3576
3577 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
3578
3579 PR other/71250
3580 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
3581 is suppressed for '{ 0 }' in C.
3582
3583 2017-04-20 Jakub Jelinek <jakub@redhat.com>
3584
3585 * BASE-VER: Set to 8.0.0.
3586
3587 2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
3588
3589 * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
3590 priority .init_array and .fini_array section with SECTION_NOTYPE
3591 flag.
3592
3593 2017-04-20 Jakub Jelinek <jakub@redhat.com>
3594
3595 PR middle-end/80423
3596 * tree.h (build_array_type): Add typeless_storage default argument.
3597 * tree.c (type_cache_hasher::equal): Also compare
3598 TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
3599 (build_array_type): Add typeless_storage argument, set
3600 TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
3601 recursive call.
3602 (build_nonshared_array_type): Adjust build_array_type_1 caller.
3603 (build_array_type): Likewise. Add typeless_storage argument.
3604
3605 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
3606 Jakub Jelinek <jakub@redhat.com>
3607
3608 PR tree-optimization/80426
3609 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
3610 operation on symbolic operands, also compute the overflow for the
3611 invariant part when the operation degenerates into a negation.
3612
3613 2017-04-19 Jakub Jelinek <jakub@redhat.com>
3614
3615 PR debug/80461
3616 * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
3617 Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
3618
3619 PR debug/80436
3620 * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
3621
3622 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
3623
3624 PR target/80462
3625 * config/avr/avr.c (tree.h): Include it.
3626 (cgraph.h): Include it.
3627 (avr_encode_section_info): Don't warn for uninitialized progmem
3628 variable if it's just an alias.
3629
3630 2017-04-19 Richard Biener <rguenther@suse.de>
3631
3632 PR ipa/65972
3633 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
3634 when needed by AutoPGO.
3635
3636 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
3637
3638 PR lto/50345
3639 * doc/lto.texi: Remove an extra 'that'.
3640
3641 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
3642
3643 PR rtl-optimization/80429
3644 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
3645 are only used in debug insns.
3646
3647 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
3648 Vladimir Makarov <vmakarov@redhat.com>
3649
3650 * config/sparc/predicates.md (input_operand): Add comment. Return
3651 true for any memory operand when LRA is in progress.
3652 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
3653
3654 2017-04-18 Jeff Law <law@redhat.com>
3655
3656 PR target/74563
3657 * mips.md ({return,simple_return}_internal): Do not overwrite
3658 operands[0].
3659
3660 2017-04-18 Jakub Jelinek <jakub@redhat.com>
3661
3662 PR tree-optimization/80443
3663 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
3664 instead of adding 1, subtract -1 and similarly instead of subtracting
3665 1 add -1.
3666
3667 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
3668
3669 PR rtl-optimization/80357
3670 * haifa-sched.c (tmp_bitmap): New variable.
3671 (model_recompute): Handle duplicate use records.
3672 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
3673 (free_global_sched_pressure_data): Free it.
3674
3675 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
3676
3677 Revert:
3678 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
3679 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
3680 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
3681 instead of SYSTEM_HEADER_DIR.
3682
3683 2017-04-18 Jeff Law <law@redhat.com>
3684
3685 PR middle-end/80422
3686 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
3687 predecessors after walking up the insn chain.
3688
3689 2017-04-18 Jakub Jelinek <jakub@redhat.com>
3690
3691 PR debug/80263
3692 * dwarf2out.c (modified_type_die): Try harder not to emit internal
3693 sizetype type into debug info.
3694
3695 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3696
3697 PR target/80099
3698 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
3699 unneeded test for TARGET_UPPER_REGS_SF.
3700 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
3701
3702 2017-04-18 Jakub Jelinek <jakub@redhat.com>
3703
3704 PR sanitizer/80444
3705 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
3706 instead of gsi_after_labels.
3707
3708 2017-04-18 Jeff Law <law@redhat.com>
3709
3710 * regcprop.c (maybe_mode_change): Avoid creating copies of the
3711 stack pointer.
3712
3713 Revert:
3714 2017-04-13 Jeff Law <law@redhat.com>
3715 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
3716 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
3717
3718 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
3719
3720 PR target/79453
3721 * config/avr/avr.c (intl.h): Include it.
3722 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
3723
3724 2017-04-18 Martin Liska <mliska@suse.cz>
3725
3726 PR gcov-profile/78783
3727 * gcov-tool.c (gcov_output_files): Validate that destination
3728 file is either removed by the tool or by a user.
3729
3730 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
3731 Guy Benyei <guybe@mellanox.com>
3732
3733 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
3734 block, and do not negate it, the stored id is already negative.
3735
3736 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
3737
3738 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
3739
3740 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3741
3742 PR target/80098
3743 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
3744 masks of options that should be turned off if the VSX vector
3745 options are turned off.
3746 (OTHER_P8_VECTOR_MASKS): Likewise.
3747 (OTHER_VSX_VECTOR_MASKS): Likewise.
3748 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
3749 rs6000_disable_incompatible_switches to validate no type switches
3750 like -mvsx.
3751 (rs6000_incompatible_switch): New function to disallow turning on
3752 other vector options if -mno-vsx, -mno-power8-vector, or
3753 -mno-power9-vector are specified.
3754
3755 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
3756
3757 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
3758
3759 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
3760
3761 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
3762 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
3763 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
3764 (ARG_POINTER_CFA_OFFSET): Likewise.
3765
3766 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
3767
3768 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
3769 conditions to take advantage of various optimizations.
3770
3771 2017-04-13 Jeff Law <law@redhat.com>
3772
3773 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
3774 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
3775 (zero_extendsidi2_dext): Likewise.
3776
3777 2017-04-13 Jakub Jelinek <jakub@redhat.com>
3778
3779 PR sanitizer/80403
3780 * fold-const.c (fold_ternary_loc): Revert
3781 use op0 instead of fold_convert_loc (loc, type, arg0) part of
3782 2017-04-12 change.
3783
3784 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
3785
3786 PR rtl-optimization/80343
3787 * lra-remat.c (update_scratch_ops): Assign original hard reg to
3788 new scratch pseudo.
3789
3790 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
3791
3792 PR sanitizer/80414
3793 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
3794 to ubsan_encode_value.
3795
3796 2017-04-13 Jeff Law <law@redhat.com>
3797
3798 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
3799 appearing in DEBUG_INSNs.
3800
3801 2017-04-13 Martin Liska <mliska@suse.cz>
3802
3803 PR gcov-profile/80413
3804 * gcov-io.c (gcov_write_string): Copy to buffer just when
3805 allocated size is greater than zero.
3806
3807 2017-04-13 Jakub Jelinek <jakub@redhat.com>
3808
3809 PR debug/80321
3810 * dwarf2out.c (decls_for_scope): Ignore declarations of
3811 current_function_decl in BLOCK_NONLOCALIZED_VARS.
3812
3813 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
3814
3815 PR lto/69953
3816 * ipa-visibility.c (non_local_p): Fix typos.
3817 (localize_node): When localizing symbol in same comdat group,
3818 dissolve the group only when we know external symbols are going
3819 to be privatized.
3820 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
3821
3822 2017-04-12 Jakub Jelinek <jakub@redhat.com>
3823
3824 PR tree-optimization/79390
3825 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
3826 order does not result in usable sequence, retry with reversed operand
3827 order.
3828
3829 PR sanitizer/80403
3830 PR sanitizer/80404
3831 PR sanitizer/80405
3832 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
3833 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
3834 op0 instead of fold_convert_loc (loc, type, arg0).
3835
3836 2017-04-12 Jeff Law <law@redhat.com>
3837
3838 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
3839 has a delay slot in the generated code.
3840
3841 * config/cris/cris.md (cris_preferred_reload_class): Return
3842 GENNONACR_REGS rather than GENERAL_REGS.
3843
3844 2017-04-12 Jakub Jelinek <jakub@redhat.com>
3845
3846 PR c/80163
3847 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
3848 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
3849 signedness of the result type.
3850
3851 2017-04-12 Richard Biener <rguenther@suse.de>
3852 Jeff Law <law@redhat.com>
3853
3854 PR tree-optimization/80359
3855 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
3856 trim stores to TARGET_MEM_REFs.
3857
3858 2017-04-12 Richard Biener <rguenther@suse.de>
3859
3860 PR tree-optimization/79390
3861 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
3862 threading case even more.
3863
3864 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
3865
3866 PR target/80382
3867 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
3868 for quad_address_p for TImode, instead of just not indexed_address.
3869
3870 2017-04-12 Richard Biener <rguenther@suse.de>
3871 Bernd Edlinger <bernd.edlinger@hotmail.de>
3872
3873 PR middle-end/79671
3874 * alias.c (component_uses_parent_alias_set_from): Handle
3875 TYPE_TYPELESS_STORAGE.
3876 (get_alias_set): Likewise.
3877 * tree-core.h (tree_type_common): Add typeless_storage flag.
3878 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
3879 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
3880 for types containing members with TYPE_TYPELESS_STORAGE.
3881 (place_field): Likewise.
3882 (layout_type): Likewise for ARRAY_TYPE.
3883 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
3884 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
3885 TYPE_TYPELESS_STORAGE.
3886 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
3887
3888 2017-04-12 Jakub Jelinek <jakub@redhat.com>
3889
3890 PR sanitizer/80349
3891 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
3892 first argument to type.
3893
3894 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3895
3896 PR target/80376
3897 PR target/80315
3898 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
3899 CONST0_RTX (mode) rather than const0_rtx where appropriate.
3900 (rs6000_expand_binop_builtin): Likewise.
3901 (rs6000_expand_ternop_builtin): Likewise; also add missing
3902 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
3903 vshasigma built-ins.
3904 * doc/extend.texi: Document that vec_xxpermdi's third argument
3905 must be a constant.
3906
3907 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
3908
3909 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
3910 Use shift_const cost parameter when calculating gain of STV shifts.
3911
3912 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
3913
3914 PR rtl-optimization/70478
3915 * lra-constraints.c (process_alt_operands): Check memory for
3916 disfavoring memory insn operand.
3917
3918 2017-04-11 Jakub Jelinek <jakub@redhat.com>
3919
3920 PR middle-end/80100
3921 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
3922 left shift in unsigned HOST_WIDE_INT type.
3923
3924 PR rtl-optimization/80385
3925 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
3926 (not (neg X)) into (plus X -1) for complex or non-integral modes.
3927
3928 PR libgomp/80394
3929 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
3930 if they have any depend clauses.
3931
3932 2017-04-11 Martin Liska <mliska@suse.cz>
3933
3934 PR ipa/80212
3935 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
3936 * ipa-split.c (split_function): Create a local comdat symbol
3937 if caller is in a comdat group.
3938
3939 2017-04-11 Martin Liska <mliska@suse.cz>
3940
3941 PR ipa/80212
3942 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
3943 flags.
3944
3945 2017-04-11 Martin Sebor <msebor@redhat.com>
3946
3947 PR middle-end/80364
3948 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
3949 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
3950 for INTEGER_TYPE.
3951 (directive::set_width, directive::set_precision, format_character):
3952 Adjust.
3953 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
3954 INTEGER_TYPE.
3955
3956 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
3957
3958 PR target/80389
3959 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
3960 conflict, set target->arch_name instead of target->cpu_name.
3961
3962 2017-04-11 Richard Biener <rguenther@suse.de>
3963
3964 PR tree-optimization/80374
3965 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
3966 build_zero_cst, remove fold_convertible_p check again.
3967
3968 2017-04-11 Martin Liska <mliska@suse.cz>
3969
3970 PR sanitizer/70878
3971 * ubsan.c (instrument_object_size): Do not instrument register
3972 variables.
3973
3974 2017-04-11 Jakub Jelinek <jakub@redhat.com>
3975
3976 PR target/80381
3977 * config/i386/i386-builtin-types.def
3978 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
3979 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
3980 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
3981 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
3982 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
3983 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
3984 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
3985 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
3986 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
3987 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
3988 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
3989 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
3990 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
3991 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
3992 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
3993 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
3994 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
3995 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
3996 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
3997 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
3998 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
3999 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
4000 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
4001 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
4002 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
4003 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
4004 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
4005 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
4006 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
4007 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
4008 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
4009 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
4010 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
4011 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
4012 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
4013 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
4014 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
4015 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
4016 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
4017 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
4018 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
4019 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
4020 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
4021 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
4022 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
4023 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
4024 aliases.
4025 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
4026 flag to second_arg_count, handle 4 argument function type _COUNT
4027 aliases, handle second_arg_count on second argument rather than last.
4028
4029 2017-04-10 Jeff Law <law@redhat.com>
4030
4031 PR tree-optimization/80374
4032 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
4033 record anything if we can not convert integer_zero_node to the
4034 desired type.
4035
4036 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
4037
4038 PR target/80108
4039 * config/rs6000/rs6000.c (rs6000_option_override_internal):
4040 Enhance special handling given to the TARGET_P9_MINMAX option in
4041 relation to certain other options.
4042
4043 2017-04-10 Bin Cheng <bin.cheng@arm.com>
4044
4045 PR tree-optimization/80153
4046 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
4047 remove POINTER_PLUS_EXPR's base part directly, rather than through
4048 aff_tree.
4049
4050 2017-04-10 Richard Biener <rguenther@suse.de>
4051 Bin Cheng <bin.cheng@arm.com>
4052
4053 PR tree-optimization/80153
4054 * tree-affine.c (aff_combination_to_tree): Get base pointer from
4055 the first element of pointer type aff_tree. Build result expr in
4056 aff_tree's type.
4057 (add_elt_to_tree): Convert to type unconditionally. Remove other
4058 fold_convert calls.
4059 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
4060 (rewrite_use_nonlinear_expr): Check invariant using iv information.
4061
4062 2017-04-10 Richard Biener <rguenther@suse.de>
4063
4064 * tree-ssa-structalias.c (find_func_aliases): Properly handle
4065 asm inputs.
4066
4067 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
4068
4069 PR rtl-optimization/70478
4070 * lra-constraints.c (curr_small_class_check): New.
4071 (update_and_check_small_class_inputs): New.
4072 (process_alt_operands): Update curr_small_class_check. Disfavor
4073 alternative insn memory operands. Check available regs for small
4074 class operands.
4075
4076 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
4077
4078 PR target/80057
4079 * config/mips/mips.opt (-mvirt): Update description.
4080 * doc/invoke.texi (-mvirt): Likewise.
4081
4082 2017-04-10 Richard Biener <rguenther@suse.de>
4083
4084 PR middle-end/80362
4085 * fold-const.c (fold_binary_loc): Look at unstripped ops when
4086 looking for NEGATE_EXPR in -A / -B to A / B folding.
4087
4088 2017-04-10 Martin Liska <mliska@suse.cz>
4089
4090 PR gcov-profile/80224
4091 * gcov.c (print_usage): Fix usage string.
4092 (get_gcov_intermediate_filename): Remove.
4093 (output_gcov_file): Use both for normal and intermediate format.
4094 (generate_results): Do not initialize special file for
4095 intermediate format.
4096
4097 2017-04-10 Richard Biener <rguenther@suse.de>
4098
4099 PR tree-optimization/80304
4100 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
4101 for safelen.
4102
4103 2017-04-10 Nathan Sidwell <nathan@acm.org>
4104
4105 PR target/79905
4106 * config/rs6000/rs6000.c (rs6000_vector_type): New.
4107 (rs6000_init_builtins): Use it.
4108
4109 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4110
4111 * config/arm/arm.md (<mrc>): Add mode to SET source.
4112 (<mrrc>): Likewise.
4113
4114 2017-04-10 Richard Biener <rguenther@suse.de>
4115
4116 PR middle-end/80344
4117 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
4118
4119 2017-04-10 Jakub Jelinek <jakub@redhat.com>
4120
4121 PR target/80324
4122 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
4123 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
4124 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
4125 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
4126 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
4127 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
4128 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
4129 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
4130 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
4131 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
4132 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
4133 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
4134 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
4135 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
4136 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
4137 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
4138 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
4139 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
4140 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
4141 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
4142 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
4143 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
4144 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
4145
4146 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
4147
4148 PR rtl-optimization/70478
4149 * lra-constraints.c: Reverse the last patch.
4150
4151 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
4152
4153 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
4154 Add comment for WCHAR_T.
4155
4156 2017-04-08 Martin Liska <mliska@suse.cz>
4157
4158 Revert:
4159 2017-04-07 Martin Liska <mliska@suse.cz>
4160
4161 PR ipa/80212
4162 * ipa-split.c (split_function): Add function part to a same comdat
4163 group.
4164
4165 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4166
4167 PR target/80358
4168 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
4169
4170 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
4171
4172 * rs6000/rs6000.c (vec_load_pendulum): Rename...
4173 (vec_pairing): ...to this.
4174 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
4175 (rs6000_sched_init): Adjust for name change.
4176 (struct rs6000_sched_context): Likewise.
4177 (rs6000_init_sched_context): Likewise.
4178 (rs6000_set_sched_context): Likewise.
4179
4180 2017-04-07 Jakub Jelinek <jakub@redhat.com>
4181
4182 PR target/80322
4183 PR target/80323
4184 PR target/80325
4185 PR target/80326
4186 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
4187 intrinsics.
4188 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
4189 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
4190 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
4191
4192 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
4193
4194 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
4195
4196 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
4197
4198 PR rtl-optimization/70703
4199 * ira-color.c (update_conflict_hard_regno_costs): Use
4200 int64_t instead of HOST_WIDE_INT.
4201
4202 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
4203
4204 PR rtl-optimization/70478
4205 * lra-constraints.c (process_alt_operands): Disfavor alternative
4206 insn memory operands.
4207
4208 2017-04-07 Jeff Law <law@redhat.com>
4209
4210 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
4211 CALL and NOTE_INSN_CALL_ARG_LOCATION.
4212
4213 2017-04-07 Martin Liska <mliska@suse.cz>
4214
4215 PR target/79889
4216 * config/aarch64/aarch64.c (aarch64_process_target_attr):
4217 Show error message instead of an ICE.
4218
4219 2017-04-07 Martin Liska <mliska@suse.cz>
4220
4221 PR ipa/80212
4222 * ipa-split.c (split_function): Add function part to a same comdat
4223 group.
4224
4225 2017-04-07 Richard Biener <rguenther@suse.de>
4226
4227 PR middle-end/80341
4228 * tree.c (get_unwidened): Also handle ! for_type case for
4229 INTEGER_CSTs.
4230 * convert.c (do_narrow): Split out from ...
4231 (convert_to_integer_1): ... here. Do not pass final truncation
4232 type to get_unwidened for TRUNC_DIV_EXPR.
4233
4234 2017-04-07 Richard Biener <rguenther@suse.de>
4235
4236 * tree-affine.c (wide_int_ext_for_comb): Take type rather
4237 than aff_tree.
4238 (aff_combination_const): Adjust.
4239 (aff_combination_scale): Likewise.
4240 (aff_combination_add_elt): Likewise.
4241 (aff_combination_add_cst): Likewise.
4242 (aff_combination_convert): Likewise.
4243 (add_elt_to_tree): Likewise. Remove unused argument.
4244 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
4245
4246 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
4247
4248 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
4249 definition.
4250 * config/arm/arm.c (arm_default_short_enums): Use
4251 ARM_DEFAULT_SHORT_ENUMS.
4252 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
4253
4254 2017-04-06 Jakub Jelinek <jakub@redhat.com>
4255
4256 PR debug/80234
4257 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
4258 members with redundant out-of-class redeclaration.
4259
4260 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
4261
4262 PR target/80286
4263 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
4264 * config/i386/i386.md (*zero_extendsidi2):
4265 Add (?*x,*x) and (?*v,*v) alternatives.
4266
4267 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
4268
4269 PR target/79733
4270 * config/i386/i386.c (ix86_expand_builtin)
4271 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
4272 mode from insn data. Convert operands to insn operand mode.
4273 Copy operands that don't satisfy insn predicate to a register.
4274
4275 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
4276
4277 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
4278 Update comments.
4279
4280 2017-04-06 Richard Biener <rguenther@suse.de>
4281
4282 PR tree-optimization/80334
4283 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
4284 preserve alignment of accesses.
4285
4286 2017-04-06 Richard Biener <rguenther@suse.de>
4287
4288 PR tree-optimization/80262
4289 * tree-sra.c (build_ref_for_offset): Preserve address-space
4290 information.
4291 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
4292 Drop useless address-space information on MEM_REF offsets.
4293
4294 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
4295
4296 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
4297
4298 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
4299
4300 PR rtl-optimization/70703
4301 * ira-color.c (update_conflict_hard_regno_costs): Use
4302 HOST_WIDE_INT instead of long.
4303
4304 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
4305
4306 PR target/80298
4307 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
4308 not defined for x86_64 target. Add -mmmx target option when __SSE2__
4309 is not defined.
4310 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
4311 for x86_64 target. Handle -m3dnowa option.
4312
4313 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
4314
4315 PR rtl-optimization/70703
4316 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
4317 (update_conflict_hard_regno_costs): Use long instead of unsigned
4318 arithmetic for cost calculation.
4319
4320 2017-04-05 Jakub Jelinek <jakub@redhat.com>
4321 Bernd Edlinger <bernd.edlinger@hotmail.de>
4322
4323 PR sanitizer/80308
4324 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
4325 for big endian.
4326
4327 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
4328
4329 PR target/78002
4330 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
4331 ptr_mode with Pmode throughout.
4332 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
4333 into probe_stack_range and use DImode.
4334
4335 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
4336
4337 PR target/79890
4338 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
4339 call_eh_return is true.
4340
4341 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4342
4343 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
4344 Initialize last_match_fntype_index.
4345
4346 2017-04-05 Jakub Jelinek <jakub@redhat.com>
4347
4348 PR target/80310
4349 * tree-nvr.c: Include internal-fn.h.
4350 (pass_return_slot::execute): Ignore internal calls without
4351 direct optab.
4352
4353 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4354 Richard Biener <rguenther@suse.de>
4355
4356 PR c++/80297
4357 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
4358 captures used multiple times, except for the last use.
4359 * generic-match-head.c: Include gimplify.h.
4360
4361 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4362
4363 PR tree-optimization/79390
4364 * target.h (struct noce_if_info): Declare.
4365 * targhooks.h (default_noce_conversion_profitable_p): Declare.
4366 * target.def (noce_conversion_profitable_p): New target hook.
4367 * ifcvt.h (struct noce_if_info): New type, moved from ...
4368 * ifcvt.c (struct noce_if_info): ... here.
4369 (noce_conversion_profitable_p): Renamed to ...
4370 (default_noce_conversion_profitable_p): ... this. No longer
4371 static nor inline.
4372 (noce_try_store_flag_constants, noce_try_addcc,
4373 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
4374 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
4375 instead of noce_conversion_profitable_p.
4376 * config/i386/i386.c: Include ifcvt.h.
4377 (ix86_option_override_internal): Don't override
4378 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
4379 (ix86_noce_conversion_profitable_p): New function.
4380 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
4381 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
4382 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
4383 * doc/tm.texi: Regenerated.
4384
4385 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4386
4387 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
4388 correction.
4389
4390 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4391
4392 PR target/80307
4393 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
4394 instructions for small multiply cores.
4395
4396 2017-04-04 Jeff Law <law@redhat.com>
4397
4398 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
4399 added member.
4400 (mips_expand_vec_perm_const): Initialize elements in orig_perm
4401 that are not set by the loop over the elements.
4402
4403 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4404
4405 PR target/80286
4406 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
4407 int mode, convert_modes it to mode as unsigned, otherwise use
4408 lowpart_subreg to mode rather than SImode.
4409 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
4410 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
4411 Use DImode instead of SImode for the shift count operand.
4412 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
4413 Likewise.
4414
4415 2017-04-04 Richard Biener <rguenther@suse.de>
4416
4417 PR middle-end/80281
4418 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
4419 arithmetic done for the negate or the plus. Simplify.
4420 (A - (-B) -> A + B): Likewise.
4421 * fold-const.c (split_tree): Make sure to not negate pointers.
4422
4423 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
4424
4425 PR rtl-optimization/60818
4426 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
4427 a compare of comparisons with the thing compared if this results
4428 in a different machine mode.
4429
4430 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
4431
4432 * alias.c (base_alias_check): Fix typo in comment.
4433 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
4434 * cgraphunit.c (symbol_table::compile): Likewise.
4435 * collect2.c (maybe_run_lto_and_relink): Likewise.
4436 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
4437 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
4438 * config/avr/avr.c (avr_map_op_t): Likewise.
4439 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
4440 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
4441 * config/epiphany/epiphany.md (movcc): Likewise.
4442 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
4443 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
4444 Likewise.
4445 * config/mips/mips.c (mips_save_restore_reg): Likewise.
4446 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
4447 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
4448 * config/sh/sh.c (sh_rtx_costs): Likewise.
4449 * fold-const.c (fold_truth_andor): Likewise.
4450 * genautomata.c (collapse_flag): Likewise.
4451 * gengtype.h (struct type::u::s): Likewise.
4452 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
4453 * input.c (FORMAT_AMOUNT): Likewise.
4454 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
4455 (known_aggs_to_agg_replacement_list): Likewise.
4456 * ipa-inline-analysis.c: Likewise.
4457 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
4458 * ipa-polymorphic-call.c
4459 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
4460 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
4461 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
4462 Likewise.
4463 * modulo-sched.c (apply_reg_moves): Likewise.
4464 * omp-expand.c (build_omp_regions_1): Likewise.
4465 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
4466 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
4467 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
4468 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
4469 * value-prof.c: Likewise.
4470 * var-tracking.c (val_reset): Likewise.
4471
4472 2017-04-03 Richard Biener <rguenther@suse.de>
4473
4474 PR tree-optimization/80275
4475 * fold-const.c (split_address_to_core_and_offset): Handle
4476 POINTER_PLUS_EXPR.
4477
4478 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
4479
4480 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
4481 descriptors is at least equal to that of functions.
4482
4483 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
4484
4485 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
4486
4487 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
4488
4489 PR target/80250
4490 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
4491 (mov<IMOD4:mode>): New expander.
4492 (*mov<IMOD4:mode>_internal): New insn and split pattern.
4493
4494 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
4495
4496 PR rtl-optimization/79405
4497 * fwprop.c (propagations_left): New variable.
4498 (forward_propagate_into): Decrement it.
4499 (fwprop_init): Initialize it.
4500 (fw_prop): If the variable has reached zero, stop propagating.
4501 (fwprop_addr): Ditto.
4502
4503 2017-03-31 Jakub Jelinek <jakub@redhat.com>
4504
4505 PR debug/79255
4506 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
4507 a FUNCTION_DECL, pass it as decl instead of origin to
4508 process_scope_var.
4509
4510 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
4511
4512 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
4513 string.
4514
4515 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
4516
4517 PR target/80107
4518 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
4519 TARGET_VSX_SMALL_INTEGER.
4520
4521 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4522
4523 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
4524 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
4525
4526 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
4527
4528 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
4529 extraction from odd-numbered MSA register.
4530
4531 2017-03-31 Jakub Jelinek <jakub@redhat.com>
4532
4533 PR middle-end/80173
4534 * expmed.c (store_bit_field_1): Don't attempt to create
4535 a word subreg out of hard registers wider than word if they
4536 have HARD_REGNO_NREGS of 1 for their mode.
4537
4538 PR middle-end/80163
4539 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
4540 conversions to integer types wider than word and pointer.
4541
4542 PR debug/80025
4543 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
4544 (rtx_equal_for_cselib_p): Pass 0 to it.
4545 * cselib.c (cselib_hasher::equal): Likewise.
4546 (rtx_equal_for_cselib_1): Add depth argument. If depth
4547 is 128, don't look up VALUE locs and punt. Increment
4548 depth in recursive calls when walking VALUE locs.
4549
4550 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
4551
4552 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
4553 (make_gcov_file_name): Use the canonical path name for generating
4554 the MD5 value.
4555 (read_line): Fix handling of files with ascii null bytes.
4556
4557 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
4558
4559 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
4560 to initialise a vector register instead
4561 of using a const_int.
4562
4563 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4564
4565 PR translation/80189
4566 * gimplify.c (omp_default_clause): Use %qs instead of %s in
4567 diagnostic messages.
4568
4569 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
4570
4571 PR target/80246
4572 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
4573 (dfp_diex_<mode>): Update mode of operand 1.
4574 * doc/extend.texi (dxex, dxexq): Document change to return type.
4575 (diex, diexq): Document change to argument type.
4576
4577 2017-03-30 Martin Jambor <mjambor@suse.cz>
4578
4579 PR ipa/77333
4580 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
4581 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
4582 it reflects the signature changes performed at the callee side.
4583 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
4584 to cgraph_build_function_type_skip_args.
4585 (build_function_decl_skip_args): Adjust call to the above function.
4586
4587 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4588
4589 PR target/80206
4590 * config/i386/sse.md
4591 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
4592 register as dest whenever it is a MEM not rtx_equal_p to the
4593 corresponding dup operand, and when forcing into reg move the
4594 reg into the memory afterwards.
4595 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
4596 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
4597 for the force_reg mode.
4598 (avx512vl_vextractf128<mode>): Use register as dest either
4599 always when a MEM, or when it is a MEM not rtx_equal_p to the
4600 corresponding dup operand, or even not when it is a CONST_VECTOR
4601 depending on the mode and lo vs. hi.
4602 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
4603 parens.
4604 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
4605 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
4606 Likewise. Require that operands[2] is even.
4607 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
4608 Remove extraneous parens. Require that operands[2] is a multiple
4609 of 4.
4610 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
4611 operands[0] is a MEM if <mask_applied>, the predicates/constraints
4612 disallow memory then.
4613
4614 2017-03-30 Richard Biener <rguenther@suse.de>
4615
4616 PR tree-optimization/77498
4617 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
4618 to non-constants over backedges.
4619
4620 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
4621
4622 PR rtl-optimization/80233
4623 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
4624 as last_combined_insn. Do not test for BARRIER_P separately.
4625
4626 2017-03-29 Andreas Schwab <schwab@suse.de>
4627
4628 PR ada/80146
4629 * calls.c (prepare_call_address): Convert funexp to Pmode before
4630 copying to temp reg.
4631
4632 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4633
4634 PR tree-optimization/80158
4635 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
4636 Handle possible future case of more than one alternate
4637 interpretation.
4638 (replace_rhs_if_not_dup): Likewise.
4639 (replace_one_candidate): Likewise.
4640
4641 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
4642
4643 PR rtl-optimization/80193
4644 * ira.c (ira): Do not check allocation for LRA.
4645
4646 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
4647
4648 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
4649 (nvptx_output_simt_exit): Declare.
4650 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
4651 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
4652 (init_softstack_frame): Move initialization of crtl->is_leaf to...
4653 (nvptx_declare_function_name): ...here. Emit declaration of local
4654 memory space buffer for omp_simt_enter insn.
4655 (nvptx_output_unisimt_switch): New.
4656 (nvptx_output_softstack_switch): New.
4657 (nvptx_output_simt_enter): New.
4658 (nvptx_output_simt_exit): New.
4659 * config/nvptx/nvptx.h (struct machine_function): New fields
4660 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
4661 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
4662 (UNSPECV_SIMT_EXIT): Ditto.
4663 (omp_simt_enter_insn): New insn.
4664 (omp_simt_enter): New expansion.
4665 (omp_simt_exit): New insn.
4666 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
4667
4668 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
4669 (expand_GOMP_SIMT_ENTER_ALLOC): New.
4670 (expand_GOMP_SIMT_EXIT): New.
4671 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
4672 (GOMP_SIMT_ENTER_ALLOC): Ditto.
4673 (GOMP_SIMT_EXIT): Ditto.
4674 * target-insns.def (omp_simt_enter): New insn.
4675 (omp_simt_exit): Ditto.
4676 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
4677 simt_dlist.
4678 (lower_rec_simd_input_clauses): Implement SIMT privatization.
4679 (lower_rec_input_clauses): Likewise.
4680 (lower_lastprivate_clauses): Handle SIMT privatization.
4681
4682 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
4683 (ompdevlow_adjust_simt_enter): New.
4684 (find_simtpriv_var_op): New.
4685 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
4686 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
4687
4688 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
4689 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
4690 (copy_decl_for_dup_finish): Ditto.
4691
4692 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
4693
4694 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
4695
4696 PR target/53383
4697 * config/i386/i386.c (ix86_option_override_internal): Always
4698 allow -mpreferred-stack-boundary=3 for 64-bit targets.
4699
4700 2017-03-28 Bin Cheng <bin.cheng@arm.com>
4701
4702 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
4703
4704 2017-03-28 Bin Cheng <bin.cheng@arm.com>
4705
4706 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
4707 mark new edge's irreducible flag accordign to it.
4708 (vect_do_peeling): Check loop preheader edge's irreducible flag
4709 and pass it to function slpeel_add_loop_guard.
4710
4711 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
4712
4713 PR tree-optimization/80218
4714 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
4715 Update block frequencies and counts.
4716
4717 2017-03-28 Richard Biener <rguenther@suse.de>
4718
4719 PR tree-optimization/78644
4720 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
4721 of a simplification result we may not use it at all.
4722
4723 2017-03-28 Richard Biener <rguenther@suse.de>
4724
4725 PR ipa/80205
4726 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
4727 without arguments, generate default definition of a SSA name.
4728
4729 2017-03-28 Richard Biener <rguenther@suse.de>
4730
4731 PR middle-end/80222
4732 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
4733 TYPE_REF_CAN_ALIAS_ALL references.
4734 * fold-const.c (fold_indirect_ref_1): Likewise.
4735
4736 2017-03-28 Martin Liska <mliska@suse.cz>
4737
4738 PR ipa/80104
4739 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
4740 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
4741
4742 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
4743 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4744
4745 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
4746 (EXTRA_SPECS): Define.
4747 (SUBTARGET_EXTRA_SPECS): Likewise.
4748 (SUBTARGET_CPP_SPEC): Likewise.
4749 * config/arc/elf.h (EXTRA_SPECS): Renamed to
4750 SUBTARGET_EXTRA_SPECS.
4751 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
4752
4753 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
4754
4755 * config/arc/simdext.md (vst64_insn): Update pattern.
4756 (vld32wh_insn): Likewise.
4757 (vld32wl_insn): Likewise.
4758 (vld64_insn): Likewise.
4759 (vld32_insn): Likewise.
4760
4761 2017-03-28 Marek Polacek <polacek@redhat.com>
4762
4763 PR sanitizer/80067
4764 * fold-const.c (fold_comparison): Use protected_set_expr_location
4765 instead of SET_EXPR_LOCATION.
4766
4767 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
4768
4769 * tree.c (add_expr): Avoid name lookup warning.
4770
4771 2017-03-27 Jeff Law <law@redhat.com>
4772
4773 PR tree-optimization/80216
4774 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
4775 function name. Limit recursion depth.
4776 (record_temporary_equivalences): Corresponding changes.
4777
4778 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
4779
4780 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
4781 covered first.
4782
4783 2017-03-27 Jakub Jelinek <jakub@redhat.com>
4784
4785 PR target/80102
4786 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
4787 notes.
4788 * cfgcleanup.c (reg_note_cfa_p): New array.
4789 (insns_have_identical_cfa_notes): New function.
4790 (old_insns_match_p): Don't cross-jump in between /f
4791 and non-/f instructions. If both i1 and i2 are frame related,
4792 verify all CFA notes, their order and content.
4793
4794 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
4795
4796 PR target/78543
4797 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
4798 HImode and SImode with zero extend to DImode to one insn.
4799 (bswap<mode>2_extenddi): Likewise.
4800 (bswapsi2_extenddi): Likewise.
4801 (bswaphi2_extendsi): Likewise.
4802 (bswaphi2): Combine bswap HImode and SImode into one insn.
4803 Separate memory insns from swapping register.
4804 (bswapsi2): Likewise.
4805 (bswap<mode>2): Likewise.
4806 (bswaphi2_internal): Delete, no longer used.
4807 (bswapsi2_internal): Likewise.
4808 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
4809 store, and gpr<-gpr swap insns.
4810 (bswap<mode>2_store): Likewise.
4811 (bswaphi2_reg): Register only splitter, combine with the splitter.
4812 (bswaphi2 splitter): Likewise.
4813 (bswapsi2_reg): Likewise.
4814 (bswapsi2 splitter): Likewise.
4815 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
4816 the insns into load, store, and register/register insns.
4817 (bswapdi2_ldbrx): Likewise.
4818 (bswapdi2_load): Likewise.
4819 (bswapdi2_store): Likewise.
4820 (bswapdi2_reg): Likewise.
4821
4822 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
4823
4824 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
4825 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
4826
4827 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
4828
4829 PR target/80103
4830 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
4831 add comments.
4832 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4833 special handling for target option conflicts between dform
4834 options (-mpower9-dform, -mpower9-dform-vector,
4835 -mpower9-dform-scalar) and -mno-direct-move.
4836
4837 2017-03-27 Richard Biener <rguenther@suse.de>
4838
4839 PR tree-optimization/80181
4840 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
4841
4842 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
4843
4844 * config/arc/predicates.md (move_double_src_operand): Replace the
4845 call to move_double_src_operand with a call to address_operand.
4846
4847 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
4848
4849 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
4850 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
4851 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
4852
4853 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
4854
4855 * config/arc/predicates.md (long_immediate_loadstore_operand):
4856 Consider scaled addresses cases.
4857
4858 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
4859
4860 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
4861 restored when in interrupt.
4862 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
4863 doesn't have delay slot.
4864
4865 2017-03-27 Richard Biener <rguenther@suse.de>
4866
4867 PR ipa/79776
4868 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
4869 inlined thunk clones.
4870
4871 2017-03-27 Jakub Jelinek <jakub@redhat.com>
4872
4873 PR sanitizer/80168
4874 * asan.c (instrument_derefs): Copy over last operand from
4875 original COMPONENT_REF to the new COMPONENT_REF with
4876 DECL_BIT_FIELD_REPRESENTATIVE.
4877 * ubsan.c (instrument_object_size): Likewise.
4878
4879 2017-03-27 Richard Biener <rguenther@suse.de>
4880
4881 PR tree-optimization/80170
4882 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
4883 sure DR/SCEV didnt fold in constants we do not see when looking
4884 at the reference base alignment.
4885
4886 2017-03-27 Richard Biener <rguenther@suse.de>
4887
4888 PR middle-end/80171
4889 * gimple-fold.c (fold_ctor_reference): Properly guard against
4890 NULL return value from canonicalize_constructor_val.
4891
4892 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
4893
4894 PR target/80180
4895 * config/i386/i386.c (ix86_expand_builtin)
4896 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
4897 flags reg setting and flags reg using instructions.
4898 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
4899 clobbering instructions to zero extend op2.
4900
4901 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
4902
4903 * doc/install.texi (Configuration) <--with-aix-soname>:
4904 Update link to AIX ld.
4905
4906 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
4907
4908 PR rtl-optimization/80160
4909 PR rtl-optimization/80159
4910 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
4911 reg_alternate_class into account.
4912
4913 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
4914
4915 PR target/80148
4916 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
4917 to consider in curr_insn_transform.
4918
4919 2017-03-24 Jakub Jelinek <jakub@redhat.com>
4920
4921 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
4922 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
4923 and emit_mode_inner.
4924
4925 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4926
4927 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
4928 argument to the overloaded builtin variants. Use the new flag to
4929 deprecate certain builtin variants.
4930 * config/s390/s390-builtin-types.def: Add new builtin types.
4931 * config/s390/s390-builtins.h: Support new flags field for
4932 overloaded builtins.
4933 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
4934 (s390_macro_to_expand): Enable vector float data type.
4935 (s390_cpu_cpp_builtins_internal): Indicate support of the new
4936 builtins by incrementing the __VEC__ version number.
4937 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
4938 vec_xst.
4939 (s390_resolve_overloaded_builtin): Emit error messages depending
4940 on the builtin flags.
4941 * config/s390/s390.c (s390_expand_builtin): Support additional
4942 flags argument. Change error message to match the messages
4943 emitted in s390-c.c.
4944 * config/s390/s390.md: New UNSPEC_* constants.
4945 (op_type): Add new instruction types.
4946 * config/s390/vecintrin.h: Add new builtins and test data class
4947 constants.
4948 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
4949 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
4950 (VEC_INEXACT, VEC_NOINEXACT): New constants.
4951 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
4952 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
4953 ("vec_mergel<mode>"): V_HW -> VEC_HW.
4954
4955 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
4956 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
4957 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
4958 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
4959
4960 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
4961 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
4962 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
4963 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
4964
4965 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
4966 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
4967 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
4968 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
4969 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
4970 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
4971 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
4972
4973 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
4974 ("vec_scatter_element<V_HW_4:mode>_DI")
4975 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
4976 ("vec_fpint<mode>", "vflls")
4977 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
4978 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
4979 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
4980 ("*vec_cmphe<mode>_cc"): ... these.
4981
4982 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
4983 mode constant instead of magic value.
4984
4985 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4986
4987 * config/s390/s390.c (s390_expand_vec_compare): Support other
4988 vector floating point modes than just V2DF.
4989 (s390_expand_vcond): Likewise.
4990 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
4991 (s390_cannot_change_mode_class): Prevent mode changes between TF
4992 and V1TF in vector registers.
4993 * config/s390/s390.md (DF, SF): New mode attributes.
4994 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
4995 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
4996 SFmode support for VRs.
4997 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
4998 vector fp modes.
4999 (VFT, VF_HW): New mode iterators.
5000 (vw, sdx): New mode attributes.
5001 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
5002 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
5003 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
5004 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
5005 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
5006 also the new vector floating point modes. Renaming to ...
5007
5008 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
5009 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
5010 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
5011 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
5012 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
5013 ("vec_unordered<mode>"): ... these.
5014
5015 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
5016 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
5017 ("*vec_extendv2df"): New insn definitions.
5018
5019 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5020
5021 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
5022 ("mulditi3_2", "*muldi3_sign"): New patterns.
5023 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
5024 rename the pattern definition.
5025
5026 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5027
5028 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
5029 expander.
5030 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
5031
5032 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5033
5034 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
5035 instruction if possible.
5036 * config/s390/vector.md (vec_halfnumelts): New mode
5037 attribute.
5038 ("*vec_vllezlf<mode>"): New pattern.
5039
5040 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5041
5042 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
5043 ("popcountv4si2", "popcountv2di2"): Rename to ...
5044 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
5045 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
5046 condition.
5047 ("popcount<mode>2_vxe"): New pattern.
5048
5049 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5050
5051 * common/config/s390/s390-common.c (processor_flags_table): Add
5052 arch12.
5053 * config.gcc: Add arch12.
5054 * config/s390/driver-native.c (s390_host_detect_local_cpu):
5055 Default to arch12 for unknown CPU model numbers.
5056 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
5057 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
5058 PROCESSOR_max sanity check.
5059 * config/s390/s390-opts.h (enum processor_type): Add
5060 PROCESSOR_ARCH12.
5061 * config/s390/s390.c (processor_table): Add arch12.
5062 (s390_expand_builtin): Add check for B_VXE flag.
5063 (s390_issue_rate): Add PROCESSOR_ARCH12.
5064 (s390_get_sched_attrmask): Likewise.
5065 (s390_get_unit_mask): Likewise.
5066 (s390_sched_score): Enable z13 scheduling for arch12.
5067 (s390_sched_reorder): Likewise.
5068 (s390_sched_variable_issue): Likewise.
5069 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
5070 PF_VXE.
5071 (s390_tune_attr): Use z13 scheduling also for arch12.
5072 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
5073 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
5074 (TARGET_VXE_P): New macros.
5075 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
5076 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
5077 * config/s390/s390.opt: Add arch12 as processor_type.
5078
5079 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5080
5081 * config/s390/s390.md
5082 ("fixuns_truncdddi2", "fixuns_trunctddi2")
5083 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
5084 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
5085
5086 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
5087 Rename expanders to ...
5088
5089 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
5090 ("fixuns_truncdddi2_emu"): ... these.
5091
5092 ("fixuns_trunc<mode>si2_emu"): New expander.
5093
5094 ("*fixuns_truncdfdi2_z13"): Rename to ...
5095 ("*fixuns_truncdfdi2_vx"): ... this.
5096
5097 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5098
5099 * config/s390/2964.md: Remove the single element vector compare
5100 instructions which are no longer used.
5101 * config/s390/s390.c (s390_select_ccmode): Remove handling of
5102 vector CCmodes.
5103 (s390_canonicalize_comparison): Remove handling of DFmode
5104 compares.
5105 (s390_expand_vec_compare_scalar): Remove function.
5106 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
5107 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
5108 pattern.
5109 ("*cmp<mode>_ccs"): Add wfcdb instruction.
5110
5111 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5112
5113 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
5114 FP zero.
5115 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
5116 will anyway by matched by mov<mode>_64dfp.
5117
5118 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5119
5120 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
5121 vlef/vstef. Add missing operand to vleif.
5122
5123 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5124
5125 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
5126 pair for all vector types with 64 bit elements.
5127 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
5128 * config/s390/vector.md (V_HW_64): ... here.
5129 (V_128_NOSINGLE): New mode iterator.
5130 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
5131 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
5132 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
5133 ("*vec_load_pairv2di"): Change to ...
5134 ("*vec_load_pair<mode>"): ... this one.
5135
5136 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5137
5138 * config/s390/constraints.md: Add comments.
5139 (jKK): Reject element sizes > 8 bytes.
5140 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
5141 s_operands.
5142 * config/s390/s390.md: Add the s_operand checks formerly in
5143 s390_split_ok_p to various splitters where they are still
5144 required.
5145 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
5146 for 128 bit vectors. Plus two splitters.
5147
5148 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5149
5150 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
5151 the file.
5152
5153 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5154
5155 PR target/79893
5156 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
5157 error if the boundary argument is not constant.
5158
5159 2017-03-24 Jakub Jelinek <jakub@redhat.com>
5160
5161 PR rtl-optimization/80112
5162 * loop-doloop.c (doloop_condition_get): Don't check condition
5163 if cmp isn't SET with IF_THEN_ELSE src.
5164
5165 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5166
5167 PR tree-optimization/80158
5168 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
5169 replacing a candidate statement, also replace it for the
5170 candidate's alternate interpretation.
5171 (replace_rhs_if_not_dup): Likewise.
5172 (replace_one_candidate): Likewise.
5173
5174 2017-03-24 Richard Biener <rguenther@suse.de>
5175
5176 PR tree-optimization/80167
5177 * graphite-isl-ast-to-gimple.c
5178 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
5179 properly.
5180 (translate_isl_ast_to_gimple::get_rename): Likewise.
5181
5182 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
5183
5184 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
5185 handling of certain combinations of target options, including the
5186 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
5187 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
5188
5189 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5190
5191 PR target/71436
5192 * config/arm/arm.md (*load_multiple): Add reload_completed to
5193 matching condition.
5194
5195 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5196 Richard Biener <rguenth@suse.de>
5197
5198 PR tree-optimization/79908
5199 PR tree-optimization/80136
5200 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
5201 been cast away, gimplify_and_add suffices.
5202
5203 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
5204
5205 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
5206
5207 2017-03-23 Richard Biener <rguenther@suse.de>
5208
5209 PR tree-optimization/80032
5210 * gimplify.c (gimple_push_cleanup): Forced unconditional
5211 cleanups still have to go to the conditional_cleanups
5212 sequence.
5213
5214 2017-03-22 Jakub Jelinek <jakub@redhat.com>
5215
5216 PR tree-optimization/80072
5217 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
5218 to unsigned int.
5219 (next_operand_entry_id): Change type to unsigned int.
5220 (sort_by_operand_rank): Make sure to return the right return value
5221 even if unsigned fields are bigger than INT_MAX.
5222 (struct oecount): Change cnt and id type to unsigned int.
5223 (oecount_hasher::equal): Formatting fix.
5224 (oecount_cmp): Make sure to return the right return value
5225 even if unsigned fields are bigger than INT_MAX.
5226 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
5227
5228 PR c++/80129
5229 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
5230 TREE_READONLY on result if writing it more than once.
5231
5232 PR sanitizer/80110
5233 * doc/invoke.texi (-fsanitize=thread): Document that with
5234 -fnon-call-exceptions atomics are not able to throw
5235 exceptions.
5236
5237 PR sanitizer/80110
5238 * tsan.c: Include tree-eh.h.
5239 (instrument_builtin_call): Call maybe_clean_eh_stmt or
5240 maybe_clean_or_replace_eh_stmt where needed.
5241 (instrument_memory_accesses): Add cfg_changed argument.
5242 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
5243 if it returned true.
5244 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
5245
5246 PR rtl-optimization/63191
5247 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
5248 wrapper function, moved the whole old content into ...
5249 (ix86_delegitimize_address_1): ... this. New inline function.
5250 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
5251 true as last argument instead of ix86_delegitimize_address.
5252
5253 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
5254
5255 * config/aarch64/aarch64.c (generic_branch_cost): Copy
5256 cortexa57_branch_cost.
5257
5258 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
5259
5260 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
5261
5262 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5263
5264 PR target/80123
5265 * doc/md.texi (Constraints): Document wA constraint.
5266 * config/rs6000/constraints.md (wA): New.
5267 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
5268 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
5269 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
5270 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
5271
5272 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
5273
5274 PR c++/80029
5275 * gimplify.c (is_oacc_declared): New function.
5276 (oacc_default_clause): Use it to set default flags for acc declared
5277 variables inside parallel regions.
5278 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
5279 declared variables.
5280 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
5281 declare attribute to any decl as necessary.
5282
5283 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
5284
5285 PR target/80082
5286 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
5287 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
5288 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
5289 (arm_arch_lpae): This.
5290 * config/arm/arm.c (arm_arch7ve): Rename into ...
5291 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
5292 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
5293 arm_arch_lpae.
5294
5295 2017-03-22 Martin Liska <mliska@suse.cz>
5296
5297 PR target/79906
5298 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
5299 error message instead of an ICE.
5300
5301 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5302
5303 * doc/extend.texi (6.11 Additional Floating Types): Revise.
5304
5305 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
5306
5307 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
5308 comments.
5309 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5310 comments.
5311
5312 2017-03-21 Martin Sebor <msebor@redhat.com>
5313
5314 * doc/extend.texi: Use "cannot" instead of "can't."
5315 * doc/hostconfig.texi: Same.
5316 * doc/install.texi: Same.
5317 * doc/invoke.texi: Same.
5318 * doc/loop.texi: Same.
5319 * doc/md.texi: Same.
5320 * doc/objc.texi: Same.
5321 * doc/rtl.texi: Same.
5322 * doc/tm.texi: Same.
5323 * doc/tm.texi.in: Same.
5324 * doc/trouble.texi: Same.
5325
5326 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
5327
5328 PR debug/63238
5329 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
5330 (collect_checksum_attributes): Set it.
5331 (die_checksum_ordered): Use it.
5332
5333 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5334
5335 PR tree-optimization/79908
5336 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
5337 change: For a VA_ARG whose LHS has been cast away, use
5338 force_gimple_operand to construct the side effects.
5339
5340 2017-03-21 David Malcolm <dmalcolm@redhat.com>
5341
5342 PR translation/80001
5343 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
5344 more amenable to translation.
5345 (oacc_loop_auto_partitions): Likewise.
5346
5347 2017-03-21 Marek Polacek <polacek@redhat.com>
5348 Martin Sebor <msebor@redhat.com>
5349
5350 PR tree-optimization/80109
5351 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
5352 on INTEGRAL_TYPE_P.
5353
5354 2017-03-21 Jakub Jelinek <jakub@redhat.com>
5355 Segher Boessenkool <segher@kernel.crashing.org>
5356
5357 PR target/80125
5358 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
5359 check reg_used_between_p between insn and one of succ or succ2
5360 depending on if succ is artificial insn not inserted into insn
5361 stream.
5362
5363 2017-03-21 Martin Liska <mliska@suse.cz>
5364
5365 PR gcov-profile/80081
5366 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
5367 * doc/gcc.texi: Include gcov-dump stuff.
5368 * doc/gcov-dump.texi: New file.
5369
5370 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
5371
5372 PR rtl-optimization/79150
5373 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
5374 conditional jump, if the jump is the last insn of the loop.
5375
5376 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5377 Richard Biener <rguenth@suse.de>
5378
5379 PR tree-optimization/79908
5380 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
5381 been cast away, use force_gimple_operand to construct the side
5382 effects.
5383
5384 2017-03-21 Martin Liska <mliska@suse.cz>
5385
5386 PR libfortran/79956
5387 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
5388 to NULL.
5389
5390 2017-03-21 Brad Spengler <spender@grsecurity.net>
5391
5392 PR plugins/80094
5393 * plugin.c (htab_hash_plugin): New function.
5394 (add_new_plugin): Use it and adjust.
5395 (parse_plugin_arg_opt): Adjust.
5396 (init_one_plugin): Likewise.
5397
5398 2017-03-21 Richard Biener <rguenther@suse.de>
5399
5400 PR tree-optimization/80032
5401 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
5402 if set force the cleanup to happen unconditionally.
5403 (gimplify_target_expr): Push inserted clobbers with force_uncond
5404 to avoid them being removed by control-dependent DCE.
5405
5406 2017-03-21 Richard Biener <rguenther@suse.de>
5407
5408 PR tree-optimization/80122
5409 * tree-inline.c (copy_bb): Do not expans va-arg packs or
5410 va_arg_pack_len when the inlined call stmt requires pack
5411 expansion itself.
5412 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
5413
5414 2017-03-21 Jakub Jelinek <jakub@redhat.com>
5415
5416 PR sanitizer/78158
5417 * tsan.c (instrument_builtin_call): If the memory model argument
5418 is not a constant, assume it is valid.
5419
5420 PR c/67338
5421 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
5422 avoid UB.
5423
5424 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
5425
5426 PR rtl-optimization/79910
5427 * combine.c (can_combine_p): Do not allow combining an I0 or I1
5428 if its dest is used by an insn before I2 (other than the combined
5429 insns themselves, which are properly handled already).
5430
5431 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
5432
5433 Revert:
5434 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
5435
5436 * combine.c (record_used_regs): New static function.
5437 (try_combine): Handle situations where there is an additional
5438 instruction between I2 and I3 which needs to have a LOG_LINK
5439 updated.
5440
5441 Revert:
5442 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
5443
5444 * combine.c (try_combine): Delete redundant i1 test. Call
5445 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
5446
5447 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5448
5449 PR target/80083
5450 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
5451 alternatives 13/14.
5452
5453 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5454
5455 PR tree-optimization/80054
5456 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
5457 the optimization if a PHI or any of its arguments is not dominated
5458 by the candidate's basis. Use gphi* rather than gimple* as
5459 appropriate.
5460 (replace_profitable_candidates): Clean up a gimple* variable that
5461 should be a gphi* variable.
5462
5463 2017-03-20 Martin Sebor <msebor@redhat.com>
5464
5465 PR c++/52477
5466 * doc/extend.texi (attribute constructor): Document present limitation.
5467
5468 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
5469
5470 PR target/79963
5471 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
5472 __POWER9_VECTOR__ #ifdef control, change template definition to
5473 use Power9-specific built-in function.
5474 (vec_any_eq): Likewise.
5475 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
5476 to control outcomes from this test.
5477 (vector_ae_<mode>p): For VEC_F modes, likewise.
5478
5479 2017-03-20 Ian Lance Taylor <iant@google.com>
5480
5481 * config/i386/i386.c (ix86_function_regparm): Save an extra
5482 register for -fsplit-stack with DECL_STATIC_CHAIN.
5483
5484 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
5485
5486 PR target/79912
5487 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
5488 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
5489
5490 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
5491
5492 * config/riscv/riscv.c (riscv_print_operand): Use "fence
5493 iorw,ow".
5494 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
5495 iorw,iorw".
5496
5497 2017-03-20 Marek Polacek <polacek@redhat.com>
5498
5499 PR sanitizer/80063
5500 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
5501
5502 2017-03-20 Richard Biener <rguenther@suse.de>
5503
5504 PR tree-optimization/80113
5505 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
5506 allocate extra SSA name for PHI def.
5507 (add_close_phis_to_outer_loops): Likewise.
5508 (add_close_phis_to_merge_points): Likewise.
5509 (copy_loop_close_phi_args): Likewise.
5510 (copy_cond_phi_nodes): Likewise.
5511
5512 2017-03-20 Martin Liska <mliska@suse.cz>
5513
5514 PR middle-end/79753
5515 * tree-chkp.c (chkp_build_returned_bound): Do not build
5516 returned bounds for a LHS that's not a BOUNDED_P type.
5517
5518 2017-03-20 Martin Liska <mliska@suse.cz>
5519
5520 PR target/79769
5521 PR target/79770
5522 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
5523 COMPLEX_CST and VECTOR_CST.
5524
5525 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5526
5527 PR target/78857
5528 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
5529 target operand. A new splitter adds the clobber statement in case
5530 the target operand is dead anyway.
5531
5532 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
5533
5534 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
5535 to age-old versions of binutils and glibc.
5536
5537 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
5538
5539 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
5540
5541 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
5542
5543 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
5544
5545 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
5546
5547 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
5548 requirement for binutils 2.13.
5549
5550 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
5551
5552 * combine.c (try_combine): Delete redundant i1 test. Call
5553 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
5554
5555 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
5556
5557 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
5558 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
5559 contents.
5560 <riscv64-*-elf>: Re-arrange section
5561 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
5562 <riscv32-*-linux>: Likewise.
5563 <riscv64-*-elf>: Likewise
5564 <riscv64-*-linux>: Likewise.
5565
5566 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
5567
5568 PR target/80052
5569 * aarch64.opt(verbose-cost-dump): Fix typo.
5570
5571 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
5572
5573 PR target/79951
5574 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
5575 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
5576
5577 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
5578
5579 * reload.c (find_reloads): When reloading a nonoffsettable address,
5580 use RELOAD_OTHER for it and its address reloads.
5581
5582 PR rtl-optimization/79910
5583 * combine.c (record_used_regs): New static function.
5584 (try_combine): Handle situations where there is an additional
5585 instruction between I2 and I3 which needs to have a LOG_LINK
5586 updated.
5587
5588 2017-03-17 Jeff Law <law@redhat.com>
5589
5590 PR tree-optimization/71437
5591 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
5592 conditional in the hash table first.
5593 (vrp_dom_walker::before_dom_children): Extract condition from
5594 ASSERT_EXPR. Record condition, its inverion and any implied
5595 conditions as well.
5596
5597 2017-03-17 Marek Polacek <polacek@redhat.com>
5598 Markus Trippelsdorf <markus@trippelsdorf.de>
5599
5600 PR tree-optimization/80079
5601 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
5602 m_stores_head.
5603
5604 2017-03-17 Richard Biener <rguenther@suse.de>
5605
5606 PR middle-end/80075
5607 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
5608 Properly verify the LHS before the RHS possibly claims to be
5609 handled.
5610 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
5611 do not throw.
5612
5613 2017-03-17 Martin Jambor <mjambor@suse.cz>
5614
5615 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
5616 (List of -O2 options): Likewise.
5617 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
5618 (-fipa-vrp) New.
5619
5620 2017-03-17 Tom de Vries <tom@codesourcery.com>
5621
5622 * gcov-dump.c (print_usage): Print bug_report_url.
5623
5624 2017-03-17 Richard Biener <rguenther@suse.de>
5625
5626 PR middle-end/80050
5627 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
5628 (parser::peek): Likewise.
5629
5630 2017-03-17 Richard Biener <rguenther@suse.de>
5631
5632 PR tree-optimization/80048
5633 * sese.c (free_sese_info): Properly release rename_map and
5634 copied_bb_map elements.
5635
5636 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
5637
5638 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
5639 Add linked-list forward and backlinks. Insert on
5640 construction, remove on destruction.
5641 (class pass_store_merging): Add m_stores_head field.
5642 (pass_store_merging::terminate_and_process_all_chains):
5643 Iterate over m_stores_head list.
5644 (pass_store_merging::terminate_all_aliasing_chains):
5645 Likewise.
5646 (pass_store_merging::execute): Check for debug stmts first.
5647 Push new chains onto the m_stores_head stack.
5648
5649 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
5650
5651 PR target/71294
5652 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
5653 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
5654 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
5655
5656 2017-03-16 Jeff Law <law@redhat.com>
5657
5658 PR tree-optimization/71437
5659 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
5660 member function. Implementation moved into after_dom_children
5661 member function and into the threader's thread_outgoing_edges
5662 function.
5663 (dom_opt_dom_walker::after_dom_children): Simplify by moving
5664 some code into new thread_outgoing_edges.
5665 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
5666 definition. Simplify marker handling (do it here). Assume we always
5667 have the available expression and the const/copies tables.
5668 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
5669 and tree-vrp.c
5670 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
5671 * tree-vrp.c (equiv_stack): No longer file scoped.
5672 (vrp_dom_walker): New class.
5673 (vrp_dom_walker::before_dom_children): New member function.
5674 (vrp_dom_walker::after_dom_children): Likewise.
5675 (identify_jump_threads): Setup domwalker. Use it rather than
5676 walking edges in a random order by hand. Simplify setup/finalization.
5677 (finalize_jump_threads): Remove.
5678 (vrp_finalize): Do not call identify_jump_threads here.
5679 (execute_vrp): Do it here instead and call thread_through_all_blocks
5680 here too.
5681
5682 PR tree-optimization/71437
5683 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
5684 callers changed.
5685 (simplify_stmt_for_jump_threading): Add basic_block argument. All
5686 callers changed.
5687 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
5688 (dom_opt_dom_walker::thread_across_edge): Remove
5689 handle_dominating_asserts argument. All callers changed.
5690 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
5691 changes. Remove calls to lhs_of_dominating_assert. Other
5692 uses of handle_dominating_asserts turn into unconditional code
5693 (simplify_control_stmt_condition_1): Likewise.
5694 (simplify_control_stmt_condition): Likewise.
5695 (thread_through_normal_block, thread_across_edge): Likewise.
5696 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
5697 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
5698 object if it is not an SSA_NAME.
5699 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
5700 before calling into the VRP specific simplifiers.
5701 (identify_jump_threads): Remove handle_dominating_asserts
5702 argument.
5703
5704 2017-03-16 Jakub Jelinek <jakub@redhat.com>
5705
5706 PR fortran/79886
5707 * tree-diagnostic.c (default_tree_printer): No longer static.
5708 * tree-diagnostic.h (default_tree_printer): New prototype.
5709
5710 2017-03-16 Tamar Christina <tamar.christina@arm.com>
5711
5712 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
5713 Change ins into fmov.
5714
5715 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5716
5717 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
5718 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
5719 Use h_con constraint for operand 1.
5720 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
5721 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
5722
5723 2017-03-15 Jeff Law <law@redhat.com>
5724
5725 PR tree-optimization/71437
5726 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
5727 (record_temporary_equivalences): Use it.
5728
5729 PR tree-optimization/71437
5730 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
5731 tree-ssa-scopedtables.
5732 (lookup_avail_expr, build_and_record_new_cond): Likewise.
5733 (record_conditions, record_cond, vuse_eq): Likewise.
5734 (record_edge_info): Adjust to API tweak of record_conditions.
5735 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
5736 (record_temporary_equivalences, optimize_stmt): Likewise.
5737 (eliminate_redundant_computations): Likewise.
5738 (record_equivalences_from_stmt): Likewise.
5739 * tree-ssa-scopedtables.c: Include options.h and params.h.
5740 (vuse_eq): New function, moved from tree-ssa-dom.c
5741 (build_and_record_new_cond): Likewise.
5742 (record_conditions): Likewise. Accept vector of conditions rather
5743 than edge_equivalence structure for first argument.
5744 for the first argument.
5745 (avail_exprs_stack::lookup_avail_expr): New member function, moved
5746 from tree-ssa-dom.c.
5747 (avail_exprs_stack::record_cond): Likewise.
5748 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
5749 from tree-ssa-dom.c.
5750 (avail_exprs_stack): Add new member functions lookup_avail_expr
5751 and record_cond.
5752 (record_conditions): Declare.
5753
5754 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
5755
5756 PR target/80017
5757 * lra-constraints.c (process_alt_operands): Increase reject for
5758 reloading an input/output operand.
5759
5760 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
5761
5762 PR target/79038
5763 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
5764 insns to convert from signed/unsigned char/short to IEEE 128-bit
5765 floating point.
5766 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
5767
5768 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
5769
5770 PR target/80019
5771 * config/i386/i386.c (ix86_vector_duplicate_value): Create
5772 subreg of inner mode for values already in registers.
5773
5774 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
5775
5776 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
5777 iteration reg is used after the loop.
5778
5779 2017-03-14 Martin Sebor <msebor@redhat.com>
5780
5781 PR tree-optimization/79800
5782 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
5783 precision in negative-positive range.
5784 (format_floating): Call non-const overload with adjusted precision.
5785
5786 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5787
5788 PR target/79947
5789 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
5790 -mpowerpc-gfxopt.
5791
5792 2017-03-14 Martin Sebor <msebor@redhat.com>
5793
5794 PR middle-end/80020
5795 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
5796 * builtins.def (aligned_alloc): Use it.
5797
5798 PR c/79936
5799 * Makefile.in (GTFILES): Add calls.c.
5800 * calls.c: Include "gt-calls.h".
5801
5802 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
5803
5804 PR rtl-optimization/79728
5805 * regs.h (struct target_regs): New field
5806 x_contains_allocatable_regs_of_mode.
5807 (contains_allocatable_regs_of_mode): New macro.
5808 * reginfo.c (init_reg_sets_1): Initialize it, and change
5809 contains_reg_of_mode so it includes global regs as well.
5810 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
5811 rather than contains_regs_of_mode.
5812
5813 2017-03-14 Martin Liska <mliska@suse.cz>
5814
5815 * doc/invoke.texi: Document options that can't be combined with
5816 -fcheck-pointer-bounds.
5817
5818 2017-03-14 Martin Liska <mliska@suse.cz>
5819
5820 PR middle-end/79831
5821 * doc/invoke.texi (-Wchkp): Document the option.
5822
5823 2017-03-14 Martin Liska <mliska@suse.cz>
5824
5825 * Makefile.in: Install gcov-dump.
5826
5827 2017-03-14 Martin Liska <mliska@suse.cz>
5828
5829 * multiple_target.c (expand_target_clones): Bail out for
5830 an invalid attribute.
5831
5832 2017-03-14 Richard Biener <rguenther@suse.de>
5833
5834 * alias.c (struct alias_set_entry): Pack properly.
5835 * cfgloop.h (struct loop): Likewise.
5836 * cse.c (struct set): Likewise.
5837 * ipa-utils.c (struct searchc_env): Likewise.
5838 * loop-invariant.c (struct invariant): Likewise.
5839 * lra-remat.c (struct cand): Likewise.
5840 * recog.c (struct change_t): Likewise.
5841 * rtl.h (struct address_info): Likewise.
5842 * symbol-summary.h (function_summary): Likewise.
5843 * tree-loop-distribution.c (struct partition): Likewise.
5844 * tree-object-size.c (struct object_size_info): Likewise.
5845 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
5846 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
5847 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
5848 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
5849 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
5850 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
5851 (struct _stmt_vec_info): Likewise.
5852
5853 2017-03-14 Martin Liska <mliska@suse.cz>
5854
5855 PR target/79892
5856 * multiple_target.c (create_dispatcher_calls): Check that
5857 a target can create a function dispatcher.
5858
5859 2017-03-14 Martin Liska <mliska@suse.cz>
5860
5861 PR lto/66295
5862 * multiple_target.c (expand_target_clones): Drop local.local
5863 flag for default implementation.
5864
5865 2017-03-14 Richard Biener <rguenther@suse.de>
5866
5867 PR tree-optimization/80030
5868 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
5869
5870 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
5871
5872 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
5873 gcc_fallthrough() instead of __attribute__((fallthrough));
5874
5875 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
5876
5877 * doc/gcc.texi: Remove "up" link to (DIR).
5878 * doc/gccint.texi: Ditto.
5879
5880 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
5881
5882 * doc/install.texi (Specific) <avr>: Remove reference to
5883 binutils 2.13.
5884
5885 2017-03-13 Jeff Law <law@redhat.com>
5886
5887 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
5888 attribute rather than comments.
5889
5890 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
5891 match_scratch operand is highest.
5892
5893 2017-03-13 Martin Liska <mliska@suse.cz>
5894
5895 PR middle-end/78339
5896 * ipa-pure-const.c (warn_function_noreturn): If the declarations
5897 is a CHKP clone, use original declaration.
5898
5899 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
5900
5901 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
5902 (arc_conditional_register_usage): Use a different allocation order
5903 when optimizing for size.
5904 * common/config/arc/arc-common.c (arc_option_optimization_table):
5905 Section anchors default on when optimizing for size.
5906
5907 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
5908
5909 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
5910
5911 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
5912
5913 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
5914 * config/arc/arc.md (cpu_facility): Add cd variant.
5915 (*movqi_insn): Add code density variant.
5916 (*movhi_insn): Likewise.
5917 (*movqi_insn): Likewise.
5918 (*addsi3_mixed): Likewise.
5919 (subsi3_insn): Likewise.
5920
5921 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
5922
5923 * config/arc/arc.md (movsi_cond_exec): Update constraint.
5924
5925 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
5926
5927 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
5928 expressions with MINUS and UNARY ops.
5929
5930 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5931
5932 PR target/79911
5933 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
5934 Rename to...
5935 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
5936 between vec_select and vector argument.
5937 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
5938 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
5939 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
5940 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
5941 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
5942 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
5943
5944 2017-03-13 Richard Biener <rguenther@suse.de>
5945
5946 PR other/79991
5947 * params.def (vect-max-peeling-for-alignment): Fix typo.
5948
5949 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
5950
5951 * doc/install.texi (Specific) <mips-*-*>: Remove description of
5952 issue that only occurred with binutils below 2.18.
5953
5954 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
5955
5956 * doc/install.texi (Specific) <cris-axis-elf>: No longer
5957 refer to binutils 2.11/2.12 minimum.
5958
5959 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
5960
5961 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
5962 ftp.kernel.org and simplify binutils requirement.
5963
5964 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
5965
5966 * doc/invoke.texi (Warning Options): Fix spelling of link-time
5967 optimization.
5968 (Optimize Options): Ditto. Also remove redundancy.
5969
5970 2017-03-10 David Malcolm <dmalcolm@redhat.com>
5971
5972 PR translation/79848
5973 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
5974 "%qs".
5975 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
5976 to G_ to avoid double translation.
5977
5978 2017-03-10 David Malcolm <dmalcolm@redhat.com>
5979
5980 PR translation/79923
5981 * auto-profile.c (get_combined_location): Convert leading
5982 character of diagnostics to lower case and remove trailing period.
5983 (read_profile): Likewise for various diagnostics.
5984 * config/arm/arm.c (arm_option_override): Remove trailing period
5985 from various diagnostics.
5986 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
5987 (msp430_expand_delay_cycles): Likewise.
5988
5989 2017-03-10 David Malcolm <dmalcolm@redhat.com>
5990
5991 PR target/79925
5992 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
5993 full command-line argument, rather than just "str".
5994 (aarch64_validate_march): Likewise.
5995 (aarch64_validate_mtune): Likewise.
5996
5997 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
5998
5999 PR rtl-optimization/78911
6000 * lra-assigns.c (must_not_spill_p): New function.
6001 (spill_for): Use it.
6002
6003 2017-03-10 Jakub Jelinek <jakub@redhat.com>
6004
6005 PR tree-optimization/79981
6006 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
6007 ATOMIC_COMPARE_EXCHANGE ifn result.
6008 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
6009 IFN_ATOMIC_COMPARE_EXCHANGE.
6010
6011 2017-03-10 David Malcolm <dmalcolm@redhat.com>
6012
6013 PR driver/79875
6014 * opts.c (parse_sanitizer_options): Add missing question mark to
6015 "did you mean" message.
6016
6017 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6018
6019 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
6020 built-in.
6021 (VMULEUH_UNS): Likewise.
6022 (VMULOUB_UNS): Likewise.
6023 (VMULOUH_UNS): Likewise.
6024 * config/rs6000/rs6000.c (builtin_function_type): Remove
6025 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
6026
6027 2017-03-10 David Malcolm <dmalcolm@redhat.com>
6028
6029 PR bootstrap/79952
6030 * read-rtl-function.c (function_reader::read_rtx_operand): Update
6031 x with result of extra_parsing_for_operand_code_0.
6032 (function_reader::extra_parsing_for_operand_code_0): Convert
6033 return type from void to rtx, returning x. When reading
6034 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
6035 larger size containing struct block_symbol.
6036
6037 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
6038
6039 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
6040 -mfloat128-hardware without -m64.
6041
6042 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
6043
6044 PR target/79941
6045 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
6046 entries to the case statement that marks unsigned arguments to
6047 overloaded functions.
6048
6049 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
6050
6051 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
6052 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
6053
6054 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
6055
6056 PR target/79907
6057 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
6058 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
6059
6060 2017-03-10 Martin Liska <mliska@suse.cz>
6061
6062 PR target/65705
6063 PR target/69804
6064 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
6065 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
6066 FIELD != NULL.
6067
6068 2017-03-10 Olivier Hainque <hainque@adacore.com>
6069
6070 * tree-switch-conversion (array_value_type): Start by resetting
6071 candidate type to it's main variant.
6072
6073 2017-03-10 Jakub Jelinek <jakub@redhat.com>
6074
6075 PR rtl-optimization/79909
6076 * combine.c (try_combine): Use simplify_replace_rtx on individual
6077 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
6078 of the whole CALL_INSN_FUNCTION_USAGE.
6079
6080 PR tree-optimization/79972
6081 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
6082 get_range_info on SSA_NAMEs. Formatting fixes.
6083
6084 2017-03-10 Richard Biener <rguenther@suse.de>
6085 Jakub Jelinek <jakub@redhat.com>
6086
6087 PR tree-optimization/77975
6088 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
6089 edge to be constant.
6090 (get_val_for): For constant x return it. Formatting fix.
6091 (loop_niter_by_eval): Avoid pointless looping if the next iteration
6092 would use the same bases as the current one.
6093
6094 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6095
6096 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
6097 instead of vec_select for V1TImode.
6098 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
6099 longer needed.
6100 (VSX_LE_128): Add V1TI to this mode iterator.
6101 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
6102 (*vsx_le_perm_store_<mode>): Likewise.
6103 (pre-reload splitter for VSX stores): Likewise.
6104 (post-reload splitter for VSX stores): Likewise.
6105 (*vsx_xxpermdi2_le_<mode>): Likewise.
6106 (*vsx_lxvd2x2_le_<mode>): Likewise.
6107 (*vsx_stxvd2x2_le_<mode>): Likewise.
6108
6109 2017-03-09 Michael Eager <eager@eagercon.com>
6110
6111 Correct failures with --enable-checking=yes,rtl.
6112
6113 * config/microblaze/microblaze.c (microblaze_expand_shift):
6114 Replace GET_CODE test with CONST_INT_P and INTVAL test with
6115 test for const0_rtx.
6116 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
6117 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
6118
6119 2017-03-09 Richard Biener <rguenther@suse.de>
6120
6121 PR tree-optimization/79977
6122 * graphite-scop-detection.c (scop_detection::merge_sese):
6123 Handle the case of extra exits to blocks dominating the entry.
6124
6125 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
6126
6127 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
6128 Document rdynamic.
6129
6130 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
6131
6132 PR rtl-optimization/79949
6133 * lra-constraints.c (process_alt_operands): Check memory when
6134 trying to predict a cycle. Print about the overall increase.
6135
6136 2017-03-09 Richard Biener <rguenther@suse.de>
6137
6138 PR middle-end/79971
6139 * gimple-expr.c (useless_type_conversion_p): Preserve
6140 TYPE_SATURATING for fixed-point types.
6141
6142 2017-03-09 Richard Biener <rguenther@suse.de>
6143
6144 PR ipa/79970
6145 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
6146 alignment of BLKmode params.
6147
6148 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6149
6150 PR target/79913
6151 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
6152 (VALL_NO_V2Q): Likewise.
6153 (VDQF_DF): Delete.
6154 * config/aarch64/aarch64-simd.md
6155 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
6156 iterator.
6157 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
6158 VALL_NO_V2Q mode iterator.
6159 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
6160
6161 2017-03-09 Martin Liska <mliska@suse.cz>
6162
6163 PR tree-optimization/79631
6164 * tree-chkp-opt.c (chkp_is_constant_addr): Call
6165 tree_int_cst_sign_bit just for INTEGER constants.
6166
6167 2017-03-09 Martin Liska <mliska@suse.cz>
6168
6169 PR target/65705
6170 PR target/69804
6171 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
6172 sanitizers.
6173
6174 2017-03-09 Marek Polacek <polacek@redhat.com>
6175
6176 PR c++/79672
6177 * tree.c (inchash::add_expr): Handle TREE_VEC.
6178
6179 2017-03-09 Martin Liska <mliska@suse.cz>
6180
6181 PR ipa/79764
6182 (chkp_narrow_size_and_offset): New function.
6183 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
6184 (void chkp_parse_bit_field_ref): New function.
6185 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
6186 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
6187
6188 2017-03-09 Martin Liska <mliska@suse.cz>
6189
6190 PR ipa/79761
6191 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
6192 (chkp_find_bounds_1): Remove gcc_unreachable.
6193
6194 2017-03-09 Jakub Jelinek <jakub@redhat.com>
6195
6196 PR sanitizer/79944
6197 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
6198 BUILT_IN_SYNC*, determine the access type from the size suffix and
6199 always build a MEM_REF with that type. Handle forgotten
6200 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
6201
6202 PR target/79932
6203 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
6204 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
6205 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
6206 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
6207 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
6208 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
6209 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
6210 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
6211 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
6212 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
6213 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
6214 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
6215 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
6216 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
6217 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
6218 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
6219 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
6220 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
6221 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
6222 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
6223 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
6224 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
6225 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
6226 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
6227 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
6228 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
6229 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
6230 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
6231 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
6232 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
6233 definitions outside of __OPTIMIZE__ guarded section.
6234
6235 PR target/79932
6236 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
6237 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
6238 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
6239 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
6240 guarded section.
6241
6242 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6243
6244 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
6245 ("vfenez<mode>"): Add missing constraints.
6246
6247 2017-03-08 Martin Sebor <msebor@redhat.com>
6248
6249 PR target/79928
6250 * config/nds32/nds32.c (nds32_option_override):
6251 Fix misspelled diagnostic.
6252
6253 2017-03-08 Jakub Jelinek <jakub@redhat.com>
6254
6255 PR c/79940
6256 * gimplify.c (gimplify_omp_for): Replace index var in outer
6257 taskloop statement with an artificial variable and add
6258 OMP_CLAUSE_PRIVATE clause for it.
6259
6260 2017-03-08 Richard Biener <rguenther@suse.de>
6261
6262 PR tree-optimization/79955
6263 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
6264 for accesses that are completely outside of the variable.
6265
6266 2017-03-08 Andrew Haley <aph@redhat.com>
6267
6268 PR tree-optimization/79943
6269 * tree-ssa-loop-split.c (compute_new_first_bound): When
6270 calculating the new upper bound, (END-BEG) should be added, not
6271 subtracted.
6272
6273 2017-03-08 Jakub Jelinek <jakub@redhat.com>
6274
6275 * config/avr/avr.md (setmemhi): Make sure match_dup
6276 operand number comes before match_scratch.
6277
6278 2017-03-08 Richard Biener <rguenther@suse.de>
6279
6280 PR tree-optimization/79920
6281 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
6282 with ncopies == 1 to ...
6283 (vect_transform_slp_perm_load): ... here. Properly compute
6284 all element loads by iterating VF times over the group. Do
6285 not handle ncopies (computed in a broken way) in
6286 vect_create_mask_and_perm.
6287
6288 2017-03-08 Jakub Jelinek <jakub@redhat.com>
6289
6290 PR sanitizer/79904
6291 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
6292 is a uniform vector, use uniform_vector_p return value instead of
6293 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
6294
6295 2017-03-07 Marek Polacek <polacek@redhat.com>
6296
6297 PR middle-end/79809
6298 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
6299 (alloca_call_type): Likewise.
6300
6301 2017-03-07 Martin Liska <mliska@suse.cz>
6302
6303 * gcov.c (process_args): Put comment to correct location.
6304
6305 2017-03-07 Martin Liska <mliska@suse.cz>
6306
6307 PR middle-end/68270
6308 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
6309 Use array_at_struct_end_p instead of DECL_CHAIN (field).
6310 (chkp_narrow_bounds_for_field): Likewise.
6311 (chkp_parse_array_and_component_ref): Pass one more argument to
6312 call.
6313
6314 2017-03-07 Richard Biener <rguenther@suse.de>
6315
6316 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
6317 preheaders.
6318
6319 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
6320
6321 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
6322 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
6323
6324 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6325
6326 PR c/79855
6327 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
6328 to end of description.
6329 (PARAM_MAX_STORES_TO_MERGE): Likewise.
6330
6331 2017-03-07 Jakub Jelinek <jakub@redhat.com>
6332
6333 PR rtl-optimization/79901
6334 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
6335 ...
6336 (*avx512f_<code><mode>3<mask_name>): ... this.
6337 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
6338 iterator instead of VI8_AVX2_AVX512BW.
6339
6340 PR rtl-optimization/79901
6341 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
6342 min/max expander, expand it using expand_vec_cond_expr.
6343
6344 PR sanitizer/79897
6345 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
6346 temporary.
6347
6348 2017-03-06 Jakub Jelinek <jakub@redhat.com>
6349
6350 PR c++/79821
6351 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
6352 to void * for PCH reasons.
6353 * dwarf2out.c (output_loc_operands, output_die): Cast
6354 v.val_vec.array to unsigned char *.
6355
6356 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
6357
6358 PR target/77850
6359 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
6360 vector types.
6361
6362 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
6363
6364 PR rtl-optimization/79571
6365 * lra-constraints.c (process_alt_operands): Calculate static
6366 reject and subtract it from overall when only addresses will be
6367 reloaded.
6368
6369 2017-03-06 Julia Koval <julia.koval@intel.com>
6370
6371 PR target/79793
6372 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
6373 incoming stack boundary to 128 for 64-bit targets.
6374
6375 2017-03-06 Richard Biener <rguenther@suse.de>
6376
6377 PR tree-optimization/79894
6378 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
6379 to NULL after folding it.
6380
6381 2017-03-06 Richard Biener <rguenther@suse.de>
6382
6383 PR tree-optimization/79824
6384 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
6385 check disabling peeling for gaps.
6386
6387 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
6388
6389 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
6390 attributes): Document gettimeofday.
6391
6392 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
6393
6394 * config/s390/s390.c (s390_option_override_internal): Set
6395 PARAM_MIN_VECT_LOOP_BOUND
6396
6397 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
6398
6399 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
6400 * config/s390/s390.md: Likewise.
6401
6402 2017-03-06 Jakub Jelinek <jakub@redhat.com>
6403
6404 PR target/79812
6405 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
6406 (<avx2_avx512>_perm<mode>): Rename to ...
6407 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
6408 of VI8F_256_512.
6409 (<avx512>_perm<mode>_mask): Rename to ...
6410 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
6411 of VI8F_256_512.
6412 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
6413 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
6414 instead of VI8F_256_512.
6415 (avx512f_perm<mode>): New define_expand.
6416 (avx512f_perm<mode>_mask): Likewise.
6417 (avx512f_perm<mode>_1<mask_name>): New define_insn.
6418 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
6419
6420 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
6421
6422 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
6423 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
6424 if_then_else.
6425 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
6426
6427 2017-03-06 Martin Liska <mliska@suse.cz>
6428
6429 PR sanitize/79783
6430 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
6431 when having a SSA NAME w/o VAR_DECL assigned to it.
6432
6433 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
6434
6435 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
6436 msa_dpsub_<su>_d): Fix MODE for vec_select.
6437
6438 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
6439
6440 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
6441 argument.
6442 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
6443
6444 2017-03-06 Richard Biener <rguenther@suse.de>
6445
6446 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
6447 * plugin.c (register_plugin_info): Likewise.
6448 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
6449
6450 2017-03-05 Jakub Jelinek <jakub@redhat.com>
6451
6452 * config/i386/sse.md (sse_storehps, sse_storelps,
6453 avx_<castmode><avxsizesuffix>_<castmode>,
6454 avx512f_<castmode><avxsizesuffix>_<castmode>,
6455 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
6456 in condition that at least one operand is not a MEM.
6457
6458 2017-03-03 Jakub Jelinek <jakub@redhat.com>
6459
6460 PR middle-end/79805
6461 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
6462 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
6463 ECF_NOTHROW.
6464 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
6465 gimple_call_nothrow_p flag based on whether original builtin can throw.
6466 If it can, emit following stmts on the fallthrough edge.
6467 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
6468 don't create new bb if inserting just debug stmts on the edge, try to
6469 insert them on the fallthru bb or just reset debug stmts.
6470
6471 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
6472
6473 PR target/43763
6474 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
6475 restore recog_data (including the operand rtxes inside it) around
6476 the call to get_insn_template.
6477
6478 2017-03-03 Martin Sebor <msebor@redhat.com>
6479
6480 PR tree-optimization/79699
6481 * context.c (context::~context): Free MPFR caches to avoid
6482 a memory leak on program exit.
6483
6484 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6485
6486 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
6487 Use wide_int::ulow () instead of .elt (0).
6488
6489 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
6490
6491 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
6492 (*pushxf): Limit oF constraint to 32bit targets and add oC
6493 constraint for 64bit targets.
6494 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
6495 (*pushdf): Change rmF constraint to rmC.
6496
6497 2017-03-03 Martin Liska <mliska@suse.cz>
6498
6499 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
6500 Remove unused variable.
6501
6502 2017-03-03 Jakub Jelinek <jakub@redhat.com>
6503
6504 PR target/79807
6505 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
6506 is a memory operand, increase num_memory.
6507 (ix86_expand_args_builtin): Likewise.
6508
6509 2017-03-03 Jan Hubicka <jh@suse.cz>
6510
6511 PR lto/79760
6512 * ipa-devirt.c (maybe_record_node): Properly handle
6513 __cxa_pure_virtual visibility.
6514
6515 2017-03-03 Martin Liska <mliska@suse.cz>
6516
6517 PR tree-optimization/79803
6518 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
6519 assert.
6520 (pass_loop_prefetch::execute): Disabled optimization if an
6521 assumption about L1 cache size is not met.
6522
6523 2017-03-03 Martin Liska <mliska@suse.cz>
6524
6525 PR rtl-optimization/79574
6526 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
6527 (hash_scan_set): Likewise.
6528 (dump_hash_table): Likewise.
6529 (hoist_code): Likewise.
6530
6531 2017-03-03 Richard Biener <rguenther@suse.de>
6532
6533 * fixed-value.c (fixed_from_string): Restore use of elt (1)
6534 in place of uhigh ().
6535 (fixed_convert_from_real): Likewise.
6536
6537 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
6538
6539 PR target/79514
6540 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
6541
6542 2017-03-03 Richard Biener <rguenther@suse.de>
6543
6544 PR middle-end/79818
6545 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
6546 TYPE_OVERFLOW_UNDEFINED check.
6547
6548 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6549
6550 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
6551 numbers.
6552 (vector_ae_<mode>_p): Likewise.
6553 (vector_nez_<mode>_p): Likewise.
6554 (vector_ne_v2di_p): Likewise.
6555 (vector_ae_v2di_p): Likewise.
6556 (vector_ne_<mode>_p): Likewise.
6557 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
6558 numbers.
6559 (vsx_tsqrt<mode>2_fe): Likewise.
6560
6561 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
6562
6563 PR target/79514
6564 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
6565
6566 2017-03-02 Jakub Jelinek <jakub@redhat.com>
6567
6568 PR rtl-optimization/79780
6569 * cprop.c (one_cprop_pass): When second and further conditional trap
6570 in a single basic block is turned into an unconditional trap, turn it
6571 into a deleted note to avoid RTL verification failures.
6572
6573 2017-03-02 Richard Biener <rguenther@suse.de>
6574
6575 * fold-const.c (const_binop): Use ulow () instead of elt (0).
6576
6577 2017-03-02 Richard Biener <rguenther@suse.de>
6578
6579 PR tree-optimization/79345
6580 PR c++/42000
6581 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
6582 param and abort the walk, returning -1 if it is hit.
6583 (walk_aliased_vdefs): Take a limit param and pass it on.
6584 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
6585 defaulting to 0 and return a signed int.
6586 * tree-ssa-uninit.c (struct check_defs_data): New struct.
6587 (check_defs): New helper.
6588 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
6589 about uninitialized memory.
6590 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
6591 bogus uninitialized warning.
6592 (fixed_convert_from_real): Likewise.
6593
6594 2017-03-02 Bin Cheng <bin.cheng@arm.com>
6595
6596 PR tree-optimization/66768
6597 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
6598 iv_use if base object can't be determined.
6599
6600 2017-03-02 Jakub Jelinek <jakub@redhat.com>
6601
6602 PR tree-optimization/79345
6603 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
6604 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
6605 (get_pattern_stats): Initialize it.
6606 * genemit.c (gen_expand): Verify match_scratch numbers come after
6607 match_operand/match_dup numbers.
6608 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
6609 match_scratch numbers.
6610 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
6611 Likewise.
6612 * config/s390/s390.md (trunctdsd2): Likewise.
6613
6614 2017-03-02 Richard Biener <rguenther@suse.de>
6615
6616 * wide-int.h (wide_int_storage::operator=): Implement in terms
6617 of wi::copy.
6618
6619 2017-03-02 Richard Biener <rguenther@suse.de>
6620
6621 PR tree-optimization/79777
6622 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
6623 the to insert expression to sth existing.
6624
6625 2017-03-01 Martin Sebor <msebor@redhat.com>
6626
6627 PR middle-end/79692
6628 * gimple-ssa-sprintf.c
6629 (directive::known_width_and_precision): New function.
6630 (format_integer): Use it.
6631 (get_mpfr_format_length): Consider the full range of precision
6632 when computing %g output with the # flag. Set the likely byte
6633 count to 3 rather than 1 when precision is indeterminate.
6634 (format_floating): Correct the lower bound of precision.
6635
6636 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6637
6638 * doc/invoke.texi: Document default code model for 64-bit Linux.
6639
6640 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6641
6642 PR target/79752
6643 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
6644 udiv rather than div since input pattern is unsigned.
6645
6646 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
6647
6648 * config/i386/i386.c (print_reg): Warn for values of
6649 unsupported size in integer register.
6650
6651 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
6652
6653 PR target/79439
6654 * config/rs6000/predicates.md (current_file_function_operand): Do
6655 not allow self calls to be local if the function is replaceable.
6656
6657 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
6658
6659 PR target/79395
6660 * config/rs6000/altivec.h (vec_ctz and others): Change the
6661 preprocessor macro that controls conditional compilation from
6662 _ARCH_PWR9 to __POWER9_VECTOR__.
6663 (vec_all_ne): Change parameterization of __altivec_scalar_pred
6664 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
6665 control (instead of _ARCH_PWR9 control) so that template
6666 definition uses power9-specific function.
6667 (vec_any_eq): Likewise.
6668 (vec_all_ne): Change macro definition to use a power9-specific
6669 expansion under #ifdef __POWER9_VECTOR__ control (instead of
6670 _ARCH_PWR9 control).
6671 (vec_any_eq) Likewise.
6672 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
6673 expansion for CMPNEF to remove support for xvcmpnesp instruction.
6674 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
6675 support for xvcmpnedp instruction.
6676 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
6677 macro expansion so that Power9 implementation of vec_all_ne does
6678 not use the AltiVec predicate framework.
6679 (VCMPNEH_P): Likewise.
6680 (VCMPNEW_P): Likewise.
6681 (VCMPNED_P): Likewise.
6682 (VCMPNEFP_P): Likewise.
6683 (VCMPNEDP_P): Likewise.
6684 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
6685 implementation of vec_any_eq to not use AltiVec predicate
6686 framework.
6687 (VCMPAEH_P): Likewise.
6688 (VCMPAEW_P): Likewise.
6689 (VCMPAED_P): Likewise.
6690 (VCMPAEFP_P): Likewise.
6691 (VCMPAEDP_P): Likewise.
6692 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
6693 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
6694 not use the AltiVec predicate framework.
6695 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
6696 of vec_any_eq to not use AltiVec predicate framework.
6697 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
6698 support for predefined __POWER9_VECTOR__ macro to indicate that
6699 Power9 instruction selection is enabled.
6700 (altivec_overloaded_builtins): Remove extraneous
6701 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
6702 function argument types RS6000_BTI_bool_V16QI and
6703 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
6704 entry for overloaded function argument types RS6000_BTI_bool_V4SI
6705 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
6706 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
6707 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
6708 Power9 for implementations of vec_cmpne. Change the signature for
6709 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
6710 (representing vec_all_ne) to remove the previously described first
6711 argument of type RS6000_BTI_INTSI, as this was an artifact of
6712 reliance on the AltiVec predicate framework, which is no longer
6713 used in the implementation of these functions. Add
6714 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
6715 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
6716 since, unlike the AltiVec predicate framework implementation, we
6717 do not share function descriptors between vec_alle and vec_anyeq.
6718 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
6719 set of modes that receive special treatment even when
6720 TARGET_P9_VECTOR is true. The special treatment emits code that
6721 does not depend on Power9 instructions.
6722 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
6723 define_expand to not rely on AltiVec predicate framework.
6724 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
6725 function.
6726 (vector_ne_v2di_p): Change this define_expand to not rely on
6727 AltiVec predicate framework.
6728 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
6729 function.
6730 (vector_ne_<mode>_p): Change this define_expand to not rely on
6731 AltiVec predicate framework.
6732 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
6733 function.
6734 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
6735 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
6736 define_insn pattern.
6737 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
6738 define_insn pattern because the xvcmpne<VSs>. instruction is not
6739 supported.
6740 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
6741 instruction is not supported.
6742
6743 2017-03-01 Jakub Jelinek <jakub@redhat.com>
6744
6745 * config/nvptx/nvptx.c: Include intl.h.
6746
6747 2017-03-01 Martin Jambor <mjambor@suse.cz>
6748
6749 PR lto/78140
6750 * ipa-prop.h (ipa_bits): Removed field known.
6751 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
6752 to pointers. Adjusted their comments to warn about their sharing.
6753 (ipcp_transformation_summary): Change bits to a vector of pointers.
6754 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
6755 (ipa_get_ipa_bits_for_value): Declare.
6756 * tree-vrp.h (value_range): Mark as GTY((for_user)).
6757 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
6758 (ipa_bits_hash_table): Likewise.
6759 (ipa_vr_ggc_hash_traits): Likewise.
6760 (ipa_vr_hash_table): Likewise.
6761 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
6762 being pointers and vr_known being removed.
6763 (ipa_set_jf_unknown): Likewise.
6764 (ipa_get_ipa_bits_for_value): New function.
6765 (ipa_set_jfunc_bits): Likewise.
6766 (ipa_get_value_range): New overloaded functions.
6767 (ipa_set_jfunc_vr): Likewise.
6768 (ipa_compute_jump_functions_for_edge): Use the above functions to
6769 construct bits and vr parts of jump functions.
6770 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
6771 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
6772 exist.
6773 (ipcp_grow_transformations_if_necessary): Also allocate
6774 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
6775 exist.
6776 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
6777 them. Fix too long lines.
6778 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
6779 vr_known being removed.
6780 (ipa_read_jump_function): Use new setter functions to construct bits
6781 and vr parts of jump functions or set them to NULL.
6782 (write_ipcp_transformation_info): Adjust for bits being pointers.
6783 (read_ipcp_transformation_info): Likewise.
6784 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
6785 space.
6786 Include gt-ipa-prop.h.
6787 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
6788 being pointers.
6789 (ipcp_store_bits_results): Likewise.
6790 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
6791 Do not write to existing jump functions but use a temporary instead.
6792
6793 2017-03-01 Jakub Jelinek <jakub@redhat.com>
6794
6795 PR c++/79681
6796 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
6797 attempt to use its first operand as BIT_FIELD_REF base.
6798
6799 2017-03-01 Richard Biener <rguenther@suse.de>
6800
6801 PR middle-end/79721
6802 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
6803 interpolating formula in wrapping arithmetic.
6804 (chrec_apply): Convert chrec_evaluate return value to wanted type.
6805
6806 2017-03-01 Jakub Jelinek <jakub@redhat.com>
6807
6808 PR tree-optimization/79734
6809 * tree-vect-generic.c (expand_vector_condition): Optimize
6810 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
6811 Handle VEC_COND_EXPR where comparison has different inner width from
6812 type's inner width.
6813
6814 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
6815
6816 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
6817 markup, and similar issues. Remove @opindex entries for things
6818 that aren't options. Add missing -mmpy-option entries.
6819
6820 2017-02-28 Jakub Jelinek <jakub@redhat.com>
6821
6822 PR tree-optimization/79737
6823 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
6824 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
6825 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
6826 instead of byte_size. Formatting fix.
6827 (shift_bytes_in_array_right): Formatting fix.
6828
6829 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
6830
6831 PR target/79749
6832 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
6833 condition on optimize for the leaf function test.
6834
6835 2017-02-28 Martin Liska <mliska@suse.cz>
6836
6837 PR lto/79625
6838 * read-rtl-function.c (function_reader::handle_unknown_directive):
6839 Bail out when one uses -flto.
6840
6841 2017-02-28 Martin Liska <mliska@suse.cz>
6842
6843 * common.opt: Replace space with tabular for options of <number>
6844 type.
6845 * config/i386/i386.opt: Show <number> value for
6846 -mlarge-data-threshold.
6847 * opts.c (print_filtered_help): Do not display number in hexadecimal
6848 format.
6849
6850 2017-02-28 Martin Liska <mliska@suse.cz>
6851
6852 * common.opt: Fix --help=option -Q for options which are of
6853 an enum type.
6854
6855 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
6856
6857 * config/i386/i386.c (print_reg): Error out for values
6858 of 8-bit size in invalid integer register.
6859
6860 2017-02-28 Martin Sebor <msebor@redhat.com>
6861
6862 PR tree-optimization/79691
6863 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
6864
6865 2017-02-28 Jakub Jelinek <jakub@redhat.com>
6866
6867 PR target/79729
6868 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
6869 gcc_unreachable with output_operand_lossage.
6870
6871 2017-02-28 Richard Biener <rguenther@suse.de>
6872
6873 PR tree-optimization/79740
6874 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
6875 inserts.
6876 (visit_nary_op): Insert the nary into the hashtable if we
6877 pattern-matched sth.
6878 * tree-ssa-pre.c (eliminate_insert): Robustify.
6879
6880 2017-02-28 Richard Biener <rguenther@suse.de>
6881
6882 PR middle-end/79731
6883 * fold-const.c (decode_field_reference): Reject out-of-bound
6884 accesses.
6885
6886 2017-02-28 Jakub Jelinek <jakub@redhat.com>
6887
6888 * config/i386/i386.c: Include intl.h.
6889 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
6890 instead of just cond ? "..." : "...".
6891 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
6892 * coverage.c (read_counts_file): Likewise.
6893 * omp-offload.c: Include intl.h.
6894 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
6895 of just cond ? "..." : "...".
6896 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
6897 of just cond ? "..." : "...".
6898
6899 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
6900
6901 PR target/79742
6902 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
6903 entry, if present.
6904 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
6905 'tune for' CPU name.
6906 * config/arm/arm-cpu-data.h: Regenerated.
6907
6908 2017-02-28 Richard Biener <rguenther@suse.de>
6909
6910 PR tree-optimization/79732
6911 * tree-inline.c (expand_call_inline): Do not shadow var.
6912
6913 2017-02-28 Richard Biener <rguenther@suse.de>
6914
6915 PR tree-optimization/79723
6916 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
6917 address-space properly.
6918
6919 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
6920
6921 * doc/optinfo.texi (Optimization groups): Fix option used for
6922 OPTGROUP_ALL.
6923 * doc/invoke.texi (-fopt-info): Document "omp".
6924 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
6925 (OPTGROUP_ALL): Add OPTGROUP_OMP.
6926 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
6927 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
6928 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
6929
6930 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
6931 all users.
6932 * dumpfile.c (optgroup_options): Instead of "openmp", associate
6933 OPTGROUP_OMP with "omp".
6934
6935 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
6936
6937 PR target/79544
6938 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
6939 for arithmetic shift of unsigned V2DI.
6940
6941 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
6942
6943 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
6944 arc/linux.h headers.
6945 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
6946 (LINK_SPEC): Likewise.
6947 (ARC_TLS_EXTRA_START_SPEC): Likewise.
6948 (EXTRA_SPECS): Likewise.
6949 (STARTFILE_SPEC): Likewise.
6950 (ENDFILE_SPEC): Likewise.
6951 (LIB_SPEC): Likewise.
6952 (TARGET_SDATA_DEFAULT): Likewise.
6953 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
6954 (MULTILIB_DEFAULTS): Likewise.
6955 (DWARF2_UNWIND_INFO): Likewise.
6956 * config/arc/big.h: New file.
6957 * config/arc/elf.h: Likewise.
6958 * config/arc/linux.h: Likewise.
6959 * config/arc/t-uClibc: Remove.
6960
6961 2017-02-27 Bin Cheng <bin.cheng@arm.com>
6962
6963 PR tree-optimization/77536
6964 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
6965 (tree_transform_and_unroll_loop): Use above function to compute the
6966 estimated niter of unrolled loop and use it when scaling profile.
6967 Also use count info rather than frequency if it's non-zero.
6968 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
6969 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
6970 (vect_transform_loop): Call above function.
6971
6972 2017-02-27 Richard Biener <rguenther@suse.de>
6973
6974 PR tree-optimization/45397
6975 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
6976 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
6977 (visit_nary_op): Add pattern matching for CSEing sign-changed
6978 or truncated operations with wider ones.
6979
6980 2017-02-27 Richard Biener <rguenther@suse.de>
6981
6982 PR tree-optimization/79690
6983 * tree-vect-stmts.c (vectorizable_store): Use vector type
6984 built from the DR with address-space.
6985
6986 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
6987
6988 * doc/invoke.texi (Optimize Options): Refine the description
6989 of asan-use-after-return.
6990
6991 2017-02-25 Alan Modra <amodra@gmail.com>
6992
6993 PR rtl-optimization/79584
6994 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
6995 base, not ad->base_term, the reg within base. Remove assertion
6996 that ad->base == ad->base_term. Replace gen_int_mode using
6997 bogus mode with const0_rtx.
6998
6999 2017-02-25 Jakub Jelinek <jakub@redhat.com>
7000
7001 PR middle-end/79396
7002 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
7003 FMA_EXPR like tcc_binary or tcc_unary.
7004
7005 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
7006
7007 PR debug/77589
7008 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
7009 bitfield.
7010 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
7011 (output_loc_operands): Handle DW_OP_call_ref and
7012 DW_OP_GNU_variable_value.
7013 (struct variable_value_struct): New type.
7014 (struct variable_value_hasher): Likewise.
7015 (variable_value_hash): New variable.
7016 (string_types): Remove.
7017 (copy_loc_descr): New function.
7018 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
7019 (prepend_loc_descr_to_each): New function.
7020 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
7021 instead of add_loc_descr_to_each if the first argument is single
7022 location list and the second has multiple.
7023 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
7024 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
7025 when looking for variable value which doesn't have other location info.
7026 (loc_list_from_tree): Formatting fix.
7027 (gen_array_type_die): Simplify DW_AT_string_length handling.
7028 (adjust_string_types): Remove.
7029 (gen_subprogram_die): Don't call adjust_string_types nor test/set
7030 string_types. Call resolve_variable_values.
7031 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
7032 (resolve_addr_in_expr): Likewise. Add A argument.
7033 (copy_deref_exprloc): Remove deref argument. Adjust for the
7034 original expression being DW_OP_GNU_variable_value with optionally
7035 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
7036 optionally after it.
7037 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
7038 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
7039 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
7040 (variable_value_hasher::hash, variable_value_hasher::equal): New
7041 methods.
7042 (resolve_variable_value_in_expr, resolve_variable_value,
7043 resolve_variable_values, note_variable_value_in_expr,
7044 note_variable_value): New functions.
7045 (dwarf2out_early_finish): Call note_variable_value on all toplevel
7046 DIEs.
7047
7048 2017-02-24 Jakub Jelinek <jakub@redhat.com>
7049
7050 PR c/79677
7051 * opts.h (handle_generated_option): Add GENERATED_P argument.
7052 * opts-common.c (handle_option): Adjust function comment.
7053 (handle_generated_option): Add GENERATED_P argument, pass it to
7054 handle_option.
7055 (control_warning_option): Pass false to handle_generated_option
7056 GENERATED_P.
7057 * opts.c (maybe_default_option): Pass true to handle_generated_option
7058 GENERATED_P.
7059 * optc-gen.awk: Likewise.
7060
7061 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
7062
7063 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
7064 a REG, look at the REG it is a SUBREG of.
7065 (splitter for cmpeqsi_t): Ditto.
7066
7067 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
7068
7069 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
7070 the special USEs with the pattern of the insn, not the insn itself.
7071
7072 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
7073
7074 PR target/79473
7075 * doc/invoke.texi: Document -mload-store-pairs.
7076
7077 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
7078 Sandra Loosemore <sandra@codesourcery.com>
7079
7080 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
7081 argument isn't a CONST_INT.
7082 (nios2_alternate_compare_const): Assert op is a CONST_INT.
7083 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
7084 (nios2_validate_compare): Bypass alternate compare logic if *op2
7085 is not a CONST_INT.
7086 (ldstwm_operation_p): Return false if first_base is not a REG or
7087 if first_offset is not a CONST_INT.
7088
7089 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
7090
7091 * config/cris/cris.md: Use correct operand in a define_peephole2.
7092
7093 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
7094
7095 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
7096
7097 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
7098
7099 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
7100 this_insn if it is an INSN or JUMP_INSN.
7101 (force_offsettable): Look at base, not at addr.
7102 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
7103 on things that aren't necessarily CONST_INTs.
7104
7105 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
7106
7107 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
7108 -mfpmath=sse is the default also for x86-32 targets with SSE2
7109 instruction set when @option{-ffast-math} is enabled
7110
7111 2017-02-24 Jeff Law <law@redhat.com>
7112
7113 PR rtl-optimizatoin/79286
7114 * ira.c (update_equiv_regs): Drop may_trap_p exception to
7115 dominance test.
7116
7117 2017-02-24 Richard Biener <rguenther@suse.de>
7118
7119 PR tree-optimization/79389
7120 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
7121 debug insns.
7122
7123 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
7124
7125 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
7126 function comment to reflect reality.
7127 (loop_exits_before_overflow): Fix typo in function description.
7128
7129 2017-02-24 Richard Biener <rguenther@suse.de>
7130
7131 PR tree-optimization/79389
7132 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
7133 properly that a threading opportunity exists. Detect conditional
7134 copy/constant propagation opportunities.
7135
7136 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
7137
7138 * config/visium/visium.md (type): Add trap.
7139 (b): New mode attribute.
7140 (*btst): Rename into...
7141 (*btst<mode>): ...this and adjust.
7142 (*cbranchsi4_btst_insn): Rename into...
7143 (*cbranch<mode>4_btst_insn): ...this and adjust.
7144 (trap): New define_insn.
7145
7146 2017-02-23 Jakub Jelinek <jakub@redhat.com>
7147
7148 PR tree-optimization/79389
7149 * ifcvt.c (struct noce_if_info): Add rev_cond field.
7150 (noce_reversed_cond_code): New function.
7151 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
7152 reversed_comparison_code. Formatting fix.
7153 (noce_try_store_flag): Test rev_cond != NULL in addition to
7154 reversed_comparison_code.
7155 (noce_try_store_flag_constants): Likewise.
7156 (noce_try_store_flag_mask): Likewise.
7157 (noce_try_addcc): Use rev_cond if non-NULL instead of
7158 reversed_comparison_code.
7159 (noce_try_cmove_arith): Likewise. Formatting fixes.
7160 (noce_try_minmax, noce_try_abs): Clear rev_cond.
7161 (noce_find_if_block): Initialize rev_cond.
7162 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
7163 instead of false as last argument never attempt to reverse it
7164 afterwards.
7165
7166 2017-02-23 Bin Cheng <bin.cheng@arm.com>
7167
7168 PR tree-optimization/79663
7169 * tree-predcom.c (combine_chains): Process refs in reverse order
7170 only for ZERO length chains, and add explaining comment.
7171
7172 2017-02-23 Jeff Law <law@redhat.com>
7173
7174 PR tree-optimization/79578
7175 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
7176 in call to operand_equal_p.
7177
7178 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
7179
7180 PR target/71017
7181 * config/i386/cpuid.h: Fix another undefined behavior.
7182
7183 2017-02-23 Richard Biener <rguenther@suse.de>
7184
7185 PR tree-optimization/79683
7186 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
7187 vector types for data-refs.
7188
7189 2017-02-23 Martin Liska <mliska@suse.cz>
7190
7191 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
7192
7193 2017-02-23 Jakub Jelinek <jakub@redhat.com>
7194
7195 PR middle-end/79665
7196 * internal-fn.c (get_range_pos_neg): Moved to ...
7197 * tree.c (get_range_pos_neg): ... here. No longer static.
7198 * tree.h (get_range_pos_neg): New prototype.
7199 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
7200 are known to be in between 0 and signed maximum inclusive, try to
7201 expand both unsigned and signed divmod and use the cheaper one from
7202 those.
7203
7204 2017-02-22 Jeff Law <law@redhat.com>
7205
7206 PR tree-optimization/79578
7207 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
7208 to compare base operands.
7209
7210 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
7211
7212 PR target/79211
7213 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
7214 gpc_reg_operand instead of fpr_reg_operand.
7215
7216 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
7217
7218 * config/mips/mips.c (mips_return_in_memory): Force FP
7219 vector types to be returned in memory for o32 ABI.
7220
7221 2017-02-22 Jakub Jelinek <jakub@redhat.com>
7222
7223 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
7224 instead of DW_TAG_member for static data member declarations and don't
7225 set no_linkage_name for static inline data members.
7226 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
7227 to DW_TAG_member.
7228
7229 2017-02-22 Martin Liska <mliska@suse.cz>
7230
7231 * doc/invoke.texi: Replace inequality signs with square brackets
7232 for -Wnormalized.
7233
7234 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7235
7236 PR tree-optimization/68644
7237 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
7238
7239 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
7240
7241 PR target/78660
7242 * lra-constraints.c (simplify_operand_subreg): Handle
7243 WORD_REGISTER_OPERATIONS targets.
7244
7245 2017-02-22 Jakub Jelinek <jakub@redhat.com>
7246
7247 PR target/70465
7248 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
7249 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
7250 elimination by swapping fld*.
7251
7252 2017-02-22 Richard Biener <rguenther@suse.de>
7253
7254 PR tree-optimization/79673
7255 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
7256 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
7257 irrelevant address-space qualifiers and avoiding a
7258 ADDR_SPACE_CONVERT_EXPR from fold_convert.
7259
7260 2017-02-22 Richard Biener <rguenther@suse.de>
7261
7262 PR tree-optimization/79666
7263 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
7264 to not symbolically negate if that may introduce undefined
7265 overflow.
7266
7267 2017-02-22 Martin Liska <mliska@suse.cz>
7268
7269 PR lto/79587
7270 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
7271 * data-streamer-out.c (streamer_write_gcov_count_stream):
7272 Likewise.
7273 * value-prof.c (stream_out_histogram_value): Make assert more
7274 precise based on type of counter.
7275
7276 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
7277
7278 PR target/79593
7279 * config/i386/i386.md (standard_x87sse_constant_load splitter):
7280 Use nonimmediate_operand instead of memory_operand for operand 1.
7281 (float-extend standard_x87sse_constant_load splitter): Ditto.
7282
7283 2017-02-21 Jeff Law <law@redhat.com>
7284
7285 PR tree-optimization/79621
7286 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
7287 blocks with edges to themselves.
7288
7289 2017-02-21 Jakub Jelinek <jakub@redhat.com>
7290
7291 PR target/79633
7292 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
7293 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
7294 Use gimple_call_builtin_p.
7295
7296 PR target/79570
7297 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
7298 on temporarily removed DEBUG_INSNs.
7299
7300 PR tree-optimization/79649
7301 * tree-loop-distribution.c (classify_partition): Give up on
7302 non-generic address space loads/stores.
7303
7304 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
7305
7306 * doc/loop.texi (Loop manipulation): Remove nonexistent
7307 tree_ssa_loop_version from the documentation.
7308 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
7309
7310 2017-02-21 Jakub Jelinek <jakub@redhat.com>
7311
7312 PR target/79494
7313 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
7314 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
7315 * config/rs6000/rs6000.c: Include except.h.
7316 (rs6000_expand_split_stack_prologue): Call
7317 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
7318
7319 2017-02-21 Martin Jambor <mjambor@suse.cz>
7320
7321 PR lto/79579
7322 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
7323 have been analyzed.
7324
7325 2017-02-21 Martin Jambor <mjambor@suse.cz>
7326
7327 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
7328 for backward compatibility only.
7329 * doc/invoke.texi (Option Summary): Remove all references to
7330 -fipa-cp-alignment.
7331
7332 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
7333
7334 PR target/78660
7335 Revert:
7336 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
7337
7338 * lra-constraints.c (curr_insn_transform): Handle
7339 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
7340
7341 2017-02-21 Martin Liska <mliska@suse.cz>
7342
7343 * config/i386/i386.opt: Replace -masm-dialect with -masm.
7344
7345 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
7346
7347 PR translation/79638
7348 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
7349
7350 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
7351
7352 PR ada/67205
7353 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
7354 (arm_function_ok_for_sibcall): Return false for an indirect call by
7355 descriptor if all the argument registers are used.
7356 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
7357 alignment of the function.
7358
7359 2017-02-21 Jakub Jelinek <jakub@redhat.com>
7360
7361 PR tree-optimization/61441
7362 * simplify-rtx.c (simplify_const_unary_operation): For
7363 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
7364 the sNaN unmodified.
7365
7366 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7367
7368 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
7369 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
7370 instead of SYSTEM_HEADER_DIR.
7371
7372 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
7373 Martin Liška <mliska@suse.cz>
7374
7375 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
7376 Fix typos and grammar, use active voice, and clarify.
7377
7378 2017-02-20 Marek Polacek <polacek@redhat.com>
7379
7380 PR middle-end/79537
7381 * gimplify.c (gimplify_expr): Handle unused *&&L;.
7382
7383 PR sanitizer/79558
7384 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
7385
7386 2017-02-20 Jakub Jelinek <jakub@redhat.com>
7387
7388 PR target/79568
7389 * config/i386/i386.c (ix86_expand_builtin): Handle
7390 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
7391 ix86_builtins_isa[fcode].isa as a requirement of those
7392 flags and any other flag in the bitmask.
7393 (ix86_init_mmx_sse_builtins): Use 0 instead of
7394 ~OPTION_MASK_ISA_64BIT as mask.
7395 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
7396 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
7397 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
7398 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
7399
7400 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
7401
7402 PR target/78012
7403 * lra-constraints.c (split_reg): Check requested split mode
7404 is supported by the register.
7405
7406 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
7407
7408 * lra-constraints.c (simplify_operand_subreg): Remove early
7409 return false.
7410
7411 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
7412
7413 PR target/78660
7414 * lra-constraints.c (curr_insn_transform): Tighten condition
7415 for converting SUBREG reloads from OP_OUT to OP_INOUT.
7416
7417 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
7418
7419 PR target/78660
7420 * lra-constraints.c (curr_insn_transform): Handle
7421 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
7422
7423 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
7424
7425 Revert:
7426 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
7427
7428 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
7429
7430 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
7431
7432 PR c++/69523
7433 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
7434 description.
7435
7436 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7437
7438 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
7439 for FMA_EXPR.
7440
7441 2017-02-18 Jakub Jelinek <jakub@redhat.com>
7442
7443 * final.c (last_columnnum, override_columnnum): New variables.
7444 (final_start_function): Set last_columnnum, pass it to begin_prologue
7445 hook and pass 0 to dwarf2out_begin_prologue.
7446 (final_scan_insn): Update override_columnnum. Pass last_columnnum
7447 to source_line debug hook.
7448 (notice_source_line): Compute last_columnnum and for debug_column_info
7449 return true on column changes.
7450 * debug.h (struct gcc_debug_hooks): Add column argument to
7451 source_line and begin_prologue hooks.
7452 (debug_nothing_int_charstar_int_bool): Remove prototype.
7453 (debug_nothing_int_int_charstar,
7454 debug_nothing_int_int_charstar_int_bool): New prototypes.
7455 (dwarf2out_begin_prologue): Add column argument.
7456 * debug.c (do_nothing_debug_hooks): Adjust source_line and
7457 begin_prologue hooks.
7458 (debug_nothing_int_charstar_int_bool): Remove.
7459 (debug_nothing_int_int_charstar,
7460 debug_nothing_int_int_charstar_int_bool): New functions.
7461 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
7462 through to dwarf2out_source_line.
7463 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
7464 (dwarf2out_source_line): Add column argument, emit it if requested.
7465 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
7466 arguments.
7467 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
7468 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
7469 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
7470 through to dwarf2out_begin_prologue.
7471 (vmsdbgout_source_line): Add column argument, pass it through to
7472 dwarf2out_source_line.
7473 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
7474 dbxout_source_line caller.
7475 (dbxout_source_line): Add column argument.
7476
7477 * common.opt (gno-column-info, gcolumn-info): New options.
7478 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
7479 (check_die): Also test for multiple DW_AT_decl_column attributes.
7480 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
7481 DW_AT_decl_column if requested.
7482 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
7483 if requested.
7484 (gen_variable_die): Likewise.
7485 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
7486 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
7487
7488 PR target/79569
7489 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
7490 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
7491 (ix86_handle_option): Handle OPT_m3dnowa.
7492 * doc/invoke.texi (-m3dnowa): Document.
7493 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
7494 -m3dnowa instead of -m3dnow -march=athlon.
7495
7496 PR target/79559
7497 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
7498 instead of gcc_assert for K, r and R code checks. Formatting fixes.
7499
7500 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7501
7502 PR target/79261
7503 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
7504 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
7505 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
7506 generator for vsx_xxpermdi_<mode>_be.
7507 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
7508 force big-endian semantics.
7509 (vsx_xxpermdi_<mode>_be): New define_expand with same
7510 implementation as previous version of vsx_xxpermdi_<mode>.
7511
7512 2017-02-17 Jakub Jelinek <jakub@redhat.com>
7513
7514 PR tree-optimization/79327
7515 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
7516 variable, its initialization and use.
7517
7518 2017-02-17 Julia Koval <julia.koval@intel.com>
7519
7520 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
7521 (OPTION_MASK_ISA_PKU_UNSET): New.
7522 (ix86_handle_option): Handle -mrdpid.
7523 * config/i386/cpuid.h (bit_RDPID): New.
7524 * config/i386/driver-i386.c (host_detect_local_cpu):
7525 Detect RDPID feature.
7526 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
7527 * config/i386/i386-c.c (ix86_target_macros_internal):
7528 Handle RDPID flag.
7529 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
7530 (ix86_valid_target_attribute_inner_p): Add "rdpid".
7531 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
7532 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
7533 * config/i386/i386.md (define_insn "rdpid"): New.
7534 * config/i386/i386.opt Add -mrdpid.
7535 * config/i386/immintrin.h (_rdpid_u32): New.
7536
7537 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
7538
7539 PR rtl-optimization/79541
7540 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
7541 instead of transforming it into USE.
7542
7543 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
7544
7545 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
7546 If HONOR_SNANS (SFmode) force the input to a register.
7547 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
7548 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
7549 an frsp or similar insn.
7550
7551 2017-02-17 Martin Liska <mliska@suse.cz>
7552
7553 PR rtl-optimization/79577
7554 * params.def (selsched-max-sched-times): Increase minimum to 1.
7555
7556 2017-02-17 Martin Liska <mliska@suse.cz>
7557
7558 PR rtl-optimization/79574
7559 * gcse.c (want_to_gcse_p): Prevent integer overflow.
7560
7561 2017-02-17 Martin Liska <mliska@suse.cz>
7562
7563 PR tree-optimization/79529
7564 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
7565 ssa_defined_default_def_p to handle cases which are implicitly
7566 defined.
7567 * tree-ssa.c (ssa_defined_default_def_p): New function.
7568 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
7569 which are implicitly defined.
7570 * tree-ssa.h (ssa_defined_default_def_p): Declare.
7571
7572 2017-02-17 Richard Biener <rguenther@suse.de>
7573
7574 PR middle-end/79576
7575 * params.def (max-ssa-name-query-depth): Limit to 10.
7576
7577 2017-02-17 Richard Biener <rguenther@suse.de>
7578
7579 PR tree-optimization/79552
7580 * tree-ssa-structalias.c (visit_loadstore): Properly verify
7581 default defs.
7582
7583 2017-02-17 Richard Biener <rguenther@suse.de>
7584
7585 PR bootstrap/79567
7586 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
7587
7588 2017-02-17 Marek Polacek <polacek@redhat.com>
7589
7590 PR middle-end/79536
7591 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
7592 (fold_negate_expr): New wrapper.
7593
7594 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
7595
7596 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
7597 Correct terminology and de-emphasize pre-standard behavior.
7598
7599 2017-02-16 Alan Modra <amodra@gmail.com>
7600
7601 PR rtl-optimization/79286
7602 * ira.c (def_dominates_uses): New function.
7603 (update_equiv_regs): Don't create an equivalence for insns that
7604 may trap where the register def does not dominate the use.
7605
7606 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
7607
7608 PR rtl-optimization/78127
7609 * lra.c (lra): Call lra_eliminate before finish the loop after
7610 lra_constraint.
7611
7612 2017-02-16 Richard Biener <rguenther@suse.de>
7613
7614 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
7615 isl/isl_val.h.
7616 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
7617 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
7618 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
7619 (isl_val_int_from_wi): New function.
7620 (extract_affine_gmp): Rename to ...
7621 (extract_affine_wi): ... this, take a widest_int.
7622 (extract_affine_int): Just wrap extract_affine_wi.
7623 (add_param_constraints): Use isl_val_int_from_wi.
7624 (add_loop_constraints): Likewise, and extract_affine_wi.
7625
7626 2017-02-15 Jeff Law <law@redhat.com>
7627
7628 PR middle-end/79521
7629 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
7630 ira_init_register_move_cost_if_necessary.
7631
7632 2017-02-15 Martin Sebor <msebor@redhat.com>
7633
7634 PR middle-end/32003
7635 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
7636 removed in a prior commit.
7637
7638 2017-02-15 Bin Cheng <bin.cheng@arm.com>
7639
7640 PR tree-optimization/79347
7641 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
7642 counters during peeling.
7643
7644 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
7645
7646 * Makefile.in (site.exp): Remove "set ISLVER".
7647
7648 2017-02-15 Jakub Jelinek <jakub@redhat.com>
7649
7650 PR target/79487
7651 * real.c (real_from_integer): Call real_convert even for decimal.
7652
7653 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
7654
7655 PR target/79421
7656 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
7657
7658 2017-02-14 Andrew Pinski <apinski@cavium.com>
7659
7660 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
7661 cores and change the partno/implementer to be correct.
7662 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
7663 the 'B" as the implementer.
7664 * config/aarch64/aarch64-tune.md: Regenerate.
7665
7666 2017-02-14 Carl Love <cel@us.ibm.com>
7667
7668 * config/rs6000/rs6000.c: Add case statement entry to make the
7669 xvcvuxdsp built-in argument unsigned.
7670 * config/rs6000/vsx.md: Fix the source and return operand types so they
7671 match the instruction definitions from the ISA document. Fix typo
7672 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
7673 statement.
7674
7675 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
7676
7677 PR target/79282
7678 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
7679 member early_clobber_alts.
7680 * lra-lives.c (reg_early_clobber_p): New.
7681 (process_bb_lives): Use it.
7682 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
7683 (debug_operand_data): Initialize early_clobber_alts.
7684 (setup_operand_alternative): Set up early_clobber_alts.
7685 (collect_non_operand_hard_regs): Ditto. Pass early clobber
7686 alternatives to new_insn_reg.
7687 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
7688 it.
7689 (lra_update_insn_regno_info): Pass the new arg.
7690
7691 2017-02-14 Jakub Jelinek <jakub@redhat.com>
7692
7693 PR middle-end/79505
7694 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
7695 (new_oacc_loop_raw): Don't clear already cleared fields.
7696
7697 PR target/79481
7698 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
7699 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
7700 _mm512_prefetch_i64gather_ps): New inline functions and macros.
7701
7702 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
7703
7704 PR target/79495
7705 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
7706
7707 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
7708
7709 PR target/79498
7710 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
7711 the extra instruction to the right place to store 128-bit constant
7712 when needed.
7713
7714 2017-02-14 Martin Sebor <msebor@redhat.com>
7715
7716 PR middle-end/79448
7717 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
7718 warning for strings of unknown length.
7719
7720 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
7721
7722 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
7723
7724 2017-02-14 Jeff Law <law@redhat.com>
7725
7726 PR target/79404
7727 * ira-costs.c (scan_one_insn): Initialize register move costs
7728 for pseudos seen in USE/CLOBBER insns.
7729
7730 PR tree-optimization/79095
7731 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
7732 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
7733 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
7734 if the operands are known to be not equal, then the resulting range
7735 is ~[0,0].
7736 (intersect_ranges): If the new range is ~[0,0] and the old range is
7737 wide, then prefer ~[0,0].
7738 * tree-vrp.c (overflow_comparison_p_1): New function.
7739 (overflow_comparison_p): New function.
7740 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
7741 if NAME is used in an overflow test.
7742 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
7743 overflow check that can be expressed as an equality test, then adjust
7744 ops to be that equality test.
7745
7746 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7747
7748 * config/s390/s390-builtin-types.def: Remove flags argument.
7749 * config/s390/s390.c (s390_init_builtins): Likewise.
7750
7751 2017-02-14 Martin Liska <mliska@suse.cz>
7752
7753 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
7754 vector. Fix trailing white spaces.
7755
7756 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
7757
7758 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
7759 HFmode.
7760
7761 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7762
7763 PR rtl-optimization/68664
7764 * config/arm/arm.c (arm_sched_can_speculate_insn):
7765 New function. Declare prototype.
7766 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
7767
7768 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7769
7770 PR rtl-optimization/68664
7771 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
7772 New function.
7773 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
7774
7775 2017-02-14 Amit Pawar <amit.pawar@amd.com>
7776
7777 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
7778 max skip bytes for function, loop and jump.
7779
7780 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7781
7782 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
7783 ABS_EXPR for gimple dump.
7784
7785 2017-02-14 Jakub Jelinek <jakub@redhat.com>
7786
7787 PR target/79462
7788 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
7789
7790 PR tree-optimization/79408
7791 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
7792 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
7793 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
7794 also if rhs1 is INTEGER_CST.
7795
7796 2017-02-14 Richard Biener <rguenther@suse.de>
7797
7798 PR middle-end/79432
7799 * tree-into-ssa.c (insert_phi_nodes): When the function can
7800 have abnormal edges rewrite SSA names with broken use-def
7801 dominance out of SSA and register them for PHI insertion.
7802
7803 2017-02-13 Martin Sebor <msebor@redhat.com>
7804
7805 PR middle-end/79496
7806 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
7807 clearing info.nowrite flag when snprintf size argument is a range.
7808
7809 2017-02-13 Jakub Jelinek <jakub@redhat.com>
7810
7811 * cprop.c (cprop_jump): Add missing space in string literal.
7812 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
7813 (get_constraint_for_component_ref): Likewise.
7814 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
7815 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
7816 * lra-constraints.c (process_alt_operands): Likewise.
7817 * ipa-inline.c (inline_small_functions): Likewise.
7818 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
7819 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7820 * trans-mem.c (diagnose_tm_1_op): Likewise.
7821 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
7822 (grid_parallel_clauses_gridifiable): Likewise.
7823
7824 * config/nvptx/mkoffload.c (process): Add space in between
7825 , and %d.
7826
7827 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
7828 "MOD4_SSE_REGS" and "ALL_REGS".
7829
7830 * spellcheck.c (test_data): Add , in between "foo" and "food".
7831
7832 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7833
7834 PR target/79449
7835 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
7836 boundary crossing check and subsequent code generation agree.
7837
7838 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7839
7840 * config/aarch64/aarch64.c (has_memory_op): Delete.
7841 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
7842 has_memory_op.
7843
7844 2017-02-13 Jakub Jelinek <jakub@redhat.com>
7845
7846 PR rtl-optimization/79388
7847 PR rtl-optimization/79450
7848 * combine.c (distribute_notes): When removing TEM_INSN for which
7849 corresponding dest has last value recorded, invalidate that last
7850 value.
7851
7852 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7853
7854 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
7855 of explicit '@'. Add missing assembly comment marker on branch costs
7856 printout.
7857
7858 2017-02-13 Nathan Sidwell <nathan@acm.org>
7859
7860 * gengtype-lex.l (<in_struct>): Add '/'.
7861
7862 2017-02-13 Martin Liska <mliska@suse.cz>
7863
7864 PR c/79471
7865 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
7866
7867 2017-02-13 Richard Biener <rguenther@suse.de>
7868
7869 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
7870 Remove.
7871 * configure: Re-generate.
7872 * config.in: Likewise.
7873 * graphite-dependences.c: Simplify as if
7874 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
7875 * graphite-isl-ast-to-gimple.c: Likewise.
7876 * graphite-optimize-isl.c: Likewise.
7877 * graphite-poly.c: Likewise.
7878 * graphite-sese-to-poly.c: Likewise.
7879 * graphite.h: Likewise.
7880 * toplev.c: Include isl/version.h and use isl_version () for
7881 printing the ISL version.
7882 * doc/install.texi: Update ISL requirement.
7883
7884 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
7885
7886 * doc/standards.texi (Standards): Update reference to
7887 Objective-C 2.0.
7888
7889 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
7890
7891 * doc/extend.texi (Named Address Spaces): sourceware.org now
7892 defaults to https.
7893 * doc/install.texi (Binaries): Ditto.
7894 (Specific): Ditto.
7895
7896 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
7897
7898 * doc/cpp.texi: Replace "stringify"/"stringification" with C
7899 standard terminology "stringize"/"stringizing" throughout.
7900 * doc/cppinternals.texi: Likewise.
7901
7902 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
7903
7904 * doc/extend.texi: Fix some spelling mistakes and typos.
7905 * doc/invoke.texi: Likewise.
7906
7907 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
7908
7909 PR ipa/79224
7910 * params.def (inline-min-speedup) Change from 10 to 8.
7911
7912 2017-02-11 Jakub Jelinek <jakub@redhat.com>
7913
7914 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
7915 4.5.
7916
7917 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
7918
7919 PR ipa/79224
7920 * ipa-inline-analysis.c (get_minimal_bb): New function.
7921 (record_modified): Use it.
7922 (remap_edge_change_prob): Handle also ancestor functions.
7923
7924 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
7925
7926 * doc/contrib.texi (Contributors): Remove broken link into
7927 the Mauve CVS repository.
7928
7929 2017-02-11 Jakub Jelinek <jakub@redhat.com>
7930
7931 PR middle-end/79454
7932 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
7933 result computation whenever lhs doesn't have vector mode, not
7934 just when it has BLKmode.
7935
7936 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
7937
7938 * doc/makefile.texi (profiledbootstrap): Refer to the
7939 installation instructions only in textual form.
7940
7941 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7942
7943 PR target/79295
7944 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
7945
7946 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
7947
7948 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
7949 (Specific): Update mingw-w64 reference.
7950 (Binaries): Ditto.
7951 (Specific): Remove broken link to Renesas RX processor.
7952
7953 2017-02-10 Richard Biener <rguenther@suse.de>
7954
7955 * toplev.c (process_options): Do not mention obsolete graphite
7956 options when printing sorry message about missing graphite support.
7957 Mention -floop-nest-optimize.
7958
7959 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
7960
7961 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
7962 (vtst_p16): Likewise.
7963 (vtstq_p8): Likewise.
7964 (vtstq_p16): Likewise.
7965 (vtst_p64): New.
7966 (vtstq_p64): Likewise.
7967 * config/arm/arm_neon.h (vgetq_lane_p64): New.
7968 (vset_lane_p64): New.
7969 (vsetq_lane_p64): New.
7970
7971 2017-02-10 Jakub Jelinek <jakub@redhat.com>
7972
7973 PR tree-optimization/79411
7974 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
7975 stmt operands are SSA_NAMEs used in abnormal phis.
7976 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
7977 phis.
7978
7979 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
7980
7981 PR ipa/70795
7982 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
7983 flag if needed.
7984
7985 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
7986
7987 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
7988
7989 2017-02-09 Jakub Jelinek <jakub@redhat.com>
7990
7991 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
7992 to avoid warning.
7993
7994 PR c/79413
7995 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
7996 not arbitrary TREE_CONSTANT.
7997
7998 PR c/79431
7999 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
8000 "omp declare target link" attribute unless is_global_var.
8001 * omp-offload.c (find_link_var_op): Likewise.
8002
8003 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
8004 Chung-Lin Tang <cltang@codesourcery.com>
8005
8006 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
8007 OMP_CLAUSE_TILE.
8008 (gimplify_adjust_omp_clauses): Don't delete TILE.
8009 (gimplify_omp_for): Deal with TILE.
8010 * internal-fn.c (expand_GOACC_TILE): New function.
8011 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
8012 (GOACC_TILE): New.
8013 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
8014 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
8015 element fields.
8016 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
8017 avoid DIV for outermost collapse var.
8018 (expand_oacc_for): Insert tile element loop as needed. Adjust.
8019 Remove out of date comments, fix whitespace.
8020 * omp-general.c (omp_extract_for_data): Deal with tiling.
8021 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
8022 adjust OLF_DIM_BASE value.
8023 (struct omp_for_data): Add tiling field.
8024 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
8025 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
8026 for auto loops. Remove default auto determining, moved to
8027 oacc_loop_fixed_partitions.
8028 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
8029 stmts, add e_mask field.
8030 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
8031 (oacc_thread_numbers): Use oacc_dim_call.
8032 (oacc_xform_tile): New.
8033 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
8034 (finish_oacc_loop): Adjust for ifns vector.
8035 (oacc_loop_discover_walk): Append loop abstraction sites to list,
8036 add case for GOACC_TILE fns.
8037 (oacc_loop_xform_loop): Delete.
8038 (oacc_loop_process): Iterate over call list directly, and add
8039 handling for GOACC_TILE fns.
8040 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
8041 dump partitioning.
8042 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
8043 vector partitioning to outer loops. Assign 2 partitions to loops
8044 when available. Add TILE handling.
8045 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
8046 (execite_oacc_device_lower): Process GOACC_TILE fns,
8047 ignore unknown specs.
8048 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
8049 * tree.c (omp_clause_num_ops): Adjust TILE ops.
8050 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
8051
8052 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
8053
8054 * configure.ac (ACX_BUGURL): Update.
8055 * configure: Regenerate.
8056
8057 2017-02-09 Richard Biener <rguenther@suse.de>
8058
8059 PR tree-optimization/69823
8060 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
8061 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
8062
8063 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
8064
8065 * config/arc/arc-c.def: Add __NPS400__ definition.
8066 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
8067 (TARGET_NPS400): Define.
8068
8069 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
8070
8071 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
8072 file.
8073 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
8074 pointer, arch_info.
8075 (arc_cpu_types): Fill the arch_info field with a pointer into the
8076 arc_arch_types table.
8077 (arc_selected_cpu): Declare.
8078 * config/arc/arc.c (arc_selected_cpu): Make global.
8079 (arc_selected_arch): Delete.
8080 (arc_base_cpu): Delete.
8081 (arc_override_options): Remove references to deleted variables,
8082 update access to arch information.
8083 (ARC_OPT): Update access to arch information.
8084 (ARC_OPTX): Likewise.
8085 * config/arc/arc.h (arc_base_cpu): Remove declaration.
8086 (TARGET_ARC600): Update access to arch information.
8087 (TARGET_ARC601): Likewise.
8088 (TARGET_ARC700): Likewise.
8089 (TARGET_EM): Likewise.
8090 (TARGET_HS): Likewise.
8091 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
8092 information.
8093
8094 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
8095
8096 PR target/78604
8097 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
8098 condition/operands for integer GE/LE/GEU/LEU operations.
8099
8100 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
8101
8102 PR translation/79397
8103 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
8104 of AltiVec.
8105
8106 2017-02-08 Martin Jambor <mjambor@suse.cz>
8107
8108 PR ipa/79375
8109 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
8110 whether allocation happened.
8111 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
8112 nothing was allocated.
8113
8114 2017-02-08 Jakub Jelinek <jakub@redhat.com>
8115
8116 PR tree-optimization/79408
8117 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
8118 constant, but SSA_NAME with a known integer range, use the minimum
8119 of that range instead of op1 to determine if modulo can be replaced
8120 with its first operand.
8121
8122 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8123
8124 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
8125
8126 2017-02-08 Richard Biener <rguenther@suse.de>
8127
8128 PR tree-optimization/71824
8129 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
8130 Check all loops contained in the merged region.
8131
8132 2017-02-07 Andrew Pinski <apinski@cavium.com>
8133
8134 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
8135
8136 2017-02-07 Andrew Pinski <apinski@cavium.com>
8137
8138 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
8139 (thunderxt88): Likewise.
8140 (thunderxt81): Disable LSE and change v8.1 to v8.
8141 (thunderxt83): Likewise.
8142
8143 2017-02-07 Jakub Jelinek <jakub@redhat.com>
8144 Richard Biener <rguenther@suse.de>
8145
8146 PR middle-end/79399
8147 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
8148 type from int to size_t.
8149 * ira-costs.c (struct_costs_size): Change type from int to size_t.
8150
8151 2017-02-07 Jakub Jelinek <jakub@redhat.com>
8152
8153 PR rtl-optimization/79386
8154 * cprop.c (bypass_conditional_jumps): Initialize
8155 bypass_last_basic_block already before splitting bbs after
8156 unconditional traps...
8157 (bypass_conditional_jumps): ... rather than here.
8158
8159 PR target/79299
8160 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
8161 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
8162 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
8163 fix -masm=intel patterns.
8164
8165 2017-02-07 Richard Biener <rguenther@suse.de>
8166
8167 PR tree-optimization/79256
8168 PR middle-end/79278
8169 * builtins.c (get_object_alignment_2): Use min_align_of_type
8170 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
8171 and ADJUST_FIELD_ALIGN.
8172
8173 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
8174 type parameter.
8175 * doc/tm.texi: Regenerate.
8176 * stor-layout.c (layout_decl): Adjust.
8177 (update_alignment_for_field): Likewise.
8178 (place_field): Likewise.
8179 (min_align_of_type): Likewise.
8180 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
8181 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
8182 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
8183 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
8184 * config/frv/frv.c (frv_adjust_field_align): Likewise.
8185 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
8186 * config/i386/i386.c (x86_field_alignment): Likewise.
8187 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
8188 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
8189 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8190 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8191 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
8192 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
8193 Likewise.
8194
8195 Revert
8196 2017-01-30 Richard Biener <rguenther@suse.de>
8197
8198 PR tree-optimization/79256
8199 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
8200 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
8201 alignment on TYPE.
8202
8203 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
8204
8205 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
8206 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
8207 builtins to SImode and emit a zero-extend, if necessary.
8208
8209 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
8210
8211 * docs/invoke.texi (RISC-V Options): Alphabetize.
8212
8213 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
8214
8215 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
8216 options.
8217
8218 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
8219
8220 * config/riscv/riscv.c: New file.
8221 * gcc/common/config/riscv/riscv-common.c: Likewise.
8222 * config.gcc: Likewise.
8223 * config/riscv/constraints.md: Likewise.
8224 * config/riscv/elf.h: Likewise.
8225 * config/riscv/generic.md: Likewise.
8226 * config/riscv/linux.h: Likewise.
8227 * config/riscv/multilib-generator: Likewise.
8228 * config/riscv/peephole.md: Likewise.
8229 * config/riscv/pic.md: Likewise.
8230 * config/riscv/predicates.md: Likewise.
8231 * config/riscv/riscv-builtins.c: Likewise.
8232 * config/riscv/riscv-c.c: Likewise.
8233 * config/riscv/riscv-ftypes.def: Likewise.
8234 * config/riscv/riscv-modes.def: Likewise.
8235 * config/riscv/riscv-opts.h: Likewise.
8236 * config/riscv/riscv-protos.h: Likewise.
8237 * config/riscv/riscv.h: Likewise.
8238 * config/riscv/riscv.md: Likewise.
8239 * config/riscv/riscv.opt: Likewise.
8240 * config/riscv/sync.md: Likewise.
8241 * config/riscv/t-elf-multilib: Likewise.
8242 * config/riscv/t-linux: Likewise.
8243 * config/riscv/t-linux-multilib: Likewise.
8244 * config/riscv/t-riscv: Likewise.
8245 * configure.ac: Likewise.
8246 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
8247 Waterman as RISC-V maintainers.
8248 * doc/install.texi: Add RISC-V entries.
8249 * doc/invoke.texi: Add RISC-V options section.
8250 * doc/md.texi: Add RISC-V constraints section.
8251 * configure: Regenerated.
8252
8253 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8254
8255 PR target/66144
8256 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
8257 false values to be constant vectors with all 0 or all 1 bits set.
8258 (vcondu<mode><mode>): Likewise.
8259 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
8260 predicate.
8261 (fpmask_comparison_operator): Update comment.
8262 (vecint_comparison_operator): New predicate.
8263 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
8264 vector conditionals when the true and false values are constant
8265 vectors with all 0 bits or all 1 bits set.
8266
8267 2017-02-06 Martin Sebor <msebor@redhat.com>
8268
8269 PR tree-optimization/79376
8270 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
8271
8272 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
8273
8274 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
8275 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
8276 to simplify split condition.
8277
8278 2017-02-06 Jakub Jelinek <jakub@redhat.com>
8279
8280 * omp-expand.c (oxpand_omp_atomic_fetch_op,
8281 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
8282 false.
8283
8284 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
8285
8286 PR rtl-optimization/68664
8287 * target.def (can_speculate_insn): New hook.
8288 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
8289 * doc/tm.texi: Regenerate.
8290 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
8291 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
8292 (rs6000_sched_can_speculate_insn): New function.
8293
8294 2017-02-06 Jakub Jelinek <jakub@redhat.com>
8295
8296 PR tree-optimization/79284
8297 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
8298 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
8299 vectorizable_mask_load_store, vectorizable_operation,
8300 vect_is_simple_cond, get_same_sized_vectype): Use it instead
8301 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
8302 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
8303 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
8304 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
8305 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8306 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
8307 is_gimple_assign (stmt). Replace another such test with
8308 is_gimple_assign (stmt).
8309
8310 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
8311
8312 PR target/78883
8313 * config/avr/avr.c (rtl-iter.h): Include it.
8314 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
8315 (avr_legitimate_combined_insn): ...and implementation.
8316
8317 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
8318
8319 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
8320 * config/s390/s390.c (s390_const_operand_ok)
8321 (s390_canonicalize_comparison, s390_extract_part)
8322 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
8323 (s390_contiguous_bitmask_p, s390_rtx_costs)
8324 (legitimize_pic_address): Likewise.
8325 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
8326 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
8327 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
8328 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
8329 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
8330
8331 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
8332
8333 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
8334 REGNO($0) == REGNO($1).
8335
8336 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8337
8338 * config/s390/linux.h(SIZE_TYPE): Add comment.
8339
8340 2017-02-06 Julian Brown <julian@codesourcery.com>
8341 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
8342 Virendra Pathak <virendra.pathak@broadcom.com>
8343
8344 * config/aarch64/aarch64-cores.def: Change the scheduler
8345 to Thunderx2t99.
8346 * config/aarch64/aarch64.md: Include thunderx2t99.md.
8347 * config/aarch64/thunderx2t99.md: New file.
8348
8349 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
8350
8351 * doc/standards.texi (Go Language): Update link to language
8352 standard.
8353
8354 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
8355
8356 * tree-eh.c (lower_resx): Sanitize profile.
8357 (cleanup_empty_eh_move_lp): Likewise.
8358
8359 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
8360
8361 PR tree-ssa/79347
8362 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
8363 ELSE_PROB.
8364 * cfgloopmanip.h (loop_version): Update prototype.
8365 * modulo-sched.c (sms_schedule): Update call of loop_version.
8366 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
8367 * tree-parloops.c (gen_parallel_loop): Likewise.
8368 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
8369 * tree-ssa-loop-split.c (split_loop): Likewise.
8370 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
8371 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
8372
8373 2017-02-05 Martin Liska <mliska@suse.cz>
8374
8375 PR bootstrap/78985
8376 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
8377 variable to NULL.
8378 (print_operand_address): Initialize a struct to zero.
8379
8380 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
8381
8382 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
8383 garbage collector only in textual form.
8384
8385 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
8386
8387 * doc/extend.texi (x86 specific memory model extensions for
8388 transactional memory): Simplify a phrase.
8389
8390 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
8391
8392 PR target/79353
8393 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
8394 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
8395 (atomic_storedi_1): Likewise.
8396
8397 2017-02-04 Jakub Jelinek <jakub@redhat.com>
8398
8399 PR tree-optimization/79338
8400 * tree-parloops.c (gather_scalar_reductions): Don't call
8401 vect_analyze_loop_form for loop->inner before destroying loop's
8402 loop_vinfo.
8403
8404 2017-02-03 Martin Sebor <msebor@redhat.com>
8405
8406 PR tree-optimization/79327
8407 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
8408 when precision has resulted in leading zeros.
8409 (format_integer): Adjust the likely counter to assume an unknown
8410 argument that may be zero is non-zero.
8411
8412 2017-02-03 Jason Merrill <jason@redhat.com>
8413
8414 PR c++/78689
8415 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
8416 avoid copying non-taken branch.
8417
8418 2017-02-03 Jakub Jelinek <jakub@redhat.com>
8419
8420 PR tree-optimization/79340
8421 * tree-vect-loop.c (vectorizable_reduction): Release
8422 vec_defs elements after safe_splicing them into other vectors.
8423 Formatting fixes.
8424
8425 PR tree-optimization/79327
8426 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
8427 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
8428 dirtype.
8429 (format_integer): Use wide_int_to_tree instead of build_int_cst
8430 + to_?hwi. If argmin is NULL, just set argmin and argmax to
8431 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
8432 of shortest and longest sequence.
8433
8434 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
8435
8436 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
8437 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
8438
8439 2017-02-03 Walter Lee <walt@tilera.com>
8440
8441 PR target/78862
8442 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
8443 after initial stackframe link reg save.
8444 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
8445
8446 2017-02-03 Jakub Jelinek <jakub@redhat.com>
8447
8448 PR target/79354
8449 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
8450 wu for stxssp alternative.
8451
8452 2017-02-03 Martin Sebor <msebor@redhat.com>
8453
8454 PR tree-optimization/79352
8455 * gimple-fold.c (get_range_strlen): Add argument.
8456 (get_range_strlen): Change return type to bool.
8457 (get_maxval_strlen): Pass in a dummy argument.
8458 * gimple-fold.h (get_range_strlen): Change return type to bool.
8459 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
8460 * tree.h (array_at_struct_end_p): Add argument.
8461 * tree.c (array_at_struct_end_p): Handle it.
8462
8463 2017-02-03 Martin Liska <mliska@suse.cz>
8464
8465 PR lto/66295
8466 * multiple_target.c (create_dispatcher_calls): Redirect edge
8467 from a caller of a dispatcher.
8468 (expand_target_clones): Make the clones local.
8469 (ipa_target_clone): Do both target clones and resolvers.
8470 (ipa_dispatcher_calls): Remove the pass.
8471 (pass_dispatcher_calls::gate): Likewise.
8472 (make_pass_dispatcher_calls): Likewise.
8473 * passes.def (pass_target_clone): Put as very first IPA early
8474 pass.
8475
8476 2017-02-03 Martin Liska <mliska@suse.cz>
8477
8478 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
8479 in case of a function with ifunc attribute.
8480
8481 2017-02-03 Martin Liska <mliska@suse.cz>
8482
8483 * cgraph.c (cgraph_node::dump): Dump function version info.
8484 * symtab.c (symtab_node::dump_base): Add missing new line.
8485
8486 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
8487
8488 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
8489 (ifcombine_ifandif): Use it.
8490
8491 2017-02-03 Martin Liska <mliska@suse.cz>
8492
8493 * doc/invoke.texi: Document default value for
8494 use-after-scope-direct-emission-threshold.
8495
8496 2017-02-03 Martin Liska <mliska@suse.cz>
8497
8498 PR tree-optimization/79339
8499 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
8500 (format_floating): Likewise.
8501
8502 2017-02-03 Martin Liska <mliska@suse.cz>
8503
8504 PR ipa/79337
8505 * ipa-prop.c (ipa_node_params_t::insert): Remove current
8506 implementation.
8507 (ipa_node_params_t::remove): Likewise.
8508 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
8509 initialization from removed ipa_node_params_t::insert.
8510 (ipa_node_params::~ipa_node_params): Move from removed
8511 ipa_node_params_t::release.
8512 * symbol-summary.h (symbol_summary::m_released): New member.
8513 Do not release a summary twice. Do not allow to call finalizer
8514 for types of a summary that live in GGC memory.
8515
8516 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
8517
8518 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
8519 cmp_branch fusion.
8520
8521 2017-02-02 Martin Sebor <msebor@redhat.com>
8522
8523 PR middle-end/79275
8524 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
8525 (format_string): Tighten up the range of output for non-constant
8526 strings and correct the expected range for wide non-constant strings.
8527
8528 2017-02-02 Martin Sebor <msebor@redhat.com>
8529
8530 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
8531
8532 PR middle-end/32003
8533 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
8534 index.
8535 (-fdump-tree-@var): Add to index and document how to come up
8536 with pass-specific option and dump file names.
8537 (-fdump-passes): Clarify where to look for output.
8538
8539 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
8540
8541 PR middle-end/77445
8542 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
8543 statistics of the analyzed path; allow threading for speed when
8544 any of BBs along the path are optimized for speed.
8545
8546 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
8547
8548 PR middle-end/78468
8549 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
8550 settings of the virtual registers.
8551
8552 Revert again
8553 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8554
8555 * explow.c (get_dynamic_stack_size): Take known alignment of stack
8556 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
8557 needed.
8558
8559 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8560
8561 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
8562 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
8563
8564 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8565
8566 * config/s390/s390.md: Add missing comments with the expanded
8567 mnemonics.
8568 * config/s390/vector.md: Likewise.
8569 * config/s390/vx-builtins.md: Likewise.
8570
8571 2017-02-02 Jakub Jelinek <jakub@redhat.com>
8572
8573 PR target/79197
8574 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
8575 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
8576 conditions on a single line.
8577
8578 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8579
8580 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
8581 __S390_VX__ to __VX__.
8582
8583 2017-02-01 Andrew Pinski <apinski@cavium.com>
8584
8585 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
8586 stmt_info to record_stmt_cost.
8587 (vect_get_known_peeling_cost): Pass stmt_info if known to
8588 record_stmt_cost.
8589 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
8590 cpu_vector_cost field into
8591 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
8592 field into vec_int_stmt_cost and vec_fp_stmt_cost.
8593 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
8594 splitting of scalar_stmt_cost and vec_stmt_cost.
8595 (thunderx_vector_cost): Likewise.
8596 (cortexa57_vector_cost): LIkewise.
8597 (exynosm1_vector_cost): Likewise.
8598 (xgene1_vector_cost): Likewise.
8599 (thunderx2t99_vector_cost): Improve after the splitting of the two
8600 fields.
8601 (aarch64_builtin_vectorization_cost): Update for the splitting of
8602 scalar_stmt_cost and vec_stmt_cost.
8603
8604 2017-02-01 Torvald Riegel <triegel@redhat.com>
8605 Richard Henderson <rth@redhat.com>
8606
8607 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
8608 conditional on existance of a fast atomic load.
8609 * optabs-query.c (can_atomic_load_p): New function.
8610 * optabs-query.h (can_atomic_load_p): Declare it.
8611 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
8612 no fast atomic load is available for the particular size of access.
8613 (expand_atomic_compare_and_swap): Likewise.
8614 (expand_atomic_load): Likewise.
8615 (expand_atomic_store): Likewise.
8616 (expand_atomic_fetch_op): Likewise.
8617 * testsuite/lib/target-supports.exp
8618 (check_effective_target_sync_int_128): Remove x86 because it provides
8619 no fast atomic load.
8620 (check_effective_target_sync_int_128_runtime): Likewise.
8621
8622 2017-02-01 Richard Biener <rguenther@suse.de>
8623
8624 * graphite.c: Include tree-vectorizer.h for find_loop_location.
8625 (graphite_transform_loops): Provide opt-info for optimized nests.
8626 * tree-parloop.c (parallelize_loops): Provide opt-info for
8627 parallelized loops.
8628
8629 2017-02-01 Richard Biener <rguenther@suse.de>
8630
8631 PR middle-end/79315
8632 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
8633 was not set before.
8634
8635 2017-02-01 Richard Biener <rguenther@suse.de>
8636
8637 PR tree-optimization/71824
8638 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
8639 Verify the loops are valid in the merged SESE region.
8640 (scop_detection::can_represent_loop_1): Check analyzing the
8641 evolution of the number of iterations in the region succeeds.
8642
8643 2017-01-31 Ian Lance Taylor <iant@golang.org>
8644
8645 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
8646 REG_ARGS_SIZE note to 32-bit push insns and call insn.
8647
8648 2017-01-31 David Malcolm <dmalcolm@redhat.com>
8649
8650 PR preprocessor/79210
8651 * input.c (get_substring_ranges_for_loc): Replace line_width
8652 assertion with error-handling.
8653
8654 2017-01-31 Richard Biener <rguenther@suse.de>
8655
8656 PR tree-optimization/77318
8657 * graphite-sese-to-poly.c (extract_affine): Fix assert.
8658 (create_pw_aff_from_tree): Take loop parameter.
8659 (add_condition_to_pbb): Pass loop of the condition to
8660 create_pw_aff_from_tree.
8661
8662 2017-01-31 Jakub Jelinek <jakub@redhat.com>
8663
8664 * config/s390/s390.c (s390_asan_shadow_offset): New function.
8665 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
8666
8667 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
8668
8669 PR target/78597
8670 PR target/79038
8671 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
8672 no longer used.
8673 (convert_int_to_float128): Likewise.
8674 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
8675 (convert_int_to_float128): Likewise.
8676 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
8677 (UNSPEC_IEEE128_CONVERT): Likewise.
8678 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
8679 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
8680 Use local variables for IBM extended format.
8681 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
8682 (fix_trunc<mode>si2_fprs): Likewise.
8683 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
8684 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
8685 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
8686 to know that we can now have integers of all sizes in vector
8687 registers.
8688 (fix<uns>_<mode>di2_hw): Likewise.
8689 (float<uns>_<mode>si2_hw): Likewise.
8690 (fix_<mode>si2_hw): Likewise.
8691 (fixuns_<mode>si2_hw): Likewise.
8692 (float<uns>_<mode>di2_hw): Likewise.
8693 (float_<mode>di2_hw): Likewise.
8694 (float_<mode>si2_hw): Likewise.
8695 (floatuns_<mode>di2_hw): Likewise.
8696 (floatuns_<mode>si2_hw): Likewise.
8697 (xscvqp<su>wz_<mode>): Delete, no longer used.
8698 (xscvqp<su>dz_<mode>): Likewise.
8699 (xscv<su>dqp_<mode>): Likewise.
8700 (ieee128_mfvsrd_64bit): Likewise.
8701 (ieee128_mfvsrd_32bit): Likewise.
8702 (ieee128_mfvsrwz): Likewise.
8703 (ieee128_mtvsrw): Likewise.
8704 (ieee128_mtvsrd_64bit): Likewise.
8705 (ieee128_mtvsrd_32bit): Likewise.
8706
8707 2017-01-31 Martin Liska <mliska@suse.cz>
8708
8709 PR ipa/79285
8710 * ipa-prop.c (ipa_free_all_node_params): Call release method
8711 instead of ~sumbol_summary to not to trigger double times
8712 dtor of hash_map.
8713
8714 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
8715
8716 PR tree-optimization/71691
8717 * bitmap.h (class auto_bitmap): New.
8718 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
8719 is_maybe_undefined instead of ssa_undefined_value_p.
8720
8721 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8722
8723 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
8724 __S390_ARCH_LEVEL__ to __ARCH__.
8725
8726 2017-01-31 Jakub Jelinek <jakub@redhat.com>
8727
8728 PR tree-optimization/79267
8729 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
8730 if should_remove_lhs_p is true.
8731
8732 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
8733
8734 PR debug/63238
8735 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
8736 (add_alignment_attribute): New.
8737 (base_type_die): Add alignment attribute.
8738 (subrange_type_die): Likewise.
8739 (modified_type_die): Likewise.
8740 (gen_array_type_die): Likewise.
8741 (gen_descr_array_type_die: Likewise.
8742 (gen_enumeration_type_die): Likewise.
8743 (gen_subprogram_die): Likewise.
8744 (gen_variable_die): Likewise.
8745 (gen_field_die): Likewise.
8746 (gen_ptr_to_mbr_type_die): Likewise.
8747 (gen_struct_or_union_type_die): Likewise.
8748 (gen_subroutine_type_die): Likewise.
8749 (gen_typedef_die): Likewise.
8750 (base_type_cmp): Compare alignment attribute.
8751
8752 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8753
8754 PR target/79170
8755 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
8756 (setb_unsigned) New pattern for setb with CCUNS.
8757 * config/rs6000/rs6000.c (expand_block_compare): Use a different
8758 subfc./subfe sequence to avoid overflow problems. Generate a
8759 shorter sequence with cmpld/setb for power9.
8760 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
8761 for generating subfc. instruction.
8762 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
8763 now uses this instruction.
8764
8765 2017-01-30 Ian Lance Taylor <iant@google.com>
8766
8767 PR debug/79289
8768 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
8769 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
8770
8771 2017-01-30 Martin Sebor <msebor@redhat.com>
8772
8773 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
8774 Move constant to the right of a relational operator.
8775 (get_mpfr_format_length, format_character, format_string): Ditto.
8776 (should_warn_p, maybe_warn): Same.
8777
8778 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
8779
8780 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
8781
8782 PR lto/79061
8783 * asan.c (get_translation_unit_decl): Remove function.
8784 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
8785
8786 2017-01-30 Martin Liska <mliska@suse.cz>
8787
8788 PR gcov-profile/79259
8789 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
8790 -fprofile-generate.
8791
8792 2017-01-30 Martin Liska <mliska@suse.cz>
8793
8794 PR bootstrap/78985
8795 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
8796 Initialize variables with NULL value.
8797
8798 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
8799
8800 PR target/79260
8801 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
8802 tm_p_file.
8803 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
8804
8805 2017-01-30 Richard Biener <rguenther@suse.de>
8806
8807 PR tree-optimization/79276
8808 * tree-vrp.c (process_assert_insertions): Properly adjust common
8809 when removing a duplicate.
8810
8811 * gcc.dg/torture/pr79276.c: New testcase.
8812
8813 2017-01-30 Richard Biener <rguenther@suse.de>
8814
8815 PR tree-optimization/79256
8816 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
8817 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
8818 alignment on TYPE.
8819 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
8820
8821 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
8822
8823 PR target/79240
8824 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
8825 ("*r<noxa>sbg_<mode>_sll_bitmask")
8826 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
8827 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
8828 Use contiguous_bitmask_nowrap_operand.
8829
8830 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8831
8832 PR target/79268
8833 * config/rs6000/altivec.h (vec_xl): Revise #define.
8834 (vec_xst): Likewise.
8835
8836 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
8837
8838 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
8839
8840 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
8841
8842 PR rtl-optimization/79194
8843 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
8844 traps before call to bypass_conditional_jumps.
8845
8846 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
8847
8848 PR tree-optimization/71374
8849 * lra-constraints.c (check_conflict_input_operands): New.
8850 (match_reload): Use it.
8851
8852 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
8853
8854 PR target/79131
8855 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
8856 account to calculate conflict_set.
8857
8858 2017-01-27 Bin Cheng <bin.cheng@arm.com>
8859
8860 PR rtl-optimization/78559
8861 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
8862 other_insn in combine.
8863
8864 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
8865
8866 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
8867 uint16_type_node for BT_UINT16.
8868
8869 2017-01-27 David Malcolm <dmalcolm@redhat.com>
8870
8871 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
8872 "RTL Tests" to menu.
8873 (GIMPLE Tests): New node.
8874 (RTL Tests): New node.
8875
8876 2017-01-27 Richard Biener <rguenther@suse.de>
8877
8878 PR tree-optimization/79245
8879 * tree-loop-distribution.c (distribute_loop): Apply cost
8880 modeling also to detected patterns.
8881
8882 2017-01-27 Richard Biener <rguenther@suse.de>
8883
8884 PR tree-optimization/71433
8885 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
8886 (compare_assert_loc): New function.
8887 (process_assert_insertions): Sort and optimize assert locations
8888 to remove duplicates and push down identical assertions on
8889 edges to their destination block.
8890
8891 2017-01-27 Richard Biener <rguenther@suse.de>
8892
8893 PR tree-optimization/79244
8894 * tree-vrp.c (remove_range_assertions): Forcefully propagate
8895 out SSA names even if abnormal.
8896
8897 2017-01-27 Jakub Jelinek <jakub@redhat.com>
8898
8899 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
8900 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
8901 instead of MPFR_RNDN.
8902
8903 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
8904
8905 PR target/79239
8906 * arm.c (arm_option_override): Don't call build_target_option_node
8907 until after doing all option overrides.
8908 (arm_valid_target_attribute_tree): Likewise.
8909
8910 2017-01-27 Martin Liska <mliska@suse.cz>
8911
8912 * doc/invoke.texi (-fprofile-arcs): Document profiling support
8913 for {cd}tors and C++ {cd}tors.
8914
8915 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
8916
8917 * config/s390/s390.md ("*setmem_long_and")
8918 ("*setmem_long_and_31z"): Use zero_extend instead of and.
8919
8920 2017-01-26 Martin Sebor <msebor@redhat.com>
8921
8922 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
8923 of precision.
8924
8925 2017-01-26 Martin Sebor <msebor@redhat.com>
8926
8927 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
8928 HAVE_DFmode before using XFmode or DFmode.
8929 (parse_directive): Avoid using the z length modifier to avoid
8930 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
8931
8932 PR middle-end/78703
8933 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
8934 to accept adjustment as an array.
8935 (get_int_range): New function.
8936 (struct directive): Make width and prec arrays.
8937 (directive::set_width, directive::set_precision): Call get_int_range.
8938 (format_integer, format_floating): Handle width and precision ranges.
8939 (format_string, parse_directive): Same.
8940
8941 2017-01-26 Jakub Jelinek <jakub@redhat.com>
8942
8943 PR debug/79129
8944 * dwarf2out.c (generate_skeleton_bottom_up): For children with
8945 comdat_type_p set, just clone them, but keep the children in the
8946 original DIE.
8947
8948 PR debug/78835
8949 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
8950 which have direct callers with -fvar-tracking-assignments enabled
8951 in the current TU.
8952 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
8953 inside of type units.
8954
8955 2017-01-26 Martin Sebor <msebor@redhat.com>
8956
8957 PR middle-end/78703
8958 * gimple-ssa-sprintf.c (struct result_range): Add likely and
8959 unlikely counters.
8960 (struct format_result): Replace number_chars, number_chars_min,
8961 and number_chars_max with a single member of struct result_range.
8962 Remove bounded.
8963 (format_result::operator+=): Adjust.
8964 (struct fmtresult): Remove bounded. Handle likely and unlikely
8965 counters.
8966 (fmtresult::adjust_for_width_or_precision): New function.
8967 (fmtresult:type_max_digits): New function.
8968 (bytes_remaining): Handle likely and unlikely counters.
8969 (min_bytes_remaining): Remove.
8970 (format_percent): Simplify.
8971 (format_integer, format_floating): Set likely and unlikely counters.
8972 (get_string_length, format_character, format_string): Same.
8973 (format_plain, should_warn_p): New function.
8974 (maybe_warn): Call should_warn_p. Update diagnostic messages
8975 and handle those for all directives, including plain strings.
8976 (format_directive): Handle likely and unlikely counters.
8977 Remove unnecessary quoting from diagnostics. Add an informational
8978 note.
8979 (add_bytes): Remove.
8980 (pass_sprintf_length::compute_format_length): Simplify.
8981 (try_substitute_return_value): Handle likely and unlikely counters.
8982
8983 2017-01-26 Carl Love <cel@us.ibm.com>
8984
8985 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
8986 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
8987
8988 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
8989
8990 PR target/79131
8991 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
8992 endianess for subregs into account.
8993 * lra-constraints.c (lra_constraints): Do risky transformations
8994 always on the first iteration.
8995 * lra-lives.c (check_pseudos_live_through_calls): Add arg
8996 last_call_used_reg_set.
8997 (process_bb_lives): Define and use last_call_used_reg_set.
8998 * lra.c (lra): Always continue after lra_constraints on the first
8999 iteration.
9000
9001 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
9002
9003 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
9004 constant.
9005 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
9006
9007 2017-01-26 Jakub Jelinek <jakub@redhat.com>
9008
9009 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
9010 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
9011 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
9012 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
9013 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
9014 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
9015 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
9016 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
9017 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
9018
9019 2017-01-26 Marek Polacek <polacek@redhat.com>
9020
9021 PR c/79199
9022 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
9023 for the third operand.
9024
9025 2017-01-26 Jakub Jelinek <jakub@redhat.com>
9026
9027 PR middle-end/79236
9028 * omp-low.c (struct omp_context): Add simt_stmt field.
9029 (scan_omp_for): Return omp_context *.
9030 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
9031 context to the _simt_ SIMD stmt.
9032 (lower_omp_for): For combined SIMD with sibling _simt_
9033 SIMD, make sure to use the same decls in _looptemp_
9034 clauses as in the sibling.
9035
9036 2017-01-26 David Sherwood <david.sherwood@arm.com>
9037
9038 PR middle-end/79212
9039 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
9040 all contexts.
9041
9042 2017-01-26 Jakub Jelinek <jakub@redhat.com>
9043
9044 PR target/70465
9045 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
9046 emit fld b; fld a; if possible.
9047
9048 * brig-builtins.def: Update copyright years.
9049 * config/arm/arm_acle_builtins.def: Update copyright years.
9050
9051 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
9052
9053 PR target/79179
9054 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
9055 constraint instead of o for the stxsd instruction.
9056
9057 2017-01-25 Carl Love <cel@us.ibm.com>
9058
9059 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
9060 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
9061
9062 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
9063
9064 * doc/invoke.texi (C++ Dialect Options): Fix typo.
9065
9066 2017-01-25 Richard Biener <rguenther@suse.de>
9067
9068 PR tree-optimization/69264
9069 * target.def (vector_alignment_reachable): Improve documentation.
9070 * doc/tm.texi: Regenerate.
9071 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
9072 and add a comment.
9073 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
9074 earlier changes with respect to TYPE_USER_ALIGN.
9075 (vector_alignment_reachable_p): Likewise. Improve dumping.
9076
9077 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9078
9079 PR target/79145
9080 * config/arm/arm.md (xordi3): Force constant operand into a register
9081 for TARGET_IWMMXT.
9082
9083 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9084
9085 * doc/invoke.texi (-fstore-merging): Correct default optimization
9086 levels at which it is enabled.
9087 (-O): Move -fstore-merging from list to...
9088 (-O2): ... Here.
9089
9090 2017-01-25 Richard Biener <rguenther@suse.de>
9091
9092 PR debug/78363
9093 * omp-expand.c: Include debug.h.
9094 (expand_omp_taskreg): Make sure to generate early debug before
9095 outlining anything from a function.
9096 (expand_omp_target): Likewise.
9097 (grid_expand_target_grid_body): Likewise.
9098
9099 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
9100
9101 PR lto/79061
9102 * asan.c (get_translation_unit_decl): New function.
9103 (asan_add_global): Extract modules file name from globals
9104 TRANSLATION_UNIT_DECL name.
9105
9106 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
9107
9108 PR target/77439
9109 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
9110 for long calls with APCS frame and VFP.
9111
9112 2017-01-24 David Malcolm <dmalcolm@redhat.com>
9113
9114 * cfg.c (original_copy_tables_initialized_p): New function.
9115 * cfg.h (original_copy_tables_initialized_p): New decl.
9116 * cfgrtl.c (relink_block_chain): Guard the call to
9117 free_original_copy_tables with a call to
9118 original_copy_tables_initialized_p.
9119 * cgraph.h (symtab_node::native_rtl_p): New decl.
9120 * cgraphunit.c (symtab_node::native_rtl_p): New function.
9121 (symtab_node::needed_p): Don't assert for early assembly output
9122 for __RTL functions.
9123 (cgraph_node::finalize_function): Set "force_output" for __RTL
9124 functions.
9125 (cgraph_node::analyze): Bail out early for __RTL functions.
9126 (analyze_functions): Update assertion to support __RTL functions.
9127 (cgraph_node::expand): Bail out early for __RTL functions.
9128 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
9129 __RTL functions.
9130 * function.h (struct function): Update comment for field
9131 "pass_startwith".
9132 * gimple-expr.c: Include "tree-pass.h".
9133 (gimple_has_body_p): Return false for __RTL functions.
9134 * Makefile.in (OBJS): Add run-rtl-passes.o.
9135 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
9136 accessor.
9137 (gcc::pass_manager::get_clean_slate): New accessor.
9138 * passes.c: Include "insn-addr.h".
9139 (should_skip_pass_p): Add logging. Update logic for running
9140 "expand" to be compatible with both __GIMPLE and __RTL. Guard
9141 property-provider override so it is only done for gimple passes.
9142 Don't skip dfinit.
9143 (skip_pass): New function.
9144 (execute_one_pass): Call skip_pass when skipping passes.
9145 * read-md.c (md_reader::read_char): Support filtering
9146 the input to a subset of line numbers.
9147 (md_reader::md_reader): Initialize fields
9148 m_first_line and m_last_line.
9149 (md_reader::read_file_fragment): New function.
9150 * read-md.h (md_reader::read_file_fragment): New decl.
9151 (md_reader::m_first_line): New field.
9152 (md_reader::m_last_line): New field.
9153 * read-rtl-function.c (function_reader::create_function): Only
9154 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
9155 curr_properties. Set DECL_INITIAL to a dummy block.
9156 (read_rtl_function_body_from_file_range): New function.
9157 * read-rtl-function.h (read_rtl_function_body_from_file_range):
9158 New decl.
9159 * run-rtl-passes.c: New file.
9160 * run-rtl-passes.h: New file.
9161
9162 2017-01-24 Jeff Law <law@redhat.com>
9163
9164 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
9165 buffer size.
9166
9167 2017-01-24 Bin Cheng <bin.cheng@arm.com>
9168
9169 PR tree-optimization/79159
9170 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
9171 (record_nonwrapping_iv): Improve boundary using above function if no
9172 value range information.
9173
9174 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
9175 Martin Jambor <mjambor@suse.cz>
9176
9177 * brig-builtins.def: New file.
9178 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
9179 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
9180 (DEF_HSAIL_SAT_BUILTIN): Likewise.
9181 (DEF_HSAIL_INTR_BUILTIN): Likewise.
9182 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
9183 * builtin-types.def (BT_INT8): New.
9184 (BT_INT16): Likewise.
9185 (BT_UINT8): Likewise.
9186 (BT_UINT16): Likewise.
9187 (BT_FN_ULONG): Likewise.
9188 (BT_FN_UINT_INT): Likewise.
9189 (BT_FN_UINT_ULONG): Likewise.
9190 (BT_FN_UINT_LONG): Likewise.
9191 (BT_FN_UINT_PTR): Likewise.
9192 (BT_FN_ULONG_PTR): Likewise.
9193 (BT_FN_INT8_FLOAT): Likewise.
9194 (BT_FN_INT16_FLOAT): Likewise.
9195 (BT_FN_UINT32_FLOAT): Likewise.
9196 (BT_FN_UINT16_FLOAT): Likewise.
9197 (BT_FN_UINT8_FLOAT): Likewise.
9198 (BT_FN_UINT64_FLOAT): Likewise.
9199 (BT_FN_UINT16_UINT32): Likewise.
9200 (BT_FN_UINT32_UINT16): Likewise.
9201 (BT_FN_UINT16_UINT16_UINT16): Likewise.
9202 (BT_FN_INT_PTR_INT): Likewise.
9203 (BT_FN_UINT_PTR_UINT): Likewise.
9204 (BT_FN_LONG_PTR_LONG): Likewise.
9205 (BT_FN_ULONG_PTR_ULONG): Likewise.
9206 (BT_FN_VOID_UINT64_UINT64): Likewise.
9207 (BT_FN_UINT8_UINT8_UINT8): Likewise.
9208 (BT_FN_INT8_INT8_INT8): Likewise.
9209 (BT_FN_INT16_INT16_INT16): Likewise.
9210 (BT_FN_INT_INT_INT): Likewise.
9211 (BT_FN_UINT_FLOAT_UINT): Likewise.
9212 (BT_FN_FLOAT_UINT_UINT): Likewise.
9213 (BT_FN_ULONG_UINT_UINT): Likewise.
9214 (BT_FN_ULONG_UINT_PTR): Likewise.
9215 (BT_FN_ULONG_ULONG_ULONG): Likewise.
9216 (BT_FN_UINT_UINT_UINT): Likewise.
9217 (BT_FN_VOID_UINT_PTR): Likewise.
9218 (BT_FN_UINT_UINT_PTR: Likewise.
9219 (BT_FN_UINT32_UINT64_PTR): Likewise.
9220 (BT_FN_INT_INT_UINT_UINT): Likewise.
9221 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
9222 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
9223 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
9224 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
9225 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
9226 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
9227 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
9228 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
9229 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
9230 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
9231 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
9232 * doc/frontends.texi: List BRIG FE.
9233 * doc/install.texi (Testing): Add BRIG tesring requirements.
9234 * doc/invoke.texi (Overall Options): Mention BRIG.
9235 * doc/standards.texi (Standards): Doucment BRIG HSA version.
9236
9237 2017-01-24 Richard Biener <rguenther@suse.de>
9238
9239 PR translation/79208
9240 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
9241
9242 2017-01-24 Martin Jambor <mjambor@suse.cz>
9243
9244 PR bootstrap/79198
9245 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
9246 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
9247 and known_contexts.
9248
9249 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
9250
9251 PR middle-end/79123
9252 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
9253 casts from signed to unsigned really don't have a range.
9254
9255 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
9256
9257 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
9258 GMP_RNDx for compatiblity.
9259
9260 2017-01-24 Martin Liska <mliska@suse.cz>
9261
9262 PR bootstrap/79132
9263 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
9264 that would prevent us to call alloca with -1 as argument.
9265
9266 2017-01-24 Jakub Jelinek <jakub@redhat.com>
9267
9268 * dwarf2out.c (output_compilation_unit_header, output_file_names):
9269 Avoid -Wformat-security warning.
9270
9271 2017-01-23 Andrew Pinski <apinski@cavium.com>
9272
9273 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
9274 cost table.
9275
9276 2017-01-23 Martin Sebor <msebor@redhat.com>
9277
9278 PR middle-end/78703
9279 * gimple-ssa-sprintf.c (warn_level): New global.
9280 (format_integer): Use it here and throughout the rest of the file.
9281 Use the same switch to compute sign as base.
9282 (maybe_warn): New function.
9283 (format_directive): Factor out warnings into maybe_warn.
9284 Add debugging output. Use warn_level.
9285 (add_bytes): Use warn_level.
9286 (pass_sprintf_length::compute_format_length): Add debugging output.
9287 (try_substitute_return_value): Same.
9288 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
9289
9290 PR middle-end/78703
9291 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
9292 (struct fmtresult, format_integer, format_floating): Adjust.
9293 (fmtresult::fmtresult): Set max correctly in two argument ctor.
9294 (get_string_length, format_string,format_directive): Same.
9295 (pass_sprintf_length::compute_format_length): Same.
9296 (try_substitute_return_value): Simplify slightly.
9297
9298 PR middle-end/78703
9299 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
9300 (fmtresult::operator+=): Outlined.
9301 (struct fmtresult): Add ctors.
9302 (struct conversion_spec): Rename...
9303 (struct directive): ...to this. Add and remove data members.
9304 (directive::set_width, directive::set_precision): New functions.
9305 (format_percent): Use fmtresult ctor.
9306 (get_width_and_precision): Remove.
9307 (format_integer): Make naming changes. Avoid computing width and
9308 precision.
9309 (format_floating): Same. Adjust indentation.
9310 (format_character, format_none): New functions.
9311 (format_string): Moved character handling to format_character.
9312 (format_directive): Remove arguments, change return type.
9313 (parse_directive): New function.
9314 (pass_sprintf_length::compute_format_length): Move directive
9315 parsing to parse_directive.
9316
9317 2017-01-23 Jakub Jelinek <jakub@redhat.com>
9318
9319 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
9320 (assign_assembler_name_if_needed): ... this.
9321 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
9322 (assign_assembler_name_if_needed): ... this.
9323 (free_lang_data_in_cgraph): Adjust callers.
9324 * cgraphunit.c (cgraph_node::analyze): Likewise.
9325 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
9326 Likewise.
9327
9328 2017-01-23 Richard Biener <rguenther@suse.de>
9329
9330 PR tree-optimization/79088
9331 PR tree-optimization/79188
9332 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
9333 resetting loop bounds after last path deletion. Reset loop
9334 bounds of the target loop, make code match the comments.
9335 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
9336 Make sure loops need no fixups.
9337
9338 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
9339
9340 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
9341 exponent support with double type for first argument.
9342 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
9343 type returned by __builtin_vec_extract_sig,
9344 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
9345 functions from "vector int" to "vector unsigned int" or from
9346 "vector long long int" to "vector unsigned long long int".
9347 Changed type returned by __builtin_vec_extract_exp,
9348 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
9349 functions from "vector int" to "vector unsigned int" or from
9350 "vector long long int" to "vector unsigned long long int".
9351 Changed return type of __builtin_vec_test_data_class,
9352 __builtin_vec_test_data_class_sp, and
9353 __builtin_vec_test_data_class_dp from "vector int" to
9354 "vector bool int" or from "vector long long int" to "vector bool
9355 long long int" and changed second argument type from "unsigned
9356 int" to "int". Added new overloaded function forms "vector float
9357 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
9358 "vector float __builtin_vec_insert_exp_sp (vector float, vector
9359 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
9360 double, vector unsigned long long int)" and "vector double
9361 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
9362 long int)". Changed return type of
9363 __builtin_scalar_test_data_class and
9364 __builtin_scalar_test_data_class_sp and
9365 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
9366 int" and changed second argument from "unsigned int" to "int".
9367 Changed type returned by __builtin_scalar_test_neg,
9368 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
9369 from "int" to "bool int". Added new overloaded function form
9370 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
9371 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
9372 exponent double-precision with floating point first argument.
9373 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
9374 documentation of scalar_test_data_class, scalar_test_neg,
9375 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
9376 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
9377 vec_test_data_class built-in functions to reflect refinements in
9378 their type signatures.
9379
9380 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
9381
9382 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
9383 size of buf.
9384 (aarch64_elf_asm_destructor): Likewise.
9385
9386 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
9387
9388 PR rtl-optimization/78634
9389 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
9390 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
9391 * ifcvt.c (noce_try_cmove): Add missing cost check.
9392
9393 PR rtl-optimization/71724
9394 * combine.c (if_then_else_cond): Look for situations where it is
9395 beneficial to undo the work of one of the recursive calls.
9396
9397 2017-01-23 Bin Cheng <bin.cheng@arm.com>
9398
9399 PR tree-optimization/70754
9400 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
9401 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
9402 combined stmt before it if not NULL.
9403 (combine_chains): Process refs reversely and compute dominance point
9404 for root ref.
9405
9406 2017-01-23 Martin Liska <mliska@suse.cz>
9407
9408 PR tree-optimization/79196
9409 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
9410 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
9411 instead of memcmp.
9412 (strlen_optimize_stmt): Call the renamed function.
9413
9414 2017-01-23 Michael Matz <matz@suse.de>
9415
9416 PR tree-optimization/78384
9417 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
9418
9419 2017-01-23 Richard Biener <rguenther@suse.de>
9420
9421 PR tree-optimization/79186
9422 * tree-vrp.c (register_new_assert_for): Make sure we've seen
9423 both incoming edges before moving an assert.
9424
9425 2017-01-23 Martin Jambor <mjambor@suse.cz>
9426
9427 * ipa-prop.c (load_from_param_1): Removed.
9428 (load_from_unmodified_param): Bits from load_from_param_1 put back
9429 here.
9430 (load_from_param): Removed.
9431 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
9432 with stmt. Reverted back to use of load_from_unmodified_param.
9433
9434 2017-01-23 Martin Jambor <mjambor@suse.cz>
9435
9436 PR ipa/79108
9437 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
9438 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
9439 field a pointer to garbage collected vector, mark lattices and
9440 ipcp_orig_node with GTY((skip)).
9441 (ipa_get_param_count): Adjust to descriptors being a pointer.
9442 (ipa_get_param): Likewise.
9443 (ipa_get_type): Likewise.
9444 (ipa_get_param_move_cost): Likewise.
9445 (ipa_set_param_used): Likewise.
9446 (ipa_get_controlled_uses): Likewise.
9447 (ipa_set_controlled_uses): Likewise.
9448 (ipa_is_param_used): Likewise.
9449 (ipa_node_params_t): Move into garbage collector. New methods insert
9450 and remove.
9451 (ipa_node_params_sum): Annotate wth GTY(()).
9452 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
9453 garbage collected.
9454 (ipa_load_from_parm_agg): Adjust declaration.
9455 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
9456 * ipa-profile.c (ipa_profile): Likewise.
9457 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
9458 (ipa_populate_param_decls): Make descriptors parameter garbage
9459 collected.
9460 (ipa_dump_param): Adjust to descriptors being a pointer.
9461 (ipa_alloc_node_params): Likewise.
9462 (ipa_initialize_node_params): Likewise.
9463 (load_from_param_1): Make descriptors parameter garbage collected.
9464 (load_from_unmodified_param): Likewise.
9465 (load_from_param): Likewise.
9466 (ipa_load_from_parm_agg): Likewise.
9467 (ipa_node_params::~ipa_node_params): Removed.
9468 (ipa_free_all_node_params): Remove call to delete operator.
9469 (ipa_node_params_t::insert): New.
9470 (ipa_node_params_t::remove): Likewise.
9471 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
9472 copy known_csts and known_contexts vectors.
9473 (ipa_read_node_info): Adjust to descriptors being a pointer.
9474 (ipcp_modif_dom_walker): Make m_descriptors field garbage
9475 collected.
9476 (ipcp_transform_function): Make descriptors variable garbage
9477 collected.
9478
9479 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
9480
9481 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
9482 * config/i386/avx512dqintrin.h: Ditto.
9483 * config/i386/avx512fintrin.h: Ditto.
9484 * gcc/config/i386/i386.c: Handle new builtins.
9485 * config/i386/i386-builtin.def: Add new builtins.
9486 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
9487 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
9488
9489 2017-01-23 Jakub Jelinek <jakub@redhat.com>
9490 Martin Liska <mliska@suse.cz>
9491
9492 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
9493 * asan.c (asan_expand_poison_ifn): Support stores and use
9494 appropriate ASAN report function.
9495 * internal-fn.c (expand_ASAN_POISON_USE): New function.
9496 * internal-fn.def (ASAN_POISON_USE): Declare.
9497 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
9498 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
9499 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
9500 ASAN_POISON calls w/o LHS.
9501 * tree-ssa.c (execute_update_addresses_taken): Create clobber
9502 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
9503 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
9504 * gimplify.c (asan_poison_variables): Add attribute
9505 use_after_scope_memory to variables that really needs to live
9506 in memory.
9507 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
9508 having the attribute.
9509
9510 2017-01-23 Martin Liska <mliska@suse.cz>
9511
9512 * asan.c (create_asan_shadow_var): New function.
9513 (asan_expand_poison_ifn): Likewise.
9514 * asan.h (asan_expand_poison_ifn): New declaration.
9515 * internal-fn.c (expand_ASAN_POISON): Likewise.
9516 * internal-fn.def (ASAN_POISON): New builtin.
9517 * sanopt.c (pass_sanopt::execute): Expand
9518 asan_expand_poison_ifn.
9519 * tree-inline.c (copy_decl_for_dup_finish): Make function
9520 external.
9521 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
9522 * tree-ssa.c (is_asan_mark_p): New function.
9523 (execute_update_addresses_taken): Rewrite local variables
9524 (identified just by use-after-scope as addressable) into SSA.
9525
9526 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
9527
9528 * doc/install.texi (Specific): opensource.apple.com uses https
9529 now. Remove trailing slash.
9530
9531 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
9532
9533 * README.Portability: Remove note on an Irix compatibility issue.
9534
9535 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
9536
9537 * gcov.c (INCLUDE_ALGORITHM): Define.
9538 (INCLUDE_VECTOR): Define.
9539 No longer include <vector> and <algorithm> directly.
9540
9541 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
9542
9543 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
9544 to https.
9545 * doc/invoke.texi (Code Gen Options): Ditto.
9546
9547 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
9548
9549 PR lto/78407
9550 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
9551
9552 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
9553
9554 rtl-optimization/79125
9555 * cprop.c (local_cprop_pass): Handle cases where we make an
9556 unconditional trap.
9557
9558 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
9559
9560 PR target/61729
9561 PR target/77850
9562 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
9563 read from, for big endian.
9564
9565 2017-01-20 Jiong Wang <jiong.wang@arm.com>
9566
9567 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
9568 register pauth builtins for LP64 only.
9569
9570 2017-01-20 Marek Polacek <polacek@redhat.com>
9571
9572 PR c/79152
9573 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
9574 non-case labels.
9575
9576 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
9577
9578 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
9579 of safelen status.
9580 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
9581 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
9582 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
9583
9584 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9585
9586 PR target/71270
9587 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
9588 in big-endian mode when they are not a single duplicated value.
9589
9590 2017-01-20 Richard Biener <rguenther@suse.de>
9591
9592 * BASE-VER: Bump to 7.0.1.
9593
9594 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
9595
9596 * omp-low.c (omplow_simd_context): New struct. Use it...
9597 (lower_rec_simd_input_clauses): ...here and...
9598 (lower_rec_input_clauses): ...here to hold common data. Adjust all
9599 references to idx, lane, max_vf, is_simt.
9600
9601 2017-01-20 Graham Markall <graham.markall@embecosm.com>
9602
9603 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
9604 mcpu=nps400.
9605
9606 2017-01-20 Martin Jambor <mjambor@suse.cz>
9607
9608 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
9609 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
9610 gt-hsa-common.h.
9611 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
9612 (GTFILES): Rename hsa.c to hsa-common.c.
9613 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
9614 * hsa-dump.c: Likewise.
9615 * hsa-gen.c: Likewise.
9616 * hsa-regalloc.c: Likewise.
9617 * ipa-hsa.c: Likewise.
9618 * omp-expand.c: Likewise.
9619 * omp-low.c: Likewise.
9620 * toplev.c: Likewise.
9621
9622 2017-01-20 Marek Polacek <polacek@redhat.com>
9623
9624 PR c/64279
9625 * doc/invoke.texi: Document -Wduplicated-branches.
9626 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
9627 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
9628 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
9629 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
9630 return 0 only when not OEP_LEXICOGRAPHIC.
9631 (fold_build_cleanup_point_expr): Use the expression
9632 location when building CLEANUP_POINT_EXPR.
9633 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
9634 * tree.c (add_expr): Handle error_mark_node.
9635
9636 2017-01-20 Martin Liska <mliska@suse.cz>
9637
9638 PR lto/69188
9639 * tree-profile.c (init_ic_make_global_vars): Do not call
9640 finalize_decl.
9641 (gimple_init_gcov_profiler): Likewise.
9642
9643 2017-01-20 Martin Liska <mliska@suse.cz>
9644
9645 PR ipa/71190
9646 * cgraph.h (maybe_create_reference): Remove argument and
9647 update comment.
9648 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
9649 argument.
9650 * ipa-cp.c (create_specialized_node): Likewise.
9651 * symtab.c (symtab_node::maybe_create_reference): Handle
9652 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
9653
9654 2017-01-20 Martin Liska <mliska@suse.cz>
9655
9656 * read-rtl-function.c (function_reader::create_function): Use
9657 build_decl instread of build_decl_stat.
9658
9659 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
9660
9661 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
9662 * config/i386/avx512dqintrin.h: Ditto.
9663 * config/i386/avx512fintrin.h: Ditto.
9664 * config/i386/i386-builtin-types.def: Add new types.
9665 * gcc/config/i386/i386.c: Handle new types.
9666 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
9667 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
9668 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
9669 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
9670 (__builtin_ia32_kshiftridi): New.
9671 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
9672
9673 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
9674
9675 PR target/78875
9676 PR target/79140
9677 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
9678 define to rs6000_init_stack_protect_guard.
9679 (rs6000_init_stack_protect_guard): New function.
9680
9681 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
9682 Yunqiang Su <yunqiang.su@imgtec.com>
9683
9684 * config.gcc (supported_defaults): Add madd4.
9685 (with_madd4): Add validation.
9686 (all_defaults): Add madd4.
9687 * config/mips/mips.opt (mmadd4): New option.
9688 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
9689 mmadd4.
9690 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
9691 __mips_no_madd4.
9692 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
9693 (ISA_HAS_FUSED_MADD4): Likewise.
9694 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
9695 * gcc/doc/install.texi (--with-madd4): Document the new option.
9696
9697 2017-01-19 Jiong Wang <jiong.wang@arm.com>
9698
9699 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
9700 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
9701 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
9702 (aarch64_init_pauth_hint_builtins): New.
9703 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
9704 (aarch64_expand_builtin): Expand new builtins.
9705
9706 2017-01-19 Jiong Wang <jiong.wang@arm.com>
9707
9708 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
9709 * combine-stack-adj.c (no_unhandled_cfa): Handle
9710 REG_CFA_TOGGLE_RA_MANGLE.
9711 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
9712 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
9713 info for return address signing.
9714 (aarch64_expand_epilogue): Likewise.
9715
9716 2017-01-19 Jiong Wang <jiong.wang@arm.com>
9717
9718 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
9719 * config/aarch64/aarch64-protos.h
9720 (aarch64_return_address_signing_enabled): New declaration.
9721 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
9722 New function.
9723 (aarch64_expand_prologue): Sign return address before it's pushed onto
9724 stack.
9725 (aarch64_expand_epilogue): Authenticate return address fetched from
9726 stack.
9727 (aarch64_override_options): Sanity check for ILP32 and ISA level.
9728 (aarch64_attributes): New function attributes for "sign-return-address".
9729 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
9730 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
9731 ("*do_return"): Generate combined instructions according to key index.
9732 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
9733 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
9734 iterators.
9735 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
9736 * config/aarch64/aarch64.opt (msign-return-address=): New.
9737 * doc/extend.texi (AArch64 Function Attributes): Documents
9738 "sign-return-address=".
9739 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
9740
9741 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
9742
9743 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
9744 overall option summary.
9745
9746 2017-01-19 Jiong Wang <jiong.wang@arm.com>
9747
9748 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
9749 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
9750 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
9751 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
9752
9753 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
9754
9755 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
9756 -mpower9-minmax by default for -mcpu=power9.
9757 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
9758 128-bit floating point.
9759
9760 2017-01-20 Alan Modra <amodra@gmail.com>
9761
9762 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
9763 optimizing for size.
9764
9765 2017-01-20 Alan Modra <amodra@gmail.com>
9766
9767 PR target/79144
9768 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
9769 for strcmp and strncmp from corresponding builtin decl.
9770
9771 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
9772
9773 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
9774 instead of i386/rtems-64.h.
9775 * config/i386/rtems-64.h: Remove.
9776
9777 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
9778
9779 PR target/78478
9780 Revert:
9781 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9782
9783 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
9784
9785 2017-01-19 Tamar Christina <tamar.christina@arm.com>
9786
9787 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
9788 Change int to HOST_WIDE_INT.
9789 * config/aarch64/aarch64-protos.h
9790 (aarch64_simd_gen_const_vector_dup): Likewise.
9791 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
9792
9793 2017-01-19 David Malcolm <dmalcolm@redhat.com>
9794
9795 * langhooks-def.h (lhd_type_for_size): New decl.
9796 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
9797 * langhooks.c (lhd_type_for_size): New function, taken from
9798 lto_type_for_size.
9799
9800 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
9801
9802 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
9803 define_bypass for CR latency.
9804 (power9-cracked-alu): Update bypass latency and remove power9-branch.
9805 (power9-alu2): Add define_bypass for CR latency.
9806 (power9-cmp): New.
9807 (power9-mul): Update insn latency.
9808 (power9-mul-compare): Update insn latency, bypass latency and remove
9809 power9-branch.
9810
9811 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9812
9813 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
9814 Delete.
9815 * config/aarch64/aarch64.md
9816 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
9817 aarch64_nopcrelative_literal_loads.
9818 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9819
9820 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
9821
9822 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
9823 TARGET_LOONGSON_3A.
9824 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
9825
9826 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
9827
9828 PR target/78176
9829 * config.gcc (supported_defaults): Add lxc1-sxc1.
9830 (with_lxc1_sxc1): Add validation.
9831 (all_defaults): Add lxc1-sxc1.
9832 * config/mips/mips.opt (mlxc1-sxc1): New option.
9833 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
9834 mlxc1-sxc1.
9835 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
9836 __mips_no_lxc1_sxc1.
9837 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
9838 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
9839 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
9840
9841 2017-01-19 Richard Biener <rguenther@suse.de>
9842
9843 PR tree-optimization/72488
9844 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
9845 sure to restore SSA info.
9846 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
9847
9848 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
9849
9850 PR rtl-optimization/79121
9851 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
9852 of the inner type when shifting an extended value.
9853
9854 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
9855
9856 PR lto/78407
9857 * symtab.c (symtab_node::equal_address_to): Fix comparing of
9858 interposable aliases.
9859
9860 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
9861
9862 PR target/78516
9863 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
9864 Use the evmergelohi instruction.
9865 (mov_si<mode>_e500_subreg4_2_le): Likewise.
9866 (mov_sitf_e500_subreg8_2_be): Likewise.
9867 (mov_sitf_e500_subreg12_2_le): Likewise.
9868 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
9869 (mov_si<mode>_e500_subreg4_2_be): Likewise.
9870 (mov_sitf_e500_subreg8_2_le): Likewise.
9871 (mov_sitf_e500_subreg12_2_be): Likewise.
9872
9873 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9874
9875 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
9876 attribute from vecsimple to vecperm.
9877 (altivec_vbpermq2): Likewise.
9878
9879 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9880
9881 PR target/79040
9882 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
9883
9884 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9885 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
9886 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
9887 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
9888 case where N arg is SIZE_MAX.
9889 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
9890 (cmpstrsi): Add pattern.
9891
9892 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9893
9894 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9895 __builtin_vec_revb builtins.
9896 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
9897 built-in functions to support generation of the ISA 3.0 XXBR<x>
9898 vector byte reverse instructions.
9899 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
9900 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
9901 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
9902 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
9903 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
9904 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
9905 (P9V_BUILTIN_VEC_REVB): Likewise.
9906 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
9907 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
9908 (p9_xxbrq_v16qi): Likewise.
9909 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
9910 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
9911 (p9_xxbrh_v8hi): Likewise.
9912 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
9913 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
9914 vec_revb built-in functions.
9915
9916 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
9917
9918 PR rtl-optimization/78952
9919 * config/i386/i386.md (any_extract): New code iterator.
9920 (*insvqi_2): Use any_extract for source operand.
9921 (*insvqi_3): Use any_shiftrt for source operand.
9922
9923 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
9924
9925 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
9926 New function.
9927 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
9928
9929 2017-01-18 Matthias Klose <doko@ubuntu.com>
9930
9931 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
9932
9933 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9934
9935 * config/rs6000/altivec.h (vec_bperm): Change #define.
9936 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
9937 (altivec_vbpermq2): New define_insn.
9938 (altivec_vbpermd): Likewise.
9939 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
9940 function interface.
9941 (VBPERMD): Likewise.
9942 (VBPERM): New polymorphic function interface.
9943 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
9944 Add entries for P9V_BUILTIN_VEC_VBPERM.
9945 * doc/extend.texi: Add interfaces for vec_bperm.
9946
9947 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9948
9949 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
9950 first letter of error messages.
9951 (s390_resolve_overloaded_builtin): Likewise.
9952 * config/s390/s390.c (s390_expand_builtin): Likewise.
9953 (s390_invalid_arg_for_unprototyped_fn): Likewise.
9954 (s390_valid_target_attribute_inner_p): Likewise.
9955 * config/s390/s390.md ("tabort"): Likewise.
9956
9957 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
9958
9959 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
9960 (ISA_AVOID_DIV_HILO): New macro.
9961 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
9962 (ISA_HAS_DDIV): Likewise.
9963
9964 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
9965
9966 * doc/invoke.texi (fabi-version): Correct number of occurrences.
9967
9968 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
9969
9970 * doc/invoke.texi (fabi-version): Spelling fix.
9971
9972 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
9973
9974 PR c++/70182
9975 * doc/invoke.texi (fabi-version): Mention mangling fix for
9976 operator names.
9977
9978 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
9979
9980 PR c++/77489
9981 * doc/invoke.texi (fabi-version): Document discriminator mangling.
9982
9983 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
9984
9985 PR target/78875
9986 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
9987 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
9988 the new options.
9989 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
9990 flexible settings.
9991 (stack_protect_test): Ditto.
9992 * config/rs6000/rs6000.opt (mstack-protector-guard=,
9993 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
9994 options.
9995 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
9996 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
9997 -mstack-protector-guard-offset=.
9998 (RS/6000 and PowerPC Options): Ditto.
9999
10000 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
10001
10002 * config/i386/i386.h (MASK_CLASS_P): New define.
10003 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
10004 there are no registers from different register sets also when
10005 mask registers are used. Update function comment.
10006 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
10007 to (*k/*r) and (*k/*km) alternatives.
10008
10009 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
10010
10011 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
10012 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
10013 (EH_RETURN_HANDLER_RTX): New define.
10014 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
10015 Force frame pointer in EH return functions.
10016 (aarch64_expand_epilogue): Add barrier for eh_return.
10017 (aarch64_final_eh_return_addr): Remove.
10018 (aarch64_eh_return_handler_rtx): New function.
10019 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
10020 Remove.
10021 (aarch64_eh_return_handler_rtx): New prototype.
10022
10023 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10024
10025 * config/rs6000/altivec.h (vec_rlmi): New #define.
10026 (vec_vrlnm): Likewise.
10027 (vec_rlnm): Likewise.
10028 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
10029 (UNSPEC_VRLNM): Likewise.
10030 (VIlong): New mode iterator.
10031 (altivec_vrl<VI_char>mi): New define_insn.
10032 (altivec_vrl<VI_char>nm): Likewise.
10033 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
10034 function entry.
10035 (VRLDNM): Likewise.
10036 (RLNM): New polymorphic function entry.
10037 (VRLWMI): New monomorphic function entry.
10038 (VRLDMI): Likewise.
10039 (RLMI): New polymorphic function entry.
10040 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
10041 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
10042 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
10043 vec_vrlnm.
10044
10045 2017-01-17 Jakub Jelinek <jakub@redhat.com>
10046
10047 PR debug/78839
10048 * dwarf2out.c (field_byte_offset): Restore the
10049 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
10050 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
10051 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
10052 of build2 + fold.
10053
10054 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
10055
10056 PR ada/67205
10057 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
10058
10059 2017-01-17 Jakub Jelinek <jakub@redhat.com>
10060
10061 PR debug/71669
10062 * dwarf2out.c (add_data_member_location_attribute): For constant
10063 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
10064 instead of DW_AT_data_member_location, DW_AT_bit_offset and
10065 DW_AT_byte_size attributes.
10066
10067 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
10068
10069 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
10070 after forcing to constant memory when the code model is medium.
10071
10072 2017-01-17 Julia Koval <julia.koval@intel.com>
10073
10074 PR target/76731
10075 * config/i386/avx512fintrin.h
10076 (_mm512_i32gather_ps): Change __addr type to void const*.
10077 (_mm512_mask_i32gather_ps): Ditto.
10078 (_mm512_i32gather_pd): Ditto.
10079 (_mm512_mask_i32gather_pd): Ditto.
10080 (_mm512_i64gather_ps): Ditto.
10081 (_mm512_mask_i64gather_ps): Ditto.
10082 (_mm512_i64gather_pd): Ditto.
10083 (_mm512_mask_i64gather_pd): Ditto.
10084 (_mm512_i32gather_epi32): Ditto.
10085 (_mm512_mask_i32gather_epi32): Ditto.
10086 (_mm512_i32gather_epi64): Ditto.
10087 (_mm512_mask_i32gather_epi64): Ditto.
10088 (_mm512_i64gather_epi32): Ditto.
10089 (_mm512_mask_i64gather_epi32): Ditto.
10090 (_mm512_i64gather_epi64): Ditto.
10091 (_mm512_mask_i64gather_epi64): Ditto.
10092 (_mm512_i32scatter_ps): Change __addr type to void*.
10093 (_mm512_mask_i32scatter_ps): Ditto.
10094 (_mm512_i32scatter_pd): Ditto.
10095 (_mm512_mask_i32scatter_pd): Ditto.
10096 (_mm512_i64scatter_ps): Ditto.
10097 (_mm512_mask_i64scatter_ps): Ditto.
10098 (_mm512_i64scatter_pd): Ditto.
10099 (_mm512_mask_i64scatter_pd): Ditto.
10100 (_mm512_i32scatter_epi32): Ditto.
10101 (_mm512_mask_i32scatter_epi32): Ditto.
10102 (_mm512_i32scatter_epi64): Ditto.
10103 (_mm512_mask_i32scatter_epi64): Ditto.
10104 (_mm512_i64scatter_epi32): Ditto.
10105 (_mm512_mask_i64scatter_epi32): Ditto.
10106 (_mm512_i64scatter_epi64): Ditto.
10107 (_mm512_mask_i64scatter_epi64): Ditto.
10108 * config/i386/avx512pfintrin.h
10109 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
10110 (_mm512_mask_prefetch_i32gather_ps): Ditto.
10111 (_mm512_mask_prefetch_i64gather_pd): Ditto.
10112 (_mm512_mask_prefetch_i64gather_ps): Ditto.
10113 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
10114 (_mm512_prefetch_i32scatter_ps): Ditto.
10115 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
10116 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
10117 (_mm512_prefetch_i64scatter_pd): Ditto.
10118 (_mm512_prefetch_i64scatter_ps): Ditto.
10119 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
10120 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
10121 * config/i386/avx512vlintrin.h
10122 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
10123 (_mm_mmask_i32gather_ps): Ditto.
10124 (_mm256_mmask_i32gather_pd): Ditto.
10125 (_mm_mmask_i32gather_pd): Ditto.
10126 (_mm256_mmask_i64gather_ps): Ditto.
10127 (_mm_mmask_i64gather_ps): Ditto.
10128 (_mm256_mmask_i64gather_pd): Ditto.
10129 (_mm_mmask_i64gather_pd): Ditto.
10130 (_mm256_mmask_i32gather_epi32): Ditto.
10131 (_mm_mmask_i32gather_epi32): Ditto.
10132 (_mm256_mmask_i32gather_epi64): Ditto.
10133 (_mm_mmask_i32gather_epi64): Ditto.
10134 (_mm256_mmask_i64gather_epi32): Ditto.
10135 (_mm_mmask_i64gather_epi32): Ditto.
10136 (_mm256_mmask_i64gather_epi64): Ditto.
10137 (_mm_mmask_i64gather_epi64): Ditto.
10138 (_mm256_i32scatter_ps): Change __addr type to void*.
10139 (_mm256_mask_i32scatter_ps): Ditto.
10140 (_mm_i32scatter_ps): Ditto.
10141 (_mm_mask_i32scatter_ps): Ditto.
10142 (_mm256_i32scatter_pd): Ditto.
10143 (_mm256_mask_i32scatter_pd): Ditto.
10144 (_mm_i32scatter_pd): Ditto.
10145 (_mm_mask_i32scatter_pd): Ditto.
10146 (_mm256_i64scatter_ps): Ditto.
10147 (_mm256_mask_i64scatter_ps): Ditto.
10148 (_mm_i64scatter_ps): Ditto.
10149 (_mm_mask_i64scatter_ps): Ditto.
10150 (_mm256_i64scatter_pd): Ditto.
10151 (_mm256_mask_i64scatter_pd): Ditto.
10152 (_mm_i64scatter_pd): Ditto.
10153 (_mm_mask_i64scatter_pd): Ditto.
10154 (_mm256_i32scatter_epi32): Ditto.
10155 (_mm256_mask_i32scatter_epi32): Ditto.
10156 (_mm_i32scatter_epi32): Ditto.
10157 (_mm_mask_i32scatter_epi32): Ditto.
10158 (_mm256_i32scatter_epi64): Ditto.
10159 (_mm256_mask_i32scatter_epi64): Ditto.
10160 (_mm_i32scatter_epi64): Ditto.
10161 (_mm_mask_i32scatter_epi64): Ditto.
10162 (_mm256_i64scatter_epi32): Ditto.
10163 (_mm256_mask_i64scatter_epi32): Ditto.
10164 (_mm_i64scatter_epi32): Ditto.
10165 (_mm_mask_i64scatter_epi32): Ditto.
10166 (_mm256_i64scatter_epi64): Ditto.
10167 (_mm256_mask_i64scatter_epi64): Ditto.
10168 (_mm_i64scatter_epi64): Ditto.
10169 (_mm_mask_i64scatter_epi64): Ditto.
10170 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
10171 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
10172 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
10173 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
10174 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
10175 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
10176 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
10177 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
10178 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
10179 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
10180 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
10181 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
10182 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
10183 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
10184 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
10185 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
10186 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
10187 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
10188 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
10189 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
10190 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
10191 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
10192 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
10193 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
10194 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
10195 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
10196 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
10197 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
10198 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
10199 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
10200 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
10201 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
10202 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
10203 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
10204 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
10205 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
10206 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
10207 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
10208 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
10209 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
10210 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
10211 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
10212 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
10213 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
10214 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
10215 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
10216 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
10217 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
10218 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
10219 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
10220 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
10221 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
10222 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
10223 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
10224 definitions accordingly.
10225
10226 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
10227 Kuan-Lin Chen <kuanlinchentw@gmail.com>
10228
10229 PR target/79079
10230 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
10231 gen_lowpart.
10232
10233 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
10234
10235 PR target/79058
10236 * ira-conflicts.c (ira_build_conflicts): Update total conflict
10237 hard regs for inner regno.
10238
10239 2017-01-17 Martin Liska <mliska@suse.cz>
10240
10241 PR ipa/71207
10242 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
10243 assumption and add comment.
10244
10245 2017-01-17 Nathan Sidwell <nathan@acm.org>
10246
10247 * ipa-visibility.c (localize_node): New function, broken out of ...
10248 (function_and_variable_visibility): ... here. Call it.
10249
10250 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
10251
10252 PR middle-end/77445
10253 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
10254 correctly set frequency of oudgoing edge.
10255 (duplicate_thread_path): Fix profile updating.
10256
10257 2017-01-17 Jakub Jelinek <jakub@redhat.com>
10258
10259 PR other/79046
10260 * configure.ac: Add GCC_BASE_VER.
10261 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
10262 version from BASE-VER file.
10263 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
10264 (gcc.o): Depend on $(BASEVER).
10265 * common.opt (dumpfullversion): New option.
10266 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
10267 * doc/invoke.texi: Document -dumpfullversion.
10268 * doc/install.texi: Document --with-gcc-major-version-only.
10269 * configure: Regenerated.
10270
10271 2017-01-17 Richard Biener <rguenther@suse.de>
10272
10273 PR tree-optimization/71433
10274 * tree-vrp.c (register_new_assert_for): Merge same asserts
10275 on all incoming edges.
10276 (process_assert_insertions_for): Handle insertions at the
10277 beginning of BBs.
10278
10279 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
10280
10281 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
10282 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
10283
10284 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
10285
10286 PR target/78633
10287 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
10288 RTL sharing.
10289
10290 2017-01-17 Alan Modra <amodra@gmail.com>
10291
10292 PR target/79066
10293 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
10294 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
10295 symbolic stack limit when pic.
10296
10297 2017-01-16 Martin Sebor <msebor@redhat.com>
10298
10299 PR tree-optimization/78608
10300 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
10301
10302 2017-01-16 Jeff Law <law@redhat.com>
10303
10304 Revert:
10305 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
10306 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
10307 for several include directories that may be relative to sysroot.
10308 * config/i386/x-mingw32 (gplus_includedir): Define.
10309 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
10310 (native_system_includedir): Likewise.
10311 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
10312 override if TARGET_SYSTEM_ROOT is defined.
10313 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
10314
10315 PR tree-optimization/79090
10316 PR tree-optimization/33562
10317 PR tree-optimization/61912
10318 PR tree-optimization/77485
10319 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
10320 and computed trims into the dump file.
10321
10322 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
10323
10324 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
10325
10326 2017-01-16 Jakub Jelinek <jakub@redhat.com>
10327
10328 PR c/79089
10329 * gimplify.c (gimplify_init_constructor): If want_value and
10330 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
10331 fix.
10332
10333 PR target/79080
10334 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
10335 sequence. Formatting fixes.
10336 (doloop_optimize): Formatting fixes.
10337
10338 PR driver/49726
10339 * gcc.c (debug_level_greater_than_spec_func): New function.
10340 (static_spec_functions): Add debug-level-gt spec function.
10341 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
10342 !g0.
10343 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
10344 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
10345 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
10346 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
10347 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
10348 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
10349
10350 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
10351
10352 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
10353 QImode fixups to general and mask registers only.
10354
10355 2017-01-16 Carl Love <cel@us.ibm.com>
10356
10357 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
10358 for built-in functions
10359 vector signed char vec_nabs (vector signed char)
10360 vector signed short vec_nabs (vector signed short)
10361 vector signed int vec_nabs (vector signed int)
10362 vector signed long long vec_nabs (vector signed long long)
10363 vector float vec_nabs (vector float)
10364 vector double vec_nabs (vector double)
10365 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
10366 and NABS overload.
10367 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
10368 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
10369 * doc/extend.texi: Update the documentation file for the new built-in
10370 functions.
10371
10372 2017-01-16 Martin Sebor <msebor@redhat.com>
10373
10374 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
10375 message.
10376
10377 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10378
10379 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
10380 UNSPEC_VSX__XXSPLTD to require special splat handling.
10381
10382 2017-01-16 David Malcolm <dmalcolm@redhat.com>
10383
10384 PR bootstrap/78616
10385 * system.h: Poison strndup.
10386
10387 2017-01-16 Alan Modra <amodra@gmail.com>
10388
10389 PR target/79098
10390 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
10391 use a switch.
10392
10393 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
10394
10395 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
10396
10397 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
10398
10399 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
10400 call recog here. Assert that INSN_CODE (insn) is non-negative.
10401
10402 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
10403
10404 PR target/72749
10405 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
10406 fallthrough.
10407 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
10408 in the currently scheduled RTL fragment.
10409
10410 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
10411
10412 PR rtl-optimization/78751
10413 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
10414 give up.
10415
10416 2017-01-14 Jeff Law <law@redhat.com>
10417
10418 PR tree-optimization/79090
10419 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
10420 variable length stores.
10421 (compute_trims): Delete dead assignment to *trim_tail.
10422 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
10423 zero length.
10424
10425 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
10426
10427 PR rtl-optimization/78626
10428 PR rtl-optimization/78727
10429 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
10430 of a block, and split such blocks after everything else is finished.
10431
10432 2017-01-14 Alan Modra <amodra@gmail.com>
10433
10434 PR target/72749
10435 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
10436 target legitimate_combined_insn.
10437 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
10438 (rs6000_legitimate_combined_insn): New function.
10439 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
10440 all uses.
10441 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
10442 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
10443 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
10444
10445 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
10446
10447 * doc/frontends.texi (G++ and GCC): Remove references to Java.
10448
10449 2017-01-13 Jeff Law <law@redhat.com>
10450
10451 PR tree-optimization/33562
10452 PR tree-optimization/61912
10453 PR tree-optimization/77485
10454 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
10455 a statement.
10456 (delete_dead_assignment): Likewise.
10457 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
10458 statement to delete_dead_call and delete_dead_assignment.
10459
10460 2017-01-13 David Malcolm <dmalcolm@redhat.com>
10461
10462 PR c/78304
10463 * substring-locations.c (format_warning_va): Strengthen case 1 so
10464 that both endpoints of the substring must be within the format
10465 range for just the substring to be printed.
10466
10467 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
10468
10469 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
10470 * config/i386/i386.c (ix86_target_string): Add missing options
10471 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
10472 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
10473 flags_other and ix86_target_other to flags2_other. Display unknown
10474 isa2 options.
10475 (ix86_valid_target_attribute_inner_p): Add missing options and
10476 reorder options by implied ISAs, as in ix86_target_string.
10477
10478 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
10479
10480 * hash-table.h (hash_table::too_empty_p): New function.
10481 (hash_table::expand): Use it.
10482 (hash_table::traverse): Likewise.
10483 (hash_table::empty_slot): Use sizeof (value_type) instead of
10484 sizeof (PTR) to convert bytes to elements. Shrink the table
10485 if the current size is excessive for the current number of
10486 elements.
10487
10488 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
10489
10490 * ira-costs.c (record_reg_classes): Break from the inner loop
10491 early once alt_fail is known to be true. Update outer loop
10492 handling accordingly.
10493
10494 2017-01-13 Jeff Law <law@redhat.com>
10495
10496 * tree-ssa-dse.c (decrement_count): New function.
10497 (increment_start_addr, maybe_trim_memstar_call): Likewise.
10498 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
10499 when we know the partially dead statement is a mem* function.
10500
10501 PR tree-optimization/61912
10502 PR tree-optimization/77485
10503 * tree-ssa-dse.c: Include expr.h.
10504 (maybe_trim_constructor_store): New function.
10505 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
10506
10507 PR tree-optimization/33562
10508 PR tree-optimization/61912
10509 PR tree-optimization/77485
10510 * doc/invoke.texi: Document new dse-max-object-size param.
10511 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
10512 * tree-ssa-dse.c: Include params.h.
10513 (dse_store_status): New enum.
10514 (initialize_ao_ref_for_dse): New, partially extracted from
10515 dse_optimize_stmt.
10516 (valid_ao_ref_for_dse, normalize_ref): New.
10517 (setup_live_bytes_from_ref, compute_trims): Likewise.
10518 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
10519 (maybe_trim_partially_dead_store): Likewise.
10520 (maybe_trim_complex_store): Likewise.
10521 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
10522 Track what bytes live from the original store. Return tri-state
10523 for dead, partially dead or live.
10524 (dse_dom_walker): Add constructor, destructor and new private members.
10525 (delete_dead_call, delete_dead_assignment): New extracted from
10526 dse_optimize_stmt.
10527 (dse_optimize_stmt): Make a member of dse_dom_walker.
10528 Use initialize_ao_ref_for_dse.
10529
10530 PR tree-optimization/33562
10531 PR tree-optimization/61912
10532 PR tree-optimization/77485
10533 * sbitmap.h (bitmap_count_bits): Prototype.
10534 (bitmap_clear_range, bitmap_set_range): Likewise.
10535 * sbitmap.c (bitmap_clear_range): New function.
10536 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
10537
10538 2017-01-13 Martin Liska <mliska@suse.cz>
10539
10540 PR ipa/79043
10541 * function.c (set_cfun): Add new argument force.
10542 * function.h (set_cfun): Likewise.
10543 * ipa-inline-transform.c (inline_call): Use the function when
10544 strict alising from is dropped for function we inline to.
10545
10546 2017-01-13 Richard Biener <rguenther@suse.de>
10547
10548 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
10549 for dumping GIMPLE INTEGER_CSTs.
10550
10551 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10552
10553 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
10554 to 201112L since C++17.
10555
10556 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
10557
10558 PR sanitizer/78887
10559 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
10560 if -fsanitize=kernel-address is present.
10561
10562 2017-01-13 Richard Biener <rguenther@suse.de>
10563
10564 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
10565 as _Literal ( type ) number in case usual suffixes do not
10566 preserve all information.
10567
10568 2017-01-13 Richard Biener <rguenther@suse.de>
10569
10570 PR tree-optimization/77283
10571 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
10572 and ssa-iterators.h.
10573 (is_feasible_trace): Implement a cost model based on joiner
10574 PHI node uses.
10575
10576 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10577
10578 PR target/79004
10579 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
10580 char or short to __float128/_Float128 directly.
10581
10582 2017-01-12 Martin Sebor <msebor@redhat.com>
10583
10584 to -Wformat-overflow.
10585 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
10586 (min_bytes_remaining): Same.
10587 (get_string_length): Same.
10588 (format_string): Same.
10589 (format_directive): Same.
10590 (add_bytes): Same.
10591 (pass_sprintf_length::handle_gimple_call): Same.
10592
10593 2017-01-12 Jakub Jelinek <jakub@redhat.com>
10594
10595 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
10596 info.nowrite calls with no lhs that can't throw. Return bool
10597 whether gsi_remove has been called or not.
10598 (pass_sprintf_length::handle_gimple_call): Return bool whether
10599 try_substitute_return_value called gsi_remove. Formatting fix.
10600 (pass_sprintf_length::execute): Don't use gsi_remove if
10601 handle_gimple_call returned true.
10602
10603 PR bootstrap/79069
10604 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
10605 be removed due to side-effects, don't remove following barrier nor
10606 turn the successor edge into fallthru edge.
10607
10608 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10609
10610 PR target/79044
10611 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
10612 element-reversing loads and stores as not swappable.
10613
10614 2017-01-12 Nathan Sidwell <nathan@acm.org>
10615 Nicolai Stange <nicstange@gmail.com>
10616
10617 * combine.c (try_combine): Don't ignore result of overlap checking
10618 loop. Combine overlap & asm check into single loop.
10619
10620 2017-01-12 Richard Biener <rguenther@suse.de>
10621
10622 * tree-pretty-print.c (dump_generic_node): Provide -gimple
10623 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
10624
10625 2017-01-12 Richard Biener <rguenther@suse.de>
10626
10627 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
10628 and TS_TARGET_OPTION directly derive from TS_BASE.
10629 * tree-core.h (tree_optimization_option): Derive from tree_base.
10630 (tree_target_option): Likewise.
10631
10632 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
10633
10634 * config/i386/i386.c (memory_address_length): Increase len
10635 only when rip_relative_addr_p returns false.
10636
10637 2017-01-11 Julia Koval <julia.koval@intel.com>
10638
10639 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
10640 (OPTION_MASK_ISA_SGX_SET): New.
10641 (ix86_handle_option): Handle OPT_msgx.
10642 * config.gcc: Added sgxintrin.h.
10643 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
10644 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
10645 * config/i386/i386.c (ix86_target_string): Add -msgx.
10646 (PTA_SGX): New.
10647 (ix86_option_override_internal): Handle new options.
10648 (ix86_valid_target_attribute_inner_p): Add sgx.
10649 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
10650 * config/i386/i386.opt: Add msgx.
10651 * config/i386/sgxintrin.h: New file.
10652 * config/i386/x86intrin.h: Add sgxintrin.h.
10653
10654 2017-01-11 Jakub Jelinek <jakub@redhat.com>
10655
10656 PR c++/71537
10657 * fold-const.c (maybe_nonzero_address): Return 1 for function
10658 local objects.
10659 (tree_single_nonzero_warnv_p): Don't handle function local objects
10660 here.
10661
10662 PR c++/72813
10663 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
10664 of c-header.
10665
10666 2017-01-11 David Malcolm <dmalcolm@redhat.com>
10667
10668 PR driver/78877
10669 * opts.c: Include "spellcheck.h"
10670 (struct string_fragment): New struct.
10671 (struct edit_distance_traits<const string_fragment &>): New
10672 struct.
10673 (get_closest_sanitizer_option): New function.
10674 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
10675
10676 2017-01-11 Jakub Jelinek <jakub@redhat.com>
10677
10678 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
10679 by 12.
10680 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
10681 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
10682 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
10683 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
10684 for initial die_offset if dwarf_split_debug_info.
10685 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
10686 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
10687 fields.
10688 (output_skeleton_debug_sections): Formatting fix. Use
10689 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
10690 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
10691
10692 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
10693
10694 * config/arm/cortex-a53.md: Add bypasses for
10695 cortex_a53_r2f_cvt.
10696 (cortex_a53_r2f): Only use for transfers.
10697 (cortex_a53_f2r): Likewise.
10698 (cortex_a53_r2f_cvt): Add reservation for conversions.
10699 (cortex_a53_f2r_cvt): Likewise.
10700
10701 2017-01-11 Tamar Christina <tamar.christina@arm.com>
10702
10703 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
10704 to all inlined functions, change static to extern.
10705
10706 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
10707
10708 PR target/78253
10709 * config/arm/arm.c (legitimize_pic_address): Handle reference to
10710 weak symbol.
10711 (arm_assemble_integer): Likewise.
10712
10713 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
10714
10715 * config.gcc: Use new awk script to check CPU, FPU and architecture
10716 parameters for --with-... options.
10717 * config/arm/parsecpu.awk: New file
10718 * config/arm/arm-cpus.in: New file.
10719 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
10720 files.
10721 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
10722 files.
10723 * config/arm/t-arm: Update dependency rules.
10724 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
10725 of processing .def files.
10726 * config/arm/genopt.sh: Deleted.
10727 * config/arm/gentune.sh: Deleted.
10728 * config/arm/arm-cores.def: Deleted.
10729 * config/arm/arm-arches.def: Deleted.
10730 * config/arm/arm-fpus.def: Deleted.
10731 * config/arm/arm-tune.md: Regenerated.
10732 * config/arm/arm-tables.opt: Regenerated.
10733 * config/arm/arm-cpu.h: New generated file.
10734 * config/arm/arm-cpu-data.h: New generated file.
10735 * config/arm/arm-cpu-cdata.h: New generated file.
10736
10737 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
10738
10739 PR lto/79042
10740 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
10741 bit.
10742 (input_varpool_node): Unpack dynamically_initialized bit.
10743
10744 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
10745
10746 PR rtl-optimization/79032
10747 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
10748 the alignment of the adjusted memory reference against that of MODE,
10749 instead of the alignment of the original memory reference.
10750
10751 2017-01-11 Martin Jambor <mjambor@suse.cz>
10752
10753 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
10754 test.
10755 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
10756 decorated functions.
10757
10758 2017-01-11 Richard Biener <rguenther@suse.de>
10759
10760 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
10761 set range/nonnull info for PHI results. Do not set it on
10762 stmts marked for removal.
10763
10764 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
10765
10766 * expr.c (store_field): In the bitfield case, fetch the return value
10767 from the registers before applying a single big-endian adjustment.
10768 Always do a final load for a BLKmode value not larger than a word.
10769
10770 2017-01-10 David Malcolm <dmalcolm@redhat.com>
10771
10772 PR c++/77949
10773 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
10774 that we correctly handle column numbers greater than
10775 LINE_MAP_MAX_COLUMN_NUMBER.
10776
10777 2017-01-10 Martin Sebor <msebor@redhat.com>
10778
10779 PR middle-end/78245
10780 * gimple-ssa-sprintf.c (get_destination_size): Call
10781 {init,fini}object_sizes.
10782 * tree-object-size.c (addr_object_size): Adjust.
10783 (pass_through_call): Adjust.
10784 (pass_object_sizes::execute): Adjust.
10785 * tree-object-size.h (fini_object_sizes): Declare.
10786
10787 2017-01-10 Martin Sebor <msebor@redhat.com>
10788
10789 PR tree-optimization/78775
10790 * builtins.c (get_size_range): Move...
10791 * calls.c: ...to here.
10792 (alloc_max_size): Accept zero argument.
10793 (operand_signed_p): Remove.
10794 (maybe_warn_alloc_args_overflow): Call get_size_range.
10795 * calls.h (get_size_range): Declare.
10796
10797 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
10798
10799 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
10800 from TI's devices.csv file as of September 2016.
10801 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
10802
10803 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
10804
10805 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
10806 * doc/invoke.texi: Likewise.
10807 * doc/md.texi: Likewise.
10808 * doc/objc.texi: Likewise.
10809
10810 2017-01-10 Joshua Conner <joshconner@google.com>
10811
10812 * config/arm/fuchsia-elf.h: New file.
10813 * config/fuchsia.h: New file.
10814 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
10815 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
10816 targets.
10817 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
10818
10819 2016-01-10 Richard Biener <rguenther@suse.de>
10820
10821 PR tree-optimization/79034
10822 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
10823 Propagate out degenerate PHIs in the joiner.
10824
10825 2017-01-10 Martin Liska <mliska@suse.cz>
10826
10827 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
10828 (sort_congruence_classes_by_decl_uid): Likewise.
10829 (sort_congruence_class_groups_by_decl_uid): Likewise.
10830 (sem_item_optimizer::merge_classes): Sort class, groups in these
10831 classes and members in the groups by DECL_UID of declarations.
10832 This would make merge operations stable.
10833
10834 2017-01-10 Martin Liska <mliska@suse.cz>
10835
10836 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
10837 usage of m_classes_vec.
10838 (sem_item_optimizer::~sem_item_optimizer): Likewise.
10839 (sem_item_optimizer::get_group_by_hash): Likewise.
10840 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
10841 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
10842 (sem_item_optimizer::verify_classes): Likewise.
10843 (sem_item_optimizer::process_cong_reduction): Likewise.
10844 (sem_item_optimizer::dump_cong_classes): Likewise.
10845 (sem_item_optimizer::merge_classes): Likewise.
10846 * ipa-icf.h (congruence_class_hash): Rename from
10847 congruence_class_group_hash. Remove declaration of m_classes_vec.
10848
10849 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
10850
10851 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
10852 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
10853 * config.gcc: Add avx512vpopcntdqintrin.h.
10854 * config/i386/avx512vpopcntdqintrin.h: New.
10855 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
10856 * config/i386/i386-builtin-types.def: Add new types.
10857 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
10858 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
10859 __builtin_ia32_vpopcountq_v8di_mask): New.
10860 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10861 __AVX512VPOPCNTDQ__.
10862 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
10863 (PTA_AVX512VPOPCNTDQ): Define.
10864 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
10865 TARGET_AVX512VPOPCNTDQ_P): Define.
10866 * config/i386/i386.opt: Add mavx512vpopcntdq.
10867 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
10868 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
10869
10870 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
10871
10872 PR middle-end/77484
10873 * predict.def (PRED_CALL): Set to 67.
10874
10875 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
10876
10877 * expr.c (store_field): In the bitfield case, if the value comes from
10878 a function call and is of an aggregate type returned in registers, do
10879 not modify the field mode; extract the value in all cases if the mode
10880 is BLKmode and the size is not larger than a word.
10881
10882 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
10883
10884 PR target/71017
10885 * config/i386/cpuid.h: Fix undefined behavior.
10886
10887 2017-01-04 Jeff Law <law@redhat.com>
10888
10889 PR tree-optimization/79007
10890 PR tree-optimization/67955
10891 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
10892 conservative for pt.null when flag_non_call_exceptions is on.
10893
10894 2017-01-09 Jakub Jelinek <jakub@redhat.com>
10895
10896 PR translation/79019
10897 PR translation/79020
10898 * params.def (PARAM_INLINE_MIN_SPEEDUP,
10899 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
10900 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
10901 in descriptions.
10902 * config/avr/avr.opt (maccumulate-args): Likewise.
10903 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
10904 * common.opt (freport-bug): Likewise.
10905 * cif-code.def (CIF_FINAL_ERROR): Likewise.
10906 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
10907 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
10908 translatable string.
10909 * config/i386/i386.c (function_value_32): Likewise.
10910 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
10911 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
10912 Likewise.
10913 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
10914 * common/config/msp430/msp430-common.c (msp430_handle_option):
10915 Likewise.
10916 * symtab.c (symtab_node::verify_base): Likewise.
10917 * opts.c (set_debug_level): Likewise.
10918 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
10919 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10920 missing whitespace to translatable strings.
10921 * config/avr/avr.md (bswapsi2): Fix typo in comment.
10922 * config/sh/superh.h: Likewise.
10923 * config/i386/xopintrin.h: Likewise.
10924 * config/i386/znver1.md: Likewise.
10925 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
10926 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
10927 * double-int.h (struct double_int): Likewise.
10928 * double-int.c (div_and_round_double): Likewise.
10929 * wide-int.cc: Likewise.
10930 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
10931 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
10932 * cfgcleanup.c (crossjumps_occured): Renamed to ...
10933 (crossjumps_occurred): ... this.
10934 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
10935 Adjust all uses.
10936
10937 PR tree-optimization/78899
10938 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
10939 returning bool return struct loop *, NULL for failure and the new
10940 loop on success.
10941 (versionable_outer_loop_p): Don't version outer loop if it has
10942 dont_vectorized bit set.
10943 (tree_if_conversion): When versioning outer loop, ensure
10944 tree_if_conversion is performed also on the inner loop of the
10945 non-vectorizable outer loop copy.
10946 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
10947 LOOP_VECTORIZED in inner loop of the scalar outer loop and
10948 prevent vectorization of it.
10949 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
10950 the outer loop vectorization of the non-scalar version is attempted
10951 before vectorization of the inner loop in scalar version. If
10952 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
10953 vectorization of its inner loop.
10954 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
10955 has 2 inner loops, rename also on edges from bb whose single pred
10956 is outer_loop->header. Fix typo in function comment.
10957
10958 2017-01-09 Martin Sebor <msebor@redhat.com>
10959
10960 PR bootstrap/79033
10961 * asan.c (asan_emit_stack_protection): Increase local buffer size
10962 to avoid snprintf truncation warning.
10963
10964 2017-01-09 Andrew Pinski <apinski@cavium.com>
10965
10966 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
10967 to reference thunderx2t99 for the tuning structure
10968 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
10969 Rename to ...
10970 (thunderx2t99_extra_costs): This.
10971 * config/aarch64/aarch64-tune.md: Regenerate.
10972 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
10973 (vulcan_addrcost_table): This.
10974 (vulcan_regmove_cost): Rename to ...
10975 (thunderx2t99_regmove_cost): This.
10976 (vulcan_vector_cost): Rename to ...
10977 (thunderx2t99_vector_cost): this.
10978 (vulcan_branch_cost): Rename to ...
10979 (thunderx2t99_branch_cost): This.
10980 (vulcan_tunings): Rename to ...
10981 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
10982 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
10983
10984 2017-01-09 Martin Jambor <mjambor@suse.cz>
10985
10986 PR ipa/78365
10987 PR ipa/78599
10988 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
10989 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
10990 (propagate_vr_accross_jump_function): Use the above function for all
10991 value range computations for pass-through jump functions and type
10992 converasion from explicit value range values.
10993 (ipcp_propagate_stage): Do not attempt to deduce types of formal
10994 parameters from TYPE_ARG_TYPES.
10995 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
10996 (ipa_write_node_info): Stream type of the actual argument.
10997 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
10998
10999 2017-01-09 Martin Liska <mliska@suse.cz>
11000
11001 PR pch/78970
11002 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
11003 (lookup_compiler): Do not show error message with have_E.
11004
11005 2017-01-09 Jakub Jelinek <jakub@redhat.com>
11006
11007 PR tree-optimization/78938
11008 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
11009 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
11010 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
11011 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
11012 fixes.
11013
11014 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11015
11016 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
11017 is const0_rtx.
11018
11019 2017-01-09 Richard Biener <rguenther@suse.de>
11020
11021 PR tree-optimization/78997
11022 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
11023 name condition properly.
11024
11025 2017-01-09 Richard Biener <rguenther@suse.de>
11026
11027 PR debug/79000
11028 * dwarf2out.c (is_cxx): New overload with context.
11029 (is_naming_typedef_decl): Use it.
11030
11031 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
11032
11033 * invoke.texi (Option Summary): Correct spacing in option lists
11034 and add line breaks to fix over-long lines.
11035
11036 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
11037
11038 PR middle-end/17660
11039
11040 * extend.texi (Common Variable Attributes): Add xref to GCC
11041 Internals manual to explain mode attribute keywords.
11042
11043 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
11044
11045 PR other/16519
11046 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
11047 and Preprocessor Options.
11048 (Options for Linking): Document -pthread here....
11049 (RS/6000 and PowerPC Options): ...not here.
11050 (Solaris 2 Options): ...or here.
11051 * doc/cppopts.texi: Document -pthread.
11052
11053 2017-01-08 Martin Sebor <msebor@redhat.com>
11054
11055 PR middle-end/77708
11056 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
11057 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
11058 New member functions.
11059 (format_directive): Used them.
11060 (add_bytes): Same.
11061 (pass_sprintf_length::handle_gimple_call): Same.
11062 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
11063 to avoid truncation for any argument.
11064 (extract_affine_mul): Same.
11065 * tree.c (get_file_function_name): Same.
11066
11067 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
11068
11069 PR middle-end/77484
11070 * predict.def (PRED_INDIR_CALL): Set to 86.
11071
11072 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
11073
11074 PR preprocessor/54124
11075 * doc/cppopts.texi: Reformat -d subtable to list the full name
11076 of the options. Add cross-reference to the docs for the general
11077 compiler -d options.
11078 * doc/invoke.texi (Developer Options): Add cross-reference to the
11079 preprocessor-specific -d option documentation.
11080
11081 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
11082
11083 PR preprocessor/13498
11084 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
11085 redudant material, and reflect new command-line options.
11086 (System Headers): Likewise.
11087
11088 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
11089
11090 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
11091 -isystem, and -idirafter. Copy-edit.
11092 * doc/cppopts.texi: Copy-edit. Remove contradiction about
11093 default for -ftrack-macro-expansion. Delete obsolete and
11094 badly-formatted implementation details about -fdebug-cpp output.
11095 * doc/cppwarnopts.texi: Copy-edit.
11096
11097 2017-01-07 David Malcolm <dmalcolm@redhat.com>
11098
11099 PR c++/72803
11100 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
11101 that the transition from a max line width >= 1<<10 to narrower
11102 lines works correctly.
11103
11104 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
11105
11106 * doc/options.texi (PerFunction): New.
11107 * opt-functions.awk (switch_flags): Map both Optimization and
11108 PerFunction to CL_OPTIMIZATION.
11109 * opth-gen.awk: Test for PerFunction flag along with
11110 Optimization.
11111 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
11112 it only when the latter is present. Skip those that don't in
11113 the hash function generator.
11114 * common.opt (fvar-tracking): Mark as PerFunction instead of
11115 Optimization.
11116 (fvar-tracking-assignments): Likewise.
11117 (fvar-tracking-assignments-toggle): Likewise.
11118 (fvar-tracking-uninit): Likewise.
11119
11120 2017-01-07 Jakub Jelinek <jakub@redhat.com>
11121
11122 PR translation/79018
11123 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
11124 the and store.
11125
11126 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
11127
11128 PR target/57583
11129 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
11130 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
11131 TARGET_LONG_JUMP_TABLE_OFFSETS.
11132 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
11133 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
11134 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
11135 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
11136 * config/m68k/m68k.md (tablejump expander): Likewise.
11137 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
11138 TARGET_LONG_JUMP_TABLE_OFFSETS.
11139 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
11140 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
11141
11142 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11143 David Holsgrove <david.holsgrove@xilinx.com>
11144
11145 * common/config/microblaze/microblaze-common.c
11146 (TARGET_EXCEPT_UNWIND_INFO): Remove.
11147 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
11148 New prototype.
11149 * config/microblaze/microblaze.c (microblaze_must_save_register)
11150 (microblaze_expand_epilogue, microblaze_return_addr): Handle
11151 calls_eh_return.
11152 (microblaze_eh_return): New function.
11153 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
11154 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
11155 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
11156 * config/microblaze/microblaze.md (eh_return): New pattern.
11157
11158 2017-01-06 Jakub Jelinek <jakub@redhat.com>
11159
11160 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
11161 GCC_DIAGNOSTIC_STRINGIFY): Define.
11162
11163 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
11164
11165 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
11166
11167 * config/arm/arm.md (<mcrr>): New.
11168 (<mrrc>): New.
11169 * config/arm/arm.c (arm_arch5te): New.
11170 (arm_option_override): Set arm_arch5te.
11171 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
11172 and mrrc2.
11173 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
11174 (arm_mcrr_qualifiers): ... this. New.
11175 (MRRC_QUALIFIERS): Define to...
11176 (arm_mrrc_qualifiers): ... this. New.
11177 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
11178 __arm_mrrc2): New.
11179 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
11180 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
11181 (MRRCI, mrrc, MRRC): New.
11182 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
11183 VUNSPEC_MRRC2): New.
11184
11185 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
11186
11187 * config/arm/arm.md (<mcr>): New.
11188 (<mrc>): New.
11189 * config/arm/arm.c (arm_coproc_builtin_available): Add
11190 support for mcr, mrc, mcr2 and mrc2.
11191 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
11192 (arm_mcr_qualifiers): ... this. New.
11193 (MRC_QUALIFIERS): Define to ...
11194 (arm_mrc_qualifiers): ... this. New.
11195 (MCR_QUALIFIERS): Define to ...
11196 (arm_mcr_qualifiers): ... this. New.
11197 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
11198 __arm_mrc2): New.
11199 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
11200 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
11201 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
11202 VUNSPEC_MRC2): New.
11203
11204 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
11205
11206 * config/arm/arm.md (*ldc): New.
11207 (*stc): New.
11208 (<ldc>): New.
11209 (<stc>): New.
11210 * config/arm/arm.c (arm_coproc_builtin_available): Add
11211 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
11212 (arm_coproc_ldc_stc_legitimate_address): New.
11213 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
11214 'qualifier_const_pointer'.
11215 (LDC_QUALIFIERS): Define to...
11216 (arm_ldc_qualifiers): ... this. New.
11217 (STC_QUALIFIERS): Define to...
11218 (arm_stc_qualifiers): ... this. New.
11219 * config/arm/arm-protos.h
11220 (arm_coproc_ldc_stc_legitimate_address): New.
11221 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
11222 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
11223 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
11224 stc2, stcl, stc2l): New.
11225 * config/arm/constraints.md (Uz): New.
11226 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
11227 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
11228 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
11229 VUNSPEC_STC2L): New.
11230
11231 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
11232
11233 * config/arm/arm.md (<cdp>): New.
11234 * config/arm/arm.c (neon_const_bounds): Rename this ...
11235 (arm_const_bounds): ... this.
11236 (arm_coproc_builtin_available): New.
11237 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
11238 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
11239 (CDP_QUALIFIERS): Define to...
11240 (arm_cdp_qualifiers): ... this. New.
11241 (void_UP): Define.
11242 (arm_expand_builtin_args): Add case for 6 arguments.
11243 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
11244 (arm_const_bounds): ... this.
11245 (arm_coproc_builtin_available): New.
11246 * config/arm/arm_acle.h (__arm_cdp): New.
11247 (__arm_cdp2): New.
11248 * config/arm/arm_acle_builtins.def (cdp): New.
11249 (cdp2): New.
11250 * config/arm/iterators.md (CDPI,CDP,cdp): New.
11251 * config/arm/neon.md: Rename all 'neon_const_bounds' to
11252 'arm_const_bounds'.
11253 * config/arm/types.md (coproc): New.
11254 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
11255 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
11256 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
11257 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
11258
11259 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
11260
11261 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
11262 (UBINOP_QUALIFIERS): New.
11263 (si_UP): Define.
11264 (acle_builtin_data): New. Change comment.
11265 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
11266 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
11267 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
11268 arm_acle_builtins.def.
11269 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
11270 (arm_init_acle_builtins): New.
11271 (CRC32_BUILTIN): Remove.
11272 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
11273 crc32cb, crc32ch and crc32cw.
11274 (arm_init_crc32_builtins): Remove.
11275 (arm_init_builtins): Use arm_init_acle_builtins rather
11276 than arm_init_crc32_builtins.
11277 (arm_expand_acle_builtin): New.
11278 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
11279 * config/arm/arm_acle_builtins.def: New.
11280
11281 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
11282
11283 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
11284 (arm_builtin_datum): ... this.
11285 (arm_init_neon_builtin): Rename to ...
11286 (arm_init_builtin): ... this. Add a new parameters PREFIX
11287 and USE_SIG_IN_NAME.
11288 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
11289 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
11290 'arm_builtin_datum'.
11291 (arm_init_vfp_builtins): Likewise.
11292 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
11293 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
11294 (arm_expand_neon_args): Rename to ...
11295 (arm_expand_builtin_args): ... this. Rename builtin_arg
11296 enum values and differentiate between ARG_BUILTIN_MEMORY
11297 and ARG_BUILTIN_NEON_MEMORY.
11298 (arm_expand_neon_builtin_1): Rename to ...
11299 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
11300 values, arm_expand_builtin_args and add bool parameter NEON.
11301 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
11302 (arm_expand_vfp_builtin): Likewise.
11303 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
11304
11305 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
11306
11307 PR middle-end/77484
11308 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
11309 * predict.c (tree_estimate_probability_bb): Reverse direction of
11310 polymorphic call predictor.
11311
11312 2017-01-06 David Malcolm <dmalcolm@redhat.com>
11313
11314 * passes.c (execute_one_pass): Split out pass-skipping logic into...
11315 (determine_pass_name_match): ...this new function and...
11316 (should_skip_pass_p): ...this new function.
11317
11318 2017-01-06 Nathan Sidwell <nathan@acm.org>
11319
11320 * ipa-visibility.c (function_and_variable_visibility): Reformat
11321 comments and long lines. Remove extrneous if.
11322 * symtab.c (symtab_node::make_decl_local): Fix code format.
11323 (symtab_node::set_section_for_node): Fix comment typo.
11324
11325 2017-01-06 Martin Liska <mliska@suse.cz>
11326
11327 PR bootstrap/79003
11328 * lra-constraints.c: Rename invariant to lra_invariant.
11329 * predict.c (set_even_probabilities): Initialize e to NULL.
11330
11331 2017-01-05 Martin Sebor <msebor@redhat.com>
11332
11333 PR tree-optimization/78910
11334 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
11335 (format_integer): Correct off-by-one error in the handling
11336 of precision with negative numbers in signed conversions..
11337
11338 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
11339
11340 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
11341
11342 2017-01-05 Jakub Jelinek <jakub@redhat.com>
11343
11344 PR tree-optimization/71016
11345 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
11346 factor_out_conditional_conversion. Formatting fix.
11347 (factor_out_conditional_conversion): Add cond_stmt argument.
11348 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
11349 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
11350 Formatting fix.
11351
11352 2017-01-05 David Malcolm <dmalcolm@redhat.com>
11353
11354 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
11355 read-rtl-function.o, and selftest-rtl.o.
11356 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
11357 (selftest::aarch64_test_loading_full_dump): New function.
11358 (selftest::aarch64_run_selftests): New function.
11359 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
11360 selftest::aarch64_run_selftests.
11361 * config/i386/i386.c
11362 (selftest::ix86_test_loading_dump_fragment_1): New function.
11363 (selftest::ix86_test_loading_call_insn): New function.
11364 (selftest::ix86_test_loading_full_dump): New function.
11365 (selftest::ix86_test_loading_unspec): New function.
11366 (selftest::ix86_run_selftests): Call the new functions.
11367 * emit-rtl.c (maybe_set_max_label_num): New function.
11368 * emit-rtl.h (maybe_set_max_label_num): New decl.
11369 * function.c (instantiate_decls): Guard call to
11370 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
11371 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
11372 "static".
11373 * gensupport.c (gen_reader::gen_reader): Pass "false"
11374 for new "compact" param of rtx_reader.
11375 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
11376 rather than an empty string for NULL strings.
11377 * read-md.c: Potentially include config.h rather than bconfig.h.
11378 Wrap include of errors.h with #ifdef GENERATOR_FILE.
11379 (have_error): New global, copied from errors.c.
11380 (md_reader::read_name): Rename to...
11381 (md_reader::read_name_1): ...this, adding "out_loc" param,
11382 and converting "missing name or number" to returning false, rather
11383 than failing.
11384 (md_reader::read_name): Reimplement in terms of read_name_1.
11385 (md_reader::read_name_or_nil): New function.
11386 (md_reader::read_string): Handle "(nil)" by returning NULL.
11387 (md_reader::md_reader): Add new param "compact".
11388 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
11389 (md_reader::read_file): New method.
11390 * read-md.h (md_reader::md_reader): Add new param "compact".
11391 (md_reader::read_file): New method.
11392 (md_reader::is_compact): New accessor.
11393 (md_reader::read_name): Convert return type from void to file_location.
11394 (md_reader::read_name_or_nil): New decl.
11395 (md_reader::read_name_1): New decl.
11396 (md_reader::m_compact): New field.
11397 (noop_reader::noop_reader): Pass "false" for new "compact" param
11398 of rtx_reader.
11399 (rtx_reader::rtx_reader): Add new "compact" param.
11400 (rtx_reader::read_rtx_operand): Make virtual and convert return
11401 type from void to rtx.
11402 (rtx_reader::read_until): New decl.
11403 (rtx_reader::handle_any_trailing_information): New virtual function.
11404 (rtx_reader::postprocess): New virtual function.
11405 (rtx_reader::finalize_string): New virtual function.
11406 (rtx_reader::m_in_call_function_usage): New field.
11407 (rtx_reader::m_reuse_rtx_by_id): New field.
11408 * read-rtl-function.c: New file.
11409 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
11410 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
11411 (selftest::verify_three_block_rtl_cfg): New decl.
11412 * read-rtl-function.h: New file.
11413 * read-rtl.c: Potentially include config.h rather than bconfig.h.
11414 For host, include function.h, memmodel.h, and emit-rtl.h.
11415 (one_time_initialization): New function.
11416 (struct compact_insn_name): New struct.
11417 (compact_insn_names): New array.
11418 (find_code): Handle insn codes in compact dumps.
11419 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
11420 (bind_subst_iter_and_attr): Likewise.
11421 (add_condition_to_string): Likewise.
11422 (add_condition_to_rtx): Likewise.
11423 (apply_attribute_uses): Likewise.
11424 (add_current_iterators): Likewise.
11425 (apply_iterators): Likewise.
11426 (initialize_iterators): Guard usage of apply_subst_iterator with
11427 #ifdef GENERATOR_FILE.
11428 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
11429 (md_reader::read_mapping): Likewise.
11430 (add_define_attr_for_define_subst): Likewise.
11431 (add_define_subst_attr): Likewise.
11432 (read_subst_mapping): Likewise.
11433 (check_code_iterator): Likewise.
11434 (rtx_reader::read_rtx): Likewise. Move one-time initialization
11435 logic to...
11436 (one_time_initialization): New function.
11437 (rtx_reader::read_until): New method.
11438 (read_flags): New function.
11439 (parse_reg_note_name): New function.
11440 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
11441 Handle reuse_rtx ids.
11442 Wrap iterator lookup within #ifdef GENERATOR_FILE.
11443 Add parsing support for RTL dumps, mirroring the special-cases in
11444 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
11445 values, and calling handle_any_trailing_information.
11446 (rtx_reader::read_rtx_operand): Convert return type from void
11447 to rtx, returning return_rtx. Handle case 'e'. Call
11448 finalize_string on XSTR and XTMPL fields.
11449 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
11450 "(nil)" values were omitted. Call the postprocess vfunc on the
11451 return_rtx.
11452 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
11453 class ctor. Initialize m_in_call_function_usage. Call
11454 one_time_initialization.
11455 * rtl-tests.c (selftest::test_uncond_jump): Call
11456 set_new_first_and_last_insn.
11457 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
11458 * selftest-rtl.c: New file.
11459 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
11460 (selftest::get_insn_by_uid): New decl.
11461 * selftest-run-tests.c (selftest::run_tests): Call
11462 read_rtl_function_c_tests.
11463 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
11464 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
11465 dumps.
11466
11467 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
11468
11469 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
11470 operands in a special way. Assert that pos+len <= mode precision.
11471
11472 2017-01-05 Jakub Jelinek <jakub@redhat.com>
11473
11474 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
11475 3 argument Alias with unlimited for the negative form.
11476 (fno-vect-cost-model): Removed.
11477
11478 2017-01-05 Martin Liska <mliska@suse.cz>
11479
11480 * hsa-gen.c (gen_hsa_divmod): New function.
11481 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
11482
11483 2017-01-05 Martin Liska <mliska@suse.cz>
11484
11485 PR pch/78970
11486 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
11487 header.
11488
11489 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11490
11491 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
11492 small constant length operands.
11493
11494 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11495
11496 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
11497 between loop iterations.
11498
11499 2017-01-05 Martin Liska <mliska@suse.cz>
11500
11501 PR sanitizer/78815
11502 * gimplify.c (gimplify_decl_expr): Compare to
11503 asan_poisoned_variables instread of checking flags.
11504 (gimplify_target_expr): Likewise.
11505 (gimplify_expr): Likewise.
11506 (gimplify_function_tree): Conditionally initialize
11507 asan_poisoned_variables.
11508
11509 2017-01-04 Jeff Law <law@redhat.com>
11510
11511 PR tree-optimizatin/78812
11512 * rtl.h (contains_mem_rtx_p): Prototype.
11513 * ifcvt.c (containts_mem_rtx_p): Move from here to...
11514 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
11515 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
11516 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
11517 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
11518
11519 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
11520
11521 * input.c (assert_char_at_range): Default-initialize actual_range.
11522
11523 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
11524
11525 * df-scan.c (df_ref_create_structure): Make regno unsigned,
11526 to match the caller.
11527
11528 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
11529
11530 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
11531 insns after final jump in test to emit dummy move.
11532
11533 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
11534
11535 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
11536 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
11537
11538 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
11539
11540 * multiple_target.c (create_dispatcher_calls): Init e_next.
11541 * tree-ssa-loop-split.c (split_loop): Init border.
11542 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
11543 scalar_type.
11544
11545 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
11546
11547 PR target/71977
11548 PR target/70568
11549 PR target/78823
11550 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
11551 (altivec_register_operand): Do not return true if the operand
11552 contains a SUBREG mixing SImode and SFmode.
11553 (vsx_register_operand): Likewise.
11554 (vsx_reg_sfsubreg_ok): New predicate.
11555 (vfloat_operand): Do not return true if the operand contains a
11556 SUBREG mixing SImode and SFmode.
11557 (vint_operand): Likewise.
11558 (vlogical_operand): Likewise.
11559 (gpc_reg_operand): Likewise.
11560 (int_reg_operand): Likewise.
11561 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
11562 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
11563 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
11564 SImode and SFmode.
11565 (rs6000_emit_move_si_sf_subreg): New helper function.
11566 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
11567 fixup SUBREGs involving SImode and SFmode.
11568 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
11569 numbers for the new peephole2 optimization.
11570 (peephole2 for SFmode unions): New peephole2 to optimize cases in
11571 the GLIBC math library that do AND/IOR/XOR operations on single
11572 precision floating point.
11573 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
11574 target macros to say whether we need to avoid SUBREGs mixing
11575 SImode and SFmode.
11576 (TARGET_ALLOW_SF_SUBREG): Likewise.
11577 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
11578 (UNSPEC_SI_FROM_SF): Likewise.
11579 (iorxor): Change spacing.
11580 (and_ior_xor): New iterator for AND, IOR, and XOR.
11581 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
11582 (movdi_from_sf_zero_ext): Likewise.
11583 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
11584 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
11585 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
11586 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
11587 (fms<mode>4): Likewise.
11588 (fnma<mode>4): Likewise.
11589 (fnms<mode>4): Likewise.
11590 (nfma<mode>4): Likewise.
11591 (nfms<mode>4): Likewise.
11592
11593 2017-01-04 Marek Polacek <polacek@redhat.com>
11594
11595 PR c++/64767
11596 * doc/invoke.texi: Document -Wpointer-compare.
11597
11598 2017-01-04 Jakub Jelinek <jakub@redhat.com>
11599
11600 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
11601 RejectNegative.
11602
11603 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
11604 descriptions for -gdwarf-5 and emit them as uleb128 instead of
11605 2-byte data.
11606
11607 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
11608
11609 PR target/78056
11610 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
11611 documentation of the powerpc_popcntb_ok attribute.
11612 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
11613 code to issue warning messages if a requested CPU configuration is
11614 not supported by the binary (assembler and loader) toolchain.
11615 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
11616 made to define a built-in function that has been disabled.
11617 (paired_init_builtins): Add assertion to prevent ICE if attempt is
11618 made to define a built-in function that has been disabled.
11619 (altivec_init_builtins): Add comment explaining why definition
11620 of the DST built-in functions is not preceded by an assertion
11621 check. Add assertions to prevent ICE if attempts are made to
11622 define an altivec predicate or an abs* built-in function that has
11623 been disabled.
11624 (htm_init_builtins): Add comment explaining why definition of the
11625 htm built-in functions is not preceded by an assertion check.
11626
11627 2017-01-04 Jeff Law <law@redhat.com>
11628
11629 PR tree-optimizatin/67955
11630 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
11631 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
11632 the points-to solution does not include pt_null. Use DECL_PT_UID
11633 unconditionally.
11634
11635 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
11636
11637 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
11638 Use gen_int_mode instead of gen_lopwart for const_int operands.
11639
11640 2017-01-04 Jakub Jelinek <jakub@redhat.com>
11641
11642 PR tree-optimization/71563
11643 * match.pd: Simplify X << Y into X if Y is known to be 0 or
11644 out of range value - has low bits known to be zero.
11645
11646 2017-01-04 Alan Modra <amodra@gmail.com>
11647
11648 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
11649 * configure: Regenerate.
11650 * config.in: Regenerate.
11651
11652 2017-01-04 Jakub Jelinek <jakub@redhat.com>
11653
11654 PR bootstrap/77569
11655 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
11656 a substring of the message, but strcmp with the whole message. Ifdef
11657 ENABLE_NLS, translate the message first using dgettext.
11658
11659 2017-01-03 Jeff Law <law@redhat.com>
11660
11661 PR tree-optimizatin/78856
11662 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
11663 (mark_threaded_blocks): Remove code to truncate thread paths that
11664 cross multiple loop headers. Instead invalidate the cached loop
11665 iteration information and handle case of a thread path walking
11666 into an irreducible region.
11667
11668 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
11669
11670 PR target/78900
11671 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
11672 assertions. Add support for doing the signbit if the IEEE 128-bit
11673 floating point value is in a GPR.
11674 * config/rs6000/rs6000.md (Fsignbit): Delete.
11675 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
11676 Update the length attribute if the value is in a GPR.
11677 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
11678 the sign or zero extension instruction, since the value is always 0/1.
11679 (signbit<mode>2_dm2): Delete using <Fsignbit>.
11680
11681 PR target/78953
11682 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
11683 extracting SImode to a GPR register so that we can generate a
11684 store, limit the vector to be in a traditional Altivec register
11685 for the vextuwrx instruction.
11686
11687 2017-01-03 Ian Lance Taylor <iant@google.com>
11688
11689 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
11690
11691 2017-01-03 Martin Sebor <msebor@redhat.com>
11692
11693 PR tree-optimization/78696
11694 * gimple-ssa-sprintf.c (format_floating): Correct handling of
11695 precision. Use MPFR for %f for greater fidelity. Correct handling
11696 of %g.
11697 (pass_sprintf_length::compute_format_length): Set width and precision
11698 specified by asrerisk to void_node for vararg functions.
11699 (try_substitute_return_value): Adjust dump output.
11700
11701 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
11702
11703 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
11704
11705 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
11706
11707 * doc/invoke.texi (SPARC options): Document -mlra as the default.
11708 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
11709 -mlra/-mno-lra was passed to the compiler.
11710
11711 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
11712
11713 PR rtl-optimization/65618
11714 * emit-rtl.c (try_split): Move initialization of "before" and
11715 "after" to just before the call to emit_insn_after_setloc.
11716
11717 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
11718
11719 * doc/md.texi (Standard Names): Remove reference to Java frontend.
11720
11721 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
11722
11723 * dwarf2out.c (gen_enumeration_type_die): When
11724 -gno-strict-dwarf, add a DW_AT_encoding attribute.
11725
11726 2017-01-03 Jakub Jelinek <jakub@redhat.com>
11727
11728 PR tree-optimization/78965
11729 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
11730 Change first argument from const call_info & to call_info &. For %n
11731 set info.nowrite to false.
11732
11733 PR middle-end/78901
11734 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
11735 possibly throwing calls.
11736
11737 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
11738 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
11739 and fns handling, rather than in a separate case SSA_NAME.
11740
11741 2017-01-02 Jeff Law <law@redhat.com>
11742
11743 * config/darwin-driver.c (darwin_driver_init): Const-correctness
11744 fixes for first_period and second_period variables.
11745
11746 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
11747
11748 PR target/78967
11749 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
11750 (*insvqi_1): New insn pattern.
11751 (*insvqi_1_mem_rex64): Ditto.
11752 (*insvqi_2): Ditto.
11753 (*insvqi_3): Rename from *insvqi.
11754
11755 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
11756
11757 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11758
11759 * doc/cfg.texi (Edges): Remove reference to Java.
11760 (Maintaining the CFG): Ditto.
11761
11762 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
11763
11764 PR middle-end/77674
11765 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
11766 transparent aliases.
11767
11768 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
11769
11770 PR middle-end/77484
11771 * predict.def (PRED_CALL): Update hitrate.
11772 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
11773 * predict.c (tree_estimate_probability_bb): Split CALL predictor
11774 into direct/indirect/polymorphic variants.
11775
11776 2017-01-01 Jakub Jelinek <jakub@redhat.com>
11777
11778 Update copyright years.
11779
11780 * gcc.c (process_command): Update copyright notice dates.
11781 * gcov-dump.c (print_version): Ditto.
11782 * gcov.c (print_version): Ditto.
11783 * gcov-tool.c (print_version): Ditto.
11784 * gengtype.c (create_file): Ditto.
11785 * doc/cpp.texi: Bump @copying's copyright year.
11786 * doc/cppinternals.texi: Ditto.
11787 * doc/gcc.texi: Ditto.
11788 * doc/gccint.texi: Ditto.
11789 * doc/gcov.texi: Ditto.
11790 * doc/install.texi: Ditto.
11791 * doc/invoke.texi: Ditto.
11792 \f
11793 Copyright (C) 2017 Free Software Foundation, Inc.
11794
11795 Copying and distribution of this file, with or without modification,
11796 are permitted in any medium without royalty provided the copyright
11797 notice and this notice are preserved.