* config/nvptx/mkoffload.c (process): Add space in between
[official-gcc.git] / gcc / ChangeLog
blob1bdf16395f8bd6cc2d5974f56bdd6e2cc65e218b
1 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
3         * config/nvptx/mkoffload.c (process): Add space in between
4         , and %d.
6         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
7         "MOD4_SSE_REGS" and "ALL_REGS".
9         * spellcheck.c (test_data): Add , in between "foo" and "food".
11 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
13         PR target/79449
14         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
15         boundary crossing check and subsequent code generation agree.
17 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19         * config/aarch64/aarch64.c (has_memory_op): Delete.
20         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
21         has_memory_op.
23 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
25         PR rtl-optimization/79388
26         PR rtl-optimization/79450
27         * combine.c (distribute_notes): When removing TEM_INSN for which
28         corresponding dest has last value recorded, invalidate that last
29         value.
31 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
34         of explicit '@'.  Add missing assembly comment marker on branch costs
35         printout.
37 2017-02-13  Nathan Sidwell  <nathan@acm.org>
39         * gengtype-lex.l (<in_struct>): Add '/'.
41 2017-02-13  Martin Liska  <mliska@suse.cz>
43         PR c/79471
44         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
46 2017-02-13  Richard Biener  <rguenther@suse.de>
48         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
49         Remove.
50         * configure: Re-generate.
51         * config.in: Likewise.
52         * graphite-dependences.c: Simplify as if
53         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
54         * graphite-isl-ast-to-gimple.c: Likewise.
55         * graphite-optimize-isl.c: Likewise.
56         * graphite-poly.c: Likewise.
57         * graphite-sese-to-poly.c: Likewise.
58         * graphite.h: Likewise.
59         * toplev.c: Include isl/version.h and use isl_version () for
60         printing the ISL version.
61         * doc/install.texi: Update ISL requirement.
63 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
65         * doc/standards.texi (Standards): Update reference to
66         Objective-C 2.0.
68 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
69         
70         * doc/extend.texi (Named Address Spaces): sourceware.org now
71         defaults to https.
72         * doc/install.texi (Binaries): Ditto.
73         (Specific): Ditto.
75 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
77         * doc/cpp.texi: Replace "stringify"/"stringification" with C 
78         standard terminology "stringize"/"stringizing" throughout.
79         * doc/cppinternals.texi: Likewise.
81 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
83         * doc/extend.texi: Fix some spelling mistakes and typos.
84         * doc/invoke.texi: Likewise.
86 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
88         PR ipa/79224
89         * params.def (inline-min-speedup) Change from 10 to 8.
91 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
93         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
94         4.5.
96 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
98         PR ipa/79224
99         * ipa-inline-analysis.c (get_minimal_bb): New function.
100         (record_modified): Use it.
101         (remap_edge_change_prob): Handle also ancestor functions.
103 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
105         * doc/contrib.texi (Contributors): Remove broken link into
106         the Mauve CVS repository.
108 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
110         PR middle-end/79454
111         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
112         result computation whenever lhs doesn't have vector mode, not
113         just when it has BLKmode.
115 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
117         * doc/makefile.texi (profiledbootstrap): Refer to the
118         installation instructions only in textual form.
120 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
122         PR target/79295
123         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
125 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
127         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
128         (Specific): Update mingw-w64 reference.
129         (Binaries): Ditto.
130         (Specific): Remove broken link to Renesas RX processor.
132 2017-02-10  Richard Biener  <rguenther@suse.de>
134         * toplev.c (process_options): Do not mention obsolete graphite
135         options when printing sorry message about missing graphite support.
136         Mention -floop-nest-optimize.
138 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
140         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
141         (vtst_p16): Likewise.
142         (vtstq_p8): Likewise.
143         (vtstq_p16): Likewise.
144         (vtst_p64): New.
145         (vtstq_p64): Likewise.
146         * config/arm/arm_neon.h (vgetq_lane_p64): New.
147         (vset_lane_p64): New.
148         (vsetq_lane_p64): New.
150 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
152         PR tree-optimization/79411
153         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
154         stmt operands are SSA_NAMEs used in abnormal phis.
155         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
156         phis.
158 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
160         PR ipa/70795
161         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
162         flag if needed.
164 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
166         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
168 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
170         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
171         to avoid warning.
173         PR c/79413
174         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
175         not arbitrary TREE_CONSTANT.
177         PR c/79431
178         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
179         "omp declare target link" attribute unless is_global_var.
180         * omp-offload.c (find_link_var_op): Likewise.
182 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
183             Chung-Lin Tang  <cltang@codesourcery.com>
185         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
186         OMP_CLAUSE_TILE.
187         (gimplify_adjust_omp_clauses): Don't delete TILE.
188         (gimplify_omp_for): Deal with TILE.
189         * internal-fn.c (expand_GOACC_TILE): New function.
190         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
191         (GOACC_TILE): New.
192         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
193         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
194         element fields.
195         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
196         avoid DIV for outermost collapse var.
197         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
198         Remove out of date comments, fix whitespace.
199         * omp-general.c (omp_extract_for_data): Deal with tiling.
200         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
201         adjust OLF_DIM_BASE value.
202         (struct omp_for_data): Add tiling field.
203         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
204         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
205         for auto loops.  Remove default auto determining, moved to
206         oacc_loop_fixed_partitions.
207         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
208         stmts, add e_mask field.
209         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
210         (oacc_thread_numbers): Use oacc_dim_call.
211         (oacc_xform_tile): New.
212         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
213         (finish_oacc_loop): Adjust for ifns vector.
214         (oacc_loop_discover_walk): Append loop abstraction sites to list,
215         add case for GOACC_TILE fns.
216         (oacc_loop_xform_loop): Delete.
217         (oacc_loop_process): Iterate over call list directly, and add
218         handling for GOACC_TILE fns.
219         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
220         dump partitioning.
221         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
222         vector partitioning to outer loops.  Assign 2 partitions to loops
223         when available. Add TILE handling.
224         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
225         (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
226         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
227         * tree.c (omp_clause_num_ops): Adjust TILE ops.
228         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
230 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
232         * configure.ac (ACX_BUGURL): Update.
233         * configure: Regenerate.
235 2017-02-09  Richard Biener  <rguenther@suse.de>
237         PR tree-optimization/69823
238         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
239         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
241 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
243         * config/arc/arc-c.def: Add __NPS400__ definition.
244         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
245         (TARGET_NPS400): Define.
247 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
249         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
250         file.
251         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
252         pointer, arch_info.
253         (arc_cpu_types): Fill the arch_info field with a pointer into the
254         arc_arch_types table.
255         (arc_selected_cpu): Declare.
256         * config/arc/arc.c (arc_selected_cpu): Make global.
257         (arc_selected_arch): Delete.
258         (arc_base_cpu): Delete.
259         (arc_override_options): Remove references to deleted variables,
260         update access to arch information.
261         (ARC_OPT): Update access to arch information.
262         (ARC_OPTX): Likewise.
263         * config/arc/arc.h (arc_base_cpu): Remove declaration.
264         (TARGET_ARC600): Update access to arch information.
265         (TARGET_ARC601): Likewise.
266         (TARGET_ARC700): Likewise.
267         (TARGET_EM): Likewise.
268         (TARGET_HS): Likewise.
269         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
270         information.
272 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
274         PR target/78604
275         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
276         condition/operands for integer GE/LE/GEU/LEU operations.
278 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
280         PR translation/79397
281         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
282         of AltiVec.
284 2017-02-08  Martin Jambor  <mjambor@suse.cz>
286         PR ipa/79375
287         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
288         whether allocation happened.
289         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
290         nothing was allocated.
292 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
294         PR tree-optimization/79408
295         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
296         constant, but SSA_NAME with a known integer range, use the minimum
297         of that range instead of op1 to determine if modulo can be replaced
298         with its first operand.
300 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
302         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
304 2017-02-08  Richard Biener  <rguenther@suse.de>
306         PR tree-optimization/71824
307         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
308         Check all loops contained in the merged region.
310 2017-02-07  Andrew Pinski  <apinski@cavium.com>
312         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
314 2017-02-07  Andrew Pinski  <apinski@cavium.com>
316         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
317         (thunderxt88): Likewise.
318         (thunderxt81): Disable LSE and change v8.1 to v8.
319         (thunderxt83): Likewise.
321 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
322             Richard Biener  <rguenther@suse.de>
324         PR middle-end/79399
325         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
326         type from int to size_t.
327         * ira-costs.c (struct_costs_size): Change type from int to size_t.
329 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
331         PR rtl-optimization/79386
332         * cprop.c (bypass_conditional_jumps): Initialize
333         bypass_last_basic_block already before splitting bbs after
334         unconditional traps...
335         (bypass_conditional_jumps): ... rather than here.
337         PR target/79299
338         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
339         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
340         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
341         fix -masm=intel patterns.
343 2017-02-07  Richard Biener  <rguenther@suse.de>
345         PR tree-optimization/79256
346         PR middle-end/79278
347         * builtins.c (get_object_alignment_2): Use min_align_of_type
348         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
349         and ADJUST_FIELD_ALIGN.
351         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
352         type parameter.
353         * doc/tm.texi: Regenerate.
354         * stor-layout.c (layout_decl): Adjust.
355         (update_alignment_for_field): Likewise.
356         (place_field): Likewise.
357         (min_align_of_type): Likewise.
358         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
359         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
360         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
361         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
362         * config/frv/frv.c (frv_adjust_field_align): Likewise.
363         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
364         * config/i386/i386.c (x86_field_alignment): Likewise.
365         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
366         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
367         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
368         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
369         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
370         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
371          Likewise.
373         Revert
374         2017-01-30  Richard Biener  <rguenther@suse.de>
376         PR tree-optimization/79256
377         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
378         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
379         alignment on TYPE.
381 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
383         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
384         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
385         builtins to SImode and emit a zero-extend, if necessary.
387 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
389         * docs/invoke.texi (RISC-V Options): Alphabetize.
391 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
393         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
394         options.
396 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
398         * config/riscv/riscv.c: New file.
399         * gcc/common/config/riscv/riscv-common.c: Likewise.
400         * config.gcc: Likewise.
401         * config/riscv/constraints.md: Likewise.
402         * config/riscv/elf.h: Likewise.
403         * config/riscv/generic.md: Likewise.
404         * config/riscv/linux.h: Likewise.
405         * config/riscv/multilib-generator: Likewise.
406         * config/riscv/peephole.md: Likewise.
407         * config/riscv/pic.md: Likewise.
408         * config/riscv/predicates.md: Likewise.
409         * config/riscv/riscv-builtins.c: Likewise.
410         * config/riscv/riscv-c.c: Likewise.
411         * config/riscv/riscv-ftypes.def: Likewise.
412         * config/riscv/riscv-modes.def: Likewise.
413         * config/riscv/riscv-opts.h: Likewise.
414         * config/riscv/riscv-protos.h: Likewise.
415         * config/riscv/riscv.h: Likewise.
416         * config/riscv/riscv.md: Likewise.
417         * config/riscv/riscv.opt: Likewise.
418         * config/riscv/sync.md: Likewise.
419         * config/riscv/t-elf-multilib: Likewise.
420         * config/riscv/t-linux: Likewise.
421         * config/riscv/t-linux-multilib: Likewise.
422         * config/riscv/t-riscv: Likewise.
423         * configure.ac: Likewise.
424         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
425         Waterman as RISC-V maintainers.
426         * doc/install.texi: Add RISC-V entries.
427         * doc/invoke.texi: Add RISC-V options section.
428         * doc/md.texi: Add RISC-V constraints section.
429         * configure: Regenerated.
431 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
433         PR target/66144
434         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
435         false values to be constant vectors with all 0 or all 1 bits set.
436         (vcondu<mode><mode>): Likewise.
437         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
438         predicate.
439         (fpmask_comparison_operator): Update comment.
440         (vecint_comparison_operator): New predicate.
441         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
442         vector conditionals when the true and false values are constant
443         vectors with all 0 bits or all 1 bits set.
445 2017-02-06  Martin Sebor  <msebor@redhat.com>
447         PR  tree-optimization/79376
448         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
450 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
452         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
453         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
454         to simplify split condition.
456 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
458         * omp-expand.c (oxpand_omp_atomic_fetch_op,
459         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
460         false.
462 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
464         PR rtl-optimization/68664
465         * target.def (can_speculate_insn): New hook.
466         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
467         * doc/tm.texi: Regenerate.
468         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
469         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
470         (rs6000_sched_can_speculate_insn): New function.
472 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
474         PR tree-optimization/79284
475         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
476         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
477         vectorizable_mask_load_store, vectorizable_operation,
478         vect_is_simple_cond, get_same_sized_vectype): Use it instead
479         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
480         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
481         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
482         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
483         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
484         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
485         is_gimple_assign (stmt).  Replace another such test with
486         is_gimple_assign (stmt).
488 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
490         PR target/78883
491         * config/avr/avr.c (rtl-iter.h): Include it.
492         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
493         (avr_legitimate_combined_insn): ...and implementation.
495 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
497         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
498         * config/s390/s390.c (s390_const_operand_ok)
499         (s390_canonicalize_comparison, s390_extract_part)
500         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
501         (s390_contiguous_bitmask_p, s390_rtx_costs)
502         (legitimize_pic_address): Likewise.
503         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
504         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
505         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
506         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
507         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
509 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
511         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
512         REGNO($0) == REGNO($1).
514 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
516         * config/s390/linux.h(SIZE_TYPE): Add comment.
518 2017-02-06  Julian Brown  <julian@codesourcery.com>
519             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
520             Virendra Pathak  <virendra.pathak@broadcom.com>
522         * config/aarch64/aarch64-cores.def: Change the scheduler
523         to Thunderx2t99.
524         * config/aarch64/aarch64.md: Include thunderx2t99.md.
525         * config/aarch64/thunderx2t99.md: New file.
527 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
529         * doc/standards.texi (Go Language): Update link to language
530         standard.
532 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
534         * tree-eh.c (lower_resx): Sanitize profile.
535         (cleanup_empty_eh_move_lp): Likewise.
537 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
539         PR tree-ssa/79347
540         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
541         ELSE_PROB.
542         * cfgloopmanip.h (loop_version): Update prototype.
543         * modulo-sched.c (sms_schedule): Update call of loop_version.
544         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
545         * tree-parloops.c (gen_parallel_loop): Likewise.
546         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
547         * tree-ssa-loop-split.c (split_loop): Likewise.
548         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
549         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
551 2017-02-05  Martin Liska  <mliska@suse.cz>
553         PR bootstrap/78985
554         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
555         variable to NULL.
556         (print_operand_address): Initialize a struct to zero.
558 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
560         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
561         garbage collector only in textual form.
563 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
564         
565         * doc/extend.texi (x86 specific memory model extensions for
566         transactional memory): Simplify a phrase.
568 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
570         PR target/79353
571         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
572         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
573         (atomic_storedi_1): Likewise.
575 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
577         PR tree-optimization/79338
578         * tree-parloops.c (gather_scalar_reductions): Don't call
579         vect_analyze_loop_form for loop->inner before destroying loop's
580         loop_vinfo.
582 2017-02-03  Martin Sebor  <msebor@redhat.com>
584         PR tree-optimization/79327
585         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
586         when precision has resulted in leading zeros.
587         (format_integer): Adjust the likely counter to assume an unknown
588         argument that may be zero is non-zero.
590 2017-02-03  Jason Merrill  <jason@redhat.com>
592         PR c++/78689
593         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
594         avoid copying non-taken branch.
596 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
598         PR tree-optimization/79340
599         * tree-vect-loop.c (vectorizable_reduction): Release
600         vec_defs elements after safe_splicing them into other vectors.
601         Formatting fixes.
603         PR tree-optimization/79327
604         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
605         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
606         dirtype.
607         (format_integer): Use wide_int_to_tree instead of build_int_cst
608         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
609         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
610         of shortest and longest sequence.
612 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
614         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
615         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
617 2017-02-03  Walter Lee  <walt@tilera.com>
619         PR target/78862
620         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
621         after initial stackframe link reg save.
622         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
624 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
626         PR target/79354
627         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
628         wu for stxssp alternative.
630 2017-02-03  Martin Sebor  <msebor@redhat.com>
632         PR tree-optimization/79352
633         * gimple-fold.c (get_range_strlen): Add argument.
634         (get_range_strlen): Change return type to bool.
635         (get_maxval_strlen): Pass in a dummy argument.
636         * gimple-fold.h (get_range_strlen): Change return type to bool.
637         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
638         * tree.h (array_at_struct_end_p): Add argument.
639         * tree.c (array_at_struct_end_p): Handle it.
641 2017-02-03  Martin Liska  <mliska@suse.cz>
643         PR lto/66295
644         * multiple_target.c (create_dispatcher_calls): Redirect edge
645         from a caller of a dispatcher.
646         (expand_target_clones): Make the clones local.
647         (ipa_target_clone): Do both target clones and resolvers.
648         (ipa_dispatcher_calls): Remove the pass.
649         (pass_dispatcher_calls::gate): Likewise.
650         (make_pass_dispatcher_calls): Likewise.
651         * passes.def (pass_target_clone): Put as very first IPA early
652         pass.
654 2017-02-03  Martin Liska  <mliska@suse.cz>
656         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
657         in case of a function with ifunc attribute.
659 2017-02-03  Martin Liska  <mliska@suse.cz>
661         * cgraph.c (cgraph_node::dump): Dump function version info.
662         * symtab.c (symtab_node::dump_base): Add missing new line.
664 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
666         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
667         (ifcombine_ifandif): Use it.
669 2017-02-03  Martin Liska  <mliska@suse.cz>
671         * doc/invoke.texi: Document default value for
672         use-after-scope-direct-emission-threshold.
674 2017-02-03  Martin Liska  <mliska@suse.cz>
676         PR tree-optimization/79339
677         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
678         (format_floating): Likewise.
680 2017-02-03  Martin Liska  <mliska@suse.cz>
682         PR ipa/79337
683         * ipa-prop.c (ipa_node_params_t::insert): Remove current
684         implementation.
685         (ipa_node_params_t::remove): Likewise.
686         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
687         initialization from removed ipa_node_params_t::insert.
688         (ipa_node_params::~ipa_node_params): Move from removed
689         ipa_node_params_t::release.
690         * symbol-summary.h (symbol_summary::m_released): New member.
691         Do not release a summary twice.  Do not allow to call finalizer
692         for types of a summary that live in GGC memory.
694 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
696         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
697         cmp_branch fusion.
699 2017-02-02  Martin Sebor  <msebor@redhat.com>
701         PR middle-end/79275
702         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
703         (format_string): Tighten up the range of output for non-constant
704         strings and correct the expected range for wide non-constant strings.
706 2017-02-02  Martin Sebor  <msebor@redhat.com>
708         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
710         PR middle-end/32003
711         * doc/invoke.texi (-fdump-rtl-): Remove pass-specific options from
712         index.
713         (-fdump-tree-@var): Add to index and document how to come up
714         with pass-specific option and dump file names.
715         (-fdump-passes): Clarify where to look for output.
717 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
719         PR middle-end/77445
720         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
721         statistics of the analyzed path; allow threading for speed when
722         any of BBs along the path are optimized for speed.
724 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
726         PR middle-end/78468
727         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
728         settings of the virtual registers.
730         Revert again
731         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
733         * explow.c (get_dynamic_stack_size): Take known alignment of stack
734         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
735         needed.
737 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
739         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
740         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
742 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
744         * config/s390/s390.md: Add missing comments with the expanded
745         mnemonics.
746         * config/s390/vector.md: Likewise.
747         * config/s390/vx-builtins.md: Likewise.
749 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
751         PR target/79197
752         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
753         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
754         conditions on a single line.
756 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
758         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
759         __S390_VX__ to __VX__.
761 2017-02-01  Andrew Pinski  <apinski@cavium.com>
763         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
764         stmt_info to record_stmt_cost.
765         (vect_get_known_peeling_cost): Pass stmt_info if known to
766         record_stmt_cost.
767         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
768         cpu_vector_cost field into
769         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
770         field into vec_int_stmt_cost and vec_fp_stmt_cost.
771         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
772         splitting of scalar_stmt_cost and vec_stmt_cost.
773         (thunderx_vector_cost): Likewise.
774         (cortexa57_vector_cost): LIkewise.
775         (exynosm1_vector_cost): Likewise.
776         (xgene1_vector_cost): Likewise.
777         (thunderx2t99_vector_cost): Improve after the splitting of the two
778         fields.
779         (aarch64_builtin_vectorization_cost): Update for the splitting of
780         scalar_stmt_cost and vec_stmt_cost.
782 2017-02-01  Torvald Riegel  <triegel@redhat.com>
783             Richard Henderson  <rth@redhat.com>
785         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
786         conditional on existance of a fast atomic load.
787         * optabs-query.c (can_atomic_load_p): New function.
788         * optabs-query.h (can_atomic_load_p): Declare it.
789         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
790         no fast atomic load is available for the particular size of access.
791         (expand_atomic_compare_and_swap): Likewise.
792         (expand_atomic_load): Likewise.
793         (expand_atomic_store): Likewise.
794         (expand_atomic_fetch_op): Likewise.
795         * testsuite/lib/target-supports.exp
796         (check_effective_target_sync_int_128): Remove x86 because it provides
797         no fast atomic load.
798         (check_effective_target_sync_int_128_runtime): Likewise.
800 2017-02-01  Richard Biener  <rguenther@suse.de>
802         * graphite.c: Include tree-vectorizer.h for find_loop_location.
803         (graphite_transform_loops): Provide opt-info for optimized nests.
804         * tree-parloop.c (parallelize_loops): Provide opt-info for
805         parallelized loops.
807 2017-02-01  Richard Biener  <rguenther@suse.de>
809         PR middle-end/79315
810         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
811         was not set before.
813 2017-02-01  Richard Biener  <rguenther@suse.de>
815         PR tree-optimization/71824
816         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
817         Verify the loops are valid in the merged SESE region.
818         (scop_detection::can_represent_loop_1): Check analyzing the
819         evolution of the number of iterations in the region succeeds.
821 2017-01-31  Ian Lance Taylor  <iant@golang.org>
823         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
824         REG_ARGS_SIZE note to 32-bit push insns and call insn.
826 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
828         PR preprocessor/79210
829         * input.c (get_substring_ranges_for_loc): Replace line_width
830         assertion with error-handling.
832 2017-01-31  Richard Biener  <rguenther@suse.de>
834         PR tree-optimization/77318
835         * graphite-sese-to-poly.c (extract_affine): Fix assert.
836         (create_pw_aff_from_tree): Take loop parameter.
837         (add_condition_to_pbb): Pass loop of the condition to
838         create_pw_aff_from_tree.
840 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
842         * config/s390/s390.c (s390_asan_shadow_offset): New function.
843         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
845 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
847         PR target/78597
848         PR target/79038
849         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
850         no longer used.
851         (convert_int_to_float128): Likewise.
852         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
853         (convert_int_to_float128): Likewise.
854         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
855         (UNSPEC_IEEE128_CONVERT): Likewise.
856         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
857         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
858         Use local variables for IBM extended format.
859         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
860         (fix_trunc<mode>si2_fprs): Likewise.
861         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
862         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
863         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
864         to know that we can now have integers of all sizes in vector
865         registers.
866         (fix<uns>_<mode>di2_hw): Likewise.
867         (float<uns>_<mode>si2_hw): Likewise.
868         (fix_<mode>si2_hw): Likewise.
869         (fixuns_<mode>si2_hw): Likewise.
870         (float<uns>_<mode>di2_hw): Likewise.
871         (float_<mode>di2_hw): Likewise.
872         (float_<mode>si2_hw): Likewise.
873         (floatuns_<mode>di2_hw): Likewise.
874         (floatuns_<mode>si2_hw): Likewise.
875         (xscvqp<su>wz_<mode>): Delete, no longer used.
876         (xscvqp<su>dz_<mode>): Likewise.
877         (xscv<su>dqp_<mode>): Likewise.
878         (ieee128_mfvsrd_64bit): Likewise.
879         (ieee128_mfvsrd_32bit): Likewise.
880         (ieee128_mfvsrwz): Likewise.
881         (ieee128_mtvsrw): Likewise.
882         (ieee128_mtvsrd_64bit): Likewise.
883         (ieee128_mtvsrd_32bit): Likewise.
885 2017-01-31  Martin Liska  <mliska@suse.cz>
887         PR ipa/79285
888         * ipa-prop.c (ipa_free_all_node_params): Call release method
889         instead of ~sumbol_summary to not to trigger double times
890         dtor of hash_map.
892 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
894         PR tree-optimization/71691
895         * bitmap.h (class auto_bitmap): New.
896         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
897         is_maybe_undefined instead of ssa_undefined_value_p.
899 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
901         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
902         __S390_ARCH_LEVEL__ to __ARCH__.
904 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
906         PR tree-optimization/79267
907         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
908         if should_remove_lhs_p is true.
910 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
912         PR debug/63238
913         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
914         (add_alignment_attribute): New.
915         (base_type_die): Add alignment attribute.
916         (subrange_type_die): Likewise.
917         (modified_type_die): Likewise.
918         (gen_array_type_die): Likewise.
919         (gen_descr_array_type_die: Likewise.
920         (gen_enumeration_type_die): Likewise.
921         (gen_subprogram_die): Likewise.
922         (gen_variable_die): Likewise.
923         (gen_field_die): Likewise.
924         (gen_ptr_to_mbr_type_die): Likewise.
925         (gen_struct_or_union_type_die): Likewise.
926         (gen_subroutine_type_die): Likewise.
927         (gen_typedef_die): Likewise.
928         (base_type_cmp): Compare alignment attribute.
930 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
932         PR target/79170
933         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
934         (setb_unsigned) New pattern for setb with CCUNS.
935         * config/rs6000/rs6000.c (expand_block_compare): Use a different
936         subfc./subfe sequence to avoid overflow problems.  Generate a
937         shorter sequence with cmpld/setb for power9.
938         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
939         for generating subfc. instruction.
940         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
941         now uses this instruction.
943 2017-01-30  Ian Lance Taylor  <iant@google.com>
945         PR debug/79289
946         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
947         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
949 2017-01-30  Martin Sebor  <msebor@redhat.com>
951         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
952         Move constant to the right of a relational operator.
953         (get_mpfr_format_length, format_character, format_string): Ditto.
954         (should_warn_p, maybe_warn): Same.
956         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
958 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
960         PR lto/79061
961         * asan.c (get_translation_unit_decl): Remove function.
962         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
964 2017-01-30  Martin Liska  <mliska@suse.cz>
966         PR gcov-profile/79259
967         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
968         -fprofile-generate.
970 2017-01-30  Martin Liska  <mliska@suse.cz>
972         PR bootstrap/78985
973         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
974         Initialize variables with NULL value.
976 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
978         PR target/79260
979         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
980         tm_p_file.
981         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
983 2017-01-30  Richard Biener  <rguenther@suse.de>
985         PR tree-optimization/79276
986         * tree-vrp.c (process_assert_insertions): Properly adjust common
987         when removing a duplicate.
989         * gcc.dg/torture/pr79276.c: New testcase.
991 2017-01-30  Richard Biener  <rguenther@suse.de>
993         PR tree-optimization/79256
994         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
995         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
996         alignment on TYPE.
997         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
999 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1001         PR target/79240
1002         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
1003         ("*r<noxa>sbg_<mode>_sll_bitmask")
1004         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
1005         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
1006         Use contiguous_bitmask_nowrap_operand.
1008 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1010         PR target/79268
1011         * config/rs6000/altivec.h (vec_xl): Revise #define.
1012         (vec_xst): Likewise.
1014 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
1016         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
1018 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
1020         PR rtl-optimization/79194
1021         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
1022         traps before call to bypass_conditional_jumps.
1024 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
1026         PR tree-optimization/71374
1027         * lra-constraints.c (check_conflict_input_operands): New.
1028         (match_reload): Use it.
1030 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
1032         PR target/79131
1033         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
1034         account to calculate conflict_set.
1036 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
1038         PR rtl-optimization/78559
1039         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
1040         other_insn in combine.
1042 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
1044         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
1045         uint16_type_node for BT_UINT16.
1047 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
1049         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
1050         "RTL Tests" to menu.
1051         (GIMPLE Tests): New node.
1052         (RTL Tests): New node.
1054 2017-01-27  Richard Biener  <rguenther@suse.de>
1056         PR tree-optimization/79245
1057         * tree-loop-distribution.c (distribute_loop): Apply cost
1058         modeling also to detected patterns.
1060 2017-01-27  Richard Biener  <rguenther@suse.de>
1062         PR tree-optimization/71433
1063         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
1064         (compare_assert_loc): New function.
1065         (process_assert_insertions): Sort and optimize assert locations
1066         to remove duplicates and push down identical assertions on
1067         edges to their destination block.
1069 2017-01-27  Richard Biener  <rguenther@suse.de>
1071         PR tree-optimization/79244
1072         * tree-vrp.c (remove_range_assertions): Forcefully propagate
1073         out SSA names even if abnormal.
1075 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
1077         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
1078         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
1079         instead of MPFR_RNDN.
1081 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
1083         PR target/79239
1084         * arm.c (arm_option_override): Don't call build_target_option_node
1085         until after doing all option overrides.
1086         (arm_valid_target_attribute_tree): Likewise.
1088 2017-01-27  Martin Liska  <mliska@suse.cz>
1090         * doc/invoke.texi (-fprofile-arcs): Document profiling support
1091         for {cd}tors and C++ {cd}tors.
1093 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1095         * config/s390/s390.md ("*setmem_long_and")
1096         ("*setmem_long_and_31z"): Use zero_extend instead of and.
1098 2017-01-26  Martin Sebor  <msebor@redhat.com>
1100         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
1101         of precision.
1103 2017-01-26  Martin Sebor  <msebor@redhat.com>
1105         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
1106         HAVE_DFmode before using XFmode or DFmode.
1107         (parse_directive): Avoid using the z length modifier to avoid
1108         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
1110         PR middle-end/78703
1111         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
1112         to accept adjustment as an array.
1113         (get_int_range): New function.
1114         (struct directive): Make width and prec arrays.
1115         (directive::set_width, directive::set_precision): Call get_int_range.
1116         (format_integer, format_floating): Handle width and precision ranges.
1117         (format_string, parse_directive): Same.
1119 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
1121         PR debug/79129
1122         * dwarf2out.c (generate_skeleton_bottom_up): For children with
1123         comdat_type_p set, just clone them, but keep the children in the
1124         original DIE.
1126         PR debug/78835
1127         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
1128         which have direct callers with -fvar-tracking-assignments enabled
1129         in the current TU.
1130         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
1131         inside of type units.
1133 2017-01-26  Martin Sebor  <msebor@redhat.com>
1135         PR middle-end/78703
1136         * gimple-ssa-sprintf.c (struct result_range): Add likely and
1137         unlikely counters.
1138         (struct format_result): Replace number_chars, number_chars_min,
1139         and number_chars_max with a single member of struct result_range.
1140         Remove bounded.
1141         (format_result::operator+=): Adjust.
1142         (struct fmtresult): Remove bounded.  Handle likely and unlikely
1143         counters.
1144         (fmtresult::adjust_for_width_or_precision): New function.
1145         (fmtresult:type_max_digits): New function.
1146         (bytes_remaining): Handle likely and unlikely counters.
1147         (min_bytes_remaining): Remove.
1148         (format_percent): Simplify.
1149         (format_integer, format_floating): Set likely and unlikely counters.
1150         (get_string_length, format_character, format_string): Same.
1151         (format_plain, should_warn_p): New function.
1152         (maybe_warn): Call should_warn_p.  Update diagnostic messages
1153         and handle those for all directives, including plain strings.
1154         (format_directive): Handle likely and unlikely counters.
1155         Remove unnecessary quoting from diagnostics.  Add an informational
1156         note.
1157         (add_bytes): Remove.
1158         (pass_sprintf_length::compute_format_length): Simplify.
1159         (try_substitute_return_value): Handle likely and unlikely counters.
1161 2017-01-26  Carl Love  <cel@us.ibm.com>
1163         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
1164         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
1166 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
1168         PR target/79131
1169         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
1170         endianess for subregs into account.
1171         * lra-constraints.c (lra_constraints): Do risky transformations
1172         always on the first iteration.
1173         * lra-lives.c (check_pseudos_live_through_calls): Add arg
1174         last_call_used_reg_set.
1175         (process_bb_lives): Define and use last_call_used_reg_set.
1176         * lra.c (lra): Always continue after lra_constraints on the first
1177         iteration.
1179 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
1181         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
1182         constant.
1183         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
1185 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
1187         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
1188         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
1189         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
1190         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
1191         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
1192         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
1193         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
1194         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
1195         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
1197 2017-01-26  Marek Polacek  <polacek@redhat.com>
1199         PR c/79199
1200         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
1201         for the third operand.
1203 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
1205         PR middle-end/79236
1206         * omp-low.c (struct omp_context): Add simt_stmt field.
1207         (scan_omp_for): Return omp_context *.
1208         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
1209         context to the _simt_ SIMD stmt.
1210         (lower_omp_for): For combined SIMD with sibling _simt_
1211         SIMD, make sure to use the same decls in _looptemp_
1212         clauses as in the sibling.
1214 2017-01-26  David Sherwood  <david.sherwood@arm.com>
1216         PR middle-end/79212
1217         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
1218         all contexts.
1220 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
1222         PR target/70465
1223         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
1224         emit fld b; fld a; if possible.
1226         * brig-builtins.def: Update copyright years.
1227         * config/arm/arm_acle_builtins.def: Update copyright years.
1229 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
1231         PR target/79179
1232         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
1233         constraint instead of o for the stxsd instruction.
1235 2017-01-25  Carl Love  <cel@us.ibm.com>
1237         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
1238         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
1240 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
1242         * doc/invoke.texi (C++ Dialect Options): Fix typo.
1244 2017-01-25  Richard Biener  <rguenther@suse.de>
1246         PR tree-optimization/69264
1247         * target.def (vector_alignment_reachable): Improve documentation.
1248         * doc/tm.texi: Regenerate.
1249         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
1250         and add a comment.
1251         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
1252         earlier changes with respect to TYPE_USER_ALIGN.
1253         (vector_alignment_reachable_p): Likewise.  Improve dumping.
1255 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1257         PR target/79145
1258         * config/arm/arm.md (xordi3): Force constant operand into a register
1259         for TARGET_IWMMXT.
1261 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1263         * doc/invoke.texi (-fstore-merging): Correct default optimization
1264         levels at which it is enabled.
1265         (-O): Move -fstore-merging from list to...
1266         (-O2): ... Here.
1268 2017-01-25  Richard Biener  <rguenther@suse.de>
1270         PR debug/78363
1271         * omp-expand.c: Include debug.h.
1272         (expand_omp_taskreg): Make sure to generate early debug before
1273         outlining anything from a function.
1274         (expand_omp_target): Likewise.
1275         (grid_expand_target_grid_body): Likewise.
1277 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
1279         PR lto/79061
1280         * asan.c (get_translation_unit_decl): New function.
1281         (asan_add_global): Extract modules file name from globals
1282         TRANSLATION_UNIT_DECL name.
1284 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
1286         PR target/77439
1287         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
1288         for long calls with APCS frame and VFP.
1290 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
1292         * cfg.c (original_copy_tables_initialized_p): New function.
1293         * cfg.h (original_copy_tables_initialized_p): New decl.
1294         * cfgrtl.c (relink_block_chain): Guard the call to
1295         free_original_copy_tables with a call to
1296         original_copy_tables_initialized_p.
1297         * cgraph.h (symtab_node::native_rtl_p): New decl.
1298         * cgraphunit.c (symtab_node::native_rtl_p): New function.
1299         (symtab_node::needed_p): Don't assert for early assembly output
1300         for __RTL functions.
1301         (cgraph_node::finalize_function): Set "force_output" for __RTL
1302         functions.
1303         (cgraph_node::analyze): Bail out early for __RTL functions.
1304         (analyze_functions): Update assertion to support __RTL functions.
1305         (cgraph_node::expand): Bail out early for __RTL functions.
1306         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
1307         __RTL functions.
1308         * function.h (struct function): Update comment for field
1309         "pass_startwith".
1310         * gimple-expr.c: Include "tree-pass.h".
1311         (gimple_has_body_p): Return false for __RTL functions.
1312         * Makefile.in (OBJS): Add run-rtl-passes.o.
1313         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
1314         accessor.
1315         (gcc::pass_manager::get_clean_slate): New accessor.
1316         * passes.c: Include "insn-addr.h".
1317         (should_skip_pass_p): Add logging.  Update logic for running
1318         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
1319         property-provider override so it is only done for gimple passes.
1320         Don't skip dfinit.
1321         (skip_pass): New function.
1322         (execute_one_pass): Call skip_pass when skipping passes.
1323         * read-md.c (md_reader::read_char): Support filtering
1324         the input to a subset of line numbers.
1325         (md_reader::md_reader): Initialize fields
1326         m_first_line and m_last_line.
1327         (md_reader::read_file_fragment): New function.
1328         * read-md.h (md_reader::read_file_fragment): New decl.
1329         (md_reader::m_first_line): New field.
1330         (md_reader::m_last_line): New field.
1331         * read-rtl-function.c (function_reader::create_function): Only
1332         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
1333         curr_properties.  Set DECL_INITIAL to a dummy block.
1334         (read_rtl_function_body_from_file_range): New function.
1335         * read-rtl-function.h (read_rtl_function_body_from_file_range):
1336         New decl.
1337         * run-rtl-passes.c: New file.
1338         * run-rtl-passes.h: New file.
1340 2017-01-24 Jeff Law  <law@redhat.com>
1342         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
1343         buffer size.
1345 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
1347         PR tree-optimization/79159
1348         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
1349         (record_nonwrapping_iv): Improve boundary using above function if no
1350         value range information.
1352 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
1353             Martin Jambor  <mjambor@suse.cz>
1355         * brig-builtins.def: New file.
1356         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
1357         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
1358         (DEF_HSAIL_SAT_BUILTIN): Likewise.
1359         (DEF_HSAIL_INTR_BUILTIN): Likewise.
1360         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
1361         * builtin-types.def (BT_INT8): New.
1362         (BT_INT16): Likewise.
1363         (BT_UINT8): Likewise.
1364         (BT_UINT16): Likewise.
1365         (BT_FN_ULONG): Likewise.
1366         (BT_FN_UINT_INT): Likewise.
1367         (BT_FN_UINT_ULONG): Likewise.
1368         (BT_FN_UINT_LONG): Likewise.
1369         (BT_FN_UINT_PTR): Likewise.
1370         (BT_FN_ULONG_PTR): Likewise.
1371         (BT_FN_INT8_FLOAT): Likewise.
1372         (BT_FN_INT16_FLOAT): Likewise.
1373         (BT_FN_UINT32_FLOAT): Likewise.
1374         (BT_FN_UINT16_FLOAT): Likewise.
1375         (BT_FN_UINT8_FLOAT): Likewise.
1376         (BT_FN_UINT64_FLOAT): Likewise.
1377         (BT_FN_UINT16_UINT32): Likewise.
1378         (BT_FN_UINT32_UINT16): Likewise.
1379         (BT_FN_UINT16_UINT16_UINT16): Likewise.
1380         (BT_FN_INT_PTR_INT): Likewise.
1381         (BT_FN_UINT_PTR_UINT): Likewise.
1382         (BT_FN_LONG_PTR_LONG): Likewise.
1383         (BT_FN_ULONG_PTR_ULONG): Likewise.
1384         (BT_FN_VOID_UINT64_UINT64): Likewise.
1385         (BT_FN_UINT8_UINT8_UINT8): Likewise.
1386         (BT_FN_INT8_INT8_INT8): Likewise.
1387         (BT_FN_INT16_INT16_INT16): Likewise.
1388         (BT_FN_INT_INT_INT): Likewise.
1389         (BT_FN_UINT_FLOAT_UINT): Likewise.
1390         (BT_FN_FLOAT_UINT_UINT): Likewise.
1391         (BT_FN_ULONG_UINT_UINT): Likewise.
1392         (BT_FN_ULONG_UINT_PTR): Likewise.
1393         (BT_FN_ULONG_ULONG_ULONG): Likewise.
1394         (BT_FN_UINT_UINT_UINT): Likewise.
1395         (BT_FN_VOID_UINT_PTR): Likewise.
1396         (BT_FN_UINT_UINT_PTR: Likewise.
1397         (BT_FN_UINT32_UINT64_PTR): Likewise.
1398         (BT_FN_INT_INT_UINT_UINT): Likewise.
1399         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
1400         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
1401         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
1402         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
1403         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
1404         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
1405         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
1406         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
1407         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
1408         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
1409         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
1410         * doc/frontends.texi: List BRIG FE.
1411         * doc/install.texi (Testing): Add BRIG tesring requirements.
1412         * doc/invoke.texi (Overall Options): Mention BRIG.
1413         * doc/standards.texi (Standards): Doucment BRIG HSA version.
1415 2017-01-24  Richard Biener  <rguenther@suse.de>
1417         PR translation/79208
1418         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
1420 2017-01-24  Martin Jambor  <mjambor@suse.cz>
1422         PR bootstrap/79198
1423         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
1424         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
1425         and known_contexts.
1427 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
1429         PR middle-end/79123
1430         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
1431         casts from signed to unsigned really don't have a range.
1433 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
1435         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
1436         GMP_RNDx for compatiblity.
1438 2017-01-24  Martin Liska  <mliska@suse.cz>
1440         PR bootstrap/79132
1441         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
1442         that would prevent us to call alloca with -1 as argument.
1444 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
1446         * dwarf2out.c (output_compilation_unit_header, output_file_names):
1447         Avoid -Wformat-security warning.
1449 2017-01-23  Andrew Pinski  <apinski@cavium.com>
1451         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
1452         cost table.
1454 2017-01-23  Martin Sebor  <msebor@redhat.com>
1456         PR middle-end/78703
1457         * gimple-ssa-sprintf.c (warn_level): New global.
1458         (format_integer): Use it here and throughout the rest of the file.
1459         Use the same switch to compute sign as base.
1460         (maybe_warn): New function.
1461         (format_directive): Factor out warnings into maybe_warn.
1462         Add debugging output.  Use warn_level.
1463         (add_bytes): Use warn_level.
1464         (pass_sprintf_length::compute_format_length): Add debugging output.
1465         (try_substitute_return_value): Same.
1466         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
1468         PR middle-end/78703
1469         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
1470         (struct fmtresult, format_integer, format_floating): Adjust.
1471         (fmtresult::fmtresult): Set max correctly in two argument ctor.
1472         (get_string_length, format_string,format_directive): Same.
1473         (pass_sprintf_length::compute_format_length): Same.
1474         (try_substitute_return_value): Simplify slightly.
1476         PR middle-end/78703
1477         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
1478         (fmtresult::operator+=): Outlined.
1479         (struct fmtresult): Add ctors.
1480         (struct conversion_spec): Rename...
1481         (struct directive): ...to this.  Add and remove data members.
1482         (directive::set_width, directive::set_precision): New functions.
1483         (format_percent): Use fmtresult ctor.
1484         (get_width_and_precision): Remove.
1485         (format_integer): Make naming changes.  Avoid computing width and
1486         precision.
1487         (format_floating): Same.  Adjust indentation.
1488         (format_character, format_none): New functions.
1489         (format_string): Moved character handling to format_character.
1490         (format_directive): Remove arguments, change return type.
1491         (parse_directive): New function.
1492         (pass_sprintf_length::compute_format_length): Move directive
1493         parsing to parse_directive.
1495 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
1497         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
1498         (assign_assembler_name_if_needed): ... this.
1499         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
1500         (assign_assembler_name_if_needed): ... this.
1501         (free_lang_data_in_cgraph): Adjust callers.
1502         * cgraphunit.c (cgraph_node::analyze): Likewise.
1503         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
1504         Likewise.
1506 2017-01-23  Richard Biener  <rguenther@suse.de>
1508         PR tree-optimization/79088
1509         PR tree-optimization/79188
1510         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
1511         resetting loop bounds after last path deletion.  Reset loop
1512         bounds of the target loop, make code match the comments.
1513         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
1514         Make sure loops need no fixups.
1516 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1518         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
1519         exponent support with double type for first argument.
1520         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
1521         type returned by __builtin_vec_extract_sig,
1522         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
1523         functions from "vector int" to "vector unsigned int" or from
1524         "vector long long int" to "vector unsigned long long int".
1525         Changed type returned by __builtin_vec_extract_exp,
1526         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
1527         functions from "vector int" to "vector unsigned int" or from
1528         "vector long long int" to "vector unsigned long long int".
1529         Changed return type of __builtin_vec_test_data_class,
1530         __builtin_vec_test_data_class_sp, and
1531         __builtin_vec_test_data_class_dp from "vector int" to
1532         "vector bool int" or from "vector long long int" to "vector bool
1533         long long int" and changed second argument type from "unsigned
1534         int" to "int".  Added new overloaded function forms "vector float
1535         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
1536         "vector float __builtin_vec_insert_exp_sp (vector float, vector
1537         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
1538         double, vector unsigned long long int)" and "vector double
1539         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
1540         long int)".  Changed return type of
1541         __builtin_scalar_test_data_class and
1542         __builtin_scalar_test_data_class_sp and
1543         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
1544         int" and changed second argument from "unsigned int" to "int".
1545         Changed type returned by __builtin_scalar_test_neg,
1546         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
1547         from "int" to "bool int".  Added new overloaded function form
1548         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
1549         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
1550         exponent double-precision with floating point first argument.
1551         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
1552         documentation of scalar_test_data_class, scalar_test_neg,
1553         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
1554         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
1555         vec_test_data_class built-in functions to reflect refinements in
1556         their type signatures.
1558 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
1560         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
1561         size of buf.
1562         (aarch64_elf_asm_destructor): Likewise.
1564 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
1566         PR rtl-optimization/78634
1567         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
1568         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
1569         * ifcvt.c (noce_try_cmove): Add missing cost check.
1571         PR rtl-optimization/71724
1572         * combine.c (if_then_else_cond): Look for situations where it is
1573         beneficial to undo the work of one of the recursive calls.
1575 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
1577         PR tree-optimization/70754
1578         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
1579         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
1580         combined stmt before it if not NULL.
1581         (combine_chains): Process refs reversely and compute dominance point
1582         for root ref.
1584 2017-01-23  Martin Liska  <mliska@suse.cz>
1586         PR tree-optimization/79196
1587         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
1588         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
1589         instead of memcmp.
1590         (strlen_optimize_stmt): Call the renamed function.
1592 2017-01-23  Michael Matz  <matz@suse.de>
1594         PR tree-optimization/78384
1595         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
1597 2017-01-23  Richard Biener  <rguenther@suse.de>
1599         PR tree-optimization/79186
1600         * tree-vrp.c (register_new_assert_for): Make sure we've seen
1601         both incoming edges before moving an assert.
1603 2017-01-23  Martin Jambor  <mjambor@suse.cz>
1605         * ipa-prop.c (load_from_param_1): Removed.
1606         (load_from_unmodified_param): Bits from load_from_param_1 put back
1607         here.
1608         (load_from_param): Removed.
1609         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
1610         with stmt.  Reverted back to use of load_from_unmodified_param.
1612 2017-01-23  Martin Jambor  <mjambor@suse.cz>
1614         PR ipa/79108
1615         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
1616         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
1617         field a pointer to garbage collected vector, mark lattices and
1618         ipcp_orig_node with GTY((skip)).
1619         (ipa_get_param_count): Adjust to descriptors being a pointer.
1620         (ipa_get_param): Likewise.
1621         (ipa_get_type): Likewise.
1622         (ipa_get_param_move_cost): Likewise.
1623         (ipa_set_param_used): Likewise.
1624         (ipa_get_controlled_uses): Likewise.
1625         (ipa_set_controlled_uses): Likewise.
1626         (ipa_is_param_used): Likewise.
1627         (ipa_node_params_t): Move into garbage collector.  New methods insert
1628         and remove.
1629         (ipa_node_params_sum): Annotate wth GTY(()).
1630         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
1631         garbage collected.
1632         (ipa_load_from_parm_agg): Adjust declaration.
1633         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
1634         * ipa-profile.c (ipa_profile): Likewise.
1635         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
1636         (ipa_populate_param_decls): Make descriptors parameter garbage
1637         collected.
1638         (ipa_dump_param): Adjust to descriptors being a pointer.
1639         (ipa_alloc_node_params): Likewise.
1640         (ipa_initialize_node_params): Likewise.
1641         (load_from_param_1): Make descriptors parameter garbage collected.
1642         (load_from_unmodified_param): Likewise.
1643         (load_from_param): Likewise.
1644         (ipa_load_from_parm_agg): Likewise.
1645         (ipa_node_params::~ipa_node_params): Removed.
1646         (ipa_free_all_node_params): Remove call to delete operator.
1647         (ipa_node_params_t::insert): New.
1648         (ipa_node_params_t::remove): Likewise.
1649         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
1650         copy known_csts and known_contexts vectors.
1651         (ipa_read_node_info): Adjust to descriptors being a pointer.
1652         (ipcp_modif_dom_walker): Make m_descriptors field garbage
1653         collected.
1654         (ipcp_transform_function): Make descriptors variable garbage
1655         collected.
1657 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
1659         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
1660         * config/i386/avx512dqintrin.h: Ditto.
1661         * config/i386/avx512fintrin.h: Ditto.
1662         * gcc/config/i386/i386.c: Handle new builtins.
1663         * config/i386/i386-builtin.def: Add new builtins.
1664         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
1665         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
1667 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
1668             Martin Liska  <mliska@suse.cz>
1670         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
1671         * asan.c (asan_expand_poison_ifn): Support stores and use
1672         appropriate ASAN report function.
1673         * internal-fn.c (expand_ASAN_POISON_USE): New function.
1674         * internal-fn.def (ASAN_POISON_USE): Declare.
1675         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
1676         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
1677         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
1678         ASAN_POISON calls w/o LHS.
1679         * tree-ssa.c (execute_update_addresses_taken): Create clobber
1680         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
1681         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
1682         * gimplify.c (asan_poison_variables): Add attribute
1683         use_after_scope_memory to variables that really needs to live
1684         in memory.
1685         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
1686         having the attribute.
1688 2017-01-23  Martin Liska  <mliska@suse.cz>
1690         * asan.c (create_asan_shadow_var): New function.
1691         (asan_expand_poison_ifn): Likewise.
1692         * asan.h (asan_expand_poison_ifn): New declaration.
1693         * internal-fn.c (expand_ASAN_POISON): Likewise.
1694         * internal-fn.def (ASAN_POISON): New builtin.
1695         * sanopt.c (pass_sanopt::execute): Expand
1696         asan_expand_poison_ifn.
1697         * tree-inline.c (copy_decl_for_dup_finish): Make function
1698         external.
1699         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
1700         * tree-ssa.c (is_asan_mark_p): New function.
1701         (execute_update_addresses_taken): Rewrite local variables
1702         (identified just by use-after-scope as addressable) into SSA.
1704 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
1706         * doc/install.texi (Specific): opensource.apple.com uses https
1707         now. Remove trailing slash.
1709 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
1711         * README.Portability: Remove note on an Irix compatibility issue.
1713 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
1715         * gcov.c (INCLUDE_ALGORITHM): Define.
1716         (INCLUDE_VECTOR): Define.
1717         No longer include <vector> and <algorithm> directly.
1719 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
1721         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
1722         to https.
1723         * doc/invoke.texi (Code Gen Options): Ditto.
1725 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
1727         PR lto/78407
1728         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
1730 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
1732         rtl-optimization/79125
1733         * cprop.c (local_cprop_pass): Handle cases where we make an
1734         unconditional trap.
1736 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
1738         PR target/61729
1739         PR target/77850
1740         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
1741         read from, for big endian.
1743 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
1745         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
1746         register pauth builtins for LP64 only.
1748 2017-01-20  Marek Polacek  <polacek@redhat.com>
1750         PR c/79152
1751         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
1752         non-case labels.
1754 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
1756         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
1757         of safelen status.
1758         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
1759         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
1760         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
1762 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1764         PR target/71270
1765         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
1766         in big-endian mode when they are not a single duplicated value.
1768 2017-01-20  Richard Biener  <rguenther@suse.de>
1770         * BASE-VER: Bump to 7.0.1.
1772 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
1774         * omp-low.c (omplow_simd_context): New struct.  Use it...
1775         (lower_rec_simd_input_clauses): ...here and...
1776         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
1777         references to idx, lane, max_vf, is_simt.
1779 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
1781         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
1782         mcpu=nps400.
1784 2017-01-20  Martin Jambor  <mjambor@suse.cz>
1786         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
1787         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
1788         gt-hsa-common.h.
1789         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
1790         (GTFILES): Rename hsa.c to hsa-common.c.
1791         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
1792         * hsa-dump.c: Likewise.
1793         * hsa-gen.c: Likewise.
1794         * hsa-regalloc.c: Likewise.
1795         * ipa-hsa.c: Likewise.
1796         * omp-expand.c: Likewise.
1797         * omp-low.c: Likewise.
1798         * toplev.c: Likewise.
1800 2017-01-20  Marek Polacek  <polacek@redhat.com>
1802         PR c/64279
1803         * doc/invoke.texi: Document -Wduplicated-branches.
1804         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
1805         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
1806         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
1807         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
1808         return 0 only when not OEP_LEXICOGRAPHIC.
1809         (fold_build_cleanup_point_expr): Use the expression
1810         location when building CLEANUP_POINT_EXPR.
1811         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
1812         * tree.c (add_expr): Handle error_mark_node.
1814 2017-01-20  Martin Liska  <mliska@suse.cz>
1816         PR lto/69188
1817         * tree-profile.c (init_ic_make_global_vars): Do not call
1818         finalize_decl.
1819         (gimple_init_gcov_profiler): Likewise.
1821 2017-01-20  Martin Liska  <mliska@suse.cz>
1823         PR ipa/71190
1824         * cgraph.h (maybe_create_reference): Remove argument and
1825         update comment.
1826         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
1827         argument.
1828         * ipa-cp.c (create_specialized_node): Likewise.
1829         * symtab.c (symtab_node::maybe_create_reference): Handle
1830         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
1832 2017-01-20  Martin Liska  <mliska@suse.cz>
1834         * read-rtl-function.c (function_reader::create_function): Use
1835         build_decl instread of build_decl_stat.
1837 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
1839         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
1840         * config/i386/avx512dqintrin.h: Ditto.
1841         * config/i386/avx512fintrin.h: Ditto.
1842         * config/i386/i386-builtin-types.def: Add new types.
1843         * gcc/config/i386/i386.c: Handle new types.
1844         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
1845         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
1846         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
1847         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
1848         (__builtin_ia32_kshiftridi): New.
1849         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
1851 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
1853         PR target/78875
1854         PR target/79140
1855         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
1856         define to rs6000_init_stack_protect_guard.
1857         (rs6000_init_stack_protect_guard): New function.
1859 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
1860             Yunqiang Su  <yunqiang.su@imgtec.com>
1862         * config.gcc (supported_defaults): Add madd4.
1863         (with_madd4): Add validation.
1864         (all_defaults): Add madd4.
1865         * config/mips/mips.opt (mmadd4): New option.
1866         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
1867         mmadd4.
1868         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
1869         __mips_no_madd4.
1870         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
1871         (ISA_HAS_FUSED_MADD4): Likewise.
1872         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
1873         * gcc/doc/install.texi (--with-madd4): Document the new option.
1875 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
1877         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
1878         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
1879         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
1880         (aarch64_init_pauth_hint_builtins): New.
1881         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
1882         (aarch64_expand_builtin): Expand new builtins.
1884 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
1886         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
1887         * combine-stack-adj.c (no_unhandled_cfa): Handle
1888         REG_CFA_TOGGLE_RA_MANGLE.
1889         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
1890         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
1891         info for return address signing.
1892         (aarch64_expand_epilogue): Likewise.
1894 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
1896         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
1897         * config/aarch64/aarch64-protos.h
1898         (aarch64_return_address_signing_enabled): New declaration.
1899         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
1900         New function.
1901         (aarch64_expand_prologue): Sign return address before it's pushed onto
1902         stack.
1903         (aarch64_expand_epilogue): Authenticate return address fetched from
1904         stack.
1905         (aarch64_override_options): Sanity check for ILP32 and ISA level.
1906         (aarch64_attributes): New function attributes for "sign-return-address".
1907         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
1908         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
1909         ("*do_return"): Generate combined instructions according to key index.
1910         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
1911         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
1912         iterators.
1913         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
1914         * config/aarch64/aarch64.opt (msign-return-address=): New.
1915         * doc/extend.texi (AArch64 Function Attributes): Documents
1916         "sign-return-address=".
1917         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
1919 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
1921         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
1922         overall option summary.
1924 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
1926         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
1927         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
1928         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
1929         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
1931 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
1933         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
1934         -mpower9-minmax by default for -mcpu=power9.
1935         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
1936         128-bit floating point.
1938 2017-01-20  Alan Modra  <amodra@gmail.com>
1940         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
1941         optimizing for size.
1943 2017-01-20  Alan Modra  <amodra@gmail.com>
1945         PR target/79144
1946         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
1947         for strcmp and strncmp from corresponding builtin decl.
1949 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
1951         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
1952         instead of i386/rtems-64.h.
1953         * config/i386/rtems-64.h: Remove.
1955 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
1957         PR target/78478
1958         Revert:
1959         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
1961         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
1963 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
1965         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
1966         Change int to HOST_WIDE_INT.
1967         * config/aarch64/aarch64-protos.h
1968         (aarch64_simd_gen_const_vector_dup): Likewise.
1969         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
1971 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
1973         * langhooks-def.h (lhd_type_for_size): New decl.
1974         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
1975         * langhooks.c (lhd_type_for_size): New function, taken from
1976         lto_type_for_size.
1978 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
1980         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
1981         define_bypass for CR latency.
1982         (power9-cracked-alu): Update bypass latency and remove power9-branch.
1983         (power9-alu2): Add define_bypass for CR latency.
1984         (power9-cmp): New.
1985         (power9-mul): Update insn latency.
1986         (power9-mul-compare): Update insn latency, bypass latency and remove
1987         power9-branch.
1989 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1991         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
1992         Delete.
1993         * config/aarch64/aarch64.md
1994         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
1995         aarch64_nopcrelative_literal_loads.
1996         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
1998 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
2000         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
2001         TARGET_LOONGSON_3A.
2002         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
2004 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
2006         PR target/78176
2007         * config.gcc (supported_defaults): Add lxc1-sxc1.
2008         (with_lxc1_sxc1): Add validation.
2009         (all_defaults): Add lxc1-sxc1.
2010         * config/mips/mips.opt (mlxc1-sxc1): New option.
2011         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
2012         mlxc1-sxc1.
2013         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
2014         __mips_no_lxc1_sxc1.
2015         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
2016         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
2017         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
2019 2017-01-19  Richard Biener  <rguenther@suse.de>
2021         PR tree-optimization/72488
2022         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
2023         sure to restore SSA info.
2024         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
2026 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
2028         PR rtl-optimization/79121
2029         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
2030         of the inner type when shifting an extended value.
2032 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
2034         PR lto/78407
2035         * symtab.c (symtab_node::equal_address_to): Fix comparing of
2036         interposable aliases.
2038 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
2040         PR target/78516
2041         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
2042         Use the evmergelohi instruction.
2043         (mov_si<mode>_e500_subreg4_2_le): Likewise.
2044         (mov_sitf_e500_subreg8_2_be): Likewise.
2045         (mov_sitf_e500_subreg12_2_le): Likewise.
2046         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
2047         (mov_si<mode>_e500_subreg4_2_be): Likewise.
2048         (mov_sitf_e500_subreg8_2_le): Likewise.
2049         (mov_sitf_e500_subreg12_2_be): Likewise.
2051 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2053         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
2054         attribute from vecsimple to vecperm.
2055         (altivec_vbpermq2): Likewise.
2057 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2059         PR target/79040
2060         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
2062 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2063         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
2064         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
2065         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
2066         case where N arg is SIZE_MAX.
2067         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
2068         (cmpstrsi): Add pattern.
2070 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2072         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2073         __builtin_vec_revb builtins.
2074         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
2075         built-in functions to support generation of the ISA 3.0 XXBR<x>
2076         vector byte reverse instructions.
2077         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
2078         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
2079         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
2080         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
2081         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
2082         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
2083         (P9V_BUILTIN_VEC_REVB): Likewise.
2084         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
2085         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
2086         (p9_xxbrq_v16qi): Likewise.
2087         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
2088         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
2089         (p9_xxbrh_v8hi): Likewise.
2090         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
2091         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
2092         vec_revb built-in functions.
2094 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
2096         PR rtl-optimization/78952
2097         * config/i386/i386.md (any_extract): New code iterator.
2098         (*insvqi_2): Use any_extract for source operand.
2099         (*insvqi_3): Use any_shiftrt for source operand.
2101 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
2103         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
2104         New function.
2105         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
2107 2017-01-18  Matthias Klose  <doko@ubuntu.com>
2109         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
2111 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2113         * config/rs6000/altivec.h (vec_bperm): Change #define.
2114         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
2115         (altivec_vbpermq2): New define_insn.
2116         (altivec_vbpermd): Likewise.
2117         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
2118         function interface.
2119         (VBPERMD): Likewise.
2120         (VBPERM): New polymorphic function interface.
2121         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
2122         Add entries for P9V_BUILTIN_VEC_VBPERM.
2123         * doc/extend.texi: Add interfaces for vec_bperm.
2125 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2127         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
2128         first letter of error messages.
2129         (s390_resolve_overloaded_builtin): Likewise.
2130         * config/s390/s390.c (s390_expand_builtin): Likewise.
2131         (s390_invalid_arg_for_unprototyped_fn): Likewise.
2132         (s390_valid_target_attribute_inner_p): Likewise.
2133         * config/s390/s390.md ("tabort"): Likewise.
2135 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
2137         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
2138         (ISA_AVOID_DIV_HILO): New macro.
2139         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
2140         (ISA_HAS_DDIV): Likewise.
2142 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2144         * doc/invoke.texi (fabi-version): Correct number of occurrences.
2146 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2148         * doc/invoke.texi (fabi-version): Spelling fix.
2150 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2152         PR c++/70182
2153         * doc/invoke.texi (fabi-version): Mention mangling fix for
2154         operator names.
2156 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2158         PR c++/77489
2159         * doc/invoke.texi (fabi-version): Document discriminator mangling.
2161 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
2163         PR target/78875
2164         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
2165         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
2166         the new options.
2167         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
2168         flexible settings.
2169         (stack_protect_test): Ditto.
2170         * config/rs6000/rs6000.opt (mstack-protector-guard=,
2171         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
2172         options.
2173         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
2174         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
2175         -mstack-protector-guard-offset=.
2176         (RS/6000 and PowerPC Options): Ditto.
2178 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
2180         * config/i386/i386.h (MASK_CLASS_P): New define.
2181         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
2182         there are no registers from different register sets also when
2183         mask registers are used.  Update function comment.
2184         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
2185         to (*k/*r) and (*k/*km) alternatives.
2187 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
2189         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
2190         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
2191         (EH_RETURN_HANDLER_RTX): New define.
2192         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
2193         Force frame pointer in EH return functions.
2194         (aarch64_expand_epilogue): Add barrier for eh_return.
2195         (aarch64_final_eh_return_addr): Remove.
2196         (aarch64_eh_return_handler_rtx): New function.
2197         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
2198         Remove.
2199         (aarch64_eh_return_handler_rtx): New prototype.
2201 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2203         * config/rs6000/altivec.h (vec_rlmi): New #define.
2204         (vec_vrlnm): Likewise.
2205         (vec_rlnm): Likewise.
2206         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
2207         (UNSPEC_VRLNM): Likewise.
2208         (VIlong): New mode iterator.
2209         (altivec_vrl<VI_char>mi): New define_insn.
2210         (altivec_vrl<VI_char>nm): Likewise.
2211         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
2212         function entry.
2213         (VRLDNM): Likewise.
2214         (RLNM): New polymorphic function entry.
2215         (VRLWMI): New monomorphic function entry.
2216         (VRLDMI): Likewise.
2217         (RLMI): New polymorphic function entry.
2218         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
2219         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
2220         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
2221         vec_vrlnm.
2223 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
2225         PR debug/78839
2226         * dwarf2out.c (field_byte_offset): Restore the
2227         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
2228         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
2229         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
2230         of build2 + fold.
2232 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
2234         PR ada/67205
2235         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
2237 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
2239         PR debug/71669
2240         * dwarf2out.c (add_data_member_location_attribute): For constant
2241         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
2242         instead of DW_AT_data_member_location, DW_AT_bit_offset and
2243         DW_AT_byte_size attributes.
2245 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
2247         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
2248         after forcing to constant memory when the code model is medium.
2250 2017-01-17  Julia Koval  <julia.koval@intel.com>
2252         PR target/76731
2253         * config/i386/avx512fintrin.h
2254         (_mm512_i32gather_ps): Change __addr type to void const*.
2255         (_mm512_mask_i32gather_ps): Ditto.
2256         (_mm512_i32gather_pd): Ditto.
2257         (_mm512_mask_i32gather_pd): Ditto.
2258         (_mm512_i64gather_ps): Ditto.
2259         (_mm512_mask_i64gather_ps): Ditto.
2260         (_mm512_i64gather_pd): Ditto.
2261         (_mm512_mask_i64gather_pd): Ditto.
2262         (_mm512_i32gather_epi32): Ditto.
2263         (_mm512_mask_i32gather_epi32): Ditto.
2264         (_mm512_i32gather_epi64): Ditto.
2265         (_mm512_mask_i32gather_epi64): Ditto.
2266         (_mm512_i64gather_epi32): Ditto.
2267         (_mm512_mask_i64gather_epi32): Ditto.
2268         (_mm512_i64gather_epi64): Ditto.
2269         (_mm512_mask_i64gather_epi64): Ditto.
2270         (_mm512_i32scatter_ps): Change __addr type to void*.
2271         (_mm512_mask_i32scatter_ps): Ditto.
2272         (_mm512_i32scatter_pd): Ditto.
2273         (_mm512_mask_i32scatter_pd): Ditto.
2274         (_mm512_i64scatter_ps): Ditto.
2275         (_mm512_mask_i64scatter_ps): Ditto.
2276         (_mm512_i64scatter_pd): Ditto.
2277         (_mm512_mask_i64scatter_pd): Ditto.
2278         (_mm512_i32scatter_epi32): Ditto.
2279         (_mm512_mask_i32scatter_epi32): Ditto.
2280         (_mm512_i32scatter_epi64): Ditto.
2281         (_mm512_mask_i32scatter_epi64): Ditto.
2282         (_mm512_i64scatter_epi32): Ditto.
2283         (_mm512_mask_i64scatter_epi32): Ditto.
2284         (_mm512_i64scatter_epi64): Ditto.
2285         (_mm512_mask_i64scatter_epi64): Ditto.
2286         * config/i386/avx512pfintrin.h
2287         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
2288         (_mm512_mask_prefetch_i32gather_ps): Ditto.
2289         (_mm512_mask_prefetch_i64gather_pd): Ditto.
2290         (_mm512_mask_prefetch_i64gather_ps): Ditto.
2291         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
2292         (_mm512_prefetch_i32scatter_ps): Ditto.
2293         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
2294         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
2295         (_mm512_prefetch_i64scatter_pd): Ditto.
2296         (_mm512_prefetch_i64scatter_ps): Ditto.
2297         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
2298         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
2299         * config/i386/avx512vlintrin.h
2300         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
2301         (_mm_mmask_i32gather_ps): Ditto.
2302         (_mm256_mmask_i32gather_pd): Ditto.
2303         (_mm_mmask_i32gather_pd): Ditto.
2304         (_mm256_mmask_i64gather_ps): Ditto.
2305         (_mm_mmask_i64gather_ps): Ditto.
2306         (_mm256_mmask_i64gather_pd): Ditto.
2307         (_mm_mmask_i64gather_pd): Ditto.
2308         (_mm256_mmask_i32gather_epi32): Ditto.
2309         (_mm_mmask_i32gather_epi32): Ditto.
2310         (_mm256_mmask_i32gather_epi64): Ditto.
2311         (_mm_mmask_i32gather_epi64): Ditto.
2312         (_mm256_mmask_i64gather_epi32): Ditto.
2313         (_mm_mmask_i64gather_epi32): Ditto.
2314         (_mm256_mmask_i64gather_epi64): Ditto.
2315         (_mm_mmask_i64gather_epi64): Ditto.
2316         (_mm256_i32scatter_ps): Change __addr type to void*.
2317         (_mm256_mask_i32scatter_ps): Ditto.
2318         (_mm_i32scatter_ps): Ditto.
2319         (_mm_mask_i32scatter_ps): Ditto.
2320         (_mm256_i32scatter_pd): Ditto.
2321         (_mm256_mask_i32scatter_pd): Ditto.
2322         (_mm_i32scatter_pd): Ditto.
2323         (_mm_mask_i32scatter_pd): Ditto.
2324         (_mm256_i64scatter_ps): Ditto.
2325         (_mm256_mask_i64scatter_ps): Ditto.
2326         (_mm_i64scatter_ps): Ditto.
2327         (_mm_mask_i64scatter_ps): Ditto.
2328         (_mm256_i64scatter_pd): Ditto.
2329         (_mm256_mask_i64scatter_pd): Ditto.
2330         (_mm_i64scatter_pd): Ditto.
2331         (_mm_mask_i64scatter_pd): Ditto.
2332         (_mm256_i32scatter_epi32): Ditto.
2333         (_mm256_mask_i32scatter_epi32): Ditto.
2334         (_mm_i32scatter_epi32): Ditto.
2335         (_mm_mask_i32scatter_epi32): Ditto.
2336         (_mm256_i32scatter_epi64): Ditto.
2337         (_mm256_mask_i32scatter_epi64): Ditto.
2338         (_mm_i32scatter_epi64): Ditto.
2339         (_mm_mask_i32scatter_epi64): Ditto.
2340         (_mm256_i64scatter_epi32): Ditto.
2341         (_mm256_mask_i64scatter_epi32): Ditto.
2342         (_mm_i64scatter_epi32): Ditto.
2343         (_mm_mask_i64scatter_epi32): Ditto.
2344         (_mm256_i64scatter_epi64): Ditto.
2345         (_mm256_mask_i64scatter_epi64): Ditto.
2346         (_mm_i64scatter_epi64): Ditto.
2347         (_mm_mask_i64scatter_epi64): Ditto.
2348         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
2349         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
2350         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
2351         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
2352         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
2353         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
2354         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
2355         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
2356         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
2357         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
2358         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
2359         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
2360         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
2361         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
2362         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
2363         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
2364         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
2365         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
2366         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
2367         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
2368         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
2369         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
2370         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
2371         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
2372         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
2373         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
2374         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
2375         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
2376         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
2377         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
2378         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
2379         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
2380         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
2381         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
2382         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
2383         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
2384         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
2385         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
2386         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
2387         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
2388         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
2389         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
2390         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
2391         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
2392         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
2393         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
2394         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
2395         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
2396         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
2397         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
2398         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
2399         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
2400         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
2401         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
2402         definitions accordingly.
2404 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
2405             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
2407         PR target/79079
2408         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
2409         gen_lowpart.
2411 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
2413         PR target/79058
2414         * ira-conflicts.c (ira_build_conflicts): Update total conflict
2415         hard regs for inner regno.
2417 2017-01-17  Martin Liska  <mliska@suse.cz>
2419         PR ipa/71207
2420         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
2421         assumption and add comment.
2423 2017-01-17  Nathan Sidwell  <nathan@acm.org>
2425         * ipa-visibility.c (localize_node): New function, broken out of ...
2426         (function_and_variable_visibility): ... here. Call it.
2428 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
2430         PR middle-end/77445
2431         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
2432         correctly set frequency of oudgoing edge.
2433         (duplicate_thread_path): Fix profile updating.
2435 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
2437         PR other/79046
2438         * configure.ac: Add GCC_BASE_VER.
2439         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
2440         version from BASE-VER file.
2441         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
2442         (gcc.o): Depend on $(BASEVER).
2443         * common.opt (dumpfullversion): New option.
2444         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
2445         * doc/invoke.texi: Document -dumpfullversion.
2446         * doc/install.texi: Document --with-gcc-major-version-only.
2447         * configure: Regenerated.
2449 2017-01-17  Richard Biener  <rguenther@suse.de>
2451         PR tree-optimization/71433
2452         * tree-vrp.c (register_new_assert_for): Merge same asserts
2453         on all incoming edges.
2454         (process_assert_insertions_for): Handle insertions at the
2455         beginning of BBs.
2457 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
2459         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
2460         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
2462 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
2464         PR target/78633
2465         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
2466         RTL sharing.
2468 2017-01-17  Alan Modra  <amodra@gmail.com>
2470         PR target/79066
2471         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
2472         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
2473         symbolic stack limit when pic.
2475 2017-01-16  Martin Sebor  <msebor@redhat.com>
2477         PR tree-optimization/78608
2478         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
2480 2017-01-16  Jeff Law  <law@redhat.com>
2482         Revert:
2483         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
2484         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
2485         for several include directories that may be relative to sysroot.
2486         * config/i386/x-mingw32 (gplus_includedir): Define.
2487         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
2488         (native_system_includedir): Likewise.
2489         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
2490         override if TARGET_SYSTEM_ROOT is defined.
2491         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
2493         PR tree-optimization/79090
2494         PR tree-optimization/33562
2495         PR tree-optimization/61912
2496         PR tree-optimization/77485
2497         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
2498         and computed trims into the dump file.
2500 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
2502         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
2504 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
2506         PR c/79089
2507         * gimplify.c (gimplify_init_constructor): If want_value and
2508         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
2509         fix.
2511         PR target/79080
2512         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
2513         sequence.  Formatting fixes.
2514         (doloop_optimize): Formatting fixes.
2516         PR driver/49726
2517         * gcc.c (debug_level_greater_than_spec_func): New function.
2518         (static_spec_functions): Add debug-level-gt spec function.
2519         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
2520         !g0.
2521         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
2522         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
2523         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
2524         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
2525         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
2526         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
2528 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
2530         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
2531         QImode fixups to general and mask registers only.
2533 2017-01-16  Carl Love  <cel@us.ibm.com>
2535         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
2536         for built-in functions
2537         vector signed char vec_nabs (vector signed char)
2538         vector signed short vec_nabs (vector signed short)
2539         vector signed int vec_nabs (vector signed int)
2540         vector signed long long vec_nabs (vector signed long long)
2541         vector float vec_nabs (vector float)
2542         vector double vec_nabs (vector double)
2543         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
2544         and NABS overload.
2545         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
2546         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
2547         * doc/extend.texi: Update the documentation file for the new built-in
2548         functions.
2550 2017-01-16  Martin Sebor  <msebor@redhat.com>
2552         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
2553         message.
2555 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2557         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
2558         UNSPEC_VSX__XXSPLTD to require special splat handling.
2560 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
2562         PR bootstrap/78616
2563         * system.h: Poison strndup.
2565 2017-01-16  Alan Modra  <amodra@gmail.com>
2567         PR target/79098
2568         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
2569         use a switch.
2571 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
2573         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
2575 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
2577         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
2578         call recog here.  Assert that INSN_CODE (insn) is non-negative.
2580 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
2582         PR target/72749
2583         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
2584         fallthrough.
2585         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
2586         in the currently scheduled RTL fragment.
2588 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
2590         PR rtl-optimization/78751
2591         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
2592         give up.
2594 2017-01-14  Jeff Law  <law@redhat.com>
2596         PR tree-optimization/79090
2597         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
2598         variable length stores.
2599         (compute_trims): Delete dead assignment to *trim_tail.
2600         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
2601         zero length.
2603 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
2605         PR rtl-optimization/78626
2606         PR rtl-optimization/78727
2607         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
2608         of a block, and split such blocks after everything else is finished.
2610 2017-01-14  Alan Modra  <amodra@gmail.com>
2612         PR target/72749
2613         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
2614         target legitimate_combined_insn.
2615         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
2616         (rs6000_legitimate_combined_insn): New function.
2617         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
2618         all uses.
2619         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
2620         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
2621         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
2623 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
2625         * doc/frontends.texi (G++ and GCC): Remove references to Java.
2627 2017-01-13  Jeff Law  <law@redhat.com>
2629         PR tree-optimization/33562
2630         PR tree-optimization/61912
2631         PR tree-optimization/77485
2632         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
2633         a statement.
2634         (delete_dead_assignment): Likewise.
2635         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
2636         statement to delete_dead_call and delete_dead_assignment.
2638 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
2640         PR c/78304
2641         * substring-locations.c (format_warning_va): Strengthen case 1 so
2642         that both endpoints of the substring must be within the format
2643         range for just the substring to be printed.
2645 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
2647         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
2648         * config/i386/i386.c (ix86_target_string): Add missing options
2649         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
2650         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
2651         flags_other and ix86_target_other to flags2_other.  Display unknown
2652         isa2 options.
2653         (ix86_valid_target_attribute_inner_p): Add missing options and
2654         reorder options by implied ISAs, as in ix86_target_string.
2656 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
2658         * hash-table.h (hash_table::too_empty_p): New function.
2659         (hash_table::expand): Use it.
2660         (hash_table::traverse): Likewise.
2661         (hash_table::empty_slot): Use sizeof (value_type) instead of
2662         sizeof (PTR) to convert bytes to elements.  Shrink the table
2663         if the current size is excessive for the current number of
2664         elements.
2666 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
2668         * ira-costs.c (record_reg_classes): Break from the inner loop
2669         early once alt_fail is known to be true.  Update outer loop
2670         handling accordingly.
2672 2017-01-13  Jeff Law  <law@redhat.com>
2674         * tree-ssa-dse.c (decrement_count): New function.
2675         (increment_start_addr, maybe_trim_memstar_call): Likewise.
2676         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
2677         when we know the partially dead statement is a mem* function.
2679         PR tree-optimization/61912
2680         PR tree-optimization/77485
2681         * tree-ssa-dse.c: Include expr.h.
2682         (maybe_trim_constructor_store): New function.
2683         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
2685         PR tree-optimization/33562
2686         PR tree-optimization/61912
2687         PR tree-optimization/77485
2688         * doc/invoke.texi: Document new dse-max-object-size param.
2689         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
2690         * tree-ssa-dse.c: Include params.h.
2691         (dse_store_status): New enum.
2692         (initialize_ao_ref_for_dse): New, partially extracted from
2693         dse_optimize_stmt.
2694         (valid_ao_ref_for_dse, normalize_ref): New.
2695         (setup_live_bytes_from_ref, compute_trims): Likewise.
2696         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
2697         (maybe_trim_partially_dead_store): Likewise.
2698         (maybe_trim_complex_store): Likewise.
2699         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
2700         Track what bytes live from the original store.  Return tri-state
2701         for dead, partially dead or live.
2702         (dse_dom_walker): Add constructor, destructor and new private members.
2703         (delete_dead_call, delete_dead_assignment): New extracted from
2704         dse_optimize_stmt.
2705         (dse_optimize_stmt): Make a member of dse_dom_walker.
2706         Use initialize_ao_ref_for_dse.
2708         PR tree-optimization/33562
2709         PR tree-optimization/61912
2710         PR tree-optimization/77485
2711         * sbitmap.h (bitmap_count_bits): Prototype.
2712         (bitmap_clear_range, bitmap_set_range): Likewise.
2713         * sbitmap.c (bitmap_clear_range): New function.
2714         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
2716 2017-01-13  Martin Liska  <mliska@suse.cz>
2718         PR ipa/79043
2719         * function.c (set_cfun): Add new argument force.
2720         * function.h (set_cfun): Likewise.
2721         * ipa-inline-transform.c (inline_call): Use the function when
2722         strict alising from is dropped for function we inline to.
2724 2017-01-13  Richard Biener  <rguenther@suse.de>
2726         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
2727         for dumping GIMPLE INTEGER_CSTs.
2729 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2731         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
2732         to 201112L since C++17.
2734 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
2736         PR sanitizer/78887
2737         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
2738         if -fsanitize=kernel-address is present.
2740 2017-01-13  Richard Biener  <rguenther@suse.de>
2742         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
2743         as _Literal ( type ) number in case usual suffixes do not
2744         preserve all information.
2746 2017-01-13  Richard Biener  <rguenther@suse.de>
2748         PR tree-optimization/77283
2749         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
2750         and ssa-iterators.h.
2751         (is_feasible_trace): Implement a cost model based on joiner
2752         PHI node uses.
2754 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2756         PR target/79004
2757         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
2758         char or short to __float128/_Float128 directly.
2760 2017-01-12  Martin Sebor  <msebor@redhat.com>
2762         to -Wformat-overflow.
2763         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
2764         (min_bytes_remaining): Same.
2765         (get_string_length): Same.
2766         (format_string): Same.
2767         (format_directive): Same.
2768         (add_bytes): Same.
2769         (pass_sprintf_length::handle_gimple_call): Same.
2771 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
2773         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
2774         info.nowrite calls with no lhs that can't throw.  Return bool
2775         whether gsi_remove has been called or not.
2776         (pass_sprintf_length::handle_gimple_call): Return bool whether
2777         try_substitute_return_value called gsi_remove.  Formatting fix.
2778         (pass_sprintf_length::execute): Don't use gsi_remove if
2779         handle_gimple_call returned true.
2781         PR bootstrap/79069
2782         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
2783         be removed due to side-effects, don't remove following barrier nor
2784         turn the successor edge into fallthru edge.
2786 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2788         PR target/79044
2789         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
2790         element-reversing loads and stores as not swappable.
2792 2017-01-12  Nathan Sidwell  <nathan@acm.org>
2793             Nicolai Stange  <nicstange@gmail.com>
2795         * combine.c (try_combine): Don't ignore result of overlap checking
2796         loop.  Combine overlap & asm check into single loop.
2798 2017-01-12  Richard Biener  <rguenther@suse.de>
2800         * tree-pretty-print.c (dump_generic_node): Provide -gimple
2801         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
2803 2017-01-12  Richard Biener  <rguenther@suse.de>
2805         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
2806         and TS_TARGET_OPTION directly derive from TS_BASE.
2807         * tree-core.h (tree_optimization_option): Derive from tree_base.
2808         (tree_target_option): Likewise.
2810 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
2812         * config/i386/i386.c (memory_address_length): Increase len
2813         only when rip_relative_addr_p returns false.
2815 2017-01-11  Julia Koval  <julia.koval@intel.com>
2817         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
2818         (OPTION_MASK_ISA_SGX_SET): New.
2819         (ix86_handle_option): Handle OPT_msgx.
2820         * config.gcc: Added sgxintrin.h.
2821         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
2822         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
2823         * config/i386/i386.c (ix86_target_string): Add -msgx.
2824         (PTA_SGX): New.
2825         (ix86_option_override_internal): Handle new options.
2826         (ix86_valid_target_attribute_inner_p): Add sgx.
2827         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
2828         * config/i386/i386.opt: Add msgx.
2829         * config/i386/sgxintrin.h: New file.
2830         * config/i386/x86intrin.h: Add sgxintrin.h.
2832 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
2834         PR c++/71537
2835         * fold-const.c (maybe_nonzero_address): Return 1 for function
2836         local objects.
2837         (tree_single_nonzero_warnv_p): Don't handle function local objects
2838         here.
2840         PR c++/72813
2841         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
2842         of c-header.
2844 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
2846         PR driver/78877
2847         * opts.c: Include "spellcheck.h"
2848         (struct string_fragment): New struct.
2849         (struct edit_distance_traits<const string_fragment &>): New
2850         struct.
2851         (get_closest_sanitizer_option): New function.
2852         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
2854 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
2856         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
2857         by 12.
2858         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
2859         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
2860         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
2861         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
2862         for initial die_offset if dwarf_split_debug_info.
2863         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
2864         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
2865         fields.
2866         (output_skeleton_debug_sections): Formatting fix.  Use
2867         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
2868         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
2870 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
2872         * config/arm/cortex-a53.md: Add bypasses for
2873         cortex_a53_r2f_cvt.
2874         (cortex_a53_r2f): Only use for transfers.
2875         (cortex_a53_f2r): Likewise.
2876         (cortex_a53_r2f_cvt): Add reservation for conversions.
2877         (cortex_a53_f2r_cvt): Likewise.
2879 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
2881         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
2882         to all inlined functions, change static to extern.
2884 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
2886         PR target/78253
2887         * config/arm/arm.c (legitimize_pic_address): Handle reference to
2888         weak symbol.
2889         (arm_assemble_integer): Likewise.
2891 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
2893         * config.gcc: Use new awk script to check CPU, FPU and architecture
2894         parameters for --with-... options.
2895         * config/arm/parsecpu.awk: New file
2896         * config/arm/arm-cpus.in: New file.
2897         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
2898         files.
2899         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
2900         files.
2901         * config/arm/t-arm: Update dependency rules.
2902         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
2903         of processing .def files.
2904         * config/arm/genopt.sh: Deleted.
2905         * config/arm/gentune.sh: Deleted.
2906         * config/arm/arm-cores.def: Deleted.
2907         * config/arm/arm-arches.def: Deleted.
2908         * config/arm/arm-fpus.def: Deleted.
2909         * config/arm/arm-tune.md: Regenerated.
2910         * config/arm/arm-tables.opt: Regenerated.
2911         * config/arm/arm-cpu.h: New generated file.
2912         * config/arm/arm-cpu-data.h: New generated file.
2913         * config/arm/arm-cpu-cdata.h: New generated file.
2915 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
2917         PR lto/79042
2918         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
2919         bit.
2920         (input_varpool_node): Unpack dynamically_initialized bit.
2922 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
2924         PR rtl-optimization/79032
2925         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
2926         the alignment of the adjusted memory reference against that of MODE,
2927         instead of the alignment of the original memory reference.
2929 2017-01-11  Martin Jambor  <mjambor@suse.cz>
2931         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
2932         test.
2933         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
2934         decorated functions.
2936 2017-01-11  Richard Biener  <rguenther@suse.de>
2938         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
2939         set range/nonnull info for PHI results.  Do not set it on
2940         stmts marked for removal.
2942 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
2944         * expr.c (store_field): In the bitfield case, fetch the return value
2945         from the registers before applying a single big-endian adjustment.
2946         Always do a final load for a BLKmode value not larger than a word.
2948 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
2950         PR c++/77949
2951         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
2952         that we correctly handle column numbers greater than
2953         LINE_MAP_MAX_COLUMN_NUMBER.
2955 2017-01-10  Martin Sebor  <msebor@redhat.com>
2957         PR middle-end/78245
2958         * gimple-ssa-sprintf.c (get_destination_size): Call
2959         {init,fini}object_sizes.
2960         * tree-object-size.c (addr_object_size): Adjust.
2961         (pass_through_call): Adjust.
2962         (pass_object_sizes::execute): Adjust.
2963         * tree-object-size.h (fini_object_sizes): Declare.
2965 2017-01-10  Martin Sebor  <msebor@redhat.com>
2967         PR tree-optimization/78775
2968         * builtins.c (get_size_range): Move...
2969         * calls.c: ...to here.
2970         (alloc_max_size): Accept zero argument.
2971         (operand_signed_p): Remove.
2972         (maybe_warn_alloc_args_overflow): Call get_size_range.
2973         * calls.h (get_size_range): Declare.
2975 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
2977         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
2978         from TI's devices.csv file as of September 2016.
2979         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
2981 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
2983         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
2984         * doc/invoke.texi: Likewise.
2985         * doc/md.texi: Likewise.
2986         * doc/objc.texi: Likewise.
2988 2017-01-10  Joshua Conner  <joshconner@google.com>
2990         * config/arm/fuchsia-elf.h: New file.
2991         * config/fuchsia.h: New file.
2992         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
2993         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
2994         targets.
2995         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
2997 2016-01-10  Richard Biener  <rguenther@suse.de>
2999         PR tree-optimization/79034
3000         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
3001         Propagate out degenerate PHIs in the joiner.
3003 2017-01-10  Martin Liska  <mliska@suse.cz>
3005         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
3006         (sort_congruence_classes_by_decl_uid): Likewise.
3007         (sort_congruence_class_groups_by_decl_uid): Likewise.
3008         (sem_item_optimizer::merge_classes): Sort class, groups in these
3009         classes and members in the groups by DECL_UID of declarations.
3010         This would make merge operations stable.
3012 2017-01-10  Martin Liska  <mliska@suse.cz>
3014         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
3015         usage of m_classes_vec.
3016         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
3017         (sem_item_optimizer::get_group_by_hash): Likewise.
3018         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
3019         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
3020         (sem_item_optimizer::verify_classes): Likewise.
3021         (sem_item_optimizer::process_cong_reduction): Likewise.
3022         (sem_item_optimizer::dump_cong_classes): Likewise.
3023         (sem_item_optimizer::merge_classes): Likewise.
3024         * ipa-icf.h (congruence_class_hash): Rename from
3025         congruence_class_group_hash.  Remove declaration of m_classes_vec.
3027 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
3029         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
3030         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
3031         * config.gcc: Add avx512vpopcntdqintrin.h.
3032         * config/i386/avx512vpopcntdqintrin.h: New.
3033         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
3034         * config/i386/i386-builtin-types.def: Add new types.
3035         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
3036         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
3037         __builtin_ia32_vpopcountq_v8di_mask): New.
3038         * config/i386/i386-c.c (ix86_target_macros_internal): Define
3039         __AVX512VPOPCNTDQ__.
3040         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
3041         (PTA_AVX512VPOPCNTDQ): Define.
3042         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
3043         TARGET_AVX512VPOPCNTDQ_P): Define.
3044         * config/i386/i386.opt: Add mavx512vpopcntdq.
3045         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
3046         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
3048 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
3050         PR middle-end/77484
3051         * predict.def (PRED_CALL): Set to 67.
3053 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
3055         * expr.c (store_field): In the bitfield case, if the value comes from
3056         a function call and is of an aggregate type returned in registers, do
3057         not modify the field mode; extract the value in all cases if the mode
3058         is BLKmode and the size is not larger than a word.
3060 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
3062         PR target/71017
3063         * config/i386/cpuid.h: Fix undefined behavior.
3065 2017-01-04  Jeff Law  <law@redhat.com>
3067         PR tree-optimization/79007
3068         PR tree-optimization/67955
3069         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
3070         conservative for pt.null when flag_non_call_exceptions is on.
3072 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
3074         PR translation/79019
3075         PR translation/79020
3076         * params.def (PARAM_INLINE_MIN_SPEEDUP,
3077         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
3078         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
3079         in descriptions.
3080         * config/avr/avr.opt (maccumulate-args): Likewise.
3081         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
3082         * common.opt (freport-bug): Likewise.
3083         * cif-code.def (CIF_FINAL_ERROR): Likewise.
3084         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
3085         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
3086         translatable string.
3087         * config/i386/i386.c (function_value_32): Likewise.
3088         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
3089         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
3090         Likewise.
3091         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
3092         * common/config/msp430/msp430-common.c (msp430_handle_option):
3093         Likewise.
3094         * symtab.c (symtab_node::verify_base): Likewise.
3095         * opts.c (set_debug_level): Likewise.
3096         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
3097         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
3098         missing whitespace to translatable strings.
3099         * config/avr/avr.md (bswapsi2): Fix typo in comment.
3100         * config/sh/superh.h: Likewise.
3101         * config/i386/xopintrin.h: Likewise.
3102         * config/i386/znver1.md: Likewise.
3103         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
3104         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
3105         * double-int.h (struct double_int): Likewise.
3106         * double-int.c (div_and_round_double): Likewise.
3107         * wide-int.cc: Likewise.
3108         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
3109         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
3110         * cfgcleanup.c (crossjumps_occured): Renamed to ...
3111         (crossjumps_occurred): ... this.
3112         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
3113         Adjust all uses.
3115         PR tree-optimization/78899
3116         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
3117         returning bool return struct loop *, NULL for failure and the new
3118         loop on success.
3119         (versionable_outer_loop_p): Don't version outer loop if it has
3120         dont_vectorized bit set.
3121         (tree_if_conversion): When versioning outer loop, ensure
3122         tree_if_conversion is performed also on the inner loop of the
3123         non-vectorizable outer loop copy.
3124         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
3125         LOOP_VECTORIZED in inner loop of the scalar outer loop and
3126         prevent vectorization of it.
3127         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
3128         the outer loop vectorization of the non-scalar version is attempted
3129         before vectorization of the inner loop in scalar version.  If
3130         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
3131         vectorization of its inner loop.
3132         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
3133         has 2 inner loops, rename also on edges from bb whose single pred
3134         is outer_loop->header.  Fix typo in function comment.
3136 2017-01-09  Martin Sebor  <msebor@redhat.com>
3138         PR bootstrap/79033
3139         * asan.c (asan_emit_stack_protection): Increase local buffer size
3140         to avoid snprintf truncation warning.
3142 2017-01-09  Andrew Pinski  <apinski@cavium.com>
3144         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
3145         to reference thunderx2t99 for the tuning structure
3146         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
3147         Rename to ...
3148         (thunderx2t99_extra_costs): This.
3149         * config/aarch64/aarch64-tune.md: Regenerate.
3150         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
3151         (vulcan_addrcost_table): This.
3152         (vulcan_regmove_cost): Rename to ...
3153         (thunderx2t99_regmove_cost): This.
3154         (vulcan_vector_cost): Rename to ...
3155         (thunderx2t99_vector_cost): this.
3156         (vulcan_branch_cost): Rename to ...
3157         (thunderx2t99_branch_cost): This.
3158         (vulcan_tunings): Rename to ...
3159         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
3160         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
3162 2017-01-09  Martin Jambor  <mjambor@suse.cz>
3164         PR ipa/78365
3165         PR ipa/78599
3166         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
3167         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
3168         (propagate_vr_accross_jump_function): Use the above function for all
3169         value range computations for pass-through jump functions and type
3170         converasion from explicit value range values.
3171         (ipcp_propagate_stage): Do not attempt to deduce types of formal
3172         parameters from TYPE_ARG_TYPES.
3173         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
3174         (ipa_write_node_info): Stream type of the actual argument.
3175         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
3177 2017-01-09  Martin Liska  <mliska@suse.cz>
3179         PR pch/78970
3180         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
3181         (lookup_compiler): Do not show error message with have_E.
3183 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
3185         PR tree-optimization/78938
3186         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
3187         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
3188         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
3189         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
3190         fixes.
3192 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3194         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
3195         is const0_rtx.
3197 2017-01-09  Richard Biener  <rguenther@suse.de>
3199         PR tree-optimization/78997
3200         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
3201         name condition properly.
3203 2017-01-09  Richard Biener  <rguenther@suse.de>
3205         PR debug/79000
3206         * dwarf2out.c (is_cxx): New overload with context.
3207         (is_naming_typedef_decl): Use it.
3209 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
3211         * invoke.texi (Option Summary): Correct spacing in option lists
3212         and add line breaks to fix over-long lines.
3214 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
3216         PR middle-end/17660
3218         * extend.texi (Common Variable Attributes): Add xref to GCC
3219         Internals manual to explain mode attribute keywords.
3221 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
3223         PR other/16519
3224         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
3225         and Preprocessor Options.
3226         (Options for Linking): Document -pthread here....
3227         (RS/6000 and PowerPC Options): ...not here.
3228         (Solaris 2 Options): ...or here.
3229         * doc/cppopts.texi: Document -pthread.
3231 2017-01-08  Martin Sebor  <msebor@redhat.com>
3233         PR middle-end/77708
3234         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
3235         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
3236         New member functions.
3237         (format_directive): Used them.
3238         (add_bytes): Same.
3239         (pass_sprintf_length::handle_gimple_call): Same.
3240         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
3241         to avoid truncation for any argument.
3242         (extract_affine_mul): Same.
3243         * tree.c (get_file_function_name): Same.
3245 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
3247         PR middle-end/77484
3248         * predict.def (PRED_INDIR_CALL): Set to 86.
3250 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
3252         PR preprocessor/54124
3253         * doc/cppopts.texi: Reformat -d subtable to list the full name
3254         of the options.  Add cross-reference to the docs for the general
3255         compiler -d options.
3256         * doc/invoke.texi (Developer Options): Add cross-reference to the
3257         preprocessor-specific -d option documentation.
3259 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
3261         PR preprocessor/13498
3262         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
3263         redudant material, and reflect new command-line options.
3264         (System Headers): Likewise.
3266 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
3268         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
3269         -isystem, and -idirafter.  Copy-edit.
3270         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
3271         default for -ftrack-macro-expansion.  Delete obsolete and
3272         badly-formatted implementation details about -fdebug-cpp output.
3273         * doc/cppwarnopts.texi: Copy-edit.
3275 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
3277         PR c++/72803
3278         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
3279         that the transition from a max line width >= 1<<10 to narrower
3280         lines works correctly.
3282 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
3284         * doc/options.texi (PerFunction): New.
3285         * opt-functions.awk (switch_flags): Map both Optimization and
3286         PerFunction to CL_OPTIMIZATION.
3287         * opth-gen.awk: Test for PerFunction flag along with
3288         Optimization.
3289         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
3290         it only when the latter is present.  Skip those that don't in
3291         the hash function generator.
3292         * common.opt (fvar-tracking): Mark as PerFunction instead of
3293         Optimization.
3294         (fvar-tracking-assignments): Likewise.
3295         (fvar-tracking-assignments-toggle): Likewise.
3296         (fvar-tracking-uninit): Likewise.
3298 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
3300         PR translation/79018
3301         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
3302         the and store.
3304 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
3306         PR target/57583
3307         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
3308         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
3309         TARGET_LONG_JUMP_TABLE_OFFSETS.
3310         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
3311         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
3312         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
3313         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
3314         * config/m68k/m68k.md (tablejump expander): Likewise.
3315         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
3316         TARGET_LONG_JUMP_TABLE_OFFSETS.
3317         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
3318         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
3320 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
3321             David Holsgrove <david.holsgrove@xilinx.com>
3323         * common/config/microblaze/microblaze-common.c
3324         (TARGET_EXCEPT_UNWIND_INFO): Remove.
3325         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
3326         New prototype.
3327         * config/microblaze/microblaze.c (microblaze_must_save_register)
3328         (microblaze_expand_epilogue, microblaze_return_addr): Handle
3329         calls_eh_return.
3330         (microblaze_eh_return): New function.
3331         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
3332         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
3333         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
3334         * config/microblaze/microblaze.md (eh_return): New pattern.
3336 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
3338         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
3339         GCC_DIAGNOSTIC_STRINGIFY): Define.
3341         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
3343 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3345         * config/arm/arm.md (<mcrr>): New.
3346         (<mrrc>): New.
3347         * config/arm/arm.c (arm_arch5te): New.
3348         (arm_option_override): Set arm_arch5te.
3349         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
3350         and mrrc2.
3351         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
3352         (arm_mcrr_qualifiers): ... this. New.
3353         (MRRC_QUALIFIERS): Define to...
3354         (arm_mrrc_qualifiers): ... this. New.
3355         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
3356         __arm_mrrc2): New.
3357         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
3358         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
3359         (MRRCI, mrrc, MRRC): New.
3360         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
3361         VUNSPEC_MRRC2): New.
3363 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3365         * config/arm/arm.md (<mcr>): New.
3366         (<mrc>): New.
3367         * config/arm/arm.c (arm_coproc_builtin_available): Add
3368         support for mcr, mrc, mcr2 and mrc2.
3369         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
3370         (arm_mcr_qualifiers): ... this. New.
3371         (MRC_QUALIFIERS): Define to ...
3372         (arm_mrc_qualifiers): ... this. New.
3373         (MCR_QUALIFIERS): Define to ...
3374         (arm_mcr_qualifiers): ... this. New.
3375         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
3376         __arm_mrc2): New.
3377         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
3378         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
3379         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
3380         VUNSPEC_MRC2): New.
3382 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3384         * config/arm/arm.md (*ldc): New.
3385         (*stc): New.
3386         (<ldc>): New.
3387         (<stc>): New.
3388         * config/arm/arm.c (arm_coproc_builtin_available): Add
3389         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
3390         (arm_coproc_ldc_stc_legitimate_address): New.
3391         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
3392         'qualifier_const_pointer'.
3393         (LDC_QUALIFIERS): Define to...
3394         (arm_ldc_qualifiers): ... this. New.
3395         (STC_QUALIFIERS): Define to...
3396         (arm_stc_qualifiers): ... this. New.
3397         * config/arm/arm-protos.h
3398         (arm_coproc_ldc_stc_legitimate_address): New.
3399         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
3400         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
3401         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
3402         stc2, stcl, stc2l): New.
3403         * config/arm/constraints.md (Uz): New.
3404         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
3405         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
3406         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
3407         VUNSPEC_STC2L): New.
3409 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3411         * config/arm/arm.md (<cdp>): New.
3412         * config/arm/arm.c (neon_const_bounds): Rename this ...
3413         (arm_const_bounds): ... this.
3414         (arm_coproc_builtin_available): New.
3415         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
3416         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
3417         (CDP_QUALIFIERS): Define to...
3418         (arm_cdp_qualifiers): ... this. New.
3419         (void_UP): Define.
3420         (arm_expand_builtin_args): Add case for 6 arguments.
3421         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
3422         (arm_const_bounds): ... this.
3423         (arm_coproc_builtin_available): New.
3424         * config/arm/arm_acle.h (__arm_cdp): New.
3425         (__arm_cdp2): New.
3426         * config/arm/arm_acle_builtins.def (cdp): New.
3427         (cdp2): New.
3428         * config/arm/iterators.md (CDPI,CDP,cdp): New.
3429         * config/arm/neon.md: Rename all 'neon_const_bounds' to
3430         'arm_const_bounds'.
3431         * config/arm/types.md (coproc): New.
3432         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
3433         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
3434         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
3435         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
3437 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3439         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
3440         (UBINOP_QUALIFIERS): New.
3441         (si_UP): Define.
3442         (acle_builtin_data): New. Change comment.
3443         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
3444         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
3445         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
3446         arm_acle_builtins.def.
3447         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
3448         (arm_init_acle_builtins): New.
3449         (CRC32_BUILTIN): Remove.
3450         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
3451         crc32cb, crc32ch and crc32cw.
3452         (arm_init_crc32_builtins): Remove.
3453         (arm_init_builtins): Use arm_init_acle_builtins rather
3454         than arm_init_crc32_builtins.
3455         (arm_expand_acle_builtin): New.
3456         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
3457         * config/arm/arm_acle_builtins.def: New.
3459 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3461         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
3462         (arm_builtin_datum): ... this.
3463         (arm_init_neon_builtin): Rename to ...
3464         (arm_init_builtin): ... this. Add a new parameters PREFIX
3465         and USE_SIG_IN_NAME.
3466         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
3467         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
3468         'arm_builtin_datum'.
3469         (arm_init_vfp_builtins): Likewise.
3470         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
3471         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
3472         (arm_expand_neon_args): Rename to ...
3473         (arm_expand_builtin_args): ... this. Rename builtin_arg
3474         enum values and differentiate between ARG_BUILTIN_MEMORY
3475         and ARG_BUILTIN_NEON_MEMORY.
3476         (arm_expand_neon_builtin_1): Rename to ...
3477         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
3478         values, arm_expand_builtin_args and add bool parameter NEON.
3479         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
3480         (arm_expand_vfp_builtin): Likewise.
3481         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
3483 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
3485         PR middle-end/77484
3486         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
3487         * predict.c (tree_estimate_probability_bb): Reverse direction of
3488         polymorphic call predictor.
3490 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
3492         * passes.c (execute_one_pass): Split out pass-skipping logic into...
3493         (determine_pass_name_match): ...this new function and...
3494         (should_skip_pass_p): ...this new function.
3496 2017-01-06  Nathan Sidwell  <nathan@acm.org>
3498         * ipa-visibility.c (function_and_variable_visibility): Reformat
3499         comments and long lines.  Remove extrneous if.
3500         * symtab.c (symtab_node::make_decl_local): Fix code format.
3501         (symtab_node::set_section_for_node): Fix comment typo.
3503 2017-01-06  Martin Liska  <mliska@suse.cz>
3505         PR bootstrap/79003
3506         * lra-constraints.c: Rename invariant to lra_invariant.
3507         * predict.c (set_even_probabilities): Initialize e to NULL.
3509 2017-01-05  Martin Sebor  <msebor@redhat.com>
3511         PR tree-optimization/78910
3512         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
3513         (format_integer): Correct off-by-one error in the handling
3514         of precision with negative numbers in signed conversions..
3516 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
3518         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
3520 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
3522         PR tree-optimization/71016
3523         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
3524         factor_out_conditional_conversion.  Formatting fix.
3525         (factor_out_conditional_conversion): Add cond_stmt argument.
3526         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
3527         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
3528         Formatting fix.
3530 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
3532         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
3533         read-rtl-function.o, and selftest-rtl.o.
3534         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
3535         (selftest::aarch64_test_loading_full_dump): New function.
3536         (selftest::aarch64_run_selftests): New function.
3537         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
3538         selftest::aarch64_run_selftests.
3539         * config/i386/i386.c
3540         (selftest::ix86_test_loading_dump_fragment_1): New function.
3541         (selftest::ix86_test_loading_call_insn): New function.
3542         (selftest::ix86_test_loading_full_dump): New function.
3543         (selftest::ix86_test_loading_unspec): New function.
3544         (selftest::ix86_run_selftests): Call the new functions.
3545         * emit-rtl.c (maybe_set_max_label_num): New function.
3546         * emit-rtl.h (maybe_set_max_label_num): New decl.
3547         * function.c (instantiate_decls): Guard call to
3548         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
3549         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
3550         "static".
3551         * gensupport.c (gen_reader::gen_reader): Pass "false"
3552         for new "compact" param of rtx_reader.
3553         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
3554         rather than an empty string for NULL strings.
3555         * read-md.c: Potentially include config.h rather than bconfig.h.
3556         Wrap include of errors.h with #ifdef GENERATOR_FILE.
3557         (have_error): New global, copied from errors.c.
3558         (md_reader::read_name): Rename to...
3559         (md_reader::read_name_1): ...this, adding "out_loc" param,
3560         and converting "missing name or number" to returning false, rather
3561         than failing.
3562         (md_reader::read_name): Reimplement in terms of read_name_1.
3563         (md_reader::read_name_or_nil): New function.
3564         (md_reader::read_string): Handle "(nil)" by returning NULL.
3565         (md_reader::md_reader): Add new param "compact".
3566         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
3567         (md_reader::read_file): New method.
3568         * read-md.h (md_reader::md_reader): Add new param "compact".
3569         (md_reader::read_file): New method.
3570         (md_reader::is_compact): New accessor.
3571         (md_reader::read_name): Convert return type from void to file_location.
3572         (md_reader::read_name_or_nil): New decl.
3573         (md_reader::read_name_1): New decl.
3574         (md_reader::m_compact): New field.
3575         (noop_reader::noop_reader): Pass "false" for new "compact" param
3576         of rtx_reader.
3577         (rtx_reader::rtx_reader): Add new "compact" param.
3578         (rtx_reader::read_rtx_operand): Make virtual and convert return
3579         type from void to rtx.
3580         (rtx_reader::read_until): New decl.
3581         (rtx_reader::handle_any_trailing_information): New virtual function.
3582         (rtx_reader::postprocess): New virtual function.
3583         (rtx_reader::finalize_string): New virtual function.
3584         (rtx_reader::m_in_call_function_usage): New field.
3585         (rtx_reader::m_reuse_rtx_by_id): New field.
3586         * read-rtl-function.c: New file.
3587         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
3588         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
3589         (selftest::verify_three_block_rtl_cfg): New decl.
3590         * read-rtl-function.h: New file.
3591         * read-rtl.c: Potentially include config.h rather than bconfig.h.
3592         For host, include function.h, memmodel.h, and emit-rtl.h.
3593         (one_time_initialization): New function.
3594         (struct compact_insn_name): New struct.
3595         (compact_insn_names): New array.
3596         (find_code): Handle insn codes in compact dumps.
3597         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
3598         (bind_subst_iter_and_attr): Likewise.
3599         (add_condition_to_string): Likewise.
3600         (add_condition_to_rtx): Likewise.
3601         (apply_attribute_uses): Likewise.
3602         (add_current_iterators): Likewise.
3603         (apply_iterators): Likewise.
3604         (initialize_iterators): Guard usage of apply_subst_iterator with
3605         #ifdef GENERATOR_FILE.
3606         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
3607         (md_reader::read_mapping): Likewise.
3608         (add_define_attr_for_define_subst): Likewise.
3609         (add_define_subst_attr): Likewise.
3610         (read_subst_mapping): Likewise.
3611         (check_code_iterator): Likewise.
3612         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
3613         logic to...
3614         (one_time_initialization): New function.
3615         (rtx_reader::read_until): New method.
3616         (read_flags): New function.
3617         (parse_reg_note_name): New function.
3618         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
3619         Handle reuse_rtx ids.
3620         Wrap iterator lookup within #ifdef GENERATOR_FILE.
3621         Add parsing support for RTL dumps, mirroring the special-cases in
3622         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
3623         values, and calling handle_any_trailing_information.
3624         (rtx_reader::read_rtx_operand): Convert return type from void
3625         to rtx, returning return_rtx.  Handle case 'e'.  Call
3626         finalize_string on XSTR and XTMPL fields.
3627         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
3628          "(nil)" values were omitted.  Call the postprocess vfunc on the
3629         return_rtx.
3630         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
3631         class ctor.  Initialize m_in_call_function_usage.  Call
3632         one_time_initialization.
3633         * rtl-tests.c (selftest::test_uncond_jump): Call
3634         set_new_first_and_last_insn.
3635         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
3636         * selftest-rtl.c: New file.
3637         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
3638         (selftest::get_insn_by_uid): New decl.
3639         * selftest-run-tests.c (selftest::run_tests): Call
3640         read_rtl_function_c_tests.
3641         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
3642         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
3643         dumps.
3645 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
3647         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
3648         operands in a special way.  Assert that pos+len <= mode precision.
3650 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
3652         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
3653         3 argument Alias with unlimited for the negative form.
3654         (fno-vect-cost-model): Removed.
3656 2017-01-05  Martin Liska  <mliska@suse.cz>
3658         * hsa-gen.c (gen_hsa_divmod): New function.
3659         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
3661 2017-01-05  Martin Liska  <mliska@suse.cz>
3663         PR pch/78970
3664         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
3665         header.
3667 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3669         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
3670         small constant length operands.
3672 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3674         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
3675         between loop iterations.
3677 2017-01-05  Martin Liska  <mliska@suse.cz>
3679         PR sanitizer/78815
3680         * gimplify.c (gimplify_decl_expr): Compare to
3681         asan_poisoned_variables instread of checking flags.
3682         (gimplify_target_expr): Likewise.
3683         (gimplify_expr): Likewise.
3684         (gimplify_function_tree): Conditionally initialize
3685         asan_poisoned_variables.
3687 2017-01-04  Jeff Law  <law@redhat.com>
3689         PR tree-optimizatin/78812
3690         * rtl.h (contains_mem_rtx_p): Prototype.
3691         * ifcvt.c (containts_mem_rtx_p): Move from here to...
3692         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
3693         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
3694         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
3695         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
3697 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
3699         * input.c (assert_char_at_range): Default-initialize actual_range.
3701 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
3703         * df-scan.c (df_ref_create_structure): Make regno unsigned,
3704         to match the caller.
3706 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
3708         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
3709         insns after final jump in test to emit dummy move.
3711 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
3713         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
3714         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
3716 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
3718         * multiple_target.c (create_dispatcher_calls): Init e_next.
3719         * tree-ssa-loop-split.c (split_loop): Init border.
3720         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
3721         scalar_type.
3723 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
3725         PR target/71977
3726         PR target/70568
3727         PR target/78823
3728         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
3729         (altivec_register_operand): Do not return true if the operand
3730         contains a SUBREG mixing SImode and SFmode.
3731         (vsx_register_operand): Likewise.
3732         (vsx_reg_sfsubreg_ok): New predicate.
3733         (vfloat_operand): Do not return true if the operand contains a
3734         SUBREG mixing SImode and SFmode.
3735         (vint_operand): Likewise.
3736         (vlogical_operand): Likewise.
3737         (gpc_reg_operand): Likewise.
3738         (int_reg_operand): Likewise.
3739         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
3740         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
3741         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
3742         SImode and SFmode.
3743         (rs6000_emit_move_si_sf_subreg): New helper function.
3744         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
3745         fixup SUBREGs involving SImode and SFmode.
3746         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
3747         numbers for the new peephole2 optimization.
3748         (peephole2 for SFmode unions): New peephole2 to optimize cases in
3749         the GLIBC math library that do AND/IOR/XOR operations on single
3750         precision floating point.
3751         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
3752         target macros to say whether we need to avoid SUBREGs mixing
3753         SImode and SFmode.
3754         (TARGET_ALLOW_SF_SUBREG): Likewise.
3755         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
3756         (UNSPEC_SI_FROM_SF): Likewise.
3757         (iorxor): Change spacing.
3758         (and_ior_xor): New iterator for AND, IOR, and XOR.
3759         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
3760         (movdi_from_sf_zero_ext): Likewise.
3761         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
3762         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
3763         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
3764         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
3765         (fms<mode>4): Likewise.
3766         (fnma<mode>4): Likewise.
3767         (fnms<mode>4): Likewise.
3768         (nfma<mode>4): Likewise.
3769         (nfms<mode>4): Likewise.
3771 2017-01-04  Marek Polacek  <polacek@redhat.com>
3773         PR c++/64767
3774         * doc/invoke.texi: Document -Wpointer-compare.
3776 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
3778         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
3779         RejectNegative.
3781         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
3782         descriptions for -gdwarf-5 and emit them as uleb128 instead of
3783         2-byte data.
3785 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3787         PR target/78056
3788         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
3789         documentation of the powerpc_popcntb_ok attribute.
3790         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
3791         code to issue warning messages if a requested CPU configuration is
3792         not supported by the binary (assembler and loader) toolchain.
3793         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
3794         made to define a built-in function that has been disabled.
3795         (paired_init_builtins): Add assertion to prevent ICE if attempt is
3796         made to define a built-in function that has been disabled.
3797         (altivec_init_builtins): Add comment explaining why definition
3798         of the DST built-in functions is not preceded by an assertion
3799         check.  Add assertions to prevent ICE if attempts are made to
3800         define an altivec predicate or an abs* built-in function that has
3801         been disabled.
3802         (htm_init_builtins): Add comment explaining why definition of the
3803         htm built-in functions is not preceded by an assertion check.
3805 2017-01-04  Jeff Law  <law@redhat.com>
3807         PR tree-optimizatin/67955
3808         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
3809         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
3810         the points-to solution does not include pt_null.  Use DECL_PT_UID
3811         unconditionally.
3813 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
3815         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
3816         Use gen_int_mode instead of gen_lopwart for const_int operands.
3818 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
3820         PR tree-optimization/71563
3821         * match.pd: Simplify X << Y into X if Y is known to be 0 or
3822         out of range value - has low bits known to be zero.
3824 2017-01-04  Alan Modra  <amodra@gmail.com>
3826         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
3827         * configure: Regenerate.
3828         * config.in: Regenerate.
3830 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
3832         PR bootstrap/77569
3833         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
3834         a substring of the message, but strcmp with the whole message.  Ifdef
3835         ENABLE_NLS, translate the message first using dgettext.
3837 2017-01-03  Jeff Law  <law@redhat.com>
3839         PR tree-optimizatin/78856
3840         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
3841         (mark_threaded_blocks): Remove code to truncate thread paths that
3842         cross multiple loop headers.  Instead invalidate the cached loop
3843         iteration information and handle case of a thread path walking
3844         into an irreducible region.
3846 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
3848         PR target/78900
3849         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
3850         assertions.  Add support for doing the signbit if the IEEE 128-bit
3851         floating point value is in a GPR.
3852         * config/rs6000/rs6000.md (Fsignbit): Delete.
3853         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
3854         Update the length attribute if the value is in a GPR.
3855         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
3856         the sign or zero extension instruction, since the value is always 0/1.
3857         (signbit<mode>2_dm2): Delete using <Fsignbit>.
3859         PR target/78953
3860         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
3861         extracting SImode to a GPR register so that we can generate a
3862         store, limit the vector to be in a traditional Altivec register
3863         for the vextuwrx instruction.
3865 2017-01-03  Ian Lance Taylor  <iant@google.com>
3867         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
3869 2017-01-03  Martin Sebor  <msebor@redhat.com>
3871         PR tree-optimization/78696
3872         * gimple-ssa-sprintf.c (format_floating): Correct handling of
3873         precision.  Use MPFR for %f for greater fidelity.  Correct handling
3874         of %g.
3875         (pass_sprintf_length::compute_format_length): Set width and precision
3876         specified by asrerisk to void_node for vararg functions.
3877         (try_substitute_return_value): Adjust dump output.
3879 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
3881         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
3883 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
3885         * doc/invoke.texi (SPARC options): Document -mlra as the default.
3886         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
3887         -mlra/-mno-lra was passed to the compiler.
3889 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
3891         PR rtl-optimization/65618
3892         * emit-rtl.c (try_split): Move initialization of "before" and
3893         "after" to just before the call to emit_insn_after_setloc.
3895 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
3897         * doc/md.texi (Standard Names): Remove reference to Java frontend.
3899 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
3901         * dwarf2out.c (gen_enumeration_type_die): When
3902         -gno-strict-dwarf, add a DW_AT_encoding attribute.
3904 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
3906         PR tree-optimization/78965
3907         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
3908         Change first argument from const call_info & to call_info &.  For %n
3909         set info.nowrite to false.
3911         PR middle-end/78901
3912         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
3913         possibly throwing calls.
3915         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
3916         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
3917         and fns handling, rather than in a separate case SSA_NAME.
3919 2017-01-02  Jeff Law  <law@redhat.com>
3921         * config/darwin-driver.c (darwin_driver_init): Const-correctness
3922         fixes for first_period and second_period variables.
3924 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
3926         PR target/78967
3927         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
3928         (*insvqi_1): New insn pattern.
3929         (*insvqi_1_mem_rex64): Ditto.
3930         (*insvqi_2): Ditto.
3931         (*insvqi_3): Rename from *insvqi.
3933         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
3935 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
3937         * doc/cfg.texi (Edges): Remove reference to Java.
3938         (Maintaining the CFG): Ditto.
3940 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
3942         PR middle-end/77674
3943         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
3944         transparent aliases.
3946 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
3948         PR middle-end/77484
3949         * predict.def (PRED_CALL): Update hitrate.
3950         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
3951         * predict.c (tree_estimate_probability_bb): Split CALL predictor
3952         into direct/indirect/polymorphic variants.
3954 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
3956         Update copyright years.
3958         * gcc.c (process_command): Update copyright notice dates.
3959         * gcov-dump.c (print_version): Ditto.
3960         * gcov.c (print_version): Ditto.
3961         * gcov-tool.c (print_version): Ditto.
3962         * gengtype.c (create_file): Ditto.
3963         * doc/cpp.texi: Bump @copying's copyright year.
3964         * doc/cppinternals.texi: Ditto.
3965         * doc/gcc.texi: Ditto.
3966         * doc/gccint.texi: Ditto.
3967         * doc/gcov.texi: Ditto.
3968         * doc/install.texi: Ditto.
3969         * doc/invoke.texi: Ditto.
3971 Copyright (C) 2017 Free Software Foundation, Inc.
3973 Copying and distribution of this file, with or without modification,
3974 are permitted in any medium without royalty provided the copyright
3975 notice and this notice are preserved.