PR target/79749
[official-gcc.git] / gcc / ChangeLog
blob51cb8abc1d28729c0bab3ed4962eb6cb3f8b60f0
1 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
3         PR target/79749
4         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
5         condition on optimize for the leaf function test.
7 2017-02-28  Martin Liska  <mliska@suse.cz>
9         PR lto/79625
10         * read-rtl-function.c (function_reader::handle_unknown_directive):
11         Bail out when one uses -flto.
13 2017-02-28  Martin Liska  <mliska@suse.cz>
15         * common.opt: Replace space with tabular for options of <number>
16         type.
17         * config/i386/i386.opt: Show <number> value for
18         -mlarge-data-threshold.
19         * opts.c (print_filtered_help): Do not display number in hexadecimal
20         format.
22 2017-02-28  Martin Liska  <mliska@suse.cz>
24         * common.opt: Fix --help=option -Q for options which are of
25         an enum type.
27 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
29         * config/i386/i386.c (print_reg): Error out for values
30         of 8-bit size in invalid integer register.
32 2017-02-28  Martin Sebor  <msebor@redhat.com>
34         PR tree-optimization/79691
35         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
37 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
39         PR target/79729
40         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
41         gcc_unreachable with output_operand_lossage.
43 2017-02-28  Richard Biener  <rguenther@suse.de>
45         PR tree-optimization/79740
46         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
47         inserts.
48         (visit_nary_op): Insert the nary into the hashtable if we
49         pattern-matched sth.
50         * tree-ssa-pre.c (eliminate_insert): Robustify.
52 2017-02-28  Richard Biener  <rguenther@suse.de>
54         PR middle-end/79731
55         * fold-const.c (decode_field_reference): Reject out-of-bound
56         accesses.
58 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
60         * config/i386/i386.c: Include intl.h.
61         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
62         instead of just cond ? "..." : "...".
63         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
64         * coverage.c (read_counts_file): Likewise.
65         * omp-offload.c: Include intl.h.
66         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
67         of just cond ? "..." : "...".
68         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
69         of just cond ? "..." : "...".
71 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
73         PR target/79742
74         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
75         entry, if present.
76         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
77         'tune for' CPU name.
78         * config/arm/arm-cpu-data.h: Regenerated.
80 2017-02-28  Richard Biener  <rguenther@suse.de>
82         PR tree-optimization/79732
83         * tree-inline.c (expand_call_inline): Do not shadow var.
85 2017-02-28  Richard Biener  <rguenther@suse.de>
87         PR tree-optimization/79723
88         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
89         address-space properly.
91 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
93         * doc/optinfo.texi (Optimization groups): Fix option used for
94         OPTGROUP_ALL.
95         * doc/invoke.texi (-fopt-info): Document "omp".
96         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
97         (OPTGROUP_ALL): Add OPTGROUP_OMP.
98         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
99         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
100         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
102         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
103         all users.
104         * dumpfile.c (optgroup_options): Instead of "openmp", associate
105         OPTGROUP_OMP with "omp".
107 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
109         PR target/79544
110         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
111         for arithmetic shift of unsigned V2DI.
113 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
115         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
116         arc/linux.h headers.
117         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
118         (LINK_SPEC): Likewise.
119         (ARC_TLS_EXTRA_START_SPEC): Likewise.
120         (EXTRA_SPECS): Likewise.
121         (STARTFILE_SPEC): Likewise.
122         (ENDFILE_SPEC): Likewise.
123         (LIB_SPEC): Likewise.
124         (TARGET_SDATA_DEFAULT): Likewise.
125         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
126         (MULTILIB_DEFAULTS): Likewise.
127         (DWARF2_UNWIND_INFO): Likewise.
128         * config/arc/big.h: New file.
129         * config/arc/elf.h: Likewise.
130         * config/arc/linux.h: Likewise.
131         * config/arc/t-uClibc: Remove.
133 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
135         PR tree-optimization/77536
136         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
137         (tree_transform_and_unroll_loop): Use above function to compute the
138         estimated niter of unrolled loop and use it when scaling profile.
139         Also use count info rather than frequency if it's non-zero.
140         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
141         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
142         (vect_transform_loop): Call above function.
144 2017-02-27  Richard Biener  <rguenther@suse.de>
146         PR tree-optimization/45397
147         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
148         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
149         (visit_nary_op): Add pattern matching for CSEing sign-changed
150         or truncated operations with wider ones.
152 2017-02-27  Richard Biener  <rguenther@suse.de>
154         PR tree-optimization/79690
155         * tree-vect-stmts.c (vectorizable_store): Use vector type
156         built from the DR with address-space.
158 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
160         * doc/invoke.texi (Optimize Options): Refine the description
161         of asan-use-after-return.
163 2017-02-25  Alan Modra  <amodra@gmail.com>
165         PR rtl-optimization/79584
166         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
167         base, not ad->base_term, the reg within base.  Remove assertion
168         that ad->base == ad->base_term.  Replace gen_int_mode using
169         bogus mode with const0_rtx.
171 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
173         PR middle-end/79396
174         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
175         FMA_EXPR like tcc_binary or tcc_unary.
177         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
179         PR debug/77589
180         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
181         bitfield.
182         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
183         (output_loc_operands): Handle DW_OP_call_ref and
184         DW_OP_GNU_variable_value.
185         (struct variable_value_struct): New type.
186         (struct variable_value_hasher): Likewise.
187         (variable_value_hash): New variable.
188         (string_types): Remove.
189         (copy_loc_descr): New function.
190         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
191         (prepend_loc_descr_to_each): New function.
192         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
193         instead of add_loc_descr_to_each if the first argument is single
194         location list and the second has multiple.
195         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
196         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
197         when looking for variable value which doesn't have other location info.
198         (loc_list_from_tree): Formatting fix.
199         (gen_array_type_die): Simplify DW_AT_string_length handling.
200         (adjust_string_types): Remove.
201         (gen_subprogram_die): Don't call adjust_string_types nor test/set
202         string_types.  Call resolve_variable_values.
203         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
204         (resolve_addr_in_expr): Likewise.  Add A argument.
205         (copy_deref_exprloc): Remove deref argument.  Adjust for the
206         original expression being DW_OP_GNU_variable_value with optionally
207         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
208         optionally after it.
209         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
210         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
211         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
212         (variable_value_hasher::hash, variable_value_hasher::equal): New
213         methods.
214         (resolve_variable_value_in_expr, resolve_variable_value,
215         resolve_variable_values, note_variable_value_in_expr,
216         note_variable_value): New functions.
217         (dwarf2out_early_finish): Call note_variable_value on all toplevel
218         DIEs.
220 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
222         PR c/79677
223         * opts.h (handle_generated_option): Add GENERATED_P argument.
224         * opts-common.c (handle_option): Adjust function comment.
225         (handle_generated_option): Add GENERATED_P argument, pass it to
226         handle_option.
227         (control_warning_option): Pass false to handle_generated_option
228         GENERATED_P.
229         * opts.c (maybe_default_option): Pass true to handle_generated_option
230         GENERATED_P.
231         * optc-gen.awk: Likewise.
233 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
235         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
236         a REG, look at the REG it is a SUBREG of.
237         (splitter for cmpeqsi_t): Ditto.
239 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
241         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
242         the special USEs with the pattern of the insn, not the insn itself.
244 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
246         PR target/79473
247         * doc/invoke.texi: Document -mload-store-pairs.
249 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
250             Sandra Loosemore  <sandra@codesourcery.com>
252         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
253         argument isn't a CONST_INT.
254         (nios2_alternate_compare_const): Assert op is a CONST_INT.
255         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
256         (nios2_validate_compare): Bypass alternate compare logic if *op2
257         is not a CONST_INT.
258         (ldstwm_operation_p): Return false if first_base is not a REG or
259         if first_offset is not a CONST_INT.
261 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
263         * config/cris/cris.md: Use correct operand in a define_peephole2.
265 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
267         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
269 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
271         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
272         this_insn if it is an INSN or JUMP_INSN.
273         (force_offsettable): Look at base, not at addr.
274         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
275         on things that aren't necessarily CONST_INTs.
277 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
279         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
280         -mfpmath=sse is the default also for x86-32 targets with SSE2
281         instruction set when @option{-ffast-math} is enabled
283 2017-02-24  Jeff Law  <law@redhat.com>
285         PR rtl-optimizatoin/79286
286         * ira.c (update_equiv_regs): Drop may_trap_p exception to
287         dominance test.
289 2017-02-24  Richard Biener  <rguenther@suse.de>
291         PR tree-optimization/79389
292         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
293         debug insns.
295 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
297         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
298         function comment to reflect reality.
299         (loop_exits_before_overflow): Fix typo in function description.
301 2017-02-24  Richard Biener  <rguenther@suse.de>
303         PR tree-optimization/79389
304         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
305         properly that a threading opportunity exists.  Detect conditional
306         copy/constant propagation opportunities.
308 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
310         * config/visium/visium.md (type): Add trap.
311         (b): New mode attribute.
312         (*btst): Rename into...
313         (*btst<mode>): ...this and adjust.
314         (*cbranchsi4_btst_insn): Rename into...
315         (*cbranch<mode>4_btst_insn): ...this and adjust.
316         (trap): New define_insn.
318 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
320         PR tree-optimization/79389
321         * ifcvt.c (struct noce_if_info): Add rev_cond field.
322         (noce_reversed_cond_code): New function.
323         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
324         reversed_comparison_code.  Formatting fix.
325         (noce_try_store_flag): Test rev_cond != NULL in addition to
326         reversed_comparison_code.
327         (noce_try_store_flag_constants): Likewise.
328         (noce_try_store_flag_mask): Likewise.
329         (noce_try_addcc): Use rev_cond if non-NULL instead of
330         reversed_comparison_code.
331         (noce_try_cmove_arith): Likewise.  Formatting fixes.
332         (noce_try_minmax, noce_try_abs): Clear rev_cond.
333         (noce_find_if_block): Initialize rev_cond.
334         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
335         instead of false as last argument never attempt to reverse it
336         afterwards.
338 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
340         PR tree-optimization/79663
341         * tree-predcom.c (combine_chains): Process refs in reverse order
342         only for ZERO length chains, and add explaining comment.
344 2017-02-23  Jeff Law  <law@redhat.com>
346         PR tree-optimization/79578
347         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
348         in call to operand_equal_p.
350 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
352         PR target/71017
353         * config/i386/cpuid.h: Fix another undefined behavior.
355 2017-02-23  Richard Biener  <rguenther@suse.de>
357         PR tree-optimization/79683
358         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
359         vector types for data-refs.
361 2017-02-23  Martin Liska  <mliska@suse.cz>
363         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
365 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
367         PR middle-end/79665
368         * internal-fn.c (get_range_pos_neg): Moved to ...
369         * tree.c (get_range_pos_neg): ... here.  No longer static.
370         * tree.h (get_range_pos_neg): New prototype.
371         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
372         are known to be in between 0 and signed maximum inclusive, try to
373         expand both unsigned and signed divmod and use the cheaper one from
374         those.
376 2017-02-22  Jeff Law  <law@redhat.com>
378         PR tree-optimization/79578
379         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
380         to compare base operands.
382 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
384         PR target/79211
385         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
386         gpc_reg_operand instead of fpr_reg_operand.
388 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
390         * config/mips/mips.c (mips_return_in_memory): Force FP
391         vector types to be returned in memory for o32 ABI.
393 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
395         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
396         instead of DW_TAG_member for static data member declarations and don't
397         set no_linkage_name for static inline data members.
398         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
399         to DW_TAG_member.
401 2017-02-22  Martin Liska  <mliska@suse.cz>
403         * doc/invoke.texi: Replace inequality signs with square brackets
404         for -Wnormalized.
406 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
408         PR tree-optimization/68644
409         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
411 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
413         PR target/78660
414         * lra-constraints.c (simplify_operand_subreg): Handle
415         WORD_REGISTER_OPERATIONS targets.
417 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
419         PR target/70465
420         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
421         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
422         elimination by swapping fld*.
424 2017-02-22  Richard Biener  <rguenther@suse.de>
426         PR tree-optimization/79673
427         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
428         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
429         irrelevant address-space qualifiers and avoiding a
430         ADDR_SPACE_CONVERT_EXPR from fold_convert.
432 2017-02-22  Richard Biener  <rguenther@suse.de>
434         PR tree-optimization/79666
435         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
436         to not symbolically negate if that may introduce undefined
437         overflow.
439 2017-02-22  Martin Liska  <mliska@suse.cz>
441         PR lto/79587
442         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
443         * data-streamer-out.c (streamer_write_gcov_count_stream):
444         Likewise.
445         * value-prof.c (stream_out_histogram_value): Make assert more
446         precise based on type of counter.
448 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
450         PR target/79593
451         * config/i386/i386.md (standard_x87sse_constant_load splitter):
452         Use nonimmediate_operand instead of memory_operand for operand 1.
453         (float-extend standard_x87sse_constant_load splitter): Ditto.
455 2017-02-21 Jeff Law  <law@redhat.com>
457         PR tree-optimization/79621
458         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
459         blocks with edges to themselves.
461 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
463         PR target/79633
464         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
465         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
466         Use gimple_call_builtin_p.
468         PR target/79570
469         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
470         on temporarily removed DEBUG_INSNs.
472         PR tree-optimization/79649
473         * tree-loop-distribution.c (classify_partition): Give up on
474         non-generic address space loads/stores.
476 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
478         * doc/loop.texi (Loop manipulation): Remove nonexistent
479         tree_ssa_loop_version from the documentation.
480         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
482 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
484         PR target/79494
485         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
486         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
487         * config/rs6000/rs6000.c: Include except.h.
488         (rs6000_expand_split_stack_prologue): Call
489         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
491 2017-02-21  Martin Jambor  <mjambor@suse.cz>
493         PR lto/79579
494         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
495         have been analyzed.
497 2017-02-21  Martin Jambor  <mjambor@suse.cz>
499         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
500         for backward compatibility only.
501         * doc/invoke.texi (Option Summary): Remove all references to
502         -fipa-cp-alignment.
504 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
506         PR target/78660
507         Revert:
508         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
510         * lra-constraints.c (curr_insn_transform): Handle
511         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
513 2017-02-21  Martin Liska  <mliska@suse.cz>
515         * config/i386/i386.opt: Replace -masm-dialect with -masm.
517 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
519         PR translation/79638
520         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
522 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
524         PR ada/67205
525         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
526         (arm_function_ok_for_sibcall): Return false for an indirect call by
527         descriptor if all the argument registers are used.
528         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
529         alignment of the function.
531 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
533         PR tree-optimization/61441
534         * simplify-rtx.c (simplify_const_unary_operation): For
535         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
536         the sNaN unmodified.
538 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
540         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
541         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
542         instead of SYSTEM_HEADER_DIR.
544 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
545             Martin LiÅ¡ka  <mliska@suse.cz>
547         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
548         Fix typos and grammar, use active voice, and clarify.
550 2017-02-20  Marek Polacek  <polacek@redhat.com>
552         PR middle-end/79537
553         * gimplify.c (gimplify_expr): Handle unused *&&L;.
555         PR sanitizer/79558
556         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
558 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
560         PR target/79568
561         * config/i386/i386.c (ix86_expand_builtin): Handle
562         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
563         ix86_builtins_isa[fcode].isa as a requirement of those
564         flags and any other flag in the bitmask.
565         (ix86_init_mmx_sse_builtins): Use 0 instead of
566         ~OPTION_MASK_ISA_64BIT as mask.
567         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
568         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
569         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
570         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
572 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
574         PR target/78012
575         * lra-constraints.c (split_reg): Check requested split mode
576         is supported by the register.
578 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
580         * lra-constraints.c (simplify_operand_subreg): Remove early
581         return false.
583 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
585         PR target/78660
586         * lra-constraints.c (curr_insn_transform): Tighten condition
587         for converting SUBREG reloads from OP_OUT to OP_INOUT.
589 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
591         PR target/78660
592         * lra-constraints.c (curr_insn_transform): Handle
593         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
595 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
597         Revert:
598         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
600         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
602 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
604         PR c++/69523
605         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
606         description.
608 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
610         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
611         for FMA_EXPR.
613 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
615         * final.c (last_columnnum, override_columnnum): New variables.
616         (final_start_function): Set last_columnnum, pass it to begin_prologue
617         hook and pass 0 to dwarf2out_begin_prologue.
618         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
619         to source_line debug hook.
620         (notice_source_line): Compute last_columnnum and for debug_column_info
621         return true on column changes.
622         * debug.h (struct gcc_debug_hooks): Add column argument to
623         source_line and begin_prologue hooks.
624         (debug_nothing_int_charstar_int_bool): Remove prototype.
625         (debug_nothing_int_int_charstar,
626         debug_nothing_int_int_charstar_int_bool): New prototypes.
627         (dwarf2out_begin_prologue): Add column argument.
628         * debug.c (do_nothing_debug_hooks): Adjust source_line and
629         begin_prologue hooks.
630         (debug_nothing_int_charstar_int_bool): Remove.
631         (debug_nothing_int_int_charstar,
632         debug_nothing_int_int_charstar_int_bool): New functions.
633         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
634         through to dwarf2out_source_line.
635         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
636         (dwarf2out_source_line): Add column argument, emit it if requested.
637         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
638         arguments.
639         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
640         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
641         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
642         through to dwarf2out_begin_prologue.
643         (vmsdbgout_source_line): Add column argument, pass it through to
644         dwarf2out_source_line.
645         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
646         dbxout_source_line caller.
647         (dbxout_source_line): Add column argument.
649         * common.opt (gno-column-info, gcolumn-info): New options.
650         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
651         (check_die): Also test for multiple DW_AT_decl_column attributes.
652         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
653         DW_AT_decl_column if requested.
654         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
655         if requested.
656         (gen_variable_die): Likewise.
657         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
658         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
660         PR target/79569
661         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
662         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
663         (ix86_handle_option): Handle OPT_m3dnowa.
664         * doc/invoke.texi (-m3dnowa): Document.
665         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
666         -m3dnowa instead of -m3dnow -march=athlon.
668         PR target/79559
669         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
670         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
672 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
674         PR target/79261
675         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
676         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
677         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
678         generator for vsx_xxpermdi_<mode>_be.
679         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
680         force big-endian semantics.
681         (vsx_xxpermdi_<mode>_be): New define_expand with same
682         implementation as previous version of vsx_xxpermdi_<mode>.
684 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
686         PR tree-optimization/79327
687         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
688         variable, its initialization and use.
690 2017-02-17  Julia Koval  <julia.koval@intel.com>
692         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
693         (OPTION_MASK_ISA_PKU_UNSET): New.
694         (ix86_handle_option): Handle -mrdpid.
695         * config/i386/cpuid.h (bit_RDPID): New.
696         * config/i386/driver-i386.c (host_detect_local_cpu):
697         Detect RDPID feature.
698         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
699         * config/i386/i386-c.c (ix86_target_macros_internal):
700         Handle RDPID flag.
701         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
702         (ix86_valid_target_attribute_inner_p): Add "rdpid".
703         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
704         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
705         * config/i386/i386.md (define_insn "rdpid"): New.
706         * config/i386/i386.opt Add -mrdpid.
707         * config/i386/immintrin.h (_rdpid_u32): New.
709 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
711         PR rtl-optimization/79541
712         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
713         instead of transforming it into USE.
715 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
717         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
718         If HONOR_SNANS (SFmode) force the input to a register.
719         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
720         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
721         an frsp or similar insn.
723 2017-02-17  Martin Liska  <mliska@suse.cz>
725         PR rtl-optimization/79577
726         * params.def (selsched-max-sched-times): Increase minimum to 1.
728 2017-02-17  Martin Liska  <mliska@suse.cz>
730         PR rtl-optimization/79574
731         * gcse.c (want_to_gcse_p): Prevent integer overflow.
733 2017-02-17  Martin Liska  <mliska@suse.cz>
735         PR tree-optimization/79529
736         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
737         ssa_defined_default_def_p to handle cases which are implicitly
738         defined.
739         * tree-ssa.c (ssa_defined_default_def_p): New function.
740         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
741         which are implicitly defined.
742         * tree-ssa.h (ssa_defined_default_def_p): Declare.
744 2017-02-17  Richard Biener  <rguenther@suse.de>
746         PR middle-end/79576
747         * params.def (max-ssa-name-query-depth): Limit to 10.
749 2017-02-17  Richard Biener  <rguenther@suse.de>
751         PR tree-optimization/79552
752         * tree-ssa-structalias.c (visit_loadstore): Properly verify
753         default defs.
755 2017-02-17  Richard Biener  <rguenther@suse.de>
757         PR bootstrap/79567
758         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
760 2017-02-17  Marek Polacek  <polacek@redhat.com>
762         PR middle-end/79536
763         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
764         (fold_negate_expr): New wrapper.
766 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
768         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
769         Correct terminology and de-emphasize pre-standard behavior.
771 2017-02-16  Alan Modra  <amodra@gmail.com>
773         PR rtl-optimization/79286
774         * ira.c (def_dominates_uses): New function.
775         (update_equiv_regs): Don't create an equivalence for insns that
776         may trap where the register def does not dominate the use.
778 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
780         PR rtl-optimization/78127
781         * lra.c (lra): Call lra_eliminate before finish the loop after
782         lra_constraint.
784 2017-02-16  Richard Biener  <rguenther@suse.de>
786         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
787         isl/isl_val.h.
788         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
789         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
790         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
791         (isl_val_int_from_wi): New function.
792         (extract_affine_gmp): Rename to ...
793         (extract_affine_wi): ... this, take a widest_int.
794         (extract_affine_int): Just wrap extract_affine_wi.
795         (add_param_constraints): Use isl_val_int_from_wi.
796         (add_loop_constraints): Likewise, and extract_affine_wi.
798 2017-02-15 Jeff Law  <law@redhat.com>
800         PR middle-end/79521
801         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
802         ira_init_register_move_cost_if_necessary.
804 2017-02-15  Martin Sebor  <msebor@redhat.com>
806         PR middle-end/32003
807         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
808         removed in a prior commit.
810 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
812         PR tree-optimization/79347
813         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
814         counters during peeling.
816 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
818         * Makefile.in (site.exp): Remove "set ISLVER".
820 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
822         PR target/79487
823         * real.c (real_from_integer): Call real_convert even for decimal.
825 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
827         PR target/79421
828         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
830 2017-02-14  Andrew Pinski  <apinski@cavium.com>
832         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
833         cores and change the partno/implementer to be correct.
834         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
835         the 'B" as the implementer.
836         * config/aarch64/aarch64-tune.md: Regenerate.
838 2017-02-14  Carl Love  <cel@us.ibm.com>
840         * config/rs6000/rs6000.c: Add case statement entry to make the
841         xvcvuxdsp built-in argument unsigned.
842         * config/rs6000/vsx.md: Fix the source and return operand types so they
843         match the instruction definitions from the ISA document.  Fix typo
844         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
845         statement.
847 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
849         PR target/79282
850         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
851         member early_clobber_alts.
852         * lra-lives.c (reg_early_clobber_p): New.
853         (process_bb_lives): Use it.
854         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
855         (debug_operand_data): Initialize early_clobber_alts.
856         (setup_operand_alternative): Set up early_clobber_alts.
857         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
858         alternatives to new_insn_reg.
859         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
860         it.
861         (lra_update_insn_regno_info): Pass the new arg.
863 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
865         PR middle-end/79505
866         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
867         (new_oacc_loop_raw): Don't clear already cleared fields.
869         PR target/79481
870         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
871         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
872         _mm512_prefetch_i64gather_ps): New inline functions and macros.
874 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
876         PR target/79495
877         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
879 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
881         PR target/79498
882         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
883         the extra instruction to the right place to store 128-bit constant
884         when needed.
886 2017-02-14  Martin Sebor  <msebor@redhat.com>
888         PR middle-end/79448
889         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
890           warning for strings of unknown length.
892 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
894         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
896 2017-02-14 Jeff Law  <law@redhat.com>
898         PR target/79404
899         * ira-costs.c (scan_one_insn): Initialize register move costs
900         for pseudos seen in USE/CLOBBER insns.
902         PR tree-optimization/79095
903         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
904         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
905         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
906         if the operands are known to be not equal, then the resulting range
907         is ~[0,0].
908         (intersect_ranges): If the new range is ~[0,0] and the old range is
909         wide, then prefer ~[0,0].
910         * tree-vrp.c (overflow_comparison_p_1): New function.
911         (overflow_comparison_p): New function.
912         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
913         if NAME is used in an overflow test.
914         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
915         overflow check that can be expressed as an equality test, then adjust
916         ops to be that equality test.
918 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
920         * config/s390/s390-builtin-types.def: Remove flags argument.
921         * config/s390/s390.c (s390_init_builtins): Likewise.
923 2017-02-14  Martin Liska  <mliska@suse.cz>
925         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
926         vector.  Fix trailing white spaces.
928 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
930         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
931         HFmode.
933 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
935         PR rtl-optimization/68664
936         * config/arm/arm.c (arm_sched_can_speculate_insn):
937         New function.  Declare prototype.
938         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
940 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
942         PR rtl-optimization/68664
943         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
944         New function.
945         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
947 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
949         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
950         max skip bytes for function, loop and jump.
952 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
954         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
955         ABS_EXPR for gimple dump.
957 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
959         PR target/79462
960         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
962         PR tree-optimization/79408
963         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
964         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
965         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
966         also if rhs1 is INTEGER_CST.
968 2017-02-14  Richard Biener  <rguenther@suse.de>
970         PR middle-end/79432
971         * tree-into-ssa.c (insert_phi_nodes): When the function can
972         have abnormal edges rewrite SSA names with broken use-def
973         dominance out of SSA and register them for PHI insertion.
975 2017-02-13  Martin Sebor  <msebor@redhat.com>
977         PR middle-end/79496
978         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
979         clearing info.nowrite flag when snprintf size argument is a range.
981 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
983         * cprop.c (cprop_jump): Add missing space in string literal.
984         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
985         (get_constraint_for_component_ref): Likewise.
986         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
987         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
988         * lra-constraints.c (process_alt_operands): Likewise.
989         * ipa-inline.c (inline_small_functions): Likewise.
990         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
991         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
992         * trans-mem.c (diagnose_tm_1_op): Likewise.
993         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
994         (grid_parallel_clauses_gridifiable): Likewise.
996         * config/nvptx/mkoffload.c (process): Add space in between
997         , and %d.
999         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
1000         "MOD4_SSE_REGS" and "ALL_REGS".
1002         * spellcheck.c (test_data): Add , in between "foo" and "food".
1004 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1006         PR target/79449
1007         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
1008         boundary crossing check and subsequent code generation agree.
1010 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1012         * config/aarch64/aarch64.c (has_memory_op): Delete.
1013         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
1014         has_memory_op.
1016 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
1018         PR rtl-optimization/79388
1019         PR rtl-optimization/79450
1020         * combine.c (distribute_notes): When removing TEM_INSN for which
1021         corresponding dest has last value recorded, invalidate that last
1022         value.
1024 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1026         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
1027         of explicit '@'.  Add missing assembly comment marker on branch costs
1028         printout.
1030 2017-02-13  Nathan Sidwell  <nathan@acm.org>
1032         * gengtype-lex.l (<in_struct>): Add '/'.
1034 2017-02-13  Martin Liska  <mliska@suse.cz>
1036         PR c/79471
1037         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
1039 2017-02-13  Richard Biener  <rguenther@suse.de>
1041         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
1042         Remove.
1043         * configure: Re-generate.
1044         * config.in: Likewise.
1045         * graphite-dependences.c: Simplify as if
1046         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
1047         * graphite-isl-ast-to-gimple.c: Likewise.
1048         * graphite-optimize-isl.c: Likewise.
1049         * graphite-poly.c: Likewise.
1050         * graphite-sese-to-poly.c: Likewise.
1051         * graphite.h: Likewise.
1052         * toplev.c: Include isl/version.h and use isl_version () for
1053         printing the ISL version.
1054         * doc/install.texi: Update ISL requirement.
1056 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
1058         * doc/standards.texi (Standards): Update reference to
1059         Objective-C 2.0.
1061 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
1062         
1063         * doc/extend.texi (Named Address Spaces): sourceware.org now
1064         defaults to https.
1065         * doc/install.texi (Binaries): Ditto.
1066         (Specific): Ditto.
1068 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
1070         * doc/cpp.texi: Replace "stringify"/"stringification" with C 
1071         standard terminology "stringize"/"stringizing" throughout.
1072         * doc/cppinternals.texi: Likewise.
1074 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
1076         * doc/extend.texi: Fix some spelling mistakes and typos.
1077         * doc/invoke.texi: Likewise.
1079 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
1081         PR ipa/79224
1082         * params.def (inline-min-speedup) Change from 10 to 8.
1084 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
1086         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
1087         4.5.
1089 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
1091         PR ipa/79224
1092         * ipa-inline-analysis.c (get_minimal_bb): New function.
1093         (record_modified): Use it.
1094         (remap_edge_change_prob): Handle also ancestor functions.
1096 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
1098         * doc/contrib.texi (Contributors): Remove broken link into
1099         the Mauve CVS repository.
1101 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
1103         PR middle-end/79454
1104         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
1105         result computation whenever lhs doesn't have vector mode, not
1106         just when it has BLKmode.
1108 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
1110         * doc/makefile.texi (profiledbootstrap): Refer to the
1111         installation instructions only in textual form.
1113 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1115         PR target/79295
1116         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
1118 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
1120         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
1121         (Specific): Update mingw-w64 reference.
1122         (Binaries): Ditto.
1123         (Specific): Remove broken link to Renesas RX processor.
1125 2017-02-10  Richard Biener  <rguenther@suse.de>
1127         * toplev.c (process_options): Do not mention obsolete graphite
1128         options when printing sorry message about missing graphite support.
1129         Mention -floop-nest-optimize.
1131 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
1133         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
1134         (vtst_p16): Likewise.
1135         (vtstq_p8): Likewise.
1136         (vtstq_p16): Likewise.
1137         (vtst_p64): New.
1138         (vtstq_p64): Likewise.
1139         * config/arm/arm_neon.h (vgetq_lane_p64): New.
1140         (vset_lane_p64): New.
1141         (vsetq_lane_p64): New.
1143 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
1145         PR tree-optimization/79411
1146         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
1147         stmt operands are SSA_NAMEs used in abnormal phis.
1148         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
1149         phis.
1151 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
1153         PR ipa/70795
1154         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
1155         flag if needed.
1157 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
1159         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
1161 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
1163         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
1164         to avoid warning.
1166         PR c/79413
1167         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
1168         not arbitrary TREE_CONSTANT.
1170         PR c/79431
1171         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
1172         "omp declare target link" attribute unless is_global_var.
1173         * omp-offload.c (find_link_var_op): Likewise.
1175 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
1176             Chung-Lin Tang  <cltang@codesourcery.com>
1178         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
1179         OMP_CLAUSE_TILE.
1180         (gimplify_adjust_omp_clauses): Don't delete TILE.
1181         (gimplify_omp_for): Deal with TILE.
1182         * internal-fn.c (expand_GOACC_TILE): New function.
1183         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
1184         (GOACC_TILE): New.
1185         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
1186         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
1187         element fields.
1188         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
1189         avoid DIV for outermost collapse var.
1190         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
1191         Remove out of date comments, fix whitespace.
1192         * omp-general.c (omp_extract_for_data): Deal with tiling.
1193         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
1194         adjust OLF_DIM_BASE value.
1195         (struct omp_for_data): Add tiling field.
1196         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
1197         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
1198         for auto loops.  Remove default auto determining, moved to
1199         oacc_loop_fixed_partitions.
1200         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
1201         stmts, add e_mask field.
1202         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
1203         (oacc_thread_numbers): Use oacc_dim_call.
1204         (oacc_xform_tile): New.
1205         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
1206         (finish_oacc_loop): Adjust for ifns vector.
1207         (oacc_loop_discover_walk): Append loop abstraction sites to list,
1208         add case for GOACC_TILE fns.
1209         (oacc_loop_xform_loop): Delete.
1210         (oacc_loop_process): Iterate over call list directly, and add
1211         handling for GOACC_TILE fns.
1212         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
1213         dump partitioning.
1214         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
1215         vector partitioning to outer loops.  Assign 2 partitions to loops
1216         when available. Add TILE handling.
1217         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
1218         (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
1219         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
1220         * tree.c (omp_clause_num_ops): Adjust TILE ops.
1221         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
1223 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
1225         * configure.ac (ACX_BUGURL): Update.
1226         * configure: Regenerate.
1228 2017-02-09  Richard Biener  <rguenther@suse.de>
1230         PR tree-optimization/69823
1231         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
1232         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
1234 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
1236         * config/arc/arc-c.def: Add __NPS400__ definition.
1237         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
1238         (TARGET_NPS400): Define.
1240 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
1242         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
1243         file.
1244         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
1245         pointer, arch_info.
1246         (arc_cpu_types): Fill the arch_info field with a pointer into the
1247         arc_arch_types table.
1248         (arc_selected_cpu): Declare.
1249         * config/arc/arc.c (arc_selected_cpu): Make global.
1250         (arc_selected_arch): Delete.
1251         (arc_base_cpu): Delete.
1252         (arc_override_options): Remove references to deleted variables,
1253         update access to arch information.
1254         (ARC_OPT): Update access to arch information.
1255         (ARC_OPTX): Likewise.
1256         * config/arc/arc.h (arc_base_cpu): Remove declaration.
1257         (TARGET_ARC600): Update access to arch information.
1258         (TARGET_ARC601): Likewise.
1259         (TARGET_ARC700): Likewise.
1260         (TARGET_EM): Likewise.
1261         (TARGET_HS): Likewise.
1262         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
1263         information.
1265 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
1267         PR target/78604
1268         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
1269         condition/operands for integer GE/LE/GEU/LEU operations.
1271 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
1273         PR translation/79397
1274         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
1275         of AltiVec.
1277 2017-02-08  Martin Jambor  <mjambor@suse.cz>
1279         PR ipa/79375
1280         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
1281         whether allocation happened.
1282         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
1283         nothing was allocated.
1285 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
1287         PR tree-optimization/79408
1288         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
1289         constant, but SSA_NAME with a known integer range, use the minimum
1290         of that range instead of op1 to determine if modulo can be replaced
1291         with its first operand.
1293 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1295         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
1297 2017-02-08  Richard Biener  <rguenther@suse.de>
1299         PR tree-optimization/71824
1300         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
1301         Check all loops contained in the merged region.
1303 2017-02-07  Andrew Pinski  <apinski@cavium.com>
1305         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
1307 2017-02-07  Andrew Pinski  <apinski@cavium.com>
1309         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
1310         (thunderxt88): Likewise.
1311         (thunderxt81): Disable LSE and change v8.1 to v8.
1312         (thunderxt83): Likewise.
1314 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
1315             Richard Biener  <rguenther@suse.de>
1317         PR middle-end/79399
1318         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
1319         type from int to size_t.
1320         * ira-costs.c (struct_costs_size): Change type from int to size_t.
1322 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
1324         PR rtl-optimization/79386
1325         * cprop.c (bypass_conditional_jumps): Initialize
1326         bypass_last_basic_block already before splitting bbs after
1327         unconditional traps...
1328         (bypass_conditional_jumps): ... rather than here.
1330         PR target/79299
1331         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
1332         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
1333         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
1334         fix -masm=intel patterns.
1336 2017-02-07  Richard Biener  <rguenther@suse.de>
1338         PR tree-optimization/79256
1339         PR middle-end/79278
1340         * builtins.c (get_object_alignment_2): Use min_align_of_type
1341         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
1342         and ADJUST_FIELD_ALIGN.
1344         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
1345         type parameter.
1346         * doc/tm.texi: Regenerate.
1347         * stor-layout.c (layout_decl): Adjust.
1348         (update_alignment_for_field): Likewise.
1349         (place_field): Likewise.
1350         (min_align_of_type): Likewise.
1351         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
1352         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
1353         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
1354         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
1355         * config/frv/frv.c (frv_adjust_field_align): Likewise.
1356         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
1357         * config/i386/i386.c (x86_field_alignment): Likewise.
1358         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
1359         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
1360         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
1361         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
1362         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
1363         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
1364          Likewise.
1366         Revert
1367         2017-01-30  Richard Biener  <rguenther@suse.de>
1369         PR tree-optimization/79256
1370         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
1371         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
1372         alignment on TYPE.
1374 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
1376         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
1377         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
1378         builtins to SImode and emit a zero-extend, if necessary.
1380 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
1382         * docs/invoke.texi (RISC-V Options): Alphabetize.
1384 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
1386         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
1387         options.
1389 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
1391         * config/riscv/riscv.c: New file.
1392         * gcc/common/config/riscv/riscv-common.c: Likewise.
1393         * config.gcc: Likewise.
1394         * config/riscv/constraints.md: Likewise.
1395         * config/riscv/elf.h: Likewise.
1396         * config/riscv/generic.md: Likewise.
1397         * config/riscv/linux.h: Likewise.
1398         * config/riscv/multilib-generator: Likewise.
1399         * config/riscv/peephole.md: Likewise.
1400         * config/riscv/pic.md: Likewise.
1401         * config/riscv/predicates.md: Likewise.
1402         * config/riscv/riscv-builtins.c: Likewise.
1403         * config/riscv/riscv-c.c: Likewise.
1404         * config/riscv/riscv-ftypes.def: Likewise.
1405         * config/riscv/riscv-modes.def: Likewise.
1406         * config/riscv/riscv-opts.h: Likewise.
1407         * config/riscv/riscv-protos.h: Likewise.
1408         * config/riscv/riscv.h: Likewise.
1409         * config/riscv/riscv.md: Likewise.
1410         * config/riscv/riscv.opt: Likewise.
1411         * config/riscv/sync.md: Likewise.
1412         * config/riscv/t-elf-multilib: Likewise.
1413         * config/riscv/t-linux: Likewise.
1414         * config/riscv/t-linux-multilib: Likewise.
1415         * config/riscv/t-riscv: Likewise.
1416         * configure.ac: Likewise.
1417         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
1418         Waterman as RISC-V maintainers.
1419         * doc/install.texi: Add RISC-V entries.
1420         * doc/invoke.texi: Add RISC-V options section.
1421         * doc/md.texi: Add RISC-V constraints section.
1422         * configure: Regenerated.
1424 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1426         PR target/66144
1427         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
1428         false values to be constant vectors with all 0 or all 1 bits set.
1429         (vcondu<mode><mode>): Likewise.
1430         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
1431         predicate.
1432         (fpmask_comparison_operator): Update comment.
1433         (vecint_comparison_operator): New predicate.
1434         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
1435         vector conditionals when the true and false values are constant
1436         vectors with all 0 bits or all 1 bits set.
1438 2017-02-06  Martin Sebor  <msebor@redhat.com>
1440         PR  tree-optimization/79376
1441         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
1443 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
1445         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
1446         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
1447         to simplify split condition.
1449 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
1451         * omp-expand.c (oxpand_omp_atomic_fetch_op,
1452         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
1453         false.
1455 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
1457         PR rtl-optimization/68664
1458         * target.def (can_speculate_insn): New hook.
1459         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
1460         * doc/tm.texi: Regenerate.
1461         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
1462         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
1463         (rs6000_sched_can_speculate_insn): New function.
1465 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
1467         PR tree-optimization/79284
1468         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
1469         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
1470         vectorizable_mask_load_store, vectorizable_operation,
1471         vect_is_simple_cond, get_same_sized_vectype): Use it instead
1472         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
1473         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
1474         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
1475         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1476         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
1477         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
1478         is_gimple_assign (stmt).  Replace another such test with
1479         is_gimple_assign (stmt).
1481 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
1483         PR target/78883
1484         * config/avr/avr.c (rtl-iter.h): Include it.
1485         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
1486         (avr_legitimate_combined_insn): ...and implementation.
1488 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1490         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
1491         * config/s390/s390.c (s390_const_operand_ok)
1492         (s390_canonicalize_comparison, s390_extract_part)
1493         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
1494         (s390_contiguous_bitmask_p, s390_rtx_costs)
1495         (legitimize_pic_address): Likewise.
1496         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
1497         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
1498         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
1499         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
1500         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
1502 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
1504         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
1505         REGNO($0) == REGNO($1).
1507 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1509         * config/s390/linux.h(SIZE_TYPE): Add comment.
1511 2017-02-06  Julian Brown  <julian@codesourcery.com>
1512             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
1513             Virendra Pathak  <virendra.pathak@broadcom.com>
1515         * config/aarch64/aarch64-cores.def: Change the scheduler
1516         to Thunderx2t99.
1517         * config/aarch64/aarch64.md: Include thunderx2t99.md.
1518         * config/aarch64/thunderx2t99.md: New file.
1520 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
1522         * doc/standards.texi (Go Language): Update link to language
1523         standard.
1525 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
1527         * tree-eh.c (lower_resx): Sanitize profile.
1528         (cleanup_empty_eh_move_lp): Likewise.
1530 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
1532         PR tree-ssa/79347
1533         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
1534         ELSE_PROB.
1535         * cfgloopmanip.h (loop_version): Update prototype.
1536         * modulo-sched.c (sms_schedule): Update call of loop_version.
1537         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
1538         * tree-parloops.c (gen_parallel_loop): Likewise.
1539         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
1540         * tree-ssa-loop-split.c (split_loop): Likewise.
1541         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
1542         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
1544 2017-02-05  Martin Liska  <mliska@suse.cz>
1546         PR bootstrap/78985
1547         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
1548         variable to NULL.
1549         (print_operand_address): Initialize a struct to zero.
1551 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
1553         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
1554         garbage collector only in textual form.
1556 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
1557         
1558         * doc/extend.texi (x86 specific memory model extensions for
1559         transactional memory): Simplify a phrase.
1561 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
1563         PR target/79353
1564         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
1565         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
1566         (atomic_storedi_1): Likewise.
1568 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
1570         PR tree-optimization/79338
1571         * tree-parloops.c (gather_scalar_reductions): Don't call
1572         vect_analyze_loop_form for loop->inner before destroying loop's
1573         loop_vinfo.
1575 2017-02-03  Martin Sebor  <msebor@redhat.com>
1577         PR tree-optimization/79327
1578         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
1579         when precision has resulted in leading zeros.
1580         (format_integer): Adjust the likely counter to assume an unknown
1581         argument that may be zero is non-zero.
1583 2017-02-03  Jason Merrill  <jason@redhat.com>
1585         PR c++/78689
1586         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
1587         avoid copying non-taken branch.
1589 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
1591         PR tree-optimization/79340
1592         * tree-vect-loop.c (vectorizable_reduction): Release
1593         vec_defs elements after safe_splicing them into other vectors.
1594         Formatting fixes.
1596         PR tree-optimization/79327
1597         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
1598         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
1599         dirtype.
1600         (format_integer): Use wide_int_to_tree instead of build_int_cst
1601         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
1602         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
1603         of shortest and longest sequence.
1605 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
1607         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
1608         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
1610 2017-02-03  Walter Lee  <walt@tilera.com>
1612         PR target/78862
1613         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
1614         after initial stackframe link reg save.
1615         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
1617 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
1619         PR target/79354
1620         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
1621         wu for stxssp alternative.
1623 2017-02-03  Martin Sebor  <msebor@redhat.com>
1625         PR tree-optimization/79352
1626         * gimple-fold.c (get_range_strlen): Add argument.
1627         (get_range_strlen): Change return type to bool.
1628         (get_maxval_strlen): Pass in a dummy argument.
1629         * gimple-fold.h (get_range_strlen): Change return type to bool.
1630         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
1631         * tree.h (array_at_struct_end_p): Add argument.
1632         * tree.c (array_at_struct_end_p): Handle it.
1634 2017-02-03  Martin Liska  <mliska@suse.cz>
1636         PR lto/66295
1637         * multiple_target.c (create_dispatcher_calls): Redirect edge
1638         from a caller of a dispatcher.
1639         (expand_target_clones): Make the clones local.
1640         (ipa_target_clone): Do both target clones and resolvers.
1641         (ipa_dispatcher_calls): Remove the pass.
1642         (pass_dispatcher_calls::gate): Likewise.
1643         (make_pass_dispatcher_calls): Likewise.
1644         * passes.def (pass_target_clone): Put as very first IPA early
1645         pass.
1647 2017-02-03  Martin Liska  <mliska@suse.cz>
1649         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
1650         in case of a function with ifunc attribute.
1652 2017-02-03  Martin Liska  <mliska@suse.cz>
1654         * cgraph.c (cgraph_node::dump): Dump function version info.
1655         * symtab.c (symtab_node::dump_base): Add missing new line.
1657 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
1659         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
1660         (ifcombine_ifandif): Use it.
1662 2017-02-03  Martin Liska  <mliska@suse.cz>
1664         * doc/invoke.texi: Document default value for
1665         use-after-scope-direct-emission-threshold.
1667 2017-02-03  Martin Liska  <mliska@suse.cz>
1669         PR tree-optimization/79339
1670         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
1671         (format_floating): Likewise.
1673 2017-02-03  Martin Liska  <mliska@suse.cz>
1675         PR ipa/79337
1676         * ipa-prop.c (ipa_node_params_t::insert): Remove current
1677         implementation.
1678         (ipa_node_params_t::remove): Likewise.
1679         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
1680         initialization from removed ipa_node_params_t::insert.
1681         (ipa_node_params::~ipa_node_params): Move from removed
1682         ipa_node_params_t::release.
1683         * symbol-summary.h (symbol_summary::m_released): New member.
1684         Do not release a summary twice.  Do not allow to call finalizer
1685         for types of a summary that live in GGC memory.
1687 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
1689         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
1690         cmp_branch fusion.
1692 2017-02-02  Martin Sebor  <msebor@redhat.com>
1694         PR middle-end/79275
1695         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
1696         (format_string): Tighten up the range of output for non-constant
1697         strings and correct the expected range for wide non-constant strings.
1699 2017-02-02  Martin Sebor  <msebor@redhat.com>
1701         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
1703         PR middle-end/32003
1704         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
1705         index.
1706         (-fdump-tree-@var): Add to index and document how to come up
1707         with pass-specific option and dump file names.
1708         (-fdump-passes): Clarify where to look for output.
1710 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
1712         PR middle-end/77445
1713         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
1714         statistics of the analyzed path; allow threading for speed when
1715         any of BBs along the path are optimized for speed.
1717 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
1719         PR middle-end/78468
1720         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
1721         settings of the virtual registers.
1723         Revert again
1724         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1726         * explow.c (get_dynamic_stack_size): Take known alignment of stack
1727         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
1728         needed.
1730 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1732         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
1733         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
1735 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1737         * config/s390/s390.md: Add missing comments with the expanded
1738         mnemonics.
1739         * config/s390/vector.md: Likewise.
1740         * config/s390/vx-builtins.md: Likewise.
1742 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
1744         PR target/79197
1745         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
1746         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
1747         conditions on a single line.
1749 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1751         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
1752         __S390_VX__ to __VX__.
1754 2017-02-01  Andrew Pinski  <apinski@cavium.com>
1756         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
1757         stmt_info to record_stmt_cost.
1758         (vect_get_known_peeling_cost): Pass stmt_info if known to
1759         record_stmt_cost.
1760         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
1761         cpu_vector_cost field into
1762         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
1763         field into vec_int_stmt_cost and vec_fp_stmt_cost.
1764         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
1765         splitting of scalar_stmt_cost and vec_stmt_cost.
1766         (thunderx_vector_cost): Likewise.
1767         (cortexa57_vector_cost): LIkewise.
1768         (exynosm1_vector_cost): Likewise.
1769         (xgene1_vector_cost): Likewise.
1770         (thunderx2t99_vector_cost): Improve after the splitting of the two
1771         fields.
1772         (aarch64_builtin_vectorization_cost): Update for the splitting of
1773         scalar_stmt_cost and vec_stmt_cost.
1775 2017-02-01  Torvald Riegel  <triegel@redhat.com>
1776             Richard Henderson  <rth@redhat.com>
1778         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
1779         conditional on existance of a fast atomic load.
1780         * optabs-query.c (can_atomic_load_p): New function.
1781         * optabs-query.h (can_atomic_load_p): Declare it.
1782         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
1783         no fast atomic load is available for the particular size of access.
1784         (expand_atomic_compare_and_swap): Likewise.
1785         (expand_atomic_load): Likewise.
1786         (expand_atomic_store): Likewise.
1787         (expand_atomic_fetch_op): Likewise.
1788         * testsuite/lib/target-supports.exp
1789         (check_effective_target_sync_int_128): Remove x86 because it provides
1790         no fast atomic load.
1791         (check_effective_target_sync_int_128_runtime): Likewise.
1793 2017-02-01  Richard Biener  <rguenther@suse.de>
1795         * graphite.c: Include tree-vectorizer.h for find_loop_location.
1796         (graphite_transform_loops): Provide opt-info for optimized nests.
1797         * tree-parloop.c (parallelize_loops): Provide opt-info for
1798         parallelized loops.
1800 2017-02-01  Richard Biener  <rguenther@suse.de>
1802         PR middle-end/79315
1803         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
1804         was not set before.
1806 2017-02-01  Richard Biener  <rguenther@suse.de>
1808         PR tree-optimization/71824
1809         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
1810         Verify the loops are valid in the merged SESE region.
1811         (scop_detection::can_represent_loop_1): Check analyzing the
1812         evolution of the number of iterations in the region succeeds.
1814 2017-01-31  Ian Lance Taylor  <iant@golang.org>
1816         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
1817         REG_ARGS_SIZE note to 32-bit push insns and call insn.
1819 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
1821         PR preprocessor/79210
1822         * input.c (get_substring_ranges_for_loc): Replace line_width
1823         assertion with error-handling.
1825 2017-01-31  Richard Biener  <rguenther@suse.de>
1827         PR tree-optimization/77318
1828         * graphite-sese-to-poly.c (extract_affine): Fix assert.
1829         (create_pw_aff_from_tree): Take loop parameter.
1830         (add_condition_to_pbb): Pass loop of the condition to
1831         create_pw_aff_from_tree.
1833 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
1835         * config/s390/s390.c (s390_asan_shadow_offset): New function.
1836         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
1838 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
1840         PR target/78597
1841         PR target/79038
1842         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
1843         no longer used.
1844         (convert_int_to_float128): Likewise.
1845         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
1846         (convert_int_to_float128): Likewise.
1847         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
1848         (UNSPEC_IEEE128_CONVERT): Likewise.
1849         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
1850         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
1851         Use local variables for IBM extended format.
1852         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
1853         (fix_trunc<mode>si2_fprs): Likewise.
1854         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
1855         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
1856         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
1857         to know that we can now have integers of all sizes in vector
1858         registers.
1859         (fix<uns>_<mode>di2_hw): Likewise.
1860         (float<uns>_<mode>si2_hw): Likewise.
1861         (fix_<mode>si2_hw): Likewise.
1862         (fixuns_<mode>si2_hw): Likewise.
1863         (float<uns>_<mode>di2_hw): Likewise.
1864         (float_<mode>di2_hw): Likewise.
1865         (float_<mode>si2_hw): Likewise.
1866         (floatuns_<mode>di2_hw): Likewise.
1867         (floatuns_<mode>si2_hw): Likewise.
1868         (xscvqp<su>wz_<mode>): Delete, no longer used.
1869         (xscvqp<su>dz_<mode>): Likewise.
1870         (xscv<su>dqp_<mode>): Likewise.
1871         (ieee128_mfvsrd_64bit): Likewise.
1872         (ieee128_mfvsrd_32bit): Likewise.
1873         (ieee128_mfvsrwz): Likewise.
1874         (ieee128_mtvsrw): Likewise.
1875         (ieee128_mtvsrd_64bit): Likewise.
1876         (ieee128_mtvsrd_32bit): Likewise.
1878 2017-01-31  Martin Liska  <mliska@suse.cz>
1880         PR ipa/79285
1881         * ipa-prop.c (ipa_free_all_node_params): Call release method
1882         instead of ~sumbol_summary to not to trigger double times
1883         dtor of hash_map.
1885 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
1887         PR tree-optimization/71691
1888         * bitmap.h (class auto_bitmap): New.
1889         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
1890         is_maybe_undefined instead of ssa_undefined_value_p.
1892 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1894         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
1895         __S390_ARCH_LEVEL__ to __ARCH__.
1897 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
1899         PR tree-optimization/79267
1900         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
1901         if should_remove_lhs_p is true.
1903 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
1905         PR debug/63238
1906         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
1907         (add_alignment_attribute): New.
1908         (base_type_die): Add alignment attribute.
1909         (subrange_type_die): Likewise.
1910         (modified_type_die): Likewise.
1911         (gen_array_type_die): Likewise.
1912         (gen_descr_array_type_die: Likewise.
1913         (gen_enumeration_type_die): Likewise.
1914         (gen_subprogram_die): Likewise.
1915         (gen_variable_die): Likewise.
1916         (gen_field_die): Likewise.
1917         (gen_ptr_to_mbr_type_die): Likewise.
1918         (gen_struct_or_union_type_die): Likewise.
1919         (gen_subroutine_type_die): Likewise.
1920         (gen_typedef_die): Likewise.
1921         (base_type_cmp): Compare alignment attribute.
1923 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1925         PR target/79170
1926         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
1927         (setb_unsigned) New pattern for setb with CCUNS.
1928         * config/rs6000/rs6000.c (expand_block_compare): Use a different
1929         subfc./subfe sequence to avoid overflow problems.  Generate a
1930         shorter sequence with cmpld/setb for power9.
1931         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
1932         for generating subfc. instruction.
1933         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
1934         now uses this instruction.
1936 2017-01-30  Ian Lance Taylor  <iant@google.com>
1938         PR debug/79289
1939         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
1940         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
1942 2017-01-30  Martin Sebor  <msebor@redhat.com>
1944         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
1945         Move constant to the right of a relational operator.
1946         (get_mpfr_format_length, format_character, format_string): Ditto.
1947         (should_warn_p, maybe_warn): Same.
1949         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
1951 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
1953         PR lto/79061
1954         * asan.c (get_translation_unit_decl): Remove function.
1955         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
1957 2017-01-30  Martin Liska  <mliska@suse.cz>
1959         PR gcov-profile/79259
1960         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
1961         -fprofile-generate.
1963 2017-01-30  Martin Liska  <mliska@suse.cz>
1965         PR bootstrap/78985
1966         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
1967         Initialize variables with NULL value.
1969 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
1971         PR target/79260
1972         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
1973         tm_p_file.
1974         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
1976 2017-01-30  Richard Biener  <rguenther@suse.de>
1978         PR tree-optimization/79276
1979         * tree-vrp.c (process_assert_insertions): Properly adjust common
1980         when removing a duplicate.
1982         * gcc.dg/torture/pr79276.c: New testcase.
1984 2017-01-30  Richard Biener  <rguenther@suse.de>
1986         PR tree-optimization/79256
1987         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
1988         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
1989         alignment on TYPE.
1990         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
1992 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1994         PR target/79240
1995         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
1996         ("*r<noxa>sbg_<mode>_sll_bitmask")
1997         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
1998         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
1999         Use contiguous_bitmask_nowrap_operand.
2001 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2003         PR target/79268
2004         * config/rs6000/altivec.h (vec_xl): Revise #define.
2005         (vec_xst): Likewise.
2007 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
2009         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
2011 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
2013         PR rtl-optimization/79194
2014         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
2015         traps before call to bypass_conditional_jumps.
2017 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
2019         PR tree-optimization/71374
2020         * lra-constraints.c (check_conflict_input_operands): New.
2021         (match_reload): Use it.
2023 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
2025         PR target/79131
2026         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
2027         account to calculate conflict_set.
2029 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
2031         PR rtl-optimization/78559
2032         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
2033         other_insn in combine.
2035 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
2037         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
2038         uint16_type_node for BT_UINT16.
2040 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
2042         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
2043         "RTL Tests" to menu.
2044         (GIMPLE Tests): New node.
2045         (RTL Tests): New node.
2047 2017-01-27  Richard Biener  <rguenther@suse.de>
2049         PR tree-optimization/79245
2050         * tree-loop-distribution.c (distribute_loop): Apply cost
2051         modeling also to detected patterns.
2053 2017-01-27  Richard Biener  <rguenther@suse.de>
2055         PR tree-optimization/71433
2056         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
2057         (compare_assert_loc): New function.
2058         (process_assert_insertions): Sort and optimize assert locations
2059         to remove duplicates and push down identical assertions on
2060         edges to their destination block.
2062 2017-01-27  Richard Biener  <rguenther@suse.de>
2064         PR tree-optimization/79244
2065         * tree-vrp.c (remove_range_assertions): Forcefully propagate
2066         out SSA names even if abnormal.
2068 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
2070         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
2071         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
2072         instead of MPFR_RNDN.
2074 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
2076         PR target/79239
2077         * arm.c (arm_option_override): Don't call build_target_option_node
2078         until after doing all option overrides.
2079         (arm_valid_target_attribute_tree): Likewise.
2081 2017-01-27  Martin Liska  <mliska@suse.cz>
2083         * doc/invoke.texi (-fprofile-arcs): Document profiling support
2084         for {cd}tors and C++ {cd}tors.
2086 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2088         * config/s390/s390.md ("*setmem_long_and")
2089         ("*setmem_long_and_31z"): Use zero_extend instead of and.
2091 2017-01-26  Martin Sebor  <msebor@redhat.com>
2093         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
2094         of precision.
2096 2017-01-26  Martin Sebor  <msebor@redhat.com>
2098         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
2099         HAVE_DFmode before using XFmode or DFmode.
2100         (parse_directive): Avoid using the z length modifier to avoid
2101         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
2103         PR middle-end/78703
2104         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
2105         to accept adjustment as an array.
2106         (get_int_range): New function.
2107         (struct directive): Make width and prec arrays.
2108         (directive::set_width, directive::set_precision): Call get_int_range.
2109         (format_integer, format_floating): Handle width and precision ranges.
2110         (format_string, parse_directive): Same.
2112 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
2114         PR debug/79129
2115         * dwarf2out.c (generate_skeleton_bottom_up): For children with
2116         comdat_type_p set, just clone them, but keep the children in the
2117         original DIE.
2119         PR debug/78835
2120         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
2121         which have direct callers with -fvar-tracking-assignments enabled
2122         in the current TU.
2123         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
2124         inside of type units.
2126 2017-01-26  Martin Sebor  <msebor@redhat.com>
2128         PR middle-end/78703
2129         * gimple-ssa-sprintf.c (struct result_range): Add likely and
2130         unlikely counters.
2131         (struct format_result): Replace number_chars, number_chars_min,
2132         and number_chars_max with a single member of struct result_range.
2133         Remove bounded.
2134         (format_result::operator+=): Adjust.
2135         (struct fmtresult): Remove bounded.  Handle likely and unlikely
2136         counters.
2137         (fmtresult::adjust_for_width_or_precision): New function.
2138         (fmtresult:type_max_digits): New function.
2139         (bytes_remaining): Handle likely and unlikely counters.
2140         (min_bytes_remaining): Remove.
2141         (format_percent): Simplify.
2142         (format_integer, format_floating): Set likely and unlikely counters.
2143         (get_string_length, format_character, format_string): Same.
2144         (format_plain, should_warn_p): New function.
2145         (maybe_warn): Call should_warn_p.  Update diagnostic messages
2146         and handle those for all directives, including plain strings.
2147         (format_directive): Handle likely and unlikely counters.
2148         Remove unnecessary quoting from diagnostics.  Add an informational
2149         note.
2150         (add_bytes): Remove.
2151         (pass_sprintf_length::compute_format_length): Simplify.
2152         (try_substitute_return_value): Handle likely and unlikely counters.
2154 2017-01-26  Carl Love  <cel@us.ibm.com>
2156         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
2157         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
2159 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
2161         PR target/79131
2162         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
2163         endianess for subregs into account.
2164         * lra-constraints.c (lra_constraints): Do risky transformations
2165         always on the first iteration.
2166         * lra-lives.c (check_pseudos_live_through_calls): Add arg
2167         last_call_used_reg_set.
2168         (process_bb_lives): Define and use last_call_used_reg_set.
2169         * lra.c (lra): Always continue after lra_constraints on the first
2170         iteration.
2172 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
2174         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
2175         constant.
2176         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
2178 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
2180         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
2181         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
2182         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
2183         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
2184         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
2185         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
2186         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
2187         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
2188         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
2190 2017-01-26  Marek Polacek  <polacek@redhat.com>
2192         PR c/79199
2193         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
2194         for the third operand.
2196 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
2198         PR middle-end/79236
2199         * omp-low.c (struct omp_context): Add simt_stmt field.
2200         (scan_omp_for): Return omp_context *.
2201         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
2202         context to the _simt_ SIMD stmt.
2203         (lower_omp_for): For combined SIMD with sibling _simt_
2204         SIMD, make sure to use the same decls in _looptemp_
2205         clauses as in the sibling.
2207 2017-01-26  David Sherwood  <david.sherwood@arm.com>
2209         PR middle-end/79212
2210         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
2211         all contexts.
2213 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
2215         PR target/70465
2216         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
2217         emit fld b; fld a; if possible.
2219         * brig-builtins.def: Update copyright years.
2220         * config/arm/arm_acle_builtins.def: Update copyright years.
2222 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
2224         PR target/79179
2225         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
2226         constraint instead of o for the stxsd instruction.
2228 2017-01-25  Carl Love  <cel@us.ibm.com>
2230         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
2231         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
2233 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
2235         * doc/invoke.texi (C++ Dialect Options): Fix typo.
2237 2017-01-25  Richard Biener  <rguenther@suse.de>
2239         PR tree-optimization/69264
2240         * target.def (vector_alignment_reachable): Improve documentation.
2241         * doc/tm.texi: Regenerate.
2242         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
2243         and add a comment.
2244         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
2245         earlier changes with respect to TYPE_USER_ALIGN.
2246         (vector_alignment_reachable_p): Likewise.  Improve dumping.
2248 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2250         PR target/79145
2251         * config/arm/arm.md (xordi3): Force constant operand into a register
2252         for TARGET_IWMMXT.
2254 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2256         * doc/invoke.texi (-fstore-merging): Correct default optimization
2257         levels at which it is enabled.
2258         (-O): Move -fstore-merging from list to...
2259         (-O2): ... Here.
2261 2017-01-25  Richard Biener  <rguenther@suse.de>
2263         PR debug/78363
2264         * omp-expand.c: Include debug.h.
2265         (expand_omp_taskreg): Make sure to generate early debug before
2266         outlining anything from a function.
2267         (expand_omp_target): Likewise.
2268         (grid_expand_target_grid_body): Likewise.
2270 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
2272         PR lto/79061
2273         * asan.c (get_translation_unit_decl): New function.
2274         (asan_add_global): Extract modules file name from globals
2275         TRANSLATION_UNIT_DECL name.
2277 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
2279         PR target/77439
2280         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
2281         for long calls with APCS frame and VFP.
2283 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
2285         * cfg.c (original_copy_tables_initialized_p): New function.
2286         * cfg.h (original_copy_tables_initialized_p): New decl.
2287         * cfgrtl.c (relink_block_chain): Guard the call to
2288         free_original_copy_tables with a call to
2289         original_copy_tables_initialized_p.
2290         * cgraph.h (symtab_node::native_rtl_p): New decl.
2291         * cgraphunit.c (symtab_node::native_rtl_p): New function.
2292         (symtab_node::needed_p): Don't assert for early assembly output
2293         for __RTL functions.
2294         (cgraph_node::finalize_function): Set "force_output" for __RTL
2295         functions.
2296         (cgraph_node::analyze): Bail out early for __RTL functions.
2297         (analyze_functions): Update assertion to support __RTL functions.
2298         (cgraph_node::expand): Bail out early for __RTL functions.
2299         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
2300         __RTL functions.
2301         * function.h (struct function): Update comment for field
2302         "pass_startwith".
2303         * gimple-expr.c: Include "tree-pass.h".
2304         (gimple_has_body_p): Return false for __RTL functions.
2305         * Makefile.in (OBJS): Add run-rtl-passes.o.
2306         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
2307         accessor.
2308         (gcc::pass_manager::get_clean_slate): New accessor.
2309         * passes.c: Include "insn-addr.h".
2310         (should_skip_pass_p): Add logging.  Update logic for running
2311         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
2312         property-provider override so it is only done for gimple passes.
2313         Don't skip dfinit.
2314         (skip_pass): New function.
2315         (execute_one_pass): Call skip_pass when skipping passes.
2316         * read-md.c (md_reader::read_char): Support filtering
2317         the input to a subset of line numbers.
2318         (md_reader::md_reader): Initialize fields
2319         m_first_line and m_last_line.
2320         (md_reader::read_file_fragment): New function.
2321         * read-md.h (md_reader::read_file_fragment): New decl.
2322         (md_reader::m_first_line): New field.
2323         (md_reader::m_last_line): New field.
2324         * read-rtl-function.c (function_reader::create_function): Only
2325         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
2326         curr_properties.  Set DECL_INITIAL to a dummy block.
2327         (read_rtl_function_body_from_file_range): New function.
2328         * read-rtl-function.h (read_rtl_function_body_from_file_range):
2329         New decl.
2330         * run-rtl-passes.c: New file.
2331         * run-rtl-passes.h: New file.
2333 2017-01-24 Jeff Law  <law@redhat.com>
2335         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
2336         buffer size.
2338 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
2340         PR tree-optimization/79159
2341         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
2342         (record_nonwrapping_iv): Improve boundary using above function if no
2343         value range information.
2345 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
2346             Martin Jambor  <mjambor@suse.cz>
2348         * brig-builtins.def: New file.
2349         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
2350         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
2351         (DEF_HSAIL_SAT_BUILTIN): Likewise.
2352         (DEF_HSAIL_INTR_BUILTIN): Likewise.
2353         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
2354         * builtin-types.def (BT_INT8): New.
2355         (BT_INT16): Likewise.
2356         (BT_UINT8): Likewise.
2357         (BT_UINT16): Likewise.
2358         (BT_FN_ULONG): Likewise.
2359         (BT_FN_UINT_INT): Likewise.
2360         (BT_FN_UINT_ULONG): Likewise.
2361         (BT_FN_UINT_LONG): Likewise.
2362         (BT_FN_UINT_PTR): Likewise.
2363         (BT_FN_ULONG_PTR): Likewise.
2364         (BT_FN_INT8_FLOAT): Likewise.
2365         (BT_FN_INT16_FLOAT): Likewise.
2366         (BT_FN_UINT32_FLOAT): Likewise.
2367         (BT_FN_UINT16_FLOAT): Likewise.
2368         (BT_FN_UINT8_FLOAT): Likewise.
2369         (BT_FN_UINT64_FLOAT): Likewise.
2370         (BT_FN_UINT16_UINT32): Likewise.
2371         (BT_FN_UINT32_UINT16): Likewise.
2372         (BT_FN_UINT16_UINT16_UINT16): Likewise.
2373         (BT_FN_INT_PTR_INT): Likewise.
2374         (BT_FN_UINT_PTR_UINT): Likewise.
2375         (BT_FN_LONG_PTR_LONG): Likewise.
2376         (BT_FN_ULONG_PTR_ULONG): Likewise.
2377         (BT_FN_VOID_UINT64_UINT64): Likewise.
2378         (BT_FN_UINT8_UINT8_UINT8): Likewise.
2379         (BT_FN_INT8_INT8_INT8): Likewise.
2380         (BT_FN_INT16_INT16_INT16): Likewise.
2381         (BT_FN_INT_INT_INT): Likewise.
2382         (BT_FN_UINT_FLOAT_UINT): Likewise.
2383         (BT_FN_FLOAT_UINT_UINT): Likewise.
2384         (BT_FN_ULONG_UINT_UINT): Likewise.
2385         (BT_FN_ULONG_UINT_PTR): Likewise.
2386         (BT_FN_ULONG_ULONG_ULONG): Likewise.
2387         (BT_FN_UINT_UINT_UINT): Likewise.
2388         (BT_FN_VOID_UINT_PTR): Likewise.
2389         (BT_FN_UINT_UINT_PTR: Likewise.
2390         (BT_FN_UINT32_UINT64_PTR): Likewise.
2391         (BT_FN_INT_INT_UINT_UINT): Likewise.
2392         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
2393         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
2394         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
2395         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
2396         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
2397         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
2398         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
2399         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
2400         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
2401         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
2402         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
2403         * doc/frontends.texi: List BRIG FE.
2404         * doc/install.texi (Testing): Add BRIG tesring requirements.
2405         * doc/invoke.texi (Overall Options): Mention BRIG.
2406         * doc/standards.texi (Standards): Doucment BRIG HSA version.
2408 2017-01-24  Richard Biener  <rguenther@suse.de>
2410         PR translation/79208
2411         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
2413 2017-01-24  Martin Jambor  <mjambor@suse.cz>
2415         PR bootstrap/79198
2416         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
2417         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
2418         and known_contexts.
2420 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
2422         PR middle-end/79123
2423         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
2424         casts from signed to unsigned really don't have a range.
2426 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
2428         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
2429         GMP_RNDx for compatiblity.
2431 2017-01-24  Martin Liska  <mliska@suse.cz>
2433         PR bootstrap/79132
2434         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
2435         that would prevent us to call alloca with -1 as argument.
2437 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
2439         * dwarf2out.c (output_compilation_unit_header, output_file_names):
2440         Avoid -Wformat-security warning.
2442 2017-01-23  Andrew Pinski  <apinski@cavium.com>
2444         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
2445         cost table.
2447 2017-01-23  Martin Sebor  <msebor@redhat.com>
2449         PR middle-end/78703
2450         * gimple-ssa-sprintf.c (warn_level): New global.
2451         (format_integer): Use it here and throughout the rest of the file.
2452         Use the same switch to compute sign as base.
2453         (maybe_warn): New function.
2454         (format_directive): Factor out warnings into maybe_warn.
2455         Add debugging output.  Use warn_level.
2456         (add_bytes): Use warn_level.
2457         (pass_sprintf_length::compute_format_length): Add debugging output.
2458         (try_substitute_return_value): Same.
2459         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
2461         PR middle-end/78703
2462         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
2463         (struct fmtresult, format_integer, format_floating): Adjust.
2464         (fmtresult::fmtresult): Set max correctly in two argument ctor.
2465         (get_string_length, format_string,format_directive): Same.
2466         (pass_sprintf_length::compute_format_length): Same.
2467         (try_substitute_return_value): Simplify slightly.
2469         PR middle-end/78703
2470         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
2471         (fmtresult::operator+=): Outlined.
2472         (struct fmtresult): Add ctors.
2473         (struct conversion_spec): Rename...
2474         (struct directive): ...to this.  Add and remove data members.
2475         (directive::set_width, directive::set_precision): New functions.
2476         (format_percent): Use fmtresult ctor.
2477         (get_width_and_precision): Remove.
2478         (format_integer): Make naming changes.  Avoid computing width and
2479         precision.
2480         (format_floating): Same.  Adjust indentation.
2481         (format_character, format_none): New functions.
2482         (format_string): Moved character handling to format_character.
2483         (format_directive): Remove arguments, change return type.
2484         (parse_directive): New function.
2485         (pass_sprintf_length::compute_format_length): Move directive
2486         parsing to parse_directive.
2488 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
2490         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
2491         (assign_assembler_name_if_needed): ... this.
2492         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
2493         (assign_assembler_name_if_needed): ... this.
2494         (free_lang_data_in_cgraph): Adjust callers.
2495         * cgraphunit.c (cgraph_node::analyze): Likewise.
2496         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
2497         Likewise.
2499 2017-01-23  Richard Biener  <rguenther@suse.de>
2501         PR tree-optimization/79088
2502         PR tree-optimization/79188
2503         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
2504         resetting loop bounds after last path deletion.  Reset loop
2505         bounds of the target loop, make code match the comments.
2506         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
2507         Make sure loops need no fixups.
2509 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2511         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
2512         exponent support with double type for first argument.
2513         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
2514         type returned by __builtin_vec_extract_sig,
2515         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
2516         functions from "vector int" to "vector unsigned int" or from
2517         "vector long long int" to "vector unsigned long long int".
2518         Changed type returned by __builtin_vec_extract_exp,
2519         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
2520         functions from "vector int" to "vector unsigned int" or from
2521         "vector long long int" to "vector unsigned long long int".
2522         Changed return type of __builtin_vec_test_data_class,
2523         __builtin_vec_test_data_class_sp, and
2524         __builtin_vec_test_data_class_dp from "vector int" to
2525         "vector bool int" or from "vector long long int" to "vector bool
2526         long long int" and changed second argument type from "unsigned
2527         int" to "int".  Added new overloaded function forms "vector float
2528         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
2529         "vector float __builtin_vec_insert_exp_sp (vector float, vector
2530         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
2531         double, vector unsigned long long int)" and "vector double
2532         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
2533         long int)".  Changed return type of
2534         __builtin_scalar_test_data_class and
2535         __builtin_scalar_test_data_class_sp and
2536         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
2537         int" and changed second argument from "unsigned int" to "int".
2538         Changed type returned by __builtin_scalar_test_neg,
2539         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
2540         from "int" to "bool int".  Added new overloaded function form
2541         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
2542         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
2543         exponent double-precision with floating point first argument.
2544         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
2545         documentation of scalar_test_data_class, scalar_test_neg,
2546         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
2547         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
2548         vec_test_data_class built-in functions to reflect refinements in
2549         their type signatures.
2551 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
2553         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
2554         size of buf.
2555         (aarch64_elf_asm_destructor): Likewise.
2557 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
2559         PR rtl-optimization/78634
2560         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
2561         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
2562         * ifcvt.c (noce_try_cmove): Add missing cost check.
2564         PR rtl-optimization/71724
2565         * combine.c (if_then_else_cond): Look for situations where it is
2566         beneficial to undo the work of one of the recursive calls.
2568 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
2570         PR tree-optimization/70754
2571         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
2572         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
2573         combined stmt before it if not NULL.
2574         (combine_chains): Process refs reversely and compute dominance point
2575         for root ref.
2577 2017-01-23  Martin Liska  <mliska@suse.cz>
2579         PR tree-optimization/79196
2580         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
2581         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
2582         instead of memcmp.
2583         (strlen_optimize_stmt): Call the renamed function.
2585 2017-01-23  Michael Matz  <matz@suse.de>
2587         PR tree-optimization/78384
2588         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
2590 2017-01-23  Richard Biener  <rguenther@suse.de>
2592         PR tree-optimization/79186
2593         * tree-vrp.c (register_new_assert_for): Make sure we've seen
2594         both incoming edges before moving an assert.
2596 2017-01-23  Martin Jambor  <mjambor@suse.cz>
2598         * ipa-prop.c (load_from_param_1): Removed.
2599         (load_from_unmodified_param): Bits from load_from_param_1 put back
2600         here.
2601         (load_from_param): Removed.
2602         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
2603         with stmt.  Reverted back to use of load_from_unmodified_param.
2605 2017-01-23  Martin Jambor  <mjambor@suse.cz>
2607         PR ipa/79108
2608         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
2609         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
2610         field a pointer to garbage collected vector, mark lattices and
2611         ipcp_orig_node with GTY((skip)).
2612         (ipa_get_param_count): Adjust to descriptors being a pointer.
2613         (ipa_get_param): Likewise.
2614         (ipa_get_type): Likewise.
2615         (ipa_get_param_move_cost): Likewise.
2616         (ipa_set_param_used): Likewise.
2617         (ipa_get_controlled_uses): Likewise.
2618         (ipa_set_controlled_uses): Likewise.
2619         (ipa_is_param_used): Likewise.
2620         (ipa_node_params_t): Move into garbage collector.  New methods insert
2621         and remove.
2622         (ipa_node_params_sum): Annotate wth GTY(()).
2623         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
2624         garbage collected.
2625         (ipa_load_from_parm_agg): Adjust declaration.
2626         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
2627         * ipa-profile.c (ipa_profile): Likewise.
2628         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
2629         (ipa_populate_param_decls): Make descriptors parameter garbage
2630         collected.
2631         (ipa_dump_param): Adjust to descriptors being a pointer.
2632         (ipa_alloc_node_params): Likewise.
2633         (ipa_initialize_node_params): Likewise.
2634         (load_from_param_1): Make descriptors parameter garbage collected.
2635         (load_from_unmodified_param): Likewise.
2636         (load_from_param): Likewise.
2637         (ipa_load_from_parm_agg): Likewise.
2638         (ipa_node_params::~ipa_node_params): Removed.
2639         (ipa_free_all_node_params): Remove call to delete operator.
2640         (ipa_node_params_t::insert): New.
2641         (ipa_node_params_t::remove): Likewise.
2642         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
2643         copy known_csts and known_contexts vectors.
2644         (ipa_read_node_info): Adjust to descriptors being a pointer.
2645         (ipcp_modif_dom_walker): Make m_descriptors field garbage
2646         collected.
2647         (ipcp_transform_function): Make descriptors variable garbage
2648         collected.
2650 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
2652         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
2653         * config/i386/avx512dqintrin.h: Ditto.
2654         * config/i386/avx512fintrin.h: Ditto.
2655         * gcc/config/i386/i386.c: Handle new builtins.
2656         * config/i386/i386-builtin.def: Add new builtins.
2657         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
2658         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
2660 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
2661             Martin Liska  <mliska@suse.cz>
2663         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
2664         * asan.c (asan_expand_poison_ifn): Support stores and use
2665         appropriate ASAN report function.
2666         * internal-fn.c (expand_ASAN_POISON_USE): New function.
2667         * internal-fn.def (ASAN_POISON_USE): Declare.
2668         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
2669         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
2670         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
2671         ASAN_POISON calls w/o LHS.
2672         * tree-ssa.c (execute_update_addresses_taken): Create clobber
2673         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
2674         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
2675         * gimplify.c (asan_poison_variables): Add attribute
2676         use_after_scope_memory to variables that really needs to live
2677         in memory.
2678         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
2679         having the attribute.
2681 2017-01-23  Martin Liska  <mliska@suse.cz>
2683         * asan.c (create_asan_shadow_var): New function.
2684         (asan_expand_poison_ifn): Likewise.
2685         * asan.h (asan_expand_poison_ifn): New declaration.
2686         * internal-fn.c (expand_ASAN_POISON): Likewise.
2687         * internal-fn.def (ASAN_POISON): New builtin.
2688         * sanopt.c (pass_sanopt::execute): Expand
2689         asan_expand_poison_ifn.
2690         * tree-inline.c (copy_decl_for_dup_finish): Make function
2691         external.
2692         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
2693         * tree-ssa.c (is_asan_mark_p): New function.
2694         (execute_update_addresses_taken): Rewrite local variables
2695         (identified just by use-after-scope as addressable) into SSA.
2697 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
2699         * doc/install.texi (Specific): opensource.apple.com uses https
2700         now. Remove trailing slash.
2702 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
2704         * README.Portability: Remove note on an Irix compatibility issue.
2706 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
2708         * gcov.c (INCLUDE_ALGORITHM): Define.
2709         (INCLUDE_VECTOR): Define.
2710         No longer include <vector> and <algorithm> directly.
2712 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
2714         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
2715         to https.
2716         * doc/invoke.texi (Code Gen Options): Ditto.
2718 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
2720         PR lto/78407
2721         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
2723 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
2725         rtl-optimization/79125
2726         * cprop.c (local_cprop_pass): Handle cases where we make an
2727         unconditional trap.
2729 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
2731         PR target/61729
2732         PR target/77850
2733         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
2734         read from, for big endian.
2736 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
2738         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
2739         register pauth builtins for LP64 only.
2741 2017-01-20  Marek Polacek  <polacek@redhat.com>
2743         PR c/79152
2744         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
2745         non-case labels.
2747 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
2749         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
2750         of safelen status.
2751         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
2752         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
2753         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
2755 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2757         PR target/71270
2758         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
2759         in big-endian mode when they are not a single duplicated value.
2761 2017-01-20  Richard Biener  <rguenther@suse.de>
2763         * BASE-VER: Bump to 7.0.1.
2765 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
2767         * omp-low.c (omplow_simd_context): New struct.  Use it...
2768         (lower_rec_simd_input_clauses): ...here and...
2769         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
2770         references to idx, lane, max_vf, is_simt.
2772 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
2774         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
2775         mcpu=nps400.
2777 2017-01-20  Martin Jambor  <mjambor@suse.cz>
2779         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
2780         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
2781         gt-hsa-common.h.
2782         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
2783         (GTFILES): Rename hsa.c to hsa-common.c.
2784         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
2785         * hsa-dump.c: Likewise.
2786         * hsa-gen.c: Likewise.
2787         * hsa-regalloc.c: Likewise.
2788         * ipa-hsa.c: Likewise.
2789         * omp-expand.c: Likewise.
2790         * omp-low.c: Likewise.
2791         * toplev.c: Likewise.
2793 2017-01-20  Marek Polacek  <polacek@redhat.com>
2795         PR c/64279
2796         * doc/invoke.texi: Document -Wduplicated-branches.
2797         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
2798         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
2799         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
2800         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
2801         return 0 only when not OEP_LEXICOGRAPHIC.
2802         (fold_build_cleanup_point_expr): Use the expression
2803         location when building CLEANUP_POINT_EXPR.
2804         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
2805         * tree.c (add_expr): Handle error_mark_node.
2807 2017-01-20  Martin Liska  <mliska@suse.cz>
2809         PR lto/69188
2810         * tree-profile.c (init_ic_make_global_vars): Do not call
2811         finalize_decl.
2812         (gimple_init_gcov_profiler): Likewise.
2814 2017-01-20  Martin Liska  <mliska@suse.cz>
2816         PR ipa/71190
2817         * cgraph.h (maybe_create_reference): Remove argument and
2818         update comment.
2819         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
2820         argument.
2821         * ipa-cp.c (create_specialized_node): Likewise.
2822         * symtab.c (symtab_node::maybe_create_reference): Handle
2823         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
2825 2017-01-20  Martin Liska  <mliska@suse.cz>
2827         * read-rtl-function.c (function_reader::create_function): Use
2828         build_decl instread of build_decl_stat.
2830 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
2832         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
2833         * config/i386/avx512dqintrin.h: Ditto.
2834         * config/i386/avx512fintrin.h: Ditto.
2835         * config/i386/i386-builtin-types.def: Add new types.
2836         * gcc/config/i386/i386.c: Handle new types.
2837         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
2838         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
2839         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
2840         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
2841         (__builtin_ia32_kshiftridi): New.
2842         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
2844 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
2846         PR target/78875
2847         PR target/79140
2848         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
2849         define to rs6000_init_stack_protect_guard.
2850         (rs6000_init_stack_protect_guard): New function.
2852 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
2853             Yunqiang Su  <yunqiang.su@imgtec.com>
2855         * config.gcc (supported_defaults): Add madd4.
2856         (with_madd4): Add validation.
2857         (all_defaults): Add madd4.
2858         * config/mips/mips.opt (mmadd4): New option.
2859         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
2860         mmadd4.
2861         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
2862         __mips_no_madd4.
2863         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
2864         (ISA_HAS_FUSED_MADD4): Likewise.
2865         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
2866         * gcc/doc/install.texi (--with-madd4): Document the new option.
2868 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
2870         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
2871         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
2872         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
2873         (aarch64_init_pauth_hint_builtins): New.
2874         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
2875         (aarch64_expand_builtin): Expand new builtins.
2877 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
2879         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
2880         * combine-stack-adj.c (no_unhandled_cfa): Handle
2881         REG_CFA_TOGGLE_RA_MANGLE.
2882         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
2883         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
2884         info for return address signing.
2885         (aarch64_expand_epilogue): Likewise.
2887 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
2889         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
2890         * config/aarch64/aarch64-protos.h
2891         (aarch64_return_address_signing_enabled): New declaration.
2892         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
2893         New function.
2894         (aarch64_expand_prologue): Sign return address before it's pushed onto
2895         stack.
2896         (aarch64_expand_epilogue): Authenticate return address fetched from
2897         stack.
2898         (aarch64_override_options): Sanity check for ILP32 and ISA level.
2899         (aarch64_attributes): New function attributes for "sign-return-address".
2900         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
2901         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
2902         ("*do_return"): Generate combined instructions according to key index.
2903         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
2904         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
2905         iterators.
2906         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
2907         * config/aarch64/aarch64.opt (msign-return-address=): New.
2908         * doc/extend.texi (AArch64 Function Attributes): Documents
2909         "sign-return-address=".
2910         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
2912 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
2914         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
2915         overall option summary.
2917 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
2919         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
2920         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
2921         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
2922         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
2924 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
2926         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
2927         -mpower9-minmax by default for -mcpu=power9.
2928         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
2929         128-bit floating point.
2931 2017-01-20  Alan Modra  <amodra@gmail.com>
2933         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
2934         optimizing for size.
2936 2017-01-20  Alan Modra  <amodra@gmail.com>
2938         PR target/79144
2939         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
2940         for strcmp and strncmp from corresponding builtin decl.
2942 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
2944         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
2945         instead of i386/rtems-64.h.
2946         * config/i386/rtems-64.h: Remove.
2948 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
2950         PR target/78478
2951         Revert:
2952         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
2954         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
2956 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
2958         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
2959         Change int to HOST_WIDE_INT.
2960         * config/aarch64/aarch64-protos.h
2961         (aarch64_simd_gen_const_vector_dup): Likewise.
2962         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
2964 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
2966         * langhooks-def.h (lhd_type_for_size): New decl.
2967         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
2968         * langhooks.c (lhd_type_for_size): New function, taken from
2969         lto_type_for_size.
2971 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
2973         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
2974         define_bypass for CR latency.
2975         (power9-cracked-alu): Update bypass latency and remove power9-branch.
2976         (power9-alu2): Add define_bypass for CR latency.
2977         (power9-cmp): New.
2978         (power9-mul): Update insn latency.
2979         (power9-mul-compare): Update insn latency, bypass latency and remove
2980         power9-branch.
2982 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2984         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
2985         Delete.
2986         * config/aarch64/aarch64.md
2987         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
2988         aarch64_nopcrelative_literal_loads.
2989         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
2991 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
2993         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
2994         TARGET_LOONGSON_3A.
2995         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
2997 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
2999         PR target/78176
3000         * config.gcc (supported_defaults): Add lxc1-sxc1.
3001         (with_lxc1_sxc1): Add validation.
3002         (all_defaults): Add lxc1-sxc1.
3003         * config/mips/mips.opt (mlxc1-sxc1): New option.
3004         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
3005         mlxc1-sxc1.
3006         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
3007         __mips_no_lxc1_sxc1.
3008         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
3009         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
3010         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
3012 2017-01-19  Richard Biener  <rguenther@suse.de>
3014         PR tree-optimization/72488
3015         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
3016         sure to restore SSA info.
3017         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
3019 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
3021         PR rtl-optimization/79121
3022         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
3023         of the inner type when shifting an extended value.
3025 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
3027         PR lto/78407
3028         * symtab.c (symtab_node::equal_address_to): Fix comparing of
3029         interposable aliases.
3031 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
3033         PR target/78516
3034         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
3035         Use the evmergelohi instruction.
3036         (mov_si<mode>_e500_subreg4_2_le): Likewise.
3037         (mov_sitf_e500_subreg8_2_be): Likewise.
3038         (mov_sitf_e500_subreg12_2_le): Likewise.
3039         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
3040         (mov_si<mode>_e500_subreg4_2_be): Likewise.
3041         (mov_sitf_e500_subreg8_2_le): Likewise.
3042         (mov_sitf_e500_subreg12_2_be): Likewise.
3044 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3046         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
3047         attribute from vecsimple to vecperm.
3048         (altivec_vbpermq2): Likewise.
3050 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3052         PR target/79040
3053         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
3055 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3056         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
3057         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
3058         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
3059         case where N arg is SIZE_MAX.
3060         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
3061         (cmpstrsi): Add pattern.
3063 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3065         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3066         __builtin_vec_revb builtins.
3067         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
3068         built-in functions to support generation of the ISA 3.0 XXBR<x>
3069         vector byte reverse instructions.
3070         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
3071         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
3072         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
3073         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
3074         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
3075         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
3076         (P9V_BUILTIN_VEC_REVB): Likewise.
3077         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
3078         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
3079         (p9_xxbrq_v16qi): Likewise.
3080         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
3081         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
3082         (p9_xxbrh_v8hi): Likewise.
3083         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
3084         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
3085         vec_revb built-in functions.
3087 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
3089         PR rtl-optimization/78952
3090         * config/i386/i386.md (any_extract): New code iterator.
3091         (*insvqi_2): Use any_extract for source operand.
3092         (*insvqi_3): Use any_shiftrt for source operand.
3094 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
3096         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
3097         New function.
3098         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
3100 2017-01-18  Matthias Klose  <doko@ubuntu.com>
3102         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
3104 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3106         * config/rs6000/altivec.h (vec_bperm): Change #define.
3107         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
3108         (altivec_vbpermq2): New define_insn.
3109         (altivec_vbpermd): Likewise.
3110         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
3111         function interface.
3112         (VBPERMD): Likewise.
3113         (VBPERM): New polymorphic function interface.
3114         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
3115         Add entries for P9V_BUILTIN_VEC_VBPERM.
3116         * doc/extend.texi: Add interfaces for vec_bperm.
3118 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3120         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
3121         first letter of error messages.
3122         (s390_resolve_overloaded_builtin): Likewise.
3123         * config/s390/s390.c (s390_expand_builtin): Likewise.
3124         (s390_invalid_arg_for_unprototyped_fn): Likewise.
3125         (s390_valid_target_attribute_inner_p): Likewise.
3126         * config/s390/s390.md ("tabort"): Likewise.
3128 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
3130         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
3131         (ISA_AVOID_DIV_HILO): New macro.
3132         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
3133         (ISA_HAS_DDIV): Likewise.
3135 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
3137         * doc/invoke.texi (fabi-version): Correct number of occurrences.
3139 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
3141         * doc/invoke.texi (fabi-version): Spelling fix.
3143 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
3145         PR c++/70182
3146         * doc/invoke.texi (fabi-version): Mention mangling fix for
3147         operator names.
3149 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
3151         PR c++/77489
3152         * doc/invoke.texi (fabi-version): Document discriminator mangling.
3154 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
3156         PR target/78875
3157         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
3158         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
3159         the new options.
3160         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
3161         flexible settings.
3162         (stack_protect_test): Ditto.
3163         * config/rs6000/rs6000.opt (mstack-protector-guard=,
3164         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
3165         options.
3166         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
3167         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
3168         -mstack-protector-guard-offset=.
3169         (RS/6000 and PowerPC Options): Ditto.
3171 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
3173         * config/i386/i386.h (MASK_CLASS_P): New define.
3174         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
3175         there are no registers from different register sets also when
3176         mask registers are used.  Update function comment.
3177         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
3178         to (*k/*r) and (*k/*km) alternatives.
3180 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
3182         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
3183         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
3184         (EH_RETURN_HANDLER_RTX): New define.
3185         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
3186         Force frame pointer in EH return functions.
3187         (aarch64_expand_epilogue): Add barrier for eh_return.
3188         (aarch64_final_eh_return_addr): Remove.
3189         (aarch64_eh_return_handler_rtx): New function.
3190         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
3191         Remove.
3192         (aarch64_eh_return_handler_rtx): New prototype.
3194 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3196         * config/rs6000/altivec.h (vec_rlmi): New #define.
3197         (vec_vrlnm): Likewise.
3198         (vec_rlnm): Likewise.
3199         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
3200         (UNSPEC_VRLNM): Likewise.
3201         (VIlong): New mode iterator.
3202         (altivec_vrl<VI_char>mi): New define_insn.
3203         (altivec_vrl<VI_char>nm): Likewise.
3204         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
3205         function entry.
3206         (VRLDNM): Likewise.
3207         (RLNM): New polymorphic function entry.
3208         (VRLWMI): New monomorphic function entry.
3209         (VRLDMI): Likewise.
3210         (RLMI): New polymorphic function entry.
3211         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
3212         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
3213         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
3214         vec_vrlnm.
3216 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
3218         PR debug/78839
3219         * dwarf2out.c (field_byte_offset): Restore the
3220         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
3221         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
3222         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
3223         of build2 + fold.
3225 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
3227         PR ada/67205
3228         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
3230 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
3232         PR debug/71669
3233         * dwarf2out.c (add_data_member_location_attribute): For constant
3234         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
3235         instead of DW_AT_data_member_location, DW_AT_bit_offset and
3236         DW_AT_byte_size attributes.
3238 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
3240         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
3241         after forcing to constant memory when the code model is medium.
3243 2017-01-17  Julia Koval  <julia.koval@intel.com>
3245         PR target/76731
3246         * config/i386/avx512fintrin.h
3247         (_mm512_i32gather_ps): Change __addr type to void const*.
3248         (_mm512_mask_i32gather_ps): Ditto.
3249         (_mm512_i32gather_pd): Ditto.
3250         (_mm512_mask_i32gather_pd): Ditto.
3251         (_mm512_i64gather_ps): Ditto.
3252         (_mm512_mask_i64gather_ps): Ditto.
3253         (_mm512_i64gather_pd): Ditto.
3254         (_mm512_mask_i64gather_pd): Ditto.
3255         (_mm512_i32gather_epi32): Ditto.
3256         (_mm512_mask_i32gather_epi32): Ditto.
3257         (_mm512_i32gather_epi64): Ditto.
3258         (_mm512_mask_i32gather_epi64): Ditto.
3259         (_mm512_i64gather_epi32): Ditto.
3260         (_mm512_mask_i64gather_epi32): Ditto.
3261         (_mm512_i64gather_epi64): Ditto.
3262         (_mm512_mask_i64gather_epi64): Ditto.
3263         (_mm512_i32scatter_ps): Change __addr type to void*.
3264         (_mm512_mask_i32scatter_ps): Ditto.
3265         (_mm512_i32scatter_pd): Ditto.
3266         (_mm512_mask_i32scatter_pd): Ditto.
3267         (_mm512_i64scatter_ps): Ditto.
3268         (_mm512_mask_i64scatter_ps): Ditto.
3269         (_mm512_i64scatter_pd): Ditto.
3270         (_mm512_mask_i64scatter_pd): Ditto.
3271         (_mm512_i32scatter_epi32): Ditto.
3272         (_mm512_mask_i32scatter_epi32): Ditto.
3273         (_mm512_i32scatter_epi64): Ditto.
3274         (_mm512_mask_i32scatter_epi64): Ditto.
3275         (_mm512_i64scatter_epi32): Ditto.
3276         (_mm512_mask_i64scatter_epi32): Ditto.
3277         (_mm512_i64scatter_epi64): Ditto.
3278         (_mm512_mask_i64scatter_epi64): Ditto.
3279         * config/i386/avx512pfintrin.h
3280         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
3281         (_mm512_mask_prefetch_i32gather_ps): Ditto.
3282         (_mm512_mask_prefetch_i64gather_pd): Ditto.
3283         (_mm512_mask_prefetch_i64gather_ps): Ditto.
3284         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
3285         (_mm512_prefetch_i32scatter_ps): Ditto.
3286         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
3287         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
3288         (_mm512_prefetch_i64scatter_pd): Ditto.
3289         (_mm512_prefetch_i64scatter_ps): Ditto.
3290         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
3291         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
3292         * config/i386/avx512vlintrin.h
3293         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
3294         (_mm_mmask_i32gather_ps): Ditto.
3295         (_mm256_mmask_i32gather_pd): Ditto.
3296         (_mm_mmask_i32gather_pd): Ditto.
3297         (_mm256_mmask_i64gather_ps): Ditto.
3298         (_mm_mmask_i64gather_ps): Ditto.
3299         (_mm256_mmask_i64gather_pd): Ditto.
3300         (_mm_mmask_i64gather_pd): Ditto.
3301         (_mm256_mmask_i32gather_epi32): Ditto.
3302         (_mm_mmask_i32gather_epi32): Ditto.
3303         (_mm256_mmask_i32gather_epi64): Ditto.
3304         (_mm_mmask_i32gather_epi64): Ditto.
3305         (_mm256_mmask_i64gather_epi32): Ditto.
3306         (_mm_mmask_i64gather_epi32): Ditto.
3307         (_mm256_mmask_i64gather_epi64): Ditto.
3308         (_mm_mmask_i64gather_epi64): Ditto.
3309         (_mm256_i32scatter_ps): Change __addr type to void*.
3310         (_mm256_mask_i32scatter_ps): Ditto.
3311         (_mm_i32scatter_ps): Ditto.
3312         (_mm_mask_i32scatter_ps): Ditto.
3313         (_mm256_i32scatter_pd): Ditto.
3314         (_mm256_mask_i32scatter_pd): Ditto.
3315         (_mm_i32scatter_pd): Ditto.
3316         (_mm_mask_i32scatter_pd): Ditto.
3317         (_mm256_i64scatter_ps): Ditto.
3318         (_mm256_mask_i64scatter_ps): Ditto.
3319         (_mm_i64scatter_ps): Ditto.
3320         (_mm_mask_i64scatter_ps): Ditto.
3321         (_mm256_i64scatter_pd): Ditto.
3322         (_mm256_mask_i64scatter_pd): Ditto.
3323         (_mm_i64scatter_pd): Ditto.
3324         (_mm_mask_i64scatter_pd): Ditto.
3325         (_mm256_i32scatter_epi32): Ditto.
3326         (_mm256_mask_i32scatter_epi32): Ditto.
3327         (_mm_i32scatter_epi32): Ditto.
3328         (_mm_mask_i32scatter_epi32): Ditto.
3329         (_mm256_i32scatter_epi64): Ditto.
3330         (_mm256_mask_i32scatter_epi64): Ditto.
3331         (_mm_i32scatter_epi64): Ditto.
3332         (_mm_mask_i32scatter_epi64): Ditto.
3333         (_mm256_i64scatter_epi32): Ditto.
3334         (_mm256_mask_i64scatter_epi32): Ditto.
3335         (_mm_i64scatter_epi32): Ditto.
3336         (_mm_mask_i64scatter_epi32): Ditto.
3337         (_mm256_i64scatter_epi64): Ditto.
3338         (_mm256_mask_i64scatter_epi64): Ditto.
3339         (_mm_i64scatter_epi64): Ditto.
3340         (_mm_mask_i64scatter_epi64): Ditto.
3341         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
3342         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
3343         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
3344         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
3345         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
3346         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
3347         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
3348         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
3349         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
3350         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
3351         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
3352         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
3353         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
3354         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
3355         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
3356         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
3357         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
3358         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
3359         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
3360         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
3361         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
3362         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
3363         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
3364         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
3365         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
3366         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
3367         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
3368         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
3369         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
3370         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
3371         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
3372         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
3373         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
3374         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
3375         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
3376         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
3377         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
3378         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
3379         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
3380         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
3381         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
3382         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
3383         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
3384         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
3385         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
3386         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
3387         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
3388         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
3389         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
3390         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
3391         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
3392         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
3393         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
3394         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
3395         definitions accordingly.
3397 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
3398             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
3400         PR target/79079
3401         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
3402         gen_lowpart.
3404 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
3406         PR target/79058
3407         * ira-conflicts.c (ira_build_conflicts): Update total conflict
3408         hard regs for inner regno.
3410 2017-01-17  Martin Liska  <mliska@suse.cz>
3412         PR ipa/71207
3413         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
3414         assumption and add comment.
3416 2017-01-17  Nathan Sidwell  <nathan@acm.org>
3418         * ipa-visibility.c (localize_node): New function, broken out of ...
3419         (function_and_variable_visibility): ... here. Call it.
3421 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
3423         PR middle-end/77445
3424         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
3425         correctly set frequency of oudgoing edge.
3426         (duplicate_thread_path): Fix profile updating.
3428 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
3430         PR other/79046
3431         * configure.ac: Add GCC_BASE_VER.
3432         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
3433         version from BASE-VER file.
3434         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
3435         (gcc.o): Depend on $(BASEVER).
3436         * common.opt (dumpfullversion): New option.
3437         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
3438         * doc/invoke.texi: Document -dumpfullversion.
3439         * doc/install.texi: Document --with-gcc-major-version-only.
3440         * configure: Regenerated.
3442 2017-01-17  Richard Biener  <rguenther@suse.de>
3444         PR tree-optimization/71433
3445         * tree-vrp.c (register_new_assert_for): Merge same asserts
3446         on all incoming edges.
3447         (process_assert_insertions_for): Handle insertions at the
3448         beginning of BBs.
3450 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
3452         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
3453         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
3455 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
3457         PR target/78633
3458         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
3459         RTL sharing.
3461 2017-01-17  Alan Modra  <amodra@gmail.com>
3463         PR target/79066
3464         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
3465         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
3466         symbolic stack limit when pic.
3468 2017-01-16  Martin Sebor  <msebor@redhat.com>
3470         PR tree-optimization/78608
3471         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
3473 2017-01-16  Jeff Law  <law@redhat.com>
3475         Revert:
3476         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
3477         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
3478         for several include directories that may be relative to sysroot.
3479         * config/i386/x-mingw32 (gplus_includedir): Define.
3480         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
3481         (native_system_includedir): Likewise.
3482         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
3483         override if TARGET_SYSTEM_ROOT is defined.
3484         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
3486         PR tree-optimization/79090
3487         PR tree-optimization/33562
3488         PR tree-optimization/61912
3489         PR tree-optimization/77485
3490         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
3491         and computed trims into the dump file.
3493 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
3495         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
3497 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
3499         PR c/79089
3500         * gimplify.c (gimplify_init_constructor): If want_value and
3501         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
3502         fix.
3504         PR target/79080
3505         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
3506         sequence.  Formatting fixes.
3507         (doloop_optimize): Formatting fixes.
3509         PR driver/49726
3510         * gcc.c (debug_level_greater_than_spec_func): New function.
3511         (static_spec_functions): Add debug-level-gt spec function.
3512         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
3513         !g0.
3514         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
3515         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
3516         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
3517         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
3518         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
3519         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
3521 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
3523         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
3524         QImode fixups to general and mask registers only.
3526 2017-01-16  Carl Love  <cel@us.ibm.com>
3528         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
3529         for built-in functions
3530         vector signed char vec_nabs (vector signed char)
3531         vector signed short vec_nabs (vector signed short)
3532         vector signed int vec_nabs (vector signed int)
3533         vector signed long long vec_nabs (vector signed long long)
3534         vector float vec_nabs (vector float)
3535         vector double vec_nabs (vector double)
3536         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
3537         and NABS overload.
3538         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
3539         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
3540         * doc/extend.texi: Update the documentation file for the new built-in
3541         functions.
3543 2017-01-16  Martin Sebor  <msebor@redhat.com>
3545         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
3546         message.
3548 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3550         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
3551         UNSPEC_VSX__XXSPLTD to require special splat handling.
3553 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
3555         PR bootstrap/78616
3556         * system.h: Poison strndup.
3558 2017-01-16  Alan Modra  <amodra@gmail.com>
3560         PR target/79098
3561         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
3562         use a switch.
3564 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
3566         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
3568 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
3570         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
3571         call recog here.  Assert that INSN_CODE (insn) is non-negative.
3573 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
3575         PR target/72749
3576         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
3577         fallthrough.
3578         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
3579         in the currently scheduled RTL fragment.
3581 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
3583         PR rtl-optimization/78751
3584         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
3585         give up.
3587 2017-01-14  Jeff Law  <law@redhat.com>
3589         PR tree-optimization/79090
3590         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
3591         variable length stores.
3592         (compute_trims): Delete dead assignment to *trim_tail.
3593         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
3594         zero length.
3596 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
3598         PR rtl-optimization/78626
3599         PR rtl-optimization/78727
3600         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
3601         of a block, and split such blocks after everything else is finished.
3603 2017-01-14  Alan Modra  <amodra@gmail.com>
3605         PR target/72749
3606         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
3607         target legitimate_combined_insn.
3608         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
3609         (rs6000_legitimate_combined_insn): New function.
3610         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
3611         all uses.
3612         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
3613         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
3614         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
3616 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
3618         * doc/frontends.texi (G++ and GCC): Remove references to Java.
3620 2017-01-13  Jeff Law  <law@redhat.com>
3622         PR tree-optimization/33562
3623         PR tree-optimization/61912
3624         PR tree-optimization/77485
3625         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
3626         a statement.
3627         (delete_dead_assignment): Likewise.
3628         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
3629         statement to delete_dead_call and delete_dead_assignment.
3631 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
3633         PR c/78304
3634         * substring-locations.c (format_warning_va): Strengthen case 1 so
3635         that both endpoints of the substring must be within the format
3636         range for just the substring to be printed.
3638 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
3640         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
3641         * config/i386/i386.c (ix86_target_string): Add missing options
3642         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
3643         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
3644         flags_other and ix86_target_other to flags2_other.  Display unknown
3645         isa2 options.
3646         (ix86_valid_target_attribute_inner_p): Add missing options and
3647         reorder options by implied ISAs, as in ix86_target_string.
3649 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
3651         * hash-table.h (hash_table::too_empty_p): New function.
3652         (hash_table::expand): Use it.
3653         (hash_table::traverse): Likewise.
3654         (hash_table::empty_slot): Use sizeof (value_type) instead of
3655         sizeof (PTR) to convert bytes to elements.  Shrink the table
3656         if the current size is excessive for the current number of
3657         elements.
3659 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
3661         * ira-costs.c (record_reg_classes): Break from the inner loop
3662         early once alt_fail is known to be true.  Update outer loop
3663         handling accordingly.
3665 2017-01-13  Jeff Law  <law@redhat.com>
3667         * tree-ssa-dse.c (decrement_count): New function.
3668         (increment_start_addr, maybe_trim_memstar_call): Likewise.
3669         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
3670         when we know the partially dead statement is a mem* function.
3672         PR tree-optimization/61912
3673         PR tree-optimization/77485
3674         * tree-ssa-dse.c: Include expr.h.
3675         (maybe_trim_constructor_store): New function.
3676         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
3678         PR tree-optimization/33562
3679         PR tree-optimization/61912
3680         PR tree-optimization/77485
3681         * doc/invoke.texi: Document new dse-max-object-size param.
3682         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
3683         * tree-ssa-dse.c: Include params.h.
3684         (dse_store_status): New enum.
3685         (initialize_ao_ref_for_dse): New, partially extracted from
3686         dse_optimize_stmt.
3687         (valid_ao_ref_for_dse, normalize_ref): New.
3688         (setup_live_bytes_from_ref, compute_trims): Likewise.
3689         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
3690         (maybe_trim_partially_dead_store): Likewise.
3691         (maybe_trim_complex_store): Likewise.
3692         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
3693         Track what bytes live from the original store.  Return tri-state
3694         for dead, partially dead or live.
3695         (dse_dom_walker): Add constructor, destructor and new private members.
3696         (delete_dead_call, delete_dead_assignment): New extracted from
3697         dse_optimize_stmt.
3698         (dse_optimize_stmt): Make a member of dse_dom_walker.
3699         Use initialize_ao_ref_for_dse.
3701         PR tree-optimization/33562
3702         PR tree-optimization/61912
3703         PR tree-optimization/77485
3704         * sbitmap.h (bitmap_count_bits): Prototype.
3705         (bitmap_clear_range, bitmap_set_range): Likewise.
3706         * sbitmap.c (bitmap_clear_range): New function.
3707         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
3709 2017-01-13  Martin Liska  <mliska@suse.cz>
3711         PR ipa/79043
3712         * function.c (set_cfun): Add new argument force.
3713         * function.h (set_cfun): Likewise.
3714         * ipa-inline-transform.c (inline_call): Use the function when
3715         strict alising from is dropped for function we inline to.
3717 2017-01-13  Richard Biener  <rguenther@suse.de>
3719         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
3720         for dumping GIMPLE INTEGER_CSTs.
3722 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3724         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
3725         to 201112L since C++17.
3727 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
3729         PR sanitizer/78887
3730         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
3731         if -fsanitize=kernel-address is present.
3733 2017-01-13  Richard Biener  <rguenther@suse.de>
3735         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
3736         as _Literal ( type ) number in case usual suffixes do not
3737         preserve all information.
3739 2017-01-13  Richard Biener  <rguenther@suse.de>
3741         PR tree-optimization/77283
3742         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
3743         and ssa-iterators.h.
3744         (is_feasible_trace): Implement a cost model based on joiner
3745         PHI node uses.
3747 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
3749         PR target/79004
3750         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
3751         char or short to __float128/_Float128 directly.
3753 2017-01-12  Martin Sebor  <msebor@redhat.com>
3755         to -Wformat-overflow.
3756         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
3757         (min_bytes_remaining): Same.
3758         (get_string_length): Same.
3759         (format_string): Same.
3760         (format_directive): Same.
3761         (add_bytes): Same.
3762         (pass_sprintf_length::handle_gimple_call): Same.
3764 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
3766         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
3767         info.nowrite calls with no lhs that can't throw.  Return bool
3768         whether gsi_remove has been called or not.
3769         (pass_sprintf_length::handle_gimple_call): Return bool whether
3770         try_substitute_return_value called gsi_remove.  Formatting fix.
3771         (pass_sprintf_length::execute): Don't use gsi_remove if
3772         handle_gimple_call returned true.
3774         PR bootstrap/79069
3775         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
3776         be removed due to side-effects, don't remove following barrier nor
3777         turn the successor edge into fallthru edge.
3779 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3781         PR target/79044
3782         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
3783         element-reversing loads and stores as not swappable.
3785 2017-01-12  Nathan Sidwell  <nathan@acm.org>
3786             Nicolai Stange  <nicstange@gmail.com>
3788         * combine.c (try_combine): Don't ignore result of overlap checking
3789         loop.  Combine overlap & asm check into single loop.
3791 2017-01-12  Richard Biener  <rguenther@suse.de>
3793         * tree-pretty-print.c (dump_generic_node): Provide -gimple
3794         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
3796 2017-01-12  Richard Biener  <rguenther@suse.de>
3798         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
3799         and TS_TARGET_OPTION directly derive from TS_BASE.
3800         * tree-core.h (tree_optimization_option): Derive from tree_base.
3801         (tree_target_option): Likewise.
3803 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
3805         * config/i386/i386.c (memory_address_length): Increase len
3806         only when rip_relative_addr_p returns false.
3808 2017-01-11  Julia Koval  <julia.koval@intel.com>
3810         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
3811         (OPTION_MASK_ISA_SGX_SET): New.
3812         (ix86_handle_option): Handle OPT_msgx.
3813         * config.gcc: Added sgxintrin.h.
3814         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
3815         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
3816         * config/i386/i386.c (ix86_target_string): Add -msgx.
3817         (PTA_SGX): New.
3818         (ix86_option_override_internal): Handle new options.
3819         (ix86_valid_target_attribute_inner_p): Add sgx.
3820         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
3821         * config/i386/i386.opt: Add msgx.
3822         * config/i386/sgxintrin.h: New file.
3823         * config/i386/x86intrin.h: Add sgxintrin.h.
3825 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
3827         PR c++/71537
3828         * fold-const.c (maybe_nonzero_address): Return 1 for function
3829         local objects.
3830         (tree_single_nonzero_warnv_p): Don't handle function local objects
3831         here.
3833         PR c++/72813
3834         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
3835         of c-header.
3837 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
3839         PR driver/78877
3840         * opts.c: Include "spellcheck.h"
3841         (struct string_fragment): New struct.
3842         (struct edit_distance_traits<const string_fragment &>): New
3843         struct.
3844         (get_closest_sanitizer_option): New function.
3845         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
3847 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
3849         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
3850         by 12.
3851         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
3852         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
3853         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
3854         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
3855         for initial die_offset if dwarf_split_debug_info.
3856         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
3857         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
3858         fields.
3859         (output_skeleton_debug_sections): Formatting fix.  Use
3860         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
3861         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
3863 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
3865         * config/arm/cortex-a53.md: Add bypasses for
3866         cortex_a53_r2f_cvt.
3867         (cortex_a53_r2f): Only use for transfers.
3868         (cortex_a53_f2r): Likewise.
3869         (cortex_a53_r2f_cvt): Add reservation for conversions.
3870         (cortex_a53_f2r_cvt): Likewise.
3872 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
3874         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
3875         to all inlined functions, change static to extern.
3877 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
3879         PR target/78253
3880         * config/arm/arm.c (legitimize_pic_address): Handle reference to
3881         weak symbol.
3882         (arm_assemble_integer): Likewise.
3884 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
3886         * config.gcc: Use new awk script to check CPU, FPU and architecture
3887         parameters for --with-... options.
3888         * config/arm/parsecpu.awk: New file
3889         * config/arm/arm-cpus.in: New file.
3890         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
3891         files.
3892         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
3893         files.
3894         * config/arm/t-arm: Update dependency rules.
3895         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
3896         of processing .def files.
3897         * config/arm/genopt.sh: Deleted.
3898         * config/arm/gentune.sh: Deleted.
3899         * config/arm/arm-cores.def: Deleted.
3900         * config/arm/arm-arches.def: Deleted.
3901         * config/arm/arm-fpus.def: Deleted.
3902         * config/arm/arm-tune.md: Regenerated.
3903         * config/arm/arm-tables.opt: Regenerated.
3904         * config/arm/arm-cpu.h: New generated file.
3905         * config/arm/arm-cpu-data.h: New generated file.
3906         * config/arm/arm-cpu-cdata.h: New generated file.
3908 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
3910         PR lto/79042
3911         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
3912         bit.
3913         (input_varpool_node): Unpack dynamically_initialized bit.
3915 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
3917         PR rtl-optimization/79032
3918         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
3919         the alignment of the adjusted memory reference against that of MODE,
3920         instead of the alignment of the original memory reference.
3922 2017-01-11  Martin Jambor  <mjambor@suse.cz>
3924         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
3925         test.
3926         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
3927         decorated functions.
3929 2017-01-11  Richard Biener  <rguenther@suse.de>
3931         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
3932         set range/nonnull info for PHI results.  Do not set it on
3933         stmts marked for removal.
3935 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
3937         * expr.c (store_field): In the bitfield case, fetch the return value
3938         from the registers before applying a single big-endian adjustment.
3939         Always do a final load for a BLKmode value not larger than a word.
3941 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
3943         PR c++/77949
3944         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
3945         that we correctly handle column numbers greater than
3946         LINE_MAP_MAX_COLUMN_NUMBER.
3948 2017-01-10  Martin Sebor  <msebor@redhat.com>
3950         PR middle-end/78245
3951         * gimple-ssa-sprintf.c (get_destination_size): Call
3952         {init,fini}object_sizes.
3953         * tree-object-size.c (addr_object_size): Adjust.
3954         (pass_through_call): Adjust.
3955         (pass_object_sizes::execute): Adjust.
3956         * tree-object-size.h (fini_object_sizes): Declare.
3958 2017-01-10  Martin Sebor  <msebor@redhat.com>
3960         PR tree-optimization/78775
3961         * builtins.c (get_size_range): Move...
3962         * calls.c: ...to here.
3963         (alloc_max_size): Accept zero argument.
3964         (operand_signed_p): Remove.
3965         (maybe_warn_alloc_args_overflow): Call get_size_range.
3966         * calls.h (get_size_range): Declare.
3968 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
3970         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
3971         from TI's devices.csv file as of September 2016.
3972         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
3974 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
3976         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
3977         * doc/invoke.texi: Likewise.
3978         * doc/md.texi: Likewise.
3979         * doc/objc.texi: Likewise.
3981 2017-01-10  Joshua Conner  <joshconner@google.com>
3983         * config/arm/fuchsia-elf.h: New file.
3984         * config/fuchsia.h: New file.
3985         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
3986         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
3987         targets.
3988         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
3990 2016-01-10  Richard Biener  <rguenther@suse.de>
3992         PR tree-optimization/79034
3993         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
3994         Propagate out degenerate PHIs in the joiner.
3996 2017-01-10  Martin Liska  <mliska@suse.cz>
3998         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
3999         (sort_congruence_classes_by_decl_uid): Likewise.
4000         (sort_congruence_class_groups_by_decl_uid): Likewise.
4001         (sem_item_optimizer::merge_classes): Sort class, groups in these
4002         classes and members in the groups by DECL_UID of declarations.
4003         This would make merge operations stable.
4005 2017-01-10  Martin Liska  <mliska@suse.cz>
4007         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
4008         usage of m_classes_vec.
4009         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
4010         (sem_item_optimizer::get_group_by_hash): Likewise.
4011         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
4012         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
4013         (sem_item_optimizer::verify_classes): Likewise.
4014         (sem_item_optimizer::process_cong_reduction): Likewise.
4015         (sem_item_optimizer::dump_cong_classes): Likewise.
4016         (sem_item_optimizer::merge_classes): Likewise.
4017         * ipa-icf.h (congruence_class_hash): Rename from
4018         congruence_class_group_hash.  Remove declaration of m_classes_vec.
4020 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
4022         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
4023         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
4024         * config.gcc: Add avx512vpopcntdqintrin.h.
4025         * config/i386/avx512vpopcntdqintrin.h: New.
4026         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
4027         * config/i386/i386-builtin-types.def: Add new types.
4028         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
4029         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
4030         __builtin_ia32_vpopcountq_v8di_mask): New.
4031         * config/i386/i386-c.c (ix86_target_macros_internal): Define
4032         __AVX512VPOPCNTDQ__.
4033         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
4034         (PTA_AVX512VPOPCNTDQ): Define.
4035         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
4036         TARGET_AVX512VPOPCNTDQ_P): Define.
4037         * config/i386/i386.opt: Add mavx512vpopcntdq.
4038         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
4039         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
4041 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
4043         PR middle-end/77484
4044         * predict.def (PRED_CALL): Set to 67.
4046 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
4048         * expr.c (store_field): In the bitfield case, if the value comes from
4049         a function call and is of an aggregate type returned in registers, do
4050         not modify the field mode; extract the value in all cases if the mode
4051         is BLKmode and the size is not larger than a word.
4053 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
4055         PR target/71017
4056         * config/i386/cpuid.h: Fix undefined behavior.
4058 2017-01-04  Jeff Law  <law@redhat.com>
4060         PR tree-optimization/79007
4061         PR tree-optimization/67955
4062         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
4063         conservative for pt.null when flag_non_call_exceptions is on.
4065 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
4067         PR translation/79019
4068         PR translation/79020
4069         * params.def (PARAM_INLINE_MIN_SPEEDUP,
4070         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
4071         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
4072         in descriptions.
4073         * config/avr/avr.opt (maccumulate-args): Likewise.
4074         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
4075         * common.opt (freport-bug): Likewise.
4076         * cif-code.def (CIF_FINAL_ERROR): Likewise.
4077         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
4078         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
4079         translatable string.
4080         * config/i386/i386.c (function_value_32): Likewise.
4081         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
4082         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
4083         Likewise.
4084         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
4085         * common/config/msp430/msp430-common.c (msp430_handle_option):
4086         Likewise.
4087         * symtab.c (symtab_node::verify_base): Likewise.
4088         * opts.c (set_debug_level): Likewise.
4089         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
4090         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4091         missing whitespace to translatable strings.
4092         * config/avr/avr.md (bswapsi2): Fix typo in comment.
4093         * config/sh/superh.h: Likewise.
4094         * config/i386/xopintrin.h: Likewise.
4095         * config/i386/znver1.md: Likewise.
4096         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
4097         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
4098         * double-int.h (struct double_int): Likewise.
4099         * double-int.c (div_and_round_double): Likewise.
4100         * wide-int.cc: Likewise.
4101         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
4102         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
4103         * cfgcleanup.c (crossjumps_occured): Renamed to ...
4104         (crossjumps_occurred): ... this.
4105         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
4106         Adjust all uses.
4108         PR tree-optimization/78899
4109         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
4110         returning bool return struct loop *, NULL for failure and the new
4111         loop on success.
4112         (versionable_outer_loop_p): Don't version outer loop if it has
4113         dont_vectorized bit set.
4114         (tree_if_conversion): When versioning outer loop, ensure
4115         tree_if_conversion is performed also on the inner loop of the
4116         non-vectorizable outer loop copy.
4117         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
4118         LOOP_VECTORIZED in inner loop of the scalar outer loop and
4119         prevent vectorization of it.
4120         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
4121         the outer loop vectorization of the non-scalar version is attempted
4122         before vectorization of the inner loop in scalar version.  If
4123         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
4124         vectorization of its inner loop.
4125         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
4126         has 2 inner loops, rename also on edges from bb whose single pred
4127         is outer_loop->header.  Fix typo in function comment.
4129 2017-01-09  Martin Sebor  <msebor@redhat.com>
4131         PR bootstrap/79033
4132         * asan.c (asan_emit_stack_protection): Increase local buffer size
4133         to avoid snprintf truncation warning.
4135 2017-01-09  Andrew Pinski  <apinski@cavium.com>
4137         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
4138         to reference thunderx2t99 for the tuning structure
4139         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
4140         Rename to ...
4141         (thunderx2t99_extra_costs): This.
4142         * config/aarch64/aarch64-tune.md: Regenerate.
4143         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
4144         (vulcan_addrcost_table): This.
4145         (vulcan_regmove_cost): Rename to ...
4146         (thunderx2t99_regmove_cost): This.
4147         (vulcan_vector_cost): Rename to ...
4148         (thunderx2t99_vector_cost): this.
4149         (vulcan_branch_cost): Rename to ...
4150         (thunderx2t99_branch_cost): This.
4151         (vulcan_tunings): Rename to ...
4152         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
4153         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
4155 2017-01-09  Martin Jambor  <mjambor@suse.cz>
4157         PR ipa/78365
4158         PR ipa/78599
4159         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
4160         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
4161         (propagate_vr_accross_jump_function): Use the above function for all
4162         value range computations for pass-through jump functions and type
4163         converasion from explicit value range values.
4164         (ipcp_propagate_stage): Do not attempt to deduce types of formal
4165         parameters from TYPE_ARG_TYPES.
4166         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
4167         (ipa_write_node_info): Stream type of the actual argument.
4168         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
4170 2017-01-09  Martin Liska  <mliska@suse.cz>
4172         PR pch/78970
4173         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
4174         (lookup_compiler): Do not show error message with have_E.
4176 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
4178         PR tree-optimization/78938
4179         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
4180         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
4181         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
4182         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
4183         fixes.
4185 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4187         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
4188         is const0_rtx.
4190 2017-01-09  Richard Biener  <rguenther@suse.de>
4192         PR tree-optimization/78997
4193         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
4194         name condition properly.
4196 2017-01-09  Richard Biener  <rguenther@suse.de>
4198         PR debug/79000
4199         * dwarf2out.c (is_cxx): New overload with context.
4200         (is_naming_typedef_decl): Use it.
4202 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
4204         * invoke.texi (Option Summary): Correct spacing in option lists
4205         and add line breaks to fix over-long lines.
4207 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
4209         PR middle-end/17660
4211         * extend.texi (Common Variable Attributes): Add xref to GCC
4212         Internals manual to explain mode attribute keywords.
4214 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
4216         PR other/16519
4217         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
4218         and Preprocessor Options.
4219         (Options for Linking): Document -pthread here....
4220         (RS/6000 and PowerPC Options): ...not here.
4221         (Solaris 2 Options): ...or here.
4222         * doc/cppopts.texi: Document -pthread.
4224 2017-01-08  Martin Sebor  <msebor@redhat.com>
4226         PR middle-end/77708
4227         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
4228         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
4229         New member functions.
4230         (format_directive): Used them.
4231         (add_bytes): Same.
4232         (pass_sprintf_length::handle_gimple_call): Same.
4233         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
4234         to avoid truncation for any argument.
4235         (extract_affine_mul): Same.
4236         * tree.c (get_file_function_name): Same.
4238 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
4240         PR middle-end/77484
4241         * predict.def (PRED_INDIR_CALL): Set to 86.
4243 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
4245         PR preprocessor/54124
4246         * doc/cppopts.texi: Reformat -d subtable to list the full name
4247         of the options.  Add cross-reference to the docs for the general
4248         compiler -d options.
4249         * doc/invoke.texi (Developer Options): Add cross-reference to the
4250         preprocessor-specific -d option documentation.
4252 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
4254         PR preprocessor/13498
4255         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
4256         redudant material, and reflect new command-line options.
4257         (System Headers): Likewise.
4259 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
4261         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
4262         -isystem, and -idirafter.  Copy-edit.
4263         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
4264         default for -ftrack-macro-expansion.  Delete obsolete and
4265         badly-formatted implementation details about -fdebug-cpp output.
4266         * doc/cppwarnopts.texi: Copy-edit.
4268 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
4270         PR c++/72803
4271         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
4272         that the transition from a max line width >= 1<<10 to narrower
4273         lines works correctly.
4275 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
4277         * doc/options.texi (PerFunction): New.
4278         * opt-functions.awk (switch_flags): Map both Optimization and
4279         PerFunction to CL_OPTIMIZATION.
4280         * opth-gen.awk: Test for PerFunction flag along with
4281         Optimization.
4282         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
4283         it only when the latter is present.  Skip those that don't in
4284         the hash function generator.
4285         * common.opt (fvar-tracking): Mark as PerFunction instead of
4286         Optimization.
4287         (fvar-tracking-assignments): Likewise.
4288         (fvar-tracking-assignments-toggle): Likewise.
4289         (fvar-tracking-uninit): Likewise.
4291 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
4293         PR translation/79018
4294         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
4295         the and store.
4297 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
4299         PR target/57583
4300         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
4301         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
4302         TARGET_LONG_JUMP_TABLE_OFFSETS.
4303         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
4304         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
4305         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
4306         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
4307         * config/m68k/m68k.md (tablejump expander): Likewise.
4308         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
4309         TARGET_LONG_JUMP_TABLE_OFFSETS.
4310         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
4311         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
4313 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
4314             David Holsgrove <david.holsgrove@xilinx.com>
4316         * common/config/microblaze/microblaze-common.c
4317         (TARGET_EXCEPT_UNWIND_INFO): Remove.
4318         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
4319         New prototype.
4320         * config/microblaze/microblaze.c (microblaze_must_save_register)
4321         (microblaze_expand_epilogue, microblaze_return_addr): Handle
4322         calls_eh_return.
4323         (microblaze_eh_return): New function.
4324         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
4325         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
4326         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
4327         * config/microblaze/microblaze.md (eh_return): New pattern.
4329 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
4331         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
4332         GCC_DIAGNOSTIC_STRINGIFY): Define.
4334         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
4336 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4338         * config/arm/arm.md (<mcrr>): New.
4339         (<mrrc>): New.
4340         * config/arm/arm.c (arm_arch5te): New.
4341         (arm_option_override): Set arm_arch5te.
4342         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
4343         and mrrc2.
4344         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
4345         (arm_mcrr_qualifiers): ... this. New.
4346         (MRRC_QUALIFIERS): Define to...
4347         (arm_mrrc_qualifiers): ... this. New.
4348         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
4349         __arm_mrrc2): New.
4350         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
4351         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
4352         (MRRCI, mrrc, MRRC): New.
4353         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
4354         VUNSPEC_MRRC2): New.
4356 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4358         * config/arm/arm.md (<mcr>): New.
4359         (<mrc>): New.
4360         * config/arm/arm.c (arm_coproc_builtin_available): Add
4361         support for mcr, mrc, mcr2 and mrc2.
4362         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
4363         (arm_mcr_qualifiers): ... this. New.
4364         (MRC_QUALIFIERS): Define to ...
4365         (arm_mrc_qualifiers): ... this. New.
4366         (MCR_QUALIFIERS): Define to ...
4367         (arm_mcr_qualifiers): ... this. New.
4368         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
4369         __arm_mrc2): New.
4370         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
4371         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
4372         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
4373         VUNSPEC_MRC2): New.
4375 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4377         * config/arm/arm.md (*ldc): New.
4378         (*stc): New.
4379         (<ldc>): New.
4380         (<stc>): New.
4381         * config/arm/arm.c (arm_coproc_builtin_available): Add
4382         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
4383         (arm_coproc_ldc_stc_legitimate_address): New.
4384         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
4385         'qualifier_const_pointer'.
4386         (LDC_QUALIFIERS): Define to...
4387         (arm_ldc_qualifiers): ... this. New.
4388         (STC_QUALIFIERS): Define to...
4389         (arm_stc_qualifiers): ... this. New.
4390         * config/arm/arm-protos.h
4391         (arm_coproc_ldc_stc_legitimate_address): New.
4392         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
4393         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
4394         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
4395         stc2, stcl, stc2l): New.
4396         * config/arm/constraints.md (Uz): New.
4397         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
4398         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
4399         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
4400         VUNSPEC_STC2L): New.
4402 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4404         * config/arm/arm.md (<cdp>): New.
4405         * config/arm/arm.c (neon_const_bounds): Rename this ...
4406         (arm_const_bounds): ... this.
4407         (arm_coproc_builtin_available): New.
4408         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
4409         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
4410         (CDP_QUALIFIERS): Define to...
4411         (arm_cdp_qualifiers): ... this. New.
4412         (void_UP): Define.
4413         (arm_expand_builtin_args): Add case for 6 arguments.
4414         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
4415         (arm_const_bounds): ... this.
4416         (arm_coproc_builtin_available): New.
4417         * config/arm/arm_acle.h (__arm_cdp): New.
4418         (__arm_cdp2): New.
4419         * config/arm/arm_acle_builtins.def (cdp): New.
4420         (cdp2): New.
4421         * config/arm/iterators.md (CDPI,CDP,cdp): New.
4422         * config/arm/neon.md: Rename all 'neon_const_bounds' to
4423         'arm_const_bounds'.
4424         * config/arm/types.md (coproc): New.
4425         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
4426         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
4427         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
4428         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
4430 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4432         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
4433         (UBINOP_QUALIFIERS): New.
4434         (si_UP): Define.
4435         (acle_builtin_data): New. Change comment.
4436         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
4437         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
4438         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
4439         arm_acle_builtins.def.
4440         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
4441         (arm_init_acle_builtins): New.
4442         (CRC32_BUILTIN): Remove.
4443         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
4444         crc32cb, crc32ch and crc32cw.
4445         (arm_init_crc32_builtins): Remove.
4446         (arm_init_builtins): Use arm_init_acle_builtins rather
4447         than arm_init_crc32_builtins.
4448         (arm_expand_acle_builtin): New.
4449         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
4450         * config/arm/arm_acle_builtins.def: New.
4452 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4454         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
4455         (arm_builtin_datum): ... this.
4456         (arm_init_neon_builtin): Rename to ...
4457         (arm_init_builtin): ... this. Add a new parameters PREFIX
4458         and USE_SIG_IN_NAME.
4459         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
4460         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
4461         'arm_builtin_datum'.
4462         (arm_init_vfp_builtins): Likewise.
4463         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
4464         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
4465         (arm_expand_neon_args): Rename to ...
4466         (arm_expand_builtin_args): ... this. Rename builtin_arg
4467         enum values and differentiate between ARG_BUILTIN_MEMORY
4468         and ARG_BUILTIN_NEON_MEMORY.
4469         (arm_expand_neon_builtin_1): Rename to ...
4470         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
4471         values, arm_expand_builtin_args and add bool parameter NEON.
4472         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
4473         (arm_expand_vfp_builtin): Likewise.
4474         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
4476 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
4478         PR middle-end/77484
4479         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
4480         * predict.c (tree_estimate_probability_bb): Reverse direction of
4481         polymorphic call predictor.
4483 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
4485         * passes.c (execute_one_pass): Split out pass-skipping logic into...
4486         (determine_pass_name_match): ...this new function and...
4487         (should_skip_pass_p): ...this new function.
4489 2017-01-06  Nathan Sidwell  <nathan@acm.org>
4491         * ipa-visibility.c (function_and_variable_visibility): Reformat
4492         comments and long lines.  Remove extrneous if.
4493         * symtab.c (symtab_node::make_decl_local): Fix code format.
4494         (symtab_node::set_section_for_node): Fix comment typo.
4496 2017-01-06  Martin Liska  <mliska@suse.cz>
4498         PR bootstrap/79003
4499         * lra-constraints.c: Rename invariant to lra_invariant.
4500         * predict.c (set_even_probabilities): Initialize e to NULL.
4502 2017-01-05  Martin Sebor  <msebor@redhat.com>
4504         PR tree-optimization/78910
4505         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
4506         (format_integer): Correct off-by-one error in the handling
4507         of precision with negative numbers in signed conversions..
4509 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
4511         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
4513 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
4515         PR tree-optimization/71016
4516         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
4517         factor_out_conditional_conversion.  Formatting fix.
4518         (factor_out_conditional_conversion): Add cond_stmt argument.
4519         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
4520         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
4521         Formatting fix.
4523 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
4525         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
4526         read-rtl-function.o, and selftest-rtl.o.
4527         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
4528         (selftest::aarch64_test_loading_full_dump): New function.
4529         (selftest::aarch64_run_selftests): New function.
4530         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
4531         selftest::aarch64_run_selftests.
4532         * config/i386/i386.c
4533         (selftest::ix86_test_loading_dump_fragment_1): New function.
4534         (selftest::ix86_test_loading_call_insn): New function.
4535         (selftest::ix86_test_loading_full_dump): New function.
4536         (selftest::ix86_test_loading_unspec): New function.
4537         (selftest::ix86_run_selftests): Call the new functions.
4538         * emit-rtl.c (maybe_set_max_label_num): New function.
4539         * emit-rtl.h (maybe_set_max_label_num): New decl.
4540         * function.c (instantiate_decls): Guard call to
4541         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
4542         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
4543         "static".
4544         * gensupport.c (gen_reader::gen_reader): Pass "false"
4545         for new "compact" param of rtx_reader.
4546         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
4547         rather than an empty string for NULL strings.
4548         * read-md.c: Potentially include config.h rather than bconfig.h.
4549         Wrap include of errors.h with #ifdef GENERATOR_FILE.
4550         (have_error): New global, copied from errors.c.
4551         (md_reader::read_name): Rename to...
4552         (md_reader::read_name_1): ...this, adding "out_loc" param,
4553         and converting "missing name or number" to returning false, rather
4554         than failing.
4555         (md_reader::read_name): Reimplement in terms of read_name_1.
4556         (md_reader::read_name_or_nil): New function.
4557         (md_reader::read_string): Handle "(nil)" by returning NULL.
4558         (md_reader::md_reader): Add new param "compact".
4559         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
4560         (md_reader::read_file): New method.
4561         * read-md.h (md_reader::md_reader): Add new param "compact".
4562         (md_reader::read_file): New method.
4563         (md_reader::is_compact): New accessor.
4564         (md_reader::read_name): Convert return type from void to file_location.
4565         (md_reader::read_name_or_nil): New decl.
4566         (md_reader::read_name_1): New decl.
4567         (md_reader::m_compact): New field.
4568         (noop_reader::noop_reader): Pass "false" for new "compact" param
4569         of rtx_reader.
4570         (rtx_reader::rtx_reader): Add new "compact" param.
4571         (rtx_reader::read_rtx_operand): Make virtual and convert return
4572         type from void to rtx.
4573         (rtx_reader::read_until): New decl.
4574         (rtx_reader::handle_any_trailing_information): New virtual function.
4575         (rtx_reader::postprocess): New virtual function.
4576         (rtx_reader::finalize_string): New virtual function.
4577         (rtx_reader::m_in_call_function_usage): New field.
4578         (rtx_reader::m_reuse_rtx_by_id): New field.
4579         * read-rtl-function.c: New file.
4580         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
4581         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
4582         (selftest::verify_three_block_rtl_cfg): New decl.
4583         * read-rtl-function.h: New file.
4584         * read-rtl.c: Potentially include config.h rather than bconfig.h.
4585         For host, include function.h, memmodel.h, and emit-rtl.h.
4586         (one_time_initialization): New function.
4587         (struct compact_insn_name): New struct.
4588         (compact_insn_names): New array.
4589         (find_code): Handle insn codes in compact dumps.
4590         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
4591         (bind_subst_iter_and_attr): Likewise.
4592         (add_condition_to_string): Likewise.
4593         (add_condition_to_rtx): Likewise.
4594         (apply_attribute_uses): Likewise.
4595         (add_current_iterators): Likewise.
4596         (apply_iterators): Likewise.
4597         (initialize_iterators): Guard usage of apply_subst_iterator with
4598         #ifdef GENERATOR_FILE.
4599         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
4600         (md_reader::read_mapping): Likewise.
4601         (add_define_attr_for_define_subst): Likewise.
4602         (add_define_subst_attr): Likewise.
4603         (read_subst_mapping): Likewise.
4604         (check_code_iterator): Likewise.
4605         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
4606         logic to...
4607         (one_time_initialization): New function.
4608         (rtx_reader::read_until): New method.
4609         (read_flags): New function.
4610         (parse_reg_note_name): New function.
4611         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
4612         Handle reuse_rtx ids.
4613         Wrap iterator lookup within #ifdef GENERATOR_FILE.
4614         Add parsing support for RTL dumps, mirroring the special-cases in
4615         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
4616         values, and calling handle_any_trailing_information.
4617         (rtx_reader::read_rtx_operand): Convert return type from void
4618         to rtx, returning return_rtx.  Handle case 'e'.  Call
4619         finalize_string on XSTR and XTMPL fields.
4620         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
4621          "(nil)" values were omitted.  Call the postprocess vfunc on the
4622         return_rtx.
4623         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
4624         class ctor.  Initialize m_in_call_function_usage.  Call
4625         one_time_initialization.
4626         * rtl-tests.c (selftest::test_uncond_jump): Call
4627         set_new_first_and_last_insn.
4628         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
4629         * selftest-rtl.c: New file.
4630         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
4631         (selftest::get_insn_by_uid): New decl.
4632         * selftest-run-tests.c (selftest::run_tests): Call
4633         read_rtl_function_c_tests.
4634         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
4635         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
4636         dumps.
4638 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
4640         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
4641         operands in a special way.  Assert that pos+len <= mode precision.
4643 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
4645         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
4646         3 argument Alias with unlimited for the negative form.
4647         (fno-vect-cost-model): Removed.
4649 2017-01-05  Martin Liska  <mliska@suse.cz>
4651         * hsa-gen.c (gen_hsa_divmod): New function.
4652         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
4654 2017-01-05  Martin Liska  <mliska@suse.cz>
4656         PR pch/78970
4657         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
4658         header.
4660 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4662         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
4663         small constant length operands.
4665 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4667         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
4668         between loop iterations.
4670 2017-01-05  Martin Liska  <mliska@suse.cz>
4672         PR sanitizer/78815
4673         * gimplify.c (gimplify_decl_expr): Compare to
4674         asan_poisoned_variables instread of checking flags.
4675         (gimplify_target_expr): Likewise.
4676         (gimplify_expr): Likewise.
4677         (gimplify_function_tree): Conditionally initialize
4678         asan_poisoned_variables.
4680 2017-01-04  Jeff Law  <law@redhat.com>
4682         PR tree-optimizatin/78812
4683         * rtl.h (contains_mem_rtx_p): Prototype.
4684         * ifcvt.c (containts_mem_rtx_p): Move from here to...
4685         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
4686         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
4687         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
4688         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
4690 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
4692         * input.c (assert_char_at_range): Default-initialize actual_range.
4694 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
4696         * df-scan.c (df_ref_create_structure): Make regno unsigned,
4697         to match the caller.
4699 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
4701         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
4702         insns after final jump in test to emit dummy move.
4704 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
4706         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
4707         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
4709 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
4711         * multiple_target.c (create_dispatcher_calls): Init e_next.
4712         * tree-ssa-loop-split.c (split_loop): Init border.
4713         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
4714         scalar_type.
4716 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
4718         PR target/71977
4719         PR target/70568
4720         PR target/78823
4721         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
4722         (altivec_register_operand): Do not return true if the operand
4723         contains a SUBREG mixing SImode and SFmode.
4724         (vsx_register_operand): Likewise.
4725         (vsx_reg_sfsubreg_ok): New predicate.
4726         (vfloat_operand): Do not return true if the operand contains a
4727         SUBREG mixing SImode and SFmode.
4728         (vint_operand): Likewise.
4729         (vlogical_operand): Likewise.
4730         (gpc_reg_operand): Likewise.
4731         (int_reg_operand): Likewise.
4732         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
4733         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
4734         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
4735         SImode and SFmode.
4736         (rs6000_emit_move_si_sf_subreg): New helper function.
4737         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
4738         fixup SUBREGs involving SImode and SFmode.
4739         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
4740         numbers for the new peephole2 optimization.
4741         (peephole2 for SFmode unions): New peephole2 to optimize cases in
4742         the GLIBC math library that do AND/IOR/XOR operations on single
4743         precision floating point.
4744         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
4745         target macros to say whether we need to avoid SUBREGs mixing
4746         SImode and SFmode.
4747         (TARGET_ALLOW_SF_SUBREG): Likewise.
4748         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
4749         (UNSPEC_SI_FROM_SF): Likewise.
4750         (iorxor): Change spacing.
4751         (and_ior_xor): New iterator for AND, IOR, and XOR.
4752         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
4753         (movdi_from_sf_zero_ext): Likewise.
4754         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
4755         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
4756         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
4757         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
4758         (fms<mode>4): Likewise.
4759         (fnma<mode>4): Likewise.
4760         (fnms<mode>4): Likewise.
4761         (nfma<mode>4): Likewise.
4762         (nfms<mode>4): Likewise.
4764 2017-01-04  Marek Polacek  <polacek@redhat.com>
4766         PR c++/64767
4767         * doc/invoke.texi: Document -Wpointer-compare.
4769 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
4771         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
4772         RejectNegative.
4774         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
4775         descriptions for -gdwarf-5 and emit them as uleb128 instead of
4776         2-byte data.
4778 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4780         PR target/78056
4781         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
4782         documentation of the powerpc_popcntb_ok attribute.
4783         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4784         code to issue warning messages if a requested CPU configuration is
4785         not supported by the binary (assembler and loader) toolchain.
4786         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
4787         made to define a built-in function that has been disabled.
4788         (paired_init_builtins): Add assertion to prevent ICE if attempt is
4789         made to define a built-in function that has been disabled.
4790         (altivec_init_builtins): Add comment explaining why definition
4791         of the DST built-in functions is not preceded by an assertion
4792         check.  Add assertions to prevent ICE if attempts are made to
4793         define an altivec predicate or an abs* built-in function that has
4794         been disabled.
4795         (htm_init_builtins): Add comment explaining why definition of the
4796         htm built-in functions is not preceded by an assertion check.
4798 2017-01-04  Jeff Law  <law@redhat.com>
4800         PR tree-optimizatin/67955
4801         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
4802         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
4803         the points-to solution does not include pt_null.  Use DECL_PT_UID
4804         unconditionally.
4806 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
4808         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
4809         Use gen_int_mode instead of gen_lopwart for const_int operands.
4811 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
4813         PR tree-optimization/71563
4814         * match.pd: Simplify X << Y into X if Y is known to be 0 or
4815         out of range value - has low bits known to be zero.
4817 2017-01-04  Alan Modra  <amodra@gmail.com>
4819         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
4820         * configure: Regenerate.
4821         * config.in: Regenerate.
4823 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
4825         PR bootstrap/77569
4826         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
4827         a substring of the message, but strcmp with the whole message.  Ifdef
4828         ENABLE_NLS, translate the message first using dgettext.
4830 2017-01-03  Jeff Law  <law@redhat.com>
4832         PR tree-optimizatin/78856
4833         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
4834         (mark_threaded_blocks): Remove code to truncate thread paths that
4835         cross multiple loop headers.  Instead invalidate the cached loop
4836         iteration information and handle case of a thread path walking
4837         into an irreducible region.
4839 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4841         PR target/78900
4842         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
4843         assertions.  Add support for doing the signbit if the IEEE 128-bit
4844         floating point value is in a GPR.
4845         * config/rs6000/rs6000.md (Fsignbit): Delete.
4846         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
4847         Update the length attribute if the value is in a GPR.
4848         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
4849         the sign or zero extension instruction, since the value is always 0/1.
4850         (signbit<mode>2_dm2): Delete using <Fsignbit>.
4852         PR target/78953
4853         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
4854         extracting SImode to a GPR register so that we can generate a
4855         store, limit the vector to be in a traditional Altivec register
4856         for the vextuwrx instruction.
4858 2017-01-03  Ian Lance Taylor  <iant@google.com>
4860         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
4862 2017-01-03  Martin Sebor  <msebor@redhat.com>
4864         PR tree-optimization/78696
4865         * gimple-ssa-sprintf.c (format_floating): Correct handling of
4866         precision.  Use MPFR for %f for greater fidelity.  Correct handling
4867         of %g.
4868         (pass_sprintf_length::compute_format_length): Set width and precision
4869         specified by asrerisk to void_node for vararg functions.
4870         (try_substitute_return_value): Adjust dump output.
4872 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
4874         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
4876 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
4878         * doc/invoke.texi (SPARC options): Document -mlra as the default.
4879         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
4880         -mlra/-mno-lra was passed to the compiler.
4882 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
4884         PR rtl-optimization/65618
4885         * emit-rtl.c (try_split): Move initialization of "before" and
4886         "after" to just before the call to emit_insn_after_setloc.
4888 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
4890         * doc/md.texi (Standard Names): Remove reference to Java frontend.
4892 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
4894         * dwarf2out.c (gen_enumeration_type_die): When
4895         -gno-strict-dwarf, add a DW_AT_encoding attribute.
4897 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
4899         PR tree-optimization/78965
4900         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
4901         Change first argument from const call_info & to call_info &.  For %n
4902         set info.nowrite to false.
4904         PR middle-end/78901
4905         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
4906         possibly throwing calls.
4908         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
4909         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
4910         and fns handling, rather than in a separate case SSA_NAME.
4912 2017-01-02  Jeff Law  <law@redhat.com>
4914         * config/darwin-driver.c (darwin_driver_init): Const-correctness
4915         fixes for first_period and second_period variables.
4917 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
4919         PR target/78967
4920         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
4921         (*insvqi_1): New insn pattern.
4922         (*insvqi_1_mem_rex64): Ditto.
4923         (*insvqi_2): Ditto.
4924         (*insvqi_3): Rename from *insvqi.
4926         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
4928 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
4930         * doc/cfg.texi (Edges): Remove reference to Java.
4931         (Maintaining the CFG): Ditto.
4933 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
4935         PR middle-end/77674
4936         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
4937         transparent aliases.
4939 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
4941         PR middle-end/77484
4942         * predict.def (PRED_CALL): Update hitrate.
4943         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
4944         * predict.c (tree_estimate_probability_bb): Split CALL predictor
4945         into direct/indirect/polymorphic variants.
4947 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
4949         Update copyright years.
4951         * gcc.c (process_command): Update copyright notice dates.
4952         * gcov-dump.c (print_version): Ditto.
4953         * gcov.c (print_version): Ditto.
4954         * gcov-tool.c (print_version): Ditto.
4955         * gengtype.c (create_file): Ditto.
4956         * doc/cpp.texi: Bump @copying's copyright year.
4957         * doc/cppinternals.texi: Ditto.
4958         * doc/gcc.texi: Ditto.
4959         * doc/gccint.texi: Ditto.
4960         * doc/gcov.texi: Ditto.
4961         * doc/install.texi: Ditto.
4962         * doc/invoke.texi: Ditto.
4964 Copyright (C) 2017 Free Software Foundation, Inc.
4966 Copying and distribution of this file, with or without modification,
4967 are permitted in any medium without royalty provided the copyright
4968 notice and this notice are preserved.