* da.po, es.po: Update.
[official-gcc.git] / gcc / ChangeLog
blob3dac2253052f032b678be77a9e5626005595bcc0
1 2017-05-19  Martin Sebor  <msebor@redhat.com>
3         * print-tree.c (print_node): Print DECL_READ_P flag.
5 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
7         * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
8         * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
9         * cgraph.c: Likewise.
10         * cgraphunit.c: Likewise.
11         * gengtype.c: Likewise.
12         * ipa-cp.c: Likewise.
13         * ipa-devirt.c: Likewise.
14         * ipa-icf.c: Likewise.
15         * ipa-predicate.c: Likewise.
16         * ipa-profile.c: Likewise.
17         * ipa-prop.c: Likewise.
18         * ipa-split.c: Likewise.
19         * ipa.c: Likewise.
20         * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
21         edge_predicate_pool, dump_inline_hints,
22         inline_summary::account_size_time, redirect_to_unreachable,
23         edge_set_predicate, set_hint_predicate,
24         evaluate_conditions_for_known_args, evaluate_properties_for_edge,
25         inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
26         inline_summary_t::remove, remap_hint_predicate_after_duplication,
27         inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
28         ipa_call_summary_t::remove, initialize_growth_caches,
29         free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
30         debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
31         mark_modified, unmodified_parm_1, unmodified_parm,
32         unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
33         set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
34         compute_bb_predicates, will_be_nonconstant_expr_predicate,
35         will_be_nonconstant_predicate, record_modified_bb_info,
36         get_minimal_bb, record_modified, param_change_prob,
37         phi_result_unknown_predicate, predicate_for_phi_result,
38         array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
39         estimate_function_body_sizes, compute_inline_parameters,
40         compute_inline_parameters_for_curren, pass_data_inline_parameters,
41         estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
42         inline_update_callee_summaries, remap_edge_change_prob,
43         remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
44         inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
45         inline_analyze_function, inline_summary_t::insert,
46         inline_generate_summary, read_ipa_call_summary, inline_read_section,
47         inline_read_summary, write_ipa_call_summary, inline_write_summary,
48         inline_free_summary): Move to ipa-fnsummary.h
49         (predicate_t): Remove.
50         * ipa-fnsummary.c: New file.
51         * ipa-inline.h:  Do not include sreal.h and ipa-predicate.h
52         (enum inline_hints_vals, inline_hints, agg_position_info,
53         INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
54         inline_summaries, ipa_call_summary, ipa_call_summary_t,
55         ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
56         dump_inline_summary, dump_inline_hints, inline_generate_summary,
57         inline_read_summary, inline_write_summary, inline_free_summary,
58         inline_analyze_function, initialize_inline_failed,
59         inline_merge_summary, inline_update_overall_summary,
60         compute_inline_parameters): Move to ipa-fnsummary.h
61         * ipa-fnsummary.h: New file.
62         * ipa-inline-transform.h: Include ipa-inline.h.
63         * ipa-inline.c: LIkewise.
65 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
67         * ipa-inline.c (edge_badness): Use inlined_time instead of
68         inline_summaries->get.
70 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
72         * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
74 2017-05-22  Nathan Sidwell  <nathan@acm.org>
76         * doc/invoke.texi (fdump-translation-unit): Delete documentation.
77         (fdump-lang): Document 'raw' option.
78         * dumpfile.h (TDI_tu): Delete.
79         * dumpfile.c (dump_files): Remove translation-unit.
80         (FIRST_AUTO_NUMBERED_DUMP): Decrement.
82 2017-05-22  Georg-Johann Lay  <avr@gjlay.de>
84         * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
85         command option from $(AWK) call.
86         * config/avr/genmultilib.awk: Simplify and rewrite so that it
87         generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
88         [FORMAT]: Remove handling of variable.
89         * config/avr/t-multilib: Regenerate.
91 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
93         * ipa-inline-analysis.c (inline_summary::reset): Do not reset
94         self_time.
95         (dump_inline_summary): Do not print self_time.
96         (estimate_function_body_sizes): Do not set self_time.
97         (compute_inline_parameters): Likewise.
98         (inline_read_section, inline_write_summary): Do not stream self_time.
99         * ipa-inline.h (inline_summary): Drop self_time.
101 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
103         * ipa-inline-analysis.c (account_size_time): Rename to ...
104         (inline_summary::account_size_time): ... this one.
105         (reset_ipa_call_summary): Turn to ...
106         (ipa_call_summary::reset): ... this one.
107         (reset_inline_summary): Turn to ...
108         (inline_summary::reset): ... this one.
109         (inline_summary_t::remove): Update.
110         (inline_summary_t::duplicate): Update.
111         (ipa_call_summary_t::remove): Update.
112         (dump_inline_summary): Update.
113         (estimate_function_body_sizes): Update.
114         (compute_inline_parameters): Update.
115         (estimate_node_size_and_time): Update.
116         (inline_merge_summary): Update.
117         (inline_update_overall_summary): Update.
118         (inline_read_section): Update.
119         (inline_write_summary): Update.
120         * ipa-inline.h (inline_summary): Rename entry to size_time_table;
121         add account_size_time and reset member functions.
122         (ipa_call_summary): Add reset function.
123         * ipa-predicate.h (predicate::operator &): Constify.
125 2017-05-22  Richard Biener  <rguenther@suse.de>
127         * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
129 2017-05-19  Jason Merrill  <jason@redhat.com>
131         * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
133 2017-05-19  Marek Polacek  <polacek@redhat.com>
135         PR sanitizer/80800
136         * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
137         TYPE_OVERFLOW_WRAPS checks.
139 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
141         * tree-core.h (enum omp_clause_default_kind): Add
142         "OMP_CLAUSE_DEFAULT_PRESENT".
143         * tree-pretty-print.c (dump_omp_clause): Handle it.
144         * gimplify.c (enum gimplify_omp_var_data): Add
145         "GOVD_MAP_FORCE_PRESENT".
146         (gimplify_adjust_omp_clauses_1): Map it to
147         "GOMP_MAP_FORCE_PRESENT".
148         (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
150         * gimplify.c (oacc_default_clause): Clarify.
152 2017-05-19  Nathan Sidwell  <nathan@acm.org>
154         LANG_HOOK_REGISTER_DUMPS
155         * toplev.c (general_init): Call register dump lang hook.
156         * doc/invoke.texi: Document -fdump-lang option family.
157         * dumpfile.c (dump_files): Remove class dump here.
158         (FIRST_AUTO_NUMBERED_DUMP): Adjust.
159         * dumpfile.h (tree_dump_index): Remove TDI_class.
160         * langhooks-def.h (lhd_register_dumps): Declare.
161         (LANG_HOOKS_REGISTER_DUMPS): Define.
162         (LANG_HOOKS_INITIALIZER): Add it.
163         * langhooks.c (lhd_register_dumps): Define.
164         * langhooks.h (struct lang_hooks): Add register_dumps.
166 2017-05-19  Nathan Sidwell  <nathan@acm.org>
168         * context.h (context::set_passes): New.
169         * context.c (context::context): Do not create pass manager.
170         * toplev.c (general_init): Create pass manager here.
172 2017-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
174         * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
175         use this splitter if two add or or instructions would also work for
176         the constant we want to generate.
178 2017-05-19  Richard Biener  <rguenther@suse.de>
180         PR build/80821
181         * genmatch.c (dt_node::gen_kids_1): Add missing scope around
182         predicate evaluation.
184 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
186         * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
187         add ctor.
188         * ipa-inline.c (want_inline_small_function_p): Do not cast to
189         unsigned.
191 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
193         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
194         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
195         (inline_edge_summary_vec): Turn into ...
196         (ipa_call_summaries): ... this one.
197         (redirect_to_unreachable, edge_set_predicate,
198         evaluate_properties_for_edge, inline_summary_alloc,
199         reset_ipa_call_summary, reset_inline_summary,
200         inline_summary_t::duplicate): Update.
201         (inline_edge_duplication_hook): Turn to ...
202         (ipa_call_summary_t::duplicate): ... this one.
203         (inline_edge_removal_hook): Turn to ...
204         (ipa_call_summary_t::remove): ... this one.
205         (dump_inline_edge_summary): Turn to ...
206         (dump_ipa_call_summary): ... this one.
207         (estimate_function_body_sizes): Update.
208         (inline_update_callee_summaries): Update.
209         (remap_edge_change_prob): Update.
210         (remap_edge_summaries): Update.
211         (inline_merge_summary): Update.
212         (do_estimate_edge_time): Update.
213         (inline_generate_summary): Update.
214         (inline_read_section): Update.
215         (inline_read_summary): Update.
216         (inline_free_summary): Update.
217         * ipa-inline.c (can_inline_edge_p): Update.
218         (compute_inlined_call_time): Update.
219         (want_inline_small_function_p): Update.
220         (edge_badness): Update.
221         (early_inliner): Update.
222         * ipa-inline.h (inline_edge_summary): Turn to ...
223         (ipa_call_summary): ... this one.
224         (ipa_call_summary_t): New class.
225         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
226         (ipa_call_summaries): New.
227         (inline_edge_summary): Remove.
228         (estimate_edge_growth): Update.
229         * ipa-profile.c (ipa_propagate_frequency_1): Update.
230         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
231         * ipa-split.c (execute_split_functions): Update.
232         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
234 2017-05-19  Richard Biener  <rguenther@suse.de>
236         PR middle-end/80764
237         * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
239 2017-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
241         * config/rs6000/rs6000.c (struct machine_function): Add field
242         fpr_is_wrapped_separately.
243         (rs6000_get_separate_components): Use 64 components.  Handle the
244         new FPR components.
245         (rs6000_components_for_bb): Handle the FPR components.
246         (rs6000_emit_prologue_components): Handle the FPR components.
247         (rs6000_emit_epilogue_components): Handle the FPR components.
248         (rs6000_set_handled_components): Handle the FPR components.
249         (rs6000_emit_prologue): Don't output prologue code for those FPRs
250         that are already separately shrink-wrapped.
251         (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
252         that are already separately shrink-wrapped.
254 2017-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
256         PR target/80510
257         * config/rs6000/predicates.md (simple_offsettable_mem_operand):
258         New predicate.
260         * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
261         (define_peephole2 for Altivec d-form load): Add peepholes to catch
262         cases where the register allocator uses a move and an offsettable
263         memory operation to/from a FPR register on ISA 2.06/2.07.
264         (define_peephole2 for Altivec d-form store): Likewise.
266 2017-05-18  Uros Bizjak  <ubizjak@gmail.com>
268         PR target/80799
269         * config/i386/mmx.md (*mov<mode>_internal): Enable
270         alternatives 11, 12, 13 and 14 also for 32bit targets.
271         Remove alternatives 15, 16, 17 and 18.
272         * config/i386/sse.md (vec_concatv2di): Change
273         alternative (!x, *y) to (x, ?!*Yn).
275 2017-05-18  Paolo Carlini  <paolo.carlini@oracle.com>
277         * dumpfile.h (enum dump_kind): Remove stray comma.
279 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
281         * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
282         * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
283         predicate::num_conditions
284         (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
285         (CHANGED): turn into predicate::changed.
286         (agg_position_info): Move to ipa-predicate.h
287         (add_condition, predicate::add_clause, predicate::operator &=,
288         predicate::or_with, predicate::evaluate, predicate::probability,
289         dump_condition, dump_clause, predicate::dump,
290         predicate::remap_after_duplication, predicate::remap_after_inlining,
291         predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
292         (evaluate_conditions_for_known_args): Update.
293         (set_cond_stmt_execution_predicate): Update.
294         * ipa-inline.h: Include ipa-predicate.h
295         (condition, inline_param_summary, conditions, agg_position_info,
296         predicate): Move to ipa-predicate.h
297         * ipa-predicate.c: New file.
298         * ipa-predicate.h: New file.
300 2017-05-18  Wilco Dijkstra  <wdijkstr@arm.com>
302         * final.c (leaf_function_p): Check we are not in a sequence.
304 2017-05-18  Martin Liska  <mliska@suse.cz>
306         * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
307         * dumpfile.c (dump_register): Use new enum dump_kind.
308         (get_dump_file_name): Likewise.
309         (dump_enable_all): Likewise.
310         (dump_switch_p_1): Likewise.
311         (enable_rtl_dump_file): Remove usage of TDF_RTL.
312         * dumpfile.h (enum dump_kind): New enum type.
313         (struct dump_file_info): Create constructor and
314         format fields and comments.
315         * passes.c (pass_manager::register_one_dump_file):
316         Use num dump_kind.
317         * statistics.c (statistics_early_init): Likewise.
318         * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
319         TDF_TREE with TDF_SLIM.
320         (gather_memory_references_ref): Likewise.
322 2017-05-18  Martin Liska  <mliska@suse.cz>
324         * vec.h (struct vnull): Use it.
326 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
328         * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
329         (true_predicate, false_predicate, true_predicate_p,
330         false_predicate_p): Remove.
331         (single_cond_predicate, not_inlined_predicate): Turn to member function
332         in ipa-inline.h
333         (add_condition): Update.
334         (add_clause): Turn to...
335         (predicate::add_clause): ... this one; update; allow passing NULL
336         as parameter.
337         (and_predicates): Turn to ...
338         (predicate::operator &=): ... this one.
339         (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
340         (or_predicates): Turn to ...
341         (predicate::or_with): ... this one.
342         (evaluate_predicate): Turn to ...
343         (predicate::evaluate): ... this one.
344         (predicate_probability): Turn to ...
345         (predicate::probability): ... this one.
346         (dump_condition): Update.
347         (dump_predicate): Turn to ...
348         (predicate::dump): ... this one.
349         (account_size_time): Update.
350         (edge_set_predicate): Update.
351         (set_hint_predicate): UPdate.
352         (evaluate_conditions_for_known_args): Update.
353         (evaluate_properties_for_edge): Update.
354         (remap_predicate_after_duplication): Turn to...
355         (predicate::remap_after_duplication): ... this one.
356         (remap_hint_predicate_after_duplication): Update.
357         (inline_summary_t::duplicate): UPdate.
358         (dump_inline_edge_summary): Update.
359         (dump_inline_summary): Update.
360         (set_cond_stmt_execution_predicate): Update.
361         (set_switch_stmt_execution_predicate): Update.
362         (compute_bb_predicates): Update.
363         (will_be_nonconstant_expr_predicate): Update.
364         (will_be_nonconstant_predicate): Update.
365         (phi_result_unknown_predicate): Update.
366         (predicate_for_phi_result): Update.
367         (array_index_predicate): Update.
368         (estimate_function_body_sizes): Update.
369         (estimate_node_size_and_time): Update.
370         (estimate_ipcp_clone_size_and_time): Update.
371         (remap_predicate): Rename to ...
372         (predicate::remap_after_inlining): ... this one.
373         (remap_hint_predicate): Update.
374         (inline_merge_summary): Update.
375         (inline_update_overall_summary): Update.
376         (estimate_size_after_inlining): Update.
377         (read_predicate): Rename to ...
378         (predicate::stream_in): ... this one.
379         (read_inline_edge_summary): Update.
380         (write_predicate): Rename to ...
381         (predicate::stream_out): ... this one.
382         (write_inline_edge_summary): Update.
383         * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
384         (clause_t): Turn to uint32_t
385         (predicate): Turn to class; implement constructor and operators
386         ==, !=, &
387         (size_time_entry): Update.
388         (inline_summary): Update.
389         (inline_edge_summary): Update.
391 2017-05-18  Marc Glisse  <marc.glisse@inria.fr>
393         * fold-const.c (fold_binary_loc): Move transformation...
394         * match.pd (C - X CMP X): ... here.
396 2017-05-18  Sheldon Lobo  <sheldon.lobo@oracle.com>
398         * config/sparc/sparc.c (sparc_option_override): Set function
399         alignment for -mcpu=niagara7 to 64 to match the I$ line.
400         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
401         latency to 1.
402         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
403         latency to 2.
404         * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
406 2017-05-18  Marek Polacek  <polacek@redhat.com>
408         PR sanitizer/80797
409         * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
410         (pass_ubsan::execute): Call gimple_assign_single_p instead of
411         gimple_assign_load_p.
413 2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
415         PR middle-end/80692
416         * real.c (do_compare): Give decimal_do_compare preference over
417         comparing just the signs.
419 2017-05-17  Uros Bizjak  <ubizjak@gmail.com>
421         * doc/md.texi (Canonicalization of Instructions): Describe the
422         canonical form of instructions that inherently set a condition
423         code register.
425 2017-05-17  Peter Bergner  <bergner@vnet.ibm.com>
427         PR middle-end/80775
428         * tree-cfg.c: Move deletion of unreachable case statements to after
429         the merging of consecutive case labels.
431 2017-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
433         * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
434         readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
435         restoring of callee-saved registers.
437 2017-05-17  Eric Botcazou  <ebotcazou@adacore.com>
439         * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
440         * config/visium/visium.c (single_set_and_flags): Likewise.
441         * config/visium/visium.md (Substitutions): Likewise.
443 2017-05-17  Martin Liska  <mliska@suse.cz>
445         * cfg.c: Introduce dump_flags_t type and
446         use it instead of int type.
447         * cfg.h: Likewise.
448         * cfghooks.c: Likewise.
449         * cfghooks.h (struct cfg_hooks): Likewise.
450         * cfgrtl.c: Likewise.
451         * cfgrtl.h: Likewise.
452         * cgraph.c (cgraph_node::get_body): Likewise.
453         * coretypes.h: Likewise.
454         * domwalk.c: Likewise.
455         * domwalk.h: Likewise.
456         * dumpfile.c (struct dump_option_value_info): Likewise.
457         (dump_enable_all): Likewise.
458         (dump_switch_p_1): Likewise.
459         (opt_info_switch_p): Likewise.
460         * dumpfile.h (enum tree_dump_index): Likewise.
461         (struct dump_file_info): Likewise.
462         * genemit.c: Likewise.
463         * generic-match-head.c: Likewise.
464         * gengtype.c (open_base_files): Likewise.
465         * gimple-pretty-print.c: Likewise.
466         * gimple-pretty-print.h: Likewise.
467         * graph.c (print_graph_cfg): Likewise.
468         * graphite-scop-detection.c (dot_all_sese): Likewise.
469         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
470         * loop-unroll.c (report_unroll): Likewise.
471         * passes.c (pass_manager::register_one_dump_file): Likewise.
472         * print-tree.c: Likewise.
473         * statistics.c: Likewise.
474         * tree-cfg.c: Likewise.
475         * tree-cfg.h: Likewise.
476         * tree-dfa.c: Likewise.
477         * tree-dfa.h: Likewise.
478         * tree-dump.c (dump_function): Likewise.
479         * tree-dump.h (struct dump_info): Likewise.
480         * tree-pretty-print.c: Likewise.
481         * tree-pretty-print.h: Likewise.
482         * tree-ssa-live.c: Likewise.
483         * tree-ssa-live.h: Likewise.
484         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
485         * tree-vect-loop.c: Likewise.
486         * tree-vect-slp.c: Likewise.
488 2017-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
489             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
491         PR tree-optimization/80457
492         * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
493         of all arguments to a statement as scalar_to_vec operations.
494         (vectorizable_call): Adjust call to vect_model_simple_cost for
495         new parameter.
496         (vectorizable_conversion): Likewise.
497         (vectorizable_assignment): Likewise.
498         (vectorizable_shift): Likewise.
499         (vectorizable_operation): Likewise.
500         (vectorizable_comparison): Likewise.
501         (vect_is_simple_cond): Record the def types for operands.
502         (vectorizable_condition): Likewise, call vect_model_simple_cost.
503         * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
504         for statement argument count.
506 2017-05-16  Carl Love  <cel@us.ibm.com>
508         * config/rs6000/rs6000-c: Add support for built-in functions
509         vector unsigned long long vec_bperm (vector unsigned long long,
510                                              vector unsigned char)
511         vector signed long long vec_mule (vector signed int,
512                                           vector signed int)
513         vector unsigned long long vec_mule (vector unsigned int,
514                                             vector unsigned int)
515         vector signed long long vec_mulo (vector signed int,
516                                           vector signed int)
517         vector unsigned long long vec_mulo (vector unsigned int,
518                                             vector unsigned int)
519         vector signed char vec_sldw (vector signed char,
520                                      vector signed char,
521                                      const int)
522         vector unsigned char vec_sldw (vector unsigned char,
523                                        vector unsigned char,
524                                        const int)
525         vector signed short vec_sldw (vector signed short,
526                                       vector signed short,
527                                       const int)
528         vector unsigned short vec_sldw (vector unsigned short,
529                                         vector unsigned short,
530                                         const int)
531         vector signed int vec_sldw (vector signed int,
532                                     vector signed int,
533                                     const int)
534         vector unsigned int vec_sldw (vector unsigned int,
535                                       vector unsigned int,
536                                       const int)
537         vector signed long long vec_sldw (vector signed long long,
538                                           vector signed long long,
539                                           const int)
540         vector unsigned long long vec_sldw (vector unsigned long long,
541                                             vector unsigned long long,
542                                             const int)
543         * config/rs6000/rs6000-c: Add support for built-in functions
544         * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
545         * config/rs6000/altivec.h: Add defintion for vec_sldw.
546         * doc/extend.texi: Update the built-in documentation for the
547         new built-in functions.
549 2017-05-16  Marek Polacek  <polacek@redhat.com>
551         PR sanitizer/80536
552         PR sanitizer/80386
553         * tree.c (save_expr): Don't fold the expression.
555 2017-05-16  Uros Bizjak  <ubizjak@gmail.com>
557         * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
558         to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
559         and (?*y,m).  Update insn attributes.
561 2017-05-16  Martin Liska  <mliska@suse.cz>
563         * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
564         flags argument of print_gimple_stmt, print_gimple_expr,
565         print_generic_stmt and print_generic_expr.
566         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
567         * coretypes.h: Likewise.
568         * except.c (dump_eh_tree): Likewise.
569         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
570         * gimple-pretty-print.h: Likewise.
571         * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
572         (backprop::push_to_worklist): Likewise.
573         (backprop::pop_from_worklist): Likewise.
574         (backprop::process_use): Likewise.
575         (backprop::intersect_uses): Likewise.
576         (note_replacement): Likewise.
577         * gimple-ssa-store-merging.c
578         (pass_store_merging::terminate_all_aliasing_chains): Likewise.
579         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
580         (pass_store_merging::execute): Likewise.
581         * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
582         (ssa_base_cand_dump_callback): Likewise.
583         (dump_incr_vec): Likewise.
584         (replace_refs): Likewise.
585         (replace_mult_candidate): Likewise.
586         (create_add_on_incoming_edge): Likewise.
587         (create_phi_basis): Likewise.
588         (insert_initializers): Likewise.
589         (all_phi_incrs_profitable): Likewise.
590         (introduce_cast_before_cand): Likewise.
591         (replace_one_candidate): Likewise.
592         * gimplify.c (gimplify_expr): Likewise.
593         * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
594         (set_rename): Likewise.
595         (rename_uses): Likewise.
596         (copy_loop_phi_nodes): Likewise.
597         (add_close_phis_to_merge_points): Likewise.
598         (copy_loop_close_phi_args): Likewise.
599         (copy_cond_phi_args): Likewise.
600         (graphite_copy_stmts_from_block): Likewise.
601         (translate_pending_phi_nodes): Likewise.
602         * graphite-poly.c (print_pdr): Likewise.
603         (dump_gbb_cases): Likewise.
604         (dump_gbb_conditions): Likewise.
605         (print_scop_params): Likewise.
606         * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
607         (build_cross_bb_scalars_use): Likewise.
608         (gather_bbs::before_dom_children): Likewise.
609         * hsa-dump.c (dump_hsa_immed): Likewise.
610         * ipa-cp.c (print_ipcp_constant_value): Likewise.
611         (get_replacement_map): Likewise.
612         * ipa-inline-analysis.c (dump_condition): Likewise.
613         (estimate_function_body_sizes): Likewise.
614         * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
615         (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
616         * ipa-prop.c (ipa_dump_param): Likewise.
617         (ipa_print_node_jump_functions_for_edge): Likewise.
618         (ipa_modify_call_arguments): Likewise.
619         (ipa_modify_expr): Likewise.
620         (ipa_dump_param_adjustments): Likewise.
621         (ipa_dump_agg_replacement_values): Likewise.
622         (ipcp_modif_dom_walker::before_dom_children): Likewise.
623         * ipa-pure-const.c (check_stmt): Likewise.
624         (pass_nothrow::execute): Likewise.
625         * ipa-split.c (execute_split_functions): Likewise.
626         * omp-offload.c (dump_oacc_loop_part): Likewise.
627         (dump_oacc_loop): Likewise.
628         * trans-mem.c (tm_log_emit): Likewise.
629         (tm_memopt_accumulate_memops): Likewise.
630         (dump_tm_memopt_set): Likewise.
631         (dump_tm_memopt_transform): Likewise.
632         * tree-cfg.c (gimple_verify_flow_info): Likewise.
633         (print_loop): Likewise.
634         * tree-chkp-opt.c (chkp_print_addr): Likewise.
635         (chkp_gather_checks_info): Likewise.
636         (chkp_get_check_result): Likewise.
637         (chkp_remove_check_if_pass): Likewise.
638         (chkp_use_outer_bounds_if_possible): Likewise.
639         (chkp_reduce_bounds_lifetime): Likewise.
640         * tree-chkp.c (chkp_register_addr_bounds): Likewise.
641         (chkp_mark_completed_bounds): Likewise.
642         (chkp_register_incomplete_bounds): Likewise.
643         (chkp_mark_invalid_bounds): Likewise.
644         (chkp_maybe_copy_and_register_bounds): Likewise.
645         (chkp_build_returned_bound): Likewise.
646         (chkp_get_bound_for_parm): Likewise.
647         (chkp_build_bndldx): Likewise.
648         (chkp_get_bounds_by_definition): Likewise.
649         (chkp_generate_extern_var_bounds): Likewise.
650         (chkp_get_bounds_for_decl_addr): Likewise.
651         * tree-chrec.c (chrec_apply): Likewise.
652         * tree-data-ref.c (dump_data_reference): Likewise.
653         (dump_subscript): Likewise.
654         (dump_data_dependence_relation): Likewise.
655         (analyze_overlapping_iterations): Likewise.
656         * tree-inline.c (expand_call_inline): Likewise.
657         (tree_function_versioning): Likewise.
658         * tree-into-ssa.c (dump_defs_stack): Likewise.
659         (dump_currdefs): Likewise.
660         (dump_names_replaced_by): Likewise.
661         (dump_update_ssa): Likewise.
662         (update_ssa): Likewise.
663         * tree-object-size.c (pass_object_sizes::execute): Likewise.
664         * tree-parloops.c (build_new_reduction): Likewise.
665         (try_create_reduction_list): Likewise.
666         (ref_conflicts_with_region): Likewise.
667         (oacc_entry_exit_ok_1): Likewise.
668         (oacc_entry_exit_single_gang): Likewise.
669         * tree-pretty-print.h: Likewise.
670         * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
671         (get_scalar_evolution): Likewise.
672         (add_to_evolution): Likewise.
673         (get_loop_exit_condition): Likewise.
674         (analyze_evolution_in_loop): Likewise.
675         (analyze_initial_condition): Likewise.
676         (analyze_scalar_evolution): Likewise.
677         (instantiate_scev): Likewise.
678         (number_of_latch_executions): Likewise.
679         (gather_chrec_stats): Likewise.
680         (final_value_replacement_loop): Likewise.
681         (scev_const_prop): Likewise.
682         * tree-sra.c (dump_access): Likewise.
683         (disqualify_candidate): Likewise.
684         (create_access): Likewise.
685         (reject): Likewise.
686         (maybe_add_sra_candidate): Likewise.
687         (create_access_replacement): Likewise.
688         (analyze_access_subtree): Likewise.
689         (analyze_all_variable_accesses): Likewise.
690         (sra_modify_assign): Likewise.
691         (initialize_constant_pool_replacements): Likewise.
692         (find_param_candidates): Likewise.
693         (decide_one_param_reduction): Likewise.
694         (replace_removed_params_ssa_names): Likewise.
695         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
696         * tree-ssa-copy.c (dump_copy_of): Likewise.
697         (copy_prop_visit_cond_stmt): Likewise.
698         * tree-ssa-dce.c (mark_operand_necessary): Likewise.
699         * tree-ssa-dom.c (pass_dominator::execute): Likewise.
700         (record_equivalences_from_stmt): Likewise.
701         * tree-ssa-dse.c (compute_trims): Likewise.
702         (delete_dead_call): Likewise.
703         (delete_dead_assignment): Likewise.
704         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
705         (forward_propagate_into_cond): Likewise.
706         (pass_forwprop::execute): Likewise.
707         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
708         * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
709         Likewise.
710         (move_computations_worker): Likewise.
711         (execute_sm): Likewise.
712         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
713         (remove_exits_and_undefined_stmts): Likewise.
714         (remove_redundant_iv_tests): Likewise.
715         * tree-ssa-loop-ivopts.c (dump_use): Likewise.
716         (adjust_iv_update_pos): Likewise.
717         * tree-ssa-math-opts.c (bswap_replace): Likewise.
718         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
719         (value_replacement): Likewise.
720         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
721         * tree-ssa-pre.c (print_pre_expr): Likewise.
722         (get_representative_for): Likewise.
723         (create_expression_by_pieces): Likewise.
724         (insert_into_preds_of_block): Likewise.
725         (eliminate_insert): Likewise.
726         (eliminate_dom_walker::before_dom_children): Likewise.
727         (eliminate): Likewise.
728         (remove_dead_inserted_code): Likewise.
729         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
730         * tree-ssa-reassoc.c (get_rank): Likewise.
731         (eliminate_duplicate_pair): Likewise.
732         (eliminate_plus_minus_pair): Likewise.
733         (eliminate_not_pairs): Likewise.
734         (undistribute_ops_list): Likewise.
735         (eliminate_redundant_comparison): Likewise.
736         (update_range_test): Likewise.
737         (optimize_range_tests_var_bound): Likewise.
738         (optimize_vec_cond_expr): Likewise.
739         (rewrite_expr_tree): Likewise.
740         (rewrite_expr_tree_parallel): Likewise.
741         (linearize_expr): Likewise.
742         (break_up_subtract): Likewise.
743         (linearize_expr_tree): Likewise.
744         (attempt_builtin_powi): Likewise.
745         (attempt_builtin_copysign): Likewise.
746         (transform_stmt_to_copy): Likewise.
747         (transform_stmt_to_multiply): Likewise.
748         (dump_ops_vector): Likewise.
749         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
750         (print_scc): Likewise.
751         (set_ssa_val_to): Likewise.
752         (visit_reference_op_store): Likewise.
753         (visit_use): Likewise.
754         (sccvn_dom_walker::before_dom_children): Likewise.
755         (run_scc_vn): Likewise.
756         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
757         Likewise.
758         (expr_hash_elt::print): Likewise.
759         (const_and_copies::pop_to_marker): Likewise.
760         (const_and_copies::record_const_or_copy_raw): Likewise.
761         * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
762         * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
763         (dump_predicates): Likewise.
764         (find_uninit_use): Likewise.
765         (warn_uninitialized_phi): Likewise.
766         (pass_late_warn_uninitialized::execute): Likewise.
767         * tree-ssa.c (verify_vssa): Likewise.
768         (verify_ssa): Likewise.
769         (maybe_optimize_var): Likewise.
770         * tree-vrp.c (dump_value_range): Likewise.
771         (dump_all_value_ranges): Likewise.
772         (dump_asserts_for): Likewise.
773         (register_edge_assert_for_2): Likewise.
774         (vrp_visit_cond_stmt): Likewise.
775         (vrp_visit_switch_stmt): Likewise.
776         (vrp_visit_stmt): Likewise.
777         (vrp_visit_phi_node): Likewise.
778         (simplify_cond_using_ranges_1): Likewise.
779         (fold_predicate_in): Likewise.
780         (evrp_dom_walker::before_dom_children): Likewise.
781         (evrp_dom_walker::push_value_range): Likewise.
782         (evrp_dom_walker::pop_value_range): Likewise.
783         (execute_early_vrp): Likewise.
785 2017-05-16  Richard Biener  <rguenther@suse.de>
787         * dwarf2out.c (loc_list_from_tree_1): Do not create
788         DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
790 2017-05-16  Richard Biener  <rguenther@suse.de>
792         * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
793         just generated.
794         (note_variable_value_in_expr): If we resolved the decl ref
795         do not push to the stack.
797 2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>
799         * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
800         operations in fast-math mode.
801         (vaddq_f16): Likewise.
802         (vmul_f16): Likewise.
803         (vmulq_f16): Likewise.
804         (vsub_f16): Likewise.
805         (vsubq_f16): Likewise.
806         * config/arm/neon.md (add<mode>3): New.
807         (sub<mode>3): New.
808         (fma:<VH:mode>3): New.  Also remove outdated comment.
809         (mul<mode>3): New.
811 2017-05-16  Martin Liska  <mliska@suse.cz>
813         PR ipa/79849.
814         PR ipa/79850.
815         * ipa-devirt.c (warn_types_mismatch): Fix typo.
816         (odr_types_equivalent_p): Likewise.
818 2017-05-15  Sylvestre Ledru  <sylvestre@debian.org>
820         * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
822 2017-05-15  Uros Bizjak  <ubizjak@gmail.com>
824         PR target/80425
825         * config/i386.i386.md (*zero_extendsidi2): Do not penalize
826         non-interunit SSE move alternatives with '?'.
827         (zero-extendsidi peephole2): New peephole to skip intermediate
828         general register in SSE zero-extend sequence.
830 2017-05-15  Jeff Law  <law@redhat.com>
832         * reorg.c (relax_delay_slots): Create a new variable to hold
833         the temporary target rather than clobbering TARGET_LABEL.
835         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
836         missing argument to extract_bit_field call.
837         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
839 2017-05-15  Martin Liska  <mliska@suse.cz>
841         PR driver/31468
842         * gcc.c (process_command): Do not allow empty argument of -o option.
844 2017-05-15  Renlin Li  <renlin.li@arm.com>
846         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
847         * config/aarch64/aarch64.c (aarch64_expand_call): Define.
848         * config/aarch64/constraints.md (Usf): Add long call check.
849         * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
850         (call_value): Likewise.
851         (sibcall): Likewise.
852         (sibcall_value): Likewise.
853         (call_insn): New.
854         (call_value_insn): New.
855         (sibcall_insn): Update rtx pattern.
856         (sibcall_value_insn): Likewise.
857         (call_internal): Remove.
858         (call_value_internal): Likewise.
859         (sibcall_internal): Likewise.
860         (sibcall_value_internal): Likewise.
861         (call_reg): Likewise.
862         (call_symbol): Likewise.
863         (call_value_reg): Likewise.
864         (call_value_symbol): Likewise.
866 2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>
868         PR target/80600
869         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
871 2017-05-14  Uros Bizjak  <ubizjak@gmail.com>
873         * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
874         compatible with CCGOCmode and with CCZmode.
876 2017-05-14  Martin Sebor  <msebor@redhat.com>
878         PR middle-end/77671
879         * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
880         (gimple_fold_builtin_snprintf): Same.
881         * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
882         (gimple_fold_builtin_snprintf): Same.
883         * gimple-ssa-sprintf.c (get_format_string): Correct the detection
884         of character types.
885         (is_call_safe): New function.
886         (try_substitute_return_value): Call it.
887         (try_simplify_call): New function.
888         (pass_sprintf_length::handle_gimple_call): Call it.
890 2017-05-14  Martin Sebor  <msebor@redhat.com>
892         PR middle-end/80669
893         * builtins.c (expand_builtin_stpncpy): Simplify.
895 2017-05-14  Daniel Santos  <daniel.santos@pobox.com>
897         * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
898         * config/i386/i386.h
899         (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
900         (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
901         (struct machine_function): Add new members call_ms2sysv,
902         call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
903         (struct machine_frame_state): New fields sp_realigned and
904         sp_realigned_offset.
905         * config/i386/i386.c
906         (enum xlogue_stub): New enum.
907         (enum xlogue_stub_sets): New enum.
908         (class xlogue_layout): New class.
909         (struct ix86_frame): New fields stack_realign_allocate_offset,
910         stack_realign_offset and outlined_save_offset.  Modify comments to
911         detail stack layout when using out-of-line stubs.
912         (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
913         (ix86_option_override_internal): Add sorry() for TARGET_SEH and
914         -mcall-ms2sysv-xlogues.
915         (stub_managed_regs): New static variable.
916         (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
917         registers managed by out-of-line stub.
918         (disable_call_ms2sysv_xlogues): New function.
919         (ix86_compute_frame_layout): Modify re-alignment calculations, disable
920         m->call_ms2sysv when appropriate and compute frame layout for
921         out-of-line stubs.
922         (sp_valid_at, fp_valid_at): New inline functions.
923         (choose_basereg): New function.
924         (choose_baseaddr): Add align parameter, use choose_basereg and modify
925         all callers.
926         (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
927         Use align parameter of choose_baseaddr to generated aligned SSE movs
928         when possible.
929         (pro_epilogue_adjust_stack): Modify to track
930         machine_frame_state::sp_realigned.
931         (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
932         (ix86_nsaved_sseregs): Likewise.
933         (ix86_emit_save_regs): Likewise.
934         (ix86_emit_save_regs_using_mov): Likewise.
935         (ix86_emit_save_sse_regs_using_mov): Likewise.
936         (get_scratch_register_on_entry): Likewise.
937         (gen_frame_set): New function.
938         (gen_frame_load): Likewise.
939         (gen_frame_store): Likewise.
940         (emit_outlined_ms2sysv_save): Likewise.
941         (emit_outlined_ms2sysv_restore): Likewise.
942         (ix86_expand_prologue): Modify stack re-alignment code and call
943         emit_outlined_ms2sysv_save when appropriate.
944         (ix86_emit_leave): Clear machine_frame_state::sp_realigned.  Add
945         parameter rtx_insn *insn, which allows the function to be used to only
946         generate the notes.
947         (ix86_expand_epilogue): Modify validity checks of frame and stack
948         pointers, and call emit_outlined_ms2sysv_restore when appropriate.
949         (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
950         * config/i386/predicates.md
951         (save_multiple): New predicate.
952         (restore_multiple): Likewise.
953         * config/i386/sse.md
954         (save_multiple<mode>): New pattern.
955         (save_multiple_realign<mode>): Likewise.
956         (restore_multiple<mode>): Likewise.
957         (restore_multiple_and_return<mode>): Likewise.
958         (restore_multiple_leave_return<mode>): Likewise.
959         * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
961 2017-05-14  Julia Koval  <julia.koval@intel.com>
963         * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
964         * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
965         (__builtin_ia32_xsetbv): New builtins.
966         * config/i386/i386.c (ix86_expand_special_args_builtin):
967         Process new types.
968         (ix86_expand_builtin): Special expand for new intrinsics.
969         * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
970         (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
971         * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
973 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
975         * cfganal.c (inverted_post_order_compute): Change argument type
976         to vec *.
977         * cfganal.h (inverted_post_order_compute): Adjust prototype.
978         * df-core.c (rest_of_handle_df_initialize): Adjust.
979         (rest_of_handle_df_finish): Likewise.
980         (df_analyze_1): Likewise.
981         (df_analyze): Likewise.
982         (loop_inverted_post_order_compute): Change argument to be a vec *.
983         (df_analyze_loop): Adjust.
984         (df_get_n_blocks): Likewise.
985         (df_get_postorder): Likewise.
986         * df.h (struct df_d): Change field to be a vec.
987         * lcm.c (compute_laterin): Adjust.
988         (compute_available): Likewise.
989         * lra-lives.c (lra_create_live_ranges_1): Likewise.
990         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
991         * tree-ssa-pre.c (compute_antic): Likewise.
993 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
995         * cfganal.c (connect_infinite_loops_to_exit): Adjust.
996         (depth_first_search::depth_first_search): Change structure init
997         function to this constructor.
998         (depth_first_search::add_bb): Rename function to this member.
999         (depth_first_search::execute): Likewise.
1000         (flow_dfs_compute_reverse_finish): Adjust.
1002 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1004         * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
1005         (longest_simple_path): Likewise.
1006         * shrink-wrap.c (spread_components): Likewise.
1007         (disqualify_problematic_components): Likewise.
1008         (emit_common_heads_for_components): Likewise.
1009         (emit_common_tails_for_components): Likewise.
1010         (insert_prologue_epilogue_for_components): Likewise.
1012 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1014         * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
1015         auto_sbitmap.
1017 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1019         * df-core.c (df_set_blocks): Start using auto_bitmap.
1020         (df_compact_blocks): Likewise.
1021         * df-problems.c (df_rd_confluence_n): Likewise.
1022         * df-scan.c (df_insn_rescan_all): Likewise.
1023         (df_process_deferred_rescans): Likewise.
1024         (df_update_entry_block_defs): Likewise.
1025         (df_update_exit_block_uses): Likewise.
1026         (df_entry_block_bitmap_verify): Likewise.
1027         (df_exit_block_bitmap_verify): Likewise.
1028         (df_scan_verify): Likewise.
1029         * lra-constraints.c (lra_constraints): Likewise.
1030         (undo_optional_reloads): Likewise.
1031         (lra_undo_inheritance): Likewise.
1032         * lra-remat.c (calculate_gen_cands): Likewise.
1033         (do_remat): Likewise.
1034         * lra-spills.c (assign_spill_hard_regs): Likewise.
1035         (spill_pseudos): Likewise.
1036         * tree-ssa-pre.c (bitmap_set_and): Likewise.
1037         (bitmap_set_subtract_values): Likewise.
1039 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1041         * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
1042         management with auto_bitmap.
1043         (fix_inter_tick): Likewise.
1044         (fix_recovery_deps): Likewise.
1045         * ira.c (add_store_equivs): Likewise.
1046         (find_moveable_pseudos): Likewise.
1047         (split_live_ranges_for_shrink_wrap): Likewise.
1048         * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
1049         (rtx_reuse_manager::seen_def_p): Likewise.
1050         (rtx_reuse_manager::set_seen_def): Likewise.
1051         * print-rtl.h (class rtx_reuse_manager): Likewise.
1053 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1055         * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
1056         lifetime.
1057         (migrate_btr_def): Likewise.
1058         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
1059         * df-core.c (loop_post_order_compute): Likewise.
1060         (loop_inverted_post_order_compute): Likewise.
1061         * hsa-common.h: Likewise.
1062         * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
1063         * init-regs.c (initialize_uninitialized_regs): Likewise.
1064         * ipa-inline.c (resolve_noninline_speculation): Likewise.
1065         (inline_small_functions): Likewise.
1066         * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
1067         * ira.c (combine_and_move_insns): Likewise.
1068         (build_insn_chain): Likewise.
1069         * loop-invariant.c (find_invariants): Likewise.
1070         * lower-subreg.c (propagate_pseudo_copies): Likewise.
1071         * predict.c (tree_predict_by_opcode): Likewise.
1072         (predict_paths_leading_to): Likewise.
1073         (predict_paths_leading_to_edge): Likewise.
1074         (estimate_loops_at_level): Likewise.
1075         (estimate_loops): Likewise.
1076         * shrink-wrap.c (try_shrink_wrapping): Likewise.
1077         (spread_components): Likewise.
1078         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
1079         * tree-loop-distribution.c (rdg_build_partitions): Likewise.
1080         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
1081         * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
1082         * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
1083         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
1084         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1085         * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
1086         (mark_threaded_blocks): Likewise.
1087         (thread_through_all_blocks): Likewise.
1088         * tree-ssa.c (verify_ssa): Likewise.
1089         (execute_update_addresses_taken): Likewise.
1090         * tree-ssanames.c (verify_ssaname_freelists): Likewise.
1092 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1094         * cfganal.c (mark_dfs_back_edges): Replace manual stack with
1095         auto_vec.
1096         (post_order_compute): Likewise.
1097         (inverted_post_order_compute): Likewise.
1098         (pre_and_rev_post_order_compute_fn): Likewise.
1100 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1102         * genrecog.c (int_set::int_set): Explicitly construct our
1103         auto_vec base class.
1104         * vec.h (auto_vec::auto_vec): New constructor.
1106 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1108         * bitmap.h (class auto_bitmap): New constructor taking
1109         bitmap_obstack * argument.
1111 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1113         * bitmap.h (class auto_bitmap): Change type of m_bits to
1114         bitmap_head, and adjust ctor / dtor and member operators.
1116 2017-05-13  Uros Bizjak  <ubizjak@gmail.com>
1118         * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
1119         when returned register mode doesn't match original mode.
1121 2017-05-12  Jeff Law  <law@redhat.com>
1122             Jakub Jelinek  <jakub@redhat.com>
1124         * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
1125         we look for cc setter after the compare-elim changes.
1126         * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
1127         within the vector to match what compare-elim now expects.
1128         (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
1129         (xorsi3_flags, one_cmplsi2_flags): Likewise.
1131         * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
1132         after the compare-elim changes.
1133         * config/rx/rx.md (abssi2_flags): Fix order of patterns within
1134         the vector to match what compare-elim now expects.
1135         (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
1136         (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
1137         (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
1138         (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
1139         (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
1141         * config/visium/visium.c (single_set_and_flags): Fix where
1142         we look for cc setter after the compare-elim changes.
1143         * config/visium/visium.md (flags_subst_logic): Fix order of patterns
1144         with the vector to match what compare-elim now expects.
1145         (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
1146         (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
1147         (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
1148         (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
1149         (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
1150         (neg<mode>2_insn_set_overflow): Likewise.
1152 2017-05-12  Jim Wilson  <jim.wilson@linaro.org>
1154         PR middle-end/79794
1155         * expmed.c (extract_bit_field_1): Add alt_rtl argument.  Before
1156         maybe_expand_insn call, set ops[0].target.  If still set after call,
1157         set alt_rtl.  Add extra arg to recursive calls.
1158         (extract_bit_field): Add alt_rtl argument.  Pass to
1159         extract_bit_field.
1160         * expmed.h (extract_bit_field): Fix prototype.
1161         * expr.c (emit_group_load_1, copy_blkmode_from_reg)
1162         (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
1163         to extract_bit_field_calls.
1164         (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
1165         Pass alt_rtl to extract_bit_field calls.
1166         * calls.c (store_unaligned_arguments_into_psuedos)
1167         load_register_parameters): Pass extra NULL to extract_bit_field calls.
1168         * optabs.c (maybe_legitimize_operand): Clear op->target when call
1169         gen_reg_rtx.
1170         * optabs.h (struct expand_operand): Add target bitfield.
1172 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
1174         * compare-elim.c (try_eliminate_compare): Canonicalize
1175         operation with embedded compare to
1176         [(set (reg:CCM) (compare:CCM (operation) (immediate)))
1177          (set (reg) (operation)].
1179         * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
1181 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
1183         PR target/80723
1184         * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
1185         cost of adding a carry flag for ADC instruction.
1186         [case MINUS]: Ignore the cost of subtracting a carry flag
1187         for SBB instruction.
1189 2017-05-12  Steven Munroe  <munroesj@gcc.gnu.org>
1191         * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
1192         and x86intrin.h
1193         * config/rs6000/bmiintrin.h: New file.
1194         * config/rs6000/bmi2intrin.h: New file.
1195         * config/rs6000/x86intrin.h: New file.
1197 2017-05-12  Jeff Law  <law@redhat.com>
1199         * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
1200         markers.
1202 2017-05-12  Peter Bergner  <bergner@vnet.ibm.com>
1204         PR middle-end/80707
1205         * tree-cfg.c: Remove cfg edges of unreachable case statements.
1207 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
1209         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
1210         early expansion of vector divide builtins.
1211         (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
1212         builtins identified as having unsigned arguments.
1214 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
1216         * config/rs6000/rs6000.c (gimple-fold.h): New #include.
1217         (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
1218         expansion of vector logical operations (and, andc, or, xor,
1219         nor, orc, nand).
1221 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
1223         * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
1224         * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
1226 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
1228         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
1229         early GIMPLE expansion of vector multiplies.
1231 2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
1233         * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
1234         TARGET_HAVE_MOVT conditional.
1235         (movt splitter): Likewise.
1237 2017-05-12  Richard Biener  <rguenther@suse.de>
1239         * tree-ssa-sccvn.h (has_VN_INFO): Declare.
1240         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1241         Fold all stmts not inplace.
1243 2017-05-12  Richard Biener  <rguenther@suse.de>
1245         PR tree-optimization/80713
1246         * tree-ssa-pre.c (remove_dead_inserted_code): Clear
1247         inserted_exprs bit for not removed stmts.
1249 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1251         PR middle-end/69921
1252         * tree-parloops.c (create_parallel_loop): Set "oacc kernels
1253         parallelized" attribute for parallelized OpenACC kernels.
1254         * omp-offload.c (execute_oacc_device_lower): Use it.
1256         * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
1257         Set "oacc kernels" attribute.
1258         * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
1259         parameter.  Adjust all users.
1260         (oacc_fn_attrib_kernels_p): Remove function.
1261         * omp-offload.c (execute_oacc_device_lower): Look for "oacc
1262         kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
1263         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
1264         * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
1265         assert "oacc kernels" attribute is set.
1267 2017-05-11  Carl Love  <cel@us.ibm.com>
1269         * config/rs6000/rs6000-c: Add support for built-in functions
1270         vector unsigned char vec_popcnt (vector signed char)
1271         vector unsigned char vec_popcnt (vector unsigned char)
1272         vector unsigned short vec_popcnt (vector signed short)
1273         vector unsigned short vec_popcnt (vector unsigned short)
1274         vector unsigned int vec_popcnt (vector signed int)
1275         vector unsigned int vec_popcnt (vector unsigned int)
1276         vector unsigned long long vec_popcnt (vector signed long long)
1277         vector unsigned long long vec_popcnt (vector unsigned long long)
1278         vector signed long long vec_slo (vector signed long long,
1279                                          vector signed char)
1280         vector signed long long vec_slo (vector signed long long,
1281                                          vector unsigned char)
1282         vector unsigned long long vec_slo (vector unsigned long long,
1283                                            vector signed char)
1284         vector unsigned long long vec_slo (vector unsigned long long,
1285                                            vector unsigned char)
1286         * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
1287         VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
1288         * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
1289         vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
1290         * doc/extend.texi: Update the built-in documentation file for the
1291         new built-in functions.
1293 2017-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1295         * attribs.h (sorted_attr_string): Move machine independent
1296         functions for target clone support from the i386 port to common
1297         code.  Rename ix86_function_versions to common_function_versions.
1298         Rename make_name to make_unique_name.
1299         (common_function_versions): Likewise.
1300         (make_unique_name): Likewise.
1301         (make_dispatcher_decl): Likewise.
1302         (is_function_default_version): Likewise.
1303         * attribs.c (attr_strcmp): Likewise.
1304         (sorted_attr_string): Likewise.
1305         (common_function_versions): Likewise.
1306         (make_unique_name): Likewise.
1307         (make_dispatcher_decl): Likewise.
1308         (is_function_default_version): Likewise.
1309         * config/i386/i386.c (attr_strcmp): Likewise.
1310         (sorted_attr_string): Likewise.
1311         (ix86_function_versions): Likewise.
1312         (make_name): Likewise.
1313         (make_dispatcher_decl): Likewise.
1314         (is_function_default_version): Likewise.
1315         (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
1317 2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1319         PR target/80695
1320         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1321         Account for direct move costs for vec_construct of integer
1322         vectors.
1324 2017-05-11  Uros Bizjak  <ubizjak@gmail.com>
1326         PR target/80706
1327         * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
1328         (UNSPEC_STX_ATOMIC): Ditto.
1329         (loaddi_via_sse): New insn.
1330         (storedi_via_sse): Ditto.
1331         (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
1332         Update corresponding peephole2 patterns.
1333         (atomic_storedi_fpu): Ditto.
1335 2017-05-11  Julia Koval  <julia.koval@intel.com>
1337         * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
1338         (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
1339         New intrinsics.
1340         * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
1341         (__builtin_ia32_rsqrt14ss_mask): New builtins.
1342         * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
1344 2017-05-11  Nathan Sidwell  <nathan@acm.org>
1346         * graphite-poly.c: Include dumpfile.h.
1348         * dumpfle.h (dump_function): Declare here ...
1349         * tree-dump.h (dump_function): ... not here.
1350         * dumpfile.c: #include tree-cfg.h.
1351         (dump_function): Move here from ...
1352         * tree-dump.c (dump_function): ... here.
1353         * gimplify.c: #include splay-tree.h, not tree-dump.h.
1354         * graphite-poly.c: Don't include tree-dump.h.
1355         * cgraphclones.c: Include dumpfile.h not tree-dump.h.
1356         * print-tree.c: Likewise.
1357         * stor-layout.c: Likewise.
1358         * tree-nested.c: Likewise.
1360         * dumpfile.c (dump_start): Use TDF_FLAGS.
1361         (dump_enable_all): Fix TDF_KIND check thinko.
1363 2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1365         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1366         array entries to represent two legal parameterizations of the
1367         overloaded __builtin_cmpb function, as represented by the
1368         P6_OV_BUILTIN_CMPB constant.
1369         (altivec_resolve_overloaded_builtin): Add special case handling
1370         for the __builtin_cmpb function, as represented by the
1371         P6_OV_BUILTIN_CMPB constant.
1372         * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
1373         (BU_P6_64BIT_2): New macro.
1374         (BU_P6_OVERLOAD_2): New macro
1375         (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
1376         (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
1377         (CMPB): Add overload support to represent both 32-bit and 64-bit
1378         compare-bytes function.
1379         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
1380         support for TARGET_CMPB.
1381         * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
1382         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
1383         documentation of the __builtin_cmpb overloaded built-in function.
1385 2017-05-11  Richard Biener  <rguenther@suse.de>
1387         PR tree-optimization/80705
1388         * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
1389         bases are not vectorizable.
1391 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1393         * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
1394         when counting register pressure.
1396 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1398         * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
1399         (iv_ca_more_deps): Renamed to ...
1400         (iv_ca_compare_deps): ... this.
1401         (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
1403 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1405         * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
1406         to ...
1407         (determine_group_iv_costs): ... here.
1408         (find_inv_vars_cb): Record inv var if it's not recorded before.
1410 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1412         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
1413         (get_shiftadd_cost): Ditto.
1415 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1417         * tree-ssa-address.c: Include header file.
1418         (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
1419         address.
1420         (add_to_parts): Refactor.
1421         (addr_to_parts): New parameter.  Update use of move_hint_to_base.
1422         (create_mem_ref): Update use of addr_to_parts.  Re-associate addr
1423         in new order.
1425 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1427         PR tree-optimization/53090
1428         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
1429         COMP_IV_EXPR_2.
1430         (extract_cond_operands): Detect condition with IV on both sides
1431         and return COMP_IV_EXPR_2.
1432         (find_interesting_uses_cond): Add iv_use for both IVs in condition.
1433         (rewrite_use_compare): Simplify by removing call to function
1434         extract_cond_operands.
1436 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1438         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
1439         (extract_cond_operands): Detect condition comparing against non-
1440         invariant bound and return appropriate enum value.
1441         (find_interesting_uses_cond): Update use of extract_cond_operands.
1442         Handle its return value accordingly.
1443         (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
1445 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1447         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
1448         nonlinear iv_use computation in loop invariant sensitive way.
1450 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1452         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
1453         (find_iv_candidates): Call relate_compare_use_with_all_cands.
1455 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1457         * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
1458         (dump_cand): Support iv_cand.inv_exprs.
1459         (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
1460         for candidates.
1461         (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
1462         iv_cand.inv_exprs.
1464 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1466         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
1467         from ...
1468         * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
1469         as local function.  Include necessary header files.
1470         * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
1472 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1474         * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
1476 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1478         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
1479         operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
1480         RSHIFT_EXPR and BIT_NOT_EXPR.
1482 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1484         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
1485         (adjust_setup_cost): New parameter supporting round up adjustment.
1486         (struct address_cost_data): Delete.
1487         (force_expr_to_var_cost): Don't bound cost with spill_cost.
1488         (split_address_cost, ptr_difference_cost): Delete.
1489         (difference_cost, compare_aff_trees, record_inv_expr): Delete.
1490         (struct ainc_cost_data): New struct.
1491         (get_address_cost_ainc): New function.
1492         (get_address_cost, get_computation_cost): Reimplement.
1493         (determine_group_iv_cost_address): Record inv_expr for all uses of
1494         a group.
1495         (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
1496         (iv_ca_has_deps): Reimplemented to ...
1497         (iv_ca_more_deps): ... this.  Check if NEW_CP introduces more deps
1498         than OLD_CP.
1499         (iv_ca_extend): Call iv_ca_more_deps.
1501 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1503         * tree-ssa-address.c (struct mem_address): Move to header file.
1504         (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
1505         * tree-ssa-address.h (struct mem_address): Move from C file.
1506         (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
1508 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1510         * tree-affine.h (aff_combination_type): New interface.
1511         (aff_combination_zero_p): Remove static.
1512         (aff_combination_const_p): New interface.
1513         (aff_combination_singleton_var_p): New interfaces.
1515 2017-05-11  Richard Biener  <rguenther@suse.de>
1517         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1518         Skip unreachable blocks and destinations.
1519         (eliminate): Move stmt removal and fixup ...
1520         (fini_eliminate): ... here.  Skip inserted exprs.
1521         (pass_pre::execute): Move fini_pre after fini_eliminate.
1522         * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
1523         (tail_merge_optimize): Run cleanup_tree_cfg if requested by
1524         PRE to get rid of dead code that has invalid SSA form and
1525         split critical edges again.
1527 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
1529         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
1531 2017-05-11  Richard Biener  <rguenther@suse.de>
1533         * passes.c (execute_function_todo): Verify loops if they are
1534         said to be up-to-date.
1535         * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
1536         * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
1538 2017-05-10  John David Anglin  <danglin@gcc.gnu.org>
1540         PR target/80090
1541         * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
1542         handle calling assemble_external ourself.
1544         PR target/79027
1545         * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
1546         modes with zero size.  Enhance comment.
1548 2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1550         * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
1551         built-ins for vec_xl and vec_xst with short and char pointer
1552         arguments.
1554 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
1556         * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
1557         (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
1558         (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
1559         (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
1560         (_mm_maskz_min_round_ss): New intrinsics.
1561         * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
1562         (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
1563         * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
1564         (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
1565         (__builtin_ia32_minss_mask_round): New builtins.
1566         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1567         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
1568         * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
1569         Rename to ...
1570         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
1571         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
1572         Change to ...
1573         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
1574         ... this.
1576 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
1578         * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
1579         (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
1580         (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
1581         (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
1582         (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
1583         (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
1584         (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
1585         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1586         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
1587         * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
1588         (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
1589         (__builtin_ia32_mulss_mask_round): New builtins.
1590         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1591         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
1592         * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
1593         Rename to ...
1594         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
1595         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
1596         Change to ...
1597         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
1598         ... this.
1600 2017-05-10  Julia Koval  <julia.koval@intel.com>
1602         * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
1603         (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
1604         (_mm256_setr_m128i): New intrinsics.
1606 2017-05-10  Julia Koval  <julia.koval@intel.com>
1608         * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
1609         (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
1610         (_mm_maskz_rcp14_ss): New intrinsics.
1611         * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
1612         (__builtin_ia32_rcp14ss_mask): New builtins.
1613         * config/i386/sse.md (srcp14<mode>_mask): New pattern.
1615 2017-05-10  Peter Bergner  <bergner@vnet.ibm.com>
1617         PR tree-optimization/51513
1618         * tree-cfg.c (gimple_seq_unreachable_p): New function.
1619         (assert_unreachable_fallthru_edge_p): Use it.
1620         (group_case_labels_stmt): Likewise.
1621         * tree-cfg.h: Prototype it.
1622         * stmt.c: Include cfghooks.h and tree-cfg.h.
1623         (emit_case_dispatch_table) <gap_label>: New local variable.
1624         Use it to fill dispatch table gaps.
1625         Test for default_label before updating probabilities.
1626         (expand_case) <default_label>: Remove unneeded initialization.
1627         Test for unreachable default case statement and remove its edge.
1628         Set default_label accordingly.
1629         * tree-ssa-ccp.c (optimize_unreachable): Update comment.
1631 2017-05-10  Carl Love  <cel@us.ibm.com>
1633         * config/rs6000/rs6000-c: Add support for built-in functions
1634         vector signed char        vec_neg (vector signed char)
1635         vector signed short int   vec_neg (vector short int)
1636         vector signed int         vec_neg (vector signed int)
1637         vector signed long long   vec_neg (vector signed long long)
1638         vector float              vec_neg (vector float)
1639         vector double             vec_neg (vector double)
1640         * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
1641         overload.
1642         * config/rs6000/altivec.h: Add define for vec_neg
1643         * doc/extend.texi: Update the built-in documentation for the
1644         new built-in functions.
1646 2017-05-10  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1648         PR tree-optimization/77644
1649         * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
1651 2017-05-10  Nathan Sidwell  <nathan@acm.org>
1653         * dumpfile.h (TDI_lang_all): New.
1654         (TDF_KIND): New. Renumber others
1655         (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
1656         than bits.
1657         * dumpfile.c (dump_files): Mark language dumps as TDF_LANG.  add
1658         lang-all.
1659         (get_dump_file_name): Adjust suffix generation.
1660         (dump_enable_all): Use TDF_KIND.
1661         * doc/invoke.texi (-fdump-lang-all): Document.
1663         * dumpfile.h: Tabify.
1665 2017-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
1667         PR target/80671
1668         * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
1669         Move member access before delete.
1671 2017-05-10  Alexandre Oliva <aoliva@redhat.com>
1673         * tree-inline.c (expand_call_inline): Split block at stmt
1674         before the call.
1676 2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1678         PR target/68163
1679         * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
1680         are now unused after splitting mov{sf,sd}_hardfloat.
1681         (f32_lr2): Likewise.
1682         (f32_lm): Likewise.
1683         (f32_lm2): Likewise.
1684         (f32_li): Likewise.
1685         (f32_li2): Likewise.
1686         (f32_lv): Likewise.
1687         (f32_sr): Likewise.
1688         (f32_sr2): Likewise.
1689         (f32_sm): Likewise.
1690         (f32_sm2): Likewise.
1691         (f32_si): Likewise.
1692         (f32_si2): Likewise.
1693         (f32_sv): Likewise.
1694         (f32_dm): Likewise.
1695         (f32_vsx): Likewise.
1696         (f32_av): Likewise.
1697         (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
1698         For movsf, order stores so the VSX stores occur before the GPR
1699         store which encourages the register allocator to use a traditional
1700         FPR instead of a GPR.  For movsd, order the stores so that the GPR
1701         store comes before the VSX stores to allow the power6 to work.
1702         This is due to the power6 not having a 32-bit integer store
1703         instruction from a FPR.
1704         (movsf_hardfloat): Likewise.
1705         (movsd_hardfloat): Likewise.
1707 2017-05-09  Martin Sebor  <msebor@redhat.com>
1709         PR translation/80280
1710         * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
1711         added in r247778.
1713         PR translation/80280
1714         * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
1715         data member added in r247778.
1716         (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
1718 2017-05-09  Nathan Sidwell  <nathan@acm.org>
1720         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
1722         * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
1723         typedefs.
1725 2017-05-09  Marek Polacek  <polacek@redhat.com>
1727         * doc/invoke.texi: Fix typo.
1729 2017-05-09  Richard Biener  <rguenther@suse.de>
1731         * tree-vrp.c (vrp_val_is_max): Adjust comment.
1732         (vrp_val_is_min): Likewise.
1733         (set_value_range_to_value): Likewise.
1734         (set_value_range_to_nonnegative): Likewise.
1735         (gimple_assign_nonzero_p): Likewise.
1736         (gimple_stmt_nonzero_p): Likewise.
1737         (vrp_int_const_binop): Likewise.  Remove unreachable case.
1738         (adjust_range_with_scev): Adjust comments.
1739         (compare_range_with_value): Likewise.
1740         (extract_range_from_phi_node): Likewise.
1741         (test_for_singularity): Likewise.
1743 2017-05-09  Richard Biener  <rguenther@suse.de>
1745         * tree-vrp.c (get_single_symbol): Add assert that we don't
1746         get overflowed constants as invariant part.
1747         (compare_values_warnv): Add comment before the TREE_NO_WARNING
1748         checks.  Use wi::cmp instead of recursing for integer constants.
1749         (compare_values): Just ignore whether we assumed undefined
1750         overflow instead of failing the compare.
1751         (extract_range_for_var_from_comparison_expr): Add comment before the
1752         TREE_NO_WARNING sets.
1753         (test_for_singularity): Likewise.
1754         (extract_range_from_comparison): Do not disable optimization
1755         when we assumed undefined overflow.
1756         (extract_range_basic): Remove init of unused var.
1758 2017-05-09  Richard Biener  <rguenther@suse.de>
1760         * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
1761         (extract_range_from_multiplicative_op_1): Adjust.
1762         (extract_range_from_binary_expr_1): Use int_const_binop.
1764 2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1766         PR target/80101
1767         * config/rs6000/power6.md: Replace store_data_bypass_p calls with
1768         rs6000_store_data_bypass_p in seven define_bypass directives and
1769         in several comments.
1770         * config/rs6000/rs6000-protos.h: Add prototype for
1771         rs6000_store_data_bypass_p function.
1772         * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
1773         function implements slightly different (rs6000-specific) semantics
1774         than store_data_bypass_p, returning false rather than aborting
1775         with assertion error when arguments do not satisfy the
1776         requirements of store data bypass.
1777         (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
1778         rs6000_store_data_bypass_p.
1780 2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>
1782         * config/xtensa/xtensa-protos.h
1783         (xtensa_initial_elimination_offset): New declaration.
1784         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
1785         New function. Move its body from the INITIAL_ELIMINATION_OFFSET
1786         macro definition, add case for FRAME_POINTER_REGNUM when
1787         FRAME_GROWS_DOWNWARD.
1788         * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
1789         (INITIAL_ELIMINATION_OFFSET): Replace body with call to
1790         xtensa_initial_elimination_offset.
1792 2017-05-08  Nathan Sidwell  <nathan@acm.org>
1794         * doc/invoke.texi: Alphabetize -fdump options.
1796 2017-05-08  Martin Sebor  <msebor@redhat.com>
1798         PR translation/80280
1799         * config/sol2-c.c (solaris_pragma_align): Correct quoting.
1801 2017-05-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1803         * target.def (compute_frame_layout): New optional target hook.
1804         * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
1805         * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
1806         * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
1807         target hook.
1808         * reload1.c (verify_initial_elim_offsets): Likewise.
1809         * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
1810         (use_simple_return_p): Call arm_compute_frame_layout if needed.
1811         (arm_get_frame_offsets): Split up into this ...
1812         (arm_compute_frame_layout): ... and this function.
1814 2017-05-08  Richard Sandiford  <richard.sandiford@arm.com>
1816         * config/aarch64/constraints.md (Usa): New constraint.
1817         * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
1819 2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1821         * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
1822         with_multilib_list after it has been checked.
1824 2017-05-08  Richard Biener  <rguenther@suse.de>
1826         * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
1827         (bitmap_set_subtract_values): Likewise.
1829 2017-05-08  Richard Biener  <rguenther@suse.de>
1831         * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
1832         (gimple_assign_nonzero): ... this and remove strict_overflow_p
1833         argument.
1834         (gimple_stmt_nonzero_warnv_p): Rename to ...
1835         (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
1836         argument.
1837         (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
1838         (extract_range_basic): Adjust, do not disable propagation on
1839         strict overflow sensitive simplification.
1840         (vrp_visit_cond_stmt): Likewise.
1842 2017-05-05  Jan Hubicka  <hubicka@ucw.cz>
1844         * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
1845         body size unconditionally.
1847 2017-05-07  Jeff Law  <law@redhat.com>
1849         Revert:
1850         2017-05-06  Jeff Law  <law@redhat.com>
1851         PR tree-optimization/78496
1852         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
1853         code.
1855         PR tree-optimization/78496
1856         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
1857         (simplify_stmt_using_ranges): Call it.
1858         (vrp_dom_walker::before_dom_children): Extract equivalences
1859         from an ASSERT_EXPR with an equality comparison against a
1860         constant.
1862 2017-05-06  Jeff Law  <law@redhat.com>
1864         PR tree-optimization/78496
1865         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
1866         code.
1868         PR tree-optimization/78496
1869         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
1870         (simplify_stmt_using_ranges): Call it.
1871         (vrp_dom_walker::before_dom_children): Extract equivalences
1872         from an ASSERT_EXPR with an equality comparison against a
1873         constant.
1875 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
1877         * lra-constraints.c (lra_copy_reg_equiv): New function.
1878         (split_reg): Use it to copy equivalence information from the
1879         original register to the spill register.
1881 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
1883         PR rtl-optimization/75964
1884         * simplify-rtx.c (simplify_const_relational_operation): Remove
1885         invalid handling of comparisons of integer ABS.
1887 2017-05-06  Uros Bizjak  <ubizjak@gmail.com>
1889         * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
1890         initialize to zero.
1891         (init_regs): Remove declaration.
1892         (function_arg_advance_32): Initialize error_p as boolean variable.
1894 2017-05-05  Nathan Sidwell  <nathan@acm.org>
1896         * store-motion.c (remove_reachable_equiv_notes): Reformat long
1897         lines.  Use for (;;).
1899 2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1901         * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
1902         (rs6000_init_cost): Initialize rs6000_vect_nonmem.
1903         (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
1904         (rs6000_finish_cost): Avoid vectorizing simple copy loops with
1905         VF=2 that require versioning.
1907 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1909         * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
1910         int.
1912 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1914         * diagnostic.h (diagnostic_override_option_index): Convert from
1915         macro to inline function.
1917 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1919         * diagnostic.c (last_module_changed_p): New function.
1920         (set_last_module): New function.
1921         (diagnostic_report_current_module): Convert macro usage to
1922         the above functions.
1923         * diagnostic.h (diagnostic_context::last_module): Strengthen
1924         from const line_map * to const line_map_ordinary *.
1925         (diagnostic_last_module_changed): Delete macro.
1926         (diagnostic_set_last_module): Delete macro.
1928 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1930         * diagnostic.c (diagnostic_impl): Replace report_diagnostic
1931         with diagnostic_report_diagnostic.
1932         (diagnostic_n_impl_richloc): Likewise.
1933         * diagnostic.h (report_diagnostic): Delete macro.
1934         * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
1935         with diagnostic_report_diagnostic.
1936         * substring-locations.c (format_warning_va): Likewise.
1938 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1940         * diagnostic.c (diagnostic_report_diagnostic): Eliminate
1941         save/restor of format_spec.  Move option-printing code to...
1942         (print_option_information): ...this new function, and
1943         reimplement by simply printing to the pretty_printer,
1944         rather than appending to the format string.
1946 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1948         * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
1949         handling logic into...
1950         (update_effective_level_from_pragmas): ...this new function.
1952 2017-05-04  Andrew Waterman  <andrew@sifive.com>
1954         * config/riscv/riscv.opt (mstrict-align): New option.
1955         * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
1956         (SLOW_UNALIGNED_ACCESS): Define.
1957         (riscv_slow_unaligned_access): Declare.
1958         * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
1959         field.
1960         (riscv_slow_unaligned_access): New variable.
1961         (rocket_tune_info): Set slow_unaligned_access to true.
1962         (optimize_size_tune_info): Set slow_unaligned_access to false.
1963         (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
1964         (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
1965         (riscv_option_override): Set riscv_slow_unaligned_access.
1966         * doc/invoke.texi: Add -mstrict-align to RISC-V.
1968 2017-05-04  Kito Cheng  <kito.cheng@gmail.com>
1970         * config/riscv/riscv.md: Unify indentation.
1972 2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
1974         PR target/79038
1975         PR target/79202
1976         PR target/79203
1977         * config/rs6000/rs6000.md (u code attribute): Add FIX and
1978         UNSIGNED_FIX.
1979         (extendsi<mode>2): Add support for doing sign extension via
1980         VUPKHSW and XXPERMDI if the value is in Altivec registers and we
1981         don't have ISA 3.0 instructions.
1982         (extendsi<mode>2 splitter): Likewise.
1983         (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
1984         generate the normal insns since SImode can now go in vector
1985         registers.  Disallow the special UNSPECs needed for previous
1986         machines to hide SImode being used.  Add new insns
1987         fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
1988         (fix_trunc<mode>si2_stfiwx): Likewise.
1989         (fix_trunc<mode>si2_internal): Likewise.
1990         (fixuns_trunc<mode>si2): Likewise.
1991         (fixuns_trunc<mode>si2_stfiwx): Likewise.
1992         (fctiw<u>z_<mode>_smallint): Likewise.
1993         (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
1994         of floating point to 32-bit integer from doing a direct move to
1995         the GPR registers to do a store.
1996         (fctiwz_<mode>): Break long line.
1998 2017-05-05  Bin Cheng  <bin.cheng@arm.com>
2000         * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
2001         * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
2002         (addr_list, addr_offset_valid_p): New.
2003         (split_address_groups): Check offset validity with above function.
2004         (gt-tree-ssa-loop-ivopts.h): Include header file.
2006 2017-05-05  Nathan Sidwell  <nathan@acm.org>
2008         * config.gcc (arm*-*-*): Add missing 'fi'.
2010 2017-05-05  Steve Ellcey  <sellcey@cavium.com>
2012         * doc/invoke.texi (-fopt-info): Explicitly say order of options
2013         included in -fopt-info does not matter.
2014         * doc/optinfo.texi (-fopt-info): Fix description of default
2015         behavour. Explicitly say order of options included in -fopt-info
2016         does not matter.
2018 2017-05-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2020         * config.gcc: Allow combinations of aprofile and rmprofile values for
2021         --with-multilib-list.
2022         * config/arm/t-multilib: New file.
2023         * config/arm/t-aprofile: Remove initialization of MULTILIB_*
2024         variables.  Remove setting of ISA and floating-point ABI in
2025         MULTILIB_OPTIONS and MULTILIB_DIRNAMES.  Set architecture and FPU in
2026         MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
2027         and MULTILIB_DIRNAMES respectively.  Add comment to introduce all
2028         matches.  Add architecture matches for marvel-pj4 and generic-armv7-a
2029         CPU options.
2030         * config/arm/t-rmprofile: Likewise except for the matches changes.
2031         * doc/install.texi (--with-multilib-list): Document the combination of
2032         aprofile and rmprofile values and warn about pitfalls in doing that.
2034 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
2036         * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
2037         (movdi_aarch64): Likewise.
2039 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
2041         PR tree-optimization/80632
2042         * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
2043         field.
2044         (build_arrays): Initialize it for virtual phis.
2045         (fix_phi_nodes): Use it for virtual phis.
2047         PR tree-optimization/80558
2048         * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
2049         [x, y] op z into [x op, y op z] for op & or | if conditions
2050         are met.
2052 2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2053             Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
2055         PR target/71607
2056         * config/arm/arm.md (use_literal_pool): Remove.
2057         (64-bit immediate split): No longer takes cost into consideration
2058         if arm_disable_literal_pool is enabled.
2059         * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
2060         used when arm_disable_literal_pool is enabled.
2061         (arm_max_const_double_inline_cost): Remove use of
2062         arm_disable_literal_pool.
2063         (push_minipool_fix): Add assert.
2064         (arm_reorg): Add return if arm_disable_literal_pool is enabled.
2065         * config/arm/vfp.md (no_literal_pool_df_immediate): New.
2066         (no_literal_pool_sf_immediate): New.
2068 2017-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2070         PR tree-optimization/80613
2071         * tree-ssa-dce.c (propagate_necessity): Remove cases for
2072         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
2074 2017-05-05  Richard Biener  <rguenther@suse.de>
2076         * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
2078 2017-05-05  Georg-Johann Lay  <avr@gjlay.de>
2080         * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
2081         of this flag from insn conditions due to removal from r247495.
2083 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
2085         * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
2086         New function.
2087         (arm_early_store_addr_dep_ptr): Likewise.
2088         * config/arm/aarch-common-protos.h
2089         (arm_early_load_addr_dep_ptr): Add prototype.
2090         (arm_early_store_addr_dep_ptr): Likewise.
2091         * config/arm/cortex-a53.md: Add new bypasses.
2093 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
2095         * tree.c (next_type_uid): Change type to unsigned.
2096         (type_hash_canon): Decrement back next_type_uid if
2097         freeing a type node with the highest TYPE_UID.  For INTEGER_TYPEs
2098         also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
2099         if possible.
2101 2017-05-04  Martin Sebor  <msebor@redhat.com>
2103         * builtins.c: Fix a trivial typo in a comment.
2105         PR middle-end/79234
2106         * builtins.c (check_sizes): Adjust to handle reading past the end.
2107         Avoid printing excessive upper bound of ranges.  Use %E to print
2108         tree nodes instead of converting them to %wu.
2109         (expand_builtin_memchr): New function.
2110         (compute_dest_size): Rename...
2111         (compute_objsize): ...to this.
2112         (expand_builtin_memcpy): Adjust.
2113         (expand_builtin_mempcpy): Adjust.
2114         (expand_builtin_strcat): Adjust.
2115         (expand_builtin_strcpy): Adjust.
2116         (check_strncat_sizes): Adjust.
2117         (expand_builtin_strncat): Adjust.
2118         (expand_builtin_strncpy): Adjust and simplify.
2119         (expand_builtin_memset): Adjust.
2120         (expand_builtin_bzero): Adjust.
2121         (expand_builtin_memcmp): Adjust.
2122         (expand_builtin): Handle memcmp.
2123         (maybe_emit_chk_warning): Check strncat just once.
2125 2017-05-04  Martin Sebor  <msebor@redhat.com>
2127         PR preprocessor/79214
2128         PR middle-end/79222
2129         PR middle-end/79223
2130         * builtins.c (check_sizes): Add inlining context and issue
2131         warnings even when -Wno-system-headers is set.
2132         (check_strncat_sizes): Same.
2133         (expand_builtin_strncat): Same.
2134         (expand_builtin_memmove): New function.
2135         (expand_builtin_stpncpy): Same.
2136         (expand_builtin): Handle memmove and stpncpy.
2138 2017-05-04  Bin Cheng  <bin.cheng@arm.com>
2140         * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
2141         which is not used any more.
2143 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
2145         * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
2147 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
2149         * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
2150         (cortexa53_tunings): Likewise.
2151         (cortexa57_tunings): Likewise.
2152         (cortexa72_tunings): Likewise.
2153         (cortexa73_tunings): Likewise.
2155 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
2157         * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
2158         Set loop alignment to 8.
2160 2017-05-04  Martin Sebor  <msebor@redhat.com>
2162         PR translation/80280
2163         * builtins.c (expand_builtin_object_size): Add missing quoting to
2164         %D and like directives.
2165         * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
2166         (hsa_type_for_tree_type): Same.
2167         (verify_function_arguments): Same.
2168         * symtab.c (symbol_table::change_decl_assembler_name): Same.
2169         * varasm.c (get_section): Same.
2170         (mark_weak): Same.
2172 2017-05-04  Martin Sebor  <msebor@redhat.com>
2174         PR translation/80280
2175         * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
2177 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
2179         * config/aarch64/aarch64.c (generic_addrcost_table):
2180         Change HI/TI mode setting.
2182 2017-05-04  Martin Jambor  <mjambor@suse.cz>
2184         PR tree-optimization/80622
2185         * tree-sra.c (comes_initialized_p): New function.
2186         (build_accesses_from_assign): Only set write lazily when
2187         comes_initialized_p is false.
2188         (analyze_access_subtree): Use comes_initialized_p.
2189         (propagate_subaccesses_across_link): Assert !comes_initialized_p
2190         instead of testing for PARM_DECL.
2192 2017-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2194         * config/aarch64/aarch64.md (prefetch); Adjust predicate and
2195         constraint on operand 0 to allow more general addressing modes.
2196         Adjust output template.
2197         * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
2198         New function.
2199         * config/aarch64/aarch64-protos.h
2200         (aarch64_address_valid_for_prefetch_p): Declare prototype.
2201         * config/aarch64/constraints.md (Dp): New address constraint.
2202         * config/aarch64/predicates.md (aarch64_prefetch_operand): New
2203         predicate.
2205 2017-05-04  Jan Hubicka  <hubicka@ucw.cz>
2207         * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
2208         update use of estimate_ipcp_clone_size_and_time.
2209         (estimate_local_effects): Update use of
2210         estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
2211         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
2212         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
2213         Return nonspecialized time.
2215 2017-05-04  Richard Biener  <rguenther@suse.de>
2217         * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
2218         for the last VUSE which def dominates the PHI.  Directly call
2219         maybe_skip_until.
2220         (get_continuation_for_phi_1): Remove.
2222 2017-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
2224         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
2225         to explain the use of truncating division.  Cap the number of
2226         iterations to the maximum given by nb_iterations_upper_bound,
2227         if defined.
2229 2017-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2231         * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
2232         * configure: Regenerate.
2233         * config.in: Regenerate.
2234         * config/i386/driver-mingw32.c: new file.
2235         * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
2236         * config.host: Link driver-mingw32.o on MinGW host.
2237         * doc/install.texi: Document new --enable-mingw-wildcard configure
2238         option.
2240 2017-05-04  Marek Polacek  <polacek@redhat.com>
2242         PR tree-optimization/80612
2243         * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
2245 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
2246             Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
2248         * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
2249         (movt splitter): Likewise.
2250         * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
2251         to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
2252         (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
2253         block for Thumb-1 with MOVT.
2254         (thumb2_legitimate_address_p): Move code block ...
2255         (can_avoid_literal_pool_for_label_p): ... into this new function.
2256         (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
2257         literal pool.
2258         (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
2259         * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
2260         "M-profile targets with the MOVT instruction".
2262 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
2264         * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
2265         __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
2266         __builtin_arm_stfscr to __builtin_arm_set_fpscr.
2268 2017-05-04  Martin Liska  <mliska@suse.cz>
2270         * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
2271         variable cond_code.
2273 2017-05-04  Richard Biener  <rguenther@suse.de>
2275         * tree.c (array_at_struct_end_p): Handle arrays at struct
2276         end with flexarrays more conservatively.  Refactor and treat
2277         arrays of arrays or aggregates more strict.  Fix
2278         VIEW_CONVERT_EXPR handling.  Remove allow_compref argument.
2279         * tree.c (array_at_struct_end_p): Adjust prototype.
2280         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
2281         * gimple-fold.c (get_range_strlen): Likewise.
2282         * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
2284 2017-05-04  Richard Biener  <rguenther@suse.de>
2286         PR tree-optimization/31130
2287         * tree-vrp.c (needs_overflow_infinity): Remove as always returning
2288         false.
2289         (supports_overflow_infinity): Likewise.
2290         (is_negative_overflow_infinity): Likewise.
2291         (is_positive_overflow_infinity): Likewise.
2292         (is_overflow_infinity): Likewise.
2293         (stmt_overflow_infinity): Likewise.
2294         (overflow_infinity_range_p): Likewise.
2295         (usable_range_p): Remove as always returning true.
2296         (make_overflow_infinity): Remove.
2297         (negative_overflow_infinity): Likewise.
2298         (positive_overflow_infinity): Likewise.
2299         (avoid_overflow_infinity): Likewise.
2300         (set_value_range): Adjust accordingly.
2301         (set_value_range_to_nonnegative): Likewise, remove now unused
2302         overflow_infinity arg.
2303         (vrp_operand_equal_p): Adjust.
2304         (update_value_range): Likewise.
2305         (range_int_cst_singleton_p): Likewise.
2306         (operand_less_p): Likewise.
2307         (compare_values_warnv): Likewise.
2308         (extract_range_for_var_from_comparison_expr): Likewise.
2309         (vrp_int_const_binop): Likewise.
2310         (zero_nonzero_bits_from_vr): Likewise.
2311         (extract_range_from_multiplicative_op_1): Likewise.
2312         (extract_range_from_binary_expr_1): Likewise.
2313         (extract_range_from_unary_expr): Likewise.
2314         (extract_range_from_comparison): Likewise.
2315         (extract_range_basic): Likewise.
2316         (adjust_range_with_scev): Likewise.
2317         (compare_ranges): Likewise.
2318         (compare_range_with_value): Likewise.
2319         (dump_value_range): Likewise.
2320         (test_for_singularity): Likewise, remove strict_overflow_p parameter
2321         never used.
2322         (simplify_cond_using_ranges): Adjust.
2324 2017-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
2326         * brig-builtins.def: Added a builtin for class_f64.
2327         * builtin-types.def: Added a builtin type needed by class_f64.
2329 2017-05-03  Jason Merrill  <jason@redhat.com>
2331         * timevar.def: Add TV_CONSTEXPR.
2333 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
2335         * common.opt (fdiagnostics-parseable-fixits): Fix typo.
2337 2017-05-03  Martin Jambor  <mjambor@suse.cz>
2339         * ipa-prop.c (ipa_update_after_lto_read): Removed.
2340         * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
2341         * ipa-cp.c (ipcp_propagate_stage): Do not call
2342         ipa_update_after_lto_read.
2343         * ipa-inline.c (ipa_inline): Likewise.
2345 2017-05-03  Martin Jambor  <mjambor@suse.cz>
2347         * ipa-prop.h (ipa_edge_args): Make a class.  Mark with for_user GTY
2348         tag.  Added a default constructor and a destructor.
2349         (ipa_edge_args_sum_t): New class;
2350         (ipa_edge_args_sum): Declare.
2351         (ipa_edge_args_vector): Remove declaration.
2352         (IPA_EDGE_REF): Use ipa_edge_args_sum.
2353         (ipa_free_edge_args_substructures): Remove declaration.
2354         (ipa_check_create_edge_args): Use ipa_edge_args_sum.
2355         (ipa_edge_args_info_available_for_edge_p): Likewise.
2356         * ipa-prop.c (ipa_edge_args_vector): Removed.
2357         (edge_removal_hook_holder): Likewise.
2358         (edge_duplication_hook_holder): Likewise.
2359         (ipa_edge_args_sum): New variable.
2360         (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
2361         ipa_edge_args_vector.
2362         (ipa_free_edge_args_substructures): Likewise.
2363         (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
2364         ipa_edge_args_vector.
2365         (ipa_edge_removal_hook): Turned into method
2366         ipa_edge_args_sum_t::remove.
2367         (ipa_edge_duplication_hook): Turned into method
2368         ipa_edge_args_sum_t::duplicate.
2369         (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
2370         registering edge hooks.
2371         (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
2372         * ipa-inline-analysis.c (estimate_function_body_sizes): Test
2373         ipa_edge_args_sum instead of ipa_edge_args_vector.
2374         * ipa-profile.c (ipa_profile): Likewise.
2376 2017-05-03  Martin Jambor  <mjambor@suse.cz>
2378         * symbol-summary.h (function_summary): New method exists.
2379         (function_summary::symtab_removal): Deallocate through release.
2380         (call_summary): New class.
2381         (gt_ggc_mx): New overload.
2382         (gt_pch_nx): Likewise.
2383         (gt_pch_nx): Likewise.
2385 2017-05-03  Jeff Law  <law@redhat.com>
2387         PR tree-optimization/78496
2388         * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
2389         from simplify_cond_using_ranges.  Split off code to walk
2390         backwards through casts into ...
2391         (simplify_cond_using_ranges_2): New function.
2392         (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
2393         (execute_vrp): After identifying jump threads, call
2394         simplify_cond_using_ranges_2.
2396 2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
2398         PR bootstrap/80609
2399         * ipa-inline.h (inline_summary): Add ctor.
2400         (create_ggc): Do not use ggc_cleared_alloc.
2402 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
2403             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2405         * gcc.c (handle_braces): Support escaping in switch matching
2406         text.
2407         * doc/invoke.texi (Spec Files): Document it.
2408         Remove superfluous @code markup in items.
2410 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
2412         * diagnostic-show-locus.c (struct column_range): New struct.
2413         (get_affected_columns): New function.
2414         (get_printed_columns): New function.
2415         (struct correction): New struct.
2416         (correction::ensure_capacity): New function.
2417         (correction::ensure_terminated): New function.
2418         (struct line_corrections): New struct.
2419         (line_corrections::~line_corrections): New dtor.
2420         (line_corrections::add_hint): New function.
2421         (layout::print_trailing_fixits): Reimplement in terms of the new
2422         classes.
2423         (selftest::test_overlapped_fixit_printing): New function.
2424         (selftest::diagnostic_show_locus_c_tests): Call it.
2426 2017-05-03  Nathan Sidwell  <nathan@acm.org>
2428         Canonicalize canonical type hashing
2429         * tree.h (type_hash_canon_hash): Declare.
2430         * tree.c (type_hash_list, attribute_hash_list): Move into
2431         type_hash_canon_hash.
2432         (build_type_attribute_qual_variant): Break out hash code calc into
2433         type_hash_canon_hash.
2434         (type_hash_canon_hash): New.  Generic type hash computation.
2435         (build_range_type_1, build_array_type_1, build_function_type,
2436         build_method_type_directly, build_offset_type, build_complex_type,
2437         make_vector_type): Call it.
2439 2017-05-03  Richard Biener  <rguenther@suse.de>
2441         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2442         When all DRs have unknown misaligned do not always peel
2443         when there is a store but apply the same costing model as if
2444         there were only loads.
2446 2017-05-03  Richard Biener  <rguenther@suse.de>
2448         Revert
2449         PR tree-optimization/80492
2450         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
2451         compare_base_decls returning dont-know properly.
2453 2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2455         * config/arm/iterators.md (CCSI): New mode iterator.
2456         (arch): New mode attribute.
2457         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
2458         (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
2459         (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
2460         code iterator for success result mode.
2461         * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
2462         the corresponding new insn generators.
2464 2017-05-03  Bin Cheng  <bin.cheng@arm.com>
2466         Revert r247509
2467         2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2468         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
2470 2017-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2472         * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
2473         (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
2474         (DDR_A): Wrap DDR argument in brackets.
2475         (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
2476         (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
2477         (DDR_REVERSED_P): Likewise.
2479 2017-05-03  Jakub Jelinek  <jakub@redhat.com>
2481         PR tree-optimization/79472
2482         * tree-switch-conversion.c (struct switch_conv_info): Add
2483         contiguous_range and default_case_nonstandard fields.
2484         (collect_switch_conv_info): Compute contiguous_range and
2485         default_case_nonstandard fields, don't clear final_bb if
2486         contiguous_range and only the default case doesn't have the required
2487         structure.
2488         (check_all_empty_except_final): Set default_case_nonstandard instead
2489         of failing if contiguous_range and the default case doesn't have empty
2490         block.
2491         (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
2492         and only the default case doesn't have the required constants.  Skip
2493         virtual phis.
2494         (gather_default_values): Skip virtual phis.  Allow non-NULL CASE_LOW
2495         if default_case_nonstandard.
2496         (build_constructors): Build constant 1 just once.  Assert that default
2497         values aren't inserted in between cases if contiguous_range.  Skip
2498         virtual phis.
2499         (build_arrays): Skip virtual phis.
2500         (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
2501         (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
2502         Handle virtual phis.
2503         (gen_inbound_check): Handle default_case_nonstandard case.
2504         (process_switch): Adjust check_final_bb caller.  Call
2505         gather_default_values with the first non-default case instead of
2506         default case if default_case_nonstandard.
2508 2017-05-02  Nathan Sidwell  <nathan@acm.org>
2510         * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
2511         check.  Fix formatting.
2513 2017-05-02  Jan Hubicka  <hubicka@ucw.cz>
2515         * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
2516         errors when comparing specialized and unspecialized times.
2518 2017-05-02  David Malcolm  <dmalcolm@redhat.com>
2520         * diagnostic-show-locus.c
2521         (layout::should_print_annotation_line_p): Make private.
2522         (layout::print_annotation_line): Make private.
2523         (layout::annotation_line_showed_range_p): Make private.
2524         (layout::show_ruler): Make private.
2525         (layout::print_source_line): Make private.  Pass in line and
2526         line_width, rather than calling location_get_source_line.  Drop
2527         returned value.
2528         (layout::print_leading_fixits): New method.
2529         (layout::print_any_fixits): Rename to...
2530         (layout::print_trailing_fixits): ...this, and make private.
2531         Don't print newline fixits.
2532         (diagnostic_show_locus): Move logic for printing one row into...
2533         (layout::print_line): ...this new function.  Move the
2534         location_get_source_line call and error-handling from
2535         print_source_line to here.  Call print_leading_fixits, and rename
2536         print_any_fixits to print_trailing_fixits.
2537         (selftest::test_fixit_insert_containing_newline): Update now that
2538         newlines are partially supported.
2539         (selftest::test_fixit_insert_containing_newline_2): New test.
2540         (selftest::test_fixit_replace_containing_newline): Update comments.
2541         (selftest::diagnostic_show_locus_c_tests): Call the new test.
2542         * edit-context.c (class added_line): New class.
2543         (class edited_line): Describe newline handling in comment.
2544         (edited_line::actually_edited_p): New method.
2545         (edited_line::print_content): Delete redundant decl.
2546         (edited_line::m_predecessors): New field.
2547         (edited_file::print_content): Call edited_line::print_content.
2548         (edited_file::print_diff): Update to support newlines.
2549         (edited_file::print_diff_hunk): Likewise.
2550         (edited_file::print_run_of_changed_lines): New function.
2551         (edited_file::print_diff_line): Convert to...
2552         (print_diff_line): ...this.
2553         (edited_file::get_effective_line_count): New function.
2554         (edited_line::edited_line): Initialize new field m_predecessors.
2555         (edited_line::~edited_line): Clean up m_predecessors.
2556         (edited_line::apply_fixit): Handle newlines.
2557         (edited_line::get_effective_line_count): New function.
2558         (edited_line::print_content): New function.
2559         (edited_line::print_diff_lines): New function.
2560         (selftest::test_applying_fixits_insert_containing_newline): New
2561         test.
2562         (selftest::test_applying_fixits_replace_containing_newline): New
2563         test.
2564         (selftest::insert_line): New function.
2565         (selftest::test_applying_fixits_multiple_lines): Add example of
2566         inserting a line.
2567         (selftest::edit_context_c_tests): Call the new tests.
2569 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2571         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
2572         parameter cand.  Update dump information.
2573         (get_computation_cost): Update uses.
2575 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2577         * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
2578         (get_computation_aff): Reorder parameters.  Use get_computation_aff_1.
2579         (get_computation_at, rewrite_use_address): Update use of
2580         get_computation_aff.
2582 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2584         * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
2585         (get_computation): Delete.
2586         (get_computation_cost): Implement like get_computation_cost_at.
2587         Use get_computation_at.
2588         (get_computation_cost_at): Delete.
2589         (rewrite_use_nonlinear_expr): Use get_computation_at.
2590         (rewrite_use_compare, remove_unused_ivs): Ditto.
2592 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2594         * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
2596 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2598         * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
2599         (ivopts_global_cost_for_size): Rename parameter and update uses.
2600         (iv_ca_recount_cost): Update uses.
2601         (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
2602         candidates seperately in n_invs and n_cands.
2603         (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
2605 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2607         * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
2608         (find_inv_vars_cb): New.
2609         (find_depends): Renamed to ...
2610         (find_inv_vars): ... this.
2611         (add_candidate_1, force_var_cost): Call find_inv_vars.
2612         (split_address_cost, determine_group_iv_cost_cond): Ditto.
2614 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2616         * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
2617         inv_vars.  Add inv_exprs.
2618         (struct iv_cand): Rename depends_on to inv_vars.
2619         (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
2620         max_inv_var_id/n_inv_var_uses.  Move max_inv_expr_id around.
2621         Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
2622         (dump_cand): Dump inv_vars.
2623         (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
2624         (record_invariant, find_depends, add_candidate_1): Ditto.
2625         (set_group_iv_cost, force_var_cost): Ditto.
2626         (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
2627         (get_computation_cost_at, get_computation_cost): Ditto.
2628         (determine_group_iv_cost_generic): Ditto.
2629         (determine_group_iv_cost_address): Ditto.
2630         (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
2631         (determine_group_iv_costs): Ditto.
2632         (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
2633         (iv_ca_set_remove_invariants): Renamed to ...
2634         (iv_ca_set_remove_invs): ... this.  Support inv_vars and inv_exprs.
2635         (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
2636         (iv_ca_set_add_invariants):  Renamed to ...
2637         (iv_ca_set_add_invs): ... this.  Support inv_vars and inv_exprs.
2638         (iv_ca_set_cp): Use iv_ca_set_add_invs.
2639         (iv_ca_has_deps): Support inv_vars and inv_exprs.
2640         (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
2641         (create_new_ivs): Remove useless dump.
2643 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2645         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
2646         iv_cand code.
2647         (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
2648         (iv_ca_set_no_cp, create_new_iv): Ditto.
2650 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
2652         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
2654 2017-05-02  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
2656         * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
2657         function tree_check2.
2659 2017-05-02  Martin Liska  <mliska@suse.cz>
2661         * doc/gcov.texi: Add missing preposition.
2662         * gcov.c (function_info::function_info): Properly fill up
2663         all member variables.
2665 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
2667         * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
2669 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
2671         * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
2673 2017-05-02  Martin Liska  <mliska@suse.cz>
2675         PR lto/77954.
2676         * lto-streamer-in.c (lto_read_tree_1): Remove
2677         LTO_STREAMER_DEBUG.
2678         * lto-streamer.c (struct tree_hash_entry): Likewise.
2679         (struct tree_entry_hasher): Likewise.
2680         (tree_entry_hasher::hash): Likewise.
2681         (tree_entry_hasher::equal): Likewise.
2682         (lto_streamer_init): Likewise.
2683         (lto_orig_address_map): Likewise.
2684         (lto_orig_address_get): Likewise.
2685         (lto_orig_address_remove): Likewise.
2686         * lto-streamer.h: Likewise.
2687         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
2688         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
2690 2017-05-02  Sebastian Peryt  <sebastian.peryt@intel.com>
2692         * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
2693         (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
2694         (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
2695         (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
2696         (mm_maskz_sub_round_ss, _mm_mask_add_sd)
2697         (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
2698         (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
2699         (mm_maskz_sub_ss): New intrinsics.
2700         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2701         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
2702         * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
2703         (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
2704         (__builtin_ia32_subss_mask_round): New builtins.
2705         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2706         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
2707         * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
2708         Renamed to ...
2709         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
2710         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
2711         Changed to ...
2712         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
2713         ... this.
2715 2017-05-02  Martin Jambor  <mjambor@suse.cz>
2717         PR tree-optimization/78687
2718         * tree-sra.c (access): New field parent.
2719         (process_subtree_disqualification): New function.
2720         (disqualify_candidate): Call it.
2721         (build_accesses_from_assign): Reset write flag if creating an
2722         assighnment link.
2723         (build_access_subtree): Fill in parent field and also prpagate
2724         down grp_write flag.
2725         (create_artificial_child_access): New parameter set_grp_write, set
2726         grp_write to its value.
2727         (propagate_subaccesses_across_link): Also propagate grp_write flag
2728         values.
2729         (propagate_all_subaccesses): Push the closest parent back to work
2730         queue if add_access_to_work_queue returned true.
2732 2017-05-02  Richard Biener  <rguenther@suse.de>
2734         * common.opt (fstrict-overflow): Alias negative to fwrapv.
2735         * doc/invoke.texi (fstrict-overflow): Remove all traces of
2736         -fstrict-overflow documentation.
2737         * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
2738         (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
2739         flag_strict_overflow.
2740         * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
2741         * lto-opts.c (lto_write_options): Do not stream it.
2742         * lto-wrapper.c (merge_and_complain): Do not handle it.
2743         * opts.c (default_options_table): Do not set -fstrict-overflow.
2744         (finish_options): Likewise do not clear it when sanitizing.
2745         * simplify-rtx.c (simplify_const_relational_operation): Do not
2746         test flag_strict_overflow.
2748 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
2750         * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
2751         using enabled attribute.
2752         (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
2753         (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
2754         (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
2755         (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
2756         (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
2757         (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
2758         (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
2759         (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
2760         (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
2761         (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
2763 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
2765         * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
2767 2017-05-02  Richard Biener  <rguenther@suse.de>
2769         PR tree-optimization/80591
2770         Revert
2771         2017-04-10  Richard Biener  <rguenther@suse.de>
2773         * tree-ssa-structalias.c (find_func_aliases): Properly handle
2774         asm inputs.
2776 2017-05-02  Richard Biener  <rguenther@suse.de>
2778         PR tree-optimization/80549
2779         * tree-cfgcleanup.c (mfb_keep_latches): New helper.
2780         (cleanup_tree_cfg_noloop): Create forwarders to known loop
2781         headers if they do not have a preheader.
2783 2017-05-02  Martin Liska  <mliska@suse.cz>
2785         PR other/80589
2786         * common.opt: Fix typo.
2787         * doc/invoke.texi: Likewise.
2789 2017-05-01  Jan Beulich  <jbeulich@suse.com>
2791         * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
2792         swapping, add (x,x,m,x,n) alternative.
2794 2017-05-01  Nathan Sidwell  <nathan@acm.org>
2796         * calls.c (combine_pending_stack_adjustment_and_call): Remove
2797         unnecessary unadjusted_alignment check.
2799 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
2801         PR c++/80038
2802         * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
2803         operations here.
2804         * gimplify.c (gimplify_cilk_detach): New function.
2805         (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
2806         * tree-core.h: Document EXPR_CILK_SPAWN.
2807         * tree.h (EXPR_CILK_SPAWN): Define.
2809 2017-05-01  David Malcolm  <dmalcolm@redhat.com>
2811         * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
2812         to use new fixit_hint representation, using the "replace" logic.
2813         (get_line_span_for_fixit_hint): Likewise.
2814         (layout::print_any_fixits): Likewise.
2815         (selftest::test_one_liner_many_fixits): Rename to...
2816         (selftest::test_one_liner_many_fixits_1): ...this, and update
2817         comment and expected output to reflect that the multiple fix-it
2818         hints are now consolidated into one insertion.
2819         (selftest::test_one_liner_many_fixits_2): New test.
2820         (selftest::test_diagnostic_show_locus_one_liner): Update for
2821         above.
2822         (selftest::test_fixit_consolidation): Update for fix-it API
2823         change.
2824         * diagnostic.c (print_parseable_fixits): Likewise.
2825         * edit-context.c (edited_line::m_line_events): Convert from
2826         auto_vec <line_event *> to auto_vec <line_event>.
2827         (class line_event): Convert from abstract base class to a concrete
2828         class, taking over the role of replace_event.
2829         (class insert_event): Delete.
2830         (class replace_event): Rename to class line_event.  Convert to
2831         half-open range.
2832         (edit_context::add_fixits): Reimplement.
2833         (edit_context::apply_insert): Delete.
2834         (edit_context::apply_replace): Rename to...
2835         (edit_context::apply_fixit): ...this.  Convert to half-open range.
2836         (edited_file::apply_insert): Delete.
2837         (edited_file::apply_replace): Rename to...
2838         (edited_file::apply_fixit): ...this.
2839         (edited_line::~edited_line): Drop deletion of events.
2840         (edited_line::apply_insert): Delete.
2841         (edited_line::apply_replace): Rename to...
2842         (edited_line::apply_fixit): ...this.  Convert to half-open range.
2843         Update for change to type of m_line_events.
2844         * edit-context.h (edit_context::apply_insert): Delete.
2845         (edit_context::apply_replace): Rename to...
2846         (edit_context::apply_fixit): ...this.
2848 2017-05-01  Martin Sebor  <msebor@redhat.com>
2850         * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
2851         known.
2853 2017-05-01  Uros Bizjak  <ubizjak@gmail.com>
2855         PR target/68491
2856         * config/i386/cpuid.h (__get_cpuid): Always return 0 when
2857         __get_cpuid_max returns 0.
2858         (__get_cpuid_count): Ditto.
2860 2017-05-01  Eric Botcazou  <ebotcazou@adacore.com>
2862         * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
2863         replacement expression is another instance of one of its arguments.
2865 2017-05-01  Jakub Jelinek  <jakub@redhat.com>
2867         PR target/79430
2868         * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
2869         check for stack push/pop autoinc.
2870         * config/i386/i386.c (ix86_agi_dependent): Return false
2871         if the only reason why modified_in_p returned true is that
2872         addr is SP based and set_insn is a push or pop.
2874 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
2876         * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
2877         overflow check.
2879 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
2881         PR ipa/79224
2882         * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
2883         (account_size_time): Use two predicates - exec_pred and
2884         nonconst_pred_ptr.
2885         (evaluate_conditions_for_known_args): Compute both clause and
2886         nonspec_clause.
2887         (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
2888         (inline_summary_t::duplicate): Update.
2889         (estimate_function_body_sizes): Caluculate exec and nonconst predicates
2890         separately.
2891         (compute_inline_parameters): Likewise.
2892         (estimate_edge_size_and_time): Update caluclation of time.
2893         (estimate_node_size_and_time): Compute both time and nonspecialized
2894         time.
2895         (estimate_ipcp_clone_size_and_time): Update.
2896         (inline_merge_summary): Update.
2897         (do_estimate_edge_time): Update.
2898         (do_estimate_edge_size): Update.
2899         (do_estimate_edge_hints): Update.
2900         (inline_read_section, inline_write_summary): Stream both new predicates.
2901         * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
2902         as argument.
2903         (compute_inlined_call_time): Cleanup.
2904         (big_speedup_p): Update.
2905         (edge_badness): Update.
2906         * ipa-inline.h (INLINE_TIME_SCALE): Remove.
2907         (size_time_entry): Replace predicate by exec_predicate and
2908         nonconst_predicate.
2909         (edge_growth_cache_entry): Cache both time nad nonspecialized time.
2910         (estimate_edge_time): Return also nonspec_time.
2911         (reset_edge_growth_cache): Update.
2913 2017-04-29  Jakub Jelinek  <jakub@redhat.com>
2915         PR rtl-optimization/80491
2916         * ifcvt.c (noce_process_if_block): When looking for x setter
2917         with missing else_bb, don't check only the insn right before
2918         cond_earliest, but look for the last insn that x is modified in
2919         within the same bb.
2921         PR rtl-optimization/80491
2922         * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
2924 2017-04-29  Marc Glisse  <marc.glisse@inria.fr>
2926         PR tree-optimization/80487
2927         * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
2929 2017-04-29  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2931         PR tree-optimization/79697
2932         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
2933         is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
2934         (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
2935         BUILT_IN_STRNDUP.
2936         * gimple-fold.c (gimple_fold_builtin_realloc): New function.
2937         (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
2939 2017-04-28  Martin Sebor  <msebor@redhat.com>
2941         PR tree-optimization/80523
2942         * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
2943         (init_target_to_host_charmap, target_to_host, target_strtol10): New
2944         functions.
2945         (maybe_warn, format_directive, parse_directive): Use new functions.
2946         (pass_sprintf_length::execute): Call init_target_to_host_charmap.
2948 2017-04-28  Marc Glisse  <marc.glisse@inria.fr>
2950         * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
2952 2017-04-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2954         * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
2955         target_header_dir): Set correctly.
2956         * configure: Regenerated.
2957         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
2958         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
2959         instead of SYSTEM_HEADER_DIR.
2961 2017-04-28  Jan Hubicka  <hubicka@ucw.cz>
2963         * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
2964         (estimate_local_effects): Likewise.
2965         * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
2966         edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
2967         * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
2968         estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
2969         do_estimate_edge_time, estimate_edge_time): Likewise.
2970         * ipa-inline-analysis.c (estimate_node_size_and_time,
2971         estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
2972         (estimate_time_after_inlining): Remove.
2974 2017-04-28  Martin Liska  <mliska@suse.cz>
2976         * doc/gcov.texi: Enhance documentation of gcov.
2978 2017-04-28  Martin Liska  <mliska@suse.cz>
2980         * doc/gcov.texi: Sort options in alphabetic order.
2981         * doc/gcov-dump.texi: Likewise.
2982         * doc/gcov-tool.texi: Likewise.
2983         * gcov.c (print_usage): Likewise.
2984         * gcov-dump.c (print_usage): Likewise.
2985         * gcov-tool.c (print_merge_usage_message): Likewise.
2986         (print_rewrite_usage_message): Likewise.
2987         (print_overlap_usage_message): Likewise.
2989 2017-04-28  Martin Liska  <mliska@suse.cz>
2991         PR gcov-profile/53915
2992         * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
2994 2017-04-28  Martin Liska  <mliska@suse.cz>
2996         PR gcov-profile/79891
2997         * gcov.c (add_line_counts): Assign BBs to lines just if the BB
2998         is marked by compiler as living on a line.
2999         (get_cycles_count): Remove usage of the union.
3000         (output_intermediate_file): Likewise.
3001         (find_source): Fix GNU coding style.
3002         (accumulate_line_counts): Remove old non-all block mode.
3003         (output_lines): Remove usage of the union.
3004         * profile.c (output_location): Include all BBs, even if
3005         belonging to a same line (and file) as a previous BB.
3007 2017-04-28  Martin Liska  <mliska@suse.cz>
3009         * gcov.c (process_args): Handle new argument 'w'.
3010         (read_graph_file): Assign ID to BBs.
3011         (output_branch_count): Display BB # if verbose flag is set.
3012         (output_lines): Likewise for arcs.
3013         (print_usage): Add '--verbose' option help.
3014         * doc/gcov.texi: Document --verbose (-w) option.
3016 2017-04-28  Martin Liska  <mliska@suse.cz>
3018         * gcov.c (struct block_location_info): New struct.
3019         (process_file): Fill up the new structure.
3020         (read_graph_file): Replace usage of encoding by the newly added
3021         struct.
3022         (add_line_counts): Likewise.
3023         (accumulate_line_counts): Remove usage of the union.
3024         (function_info::function_info): New function.
3025         (function_info::~function_info): Likewise.
3026         (process_file): Call delete instead of release_function.
3027         (release_function): Release the function.
3028         (release_structures): Call delete instead of release_function.
3029         (solve_flow_graph): Replace usage of num_blocks.
3030         (find_exception_blocks): Likewise.
3031         (output_lines): Fix GNU coding style.
3033 2017-04-28  Martin Liska  <mliska@suse.cz>
3035         PR driver/56469
3036         * coverage.c (coverage_remove_note_file): New function.
3037         * coverage.h: Declare the function.
3038         * toplev.c (finalize): Clean if an error has been seen.
3040 2017-04-28  Martin Liska  <mliska@suse.cz>
3042         PR gcov-profile/80031
3043         * gcov-dump.c (tag_blocks): Just print number of basic blocks.
3044         * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
3045         * gcov.c (read_graph_file): Read just number of blocks.
3046         * profile.c (branch_prob): Do not stream 0 flags per a basic
3047         block.
3049 2017-04-28  Martin Liska  <mliska@suse.cz>
3051         * gcov-dump.c (tag_*): Add new argument to declarations.
3052         (dump_gcov_file): Likewise.
3053         (tag_blocks): Add and use new argument depth.
3054         (tag_arcs): Likewise.
3055         (tag_lines): Likewise.
3056         (tag_counters): Likewise.
3057         (tag_summary): Likewise.
3058         (dump_working_sets): Use depth to do a proper indentation.
3060 2017-04-28  Jakub Jelinek  <jakub@redhat.com>
3062         PR bootstrap/80531
3063         * cgraph.h (symtab_node::debug_symtab): No longer inline.
3064         * symtab.c (symtab_node::debug_symtab): Move definition here.
3066 2017-04-28  Richard Biener  <rguenther@suse.de>
3068         * lto-streamer.h (LTO_major_version): Bump to 7.
3070 2017-04-28  Richard Biener  <rguenther@suse.de>
3072         * tree-vrp.c (assert_info): New struct.
3073         (add_assert_info): New helper.
3074         (register_edge_assert_for_2): Refactor to add asserts to a vector
3075         of assert_info.
3076         (register_edge_assert_for_1): Likewise.
3077         (register_edge_assert_for): Likewise.
3078         (finish_register_edge_assert_for): New helper actually registering
3079         asserts where live on edge.
3080         (find_conditional_asserts): Adjust.
3081         (find_switch_asserts): Likewise.
3082         (evrp_dom_walker::try_find_new_range): Generalize.
3083         (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
3085 2017-04-27  Marek Polacek  <polacek@redhat.com>
3087         PR sanitizer/80349
3088         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
3089         arg10 and arg11 to itype.
3091 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
3093         * doc/extend.texi (Object Size Checking): Improve grammar.
3095 2017-04-27  Richard Earnshaw  <rearnsha@arm.com>
3097         PR target/80530
3098         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
3099         that the logic for permitting reciprocal estimates matches that
3100         in use_rsqrt_p.
3102 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
3104         PR c++/80534
3105         * tree.c (type_cache_hasher::equal): Only compare
3106         TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
3107         (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
3108         non-aggregate element types.
3109         * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
3110         about the flag on ARRAY_TYPEs in the comment, formatting fix.
3112 2017-04-27  Richard Biener  <rguenther@suse.de>
3114         PR middle-end/80533
3115         * emit-rtl.c (set_mem_attributes_minus_bitpos): When
3116         stripping ARRAY_REFs from MEM_EXPR make sure we're not
3117         keeping a reference to a trailing array.
3119 2017-04-27  Richard Biener  <rguenther@suse.de>
3121         PR middle-end/80539
3122         * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
3123         being in loop-closed SSA form conservatively.
3124         (chrec_fold_multiply_poly_poly): Likewise.
3126 2017-04-27  Tamar Christina  <tamar.christina@arm.com>
3128         PR middle-end/79665
3129         * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
3130         CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
3132 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
3134         PR target/77728
3135         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
3136         (aarch64_function_arg_alignment): Return unsigned int again, but still
3137         ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
3138         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
3139         Don't emit -Wpsabi note.
3140         (aarch64_function_arg_boundary): Likewise.
3141         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
3142         caller.
3144 2017-04-26  Nathan Sidwell  <nathan@acm.org>
3146         * tree.h (crc32_unsigned_n): Declare.
3147         (crc32_unsigned, crc32_unsigned): Make inline.
3148         * tree.c (crc32_unsigned_bits): Replace with ...
3149         (crc32_unsigned_n): ... this.
3150         (crc32_unsigned, crc32_byte): Remove.
3151         (crc32_string): Remove unnecessary braces.
3153 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
3155         * ipa-cp.c (estimate_local_effects): Convert sreal to int.
3156         * ipa-inline-analysis.c (MAX_TIME): Remove.
3157         (account_size_time): Use sreal for time.
3158         (dump_inline_summary): Update.
3159         (estimate_function_body_sizes): Update.
3160         (estimate_edge_size_and_time): Update.
3161         (estimate_calls_size_and_time): Update.
3162         (estimate_node_size_and_time): Update.
3163         (inline_merge_summary): Update.
3164         (inline_update_overall_summary): Update.
3165         (estimate_time_after_inlining): Update.
3166         (inline_read_section): Update.
3167         (inline_write_summary): Update.
3168         * ipa-inline.c (compute_uninlined_call_time): Update.
3169         (compute_inlined_call_time): Update.
3170         (recursive_inlining): Update.
3171         (inline_small_functions): Update.
3172         (dump_overall_stats): Update.
3173         * ipa-inline.h: Include sreal.h.
3174         (size_time_entry): Turn time to sreal.
3175         (inline_summary): Turn self_time nad time to sreal.
3177 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
3179         * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
3180         data-streamer.h
3181         (sreal::stream_out, sreal::stream_in): New.
3182         * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
3184 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
3186         * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
3187         environment.
3189 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
3191         PR target/70799
3192         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
3193         Handle ASHIFTRT.
3194         (dimode_scalar_chain::compute_convert_gain): Ditto.
3195         (dimode_scalar_chain::make_vector_copies): Ditto.
3196         (dimode_scalar_chain::convert_reg): Ditto.
3197         (dimode_scalar_chain::convert_insn): Ditto.
3198         * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
3199         (VI248_AVX512BW_1): New mode iterator.
3200         (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
3201         <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
3202         mode iterator.
3204 2017-04-25  Martin Sebor  <msebor@redhat.com>
3206         PR tree-optimization/80497
3207         * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
3208         constants are representable in HOST_WIDE_INT.
3209         (parse_directive): Ditto.
3211 2017-04-25  Martin Sebor  <msebor@redhat.com>
3213         PR bootstrap/80486
3214         * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
3215         (new_zero_array): Adjust signature.
3216         (dom_info::dom_init): Used unsigned rather that size_t.
3217         (dom_info::dom_info): Same.
3219 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3220             Jakub Jelinek  <jakub@redhat.com>
3222         PR target/77728
3223         * config/arm/arm.c: Include gimple.h.
3224         (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
3225         returns negative, increment ncrn only if it returned positive.
3226         (arm_needs_doubleword_align): Return int instead of bool,
3227         ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
3228         members, but if there is any such non-FIELD_DECL
3229         > PARM_BOUNDARY aligned decl, return -1 instead of false.
3230         (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
3231         returns negative, increment nregs only if it returned positive.
3232         (arm_setup_incoming_varargs): Likewise.
3233         (arm_function_arg_boundary): Emit -Wpsabi note if
3234         arm_needs_doubleword_align returns negative, return
3235         DOUBLEWORD_ALIGNMENT only if it returned positive.
3237 2017-04-25  Marek Polacek  <polacek@redhat.com>
3239         PR sanitizer/80349
3240         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
3241         first argument to type.
3243 2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
3245         PR target/80482
3246         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
3247         type checks to test for compatibility instead of equality.
3249 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3250             Jakub Jelinek  <jakub@redhat.com>
3252         PR target/77728
3253         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
3254         type.
3255         (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
3256         struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
3257         the alignment computation, but return their maximum in warn_alignment.
3258         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
3259         Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
3260         is smaller.
3261         (aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
3262         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
3263         caller.
3265 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3267         * config/arc/simdext.md (dmpyh): Fix typo.
3269 2017-04-25  Richard Biener  <rguenther@suse.de>
3271         PR tree-optimization/80492
3272         * alias.c (compare_base_decls): Handle registers with asm
3273         specification conservatively.
3274         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
3275         compare_base_decls returning dont-know properly.
3277 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3279         * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
3280         (legitimate_offset_address_p): New function.
3281         (arc_legitimate_address_p): Use above function.
3283 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3285         * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
3287 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3289         * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
3290         ACCH registers whenever they are available.
3292 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3294         * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
3295         double regs fix when not used.
3297 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3299         * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
3300         core registers.
3301         (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
3302         (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
3304 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3306         * config/arc/arc.c (arc_output_addsi): Check for h-register class
3307         when emitting short ADD instructions.
3309 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
3311         * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
3312         constraint.
3313         (cmpsi_cc_c_insn): Likewise.
3314         (cbranchsi4_scratch): Compute proper instruction length using
3315         compact_hreg_operand.
3316         * config/arc/predicates.md (compact_hreg_operand): New predicate.
3318 2017-04-25  Richard Biener  <rguenther@suse.de>
3320         PR middle-end/80509
3321         * passes.c (pass_manager::pass_manager): Initialize
3322         m_name_to_pass_map.
3324 2017-04-25  Richard Biener  <rguenther@suse.de>
3326         PR tree-optimization/79201
3327         * tree-ssa-sink.c (statement_sink_location): Handle calls.
3329 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3331         PR target/80464
3332         * config/s390/vector.md: Split MEM->GPR vector moves for
3333         non-s_operand addresses.
3335 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3337         PR target/79895
3338         * config/s390/predicates.md (reload_const_wide_int_operand): New
3339         predicate.
3340         * config/s390/s390.md ("movti"): Remove d/P alternative.
3341         ("movti_bigconst"): New pattern definition.
3343 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3345         PR target/80080
3346         * s390-protos.h (s390_expand_cs_hqi): Removed.
3347         (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
3348         * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
3349         modes as well as CCZ1mode and CCZmode.
3350         (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
3351         signature of s390_emit_compare_and_swap.
3352         (s390_expand_cs_hqi): Likewise, make static.
3353         (s390_expand_cs_tdsi): Generate an explicit compare before trying
3354         compare-and-swap, in some cases.
3355         (s390_expand_cs): Wrapper function.
3356         (s390_expand_atomic_exchange_tdsi): New backend specific expander for
3357         atomic_exchange.
3358         (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
3359         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
3360         patterns for small and large integers.  Forbid symref memory operands.
3361         Move expander to s390.c.  Require cc register.
3362         ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
3363         ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
3364         ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
3365         ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
3366         symref memory operands.  Remove CC mode and call s390_match_ccmode
3367         instead.
3368         ("atomic_exchange<mode>"): Allow and implement all integer modes.
3370 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3372         * config/s390/s390.md (define_peephole2): New peephole to help
3373         combining the load-and-test pattern with volatile memory.
3375 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3377         * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
3378         with CCZmode for TARGET_Z196.
3380 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
3382         PR rtl-optimization/80501
3383         * combine.c (make_compound_operation_int): Set subreg_code to SET
3384         even for AND with mask of the sign bit of mode.
3386         PR rtl-optimization/80500
3387         * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
3388         sum's initial value.
3390 2017-04-25  Julian Brown  <julian@codesourcery.com>
3391             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3393         * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
3395 2017-04-25  Marc Glisse  <marc.glisse@inria.fr>
3397         * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
3399 2017-04-25  Julian Brown  <julian@codesourcery.com>
3400             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3402         * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
3403         (thunderx2t99_sha): New Reservation.
3405 2017-04-25  Julian Brown  <julian@codesourcery.com>
3406             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3408         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
3409         type for 1-element load.
3411 2017-04-24  Marc Glisse  <marc.glisse@inria.fr>
3413         * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
3415 2017-04-24  Martin Jambor  <mjambor@suse.cz>
3417         PR tree-optimization/80293
3418         * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
3419         char arrays not totally scalarizable if it is false.
3420         (analyze_all_variable_accesses): Pass correct value in the new
3421         parameter.  Add a statistics counter.
3423 2017-04-24  Jan Hubicka  <hubicka@ucw.cz>
3425         PR middle-end/79931
3426         * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
3428 2017-04-24  Richard Biener  <rguenther@suse.de>
3430         PR tree-optimization/80494
3431         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
3432         out for complex types.
3434 2017-04-24  Richard Biener  <rguenther@suse.de>
3436         * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
3437         * tree-ssa-sccvn.c (print_scc): Print SCC size.
3438         (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
3439         (DFS): Adjust and never fail.
3440         (sccvn_dom_walker::fail): Remove.
3441         (sccvn_dom_walker::before_dom_children): Adjust.
3442         (run_scc_vn): Likewise and never fail.
3443         * tree-ssa-pre.c (pass_pre::execute): Adjust.
3444         (pass_fre::execute): Likewise.
3446 2017-04-24  Richard Biener  <rguenther@suse.de>
3448         PR tree-optimization/79725
3449         * tree-ssa-sink.c (statement_sink_location): Return whether
3450         failure reason was zero uses.  Move that check later.
3451         (sink_code_in_bb): Deal with zero uses by removing the stmt
3452         if possible.
3454 2017-04-24  Richard Biener  <rguenther@suse.de>
3456         PR c++/2972
3457         * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
3458         pointer-based references.
3460 2017-04-24  Richard Biener  <rguenther@suse.de>
3462         PR bootstrap/79814
3463         * pass_manager.h (pass_manager::operator new): Remove.
3464         (pass_manager::operator delete): Likewise.
3465         * passes.c (pass_manager::operator new): Remove.
3466         (pass_manager::operator delete): Likewise.
3467         (pass_manager::pass_manager): Zero individual pass members.
3469 2017-04-23  Uros Bizjak  <ubizjak@gmail.com>
3471         PR target/70799
3472         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
3473         <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
3474         Check "XEXP (src, 1)" operand here.
3475         <case PLUS, case MINUS, case IOR, case XOR, case AND>:
3476         Check "XEXP (src, 1)" operand here.
3477         (dimode_scalar_chain::make_vector_copies): Detect count register
3478         of a shift instruction.  Zero extend count register from QImode
3479         to DImode to satisfy vector shift pattern count operand predicate.
3480         Substitute vector shift count operand with a DImode copy.
3481         (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
3482         vector register.
3484 2017-04-21  Uros Bizjak  <ubizjak@gmail.com>
3486         * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
3487         Remove UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
3488         (*insvqi_1_mem_rex64): Move above insv<mode>_1.  Remove
3489         UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
3490         (UNSPEC_NOREX_MEM): Remove definition.
3492 2017-04-21  Richard Biener  <rguenther@suse.de>
3494         PR tree-optimization/79547
3495         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3496         Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
3497         bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
3498         without any constraints.
3500 2017-04-21  Richard Biener  <rguenther@suse.de>
3502         PR tree-optimization/78847
3503         * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
3505 2017-04-21  Richard Biener  <rguenther@suse.de>
3507         * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
3508         (build_distinct_type_copy): Likewise.
3509         (build_variant_type_copy): Likewise.
3510         * tree.c (build_qualified_type): Pass down mem-stat info.
3511         (build_distinct_type_copy): Likewise.
3512         (build_variant_type_copy): Likewise.
3514 2017-04-21  Richard Biener  <rguenther@suse.de>
3516         PR tree-optimization/80237
3517         * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
3518         defaulted to NULL.
3519         (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
3520         for a simplified result.
3522 2016-04-21  Richard Biener  <rguenther@suse.de>
3524         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
3525         sth as strict as a simple_iv but a chrec without symbols and an
3526         operand defined in the loop we are peeling (and not some subloop).
3527         (propagate_constants_for_unrolling): Propagate all constants.
3529 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
3531         PR target/79804
3532         * config/i386/i386.c (print_reg): Remove assert for disalowed
3533         regno values, call output_operand_lossage instead.
3535 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
3537         PR target/78090
3538         * config/i386/constraints.md (Yc): New register constraint.
3539         * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
3540         Use Yc constraint for alternative 2 of operand 0.  Remove
3541         preferred_for_speed attribute.
3543 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
3545         * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
3546         lastprivate clauses in SIMT case.
3548 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
3550         * doc/invoke.texi (-Wextra-semi): Document new warning option.
3552 2017-04-20  Richard Biener  <rguenther@suse.de>
3554         PR tree-optimization/57796
3555         * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
3556         as N scalar stores.
3557         (vect_model_load_cost): Cost gathers as N scalar loads.
3559 2017-04-20  Richard Biener  <rguenther@suse.de>
3561         * ggc-page.c (ggc_allocated_p): Rename to ...
3562         (safe_lookup_page_table_entry): ... this and return the lookup
3563         result.
3564         (gt_ggc_m_S): Use safe_lookup_page_table_entry.
3566 2017-04-20  Richard Biener  <rguenther@suse.de>
3568         PR tree-optimization/80453
3569         * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
3570         * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
3571         from the conditions.
3572         (vn_phi_eq): Pass them down.
3573         (vn_phi_lookup): Record them.
3574         (vn_phi_insert): Likewise.
3576 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3578         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
3579         uninitialized variable warning to avoid buffer overrun.
3581 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
3583         PR other/71250
3584         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
3585         is suppressed for '{ 0 }' in C.
3587 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
3589         * BASE-VER: Set to 8.0.0.
3591 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3593         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
3594         priority .init_array and .fini_array section with SECTION_NOTYPE
3595         flag.
3597 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
3599         PR middle-end/80423
3600         * tree.h (build_array_type): Add typeless_storage default argument.
3601         * tree.c (type_cache_hasher::equal): Also compare
3602         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
3603         (build_array_type): Add typeless_storage argument, set
3604         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
3605         recursive call.
3606         (build_nonshared_array_type): Adjust build_array_type_1 caller.
3607         (build_array_type): Likewise.  Add typeless_storage argument.
3609 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3610             Jakub Jelinek  <jakub@redhat.com>
3612         PR tree-optimization/80426
3613         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
3614         operation on symbolic operands, also compute the overflow for the
3615         invariant part when the operation degenerates into a negation.
3617 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
3619         PR debug/80461
3620         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
3621         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
3623         PR debug/80436
3624         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
3626 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
3628         PR target/80462
3629         * config/avr/avr.c (tree.h): Include it.
3630         (cgraph.h): Include it.
3631         (avr_encode_section_info): Don't warn for uninitialized progmem
3632         variable if it's just an alias.
3634 2017-04-19  Richard Biener  <rguenther@suse.de>
3636         PR ipa/65972
3637         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
3638         when needed by AutoPGO.
3640 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
3642         PR lto/50345
3643         * doc/lto.texi: Remove an extra 'that'.
3645 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
3647         PR rtl-optimization/80429
3648         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
3649         are only used in debug insns.
3651 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3652             Vladimir Makarov  <vmakarov@redhat.com>
3654         * config/sparc/predicates.md (input_operand): Add comment.  Return
3655         true for any memory operand when LRA is in progress.
3656         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
3658 2017-04-18  Jeff Law  <law@redhat.com>
3660         PR target/74563
3661         * mips.md ({return,simple_return}_internal): Do not overwrite
3662         operands[0].
3664 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
3666         PR tree-optimization/80443
3667         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
3668         instead of adding 1, subtract -1 and similarly instead of subtracting
3669         1 add -1.
3671 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
3673         PR rtl-optimization/80357
3674         * haifa-sched.c (tmp_bitmap): New variable.
3675         (model_recompute): Handle duplicate use records.
3676         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
3677         (free_global_sched_pressure_data): Free it.
3679 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3681         Revert:
3682         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3683         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
3684         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
3685         instead of SYSTEM_HEADER_DIR.
3687 2017-04-18  Jeff Law  <law@redhat.com>
3689         PR middle-end/80422
3690         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
3691         predecessors after walking up the insn chain.
3693 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
3695         PR debug/80263
3696         * dwarf2out.c (modified_type_die): Try harder not to emit internal
3697         sizetype type into debug info.
3699 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3701         PR target/80099
3702         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
3703         unneeded test for TARGET_UPPER_REGS_SF.
3704         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
3706 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
3708         PR sanitizer/80444
3709         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
3710         instead of gsi_after_labels.
3712 2017-04-18  Jeff Law  <law@redhat.com>
3714         * regcprop.c (maybe_mode_change): Avoid creating copies of the
3715         stack pointer.
3717         Revert:
3718         2017-04-13  Jeff Law  <law@redhat.com>
3719         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
3720         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
3722 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
3724         PR target/79453
3725         * config/avr/avr.c (intl.h): Include it.
3726         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
3728 2017-04-18  Martin Liska  <mliska@suse.cz>
3730         PR gcov-profile/78783
3731         * gcov-tool.c (gcov_output_files): Validate that destination
3732         file is either removed by the tool or by a user.
3734 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
3735             Guy Benyei  <guybe@mellanox.com>
3737         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
3738         block, and do not negate it, the stored id is already negative.
3740 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
3742         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
3744 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3746         PR target/80098
3747         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
3748         masks of options that should be turned off if the VSX vector
3749         options are turned off.
3750         (OTHER_P8_VECTOR_MASKS): Likewise.
3751         (OTHER_VSX_VECTOR_MASKS): Likewise.
3752         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
3753         rs6000_disable_incompatible_switches to validate no type switches
3754         like -mvsx.
3755         (rs6000_incompatible_switch): New function to disallow turning on
3756         other vector options if -mno-vsx, -mno-power8-vector, or
3757         -mno-power9-vector are specified.
3759 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
3761         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
3763 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
3765         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
3766         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
3767         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
3768         (ARG_POINTER_CFA_OFFSET): Likewise.
3770 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
3772         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
3773         conditions to take advantage of various optimizations.
3775 2017-04-13  Jeff Law  <law@redhat.com>
3777         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
3778         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
3779         (zero_extendsidi2_dext): Likewise.
3781 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
3783         PR sanitizer/80403
3784         * fold-const.c (fold_ternary_loc): Revert
3785         use op0 instead of fold_convert_loc (loc, type, arg0) part of
3786         2017-04-12 change.
3788 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
3790         PR rtl-optimization/80343
3791         * lra-remat.c (update_scratch_ops): Assign original hard reg to
3792         new scratch pseudo.
3794 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
3796         PR sanitizer/80414
3797         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
3798         to ubsan_encode_value.
3800 2017-04-13  Jeff Law  <law@redhat.com>
3802         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
3803         appearing in DEBUG_INSNs.
3805 2017-04-13  Martin Liska  <mliska@suse.cz>
3807         PR gcov-profile/80413
3808         * gcov-io.c (gcov_write_string): Copy to buffer just when
3809         allocated size is greater than zero.
3811 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
3813         PR debug/80321
3814         * dwarf2out.c (decls_for_scope): Ignore declarations of
3815         current_function_decl in BLOCK_NONLOCALIZED_VARS.
3817 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
3819         PR lto/69953
3820         * ipa-visibility.c (non_local_p): Fix typos.
3821         (localize_node): When localizing symbol in same comdat group,
3822         dissolve the group only when we know external symbols are going
3823         to be privatized.
3824         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
3826 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
3828         PR tree-optimization/79390
3829         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
3830         order does not result in usable sequence, retry with reversed operand
3831         order.
3833         PR sanitizer/80403
3834         PR sanitizer/80404
3835         PR sanitizer/80405
3836         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
3837         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
3838         op0 instead of fold_convert_loc (loc, type, arg0).
3840 2017-04-12  Jeff Law  <law@redhat.com>
3842         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
3843         has a delay slot in the generated code.
3845         * config/cris/cris.md (cris_preferred_reload_class): Return
3846         GENNONACR_REGS rather than GENERAL_REGS.
3848 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
3850         PR c/80163
3851         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
3852         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
3853         signedness of the result type.
3855 2017-04-12  Richard Biener  <rguenther@suse.de>
3856             Jeff Law  <law@redhat.com>
3858         PR tree-optimization/80359
3859         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
3860         trim stores to TARGET_MEM_REFs.
3862 2017-04-12  Richard Biener  <rguenther@suse.de>
3864         PR tree-optimization/79390
3865         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
3866         threading case even more.
3868 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
3870         PR target/80382
3871         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
3872         for quad_address_p for TImode, instead of just not indexed_address.
3874 2017-04-12  Richard Biener  <rguenther@suse.de>
3875             Bernd Edlinger  <bernd.edlinger@hotmail.de>
3877         PR middle-end/79671
3878         * alias.c (component_uses_parent_alias_set_from): Handle
3879         TYPE_TYPELESS_STORAGE.
3880         (get_alias_set): Likewise.
3881         * tree-core.h (tree_type_common): Add typeless_storage flag.
3882         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
3883         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
3884         for types containing members with TYPE_TYPELESS_STORAGE.
3885         (place_field): Likewise.
3886         (layout_type): Likewise for ARRAY_TYPE.
3887         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
3888         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
3889         TYPE_TYPELESS_STORAGE.
3890         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
3892 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
3894         PR sanitizer/80349
3895         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
3896         first argument to type.
3898 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3900         PR target/80376
3901         PR target/80315
3902         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
3903         CONST0_RTX (mode) rather than const0_rtx where appropriate.
3904         (rs6000_expand_binop_builtin): Likewise.
3905         (rs6000_expand_ternop_builtin): Likewise; also add missing
3906         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
3907         vshasigma built-ins.
3908         * doc/extend.texi: Document that vec_xxpermdi's third argument
3909         must be a constant.
3911 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
3913         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
3914         Use shift_const cost parameter when calculating gain of STV shifts.
3916 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
3918         PR rtl-optimization/70478
3919         * lra-constraints.c (process_alt_operands): Check memory for
3920         disfavoring memory insn operand.
3922 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
3924         PR middle-end/80100
3925         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
3926         left shift in unsigned HOST_WIDE_INT type.
3928         PR rtl-optimization/80385
3929         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
3930         (not (neg X)) into (plus X -1) for complex or non-integral modes.
3932         PR libgomp/80394
3933         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
3934         if they have any depend clauses.
3936 2017-04-11  Martin Liska  <mliska@suse.cz>
3938         PR ipa/80212
3939         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
3940         * ipa-split.c (split_function): Create a local comdat symbol
3941         if caller is in a comdat group.
3943 2017-04-11  Martin Liska  <mliska@suse.cz>
3945         PR ipa/80212
3946         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
3947         flags.
3949 2017-04-11  Martin Sebor  <msebor@redhat.com>
3951         PR middle-end/80364
3952         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
3953         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
3954         for INTEGER_TYPE.
3955         (directive::set_width, directive::set_precision, format_character):
3956         Adjust.
3957         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
3958         INTEGER_TYPE.
3960 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
3962         PR target/80389
3963         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
3964         conflict, set target->arch_name instead of target->cpu_name.
3966 2017-04-11  Richard Biener  <rguenther@suse.de>
3968         PR tree-optimization/80374
3969         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
3970         build_zero_cst, remove fold_convertible_p check again.
3972 2017-04-11  Martin Liska  <mliska@suse.cz>
3974         PR sanitizer/70878
3975         * ubsan.c (instrument_object_size): Do not instrument register
3976         variables.
3978 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
3980         PR target/80381
3981         * config/i386/i386-builtin-types.def
3982         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
3983         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
3984         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
3985         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
3986         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
3987         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
3988         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
3989         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
3990         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
3991         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
3992         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
3993         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
3994         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
3995         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
3996         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
3997         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
3998         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
3999         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
4000         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
4001         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
4002         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
4003         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
4004         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
4005         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
4006         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
4007         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
4008         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
4009         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
4010         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
4011         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
4012         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
4013         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
4014         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
4015         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
4016         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
4017         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
4018         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
4019         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
4020         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
4021         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
4022         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
4023         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
4024         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
4025         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
4026         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
4027         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
4028         aliases.
4029         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
4030         flag to second_arg_count, handle 4 argument function type _COUNT
4031         aliases, handle second_arg_count on second argument rather than last.
4033 2017-04-10  Jeff Law  <law@redhat.com>
4035         PR tree-optimization/80374
4036         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
4037         record anything if we can not convert integer_zero_node to the
4038         desired type.
4040 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4042         PR target/80108
4043         * config/rs6000/rs6000.c (rs6000_option_override_internal):
4044         Enhance special handling given to the TARGET_P9_MINMAX option in
4045         relation to certain other options.
4047 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
4049         PR tree-optimization/80153
4050         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
4051         remove POINTER_PLUS_EXPR's base part directly, rather than through
4052         aff_tree.
4054 2017-04-10  Richard Biener  <rguenther@suse.de>
4055             Bin Cheng  <bin.cheng@arm.com>
4057         PR tree-optimization/80153
4058         * tree-affine.c (aff_combination_to_tree): Get base pointer from
4059         the first element of pointer type aff_tree.  Build result expr in
4060         aff_tree's type.
4061         (add_elt_to_tree): Convert to type unconditionally.  Remove other
4062         fold_convert calls.
4063         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
4064         (rewrite_use_nonlinear_expr): Check invariant using iv information.
4066 2017-04-10  Richard Biener  <rguenther@suse.de>
4068         * tree-ssa-structalias.c (find_func_aliases): Properly handle
4069         asm inputs.
4071 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
4073         PR rtl-optimization/70478
4074         * lra-constraints.c (curr_small_class_check): New.
4075         (update_and_check_small_class_inputs): New.
4076         (process_alt_operands): Update curr_small_class_check.  Disfavor
4077         alternative insn memory operands.  Check available regs for small
4078         class operands.
4080 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
4082         PR target/80057
4083         * config/mips/mips.opt (-mvirt): Update description.
4084         * doc/invoke.texi (-mvirt): Likewise.
4086 2017-04-10  Richard Biener  <rguenther@suse.de>
4088         PR middle-end/80362
4089         * fold-const.c (fold_binary_loc): Look at unstripped ops when
4090         looking for NEGATE_EXPR in -A / -B to A / B folding.
4092 2017-04-10  Martin Liska  <mliska@suse.cz>
4094         PR gcov-profile/80224
4095         * gcov.c (print_usage): Fix usage string.
4096         (get_gcov_intermediate_filename): Remove.
4097         (output_gcov_file): Use both for normal and intermediate format.
4098         (generate_results): Do not initialize special file for
4099         intermediate format.
4101 2017-04-10  Richard Biener  <rguenther@suse.de>
4103         PR tree-optimization/80304
4104         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
4105         for safelen.
4107 2017-04-10  Nathan Sidwell  <nathan@acm.org>
4109         PR target/79905
4110         * config/rs6000/rs6000.c (rs6000_vector_type): New.
4111         (rs6000_init_builtins): Use it.
4113 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4115         * config/arm/arm.md (<mrc>): Add mode to SET source.
4116         (<mrrc>): Likewise.
4118 2017-04-10  Richard Biener  <rguenther@suse.de>
4120         PR middle-end/80344
4121         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
4123 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
4125         PR target/80324
4126         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
4127         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
4128         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
4129         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
4130         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
4131         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
4132         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
4133         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
4134         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
4135         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
4136         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
4137         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
4138         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
4139         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
4140         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
4141         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
4142         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
4143         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
4144         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
4145         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
4146         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
4147         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
4148         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
4150 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4152         PR rtl-optimization/70478
4153         * lra-constraints.c: Reverse the last patch.
4155 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
4157         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
4158         Add comment for WCHAR_T.
4160 2017-04-08  Martin Liska  <mliska@suse.cz>
4162         Revert:
4163         2017-04-07  Martin Liska  <mliska@suse.cz>
4165         PR ipa/80212
4166         * ipa-split.c (split_function): Add function part to a same comdat
4167         group.
4169 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4171         PR target/80358
4172         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
4174 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
4176         * rs6000/rs6000.c (vec_load_pendulum): Rename...
4177         (vec_pairing): ...to this.
4178         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
4179         (rs6000_sched_init): Adjust for name change.
4180         (struct rs6000_sched_context): Likewise.
4181         (rs6000_init_sched_context): Likewise.
4182         (rs6000_set_sched_context): Likewise.
4184 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
4186         PR target/80322
4187         PR target/80323
4188         PR target/80325
4189         PR target/80326
4190         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
4191         intrinsics.
4192         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
4193         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
4194         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
4196 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
4198         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
4200 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
4202         PR rtl-optimization/70703
4203         * ira-color.c (update_conflict_hard_regno_costs): Use
4204         int64_t instead of HOST_WIDE_INT.
4206 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
4208         PR rtl-optimization/70478
4209         * lra-constraints.c (process_alt_operands): Disfavor alternative
4210         insn memory operands.
4212 2017-04-07  Jeff Law  <law@redhat.com>
4214         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
4215         CALL and NOTE_INSN_CALL_ARG_LOCATION.
4217 2017-04-07  Martin Liska  <mliska@suse.cz>
4219         PR target/79889
4220         * config/aarch64/aarch64.c (aarch64_process_target_attr):
4221         Show error message instead of an ICE.
4223 2017-04-07  Martin Liska  <mliska@suse.cz>
4225         PR ipa/80212
4226         * ipa-split.c (split_function): Add function part to a same comdat
4227         group.
4229 2017-04-07  Richard Biener  <rguenther@suse.de>
4231         PR middle-end/80341
4232         * tree.c (get_unwidened): Also handle ! for_type case for
4233         INTEGER_CSTs.
4234         * convert.c (do_narrow): Split out from ...
4235         (convert_to_integer_1): ... here.  Do not pass final truncation
4236         type to get_unwidened for TRUNC_DIV_EXPR.
4238 2017-04-07  Richard Biener  <rguenther@suse.de>
4240         * tree-affine.c (wide_int_ext_for_comb): Take type rather
4241         than aff_tree.
4242         (aff_combination_const): Adjust.
4243         (aff_combination_scale): Likewise.
4244         (aff_combination_add_elt): Likewise.
4245         (aff_combination_add_cst): Likewise.
4246         (aff_combination_convert): Likewise.
4247         (add_elt_to_tree): Likewise.  Remove unused argument.
4248         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
4250 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4252         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
4253         definition.
4254         * config/arm/arm.c (arm_default_short_enums): Use
4255         ARM_DEFAULT_SHORT_ENUMS.
4256         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
4258 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
4260         PR debug/80234
4261         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
4262         members with redundant out-of-class redeclaration.
4264 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
4266         PR target/80286
4267         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
4268         * config/i386/i386.md (*zero_extendsidi2):
4269         Add (?*x,*x) and (?*v,*v) alternatives.
4271 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
4273         PR target/79733
4274         * config/i386/i386.c (ix86_expand_builtin)
4275         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
4276         mode from insn data. Convert operands to insn operand mode.
4277         Copy operands that don't satisfy insn predicate to a register.
4279 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
4281         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
4282         Update comments.
4284 2017-04-06  Richard Biener  <rguenther@suse.de>
4286         PR tree-optimization/80334
4287         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
4288         preserve alignment of accesses.
4290 2017-04-06  Richard Biener  <rguenther@suse.de>
4292         PR tree-optimization/80262
4293         * tree-sra.c (build_ref_for_offset): Preserve address-space
4294         information.
4295         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
4296         Drop useless address-space information on MEM_REF offsets.
4298 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
4300         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
4302 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
4304         PR rtl-optimization/70703
4305         * ira-color.c (update_conflict_hard_regno_costs): Use
4306         HOST_WIDE_INT instead of long.
4308 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
4310         PR target/80298
4311         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
4312         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
4313         is not defined.
4314         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
4315         for x86_64 target.  Handle -m3dnowa option.
4317 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
4319         PR rtl-optimization/70703
4320         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
4321         (update_conflict_hard_regno_costs): Use long instead of unsigned
4322         arithmetic for cost calculation.
4324 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
4325             Bernd Edlinger  <bernd.edlinger@hotmail.de>
4327         PR sanitizer/80308
4328         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
4329         for big endian.
4331 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
4333         PR target/78002
4334         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
4335         ptr_mode with Pmode throughout.
4336         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
4337         into probe_stack_range and use DImode.
4339 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4341         PR target/79890
4342         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
4343         call_eh_return is true.
4345 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4347         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
4348         Initialize last_match_fntype_index.
4350 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
4352         PR target/80310
4353         * tree-nvr.c: Include internal-fn.h.
4354         (pass_return_slot::execute): Ignore internal calls without
4355         direct optab.
4357 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
4358             Richard Biener  <rguenther@suse.de>
4360         PR c++/80297
4361         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
4362         captures used multiple times, except for the last use.
4363         * generic-match-head.c: Include gimplify.h.
4365 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
4367         PR tree-optimization/79390
4368         * target.h (struct noce_if_info): Declare.
4369         * targhooks.h (default_noce_conversion_profitable_p): Declare.
4370         * target.def (noce_conversion_profitable_p): New target hook.
4371         * ifcvt.h (struct noce_if_info): New type, moved from ...
4372         * ifcvt.c (struct noce_if_info): ... here.
4373         (noce_conversion_profitable_p): Renamed to ...
4374         (default_noce_conversion_profitable_p): ... this.  No longer
4375         static nor inline.
4376         (noce_try_store_flag_constants, noce_try_addcc,
4377         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
4378         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
4379         instead of noce_conversion_profitable_p.
4380         * config/i386/i386.c: Include ifcvt.h.
4381         (ix86_option_override_internal): Don't override
4382         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
4383         (ix86_noce_conversion_profitable_p): New function.
4384         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
4385         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
4386         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
4387         * doc/tm.texi: Regenerated.
4389 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4391         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
4392         correction.
4394 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4396         PR target/80307
4397         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
4398         instructions for small multiply cores.
4400 2017-04-04  Jeff Law  <law@redhat.com>
4402         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
4403         added member.
4404         (mips_expand_vec_perm_const): Initialize elements in orig_perm
4405         that are not set by the loop over the elements.
4407 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
4409         PR target/80286
4410         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
4411         int mode, convert_modes it to mode as unsigned, otherwise use
4412         lowpart_subreg to mode rather than SImode.
4413         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
4414         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
4415         Use DImode instead of SImode for the shift count operand.
4416         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
4417         Likewise.
4419 2017-04-04  Richard Biener  <rguenther@suse.de>
4421         PR middle-end/80281
4422         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
4423         arithmetic done for the negate or the plus.  Simplify.
4424         (A - (-B) -> A + B): Likewise.
4425         * fold-const.c (split_tree): Make sure to not negate pointers.
4427 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
4429         PR rtl-optimization/60818
4430         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
4431         a compare of comparisons with the thing compared if this results
4432         in a different machine mode.
4434 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
4436         * alias.c (base_alias_check): Fix typo in comment.
4437         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
4438         * cgraphunit.c (symbol_table::compile): Likewise.
4439         * collect2.c (maybe_run_lto_and_relink): Likewise.
4440         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
4441         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
4442         * config/avr/avr.c (avr_map_op_t): Likewise.
4443         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
4444         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
4445         * config/epiphany/epiphany.md (movcc): Likewise.
4446         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
4447         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
4448         Likewise.
4449         * config/mips/mips.c (mips_save_restore_reg): Likewise.
4450         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
4451         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
4452         * config/sh/sh.c (sh_rtx_costs): Likewise.
4453         * fold-const.c (fold_truth_andor): Likewise.
4454         * genautomata.c (collapse_flag): Likewise.
4455         * gengtype.h (struct type::u::s): Likewise.
4456         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
4457         * input.c (FORMAT_AMOUNT): Likewise.
4458         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
4459         (known_aggs_to_agg_replacement_list): Likewise.
4460         * ipa-inline-analysis.c: Likewise.
4461         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
4462         * ipa-polymorphic-call.c
4463         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
4464         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
4465         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
4466         Likewise.
4467         * modulo-sched.c (apply_reg_moves): Likewise.
4468         * omp-expand.c (build_omp_regions_1): Likewise.
4469         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
4470         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
4471         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
4472         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
4473         * value-prof.c: Likewise.
4474         * var-tracking.c (val_reset): Likewise.
4476 2017-04-03  Richard Biener  <rguenther@suse.de>
4478         PR tree-optimization/80275
4479         * fold-const.c (split_address_to_core_and_offset): Handle
4480         POINTER_PLUS_EXPR.
4482 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
4484         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
4485         descriptors is at least equal to that of functions.
4487 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
4489         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
4491 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
4493         PR target/80250
4494         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
4495         (mov<IMOD4:mode>): New expander.
4496         (*mov<IMOD4:mode>_internal): New insn and split pattern.
4498 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
4500         PR rtl-optimization/79405
4501         * fwprop.c (propagations_left): New variable.
4502         (forward_propagate_into): Decrement it.
4503         (fwprop_init): Initialize it.
4504         (fw_prop): If the variable has reached zero, stop propagating.
4505         (fwprop_addr): Ditto.
4507 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
4509         PR debug/79255
4510         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
4511         a FUNCTION_DECL, pass it as decl instead of origin to
4512         process_scope_var.
4514 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
4516         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
4517         string.
4519 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
4521         PR target/80107
4522         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
4523         TARGET_VSX_SMALL_INTEGER.
4525 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4527         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
4528         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
4530 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
4532         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
4533         extraction from odd-numbered MSA register.
4535 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
4537         PR middle-end/80173
4538         * expmed.c (store_bit_field_1): Don't attempt to create
4539         a word subreg out of hard registers wider than word if they
4540         have HARD_REGNO_NREGS of 1 for their mode.
4542         PR middle-end/80163
4543         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
4544         conversions to integer types wider than word and pointer.
4546         PR debug/80025
4547         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
4548         (rtx_equal_for_cselib_p): Pass 0 to it.
4549         * cselib.c (cselib_hasher::equal): Likewise.
4550         (rtx_equal_for_cselib_1): Add depth argument.  If depth
4551         is 128, don't look up VALUE locs and punt.  Increment
4552         depth in recursive calls when walking VALUE locs.
4554 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4556         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
4557         (make_gcov_file_name): Use the canonical path name for generating
4558         the MD5 value.
4559         (read_line): Fix handling of files with ascii null bytes.
4561 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
4563         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
4564         to initialise a vector register instead
4565         of using a const_int.
4567 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
4569         PR translation/80189
4570         * gimplify.c (omp_default_clause): Use %qs instead of %s in
4571         diagnostic messages.
4573 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
4575         PR target/80246
4576         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
4577         (dfp_diex_<mode>): Update mode of operand 1.
4578         * doc/extend.texi (dxex, dxexq): Document change to return type.
4579         (diex, diexq): Document change to argument type.
4581 2017-03-30  Martin Jambor  <mjambor@suse.cz>
4583         PR ipa/77333
4584         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
4585         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
4586         it reflects the signature changes performed at the callee side.
4587         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
4588         to cgraph_build_function_type_skip_args.
4589         (build_function_decl_skip_args): Adjust call to the above function.
4591 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
4593         PR target/80206
4594         * config/i386/sse.md
4595         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
4596         register as dest whenever it is a MEM not rtx_equal_p to the
4597         corresponding dup operand, and when forcing into reg move the
4598         reg into the memory afterwards.
4599         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
4600         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
4601         for the force_reg mode.
4602         (avx512vl_vextractf128<mode>): Use register as dest either
4603         always when a MEM, or when it is a MEM not rtx_equal_p to the
4604         corresponding dup operand, or even not when it is a CONST_VECTOR
4605         depending on the mode and lo vs. hi.
4606         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
4607         parens.
4608         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
4609         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
4610         Likewise.  Require that operands[2] is even.
4611         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
4612         Remove extraneous parens.  Require that operands[2] is a multiple
4613         of 4.
4614         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
4615         operands[0] is a MEM if <mask_applied>, the predicates/constraints
4616         disallow memory then.
4618 2017-03-30  Richard Biener  <rguenther@suse.de>
4620         PR tree-optimization/77498
4621         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
4622         to non-constants over backedges.
4624 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
4626         PR rtl-optimization/80233
4627         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
4628         as last_combined_insn.  Do not test for BARRIER_P separately.
4630 2017-03-29  Andreas Schwab  <schwab@suse.de>
4632         PR ada/80146
4633         * calls.c (prepare_call_address): Convert funexp to Pmode before
4634         copying to temp reg.
4636 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4638         PR tree-optimization/80158
4639         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
4640         Handle possible future case of more than one alternate
4641         interpretation.
4642         (replace_rhs_if_not_dup): Likewise.
4643         (replace_one_candidate): Likewise.
4645 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
4647         PR rtl-optimization/80193
4648         * ira.c (ira): Do not check allocation for LRA.
4650 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
4652         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
4653         (nvptx_output_simt_exit): Declare.
4654         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
4655         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
4656         (init_softstack_frame): Move initialization of crtl->is_leaf to...
4657         (nvptx_declare_function_name): ...here.  Emit declaration of local
4658         memory space buffer for omp_simt_enter insn.
4659         (nvptx_output_unisimt_switch): New.
4660         (nvptx_output_softstack_switch): New.
4661         (nvptx_output_simt_enter): New.
4662         (nvptx_output_simt_exit): New.
4663         * config/nvptx/nvptx.h (struct machine_function): New fields
4664         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
4665         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
4666         (UNSPECV_SIMT_EXIT): Ditto.
4667         (omp_simt_enter_insn): New insn.
4668         (omp_simt_enter): New expansion.
4669         (omp_simt_exit): New insn.
4670         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
4672         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
4673         (expand_GOMP_SIMT_ENTER_ALLOC): New.
4674         (expand_GOMP_SIMT_EXIT): New.
4675         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
4676         (GOMP_SIMT_ENTER_ALLOC): Ditto.
4677         (GOMP_SIMT_EXIT): Ditto.
4678         * target-insns.def (omp_simt_enter): New insn.
4679         (omp_simt_exit): Ditto.
4680         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
4681         simt_dlist.
4682         (lower_rec_simd_input_clauses): Implement SIMT privatization.
4683         (lower_rec_input_clauses): Likewise.
4684         (lower_lastprivate_clauses): Handle SIMT privatization.
4686         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
4687         (ompdevlow_adjust_simt_enter): New.
4688         (find_simtpriv_var_op): New.
4689         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
4690         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
4692         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
4693         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
4694         (copy_decl_for_dup_finish): Ditto.
4696         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
4698 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
4700         PR target/53383
4701         * config/i386/i386.c (ix86_option_override_internal): Always
4702         allow -mpreferred-stack-boundary=3 for 64-bit targets.
4704 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
4706         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
4708 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
4710         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
4711         mark new edge's irreducible flag accordign to it.
4712         (vect_do_peeling): Check loop preheader edge's irreducible flag
4713         and pass it to function slpeel_add_loop_guard.
4715 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
4717         PR tree-optimization/80218
4718         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
4719         Update block frequencies and counts.
4721 2017-03-28  Richard Biener  <rguenther@suse.de>
4723         PR tree-optimization/78644
4724         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
4725         of a simplification result we may not use it at all.
4727 2017-03-28  Richard Biener  <rguenther@suse.de>
4729         PR ipa/80205
4730         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
4731         without arguments, generate default definition of a SSA name.
4733 2017-03-28  Richard Biener  <rguenther@suse.de>
4735         PR middle-end/80222
4736         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
4737         TYPE_REF_CAN_ALIAS_ALL references.
4738         * fold-const.c (fold_indirect_ref_1): Likewise.
4740 2017-03-28  Martin Liska  <mliska@suse.cz>
4742         PR ipa/80104
4743         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
4744         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
4746 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
4747             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
4749         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
4750         (EXTRA_SPECS): Define.
4751         (SUBTARGET_EXTRA_SPECS): Likewise.
4752         (SUBTARGET_CPP_SPEC): Likewise.
4753         * config/arc/elf.h (EXTRA_SPECS): Renamed to
4754         SUBTARGET_EXTRA_SPECS.
4755         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
4757 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
4759         * config/arc/simdext.md (vst64_insn): Update pattern.
4760         (vld32wh_insn): Likewise.
4761         (vld32wl_insn): Likewise.
4762         (vld64_insn): Likewise.
4763         (vld32_insn): Likewise.
4765 2017-03-28  Marek Polacek  <polacek@redhat.com>
4767         PR sanitizer/80067
4768         * fold-const.c (fold_comparison): Use protected_set_expr_location
4769         instead of SET_EXPR_LOCATION.
4771 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
4773         * tree.c (add_expr): Avoid name lookup warning.
4775 2017-03-27  Jeff Law  <law@redhat.com>
4777         PR tree-optimization/80216
4778         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
4779         function name.  Limit recursion depth.
4780         (record_temporary_equivalences): Corresponding changes.
4782 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
4784         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
4785         covered first.
4787 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
4789         PR target/80102
4790         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
4791         notes.
4792         * cfgcleanup.c (reg_note_cfa_p): New array.
4793         (insns_have_identical_cfa_notes): New function.
4794         (old_insns_match_p): Don't cross-jump in between /f
4795         and non-/f instructions.  If both i1 and i2 are frame related,
4796         verify all CFA notes, their order and content.
4798 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
4800         PR target/78543
4801         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
4802         HImode and SImode with zero extend to DImode to one insn.
4803         (bswap<mode>2_extenddi): Likewise.
4804         (bswapsi2_extenddi): Likewise.
4805         (bswaphi2_extendsi): Likewise.
4806         (bswaphi2): Combine bswap HImode and SImode into one insn.
4807         Separate memory insns from swapping register.
4808         (bswapsi2): Likewise.
4809         (bswap<mode>2): Likewise.
4810         (bswaphi2_internal): Delete, no longer used.
4811         (bswapsi2_internal): Likewise.
4812         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
4813         store, and gpr<-gpr swap insns.
4814         (bswap<mode>2_store): Likewise.
4815         (bswaphi2_reg): Register only splitter, combine with the splitter.
4816         (bswaphi2 splitter): Likewise.
4817         (bswapsi2_reg): Likewise.
4818         (bswapsi2 splitter): Likewise.
4819         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
4820         the insns into load, store, and register/register insns.
4821         (bswapdi2_ldbrx): Likewise.
4822         (bswapdi2_load): Likewise.
4823         (bswapdi2_store): Likewise.
4824         (bswapdi2_reg): Likewise.
4826 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
4828         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
4829         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
4831 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4833         PR target/80103
4834         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
4835         add comments.
4836         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4837         special handling for target option conflicts between dform
4838         options (-mpower9-dform, -mpower9-dform-vector,
4839         -mpower9-dform-scalar) and -mno-direct-move.
4841 2017-03-27  Richard Biener  <rguenther@suse.de>
4843         PR tree-optimization/80181
4844         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
4846 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
4848         * config/arc/predicates.md (move_double_src_operand): Replace the
4849         call to move_double_src_operand with a call to address_operand.
4851 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
4853         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
4854         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
4855         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
4857 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
4859         * config/arc/predicates.md (long_immediate_loadstore_operand):
4860         Consider scaled addresses cases.
4862 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
4864         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
4865         restored when in interrupt.
4866         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
4867         doesn't have delay slot.
4869 2017-03-27  Richard Biener  <rguenther@suse.de>
4871         PR ipa/79776
4872         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
4873         inlined thunk clones.
4875 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
4877         PR sanitizer/80168
4878         * asan.c (instrument_derefs): Copy over last operand from
4879         original COMPONENT_REF to the new COMPONENT_REF with
4880         DECL_BIT_FIELD_REPRESENTATIVE.
4881         * ubsan.c (instrument_object_size): Likewise.
4883 2017-03-27  Richard Biener  <rguenther@suse.de>
4885         PR tree-optimization/80170
4886         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
4887         sure DR/SCEV didnt fold in constants we do not see when looking
4888         at the reference base alignment.
4890 2017-03-27  Richard Biener  <rguenther@suse.de>
4892         PR middle-end/80171
4893         * gimple-fold.c (fold_ctor_reference): Properly guard against
4894         NULL return value from canonicalize_constructor_val.
4896 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
4898         PR target/80180
4899         * config/i386/i386.c (ix86_expand_builtin)
4900         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
4901         flags reg setting and flags reg using instructions.
4902         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
4903         clobbering instructions to zero extend op2.
4905 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
4907         * doc/install.texi (Configuration) <--with-aix-soname>:
4908         Update link to AIX ld.
4910 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
4912         PR rtl-optimization/80160
4913         PR rtl-optimization/80159
4914         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
4915         reg_alternate_class into account.
4917 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
4919         PR target/80148
4920         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
4921         to consider in curr_insn_transform.
4923 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
4925         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
4926         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
4927         and emit_mode_inner.
4929 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4931         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
4932         argument to the overloaded builtin variants.  Use the new flag to
4933         deprecate certain builtin variants.
4934         * config/s390/s390-builtin-types.def: Add new builtin types.
4935         * config/s390/s390-builtins.h: Support new flags field for
4936         overloaded builtins.
4937         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
4938         (s390_macro_to_expand): Enable vector float data type.
4939         (s390_cpu_cpp_builtins_internal): Indicate support of the new
4940         builtins by incrementing the __VEC__ version number.
4941         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
4942         vec_xst.
4943         (s390_resolve_overloaded_builtin): Emit error messages depending
4944         on the builtin flags.
4945         * config/s390/s390.c (s390_expand_builtin): Support additional
4946         flags argument.  Change error message to match the messages
4947         emitted in s390-c.c.
4948         * config/s390/s390.md: New UNSPEC_* constants.
4949         (op_type): Add new instruction types.
4950         * config/s390/vecintrin.h: Add new builtins and test data class
4951         constants.
4952         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
4953         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
4954         (VEC_INEXACT, VEC_NOINEXACT): New constants.
4955         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
4956         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
4957         ("vec_mergel<mode>"): V_HW -> VEC_HW.
4959         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
4960         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
4961         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
4962         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
4964         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
4965         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
4966         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
4967         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
4969         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
4970         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
4971         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
4972         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
4973         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
4974         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
4975         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
4977         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
4978         ("vec_scatter_element<V_HW_4:mode>_DI")
4979         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
4980         ("vec_fpint<mode>", "vflls")
4981         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
4982         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
4983         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
4984         ("*vec_cmphe<mode>_cc"): ... these.
4986         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
4987         mode constant instead of magic value.
4989 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4991         * config/s390/s390.c (s390_expand_vec_compare): Support other
4992         vector floating point modes than just V2DF.
4993         (s390_expand_vcond): Likewise.
4994         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
4995         (s390_cannot_change_mode_class): Prevent mode changes between TF
4996         and V1TF in vector registers.
4997         * config/s390/s390.md (DF, SF): New mode attributes.
4998         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
4999         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
5000         SFmode support for VRs.
5001         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
5002         vector fp modes.
5003         (VFT, VF_HW): New mode iterators.
5004         (vw, sdx): New mode attributes.
5005         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
5006         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
5007         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
5008         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
5009         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
5010         also the new vector floating point modes.  Renaming to ...
5012         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
5013         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
5014         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
5015         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
5016         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
5017         ("vec_unordered<mode>"): ... these.
5019         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
5020         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
5021         ("*vec_extendv2df"): New insn definitions.
5023 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5025         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
5026         ("mulditi3_2", "*muldi3_sign"): New patterns.
5027         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
5028         rename the pattern definition.
5030 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5032         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
5033         expander.
5034         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
5036 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5038         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
5039         instruction if possible.
5040         * config/s390/vector.md (vec_halfnumelts): New mode
5041         attribute.
5042         ("*vec_vllezlf<mode>"): New pattern.
5044 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5046         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
5047         ("popcountv4si2", "popcountv2di2"): Rename to ...
5048         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
5049         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
5050         condition.
5051         ("popcount<mode>2_vxe"): New pattern.
5053 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5055         * common/config/s390/s390-common.c (processor_flags_table): Add
5056         arch12.
5057         * config.gcc: Add arch12.
5058         * config/s390/driver-native.c (s390_host_detect_local_cpu):
5059         Default to arch12 for unknown CPU model numbers.
5060         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
5061         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
5062         PROCESSOR_max sanity check.
5063         * config/s390/s390-opts.h (enum processor_type): Add
5064         PROCESSOR_ARCH12.
5065         * config/s390/s390.c (processor_table): Add arch12.
5066         (s390_expand_builtin): Add check for B_VXE flag.
5067         (s390_issue_rate): Add PROCESSOR_ARCH12.
5068         (s390_get_sched_attrmask): Likewise.
5069         (s390_get_unit_mask): Likewise.
5070         (s390_sched_score): Enable z13 scheduling for arch12.
5071         (s390_sched_reorder): Likewise.
5072         (s390_sched_variable_issue): Likewise.
5073         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
5074         PF_VXE.
5075         (s390_tune_attr): Use z13 scheduling also for arch12.
5076         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
5077         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
5078         (TARGET_VXE_P): New macros.
5079         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
5080         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
5081         * config/s390/s390.opt: Add arch12 as processor_type.
5083 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5085         * config/s390/s390.md
5086         ("fixuns_truncdddi2", "fixuns_trunctddi2")
5087         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
5088         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
5090         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
5091         Rename expanders to ...
5093         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
5094         ("fixuns_truncdddi2_emu"): ... these.
5096         ("fixuns_trunc<mode>si2_emu"): New expander.
5098         ("*fixuns_truncdfdi2_z13"): Rename to ...
5099         ("*fixuns_truncdfdi2_vx"): ... this.
5101 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5103         * config/s390/2964.md: Remove the single element vector compare
5104         instructions which are no longer used.
5105         * config/s390/s390.c (s390_select_ccmode): Remove handling of
5106         vector CCmodes.
5107         (s390_canonicalize_comparison): Remove handling of DFmode
5108         compares.
5109         (s390_expand_vec_compare_scalar): Remove function.
5110         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
5111         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
5112         pattern.
5113         ("*cmp<mode>_ccs"): Add wfcdb instruction.
5115 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5117         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
5118         FP zero.
5119         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
5120         will anyway by matched by mov<mode>_64dfp.
5122 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5124         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
5125         vlef/vstef.  Add missing operand to vleif.
5127 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5129         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
5130         pair for all vector types with 64 bit elements.
5131         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
5132         * config/s390/vector.md (V_HW_64): ... here.
5133         (V_128_NOSINGLE): New mode iterator.
5134         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
5135         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
5136         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
5137         ("*vec_load_pairv2di"): Change to ...
5138         ("*vec_load_pair<mode>"): ... this one.
5140 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5142         * config/s390/constraints.md: Add comments.
5143         (jKK): Reject element sizes > 8 bytes.
5144         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
5145         s_operands.
5146         * config/s390/s390.md: Add the s_operand checks formerly in
5147         s390_split_ok_p to various splitters where they are still
5148         required.
5149         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
5150         for 128 bit vectors.  Plus two splitters.
5152 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5154         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
5155         the file.
5157 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5159         PR target/79893
5160         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
5161         error if the boundary argument is not constant.
5163 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
5165         PR rtl-optimization/80112
5166         * loop-doloop.c (doloop_condition_get): Don't check condition
5167         if cmp isn't SET with IF_THEN_ELSE src.
5169 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5171         PR tree-optimization/80158
5172         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
5173         replacing a candidate statement, also replace it for the
5174         candidate's alternate interpretation.
5175         (replace_rhs_if_not_dup): Likewise.
5176         (replace_one_candidate): Likewise.
5178 2017-03-24  Richard Biener  <rguenther@suse.de>
5180         PR tree-optimization/80167
5181         * graphite-isl-ast-to-gimple.c
5182         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
5183         properly.
5184         (translate_isl_ast_to_gimple::get_rename): Likewise.
5186 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5188         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
5189         handling of certain combinations of target options, including the
5190         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
5191         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
5193 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5195         PR target/71436
5196         * config/arm/arm.md (*load_multiple): Add reload_completed to
5197         matching condition.
5199 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5200             Richard Biener  <rguenth@suse.de>
5202         PR tree-optimization/79908
5203         PR tree-optimization/80136
5204         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
5205         been cast away, gimplify_and_add suffices.
5207 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
5209         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
5211 2017-03-23  Richard Biener  <rguenther@suse.de>
5213         PR tree-optimization/80032
5214         * gimplify.c (gimple_push_cleanup): Forced unconditional
5215         cleanups still have to go to the conditional_cleanups
5216         sequence.
5218 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
5220         PR tree-optimization/80072
5221         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
5222         to unsigned int.
5223         (next_operand_entry_id): Change type to unsigned int.
5224         (sort_by_operand_rank): Make sure to return the right return value
5225         even if unsigned fields are bigger than INT_MAX.
5226         (struct oecount): Change cnt and id type to unsigned int.
5227         (oecount_hasher::equal): Formatting fix.
5228         (oecount_cmp): Make sure to return the right return value
5229         even if unsigned fields are bigger than INT_MAX.
5230         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
5232         PR c++/80129
5233         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
5234         TREE_READONLY on result if writing it more than once.
5236         PR sanitizer/80110
5237         * doc/invoke.texi (-fsanitize=thread): Document that with
5238         -fnon-call-exceptions atomics are not able to throw
5239         exceptions.
5241         PR sanitizer/80110
5242         * tsan.c: Include tree-eh.h.
5243         (instrument_builtin_call): Call maybe_clean_eh_stmt or
5244         maybe_clean_or_replace_eh_stmt where needed.
5245         (instrument_memory_accesses): Add cfg_changed argument.
5246         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
5247         if it returned true.
5248         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
5250         PR rtl-optimization/63191
5251         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
5252         wrapper function, moved the whole old content into ...
5253         (ix86_delegitimize_address_1): ... this.  New inline function.
5254         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
5255         true as last argument instead of ix86_delegitimize_address.
5257 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
5259         * config/aarch64/aarch64.c (generic_branch_cost): Copy
5260         cortexa57_branch_cost.
5262 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
5264         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
5266 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5268         PR target/80123
5269         * doc/md.texi (Constraints): Document wA constraint.
5270         * config/rs6000/constraints.md (wA): New.
5271         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
5272         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
5273         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
5274         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
5276 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
5278         PR c++/80029
5279         * gimplify.c (is_oacc_declared): New function.
5280         (oacc_default_clause): Use it to set default flags for acc declared
5281         variables inside parallel regions.
5282         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
5283         declared variables.
5284         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
5285         declare attribute to any decl as necessary.
5287 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5289         PR target/80082
5290         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
5291         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
5292         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
5293         (arm_arch_lpae): This.
5294         * config/arm/arm.c (arm_arch7ve): Rename into ...
5295         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
5296         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
5297         arm_arch_lpae.
5299 2017-03-22  Martin Liska  <mliska@suse.cz>
5301         PR target/79906
5302         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
5303         error message instead of an ICE.
5305 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5307         * doc/extend.texi (6.11 Additional Floating Types): Revise.
5309 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5311         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
5312         comments.
5313         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5314         comments.
5316 2017-03-21  Martin Sebor  <msebor@redhat.com>
5318         * doc/extend.texi: Use "cannot" instead of "can't."
5319         * doc/hostconfig.texi: Same.
5320         * doc/install.texi: Same.
5321         * doc/invoke.texi: Same.
5322         * doc/loop.texi: Same.
5323         * doc/md.texi: Same.
5324         * doc/objc.texi: Same.
5325         * doc/rtl.texi: Same.
5326         * doc/tm.texi: Same.
5327         * doc/tm.texi.in: Same.
5328         * doc/trouble.texi: Same.
5330 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
5332         PR debug/63238
5333         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
5334         (collect_checksum_attributes): Set it.
5335         (die_checksum_ordered): Use it.
5337 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5339         PR tree-optimization/79908
5340         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
5341         change: For a VA_ARG whose LHS has been cast away, use
5342         force_gimple_operand to construct the side effects.
5344 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
5346         PR translation/80001
5347         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
5348         more amenable to translation.
5349         (oacc_loop_auto_partitions): Likewise.
5351 2017-03-21  Marek Polacek  <polacek@redhat.com>
5352             Martin Sebor  <msebor@redhat.com>
5354         PR tree-optimization/80109
5355         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
5356         on INTEGRAL_TYPE_P.
5358 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
5359             Segher Boessenkool  <segher@kernel.crashing.org>
5361         PR target/80125
5362         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
5363         check reg_used_between_p between insn and one of succ or succ2
5364         depending on if succ is artificial insn not inserted into insn
5365         stream.
5367 2017-03-21  Martin Liska  <mliska@suse.cz>
5369         PR gcov-profile/80081
5370         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
5371         * doc/gcc.texi: Include gcov-dump stuff.
5372         * doc/gcov-dump.texi: New file.
5374 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
5376         PR rtl-optimization/79150
5377         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
5378         conditional jump, if the jump is the last insn of the loop.
5380 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5381             Richard Biener  <rguenth@suse.de>
5383         PR tree-optimization/79908
5384         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
5385         been cast away, use force_gimple_operand to construct the side
5386         effects.
5388 2017-03-21  Martin Liska  <mliska@suse.cz>
5390         PR libfortran/79956
5391         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
5392         to NULL.
5394 2017-03-21  Brad Spengler <spender@grsecurity.net>
5396         PR plugins/80094
5397         * plugin.c (htab_hash_plugin): New function.
5398         (add_new_plugin): Use it and adjust.
5399         (parse_plugin_arg_opt): Adjust.
5400         (init_one_plugin): Likewise.
5402 2017-03-21  Richard Biener  <rguenther@suse.de>
5404         PR tree-optimization/80032
5405         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
5406         if set force the cleanup to happen unconditionally.
5407         (gimplify_target_expr): Push inserted clobbers with force_uncond
5408         to avoid them being removed by control-dependent DCE.
5410 2017-03-21  Richard Biener  <rguenther@suse.de>
5412         PR tree-optimization/80122
5413         * tree-inline.c (copy_bb): Do not expans va-arg packs or
5414         va_arg_pack_len when the inlined call stmt requires pack
5415         expansion itself.
5416         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
5418 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
5420         PR sanitizer/78158
5421         * tsan.c (instrument_builtin_call): If the memory model argument
5422         is not a constant, assume it is valid.
5424         PR c/67338
5425         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
5426         avoid UB.
5428 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
5430         PR rtl-optimization/79910
5431         * combine.c (can_combine_p): Do not allow combining an I0 or I1
5432         if its dest is used by an insn before I2 (other than the combined
5433         insns themselves, which are properly handled already).
5435 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
5437         Revert:
5438         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
5440         * combine.c (record_used_regs): New static function.
5441         (try_combine): Handle situations where there is an additional
5442         instruction between I2 and I3 which needs to have a LOG_LINK
5443         updated.
5445         Revert:
5446         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
5448         * combine.c (try_combine): Delete redundant i1 test.  Call
5449         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
5451 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5453         PR target/80083
5454         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
5455         alternatives 13/14.
5457 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5459         PR tree-optimization/80054
5460         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
5461         the optimization if a PHI or any of its arguments is not dominated
5462         by the candidate's basis.  Use gphi* rather than gimple* as
5463         appropriate.
5464         (replace_profitable_candidates): Clean up a gimple* variable that
5465         should be a gphi* variable.
5467 2017-03-20  Martin Sebor  <msebor@redhat.com>
5469         PR c++/52477
5470         * doc/extend.texi (attribute constructor): Document present limitation.
5472 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5474         PR target/79963
5475         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
5476         __POWER9_VECTOR__ #ifdef control, change template definition to
5477         use Power9-specific built-in function.
5478         (vec_any_eq): Likewise.
5479         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
5480         to control outcomes from this test.
5481         (vector_ae_<mode>p): For VEC_F modes, likewise.
5483 2017-03-20  Ian Lance Taylor  <iant@google.com>
5485         * config/i386/i386.c (ix86_function_regparm): Save an extra
5486         register for -fsplit-stack with DECL_STATIC_CHAIN.
5488 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
5490         PR target/79912
5491         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
5492         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
5494 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
5496         * config/riscv/riscv.c (riscv_print_operand): Use "fence
5497         iorw,ow".
5498         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
5499         iorw,iorw".
5501 2017-03-20  Marek Polacek  <polacek@redhat.com>
5503         PR sanitizer/80063
5504         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
5506 2017-03-20  Richard Biener  <rguenther@suse.de>
5508         PR tree-optimization/80113
5509         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
5510         allocate extra SSA name for PHI def.
5511         (add_close_phis_to_outer_loops): Likewise.
5512         (add_close_phis_to_merge_points): Likewise.
5513         (copy_loop_close_phi_args): Likewise.
5514         (copy_cond_phi_nodes): Likewise.
5516 2017-03-20  Martin Liska  <mliska@suse.cz>
5518         PR middle-end/79753
5519         * tree-chkp.c (chkp_build_returned_bound): Do not build
5520         returned bounds for a LHS that's not a BOUNDED_P type.
5522 2017-03-20  Martin Liska  <mliska@suse.cz>
5524         PR target/79769
5525         PR target/79770
5526         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
5527         COMPLEX_CST and VECTOR_CST.
5529 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5531         PR target/78857
5532         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
5533         target operand.  A new splitter adds the clobber statement in case
5534         the target operand is dead anyway.
5536 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
5538         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
5539         to age-old versions of binutils and glibc.
5541 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
5543         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
5545 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
5547         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
5549 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
5551         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
5552         requirement for binutils 2.13.
5554 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
5556         * combine.c (try_combine): Delete redundant i1 test.  Call
5557         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
5559 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
5561         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
5562         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
5563         contents.
5564         <riscv64-*-elf>: Re-arrange section
5565         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
5566         <riscv32-*-linux>: Likewise.
5567         <riscv64-*-elf>: Likewise
5568         <riscv64-*-linux>: Likewise.
5570 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
5572         PR target/80052
5573         * aarch64.opt(verbose-cost-dump): Fix typo.
5575 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
5577         PR target/79951
5578         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
5579         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
5581 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
5583         * reload.c (find_reloads): When reloading a nonoffsettable address,
5584         use RELOAD_OTHER for it and its address reloads.
5586         PR rtl-optimization/79910
5587         * combine.c (record_used_regs): New static function.
5588         (try_combine): Handle situations where there is an additional
5589         instruction between I2 and I3 which needs to have a LOG_LINK
5590         updated.
5592 2017-03-17  Jeff Law  <law@redhat.com>
5594         PR tree-optimization/71437
5595         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
5596         conditional in the hash table first.
5597         (vrp_dom_walker::before_dom_children): Extract condition from
5598         ASSERT_EXPR.  Record condition, its inverion and any implied
5599         conditions as well.
5601 2017-03-17  Marek Polacek  <polacek@redhat.com>
5602             Markus Trippelsdorf  <markus@trippelsdorf.de>
5604         PR tree-optimization/80079
5605         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
5606         m_stores_head.
5608 2017-03-17  Richard Biener  <rguenther@suse.de>
5610         PR middle-end/80075
5611         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
5612         Properly verify the LHS before the RHS possibly claims to be
5613         handled.
5614         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
5615         do not throw.
5617 2017-03-17  Martin Jambor  <mjambor@suse.cz>
5619         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
5620         (List of -O2 options): Likewise.
5621         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
5622         (-fipa-vrp) New.
5624 2017-03-17  Tom de Vries  <tom@codesourcery.com>
5626         * gcov-dump.c (print_usage): Print bug_report_url.
5628 2017-03-17  Richard Biener  <rguenther@suse.de>
5630         PR middle-end/80050
5631         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
5632         (parser::peek): Likewise.
5634 2017-03-17  Richard Biener  <rguenther@suse.de>
5636         PR tree-optimization/80048
5637         * sese.c (free_sese_info): Properly release rename_map and
5638         copied_bb_map elements.
5640 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
5642         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
5643         Add linked-list forward and backlinks.  Insert on
5644         construction, remove on destruction.
5645         (class pass_store_merging): Add m_stores_head field.
5646         (pass_store_merging::terminate_and_process_all_chains):
5647         Iterate over m_stores_head list.
5648         (pass_store_merging::terminate_all_aliasing_chains):
5649         Likewise.
5650         (pass_store_merging::execute): Check for debug stmts first.
5651         Push new chains onto the m_stores_head stack.
5653 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
5655         PR target/71294
5656         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
5657         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
5658         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
5660 2017-03-16  Jeff Law  <law@redhat.com>
5662         PR tree-optimization/71437
5663         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
5664         member function.  Implementation moved into after_dom_children
5665         member function and into the threader's thread_outgoing_edges
5666         function.
5667         (dom_opt_dom_walker::after_dom_children): Simplify by moving
5668         some code into new thread_outgoing_edges.
5669         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
5670         definition.  Simplify marker handling (do it here).   Assume we always
5671         have the available expression and the const/copies tables.
5672         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
5673         and tree-vrp.c
5674         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
5675         * tree-vrp.c (equiv_stack): No longer file scoped.
5676         (vrp_dom_walker): New class.
5677         (vrp_dom_walker::before_dom_children): New member function.
5678         (vrp_dom_walker::after_dom_children): Likewise.
5679         (identify_jump_threads):  Setup domwalker.  Use it rather than
5680         walking edges in a random order by hand.  Simplify setup/finalization.
5681         (finalize_jump_threads): Remove.
5682         (vrp_finalize): Do not call identify_jump_threads here.
5683         (execute_vrp): Do it here instead and call thread_through_all_blocks
5684         here too.
5686         PR tree-optimization/71437
5687         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
5688         callers changed.
5689         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
5690         callers changed.
5691         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
5692         (dom_opt_dom_walker::thread_across_edge): Remove
5693         handle_dominating_asserts argument.  All callers changed.
5694         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
5695         changes.  Remove calls to lhs_of_dominating_assert.  Other
5696         uses of handle_dominating_asserts turn into unconditional code
5697         (simplify_control_stmt_condition_1): Likewise.
5698         (simplify_control_stmt_condition): Likewise.
5699         (thread_through_normal_block, thread_across_edge): Likewise.
5700         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
5701         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
5702         object if it is not an SSA_NAME.
5703         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
5704         before calling into the VRP specific simplifiers.
5705         (identify_jump_threads): Remove handle_dominating_asserts
5706         argument.
5708 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
5710         PR fortran/79886
5711         * tree-diagnostic.c (default_tree_printer): No longer static.
5712         * tree-diagnostic.h (default_tree_printer): New prototype.
5714 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
5716         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
5717         Change ins into fmov.
5719 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5721         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
5722         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
5723         Use h_con constraint for operand 1.
5724         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
5725         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
5727 2017-03-15  Jeff Law  <law@redhat.com>
5729         PR tree-optimization/71437
5730         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
5731         (record_temporary_equivalences): Use it.
5733         PR tree-optimization/71437
5734         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
5735         tree-ssa-scopedtables.
5736         (lookup_avail_expr, build_and_record_new_cond): Likewise.
5737         (record_conditions, record_cond, vuse_eq): Likewise.
5738         (record_edge_info): Adjust to API tweak of record_conditions.
5739         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
5740         (record_temporary_equivalences, optimize_stmt): Likewise.
5741         (eliminate_redundant_computations): Likewise.
5742         (record_equivalences_from_stmt): Likewise.
5743         * tree-ssa-scopedtables.c: Include options.h and params.h.
5744         (vuse_eq): New function, moved from tree-ssa-dom.c
5745         (build_and_record_new_cond): Likewise.
5746         (record_conditions): Likewise.  Accept vector of conditions rather
5747         than edge_equivalence structure for first argument.
5748         for the first argument.
5749         (avail_exprs_stack::lookup_avail_expr): New member function, moved
5750         from tree-ssa-dom.c.
5751         (avail_exprs_stack::record_cond): Likewise.
5752         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
5753         from tree-ssa-dom.c.
5754         (avail_exprs_stack): Add new member functions lookup_avail_expr
5755         and record_cond.
5756         (record_conditions): Declare.
5758 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
5760         PR target/80017
5761         * lra-constraints.c (process_alt_operands): Increase reject for
5762         reloading an input/output operand.
5764 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
5766         PR target/79038
5767         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
5768         insns to convert from signed/unsigned char/short to IEEE 128-bit
5769         floating point.
5770         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
5772 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
5774         PR target/80019
5775         * config/i386/i386.c (ix86_vector_duplicate_value): Create
5776         subreg of inner mode for values already in registers.
5778 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
5780         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
5781         iteration reg is used after the loop.
5783 2017-03-14  Martin Sebor  <msebor@redhat.com>
5785         PR tree-optimization/79800
5786         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
5787         precision in negative-positive range.
5788         (format_floating): Call non-const overload with adjusted precision.
5790 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5792         PR target/79947
5793         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
5794         -mpowerpc-gfxopt.
5796 2017-03-14  Martin Sebor  <msebor@redhat.com>
5798         PR middle-end/80020
5799         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
5800         * builtins.def (aligned_alloc): Use it.
5802         PR c/79936
5803         * Makefile.in (GTFILES): Add calls.c.
5804         * calls.c: Include "gt-calls.h".
5806 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
5808         PR rtl-optimization/79728
5809         * regs.h (struct target_regs): New field
5810         x_contains_allocatable_regs_of_mode.
5811         (contains_allocatable_regs_of_mode): New macro.
5812         * reginfo.c (init_reg_sets_1): Initialize it, and change
5813         contains_reg_of_mode so it includes global regs as well.
5814         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
5815         rather than contains_regs_of_mode.
5817 2017-03-14  Martin Liska  <mliska@suse.cz>
5819         * doc/invoke.texi: Document options that can't be combined with
5820         -fcheck-pointer-bounds.
5822 2017-03-14  Martin Liska  <mliska@suse.cz>
5824         PR middle-end/79831
5825         * doc/invoke.texi (-Wchkp): Document the option.
5827 2017-03-14  Martin Liska  <mliska@suse.cz>
5829         * Makefile.in: Install gcov-dump.
5831 2017-03-14  Martin Liska  <mliska@suse.cz>
5833         * multiple_target.c (expand_target_clones): Bail out for
5834         an invalid attribute.
5836 2017-03-14  Richard Biener  <rguenther@suse.de>
5838         * alias.c (struct alias_set_entry): Pack properly.
5839         * cfgloop.h (struct loop): Likewise.
5840         * cse.c (struct set): Likewise.
5841         * ipa-utils.c (struct searchc_env): Likewise.
5842         * loop-invariant.c (struct invariant): Likewise.
5843         * lra-remat.c (struct cand): Likewise.
5844         * recog.c (struct change_t): Likewise.
5845         * rtl.h (struct address_info): Likewise.
5846         * symbol-summary.h (function_summary): Likewise.
5847         * tree-loop-distribution.c (struct partition): Likewise.
5848         * tree-object-size.c (struct object_size_info): Likewise.
5849         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
5850         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
5851         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
5852         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
5853         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
5854         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
5855         (struct _stmt_vec_info): Likewise.
5857 2017-03-14  Martin Liska  <mliska@suse.cz>
5859         PR target/79892
5860         * multiple_target.c (create_dispatcher_calls): Check that
5861         a target can create a function dispatcher.
5863 2017-03-14  Martin Liska  <mliska@suse.cz>
5865         PR lto/66295
5866         * multiple_target.c (expand_target_clones): Drop local.local
5867         flag for default implementation.
5869 2017-03-14  Richard Biener  <rguenther@suse.de>
5871         PR tree-optimization/80030
5872         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
5874 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
5876         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
5877         gcc_fallthrough() instead of __attribute__((fallthrough));
5879 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
5881         * doc/gcc.texi: Remove "up" link to (DIR).
5882         * doc/gccint.texi: Ditto.
5884 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
5886         * doc/install.texi (Specific) <avr>: Remove reference to
5887         binutils 2.13.
5889 2017-03-13  Jeff Law  <law@redhat.com>
5891         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
5892         attribute rather than comments.
5894         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
5895         match_scratch operand is highest.
5897 2017-03-13  Martin Liska  <mliska@suse.cz>
5899         PR middle-end/78339
5900         * ipa-pure-const.c (warn_function_noreturn): If the declarations
5901         is a CHKP clone, use original declaration.
5903 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
5905         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
5906         (arc_conditional_register_usage): Use a different allocation order
5907         when optimizing for size.
5908         * common/config/arc/arc-common.c (arc_option_optimization_table):
5909         Section anchors default on when optimizing for size.
5911 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
5913         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
5915 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
5917         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
5918         * config/arc/arc.md (cpu_facility): Add cd variant.
5919         (*movqi_insn): Add code density variant.
5920         (*movhi_insn): Likewise.
5921         (*movqi_insn): Likewise.
5922         (*addsi3_mixed): Likewise.
5923         (subsi3_insn): Likewise.
5925 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
5927         * config/arc/arc.md (movsi_cond_exec): Update constraint.
5929 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
5931         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
5932         expressions with MINUS and UNARY ops.
5934 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5936         PR target/79911
5937         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
5938         Rename to...
5939         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
5940         between vec_select and vector argument.
5941         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
5942         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
5943         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
5944         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
5945         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
5946         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
5948 2017-03-13  Richard Biener  <rguenther@suse.de>
5950         PR other/79991
5951         * params.def (vect-max-peeling-for-alignment): Fix typo.
5953 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
5955         * doc/install.texi (Specific) <mips-*-*>: Remove description of
5956         issue that only occurred with binutils below 2.18.
5958 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
5960         * doc/install.texi (Specific) <cris-axis-elf>: No longer
5961         refer to binutils 2.11/2.12 minimum.
5963 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
5965         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
5966         ftp.kernel.org and simplify binutils requirement.
5968 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
5970         * doc/invoke.texi (Warning Options): Fix spelling of link-time
5971         optimization.
5972         (Optimize Options): Ditto.  Also remove redundancy.
5974 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
5976         PR translation/79848
5977         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
5978         "%qs".
5979         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
5980         to G_ to avoid double translation.
5982 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
5984         PR translation/79923
5985         * auto-profile.c (get_combined_location): Convert leading
5986         character of diagnostics to lower case and remove trailing period.
5987         (read_profile): Likewise for various diagnostics.
5988         * config/arm/arm.c (arm_option_override): Remove trailing period
5989         from various diagnostics.
5990         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
5991         (msp430_expand_delay_cycles): Likewise.
5993 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
5995         PR target/79925
5996         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
5997         full command-line argument, rather than just "str".
5998         (aarch64_validate_march): Likewise.
5999         (aarch64_validate_mtune): Likewise.
6001 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
6003         PR rtl-optimization/78911
6004         * lra-assigns.c (must_not_spill_p): New function.
6005         (spill_for): Use it.
6007 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
6009         PR tree-optimization/79981
6010         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
6011         ATOMIC_COMPARE_EXCHANGE ifn result.
6012         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
6013         IFN_ATOMIC_COMPARE_EXCHANGE.
6015 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
6017         PR driver/79875
6018         * opts.c (parse_sanitizer_options): Add missing question mark to
6019         "did you mean" message.
6021 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6023         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
6024         built-in.
6025         (VMULEUH_UNS): Likewise.
6026         (VMULOUB_UNS): Likewise.
6027         (VMULOUH_UNS): Likewise.
6028         * config/rs6000/rs6000.c (builtin_function_type): Remove
6029         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
6031 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
6033         PR bootstrap/79952
6034         * read-rtl-function.c (function_reader::read_rtx_operand): Update
6035         x with result of extra_parsing_for_operand_code_0.
6036         (function_reader::extra_parsing_for_operand_code_0): Convert
6037         return type from void to rtx, returning x.  When reading
6038         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
6039         larger size containing struct block_symbol.
6041 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
6043         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
6044         -mfloat128-hardware without -m64.
6046 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
6048         PR target/79941
6049         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
6050         entries to the case statement that marks unsigned arguments to
6051         overloaded functions.
6053 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6055         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
6056         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
6058 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
6060         PR target/79907
6061         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
6062         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
6064 2017-03-10  Martin Liska  <mliska@suse.cz>
6066         PR target/65705
6067         PR target/69804
6068         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
6069         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
6070         FIELD != NULL.
6072 2017-03-10  Olivier Hainque  <hainque@adacore.com>
6074         * tree-switch-conversion (array_value_type): Start by resetting
6075         candidate type to it's main variant.
6077 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
6079         PR rtl-optimization/79909
6080         * combine.c (try_combine): Use simplify_replace_rtx on individual
6081         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
6082         of the whole CALL_INSN_FUNCTION_USAGE.
6084         PR tree-optimization/79972
6085         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
6086         get_range_info on SSA_NAMEs.  Formatting fixes.
6088 2017-03-10  Richard Biener  <rguenther@suse.de>
6089             Jakub Jelinek  <jakub@redhat.com>
6091         PR tree-optimization/77975
6092         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
6093         edge to be constant.
6094         (get_val_for): For constant x return it.  Formatting fix.
6095         (loop_niter_by_eval): Avoid pointless looping if the next iteration
6096         would use the same bases as the current one.
6098 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6100         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
6101         instead of vec_select for V1TImode.
6102         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
6103         longer needed.
6104         (VSX_LE_128): Add V1TI to this mode iterator.
6105         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
6106         (*vsx_le_perm_store_<mode>): Likewise.
6107         (pre-reload splitter for VSX stores): Likewise.
6108         (post-reload splitter for VSX stores): Likewise.
6109         (*vsx_xxpermdi2_le_<mode>): Likewise.
6110         (*vsx_lxvd2x2_le_<mode>): Likewise.
6111         (*vsx_stxvd2x2_le_<mode>): Likewise.
6113 2017-03-09  Michael Eager  <eager@eagercon.com>
6115         Correct failures with --enable-checking=yes,rtl.
6117         * config/microblaze/microblaze.c (microblaze_expand_shift):
6118         Replace GET_CODE test with CONST_INT_P and INTVAL test with
6119         test for const0_rtx.
6120         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
6121         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
6123 2017-03-09  Richard Biener  <rguenther@suse.de>
6125         PR tree-optimization/79977
6126         * graphite-scop-detection.c (scop_detection::merge_sese):
6127         Handle the case of extra exits to blocks dominating the entry.
6129 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
6131         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
6132         Document rdynamic.
6134 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
6136         PR rtl-optimization/79949
6137         * lra-constraints.c (process_alt_operands): Check memory when
6138         trying to predict a cycle.  Print about the overall increase.
6140 2017-03-09  Richard Biener  <rguenther@suse.de>
6142         PR middle-end/79971
6143         * gimple-expr.c (useless_type_conversion_p): Preserve
6144         TYPE_SATURATING for fixed-point types.
6146 2017-03-09  Richard Biener  <rguenther@suse.de>
6148         PR ipa/79970
6149         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
6150         alignment of BLKmode params.
6152 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6154         PR target/79913
6155         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
6156         (VALL_NO_V2Q): Likewise.
6157         (VDQF_DF): Delete.
6158         * config/aarch64/aarch64-simd.md
6159         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
6160         iterator.
6161         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
6162         VALL_NO_V2Q mode iterator.
6163         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
6165 2017-03-09  Martin Liska  <mliska@suse.cz>
6167         PR tree-optimization/79631
6168         * tree-chkp-opt.c (chkp_is_constant_addr): Call
6169         tree_int_cst_sign_bit just for INTEGER constants.
6171 2017-03-09  Martin Liska  <mliska@suse.cz>
6173         PR target/65705
6174         PR target/69804
6175         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
6176         sanitizers.
6178 2017-03-09  Marek Polacek  <polacek@redhat.com>
6180         PR c++/79672
6181         * tree.c (inchash::add_expr): Handle TREE_VEC.
6183 2017-03-09  Martin Liska  <mliska@suse.cz>
6185         PR ipa/79764
6186         (chkp_narrow_size_and_offset): New function.
6187         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
6188         (void chkp_parse_bit_field_ref): New function.
6189         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
6190         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
6192 2017-03-09  Martin Liska  <mliska@suse.cz>
6194         PR ipa/79761
6195         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
6196         (chkp_find_bounds_1): Remove gcc_unreachable.
6198 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
6200         PR sanitizer/79944
6201         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
6202         BUILT_IN_SYNC*, determine the access type from the size suffix and
6203         always build a MEM_REF with that type.  Handle forgotten
6204         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
6206         PR target/79932
6207         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
6208         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
6209         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
6210         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
6211         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
6212         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
6213         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
6214         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
6215         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
6216         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
6217         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
6218         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
6219         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
6220         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
6221         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
6222         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
6223         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
6224         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
6225         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
6226         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
6227         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
6228         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
6229         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
6230         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
6231         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
6232         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
6233         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
6234         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
6235         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
6236         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
6237         definitions outside of __OPTIMIZE__ guarded section.
6239         PR target/79932
6240         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
6241         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
6242         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
6243         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
6244         guarded section.
6246 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6248         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
6249         ("vfenez<mode>"): Add missing constraints.
6251 2017-03-08  Martin Sebor  <msebor@redhat.com>
6253         PR target/79928
6254         * config/nds32/nds32.c (nds32_option_override):
6255         Fix misspelled diagnostic.
6257 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
6259         PR c/79940
6260         * gimplify.c (gimplify_omp_for): Replace index var in outer
6261         taskloop statement with an artificial variable and add
6262         OMP_CLAUSE_PRIVATE clause for it.
6264 2017-03-08  Richard Biener  <rguenther@suse.de>
6266         PR tree-optimization/79955
6267         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
6268         for accesses that are completely outside of the variable.
6270 2017-03-08  Andrew Haley  <aph@redhat.com>
6272         PR tree-optimization/79943
6273         * tree-ssa-loop-split.c (compute_new_first_bound): When
6274         calculating the new upper bound, (END-BEG) should be added, not
6275         subtracted.
6277 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
6279         * config/avr/avr.md (setmemhi): Make sure match_dup
6280         operand number comes before match_scratch.
6282 2017-03-08  Richard Biener  <rguenther@suse.de>
6284         PR tree-optimization/79920
6285         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
6286         with ncopies == 1 to ...
6287         (vect_transform_slp_perm_load): ... here.  Properly compute
6288         all element loads by iterating VF times over the group.  Do
6289         not handle ncopies (computed in a broken way) in
6290         vect_create_mask_and_perm.
6292 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
6294         PR sanitizer/79904
6295         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
6296         is a uniform vector, use uniform_vector_p return value instead of
6297         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
6299 2017-03-07  Marek Polacek  <polacek@redhat.com>
6301         PR middle-end/79809
6302         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
6303         (alloca_call_type): Likewise.
6305 2017-03-07  Martin Liska  <mliska@suse.cz>
6307         * gcov.c (process_args): Put comment to correct location.
6309 2017-03-07  Martin Liska  <mliska@suse.cz>
6311         PR middle-end/68270
6312         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
6313         Use array_at_struct_end_p instead of DECL_CHAIN (field).
6314         (chkp_narrow_bounds_for_field): Likewise.
6315         (chkp_parse_array_and_component_ref): Pass one more argument to
6316         call.
6318 2017-03-07  Richard Biener  <rguenther@suse.de>
6320         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
6321         preheaders.
6323 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
6325         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
6326         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
6328 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6330         PR c/79855
6331         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
6332         to end of description.
6333         (PARAM_MAX_STORES_TO_MERGE): Likewise.
6335 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
6337         PR rtl-optimization/79901
6338         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
6339         ...
6340         (*avx512f_<code><mode>3<mask_name>): ... this.
6341         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
6342         iterator instead of VI8_AVX2_AVX512BW.
6344         PR rtl-optimization/79901
6345         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
6346         min/max expander, expand it using expand_vec_cond_expr.
6348         PR sanitizer/79897
6349         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
6350         temporary.
6352 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
6354         PR c++/79821
6355         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
6356         to void * for PCH reasons.
6357         * dwarf2out.c (output_loc_operands, output_die): Cast
6358         v.val_vec.array to unsigned char *.
6360 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
6362         PR target/77850
6363         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
6364         vector types.
6366 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
6368         PR rtl-optimization/79571
6369         * lra-constraints.c (process_alt_operands): Calculate static
6370         reject and subtract it from overall when only addresses will be
6371         reloaded.
6373 2017-03-06  Julia Koval  <julia.koval@intel.com>
6375         PR target/79793
6376         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
6377         incoming stack boundary to 128 for 64-bit targets.
6379 2017-03-06  Richard Biener  <rguenther@suse.de>
6381         PR tree-optimization/79894
6382         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
6383         to NULL after folding it.
6385 2017-03-06  Richard Biener  <rguenther@suse.de>
6387         PR tree-optimization/79824
6388         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
6389         check disabling peeling for gaps.
6391 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
6393         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
6394         attributes): Document gettimeofday.
6396 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
6398         * config/s390/s390.c (s390_option_override_internal): Set
6399         PARAM_MIN_VECT_LOOP_BOUND
6401 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
6403         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
6404         * config/s390/s390.md: Likewise.
6406 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
6408         PR target/79812
6409         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
6410         (<avx2_avx512>_perm<mode>): Rename to ...
6411         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
6412         of VI8F_256_512.
6413         (<avx512>_perm<mode>_mask): Rename to ...
6414         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
6415         of VI8F_256_512.
6416         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
6417         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
6418         instead of VI8F_256_512.
6419         (avx512f_perm<mode>): New define_expand.
6420         (avx512f_perm<mode>_mask): Likewise.
6421         (avx512f_perm<mode>_1<mask_name>): New define_insn.
6422         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
6424 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
6426         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
6427         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
6428         if_then_else.
6429         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
6431 2017-03-06  Martin Liska  <mliska@suse.cz>
6433         PR sanitize/79783
6434         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
6435         when having a SSA NAME w/o VAR_DECL assigned to it.
6437 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
6439         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
6440         msa_dpsub_<su>_d): Fix MODE for vec_select.
6442 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
6444         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
6445         argument.
6446         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
6448 2017-03-06  Richard Biener  <rguenther@suse.de>
6450         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
6451         * plugin.c (register_plugin_info): Likewise.
6452         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
6454 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
6456         * config/i386/sse.md (sse_storehps, sse_storelps,
6457         avx_<castmode><avxsizesuffix>_<castmode>,
6458         avx512f_<castmode><avxsizesuffix>_<castmode>,
6459         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
6460         in condition that at least one operand is not a MEM.
6462 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
6464         PR middle-end/79805
6465         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
6466         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
6467         ECF_NOTHROW.
6468         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
6469         gimple_call_nothrow_p flag based on whether original builtin can throw.
6470         If it can, emit following stmts on the fallthrough edge.
6471         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
6472         don't create new bb if inserting just debug stmts on the edge, try to
6473         insert them on the fallthru bb or just reset debug stmts.
6475 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
6477         PR target/43763
6478         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
6479         restore recog_data (including the operand rtxes inside it) around
6480         the call to get_insn_template.
6482 2017-03-03  Martin Sebor  <msebor@redhat.com>
6484         PR tree-optimization/79699
6485         * context.c (context::~context): Free MPFR caches to avoid
6486         a memory leak on program exit.
6488 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6490         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
6491         Use wide_int::ulow () instead of .elt (0).
6493 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
6495         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
6496         (*pushxf): Limit oF constraint to 32bit targets and add oC
6497         constraint for 64bit targets.
6498         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
6499         (*pushdf): Change rmF constraint to rmC.
6501 2017-03-03  Martin Liska  <mliska@suse.cz>
6503         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
6504         Remove unused variable.
6506 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
6508         PR target/79807
6509         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
6510         is a memory operand, increase num_memory.
6511         (ix86_expand_args_builtin): Likewise.
6513 2017-03-03  Jan Hubicka  <jh@suse.cz>
6515         PR lto/79760
6516         * ipa-devirt.c (maybe_record_node): Properly handle
6517         __cxa_pure_virtual visibility.
6519 2017-03-03  Martin Liska  <mliska@suse.cz>
6521         PR tree-optimization/79803
6522         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
6523         assert.
6524         (pass_loop_prefetch::execute): Disabled optimization if an
6525         assumption about L1 cache size is not met.
6527 2017-03-03  Martin Liska  <mliska@suse.cz>
6529         PR rtl-optimization/79574
6530         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
6531         (hash_scan_set): Likewise.
6532         (dump_hash_table): Likewise.
6533         (hoist_code): Likewise.
6535 2017-03-03  Richard Biener  <rguenther@suse.de>
6537         * fixed-value.c (fixed_from_string): Restore use of elt (1)
6538         in place of uhigh ().
6539         (fixed_convert_from_real): Likewise.
6541 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
6543         PR target/79514
6544         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
6546 2017-03-03  Richard Biener  <rguenther@suse.de>
6548         PR middle-end/79818
6549         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
6550         TYPE_OVERFLOW_UNDEFINED check.
6552 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6554         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
6555         numbers.
6556         (vector_ae_<mode>_p): Likewise.
6557         (vector_nez_<mode>_p): Likewise.
6558         (vector_ne_v2di_p): Likewise.
6559         (vector_ae_v2di_p): Likewise.
6560         (vector_ne_<mode>_p): Likewise.
6561         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
6562         numbers.
6563         (vsx_tsqrt<mode>2_fe): Likewise.
6565 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
6567         PR target/79514
6568         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
6570 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
6572         PR rtl-optimization/79780
6573         * cprop.c (one_cprop_pass): When second and further conditional trap
6574         in a single basic block is turned into an unconditional trap, turn it
6575         into a deleted note to avoid RTL verification failures.
6577 2017-03-02  Richard Biener  <rguenther@suse.de>
6579         * fold-const.c (const_binop): Use ulow () instead of elt (0).
6581 2017-03-02  Richard Biener  <rguenther@suse.de>
6583         PR tree-optimization/79345
6584         PR c++/42000
6585         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
6586         param and abort the walk, returning -1 if it is hit.
6587         (walk_aliased_vdefs): Take a limit param and pass it on.
6588         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
6589         defaulting to 0 and return a signed int.
6590         * tree-ssa-uninit.c (struct check_defs_data): New struct.
6591         (check_defs): New helper.
6592         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
6593         about uninitialized memory.
6594         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
6595         bogus uninitialized warning.
6596         (fixed_convert_from_real): Likewise.
6598 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
6600         PR tree-optimization/66768
6601         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
6602         iv_use if base object can't be determined.
6604 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
6606         PR tree-optimization/79345
6607         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
6608         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
6609         (get_pattern_stats): Initialize it.
6610         * genemit.c (gen_expand): Verify match_scratch numbers come after
6611         match_operand/match_dup numbers.
6612         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
6613         match_scratch numbers.
6614         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
6615         Likewise.
6616         * config/s390/s390.md (trunctdsd2): Likewise.
6618 2017-03-02  Richard Biener  <rguenther@suse.de>
6620         * wide-int.h (wide_int_storage::operator=): Implement in terms
6621         of wi::copy.
6623 2017-03-02  Richard Biener  <rguenther@suse.de>
6625         PR tree-optimization/79777
6626         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
6627         the to insert expression to sth existing.
6629 2017-03-01  Martin Sebor  <msebor@redhat.com>
6631         PR middle-end/79692
6632         * gimple-ssa-sprintf.c
6633         (directive::known_width_and_precision): New function.
6634         (format_integer): Use it.
6635         (get_mpfr_format_length): Consider the full range of precision
6636         when computing %g output with the # flag.  Set the likely byte
6637         count to 3 rather than 1 when precision is indeterminate.
6638         (format_floating): Correct the lower bound of precision.
6640 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6642         * doc/invoke.texi: Document default code model for 64-bit Linux.
6644 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6646         PR target/79752
6647         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
6648         udiv rather than div since input pattern is unsigned.
6650 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
6652         * config/i386/i386.c (print_reg): Warn for values of
6653         unsupported size in integer register.
6655 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
6657         PR target/79439
6658         * config/rs6000/predicates.md (current_file_function_operand): Do
6659         not allow self calls to be local if the function is replaceable.
6661 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6663         PR target/79395
6664         * config/rs6000/altivec.h (vec_ctz and others): Change the
6665         preprocessor macro that controls conditional compilation from
6666         _ARCH_PWR9 to __POWER9_VECTOR__.
6667         (vec_all_ne): Change parameterization of __altivec_scalar_pred
6668         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
6669         control (instead of _ARCH_PWR9 control) so that template
6670         definition uses power9-specific function.
6671         (vec_any_eq): Likewise.
6672         (vec_all_ne): Change macro definition to use a power9-specific
6673         expansion under #ifdef __POWER9_VECTOR__ control (instead of
6674         _ARCH_PWR9 control).
6675         (vec_any_eq) Likewise.
6676         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
6677         expansion for CMPNEF to remove support for xvcmpnesp instruction.
6678         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
6679         support for xvcmpnedp instruction.
6680         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
6681         macro expansion so that Power9 implementation of vec_all_ne does
6682         not use the AltiVec predicate framework.
6683         (VCMPNEH_P): Likewise.
6684         (VCMPNEW_P): Likewise.
6685         (VCMPNED_P): Likewise.
6686         (VCMPNEFP_P): Likewise.
6687         (VCMPNEDP_P): Likewise.
6688         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
6689         implementation of vec_any_eq to not use AltiVec predicate
6690         framework.
6691         (VCMPAEH_P): Likewise.
6692         (VCMPAEW_P): Likewise.
6693         (VCMPAED_P): Likewise.
6694         (VCMPAEFP_P): Likewise.
6695         (VCMPAEDP_P): Likewise.
6696         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
6697         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
6698         not use the AltiVec predicate framework.
6699         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
6700         of vec_any_eq to not use AltiVec predicate framework.
6701         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
6702         support for predefined __POWER9_VECTOR__ macro to indicate that
6703         Power9 instruction selection is enabled.
6704         (altivec_overloaded_builtins): Remove extraneous
6705         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
6706         function argument types RS6000_BTI_bool_V16QI and
6707         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
6708         entry for overloaded function argument types RS6000_BTI_bool_V4SI
6709         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
6710         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
6711         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
6712         Power9 for implementations of vec_cmpne.  Change the signature for
6713         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
6714         (representing vec_all_ne) to remove the previously described first
6715         argument of type RS6000_BTI_INTSI, as this was an artifact of
6716         reliance on the AltiVec predicate framework, which is no longer
6717         used in the implementation of these functions.  Add
6718         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
6719         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
6720         since, unlike the AltiVec predicate framework implementation, we
6721         do not share function descriptors between vec_alle and vec_anyeq.
6722         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
6723         set of modes that receive special treatment even when
6724         TARGET_P9_VECTOR is true.  The special treatment emits code that
6725         does not depend on Power9 instructions.
6726         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
6727         define_expand to not rely on AltiVec predicate framework.
6728         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
6729         function.
6730         (vector_ne_v2di_p): Change this define_expand to not rely on
6731         AltiVec predicate framework.
6732         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
6733         function.
6734         (vector_ne_<mode>_p): Change this define_expand to not rely on
6735         AltiVec predicate framework.
6736         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
6737         function.
6738         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
6739         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
6740         define_insn pattern.
6741         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
6742         define_insn pattern because the xvcmpne<VSs>. instruction is not
6743         supported.
6744         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
6745         instruction is not supported.
6747 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
6749         * config/nvptx/nvptx.c: Include intl.h.
6751 2017-03-01  Martin Jambor  <mjambor@suse.cz>
6753         PR lto/78140
6754         * ipa-prop.h (ipa_bits): Removed field known.
6755         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
6756         to pointers.  Adjusted their comments to warn about their sharing.
6757         (ipcp_transformation_summary): Change bits to a vector of pointers.
6758         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
6759         (ipa_get_ipa_bits_for_value): Declare.
6760         * tree-vrp.h (value_range): Mark as GTY((for_user)).
6761         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
6762         (ipa_bits_hash_table): Likewise.
6763         (ipa_vr_ggc_hash_traits): Likewise.
6764         (ipa_vr_hash_table): Likewise.
6765         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
6766         being pointers and vr_known being removed.
6767         (ipa_set_jf_unknown): Likewise.
6768         (ipa_get_ipa_bits_for_value): New function.
6769         (ipa_set_jfunc_bits): Likewise.
6770         (ipa_get_value_range): New overloaded functions.
6771         (ipa_set_jfunc_vr): Likewise.
6772         (ipa_compute_jump_functions_for_edge): Use the above functions to
6773         construct bits and vr parts of jump functions.
6774         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
6775         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
6776         exist.
6777         (ipcp_grow_transformations_if_necessary): Also allocate
6778         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
6779         exist.
6780         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
6781         them.  Fix too long lines.
6782         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
6783         vr_known being removed.
6784         (ipa_read_jump_function): Use new setter functions to construct bits
6785         and vr parts of jump functions or set them to NULL.
6786         (write_ipcp_transformation_info): Adjust for bits being pointers.
6787         (read_ipcp_transformation_info): Likewise.
6788         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
6789         space.
6790         Include gt-ipa-prop.h.
6791         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
6792         being pointers.
6793         (ipcp_store_bits_results): Likewise.
6794         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
6795         Do not write to existing jump functions but use a temporary instead.
6797 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
6799         PR c++/79681
6800         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
6801         attempt to use its first operand as BIT_FIELD_REF base.
6803 2017-03-01  Richard Biener  <rguenther@suse.de>
6805         PR middle-end/79721
6806         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
6807         interpolating formula in wrapping arithmetic.
6808         (chrec_apply): Convert chrec_evaluate return value to wanted type.
6810 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
6812         PR tree-optimization/79734
6813         * tree-vect-generic.c (expand_vector_condition): Optimize
6814         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
6815         Handle VEC_COND_EXPR where comparison has different inner width from
6816         type's inner width.
6818 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
6820         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
6821         markup, and similar issues.  Remove @opindex entries for things
6822         that aren't options.  Add missing -mmpy-option entries.
6824 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
6826         PR tree-optimization/79737
6827         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
6828         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
6829         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
6830         instead of byte_size.  Formatting fix.
6831         (shift_bytes_in_array_right): Formatting fix.
6833 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
6835         PR target/79749
6836         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
6837         condition on optimize for the leaf function test.
6839 2017-02-28  Martin Liska  <mliska@suse.cz>
6841         PR lto/79625
6842         * read-rtl-function.c (function_reader::handle_unknown_directive):
6843         Bail out when one uses -flto.
6845 2017-02-28  Martin Liska  <mliska@suse.cz>
6847         * common.opt: Replace space with tabular for options of <number>
6848         type.
6849         * config/i386/i386.opt: Show <number> value for
6850         -mlarge-data-threshold.
6851         * opts.c (print_filtered_help): Do not display number in hexadecimal
6852         format.
6854 2017-02-28  Martin Liska  <mliska@suse.cz>
6856         * common.opt: Fix --help=option -Q for options which are of
6857         an enum type.
6859 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
6861         * config/i386/i386.c (print_reg): Error out for values
6862         of 8-bit size in invalid integer register.
6864 2017-02-28  Martin Sebor  <msebor@redhat.com>
6866         PR tree-optimization/79691
6867         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
6869 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
6871         PR target/79729
6872         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
6873         gcc_unreachable with output_operand_lossage.
6875 2017-02-28  Richard Biener  <rguenther@suse.de>
6877         PR tree-optimization/79740
6878         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
6879         inserts.
6880         (visit_nary_op): Insert the nary into the hashtable if we
6881         pattern-matched sth.
6882         * tree-ssa-pre.c (eliminate_insert): Robustify.
6884 2017-02-28  Richard Biener  <rguenther@suse.de>
6886         PR middle-end/79731
6887         * fold-const.c (decode_field_reference): Reject out-of-bound
6888         accesses.
6890 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
6892         * config/i386/i386.c: Include intl.h.
6893         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
6894         instead of just cond ? "..." : "...".
6895         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
6896         * coverage.c (read_counts_file): Likewise.
6897         * omp-offload.c: Include intl.h.
6898         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
6899         of just cond ? "..." : "...".
6900         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
6901         of just cond ? "..." : "...".
6903 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
6905         PR target/79742
6906         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
6907         entry, if present.
6908         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
6909         'tune for' CPU name.
6910         * config/arm/arm-cpu-data.h: Regenerated.
6912 2017-02-28  Richard Biener  <rguenther@suse.de>
6914         PR tree-optimization/79732
6915         * tree-inline.c (expand_call_inline): Do not shadow var.
6917 2017-02-28  Richard Biener  <rguenther@suse.de>
6919         PR tree-optimization/79723
6920         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
6921         address-space properly.
6923 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
6925         * doc/optinfo.texi (Optimization groups): Fix option used for
6926         OPTGROUP_ALL.
6927         * doc/invoke.texi (-fopt-info): Document "omp".
6928         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
6929         (OPTGROUP_ALL): Add OPTGROUP_OMP.
6930         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
6931         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
6932         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
6934         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
6935         all users.
6936         * dumpfile.c (optgroup_options): Instead of "openmp", associate
6937         OPTGROUP_OMP with "omp".
6939 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
6941         PR target/79544
6942         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
6943         for arithmetic shift of unsigned V2DI.
6945 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
6947         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
6948         arc/linux.h headers.
6949         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
6950         (LINK_SPEC): Likewise.
6951         (ARC_TLS_EXTRA_START_SPEC): Likewise.
6952         (EXTRA_SPECS): Likewise.
6953         (STARTFILE_SPEC): Likewise.
6954         (ENDFILE_SPEC): Likewise.
6955         (LIB_SPEC): Likewise.
6956         (TARGET_SDATA_DEFAULT): Likewise.
6957         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
6958         (MULTILIB_DEFAULTS): Likewise.
6959         (DWARF2_UNWIND_INFO): Likewise.
6960         * config/arc/big.h: New file.
6961         * config/arc/elf.h: Likewise.
6962         * config/arc/linux.h: Likewise.
6963         * config/arc/t-uClibc: Remove.
6965 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
6967         PR tree-optimization/77536
6968         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
6969         (tree_transform_and_unroll_loop): Use above function to compute the
6970         estimated niter of unrolled loop and use it when scaling profile.
6971         Also use count info rather than frequency if it's non-zero.
6972         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
6973         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
6974         (vect_transform_loop): Call above function.
6976 2017-02-27  Richard Biener  <rguenther@suse.de>
6978         PR tree-optimization/45397
6979         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
6980         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
6981         (visit_nary_op): Add pattern matching for CSEing sign-changed
6982         or truncated operations with wider ones.
6984 2017-02-27  Richard Biener  <rguenther@suse.de>
6986         PR tree-optimization/79690
6987         * tree-vect-stmts.c (vectorizable_store): Use vector type
6988         built from the DR with address-space.
6990 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
6992         * doc/invoke.texi (Optimize Options): Refine the description
6993         of asan-use-after-return.
6995 2017-02-25  Alan Modra  <amodra@gmail.com>
6997         PR rtl-optimization/79584
6998         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
6999         base, not ad->base_term, the reg within base.  Remove assertion
7000         that ad->base == ad->base_term.  Replace gen_int_mode using
7001         bogus mode with const0_rtx.
7003 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
7005         PR middle-end/79396
7006         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
7007         FMA_EXPR like tcc_binary or tcc_unary.
7009         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
7011         PR debug/77589
7012         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
7013         bitfield.
7014         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
7015         (output_loc_operands): Handle DW_OP_call_ref and
7016         DW_OP_GNU_variable_value.
7017         (struct variable_value_struct): New type.
7018         (struct variable_value_hasher): Likewise.
7019         (variable_value_hash): New variable.
7020         (string_types): Remove.
7021         (copy_loc_descr): New function.
7022         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
7023         (prepend_loc_descr_to_each): New function.
7024         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
7025         instead of add_loc_descr_to_each if the first argument is single
7026         location list and the second has multiple.
7027         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
7028         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
7029         when looking for variable value which doesn't have other location info.
7030         (loc_list_from_tree): Formatting fix.
7031         (gen_array_type_die): Simplify DW_AT_string_length handling.
7032         (adjust_string_types): Remove.
7033         (gen_subprogram_die): Don't call adjust_string_types nor test/set
7034         string_types.  Call resolve_variable_values.
7035         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
7036         (resolve_addr_in_expr): Likewise.  Add A argument.
7037         (copy_deref_exprloc): Remove deref argument.  Adjust for the
7038         original expression being DW_OP_GNU_variable_value with optionally
7039         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
7040         optionally after it.
7041         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
7042         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
7043         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
7044         (variable_value_hasher::hash, variable_value_hasher::equal): New
7045         methods.
7046         (resolve_variable_value_in_expr, resolve_variable_value,
7047         resolve_variable_values, note_variable_value_in_expr,
7048         note_variable_value): New functions.
7049         (dwarf2out_early_finish): Call note_variable_value on all toplevel
7050         DIEs.
7052 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
7054         PR c/79677
7055         * opts.h (handle_generated_option): Add GENERATED_P argument.
7056         * opts-common.c (handle_option): Adjust function comment.
7057         (handle_generated_option): Add GENERATED_P argument, pass it to
7058         handle_option.
7059         (control_warning_option): Pass false to handle_generated_option
7060         GENERATED_P.
7061         * opts.c (maybe_default_option): Pass true to handle_generated_option
7062         GENERATED_P.
7063         * optc-gen.awk: Likewise.
7065 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7067         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
7068         a REG, look at the REG it is a SUBREG of.
7069         (splitter for cmpeqsi_t): Ditto.
7071 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7073         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
7074         the special USEs with the pattern of the insn, not the insn itself.
7076 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
7078         PR target/79473
7079         * doc/invoke.texi: Document -mload-store-pairs.
7081 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7082             Sandra Loosemore  <sandra@codesourcery.com>
7084         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
7085         argument isn't a CONST_INT.
7086         (nios2_alternate_compare_const): Assert op is a CONST_INT.
7087         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
7088         (nios2_validate_compare): Bypass alternate compare logic if *op2
7089         is not a CONST_INT.
7090         (ldstwm_operation_p): Return false if first_base is not a REG or
7091         if first_offset is not a CONST_INT.
7093 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7095         * config/cris/cris.md: Use correct operand in a define_peephole2.
7097 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7099         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
7101 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
7103         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
7104         this_insn if it is an INSN or JUMP_INSN.
7105         (force_offsettable): Look at base, not at addr.
7106         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
7107         on things that aren't necessarily CONST_INTs.
7109 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
7111         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
7112         -mfpmath=sse is the default also for x86-32 targets with SSE2
7113         instruction set when @option{-ffast-math} is enabled
7115 2017-02-24  Jeff Law  <law@redhat.com>
7117         PR rtl-optimizatoin/79286
7118         * ira.c (update_equiv_regs): Drop may_trap_p exception to
7119         dominance test.
7121 2017-02-24  Richard Biener  <rguenther@suse.de>
7123         PR tree-optimization/79389
7124         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
7125         debug insns.
7127 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
7129         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
7130         function comment to reflect reality.
7131         (loop_exits_before_overflow): Fix typo in function description.
7133 2017-02-24  Richard Biener  <rguenther@suse.de>
7135         PR tree-optimization/79389
7136         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
7137         properly that a threading opportunity exists.  Detect conditional
7138         copy/constant propagation opportunities.
7140 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
7142         * config/visium/visium.md (type): Add trap.
7143         (b): New mode attribute.
7144         (*btst): Rename into...
7145         (*btst<mode>): ...this and adjust.
7146         (*cbranchsi4_btst_insn): Rename into...
7147         (*cbranch<mode>4_btst_insn): ...this and adjust.
7148         (trap): New define_insn.
7150 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
7152         PR tree-optimization/79389
7153         * ifcvt.c (struct noce_if_info): Add rev_cond field.
7154         (noce_reversed_cond_code): New function.
7155         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
7156         reversed_comparison_code.  Formatting fix.
7157         (noce_try_store_flag): Test rev_cond != NULL in addition to
7158         reversed_comparison_code.
7159         (noce_try_store_flag_constants): Likewise.
7160         (noce_try_store_flag_mask): Likewise.
7161         (noce_try_addcc): Use rev_cond if non-NULL instead of
7162         reversed_comparison_code.
7163         (noce_try_cmove_arith): Likewise.  Formatting fixes.
7164         (noce_try_minmax, noce_try_abs): Clear rev_cond.
7165         (noce_find_if_block): Initialize rev_cond.
7166         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
7167         instead of false as last argument never attempt to reverse it
7168         afterwards.
7170 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
7172         PR tree-optimization/79663
7173         * tree-predcom.c (combine_chains): Process refs in reverse order
7174         only for ZERO length chains, and add explaining comment.
7176 2017-02-23  Jeff Law  <law@redhat.com>
7178         PR tree-optimization/79578
7179         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
7180         in call to operand_equal_p.
7182 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
7184         PR target/71017
7185         * config/i386/cpuid.h: Fix another undefined behavior.
7187 2017-02-23  Richard Biener  <rguenther@suse.de>
7189         PR tree-optimization/79683
7190         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
7191         vector types for data-refs.
7193 2017-02-23  Martin Liska  <mliska@suse.cz>
7195         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
7197 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
7199         PR middle-end/79665
7200         * internal-fn.c (get_range_pos_neg): Moved to ...
7201         * tree.c (get_range_pos_neg): ... here.  No longer static.
7202         * tree.h (get_range_pos_neg): New prototype.
7203         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
7204         are known to be in between 0 and signed maximum inclusive, try to
7205         expand both unsigned and signed divmod and use the cheaper one from
7206         those.
7208 2017-02-22  Jeff Law  <law@redhat.com>
7210         PR tree-optimization/79578
7211         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
7212         to compare base operands.
7214 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
7216         PR target/79211
7217         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
7218         gpc_reg_operand instead of fpr_reg_operand.
7220 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
7222         * config/mips/mips.c (mips_return_in_memory): Force FP
7223         vector types to be returned in memory for o32 ABI.
7225 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
7227         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
7228         instead of DW_TAG_member for static data member declarations and don't
7229         set no_linkage_name for static inline data members.
7230         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
7231         to DW_TAG_member.
7233 2017-02-22  Martin Liska  <mliska@suse.cz>
7235         * doc/invoke.texi: Replace inequality signs with square brackets
7236         for -Wnormalized.
7238 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7240         PR tree-optimization/68644
7241         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
7243 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
7245         PR target/78660
7246         * lra-constraints.c (simplify_operand_subreg): Handle
7247         WORD_REGISTER_OPERATIONS targets.
7249 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
7251         PR target/70465
7252         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
7253         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
7254         elimination by swapping fld*.
7256 2017-02-22  Richard Biener  <rguenther@suse.de>
7258         PR tree-optimization/79673
7259         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
7260         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
7261         irrelevant address-space qualifiers and avoiding a
7262         ADDR_SPACE_CONVERT_EXPR from fold_convert.
7264 2017-02-22  Richard Biener  <rguenther@suse.de>
7266         PR tree-optimization/79666
7267         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
7268         to not symbolically negate if that may introduce undefined
7269         overflow.
7271 2017-02-22  Martin Liska  <mliska@suse.cz>
7273         PR lto/79587
7274         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
7275         * data-streamer-out.c (streamer_write_gcov_count_stream):
7276         Likewise.
7277         * value-prof.c (stream_out_histogram_value): Make assert more
7278         precise based on type of counter.
7280 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
7282         PR target/79593
7283         * config/i386/i386.md (standard_x87sse_constant_load splitter):
7284         Use nonimmediate_operand instead of memory_operand for operand 1.
7285         (float-extend standard_x87sse_constant_load splitter): Ditto.
7287 2017-02-21  Jeff Law  <law@redhat.com>
7289         PR tree-optimization/79621
7290         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
7291         blocks with edges to themselves.
7293 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
7295         PR target/79633
7296         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
7297         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
7298         Use gimple_call_builtin_p.
7300         PR target/79570
7301         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
7302         on temporarily removed DEBUG_INSNs.
7304         PR tree-optimization/79649
7305         * tree-loop-distribution.c (classify_partition): Give up on
7306         non-generic address space loads/stores.
7308 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
7310         * doc/loop.texi (Loop manipulation): Remove nonexistent
7311         tree_ssa_loop_version from the documentation.
7312         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
7314 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
7316         PR target/79494
7317         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
7318         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
7319         * config/rs6000/rs6000.c: Include except.h.
7320         (rs6000_expand_split_stack_prologue): Call
7321         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
7323 2017-02-21  Martin Jambor  <mjambor@suse.cz>
7325         PR lto/79579
7326         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
7327         have been analyzed.
7329 2017-02-21  Martin Jambor  <mjambor@suse.cz>
7331         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
7332         for backward compatibility only.
7333         * doc/invoke.texi (Option Summary): Remove all references to
7334         -fipa-cp-alignment.
7336 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
7338         PR target/78660
7339         Revert:
7340         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7342         * lra-constraints.c (curr_insn_transform): Handle
7343         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
7345 2017-02-21  Martin Liska  <mliska@suse.cz>
7347         * config/i386/i386.opt: Replace -masm-dialect with -masm.
7349 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
7351         PR translation/79638
7352         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
7354 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
7356         PR ada/67205
7357         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
7358         (arm_function_ok_for_sibcall): Return false for an indirect call by
7359         descriptor if all the argument registers are used.
7360         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
7361         alignment of the function.
7363 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
7365         PR tree-optimization/61441
7366         * simplify-rtx.c (simplify_const_unary_operation): For
7367         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
7368         the sNaN unmodified.
7370 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7372         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
7373         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
7374         instead of SYSTEM_HEADER_DIR.
7376 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
7377             Martin LiÅ¡ka  <mliska@suse.cz>
7379         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
7380         Fix typos and grammar, use active voice, and clarify.
7382 2017-02-20  Marek Polacek  <polacek@redhat.com>
7384         PR middle-end/79537
7385         * gimplify.c (gimplify_expr): Handle unused *&&L;.
7387         PR sanitizer/79558
7388         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
7390 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
7392         PR target/79568
7393         * config/i386/i386.c (ix86_expand_builtin): Handle
7394         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
7395         ix86_builtins_isa[fcode].isa as a requirement of those
7396         flags and any other flag in the bitmask.
7397         (ix86_init_mmx_sse_builtins): Use 0 instead of
7398         ~OPTION_MASK_ISA_64BIT as mask.
7399         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
7400         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
7401         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
7402         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
7404 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7406         PR target/78012
7407         * lra-constraints.c (split_reg): Check requested split mode
7408         is supported by the register.
7410 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7412         * lra-constraints.c (simplify_operand_subreg): Remove early
7413         return false.
7415 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7417         PR target/78660
7418         * lra-constraints.c (curr_insn_transform): Tighten condition
7419         for converting SUBREG reloads from OP_OUT to OP_INOUT.
7421 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7423         PR target/78660
7424         * lra-constraints.c (curr_insn_transform): Handle
7425         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
7427 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
7429         Revert:
7430         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
7432         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
7434 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
7436         PR c++/69523
7437         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
7438         description.
7440 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7442         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
7443         for FMA_EXPR.
7445 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
7447         * final.c (last_columnnum, override_columnnum): New variables.
7448         (final_start_function): Set last_columnnum, pass it to begin_prologue
7449         hook and pass 0 to dwarf2out_begin_prologue.
7450         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
7451         to source_line debug hook.
7452         (notice_source_line): Compute last_columnnum and for debug_column_info
7453         return true on column changes.
7454         * debug.h (struct gcc_debug_hooks): Add column argument to
7455         source_line and begin_prologue hooks.
7456         (debug_nothing_int_charstar_int_bool): Remove prototype.
7457         (debug_nothing_int_int_charstar,
7458         debug_nothing_int_int_charstar_int_bool): New prototypes.
7459         (dwarf2out_begin_prologue): Add column argument.
7460         * debug.c (do_nothing_debug_hooks): Adjust source_line and
7461         begin_prologue hooks.
7462         (debug_nothing_int_charstar_int_bool): Remove.
7463         (debug_nothing_int_int_charstar,
7464         debug_nothing_int_int_charstar_int_bool): New functions.
7465         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
7466         through to dwarf2out_source_line.
7467         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
7468         (dwarf2out_source_line): Add column argument, emit it if requested.
7469         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
7470         arguments.
7471         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
7472         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
7473         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
7474         through to dwarf2out_begin_prologue.
7475         (vmsdbgout_source_line): Add column argument, pass it through to
7476         dwarf2out_source_line.
7477         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
7478         dbxout_source_line caller.
7479         (dbxout_source_line): Add column argument.
7481         * common.opt (gno-column-info, gcolumn-info): New options.
7482         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
7483         (check_die): Also test for multiple DW_AT_decl_column attributes.
7484         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
7485         DW_AT_decl_column if requested.
7486         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
7487         if requested.
7488         (gen_variable_die): Likewise.
7489         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
7490         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
7492         PR target/79569
7493         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
7494         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
7495         (ix86_handle_option): Handle OPT_m3dnowa.
7496         * doc/invoke.texi (-m3dnowa): Document.
7497         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
7498         -m3dnowa instead of -m3dnow -march=athlon.
7500         PR target/79559
7501         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
7502         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
7504 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7506         PR target/79261
7507         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
7508         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
7509         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
7510         generator for vsx_xxpermdi_<mode>_be.
7511         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
7512         force big-endian semantics.
7513         (vsx_xxpermdi_<mode>_be): New define_expand with same
7514         implementation as previous version of vsx_xxpermdi_<mode>.
7516 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
7518         PR tree-optimization/79327
7519         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
7520         variable, its initialization and use.
7522 2017-02-17  Julia Koval  <julia.koval@intel.com>
7524         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
7525         (OPTION_MASK_ISA_PKU_UNSET): New.
7526         (ix86_handle_option): Handle -mrdpid.
7527         * config/i386/cpuid.h (bit_RDPID): New.
7528         * config/i386/driver-i386.c (host_detect_local_cpu):
7529         Detect RDPID feature.
7530         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
7531         * config/i386/i386-c.c (ix86_target_macros_internal):
7532         Handle RDPID flag.
7533         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
7534         (ix86_valid_target_attribute_inner_p): Add "rdpid".
7535         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
7536         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
7537         * config/i386/i386.md (define_insn "rdpid"): New.
7538         * config/i386/i386.opt Add -mrdpid.
7539         * config/i386/immintrin.h (_rdpid_u32): New.
7541 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
7543         PR rtl-optimization/79541
7544         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
7545         instead of transforming it into USE.
7547 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
7549         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
7550         If HONOR_SNANS (SFmode) force the input to a register.
7551         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
7552         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
7553         an frsp or similar insn.
7555 2017-02-17  Martin Liska  <mliska@suse.cz>
7557         PR rtl-optimization/79577
7558         * params.def (selsched-max-sched-times): Increase minimum to 1.
7560 2017-02-17  Martin Liska  <mliska@suse.cz>
7562         PR rtl-optimization/79574
7563         * gcse.c (want_to_gcse_p): Prevent integer overflow.
7565 2017-02-17  Martin Liska  <mliska@suse.cz>
7567         PR tree-optimization/79529
7568         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
7569         ssa_defined_default_def_p to handle cases which are implicitly
7570         defined.
7571         * tree-ssa.c (ssa_defined_default_def_p): New function.
7572         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
7573         which are implicitly defined.
7574         * tree-ssa.h (ssa_defined_default_def_p): Declare.
7576 2017-02-17  Richard Biener  <rguenther@suse.de>
7578         PR middle-end/79576
7579         * params.def (max-ssa-name-query-depth): Limit to 10.
7581 2017-02-17  Richard Biener  <rguenther@suse.de>
7583         PR tree-optimization/79552
7584         * tree-ssa-structalias.c (visit_loadstore): Properly verify
7585         default defs.
7587 2017-02-17  Richard Biener  <rguenther@suse.de>
7589         PR bootstrap/79567
7590         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
7592 2017-02-17  Marek Polacek  <polacek@redhat.com>
7594         PR middle-end/79536
7595         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
7596         (fold_negate_expr): New wrapper.
7598 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
7600         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
7601         Correct terminology and de-emphasize pre-standard behavior.
7603 2017-02-16  Alan Modra  <amodra@gmail.com>
7605         PR rtl-optimization/79286
7606         * ira.c (def_dominates_uses): New function.
7607         (update_equiv_regs): Don't create an equivalence for insns that
7608         may trap where the register def does not dominate the use.
7610 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
7612         PR rtl-optimization/78127
7613         * lra.c (lra): Call lra_eliminate before finish the loop after
7614         lra_constraint.
7616 2017-02-16  Richard Biener  <rguenther@suse.de>
7618         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
7619         isl/isl_val.h.
7620         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
7621         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
7622         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
7623         (isl_val_int_from_wi): New function.
7624         (extract_affine_gmp): Rename to ...
7625         (extract_affine_wi): ... this, take a widest_int.
7626         (extract_affine_int): Just wrap extract_affine_wi.
7627         (add_param_constraints): Use isl_val_int_from_wi.
7628         (add_loop_constraints): Likewise, and extract_affine_wi.
7630 2017-02-15  Jeff Law  <law@redhat.com>
7632         PR middle-end/79521
7633         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
7634         ira_init_register_move_cost_if_necessary.
7636 2017-02-15  Martin Sebor  <msebor@redhat.com>
7638         PR middle-end/32003
7639         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
7640         removed in a prior commit.
7642 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
7644         PR tree-optimization/79347
7645         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
7646         counters during peeling.
7648 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
7650         * Makefile.in (site.exp): Remove "set ISLVER".
7652 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
7654         PR target/79487
7655         * real.c (real_from_integer): Call real_convert even for decimal.
7657 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7659         PR target/79421
7660         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
7662 2017-02-14  Andrew Pinski  <apinski@cavium.com>
7664         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
7665         cores and change the partno/implementer to be correct.
7666         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
7667         the 'B" as the implementer.
7668         * config/aarch64/aarch64-tune.md: Regenerate.
7670 2017-02-14  Carl Love  <cel@us.ibm.com>
7672         * config/rs6000/rs6000.c: Add case statement entry to make the
7673         xvcvuxdsp built-in argument unsigned.
7674         * config/rs6000/vsx.md: Fix the source and return operand types so they
7675         match the instruction definitions from the ISA document.  Fix typo
7676         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
7677         statement.
7679 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
7681         PR target/79282
7682         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
7683         member early_clobber_alts.
7684         * lra-lives.c (reg_early_clobber_p): New.
7685         (process_bb_lives): Use it.
7686         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
7687         (debug_operand_data): Initialize early_clobber_alts.
7688         (setup_operand_alternative): Set up early_clobber_alts.
7689         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
7690         alternatives to new_insn_reg.
7691         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
7692         it.
7693         (lra_update_insn_regno_info): Pass the new arg.
7695 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
7697         PR middle-end/79505
7698         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
7699         (new_oacc_loop_raw): Don't clear already cleared fields.
7701         PR target/79481
7702         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
7703         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
7704         _mm512_prefetch_i64gather_ps): New inline functions and macros.
7706 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
7708         PR target/79495
7709         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
7711 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
7713         PR target/79498
7714         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
7715         the extra instruction to the right place to store 128-bit constant
7716         when needed.
7718 2017-02-14  Martin Sebor  <msebor@redhat.com>
7720         PR middle-end/79448
7721         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
7722           warning for strings of unknown length.
7724 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
7726         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
7728 2017-02-14  Jeff Law  <law@redhat.com>
7730         PR target/79404
7731         * ira-costs.c (scan_one_insn): Initialize register move costs
7732         for pseudos seen in USE/CLOBBER insns.
7734         PR tree-optimization/79095
7735         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
7736         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
7737         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
7738         if the operands are known to be not equal, then the resulting range
7739         is ~[0,0].
7740         (intersect_ranges): If the new range is ~[0,0] and the old range is
7741         wide, then prefer ~[0,0].
7742         * tree-vrp.c (overflow_comparison_p_1): New function.
7743         (overflow_comparison_p): New function.
7744         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
7745         if NAME is used in an overflow test.
7746         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
7747         overflow check that can be expressed as an equality test, then adjust
7748         ops to be that equality test.
7750 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7752         * config/s390/s390-builtin-types.def: Remove flags argument.
7753         * config/s390/s390.c (s390_init_builtins): Likewise.
7755 2017-02-14  Martin Liska  <mliska@suse.cz>
7757         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
7758         vector.  Fix trailing white spaces.
7760 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
7762         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
7763         HFmode.
7765 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7767         PR rtl-optimization/68664
7768         * config/arm/arm.c (arm_sched_can_speculate_insn):
7769         New function.  Declare prototype.
7770         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
7772 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7774         PR rtl-optimization/68664
7775         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
7776         New function.
7777         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
7779 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
7781         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
7782         max skip bytes for function, loop and jump.
7784 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7786         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
7787         ABS_EXPR for gimple dump.
7789 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
7791         PR target/79462
7792         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
7794         PR tree-optimization/79408
7795         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
7796         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
7797         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
7798         also if rhs1 is INTEGER_CST.
7800 2017-02-14  Richard Biener  <rguenther@suse.de>
7802         PR middle-end/79432
7803         * tree-into-ssa.c (insert_phi_nodes): When the function can
7804         have abnormal edges rewrite SSA names with broken use-def
7805         dominance out of SSA and register them for PHI insertion.
7807 2017-02-13  Martin Sebor  <msebor@redhat.com>
7809         PR middle-end/79496
7810         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
7811         clearing info.nowrite flag when snprintf size argument is a range.
7813 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
7815         * cprop.c (cprop_jump): Add missing space in string literal.
7816         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
7817         (get_constraint_for_component_ref): Likewise.
7818         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
7819         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
7820         * lra-constraints.c (process_alt_operands): Likewise.
7821         * ipa-inline.c (inline_small_functions): Likewise.
7822         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
7823         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7824         * trans-mem.c (diagnose_tm_1_op): Likewise.
7825         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
7826         (grid_parallel_clauses_gridifiable): Likewise.
7828         * config/nvptx/mkoffload.c (process): Add space in between
7829         , and %d.
7831         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
7832         "MOD4_SSE_REGS" and "ALL_REGS".
7834         * spellcheck.c (test_data): Add , in between "foo" and "food".
7836 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7838         PR target/79449
7839         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
7840         boundary crossing check and subsequent code generation agree.
7842 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7844         * config/aarch64/aarch64.c (has_memory_op): Delete.
7845         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
7846         has_memory_op.
7848 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
7850         PR rtl-optimization/79388
7851         PR rtl-optimization/79450
7852         * combine.c (distribute_notes): When removing TEM_INSN for which
7853         corresponding dest has last value recorded, invalidate that last
7854         value.
7856 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7858         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
7859         of explicit '@'.  Add missing assembly comment marker on branch costs
7860         printout.
7862 2017-02-13  Nathan Sidwell  <nathan@acm.org>
7864         * gengtype-lex.l (<in_struct>): Add '/'.
7866 2017-02-13  Martin Liska  <mliska@suse.cz>
7868         PR c/79471
7869         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
7871 2017-02-13  Richard Biener  <rguenther@suse.de>
7873         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
7874         Remove.
7875         * configure: Re-generate.
7876         * config.in: Likewise.
7877         * graphite-dependences.c: Simplify as if
7878         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
7879         * graphite-isl-ast-to-gimple.c: Likewise.
7880         * graphite-optimize-isl.c: Likewise.
7881         * graphite-poly.c: Likewise.
7882         * graphite-sese-to-poly.c: Likewise.
7883         * graphite.h: Likewise.
7884         * toplev.c: Include isl/version.h and use isl_version () for
7885         printing the ISL version.
7886         * doc/install.texi: Update ISL requirement.
7888 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
7890         * doc/standards.texi (Standards): Update reference to
7891         Objective-C 2.0.
7893 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
7895         * doc/extend.texi (Named Address Spaces): sourceware.org now
7896         defaults to https.
7897         * doc/install.texi (Binaries): Ditto.
7898         (Specific): Ditto.
7900 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
7902         * doc/cpp.texi: Replace "stringify"/"stringification" with C
7903         standard terminology "stringize"/"stringizing" throughout.
7904         * doc/cppinternals.texi: Likewise.
7906 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
7908         * doc/extend.texi: Fix some spelling mistakes and typos.
7909         * doc/invoke.texi: Likewise.
7911 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
7913         PR ipa/79224
7914         * params.def (inline-min-speedup) Change from 10 to 8.
7916 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
7918         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
7919         4.5.
7921 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
7923         PR ipa/79224
7924         * ipa-inline-analysis.c (get_minimal_bb): New function.
7925         (record_modified): Use it.
7926         (remap_edge_change_prob): Handle also ancestor functions.
7928 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
7930         * doc/contrib.texi (Contributors): Remove broken link into
7931         the Mauve CVS repository.
7933 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
7935         PR middle-end/79454
7936         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
7937         result computation whenever lhs doesn't have vector mode, not
7938         just when it has BLKmode.
7940 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
7942         * doc/makefile.texi (profiledbootstrap): Refer to the
7943         installation instructions only in textual form.
7945 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7947         PR target/79295
7948         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
7950 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
7952         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
7953         (Specific): Update mingw-w64 reference.
7954         (Binaries): Ditto.
7955         (Specific): Remove broken link to Renesas RX processor.
7957 2017-02-10  Richard Biener  <rguenther@suse.de>
7959         * toplev.c (process_options): Do not mention obsolete graphite
7960         options when printing sorry message about missing graphite support.
7961         Mention -floop-nest-optimize.
7963 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
7965         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
7966         (vtst_p16): Likewise.
7967         (vtstq_p8): Likewise.
7968         (vtstq_p16): Likewise.
7969         (vtst_p64): New.
7970         (vtstq_p64): Likewise.
7971         * config/arm/arm_neon.h (vgetq_lane_p64): New.
7972         (vset_lane_p64): New.
7973         (vsetq_lane_p64): New.
7975 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
7977         PR tree-optimization/79411
7978         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
7979         stmt operands are SSA_NAMEs used in abnormal phis.
7980         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
7981         phis.
7983 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
7985         PR ipa/70795
7986         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
7987         flag if needed.
7989 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
7991         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
7993 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
7995         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
7996         to avoid warning.
7998         PR c/79413
7999         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
8000         not arbitrary TREE_CONSTANT.
8002         PR c/79431
8003         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
8004         "omp declare target link" attribute unless is_global_var.
8005         * omp-offload.c (find_link_var_op): Likewise.
8007 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
8008             Chung-Lin Tang  <cltang@codesourcery.com>
8010         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
8011         OMP_CLAUSE_TILE.
8012         (gimplify_adjust_omp_clauses): Don't delete TILE.
8013         (gimplify_omp_for): Deal with TILE.
8014         * internal-fn.c (expand_GOACC_TILE): New function.
8015         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
8016         (GOACC_TILE): New.
8017         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
8018         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
8019         element fields.
8020         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
8021         avoid DIV for outermost collapse var.
8022         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
8023         Remove out of date comments, fix whitespace.
8024         * omp-general.c (omp_extract_for_data): Deal with tiling.
8025         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
8026         adjust OLF_DIM_BASE value.
8027         (struct omp_for_data): Add tiling field.
8028         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
8029         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
8030         for auto loops.  Remove default auto determining, moved to
8031         oacc_loop_fixed_partitions.
8032         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
8033         stmts, add e_mask field.
8034         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
8035         (oacc_thread_numbers): Use oacc_dim_call.
8036         (oacc_xform_tile): New.
8037         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
8038         (finish_oacc_loop): Adjust for ifns vector.
8039         (oacc_loop_discover_walk): Append loop abstraction sites to list,
8040         add case for GOACC_TILE fns.
8041         (oacc_loop_xform_loop): Delete.
8042         (oacc_loop_process): Iterate over call list directly, and add
8043         handling for GOACC_TILE fns.
8044         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
8045         dump partitioning.
8046         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
8047         vector partitioning to outer loops.  Assign 2 partitions to loops
8048         when available. Add TILE handling.
8049         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
8050         (execite_oacc_device_lower): Process GOACC_TILE fns,
8051         ignore unknown specs.
8052         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
8053         * tree.c (omp_clause_num_ops): Adjust TILE ops.
8054         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
8056 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
8058         * configure.ac (ACX_BUGURL): Update.
8059         * configure: Regenerate.
8061 2017-02-09  Richard Biener  <rguenther@suse.de>
8063         PR tree-optimization/69823
8064         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
8065         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
8067 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
8069         * config/arc/arc-c.def: Add __NPS400__ definition.
8070         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
8071         (TARGET_NPS400): Define.
8073 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
8075         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
8076         file.
8077         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
8078         pointer, arch_info.
8079         (arc_cpu_types): Fill the arch_info field with a pointer into the
8080         arc_arch_types table.
8081         (arc_selected_cpu): Declare.
8082         * config/arc/arc.c (arc_selected_cpu): Make global.
8083         (arc_selected_arch): Delete.
8084         (arc_base_cpu): Delete.
8085         (arc_override_options): Remove references to deleted variables,
8086         update access to arch information.
8087         (ARC_OPT): Update access to arch information.
8088         (ARC_OPTX): Likewise.
8089         * config/arc/arc.h (arc_base_cpu): Remove declaration.
8090         (TARGET_ARC600): Update access to arch information.
8091         (TARGET_ARC601): Likewise.
8092         (TARGET_ARC700): Likewise.
8093         (TARGET_EM): Likewise.
8094         (TARGET_HS): Likewise.
8095         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
8096         information.
8098 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
8100         PR target/78604
8101         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
8102         condition/operands for integer GE/LE/GEU/LEU operations.
8104 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
8106         PR translation/79397
8107         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
8108         of AltiVec.
8110 2017-02-08  Martin Jambor  <mjambor@suse.cz>
8112         PR ipa/79375
8113         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
8114         whether allocation happened.
8115         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
8116         nothing was allocated.
8118 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
8120         PR tree-optimization/79408
8121         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
8122         constant, but SSA_NAME with a known integer range, use the minimum
8123         of that range instead of op1 to determine if modulo can be replaced
8124         with its first operand.
8126 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8128         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
8130 2017-02-08  Richard Biener  <rguenther@suse.de>
8132         PR tree-optimization/71824
8133         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
8134         Check all loops contained in the merged region.
8136 2017-02-07  Andrew Pinski  <apinski@cavium.com>
8138         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
8140 2017-02-07  Andrew Pinski  <apinski@cavium.com>
8142         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
8143         (thunderxt88): Likewise.
8144         (thunderxt81): Disable LSE and change v8.1 to v8.
8145         (thunderxt83): Likewise.
8147 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
8148             Richard Biener  <rguenther@suse.de>
8150         PR middle-end/79399
8151         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
8152         type from int to size_t.
8153         * ira-costs.c (struct_costs_size): Change type from int to size_t.
8155 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
8157         PR rtl-optimization/79386
8158         * cprop.c (bypass_conditional_jumps): Initialize
8159         bypass_last_basic_block already before splitting bbs after
8160         unconditional traps...
8161         (bypass_conditional_jumps): ... rather than here.
8163         PR target/79299
8164         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
8165         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
8166         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
8167         fix -masm=intel patterns.
8169 2017-02-07  Richard Biener  <rguenther@suse.de>
8171         PR tree-optimization/79256
8172         PR middle-end/79278
8173         * builtins.c (get_object_alignment_2): Use min_align_of_type
8174         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
8175         and ADJUST_FIELD_ALIGN.
8177         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
8178         type parameter.
8179         * doc/tm.texi: Regenerate.
8180         * stor-layout.c (layout_decl): Adjust.
8181         (update_alignment_for_field): Likewise.
8182         (place_field): Likewise.
8183         (min_align_of_type): Likewise.
8184         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
8185         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
8186         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
8187         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
8188         * config/frv/frv.c (frv_adjust_field_align): Likewise.
8189         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
8190         * config/i386/i386.c (x86_field_alignment): Likewise.
8191         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
8192         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
8193         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8194         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8195         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
8196         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
8197          Likewise.
8199         Revert
8200         2017-01-30  Richard Biener  <rguenther@suse.de>
8202         PR tree-optimization/79256
8203         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
8204         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
8205         alignment on TYPE.
8207 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
8209         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
8210         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
8211         builtins to SImode and emit a zero-extend, if necessary.
8213 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
8215         * docs/invoke.texi (RISC-V Options): Alphabetize.
8217 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
8219         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
8220         options.
8222 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
8224         * config/riscv/riscv.c: New file.
8225         * gcc/common/config/riscv/riscv-common.c: Likewise.
8226         * config.gcc: Likewise.
8227         * config/riscv/constraints.md: Likewise.
8228         * config/riscv/elf.h: Likewise.
8229         * config/riscv/generic.md: Likewise.
8230         * config/riscv/linux.h: Likewise.
8231         * config/riscv/multilib-generator: Likewise.
8232         * config/riscv/peephole.md: Likewise.
8233         * config/riscv/pic.md: Likewise.
8234         * config/riscv/predicates.md: Likewise.
8235         * config/riscv/riscv-builtins.c: Likewise.
8236         * config/riscv/riscv-c.c: Likewise.
8237         * config/riscv/riscv-ftypes.def: Likewise.
8238         * config/riscv/riscv-modes.def: Likewise.
8239         * config/riscv/riscv-opts.h: Likewise.
8240         * config/riscv/riscv-protos.h: Likewise.
8241         * config/riscv/riscv.h: Likewise.
8242         * config/riscv/riscv.md: Likewise.
8243         * config/riscv/riscv.opt: Likewise.
8244         * config/riscv/sync.md: Likewise.
8245         * config/riscv/t-elf-multilib: Likewise.
8246         * config/riscv/t-linux: Likewise.
8247         * config/riscv/t-linux-multilib: Likewise.
8248         * config/riscv/t-riscv: Likewise.
8249         * configure.ac: Likewise.
8250         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
8251         Waterman as RISC-V maintainers.
8252         * doc/install.texi: Add RISC-V entries.
8253         * doc/invoke.texi: Add RISC-V options section.
8254         * doc/md.texi: Add RISC-V constraints section.
8255         * configure: Regenerated.
8257 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
8259         PR target/66144
8260         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
8261         false values to be constant vectors with all 0 or all 1 bits set.
8262         (vcondu<mode><mode>): Likewise.
8263         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
8264         predicate.
8265         (fpmask_comparison_operator): Update comment.
8266         (vecint_comparison_operator): New predicate.
8267         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
8268         vector conditionals when the true and false values are constant
8269         vectors with all 0 bits or all 1 bits set.
8271 2017-02-06  Martin Sebor  <msebor@redhat.com>
8273         PR  tree-optimization/79376
8274         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
8276 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
8278         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
8279         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
8280         to simplify split condition.
8282 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
8284         * omp-expand.c (oxpand_omp_atomic_fetch_op,
8285         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
8286         false.
8288 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
8290         PR rtl-optimization/68664
8291         * target.def (can_speculate_insn): New hook.
8292         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
8293         * doc/tm.texi: Regenerate.
8294         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
8295         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
8296         (rs6000_sched_can_speculate_insn): New function.
8298 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
8300         PR tree-optimization/79284
8301         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
8302         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
8303         vectorizable_mask_load_store, vectorizable_operation,
8304         vect_is_simple_cond, get_same_sized_vectype): Use it instead
8305         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
8306         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
8307         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
8308         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
8309         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8310         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
8311         is_gimple_assign (stmt).  Replace another such test with
8312         is_gimple_assign (stmt).
8314 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
8316         PR target/78883
8317         * config/avr/avr.c (rtl-iter.h): Include it.
8318         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
8319         (avr_legitimate_combined_insn): ...and implementation.
8321 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8323         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
8324         * config/s390/s390.c (s390_const_operand_ok)
8325         (s390_canonicalize_comparison, s390_extract_part)
8326         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
8327         (s390_contiguous_bitmask_p, s390_rtx_costs)
8328         (legitimize_pic_address): Likewise.
8329         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
8330         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
8331         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
8332         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
8333         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
8335 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
8337         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
8338         REGNO($0) == REGNO($1).
8340 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8342         * config/s390/linux.h(SIZE_TYPE): Add comment.
8344 2017-02-06  Julian Brown  <julian@codesourcery.com>
8345             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
8346             Virendra Pathak  <virendra.pathak@broadcom.com>
8348         * config/aarch64/aarch64-cores.def: Change the scheduler
8349         to Thunderx2t99.
8350         * config/aarch64/aarch64.md: Include thunderx2t99.md.
8351         * config/aarch64/thunderx2t99.md: New file.
8353 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
8355         * doc/standards.texi (Go Language): Update link to language
8356         standard.
8358 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
8360         * tree-eh.c (lower_resx): Sanitize profile.
8361         (cleanup_empty_eh_move_lp): Likewise.
8363 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
8365         PR tree-ssa/79347
8366         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
8367         ELSE_PROB.
8368         * cfgloopmanip.h (loop_version): Update prototype.
8369         * modulo-sched.c (sms_schedule): Update call of loop_version.
8370         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
8371         * tree-parloops.c (gen_parallel_loop): Likewise.
8372         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
8373         * tree-ssa-loop-split.c (split_loop): Likewise.
8374         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
8375         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
8377 2017-02-05  Martin Liska  <mliska@suse.cz>
8379         PR bootstrap/78985
8380         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
8381         variable to NULL.
8382         (print_operand_address): Initialize a struct to zero.
8384 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
8386         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
8387         garbage collector only in textual form.
8389 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
8391         * doc/extend.texi (x86 specific memory model extensions for
8392         transactional memory): Simplify a phrase.
8394 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
8396         PR target/79353
8397         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
8398         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
8399         (atomic_storedi_1): Likewise.
8401 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
8403         PR tree-optimization/79338
8404         * tree-parloops.c (gather_scalar_reductions): Don't call
8405         vect_analyze_loop_form for loop->inner before destroying loop's
8406         loop_vinfo.
8408 2017-02-03  Martin Sebor  <msebor@redhat.com>
8410         PR tree-optimization/79327
8411         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
8412         when precision has resulted in leading zeros.
8413         (format_integer): Adjust the likely counter to assume an unknown
8414         argument that may be zero is non-zero.
8416 2017-02-03  Jason Merrill  <jason@redhat.com>
8418         PR c++/78689
8419         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
8420         avoid copying non-taken branch.
8422 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
8424         PR tree-optimization/79340
8425         * tree-vect-loop.c (vectorizable_reduction): Release
8426         vec_defs elements after safe_splicing them into other vectors.
8427         Formatting fixes.
8429         PR tree-optimization/79327
8430         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
8431         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
8432         dirtype.
8433         (format_integer): Use wide_int_to_tree instead of build_int_cst
8434         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
8435         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
8436         of shortest and longest sequence.
8438 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
8440         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
8441         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
8443 2017-02-03  Walter Lee  <walt@tilera.com>
8445         PR target/78862
8446         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
8447         after initial stackframe link reg save.
8448         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
8450 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
8452         PR target/79354
8453         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
8454         wu for stxssp alternative.
8456 2017-02-03  Martin Sebor  <msebor@redhat.com>
8458         PR tree-optimization/79352
8459         * gimple-fold.c (get_range_strlen): Add argument.
8460         (get_range_strlen): Change return type to bool.
8461         (get_maxval_strlen): Pass in a dummy argument.
8462         * gimple-fold.h (get_range_strlen): Change return type to bool.
8463         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
8464         * tree.h (array_at_struct_end_p): Add argument.
8465         * tree.c (array_at_struct_end_p): Handle it.
8467 2017-02-03  Martin Liska  <mliska@suse.cz>
8469         PR lto/66295
8470         * multiple_target.c (create_dispatcher_calls): Redirect edge
8471         from a caller of a dispatcher.
8472         (expand_target_clones): Make the clones local.
8473         (ipa_target_clone): Do both target clones and resolvers.
8474         (ipa_dispatcher_calls): Remove the pass.
8475         (pass_dispatcher_calls::gate): Likewise.
8476         (make_pass_dispatcher_calls): Likewise.
8477         * passes.def (pass_target_clone): Put as very first IPA early
8478         pass.
8480 2017-02-03  Martin Liska  <mliska@suse.cz>
8482         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
8483         in case of a function with ifunc attribute.
8485 2017-02-03  Martin Liska  <mliska@suse.cz>
8487         * cgraph.c (cgraph_node::dump): Dump function version info.
8488         * symtab.c (symtab_node::dump_base): Add missing new line.
8490 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
8492         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
8493         (ifcombine_ifandif): Use it.
8495 2017-02-03  Martin Liska  <mliska@suse.cz>
8497         * doc/invoke.texi: Document default value for
8498         use-after-scope-direct-emission-threshold.
8500 2017-02-03  Martin Liska  <mliska@suse.cz>
8502         PR tree-optimization/79339
8503         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
8504         (format_floating): Likewise.
8506 2017-02-03  Martin Liska  <mliska@suse.cz>
8508         PR ipa/79337
8509         * ipa-prop.c (ipa_node_params_t::insert): Remove current
8510         implementation.
8511         (ipa_node_params_t::remove): Likewise.
8512         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
8513         initialization from removed ipa_node_params_t::insert.
8514         (ipa_node_params::~ipa_node_params): Move from removed
8515         ipa_node_params_t::release.
8516         * symbol-summary.h (symbol_summary::m_released): New member.
8517         Do not release a summary twice.  Do not allow to call finalizer
8518         for types of a summary that live in GGC memory.
8520 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
8522         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
8523         cmp_branch fusion.
8525 2017-02-02  Martin Sebor  <msebor@redhat.com>
8527         PR middle-end/79275
8528         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
8529         (format_string): Tighten up the range of output for non-constant
8530         strings and correct the expected range for wide non-constant strings.
8532 2017-02-02  Martin Sebor  <msebor@redhat.com>
8534         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
8536         PR middle-end/32003
8537         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
8538         index.
8539         (-fdump-tree-@var): Add to index and document how to come up
8540         with pass-specific option and dump file names.
8541         (-fdump-passes): Clarify where to look for output.
8543 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
8545         PR middle-end/77445
8546         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
8547         statistics of the analyzed path; allow threading for speed when
8548         any of BBs along the path are optimized for speed.
8550 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
8552         PR middle-end/78468
8553         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
8554         settings of the virtual registers.
8556         Revert again
8557         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8559         * explow.c (get_dynamic_stack_size): Take known alignment of stack
8560         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
8561         needed.
8563 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8565         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
8566         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
8568 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8570         * config/s390/s390.md: Add missing comments with the expanded
8571         mnemonics.
8572         * config/s390/vector.md: Likewise.
8573         * config/s390/vx-builtins.md: Likewise.
8575 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
8577         PR target/79197
8578         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
8579         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
8580         conditions on a single line.
8582 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8584         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
8585         __S390_VX__ to __VX__.
8587 2017-02-01  Andrew Pinski  <apinski@cavium.com>
8589         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
8590         stmt_info to record_stmt_cost.
8591         (vect_get_known_peeling_cost): Pass stmt_info if known to
8592         record_stmt_cost.
8593         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
8594         cpu_vector_cost field into
8595         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
8596         field into vec_int_stmt_cost and vec_fp_stmt_cost.
8597         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
8598         splitting of scalar_stmt_cost and vec_stmt_cost.
8599         (thunderx_vector_cost): Likewise.
8600         (cortexa57_vector_cost): LIkewise.
8601         (exynosm1_vector_cost): Likewise.
8602         (xgene1_vector_cost): Likewise.
8603         (thunderx2t99_vector_cost): Improve after the splitting of the two
8604         fields.
8605         (aarch64_builtin_vectorization_cost): Update for the splitting of
8606         scalar_stmt_cost and vec_stmt_cost.
8608 2017-02-01  Torvald Riegel  <triegel@redhat.com>
8609             Richard Henderson  <rth@redhat.com>
8611         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
8612         conditional on existance of a fast atomic load.
8613         * optabs-query.c (can_atomic_load_p): New function.
8614         * optabs-query.h (can_atomic_load_p): Declare it.
8615         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
8616         no fast atomic load is available for the particular size of access.
8617         (expand_atomic_compare_and_swap): Likewise.
8618         (expand_atomic_load): Likewise.
8619         (expand_atomic_store): Likewise.
8620         (expand_atomic_fetch_op): Likewise.
8621         * testsuite/lib/target-supports.exp
8622         (check_effective_target_sync_int_128): Remove x86 because it provides
8623         no fast atomic load.
8624         (check_effective_target_sync_int_128_runtime): Likewise.
8626 2017-02-01  Richard Biener  <rguenther@suse.de>
8628         * graphite.c: Include tree-vectorizer.h for find_loop_location.
8629         (graphite_transform_loops): Provide opt-info for optimized nests.
8630         * tree-parloop.c (parallelize_loops): Provide opt-info for
8631         parallelized loops.
8633 2017-02-01  Richard Biener  <rguenther@suse.de>
8635         PR middle-end/79315
8636         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
8637         was not set before.
8639 2017-02-01  Richard Biener  <rguenther@suse.de>
8641         PR tree-optimization/71824
8642         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
8643         Verify the loops are valid in the merged SESE region.
8644         (scop_detection::can_represent_loop_1): Check analyzing the
8645         evolution of the number of iterations in the region succeeds.
8647 2017-01-31  Ian Lance Taylor  <iant@golang.org>
8649         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
8650         REG_ARGS_SIZE note to 32-bit push insns and call insn.
8652 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
8654         PR preprocessor/79210
8655         * input.c (get_substring_ranges_for_loc): Replace line_width
8656         assertion with error-handling.
8658 2017-01-31  Richard Biener  <rguenther@suse.de>
8660         PR tree-optimization/77318
8661         * graphite-sese-to-poly.c (extract_affine): Fix assert.
8662         (create_pw_aff_from_tree): Take loop parameter.
8663         (add_condition_to_pbb): Pass loop of the condition to
8664         create_pw_aff_from_tree.
8666 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
8668         * config/s390/s390.c (s390_asan_shadow_offset): New function.
8669         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
8671 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
8673         PR target/78597
8674         PR target/79038
8675         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
8676         no longer used.
8677         (convert_int_to_float128): Likewise.
8678         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
8679         (convert_int_to_float128): Likewise.
8680         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
8681         (UNSPEC_IEEE128_CONVERT): Likewise.
8682         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
8683         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
8684         Use local variables for IBM extended format.
8685         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
8686         (fix_trunc<mode>si2_fprs): Likewise.
8687         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
8688         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
8689         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
8690         to know that we can now have integers of all sizes in vector
8691         registers.
8692         (fix<uns>_<mode>di2_hw): Likewise.
8693         (float<uns>_<mode>si2_hw): Likewise.
8694         (fix_<mode>si2_hw): Likewise.
8695         (fixuns_<mode>si2_hw): Likewise.
8696         (float<uns>_<mode>di2_hw): Likewise.
8697         (float_<mode>di2_hw): Likewise.
8698         (float_<mode>si2_hw): Likewise.
8699         (floatuns_<mode>di2_hw): Likewise.
8700         (floatuns_<mode>si2_hw): Likewise.
8701         (xscvqp<su>wz_<mode>): Delete, no longer used.
8702         (xscvqp<su>dz_<mode>): Likewise.
8703         (xscv<su>dqp_<mode>): Likewise.
8704         (ieee128_mfvsrd_64bit): Likewise.
8705         (ieee128_mfvsrd_32bit): Likewise.
8706         (ieee128_mfvsrwz): Likewise.
8707         (ieee128_mtvsrw): Likewise.
8708         (ieee128_mtvsrd_64bit): Likewise.
8709         (ieee128_mtvsrd_32bit): Likewise.
8711 2017-01-31  Martin Liska  <mliska@suse.cz>
8713         PR ipa/79285
8714         * ipa-prop.c (ipa_free_all_node_params): Call release method
8715         instead of ~sumbol_summary to not to trigger double times
8716         dtor of hash_map.
8718 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
8720         PR tree-optimization/71691
8721         * bitmap.h (class auto_bitmap): New.
8722         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
8723         is_maybe_undefined instead of ssa_undefined_value_p.
8725 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8727         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
8728         __S390_ARCH_LEVEL__ to __ARCH__.
8730 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
8732         PR tree-optimization/79267
8733         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
8734         if should_remove_lhs_p is true.
8736 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
8738         PR debug/63238
8739         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
8740         (add_alignment_attribute): New.
8741         (base_type_die): Add alignment attribute.
8742         (subrange_type_die): Likewise.
8743         (modified_type_die): Likewise.
8744         (gen_array_type_die): Likewise.
8745         (gen_descr_array_type_die: Likewise.
8746         (gen_enumeration_type_die): Likewise.
8747         (gen_subprogram_die): Likewise.
8748         (gen_variable_die): Likewise.
8749         (gen_field_die): Likewise.
8750         (gen_ptr_to_mbr_type_die): Likewise.
8751         (gen_struct_or_union_type_die): Likewise.
8752         (gen_subroutine_type_die): Likewise.
8753         (gen_typedef_die): Likewise.
8754         (base_type_cmp): Compare alignment attribute.
8756 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8758         PR target/79170
8759         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
8760         (setb_unsigned) New pattern for setb with CCUNS.
8761         * config/rs6000/rs6000.c (expand_block_compare): Use a different
8762         subfc./subfe sequence to avoid overflow problems.  Generate a
8763         shorter sequence with cmpld/setb for power9.
8764         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
8765         for generating subfc. instruction.
8766         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
8767         now uses this instruction.
8769 2017-01-30  Ian Lance Taylor  <iant@google.com>
8771         PR debug/79289
8772         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
8773         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
8775 2017-01-30  Martin Sebor  <msebor@redhat.com>
8777         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
8778         Move constant to the right of a relational operator.
8779         (get_mpfr_format_length, format_character, format_string): Ditto.
8780         (should_warn_p, maybe_warn): Same.
8782         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
8784 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
8786         PR lto/79061
8787         * asan.c (get_translation_unit_decl): Remove function.
8788         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
8790 2017-01-30  Martin Liska  <mliska@suse.cz>
8792         PR gcov-profile/79259
8793         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
8794         -fprofile-generate.
8796 2017-01-30  Martin Liska  <mliska@suse.cz>
8798         PR bootstrap/78985
8799         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
8800         Initialize variables with NULL value.
8802 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
8804         PR target/79260
8805         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
8806         tm_p_file.
8807         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
8809 2017-01-30  Richard Biener  <rguenther@suse.de>
8811         PR tree-optimization/79276
8812         * tree-vrp.c (process_assert_insertions): Properly adjust common
8813         when removing a duplicate.
8815         * gcc.dg/torture/pr79276.c: New testcase.
8817 2017-01-30  Richard Biener  <rguenther@suse.de>
8819         PR tree-optimization/79256
8820         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
8821         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
8822         alignment on TYPE.
8823         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
8825 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8827         PR target/79240
8828         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
8829         ("*r<noxa>sbg_<mode>_sll_bitmask")
8830         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
8831         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
8832         Use contiguous_bitmask_nowrap_operand.
8834 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8836         PR target/79268
8837         * config/rs6000/altivec.h (vec_xl): Revise #define.
8838         (vec_xst): Likewise.
8840 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
8842         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
8844 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
8846         PR rtl-optimization/79194
8847         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
8848         traps before call to bypass_conditional_jumps.
8850 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
8852         PR tree-optimization/71374
8853         * lra-constraints.c (check_conflict_input_operands): New.
8854         (match_reload): Use it.
8856 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
8858         PR target/79131
8859         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
8860         account to calculate conflict_set.
8862 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
8864         PR rtl-optimization/78559
8865         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
8866         other_insn in combine.
8868 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
8870         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
8871         uint16_type_node for BT_UINT16.
8873 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
8875         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
8876         "RTL Tests" to menu.
8877         (GIMPLE Tests): New node.
8878         (RTL Tests): New node.
8880 2017-01-27  Richard Biener  <rguenther@suse.de>
8882         PR tree-optimization/79245
8883         * tree-loop-distribution.c (distribute_loop): Apply cost
8884         modeling also to detected patterns.
8886 2017-01-27  Richard Biener  <rguenther@suse.de>
8888         PR tree-optimization/71433
8889         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
8890         (compare_assert_loc): New function.
8891         (process_assert_insertions): Sort and optimize assert locations
8892         to remove duplicates and push down identical assertions on
8893         edges to their destination block.
8895 2017-01-27  Richard Biener  <rguenther@suse.de>
8897         PR tree-optimization/79244
8898         * tree-vrp.c (remove_range_assertions): Forcefully propagate
8899         out SSA names even if abnormal.
8901 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
8903         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
8904         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
8905         instead of MPFR_RNDN.
8907 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
8909         PR target/79239
8910         * arm.c (arm_option_override): Don't call build_target_option_node
8911         until after doing all option overrides.
8912         (arm_valid_target_attribute_tree): Likewise.
8914 2017-01-27  Martin Liska  <mliska@suse.cz>
8916         * doc/invoke.texi (-fprofile-arcs): Document profiling support
8917         for {cd}tors and C++ {cd}tors.
8919 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8921         * config/s390/s390.md ("*setmem_long_and")
8922         ("*setmem_long_and_31z"): Use zero_extend instead of and.
8924 2017-01-26  Martin Sebor  <msebor@redhat.com>
8926         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
8927         of precision.
8929 2017-01-26  Martin Sebor  <msebor@redhat.com>
8931         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
8932         HAVE_DFmode before using XFmode or DFmode.
8933         (parse_directive): Avoid using the z length modifier to avoid
8934         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
8936         PR middle-end/78703
8937         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
8938         to accept adjustment as an array.
8939         (get_int_range): New function.
8940         (struct directive): Make width and prec arrays.
8941         (directive::set_width, directive::set_precision): Call get_int_range.
8942         (format_integer, format_floating): Handle width and precision ranges.
8943         (format_string, parse_directive): Same.
8945 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
8947         PR debug/79129
8948         * dwarf2out.c (generate_skeleton_bottom_up): For children with
8949         comdat_type_p set, just clone them, but keep the children in the
8950         original DIE.
8952         PR debug/78835
8953         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
8954         which have direct callers with -fvar-tracking-assignments enabled
8955         in the current TU.
8956         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
8957         inside of type units.
8959 2017-01-26  Martin Sebor  <msebor@redhat.com>
8961         PR middle-end/78703
8962         * gimple-ssa-sprintf.c (struct result_range): Add likely and
8963         unlikely counters.
8964         (struct format_result): Replace number_chars, number_chars_min,
8965         and number_chars_max with a single member of struct result_range.
8966         Remove bounded.
8967         (format_result::operator+=): Adjust.
8968         (struct fmtresult): Remove bounded.  Handle likely and unlikely
8969         counters.
8970         (fmtresult::adjust_for_width_or_precision): New function.
8971         (fmtresult:type_max_digits): New function.
8972         (bytes_remaining): Handle likely and unlikely counters.
8973         (min_bytes_remaining): Remove.
8974         (format_percent): Simplify.
8975         (format_integer, format_floating): Set likely and unlikely counters.
8976         (get_string_length, format_character, format_string): Same.
8977         (format_plain, should_warn_p): New function.
8978         (maybe_warn): Call should_warn_p.  Update diagnostic messages
8979         and handle those for all directives, including plain strings.
8980         (format_directive): Handle likely and unlikely counters.
8981         Remove unnecessary quoting from diagnostics.  Add an informational
8982         note.
8983         (add_bytes): Remove.
8984         (pass_sprintf_length::compute_format_length): Simplify.
8985         (try_substitute_return_value): Handle likely and unlikely counters.
8987 2017-01-26  Carl Love  <cel@us.ibm.com>
8989         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
8990         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
8992 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
8994         PR target/79131
8995         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
8996         endianess for subregs into account.
8997         * lra-constraints.c (lra_constraints): Do risky transformations
8998         always on the first iteration.
8999         * lra-lives.c (check_pseudos_live_through_calls): Add arg
9000         last_call_used_reg_set.
9001         (process_bb_lives): Define and use last_call_used_reg_set.
9002         * lra.c (lra): Always continue after lra_constraints on the first
9003         iteration.
9005 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
9007         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
9008         constant.
9009         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
9011 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
9013         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
9014         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
9015         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
9016         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
9017         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
9018         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
9019         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
9020         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
9021         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
9023 2017-01-26  Marek Polacek  <polacek@redhat.com>
9025         PR c/79199
9026         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
9027         for the third operand.
9029 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
9031         PR middle-end/79236
9032         * omp-low.c (struct omp_context): Add simt_stmt field.
9033         (scan_omp_for): Return omp_context *.
9034         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
9035         context to the _simt_ SIMD stmt.
9036         (lower_omp_for): For combined SIMD with sibling _simt_
9037         SIMD, make sure to use the same decls in _looptemp_
9038         clauses as in the sibling.
9040 2017-01-26  David Sherwood  <david.sherwood@arm.com>
9042         PR middle-end/79212
9043         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
9044         all contexts.
9046 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
9048         PR target/70465
9049         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
9050         emit fld b; fld a; if possible.
9052         * brig-builtins.def: Update copyright years.
9053         * config/arm/arm_acle_builtins.def: Update copyright years.
9055 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
9057         PR target/79179
9058         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
9059         constraint instead of o for the stxsd instruction.
9061 2017-01-25  Carl Love  <cel@us.ibm.com>
9063         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
9064         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
9066 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
9068         * doc/invoke.texi (C++ Dialect Options): Fix typo.
9070 2017-01-25  Richard Biener  <rguenther@suse.de>
9072         PR tree-optimization/69264
9073         * target.def (vector_alignment_reachable): Improve documentation.
9074         * doc/tm.texi: Regenerate.
9075         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
9076         and add a comment.
9077         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
9078         earlier changes with respect to TYPE_USER_ALIGN.
9079         (vector_alignment_reachable_p): Likewise.  Improve dumping.
9081 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9083         PR target/79145
9084         * config/arm/arm.md (xordi3): Force constant operand into a register
9085         for TARGET_IWMMXT.
9087 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9089         * doc/invoke.texi (-fstore-merging): Correct default optimization
9090         levels at which it is enabled.
9091         (-O): Move -fstore-merging from list to...
9092         (-O2): ... Here.
9094 2017-01-25  Richard Biener  <rguenther@suse.de>
9096         PR debug/78363
9097         * omp-expand.c: Include debug.h.
9098         (expand_omp_taskreg): Make sure to generate early debug before
9099         outlining anything from a function.
9100         (expand_omp_target): Likewise.
9101         (grid_expand_target_grid_body): Likewise.
9103 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
9105         PR lto/79061
9106         * asan.c (get_translation_unit_decl): New function.
9107         (asan_add_global): Extract modules file name from globals
9108         TRANSLATION_UNIT_DECL name.
9110 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
9112         PR target/77439
9113         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
9114         for long calls with APCS frame and VFP.
9116 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
9118         * cfg.c (original_copy_tables_initialized_p): New function.
9119         * cfg.h (original_copy_tables_initialized_p): New decl.
9120         * cfgrtl.c (relink_block_chain): Guard the call to
9121         free_original_copy_tables with a call to
9122         original_copy_tables_initialized_p.
9123         * cgraph.h (symtab_node::native_rtl_p): New decl.
9124         * cgraphunit.c (symtab_node::native_rtl_p): New function.
9125         (symtab_node::needed_p): Don't assert for early assembly output
9126         for __RTL functions.
9127         (cgraph_node::finalize_function): Set "force_output" for __RTL
9128         functions.
9129         (cgraph_node::analyze): Bail out early for __RTL functions.
9130         (analyze_functions): Update assertion to support __RTL functions.
9131         (cgraph_node::expand): Bail out early for __RTL functions.
9132         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
9133         __RTL functions.
9134         * function.h (struct function): Update comment for field
9135         "pass_startwith".
9136         * gimple-expr.c: Include "tree-pass.h".
9137         (gimple_has_body_p): Return false for __RTL functions.
9138         * Makefile.in (OBJS): Add run-rtl-passes.o.
9139         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
9140         accessor.
9141         (gcc::pass_manager::get_clean_slate): New accessor.
9142         * passes.c: Include "insn-addr.h".
9143         (should_skip_pass_p): Add logging.  Update logic for running
9144         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
9145         property-provider override so it is only done for gimple passes.
9146         Don't skip dfinit.
9147         (skip_pass): New function.
9148         (execute_one_pass): Call skip_pass when skipping passes.
9149         * read-md.c (md_reader::read_char): Support filtering
9150         the input to a subset of line numbers.
9151         (md_reader::md_reader): Initialize fields
9152         m_first_line and m_last_line.
9153         (md_reader::read_file_fragment): New function.
9154         * read-md.h (md_reader::read_file_fragment): New decl.
9155         (md_reader::m_first_line): New field.
9156         (md_reader::m_last_line): New field.
9157         * read-rtl-function.c (function_reader::create_function): Only
9158         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
9159         curr_properties.  Set DECL_INITIAL to a dummy block.
9160         (read_rtl_function_body_from_file_range): New function.
9161         * read-rtl-function.h (read_rtl_function_body_from_file_range):
9162         New decl.
9163         * run-rtl-passes.c: New file.
9164         * run-rtl-passes.h: New file.
9166 2017-01-24  Jeff Law  <law@redhat.com>
9168         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
9169         buffer size.
9171 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
9173         PR tree-optimization/79159
9174         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
9175         (record_nonwrapping_iv): Improve boundary using above function if no
9176         value range information.
9178 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
9179             Martin Jambor  <mjambor@suse.cz>
9181         * brig-builtins.def: New file.
9182         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
9183         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
9184         (DEF_HSAIL_SAT_BUILTIN): Likewise.
9185         (DEF_HSAIL_INTR_BUILTIN): Likewise.
9186         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
9187         * builtin-types.def (BT_INT8): New.
9188         (BT_INT16): Likewise.
9189         (BT_UINT8): Likewise.
9190         (BT_UINT16): Likewise.
9191         (BT_FN_ULONG): Likewise.
9192         (BT_FN_UINT_INT): Likewise.
9193         (BT_FN_UINT_ULONG): Likewise.
9194         (BT_FN_UINT_LONG): Likewise.
9195         (BT_FN_UINT_PTR): Likewise.
9196         (BT_FN_ULONG_PTR): Likewise.
9197         (BT_FN_INT8_FLOAT): Likewise.
9198         (BT_FN_INT16_FLOAT): Likewise.
9199         (BT_FN_UINT32_FLOAT): Likewise.
9200         (BT_FN_UINT16_FLOAT): Likewise.
9201         (BT_FN_UINT8_FLOAT): Likewise.
9202         (BT_FN_UINT64_FLOAT): Likewise.
9203         (BT_FN_UINT16_UINT32): Likewise.
9204         (BT_FN_UINT32_UINT16): Likewise.
9205         (BT_FN_UINT16_UINT16_UINT16): Likewise.
9206         (BT_FN_INT_PTR_INT): Likewise.
9207         (BT_FN_UINT_PTR_UINT): Likewise.
9208         (BT_FN_LONG_PTR_LONG): Likewise.
9209         (BT_FN_ULONG_PTR_ULONG): Likewise.
9210         (BT_FN_VOID_UINT64_UINT64): Likewise.
9211         (BT_FN_UINT8_UINT8_UINT8): Likewise.
9212         (BT_FN_INT8_INT8_INT8): Likewise.
9213         (BT_FN_INT16_INT16_INT16): Likewise.
9214         (BT_FN_INT_INT_INT): Likewise.
9215         (BT_FN_UINT_FLOAT_UINT): Likewise.
9216         (BT_FN_FLOAT_UINT_UINT): Likewise.
9217         (BT_FN_ULONG_UINT_UINT): Likewise.
9218         (BT_FN_ULONG_UINT_PTR): Likewise.
9219         (BT_FN_ULONG_ULONG_ULONG): Likewise.
9220         (BT_FN_UINT_UINT_UINT): Likewise.
9221         (BT_FN_VOID_UINT_PTR): Likewise.
9222         (BT_FN_UINT_UINT_PTR: Likewise.
9223         (BT_FN_UINT32_UINT64_PTR): Likewise.
9224         (BT_FN_INT_INT_UINT_UINT): Likewise.
9225         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
9226         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
9227         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
9228         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
9229         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
9230         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
9231         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
9232         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
9233         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
9234         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
9235         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
9236         * doc/frontends.texi: List BRIG FE.
9237         * doc/install.texi (Testing): Add BRIG tesring requirements.
9238         * doc/invoke.texi (Overall Options): Mention BRIG.
9239         * doc/standards.texi (Standards): Doucment BRIG HSA version.
9241 2017-01-24  Richard Biener  <rguenther@suse.de>
9243         PR translation/79208
9244         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
9246 2017-01-24  Martin Jambor  <mjambor@suse.cz>
9248         PR bootstrap/79198
9249         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
9250         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
9251         and known_contexts.
9253 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
9255         PR middle-end/79123
9256         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
9257         casts from signed to unsigned really don't have a range.
9259 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
9261         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
9262         GMP_RNDx for compatiblity.
9264 2017-01-24  Martin Liska  <mliska@suse.cz>
9266         PR bootstrap/79132
9267         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
9268         that would prevent us to call alloca with -1 as argument.
9270 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
9272         * dwarf2out.c (output_compilation_unit_header, output_file_names):
9273         Avoid -Wformat-security warning.
9275 2017-01-23  Andrew Pinski  <apinski@cavium.com>
9277         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
9278         cost table.
9280 2017-01-23  Martin Sebor  <msebor@redhat.com>
9282         PR middle-end/78703
9283         * gimple-ssa-sprintf.c (warn_level): New global.
9284         (format_integer): Use it here and throughout the rest of the file.
9285         Use the same switch to compute sign as base.
9286         (maybe_warn): New function.
9287         (format_directive): Factor out warnings into maybe_warn.
9288         Add debugging output.  Use warn_level.
9289         (add_bytes): Use warn_level.
9290         (pass_sprintf_length::compute_format_length): Add debugging output.
9291         (try_substitute_return_value): Same.
9292         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
9294         PR middle-end/78703
9295         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
9296         (struct fmtresult, format_integer, format_floating): Adjust.
9297         (fmtresult::fmtresult): Set max correctly in two argument ctor.
9298         (get_string_length, format_string,format_directive): Same.
9299         (pass_sprintf_length::compute_format_length): Same.
9300         (try_substitute_return_value): Simplify slightly.
9302         PR middle-end/78703
9303         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
9304         (fmtresult::operator+=): Outlined.
9305         (struct fmtresult): Add ctors.
9306         (struct conversion_spec): Rename...
9307         (struct directive): ...to this.  Add and remove data members.
9308         (directive::set_width, directive::set_precision): New functions.
9309         (format_percent): Use fmtresult ctor.
9310         (get_width_and_precision): Remove.
9311         (format_integer): Make naming changes.  Avoid computing width and
9312         precision.
9313         (format_floating): Same.  Adjust indentation.
9314         (format_character, format_none): New functions.
9315         (format_string): Moved character handling to format_character.
9316         (format_directive): Remove arguments, change return type.
9317         (parse_directive): New function.
9318         (pass_sprintf_length::compute_format_length): Move directive
9319         parsing to parse_directive.
9321 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
9323         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
9324         (assign_assembler_name_if_needed): ... this.
9325         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
9326         (assign_assembler_name_if_needed): ... this.
9327         (free_lang_data_in_cgraph): Adjust callers.
9328         * cgraphunit.c (cgraph_node::analyze): Likewise.
9329         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
9330         Likewise.
9332 2017-01-23  Richard Biener  <rguenther@suse.de>
9334         PR tree-optimization/79088
9335         PR tree-optimization/79188
9336         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
9337         resetting loop bounds after last path deletion.  Reset loop
9338         bounds of the target loop, make code match the comments.
9339         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
9340         Make sure loops need no fixups.
9342 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9344         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
9345         exponent support with double type for first argument.
9346         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
9347         type returned by __builtin_vec_extract_sig,
9348         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_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 type returned by __builtin_vec_extract_exp,
9352         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
9353         functions from "vector int" to "vector unsigned int" or from
9354         "vector long long int" to "vector unsigned long long int".
9355         Changed return type of __builtin_vec_test_data_class,
9356         __builtin_vec_test_data_class_sp, and
9357         __builtin_vec_test_data_class_dp from "vector int" to
9358         "vector bool int" or from "vector long long int" to "vector bool
9359         long long int" and changed second argument type from "unsigned
9360         int" to "int".  Added new overloaded function forms "vector float
9361         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
9362         "vector float __builtin_vec_insert_exp_sp (vector float, vector
9363         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
9364         double, vector unsigned long long int)" and "vector double
9365         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
9366         long int)".  Changed return type of
9367         __builtin_scalar_test_data_class and
9368         __builtin_scalar_test_data_class_sp and
9369         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
9370         int" and changed second argument from "unsigned int" to "int".
9371         Changed type returned by __builtin_scalar_test_neg,
9372         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
9373         from "int" to "bool int".  Added new overloaded function form
9374         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
9375         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
9376         exponent double-precision with floating point first argument.
9377         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
9378         documentation of scalar_test_data_class, scalar_test_neg,
9379         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
9380         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
9381         vec_test_data_class built-in functions to reflect refinements in
9382         their type signatures.
9384 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
9386         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
9387         size of buf.
9388         (aarch64_elf_asm_destructor): Likewise.
9390 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
9392         PR rtl-optimization/78634
9393         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
9394         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
9395         * ifcvt.c (noce_try_cmove): Add missing cost check.
9397         PR rtl-optimization/71724
9398         * combine.c (if_then_else_cond): Look for situations where it is
9399         beneficial to undo the work of one of the recursive calls.
9401 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
9403         PR tree-optimization/70754
9404         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
9405         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
9406         combined stmt before it if not NULL.
9407         (combine_chains): Process refs reversely and compute dominance point
9408         for root ref.
9410 2017-01-23  Martin Liska  <mliska@suse.cz>
9412         PR tree-optimization/79196
9413         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
9414         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
9415         instead of memcmp.
9416         (strlen_optimize_stmt): Call the renamed function.
9418 2017-01-23  Michael Matz  <matz@suse.de>
9420         PR tree-optimization/78384
9421         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
9423 2017-01-23  Richard Biener  <rguenther@suse.de>
9425         PR tree-optimization/79186
9426         * tree-vrp.c (register_new_assert_for): Make sure we've seen
9427         both incoming edges before moving an assert.
9429 2017-01-23  Martin Jambor  <mjambor@suse.cz>
9431         * ipa-prop.c (load_from_param_1): Removed.
9432         (load_from_unmodified_param): Bits from load_from_param_1 put back
9433         here.
9434         (load_from_param): Removed.
9435         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
9436         with stmt.  Reverted back to use of load_from_unmodified_param.
9438 2017-01-23  Martin Jambor  <mjambor@suse.cz>
9440         PR ipa/79108
9441         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
9442         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
9443         field a pointer to garbage collected vector, mark lattices and
9444         ipcp_orig_node with GTY((skip)).
9445         (ipa_get_param_count): Adjust to descriptors being a pointer.
9446         (ipa_get_param): Likewise.
9447         (ipa_get_type): Likewise.
9448         (ipa_get_param_move_cost): Likewise.
9449         (ipa_set_param_used): Likewise.
9450         (ipa_get_controlled_uses): Likewise.
9451         (ipa_set_controlled_uses): Likewise.
9452         (ipa_is_param_used): Likewise.
9453         (ipa_node_params_t): Move into garbage collector.  New methods insert
9454         and remove.
9455         (ipa_node_params_sum): Annotate wth GTY(()).
9456         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
9457         garbage collected.
9458         (ipa_load_from_parm_agg): Adjust declaration.
9459         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
9460         * ipa-profile.c (ipa_profile): Likewise.
9461         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
9462         (ipa_populate_param_decls): Make descriptors parameter garbage
9463         collected.
9464         (ipa_dump_param): Adjust to descriptors being a pointer.
9465         (ipa_alloc_node_params): Likewise.
9466         (ipa_initialize_node_params): Likewise.
9467         (load_from_param_1): Make descriptors parameter garbage collected.
9468         (load_from_unmodified_param): Likewise.
9469         (load_from_param): Likewise.
9470         (ipa_load_from_parm_agg): Likewise.
9471         (ipa_node_params::~ipa_node_params): Removed.
9472         (ipa_free_all_node_params): Remove call to delete operator.
9473         (ipa_node_params_t::insert): New.
9474         (ipa_node_params_t::remove): Likewise.
9475         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
9476         copy known_csts and known_contexts vectors.
9477         (ipa_read_node_info): Adjust to descriptors being a pointer.
9478         (ipcp_modif_dom_walker): Make m_descriptors field garbage
9479         collected.
9480         (ipcp_transform_function): Make descriptors variable garbage
9481         collected.
9483 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
9485         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
9486         * config/i386/avx512dqintrin.h: Ditto.
9487         * config/i386/avx512fintrin.h: Ditto.
9488         * gcc/config/i386/i386.c: Handle new builtins.
9489         * config/i386/i386-builtin.def: Add new builtins.
9490         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
9491         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
9493 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
9494             Martin Liska  <mliska@suse.cz>
9496         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
9497         * asan.c (asan_expand_poison_ifn): Support stores and use
9498         appropriate ASAN report function.
9499         * internal-fn.c (expand_ASAN_POISON_USE): New function.
9500         * internal-fn.def (ASAN_POISON_USE): Declare.
9501         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
9502         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
9503         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
9504         ASAN_POISON calls w/o LHS.
9505         * tree-ssa.c (execute_update_addresses_taken): Create clobber
9506         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
9507         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
9508         * gimplify.c (asan_poison_variables): Add attribute
9509         use_after_scope_memory to variables that really needs to live
9510         in memory.
9511         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
9512         having the attribute.
9514 2017-01-23  Martin Liska  <mliska@suse.cz>
9516         * asan.c (create_asan_shadow_var): New function.
9517         (asan_expand_poison_ifn): Likewise.
9518         * asan.h (asan_expand_poison_ifn): New declaration.
9519         * internal-fn.c (expand_ASAN_POISON): Likewise.
9520         * internal-fn.def (ASAN_POISON): New builtin.
9521         * sanopt.c (pass_sanopt::execute): Expand
9522         asan_expand_poison_ifn.
9523         * tree-inline.c (copy_decl_for_dup_finish): Make function
9524         external.
9525         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
9526         * tree-ssa.c (is_asan_mark_p): New function.
9527         (execute_update_addresses_taken): Rewrite local variables
9528         (identified just by use-after-scope as addressable) into SSA.
9530 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
9532         * doc/install.texi (Specific): opensource.apple.com uses https
9533         now. Remove trailing slash.
9535 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
9537         * README.Portability: Remove note on an Irix compatibility issue.
9539 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
9541         * gcov.c (INCLUDE_ALGORITHM): Define.
9542         (INCLUDE_VECTOR): Define.
9543         No longer include <vector> and <algorithm> directly.
9545 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
9547         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
9548         to https.
9549         * doc/invoke.texi (Code Gen Options): Ditto.
9551 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
9553         PR lto/78407
9554         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
9556 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
9558         rtl-optimization/79125
9559         * cprop.c (local_cprop_pass): Handle cases where we make an
9560         unconditional trap.
9562 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
9564         PR target/61729
9565         PR target/77850
9566         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
9567         read from, for big endian.
9569 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
9571         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
9572         register pauth builtins for LP64 only.
9574 2017-01-20  Marek Polacek  <polacek@redhat.com>
9576         PR c/79152
9577         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
9578         non-case labels.
9580 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
9582         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
9583         of safelen status.
9584         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
9585         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
9586         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
9588 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9590         PR target/71270
9591         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
9592         in big-endian mode when they are not a single duplicated value.
9594 2017-01-20  Richard Biener  <rguenther@suse.de>
9596         * BASE-VER: Bump to 7.0.1.
9598 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
9600         * omp-low.c (omplow_simd_context): New struct.  Use it...
9601         (lower_rec_simd_input_clauses): ...here and...
9602         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
9603         references to idx, lane, max_vf, is_simt.
9605 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
9607         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
9608         mcpu=nps400.
9610 2017-01-20  Martin Jambor  <mjambor@suse.cz>
9612         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
9613         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
9614         gt-hsa-common.h.
9615         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
9616         (GTFILES): Rename hsa.c to hsa-common.c.
9617         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
9618         * hsa-dump.c: Likewise.
9619         * hsa-gen.c: Likewise.
9620         * hsa-regalloc.c: Likewise.
9621         * ipa-hsa.c: Likewise.
9622         * omp-expand.c: Likewise.
9623         * omp-low.c: Likewise.
9624         * toplev.c: Likewise.
9626 2017-01-20  Marek Polacek  <polacek@redhat.com>
9628         PR c/64279
9629         * doc/invoke.texi: Document -Wduplicated-branches.
9630         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
9631         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
9632         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
9633         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
9634         return 0 only when not OEP_LEXICOGRAPHIC.
9635         (fold_build_cleanup_point_expr): Use the expression
9636         location when building CLEANUP_POINT_EXPR.
9637         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
9638         * tree.c (add_expr): Handle error_mark_node.
9640 2017-01-20  Martin Liska  <mliska@suse.cz>
9642         PR lto/69188
9643         * tree-profile.c (init_ic_make_global_vars): Do not call
9644         finalize_decl.
9645         (gimple_init_gcov_profiler): Likewise.
9647 2017-01-20  Martin Liska  <mliska@suse.cz>
9649         PR ipa/71190
9650         * cgraph.h (maybe_create_reference): Remove argument and
9651         update comment.
9652         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
9653         argument.
9654         * ipa-cp.c (create_specialized_node): Likewise.
9655         * symtab.c (symtab_node::maybe_create_reference): Handle
9656         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
9658 2017-01-20  Martin Liska  <mliska@suse.cz>
9660         * read-rtl-function.c (function_reader::create_function): Use
9661         build_decl instread of build_decl_stat.
9663 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
9665         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
9666         * config/i386/avx512dqintrin.h: Ditto.
9667         * config/i386/avx512fintrin.h: Ditto.
9668         * config/i386/i386-builtin-types.def: Add new types.
9669         * gcc/config/i386/i386.c: Handle new types.
9670         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
9671         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
9672         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
9673         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
9674         (__builtin_ia32_kshiftridi): New.
9675         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
9677 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
9679         PR target/78875
9680         PR target/79140
9681         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
9682         define to rs6000_init_stack_protect_guard.
9683         (rs6000_init_stack_protect_guard): New function.
9685 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
9686             Yunqiang Su  <yunqiang.su@imgtec.com>
9688         * config.gcc (supported_defaults): Add madd4.
9689         (with_madd4): Add validation.
9690         (all_defaults): Add madd4.
9691         * config/mips/mips.opt (mmadd4): New option.
9692         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
9693         mmadd4.
9694         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
9695         __mips_no_madd4.
9696         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
9697         (ISA_HAS_FUSED_MADD4): Likewise.
9698         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
9699         * gcc/doc/install.texi (--with-madd4): Document the new option.
9701 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
9703         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
9704         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
9705         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
9706         (aarch64_init_pauth_hint_builtins): New.
9707         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
9708         (aarch64_expand_builtin): Expand new builtins.
9710 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
9712         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
9713         * combine-stack-adj.c (no_unhandled_cfa): Handle
9714         REG_CFA_TOGGLE_RA_MANGLE.
9715         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
9716         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
9717         info for return address signing.
9718         (aarch64_expand_epilogue): Likewise.
9720 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
9722         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
9723         * config/aarch64/aarch64-protos.h
9724         (aarch64_return_address_signing_enabled): New declaration.
9725         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
9726         New function.
9727         (aarch64_expand_prologue): Sign return address before it's pushed onto
9728         stack.
9729         (aarch64_expand_epilogue): Authenticate return address fetched from
9730         stack.
9731         (aarch64_override_options): Sanity check for ILP32 and ISA level.
9732         (aarch64_attributes): New function attributes for "sign-return-address".
9733         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
9734         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
9735         ("*do_return"): Generate combined instructions according to key index.
9736         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
9737         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
9738         iterators.
9739         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
9740         * config/aarch64/aarch64.opt (msign-return-address=): New.
9741         * doc/extend.texi (AArch64 Function Attributes): Documents
9742         "sign-return-address=".
9743         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
9745 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
9747         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
9748         overall option summary.
9750 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
9752         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
9753         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
9754         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
9755         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
9757 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
9759         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
9760         -mpower9-minmax by default for -mcpu=power9.
9761         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
9762         128-bit floating point.
9764 2017-01-20  Alan Modra  <amodra@gmail.com>
9766         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
9767         optimizing for size.
9769 2017-01-20  Alan Modra  <amodra@gmail.com>
9771         PR target/79144
9772         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
9773         for strcmp and strncmp from corresponding builtin decl.
9775 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
9777         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
9778         instead of i386/rtems-64.h.
9779         * config/i386/rtems-64.h: Remove.
9781 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
9783         PR target/78478
9784         Revert:
9785         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
9787         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
9789 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
9791         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
9792         Change int to HOST_WIDE_INT.
9793         * config/aarch64/aarch64-protos.h
9794         (aarch64_simd_gen_const_vector_dup): Likewise.
9795         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
9797 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
9799         * langhooks-def.h (lhd_type_for_size): New decl.
9800         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
9801         * langhooks.c (lhd_type_for_size): New function, taken from
9802         lto_type_for_size.
9804 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
9806         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
9807         define_bypass for CR latency.
9808         (power9-cracked-alu): Update bypass latency and remove power9-branch.
9809         (power9-alu2): Add define_bypass for CR latency.
9810         (power9-cmp): New.
9811         (power9-mul): Update insn latency.
9812         (power9-mul-compare): Update insn latency, bypass latency and remove
9813         power9-branch.
9815 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9817         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
9818         Delete.
9819         * config/aarch64/aarch64.md
9820         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
9821         aarch64_nopcrelative_literal_loads.
9822         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9824 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
9826         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
9827         TARGET_LOONGSON_3A.
9828         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
9830 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
9832         PR target/78176
9833         * config.gcc (supported_defaults): Add lxc1-sxc1.
9834         (with_lxc1_sxc1): Add validation.
9835         (all_defaults): Add lxc1-sxc1.
9836         * config/mips/mips.opt (mlxc1-sxc1): New option.
9837         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
9838         mlxc1-sxc1.
9839         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
9840         __mips_no_lxc1_sxc1.
9841         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
9842         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
9843         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
9845 2017-01-19  Richard Biener  <rguenther@suse.de>
9847         PR tree-optimization/72488
9848         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
9849         sure to restore SSA info.
9850         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
9852 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
9854         PR rtl-optimization/79121
9855         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
9856         of the inner type when shifting an extended value.
9858 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
9860         PR lto/78407
9861         * symtab.c (symtab_node::equal_address_to): Fix comparing of
9862         interposable aliases.
9864 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
9866         PR target/78516
9867         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
9868         Use the evmergelohi instruction.
9869         (mov_si<mode>_e500_subreg4_2_le): Likewise.
9870         (mov_sitf_e500_subreg8_2_be): Likewise.
9871         (mov_sitf_e500_subreg12_2_le): Likewise.
9872         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
9873         (mov_si<mode>_e500_subreg4_2_be): Likewise.
9874         (mov_sitf_e500_subreg8_2_le): Likewise.
9875         (mov_sitf_e500_subreg12_2_be): Likewise.
9877 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9879         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
9880         attribute from vecsimple to vecperm.
9881         (altivec_vbpermq2): Likewise.
9883 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9885         PR target/79040
9886         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
9888 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
9889         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
9890         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
9891         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
9892         case where N arg is SIZE_MAX.
9893         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
9894         (cmpstrsi): Add pattern.
9896 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
9898         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9899         __builtin_vec_revb builtins.
9900         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
9901         built-in functions to support generation of the ISA 3.0 XXBR<x>
9902         vector byte reverse instructions.
9903         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
9904         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
9905         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
9906         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
9907         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
9908         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
9909         (P9V_BUILTIN_VEC_REVB): Likewise.
9910         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
9911         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
9912         (p9_xxbrq_v16qi): Likewise.
9913         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
9914         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
9915         (p9_xxbrh_v8hi): Likewise.
9916         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
9917         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
9918         vec_revb built-in functions.
9920 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
9922         PR rtl-optimization/78952
9923         * config/i386/i386.md (any_extract): New code iterator.
9924         (*insvqi_2): Use any_extract for source operand.
9925         (*insvqi_3): Use any_shiftrt for source operand.
9927 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
9929         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
9930         New function.
9931         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
9933 2017-01-18  Matthias Klose  <doko@ubuntu.com>
9935         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
9937 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9939         * config/rs6000/altivec.h (vec_bperm): Change #define.
9940         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
9941         (altivec_vbpermq2): New define_insn.
9942         (altivec_vbpermd): Likewise.
9943         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
9944         function interface.
9945         (VBPERMD): Likewise.
9946         (VBPERM): New polymorphic function interface.
9947         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
9948         Add entries for P9V_BUILTIN_VEC_VBPERM.
9949         * doc/extend.texi: Add interfaces for vec_bperm.
9951 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9953         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
9954         first letter of error messages.
9955         (s390_resolve_overloaded_builtin): Likewise.
9956         * config/s390/s390.c (s390_expand_builtin): Likewise.
9957         (s390_invalid_arg_for_unprototyped_fn): Likewise.
9958         (s390_valid_target_attribute_inner_p): Likewise.
9959         * config/s390/s390.md ("tabort"): Likewise.
9961 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
9963         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
9964         (ISA_AVOID_DIV_HILO): New macro.
9965         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
9966         (ISA_HAS_DDIV): Likewise.
9968 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9970         * doc/invoke.texi (fabi-version): Correct number of occurrences.
9972 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9974         * doc/invoke.texi (fabi-version): Spelling fix.
9976 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9978         PR c++/70182
9979         * doc/invoke.texi (fabi-version): Mention mangling fix for
9980         operator names.
9982 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9984         PR c++/77489
9985         * doc/invoke.texi (fabi-version): Document discriminator mangling.
9987 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
9989         PR target/78875
9990         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
9991         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
9992         the new options.
9993         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
9994         flexible settings.
9995         (stack_protect_test): Ditto.
9996         * config/rs6000/rs6000.opt (mstack-protector-guard=,
9997         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
9998         options.
9999         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
10000         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
10001         -mstack-protector-guard-offset=.
10002         (RS/6000 and PowerPC Options): Ditto.
10004 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
10006         * config/i386/i386.h (MASK_CLASS_P): New define.
10007         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
10008         there are no registers from different register sets also when
10009         mask registers are used.  Update function comment.
10010         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
10011         to (*k/*r) and (*k/*km) alternatives.
10013 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
10015         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
10016         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
10017         (EH_RETURN_HANDLER_RTX): New define.
10018         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
10019         Force frame pointer in EH return functions.
10020         (aarch64_expand_epilogue): Add barrier for eh_return.
10021         (aarch64_final_eh_return_addr): Remove.
10022         (aarch64_eh_return_handler_rtx): New function.
10023         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
10024         Remove.
10025         (aarch64_eh_return_handler_rtx): New prototype.
10027 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10029         * config/rs6000/altivec.h (vec_rlmi): New #define.
10030         (vec_vrlnm): Likewise.
10031         (vec_rlnm): Likewise.
10032         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
10033         (UNSPEC_VRLNM): Likewise.
10034         (VIlong): New mode iterator.
10035         (altivec_vrl<VI_char>mi): New define_insn.
10036         (altivec_vrl<VI_char>nm): Likewise.
10037         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
10038         function entry.
10039         (VRLDNM): Likewise.
10040         (RLNM): New polymorphic function entry.
10041         (VRLWMI): New monomorphic function entry.
10042         (VRLDMI): Likewise.
10043         (RLMI): New polymorphic function entry.
10044         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
10045         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
10046         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
10047         vec_vrlnm.
10049 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
10051         PR debug/78839
10052         * dwarf2out.c (field_byte_offset): Restore the
10053         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
10054         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
10055         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
10056         of build2 + fold.
10058 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
10060         PR ada/67205
10061         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
10063 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
10065         PR debug/71669
10066         * dwarf2out.c (add_data_member_location_attribute): For constant
10067         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
10068         instead of DW_AT_data_member_location, DW_AT_bit_offset and
10069         DW_AT_byte_size attributes.
10071 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
10073         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
10074         after forcing to constant memory when the code model is medium.
10076 2017-01-17  Julia Koval  <julia.koval@intel.com>
10078         PR target/76731
10079         * config/i386/avx512fintrin.h
10080         (_mm512_i32gather_ps): Change __addr type to void const*.
10081         (_mm512_mask_i32gather_ps): Ditto.
10082         (_mm512_i32gather_pd): Ditto.
10083         (_mm512_mask_i32gather_pd): Ditto.
10084         (_mm512_i64gather_ps): Ditto.
10085         (_mm512_mask_i64gather_ps): Ditto.
10086         (_mm512_i64gather_pd): Ditto.
10087         (_mm512_mask_i64gather_pd): Ditto.
10088         (_mm512_i32gather_epi32): Ditto.
10089         (_mm512_mask_i32gather_epi32): Ditto.
10090         (_mm512_i32gather_epi64): Ditto.
10091         (_mm512_mask_i32gather_epi64): Ditto.
10092         (_mm512_i64gather_epi32): Ditto.
10093         (_mm512_mask_i64gather_epi32): Ditto.
10094         (_mm512_i64gather_epi64): Ditto.
10095         (_mm512_mask_i64gather_epi64): Ditto.
10096         (_mm512_i32scatter_ps): Change __addr type to void*.
10097         (_mm512_mask_i32scatter_ps): Ditto.
10098         (_mm512_i32scatter_pd): Ditto.
10099         (_mm512_mask_i32scatter_pd): Ditto.
10100         (_mm512_i64scatter_ps): Ditto.
10101         (_mm512_mask_i64scatter_ps): Ditto.
10102         (_mm512_i64scatter_pd): Ditto.
10103         (_mm512_mask_i64scatter_pd): Ditto.
10104         (_mm512_i32scatter_epi32): Ditto.
10105         (_mm512_mask_i32scatter_epi32): Ditto.
10106         (_mm512_i32scatter_epi64): Ditto.
10107         (_mm512_mask_i32scatter_epi64): Ditto.
10108         (_mm512_i64scatter_epi32): Ditto.
10109         (_mm512_mask_i64scatter_epi32): Ditto.
10110         (_mm512_i64scatter_epi64): Ditto.
10111         (_mm512_mask_i64scatter_epi64): Ditto.
10112         * config/i386/avx512pfintrin.h
10113         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
10114         (_mm512_mask_prefetch_i32gather_ps): Ditto.
10115         (_mm512_mask_prefetch_i64gather_pd): Ditto.
10116         (_mm512_mask_prefetch_i64gather_ps): Ditto.
10117         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
10118         (_mm512_prefetch_i32scatter_ps): Ditto.
10119         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
10120         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
10121         (_mm512_prefetch_i64scatter_pd): Ditto.
10122         (_mm512_prefetch_i64scatter_ps): Ditto.
10123         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
10124         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
10125         * config/i386/avx512vlintrin.h
10126         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
10127         (_mm_mmask_i32gather_ps): Ditto.
10128         (_mm256_mmask_i32gather_pd): Ditto.
10129         (_mm_mmask_i32gather_pd): Ditto.
10130         (_mm256_mmask_i64gather_ps): Ditto.
10131         (_mm_mmask_i64gather_ps): Ditto.
10132         (_mm256_mmask_i64gather_pd): Ditto.
10133         (_mm_mmask_i64gather_pd): Ditto.
10134         (_mm256_mmask_i32gather_epi32): Ditto.
10135         (_mm_mmask_i32gather_epi32): Ditto.
10136         (_mm256_mmask_i32gather_epi64): Ditto.
10137         (_mm_mmask_i32gather_epi64): Ditto.
10138         (_mm256_mmask_i64gather_epi32): Ditto.
10139         (_mm_mmask_i64gather_epi32): Ditto.
10140         (_mm256_mmask_i64gather_epi64): Ditto.
10141         (_mm_mmask_i64gather_epi64): Ditto.
10142         (_mm256_i32scatter_ps): Change __addr type to void*.
10143         (_mm256_mask_i32scatter_ps): Ditto.
10144         (_mm_i32scatter_ps): Ditto.
10145         (_mm_mask_i32scatter_ps): Ditto.
10146         (_mm256_i32scatter_pd): Ditto.
10147         (_mm256_mask_i32scatter_pd): Ditto.
10148         (_mm_i32scatter_pd): Ditto.
10149         (_mm_mask_i32scatter_pd): Ditto.
10150         (_mm256_i64scatter_ps): Ditto.
10151         (_mm256_mask_i64scatter_ps): Ditto.
10152         (_mm_i64scatter_ps): Ditto.
10153         (_mm_mask_i64scatter_ps): Ditto.
10154         (_mm256_i64scatter_pd): Ditto.
10155         (_mm256_mask_i64scatter_pd): Ditto.
10156         (_mm_i64scatter_pd): Ditto.
10157         (_mm_mask_i64scatter_pd): Ditto.
10158         (_mm256_i32scatter_epi32): Ditto.
10159         (_mm256_mask_i32scatter_epi32): Ditto.
10160         (_mm_i32scatter_epi32): Ditto.
10161         (_mm_mask_i32scatter_epi32): Ditto.
10162         (_mm256_i32scatter_epi64): Ditto.
10163         (_mm256_mask_i32scatter_epi64): Ditto.
10164         (_mm_i32scatter_epi64): Ditto.
10165         (_mm_mask_i32scatter_epi64): Ditto.
10166         (_mm256_i64scatter_epi32): Ditto.
10167         (_mm256_mask_i64scatter_epi32): Ditto.
10168         (_mm_i64scatter_epi32): Ditto.
10169         (_mm_mask_i64scatter_epi32): Ditto.
10170         (_mm256_i64scatter_epi64): Ditto.
10171         (_mm256_mask_i64scatter_epi64): Ditto.
10172         (_mm_i64scatter_epi64): Ditto.
10173         (_mm_mask_i64scatter_epi64): Ditto.
10174         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
10175         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
10176         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
10177         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
10178         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
10179         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
10180         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
10181         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
10182         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
10183         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
10184         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
10185         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
10186         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
10187         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
10188         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
10189         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
10190         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
10191         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
10192         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
10193         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
10194         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
10195         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
10196         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
10197         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
10198         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
10199         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
10200         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
10201         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
10202         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
10203         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
10204         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
10205         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
10206         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
10207         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
10208         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
10209         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
10210         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
10211         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
10212         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
10213         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
10214         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
10215         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
10216         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
10217         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
10218         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
10219         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
10220         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
10221         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
10222         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
10223         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
10224         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
10225         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
10226         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
10227         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
10228         definitions accordingly.
10230 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
10231             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
10233         PR target/79079
10234         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
10235         gen_lowpart.
10237 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
10239         PR target/79058
10240         * ira-conflicts.c (ira_build_conflicts): Update total conflict
10241         hard regs for inner regno.
10243 2017-01-17  Martin Liska  <mliska@suse.cz>
10245         PR ipa/71207
10246         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
10247         assumption and add comment.
10249 2017-01-17  Nathan Sidwell  <nathan@acm.org>
10251         * ipa-visibility.c (localize_node): New function, broken out of ...
10252         (function_and_variable_visibility): ... here. Call it.
10254 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
10256         PR middle-end/77445
10257         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
10258         correctly set frequency of oudgoing edge.
10259         (duplicate_thread_path): Fix profile updating.
10261 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
10263         PR other/79046
10264         * configure.ac: Add GCC_BASE_VER.
10265         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
10266         version from BASE-VER file.
10267         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
10268         (gcc.o): Depend on $(BASEVER).
10269         * common.opt (dumpfullversion): New option.
10270         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
10271         * doc/invoke.texi: Document -dumpfullversion.
10272         * doc/install.texi: Document --with-gcc-major-version-only.
10273         * configure: Regenerated.
10275 2017-01-17  Richard Biener  <rguenther@suse.de>
10277         PR tree-optimization/71433
10278         * tree-vrp.c (register_new_assert_for): Merge same asserts
10279         on all incoming edges.
10280         (process_assert_insertions_for): Handle insertions at the
10281         beginning of BBs.
10283 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
10285         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
10286         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
10288 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
10290         PR target/78633
10291         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
10292         RTL sharing.
10294 2017-01-17  Alan Modra  <amodra@gmail.com>
10296         PR target/79066
10297         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
10298         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
10299         symbolic stack limit when pic.
10301 2017-01-16  Martin Sebor  <msebor@redhat.com>
10303         PR tree-optimization/78608
10304         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
10306 2017-01-16  Jeff Law  <law@redhat.com>
10308         Revert:
10309         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
10310         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
10311         for several include directories that may be relative to sysroot.
10312         * config/i386/x-mingw32 (gplus_includedir): Define.
10313         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
10314         (native_system_includedir): Likewise.
10315         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
10316         override if TARGET_SYSTEM_ROOT is defined.
10317         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
10319         PR tree-optimization/79090
10320         PR tree-optimization/33562
10321         PR tree-optimization/61912
10322         PR tree-optimization/77485
10323         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
10324         and computed trims into the dump file.
10326 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
10328         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
10330 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
10332         PR c/79089
10333         * gimplify.c (gimplify_init_constructor): If want_value and
10334         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
10335         fix.
10337         PR target/79080
10338         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
10339         sequence.  Formatting fixes.
10340         (doloop_optimize): Formatting fixes.
10342         PR driver/49726
10343         * gcc.c (debug_level_greater_than_spec_func): New function.
10344         (static_spec_functions): Add debug-level-gt spec function.
10345         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
10346         !g0.
10347         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
10348         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
10349         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
10350         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
10351         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
10352         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
10354 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
10356         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
10357         QImode fixups to general and mask registers only.
10359 2017-01-16  Carl Love  <cel@us.ibm.com>
10361         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
10362         for built-in functions
10363         vector signed char vec_nabs (vector signed char)
10364         vector signed short vec_nabs (vector signed short)
10365         vector signed int vec_nabs (vector signed int)
10366         vector signed long long vec_nabs (vector signed long long)
10367         vector float vec_nabs (vector float)
10368         vector double vec_nabs (vector double)
10369         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
10370         and NABS overload.
10371         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
10372         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
10373         * doc/extend.texi: Update the documentation file for the new built-in
10374         functions.
10376 2017-01-16  Martin Sebor  <msebor@redhat.com>
10378         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
10379         message.
10381 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10383         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
10384         UNSPEC_VSX__XXSPLTD to require special splat handling.
10386 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
10388         PR bootstrap/78616
10389         * system.h: Poison strndup.
10391 2017-01-16  Alan Modra  <amodra@gmail.com>
10393         PR target/79098
10394         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
10395         use a switch.
10397 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
10399         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
10401 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
10403         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
10404         call recog here.  Assert that INSN_CODE (insn) is non-negative.
10406 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
10408         PR target/72749
10409         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
10410         fallthrough.
10411         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
10412         in the currently scheduled RTL fragment.
10414 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
10416         PR rtl-optimization/78751
10417         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
10418         give up.
10420 2017-01-14  Jeff Law  <law@redhat.com>
10422         PR tree-optimization/79090
10423         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
10424         variable length stores.
10425         (compute_trims): Delete dead assignment to *trim_tail.
10426         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
10427         zero length.
10429 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
10431         PR rtl-optimization/78626
10432         PR rtl-optimization/78727
10433         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
10434         of a block, and split such blocks after everything else is finished.
10436 2017-01-14  Alan Modra  <amodra@gmail.com>
10438         PR target/72749
10439         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
10440         target legitimate_combined_insn.
10441         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
10442         (rs6000_legitimate_combined_insn): New function.
10443         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
10444         all uses.
10445         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
10446         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
10447         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
10449 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
10451         * doc/frontends.texi (G++ and GCC): Remove references to Java.
10453 2017-01-13  Jeff Law  <law@redhat.com>
10455         PR tree-optimization/33562
10456         PR tree-optimization/61912
10457         PR tree-optimization/77485
10458         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
10459         a statement.
10460         (delete_dead_assignment): Likewise.
10461         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
10462         statement to delete_dead_call and delete_dead_assignment.
10464 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
10466         PR c/78304
10467         * substring-locations.c (format_warning_va): Strengthen case 1 so
10468         that both endpoints of the substring must be within the format
10469         range for just the substring to be printed.
10471 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
10473         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
10474         * config/i386/i386.c (ix86_target_string): Add missing options
10475         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
10476         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
10477         flags_other and ix86_target_other to flags2_other.  Display unknown
10478         isa2 options.
10479         (ix86_valid_target_attribute_inner_p): Add missing options and
10480         reorder options by implied ISAs, as in ix86_target_string.
10482 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
10484         * hash-table.h (hash_table::too_empty_p): New function.
10485         (hash_table::expand): Use it.
10486         (hash_table::traverse): Likewise.
10487         (hash_table::empty_slot): Use sizeof (value_type) instead of
10488         sizeof (PTR) to convert bytes to elements.  Shrink the table
10489         if the current size is excessive for the current number of
10490         elements.
10492 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
10494         * ira-costs.c (record_reg_classes): Break from the inner loop
10495         early once alt_fail is known to be true.  Update outer loop
10496         handling accordingly.
10498 2017-01-13  Jeff Law  <law@redhat.com>
10500         * tree-ssa-dse.c (decrement_count): New function.
10501         (increment_start_addr, maybe_trim_memstar_call): Likewise.
10502         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
10503         when we know the partially dead statement is a mem* function.
10505         PR tree-optimization/61912
10506         PR tree-optimization/77485
10507         * tree-ssa-dse.c: Include expr.h.
10508         (maybe_trim_constructor_store): New function.
10509         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
10511         PR tree-optimization/33562
10512         PR tree-optimization/61912
10513         PR tree-optimization/77485
10514         * doc/invoke.texi: Document new dse-max-object-size param.
10515         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
10516         * tree-ssa-dse.c: Include params.h.
10517         (dse_store_status): New enum.
10518         (initialize_ao_ref_for_dse): New, partially extracted from
10519         dse_optimize_stmt.
10520         (valid_ao_ref_for_dse, normalize_ref): New.
10521         (setup_live_bytes_from_ref, compute_trims): Likewise.
10522         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
10523         (maybe_trim_partially_dead_store): Likewise.
10524         (maybe_trim_complex_store): Likewise.
10525         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
10526         Track what bytes live from the original store.  Return tri-state
10527         for dead, partially dead or live.
10528         (dse_dom_walker): Add constructor, destructor and new private members.
10529         (delete_dead_call, delete_dead_assignment): New extracted from
10530         dse_optimize_stmt.
10531         (dse_optimize_stmt): Make a member of dse_dom_walker.
10532         Use initialize_ao_ref_for_dse.
10534         PR tree-optimization/33562
10535         PR tree-optimization/61912
10536         PR tree-optimization/77485
10537         * sbitmap.h (bitmap_count_bits): Prototype.
10538         (bitmap_clear_range, bitmap_set_range): Likewise.
10539         * sbitmap.c (bitmap_clear_range): New function.
10540         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
10542 2017-01-13  Martin Liska  <mliska@suse.cz>
10544         PR ipa/79043
10545         * function.c (set_cfun): Add new argument force.
10546         * function.h (set_cfun): Likewise.
10547         * ipa-inline-transform.c (inline_call): Use the function when
10548         strict alising from is dropped for function we inline to.
10550 2017-01-13  Richard Biener  <rguenther@suse.de>
10552         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
10553         for dumping GIMPLE INTEGER_CSTs.
10555 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10557         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
10558         to 201112L since C++17.
10560 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
10562         PR sanitizer/78887
10563         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
10564         if -fsanitize=kernel-address is present.
10566 2017-01-13  Richard Biener  <rguenther@suse.de>
10568         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
10569         as _Literal ( type ) number in case usual suffixes do not
10570         preserve all information.
10572 2017-01-13  Richard Biener  <rguenther@suse.de>
10574         PR tree-optimization/77283
10575         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
10576         and ssa-iterators.h.
10577         (is_feasible_trace): Implement a cost model based on joiner
10578         PHI node uses.
10580 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10582         PR target/79004
10583         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
10584         char or short to __float128/_Float128 directly.
10586 2017-01-12  Martin Sebor  <msebor@redhat.com>
10588         to -Wformat-overflow.
10589         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
10590         (min_bytes_remaining): Same.
10591         (get_string_length): Same.
10592         (format_string): Same.
10593         (format_directive): Same.
10594         (add_bytes): Same.
10595         (pass_sprintf_length::handle_gimple_call): Same.
10597 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
10599         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
10600         info.nowrite calls with no lhs that can't throw.  Return bool
10601         whether gsi_remove has been called or not.
10602         (pass_sprintf_length::handle_gimple_call): Return bool whether
10603         try_substitute_return_value called gsi_remove.  Formatting fix.
10604         (pass_sprintf_length::execute): Don't use gsi_remove if
10605         handle_gimple_call returned true.
10607         PR bootstrap/79069
10608         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
10609         be removed due to side-effects, don't remove following barrier nor
10610         turn the successor edge into fallthru edge.
10612 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10614         PR target/79044
10615         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
10616         element-reversing loads and stores as not swappable.
10618 2017-01-12  Nathan Sidwell  <nathan@acm.org>
10619             Nicolai Stange  <nicstange@gmail.com>
10621         * combine.c (try_combine): Don't ignore result of overlap checking
10622         loop.  Combine overlap & asm check into single loop.
10624 2017-01-12  Richard Biener  <rguenther@suse.de>
10626         * tree-pretty-print.c (dump_generic_node): Provide -gimple
10627         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
10629 2017-01-12  Richard Biener  <rguenther@suse.de>
10631         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
10632         and TS_TARGET_OPTION directly derive from TS_BASE.
10633         * tree-core.h (tree_optimization_option): Derive from tree_base.
10634         (tree_target_option): Likewise.
10636 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
10638         * config/i386/i386.c (memory_address_length): Increase len
10639         only when rip_relative_addr_p returns false.
10641 2017-01-11  Julia Koval  <julia.koval@intel.com>
10643         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
10644         (OPTION_MASK_ISA_SGX_SET): New.
10645         (ix86_handle_option): Handle OPT_msgx.
10646         * config.gcc: Added sgxintrin.h.
10647         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
10648         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
10649         * config/i386/i386.c (ix86_target_string): Add -msgx.
10650         (PTA_SGX): New.
10651         (ix86_option_override_internal): Handle new options.
10652         (ix86_valid_target_attribute_inner_p): Add sgx.
10653         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
10654         * config/i386/i386.opt: Add msgx.
10655         * config/i386/sgxintrin.h: New file.
10656         * config/i386/x86intrin.h: Add sgxintrin.h.
10658 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
10660         PR c++/71537
10661         * fold-const.c (maybe_nonzero_address): Return 1 for function
10662         local objects.
10663         (tree_single_nonzero_warnv_p): Don't handle function local objects
10664         here.
10666         PR c++/72813
10667         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
10668         of c-header.
10670 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
10672         PR driver/78877
10673         * opts.c: Include "spellcheck.h"
10674         (struct string_fragment): New struct.
10675         (struct edit_distance_traits<const string_fragment &>): New
10676         struct.
10677         (get_closest_sanitizer_option): New function.
10678         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
10680 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
10682         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
10683         by 12.
10684         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
10685         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
10686         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
10687         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
10688         for initial die_offset if dwarf_split_debug_info.
10689         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
10690         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
10691         fields.
10692         (output_skeleton_debug_sections): Formatting fix.  Use
10693         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
10694         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
10696 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
10698         * config/arm/cortex-a53.md: Add bypasses for
10699         cortex_a53_r2f_cvt.
10700         (cortex_a53_r2f): Only use for transfers.
10701         (cortex_a53_f2r): Likewise.
10702         (cortex_a53_r2f_cvt): Add reservation for conversions.
10703         (cortex_a53_f2r_cvt): Likewise.
10705 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
10707         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
10708         to all inlined functions, change static to extern.
10710 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
10712         PR target/78253
10713         * config/arm/arm.c (legitimize_pic_address): Handle reference to
10714         weak symbol.
10715         (arm_assemble_integer): Likewise.
10717 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
10719         * config.gcc: Use new awk script to check CPU, FPU and architecture
10720         parameters for --with-... options.
10721         * config/arm/parsecpu.awk: New file
10722         * config/arm/arm-cpus.in: New file.
10723         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
10724         files.
10725         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
10726         files.
10727         * config/arm/t-arm: Update dependency rules.
10728         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
10729         of processing .def files.
10730         * config/arm/genopt.sh: Deleted.
10731         * config/arm/gentune.sh: Deleted.
10732         * config/arm/arm-cores.def: Deleted.
10733         * config/arm/arm-arches.def: Deleted.
10734         * config/arm/arm-fpus.def: Deleted.
10735         * config/arm/arm-tune.md: Regenerated.
10736         * config/arm/arm-tables.opt: Regenerated.
10737         * config/arm/arm-cpu.h: New generated file.
10738         * config/arm/arm-cpu-data.h: New generated file.
10739         * config/arm/arm-cpu-cdata.h: New generated file.
10741 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
10743         PR lto/79042
10744         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
10745         bit.
10746         (input_varpool_node): Unpack dynamically_initialized bit.
10748 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
10750         PR rtl-optimization/79032
10751         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
10752         the alignment of the adjusted memory reference against that of MODE,
10753         instead of the alignment of the original memory reference.
10755 2017-01-11  Martin Jambor  <mjambor@suse.cz>
10757         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
10758         test.
10759         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
10760         decorated functions.
10762 2017-01-11  Richard Biener  <rguenther@suse.de>
10764         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
10765         set range/nonnull info for PHI results.  Do not set it on
10766         stmts marked for removal.
10768 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
10770         * expr.c (store_field): In the bitfield case, fetch the return value
10771         from the registers before applying a single big-endian adjustment.
10772         Always do a final load for a BLKmode value not larger than a word.
10774 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
10776         PR c++/77949
10777         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
10778         that we correctly handle column numbers greater than
10779         LINE_MAP_MAX_COLUMN_NUMBER.
10781 2017-01-10  Martin Sebor  <msebor@redhat.com>
10783         PR middle-end/78245
10784         * gimple-ssa-sprintf.c (get_destination_size): Call
10785         {init,fini}object_sizes.
10786         * tree-object-size.c (addr_object_size): Adjust.
10787         (pass_through_call): Adjust.
10788         (pass_object_sizes::execute): Adjust.
10789         * tree-object-size.h (fini_object_sizes): Declare.
10791 2017-01-10  Martin Sebor  <msebor@redhat.com>
10793         PR tree-optimization/78775
10794         * builtins.c (get_size_range): Move...
10795         * calls.c: ...to here.
10796         (alloc_max_size): Accept zero argument.
10797         (operand_signed_p): Remove.
10798         (maybe_warn_alloc_args_overflow): Call get_size_range.
10799         * calls.h (get_size_range): Declare.
10801 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
10803         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
10804         from TI's devices.csv file as of September 2016.
10805         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
10807 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
10809         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
10810         * doc/invoke.texi: Likewise.
10811         * doc/md.texi: Likewise.
10812         * doc/objc.texi: Likewise.
10814 2017-01-10  Joshua Conner  <joshconner@google.com>
10816         * config/arm/fuchsia-elf.h: New file.
10817         * config/fuchsia.h: New file.
10818         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
10819         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
10820         targets.
10821         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
10823 2016-01-10  Richard Biener  <rguenther@suse.de>
10825         PR tree-optimization/79034
10826         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
10827         Propagate out degenerate PHIs in the joiner.
10829 2017-01-10  Martin Liska  <mliska@suse.cz>
10831         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
10832         (sort_congruence_classes_by_decl_uid): Likewise.
10833         (sort_congruence_class_groups_by_decl_uid): Likewise.
10834         (sem_item_optimizer::merge_classes): Sort class, groups in these
10835         classes and members in the groups by DECL_UID of declarations.
10836         This would make merge operations stable.
10838 2017-01-10  Martin Liska  <mliska@suse.cz>
10840         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
10841         usage of m_classes_vec.
10842         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
10843         (sem_item_optimizer::get_group_by_hash): Likewise.
10844         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
10845         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
10846         (sem_item_optimizer::verify_classes): Likewise.
10847         (sem_item_optimizer::process_cong_reduction): Likewise.
10848         (sem_item_optimizer::dump_cong_classes): Likewise.
10849         (sem_item_optimizer::merge_classes): Likewise.
10850         * ipa-icf.h (congruence_class_hash): Rename from
10851         congruence_class_group_hash.  Remove declaration of m_classes_vec.
10853 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
10855         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
10856         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
10857         * config.gcc: Add avx512vpopcntdqintrin.h.
10858         * config/i386/avx512vpopcntdqintrin.h: New.
10859         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
10860         * config/i386/i386-builtin-types.def: Add new types.
10861         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
10862         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
10863         __builtin_ia32_vpopcountq_v8di_mask): New.
10864         * config/i386/i386-c.c (ix86_target_macros_internal): Define
10865         __AVX512VPOPCNTDQ__.
10866         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
10867         (PTA_AVX512VPOPCNTDQ): Define.
10868         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
10869         TARGET_AVX512VPOPCNTDQ_P): Define.
10870         * config/i386/i386.opt: Add mavx512vpopcntdq.
10871         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
10872         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
10874 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
10876         PR middle-end/77484
10877         * predict.def (PRED_CALL): Set to 67.
10879 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
10881         * expr.c (store_field): In the bitfield case, if the value comes from
10882         a function call and is of an aggregate type returned in registers, do
10883         not modify the field mode; extract the value in all cases if the mode
10884         is BLKmode and the size is not larger than a word.
10886 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
10888         PR target/71017
10889         * config/i386/cpuid.h: Fix undefined behavior.
10891 2017-01-04  Jeff Law  <law@redhat.com>
10893         PR tree-optimization/79007
10894         PR tree-optimization/67955
10895         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
10896         conservative for pt.null when flag_non_call_exceptions is on.
10898 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
10900         PR translation/79019
10901         PR translation/79020
10902         * params.def (PARAM_INLINE_MIN_SPEEDUP,
10903         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
10904         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
10905         in descriptions.
10906         * config/avr/avr.opt (maccumulate-args): Likewise.
10907         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
10908         * common.opt (freport-bug): Likewise.
10909         * cif-code.def (CIF_FINAL_ERROR): Likewise.
10910         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
10911         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
10912         translatable string.
10913         * config/i386/i386.c (function_value_32): Likewise.
10914         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
10915         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
10916         Likewise.
10917         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
10918         * common/config/msp430/msp430-common.c (msp430_handle_option):
10919         Likewise.
10920         * symtab.c (symtab_node::verify_base): Likewise.
10921         * opts.c (set_debug_level): Likewise.
10922         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
10923         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10924         missing whitespace to translatable strings.
10925         * config/avr/avr.md (bswapsi2): Fix typo in comment.
10926         * config/sh/superh.h: Likewise.
10927         * config/i386/xopintrin.h: Likewise.
10928         * config/i386/znver1.md: Likewise.
10929         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
10930         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
10931         * double-int.h (struct double_int): Likewise.
10932         * double-int.c (div_and_round_double): Likewise.
10933         * wide-int.cc: Likewise.
10934         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
10935         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
10936         * cfgcleanup.c (crossjumps_occured): Renamed to ...
10937         (crossjumps_occurred): ... this.
10938         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
10939         Adjust all uses.
10941         PR tree-optimization/78899
10942         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
10943         returning bool return struct loop *, NULL for failure and the new
10944         loop on success.
10945         (versionable_outer_loop_p): Don't version outer loop if it has
10946         dont_vectorized bit set.
10947         (tree_if_conversion): When versioning outer loop, ensure
10948         tree_if_conversion is performed also on the inner loop of the
10949         non-vectorizable outer loop copy.
10950         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
10951         LOOP_VECTORIZED in inner loop of the scalar outer loop and
10952         prevent vectorization of it.
10953         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
10954         the outer loop vectorization of the non-scalar version is attempted
10955         before vectorization of the inner loop in scalar version.  If
10956         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
10957         vectorization of its inner loop.
10958         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
10959         has 2 inner loops, rename also on edges from bb whose single pred
10960         is outer_loop->header.  Fix typo in function comment.
10962 2017-01-09  Martin Sebor  <msebor@redhat.com>
10964         PR bootstrap/79033
10965         * asan.c (asan_emit_stack_protection): Increase local buffer size
10966         to avoid snprintf truncation warning.
10968 2017-01-09  Andrew Pinski  <apinski@cavium.com>
10970         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
10971         to reference thunderx2t99 for the tuning structure
10972         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
10973         Rename to ...
10974         (thunderx2t99_extra_costs): This.
10975         * config/aarch64/aarch64-tune.md: Regenerate.
10976         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
10977         (vulcan_addrcost_table): This.
10978         (vulcan_regmove_cost): Rename to ...
10979         (thunderx2t99_regmove_cost): This.
10980         (vulcan_vector_cost): Rename to ...
10981         (thunderx2t99_vector_cost): this.
10982         (vulcan_branch_cost): Rename to ...
10983         (thunderx2t99_branch_cost): This.
10984         (vulcan_tunings): Rename to ...
10985         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
10986         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
10988 2017-01-09  Martin Jambor  <mjambor@suse.cz>
10990         PR ipa/78365
10991         PR ipa/78599
10992         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
10993         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
10994         (propagate_vr_accross_jump_function): Use the above function for all
10995         value range computations for pass-through jump functions and type
10996         converasion from explicit value range values.
10997         (ipcp_propagate_stage): Do not attempt to deduce types of formal
10998         parameters from TYPE_ARG_TYPES.
10999         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
11000         (ipa_write_node_info): Stream type of the actual argument.
11001         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
11003 2017-01-09  Martin Liska  <mliska@suse.cz>
11005         PR pch/78970
11006         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
11007         (lookup_compiler): Do not show error message with have_E.
11009 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
11011         PR tree-optimization/78938
11012         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
11013         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
11014         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
11015         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
11016         fixes.
11018 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11020         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
11021         is const0_rtx.
11023 2017-01-09  Richard Biener  <rguenther@suse.de>
11025         PR tree-optimization/78997
11026         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
11027         name condition properly.
11029 2017-01-09  Richard Biener  <rguenther@suse.de>
11031         PR debug/79000
11032         * dwarf2out.c (is_cxx): New overload with context.
11033         (is_naming_typedef_decl): Use it.
11035 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
11037         * invoke.texi (Option Summary): Correct spacing in option lists
11038         and add line breaks to fix over-long lines.
11040 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
11042         PR middle-end/17660
11044         * extend.texi (Common Variable Attributes): Add xref to GCC
11045         Internals manual to explain mode attribute keywords.
11047 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
11049         PR other/16519
11050         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
11051         and Preprocessor Options.
11052         (Options for Linking): Document -pthread here....
11053         (RS/6000 and PowerPC Options): ...not here.
11054         (Solaris 2 Options): ...or here.
11055         * doc/cppopts.texi: Document -pthread.
11057 2017-01-08  Martin Sebor  <msebor@redhat.com>
11059         PR middle-end/77708
11060         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
11061         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
11062         New member functions.
11063         (format_directive): Used them.
11064         (add_bytes): Same.
11065         (pass_sprintf_length::handle_gimple_call): Same.
11066         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
11067         to avoid truncation for any argument.
11068         (extract_affine_mul): Same.
11069         * tree.c (get_file_function_name): Same.
11071 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
11073         PR middle-end/77484
11074         * predict.def (PRED_INDIR_CALL): Set to 86.
11076 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
11078         PR preprocessor/54124
11079         * doc/cppopts.texi: Reformat -d subtable to list the full name
11080         of the options.  Add cross-reference to the docs for the general
11081         compiler -d options.
11082         * doc/invoke.texi (Developer Options): Add cross-reference to the
11083         preprocessor-specific -d option documentation.
11085 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
11087         PR preprocessor/13498
11088         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
11089         redudant material, and reflect new command-line options.
11090         (System Headers): Likewise.
11092 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
11094         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
11095         -isystem, and -idirafter.  Copy-edit.
11096         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
11097         default for -ftrack-macro-expansion.  Delete obsolete and
11098         badly-formatted implementation details about -fdebug-cpp output.
11099         * doc/cppwarnopts.texi: Copy-edit.
11101 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
11103         PR c++/72803
11104         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
11105         that the transition from a max line width >= 1<<10 to narrower
11106         lines works correctly.
11108 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
11110         * doc/options.texi (PerFunction): New.
11111         * opt-functions.awk (switch_flags): Map both Optimization and
11112         PerFunction to CL_OPTIMIZATION.
11113         * opth-gen.awk: Test for PerFunction flag along with
11114         Optimization.
11115         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
11116         it only when the latter is present.  Skip those that don't in
11117         the hash function generator.
11118         * common.opt (fvar-tracking): Mark as PerFunction instead of
11119         Optimization.
11120         (fvar-tracking-assignments): Likewise.
11121         (fvar-tracking-assignments-toggle): Likewise.
11122         (fvar-tracking-uninit): Likewise.
11124 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
11126         PR translation/79018
11127         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
11128         the and store.
11130 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
11132         PR target/57583
11133         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
11134         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
11135         TARGET_LONG_JUMP_TABLE_OFFSETS.
11136         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
11137         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
11138         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
11139         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
11140         * config/m68k/m68k.md (tablejump expander): Likewise.
11141         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
11142         TARGET_LONG_JUMP_TABLE_OFFSETS.
11143         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
11144         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
11146 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11147             David Holsgrove <david.holsgrove@xilinx.com>
11149         * common/config/microblaze/microblaze-common.c
11150         (TARGET_EXCEPT_UNWIND_INFO): Remove.
11151         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
11152         New prototype.
11153         * config/microblaze/microblaze.c (microblaze_must_save_register)
11154         (microblaze_expand_epilogue, microblaze_return_addr): Handle
11155         calls_eh_return.
11156         (microblaze_eh_return): New function.
11157         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
11158         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
11159         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
11160         * config/microblaze/microblaze.md (eh_return): New pattern.
11162 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
11164         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
11165         GCC_DIAGNOSTIC_STRINGIFY): Define.
11167         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
11169 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11171         * config/arm/arm.md (<mcrr>): New.
11172         (<mrrc>): New.
11173         * config/arm/arm.c (arm_arch5te): New.
11174         (arm_option_override): Set arm_arch5te.
11175         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
11176         and mrrc2.
11177         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
11178         (arm_mcrr_qualifiers): ... this. New.
11179         (MRRC_QUALIFIERS): Define to...
11180         (arm_mrrc_qualifiers): ... this. New.
11181         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
11182         __arm_mrrc2): New.
11183         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
11184         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
11185         (MRRCI, mrrc, MRRC): New.
11186         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
11187         VUNSPEC_MRRC2): New.
11189 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11191         * config/arm/arm.md (<mcr>): New.
11192         (<mrc>): New.
11193         * config/arm/arm.c (arm_coproc_builtin_available): Add
11194         support for mcr, mrc, mcr2 and mrc2.
11195         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
11196         (arm_mcr_qualifiers): ... this. New.
11197         (MRC_QUALIFIERS): Define to ...
11198         (arm_mrc_qualifiers): ... this. New.
11199         (MCR_QUALIFIERS): Define to ...
11200         (arm_mcr_qualifiers): ... this. New.
11201         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
11202         __arm_mrc2): New.
11203         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
11204         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
11205         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
11206         VUNSPEC_MRC2): New.
11208 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11210         * config/arm/arm.md (*ldc): New.
11211         (*stc): New.
11212         (<ldc>): New.
11213         (<stc>): New.
11214         * config/arm/arm.c (arm_coproc_builtin_available): Add
11215         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
11216         (arm_coproc_ldc_stc_legitimate_address): New.
11217         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
11218         'qualifier_const_pointer'.
11219         (LDC_QUALIFIERS): Define to...
11220         (arm_ldc_qualifiers): ... this. New.
11221         (STC_QUALIFIERS): Define to...
11222         (arm_stc_qualifiers): ... this. New.
11223         * config/arm/arm-protos.h
11224         (arm_coproc_ldc_stc_legitimate_address): New.
11225         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
11226         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
11227         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
11228         stc2, stcl, stc2l): New.
11229         * config/arm/constraints.md (Uz): New.
11230         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
11231         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
11232         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
11233         VUNSPEC_STC2L): New.
11235 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11237         * config/arm/arm.md (<cdp>): New.
11238         * config/arm/arm.c (neon_const_bounds): Rename this ...
11239         (arm_const_bounds): ... this.
11240         (arm_coproc_builtin_available): New.
11241         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
11242         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
11243         (CDP_QUALIFIERS): Define to...
11244         (arm_cdp_qualifiers): ... this. New.
11245         (void_UP): Define.
11246         (arm_expand_builtin_args): Add case for 6 arguments.
11247         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
11248         (arm_const_bounds): ... this.
11249         (arm_coproc_builtin_available): New.
11250         * config/arm/arm_acle.h (__arm_cdp): New.
11251         (__arm_cdp2): New.
11252         * config/arm/arm_acle_builtins.def (cdp): New.
11253         (cdp2): New.
11254         * config/arm/iterators.md (CDPI,CDP,cdp): New.
11255         * config/arm/neon.md: Rename all 'neon_const_bounds' to
11256         'arm_const_bounds'.
11257         * config/arm/types.md (coproc): New.
11258         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
11259         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
11260         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
11261         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
11263 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11265         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
11266         (UBINOP_QUALIFIERS): New.
11267         (si_UP): Define.
11268         (acle_builtin_data): New. Change comment.
11269         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
11270         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
11271         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
11272         arm_acle_builtins.def.
11273         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
11274         (arm_init_acle_builtins): New.
11275         (CRC32_BUILTIN): Remove.
11276         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
11277         crc32cb, crc32ch and crc32cw.
11278         (arm_init_crc32_builtins): Remove.
11279         (arm_init_builtins): Use arm_init_acle_builtins rather
11280         than arm_init_crc32_builtins.
11281         (arm_expand_acle_builtin): New.
11282         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
11283         * config/arm/arm_acle_builtins.def: New.
11285 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11287         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
11288         (arm_builtin_datum): ... this.
11289         (arm_init_neon_builtin): Rename to ...
11290         (arm_init_builtin): ... this. Add a new parameters PREFIX
11291         and USE_SIG_IN_NAME.
11292         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
11293         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
11294         'arm_builtin_datum'.
11295         (arm_init_vfp_builtins): Likewise.
11296         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
11297         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
11298         (arm_expand_neon_args): Rename to ...
11299         (arm_expand_builtin_args): ... this. Rename builtin_arg
11300         enum values and differentiate between ARG_BUILTIN_MEMORY
11301         and ARG_BUILTIN_NEON_MEMORY.
11302         (arm_expand_neon_builtin_1): Rename to ...
11303         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
11304         values, arm_expand_builtin_args and add bool parameter NEON.
11305         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
11306         (arm_expand_vfp_builtin): Likewise.
11307         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
11309 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
11311         PR middle-end/77484
11312         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
11313         * predict.c (tree_estimate_probability_bb): Reverse direction of
11314         polymorphic call predictor.
11316 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
11318         * passes.c (execute_one_pass): Split out pass-skipping logic into...
11319         (determine_pass_name_match): ...this new function and...
11320         (should_skip_pass_p): ...this new function.
11322 2017-01-06  Nathan Sidwell  <nathan@acm.org>
11324         * ipa-visibility.c (function_and_variable_visibility): Reformat
11325         comments and long lines.  Remove extrneous if.
11326         * symtab.c (symtab_node::make_decl_local): Fix code format.
11327         (symtab_node::set_section_for_node): Fix comment typo.
11329 2017-01-06  Martin Liska  <mliska@suse.cz>
11331         PR bootstrap/79003
11332         * lra-constraints.c: Rename invariant to lra_invariant.
11333         * predict.c (set_even_probabilities): Initialize e to NULL.
11335 2017-01-05  Martin Sebor  <msebor@redhat.com>
11337         PR tree-optimization/78910
11338         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
11339         (format_integer): Correct off-by-one error in the handling
11340         of precision with negative numbers in signed conversions..
11342 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11344         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
11346 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
11348         PR tree-optimization/71016
11349         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
11350         factor_out_conditional_conversion.  Formatting fix.
11351         (factor_out_conditional_conversion): Add cond_stmt argument.
11352         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
11353         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
11354         Formatting fix.
11356 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
11358         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
11359         read-rtl-function.o, and selftest-rtl.o.
11360         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
11361         (selftest::aarch64_test_loading_full_dump): New function.
11362         (selftest::aarch64_run_selftests): New function.
11363         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
11364         selftest::aarch64_run_selftests.
11365         * config/i386/i386.c
11366         (selftest::ix86_test_loading_dump_fragment_1): New function.
11367         (selftest::ix86_test_loading_call_insn): New function.
11368         (selftest::ix86_test_loading_full_dump): New function.
11369         (selftest::ix86_test_loading_unspec): New function.
11370         (selftest::ix86_run_selftests): Call the new functions.
11371         * emit-rtl.c (maybe_set_max_label_num): New function.
11372         * emit-rtl.h (maybe_set_max_label_num): New decl.
11373         * function.c (instantiate_decls): Guard call to
11374         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
11375         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
11376         "static".
11377         * gensupport.c (gen_reader::gen_reader): Pass "false"
11378         for new "compact" param of rtx_reader.
11379         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
11380         rather than an empty string for NULL strings.
11381         * read-md.c: Potentially include config.h rather than bconfig.h.
11382         Wrap include of errors.h with #ifdef GENERATOR_FILE.
11383         (have_error): New global, copied from errors.c.
11384         (md_reader::read_name): Rename to...
11385         (md_reader::read_name_1): ...this, adding "out_loc" param,
11386         and converting "missing name or number" to returning false, rather
11387         than failing.
11388         (md_reader::read_name): Reimplement in terms of read_name_1.
11389         (md_reader::read_name_or_nil): New function.
11390         (md_reader::read_string): Handle "(nil)" by returning NULL.
11391         (md_reader::md_reader): Add new param "compact".
11392         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
11393         (md_reader::read_file): New method.
11394         * read-md.h (md_reader::md_reader): Add new param "compact".
11395         (md_reader::read_file): New method.
11396         (md_reader::is_compact): New accessor.
11397         (md_reader::read_name): Convert return type from void to file_location.
11398         (md_reader::read_name_or_nil): New decl.
11399         (md_reader::read_name_1): New decl.
11400         (md_reader::m_compact): New field.
11401         (noop_reader::noop_reader): Pass "false" for new "compact" param
11402         of rtx_reader.
11403         (rtx_reader::rtx_reader): Add new "compact" param.
11404         (rtx_reader::read_rtx_operand): Make virtual and convert return
11405         type from void to rtx.
11406         (rtx_reader::read_until): New decl.
11407         (rtx_reader::handle_any_trailing_information): New virtual function.
11408         (rtx_reader::postprocess): New virtual function.
11409         (rtx_reader::finalize_string): New virtual function.
11410         (rtx_reader::m_in_call_function_usage): New field.
11411         (rtx_reader::m_reuse_rtx_by_id): New field.
11412         * read-rtl-function.c: New file.
11413         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
11414         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
11415         (selftest::verify_three_block_rtl_cfg): New decl.
11416         * read-rtl-function.h: New file.
11417         * read-rtl.c: Potentially include config.h rather than bconfig.h.
11418         For host, include function.h, memmodel.h, and emit-rtl.h.
11419         (one_time_initialization): New function.
11420         (struct compact_insn_name): New struct.
11421         (compact_insn_names): New array.
11422         (find_code): Handle insn codes in compact dumps.
11423         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
11424         (bind_subst_iter_and_attr): Likewise.
11425         (add_condition_to_string): Likewise.
11426         (add_condition_to_rtx): Likewise.
11427         (apply_attribute_uses): Likewise.
11428         (add_current_iterators): Likewise.
11429         (apply_iterators): Likewise.
11430         (initialize_iterators): Guard usage of apply_subst_iterator with
11431         #ifdef GENERATOR_FILE.
11432         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
11433         (md_reader::read_mapping): Likewise.
11434         (add_define_attr_for_define_subst): Likewise.
11435         (add_define_subst_attr): Likewise.
11436         (read_subst_mapping): Likewise.
11437         (check_code_iterator): Likewise.
11438         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
11439         logic to...
11440         (one_time_initialization): New function.
11441         (rtx_reader::read_until): New method.
11442         (read_flags): New function.
11443         (parse_reg_note_name): New function.
11444         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
11445         Handle reuse_rtx ids.
11446         Wrap iterator lookup within #ifdef GENERATOR_FILE.
11447         Add parsing support for RTL dumps, mirroring the special-cases in
11448         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
11449         values, and calling handle_any_trailing_information.
11450         (rtx_reader::read_rtx_operand): Convert return type from void
11451         to rtx, returning return_rtx.  Handle case 'e'.  Call
11452         finalize_string on XSTR and XTMPL fields.
11453         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
11454          "(nil)" values were omitted.  Call the postprocess vfunc on the
11455         return_rtx.
11456         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
11457         class ctor.  Initialize m_in_call_function_usage.  Call
11458         one_time_initialization.
11459         * rtl-tests.c (selftest::test_uncond_jump): Call
11460         set_new_first_and_last_insn.
11461         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
11462         * selftest-rtl.c: New file.
11463         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
11464         (selftest::get_insn_by_uid): New decl.
11465         * selftest-run-tests.c (selftest::run_tests): Call
11466         read_rtl_function_c_tests.
11467         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
11468         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
11469         dumps.
11471 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
11473         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
11474         operands in a special way.  Assert that pos+len <= mode precision.
11476 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
11478         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
11479         3 argument Alias with unlimited for the negative form.
11480         (fno-vect-cost-model): Removed.
11482 2017-01-05  Martin Liska  <mliska@suse.cz>
11484         * hsa-gen.c (gen_hsa_divmod): New function.
11485         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
11487 2017-01-05  Martin Liska  <mliska@suse.cz>
11489         PR pch/78970
11490         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
11491         header.
11493 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11495         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
11496         small constant length operands.
11498 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11500         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
11501         between loop iterations.
11503 2017-01-05  Martin Liska  <mliska@suse.cz>
11505         PR sanitizer/78815
11506         * gimplify.c (gimplify_decl_expr): Compare to
11507         asan_poisoned_variables instread of checking flags.
11508         (gimplify_target_expr): Likewise.
11509         (gimplify_expr): Likewise.
11510         (gimplify_function_tree): Conditionally initialize
11511         asan_poisoned_variables.
11513 2017-01-04  Jeff Law  <law@redhat.com>
11515         PR tree-optimizatin/78812
11516         * rtl.h (contains_mem_rtx_p): Prototype.
11517         * ifcvt.c (containts_mem_rtx_p): Move from here to...
11518         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
11519         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
11520         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
11521         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
11523 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11525         * input.c (assert_char_at_range): Default-initialize actual_range.
11527 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11529         * df-scan.c (df_ref_create_structure): Make regno unsigned,
11530         to match the caller.
11532 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11534         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
11535         insns after final jump in test to emit dummy move.
11537 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11539         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
11540         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
11542 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
11544         * multiple_target.c (create_dispatcher_calls): Init e_next.
11545         * tree-ssa-loop-split.c (split_loop): Init border.
11546         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
11547         scalar_type.
11549 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
11551         PR target/71977
11552         PR target/70568
11553         PR target/78823
11554         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
11555         (altivec_register_operand): Do not return true if the operand
11556         contains a SUBREG mixing SImode and SFmode.
11557         (vsx_register_operand): Likewise.
11558         (vsx_reg_sfsubreg_ok): New predicate.
11559         (vfloat_operand): Do not return true if the operand contains a
11560         SUBREG mixing SImode and SFmode.
11561         (vint_operand): Likewise.
11562         (vlogical_operand): Likewise.
11563         (gpc_reg_operand): Likewise.
11564         (int_reg_operand): Likewise.
11565         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
11566         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
11567         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
11568         SImode and SFmode.
11569         (rs6000_emit_move_si_sf_subreg): New helper function.
11570         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
11571         fixup SUBREGs involving SImode and SFmode.
11572         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
11573         numbers for the new peephole2 optimization.
11574         (peephole2 for SFmode unions): New peephole2 to optimize cases in
11575         the GLIBC math library that do AND/IOR/XOR operations on single
11576         precision floating point.
11577         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
11578         target macros to say whether we need to avoid SUBREGs mixing
11579         SImode and SFmode.
11580         (TARGET_ALLOW_SF_SUBREG): Likewise.
11581         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
11582         (UNSPEC_SI_FROM_SF): Likewise.
11583         (iorxor): Change spacing.
11584         (and_ior_xor): New iterator for AND, IOR, and XOR.
11585         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
11586         (movdi_from_sf_zero_ext): Likewise.
11587         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
11588         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
11589         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
11590         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
11591         (fms<mode>4): Likewise.
11592         (fnma<mode>4): Likewise.
11593         (fnms<mode>4): Likewise.
11594         (nfma<mode>4): Likewise.
11595         (nfms<mode>4): Likewise.
11597 2017-01-04  Marek Polacek  <polacek@redhat.com>
11599         PR c++/64767
11600         * doc/invoke.texi: Document -Wpointer-compare.
11602 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
11604         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
11605         RejectNegative.
11607         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
11608         descriptions for -gdwarf-5 and emit them as uleb128 instead of
11609         2-byte data.
11611 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11613         PR target/78056
11614         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
11615         documentation of the powerpc_popcntb_ok attribute.
11616         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
11617         code to issue warning messages if a requested CPU configuration is
11618         not supported by the binary (assembler and loader) toolchain.
11619         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
11620         made to define a built-in function that has been disabled.
11621         (paired_init_builtins): Add assertion to prevent ICE if attempt is
11622         made to define a built-in function that has been disabled.
11623         (altivec_init_builtins): Add comment explaining why definition
11624         of the DST built-in functions is not preceded by an assertion
11625         check.  Add assertions to prevent ICE if attempts are made to
11626         define an altivec predicate or an abs* built-in function that has
11627         been disabled.
11628         (htm_init_builtins): Add comment explaining why definition of the
11629         htm built-in functions is not preceded by an assertion check.
11631 2017-01-04  Jeff Law  <law@redhat.com>
11633         PR tree-optimizatin/67955
11634         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
11635         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
11636         the points-to solution does not include pt_null.  Use DECL_PT_UID
11637         unconditionally.
11639 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
11641         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
11642         Use gen_int_mode instead of gen_lopwart for const_int operands.
11644 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
11646         PR tree-optimization/71563
11647         * match.pd: Simplify X << Y into X if Y is known to be 0 or
11648         out of range value - has low bits known to be zero.
11650 2017-01-04  Alan Modra  <amodra@gmail.com>
11652         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
11653         * configure: Regenerate.
11654         * config.in: Regenerate.
11656 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
11658         PR bootstrap/77569
11659         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
11660         a substring of the message, but strcmp with the whole message.  Ifdef
11661         ENABLE_NLS, translate the message first using dgettext.
11663 2017-01-03  Jeff Law  <law@redhat.com>
11665         PR tree-optimizatin/78856
11666         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
11667         (mark_threaded_blocks): Remove code to truncate thread paths that
11668         cross multiple loop headers.  Instead invalidate the cached loop
11669         iteration information and handle case of a thread path walking
11670         into an irreducible region.
11672 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
11674         PR target/78900
11675         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
11676         assertions.  Add support for doing the signbit if the IEEE 128-bit
11677         floating point value is in a GPR.
11678         * config/rs6000/rs6000.md (Fsignbit): Delete.
11679         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
11680         Update the length attribute if the value is in a GPR.
11681         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
11682         the sign or zero extension instruction, since the value is always 0/1.
11683         (signbit<mode>2_dm2): Delete using <Fsignbit>.
11685         PR target/78953
11686         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
11687         extracting SImode to a GPR register so that we can generate a
11688         store, limit the vector to be in a traditional Altivec register
11689         for the vextuwrx instruction.
11691 2017-01-03  Ian Lance Taylor  <iant@google.com>
11693         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
11695 2017-01-03  Martin Sebor  <msebor@redhat.com>
11697         PR tree-optimization/78696
11698         * gimple-ssa-sprintf.c (format_floating): Correct handling of
11699         precision.  Use MPFR for %f for greater fidelity.  Correct handling
11700         of %g.
11701         (pass_sprintf_length::compute_format_length): Set width and precision
11702         specified by asrerisk to void_node for vararg functions.
11703         (try_substitute_return_value): Adjust dump output.
11705 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
11707         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
11709 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11711         * doc/invoke.texi (SPARC options): Document -mlra as the default.
11712         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
11713         -mlra/-mno-lra was passed to the compiler.
11715 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
11717         PR rtl-optimization/65618
11718         * emit-rtl.c (try_split): Move initialization of "before" and
11719         "after" to just before the call to emit_insn_after_setloc.
11721 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
11723         * doc/md.texi (Standard Names): Remove reference to Java frontend.
11725 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
11727         * dwarf2out.c (gen_enumeration_type_die): When
11728         -gno-strict-dwarf, add a DW_AT_encoding attribute.
11730 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
11732         PR tree-optimization/78965
11733         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
11734         Change first argument from const call_info & to call_info &.  For %n
11735         set info.nowrite to false.
11737         PR middle-end/78901
11738         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
11739         possibly throwing calls.
11741         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
11742         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
11743         and fns handling, rather than in a separate case SSA_NAME.
11745 2017-01-02  Jeff Law  <law@redhat.com>
11747         * config/darwin-driver.c (darwin_driver_init): Const-correctness
11748         fixes for first_period and second_period variables.
11750 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
11752         PR target/78967
11753         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
11754         (*insvqi_1): New insn pattern.
11755         (*insvqi_1_mem_rex64): Ditto.
11756         (*insvqi_2): Ditto.
11757         (*insvqi_3): Rename from *insvqi.
11759         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
11761 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
11763         * doc/cfg.texi (Edges): Remove reference to Java.
11764         (Maintaining the CFG): Ditto.
11766 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
11768         PR middle-end/77674
11769         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
11770         transparent aliases.
11772 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
11774         PR middle-end/77484
11775         * predict.def (PRED_CALL): Update hitrate.
11776         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
11777         * predict.c (tree_estimate_probability_bb): Split CALL predictor
11778         into direct/indirect/polymorphic variants.
11780 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
11782         Update copyright years.
11784         * gcc.c (process_command): Update copyright notice dates.
11785         * gcov-dump.c (print_version): Ditto.
11786         * gcov.c (print_version): Ditto.
11787         * gcov-tool.c (print_version): Ditto.
11788         * gengtype.c (create_file): Ditto.
11789         * doc/cpp.texi: Bump @copying's copyright year.
11790         * doc/cppinternals.texi: Ditto.
11791         * doc/gcc.texi: Ditto.
11792         * doc/gccint.texi: Ditto.
11793         * doc/gcov.texi: Ditto.
11794         * doc/install.texi: Ditto.
11795         * doc/invoke.texi: Ditto.
11797 Copyright (C) 2017 Free Software Foundation, Inc.
11799 Copying and distribution of this file, with or without modification,
11800 are permitted in any medium without royalty provided the copyright
11801 notice and this notice are preserved.