re PR sanitizer/80110 (error: statement marked for throw, but doesn’t w/ -fsanitize...
[official-gcc.git] / gcc / ChangeLog
bloba1e007f118db8e09ce8fe195ad56ed6c02e24b5a
1 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
3         PR sanitizer/80110
4         * doc/invoke.texi (-fsanitize=thread): Document that with
5         -fnon-call-exceptions atomics are not able to throw
6         exceptions.
8         PR sanitizer/80110
9         * tsan.c: Include tree-eh.h.
10         (instrument_builtin_call): Call maybe_clean_eh_stmt or
11         maybe_clean_or_replace_eh_stmt where needed.
12         (instrument_memory_accesses): Add cfg_changed argument.
13         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
14         if it returned true.
15         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
17         PR rtl-optimization/63191
18         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
19         wrapper function, moved the whole old content into ...
20         (ix86_delegitimize_address_1): ... this.  New inline function.
21         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
22         true as last argument instead of ix86_delegitimize_address.
24 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
26         * config/aarch64/aarch64.c (generic_branch_cost): Copy
27         cortexa57_branch_cost.
29 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
31         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
33 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
35         PR target/80123
36         * doc/md.texi (Constraints): Document wA constraint.
37         * config/rs6000/constraints.md (wA): New.
38         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
39         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
40         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
41         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
43 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
45         PR c++/80029
46         * gimplify.c (is_oacc_declared): New function.
47         (oacc_default_clause): Use it to set default flags for acc declared
48         variables inside parallel regions.
49         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
50         declared variables.
51         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
52         declare attribute to any decl as necessary.
54 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
56         PR target/80082
57         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
58         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
59         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
60         (arm_arch_lpae): This.
61         * config/arm/arm.c (arm_arch7ve): Rename into ...
62         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
63         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
64         arm_arch_lpae.
66 2017-03-22  Martin Liska  <mliska@suse.cz>
68         PR target/79906
69         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
70         error message instead of an ICE.
72 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
74         * doc/extend.texi (6.11 Additional Floating Types): Revise.
76 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
78         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
79         comments.
80         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
81         comments.
83 2017-03-21  Martin Sebor  <msebor@redhat.com>
85         * doc/extend.texi: Use "cannot" instead of "can't."
86         * doc/hostconfig.texi: Same.
87         * doc/install.texi: Same.
88         * doc/invoke.texi: Same.
89         * doc/loop.texi: Same.
90         * doc/md.texi: Same.
91         * doc/objc.texi: Same.
92         * doc/rtl.texi: Same.
93         * doc/tm.texi: Same.
94         * doc/tm.texi.in: Same.
95         * doc/trouble.texi: Same.
97 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
99         PR debug/63238
100         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
101         (collect_checksum_attributes): Set it.
102         (die_checksum_ordered): Use it.
104 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
106         PR tree-optimization/79908
107         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
108         change: For a VA_ARG whose LHS has been cast away, use
109         force_gimple_operand to construct the side effects.
111 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
113         PR translation/80001
114         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
115         more amenable to translation.
116         (oacc_loop_auto_partitions): Likewise.
118 2017-03-21  Marek Polacek  <polacek@redhat.com>
119             Martin Sebor  <msebor@redhat.com>
121         PR tree-optimization/80109
122         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
123         on INTEGRAL_TYPE_P.
125 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
126             Segher Boessenkool  <segher@kernel.crashing.org>
128         PR target/80125
129         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
130         check reg_used_between_p between insn and one of succ or succ2
131         depending on if succ is artificial insn not inserted into insn
132         stream.
134 2017-03-21  Martin Liska  <mliska@suse.cz>
136         PR gcov-profile/80081
137         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
138         * doc/gcc.texi: Include gcov-dump stuff.
139         * doc/gcov-dump.texi: New file.
141 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
143         PR rtl-optimization/79150
144         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
145         conditional jump, if the jump is the last insn of the loop.
147 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
148             Richard Biener  <rguenth@suse.com>
150         PR tree-optimization/79908
151         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
152         been cast away, use force_gimple_operand to construct the side
153         effects.
155 2017-03-21  Martin Liska  <mliska@suse.cz>
157         PR libfortran/79956
158         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
159         to NULL.
161 2017-03-21  Brad Spengler <spender@grsecurity.net>
163         PR plugins/80094
164         * plugin.c (htab_hash_plugin): New function.
165         (add_new_plugin): Use it and adjust.
166         (parse_plugin_arg_opt): Adjust.
167         (init_one_plugin): Likewise.
169 2017-03-21  Richard Biener  <rguenther@suse.de>
171         PR tree-optimization/80032
172         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
173         if set force the cleanup to happen unconditionally.
174         (gimplify_target_expr): Push inserted clobbers with force_uncond
175         to avoid them being removed by control-dependent DCE.
177 2017-03-21  Richard Biener  <rguenther@suse.de>
179         PR tree-optimization/80122
180         * tree-inline.c (copy_bb): Do not expans va-arg packs or
181         va_arg_pack_len when the inlined call stmt requires pack
182         expansion itself.
183         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
185 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
187         PR sanitizer/78158
188         * tsan.c (instrument_builtin_call): If the memory model argument
189         is not a constant, assume it is valid.
191         PR c/67338
192         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
193         avoid UB.
195 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
197         PR rtl-optimization/79910
198         * combine.c (can_combine_p): Do not allow combining an I0 or I1
199         if its dest is used by an insn before I2 (other than the combined
200         insns themselves, which are properly handled already).
202 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
204         Revert:
205         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
207         * combine.c (record_used_regs): New static function.
208         (try_combine): Handle situations where there is an additional
209         instruction between I2 and I3 which needs to have a LOG_LINK
210         updated.
212         Revert:
213         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
215         * combine.c (try_combine): Delete redundant i1 test.  Call
216         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
218 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
220         PR target/80083
221         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
222         alternatives 13/14.
224 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
226         PR tree-optimization/80054
227         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
228         the optimization if a PHI or any of its arguments is not dominated
229         by the candidate's basis.  Use gphi* rather than gimple* as
230         appropriate.
231         (replace_profitable_candidates): Clean up a gimple* variable that
232         should be a gphi* variable.
234 2017-03-20  Martin Sebor  <msebor@redhat.com>
236         PR c++/52477
237         * doc/extend.texi (attribute constructor): Document present limitation.
239 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
241         PR target/79963
242         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
243         __POWER9_VECTOR__ #ifdef control, change template definition to
244         use Power9-specific built-in function.
245         (vec_any_eq): Likewise.
246         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
247         to control outcomes from this test.
248         (vector_ae_<mode>p): For VEC_F modes, likewise.
250 2017-03-20  Ian Lance Taylor  <iant@google.com>
252         * config/i386/i386.c (ix86_function_regparm): Save an extra
253         register for -fsplit-stack with DECL_STATIC_CHAIN.
255 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
257         PR target/79912
258         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
259         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
261 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
263         * config/riscv/riscv.c (riscv_print_operand): Use "fence
264         iorw,ow".
265         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
266         iorw,iorw".
268 2017-03-20  Marek Polacek  <polacek@redhat.com>
270         PR sanitizer/80063
271         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
273 2017-03-20  Richard Biener  <rguenther@suse.de>
275         PR tree-optimization/80113
276         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
277         allocate extra SSA name for PHI def.
278         (add_close_phis_to_outer_loops): Likewise.
279         (add_close_phis_to_merge_points): Likewise.
280         (copy_loop_close_phi_args): Likewise.
281         (copy_cond_phi_nodes): Likewise.
283 2017-03-20  Martin Liska  <mliska@suse.cz>
285         PR middle-end/79753
286         * tree-chkp.c (chkp_build_returned_bound): Do not build
287         returned bounds for a LHS that's not a BOUNDED_P type.
289 2017-03-20  Martin Liska  <mliska@suse.cz>
291         PR target/79769
292         PR target/79770
293         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
294         COMPLEX_CST and VECTOR_CST.
296 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
298         PR target/78857
299         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
300         target operand.  A new splitter adds the clobber statement in case
301         the target operand is dead anyway.
303 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
305         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer 
306         to age-old versions of binutils and glibc.
308 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
310         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
312 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
314         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
316 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
317         
318         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
319         requirement for binutils 2.13.
321 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
323         * combine.c (try_combine): Delete redundant i1 test.  Call
324         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
326 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
328         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
329         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
330         contents.
331         <riscv64-*-elf>: Re-arrange section
332         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
333         <riscv32-*-linux>: Likewise.
334         <riscv64-*-elf>: Likewise
335         <riscv64-*-linux>: Likewise.
337 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
339         PR target/80052
340         * aarch64.opt(verbose-cost-dump): Fix typo.
342 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
344         PR target/79951
345         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
346         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
348 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
350         * reload.c (find_reloads): When reloading a nonoffsettable address,
351         use RELOAD_OTHER for it and its address reloads.
353         PR rtl-optimization/79910
354         * combine.c (record_used_regs): New static function.
355         (try_combine): Handle situations where there is an additional
356         instruction between I2 and I3 which needs to have a LOG_LINK
357         updated.
359 2017-03-17  Jeff Law  <law@redhat.com>
361         PR tree-optimization/71437
362         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
363         conditional in the hash table first.
364         (vrp_dom_walker::before_dom_children): Extract condition from
365         ASSERT_EXPR.  Record condition, its inverion and any implied
366         conditions as well.
368 2017-03-17  Marek Polacek  <polacek@redhat.com>
369             Markus Trippelsdorf  <markus@trippelsdorf.de>
371         PR tree-optimization/80079
372         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
373         m_stores_head.
375 2017-03-17  Richard Biener  <rguenther@suse.de>
377         PR middle-end/80075
378         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
379         Properly verify the LHS before the RHS possibly claims to be
380         handled.
381         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
382         do not throw.
384 2017-03-17  Martin Jambor  <mjambor@suse.cz>
386         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
387         (List of -O2 options): Likewise.
388         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
389         (-fipa-vrp) New.
391 2017-03-17  Tom de Vries  <tom@codesourcery.com>
393         * gcov-dump.c (print_usage): Print bug_report_url.
395 2017-03-17  Richard Biener  <rguenther@suse.de>
397         PR middle-end/80050
398         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
399         (parser::peek): Likewise.
401 2017-03-17  Richard Biener  <rguenther@suse.de>
403         PR tree-optimization/80048
404         * sese.c (free_sese_info): Properly release rename_map and
405         copied_bb_map elements.
407 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
409         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
410         Add linked-list forward and backlinks.  Insert on
411         construction, remove on destruction.
412         (class pass_store_merging): Add m_stores_head field.
413         (pass_store_merging::terminate_and_process_all_chains):
414         Iterate over m_stores_head list.
415         (pass_store_merging::terminate_all_aliasing_chains):
416         Likewise.
417         (pass_store_merging::execute): Check for debug stmts first.
418         Push new chains onto the m_stores_head stack.
420 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
422         PR target/71294
423         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
424         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
425         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
427 2017-03-16  Jeff Law  <law@redhat.com>
429         PR tree-optimization/71437
430         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
431         member function.  Implementation moved into after_dom_children
432         member function and into the threader's thread_outgoing_edges
433         function.
434         (dom_opt_dom_walker::after_dom_children): Simplify by moving
435         some code into new thread_outgoing_edges.
436         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
437         definition.  Simplify marker handling (do it here).   Assume we always
438         have the available expression and the const/copies tables.
439         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
440         and tree-vrp.c
441         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
442         * tree-vrp.c (equiv_stack): No longer file scoped.
443         (vrp_dom_walker): New class.
444         (vrp_dom_walker::before_dom_children): New member function.
445         (vrp_dom_walker::after_dom_children): Likewise.
446         (identify_jump_threads):  Setup domwalker.  Use it rather than
447         walking edges in a random order by hand.  Simplify setup/finalization.
448         (finalize_jump_threads): Remove.
449         (vrp_finalize): Do not call identify_jump_threads here.
450         (execute_vrp): Do it here instead and call thread_through_all_blocks
451         here too.
453         PR tree-optimization/71437
454         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
455         callers changed.
456         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
457         callers changed.
458         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
459         (dom_opt_dom_walker::thread_across_edge): Remove
460         handle_dominating_asserts argument.  All callers changed.
461         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
462         changes.  Remove calls to lhs_of_dominating_assert.  Other
463         uses of handle_dominating_asserts turn into unconditional code
464         (simplify_control_stmt_condition_1): Likewise.
465         (simplify_control_stmt_condition): Likewise.
466         (thread_through_normal_block, thread_across_edge): Likewise.
467         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
468         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
469         object if it is not an SSA_NAME.
470         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
471         before calling into the VRP specific simplifiers.
472         (identify_jump_threads): Remove handle_dominating_asserts
473         argument.
475 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
477         PR fortran/79886
478         * tree-diagnostic.c (default_tree_printer): No longer static.
479         * tree-diagnostic.h (default_tree_printer): New prototype.
481 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
483         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
484         Change ins into fmov.
486 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
488         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
489         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
490         Use h_con constraint for operand 1.
491         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
492         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
494 2017-03-15  Jeff Law  <law@redhat.com>
496         PR tree-optimization/71437
497         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
498         (record_temporary_equivalences): Use it.
500         PR tree-optimization/71437
501         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
502         tree-ssa-scopedtables.
503         (lookup_avail_expr, build_and_record_new_cond): Likewise.
504         (record_conditions, record_cond, vuse_eq): Likewise.
505         (record_edge_info): Adjust to API tweak of record_conditions.
506         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
507         (record_temporary_equivalences, optimize_stmt): Likewise.
508         (eliminate_redundant_computations): Likewise.
509         (record_equivalences_from_stmt): Likewise.
510         * tree-ssa-scopedtables.c: Include options.h and params.h.
511         (vuse_eq): New function, moved from tree-ssa-dom.c
512         (build_and_record_new_cond): Likewise.
513         (record_conditions): Likewise.  Accept vector of conditions rather
514         than edge_equivalence structure for first argument.
515         for the first argument.
516         (avail_exprs_stack::lookup_avail_expr): New member function, moved
517         from tree-ssa-dom.c.
518         (avail_exprs_stack::record_cond): Likewise.
519         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
520         from tree-ssa-dom.c.
521         (avail_exprs_stack): Add new member functions lookup_avail_expr
522         and record_cond.
523         (record_conditions): Declare.
525 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
527         PR target/80017
528         * lra-constraints.c (process_alt_operands): Increase reject for
529         reloading an input/output operand.
531 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
533         PR target/79038
534         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
535         insns to convert from signed/unsigned char/short to IEEE 128-bit
536         floating point.
537         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
539 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
541         PR target/80019
542         * config/i386/i386.c (ix86_vector_duplicate_value): Create
543         subreg of inner mode for values already in registers.
545 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
547         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
548         iteration reg is used after the loop.
550 2017-03-14  Martin Sebor  <msebor@redhat.com>
552         PR tree-optimization/79800
553         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
554         precision in negative-positive range.
555         (format_floating): Call non-const overload with adjusted precision.
557 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
559         PR target/79947
560         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
561         -mpowerpc-gfxopt.
563 2017-03-14  Martin Sebor  <msebor@redhat.com>
565         PR middle-end/80020
566         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
567         * builtins.def (aligned_alloc): Use it.
569         PR c/79936
570         * Makefile.in (GTFILES): Add calls.c.
571         * calls.c: Include "gt-calls.h".
573 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
575         PR rtl-optimization/79728
576         * regs.h (struct target_regs): New field
577         x_contains_allocatable_regs_of_mode.
578         (contains_allocatable_regs_of_mode): New macro.
579         * reginfo.c (init_reg_sets_1): Initialize it, and change
580         contains_reg_of_mode so it includes global regs as well.
581         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
582         rather than contains_regs_of_mode.
584 2017-03-14  Martin Liska  <mliska@suse.cz>
586         * doc/invoke.texi: Document options that can't be combined with
587         -fcheck-pointer-bounds.
589 2017-03-14  Martin Liska  <mliska@suse.cz>
591         PR middle-end/79831
592         * doc/invoke.texi (-Wchkp): Document the option.
594 2017-03-14  Martin Liska  <mliska@suse.cz>
596         * Makefile.in: Install gcov-dump.
598 2017-03-14  Martin Liska  <mliska@suse.cz>
600         * multiple_target.c (expand_target_clones): Bail out for
601         an invalid attribute.
603 2017-03-14  Richard Biener  <rguenther@suse.de>
605         * alias.c (struct alias_set_entry): Pack properly.
606         * cfgloop.h (struct loop): Likewise.
607         * cse.c (struct set): Likewise.
608         * ipa-utils.c (struct searchc_env): Likewise.
609         * loop-invariant.c (struct invariant): Likewise.
610         * lra-remat.c (struct cand): Likewise.
611         * recog.c (struct change_t): Likewise.
612         * rtl.h (struct address_info): Likewise.
613         * symbol-summary.h (function_summary): Likewise.
614         * tree-loop-distribution.c (struct partition): Likewise.
615         * tree-object-size.c (struct object_size_info): Likewise.
616         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
617         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
618         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
619         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
620         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
621         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
622         (struct _stmt_vec_info): Likewise.
624 2017-03-14  Martin Liska  <mliska@suse.cz>
626         PR target/79892
627         * multiple_target.c (create_dispatcher_calls): Check that
628         a target can create a function dispatcher.
630 2017-03-14  Martin Liska  <mliska@suse.cz>
632         PR lto/66295
633         * multiple_target.c (expand_target_clones): Drop local.local
634         flag for default implementation.
636 2017-03-14  Richard Biener  <rguenther@suse.de>
638         PR tree-optimization/80030
639         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
641 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
643         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
644         gcc_fallthrough() instead of __attribute__((fallthrough));
646 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
648         * doc/gcc.texi: Remove "up" link to (DIR).
649         * doc/gccint.texi: Ditto.
651 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
652         
653         * doc/install.texi (Specific) <avr>: Remove reference to
654         binutils 2.13.
656 2017-03-13  Jeff Law  <law@redhat.com>
658         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
659         attribute rather than comments.
661         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
662         match_scratch operand is highest.
664 2017-03-13  Martin Liska  <mliska@suse.cz>
666         PR middle-end/78339
667         * ipa-pure-const.c (warn_function_noreturn): If the declarations
668         is a CHKP clone, use original declaration.
670 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
672         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
673         (arc_conditional_register_usage): Use a different allocation order
674         when optimizing for size.
675         * common/config/arc/arc-common.c (arc_option_optimization_table):
676         Section anchors default on when optimizing for size.
678 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
680         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
682 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
684         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
685         * config/arc/arc.md (cpu_facility): Add cd variant.
686         (*movqi_insn): Add code density variant.
687         (*movhi_insn): Likewise.
688         (*movqi_insn): Likewise.
689         (*addsi3_mixed): Likewise.
690         (subsi3_insn): Likewise.
692 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
694         * config/arc/arc.md (movsi_cond_exec): Update constraint.
696 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
698         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
699         expressions with MINUS and UNARY ops.
701 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
703         PR target/79911
704         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
705         Rename to...
706         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
707         between vec_select and vector argument.
708         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
709         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
710         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
711         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
712         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
713         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
715 2017-03-13  Richard Biener  <rguenther@suse.de>
717         PR other/79991
718         * params.def (vect-max-peeling-for-alignment): Fix typo.
720 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
722         * doc/install.texi (Specific) <mips-*-*>: Remove description of
723         issue that only occurred with binutils below 2.18.
724         
725 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
727         * doc/install.texi (Specific) <cris-axis-elf>: No longer
728         refer to binutils 2.11/2.12 minimum.
730 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
732         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
733         ftp.kernel.org and simplify binutils requirement.
735 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
737         * doc/invoke.texi (Warning Options): Fix spelling of link-time
738         optimization.
739         (Optimize Options): Ditto.  Also remove redundancy.
741 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
743         PR translation/79848
744         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
745         "%qs".
746         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
747         to G_ to avoid double translation.
749 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
751         PR translation/79923
752         * auto-profile.c (get_combined_location): Convert leading
753         character of diagnostics to lower case and remove trailing period.
754         (read_profile): Likewise for various diagnostics.
755         * config/arm/arm.c (arm_option_override): Remove trailing period
756         from various diagnostics.
757         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
758         (msp430_expand_delay_cycles): Likewise.
760 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
762         PR target/79925
763         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
764         full command-line argument, rather than just "str".
765         (aarch64_validate_march): Likewise.
766         (aarch64_validate_mtune): Likewise.
768 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
770         PR rtl-optimization/78911
771         * lra-assigns.c (must_not_spill_p): New function.
772         (spill_for): Use it.
774 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
776         PR tree-optimization/79981
777         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
778         ATOMIC_COMPARE_EXCHANGE ifn result.
779         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
780         IFN_ATOMIC_COMPARE_EXCHANGE.
782 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
784         PR driver/79875
785         * opts.c (parse_sanitizer_options): Add missing question mark to
786         "did you mean" message.
788 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
790         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
791         built-in.
792         (VMULEUH_UNS): Likewise.
793         (VMULOUB_UNS): Likewise.
794         (VMULOUH_UNS): Likewise.
795         * config/rs6000/rs6000.c (builtin_function_type): Remove
796         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
798 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
800         PR bootstrap/79952
801         * read-rtl-function.c (function_reader::read_rtx_operand): Update
802         x with result of extra_parsing_for_operand_code_0.
803         (function_reader::extra_parsing_for_operand_code_0): Convert
804         return type from void to rtx, returning x.  When reading
805         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
806         larger size containing struct block_symbol.
808 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
810         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
811         -mfloat128-hardware without -m64.
813 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
815         PR target/79941
816         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
817         entries to the case statement that marks unsigned arguments to
818         overloaded functions.
820 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
822         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
823         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
825 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
827         PR target/79907
828         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
829         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
831 2017-03-10  Martin Liska  <mliska@suse.cz>
833         PR target/65705
834         PR target/69804
835         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
836         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
837         FIELD != NULL.
839 2017-03-10  Olivier Hainque  <hainque@adacore.com>
841         * tree-switch-conversion (array_value_type): Start by resetting
842         candidate type to it's main variant.
844 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
846         PR rtl-optimization/79909
847         * combine.c (try_combine): Use simplify_replace_rtx on individual
848         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
849         of the whole CALL_INSN_FUNCTION_USAGE.
851         PR tree-optimization/79972
852         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
853         get_range_info on SSA_NAMEs.  Formatting fixes.
855 2017-03-10  Richard Biener  <rguenther@suse.de>
856             Jakub Jelinek  <jakub@redhat.com>
858         PR tree-optimization/77975
859         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
860         edge to be constant.
861         (get_val_for): For constant x return it.  Formatting fix.
862         (loop_niter_by_eval): Avoid pointless looping if the next iteration
863         would use the same bases as the current one.
865 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
867         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
868         instead of vec_select for V1TImode.
869         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
870         longer needed.
871         (VSX_LE_128): Add V1TI to this mode iterator.
872         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
873         (*vsx_le_perm_store_<mode>): Likewise.
874         (pre-reload splitter for VSX stores): Likewise.
875         (post-reload splitter for VSX stores): Likewise.
876         (*vsx_xxpermdi2_le_<mode>): Likewise.
877         (*vsx_lxvd2x2_le_<mode>): Likewise.
878         (*vsx_stxvd2x2_le_<mode>): Likewise.
880 2017-03-09  Michael Eager  <eager@eagercon.com>
882         Correct failures with --enable-checking=yes,rtl.
884         * config/microblaze/microblaze.c (microblaze_expand_shift):
885         Replace GET_CODE test with CONST_INT_P and INTVAL test with
886         test for const0_rtx.
887         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
888         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
890 2017-03-09  Richard Biener  <rguenther@suse.de>
892         PR tree-optimization/79977
893         * graphite-scop-detection.c (scop_detection::merge_sese):
894         Handle the case of extra exits to blocks dominating the entry.
896 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
898         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
899         Document rdynamic.
901 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
903         PR rtl-optimization/79949
904         * lra-constraints.c (process_alt_operands): Check memory when
905         trying to predict a cycle.  Print about the overall increase.
907 2017-03-09  Richard Biener  <rguenther@suse.de>
909         PR middle-end/79971
910         * gimple-expr.c (useless_type_conversion_p): Preserve
911         TYPE_SATURATING for fixed-point types.
913 2017-03-09  Richard Biener  <rguenther@suse.de>
915         PR ipa/79970
916         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
917         alignment of BLKmode params.
919 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
921         PR target/79913
922         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
923         (VALL_NO_V2Q): Likewise.
924         (VDQF_DF): Delete.
925         * config/aarch64/aarch64-simd.md
926         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
927         iterator.
928         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
929         VALL_NO_V2Q mode iterator.
930         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
932 2017-03-09  Martin Liska  <mliska@suse.cz>
934         PR tree-optimization/79631
935         * tree-chkp-opt.c (chkp_is_constant_addr): Call
936         tree_int_cst_sign_bit just for INTEGER constants.
938 2017-03-09  Martin Liska  <mliska@suse.cz>
940         PR target/65705
941         PR target/69804
942         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
943         sanitizers.
945 2017-03-09  Marek Polacek  <polacek@redhat.com>
947         PR c++/79672
948         * tree.c (inchash::add_expr): Handle TREE_VEC.
950 2017-03-09  Martin Liska  <mliska@suse.cz>
952         PR ipa/79764
953         (chkp_narrow_size_and_offset): New function.
954         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
955         (void chkp_parse_bit_field_ref): New function.
956         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
957         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
959 2017-03-09  Martin Liska  <mliska@suse.cz>
961         PR ipa/79761
962         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
963         (chkp_find_bounds_1): Remove gcc_unreachable.
965 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
967         PR sanitizer/79944
968         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
969         BUILT_IN_SYNC*, determine the access type from the size suffix and
970         always build a MEM_REF with that type.  Handle forgotten
971         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
973         PR target/79932
974         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
975         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
976         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
977         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
978         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
979         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
980         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
981         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
982         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
983         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
984         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
985         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
986         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
987         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
988         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
989         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
990         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
991         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
992         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
993         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
994         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
995         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
996         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
997         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
998         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
999         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
1000         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
1001         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
1002         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
1003         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
1004         definitions outside of __OPTIMIZE__ guarded section.
1006         PR target/79932
1007         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
1008         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
1009         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
1010         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
1011         guarded section.
1013 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1015         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
1016         ("vfenez<mode>"): Add missing constraints.
1018 2017-03-08  Martin Sebor  <msebor@redhat.com>
1020         PR target/79928
1021         * config/nds32/nds32.c (nds32_option_override): 
1023 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
1025         PR c/79940
1026         * gimplify.c (gimplify_omp_for): Replace index var in outer
1027         taskloop statement with an artificial variable and add
1028         OMP_CLAUSE_PRIVATE clause for it.
1030 2017-03-08  Richard Biener  <rguenther@suse.de>
1032         PR tree-optimization/79955
1033         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
1034         for accesses that are completely outside of the variable.
1036 2017-03-08  Andrew Haley  <aph@redhat.com>
1038         PR tree-optimization/79943
1039         * tree-ssa-loop-split.c (compute_new_first_bound): When
1040         calculating the new upper bound, (END-BEG) should be added, not
1041         subtracted.
1043 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
1045         * config/avr/avr.md (setmemhi): Make sure match_dup
1046         operand number comes before match_scratch.
1048 2017-03-08  Richard Biener  <rguenther@suse.de>
1050         PR tree-optimization/79920
1051         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
1052         with ncopies == 1 to ...
1053         (vect_transform_slp_perm_load): ... here.  Properly compute
1054         all element loads by iterating VF times over the group.  Do
1055         not handle ncopies (computed in a broken way) in
1056         vect_create_mask_and_perm.
1058 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
1060         PR sanitizer/79904
1061         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
1062         is a uniform vector, use uniform_vector_p return value instead of
1063         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
1065 2017-03-07  Marek Polacek  <polacek@redhat.com>
1067         PR middle-end/79809
1068         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
1069         (alloca_call_type): Likewise.
1071 2017-03-07  Martin Liska  <mliska@suse.cz>
1073         * gcov.c (process_args): Put comment to correct location.
1075 2017-03-07  Martin Liska  <mliska@suse.cz>
1077         PR middle-end/68270
1078         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
1079         Use array_at_struct_end_p instead of DECL_CHAIN (field).
1080         (chkp_narrow_bounds_for_field): Likewise.
1081         (chkp_parse_array_and_component_ref): Pass one more argument to
1082         call.
1084 2017-03-07  Richard Biener  <rguenther@suse.de>
1086         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
1087         preheaders.
1089 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
1091         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
1092         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
1094 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1096         PR c/79855
1097         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
1098         to end of description.
1099         (PARAM_MAX_STORES_TO_MERGE): Likewise.
1101 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
1103         PR rtl-optimization/79901
1104         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
1105         ...
1106         (*avx512f_<code><mode>3<mask_name>): ... this.
1107         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
1108         iterator instead of VI8_AVX2_AVX512BW.
1110         PR rtl-optimization/79901
1111         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
1112         min/max expander, expand it using expand_vec_cond_expr.
1114         PR sanitizer/79897
1115         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
1116         temporary.
1118 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
1120         PR c++/79821
1121         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
1122         to void * for PCH reasons.
1123         * dwarf2out.c (output_loc_operands, output_die): Cast
1124         v.val_vec.array to unsigned char *.
1126 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
1128         PR target/77850
1129         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
1130         vector types.
1132 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
1134         PR rtl-optimization/79571
1135         * lra-constraints.c (process_alt_operands): Calculate static
1136         reject and subtract it from overall when only addresses will be
1137         reloaded.
1139 2017-03-06  Julia Koval  <julia.koval@intel.com>
1141         PR target/79793
1142         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
1143         incoming stack boundary to 128 for 64-bit targets.
1145 2017-03-06  Richard Biener  <rguenther@suse.de>
1147         PR tree-optimization/79894
1148         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
1149         to NULL after folding it.
1151 2017-03-06  Richard Biener  <rguenther@suse.de>
1153         PR tree-optimization/79824
1154         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
1155         check disabling peeling for gaps.
1157 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
1159         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
1160         attributes): Document gettimeofday.
1162 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1164         * config/s390/s390.c (s390_option_override_internal): Set
1165         PARAM_MIN_VECT_LOOP_BOUND
1167 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1169         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
1170         * config/s390/s390.md: Likewise.
1172 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
1174         PR target/79812
1175         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
1176         (<avx2_avx512>_perm<mode>): Rename to ...
1177         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
1178         of VI8F_256_512.
1179         (<avx512>_perm<mode>_mask): Rename to ...
1180         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
1181         of VI8F_256_512.
1182         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
1183         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
1184         instead of VI8F_256_512.
1185         (avx512f_perm<mode>): New define_expand.
1186         (avx512f_perm<mode>_mask): Likewise.
1187         (avx512f_perm<mode>_1<mask_name>): New define_insn.
1188         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
1190 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
1192         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
1193         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
1194         if_then_else.
1195         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
1197 2017-03-06  Martin Liska  <mliska@suse.cz>
1199         PR sanitize/79783
1200         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
1201         when having a SSA NAME w/o VAR_DECL assigned to it.
1203 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
1205         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
1206         msa_dpsub_<su>_d): Fix MODE for vec_select.
1208 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
1210         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
1211         argument.
1212         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
1214 2017-03-06  Richard Biener  <rguenther@suse.de>
1216         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
1217         * plugin.c (register_plugin_info): Likewise.
1218         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
1220 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
1222         * config/i386/sse.md (sse_storehps, sse_storelps,
1223         avx_<castmode><avxsizesuffix>_<castmode>,
1224         avx512f_<castmode><avxsizesuffix>_<castmode>,
1225         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
1226         in condition that at least one operand is not a MEM.
1228 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
1230         PR middle-end/79805
1231         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
1232         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
1233         ECF_NOTHROW.
1234         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
1235         gimple_call_nothrow_p flag based on whether original builtin can throw.
1236         If it can, emit following stmts on the fallthrough edge.
1237         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
1238         don't create new bb if inserting just debug stmts on the edge, try to
1239         insert them on the fallthru bb or just reset debug stmts.
1241 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
1243         PR target/43763
1244         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
1245         restore recog_data (including the operand rtxes inside it) around
1246         the call to get_insn_template.
1248 2017-03-03  Martin Sebor  <msebor@redhat.com>
1250         PR tree-optimization/79699
1251         * context.c (context::~context): Free MPFR caches to avoid
1252         a memory leak on program exit.
1254 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1256         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
1257         Use wide_int::ulow () instead of .elt (0).
1259 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
1261         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
1262         (*pushxf): Limit oF constraint to 32bit targets and add oC
1263         constraint for 64bit targets.
1264         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
1265         (*pushdf): Change rmF constraint to rmC.
1267 2017-03-03  Martin Liska  <mliska@suse.cz>
1269         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
1270         Remove unused variable.
1272 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
1274         PR target/79807
1275         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
1276         is a memory operand, increase num_memory.
1277         (ix86_expand_args_builtin): Likewise.
1279 2017-03-03  Jan Hubicka  <jh@suse.cz>
1281         PR lto/79760
1282         * ipa-devirt.c (maybe_record_node): Properly handle
1283         __cxa_pure_virtual visibility.
1285 2017-03-03  Martin Liska  <mliska@suse.cz>
1287         PR tree-optimization/79803
1288         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
1289         assert.
1290         (pass_loop_prefetch::execute): Disabled optimization if an
1291         assumption about L1 cache size is not met.
1293 2017-03-03  Martin Liska  <mliska@suse.cz>
1295         PR rtl-optimization/79574
1296         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
1297         (hash_scan_set): Likewise.
1298         (dump_hash_table): Likewise.
1299         (hoist_code): Likewise.
1301 2017-03-03  Richard Biener  <rguenther@suse.de>
1303         * fixed-value.c (fixed_from_string): Restore use of elt (1)
1304         in place of uhigh ().
1305         (fixed_convert_from_real): Likewise.
1307 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
1309         PR target/79514
1310         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
1312 2017-03-03  Richard Biener  <rguenther@suse.de>
1314         PR middle-end/79818
1315         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
1316         TYPE_OVERFLOW_UNDEFINED check.
1318 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1320         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
1321         numbers.
1322         (vector_ae_<mode>_p): Likewise.
1323         (vector_nez_<mode>_p): Likewise.
1324         (vector_ne_v2di_p): Likewise.
1325         (vector_ae_v2di_p): Likewise.
1326         (vector_ne_<mode>_p): Likewise.
1327         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
1328         numbers.
1329         (vsx_tsqrt<mode>2_fe): Likewise.
1331 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
1333         PR target/79514
1334         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
1336 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
1338         PR rtl-optimization/79780
1339         * cprop.c (one_cprop_pass): When second and further conditional trap
1340         in a single basic block is turned into an unconditional trap, turn it
1341         into a deleted note to avoid RTL verification failures.
1343 2017-03-02  Richard Biener  <rguenther@suse.de>
1345         * fold-const.c (const_binop): Use ulow () instead of elt (0).
1347 2017-03-02  Richard Biener  <rguenther@suse.de>
1349         PR tree-optimization/79345
1350         PR c++/42000
1351         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
1352         param and abort the walk, returning -1 if it is hit.
1353         (walk_aliased_vdefs): Take a limit param and pass it on.
1354         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
1355         defaulting to 0 and return a signed int.
1356         * tree-ssa-uninit.c (struct check_defs_data): New struct.
1357         (check_defs): New helper.
1358         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
1359         about uninitialized memory.
1360         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
1361         bogus uninitialized warning.
1362         (fixed_convert_from_real): Likewise.
1364 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
1366         PR tree-optimization/66768
1367         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
1368         iv_use if base object can't be determined.
1370 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
1372         PR tree-optimization/79345
1373         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
1374         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
1375         (get_pattern_stats): Initialize it.
1376         * genemit.c (gen_expand): Verify match_scratch numbers come after
1377         match_operand/match_dup numbers.
1378         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
1379         match_scratch numbers.
1380         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
1381         Likewise.
1382         * config/s390/s390.md (trunctdsd2): Likewise.
1384 2017-03-02  Richard Biener  <rguenther@suse.de>
1386         * wide-int.h (wide_int_storage::operator=): Implement in terms
1387         of wi::copy.
1389 2017-03-02  Richard Biener  <rguenther@suse.de>
1391         PR tree-optimization/79777
1392         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
1393         the to insert expression to sth existing.
1395 2017-03-01  Martin Sebor  <msebor@redhat.com>
1397         PR middle-end/79692
1398         * gimple-ssa-sprintf.c
1399         (directive::known_width_and_precision): New function.
1400         (format_integer): Use it.
1401         (get_mpfr_format_length): Consider the full range of precision
1402         when computing %g output with the # flag.  Set the likely byte
1403         count to 3 rather than 1 when precision is indeterminate.
1404         (format_floating): Correct the lower bound of precision.
1406 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1408         * doc/invoke.texi: Document default code model for 64-bit Linux.
1410 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1412         PR target/79752
1413         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
1414         udiv rather than div since input pattern is unsigned.
1416 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
1418         * config/i386/i386.c (print_reg): Warn for values of
1419         unsupported size in integer register.
1421 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
1423         PR target/79439
1424         * config/rs6000/predicates.md (current_file_function_operand): Do
1425         not allow self calls to be local if the function is replaceable.
1427 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1429         PR target/79395
1430         * config/rs6000/altivec.h (vec_ctz and others): Change the
1431         preprocessor macro that controls conditional compilation from
1432         _ARCH_PWR9 to __POWER9_VECTOR__.
1433         (vec_all_ne): Change parameterization of __altivec_scalar_pred
1434         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
1435         control (instead of _ARCH_PWR9 control) so that template
1436         definition uses power9-specific function.
1437         (vec_any_eq): Likewise.
1438         (vec_all_ne): Change macro definition to use a power9-specific
1439         expansion under #ifdef __POWER9_VECTOR__ control (instead of
1440         _ARCH_PWR9 control).
1441         (vec_any_eq) Likewise.
1442         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
1443         expansion for CMPNEF to remove support for xvcmpnesp instruction.
1444         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
1445         support for xvcmpnedp instruction.
1446         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
1447         macro expansion so that Power9 implementation of vec_all_ne does
1448         not use the AltiVec predicate framework.
1449         (VCMPNEH_P): Likewise.
1450         (VCMPNEW_P): Likewise.
1451         (VCMPNED_P): Likewise.
1452         (VCMPNEFP_P): Likewise.
1453         (VCMPNEDP_P): Likewise.
1454         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
1455         implementation of vec_any_eq to not use AltiVec predicate
1456         framework.
1457         (VCMPAEH_P): Likewise.
1458         (VCMPAEW_P): Likewise.
1459         (VCMPAED_P): Likewise.
1460         (VCMPAEFP_P): Likewise.
1461         (VCMPAEDP_P): Likewise.
1462         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
1463         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
1464         not use the AltiVec predicate framework.
1465         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
1466         of vec_any_eq to not use AltiVec predicate framework.
1467         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
1468         support for predefined __POWER9_VECTOR__ macro to indicate that
1469         Power9 instruction selection is enabled.
1470         (altivec_overloaded_builtins): Remove extraneous
1471         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
1472         function argument types RS6000_BTI_bool_V16QI and
1473         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
1474         entry for overloaded function argument types RS6000_BTI_bool_V4SI
1475         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
1476         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
1477         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
1478         Power9 for implementations of vec_cmpne.  Change the signature for
1479         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
1480         (representing vec_all_ne) to remove the previously described first
1481         argument of type RS6000_BTI_INTSI, as this was an artifact of
1482         reliance on the AltiVec predicate framework, which is no longer
1483         used in the implementation of these functions.  Add
1484         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
1485         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
1486         since, unlike the AltiVec predicate framework implementation, we
1487         do not share function descriptors between vec_alle and vec_anyeq.
1488         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
1489         set of modes that receive special treatment even when
1490         TARGET_P9_VECTOR is true.  The special treatment emits code that
1491         does not depend on Power9 instructions.
1492         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
1493         define_expand to not rely on AltiVec predicate framework.
1494         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
1495         function.
1496         (vector_ne_v2di_p): Change this define_expand to not rely on
1497         AltiVec predicate framework.
1498         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
1499         function.
1500         (vector_ne_<mode>_p): Change this define_expand to not rely on
1501         AltiVec predicate framework.
1502         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
1503         function.
1504         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
1505         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
1506         define_insn pattern.
1507         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
1508         define_insn pattern because the xvcmpne<VSs>. instruction is not
1509         supported.
1510         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
1511         instruction is not supported.
1513 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
1515         * config/nvptx/nvptx.c: Include intl.h.
1517 2017-03-01  Martin Jambor  <mjambor@suse.cz>
1519         PR lto/78140
1520         * ipa-prop.h (ipa_bits): Removed field known.
1521         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
1522         to pointers.  Adjusted their comments to warn about their sharing.
1523         (ipcp_transformation_summary): Change bits to a vector of pointers.
1524         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
1525         (ipa_get_ipa_bits_for_value): Declare.
1526         * tree-vrp.h (value_range): Mark as GTY((for_user)).
1527         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
1528         (ipa_bits_hash_table): Likewise.
1529         (ipa_vr_ggc_hash_traits): Likewise.
1530         (ipa_vr_hash_table): Likewise.
1531         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
1532         being pointers and vr_known being removed.
1533         (ipa_set_jf_unknown): Likewise.
1534         (ipa_get_ipa_bits_for_value): New function.
1535         (ipa_set_jfunc_bits): Likewise.
1536         (ipa_get_value_range): New overloaded functions.
1537         (ipa_set_jfunc_vr): Likewise.
1538         (ipa_compute_jump_functions_for_edge): Use the above functions to
1539         construct bits and vr parts of jump functions.
1540         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
1541         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
1542         exist.
1543         (ipcp_grow_transformations_if_necessary): Also allocate
1544         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
1545         exist.
1546         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
1547         them.  Fix too long lines.
1548         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
1549         vr_known being removed.
1550         (ipa_read_jump_function): Use new setter functions to construct bits
1551         and vr parts of jump functions or set them to NULL.
1552         (write_ipcp_transformation_info): Adjust for bits being pointers.
1553         (read_ipcp_transformation_info): Likewise.
1554         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
1555         space.
1556         Include gt-ipa-prop.h.
1557         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
1558         being pointers.
1559         (ipcp_store_bits_results): Likewise.
1560         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
1561         Do not write to existing jump functions but use a temporary instead.
1563 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
1565         PR c++/79681
1566         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
1567         attempt to use its first operand as BIT_FIELD_REF base.
1569 2017-03-01  Richard Biener  <rguenther@suse.de>
1571         PR middle-end/79721
1572         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
1573         interpolating formula in wrapping arithmetic.
1574         (chrec_apply): Convert chrec_evaluate return value to wanted type.
1576 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
1578         PR tree-optimization/79734
1579         * tree-vect-generic.c (expand_vector_condition): Optimize
1580         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
1581         Handle VEC_COND_EXPR where comparison has different inner width from
1582         type's inner width.
1584 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
1586         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
1587         markup, and similar issues.  Remove @opindex entries for things
1588         that aren't options.  Add missing -mmpy-option entries.
1590 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
1592         PR tree-optimization/79737
1593         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
1594         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
1595         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
1596         instead of byte_size.  Formatting fix.
1597         (shift_bytes_in_array_right): Formatting fix.
1599 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
1601         PR target/79749
1602         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
1603         condition on optimize for the leaf function test.
1605 2017-02-28  Martin Liska  <mliska@suse.cz>
1607         PR lto/79625
1608         * read-rtl-function.c (function_reader::handle_unknown_directive):
1609         Bail out when one uses -flto.
1611 2017-02-28  Martin Liska  <mliska@suse.cz>
1613         * common.opt: Replace space with tabular for options of <number>
1614         type.
1615         * config/i386/i386.opt: Show <number> value for
1616         -mlarge-data-threshold.
1617         * opts.c (print_filtered_help): Do not display number in hexadecimal
1618         format.
1620 2017-02-28  Martin Liska  <mliska@suse.cz>
1622         * common.opt: Fix --help=option -Q for options which are of
1623         an enum type.
1625 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
1627         * config/i386/i386.c (print_reg): Error out for values
1628         of 8-bit size in invalid integer register.
1630 2017-02-28  Martin Sebor  <msebor@redhat.com>
1632         PR tree-optimization/79691
1633         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
1635 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
1637         PR target/79729
1638         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
1639         gcc_unreachable with output_operand_lossage.
1641 2017-02-28  Richard Biener  <rguenther@suse.de>
1643         PR tree-optimization/79740
1644         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
1645         inserts.
1646         (visit_nary_op): Insert the nary into the hashtable if we
1647         pattern-matched sth.
1648         * tree-ssa-pre.c (eliminate_insert): Robustify.
1650 2017-02-28  Richard Biener  <rguenther@suse.de>
1652         PR middle-end/79731
1653         * fold-const.c (decode_field_reference): Reject out-of-bound
1654         accesses.
1656 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
1658         * config/i386/i386.c: Include intl.h.
1659         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
1660         instead of just cond ? "..." : "...".
1661         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
1662         * coverage.c (read_counts_file): Likewise.
1663         * omp-offload.c: Include intl.h.
1664         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
1665         of just cond ? "..." : "...".
1666         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
1667         of just cond ? "..." : "...".
1669 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
1671         PR target/79742
1672         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
1673         entry, if present.
1674         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
1675         'tune for' CPU name.
1676         * config/arm/arm-cpu-data.h: Regenerated.
1678 2017-02-28  Richard Biener  <rguenther@suse.de>
1680         PR tree-optimization/79732
1681         * tree-inline.c (expand_call_inline): Do not shadow var.
1683 2017-02-28  Richard Biener  <rguenther@suse.de>
1685         PR tree-optimization/79723
1686         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
1687         address-space properly.
1689 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
1691         * doc/optinfo.texi (Optimization groups): Fix option used for
1692         OPTGROUP_ALL.
1693         * doc/invoke.texi (-fopt-info): Document "omp".
1694         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
1695         (OPTGROUP_ALL): Add OPTGROUP_OMP.
1696         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
1697         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
1698         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
1700         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
1701         all users.
1702         * dumpfile.c (optgroup_options): Instead of "openmp", associate
1703         OPTGROUP_OMP with "omp".
1705 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
1707         PR target/79544
1708         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
1709         for arithmetic shift of unsigned V2DI.
1711 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
1713         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
1714         arc/linux.h headers.
1715         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
1716         (LINK_SPEC): Likewise.
1717         (ARC_TLS_EXTRA_START_SPEC): Likewise.
1718         (EXTRA_SPECS): Likewise.
1719         (STARTFILE_SPEC): Likewise.
1720         (ENDFILE_SPEC): Likewise.
1721         (LIB_SPEC): Likewise.
1722         (TARGET_SDATA_DEFAULT): Likewise.
1723         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
1724         (MULTILIB_DEFAULTS): Likewise.
1725         (DWARF2_UNWIND_INFO): Likewise.
1726         * config/arc/big.h: New file.
1727         * config/arc/elf.h: Likewise.
1728         * config/arc/linux.h: Likewise.
1729         * config/arc/t-uClibc: Remove.
1731 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
1733         PR tree-optimization/77536
1734         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
1735         (tree_transform_and_unroll_loop): Use above function to compute the
1736         estimated niter of unrolled loop and use it when scaling profile.
1737         Also use count info rather than frequency if it's non-zero.
1738         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
1739         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
1740         (vect_transform_loop): Call above function.
1742 2017-02-27  Richard Biener  <rguenther@suse.de>
1744         PR tree-optimization/45397
1745         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
1746         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
1747         (visit_nary_op): Add pattern matching for CSEing sign-changed
1748         or truncated operations with wider ones.
1750 2017-02-27  Richard Biener  <rguenther@suse.de>
1752         PR tree-optimization/79690
1753         * tree-vect-stmts.c (vectorizable_store): Use vector type
1754         built from the DR with address-space.
1756 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
1758         * doc/invoke.texi (Optimize Options): Refine the description
1759         of asan-use-after-return.
1761 2017-02-25  Alan Modra  <amodra@gmail.com>
1763         PR rtl-optimization/79584
1764         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
1765         base, not ad->base_term, the reg within base.  Remove assertion
1766         that ad->base == ad->base_term.  Replace gen_int_mode using
1767         bogus mode with const0_rtx.
1769 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
1771         PR middle-end/79396
1772         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
1773         FMA_EXPR like tcc_binary or tcc_unary.
1775         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
1777         PR debug/77589
1778         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
1779         bitfield.
1780         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
1781         (output_loc_operands): Handle DW_OP_call_ref and
1782         DW_OP_GNU_variable_value.
1783         (struct variable_value_struct): New type.
1784         (struct variable_value_hasher): Likewise.
1785         (variable_value_hash): New variable.
1786         (string_types): Remove.
1787         (copy_loc_descr): New function.
1788         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
1789         (prepend_loc_descr_to_each): New function.
1790         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
1791         instead of add_loc_descr_to_each if the first argument is single
1792         location list and the second has multiple.
1793         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
1794         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
1795         when looking for variable value which doesn't have other location info.
1796         (loc_list_from_tree): Formatting fix.
1797         (gen_array_type_die): Simplify DW_AT_string_length handling.
1798         (adjust_string_types): Remove.
1799         (gen_subprogram_die): Don't call adjust_string_types nor test/set
1800         string_types.  Call resolve_variable_values.
1801         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
1802         (resolve_addr_in_expr): Likewise.  Add A argument.
1803         (copy_deref_exprloc): Remove deref argument.  Adjust for the
1804         original expression being DW_OP_GNU_variable_value with optionally
1805         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
1806         optionally after it.
1807         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
1808         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
1809         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
1810         (variable_value_hasher::hash, variable_value_hasher::equal): New
1811         methods.
1812         (resolve_variable_value_in_expr, resolve_variable_value,
1813         resolve_variable_values, note_variable_value_in_expr,
1814         note_variable_value): New functions.
1815         (dwarf2out_early_finish): Call note_variable_value on all toplevel
1816         DIEs.
1818 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
1820         PR c/79677
1821         * opts.h (handle_generated_option): Add GENERATED_P argument.
1822         * opts-common.c (handle_option): Adjust function comment.
1823         (handle_generated_option): Add GENERATED_P argument, pass it to
1824         handle_option.
1825         (control_warning_option): Pass false to handle_generated_option
1826         GENERATED_P.
1827         * opts.c (maybe_default_option): Pass true to handle_generated_option
1828         GENERATED_P.
1829         * optc-gen.awk: Likewise.
1831 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1833         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
1834         a REG, look at the REG it is a SUBREG of.
1835         (splitter for cmpeqsi_t): Ditto.
1837 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1839         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
1840         the special USEs with the pattern of the insn, not the insn itself.
1842 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
1844         PR target/79473
1845         * doc/invoke.texi: Document -mload-store-pairs.
1847 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1848             Sandra Loosemore  <sandra@codesourcery.com>
1850         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
1851         argument isn't a CONST_INT.
1852         (nios2_alternate_compare_const): Assert op is a CONST_INT.
1853         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
1854         (nios2_validate_compare): Bypass alternate compare logic if *op2
1855         is not a CONST_INT.
1856         (ldstwm_operation_p): Return false if first_base is not a REG or
1857         if first_offset is not a CONST_INT.
1859 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1861         * config/cris/cris.md: Use correct operand in a define_peephole2.
1863 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1865         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
1867 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1869         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
1870         this_insn if it is an INSN or JUMP_INSN.
1871         (force_offsettable): Look at base, not at addr.
1872         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
1873         on things that aren't necessarily CONST_INTs.
1875 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
1877         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
1878         -mfpmath=sse is the default also for x86-32 targets with SSE2
1879         instruction set when @option{-ffast-math} is enabled
1881 2017-02-24  Jeff Law  <law@redhat.com>
1883         PR rtl-optimizatoin/79286
1884         * ira.c (update_equiv_regs): Drop may_trap_p exception to
1885         dominance test.
1887 2017-02-24  Richard Biener  <rguenther@suse.de>
1889         PR tree-optimization/79389
1890         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
1891         debug insns.
1893 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
1895         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
1896         function comment to reflect reality.
1897         (loop_exits_before_overflow): Fix typo in function description.
1899 2017-02-24  Richard Biener  <rguenther@suse.de>
1901         PR tree-optimization/79389
1902         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
1903         properly that a threading opportunity exists.  Detect conditional
1904         copy/constant propagation opportunities.
1906 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
1908         * config/visium/visium.md (type): Add trap.
1909         (b): New mode attribute.
1910         (*btst): Rename into...
1911         (*btst<mode>): ...this and adjust.
1912         (*cbranchsi4_btst_insn): Rename into...
1913         (*cbranch<mode>4_btst_insn): ...this and adjust.
1914         (trap): New define_insn.
1916 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
1918         PR tree-optimization/79389
1919         * ifcvt.c (struct noce_if_info): Add rev_cond field.
1920         (noce_reversed_cond_code): New function.
1921         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
1922         reversed_comparison_code.  Formatting fix.
1923         (noce_try_store_flag): Test rev_cond != NULL in addition to
1924         reversed_comparison_code.
1925         (noce_try_store_flag_constants): Likewise.
1926         (noce_try_store_flag_mask): Likewise.
1927         (noce_try_addcc): Use rev_cond if non-NULL instead of
1928         reversed_comparison_code.
1929         (noce_try_cmove_arith): Likewise.  Formatting fixes.
1930         (noce_try_minmax, noce_try_abs): Clear rev_cond.
1931         (noce_find_if_block): Initialize rev_cond.
1932         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
1933         instead of false as last argument never attempt to reverse it
1934         afterwards.
1936 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
1938         PR tree-optimization/79663
1939         * tree-predcom.c (combine_chains): Process refs in reverse order
1940         only for ZERO length chains, and add explaining comment.
1942 2017-02-23  Jeff Law  <law@redhat.com>
1944         PR tree-optimization/79578
1945         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
1946         in call to operand_equal_p.
1948 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
1950         PR target/71017
1951         * config/i386/cpuid.h: Fix another undefined behavior.
1953 2017-02-23  Richard Biener  <rguenther@suse.de>
1955         PR tree-optimization/79683
1956         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
1957         vector types for data-refs.
1959 2017-02-23  Martin Liska  <mliska@suse.cz>
1961         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
1963 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
1965         PR middle-end/79665
1966         * internal-fn.c (get_range_pos_neg): Moved to ...
1967         * tree.c (get_range_pos_neg): ... here.  No longer static.
1968         * tree.h (get_range_pos_neg): New prototype.
1969         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
1970         are known to be in between 0 and signed maximum inclusive, try to
1971         expand both unsigned and signed divmod and use the cheaper one from
1972         those.
1974 2017-02-22  Jeff Law  <law@redhat.com>
1976         PR tree-optimization/79578
1977         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
1978         to compare base operands.
1980 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
1982         PR target/79211
1983         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
1984         gpc_reg_operand instead of fpr_reg_operand.
1986 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
1988         * config/mips/mips.c (mips_return_in_memory): Force FP
1989         vector types to be returned in memory for o32 ABI.
1991 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
1993         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
1994         instead of DW_TAG_member for static data member declarations and don't
1995         set no_linkage_name for static inline data members.
1996         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
1997         to DW_TAG_member.
1999 2017-02-22  Martin Liska  <mliska@suse.cz>
2001         * doc/invoke.texi: Replace inequality signs with square brackets
2002         for -Wnormalized.
2004 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2006         PR tree-optimization/68644
2007         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
2009 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
2011         PR target/78660
2012         * lra-constraints.c (simplify_operand_subreg): Handle
2013         WORD_REGISTER_OPERATIONS targets.
2015 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
2017         PR target/70465
2018         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
2019         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
2020         elimination by swapping fld*.
2022 2017-02-22  Richard Biener  <rguenther@suse.de>
2024         PR tree-optimization/79673
2025         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
2026         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
2027         irrelevant address-space qualifiers and avoiding a
2028         ADDR_SPACE_CONVERT_EXPR from fold_convert.
2030 2017-02-22  Richard Biener  <rguenther@suse.de>
2032         PR tree-optimization/79666
2033         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
2034         to not symbolically negate if that may introduce undefined
2035         overflow.
2037 2017-02-22  Martin Liska  <mliska@suse.cz>
2039         PR lto/79587
2040         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
2041         * data-streamer-out.c (streamer_write_gcov_count_stream):
2042         Likewise.
2043         * value-prof.c (stream_out_histogram_value): Make assert more
2044         precise based on type of counter.
2046 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
2048         PR target/79593
2049         * config/i386/i386.md (standard_x87sse_constant_load splitter):
2050         Use nonimmediate_operand instead of memory_operand for operand 1.
2051         (float-extend standard_x87sse_constant_load splitter): Ditto.
2053 2017-02-21 Jeff Law  <law@redhat.com>
2055         PR tree-optimization/79621
2056         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
2057         blocks with edges to themselves.
2059 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
2061         PR target/79633
2062         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
2063         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
2064         Use gimple_call_builtin_p.
2066         PR target/79570
2067         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
2068         on temporarily removed DEBUG_INSNs.
2070         PR tree-optimization/79649
2071         * tree-loop-distribution.c (classify_partition): Give up on
2072         non-generic address space loads/stores.
2074 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
2076         * doc/loop.texi (Loop manipulation): Remove nonexistent
2077         tree_ssa_loop_version from the documentation.
2078         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
2080 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
2082         PR target/79494
2083         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
2084         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
2085         * config/rs6000/rs6000.c: Include except.h.
2086         (rs6000_expand_split_stack_prologue): Call
2087         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
2089 2017-02-21  Martin Jambor  <mjambor@suse.cz>
2091         PR lto/79579
2092         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
2093         have been analyzed.
2095 2017-02-21  Martin Jambor  <mjambor@suse.cz>
2097         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
2098         for backward compatibility only.
2099         * doc/invoke.texi (Option Summary): Remove all references to
2100         -fipa-cp-alignment.
2102 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
2104         PR target/78660
2105         Revert:
2106         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
2108         * lra-constraints.c (curr_insn_transform): Handle
2109         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
2111 2017-02-21  Martin Liska  <mliska@suse.cz>
2113         * config/i386/i386.opt: Replace -masm-dialect with -masm.
2115 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
2117         PR translation/79638
2118         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
2120 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
2122         PR ada/67205
2123         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2124         (arm_function_ok_for_sibcall): Return false for an indirect call by
2125         descriptor if all the argument registers are used.
2126         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
2127         alignment of the function.
2129 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
2131         PR tree-optimization/61441
2132         * simplify-rtx.c (simplify_const_unary_operation): For
2133         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
2134         the sNaN unmodified.
2136 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2138         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
2139         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
2140         instead of SYSTEM_HEADER_DIR.
2142 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
2143             Martin Liška  <mliska@suse.cz>
2145         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
2146         Fix typos and grammar, use active voice, and clarify.
2148 2017-02-20  Marek Polacek  <polacek@redhat.com>
2150         PR middle-end/79537
2151         * gimplify.c (gimplify_expr): Handle unused *&&L;.
2153         PR sanitizer/79558
2154         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
2156 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
2158         PR target/79568
2159         * config/i386/i386.c (ix86_expand_builtin): Handle
2160         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
2161         ix86_builtins_isa[fcode].isa as a requirement of those
2162         flags and any other flag in the bitmask.
2163         (ix86_init_mmx_sse_builtins): Use 0 instead of
2164         ~OPTION_MASK_ISA_64BIT as mask.
2165         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
2166         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
2167         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
2168         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
2170 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
2172         PR target/78012
2173         * lra-constraints.c (split_reg): Check requested split mode
2174         is supported by the register.
2176 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
2178         * lra-constraints.c (simplify_operand_subreg): Remove early
2179         return false.
2181 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
2183         PR target/78660
2184         * lra-constraints.c (curr_insn_transform): Tighten condition
2185         for converting SUBREG reloads from OP_OUT to OP_INOUT.
2187 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
2189         PR target/78660
2190         * lra-constraints.c (curr_insn_transform): Handle
2191         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
2193 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
2195         Revert:
2196         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
2198         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
2200 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
2202         PR c++/69523
2203         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
2204         description.
2206 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2208         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
2209         for FMA_EXPR.
2211 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
2213         * final.c (last_columnnum, override_columnnum): New variables.
2214         (final_start_function): Set last_columnnum, pass it to begin_prologue
2215         hook and pass 0 to dwarf2out_begin_prologue.
2216         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
2217         to source_line debug hook.
2218         (notice_source_line): Compute last_columnnum and for debug_column_info
2219         return true on column changes.
2220         * debug.h (struct gcc_debug_hooks): Add column argument to
2221         source_line and begin_prologue hooks.
2222         (debug_nothing_int_charstar_int_bool): Remove prototype.
2223         (debug_nothing_int_int_charstar,
2224         debug_nothing_int_int_charstar_int_bool): New prototypes.
2225         (dwarf2out_begin_prologue): Add column argument.
2226         * debug.c (do_nothing_debug_hooks): Adjust source_line and
2227         begin_prologue hooks.
2228         (debug_nothing_int_charstar_int_bool): Remove.
2229         (debug_nothing_int_int_charstar,
2230         debug_nothing_int_int_charstar_int_bool): New functions.
2231         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
2232         through to dwarf2out_source_line.
2233         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
2234         (dwarf2out_source_line): Add column argument, emit it if requested.
2235         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
2236         arguments.
2237         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
2238         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
2239         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
2240         through to dwarf2out_begin_prologue.
2241         (vmsdbgout_source_line): Add column argument, pass it through to
2242         dwarf2out_source_line.
2243         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
2244         dbxout_source_line caller.
2245         (dbxout_source_line): Add column argument.
2247         * common.opt (gno-column-info, gcolumn-info): New options.
2248         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
2249         (check_die): Also test for multiple DW_AT_decl_column attributes.
2250         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
2251         DW_AT_decl_column if requested.
2252         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
2253         if requested.
2254         (gen_variable_die): Likewise.
2255         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
2256         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
2258         PR target/79569
2259         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
2260         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
2261         (ix86_handle_option): Handle OPT_m3dnowa.
2262         * doc/invoke.texi (-m3dnowa): Document.
2263         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
2264         -m3dnowa instead of -m3dnow -march=athlon.
2266         PR target/79559
2267         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
2268         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
2270 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2272         PR target/79261
2273         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2274         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
2275         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
2276         generator for vsx_xxpermdi_<mode>_be.
2277         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
2278         force big-endian semantics.
2279         (vsx_xxpermdi_<mode>_be): New define_expand with same
2280         implementation as previous version of vsx_xxpermdi_<mode>.
2282 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
2284         PR tree-optimization/79327
2285         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
2286         variable, its initialization and use.
2288 2017-02-17  Julia Koval  <julia.koval@intel.com>
2290         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
2291         (OPTION_MASK_ISA_PKU_UNSET): New.
2292         (ix86_handle_option): Handle -mrdpid.
2293         * config/i386/cpuid.h (bit_RDPID): New.
2294         * config/i386/driver-i386.c (host_detect_local_cpu):
2295         Detect RDPID feature.
2296         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
2297         * config/i386/i386-c.c (ix86_target_macros_internal):
2298         Handle RDPID flag.
2299         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
2300         (ix86_valid_target_attribute_inner_p): Add "rdpid".
2301         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
2302         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
2303         * config/i386/i386.md (define_insn "rdpid"): New.
2304         * config/i386/i386.opt Add -mrdpid.
2305         * config/i386/immintrin.h (_rdpid_u32): New.
2307 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
2309         PR rtl-optimization/79541
2310         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
2311         instead of transforming it into USE.
2313 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
2315         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
2316         If HONOR_SNANS (SFmode) force the input to a register.
2317         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
2318         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
2319         an frsp or similar insn.
2321 2017-02-17  Martin Liska  <mliska@suse.cz>
2323         PR rtl-optimization/79577
2324         * params.def (selsched-max-sched-times): Increase minimum to 1.
2326 2017-02-17  Martin Liska  <mliska@suse.cz>
2328         PR rtl-optimization/79574
2329         * gcse.c (want_to_gcse_p): Prevent integer overflow.
2331 2017-02-17  Martin Liska  <mliska@suse.cz>
2333         PR tree-optimization/79529
2334         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
2335         ssa_defined_default_def_p to handle cases which are implicitly
2336         defined.
2337         * tree-ssa.c (ssa_defined_default_def_p): New function.
2338         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
2339         which are implicitly defined.
2340         * tree-ssa.h (ssa_defined_default_def_p): Declare.
2342 2017-02-17  Richard Biener  <rguenther@suse.de>
2344         PR middle-end/79576
2345         * params.def (max-ssa-name-query-depth): Limit to 10.
2347 2017-02-17  Richard Biener  <rguenther@suse.de>
2349         PR tree-optimization/79552
2350         * tree-ssa-structalias.c (visit_loadstore): Properly verify
2351         default defs.
2353 2017-02-17  Richard Biener  <rguenther@suse.de>
2355         PR bootstrap/79567
2356         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
2358 2017-02-17  Marek Polacek  <polacek@redhat.com>
2360         PR middle-end/79536
2361         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
2362         (fold_negate_expr): New wrapper.
2364 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
2366         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
2367         Correct terminology and de-emphasize pre-standard behavior.
2369 2017-02-16  Alan Modra  <amodra@gmail.com>
2371         PR rtl-optimization/79286
2372         * ira.c (def_dominates_uses): New function.
2373         (update_equiv_regs): Don't create an equivalence for insns that
2374         may trap where the register def does not dominate the use.
2376 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
2378         PR rtl-optimization/78127
2379         * lra.c (lra): Call lra_eliminate before finish the loop after
2380         lra_constraint.
2382 2017-02-16  Richard Biener  <rguenther@suse.de>
2384         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
2385         isl/isl_val.h.
2386         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
2387         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
2388         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
2389         (isl_val_int_from_wi): New function.
2390         (extract_affine_gmp): Rename to ...
2391         (extract_affine_wi): ... this, take a widest_int.
2392         (extract_affine_int): Just wrap extract_affine_wi.
2393         (add_param_constraints): Use isl_val_int_from_wi.
2394         (add_loop_constraints): Likewise, and extract_affine_wi.
2396 2017-02-15 Jeff Law  <law@redhat.com>
2398         PR middle-end/79521
2399         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
2400         ira_init_register_move_cost_if_necessary.
2402 2017-02-15  Martin Sebor  <msebor@redhat.com>
2404         PR middle-end/32003
2405         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
2406         removed in a prior commit.
2408 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
2410         PR tree-optimization/79347
2411         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
2412         counters during peeling.
2414 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
2416         * Makefile.in (site.exp): Remove "set ISLVER".
2418 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
2420         PR target/79487
2421         * real.c (real_from_integer): Call real_convert even for decimal.
2423 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2425         PR target/79421
2426         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
2428 2017-02-14  Andrew Pinski  <apinski@cavium.com>
2430         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
2431         cores and change the partno/implementer to be correct.
2432         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
2433         the 'B" as the implementer.
2434         * config/aarch64/aarch64-tune.md: Regenerate.
2436 2017-02-14  Carl Love  <cel@us.ibm.com>
2438         * config/rs6000/rs6000.c: Add case statement entry to make the
2439         xvcvuxdsp built-in argument unsigned.
2440         * config/rs6000/vsx.md: Fix the source and return operand types so they
2441         match the instruction definitions from the ISA document.  Fix typo
2442         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
2443         statement.
2445 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
2447         PR target/79282
2448         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
2449         member early_clobber_alts.
2450         * lra-lives.c (reg_early_clobber_p): New.
2451         (process_bb_lives): Use it.
2452         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
2453         (debug_operand_data): Initialize early_clobber_alts.
2454         (setup_operand_alternative): Set up early_clobber_alts.
2455         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
2456         alternatives to new_insn_reg.
2457         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
2458         it.
2459         (lra_update_insn_regno_info): Pass the new arg.
2461 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
2463         PR middle-end/79505
2464         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
2465         (new_oacc_loop_raw): Don't clear already cleared fields.
2467         PR target/79481
2468         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
2469         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
2470         _mm512_prefetch_i64gather_ps): New inline functions and macros.
2472 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
2474         PR target/79495
2475         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
2477 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
2479         PR target/79498
2480         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
2481         the extra instruction to the right place to store 128-bit constant
2482         when needed.
2484 2017-02-14  Martin Sebor  <msebor@redhat.com>
2486         PR middle-end/79448
2487         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
2488           warning for strings of unknown length.
2490 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
2492         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
2494 2017-02-14 Jeff Law  <law@redhat.com>
2496         PR target/79404
2497         * ira-costs.c (scan_one_insn): Initialize register move costs
2498         for pseudos seen in USE/CLOBBER insns.
2500         PR tree-optimization/79095
2501         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
2502         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
2503         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
2504         if the operands are known to be not equal, then the resulting range
2505         is ~[0,0].
2506         (intersect_ranges): If the new range is ~[0,0] and the old range is
2507         wide, then prefer ~[0,0].
2508         * tree-vrp.c (overflow_comparison_p_1): New function.
2509         (overflow_comparison_p): New function.
2510         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
2511         if NAME is used in an overflow test.
2512         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
2513         overflow check that can be expressed as an equality test, then adjust
2514         ops to be that equality test.
2516 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2518         * config/s390/s390-builtin-types.def: Remove flags argument.
2519         * config/s390/s390.c (s390_init_builtins): Likewise.
2521 2017-02-14  Martin Liska  <mliska@suse.cz>
2523         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
2524         vector.  Fix trailing white spaces.
2526 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
2528         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
2529         HFmode.
2531 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2533         PR rtl-optimization/68664
2534         * config/arm/arm.c (arm_sched_can_speculate_insn):
2535         New function.  Declare prototype.
2536         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
2538 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2540         PR rtl-optimization/68664
2541         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
2542         New function.
2543         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
2545 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
2547         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
2548         max skip bytes for function, loop and jump.
2550 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2552         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
2553         ABS_EXPR for gimple dump.
2555 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
2557         PR target/79462
2558         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
2560         PR tree-optimization/79408
2561         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
2562         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
2563         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
2564         also if rhs1 is INTEGER_CST.
2566 2017-02-14  Richard Biener  <rguenther@suse.de>
2568         PR middle-end/79432
2569         * tree-into-ssa.c (insert_phi_nodes): When the function can
2570         have abnormal edges rewrite SSA names with broken use-def
2571         dominance out of SSA and register them for PHI insertion.
2573 2017-02-13  Martin Sebor  <msebor@redhat.com>
2575         PR middle-end/79496
2576         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
2577         clearing info.nowrite flag when snprintf size argument is a range.
2579 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
2581         * cprop.c (cprop_jump): Add missing space in string literal.
2582         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
2583         (get_constraint_for_component_ref): Likewise.
2584         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2585         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
2586         * lra-constraints.c (process_alt_operands): Likewise.
2587         * ipa-inline.c (inline_small_functions): Likewise.
2588         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
2589         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
2590         * trans-mem.c (diagnose_tm_1_op): Likewise.
2591         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
2592         (grid_parallel_clauses_gridifiable): Likewise.
2594         * config/nvptx/mkoffload.c (process): Add space in between
2595         , and %d.
2597         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
2598         "MOD4_SSE_REGS" and "ALL_REGS".
2600         * spellcheck.c (test_data): Add , in between "foo" and "food".
2602 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2604         PR target/79449
2605         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
2606         boundary crossing check and subsequent code generation agree.
2608 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2610         * config/aarch64/aarch64.c (has_memory_op): Delete.
2611         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
2612         has_memory_op.
2614 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
2616         PR rtl-optimization/79388
2617         PR rtl-optimization/79450
2618         * combine.c (distribute_notes): When removing TEM_INSN for which
2619         corresponding dest has last value recorded, invalidate that last
2620         value.
2622 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2624         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
2625         of explicit '@'.  Add missing assembly comment marker on branch costs
2626         printout.
2628 2017-02-13  Nathan Sidwell  <nathan@acm.org>
2630         * gengtype-lex.l (<in_struct>): Add '/'.
2632 2017-02-13  Martin Liska  <mliska@suse.cz>
2634         PR c/79471
2635         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
2637 2017-02-13  Richard Biener  <rguenther@suse.de>
2639         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
2640         Remove.
2641         * configure: Re-generate.
2642         * config.in: Likewise.
2643         * graphite-dependences.c: Simplify as if
2644         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
2645         * graphite-isl-ast-to-gimple.c: Likewise.
2646         * graphite-optimize-isl.c: Likewise.
2647         * graphite-poly.c: Likewise.
2648         * graphite-sese-to-poly.c: Likewise.
2649         * graphite.h: Likewise.
2650         * toplev.c: Include isl/version.h and use isl_version () for
2651         printing the ISL version.
2652         * doc/install.texi: Update ISL requirement.
2654 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
2656         * doc/standards.texi (Standards): Update reference to
2657         Objective-C 2.0.
2659 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
2660         
2661         * doc/extend.texi (Named Address Spaces): sourceware.org now
2662         defaults to https.
2663         * doc/install.texi (Binaries): Ditto.
2664         (Specific): Ditto.
2666 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
2668         * doc/cpp.texi: Replace "stringify"/"stringification" with C 
2669         standard terminology "stringize"/"stringizing" throughout.
2670         * doc/cppinternals.texi: Likewise.
2672 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
2674         * doc/extend.texi: Fix some spelling mistakes and typos.
2675         * doc/invoke.texi: Likewise.
2677 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
2679         PR ipa/79224
2680         * params.def (inline-min-speedup) Change from 10 to 8.
2682 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
2684         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
2685         4.5.
2687 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
2689         PR ipa/79224
2690         * ipa-inline-analysis.c (get_minimal_bb): New function.
2691         (record_modified): Use it.
2692         (remap_edge_change_prob): Handle also ancestor functions.
2694 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
2696         * doc/contrib.texi (Contributors): Remove broken link into
2697         the Mauve CVS repository.
2699 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
2701         PR middle-end/79454
2702         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
2703         result computation whenever lhs doesn't have vector mode, not
2704         just when it has BLKmode.
2706 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
2708         * doc/makefile.texi (profiledbootstrap): Refer to the
2709         installation instructions only in textual form.
2711 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2713         PR target/79295
2714         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
2716 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
2718         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
2719         (Specific): Update mingw-w64 reference.
2720         (Binaries): Ditto.
2721         (Specific): Remove broken link to Renesas RX processor.
2723 2017-02-10  Richard Biener  <rguenther@suse.de>
2725         * toplev.c (process_options): Do not mention obsolete graphite
2726         options when printing sorry message about missing graphite support.
2727         Mention -floop-nest-optimize.
2729 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
2731         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
2732         (vtst_p16): Likewise.
2733         (vtstq_p8): Likewise.
2734         (vtstq_p16): Likewise.
2735         (vtst_p64): New.
2736         (vtstq_p64): Likewise.
2737         * config/arm/arm_neon.h (vgetq_lane_p64): New.
2738         (vset_lane_p64): New.
2739         (vsetq_lane_p64): New.
2741 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
2743         PR tree-optimization/79411
2744         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
2745         stmt operands are SSA_NAMEs used in abnormal phis.
2746         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
2747         phis.
2749 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
2751         PR ipa/70795
2752         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
2753         flag if needed.
2755 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
2757         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
2759 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
2761         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
2762         to avoid warning.
2764         PR c/79413
2765         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
2766         not arbitrary TREE_CONSTANT.
2768         PR c/79431
2769         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
2770         "omp declare target link" attribute unless is_global_var.
2771         * omp-offload.c (find_link_var_op): Likewise.
2773 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
2774             Chung-Lin Tang  <cltang@codesourcery.com>
2776         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
2777         OMP_CLAUSE_TILE.
2778         (gimplify_adjust_omp_clauses): Don't delete TILE.
2779         (gimplify_omp_for): Deal with TILE.
2780         * internal-fn.c (expand_GOACC_TILE): New function.
2781         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
2782         (GOACC_TILE): New.
2783         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
2784         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
2785         element fields.
2786         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
2787         avoid DIV for outermost collapse var.
2788         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
2789         Remove out of date comments, fix whitespace.
2790         * omp-general.c (omp_extract_for_data): Deal with tiling.
2791         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
2792         adjust OLF_DIM_BASE value.
2793         (struct omp_for_data): Add tiling field.
2794         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
2795         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
2796         for auto loops.  Remove default auto determining, moved to
2797         oacc_loop_fixed_partitions.
2798         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
2799         stmts, add e_mask field.
2800         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
2801         (oacc_thread_numbers): Use oacc_dim_call.
2802         (oacc_xform_tile): New.
2803         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
2804         (finish_oacc_loop): Adjust for ifns vector.
2805         (oacc_loop_discover_walk): Append loop abstraction sites to list,
2806         add case for GOACC_TILE fns.
2807         (oacc_loop_xform_loop): Delete.
2808         (oacc_loop_process): Iterate over call list directly, and add
2809         handling for GOACC_TILE fns.
2810         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
2811         dump partitioning.
2812         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
2813         vector partitioning to outer loops.  Assign 2 partitions to loops
2814         when available. Add TILE handling.
2815         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
2816         (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
2817         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
2818         * tree.c (omp_clause_num_ops): Adjust TILE ops.
2819         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
2821 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
2823         * configure.ac (ACX_BUGURL): Update.
2824         * configure: Regenerate.
2826 2017-02-09  Richard Biener  <rguenther@suse.de>
2828         PR tree-optimization/69823
2829         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
2830         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
2832 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2834         * config/arc/arc-c.def: Add __NPS400__ definition.
2835         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
2836         (TARGET_NPS400): Define.
2838 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2840         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
2841         file.
2842         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
2843         pointer, arch_info.
2844         (arc_cpu_types): Fill the arch_info field with a pointer into the
2845         arc_arch_types table.
2846         (arc_selected_cpu): Declare.
2847         * config/arc/arc.c (arc_selected_cpu): Make global.
2848         (arc_selected_arch): Delete.
2849         (arc_base_cpu): Delete.
2850         (arc_override_options): Remove references to deleted variables,
2851         update access to arch information.
2852         (ARC_OPT): Update access to arch information.
2853         (ARC_OPTX): Likewise.
2854         * config/arc/arc.h (arc_base_cpu): Remove declaration.
2855         (TARGET_ARC600): Update access to arch information.
2856         (TARGET_ARC601): Likewise.
2857         (TARGET_ARC700): Likewise.
2858         (TARGET_EM): Likewise.
2859         (TARGET_HS): Likewise.
2860         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
2861         information.
2863 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
2865         PR target/78604
2866         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
2867         condition/operands for integer GE/LE/GEU/LEU operations.
2869 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
2871         PR translation/79397
2872         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
2873         of AltiVec.
2875 2017-02-08  Martin Jambor  <mjambor@suse.cz>
2877         PR ipa/79375
2878         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
2879         whether allocation happened.
2880         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
2881         nothing was allocated.
2883 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
2885         PR tree-optimization/79408
2886         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
2887         constant, but SSA_NAME with a known integer range, use the minimum
2888         of that range instead of op1 to determine if modulo can be replaced
2889         with its first operand.
2891 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2893         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
2895 2017-02-08  Richard Biener  <rguenther@suse.de>
2897         PR tree-optimization/71824
2898         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
2899         Check all loops contained in the merged region.
2901 2017-02-07  Andrew Pinski  <apinski@cavium.com>
2903         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
2905 2017-02-07  Andrew Pinski  <apinski@cavium.com>
2907         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
2908         (thunderxt88): Likewise.
2909         (thunderxt81): Disable LSE and change v8.1 to v8.
2910         (thunderxt83): Likewise.
2912 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
2913             Richard Biener  <rguenther@suse.de>
2915         PR middle-end/79399
2916         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
2917         type from int to size_t.
2918         * ira-costs.c (struct_costs_size): Change type from int to size_t.
2920 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
2922         PR rtl-optimization/79386
2923         * cprop.c (bypass_conditional_jumps): Initialize
2924         bypass_last_basic_block already before splitting bbs after
2925         unconditional traps...
2926         (bypass_conditional_jumps): ... rather than here.
2928         PR target/79299
2929         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
2930         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
2931         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
2932         fix -masm=intel patterns.
2934 2017-02-07  Richard Biener  <rguenther@suse.de>
2936         PR tree-optimization/79256
2937         PR middle-end/79278
2938         * builtins.c (get_object_alignment_2): Use min_align_of_type
2939         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
2940         and ADJUST_FIELD_ALIGN.
2942         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
2943         type parameter.
2944         * doc/tm.texi: Regenerate.
2945         * stor-layout.c (layout_decl): Adjust.
2946         (update_alignment_for_field): Likewise.
2947         (place_field): Likewise.
2948         (min_align_of_type): Likewise.
2949         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
2950         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
2951         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
2952         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
2953         * config/frv/frv.c (frv_adjust_field_align): Likewise.
2954         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
2955         * config/i386/i386.c (x86_field_alignment): Likewise.
2956         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
2957         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
2958         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
2959         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
2960         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
2961         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
2962          Likewise.
2964         Revert
2965         2017-01-30  Richard Biener  <rguenther@suse.de>
2967         PR tree-optimization/79256
2968         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
2969         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
2970         alignment on TYPE.
2972 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
2974         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
2975         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
2976         builtins to SImode and emit a zero-extend, if necessary.
2978 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
2980         * docs/invoke.texi (RISC-V Options): Alphabetize.
2982 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
2984         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
2985         options.
2987 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
2989         * config/riscv/riscv.c: New file.
2990         * gcc/common/config/riscv/riscv-common.c: Likewise.
2991         * config.gcc: Likewise.
2992         * config/riscv/constraints.md: Likewise.
2993         * config/riscv/elf.h: Likewise.
2994         * config/riscv/generic.md: Likewise.
2995         * config/riscv/linux.h: Likewise.
2996         * config/riscv/multilib-generator: Likewise.
2997         * config/riscv/peephole.md: Likewise.
2998         * config/riscv/pic.md: Likewise.
2999         * config/riscv/predicates.md: Likewise.
3000         * config/riscv/riscv-builtins.c: Likewise.
3001         * config/riscv/riscv-c.c: Likewise.
3002         * config/riscv/riscv-ftypes.def: Likewise.
3003         * config/riscv/riscv-modes.def: Likewise.
3004         * config/riscv/riscv-opts.h: Likewise.
3005         * config/riscv/riscv-protos.h: Likewise.
3006         * config/riscv/riscv.h: Likewise.
3007         * config/riscv/riscv.md: Likewise.
3008         * config/riscv/riscv.opt: Likewise.
3009         * config/riscv/sync.md: Likewise.
3010         * config/riscv/t-elf-multilib: Likewise.
3011         * config/riscv/t-linux: Likewise.
3012         * config/riscv/t-linux-multilib: Likewise.
3013         * config/riscv/t-riscv: Likewise.
3014         * configure.ac: Likewise.
3015         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
3016         Waterman as RISC-V maintainers.
3017         * doc/install.texi: Add RISC-V entries.
3018         * doc/invoke.texi: Add RISC-V options section.
3019         * doc/md.texi: Add RISC-V constraints section.
3020         * configure: Regenerated.
3022 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
3024         PR target/66144
3025         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
3026         false values to be constant vectors with all 0 or all 1 bits set.
3027         (vcondu<mode><mode>): Likewise.
3028         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
3029         predicate.
3030         (fpmask_comparison_operator): Update comment.
3031         (vecint_comparison_operator): New predicate.
3032         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
3033         vector conditionals when the true and false values are constant
3034         vectors with all 0 bits or all 1 bits set.
3036 2017-02-06  Martin Sebor  <msebor@redhat.com>
3038         PR  tree-optimization/79376
3039         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
3041 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
3043         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
3044         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
3045         to simplify split condition.
3047 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
3049         * omp-expand.c (oxpand_omp_atomic_fetch_op,
3050         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
3051         false.
3053 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
3055         PR rtl-optimization/68664
3056         * target.def (can_speculate_insn): New hook.
3057         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
3058         * doc/tm.texi: Regenerate.
3059         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
3060         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
3061         (rs6000_sched_can_speculate_insn): New function.
3063 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
3065         PR tree-optimization/79284
3066         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
3067         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
3068         vectorizable_mask_load_store, vectorizable_operation,
3069         vect_is_simple_cond, get_same_sized_vectype): Use it instead
3070         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
3071         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
3072         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
3073         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3074         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
3075         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
3076         is_gimple_assign (stmt).  Replace another such test with
3077         is_gimple_assign (stmt).
3079 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
3081         PR target/78883
3082         * config/avr/avr.c (rtl-iter.h): Include it.
3083         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
3084         (avr_legitimate_combined_insn): ...and implementation.
3086 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3088         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
3089         * config/s390/s390.c (s390_const_operand_ok)
3090         (s390_canonicalize_comparison, s390_extract_part)
3091         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
3092         (s390_contiguous_bitmask_p, s390_rtx_costs)
3093         (legitimize_pic_address): Likewise.
3094         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
3095         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
3096         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
3097         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
3098         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
3100 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
3102         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
3103         REGNO($0) == REGNO($1).
3105 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3107         * config/s390/linux.h(SIZE_TYPE): Add comment.
3109 2017-02-06  Julian Brown  <julian@codesourcery.com>
3110             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3111             Virendra Pathak  <virendra.pathak@broadcom.com>
3113         * config/aarch64/aarch64-cores.def: Change the scheduler
3114         to Thunderx2t99.
3115         * config/aarch64/aarch64.md: Include thunderx2t99.md.
3116         * config/aarch64/thunderx2t99.md: New file.
3118 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
3120         * doc/standards.texi (Go Language): Update link to language
3121         standard.
3123 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
3125         * tree-eh.c (lower_resx): Sanitize profile.
3126         (cleanup_empty_eh_move_lp): Likewise.
3128 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
3130         PR tree-ssa/79347
3131         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
3132         ELSE_PROB.
3133         * cfgloopmanip.h (loop_version): Update prototype.
3134         * modulo-sched.c (sms_schedule): Update call of loop_version.
3135         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
3136         * tree-parloops.c (gen_parallel_loop): Likewise.
3137         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
3138         * tree-ssa-loop-split.c (split_loop): Likewise.
3139         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
3140         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
3142 2017-02-05  Martin Liska  <mliska@suse.cz>
3144         PR bootstrap/78985
3145         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
3146         variable to NULL.
3147         (print_operand_address): Initialize a struct to zero.
3149 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
3151         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
3152         garbage collector only in textual form.
3154 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
3155         
3156         * doc/extend.texi (x86 specific memory model extensions for
3157         transactional memory): Simplify a phrase.
3159 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
3161         PR target/79353
3162         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
3163         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
3164         (atomic_storedi_1): Likewise.
3166 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
3168         PR tree-optimization/79338
3169         * tree-parloops.c (gather_scalar_reductions): Don't call
3170         vect_analyze_loop_form for loop->inner before destroying loop's
3171         loop_vinfo.
3173 2017-02-03  Martin Sebor  <msebor@redhat.com>
3175         PR tree-optimization/79327
3176         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
3177         when precision has resulted in leading zeros.
3178         (format_integer): Adjust the likely counter to assume an unknown
3179         argument that may be zero is non-zero.
3181 2017-02-03  Jason Merrill  <jason@redhat.com>
3183         PR c++/78689
3184         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
3185         avoid copying non-taken branch.
3187 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
3189         PR tree-optimization/79340
3190         * tree-vect-loop.c (vectorizable_reduction): Release
3191         vec_defs elements after safe_splicing them into other vectors.
3192         Formatting fixes.
3194         PR tree-optimization/79327
3195         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
3196         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
3197         dirtype.
3198         (format_integer): Use wide_int_to_tree instead of build_int_cst
3199         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
3200         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
3201         of shortest and longest sequence.
3203 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
3205         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
3206         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
3208 2017-02-03  Walter Lee  <walt@tilera.com>
3210         PR target/78862
3211         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
3212         after initial stackframe link reg save.
3213         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
3215 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
3217         PR target/79354
3218         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
3219         wu for stxssp alternative.
3221 2017-02-03  Martin Sebor  <msebor@redhat.com>
3223         PR tree-optimization/79352
3224         * gimple-fold.c (get_range_strlen): Add argument.
3225         (get_range_strlen): Change return type to bool.
3226         (get_maxval_strlen): Pass in a dummy argument.
3227         * gimple-fold.h (get_range_strlen): Change return type to bool.
3228         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
3229         * tree.h (array_at_struct_end_p): Add argument.
3230         * tree.c (array_at_struct_end_p): Handle it.
3232 2017-02-03  Martin Liska  <mliska@suse.cz>
3234         PR lto/66295
3235         * multiple_target.c (create_dispatcher_calls): Redirect edge
3236         from a caller of a dispatcher.
3237         (expand_target_clones): Make the clones local.
3238         (ipa_target_clone): Do both target clones and resolvers.
3239         (ipa_dispatcher_calls): Remove the pass.
3240         (pass_dispatcher_calls::gate): Likewise.
3241         (make_pass_dispatcher_calls): Likewise.
3242         * passes.def (pass_target_clone): Put as very first IPA early
3243         pass.
3245 2017-02-03  Martin Liska  <mliska@suse.cz>
3247         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
3248         in case of a function with ifunc attribute.
3250 2017-02-03  Martin Liska  <mliska@suse.cz>
3252         * cgraph.c (cgraph_node::dump): Dump function version info.
3253         * symtab.c (symtab_node::dump_base): Add missing new line.
3255 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
3257         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
3258         (ifcombine_ifandif): Use it.
3260 2017-02-03  Martin Liska  <mliska@suse.cz>
3262         * doc/invoke.texi: Document default value for
3263         use-after-scope-direct-emission-threshold.
3265 2017-02-03  Martin Liska  <mliska@suse.cz>
3267         PR tree-optimization/79339
3268         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
3269         (format_floating): Likewise.
3271 2017-02-03  Martin Liska  <mliska@suse.cz>
3273         PR ipa/79337
3274         * ipa-prop.c (ipa_node_params_t::insert): Remove current
3275         implementation.
3276         (ipa_node_params_t::remove): Likewise.
3277         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
3278         initialization from removed ipa_node_params_t::insert.
3279         (ipa_node_params::~ipa_node_params): Move from removed
3280         ipa_node_params_t::release.
3281         * symbol-summary.h (symbol_summary::m_released): New member.
3282         Do not release a summary twice.  Do not allow to call finalizer
3283         for types of a summary that live in GGC memory.
3285 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3287         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
3288         cmp_branch fusion.
3290 2017-02-02  Martin Sebor  <msebor@redhat.com>
3292         PR middle-end/79275
3293         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
3294         (format_string): Tighten up the range of output for non-constant
3295         strings and correct the expected range for wide non-constant strings.
3297 2017-02-02  Martin Sebor  <msebor@redhat.com>
3299         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
3301         PR middle-end/32003
3302         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
3303         index.
3304         (-fdump-tree-@var): Add to index and document how to come up
3305         with pass-specific option and dump file names.
3306         (-fdump-passes): Clarify where to look for output.
3308 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
3310         PR middle-end/77445
3311         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
3312         statistics of the analyzed path; allow threading for speed when
3313         any of BBs along the path are optimized for speed.
3315 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
3317         PR middle-end/78468
3318         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
3319         settings of the virtual registers.
3321         Revert again
3322         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3324         * explow.c (get_dynamic_stack_size): Take known alignment of stack
3325         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
3326         needed.
3328 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3330         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
3331         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
3333 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3335         * config/s390/s390.md: Add missing comments with the expanded
3336         mnemonics.
3337         * config/s390/vector.md: Likewise.
3338         * config/s390/vx-builtins.md: Likewise.
3340 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
3342         PR target/79197
3343         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
3344         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
3345         conditions on a single line.
3347 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3349         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
3350         __S390_VX__ to __VX__.
3352 2017-02-01  Andrew Pinski  <apinski@cavium.com>
3354         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
3355         stmt_info to record_stmt_cost.
3356         (vect_get_known_peeling_cost): Pass stmt_info if known to
3357         record_stmt_cost.
3358         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
3359         cpu_vector_cost field into
3360         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
3361         field into vec_int_stmt_cost and vec_fp_stmt_cost.
3362         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
3363         splitting of scalar_stmt_cost and vec_stmt_cost.
3364         (thunderx_vector_cost): Likewise.
3365         (cortexa57_vector_cost): LIkewise.
3366         (exynosm1_vector_cost): Likewise.
3367         (xgene1_vector_cost): Likewise.
3368         (thunderx2t99_vector_cost): Improve after the splitting of the two
3369         fields.
3370         (aarch64_builtin_vectorization_cost): Update for the splitting of
3371         scalar_stmt_cost and vec_stmt_cost.
3373 2017-02-01  Torvald Riegel  <triegel@redhat.com>
3374             Richard Henderson  <rth@redhat.com>
3376         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
3377         conditional on existance of a fast atomic load.
3378         * optabs-query.c (can_atomic_load_p): New function.
3379         * optabs-query.h (can_atomic_load_p): Declare it.
3380         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
3381         no fast atomic load is available for the particular size of access.
3382         (expand_atomic_compare_and_swap): Likewise.
3383         (expand_atomic_load): Likewise.
3384         (expand_atomic_store): Likewise.
3385         (expand_atomic_fetch_op): Likewise.
3386         * testsuite/lib/target-supports.exp
3387         (check_effective_target_sync_int_128): Remove x86 because it provides
3388         no fast atomic load.
3389         (check_effective_target_sync_int_128_runtime): Likewise.
3391 2017-02-01  Richard Biener  <rguenther@suse.de>
3393         * graphite.c: Include tree-vectorizer.h for find_loop_location.
3394         (graphite_transform_loops): Provide opt-info for optimized nests.
3395         * tree-parloop.c (parallelize_loops): Provide opt-info for
3396         parallelized loops.
3398 2017-02-01  Richard Biener  <rguenther@suse.de>
3400         PR middle-end/79315
3401         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
3402         was not set before.
3404 2017-02-01  Richard Biener  <rguenther@suse.de>
3406         PR tree-optimization/71824
3407         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
3408         Verify the loops are valid in the merged SESE region.
3409         (scop_detection::can_represent_loop_1): Check analyzing the
3410         evolution of the number of iterations in the region succeeds.
3412 2017-01-31  Ian Lance Taylor  <iant@golang.org>
3414         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
3415         REG_ARGS_SIZE note to 32-bit push insns and call insn.
3417 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
3419         PR preprocessor/79210
3420         * input.c (get_substring_ranges_for_loc): Replace line_width
3421         assertion with error-handling.
3423 2017-01-31  Richard Biener  <rguenther@suse.de>
3425         PR tree-optimization/77318
3426         * graphite-sese-to-poly.c (extract_affine): Fix assert.
3427         (create_pw_aff_from_tree): Take loop parameter.
3428         (add_condition_to_pbb): Pass loop of the condition to
3429         create_pw_aff_from_tree.
3431 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
3433         * config/s390/s390.c (s390_asan_shadow_offset): New function.
3434         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
3436 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3438         PR target/78597
3439         PR target/79038
3440         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
3441         no longer used.
3442         (convert_int_to_float128): Likewise.
3443         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
3444         (convert_int_to_float128): Likewise.
3445         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
3446         (UNSPEC_IEEE128_CONVERT): Likewise.
3447         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
3448         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
3449         Use local variables for IBM extended format.
3450         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
3451         (fix_trunc<mode>si2_fprs): Likewise.
3452         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
3453         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
3454         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
3455         to know that we can now have integers of all sizes in vector
3456         registers.
3457         (fix<uns>_<mode>di2_hw): Likewise.
3458         (float<uns>_<mode>si2_hw): Likewise.
3459         (fix_<mode>si2_hw): Likewise.
3460         (fixuns_<mode>si2_hw): Likewise.
3461         (float<uns>_<mode>di2_hw): Likewise.
3462         (float_<mode>di2_hw): Likewise.
3463         (float_<mode>si2_hw): Likewise.
3464         (floatuns_<mode>di2_hw): Likewise.
3465         (floatuns_<mode>si2_hw): Likewise.
3466         (xscvqp<su>wz_<mode>): Delete, no longer used.
3467         (xscvqp<su>dz_<mode>): Likewise.
3468         (xscv<su>dqp_<mode>): Likewise.
3469         (ieee128_mfvsrd_64bit): Likewise.
3470         (ieee128_mfvsrd_32bit): Likewise.
3471         (ieee128_mfvsrwz): Likewise.
3472         (ieee128_mtvsrw): Likewise.
3473         (ieee128_mtvsrd_64bit): Likewise.
3474         (ieee128_mtvsrd_32bit): Likewise.
3476 2017-01-31  Martin Liska  <mliska@suse.cz>
3478         PR ipa/79285
3479         * ipa-prop.c (ipa_free_all_node_params): Call release method
3480         instead of ~sumbol_summary to not to trigger double times
3481         dtor of hash_map.
3483 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
3485         PR tree-optimization/71691
3486         * bitmap.h (class auto_bitmap): New.
3487         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
3488         is_maybe_undefined instead of ssa_undefined_value_p.
3490 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3492         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
3493         __S390_ARCH_LEVEL__ to __ARCH__.
3495 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
3497         PR tree-optimization/79267
3498         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
3499         if should_remove_lhs_p is true.
3501 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
3503         PR debug/63238
3504         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
3505         (add_alignment_attribute): New.
3506         (base_type_die): Add alignment attribute.
3507         (subrange_type_die): Likewise.
3508         (modified_type_die): Likewise.
3509         (gen_array_type_die): Likewise.
3510         (gen_descr_array_type_die: Likewise.
3511         (gen_enumeration_type_die): Likewise.
3512         (gen_subprogram_die): Likewise.
3513         (gen_variable_die): Likewise.
3514         (gen_field_die): Likewise.
3515         (gen_ptr_to_mbr_type_die): Likewise.
3516         (gen_struct_or_union_type_die): Likewise.
3517         (gen_subroutine_type_die): Likewise.
3518         (gen_typedef_die): Likewise.
3519         (base_type_cmp): Compare alignment attribute.
3521 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3523         PR target/79170
3524         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
3525         (setb_unsigned) New pattern for setb with CCUNS.
3526         * config/rs6000/rs6000.c (expand_block_compare): Use a different
3527         subfc./subfe sequence to avoid overflow problems.  Generate a
3528         shorter sequence with cmpld/setb for power9.
3529         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
3530         for generating subfc. instruction.
3531         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
3532         now uses this instruction.
3534 2017-01-30  Ian Lance Taylor  <iant@google.com>
3536         PR debug/79289
3537         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
3538         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
3540 2017-01-30  Martin Sebor  <msebor@redhat.com>
3542         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
3543         Move constant to the right of a relational operator.
3544         (get_mpfr_format_length, format_character, format_string): Ditto.
3545         (should_warn_p, maybe_warn): Same.
3547         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
3549 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
3551         PR lto/79061
3552         * asan.c (get_translation_unit_decl): Remove function.
3553         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
3555 2017-01-30  Martin Liska  <mliska@suse.cz>
3557         PR gcov-profile/79259
3558         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
3559         -fprofile-generate.
3561 2017-01-30  Martin Liska  <mliska@suse.cz>
3563         PR bootstrap/78985
3564         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
3565         Initialize variables with NULL value.
3567 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
3569         PR target/79260
3570         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
3571         tm_p_file.
3572         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
3574 2017-01-30  Richard Biener  <rguenther@suse.de>
3576         PR tree-optimization/79276
3577         * tree-vrp.c (process_assert_insertions): Properly adjust common
3578         when removing a duplicate.
3580         * gcc.dg/torture/pr79276.c: New testcase.
3582 2017-01-30  Richard Biener  <rguenther@suse.de>
3584         PR tree-optimization/79256
3585         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
3586         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
3587         alignment on TYPE.
3588         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
3590 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3592         PR target/79240
3593         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
3594         ("*r<noxa>sbg_<mode>_sll_bitmask")
3595         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
3596         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
3597         Use contiguous_bitmask_nowrap_operand.
3599 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3601         PR target/79268
3602         * config/rs6000/altivec.h (vec_xl): Revise #define.
3603         (vec_xst): Likewise.
3605 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
3607         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
3609 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
3611         PR rtl-optimization/79194
3612         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
3613         traps before call to bypass_conditional_jumps.
3615 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
3617         PR tree-optimization/71374
3618         * lra-constraints.c (check_conflict_input_operands): New.
3619         (match_reload): Use it.
3621 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
3623         PR target/79131
3624         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
3625         account to calculate conflict_set.
3627 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
3629         PR rtl-optimization/78559
3630         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
3631         other_insn in combine.
3633 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
3635         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
3636         uint16_type_node for BT_UINT16.
3638 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
3640         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
3641         "RTL Tests" to menu.
3642         (GIMPLE Tests): New node.
3643         (RTL Tests): New node.
3645 2017-01-27  Richard Biener  <rguenther@suse.de>
3647         PR tree-optimization/79245
3648         * tree-loop-distribution.c (distribute_loop): Apply cost
3649         modeling also to detected patterns.
3651 2017-01-27  Richard Biener  <rguenther@suse.de>
3653         PR tree-optimization/71433
3654         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
3655         (compare_assert_loc): New function.
3656         (process_assert_insertions): Sort and optimize assert locations
3657         to remove duplicates and push down identical assertions on
3658         edges to their destination block.
3660 2017-01-27  Richard Biener  <rguenther@suse.de>
3662         PR tree-optimization/79244
3663         * tree-vrp.c (remove_range_assertions): Forcefully propagate
3664         out SSA names even if abnormal.
3666 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
3668         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
3669         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
3670         instead of MPFR_RNDN.
3672 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
3674         PR target/79239
3675         * arm.c (arm_option_override): Don't call build_target_option_node
3676         until after doing all option overrides.
3677         (arm_valid_target_attribute_tree): Likewise.
3679 2017-01-27  Martin Liska  <mliska@suse.cz>
3681         * doc/invoke.texi (-fprofile-arcs): Document profiling support
3682         for {cd}tors and C++ {cd}tors.
3684 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3686         * config/s390/s390.md ("*setmem_long_and")
3687         ("*setmem_long_and_31z"): Use zero_extend instead of and.
3689 2017-01-26  Martin Sebor  <msebor@redhat.com>
3691         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
3692         of precision.
3694 2017-01-26  Martin Sebor  <msebor@redhat.com>
3696         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
3697         HAVE_DFmode before using XFmode or DFmode.
3698         (parse_directive): Avoid using the z length modifier to avoid
3699         the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
3701         PR middle-end/78703
3702         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
3703         to accept adjustment as an array.
3704         (get_int_range): New function.
3705         (struct directive): Make width and prec arrays.
3706         (directive::set_width, directive::set_precision): Call get_int_range.
3707         (format_integer, format_floating): Handle width and precision ranges.
3708         (format_string, parse_directive): Same.
3710 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
3712         PR debug/79129
3713         * dwarf2out.c (generate_skeleton_bottom_up): For children with
3714         comdat_type_p set, just clone them, but keep the children in the
3715         original DIE.
3717         PR debug/78835
3718         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
3719         which have direct callers with -fvar-tracking-assignments enabled
3720         in the current TU.
3721         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
3722         inside of type units.
3724 2017-01-26  Martin Sebor  <msebor@redhat.com>
3726         PR middle-end/78703
3727         * gimple-ssa-sprintf.c (struct result_range): Add likely and
3728         unlikely counters.
3729         (struct format_result): Replace number_chars, number_chars_min,
3730         and number_chars_max with a single member of struct result_range.
3731         Remove bounded.
3732         (format_result::operator+=): Adjust.
3733         (struct fmtresult): Remove bounded.  Handle likely and unlikely
3734         counters.
3735         (fmtresult::adjust_for_width_or_precision): New function.
3736         (fmtresult:type_max_digits): New function.
3737         (bytes_remaining): Handle likely and unlikely counters.
3738         (min_bytes_remaining): Remove.
3739         (format_percent): Simplify.
3740         (format_integer, format_floating): Set likely and unlikely counters.
3741         (get_string_length, format_character, format_string): Same.
3742         (format_plain, should_warn_p): New function.
3743         (maybe_warn): Call should_warn_p.  Update diagnostic messages
3744         and handle those for all directives, including plain strings.
3745         (format_directive): Handle likely and unlikely counters.
3746         Remove unnecessary quoting from diagnostics.  Add an informational
3747         note.
3748         (add_bytes): Remove.
3749         (pass_sprintf_length::compute_format_length): Simplify.
3750         (try_substitute_return_value): Handle likely and unlikely counters.
3752 2017-01-26  Carl Love  <cel@us.ibm.com>
3754         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
3755         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
3757 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
3759         PR target/79131
3760         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
3761         endianess for subregs into account.
3762         * lra-constraints.c (lra_constraints): Do risky transformations
3763         always on the first iteration.
3764         * lra-lives.c (check_pseudos_live_through_calls): Add arg
3765         last_call_used_reg_set.
3766         (process_bb_lives): Define and use last_call_used_reg_set.
3767         * lra.c (lra): Always continue after lra_constraints on the first
3768         iteration.
3770 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
3772         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
3773         constant.
3774         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
3776 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
3778         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
3779         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
3780         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
3781         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
3782         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
3783         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
3784         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
3785         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
3786         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
3788 2017-01-26  Marek Polacek  <polacek@redhat.com>
3790         PR c/79199
3791         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
3792         for the third operand.
3794 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
3796         PR middle-end/79236
3797         * omp-low.c (struct omp_context): Add simt_stmt field.
3798         (scan_omp_for): Return omp_context *.
3799         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
3800         context to the _simt_ SIMD stmt.
3801         (lower_omp_for): For combined SIMD with sibling _simt_
3802         SIMD, make sure to use the same decls in _looptemp_
3803         clauses as in the sibling.
3805 2017-01-26  David Sherwood  <david.sherwood@arm.com>
3807         PR middle-end/79212
3808         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
3809         all contexts.
3811 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
3813         PR target/70465
3814         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
3815         emit fld b; fld a; if possible.
3817         * brig-builtins.def: Update copyright years.
3818         * config/arm/arm_acle_builtins.def: Update copyright years.
3820 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
3822         PR target/79179
3823         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
3824         constraint instead of o for the stxsd instruction.
3826 2017-01-25  Carl Love  <cel@us.ibm.com>
3828         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
3829         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
3831 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
3833         * doc/invoke.texi (C++ Dialect Options): Fix typo.
3835 2017-01-25  Richard Biener  <rguenther@suse.de>
3837         PR tree-optimization/69264
3838         * target.def (vector_alignment_reachable): Improve documentation.
3839         * doc/tm.texi: Regenerate.
3840         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
3841         and add a comment.
3842         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
3843         earlier changes with respect to TYPE_USER_ALIGN.
3844         (vector_alignment_reachable_p): Likewise.  Improve dumping.
3846 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3848         PR target/79145
3849         * config/arm/arm.md (xordi3): Force constant operand into a register
3850         for TARGET_IWMMXT.
3852 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3854         * doc/invoke.texi (-fstore-merging): Correct default optimization
3855         levels at which it is enabled.
3856         (-O): Move -fstore-merging from list to...
3857         (-O2): ... Here.
3859 2017-01-25  Richard Biener  <rguenther@suse.de>
3861         PR debug/78363
3862         * omp-expand.c: Include debug.h.
3863         (expand_omp_taskreg): Make sure to generate early debug before
3864         outlining anything from a function.
3865         (expand_omp_target): Likewise.
3866         (grid_expand_target_grid_body): Likewise.
3868 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
3870         PR lto/79061
3871         * asan.c (get_translation_unit_decl): New function.
3872         (asan_add_global): Extract modules file name from globals
3873         TRANSLATION_UNIT_DECL name.
3875 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
3877         PR target/77439
3878         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
3879         for long calls with APCS frame and VFP.
3881 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
3883         * cfg.c (original_copy_tables_initialized_p): New function.
3884         * cfg.h (original_copy_tables_initialized_p): New decl.
3885         * cfgrtl.c (relink_block_chain): Guard the call to
3886         free_original_copy_tables with a call to
3887         original_copy_tables_initialized_p.
3888         * cgraph.h (symtab_node::native_rtl_p): New decl.
3889         * cgraphunit.c (symtab_node::native_rtl_p): New function.
3890         (symtab_node::needed_p): Don't assert for early assembly output
3891         for __RTL functions.
3892         (cgraph_node::finalize_function): Set "force_output" for __RTL
3893         functions.
3894         (cgraph_node::analyze): Bail out early for __RTL functions.
3895         (analyze_functions): Update assertion to support __RTL functions.
3896         (cgraph_node::expand): Bail out early for __RTL functions.
3897         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
3898         __RTL functions.
3899         * function.h (struct function): Update comment for field
3900         "pass_startwith".
3901         * gimple-expr.c: Include "tree-pass.h".
3902         (gimple_has_body_p): Return false for __RTL functions.
3903         * Makefile.in (OBJS): Add run-rtl-passes.o.
3904         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
3905         accessor.
3906         (gcc::pass_manager::get_clean_slate): New accessor.
3907         * passes.c: Include "insn-addr.h".
3908         (should_skip_pass_p): Add logging.  Update logic for running
3909         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
3910         property-provider override so it is only done for gimple passes.
3911         Don't skip dfinit.
3912         (skip_pass): New function.
3913         (execute_one_pass): Call skip_pass when skipping passes.
3914         * read-md.c (md_reader::read_char): Support filtering
3915         the input to a subset of line numbers.
3916         (md_reader::md_reader): Initialize fields
3917         m_first_line and m_last_line.
3918         (md_reader::read_file_fragment): New function.
3919         * read-md.h (md_reader::read_file_fragment): New decl.
3920         (md_reader::m_first_line): New field.
3921         (md_reader::m_last_line): New field.
3922         * read-rtl-function.c (function_reader::create_function): Only
3923         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
3924         curr_properties.  Set DECL_INITIAL to a dummy block.
3925         (read_rtl_function_body_from_file_range): New function.
3926         * read-rtl-function.h (read_rtl_function_body_from_file_range):
3927         New decl.
3928         * run-rtl-passes.c: New file.
3929         * run-rtl-passes.h: New file.
3931 2017-01-24 Jeff Law  <law@redhat.com>
3933         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
3934         buffer size.
3936 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
3938         PR tree-optimization/79159
3939         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
3940         (record_nonwrapping_iv): Improve boundary using above function if no
3941         value range information.
3943 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
3944             Martin Jambor  <mjambor@suse.cz>
3946         * brig-builtins.def: New file.
3947         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
3948         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
3949         (DEF_HSAIL_SAT_BUILTIN): Likewise.
3950         (DEF_HSAIL_INTR_BUILTIN): Likewise.
3951         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
3952         * builtin-types.def (BT_INT8): New.
3953         (BT_INT16): Likewise.
3954         (BT_UINT8): Likewise.
3955         (BT_UINT16): Likewise.
3956         (BT_FN_ULONG): Likewise.
3957         (BT_FN_UINT_INT): Likewise.
3958         (BT_FN_UINT_ULONG): Likewise.
3959         (BT_FN_UINT_LONG): Likewise.
3960         (BT_FN_UINT_PTR): Likewise.
3961         (BT_FN_ULONG_PTR): Likewise.
3962         (BT_FN_INT8_FLOAT): Likewise.
3963         (BT_FN_INT16_FLOAT): Likewise.
3964         (BT_FN_UINT32_FLOAT): Likewise.
3965         (BT_FN_UINT16_FLOAT): Likewise.
3966         (BT_FN_UINT8_FLOAT): Likewise.
3967         (BT_FN_UINT64_FLOAT): Likewise.
3968         (BT_FN_UINT16_UINT32): Likewise.
3969         (BT_FN_UINT32_UINT16): Likewise.
3970         (BT_FN_UINT16_UINT16_UINT16): Likewise.
3971         (BT_FN_INT_PTR_INT): Likewise.
3972         (BT_FN_UINT_PTR_UINT): Likewise.
3973         (BT_FN_LONG_PTR_LONG): Likewise.
3974         (BT_FN_ULONG_PTR_ULONG): Likewise.
3975         (BT_FN_VOID_UINT64_UINT64): Likewise.
3976         (BT_FN_UINT8_UINT8_UINT8): Likewise.
3977         (BT_FN_INT8_INT8_INT8): Likewise.
3978         (BT_FN_INT16_INT16_INT16): Likewise.
3979         (BT_FN_INT_INT_INT): Likewise.
3980         (BT_FN_UINT_FLOAT_UINT): Likewise.
3981         (BT_FN_FLOAT_UINT_UINT): Likewise.
3982         (BT_FN_ULONG_UINT_UINT): Likewise.
3983         (BT_FN_ULONG_UINT_PTR): Likewise.
3984         (BT_FN_ULONG_ULONG_ULONG): Likewise.
3985         (BT_FN_UINT_UINT_UINT): Likewise.
3986         (BT_FN_VOID_UINT_PTR): Likewise.
3987         (BT_FN_UINT_UINT_PTR: Likewise.
3988         (BT_FN_UINT32_UINT64_PTR): Likewise.
3989         (BT_FN_INT_INT_UINT_UINT): Likewise.
3990         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
3991         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
3992         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
3993         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
3994         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
3995         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
3996         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
3997         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
3998         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
3999         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
4000         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
4001         * doc/frontends.texi: List BRIG FE.
4002         * doc/install.texi (Testing): Add BRIG tesring requirements.
4003         * doc/invoke.texi (Overall Options): Mention BRIG.
4004         * doc/standards.texi (Standards): Doucment BRIG HSA version.
4006 2017-01-24  Richard Biener  <rguenther@suse.de>
4008         PR translation/79208
4009         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
4011 2017-01-24  Martin Jambor  <mjambor@suse.cz>
4013         PR bootstrap/79198
4014         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
4015         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
4016         and known_contexts.
4018 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
4020         PR middle-end/79123
4021         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
4022         casts from signed to unsigned really don't have a range.
4024 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
4026         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
4027         GMP_RNDx for compatiblity.
4029 2017-01-24  Martin Liska  <mliska@suse.cz>
4031         PR bootstrap/79132
4032         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
4033         that would prevent us to call alloca with -1 as argument.
4035 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
4037         * dwarf2out.c (output_compilation_unit_header, output_file_names):
4038         Avoid -Wformat-security warning.
4040 2017-01-23  Andrew Pinski  <apinski@cavium.com>
4042         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
4043         cost table.
4045 2017-01-23  Martin Sebor  <msebor@redhat.com>
4047         PR middle-end/78703
4048         * gimple-ssa-sprintf.c (warn_level): New global.
4049         (format_integer): Use it here and throughout the rest of the file.
4050         Use the same switch to compute sign as base.
4051         (maybe_warn): New function.
4052         (format_directive): Factor out warnings into maybe_warn.
4053         Add debugging output.  Use warn_level.
4054         (add_bytes): Use warn_level.
4055         (pass_sprintf_length::compute_format_length): Add debugging output.
4056         (try_substitute_return_value): Same.
4057         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
4059         PR middle-end/78703
4060         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
4061         (struct fmtresult, format_integer, format_floating): Adjust.
4062         (fmtresult::fmtresult): Set max correctly in two argument ctor.
4063         (get_string_length, format_string,format_directive): Same.
4064         (pass_sprintf_length::compute_format_length): Same.
4065         (try_substitute_return_value): Simplify slightly.
4067         PR middle-end/78703
4068         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
4069         (fmtresult::operator+=): Outlined.
4070         (struct fmtresult): Add ctors.
4071         (struct conversion_spec): Rename...
4072         (struct directive): ...to this.  Add and remove data members.
4073         (directive::set_width, directive::set_precision): New functions.
4074         (format_percent): Use fmtresult ctor.
4075         (get_width_and_precision): Remove.
4076         (format_integer): Make naming changes.  Avoid computing width and
4077         precision.
4078         (format_floating): Same.  Adjust indentation.
4079         (format_character, format_none): New functions.
4080         (format_string): Moved character handling to format_character.
4081         (format_directive): Remove arguments, change return type.
4082         (parse_directive): New function.
4083         (pass_sprintf_length::compute_format_length): Move directive
4084         parsing to parse_directive.
4086 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
4088         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
4089         (assign_assembler_name_if_needed): ... this.
4090         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
4091         (assign_assembler_name_if_needed): ... this.
4092         (free_lang_data_in_cgraph): Adjust callers.
4093         * cgraphunit.c (cgraph_node::analyze): Likewise.
4094         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
4095         Likewise.
4097 2017-01-23  Richard Biener  <rguenther@suse.de>
4099         PR tree-optimization/79088
4100         PR tree-optimization/79188
4101         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
4102         resetting loop bounds after last path deletion.  Reset loop
4103         bounds of the target loop, make code match the comments.
4104         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
4105         Make sure loops need no fixups.
4107 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4109         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
4110         exponent support with double type for first argument.
4111         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
4112         type returned by __builtin_vec_extract_sig,
4113         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
4114         functions from "vector int" to "vector unsigned int" or from
4115         "vector long long int" to "vector unsigned long long int".
4116         Changed type returned by __builtin_vec_extract_exp,
4117         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
4118         functions from "vector int" to "vector unsigned int" or from
4119         "vector long long int" to "vector unsigned long long int".
4120         Changed return type of __builtin_vec_test_data_class,
4121         __builtin_vec_test_data_class_sp, and
4122         __builtin_vec_test_data_class_dp from "vector int" to
4123         "vector bool int" or from "vector long long int" to "vector bool
4124         long long int" and changed second argument type from "unsigned
4125         int" to "int".  Added new overloaded function forms "vector float
4126         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
4127         "vector float __builtin_vec_insert_exp_sp (vector float, vector
4128         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
4129         double, vector unsigned long long int)" and "vector double
4130         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
4131         long int)".  Changed return type of
4132         __builtin_scalar_test_data_class and
4133         __builtin_scalar_test_data_class_sp and
4134         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
4135         int" and changed second argument from "unsigned int" to "int".
4136         Changed type returned by __builtin_scalar_test_neg,
4137         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
4138         from "int" to "bool int".  Added new overloaded function form
4139         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
4140         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
4141         exponent double-precision with floating point first argument.
4142         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
4143         documentation of scalar_test_data_class, scalar_test_neg,
4144         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
4145         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
4146         vec_test_data_class built-in functions to reflect refinements in
4147         their type signatures.
4149 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
4151         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
4152         size of buf.
4153         (aarch64_elf_asm_destructor): Likewise.
4155 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
4157         PR rtl-optimization/78634
4158         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
4159         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
4160         * ifcvt.c (noce_try_cmove): Add missing cost check.
4162         PR rtl-optimization/71724
4163         * combine.c (if_then_else_cond): Look for situations where it is
4164         beneficial to undo the work of one of the recursive calls.
4166 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
4168         PR tree-optimization/70754
4169         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
4170         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
4171         combined stmt before it if not NULL.
4172         (combine_chains): Process refs reversely and compute dominance point
4173         for root ref.
4175 2017-01-23  Martin Liska  <mliska@suse.cz>
4177         PR tree-optimization/79196
4178         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
4179         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
4180         instead of memcmp.
4181         (strlen_optimize_stmt): Call the renamed function.
4183 2017-01-23  Michael Matz  <matz@suse.de>
4185         PR tree-optimization/78384
4186         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
4188 2017-01-23  Richard Biener  <rguenther@suse.de>
4190         PR tree-optimization/79186
4191         * tree-vrp.c (register_new_assert_for): Make sure we've seen
4192         both incoming edges before moving an assert.
4194 2017-01-23  Martin Jambor  <mjambor@suse.cz>
4196         * ipa-prop.c (load_from_param_1): Removed.
4197         (load_from_unmodified_param): Bits from load_from_param_1 put back
4198         here.
4199         (load_from_param): Removed.
4200         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
4201         with stmt.  Reverted back to use of load_from_unmodified_param.
4203 2017-01-23  Martin Jambor  <mjambor@suse.cz>
4205         PR ipa/79108
4206         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
4207         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
4208         field a pointer to garbage collected vector, mark lattices and
4209         ipcp_orig_node with GTY((skip)).
4210         (ipa_get_param_count): Adjust to descriptors being a pointer.
4211         (ipa_get_param): Likewise.
4212         (ipa_get_type): Likewise.
4213         (ipa_get_param_move_cost): Likewise.
4214         (ipa_set_param_used): Likewise.
4215         (ipa_get_controlled_uses): Likewise.
4216         (ipa_set_controlled_uses): Likewise.
4217         (ipa_is_param_used): Likewise.
4218         (ipa_node_params_t): Move into garbage collector.  New methods insert
4219         and remove.
4220         (ipa_node_params_sum): Annotate wth GTY(()).
4221         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
4222         garbage collected.
4223         (ipa_load_from_parm_agg): Adjust declaration.
4224         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
4225         * ipa-profile.c (ipa_profile): Likewise.
4226         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
4227         (ipa_populate_param_decls): Make descriptors parameter garbage
4228         collected.
4229         (ipa_dump_param): Adjust to descriptors being a pointer.
4230         (ipa_alloc_node_params): Likewise.
4231         (ipa_initialize_node_params): Likewise.
4232         (load_from_param_1): Make descriptors parameter garbage collected.
4233         (load_from_unmodified_param): Likewise.
4234         (load_from_param): Likewise.
4235         (ipa_load_from_parm_agg): Likewise.
4236         (ipa_node_params::~ipa_node_params): Removed.
4237         (ipa_free_all_node_params): Remove call to delete operator.
4238         (ipa_node_params_t::insert): New.
4239         (ipa_node_params_t::remove): Likewise.
4240         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
4241         copy known_csts and known_contexts vectors.
4242         (ipa_read_node_info): Adjust to descriptors being a pointer.
4243         (ipcp_modif_dom_walker): Make m_descriptors field garbage
4244         collected.
4245         (ipcp_transform_function): Make descriptors variable garbage
4246         collected.
4248 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
4250         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
4251         * config/i386/avx512dqintrin.h: Ditto.
4252         * config/i386/avx512fintrin.h: Ditto.
4253         * gcc/config/i386/i386.c: Handle new builtins.
4254         * config/i386/i386-builtin.def: Add new builtins.
4255         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
4256         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
4258 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
4259             Martin Liska  <mliska@suse.cz>
4261         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
4262         * asan.c (asan_expand_poison_ifn): Support stores and use
4263         appropriate ASAN report function.
4264         * internal-fn.c (expand_ASAN_POISON_USE): New function.
4265         * internal-fn.def (ASAN_POISON_USE): Declare.
4266         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
4267         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
4268         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
4269         ASAN_POISON calls w/o LHS.
4270         * tree-ssa.c (execute_update_addresses_taken): Create clobber
4271         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
4272         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
4273         * gimplify.c (asan_poison_variables): Add attribute
4274         use_after_scope_memory to variables that really needs to live
4275         in memory.
4276         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
4277         having the attribute.
4279 2017-01-23  Martin Liska  <mliska@suse.cz>
4281         * asan.c (create_asan_shadow_var): New function.
4282         (asan_expand_poison_ifn): Likewise.
4283         * asan.h (asan_expand_poison_ifn): New declaration.
4284         * internal-fn.c (expand_ASAN_POISON): Likewise.
4285         * internal-fn.def (ASAN_POISON): New builtin.
4286         * sanopt.c (pass_sanopt::execute): Expand
4287         asan_expand_poison_ifn.
4288         * tree-inline.c (copy_decl_for_dup_finish): Make function
4289         external.
4290         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
4291         * tree-ssa.c (is_asan_mark_p): New function.
4292         (execute_update_addresses_taken): Rewrite local variables
4293         (identified just by use-after-scope as addressable) into SSA.
4295 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
4297         * doc/install.texi (Specific): opensource.apple.com uses https
4298         now. Remove trailing slash.
4300 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
4302         * README.Portability: Remove note on an Irix compatibility issue.
4304 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
4306         * gcov.c (INCLUDE_ALGORITHM): Define.
4307         (INCLUDE_VECTOR): Define.
4308         No longer include <vector> and <algorithm> directly.
4310 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
4312         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
4313         to https.
4314         * doc/invoke.texi (Code Gen Options): Ditto.
4316 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
4318         PR lto/78407
4319         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
4321 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
4323         rtl-optimization/79125
4324         * cprop.c (local_cprop_pass): Handle cases where we make an
4325         unconditional trap.
4327 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
4329         PR target/61729
4330         PR target/77850
4331         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
4332         read from, for big endian.
4334 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
4336         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
4337         register pauth builtins for LP64 only.
4339 2017-01-20  Marek Polacek  <polacek@redhat.com>
4341         PR c/79152
4342         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
4343         non-case labels.
4345 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
4347         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
4348         of safelen status.
4349         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
4350         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
4351         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
4353 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4355         PR target/71270
4356         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
4357         in big-endian mode when they are not a single duplicated value.
4359 2017-01-20  Richard Biener  <rguenther@suse.de>
4361         * BASE-VER: Bump to 7.0.1.
4363 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
4365         * omp-low.c (omplow_simd_context): New struct.  Use it...
4366         (lower_rec_simd_input_clauses): ...here and...
4367         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
4368         references to idx, lane, max_vf, is_simt.
4370 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
4372         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
4373         mcpu=nps400.
4375 2017-01-20  Martin Jambor  <mjambor@suse.cz>
4377         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
4378         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
4379         gt-hsa-common.h.
4380         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
4381         (GTFILES): Rename hsa.c to hsa-common.c.
4382         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
4383         * hsa-dump.c: Likewise.
4384         * hsa-gen.c: Likewise.
4385         * hsa-regalloc.c: Likewise.
4386         * ipa-hsa.c: Likewise.
4387         * omp-expand.c: Likewise.
4388         * omp-low.c: Likewise.
4389         * toplev.c: Likewise.
4391 2017-01-20  Marek Polacek  <polacek@redhat.com>
4393         PR c/64279
4394         * doc/invoke.texi: Document -Wduplicated-branches.
4395         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
4396         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
4397         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
4398         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
4399         return 0 only when not OEP_LEXICOGRAPHIC.
4400         (fold_build_cleanup_point_expr): Use the expression
4401         location when building CLEANUP_POINT_EXPR.
4402         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
4403         * tree.c (add_expr): Handle error_mark_node.
4405 2017-01-20  Martin Liska  <mliska@suse.cz>
4407         PR lto/69188
4408         * tree-profile.c (init_ic_make_global_vars): Do not call
4409         finalize_decl.
4410         (gimple_init_gcov_profiler): Likewise.
4412 2017-01-20  Martin Liska  <mliska@suse.cz>
4414         PR ipa/71190
4415         * cgraph.h (maybe_create_reference): Remove argument and
4416         update comment.
4417         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
4418         argument.
4419         * ipa-cp.c (create_specialized_node): Likewise.
4420         * symtab.c (symtab_node::maybe_create_reference): Handle
4421         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
4423 2017-01-20  Martin Liska  <mliska@suse.cz>
4425         * read-rtl-function.c (function_reader::create_function): Use
4426         build_decl instread of build_decl_stat.
4428 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
4430         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
4431         * config/i386/avx512dqintrin.h: Ditto.
4432         * config/i386/avx512fintrin.h: Ditto.
4433         * config/i386/i386-builtin-types.def: Add new types.
4434         * gcc/config/i386/i386.c: Handle new types.
4435         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
4436         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
4437         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
4438         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
4439         (__builtin_ia32_kshiftridi): New.
4440         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
4442 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
4444         PR target/78875
4445         PR target/79140
4446         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
4447         define to rs6000_init_stack_protect_guard.
4448         (rs6000_init_stack_protect_guard): New function.
4450 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
4451             Yunqiang Su  <yunqiang.su@imgtec.com>
4453         * config.gcc (supported_defaults): Add madd4.
4454         (with_madd4): Add validation.
4455         (all_defaults): Add madd4.
4456         * config/mips/mips.opt (mmadd4): New option.
4457         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
4458         mmadd4.
4459         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
4460         __mips_no_madd4.
4461         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
4462         (ISA_HAS_FUSED_MADD4): Likewise.
4463         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
4464         * gcc/doc/install.texi (--with-madd4): Document the new option.
4466 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
4468         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
4469         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
4470         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
4471         (aarch64_init_pauth_hint_builtins): New.
4472         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
4473         (aarch64_expand_builtin): Expand new builtins.
4475 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
4477         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
4478         * combine-stack-adj.c (no_unhandled_cfa): Handle
4479         REG_CFA_TOGGLE_RA_MANGLE.
4480         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
4481         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
4482         info for return address signing.
4483         (aarch64_expand_epilogue): Likewise.
4485 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
4487         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
4488         * config/aarch64/aarch64-protos.h
4489         (aarch64_return_address_signing_enabled): New declaration.
4490         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
4491         New function.
4492         (aarch64_expand_prologue): Sign return address before it's pushed onto
4493         stack.
4494         (aarch64_expand_epilogue): Authenticate return address fetched from
4495         stack.
4496         (aarch64_override_options): Sanity check for ILP32 and ISA level.
4497         (aarch64_attributes): New function attributes for "sign-return-address".
4498         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
4499         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
4500         ("*do_return"): Generate combined instructions according to key index.
4501         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
4502         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
4503         iterators.
4504         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
4505         * config/aarch64/aarch64.opt (msign-return-address=): New.
4506         * doc/extend.texi (AArch64 Function Attributes): Documents
4507         "sign-return-address=".
4508         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
4510 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
4512         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
4513         overall option summary.
4515 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
4517         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
4518         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
4519         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
4520         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
4522 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
4524         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
4525         -mpower9-minmax by default for -mcpu=power9.
4526         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
4527         128-bit floating point.
4529 2017-01-20  Alan Modra  <amodra@gmail.com>
4531         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
4532         optimizing for size.
4534 2017-01-20  Alan Modra  <amodra@gmail.com>
4536         PR target/79144
4537         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
4538         for strcmp and strncmp from corresponding builtin decl.
4540 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
4542         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
4543         instead of i386/rtems-64.h.
4544         * config/i386/rtems-64.h: Remove.
4546 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
4548         PR target/78478
4549         Revert:
4550         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
4552         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
4554 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
4556         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
4557         Change int to HOST_WIDE_INT.
4558         * config/aarch64/aarch64-protos.h
4559         (aarch64_simd_gen_const_vector_dup): Likewise.
4560         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
4562 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
4564         * langhooks-def.h (lhd_type_for_size): New decl.
4565         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
4566         * langhooks.c (lhd_type_for_size): New function, taken from
4567         lto_type_for_size.
4569 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
4571         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
4572         define_bypass for CR latency.
4573         (power9-cracked-alu): Update bypass latency and remove power9-branch.
4574         (power9-alu2): Add define_bypass for CR latency.
4575         (power9-cmp): New.
4576         (power9-mul): Update insn latency.
4577         (power9-mul-compare): Update insn latency, bypass latency and remove
4578         power9-branch.
4580 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4582         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
4583         Delete.
4584         * config/aarch64/aarch64.md
4585         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
4586         aarch64_nopcrelative_literal_loads.
4587         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4589 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
4591         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
4592         TARGET_LOONGSON_3A.
4593         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
4595 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
4597         PR target/78176
4598         * config.gcc (supported_defaults): Add lxc1-sxc1.
4599         (with_lxc1_sxc1): Add validation.
4600         (all_defaults): Add lxc1-sxc1.
4601         * config/mips/mips.opt (mlxc1-sxc1): New option.
4602         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
4603         mlxc1-sxc1.
4604         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
4605         __mips_no_lxc1_sxc1.
4606         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
4607         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
4608         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
4610 2017-01-19  Richard Biener  <rguenther@suse.de>
4612         PR tree-optimization/72488
4613         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
4614         sure to restore SSA info.
4615         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
4617 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
4619         PR rtl-optimization/79121
4620         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
4621         of the inner type when shifting an extended value.
4623 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
4625         PR lto/78407
4626         * symtab.c (symtab_node::equal_address_to): Fix comparing of
4627         interposable aliases.
4629 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
4631         PR target/78516
4632         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
4633         Use the evmergelohi instruction.
4634         (mov_si<mode>_e500_subreg4_2_le): Likewise.
4635         (mov_sitf_e500_subreg8_2_be): Likewise.
4636         (mov_sitf_e500_subreg12_2_le): Likewise.
4637         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
4638         (mov_si<mode>_e500_subreg4_2_be): Likewise.
4639         (mov_sitf_e500_subreg8_2_le): Likewise.
4640         (mov_sitf_e500_subreg12_2_be): Likewise.
4642 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4644         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
4645         attribute from vecsimple to vecperm.
4646         (altivec_vbpermq2): Likewise.
4648 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4650         PR target/79040
4651         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
4653 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4654         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
4655         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
4656         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
4657         case where N arg is SIZE_MAX.
4658         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
4659         (cmpstrsi): Add pattern.
4661 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4663         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4664         __builtin_vec_revb builtins.
4665         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
4666         built-in functions to support generation of the ISA 3.0 XXBR<x>
4667         vector byte reverse instructions.
4668         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
4669         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
4670         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
4671         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
4672         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
4673         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
4674         (P9V_BUILTIN_VEC_REVB): Likewise.
4675         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
4676         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
4677         (p9_xxbrq_v16qi): Likewise.
4678         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
4679         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
4680         (p9_xxbrh_v8hi): Likewise.
4681         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
4682         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
4683         vec_revb built-in functions.
4685 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
4687         PR rtl-optimization/78952
4688         * config/i386/i386.md (any_extract): New code iterator.
4689         (*insvqi_2): Use any_extract for source operand.
4690         (*insvqi_3): Use any_shiftrt for source operand.
4692 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
4694         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
4695         New function.
4696         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
4698 2017-01-18  Matthias Klose  <doko@ubuntu.com>
4700         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
4702 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4704         * config/rs6000/altivec.h (vec_bperm): Change #define.
4705         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
4706         (altivec_vbpermq2): New define_insn.
4707         (altivec_vbpermd): Likewise.
4708         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
4709         function interface.
4710         (VBPERMD): Likewise.
4711         (VBPERM): New polymorphic function interface.
4712         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
4713         Add entries for P9V_BUILTIN_VEC_VBPERM.
4714         * doc/extend.texi: Add interfaces for vec_bperm.
4716 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4718         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
4719         first letter of error messages.
4720         (s390_resolve_overloaded_builtin): Likewise.
4721         * config/s390/s390.c (s390_expand_builtin): Likewise.
4722         (s390_invalid_arg_for_unprototyped_fn): Likewise.
4723         (s390_valid_target_attribute_inner_p): Likewise.
4724         * config/s390/s390.md ("tabort"): Likewise.
4726 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
4728         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
4729         (ISA_AVOID_DIV_HILO): New macro.
4730         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
4731         (ISA_HAS_DDIV): Likewise.
4733 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
4735         * doc/invoke.texi (fabi-version): Correct number of occurrences.
4737 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
4739         * doc/invoke.texi (fabi-version): Spelling fix.
4741 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
4743         PR c++/70182
4744         * doc/invoke.texi (fabi-version): Mention mangling fix for
4745         operator names.
4747 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
4749         PR c++/77489
4750         * doc/invoke.texi (fabi-version): Document discriminator mangling.
4752 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
4754         PR target/78875
4755         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
4756         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
4757         the new options.
4758         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
4759         flexible settings.
4760         (stack_protect_test): Ditto.
4761         * config/rs6000/rs6000.opt (mstack-protector-guard=,
4762         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
4763         options.
4764         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
4765         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
4766         -mstack-protector-guard-offset=.
4767         (RS/6000 and PowerPC Options): Ditto.
4769 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
4771         * config/i386/i386.h (MASK_CLASS_P): New define.
4772         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
4773         there are no registers from different register sets also when
4774         mask registers are used.  Update function comment.
4775         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
4776         to (*k/*r) and (*k/*km) alternatives.
4778 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
4780         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
4781         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
4782         (EH_RETURN_HANDLER_RTX): New define.
4783         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
4784         Force frame pointer in EH return functions.
4785         (aarch64_expand_epilogue): Add barrier for eh_return.
4786         (aarch64_final_eh_return_addr): Remove.
4787         (aarch64_eh_return_handler_rtx): New function.
4788         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
4789         Remove.
4790         (aarch64_eh_return_handler_rtx): New prototype.
4792 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4794         * config/rs6000/altivec.h (vec_rlmi): New #define.
4795         (vec_vrlnm): Likewise.
4796         (vec_rlnm): Likewise.
4797         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
4798         (UNSPEC_VRLNM): Likewise.
4799         (VIlong): New mode iterator.
4800         (altivec_vrl<VI_char>mi): New define_insn.
4801         (altivec_vrl<VI_char>nm): Likewise.
4802         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
4803         function entry.
4804         (VRLDNM): Likewise.
4805         (RLNM): New polymorphic function entry.
4806         (VRLWMI): New monomorphic function entry.
4807         (VRLDMI): Likewise.
4808         (RLMI): New polymorphic function entry.
4809         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
4810         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
4811         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
4812         vec_vrlnm.
4814 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
4816         PR debug/78839
4817         * dwarf2out.c (field_byte_offset): Restore the
4818         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
4819         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
4820         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
4821         of build2 + fold.
4823 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
4825         PR ada/67205
4826         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
4828 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
4830         PR debug/71669
4831         * dwarf2out.c (add_data_member_location_attribute): For constant
4832         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
4833         instead of DW_AT_data_member_location, DW_AT_bit_offset and
4834         DW_AT_byte_size attributes.
4836 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
4838         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
4839         after forcing to constant memory when the code model is medium.
4841 2017-01-17  Julia Koval  <julia.koval@intel.com>
4843         PR target/76731
4844         * config/i386/avx512fintrin.h
4845         (_mm512_i32gather_ps): Change __addr type to void const*.
4846         (_mm512_mask_i32gather_ps): Ditto.
4847         (_mm512_i32gather_pd): Ditto.
4848         (_mm512_mask_i32gather_pd): Ditto.
4849         (_mm512_i64gather_ps): Ditto.
4850         (_mm512_mask_i64gather_ps): Ditto.
4851         (_mm512_i64gather_pd): Ditto.
4852         (_mm512_mask_i64gather_pd): Ditto.
4853         (_mm512_i32gather_epi32): Ditto.
4854         (_mm512_mask_i32gather_epi32): Ditto.
4855         (_mm512_i32gather_epi64): Ditto.
4856         (_mm512_mask_i32gather_epi64): Ditto.
4857         (_mm512_i64gather_epi32): Ditto.
4858         (_mm512_mask_i64gather_epi32): Ditto.
4859         (_mm512_i64gather_epi64): Ditto.
4860         (_mm512_mask_i64gather_epi64): Ditto.
4861         (_mm512_i32scatter_ps): Change __addr type to void*.
4862         (_mm512_mask_i32scatter_ps): Ditto.
4863         (_mm512_i32scatter_pd): Ditto.
4864         (_mm512_mask_i32scatter_pd): Ditto.
4865         (_mm512_i64scatter_ps): Ditto.
4866         (_mm512_mask_i64scatter_ps): Ditto.
4867         (_mm512_i64scatter_pd): Ditto.
4868         (_mm512_mask_i64scatter_pd): Ditto.
4869         (_mm512_i32scatter_epi32): Ditto.
4870         (_mm512_mask_i32scatter_epi32): Ditto.
4871         (_mm512_i32scatter_epi64): Ditto.
4872         (_mm512_mask_i32scatter_epi64): Ditto.
4873         (_mm512_i64scatter_epi32): Ditto.
4874         (_mm512_mask_i64scatter_epi32): Ditto.
4875         (_mm512_i64scatter_epi64): Ditto.
4876         (_mm512_mask_i64scatter_epi64): Ditto.
4877         * config/i386/avx512pfintrin.h
4878         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
4879         (_mm512_mask_prefetch_i32gather_ps): Ditto.
4880         (_mm512_mask_prefetch_i64gather_pd): Ditto.
4881         (_mm512_mask_prefetch_i64gather_ps): Ditto.
4882         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
4883         (_mm512_prefetch_i32scatter_ps): Ditto.
4884         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
4885         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
4886         (_mm512_prefetch_i64scatter_pd): Ditto.
4887         (_mm512_prefetch_i64scatter_ps): Ditto.
4888         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
4889         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
4890         * config/i386/avx512vlintrin.h
4891         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
4892         (_mm_mmask_i32gather_ps): Ditto.
4893         (_mm256_mmask_i32gather_pd): Ditto.
4894         (_mm_mmask_i32gather_pd): Ditto.
4895         (_mm256_mmask_i64gather_ps): Ditto.
4896         (_mm_mmask_i64gather_ps): Ditto.
4897         (_mm256_mmask_i64gather_pd): Ditto.
4898         (_mm_mmask_i64gather_pd): Ditto.
4899         (_mm256_mmask_i32gather_epi32): Ditto.
4900         (_mm_mmask_i32gather_epi32): Ditto.
4901         (_mm256_mmask_i32gather_epi64): Ditto.
4902         (_mm_mmask_i32gather_epi64): Ditto.
4903         (_mm256_mmask_i64gather_epi32): Ditto.
4904         (_mm_mmask_i64gather_epi32): Ditto.
4905         (_mm256_mmask_i64gather_epi64): Ditto.
4906         (_mm_mmask_i64gather_epi64): Ditto.
4907         (_mm256_i32scatter_ps): Change __addr type to void*.
4908         (_mm256_mask_i32scatter_ps): Ditto.
4909         (_mm_i32scatter_ps): Ditto.
4910         (_mm_mask_i32scatter_ps): Ditto.
4911         (_mm256_i32scatter_pd): Ditto.
4912         (_mm256_mask_i32scatter_pd): Ditto.
4913         (_mm_i32scatter_pd): Ditto.
4914         (_mm_mask_i32scatter_pd): Ditto.
4915         (_mm256_i64scatter_ps): Ditto.
4916         (_mm256_mask_i64scatter_ps): Ditto.
4917         (_mm_i64scatter_ps): Ditto.
4918         (_mm_mask_i64scatter_ps): Ditto.
4919         (_mm256_i64scatter_pd): Ditto.
4920         (_mm256_mask_i64scatter_pd): Ditto.
4921         (_mm_i64scatter_pd): Ditto.
4922         (_mm_mask_i64scatter_pd): Ditto.
4923         (_mm256_i32scatter_epi32): Ditto.
4924         (_mm256_mask_i32scatter_epi32): Ditto.
4925         (_mm_i32scatter_epi32): Ditto.
4926         (_mm_mask_i32scatter_epi32): Ditto.
4927         (_mm256_i32scatter_epi64): Ditto.
4928         (_mm256_mask_i32scatter_epi64): Ditto.
4929         (_mm_i32scatter_epi64): Ditto.
4930         (_mm_mask_i32scatter_epi64): Ditto.
4931         (_mm256_i64scatter_epi32): Ditto.
4932         (_mm256_mask_i64scatter_epi32): Ditto.
4933         (_mm_i64scatter_epi32): Ditto.
4934         (_mm_mask_i64scatter_epi32): Ditto.
4935         (_mm256_i64scatter_epi64): Ditto.
4936         (_mm256_mask_i64scatter_epi64): Ditto.
4937         (_mm_i64scatter_epi64): Ditto.
4938         (_mm_mask_i64scatter_epi64): Ditto.
4939         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
4940         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
4941         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
4942         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
4943         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
4944         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
4945         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
4946         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
4947         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
4948         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
4949         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
4950         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
4951         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
4952         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
4953         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
4954         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
4955         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
4956         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
4957         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
4958         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
4959         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
4960         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
4961         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
4962         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
4963         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
4964         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
4965         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
4966         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
4967         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
4968         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
4969         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
4970         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
4971         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
4972         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
4973         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
4974         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
4975         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
4976         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
4977         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
4978         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
4979         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
4980         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
4981         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
4982         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
4983         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
4984         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
4985         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
4986         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
4987         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
4988         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
4989         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
4990         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
4991         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
4992         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
4993         definitions accordingly.
4995 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
4996             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
4998         PR target/79079
4999         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
5000         gen_lowpart.
5002 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
5004         PR target/79058
5005         * ira-conflicts.c (ira_build_conflicts): Update total conflict
5006         hard regs for inner regno.
5008 2017-01-17  Martin Liska  <mliska@suse.cz>
5010         PR ipa/71207
5011         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
5012         assumption and add comment.
5014 2017-01-17  Nathan Sidwell  <nathan@acm.org>
5016         * ipa-visibility.c (localize_node): New function, broken out of ...
5017         (function_and_variable_visibility): ... here. Call it.
5019 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
5021         PR middle-end/77445
5022         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
5023         correctly set frequency of oudgoing edge.
5024         (duplicate_thread_path): Fix profile updating.
5026 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
5028         PR other/79046
5029         * configure.ac: Add GCC_BASE_VER.
5030         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
5031         version from BASE-VER file.
5032         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
5033         (gcc.o): Depend on $(BASEVER).
5034         * common.opt (dumpfullversion): New option.
5035         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
5036         * doc/invoke.texi: Document -dumpfullversion.
5037         * doc/install.texi: Document --with-gcc-major-version-only.
5038         * configure: Regenerated.
5040 2017-01-17  Richard Biener  <rguenther@suse.de>
5042         PR tree-optimization/71433
5043         * tree-vrp.c (register_new_assert_for): Merge same asserts
5044         on all incoming edges.
5045         (process_assert_insertions_for): Handle insertions at the
5046         beginning of BBs.
5048 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
5050         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
5051         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
5053 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5055         PR target/78633
5056         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
5057         RTL sharing.
5059 2017-01-17  Alan Modra  <amodra@gmail.com>
5061         PR target/79066
5062         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
5063         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
5064         symbolic stack limit when pic.
5066 2017-01-16  Martin Sebor  <msebor@redhat.com>
5068         PR tree-optimization/78608
5069         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
5071 2017-01-16  Jeff Law  <law@redhat.com>
5073         Revert:
5074         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
5075         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
5076         for several include directories that may be relative to sysroot.
5077         * config/i386/x-mingw32 (gplus_includedir): Define.
5078         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
5079         (native_system_includedir): Likewise.
5080         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
5081         override if TARGET_SYSTEM_ROOT is defined.
5082         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
5084         PR tree-optimization/79090
5085         PR tree-optimization/33562
5086         PR tree-optimization/61912
5087         PR tree-optimization/77485
5088         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
5089         and computed trims into the dump file.
5091 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
5093         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
5095 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
5097         PR c/79089
5098         * gimplify.c (gimplify_init_constructor): If want_value and
5099         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
5100         fix.
5102         PR target/79080
5103         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
5104         sequence.  Formatting fixes.
5105         (doloop_optimize): Formatting fixes.
5107         PR driver/49726
5108         * gcc.c (debug_level_greater_than_spec_func): New function.
5109         (static_spec_functions): Add debug-level-gt spec function.
5110         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
5111         !g0.
5112         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
5113         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
5114         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
5115         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
5116         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
5117         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
5119 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
5121         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
5122         QImode fixups to general and mask registers only.
5124 2017-01-16  Carl Love  <cel@us.ibm.com>
5126         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
5127         for built-in functions
5128         vector signed char vec_nabs (vector signed char)
5129         vector signed short vec_nabs (vector signed short)
5130         vector signed int vec_nabs (vector signed int)
5131         vector signed long long vec_nabs (vector signed long long)
5132         vector float vec_nabs (vector float)
5133         vector double vec_nabs (vector double)
5134         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
5135         and NABS overload.
5136         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
5137         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
5138         * doc/extend.texi: Update the documentation file for the new built-in
5139         functions.
5141 2017-01-16  Martin Sebor  <msebor@redhat.com>
5143         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
5144         message.
5146 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5148         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
5149         UNSPEC_VSX__XXSPLTD to require special splat handling.
5151 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
5153         PR bootstrap/78616
5154         * system.h: Poison strndup.
5156 2017-01-16  Alan Modra  <amodra@gmail.com>
5158         PR target/79098
5159         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
5160         use a switch.
5162 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
5164         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
5166 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
5168         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
5169         call recog here.  Assert that INSN_CODE (insn) is non-negative.
5171 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
5173         PR target/72749
5174         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
5175         fallthrough.
5176         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
5177         in the currently scheduled RTL fragment.
5179 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
5181         PR rtl-optimization/78751
5182         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
5183         give up.
5185 2017-01-14  Jeff Law  <law@redhat.com>
5187         PR tree-optimization/79090
5188         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
5189         variable length stores.
5190         (compute_trims): Delete dead assignment to *trim_tail.
5191         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
5192         zero length.
5194 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
5196         PR rtl-optimization/78626
5197         PR rtl-optimization/78727
5198         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
5199         of a block, and split such blocks after everything else is finished.
5201 2017-01-14  Alan Modra  <amodra@gmail.com>
5203         PR target/72749
5204         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
5205         target legitimate_combined_insn.
5206         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
5207         (rs6000_legitimate_combined_insn): New function.
5208         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
5209         all uses.
5210         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
5211         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
5212         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
5214 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
5216         * doc/frontends.texi (G++ and GCC): Remove references to Java.
5218 2017-01-13  Jeff Law  <law@redhat.com>
5220         PR tree-optimization/33562
5221         PR tree-optimization/61912
5222         PR tree-optimization/77485
5223         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
5224         a statement.
5225         (delete_dead_assignment): Likewise.
5226         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
5227         statement to delete_dead_call and delete_dead_assignment.
5229 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
5231         PR c/78304
5232         * substring-locations.c (format_warning_va): Strengthen case 1 so
5233         that both endpoints of the substring must be within the format
5234         range for just the substring to be printed.
5236 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
5238         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
5239         * config/i386/i386.c (ix86_target_string): Add missing options
5240         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
5241         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
5242         flags_other and ix86_target_other to flags2_other.  Display unknown
5243         isa2 options.
5244         (ix86_valid_target_attribute_inner_p): Add missing options and
5245         reorder options by implied ISAs, as in ix86_target_string.
5247 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
5249         * hash-table.h (hash_table::too_empty_p): New function.
5250         (hash_table::expand): Use it.
5251         (hash_table::traverse): Likewise.
5252         (hash_table::empty_slot): Use sizeof (value_type) instead of
5253         sizeof (PTR) to convert bytes to elements.  Shrink the table
5254         if the current size is excessive for the current number of
5255         elements.
5257 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
5259         * ira-costs.c (record_reg_classes): Break from the inner loop
5260         early once alt_fail is known to be true.  Update outer loop
5261         handling accordingly.
5263 2017-01-13  Jeff Law  <law@redhat.com>
5265         * tree-ssa-dse.c (decrement_count): New function.
5266         (increment_start_addr, maybe_trim_memstar_call): Likewise.
5267         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
5268         when we know the partially dead statement is a mem* function.
5270         PR tree-optimization/61912
5271         PR tree-optimization/77485
5272         * tree-ssa-dse.c: Include expr.h.
5273         (maybe_trim_constructor_store): New function.
5274         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
5276         PR tree-optimization/33562
5277         PR tree-optimization/61912
5278         PR tree-optimization/77485
5279         * doc/invoke.texi: Document new dse-max-object-size param.
5280         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
5281         * tree-ssa-dse.c: Include params.h.
5282         (dse_store_status): New enum.
5283         (initialize_ao_ref_for_dse): New, partially extracted from
5284         dse_optimize_stmt.
5285         (valid_ao_ref_for_dse, normalize_ref): New.
5286         (setup_live_bytes_from_ref, compute_trims): Likewise.
5287         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
5288         (maybe_trim_partially_dead_store): Likewise.
5289         (maybe_trim_complex_store): Likewise.
5290         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
5291         Track what bytes live from the original store.  Return tri-state
5292         for dead, partially dead or live.
5293         (dse_dom_walker): Add constructor, destructor and new private members.
5294         (delete_dead_call, delete_dead_assignment): New extracted from
5295         dse_optimize_stmt.
5296         (dse_optimize_stmt): Make a member of dse_dom_walker.
5297         Use initialize_ao_ref_for_dse.
5299         PR tree-optimization/33562
5300         PR tree-optimization/61912
5301         PR tree-optimization/77485
5302         * sbitmap.h (bitmap_count_bits): Prototype.
5303         (bitmap_clear_range, bitmap_set_range): Likewise.
5304         * sbitmap.c (bitmap_clear_range): New function.
5305         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
5307 2017-01-13  Martin Liska  <mliska@suse.cz>
5309         PR ipa/79043
5310         * function.c (set_cfun): Add new argument force.
5311         * function.h (set_cfun): Likewise.
5312         * ipa-inline-transform.c (inline_call): Use the function when
5313         strict alising from is dropped for function we inline to.
5315 2017-01-13  Richard Biener  <rguenther@suse.de>
5317         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
5318         for dumping GIMPLE INTEGER_CSTs.
5320 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5322         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
5323         to 201112L since C++17.
5325 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
5327         PR sanitizer/78887
5328         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
5329         if -fsanitize=kernel-address is present.
5331 2017-01-13  Richard Biener  <rguenther@suse.de>
5333         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
5334         as _Literal ( type ) number in case usual suffixes do not
5335         preserve all information.
5337 2017-01-13  Richard Biener  <rguenther@suse.de>
5339         PR tree-optimization/77283
5340         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
5341         and ssa-iterators.h.
5342         (is_feasible_trace): Implement a cost model based on joiner
5343         PHI node uses.
5345 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
5347         PR target/79004
5348         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
5349         char or short to __float128/_Float128 directly.
5351 2017-01-12  Martin Sebor  <msebor@redhat.com>
5353         to -Wformat-overflow.
5354         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
5355         (min_bytes_remaining): Same.
5356         (get_string_length): Same.
5357         (format_string): Same.
5358         (format_directive): Same.
5359         (add_bytes): Same.
5360         (pass_sprintf_length::handle_gimple_call): Same.
5362 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
5364         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
5365         info.nowrite calls with no lhs that can't throw.  Return bool
5366         whether gsi_remove has been called or not.
5367         (pass_sprintf_length::handle_gimple_call): Return bool whether
5368         try_substitute_return_value called gsi_remove.  Formatting fix.
5369         (pass_sprintf_length::execute): Don't use gsi_remove if
5370         handle_gimple_call returned true.
5372         PR bootstrap/79069
5373         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
5374         be removed due to side-effects, don't remove following barrier nor
5375         turn the successor edge into fallthru edge.
5377 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5379         PR target/79044
5380         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
5381         element-reversing loads and stores as not swappable.
5383 2017-01-12  Nathan Sidwell  <nathan@acm.org>
5384             Nicolai Stange  <nicstange@gmail.com>
5386         * combine.c (try_combine): Don't ignore result of overlap checking
5387         loop.  Combine overlap & asm check into single loop.
5389 2017-01-12  Richard Biener  <rguenther@suse.de>
5391         * tree-pretty-print.c (dump_generic_node): Provide -gimple
5392         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
5394 2017-01-12  Richard Biener  <rguenther@suse.de>
5396         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
5397         and TS_TARGET_OPTION directly derive from TS_BASE.
5398         * tree-core.h (tree_optimization_option): Derive from tree_base.
5399         (tree_target_option): Likewise.
5401 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
5403         * config/i386/i386.c (memory_address_length): Increase len
5404         only when rip_relative_addr_p returns false.
5406 2017-01-11  Julia Koval  <julia.koval@intel.com>
5408         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
5409         (OPTION_MASK_ISA_SGX_SET): New.
5410         (ix86_handle_option): Handle OPT_msgx.
5411         * config.gcc: Added sgxintrin.h.
5412         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
5413         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
5414         * config/i386/i386.c (ix86_target_string): Add -msgx.
5415         (PTA_SGX): New.
5416         (ix86_option_override_internal): Handle new options.
5417         (ix86_valid_target_attribute_inner_p): Add sgx.
5418         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
5419         * config/i386/i386.opt: Add msgx.
5420         * config/i386/sgxintrin.h: New file.
5421         * config/i386/x86intrin.h: Add sgxintrin.h.
5423 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
5425         PR c++/71537
5426         * fold-const.c (maybe_nonzero_address): Return 1 for function
5427         local objects.
5428         (tree_single_nonzero_warnv_p): Don't handle function local objects
5429         here.
5431         PR c++/72813
5432         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
5433         of c-header.
5435 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
5437         PR driver/78877
5438         * opts.c: Include "spellcheck.h"
5439         (struct string_fragment): New struct.
5440         (struct edit_distance_traits<const string_fragment &>): New
5441         struct.
5442         (get_closest_sanitizer_option): New function.
5443         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
5445 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
5447         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
5448         by 12.
5449         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
5450         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
5451         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
5452         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
5453         for initial die_offset if dwarf_split_debug_info.
5454         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
5455         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
5456         fields.
5457         (output_skeleton_debug_sections): Formatting fix.  Use
5458         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
5459         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
5461 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
5463         * config/arm/cortex-a53.md: Add bypasses for
5464         cortex_a53_r2f_cvt.
5465         (cortex_a53_r2f): Only use for transfers.
5466         (cortex_a53_f2r): Likewise.
5467         (cortex_a53_r2f_cvt): Add reservation for conversions.
5468         (cortex_a53_f2r_cvt): Likewise.
5470 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
5472         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
5473         to all inlined functions, change static to extern.
5475 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
5477         PR target/78253
5478         * config/arm/arm.c (legitimize_pic_address): Handle reference to
5479         weak symbol.
5480         (arm_assemble_integer): Likewise.
5482 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
5484         * config.gcc: Use new awk script to check CPU, FPU and architecture
5485         parameters for --with-... options.
5486         * config/arm/parsecpu.awk: New file
5487         * config/arm/arm-cpus.in: New file.
5488         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
5489         files.
5490         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
5491         files.
5492         * config/arm/t-arm: Update dependency rules.
5493         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
5494         of processing .def files.
5495         * config/arm/genopt.sh: Deleted.
5496         * config/arm/gentune.sh: Deleted.
5497         * config/arm/arm-cores.def: Deleted.
5498         * config/arm/arm-arches.def: Deleted.
5499         * config/arm/arm-fpus.def: Deleted.
5500         * config/arm/arm-tune.md: Regenerated.
5501         * config/arm/arm-tables.opt: Regenerated.
5502         * config/arm/arm-cpu.h: New generated file.
5503         * config/arm/arm-cpu-data.h: New generated file.
5504         * config/arm/arm-cpu-cdata.h: New generated file.
5506 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
5508         PR lto/79042
5509         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
5510         bit.
5511         (input_varpool_node): Unpack dynamically_initialized bit.
5513 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
5515         PR rtl-optimization/79032
5516         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
5517         the alignment of the adjusted memory reference against that of MODE,
5518         instead of the alignment of the original memory reference.
5520 2017-01-11  Martin Jambor  <mjambor@suse.cz>
5522         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
5523         test.
5524         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
5525         decorated functions.
5527 2017-01-11  Richard Biener  <rguenther@suse.de>
5529         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
5530         set range/nonnull info for PHI results.  Do not set it on
5531         stmts marked for removal.
5533 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
5535         * expr.c (store_field): In the bitfield case, fetch the return value
5536         from the registers before applying a single big-endian adjustment.
5537         Always do a final load for a BLKmode value not larger than a word.
5539 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
5541         PR c++/77949
5542         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
5543         that we correctly handle column numbers greater than
5544         LINE_MAP_MAX_COLUMN_NUMBER.
5546 2017-01-10  Martin Sebor  <msebor@redhat.com>
5548         PR middle-end/78245
5549         * gimple-ssa-sprintf.c (get_destination_size): Call
5550         {init,fini}object_sizes.
5551         * tree-object-size.c (addr_object_size): Adjust.
5552         (pass_through_call): Adjust.
5553         (pass_object_sizes::execute): Adjust.
5554         * tree-object-size.h (fini_object_sizes): Declare.
5556 2017-01-10  Martin Sebor  <msebor@redhat.com>
5558         PR tree-optimization/78775
5559         * builtins.c (get_size_range): Move...
5560         * calls.c: ...to here.
5561         (alloc_max_size): Accept zero argument.
5562         (operand_signed_p): Remove.
5563         (maybe_warn_alloc_args_overflow): Call get_size_range.
5564         * calls.h (get_size_range): Declare.
5566 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
5568         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
5569         from TI's devices.csv file as of September 2016.
5570         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
5572 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
5574         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
5575         * doc/invoke.texi: Likewise.
5576         * doc/md.texi: Likewise.
5577         * doc/objc.texi: Likewise.
5579 2017-01-10  Joshua Conner  <joshconner@google.com>
5581         * config/arm/fuchsia-elf.h: New file.
5582         * config/fuchsia.h: New file.
5583         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
5584         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
5585         targets.
5586         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
5588 2016-01-10  Richard Biener  <rguenther@suse.de>
5590         PR tree-optimization/79034
5591         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
5592         Propagate out degenerate PHIs in the joiner.
5594 2017-01-10  Martin Liska  <mliska@suse.cz>
5596         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
5597         (sort_congruence_classes_by_decl_uid): Likewise.
5598         (sort_congruence_class_groups_by_decl_uid): Likewise.
5599         (sem_item_optimizer::merge_classes): Sort class, groups in these
5600         classes and members in the groups by DECL_UID of declarations.
5601         This would make merge operations stable.
5603 2017-01-10  Martin Liska  <mliska@suse.cz>
5605         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
5606         usage of m_classes_vec.
5607         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
5608         (sem_item_optimizer::get_group_by_hash): Likewise.
5609         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
5610         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
5611         (sem_item_optimizer::verify_classes): Likewise.
5612         (sem_item_optimizer::process_cong_reduction): Likewise.
5613         (sem_item_optimizer::dump_cong_classes): Likewise.
5614         (sem_item_optimizer::merge_classes): Likewise.
5615         * ipa-icf.h (congruence_class_hash): Rename from
5616         congruence_class_group_hash.  Remove declaration of m_classes_vec.
5618 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
5620         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
5621         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
5622         * config.gcc: Add avx512vpopcntdqintrin.h.
5623         * config/i386/avx512vpopcntdqintrin.h: New.
5624         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
5625         * config/i386/i386-builtin-types.def: Add new types.
5626         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
5627         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
5628         __builtin_ia32_vpopcountq_v8di_mask): New.
5629         * config/i386/i386-c.c (ix86_target_macros_internal): Define
5630         __AVX512VPOPCNTDQ__.
5631         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
5632         (PTA_AVX512VPOPCNTDQ): Define.
5633         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
5634         TARGET_AVX512VPOPCNTDQ_P): Define.
5635         * config/i386/i386.opt: Add mavx512vpopcntdq.
5636         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
5637         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
5639 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
5641         PR middle-end/77484
5642         * predict.def (PRED_CALL): Set to 67.
5644 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
5646         * expr.c (store_field): In the bitfield case, if the value comes from
5647         a function call and is of an aggregate type returned in registers, do
5648         not modify the field mode; extract the value in all cases if the mode
5649         is BLKmode and the size is not larger than a word.
5651 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
5653         PR target/71017
5654         * config/i386/cpuid.h: Fix undefined behavior.
5656 2017-01-04  Jeff Law  <law@redhat.com>
5658         PR tree-optimization/79007
5659         PR tree-optimization/67955
5660         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
5661         conservative for pt.null when flag_non_call_exceptions is on.
5663 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
5665         PR translation/79019
5666         PR translation/79020
5667         * params.def (PARAM_INLINE_MIN_SPEEDUP,
5668         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
5669         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
5670         in descriptions.
5671         * config/avr/avr.opt (maccumulate-args): Likewise.
5672         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
5673         * common.opt (freport-bug): Likewise.
5674         * cif-code.def (CIF_FINAL_ERROR): Likewise.
5675         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
5676         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
5677         translatable string.
5678         * config/i386/i386.c (function_value_32): Likewise.
5679         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
5680         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
5681         Likewise.
5682         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
5683         * common/config/msp430/msp430-common.c (msp430_handle_option):
5684         Likewise.
5685         * symtab.c (symtab_node::verify_base): Likewise.
5686         * opts.c (set_debug_level): Likewise.
5687         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
5688         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5689         missing whitespace to translatable strings.
5690         * config/avr/avr.md (bswapsi2): Fix typo in comment.
5691         * config/sh/superh.h: Likewise.
5692         * config/i386/xopintrin.h: Likewise.
5693         * config/i386/znver1.md: Likewise.
5694         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
5695         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
5696         * double-int.h (struct double_int): Likewise.
5697         * double-int.c (div_and_round_double): Likewise.
5698         * wide-int.cc: Likewise.
5699         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
5700         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
5701         * cfgcleanup.c (crossjumps_occured): Renamed to ...
5702         (crossjumps_occurred): ... this.
5703         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
5704         Adjust all uses.
5706         PR tree-optimization/78899
5707         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
5708         returning bool return struct loop *, NULL for failure and the new
5709         loop on success.
5710         (versionable_outer_loop_p): Don't version outer loop if it has
5711         dont_vectorized bit set.
5712         (tree_if_conversion): When versioning outer loop, ensure
5713         tree_if_conversion is performed also on the inner loop of the
5714         non-vectorizable outer loop copy.
5715         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
5716         LOOP_VECTORIZED in inner loop of the scalar outer loop and
5717         prevent vectorization of it.
5718         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
5719         the outer loop vectorization of the non-scalar version is attempted
5720         before vectorization of the inner loop in scalar version.  If
5721         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
5722         vectorization of its inner loop.
5723         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
5724         has 2 inner loops, rename also on edges from bb whose single pred
5725         is outer_loop->header.  Fix typo in function comment.
5727 2017-01-09  Martin Sebor  <msebor@redhat.com>
5729         PR bootstrap/79033
5730         * asan.c (asan_emit_stack_protection): Increase local buffer size
5731         to avoid snprintf truncation warning.
5733 2017-01-09  Andrew Pinski  <apinski@cavium.com>
5735         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
5736         to reference thunderx2t99 for the tuning structure
5737         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
5738         Rename to ...
5739         (thunderx2t99_extra_costs): This.
5740         * config/aarch64/aarch64-tune.md: Regenerate.
5741         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
5742         (vulcan_addrcost_table): This.
5743         (vulcan_regmove_cost): Rename to ...
5744         (thunderx2t99_regmove_cost): This.
5745         (vulcan_vector_cost): Rename to ...
5746         (thunderx2t99_vector_cost): this.
5747         (vulcan_branch_cost): Rename to ...
5748         (thunderx2t99_branch_cost): This.
5749         (vulcan_tunings): Rename to ...
5750         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
5751         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
5753 2017-01-09  Martin Jambor  <mjambor@suse.cz>
5755         PR ipa/78365
5756         PR ipa/78599
5757         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
5758         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
5759         (propagate_vr_accross_jump_function): Use the above function for all
5760         value range computations for pass-through jump functions and type
5761         converasion from explicit value range values.
5762         (ipcp_propagate_stage): Do not attempt to deduce types of formal
5763         parameters from TYPE_ARG_TYPES.
5764         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
5765         (ipa_write_node_info): Stream type of the actual argument.
5766         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
5768 2017-01-09  Martin Liska  <mliska@suse.cz>
5770         PR pch/78970
5771         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
5772         (lookup_compiler): Do not show error message with have_E.
5774 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
5776         PR tree-optimization/78938
5777         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
5778         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
5779         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
5780         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
5781         fixes.
5783 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5785         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
5786         is const0_rtx.
5788 2017-01-09  Richard Biener  <rguenther@suse.de>
5790         PR tree-optimization/78997
5791         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
5792         name condition properly.
5794 2017-01-09  Richard Biener  <rguenther@suse.de>
5796         PR debug/79000
5797         * dwarf2out.c (is_cxx): New overload with context.
5798         (is_naming_typedef_decl): Use it.
5800 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
5802         * invoke.texi (Option Summary): Correct spacing in option lists
5803         and add line breaks to fix over-long lines.
5805 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
5807         PR middle-end/17660
5809         * extend.texi (Common Variable Attributes): Add xref to GCC
5810         Internals manual to explain mode attribute keywords.
5812 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
5814         PR other/16519
5815         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
5816         and Preprocessor Options.
5817         (Options for Linking): Document -pthread here....
5818         (RS/6000 and PowerPC Options): ...not here.
5819         (Solaris 2 Options): ...or here.
5820         * doc/cppopts.texi: Document -pthread.
5822 2017-01-08  Martin Sebor  <msebor@redhat.com>
5824         PR middle-end/77708
5825         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
5826         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
5827         New member functions.
5828         (format_directive): Used them.
5829         (add_bytes): Same.
5830         (pass_sprintf_length::handle_gimple_call): Same.
5831         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
5832         to avoid truncation for any argument.
5833         (extract_affine_mul): Same.
5834         * tree.c (get_file_function_name): Same.
5836 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
5838         PR middle-end/77484
5839         * predict.def (PRED_INDIR_CALL): Set to 86.
5841 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5843         PR preprocessor/54124
5844         * doc/cppopts.texi: Reformat -d subtable to list the full name
5845         of the options.  Add cross-reference to the docs for the general
5846         compiler -d options.
5847         * doc/invoke.texi (Developer Options): Add cross-reference to the
5848         preprocessor-specific -d option documentation.
5850 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5852         PR preprocessor/13498
5853         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
5854         redudant material, and reflect new command-line options.
5855         (System Headers): Likewise.
5857 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5859         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
5860         -isystem, and -idirafter.  Copy-edit.
5861         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
5862         default for -ftrack-macro-expansion.  Delete obsolete and
5863         badly-formatted implementation details about -fdebug-cpp output.
5864         * doc/cppwarnopts.texi: Copy-edit.
5866 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
5868         PR c++/72803
5869         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
5870         that the transition from a max line width >= 1<<10 to narrower
5871         lines works correctly.
5873 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
5875         * doc/options.texi (PerFunction): New.
5876         * opt-functions.awk (switch_flags): Map both Optimization and
5877         PerFunction to CL_OPTIMIZATION.
5878         * opth-gen.awk: Test for PerFunction flag along with
5879         Optimization.
5880         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
5881         it only when the latter is present.  Skip those that don't in
5882         the hash function generator.
5883         * common.opt (fvar-tracking): Mark as PerFunction instead of
5884         Optimization.
5885         (fvar-tracking-assignments): Likewise.
5886         (fvar-tracking-assignments-toggle): Likewise.
5887         (fvar-tracking-uninit): Likewise.
5889 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
5891         PR translation/79018
5892         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
5893         the and store.
5895 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
5897         PR target/57583
5898         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
5899         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
5900         TARGET_LONG_JUMP_TABLE_OFFSETS.
5901         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
5902         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
5903         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
5904         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
5905         * config/m68k/m68k.md (tablejump expander): Likewise.
5906         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
5907         TARGET_LONG_JUMP_TABLE_OFFSETS.
5908         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
5909         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
5911 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
5912             David Holsgrove <david.holsgrove@xilinx.com>
5914         * common/config/microblaze/microblaze-common.c
5915         (TARGET_EXCEPT_UNWIND_INFO): Remove.
5916         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
5917         New prototype.
5918         * config/microblaze/microblaze.c (microblaze_must_save_register)
5919         (microblaze_expand_epilogue, microblaze_return_addr): Handle
5920         calls_eh_return.
5921         (microblaze_eh_return): New function.
5922         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
5923         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
5924         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
5925         * config/microblaze/microblaze.md (eh_return): New pattern.
5927 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
5929         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
5930         GCC_DIAGNOSTIC_STRINGIFY): Define.
5932         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
5934 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5936         * config/arm/arm.md (<mcrr>): New.
5937         (<mrrc>): New.
5938         * config/arm/arm.c (arm_arch5te): New.
5939         (arm_option_override): Set arm_arch5te.
5940         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
5941         and mrrc2.
5942         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
5943         (arm_mcrr_qualifiers): ... this. New.
5944         (MRRC_QUALIFIERS): Define to...
5945         (arm_mrrc_qualifiers): ... this. New.
5946         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
5947         __arm_mrrc2): New.
5948         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
5949         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
5950         (MRRCI, mrrc, MRRC): New.
5951         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
5952         VUNSPEC_MRRC2): New.
5954 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5956         * config/arm/arm.md (<mcr>): New.
5957         (<mrc>): New.
5958         * config/arm/arm.c (arm_coproc_builtin_available): Add
5959         support for mcr, mrc, mcr2 and mrc2.
5960         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
5961         (arm_mcr_qualifiers): ... this. New.
5962         (MRC_QUALIFIERS): Define to ...
5963         (arm_mrc_qualifiers): ... this. New.
5964         (MCR_QUALIFIERS): Define to ...
5965         (arm_mcr_qualifiers): ... this. New.
5966         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
5967         __arm_mrc2): New.
5968         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
5969         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
5970         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
5971         VUNSPEC_MRC2): New.
5973 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5975         * config/arm/arm.md (*ldc): New.
5976         (*stc): New.
5977         (<ldc>): New.
5978         (<stc>): New.
5979         * config/arm/arm.c (arm_coproc_builtin_available): Add
5980         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
5981         (arm_coproc_ldc_stc_legitimate_address): New.
5982         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
5983         'qualifier_const_pointer'.
5984         (LDC_QUALIFIERS): Define to...
5985         (arm_ldc_qualifiers): ... this. New.
5986         (STC_QUALIFIERS): Define to...
5987         (arm_stc_qualifiers): ... this. New.
5988         * config/arm/arm-protos.h
5989         (arm_coproc_ldc_stc_legitimate_address): New.
5990         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
5991         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
5992         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
5993         stc2, stcl, stc2l): New.
5994         * config/arm/constraints.md (Uz): New.
5995         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
5996         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
5997         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
5998         VUNSPEC_STC2L): New.
6000 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6002         * config/arm/arm.md (<cdp>): New.
6003         * config/arm/arm.c (neon_const_bounds): Rename this ...
6004         (arm_const_bounds): ... this.
6005         (arm_coproc_builtin_available): New.
6006         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
6007         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
6008         (CDP_QUALIFIERS): Define to...
6009         (arm_cdp_qualifiers): ... this. New.
6010         (void_UP): Define.
6011         (arm_expand_builtin_args): Add case for 6 arguments.
6012         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
6013         (arm_const_bounds): ... this.
6014         (arm_coproc_builtin_available): New.
6015         * config/arm/arm_acle.h (__arm_cdp): New.
6016         (__arm_cdp2): New.
6017         * config/arm/arm_acle_builtins.def (cdp): New.
6018         (cdp2): New.
6019         * config/arm/iterators.md (CDPI,CDP,cdp): New.
6020         * config/arm/neon.md: Rename all 'neon_const_bounds' to
6021         'arm_const_bounds'.
6022         * config/arm/types.md (coproc): New.
6023         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
6024         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
6025         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
6026         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
6028 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6030         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
6031         (UBINOP_QUALIFIERS): New.
6032         (si_UP): Define.
6033         (acle_builtin_data): New. Change comment.
6034         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
6035         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
6036         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
6037         arm_acle_builtins.def.
6038         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
6039         (arm_init_acle_builtins): New.
6040         (CRC32_BUILTIN): Remove.
6041         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
6042         crc32cb, crc32ch and crc32cw.
6043         (arm_init_crc32_builtins): Remove.
6044         (arm_init_builtins): Use arm_init_acle_builtins rather
6045         than arm_init_crc32_builtins.
6046         (arm_expand_acle_builtin): New.
6047         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
6048         * config/arm/arm_acle_builtins.def: New.
6050 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6052         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
6053         (arm_builtin_datum): ... this.
6054         (arm_init_neon_builtin): Rename to ...
6055         (arm_init_builtin): ... this. Add a new parameters PREFIX
6056         and USE_SIG_IN_NAME.
6057         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
6058         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
6059         'arm_builtin_datum'.
6060         (arm_init_vfp_builtins): Likewise.
6061         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
6062         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
6063         (arm_expand_neon_args): Rename to ...
6064         (arm_expand_builtin_args): ... this. Rename builtin_arg
6065         enum values and differentiate between ARG_BUILTIN_MEMORY
6066         and ARG_BUILTIN_NEON_MEMORY.
6067         (arm_expand_neon_builtin_1): Rename to ...
6068         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
6069         values, arm_expand_builtin_args and add bool parameter NEON.
6070         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
6071         (arm_expand_vfp_builtin): Likewise.
6072         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
6074 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
6076         PR middle-end/77484
6077         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
6078         * predict.c (tree_estimate_probability_bb): Reverse direction of
6079         polymorphic call predictor.
6081 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
6083         * passes.c (execute_one_pass): Split out pass-skipping logic into...
6084         (determine_pass_name_match): ...this new function and...
6085         (should_skip_pass_p): ...this new function.
6087 2017-01-06  Nathan Sidwell  <nathan@acm.org>
6089         * ipa-visibility.c (function_and_variable_visibility): Reformat
6090         comments and long lines.  Remove extrneous if.
6091         * symtab.c (symtab_node::make_decl_local): Fix code format.
6092         (symtab_node::set_section_for_node): Fix comment typo.
6094 2017-01-06  Martin Liska  <mliska@suse.cz>
6096         PR bootstrap/79003
6097         * lra-constraints.c: Rename invariant to lra_invariant.
6098         * predict.c (set_even_probabilities): Initialize e to NULL.
6100 2017-01-05  Martin Sebor  <msebor@redhat.com>
6102         PR tree-optimization/78910
6103         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
6104         (format_integer): Correct off-by-one error in the handling
6105         of precision with negative numbers in signed conversions..
6107 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
6109         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
6111 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
6113         PR tree-optimization/71016
6114         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
6115         factor_out_conditional_conversion.  Formatting fix.
6116         (factor_out_conditional_conversion): Add cond_stmt argument.
6117         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
6118         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
6119         Formatting fix.
6121 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
6123         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
6124         read-rtl-function.o, and selftest-rtl.o.
6125         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
6126         (selftest::aarch64_test_loading_full_dump): New function.
6127         (selftest::aarch64_run_selftests): New function.
6128         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
6129         selftest::aarch64_run_selftests.
6130         * config/i386/i386.c
6131         (selftest::ix86_test_loading_dump_fragment_1): New function.
6132         (selftest::ix86_test_loading_call_insn): New function.
6133         (selftest::ix86_test_loading_full_dump): New function.
6134         (selftest::ix86_test_loading_unspec): New function.
6135         (selftest::ix86_run_selftests): Call the new functions.
6136         * emit-rtl.c (maybe_set_max_label_num): New function.
6137         * emit-rtl.h (maybe_set_max_label_num): New decl.
6138         * function.c (instantiate_decls): Guard call to
6139         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
6140         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
6141         "static".
6142         * gensupport.c (gen_reader::gen_reader): Pass "false"
6143         for new "compact" param of rtx_reader.
6144         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
6145         rather than an empty string for NULL strings.
6146         * read-md.c: Potentially include config.h rather than bconfig.h.
6147         Wrap include of errors.h with #ifdef GENERATOR_FILE.
6148         (have_error): New global, copied from errors.c.
6149         (md_reader::read_name): Rename to...
6150         (md_reader::read_name_1): ...this, adding "out_loc" param,
6151         and converting "missing name or number" to returning false, rather
6152         than failing.
6153         (md_reader::read_name): Reimplement in terms of read_name_1.
6154         (md_reader::read_name_or_nil): New function.
6155         (md_reader::read_string): Handle "(nil)" by returning NULL.
6156         (md_reader::md_reader): Add new param "compact".
6157         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
6158         (md_reader::read_file): New method.
6159         * read-md.h (md_reader::md_reader): Add new param "compact".
6160         (md_reader::read_file): New method.
6161         (md_reader::is_compact): New accessor.
6162         (md_reader::read_name): Convert return type from void to file_location.
6163         (md_reader::read_name_or_nil): New decl.
6164         (md_reader::read_name_1): New decl.
6165         (md_reader::m_compact): New field.
6166         (noop_reader::noop_reader): Pass "false" for new "compact" param
6167         of rtx_reader.
6168         (rtx_reader::rtx_reader): Add new "compact" param.
6169         (rtx_reader::read_rtx_operand): Make virtual and convert return
6170         type from void to rtx.
6171         (rtx_reader::read_until): New decl.
6172         (rtx_reader::handle_any_trailing_information): New virtual function.
6173         (rtx_reader::postprocess): New virtual function.
6174         (rtx_reader::finalize_string): New virtual function.
6175         (rtx_reader::m_in_call_function_usage): New field.
6176         (rtx_reader::m_reuse_rtx_by_id): New field.
6177         * read-rtl-function.c: New file.
6178         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
6179         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
6180         (selftest::verify_three_block_rtl_cfg): New decl.
6181         * read-rtl-function.h: New file.
6182         * read-rtl.c: Potentially include config.h rather than bconfig.h.
6183         For host, include function.h, memmodel.h, and emit-rtl.h.
6184         (one_time_initialization): New function.
6185         (struct compact_insn_name): New struct.
6186         (compact_insn_names): New array.
6187         (find_code): Handle insn codes in compact dumps.
6188         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
6189         (bind_subst_iter_and_attr): Likewise.
6190         (add_condition_to_string): Likewise.
6191         (add_condition_to_rtx): Likewise.
6192         (apply_attribute_uses): Likewise.
6193         (add_current_iterators): Likewise.
6194         (apply_iterators): Likewise.
6195         (initialize_iterators): Guard usage of apply_subst_iterator with
6196         #ifdef GENERATOR_FILE.
6197         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
6198         (md_reader::read_mapping): Likewise.
6199         (add_define_attr_for_define_subst): Likewise.
6200         (add_define_subst_attr): Likewise.
6201         (read_subst_mapping): Likewise.
6202         (check_code_iterator): Likewise.
6203         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
6204         logic to...
6205         (one_time_initialization): New function.
6206         (rtx_reader::read_until): New method.
6207         (read_flags): New function.
6208         (parse_reg_note_name): New function.
6209         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
6210         Handle reuse_rtx ids.
6211         Wrap iterator lookup within #ifdef GENERATOR_FILE.
6212         Add parsing support for RTL dumps, mirroring the special-cases in
6213         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
6214         values, and calling handle_any_trailing_information.
6215         (rtx_reader::read_rtx_operand): Convert return type from void
6216         to rtx, returning return_rtx.  Handle case 'e'.  Call
6217         finalize_string on XSTR and XTMPL fields.
6218         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
6219          "(nil)" values were omitted.  Call the postprocess vfunc on the
6220         return_rtx.
6221         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
6222         class ctor.  Initialize m_in_call_function_usage.  Call
6223         one_time_initialization.
6224         * rtl-tests.c (selftest::test_uncond_jump): Call
6225         set_new_first_and_last_insn.
6226         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
6227         * selftest-rtl.c: New file.
6228         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
6229         (selftest::get_insn_by_uid): New decl.
6230         * selftest-run-tests.c (selftest::run_tests): Call
6231         read_rtl_function_c_tests.
6232         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
6233         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
6234         dumps.
6236 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
6238         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
6239         operands in a special way.  Assert that pos+len <= mode precision.
6241 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
6243         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
6244         3 argument Alias with unlimited for the negative form.
6245         (fno-vect-cost-model): Removed.
6247 2017-01-05  Martin Liska  <mliska@suse.cz>
6249         * hsa-gen.c (gen_hsa_divmod): New function.
6250         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
6252 2017-01-05  Martin Liska  <mliska@suse.cz>
6254         PR pch/78970
6255         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
6256         header.
6258 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6260         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
6261         small constant length operands.
6263 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6265         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
6266         between loop iterations.
6268 2017-01-05  Martin Liska  <mliska@suse.cz>
6270         PR sanitizer/78815
6271         * gimplify.c (gimplify_decl_expr): Compare to
6272         asan_poisoned_variables instread of checking flags.
6273         (gimplify_target_expr): Likewise.
6274         (gimplify_expr): Likewise.
6275         (gimplify_function_tree): Conditionally initialize
6276         asan_poisoned_variables.
6278 2017-01-04  Jeff Law  <law@redhat.com>
6280         PR tree-optimizatin/78812
6281         * rtl.h (contains_mem_rtx_p): Prototype.
6282         * ifcvt.c (containts_mem_rtx_p): Move from here to...
6283         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
6284         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
6285         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
6286         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
6288 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
6290         * input.c (assert_char_at_range): Default-initialize actual_range.
6292 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
6294         * df-scan.c (df_ref_create_structure): Make regno unsigned,
6295         to match the caller.
6297 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
6299         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
6300         insns after final jump in test to emit dummy move.
6302 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
6304         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
6305         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
6307 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
6309         * multiple_target.c (create_dispatcher_calls): Init e_next.
6310         * tree-ssa-loop-split.c (split_loop): Init border.
6311         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
6312         scalar_type.
6314 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
6316         PR target/71977
6317         PR target/70568
6318         PR target/78823
6319         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
6320         (altivec_register_operand): Do not return true if the operand
6321         contains a SUBREG mixing SImode and SFmode.
6322         (vsx_register_operand): Likewise.
6323         (vsx_reg_sfsubreg_ok): New predicate.
6324         (vfloat_operand): Do not return true if the operand contains a
6325         SUBREG mixing SImode and SFmode.
6326         (vint_operand): Likewise.
6327         (vlogical_operand): Likewise.
6328         (gpc_reg_operand): Likewise.
6329         (int_reg_operand): Likewise.
6330         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
6331         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
6332         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
6333         SImode and SFmode.
6334         (rs6000_emit_move_si_sf_subreg): New helper function.
6335         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
6336         fixup SUBREGs involving SImode and SFmode.
6337         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
6338         numbers for the new peephole2 optimization.
6339         (peephole2 for SFmode unions): New peephole2 to optimize cases in
6340         the GLIBC math library that do AND/IOR/XOR operations on single
6341         precision floating point.
6342         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
6343         target macros to say whether we need to avoid SUBREGs mixing
6344         SImode and SFmode.
6345         (TARGET_ALLOW_SF_SUBREG): Likewise.
6346         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
6347         (UNSPEC_SI_FROM_SF): Likewise.
6348         (iorxor): Change spacing.
6349         (and_ior_xor): New iterator for AND, IOR, and XOR.
6350         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
6351         (movdi_from_sf_zero_ext): Likewise.
6352         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
6353         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
6354         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
6355         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
6356         (fms<mode>4): Likewise.
6357         (fnma<mode>4): Likewise.
6358         (fnms<mode>4): Likewise.
6359         (nfma<mode>4): Likewise.
6360         (nfms<mode>4): Likewise.
6362 2017-01-04  Marek Polacek  <polacek@redhat.com>
6364         PR c++/64767
6365         * doc/invoke.texi: Document -Wpointer-compare.
6367 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
6369         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
6370         RejectNegative.
6372         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
6373         descriptions for -gdwarf-5 and emit them as uleb128 instead of
6374         2-byte data.
6376 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6378         PR target/78056
6379         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
6380         documentation of the powerpc_popcntb_ok attribute.
6381         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6382         code to issue warning messages if a requested CPU configuration is
6383         not supported by the binary (assembler and loader) toolchain.
6384         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
6385         made to define a built-in function that has been disabled.
6386         (paired_init_builtins): Add assertion to prevent ICE if attempt is
6387         made to define a built-in function that has been disabled.
6388         (altivec_init_builtins): Add comment explaining why definition
6389         of the DST built-in functions is not preceded by an assertion
6390         check.  Add assertions to prevent ICE if attempts are made to
6391         define an altivec predicate or an abs* built-in function that has
6392         been disabled.
6393         (htm_init_builtins): Add comment explaining why definition of the
6394         htm built-in functions is not preceded by an assertion check.
6396 2017-01-04  Jeff Law  <law@redhat.com>
6398         PR tree-optimizatin/67955
6399         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
6400         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
6401         the points-to solution does not include pt_null.  Use DECL_PT_UID
6402         unconditionally.
6404 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
6406         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
6407         Use gen_int_mode instead of gen_lopwart for const_int operands.
6409 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
6411         PR tree-optimization/71563
6412         * match.pd: Simplify X << Y into X if Y is known to be 0 or
6413         out of range value - has low bits known to be zero.
6415 2017-01-04  Alan Modra  <amodra@gmail.com>
6417         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
6418         * configure: Regenerate.
6419         * config.in: Regenerate.
6421 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
6423         PR bootstrap/77569
6424         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
6425         a substring of the message, but strcmp with the whole message.  Ifdef
6426         ENABLE_NLS, translate the message first using dgettext.
6428 2017-01-03  Jeff Law  <law@redhat.com>
6430         PR tree-optimizatin/78856
6431         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
6432         (mark_threaded_blocks): Remove code to truncate thread paths that
6433         cross multiple loop headers.  Instead invalidate the cached loop
6434         iteration information and handle case of a thread path walking
6435         into an irreducible region.
6437 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
6439         PR target/78900
6440         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
6441         assertions.  Add support for doing the signbit if the IEEE 128-bit
6442         floating point value is in a GPR.
6443         * config/rs6000/rs6000.md (Fsignbit): Delete.
6444         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
6445         Update the length attribute if the value is in a GPR.
6446         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
6447         the sign or zero extension instruction, since the value is always 0/1.
6448         (signbit<mode>2_dm2): Delete using <Fsignbit>.
6450         PR target/78953
6451         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
6452         extracting SImode to a GPR register so that we can generate a
6453         store, limit the vector to be in a traditional Altivec register
6454         for the vextuwrx instruction.
6456 2017-01-03  Ian Lance Taylor  <iant@google.com>
6458         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
6460 2017-01-03  Martin Sebor  <msebor@redhat.com>
6462         PR tree-optimization/78696
6463         * gimple-ssa-sprintf.c (format_floating): Correct handling of
6464         precision.  Use MPFR for %f for greater fidelity.  Correct handling
6465         of %g.
6466         (pass_sprintf_length::compute_format_length): Set width and precision
6467         specified by asrerisk to void_node for vararg functions.
6468         (try_substitute_return_value): Adjust dump output.
6470 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
6472         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
6474 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
6476         * doc/invoke.texi (SPARC options): Document -mlra as the default.
6477         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
6478         -mlra/-mno-lra was passed to the compiler.
6480 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
6482         PR rtl-optimization/65618
6483         * emit-rtl.c (try_split): Move initialization of "before" and
6484         "after" to just before the call to emit_insn_after_setloc.
6486 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
6488         * doc/md.texi (Standard Names): Remove reference to Java frontend.
6490 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
6492         * dwarf2out.c (gen_enumeration_type_die): When
6493         -gno-strict-dwarf, add a DW_AT_encoding attribute.
6495 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
6497         PR tree-optimization/78965
6498         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
6499         Change first argument from const call_info & to call_info &.  For %n
6500         set info.nowrite to false.
6502         PR middle-end/78901
6503         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
6504         possibly throwing calls.
6506         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
6507         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
6508         and fns handling, rather than in a separate case SSA_NAME.
6510 2017-01-02  Jeff Law  <law@redhat.com>
6512         * config/darwin-driver.c (darwin_driver_init): Const-correctness
6513         fixes for first_period and second_period variables.
6515 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
6517         PR target/78967
6518         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
6519         (*insvqi_1): New insn pattern.
6520         (*insvqi_1_mem_rex64): Ditto.
6521         (*insvqi_2): Ditto.
6522         (*insvqi_3): Rename from *insvqi.
6524         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
6526 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
6528         * doc/cfg.texi (Edges): Remove reference to Java.
6529         (Maintaining the CFG): Ditto.
6531 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
6533         PR middle-end/77674
6534         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
6535         transparent aliases.
6537 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
6539         PR middle-end/77484
6540         * predict.def (PRED_CALL): Update hitrate.
6541         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
6542         * predict.c (tree_estimate_probability_bb): Split CALL predictor
6543         into direct/indirect/polymorphic variants.
6545 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
6547         Update copyright years.
6549         * gcc.c (process_command): Update copyright notice dates.
6550         * gcov-dump.c (print_version): Ditto.
6551         * gcov.c (print_version): Ditto.
6552         * gcov-tool.c (print_version): Ditto.
6553         * gengtype.c (create_file): Ditto.
6554         * doc/cpp.texi: Bump @copying's copyright year.
6555         * doc/cppinternals.texi: Ditto.
6556         * doc/gcc.texi: Ditto.
6557         * doc/gccint.texi: Ditto.
6558         * doc/gcov.texi: Ditto.
6559         * doc/install.texi: Ditto.
6560         * doc/invoke.texi: Ditto.
6562 Copyright (C) 2017 Free Software Foundation, Inc.
6564 Copying and distribution of this file, with or without modification,
6565 are permitted in any medium without royalty provided the copyright
6566 notice and this notice are preserved.